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

Commit 6322317

Browse files
authored
add ingest remote file method (#20)
1 parent 41fa332 commit 6322317

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "getindexify",
3-
"version": "0.0.26",
3+
"version": "0.0.27",
44
"description": "This is the TypeScript client for interacting with the Indexify service.",
55
"main": "./dist/index.js",
66
"module": "./dist/index.mjs",

src/client.ts

+13
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,19 @@ class IndexifyClient {
350350
this.extractionPolicies = policies;
351351
return policies;
352352
}
353+
354+
async ingestRemoteFile(
355+
url: string,
356+
mime_type: string,
357+
labels: Record<string, string>
358+
): Promise<AxiosResponse> {
359+
const resp = await this.client.post("ingest_remote_file", {
360+
url,
361+
mime_type,
362+
labels,
363+
});
364+
return resp
365+
}
353366
}
354367

355368
export default IndexifyClient;

0 commit comments

Comments
 (0)