@keystrokehq/ragie 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-document-from-url.cjs +5 -5
- package/dist/actions/create-document-from-url.cjs.map +1 -1
- package/dist/actions/create-document-from-url.d.cts +28 -3
- package/dist/actions/create-document-from-url.d.cts.map +1 -1
- package/dist/actions/create-document-from-url.d.mts +28 -3
- package/dist/actions/create-document-from-url.d.mts.map +1 -1
- package/dist/actions/create-document-from-url.mjs +5 -5
- package/dist/actions/create-document-from-url.mjs.map +1 -1
- package/dist/actions/create-document-raw.cjs +5 -5
- package/dist/actions/create-document-raw.cjs.map +1 -1
- package/dist/actions/create-document-raw.d.cts +26 -3
- package/dist/actions/create-document-raw.d.cts.map +1 -1
- package/dist/actions/create-document-raw.d.mts +26 -3
- package/dist/actions/create-document-raw.d.mts.map +1 -1
- package/dist/actions/create-document-raw.mjs +5 -5
- package/dist/actions/create-document-raw.mjs.map +1 -1
- package/dist/actions/create-document.cjs +7 -7
- package/dist/actions/create-document.cjs.map +1 -1
- package/dist/actions/create-document.d.cts +42 -3
- package/dist/actions/create-document.d.cts.map +1 -1
- package/dist/actions/create-document.d.mts +42 -3
- package/dist/actions/create-document.d.mts.map +1 -1
- package/dist/actions/create-document.mjs +7 -7
- package/dist/actions/create-document.mjs.map +1 -1
- package/dist/actions/create-instruction.cjs +7 -7
- package/dist/actions/create-instruction.cjs.map +1 -1
- package/dist/actions/create-instruction.d.cts +33 -3
- package/dist/actions/create-instruction.d.cts.map +1 -1
- package/dist/actions/create-instruction.d.mts +33 -3
- package/dist/actions/create-instruction.d.mts.map +1 -1
- package/dist/actions/create-instruction.mjs +7 -7
- package/dist/actions/create-instruction.mjs.map +1 -1
- package/dist/actions/create-oauth-redirect-url.cjs +1 -1
- package/dist/actions/create-oauth-redirect-url.cjs.map +1 -1
- package/dist/actions/create-oauth-redirect-url.d.cts +25 -3
- package/dist/actions/create-oauth-redirect-url.d.cts.map +1 -1
- package/dist/actions/create-oauth-redirect-url.d.mts +25 -3
- package/dist/actions/create-oauth-redirect-url.d.mts.map +1 -1
- package/dist/actions/create-oauth-redirect-url.mjs +1 -1
- package/dist/actions/create-oauth-redirect-url.mjs.map +1 -1
- package/dist/actions/create-partition-partitions-post.cjs +3 -3
- package/dist/actions/create-partition-partitions-post.cjs.map +1 -1
- package/dist/actions/create-partition-partitions-post.d.cts +83 -3
- package/dist/actions/create-partition-partitions-post.d.cts.map +1 -1
- package/dist/actions/create-partition-partitions-post.d.mts +83 -3
- package/dist/actions/create-partition-partitions-post.d.mts.map +1 -1
- package/dist/actions/create-partition-partitions-post.mjs +3 -3
- package/dist/actions/create-partition-partitions-post.mjs.map +1 -1
- package/dist/actions/delete-document.cjs.map +1 -1
- package/dist/actions/delete-document.d.cts +13 -3
- package/dist/actions/delete-document.d.cts.map +1 -1
- package/dist/actions/delete-document.d.mts +13 -3
- package/dist/actions/delete-document.d.mts.map +1 -1
- package/dist/actions/delete-document.mjs.map +1 -1
- package/dist/actions/delete-instruction.cjs.map +1 -1
- package/dist/actions/delete-instruction.d.cts +9 -3
- package/dist/actions/delete-instruction.d.cts.map +1 -1
- package/dist/actions/delete-instruction.d.mts +9 -3
- package/dist/actions/delete-instruction.d.mts.map +1 -1
- package/dist/actions/delete-instruction.mjs.map +1 -1
- package/dist/actions/delete-partition.cjs.map +1 -1
- package/dist/actions/delete-partition.d.cts +11 -3
- package/dist/actions/delete-partition.d.cts.map +1 -1
- package/dist/actions/delete-partition.d.mts +11 -3
- package/dist/actions/delete-partition.d.mts.map +1 -1
- package/dist/actions/delete-partition.mjs.map +1 -1
- package/dist/actions/get-document-chunk-content.cjs +1 -1
- package/dist/actions/get-document-chunk-content.cjs.map +1 -1
- package/dist/actions/get-document-chunk-content.d.cts +31 -3
- package/dist/actions/get-document-chunk-content.d.cts.map +1 -1
- package/dist/actions/get-document-chunk-content.d.mts +31 -3
- package/dist/actions/get-document-chunk-content.d.mts.map +1 -1
- package/dist/actions/get-document-chunk-content.mjs +1 -1
- package/dist/actions/get-document-chunk-content.mjs.map +1 -1
- package/dist/actions/get-document-chunk.cjs +3 -3
- package/dist/actions/get-document-chunk.cjs.map +1 -1
- package/dist/actions/get-document-chunk.d.cts +18 -3
- package/dist/actions/get-document-chunk.d.cts.map +1 -1
- package/dist/actions/get-document-chunk.d.mts +18 -3
- package/dist/actions/get-document-chunk.d.mts.map +1 -1
- package/dist/actions/get-document-chunk.mjs +3 -3
- package/dist/actions/get-document-chunk.mjs.map +1 -1
- package/dist/actions/get-document-chunks.cjs +3 -3
- package/dist/actions/get-document-chunks.cjs.map +1 -1
- package/dist/actions/get-document-chunks.d.cts +29 -3
- package/dist/actions/get-document-chunks.d.cts.map +1 -1
- package/dist/actions/get-document-chunks.d.mts +29 -3
- package/dist/actions/get-document-chunks.d.mts.map +1 -1
- package/dist/actions/get-document-chunks.mjs +3 -3
- package/dist/actions/get-document-chunks.mjs.map +1 -1
- package/dist/actions/get-document-content.cjs +1 -1
- package/dist/actions/get-document-content.cjs.map +1 -1
- package/dist/actions/get-document-content.d.cts +27 -3
- package/dist/actions/get-document-content.d.cts.map +1 -1
- package/dist/actions/get-document-content.d.mts +27 -3
- package/dist/actions/get-document-content.d.mts.map +1 -1
- package/dist/actions/get-document-content.mjs +1 -1
- package/dist/actions/get-document-content.mjs.map +1 -1
- package/dist/actions/get-document-summary.cjs +2 -2
- package/dist/actions/get-document-summary.cjs.map +1 -1
- package/dist/actions/get-document-summary.d.cts +12 -3
- package/dist/actions/get-document-summary.d.cts.map +1 -1
- package/dist/actions/get-document-summary.d.mts +12 -3
- package/dist/actions/get-document-summary.d.mts.map +1 -1
- package/dist/actions/get-document-summary.mjs +2 -2
- package/dist/actions/get-document-summary.mjs.map +1 -1
- package/dist/actions/get-document.cjs +6 -6
- package/dist/actions/get-document.cjs.map +1 -1
- package/dist/actions/get-document.d.cts +21 -3
- package/dist/actions/get-document.d.cts.map +1 -1
- package/dist/actions/get-document.d.mts +21 -3
- package/dist/actions/get-document.d.mts.map +1 -1
- package/dist/actions/get-document.mjs +6 -6
- package/dist/actions/get-document.mjs.map +1 -1
- package/dist/actions/get-partition.cjs +3 -3
- package/dist/actions/get-partition.cjs.map +1 -1
- package/dist/actions/get-partition.d.cts +43 -3
- package/dist/actions/get-partition.d.cts.map +1 -1
- package/dist/actions/get-partition.d.mts +43 -3
- package/dist/actions/get-partition.d.mts.map +1 -1
- package/dist/actions/get-partition.mjs +3 -3
- package/dist/actions/get-partition.mjs.map +1 -1
- package/dist/actions/get-response.cjs.map +1 -1
- package/dist/actions/get-response.d.cts +78 -3
- package/dist/actions/get-response.d.cts.map +1 -1
- package/dist/actions/get-response.d.mts +78 -3
- package/dist/actions/get-response.d.mts.map +1 -1
- package/dist/actions/get-response.mjs.map +1 -1
- package/dist/actions/list-connection-source-types.cjs +4 -4
- package/dist/actions/list-connection-source-types.cjs.map +1 -1
- package/dist/actions/list-connection-source-types.d.cts +10 -3
- package/dist/actions/list-connection-source-types.d.cts.map +1 -1
- package/dist/actions/list-connection-source-types.d.mts +10 -3
- package/dist/actions/list-connection-source-types.d.mts.map +1 -1
- package/dist/actions/list-connection-source-types.mjs +4 -4
- package/dist/actions/list-connection-source-types.mjs.map +1 -1
- package/dist/actions/list-connections-connections-get.cjs +8 -8
- package/dist/actions/list-connections-connections-get.cjs.map +1 -1
- package/dist/actions/list-connections-connections-get.d.cts +31 -3
- package/dist/actions/list-connections-connections-get.d.cts.map +1 -1
- package/dist/actions/list-connections-connections-get.d.mts +31 -3
- package/dist/actions/list-connections-connections-get.d.mts.map +1 -1
- package/dist/actions/list-connections-connections-get.mjs +8 -8
- package/dist/actions/list-connections-connections-get.mjs.map +1 -1
- package/dist/actions/list-documents.cjs +7 -7
- package/dist/actions/list-documents.cjs.map +1 -1
- package/dist/actions/list-documents.d.cts +30 -3
- package/dist/actions/list-documents.d.cts.map +1 -1
- package/dist/actions/list-documents.d.mts +30 -3
- package/dist/actions/list-documents.d.mts.map +1 -1
- package/dist/actions/list-documents.mjs +7 -7
- package/dist/actions/list-documents.mjs.map +1 -1
- package/dist/actions/list-entities-by-document.cjs +6 -6
- package/dist/actions/list-entities-by-document.cjs.map +1 -1
- package/dist/actions/list-entities-by-document.d.cts +27 -3
- package/dist/actions/list-entities-by-document.d.cts.map +1 -1
- package/dist/actions/list-entities-by-document.d.mts +27 -3
- package/dist/actions/list-entities-by-document.d.mts.map +1 -1
- package/dist/actions/list-entities-by-document.mjs +6 -6
- package/dist/actions/list-entities-by-document.mjs.map +1 -1
- package/dist/actions/list-entities-by-instruction.cjs +6 -6
- package/dist/actions/list-entities-by-instruction.cjs.map +1 -1
- package/dist/actions/list-entities-by-instruction.d.cts +27 -3
- package/dist/actions/list-entities-by-instruction.d.cts.map +1 -1
- package/dist/actions/list-entities-by-instruction.d.mts +27 -3
- package/dist/actions/list-entities-by-instruction.d.mts.map +1 -1
- package/dist/actions/list-entities-by-instruction.mjs +6 -6
- package/dist/actions/list-entities-by-instruction.mjs.map +1 -1
- package/dist/actions/list-instructions.cjs +7 -7
- package/dist/actions/list-instructions.cjs.map +1 -1
- package/dist/actions/list-instructions.d.cts +19 -3
- package/dist/actions/list-instructions.d.cts.map +1 -1
- package/dist/actions/list-instructions.d.mts +19 -3
- package/dist/actions/list-instructions.d.mts.map +1 -1
- package/dist/actions/list-instructions.mjs +7 -7
- package/dist/actions/list-instructions.mjs.map +1 -1
- package/dist/actions/list-partitions.cjs +4 -4
- package/dist/actions/list-partitions.cjs.map +1 -1
- package/dist/actions/list-partitions.d.cts +36 -3
- package/dist/actions/list-partitions.d.cts.map +1 -1
- package/dist/actions/list-partitions.d.mts +36 -3
- package/dist/actions/list-partitions.d.mts.map +1 -1
- package/dist/actions/list-partitions.mjs +4 -4
- package/dist/actions/list-partitions.mjs.map +1 -1
- package/dist/actions/patch-document-metadata.cjs.map +1 -1
- package/dist/actions/patch-document-metadata.d.cts +16 -3
- package/dist/actions/patch-document-metadata.d.cts.map +1 -1
- package/dist/actions/patch-document-metadata.d.mts +16 -3
- package/dist/actions/patch-document-metadata.d.mts.map +1 -1
- package/dist/actions/patch-document-metadata.mjs.map +1 -1
- package/dist/actions/retrieve.cjs.map +1 -1
- package/dist/actions/retrieve.d.cts +31 -3
- package/dist/actions/retrieve.d.cts.map +1 -1
- package/dist/actions/retrieve.d.mts +31 -3
- package/dist/actions/retrieve.d.mts.map +1 -1
- package/dist/actions/retrieve.mjs.map +1 -1
- package/dist/actions/set-partition-limits.cjs +3 -3
- package/dist/actions/set-partition-limits.cjs.map +1 -1
- package/dist/actions/set-partition-limits.d.cts +61 -3
- package/dist/actions/set-partition-limits.d.cts.map +1 -1
- package/dist/actions/set-partition-limits.d.mts +61 -3
- package/dist/actions/set-partition-limits.d.mts.map +1 -1
- package/dist/actions/set-partition-limits.mjs +3 -3
- package/dist/actions/set-partition-limits.mjs.map +1 -1
- package/dist/actions/update-document-from-url.cjs +1 -1
- package/dist/actions/update-document-from-url.cjs.map +1 -1
- package/dist/actions/update-document-from-url.d.cts +22 -3
- package/dist/actions/update-document-from-url.d.cts.map +1 -1
- package/dist/actions/update-document-from-url.d.mts +22 -3
- package/dist/actions/update-document-from-url.d.mts.map +1 -1
- package/dist/actions/update-document-from-url.mjs +1 -1
- package/dist/actions/update-document-from-url.mjs.map +1 -1
- package/dist/actions/update-document-raw.cjs +1 -1
- package/dist/actions/update-document-raw.cjs.map +1 -1
- package/dist/actions/update-document-raw.d.cts +11 -3
- package/dist/actions/update-document-raw.d.cts.map +1 -1
- package/dist/actions/update-document-raw.d.mts +11 -3
- package/dist/actions/update-document-raw.d.mts.map +1 -1
- package/dist/actions/update-document-raw.mjs +1 -1
- package/dist/actions/update-document-raw.mjs.map +1 -1
- package/dist/actions/update-instruction.cjs +7 -7
- package/dist/actions/update-instruction.cjs.map +1 -1
- package/dist/actions/update-instruction.d.cts +20 -3
- package/dist/actions/update-instruction.d.cts.map +1 -1
- package/dist/actions/update-instruction.d.mts +20 -3
- package/dist/actions/update-instruction.d.mts.map +1 -1
- package/dist/actions/update-instruction.mjs +7 -7
- package/dist/actions/update-instruction.mjs.map +1 -1
- package/dist/actions/update-partition.cjs +16 -16
- package/dist/actions/update-partition.cjs.map +1 -1
- package/dist/actions/update-partition.d.cts +49 -3
- package/dist/actions/update-partition.d.cts.map +1 -1
- package/dist/actions/update-partition.d.mts +49 -3
- package/dist/actions/update-partition.d.mts.map +1 -1
- package/dist/actions/update-partition.mjs +16 -16
- package/dist/actions/update-partition.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-chunk.cjs","names":["z","action"],"sources":["../../src/actions/get-document-chunk.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunkInput
|
|
1
|
+
{"version":3,"file":"get-document-chunk.cjs","names":["z","action"],"sources":["../../src/actions/get-document-chunk.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunkInput = z.object({\n chunk_id: z.string().describe(\"The ID of the chunk (UUID format).\"),\n partition: z.string().describe(\"Optional partition to scope the request; if omitted, defaults to the default partition for newer accounts.\").optional(),\n document_id: z.string().describe(\"The ID of the document (UUID format).\"),\n}).describe(\"Request model for retrieving a document chunk by document and chunk ID.\");\nconst RagieGetDocumentChunk_ChunkMetadataSchema = z.object({}).describe(\"Custom chunk metadata.\");\nconst RagieGetDocumentChunk_ModalityDataSchema = z.object({}).describe(\"Additional data for audio/video chunks, including word-level timestamps.\");\nexport const RagieGetDocumentChunkOutput = z.object({\n id: z.string().describe(\"The chunk identifier (UUID).\").nullable(),\n text: z.string().describe(\"Chunk content.\").nullable(),\n index: z.number().int().describe(\"Position within document (default: -1).\").nullable(),\n links: z.object({}).describe(\"Dictionary of Link objects with href and type properties.\").nullable().optional(),\n metadata: RagieGetDocumentChunk_ChunkMetadataSchema.nullable().optional(),\n modality_data: RagieGetDocumentChunk_ModalityDataSchema.nullable().optional(),\n}).describe(\"Response model for document chunk details.\");\n\nexport const ragieGetDocumentChunk = action(\"RAGIE_GET_DOCUMENT_CHUNK\", {\n slug: \"ragie-get-document-chunk\",\n name: \"Get Document Chunk\",\n description: \"Tool to retrieve a specific document chunk by its document and chunk ID. Use when you need detailed information about a specific chunk within a document, including its content, metadata, position index, and optional modality data for audio/video chunks.\",\n input: RagieGetDocumentChunkInput,\n output: RagieGetDocumentChunkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAClE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACtJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC1E,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB;AAChG,MAAM,2CAA2CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACjJ,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACxE,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-document-chunk.d.ts
|
|
4
|
-
declare const RagieGetDocumentChunkInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagieGetDocumentChunkInput: z.ZodObject<{
|
|
5
|
+
chunk_id: z.ZodString;
|
|
6
|
+
partition: z.ZodOptional<z.ZodString>;
|
|
7
|
+
document_id: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const RagieGetDocumentChunkOutput: z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
text: z.ZodNullable<z.ZodString>;
|
|
12
|
+
index: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
14
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
15
|
+
modality_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const ragieGetDocumentChunk: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
chunk_id: string;
|
|
19
|
+
document_id: string;
|
|
20
|
+
partition?: string | undefined;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { ragieGetDocumentChunk };
|
|
9
24
|
//# sourceMappingURL=get-document-chunk.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-chunk.d.cts","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-document-chunk.d.cts","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAO1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-document-chunk.d.ts
|
|
4
|
-
declare const RagieGetDocumentChunkInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagieGetDocumentChunkInput: z.ZodObject<{
|
|
5
|
+
chunk_id: z.ZodString;
|
|
6
|
+
partition: z.ZodOptional<z.ZodString>;
|
|
7
|
+
document_id: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const RagieGetDocumentChunkOutput: z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
text: z.ZodNullable<z.ZodString>;
|
|
12
|
+
index: z.ZodNullable<z.ZodNumber>;
|
|
13
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
14
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
15
|
+
modality_data: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const ragieGetDocumentChunk: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
chunk_id: string;
|
|
19
|
+
document_id: string;
|
|
20
|
+
partition?: string | undefined;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
22
|
//#endregion
|
|
8
23
|
export { ragieGetDocumentChunk };
|
|
9
24
|
//# sourceMappingURL=get-document-chunk.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-chunk.d.mts","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"get-document-chunk.d.mts","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAO1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -14,9 +14,9 @@ const ragieGetDocumentChunk = action("RAGIE_GET_DOCUMENT_CHUNK", {
|
|
|
14
14
|
description: "Tool to retrieve a specific document chunk by its document and chunk ID. Use when you need detailed information about a specific chunk within a document, including its content, metadata, position index, and optional modality data for audio/video chunks.",
|
|
15
15
|
input: RagieGetDocumentChunkInput,
|
|
16
16
|
output: z.object({
|
|
17
|
-
id: z.string().describe("The chunk identifier (UUID)."),
|
|
18
|
-
text: z.string().describe("Chunk content."),
|
|
19
|
-
index: z.number().int().describe("Position within document (default: -1)."),
|
|
17
|
+
id: z.string().describe("The chunk identifier (UUID).").nullable(),
|
|
18
|
+
text: z.string().describe("Chunk content.").nullable(),
|
|
19
|
+
index: z.number().int().describe("Position within document (default: -1).").nullable(),
|
|
20
20
|
links: z.object({}).describe("Dictionary of Link objects with href and type properties.").nullable().optional(),
|
|
21
21
|
metadata: RagieGetDocumentChunk_ChunkMetadataSchema.nullable().optional(),
|
|
22
22
|
modality_data: RagieGetDocumentChunk_ModalityDataSchema.nullable().optional()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-chunk.mjs","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunkInput
|
|
1
|
+
{"version":3,"file":"get-document-chunk.mjs","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunkInput = z.object({\n chunk_id: z.string().describe(\"The ID of the chunk (UUID format).\"),\n partition: z.string().describe(\"Optional partition to scope the request; if omitted, defaults to the default partition for newer accounts.\").optional(),\n document_id: z.string().describe(\"The ID of the document (UUID format).\"),\n}).describe(\"Request model for retrieving a document chunk by document and chunk ID.\");\nconst RagieGetDocumentChunk_ChunkMetadataSchema = z.object({}).describe(\"Custom chunk metadata.\");\nconst RagieGetDocumentChunk_ModalityDataSchema = z.object({}).describe(\"Additional data for audio/video chunks, including word-level timestamps.\");\nexport const RagieGetDocumentChunkOutput = z.object({\n id: z.string().describe(\"The chunk identifier (UUID).\").nullable(),\n text: z.string().describe(\"Chunk content.\").nullable(),\n index: z.number().int().describe(\"Position within document (default: -1).\").nullable(),\n links: z.object({}).describe(\"Dictionary of Link objects with href and type properties.\").nullable().optional(),\n metadata: RagieGetDocumentChunk_ChunkMetadataSchema.nullable().optional(),\n modality_data: RagieGetDocumentChunk_ModalityDataSchema.nullable().optional(),\n}).describe(\"Response model for document chunk details.\");\n\nexport const ragieGetDocumentChunk = action(\"RAGIE_GET_DOCUMENT_CHUNK\", {\n slug: \"ragie-get-document-chunk\",\n name: \"Get Document Chunk\",\n description: \"Tool to retrieve a specific document chunk by its document and chunk ID. Use when you need detailed information about a specific chunk within a document, including its content, metadata, position index, and optional modality data for audio/video chunks.\",\n input: RagieGetDocumentChunkInput,\n output: RagieGetDocumentChunkOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAClE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACtJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC1E,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,4CAA4C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB;AAChG,MAAM,2CAA2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAUjJ,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACrD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACxE,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
|
|
@@ -10,15 +10,15 @@ const RagieGetDocumentChunksInput = zod.z.object({
|
|
|
10
10
|
start_index: zod.z.number().int().describe("The inclusive starting index of the chunk range to list. Omitting both start_index and end_index returns all chunks.").optional()
|
|
11
11
|
}).describe("Request model for retrieving document chunks with pagination support.");
|
|
12
12
|
const RagieGetDocumentChunks_DocumentChunkSchema = zod.z.object({
|
|
13
|
-
id: zod.z.string().describe("Chunk identifier (UUID)."),
|
|
14
|
-
text: zod.z.string().describe("Chunk content text."),
|
|
13
|
+
id: zod.z.string().describe("Chunk identifier (UUID).").nullable(),
|
|
14
|
+
text: zod.z.string().describe("Chunk content text.").nullable(),
|
|
15
15
|
index: zod.z.number().int().default(-1).describe("Chunk sequence number. Default is -1.").nullable().optional(),
|
|
16
16
|
links: zod.z.object({}).describe("HREF and type mappings for chunk sources.").nullable().optional(),
|
|
17
17
|
metadata: zod.z.object({}).describe("Chunk-level metadata as a dictionary.").nullable().optional()
|
|
18
18
|
}).describe("Model representing a single document chunk.");
|
|
19
19
|
const RagieGetDocumentChunks_PaginationSchema = zod.z.object({
|
|
20
20
|
next_cursor: zod.z.string().describe("Cursor for retrieving the next page. Null if no more pages.").nullable().optional(),
|
|
21
|
-
total_count: zod.z.number().int().describe("Total number of matching chunks across all pages.")
|
|
21
|
+
total_count: zod.z.number().int().describe("Total number of matching chunks across all pages.").nullable()
|
|
22
22
|
}).describe("Model representing pagination information.");
|
|
23
23
|
const RagieGetDocumentChunksOutput = zod.z.object({
|
|
24
24
|
chunks: zod.z.array(RagieGetDocumentChunks_DocumentChunkSchema).describe("List of document chunks sorted by index in ascending order."),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-chunks.cjs","names":["z","action"],"sources":["../../src/actions/get-document-chunks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunksInput
|
|
1
|
+
{"version":3,"file":"get-document-chunks.cjs","names":["z","action"],"sources":["../../src/actions/get-document-chunks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunksInput = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination used to retrieve subsequent pages.\").optional(),\n end_index: z.number().int().describe(\"The inclusive ending index of the chunk range to list. Omitting both start_index and end_index returns all chunks.\").optional(),\n page_size: z.number().int().describe(\"The number of items per page (range: 1-100, default: 10).\").optional(),\n partition: z.string().describe(\"Header parameter scoping results to a specific partition.\").optional(),\n document_id: z.string().describe(\"The UUID of the document to retrieve chunks from.\"),\n start_index: z.number().int().describe(\"The inclusive starting index of the chunk range to list. Omitting both start_index and end_index returns all chunks.\").optional(),\n}).describe(\"Request model for retrieving document chunks with pagination support.\");\nconst RagieGetDocumentChunks_DocumentChunkSchema = z.object({\n id: z.string().describe(\"Chunk identifier (UUID).\").nullable(),\n text: z.string().describe(\"Chunk content text.\").nullable(),\n index: z.number().int().default(-1).describe(\"Chunk sequence number. Default is -1.\").nullable().optional(),\n links: z.object({}).describe(\"HREF and type mappings for chunk sources.\").nullable().optional(),\n metadata: z.object({}).describe(\"Chunk-level metadata as a dictionary.\").nullable().optional(),\n}).describe(\"Model representing a single document chunk.\");\nconst RagieGetDocumentChunks_PaginationSchema = z.object({\n next_cursor: z.string().describe(\"Cursor for retrieving the next page. Null if no more pages.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of matching chunks across all pages.\").nullable(),\n}).describe(\"Model representing pagination information.\");\nexport const RagieGetDocumentChunksOutput = z.object({\n chunks: z.array(RagieGetDocumentChunks_DocumentChunkSchema).describe(\"List of document chunks sorted by index in ascending order.\"),\n pagination: RagieGetDocumentChunks_PaginationSchema.nullable(),\n}).describe(\"Response model for retrieving document chunks with pagination.\");\n\nexport const ragieGetDocumentChunks = action(\"RAGIE_GET_DOCUMENT_CHUNKS\", {\n slug: \"ragie-get-document-chunks\",\n name: \"Get Document Chunks\",\n description: \"Tool to retrieve document chunks with pagination support. Lists all document chunks sorted by index in ascending order (max 100 items per page). Documents created prior to 9/18/2024 that have not been updated since have chunks sorted by ID instead of index.\",\n input: RagieGetDocumentChunksInput,\n output: RagieGetDocumentChunksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACpK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC3G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACrG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;AAC1K,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,6DAA6D;CAClI,YAAY,wCAAwC,SAAS;AAC/D,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-document-chunks.d.ts
|
|
4
|
-
declare const RagieGetDocumentChunksInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagieGetDocumentChunksInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
end_index: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
partition: z.ZodOptional<z.ZodString>;
|
|
9
|
+
document_id: z.ZodString;
|
|
10
|
+
start_index: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const RagieGetDocumentChunksOutput: z.ZodObject<{
|
|
13
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
text: z.ZodNullable<z.ZodString>;
|
|
16
|
+
index: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
17
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
18
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
total_count: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const ragieGetDocumentChunks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
document_id: string;
|
|
27
|
+
cursor?: string | undefined;
|
|
28
|
+
end_index?: number | undefined;
|
|
29
|
+
page_size?: number | undefined;
|
|
30
|
+
partition?: string | undefined;
|
|
31
|
+
start_index?: number | undefined;
|
|
32
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
33
|
//#endregion
|
|
8
34
|
export { ragieGetDocumentChunks };
|
|
9
35
|
//# sourceMappingURL=get-document-chunks.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-chunks.d.cts","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-document-chunks.d.cts","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-document-chunks.d.ts
|
|
4
|
-
declare const RagieGetDocumentChunksInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagieGetDocumentChunksInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
end_index: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
partition: z.ZodOptional<z.ZodString>;
|
|
9
|
+
document_id: z.ZodString;
|
|
10
|
+
start_index: z.ZodOptional<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const RagieGetDocumentChunksOutput: z.ZodObject<{
|
|
13
|
+
chunks: z.ZodArray<z.ZodObject<{
|
|
14
|
+
id: z.ZodNullable<z.ZodString>;
|
|
15
|
+
text: z.ZodNullable<z.ZodString>;
|
|
16
|
+
index: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
|
|
17
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
18
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
pagination: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
total_count: z.ZodNullable<z.ZodNumber>;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
declare const ragieGetDocumentChunks: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
26
|
+
document_id: string;
|
|
27
|
+
cursor?: string | undefined;
|
|
28
|
+
end_index?: number | undefined;
|
|
29
|
+
page_size?: number | undefined;
|
|
30
|
+
partition?: string | undefined;
|
|
31
|
+
start_index?: number | undefined;
|
|
32
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
33
|
//#endregion
|
|
8
34
|
export { ragieGetDocumentChunks };
|
|
9
35
|
//# sourceMappingURL=get-document-chunks.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-chunks.d.mts","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-document-chunks.d.mts","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -10,15 +10,15 @@ const RagieGetDocumentChunksInput = z.object({
|
|
|
10
10
|
start_index: z.number().int().describe("The inclusive starting index of the chunk range to list. Omitting both start_index and end_index returns all chunks.").optional()
|
|
11
11
|
}).describe("Request model for retrieving document chunks with pagination support.");
|
|
12
12
|
const RagieGetDocumentChunks_DocumentChunkSchema = z.object({
|
|
13
|
-
id: z.string().describe("Chunk identifier (UUID)."),
|
|
14
|
-
text: z.string().describe("Chunk content text."),
|
|
13
|
+
id: z.string().describe("Chunk identifier (UUID).").nullable(),
|
|
14
|
+
text: z.string().describe("Chunk content text.").nullable(),
|
|
15
15
|
index: z.number().int().default(-1).describe("Chunk sequence number. Default is -1.").nullable().optional(),
|
|
16
16
|
links: z.object({}).describe("HREF and type mappings for chunk sources.").nullable().optional(),
|
|
17
17
|
metadata: z.object({}).describe("Chunk-level metadata as a dictionary.").nullable().optional()
|
|
18
18
|
}).describe("Model representing a single document chunk.");
|
|
19
19
|
const RagieGetDocumentChunks_PaginationSchema = z.object({
|
|
20
20
|
next_cursor: z.string().describe("Cursor for retrieving the next page. Null if no more pages.").nullable().optional(),
|
|
21
|
-
total_count: z.number().int().describe("Total number of matching chunks across all pages.")
|
|
21
|
+
total_count: z.number().int().describe("Total number of matching chunks across all pages.").nullable()
|
|
22
22
|
}).describe("Model representing pagination information.");
|
|
23
23
|
const ragieGetDocumentChunks = action("RAGIE_GET_DOCUMENT_CHUNKS", {
|
|
24
24
|
slug: "ragie-get-document-chunks",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-chunks.mjs","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunksInput
|
|
1
|
+
{"version":3,"file":"get-document-chunks.mjs","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunksInput = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination used to retrieve subsequent pages.\").optional(),\n end_index: z.number().int().describe(\"The inclusive ending index of the chunk range to list. Omitting both start_index and end_index returns all chunks.\").optional(),\n page_size: z.number().int().describe(\"The number of items per page (range: 1-100, default: 10).\").optional(),\n partition: z.string().describe(\"Header parameter scoping results to a specific partition.\").optional(),\n document_id: z.string().describe(\"The UUID of the document to retrieve chunks from.\"),\n start_index: z.number().int().describe(\"The inclusive starting index of the chunk range to list. Omitting both start_index and end_index returns all chunks.\").optional(),\n}).describe(\"Request model for retrieving document chunks with pagination support.\");\nconst RagieGetDocumentChunks_DocumentChunkSchema = z.object({\n id: z.string().describe(\"Chunk identifier (UUID).\").nullable(),\n text: z.string().describe(\"Chunk content text.\").nullable(),\n index: z.number().int().default(-1).describe(\"Chunk sequence number. Default is -1.\").nullable().optional(),\n links: z.object({}).describe(\"HREF and type mappings for chunk sources.\").nullable().optional(),\n metadata: z.object({}).describe(\"Chunk-level metadata as a dictionary.\").nullable().optional(),\n}).describe(\"Model representing a single document chunk.\");\nconst RagieGetDocumentChunks_PaginationSchema = z.object({\n next_cursor: z.string().describe(\"Cursor for retrieving the next page. Null if no more pages.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of matching chunks across all pages.\").nullable(),\n}).describe(\"Model representing pagination information.\");\nexport const RagieGetDocumentChunksOutput = z.object({\n chunks: z.array(RagieGetDocumentChunks_DocumentChunkSchema).describe(\"List of document chunks sorted by index in ascending order.\"),\n pagination: RagieGetDocumentChunks_PaginationSchema.nullable(),\n}).describe(\"Response model for retrieving document chunks with pagination.\");\n\nexport const ragieGetDocumentChunks = action(\"RAGIE_GET_DOCUMENT_CHUNKS\", {\n slug: \"ragie-get-document-chunks\",\n name: \"Get Document Chunks\",\n description: \"Tool to retrieve document chunks with pagination support. Lists all document chunks sorted by index in ascending order (max 100 items per page). Documents created prior to 9/18/2024 that have not been updated since have chunks sorted by ID instead of index.\",\n input: RagieGetDocumentChunksInput,\n output: RagieGetDocumentChunksOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACpK,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC3G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CACrG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACpF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sHAAsH,CAAC,CAAC,SAAS;AAC1K,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAM,6CAA6C,EAAE,OAAO;CAC1D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAC1D,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,0CAA0C,EAAE,OAAO;CACvD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAMxD,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV0C,EAAE,OAAO;EACnD,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,6DAA6D;EAClI,YAAY,wCAAwC,SAAS;CAC/D,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ const RagieGetDocumentContentOutput = zod.z.object({
|
|
|
12
12
|
id: zod.z.string().describe("Document identifier (UUID).").nullable().optional(),
|
|
13
13
|
name: zod.z.string().describe("Document name.").nullable().optional(),
|
|
14
14
|
status: zod.z.string().describe("Document processing status.").nullable().optional(),
|
|
15
|
-
content: zod.z.string().describe("The document content in requested format."),
|
|
15
|
+
content: zod.z.string().describe("The document content in requested format.").nullable(),
|
|
16
16
|
metadata: zod.z.object({}).describe("Custom key-value metadata with string/number/boolean/array values.").nullable().optional(),
|
|
17
17
|
partition: zod.z.string().describe("Partition identifier.").nullable().optional(),
|
|
18
18
|
created_at: zod.z.string().describe("Creation timestamp.").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-content.cjs","names":["z","action"],"sources":["../../src/actions/get-document-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentContentInput
|
|
1
|
+
{"version":3,"file":"get-document-content.cjs","names":["z","action"],"sources":["../../src/actions/get-document-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentContentInput = z.object({\n range: z.string().describe(\"HTTP range header for partial content requests.\").optional(),\n download: z.boolean().describe(\"Whether to return content as file download. Defaults to false.\").optional(),\n partition: z.string().describe(\"An optional partition to scope the request to.\").optional(),\n media_type: z.string().describe(\"Format to return content in. Accepts: text/plain, audio/mpeg, video/mp4, image/webp, image/heic, image/bmp, image/png, image/jpeg, image/tiff, or application/json. Default returns content with text descriptions of non-textual media.\").optional(),\n document_id: z.string().describe(\"The UUID of the document to retrieve content for.\"),\n}).describe(\"Request model for retrieving document content by ID.\");\nexport const RagieGetDocumentContentOutput = z.object({\n id: z.string().describe(\"Document identifier (UUID).\").nullable().optional(),\n name: z.string().describe(\"Document name.\").nullable().optional(),\n status: z.string().describe(\"Document processing status.\").nullable().optional(),\n content: z.string().describe(\"The document content in requested format.\").nullable(),\n metadata: z.object({}).describe(\"Custom key-value metadata with string/number/boolean/array values.\").nullable().optional(),\n partition: z.string().describe(\"Partition identifier.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable().optional(),\n page_count: z.number().describe(\"Total page count.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable().optional(),\n chunk_count: z.number().int().describe(\"Number of document chunks.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier.\").nullable().optional(),\n}).describe(\"Response model for document content retrieval.\\nWhen media_type is application/json, returns full document metadata with content.\\nWhen media_type is text/plain or other formats, returns just the content.\");\n\nexport const ragieGetDocumentContent = action(\"RAGIE_GET_DOCUMENT_CONTENT\", {\n slug: \"ragie-get-document-content\",\n name: \"Get Document Content\",\n description: \"Tool to retrieve the content of a document by its ID. Use when you need to access the full content of a specific document. The media_type parameter can be used to request content in different formats.\",\n input: RagieGetDocumentContentInput,\n output: RagieGetDocumentContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC1G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS;CACrR,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AACtF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACnF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,SAAS,8MAA8M;AAE1N,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-document-content.d.ts
|
|
4
|
-
declare const RagieGetDocumentContentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagieGetDocumentContentInput: z.ZodObject<{
|
|
5
|
+
range: z.ZodOptional<z.ZodString>;
|
|
6
|
+
download: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
partition: z.ZodOptional<z.ZodString>;
|
|
8
|
+
media_type: z.ZodOptional<z.ZodString>;
|
|
9
|
+
document_id: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const RagieGetDocumentContentOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
content: z.ZodNullable<z.ZodString>;
|
|
16
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
17
|
+
partition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
page_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const ragieGetDocumentContent: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
document_id: string;
|
|
26
|
+
range?: string | undefined;
|
|
27
|
+
download?: boolean | undefined;
|
|
28
|
+
partition?: string | undefined;
|
|
29
|
+
media_type?: string | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { ragieGetDocumentContent };
|
|
9
33
|
//# sourceMappingURL=get-document-content.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-content.d.cts","names":[],"sources":["../../src/actions/get-document-content.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-document-content.d.cts","names":[],"sources":["../../src/actions/get-document-content.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;cAO5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-document-content.d.ts
|
|
4
|
-
declare const RagieGetDocumentContentInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagieGetDocumentContentInput: z.ZodObject<{
|
|
5
|
+
range: z.ZodOptional<z.ZodString>;
|
|
6
|
+
download: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
partition: z.ZodOptional<z.ZodString>;
|
|
8
|
+
media_type: z.ZodOptional<z.ZodString>;
|
|
9
|
+
document_id: z.ZodString;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
declare const RagieGetDocumentContentOutput: z.ZodObject<{
|
|
12
|
+
id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
content: z.ZodNullable<z.ZodString>;
|
|
16
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
|
|
17
|
+
partition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
page_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
20
|
+
updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
22
|
+
external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
declare const ragieGetDocumentContent: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
25
|
+
document_id: string;
|
|
26
|
+
range?: string | undefined;
|
|
27
|
+
download?: boolean | undefined;
|
|
28
|
+
partition?: string | undefined;
|
|
29
|
+
media_type?: string | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { ragieGetDocumentContent };
|
|
9
33
|
//# sourceMappingURL=get-document-content.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-content.d.mts","names":[],"sources":["../../src/actions/get-document-content.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-document-content.d.mts","names":[],"sources":["../../src/actions/get-document-content.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;cAO5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -15,7 +15,7 @@ const ragieGetDocumentContent = action("RAGIE_GET_DOCUMENT_CONTENT", {
|
|
|
15
15
|
id: z.string().describe("Document identifier (UUID).").nullable().optional(),
|
|
16
16
|
name: z.string().describe("Document name.").nullable().optional(),
|
|
17
17
|
status: z.string().describe("Document processing status.").nullable().optional(),
|
|
18
|
-
content: z.string().describe("The document content in requested format."),
|
|
18
|
+
content: z.string().describe("The document content in requested format.").nullable(),
|
|
19
19
|
metadata: z.object({}).describe("Custom key-value metadata with string/number/boolean/array values.").nullable().optional(),
|
|
20
20
|
partition: z.string().describe("Partition identifier.").nullable().optional(),
|
|
21
21
|
created_at: z.string().describe("Creation timestamp.").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-content.mjs","names":[],"sources":["../../src/actions/get-document-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentContentInput
|
|
1
|
+
{"version":3,"file":"get-document-content.mjs","names":[],"sources":["../../src/actions/get-document-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentContentInput = z.object({\n range: z.string().describe(\"HTTP range header for partial content requests.\").optional(),\n download: z.boolean().describe(\"Whether to return content as file download. Defaults to false.\").optional(),\n partition: z.string().describe(\"An optional partition to scope the request to.\").optional(),\n media_type: z.string().describe(\"Format to return content in. Accepts: text/plain, audio/mpeg, video/mp4, image/webp, image/heic, image/bmp, image/png, image/jpeg, image/tiff, or application/json. Default returns content with text descriptions of non-textual media.\").optional(),\n document_id: z.string().describe(\"The UUID of the document to retrieve content for.\"),\n}).describe(\"Request model for retrieving document content by ID.\");\nexport const RagieGetDocumentContentOutput = z.object({\n id: z.string().describe(\"Document identifier (UUID).\").nullable().optional(),\n name: z.string().describe(\"Document name.\").nullable().optional(),\n status: z.string().describe(\"Document processing status.\").nullable().optional(),\n content: z.string().describe(\"The document content in requested format.\").nullable(),\n metadata: z.object({}).describe(\"Custom key-value metadata with string/number/boolean/array values.\").nullable().optional(),\n partition: z.string().describe(\"Partition identifier.\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp.\").nullable().optional(),\n page_count: z.number().describe(\"Total page count.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp.\").nullable().optional(),\n chunk_count: z.number().int().describe(\"Number of document chunks.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier.\").nullable().optional(),\n}).describe(\"Response model for document content retrieval.\\nWhen media_type is application/json, returns full document metadata with content.\\nWhen media_type is text/plain or other formats, returns just the content.\");\n\nexport const ragieGetDocumentContent = action(\"RAGIE_GET_DOCUMENT_CONTENT\", {\n slug: \"ragie-get-document-content\",\n name: \"Get Document Content\",\n description: \"Tool to retrieve the content of a document by its ID. Use when you need to access the full content of a specific document. The media_type parameter can be used to request content in different formats.\",\n input: RagieGetDocumentContentInput,\n output: RagieGetDocumentContentOutput,\n});\n"],"mappings":";;AAyBA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzB0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACvF,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EAC1G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0OAA0O,CAAC,CAAC,SAAS;EACrR,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACtF,CAAC,CAAC,CAAC,SAAS,sDAmBH;CACP,QAnB2C,EAAE,OAAO;EACpD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACnF,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,SAAS,8MAOF;AACV,CAAC"}
|
|
@@ -6,8 +6,8 @@ const RagieGetDocumentSummaryInput = zod.z.object({
|
|
|
6
6
|
document_id: zod.z.string().describe("The unique identifier of the document (UUID format).")
|
|
7
7
|
}).describe("Request model for retrieving a document summary.");
|
|
8
8
|
const RagieGetDocumentSummaryOutput = zod.z.object({
|
|
9
|
-
summary: zod.z.string().describe("The LLM-generated summary text of the document."),
|
|
10
|
-
document_id: zod.z.string().describe("The ID of the summarized document.")
|
|
9
|
+
summary: zod.z.string().describe("The LLM-generated summary text of the document.").nullable(),
|
|
10
|
+
document_id: zod.z.string().describe("The ID of the summarized document.").nullable()
|
|
11
11
|
}).describe("Response model for document summary.");
|
|
12
12
|
const ragieGetDocumentSummary = require_action.action("RAGIE_GET_DOCUMENT_SUMMARY", {
|
|
13
13
|
slug: "ragie-get-document-summary",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-summary.cjs","names":["z","action"],"sources":["../../src/actions/get-document-summary.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentSummaryInput
|
|
1
|
+
{"version":3,"file":"get-document-summary.cjs","names":["z","action"],"sources":["../../src/actions/get-document-summary.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentSummaryInput = z.object({\n partition: z.string().describe(\"Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition; older accounts scope to all partitions.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n}).describe(\"Request model for retrieving a document summary.\");\nexport const RagieGetDocumentSummaryOutput = z.object({\n summary: z.string().describe(\"The LLM-generated summary text of the document.\").nullable(),\n document_id: z.string().describe(\"The ID of the summarized document.\").nullable(),\n}).describe(\"Response model for document summary.\");\n\nexport const ragieGetDocumentSummary = action(\"RAGIE_GET_DOCUMENT_SUMMARY\", {\n slug: \"ragie-get-document-summary\",\n name: \"Get Document Summary\",\n description: \"Tool to retrieve an LLM-generated summary of a document by its ID. Use when you need to get a concise summary of a document's content.\",\n input: RagieGetDocumentSummaryInput,\n output: RagieGetDocumentSummaryOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;CAC3L,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACzF,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAC9D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,SAAS,sCAAsC;AAElD,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-document-summary.d.ts
|
|
4
|
-
declare const RagieGetDocumentSummaryInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagieGetDocumentSummaryInput: z.ZodObject<{
|
|
5
|
+
partition: z.ZodOptional<z.ZodString>;
|
|
6
|
+
document_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RagieGetDocumentSummaryOutput: z.ZodObject<{
|
|
9
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
10
|
+
document_id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const ragieGetDocumentSummary: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
document_id: string;
|
|
14
|
+
partition?: string | undefined;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { ragieGetDocumentSummary };
|
|
9
18
|
//# sourceMappingURL=get-document-summary.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-summary.d.cts","names":[],"sources":["../../src/actions/get-document-summary.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-document-summary.d.cts","names":[],"sources":["../../src/actions/get-document-summary.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-document-summary.d.ts
|
|
4
|
-
declare const RagieGetDocumentSummaryInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const RagieGetDocumentSummaryInput: z.ZodObject<{
|
|
5
|
+
partition: z.ZodOptional<z.ZodString>;
|
|
6
|
+
document_id: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const RagieGetDocumentSummaryOutput: z.ZodObject<{
|
|
9
|
+
summary: z.ZodNullable<z.ZodString>;
|
|
10
|
+
document_id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const ragieGetDocumentSummary: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
13
|
+
document_id: string;
|
|
14
|
+
partition?: string | undefined;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { ragieGetDocumentSummary };
|
|
9
18
|
//# sourceMappingURL=get-document-summary.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-summary.d.mts","names":[],"sources":["../../src/actions/get-document-summary.ts"],"mappings":";;;cAIa,4BAAA,
|
|
1
|
+
{"version":3,"file":"get-document-summary.d.mts","names":[],"sources":["../../src/actions/get-document-summary.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;cAI5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAK7B,uBAAA,gCAAuB,wBAAA"}
|
|
@@ -9,8 +9,8 @@ const ragieGetDocumentSummary = action("RAGIE_GET_DOCUMENT_SUMMARY", {
|
|
|
9
9
|
document_id: z.string().describe("The unique identifier of the document (UUID format).")
|
|
10
10
|
}).describe("Request model for retrieving a document summary."),
|
|
11
11
|
output: z.object({
|
|
12
|
-
summary: z.string().describe("The LLM-generated summary text of the document."),
|
|
13
|
-
document_id: z.string().describe("The ID of the summarized document.")
|
|
12
|
+
summary: z.string().describe("The LLM-generated summary text of the document.").nullable(),
|
|
13
|
+
document_id: z.string().describe("The ID of the summarized document.").nullable()
|
|
14
14
|
}).describe("Response model for document summary.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-document-summary.mjs","names":[],"sources":["../../src/actions/get-document-summary.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentSummaryInput
|
|
1
|
+
{"version":3,"file":"get-document-summary.mjs","names":[],"sources":["../../src/actions/get-document-summary.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentSummaryInput = z.object({\n partition: z.string().describe(\"Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition; older accounts scope to all partitions.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n}).describe(\"Request model for retrieving a document summary.\");\nexport const RagieGetDocumentSummaryOutput = z.object({\n summary: z.string().describe(\"The LLM-generated summary text of the document.\").nullable(),\n document_id: z.string().describe(\"The ID of the summarized document.\").nullable(),\n}).describe(\"Response model for document summary.\");\n\nexport const ragieGetDocumentSummary = action(\"RAGIE_GET_DOCUMENT_SUMMARY\", {\n slug: \"ragie-get-document-summary\",\n name: \"Get Document Summary\",\n description: \"Tool to retrieve an LLM-generated summary of a document by its ID. Use when you need to get a concise summary of a document's content.\",\n input: RagieGetDocumentSummaryInput,\n output: RagieGetDocumentSummaryOutput,\n});\n"],"mappings":";;AAaA,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb0C,EAAE,OAAO;EACnD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ,CAAC,CAAC,SAAS;EAC3L,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACzF,CAAC,CAAC,CAAC,SAAS,kDAUH;CACP,QAV2C,EAAE,OAAO;EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,SAAS,sCAOF;AACV,CAAC"}
|
|
@@ -6,15 +6,15 @@ const RagieGetDocumentInput = zod.z.object({
|
|
|
6
6
|
document_id: zod.z.string().describe("The unique identifier of the document in UUID format (e.g., 00000000-0000-0000-0000-000000000000).")
|
|
7
7
|
}).describe("Request model for retrieving a specific document by its ID.");
|
|
8
8
|
const RagieGetDocumentOutput = zod.z.object({
|
|
9
|
-
id: zod.z.string().describe("Document identifier (UUID)."),
|
|
10
|
-
name: zod.z.string().describe("Document name."),
|
|
9
|
+
id: zod.z.string().describe("Document identifier (UUID).").nullable(),
|
|
10
|
+
name: zod.z.string().describe("Document name.").nullable(),
|
|
11
11
|
errors: zod.z.array(zod.z.string()).describe("List of processing error messages, if any."),
|
|
12
|
-
status: zod.z.string().describe("Processing status of the document."),
|
|
12
|
+
status: zod.z.string().describe("Processing status of the document.").nullable(),
|
|
13
13
|
metadata: zod.z.object({}).describe("Custom key-value metadata associated with the document."),
|
|
14
|
-
partition: zod.z.string().describe("Associated partition identifier."),
|
|
15
|
-
created_at: zod.z.string().describe("Document creation timestamp (ISO8601)."),
|
|
14
|
+
partition: zod.z.string().describe("Associated partition identifier.").nullable(),
|
|
15
|
+
created_at: zod.z.string().describe("Document creation timestamp (ISO8601).").nullable(),
|
|
16
16
|
page_count: zod.z.number().describe("Total number of pages in the document.").nullable().optional(),
|
|
17
|
-
updated_at: zod.z.string().describe("Last modification timestamp (ISO8601)."),
|
|
17
|
+
updated_at: zod.z.string().describe("Last modification timestamp (ISO8601).").nullable(),
|
|
18
18
|
chunk_count: zod.z.number().int().describe("Number of text chunks extracted from the document.").nullable().optional(),
|
|
19
19
|
external_id: zod.z.string().describe("External system identifier for the document.").nullable().optional()
|
|
20
20
|
}).describe("Response model containing document details, metadata, and processing status.");
|