Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "getindexify",
"version": "0.0.27",
"version": "0.0.28",
"description": "This is the TypeScript client for interacting with the Indexify service.",
"main": "./dist/index.js",
"module": "./dist/index.mjs",
Expand Down
7 changes: 6 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,11 +288,16 @@ class IndexifyClient {
return this.baseContentToContentMetadata(resp.data.content_metadata);
}

async getExtractedMetadata(id: string): Promise<IExtractedMetadata[]> {
async getExtractedMetadata(id: string): Promise<IContentMetadata> {
const resp = await this.client.get(`content/${id}/metadata`);
return resp.data.metadata;
}

async getContentTree(id: string): Promise<IContentMetadata[]> {
const resp = await this.client.get(`content/${id}/content-tree`);
return resp.data.content_tree_metadata;
}

async downloadContent<T>(id: string): Promise<T> {
try {
const response = await this.client.get(`content/${id}/download`);
Expand Down