Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

chore: added extracted metadata #53

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.75",
"version": "0.0.76",
"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 @@ -82,7 +82,12 @@ class IndexifyClient {
const content_url = content.storage_url.startsWith("http")
? content.storage_url
: `${this.serviceUrl}/namespaces/${this.namespace}/content/${content.id}/download`;
return { ...content, content_url };

return {
...content,
content_url,
extracted_metadata: {}
};
}

static getHttpsAgent({ mtlsConfig }: { mtlsConfig?: IMtlsConfig }): any | undefined {
Expand Down
1 change: 1 addition & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export interface IBaseContentMetadata extends IMetadata {

export interface IContentMetadata extends IBaseContentMetadata {
content_url: string;
extracted_metadata: Record<string, any>;
}

export interface IExtractedMetadata extends IBase {
Expand Down