MCPcopy Create free account
hub / github.com/IQEngine/IQEngine / getMeta

Method getMeta

client/src/api/metadata/api-client.ts:13–27  ·  view source on GitHub ↗
(account: string, container: string, filePath: string)

Source from the content-addressed store, hash-verified

11 }
12
13 async getMeta(account: string, container: string, filePath: string): Promise<SigMFMetadata> {
14 const response = await this.authUtil.requestWithAuthIfRequired({
15 method: 'get',
16 url: `/api/datasources/${account}/${container}/${filePath}/meta`
17 });
18 let responseMetaData: SigMFMetadata | null = null;
19 responseMetaData = Object.assign(new SigMFMetadata(), response.data);
20 responseMetaData.annotations = responseMetaData.annotations?.map((annotation) =>
21 Object.assign(new Annotation(), annotation)
22 );
23 responseMetaData.captures = responseMetaData.captures?.map((capture) =>
24 Object.assign(new CaptureSegment(), capture)
25 );
26 return responseMetaData;
27 }
28
29 async getDataSourceMetaPaths(account: string, container: string): Promise<string[]> {
30 const response = await this.authUtil.requestWithAuthIfRequired({

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected