This repository was archived by the owner on Mar 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " getindexify" ,
3
- "version" : " 0.0.27 " ,
3
+ "version" : " 0.0.28 " ,
4
4
"description" : " This is the TypeScript client for interacting with the Indexify service." ,
5
5
"main" : " ./dist/index.js" ,
6
6
"module" : " ./dist/index.mjs" ,
Original file line number Diff line number Diff line change @@ -288,11 +288,16 @@ class IndexifyClient {
288
288
return this . baseContentToContentMetadata ( resp . data . content_metadata ) ;
289
289
}
290
290
291
- async getExtractedMetadata ( id : string ) : Promise < IExtractedMetadata [ ] > {
291
+ async getExtractedMetadata ( id : string ) : Promise < IContentMetadata > {
292
292
const resp = await this . client . get ( `content/${ id } /metadata` ) ;
293
293
return resp . data . metadata ;
294
294
}
295
295
296
+ async getContentTree ( id : string ) : Promise < IContentMetadata [ ] > {
297
+ const resp = await this . client . get ( `content/${ id } /content-tree` ) ;
298
+ return resp . data . content_tree_metadata ;
299
+ }
300
+
296
301
async downloadContent < T > ( id : string ) : Promise < T > {
297
302
try {
298
303
const response = await this . client . get ( `content/${ id } /download` ) ;
You can’t perform that action at this time.
0 commit comments