@keystrokehq/ragie 0.1.2 → 0.1.4

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.
Files changed (193) hide show
  1. package/dist/actions/create-document-from-url.cjs +1 -1
  2. package/dist/actions/create-document-from-url.cjs.map +1 -1
  3. package/dist/actions/create-document-from-url.d.cts +1 -1
  4. package/dist/actions/create-document-from-url.d.mts +1 -1
  5. package/dist/actions/create-document-from-url.mjs +1 -1
  6. package/dist/actions/create-document-from-url.mjs.map +1 -1
  7. package/dist/actions/create-document-raw.cjs +2 -2
  8. package/dist/actions/create-document-raw.cjs.map +1 -1
  9. package/dist/actions/create-document-raw.d.cts +3 -3
  10. package/dist/actions/create-document-raw.d.mts +3 -3
  11. package/dist/actions/create-document-raw.mjs +2 -2
  12. package/dist/actions/create-document-raw.mjs.map +1 -1
  13. package/dist/actions/create-document.cjs +2 -2
  14. package/dist/actions/create-document.cjs.map +1 -1
  15. package/dist/actions/create-document.d.cts +3 -3
  16. package/dist/actions/create-document.d.mts +3 -3
  17. package/dist/actions/create-document.mjs +2 -2
  18. package/dist/actions/create-document.mjs.map +1 -1
  19. package/dist/actions/create-instruction.cjs +1 -1
  20. package/dist/actions/create-instruction.cjs.map +1 -1
  21. package/dist/actions/create-instruction.d.cts +1 -1
  22. package/dist/actions/create-instruction.d.mts +1 -1
  23. package/dist/actions/create-instruction.mjs +1 -1
  24. package/dist/actions/create-instruction.mjs.map +1 -1
  25. package/dist/actions/create-oauth-redirect-url.cjs +1 -1
  26. package/dist/actions/create-oauth-redirect-url.cjs.map +1 -1
  27. package/dist/actions/create-oauth-redirect-url.d.cts +1 -1
  28. package/dist/actions/create-oauth-redirect-url.d.mts +1 -1
  29. package/dist/actions/create-oauth-redirect-url.mjs +1 -1
  30. package/dist/actions/create-oauth-redirect-url.mjs.map +1 -1
  31. package/dist/actions/create-partition-partitions-post.cjs +6 -6
  32. package/dist/actions/create-partition-partitions-post.cjs.map +1 -1
  33. package/dist/actions/create-partition-partitions-post.d.cts +12 -12
  34. package/dist/actions/create-partition-partitions-post.d.mts +12 -12
  35. package/dist/actions/create-partition-partitions-post.mjs +6 -6
  36. package/dist/actions/create-partition-partitions-post.mjs.map +1 -1
  37. package/dist/actions/delete-document.cjs +1 -1
  38. package/dist/actions/delete-document.cjs.map +1 -1
  39. package/dist/actions/delete-document.d.cts +1 -1
  40. package/dist/actions/delete-document.d.mts +1 -1
  41. package/dist/actions/delete-document.mjs +1 -1
  42. package/dist/actions/delete-document.mjs.map +1 -1
  43. package/dist/actions/delete-instruction.cjs +1 -1
  44. package/dist/actions/delete-instruction.cjs.map +1 -1
  45. package/dist/actions/delete-instruction.d.cts +1 -1
  46. package/dist/actions/delete-instruction.d.mts +1 -1
  47. package/dist/actions/delete-instruction.mjs +1 -1
  48. package/dist/actions/delete-instruction.mjs.map +1 -1
  49. package/dist/actions/delete-partition.cjs +1 -1
  50. package/dist/actions/delete-partition.cjs.map +1 -1
  51. package/dist/actions/delete-partition.d.cts +1 -1
  52. package/dist/actions/delete-partition.d.mts +1 -1
  53. package/dist/actions/delete-partition.mjs +1 -1
  54. package/dist/actions/delete-partition.mjs.map +1 -1
  55. package/dist/actions/get-document-chunk-content.cjs +1 -1
  56. package/dist/actions/get-document-chunk-content.cjs.map +1 -1
  57. package/dist/actions/get-document-chunk-content.d.cts +1 -1
  58. package/dist/actions/get-document-chunk-content.d.mts +1 -1
  59. package/dist/actions/get-document-chunk-content.mjs +1 -1
  60. package/dist/actions/get-document-chunk-content.mjs.map +1 -1
  61. package/dist/actions/get-document-chunk.cjs +4 -4
  62. package/dist/actions/get-document-chunk.cjs.map +1 -1
  63. package/dist/actions/get-document-chunk.d.cts +4 -4
  64. package/dist/actions/get-document-chunk.d.mts +4 -4
  65. package/dist/actions/get-document-chunk.mjs +4 -4
  66. package/dist/actions/get-document-chunk.mjs.map +1 -1
  67. package/dist/actions/get-document-chunks.cjs +5 -5
  68. package/dist/actions/get-document-chunks.cjs.map +1 -1
  69. package/dist/actions/get-document-chunks.d.cts +5 -5
  70. package/dist/actions/get-document-chunks.d.mts +5 -5
  71. package/dist/actions/get-document-chunks.mjs +5 -5
  72. package/dist/actions/get-document-chunks.mjs.map +1 -1
  73. package/dist/actions/get-document-content.cjs +2 -2
  74. package/dist/actions/get-document-content.cjs.map +1 -1
  75. package/dist/actions/get-document-content.d.cts +2 -2
  76. package/dist/actions/get-document-content.d.mts +2 -2
  77. package/dist/actions/get-document-content.mjs +2 -2
  78. package/dist/actions/get-document-content.mjs.map +1 -1
  79. package/dist/actions/get-document-summary.cjs +1 -1
  80. package/dist/actions/get-document-summary.cjs.map +1 -1
  81. package/dist/actions/get-document-summary.d.cts +1 -1
  82. package/dist/actions/get-document-summary.d.mts +1 -1
  83. package/dist/actions/get-document-summary.mjs +1 -1
  84. package/dist/actions/get-document-summary.mjs.map +1 -1
  85. package/dist/actions/get-document.cjs +2 -2
  86. package/dist/actions/get-document.cjs.map +1 -1
  87. package/dist/actions/get-document.d.cts +2 -2
  88. package/dist/actions/get-document.d.mts +2 -2
  89. package/dist/actions/get-document.mjs +2 -2
  90. package/dist/actions/get-document.mjs.map +1 -1
  91. package/dist/actions/get-partition.cjs +3 -3
  92. package/dist/actions/get-partition.cjs.map +1 -1
  93. package/dist/actions/get-partition.d.cts +3 -3
  94. package/dist/actions/get-partition.d.mts +3 -3
  95. package/dist/actions/get-partition.mjs +3 -3
  96. package/dist/actions/get-partition.mjs.map +1 -1
  97. package/dist/actions/get-response.cjs +10 -10
  98. package/dist/actions/get-response.cjs.map +1 -1
  99. package/dist/actions/get-response.d.cts +14 -14
  100. package/dist/actions/get-response.d.mts +14 -14
  101. package/dist/actions/get-response.mjs +10 -10
  102. package/dist/actions/get-response.mjs.map +1 -1
  103. package/dist/actions/list-connection-source-types.cjs +2 -2
  104. package/dist/actions/list-connection-source-types.cjs.map +1 -1
  105. package/dist/actions/list-connection-source-types.d.cts +2 -2
  106. package/dist/actions/list-connection-source-types.d.mts +2 -2
  107. package/dist/actions/list-connection-source-types.mjs +2 -2
  108. package/dist/actions/list-connection-source-types.mjs.map +1 -1
  109. package/dist/actions/list-connections-connections-get.cjs +3 -3
  110. package/dist/actions/list-connections-connections-get.cjs.map +1 -1
  111. package/dist/actions/list-connections-connections-get.d.cts +3 -3
  112. package/dist/actions/list-connections-connections-get.d.mts +3 -3
  113. package/dist/actions/list-connections-connections-get.mjs +3 -3
  114. package/dist/actions/list-connections-connections-get.mjs.map +1 -1
  115. package/dist/actions/list-documents.cjs +4 -4
  116. package/dist/actions/list-documents.cjs.map +1 -1
  117. package/dist/actions/list-documents.d.cts +4 -4
  118. package/dist/actions/list-documents.d.mts +4 -4
  119. package/dist/actions/list-documents.mjs +4 -4
  120. package/dist/actions/list-documents.mjs.map +1 -1
  121. package/dist/actions/list-entities-by-document.cjs +4 -4
  122. package/dist/actions/list-entities-by-document.cjs.map +1 -1
  123. package/dist/actions/list-entities-by-document.d.cts +4 -4
  124. package/dist/actions/list-entities-by-document.d.mts +4 -4
  125. package/dist/actions/list-entities-by-document.mjs +4 -4
  126. package/dist/actions/list-entities-by-document.mjs.map +1 -1
  127. package/dist/actions/list-entities-by-instruction.cjs +4 -4
  128. package/dist/actions/list-entities-by-instruction.cjs.map +1 -1
  129. package/dist/actions/list-entities-by-instruction.d.cts +4 -4
  130. package/dist/actions/list-entities-by-instruction.d.mts +4 -4
  131. package/dist/actions/list-entities-by-instruction.mjs +4 -4
  132. package/dist/actions/list-entities-by-instruction.mjs.map +1 -1
  133. package/dist/actions/list-instructions.cjs +2 -2
  134. package/dist/actions/list-instructions.cjs.map +1 -1
  135. package/dist/actions/list-instructions.d.cts +2 -2
  136. package/dist/actions/list-instructions.d.mts +2 -2
  137. package/dist/actions/list-instructions.mjs +2 -2
  138. package/dist/actions/list-instructions.mjs.map +1 -1
  139. package/dist/actions/list-partitions.cjs +4 -4
  140. package/dist/actions/list-partitions.cjs.map +1 -1
  141. package/dist/actions/list-partitions.d.cts +4 -4
  142. package/dist/actions/list-partitions.d.mts +4 -4
  143. package/dist/actions/list-partitions.mjs +4 -4
  144. package/dist/actions/list-partitions.mjs.map +1 -1
  145. package/dist/actions/patch-document-metadata.cjs +3 -3
  146. package/dist/actions/patch-document-metadata.cjs.map +1 -1
  147. package/dist/actions/patch-document-metadata.d.cts +4 -4
  148. package/dist/actions/patch-document-metadata.d.mts +4 -4
  149. package/dist/actions/patch-document-metadata.mjs +3 -3
  150. package/dist/actions/patch-document-metadata.mjs.map +1 -1
  151. package/dist/actions/retrieve.cjs +2 -2
  152. package/dist/actions/retrieve.cjs.map +1 -1
  153. package/dist/actions/retrieve.d.cts +2 -2
  154. package/dist/actions/retrieve.d.mts +2 -2
  155. package/dist/actions/retrieve.mjs +2 -2
  156. package/dist/actions/retrieve.mjs.map +1 -1
  157. package/dist/actions/set-partition-limits.cjs +3 -3
  158. package/dist/actions/set-partition-limits.cjs.map +1 -1
  159. package/dist/actions/set-partition-limits.d.cts +3 -3
  160. package/dist/actions/set-partition-limits.d.mts +3 -3
  161. package/dist/actions/set-partition-limits.mjs +3 -3
  162. package/dist/actions/set-partition-limits.mjs.map +1 -1
  163. package/dist/actions/update-document-from-url.cjs +2 -2
  164. package/dist/actions/update-document-from-url.cjs.map +1 -1
  165. package/dist/actions/update-document-from-url.d.cts +3 -2
  166. package/dist/actions/update-document-from-url.d.mts +3 -2
  167. package/dist/actions/update-document-from-url.mjs +2 -2
  168. package/dist/actions/update-document-from-url.mjs.map +1 -1
  169. package/dist/actions/update-document-raw.cjs +1 -1
  170. package/dist/actions/update-document-raw.cjs.map +1 -1
  171. package/dist/actions/update-document-raw.d.cts +1 -1
  172. package/dist/actions/update-document-raw.d.mts +1 -1
  173. package/dist/actions/update-document-raw.mjs +1 -1
  174. package/dist/actions/update-document-raw.mjs.map +1 -1
  175. package/dist/actions/update-instruction.cjs +2 -2
  176. package/dist/actions/update-instruction.cjs.map +1 -1
  177. package/dist/actions/update-instruction.d.cts +2 -2
  178. package/dist/actions/update-instruction.d.mts +2 -2
  179. package/dist/actions/update-instruction.mjs +2 -2
  180. package/dist/actions/update-instruction.mjs.map +1 -1
  181. package/dist/actions/update-partition.cjs +3 -3
  182. package/dist/actions/update-partition.cjs.map +1 -1
  183. package/dist/actions/update-partition.d.cts +3 -3
  184. package/dist/actions/update-partition.d.mts +3 -3
  185. package/dist/actions/update-partition.mjs +3 -3
  186. package/dist/actions/update-partition.mjs.map +1 -1
  187. package/dist/catalog.cjs +1 -1
  188. package/dist/catalog.cjs.map +1 -1
  189. package/dist/catalog.d.cts +1 -1
  190. package/dist/catalog.d.mts +1 -1
  191. package/dist/catalog.mjs +1 -1
  192. package/dist/catalog.mjs.map +1 -1
  193. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-chunk-content.mjs","names":[],"sources":["../../src/actions/get-document-chunk-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunkContentInput = z.object({\n chunk_id: z.string().describe(\"The unique identifier of the chunk (UUID format).\"),\n download: z.boolean().default(false).describe(\"Whether to return the content as a file download or a raw stream. Default is false.\").optional(),\n partition: z.string().describe(\"Optional partition identifier to scope the request for multi-tenant isolation.\").optional(),\n media_type: z.enum([\"text/plain\", \"audio/mpeg\", \"video/mp4\", \"image/webp\", \"image/heic\", \"image/bmp\", \"image/png\", \"image/jpeg\", \"image/tiff\"]).describe(\"Desired output format as MIME type. If not specified, returns the content in its original format.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n range_header: z.string().describe(\"Standard HTTP range header for byte-range requests (partial content), e.g., 'bytes=0-1023'.\").optional(),\n}).describe(\"Request model for retrieving document chunk content.\");\nexport const RagieGetDocumentChunkContentOutput = z.object({\n content: z.string().describe(\"The chunk content. For text/plain, contains the text. For binary formats, contains base64-encoded data or URL to the content.\").nullable(),\n content_type: z.string().describe(\"The MIME type of the returned content.\").nullable().optional(),\n content_length: z.number().int().describe(\"The size of the content in bytes.\").nullable().optional(),\n}).describe(\"Response model for document chunk content.\");\n\nexport const ragieGetDocumentChunkContent = action(\"RAGIE_GET_DOCUMENT_CHUNK_CONTENT\", {\n slug: \"ragie-get-document-chunk-content\",\n name: \"Get Document Chunk Content\",\n description: \"Tool to retrieve document chunk content in requested format with streaming support for media. Use when you need to get the actual content of a specific chunk from a document.\",\n input: RagieGetDocumentChunkContentInput,\n output: RagieGetDocumentChunkContentOutput,\n});\n"],"mappings":";;AAkBA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB+C,EAAE,OAAO;EACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EACjF,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC9I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,KAAK;GAAC;GAAc;GAAc;GAAa;GAAc;GAAc;GAAa;GAAa;GAAc;EAAY,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EACvQ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,sDAWH;CACP,QAXgD,EAAE,OAAO;EACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;EACvK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"get-document-chunk-content.mjs","names":[],"sources":["../../src/actions/get-document-chunk-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunkContentInput = z.object({\n chunk_id: z.string().describe(\"The unique identifier of the chunk (UUID format).\"),\n download: z.boolean().default(false).describe(\"Whether to return the content as a file download or a raw stream. Default is false.\").optional(),\n partition: z.string().describe(\"Optional partition identifier to scope the request for multi-tenant isolation.\").optional(),\n media_type: z.enum([\"text/plain\", \"audio/mpeg\", \"video/mp4\", \"image/webp\", \"image/heic\", \"image/bmp\", \"image/png\", \"image/jpeg\", \"image/tiff\"]).describe(\"Desired output format as MIME type. If not specified, returns the content in its original format.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n range_header: z.string().describe(\"Standard HTTP range header for byte-range requests (partial content), e.g., 'bytes=0-1023'.\").optional(),\n}).describe(\"Request model for retrieving document chunk content.\");\nexport const RagieGetDocumentChunkContentOutput = z.object({\n content: z.string().describe(\"The chunk content. For text/plain, contains the text. For binary formats, contains base64-encoded data or URL to the content.\").nullable(),\n content_type: z.string().describe(\"The MIME type of the returned content.\").nullable().optional(),\n content_length: z.number().int().describe(\"The size of the content in bytes.\").nullable().optional(),\n}).passthrough().describe(\"Response model for document chunk content.\");\n\nexport const ragieGetDocumentChunkContent = action(\"RAGIE_GET_DOCUMENT_CHUNK_CONTENT\", {\n slug: \"ragie-get-document-chunk-content\",\n name: \"Get Document Chunk Content\",\n description: \"Tool to retrieve document chunk content in requested format with streaming support for media. Use when you need to get the actual content of a specific chunk from a document.\",\n input: RagieGetDocumentChunkContentInput,\n output: RagieGetDocumentChunkContentOutput,\n});\n"],"mappings":";;AAkBA,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlB+C,EAAE,OAAO;EACxD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;EACjF,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EAC9I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;EAC1H,YAAY,EAAE,KAAK;GAAC;GAAc;GAAc;GAAa;GAAc;GAAc;GAAa;GAAa;GAAc;EAAY,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;EACvQ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC5I,CAAC,CAAC,CAAC,SAAS,sDAWH;CACP,QAXgD,EAAE,OAAO;EACzD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;EACvK,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -6,16 +6,16 @@ const RagieGetDocumentChunkInput = zod.z.object({
6
6
  partition: zod.z.string().describe("Optional partition to scope the request; if omitted, defaults to the default partition for newer accounts.").optional(),
7
7
  document_id: zod.z.string().describe("The ID of the document (UUID format).")
8
8
  }).describe("Request model for retrieving a document chunk by document and chunk ID.");
9
- const RagieGetDocumentChunk_ChunkMetadataSchema = zod.z.object({}).describe("Custom chunk metadata.");
10
- const RagieGetDocumentChunk_ModalityDataSchema = zod.z.object({}).describe("Additional data for audio/video chunks, including word-level timestamps.");
9
+ const RagieGetDocumentChunk_ChunkMetadataSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom chunk metadata.");
10
+ const RagieGetDocumentChunk_ModalityDataSchema = zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional data for audio/video chunks, including word-level timestamps.");
11
11
  const RagieGetDocumentChunkOutput = zod.z.object({
12
12
  id: zod.z.string().describe("The chunk identifier (UUID).").nullable(),
13
13
  text: zod.z.string().describe("Chunk content.").nullable(),
14
14
  index: zod.z.number().int().describe("Position within document (default: -1).").nullable(),
15
- links: zod.z.object({}).describe("Dictionary of Link objects with href and type properties.").nullable().optional(),
15
+ links: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Dictionary of Link objects with href and type properties.").nullable().optional(),
16
16
  metadata: RagieGetDocumentChunk_ChunkMetadataSchema.nullable().optional(),
17
17
  modality_data: RagieGetDocumentChunk_ModalityDataSchema.nullable().optional()
18
- }).describe("Response model for document chunk details.");
18
+ }).passthrough().describe("Response model for document chunk details.");
19
19
  const ragieGetDocumentChunk = require_action.action("RAGIE_GET_DOCUMENT_CHUNK", {
20
20
  slug: "ragie-get-document-chunk",
21
21
  name: "Get Document Chunk",
@@ -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 = 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
+ {"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.record(z.string(), z.unknown()).describe(\"Custom chunk metadata.\");\nconst RagieGetDocumentChunk_ModalityDataSchema = z.record(z.string(), z.unknown()).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.record(z.string(), z.unknown()).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}).passthrough().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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACrH,MAAM,2CAA2CA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtK,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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;CACxE,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;AAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,10 +10,10 @@ declare const RagieGetDocumentChunkOutput: z.ZodObject<{
10
10
  id: z.ZodNullable<z.ZodString>;
11
11
  text: z.ZodNullable<z.ZodString>;
12
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>;
13
+ links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ modality_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
+ }, z.core.$loose>;
17
17
  declare const ragieGetDocumentChunk: import("@keystrokehq/action").WorkflowActionDefinition<{
18
18
  chunk_id: string;
19
19
  document_id: string;
@@ -10,10 +10,10 @@ declare const RagieGetDocumentChunkOutput: z.ZodObject<{
10
10
  id: z.ZodNullable<z.ZodString>;
11
11
  text: z.ZodNullable<z.ZodString>;
12
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>;
13
+ links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
14
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ modality_data: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
16
+ }, z.core.$loose>;
17
17
  declare const ragieGetDocumentChunk: import("@keystrokehq/action").WorkflowActionDefinition<{
18
18
  chunk_id: string;
19
19
  document_id: string;
@@ -6,8 +6,8 @@ const RagieGetDocumentChunkInput = z.object({
6
6
  partition: z.string().describe("Optional partition to scope the request; if omitted, defaults to the default partition for newer accounts.").optional(),
7
7
  document_id: z.string().describe("The ID of the document (UUID format).")
8
8
  }).describe("Request model for retrieving a document chunk by document and chunk ID.");
9
- const RagieGetDocumentChunk_ChunkMetadataSchema = z.object({}).describe("Custom chunk metadata.");
10
- const RagieGetDocumentChunk_ModalityDataSchema = z.object({}).describe("Additional data for audio/video chunks, including word-level timestamps.");
9
+ const RagieGetDocumentChunk_ChunkMetadataSchema = z.record(z.string(), z.unknown()).describe("Custom chunk metadata.");
10
+ const RagieGetDocumentChunk_ModalityDataSchema = z.record(z.string(), z.unknown()).describe("Additional data for audio/video chunks, including word-level timestamps.");
11
11
  const ragieGetDocumentChunk = action("RAGIE_GET_DOCUMENT_CHUNK", {
12
12
  slug: "ragie-get-document-chunk",
13
13
  name: "Get Document Chunk",
@@ -17,10 +17,10 @@ const ragieGetDocumentChunk = action("RAGIE_GET_DOCUMENT_CHUNK", {
17
17
  id: z.string().describe("The chunk identifier (UUID).").nullable(),
18
18
  text: z.string().describe("Chunk content.").nullable(),
19
19
  index: z.number().int().describe("Position within document (default: -1).").nullable(),
20
- links: z.object({}).describe("Dictionary of Link objects with href and type properties.").nullable().optional(),
20
+ links: z.record(z.string(), z.unknown()).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()
23
- }).describe("Response model for document chunk details.")
23
+ }).passthrough().describe("Response model for document chunk details.")
24
24
  });
25
25
  //#endregion
26
26
  export { ragieGetDocumentChunk };
@@ -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 = 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"}
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.record(z.string(), z.unknown()).describe(\"Custom chunk metadata.\");\nconst RagieGetDocumentChunk_ModalityDataSchema = z.record(z.string(), z.unknown()).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.record(z.string(), z.unknown()).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}).passthrough().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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wBAAwB;AACrH,MAAM,2CAA2C,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAUtK,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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,UAAU,0CAA0C,SAAS,CAAC,CAAC,SAAS;EACxE,eAAe,yCAAyC,SAAS,CAAC,CAAC,SAAS;CAC9E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -13,17 +13,17 @@ const RagieGetDocumentChunks_DocumentChunkSchema = zod.z.object({
13
13
  id: zod.z.string().describe("Chunk identifier (UUID).").nullable(),
14
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
- links: zod.z.object({}).describe("HREF and type mappings for chunk sources.").nullable().optional(),
17
- metadata: zod.z.object({}).describe("Chunk-level metadata as a dictionary.").nullable().optional()
18
- }).describe("Model representing a single document chunk.");
16
+ links: zod.z.record(zod.z.string(), zod.z.unknown()).describe("HREF and type mappings for chunk sources.").nullable().optional(),
17
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Chunk-level metadata as a dictionary.").nullable().optional()
18
+ }).passthrough().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
21
  total_count: zod.z.number().int().describe("Total number of matching chunks across all pages.").nullable()
22
- }).describe("Model representing pagination information.");
22
+ }).passthrough().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."),
25
25
  pagination: RagieGetDocumentChunks_PaginationSchema.nullable()
26
- }).describe("Response model for retrieving document chunks with pagination.");
26
+ }).passthrough().describe("Response model for retrieving document chunks with pagination.");
27
27
  const ragieGetDocumentChunks = require_action.action("RAGIE_GET_DOCUMENT_CHUNKS", {
28
28
  slug: "ragie-get-document-chunks",
29
29
  name: "Get Document Chunks",
@@ -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 = 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
+ {"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.record(z.string(), z.unknown()).describe(\"HREF and type mappings for chunk sources.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Chunk-level metadata as a dictionary.\").nullable().optional(),\n}).passthrough().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}).passthrough().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}).passthrough().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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,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,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,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,YAAY,CAAC,CAAC,SAAS,gEAAgE;AAE1F,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -14,14 +14,14 @@ declare const RagieGetDocumentChunksOutput: z.ZodObject<{
14
14
  id: z.ZodNullable<z.ZodString>;
15
15
  text: z.ZodNullable<z.ZodString>;
16
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>>;
17
+ links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
+ }, z.core.$loose>>;
20
20
  pagination: z.ZodNullable<z.ZodObject<{
21
21
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  total_count: z.ZodNullable<z.ZodNumber>;
23
- }, z.core.$strip>>;
24
- }, z.core.$strip>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
25
  declare const ragieGetDocumentChunks: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  document_id: string;
27
27
  cursor?: string | undefined;
@@ -14,14 +14,14 @@ declare const RagieGetDocumentChunksOutput: z.ZodObject<{
14
14
  id: z.ZodNullable<z.ZodString>;
15
15
  text: z.ZodNullable<z.ZodString>;
16
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>>;
17
+ links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
+ }, z.core.$loose>>;
20
20
  pagination: z.ZodNullable<z.ZodObject<{
21
21
  next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  total_count: z.ZodNullable<z.ZodNumber>;
23
- }, z.core.$strip>>;
24
- }, z.core.$strip>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
25
  declare const ragieGetDocumentChunks: import("@keystrokehq/action").WorkflowActionDefinition<{
26
26
  document_id: string;
27
27
  cursor?: string | undefined;
@@ -13,13 +13,13 @@ const RagieGetDocumentChunks_DocumentChunkSchema = z.object({
13
13
  id: z.string().describe("Chunk identifier (UUID).").nullable(),
14
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
- links: z.object({}).describe("HREF and type mappings for chunk sources.").nullable().optional(),
17
- metadata: z.object({}).describe("Chunk-level metadata as a dictionary.").nullable().optional()
18
- }).describe("Model representing a single document chunk.");
16
+ links: z.record(z.string(), z.unknown()).describe("HREF and type mappings for chunk sources.").nullable().optional(),
17
+ metadata: z.record(z.string(), z.unknown()).describe("Chunk-level metadata as a dictionary.").nullable().optional()
18
+ }).passthrough().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
21
  total_count: z.number().int().describe("Total number of matching chunks across all pages.").nullable()
22
- }).describe("Model representing pagination information.");
22
+ }).passthrough().describe("Model representing pagination information.");
23
23
  const ragieGetDocumentChunks = action("RAGIE_GET_DOCUMENT_CHUNKS", {
24
24
  slug: "ragie-get-document-chunks",
25
25
  name: "Get Document Chunks",
@@ -28,7 +28,7 @@ const ragieGetDocumentChunks = action("RAGIE_GET_DOCUMENT_CHUNKS", {
28
28
  output: z.object({
29
29
  chunks: z.array(RagieGetDocumentChunks_DocumentChunkSchema).describe("List of document chunks sorted by index in ascending order."),
30
30
  pagination: RagieGetDocumentChunks_PaginationSchema.nullable()
31
- }).describe("Response model for retrieving document chunks with pagination.")
31
+ }).passthrough().describe("Response model for retrieving document chunks with pagination.")
32
32
  });
33
33
  //#endregion
34
34
  export { ragieGetDocumentChunks };
@@ -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 = 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"}
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.record(z.string(), z.unknown()).describe(\"HREF and type mappings for chunk sources.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Chunk-level metadata as a dictionary.\").nullable().optional(),\n}).passthrough().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}).passthrough().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}).passthrough().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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,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,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAMtE,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,YAAY,CAAC,CAAC,SAAS,gEAOhB;AACV,CAAC"}
@@ -13,14 +13,14 @@ const RagieGetDocumentContentOutput = zod.z.object({
13
13
  name: zod.z.string().describe("Document name.").nullable().optional(),
14
14
  status: zod.z.string().describe("Document processing status.").nullable().optional(),
15
15
  content: zod.z.string().describe("The document content in requested format.").nullable(),
16
- metadata: zod.z.object({}).describe("Custom key-value metadata with string/number/boolean/array values.").nullable().optional(),
16
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).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(),
19
19
  page_count: zod.z.number().describe("Total page count.").nullable().optional(),
20
20
  updated_at: zod.z.string().describe("Last update timestamp.").nullable().optional(),
21
21
  chunk_count: zod.z.number().int().describe("Number of document chunks.").nullable().optional(),
22
22
  external_id: zod.z.string().describe("External system identifier.").nullable().optional()
23
- }).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.");
23
+ }).passthrough().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.");
24
24
  const ragieGetDocumentContent = require_action.action("RAGIE_GET_DOCUMENT_CONTENT", {
25
25
  slug: "ragie-get-document-content",
26
26
  name: "Get Document Content",
@@ -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 = 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
+ {"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.record(z.string(), z.unknown()).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}).passthrough().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,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/I,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,YAAY,CAAC,CAAC,SAAS,8MAA8M;AAExO,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,14 +13,14 @@ declare const RagieGetDocumentContentOutput: z.ZodObject<{
13
13
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  content: z.ZodNullable<z.ZodString>;
16
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
16
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17
17
  partition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  page_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
20
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
22
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>;
23
+ }, z.core.$loose>;
24
24
  declare const ragieGetDocumentContent: import("@keystrokehq/action").WorkflowActionDefinition<{
25
25
  document_id: string;
26
26
  range?: string | undefined;
@@ -13,14 +13,14 @@ declare const RagieGetDocumentContentOutput: z.ZodObject<{
13
13
  name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
14
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
15
  content: z.ZodNullable<z.ZodString>;
16
- metadata: z.ZodOptional<z.ZodNullable<z.ZodObject<{}, z.core.$strip>>>;
16
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17
17
  partition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
19
  page_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
20
  updated_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
22
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>;
23
+ }, z.core.$loose>;
24
24
  declare const ragieGetDocumentContent: import("@keystrokehq/action").WorkflowActionDefinition<{
25
25
  document_id: string;
26
26
  range?: string | undefined;
@@ -16,14 +16,14 @@ const ragieGetDocumentContent = action("RAGIE_GET_DOCUMENT_CONTENT", {
16
16
  name: z.string().describe("Document name.").nullable().optional(),
17
17
  status: z.string().describe("Document processing status.").nullable().optional(),
18
18
  content: z.string().describe("The document content in requested format.").nullable(),
19
- metadata: z.object({}).describe("Custom key-value metadata with string/number/boolean/array values.").nullable().optional(),
19
+ metadata: z.record(z.string(), z.unknown()).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(),
22
22
  page_count: z.number().describe("Total page count.").nullable().optional(),
23
23
  updated_at: z.string().describe("Last update timestamp.").nullable().optional(),
24
24
  chunk_count: z.number().int().describe("Number of document chunks.").nullable().optional(),
25
25
  external_id: z.string().describe("External system identifier.").nullable().optional()
26
- }).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.")
26
+ }).passthrough().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.")
27
27
  });
28
28
  //#endregion
29
29
  export { ragieGetDocumentContent };
@@ -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 = 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"}
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.record(z.string(), z.unknown()).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}).passthrough().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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/I,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,YAAY,CAAC,CAAC,SAAS,8MAOhB;AACV,CAAC"}
@@ -8,7 +8,7 @@ const RagieGetDocumentSummaryInput = zod.z.object({
8
8
  const RagieGetDocumentSummaryOutput = zod.z.object({
9
9
  summary: zod.z.string().describe("The LLM-generated summary text of the document.").nullable(),
10
10
  document_id: zod.z.string().describe("The ID of the summarized document.").nullable()
11
- }).describe("Response model for document summary.");
11
+ }).passthrough().describe("Response model for document summary.");
12
12
  const ragieGetDocumentSummary = require_action.action("RAGIE_GET_DOCUMENT_SUMMARY", {
13
13
  slug: "ragie-get-document-summary",
14
14
  name: "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 = 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
+ {"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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,7 +8,7 @@ declare const RagieGetDocumentSummaryInput: z.ZodObject<{
8
8
  declare const RagieGetDocumentSummaryOutput: z.ZodObject<{
9
9
  summary: z.ZodNullable<z.ZodString>;
10
10
  document_id: z.ZodNullable<z.ZodString>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const ragieGetDocumentSummary: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  document_id: string;
14
14
  partition?: string | undefined;
@@ -8,7 +8,7 @@ declare const RagieGetDocumentSummaryInput: z.ZodObject<{
8
8
  declare const RagieGetDocumentSummaryOutput: z.ZodObject<{
9
9
  summary: z.ZodNullable<z.ZodString>;
10
10
  document_id: z.ZodNullable<z.ZodString>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const ragieGetDocumentSummary: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  document_id: string;
14
14
  partition?: string | undefined;
@@ -11,7 +11,7 @@ const ragieGetDocumentSummary = action("RAGIE_GET_DOCUMENT_SUMMARY", {
11
11
  output: z.object({
12
12
  summary: z.string().describe("The LLM-generated summary text of the document.").nullable(),
13
13
  document_id: z.string().describe("The ID of the summarized document.").nullable()
14
- }).describe("Response model for document summary.")
14
+ }).passthrough().describe("Response model for document summary.")
15
15
  });
16
16
  //#endregion
17
17
  export { ragieGetDocumentSummary };
@@ -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 = 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"}
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}).passthrough().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,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
@@ -10,14 +10,14 @@ const RagieGetDocumentOutput = zod.z.object({
10
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
12
  status: zod.z.string().describe("Processing status of the document.").nullable(),
13
- metadata: zod.z.object({}).describe("Custom key-value metadata associated with the document."),
13
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value metadata associated with the document."),
14
14
  partition: zod.z.string().describe("Associated partition identifier.").nullable(),
15
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
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
- }).describe("Response model containing document details, metadata, and processing status.");
20
+ }).passthrough().describe("Response model containing document details, metadata, and processing status.");
21
21
  const ragieGetDocument = require_action.action("RAGIE_GET_DOCUMENT", {
22
22
  slug: "ragie-get-document",
23
23
  name: "Get Document",
@@ -1 +1 @@
1
- {"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentInput = z.object({\n partition: z.string().describe(\"Scopes the request to a specific partition. If omitted, accounts created after 1/9/2025 will have the request scoped to the default partition.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document in UUID format (e.g., 00000000-0000-0000-0000-000000000000).\"),\n}).describe(\"Request model for retrieving a specific document by its ID.\");\nexport const RagieGetDocumentOutput = z.object({\n id: z.string().describe(\"Document identifier (UUID).\").nullable(),\n name: z.string().describe(\"Document name.\").nullable(),\n errors: z.array(z.string()).describe(\"List of processing error messages, if any.\"),\n status: z.string().describe(\"Processing status of the document.\").nullable(),\n metadata: z.object({}).describe(\"Custom key-value metadata associated with the document.\"),\n partition: z.string().describe(\"Associated partition identifier.\").nullable(),\n created_at: z.string().describe(\"Document creation timestamp (ISO8601).\").nullable(),\n page_count: z.number().describe(\"Total number of pages in the document.\").nullable().optional(),\n updated_at: z.string().describe(\"Last modification timestamp (ISO8601).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of text chunks extracted from the document.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier for the document.\").nullable().optional(),\n}).describe(\"Response model containing document details, metadata, and processing status.\");\n\nexport const ragieGetDocument = action(\"RAGIE_GET_DOCUMENT\", {\n slug: \"ragie-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its unique identifier. Use when you need to get document details, metadata, processing status, or check for errors. Returns comprehensive document information including chunk count, page count, and any processing errors.\",\n input: RagieGetDocumentInput,\n output: RagieGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CAC1L,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;AACvI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,yDAAyD;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAE1F,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-document.cjs","names":["z","action"],"sources":["../../src/actions/get-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentInput = z.object({\n partition: z.string().describe(\"Scopes the request to a specific partition. If omitted, accounts created after 1/9/2025 will have the request scoped to the default partition.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document in UUID format (e.g., 00000000-0000-0000-0000-000000000000).\"),\n}).describe(\"Request model for retrieving a specific document by its ID.\");\nexport const RagieGetDocumentOutput = z.object({\n id: z.string().describe(\"Document identifier (UUID).\").nullable(),\n name: z.string().describe(\"Document name.\").nullable(),\n errors: z.array(z.string()).describe(\"List of processing error messages, if any.\"),\n status: z.string().describe(\"Processing status of the document.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value metadata associated with the document.\"),\n partition: z.string().describe(\"Associated partition identifier.\").nullable(),\n created_at: z.string().describe(\"Document creation timestamp (ISO8601).\").nullable(),\n page_count: z.number().describe(\"Total number of pages in the document.\").nullable().optional(),\n updated_at: z.string().describe(\"Last modification timestamp (ISO8601).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of text chunks extracted from the document.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier for the document.\").nullable().optional(),\n}).passthrough().describe(\"Response model containing document details, metadata, and processing status.\");\n\nexport const ragieGetDocument = action(\"RAGIE_GET_DOCUMENT\", {\n slug: \"ragie-get-document\",\n name: \"Get Document\",\n description: \"Tool to retrieve a specific document by its unique identifier. Use when you need to get document details, metadata, processing status, or check for errors. Returns comprehensive document information including chunk count, page count, and any processing errors.\",\n input: RagieGetDocumentInput,\n output: RagieGetDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gJAAgJ,CAAC,CAAC,SAAS;CAC1L,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;AACvI,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC3E,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yDAAyD;CAC9G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AAExG,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,14 +10,14 @@ declare const RagieGetDocumentOutput: z.ZodObject<{
10
10
  name: z.ZodNullable<z.ZodString>;
11
11
  errors: z.ZodArray<z.ZodString>;
12
12
  status: z.ZodNullable<z.ZodString>;
13
- metadata: z.ZodObject<{}, z.core.$strip>;
13
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
14
  partition: z.ZodNullable<z.ZodString>;
15
15
  created_at: z.ZodNullable<z.ZodString>;
16
16
  page_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
17
  updated_at: z.ZodNullable<z.ZodString>;
18
18
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
19
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- }, z.core.$strip>;
20
+ }, z.core.$loose>;
21
21
  declare const ragieGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  document_id: string;
23
23
  partition?: string | undefined;
@@ -10,14 +10,14 @@ declare const RagieGetDocumentOutput: z.ZodObject<{
10
10
  name: z.ZodNullable<z.ZodString>;
11
11
  errors: z.ZodArray<z.ZodString>;
12
12
  status: z.ZodNullable<z.ZodString>;
13
- metadata: z.ZodObject<{}, z.core.$strip>;
13
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
14
  partition: z.ZodNullable<z.ZodString>;
15
15
  created_at: z.ZodNullable<z.ZodString>;
16
16
  page_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
17
  updated_at: z.ZodNullable<z.ZodString>;
18
18
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
19
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
- }, z.core.$strip>;
20
+ }, z.core.$loose>;
21
21
  declare const ragieGetDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
22
22
  document_id: string;
23
23
  partition?: string | undefined;
@@ -13,14 +13,14 @@ const ragieGetDocument = action("RAGIE_GET_DOCUMENT", {
13
13
  name: z.string().describe("Document name.").nullable(),
14
14
  errors: z.array(z.string()).describe("List of processing error messages, if any."),
15
15
  status: z.string().describe("Processing status of the document.").nullable(),
16
- metadata: z.object({}).describe("Custom key-value metadata associated with the document."),
16
+ metadata: z.record(z.string(), z.unknown()).describe("Custom key-value metadata associated with the document."),
17
17
  partition: z.string().describe("Associated partition identifier.").nullable(),
18
18
  created_at: z.string().describe("Document creation timestamp (ISO8601).").nullable(),
19
19
  page_count: z.number().describe("Total number of pages in the document.").nullable().optional(),
20
20
  updated_at: z.string().describe("Last modification timestamp (ISO8601).").nullable(),
21
21
  chunk_count: z.number().int().describe("Number of text chunks extracted from the document.").nullable().optional(),
22
22
  external_id: z.string().describe("External system identifier for the document.").nullable().optional()
23
- }).describe("Response model containing document details, metadata, and processing status.")
23
+ }).passthrough().describe("Response model containing document details, metadata, and processing status.")
24
24
  });
25
25
  //#endregion
26
26
  export { ragieGetDocument };