@keystrokehq/ragie 0.1.0 → 0.1.3

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 (262) hide show
  1. package/README.md +1 -1
  2. package/dist/action.cjs.map +1 -1
  3. package/dist/action.mjs.map +1 -1
  4. package/dist/actions/create-document-from-url.cjs +6 -6
  5. package/dist/actions/create-document-from-url.cjs.map +1 -1
  6. package/dist/actions/create-document-from-url.d.cts +28 -3
  7. package/dist/actions/create-document-from-url.d.cts.map +1 -1
  8. package/dist/actions/create-document-from-url.d.mts +28 -3
  9. package/dist/actions/create-document-from-url.d.mts.map +1 -1
  10. package/dist/actions/create-document-from-url.mjs +6 -6
  11. package/dist/actions/create-document-from-url.mjs.map +1 -1
  12. package/dist/actions/create-document-raw.cjs +7 -7
  13. package/dist/actions/create-document-raw.cjs.map +1 -1
  14. package/dist/actions/create-document-raw.d.cts +26 -3
  15. package/dist/actions/create-document-raw.d.cts.map +1 -1
  16. package/dist/actions/create-document-raw.d.mts +26 -3
  17. package/dist/actions/create-document-raw.d.mts.map +1 -1
  18. package/dist/actions/create-document-raw.mjs +7 -7
  19. package/dist/actions/create-document-raw.mjs.map +1 -1
  20. package/dist/actions/create-document.cjs +9 -9
  21. package/dist/actions/create-document.cjs.map +1 -1
  22. package/dist/actions/create-document.d.cts +42 -3
  23. package/dist/actions/create-document.d.cts.map +1 -1
  24. package/dist/actions/create-document.d.mts +42 -3
  25. package/dist/actions/create-document.d.mts.map +1 -1
  26. package/dist/actions/create-document.mjs +9 -9
  27. package/dist/actions/create-document.mjs.map +1 -1
  28. package/dist/actions/create-instruction.cjs +8 -8
  29. package/dist/actions/create-instruction.cjs.map +1 -1
  30. package/dist/actions/create-instruction.d.cts +33 -3
  31. package/dist/actions/create-instruction.d.cts.map +1 -1
  32. package/dist/actions/create-instruction.d.mts +33 -3
  33. package/dist/actions/create-instruction.d.mts.map +1 -1
  34. package/dist/actions/create-instruction.mjs +8 -8
  35. package/dist/actions/create-instruction.mjs.map +1 -1
  36. package/dist/actions/create-oauth-redirect-url.cjs +1 -1
  37. package/dist/actions/create-oauth-redirect-url.cjs.map +1 -1
  38. package/dist/actions/create-oauth-redirect-url.d.cts +25 -3
  39. package/dist/actions/create-oauth-redirect-url.d.cts.map +1 -1
  40. package/dist/actions/create-oauth-redirect-url.d.mts +25 -3
  41. package/dist/actions/create-oauth-redirect-url.d.mts.map +1 -1
  42. package/dist/actions/create-oauth-redirect-url.mjs +1 -1
  43. package/dist/actions/create-oauth-redirect-url.mjs.map +1 -1
  44. package/dist/actions/create-partition-partitions-post.cjs +9 -9
  45. package/dist/actions/create-partition-partitions-post.cjs.map +1 -1
  46. package/dist/actions/create-partition-partitions-post.d.cts +83 -3
  47. package/dist/actions/create-partition-partitions-post.d.cts.map +1 -1
  48. package/dist/actions/create-partition-partitions-post.d.mts +83 -3
  49. package/dist/actions/create-partition-partitions-post.d.mts.map +1 -1
  50. package/dist/actions/create-partition-partitions-post.mjs +9 -9
  51. package/dist/actions/create-partition-partitions-post.mjs.map +1 -1
  52. package/dist/actions/delete-document.cjs +1 -1
  53. package/dist/actions/delete-document.cjs.map +1 -1
  54. package/dist/actions/delete-document.d.cts +13 -3
  55. package/dist/actions/delete-document.d.cts.map +1 -1
  56. package/dist/actions/delete-document.d.mts +13 -3
  57. package/dist/actions/delete-document.d.mts.map +1 -1
  58. package/dist/actions/delete-document.mjs +1 -1
  59. package/dist/actions/delete-document.mjs.map +1 -1
  60. package/dist/actions/delete-instruction.cjs +1 -1
  61. package/dist/actions/delete-instruction.cjs.map +1 -1
  62. package/dist/actions/delete-instruction.d.cts +9 -3
  63. package/dist/actions/delete-instruction.d.cts.map +1 -1
  64. package/dist/actions/delete-instruction.d.mts +9 -3
  65. package/dist/actions/delete-instruction.d.mts.map +1 -1
  66. package/dist/actions/delete-instruction.mjs +1 -1
  67. package/dist/actions/delete-instruction.mjs.map +1 -1
  68. package/dist/actions/delete-partition.cjs +1 -1
  69. package/dist/actions/delete-partition.cjs.map +1 -1
  70. package/dist/actions/delete-partition.d.cts +11 -3
  71. package/dist/actions/delete-partition.d.cts.map +1 -1
  72. package/dist/actions/delete-partition.d.mts +11 -3
  73. package/dist/actions/delete-partition.d.mts.map +1 -1
  74. package/dist/actions/delete-partition.mjs +1 -1
  75. package/dist/actions/delete-partition.mjs.map +1 -1
  76. package/dist/actions/get-document-chunk-content.cjs +2 -2
  77. package/dist/actions/get-document-chunk-content.cjs.map +1 -1
  78. package/dist/actions/get-document-chunk-content.d.cts +31 -3
  79. package/dist/actions/get-document-chunk-content.d.cts.map +1 -1
  80. package/dist/actions/get-document-chunk-content.d.mts +31 -3
  81. package/dist/actions/get-document-chunk-content.d.mts.map +1 -1
  82. package/dist/actions/get-document-chunk-content.mjs +2 -2
  83. package/dist/actions/get-document-chunk-content.mjs.map +1 -1
  84. package/dist/actions/get-document-chunk.cjs +7 -7
  85. package/dist/actions/get-document-chunk.cjs.map +1 -1
  86. package/dist/actions/get-document-chunk.d.cts +18 -3
  87. package/dist/actions/get-document-chunk.d.cts.map +1 -1
  88. package/dist/actions/get-document-chunk.d.mts +18 -3
  89. package/dist/actions/get-document-chunk.d.mts.map +1 -1
  90. package/dist/actions/get-document-chunk.mjs +7 -7
  91. package/dist/actions/get-document-chunk.mjs.map +1 -1
  92. package/dist/actions/get-document-chunks.cjs +8 -8
  93. package/dist/actions/get-document-chunks.cjs.map +1 -1
  94. package/dist/actions/get-document-chunks.d.cts +29 -3
  95. package/dist/actions/get-document-chunks.d.cts.map +1 -1
  96. package/dist/actions/get-document-chunks.d.mts +29 -3
  97. package/dist/actions/get-document-chunks.d.mts.map +1 -1
  98. package/dist/actions/get-document-chunks.mjs +8 -8
  99. package/dist/actions/get-document-chunks.mjs.map +1 -1
  100. package/dist/actions/get-document-content.cjs +3 -3
  101. package/dist/actions/get-document-content.cjs.map +1 -1
  102. package/dist/actions/get-document-content.d.cts +27 -3
  103. package/dist/actions/get-document-content.d.cts.map +1 -1
  104. package/dist/actions/get-document-content.d.mts +27 -3
  105. package/dist/actions/get-document-content.d.mts.map +1 -1
  106. package/dist/actions/get-document-content.mjs +3 -3
  107. package/dist/actions/get-document-content.mjs.map +1 -1
  108. package/dist/actions/get-document-summary.cjs +3 -3
  109. package/dist/actions/get-document-summary.cjs.map +1 -1
  110. package/dist/actions/get-document-summary.d.cts +12 -3
  111. package/dist/actions/get-document-summary.d.cts.map +1 -1
  112. package/dist/actions/get-document-summary.d.mts +12 -3
  113. package/dist/actions/get-document-summary.d.mts.map +1 -1
  114. package/dist/actions/get-document-summary.mjs +3 -3
  115. package/dist/actions/get-document-summary.mjs.map +1 -1
  116. package/dist/actions/get-document.cjs +8 -8
  117. package/dist/actions/get-document.cjs.map +1 -1
  118. package/dist/actions/get-document.d.cts +21 -3
  119. package/dist/actions/get-document.d.cts.map +1 -1
  120. package/dist/actions/get-document.d.mts +21 -3
  121. package/dist/actions/get-document.d.mts.map +1 -1
  122. package/dist/actions/get-document.mjs +8 -8
  123. package/dist/actions/get-document.mjs.map +1 -1
  124. package/dist/actions/get-partition.cjs +6 -6
  125. package/dist/actions/get-partition.cjs.map +1 -1
  126. package/dist/actions/get-partition.d.cts +43 -3
  127. package/dist/actions/get-partition.d.cts.map +1 -1
  128. package/dist/actions/get-partition.d.mts +43 -3
  129. package/dist/actions/get-partition.d.mts.map +1 -1
  130. package/dist/actions/get-partition.mjs +6 -6
  131. package/dist/actions/get-partition.mjs.map +1 -1
  132. package/dist/actions/get-response.cjs +10 -10
  133. package/dist/actions/get-response.cjs.map +1 -1
  134. package/dist/actions/get-response.d.cts +78 -3
  135. package/dist/actions/get-response.d.cts.map +1 -1
  136. package/dist/actions/get-response.d.mts +78 -3
  137. package/dist/actions/get-response.d.mts.map +1 -1
  138. package/dist/actions/get-response.mjs +10 -10
  139. package/dist/actions/get-response.mjs.map +1 -1
  140. package/dist/actions/list-connection-source-types.cjs +6 -6
  141. package/dist/actions/list-connection-source-types.cjs.map +1 -1
  142. package/dist/actions/list-connection-source-types.d.cts +10 -3
  143. package/dist/actions/list-connection-source-types.d.cts.map +1 -1
  144. package/dist/actions/list-connection-source-types.d.mts +10 -3
  145. package/dist/actions/list-connection-source-types.d.mts.map +1 -1
  146. package/dist/actions/list-connection-source-types.mjs +6 -6
  147. package/dist/actions/list-connection-source-types.mjs.map +1 -1
  148. package/dist/actions/list-connections-connections-get.cjs +11 -11
  149. package/dist/actions/list-connections-connections-get.cjs.map +1 -1
  150. package/dist/actions/list-connections-connections-get.d.cts +31 -3
  151. package/dist/actions/list-connections-connections-get.d.cts.map +1 -1
  152. package/dist/actions/list-connections-connections-get.d.mts +31 -3
  153. package/dist/actions/list-connections-connections-get.d.mts.map +1 -1
  154. package/dist/actions/list-connections-connections-get.mjs +11 -11
  155. package/dist/actions/list-connections-connections-get.mjs.map +1 -1
  156. package/dist/actions/list-documents.cjs +11 -11
  157. package/dist/actions/list-documents.cjs.map +1 -1
  158. package/dist/actions/list-documents.d.cts +30 -3
  159. package/dist/actions/list-documents.d.cts.map +1 -1
  160. package/dist/actions/list-documents.d.mts +30 -3
  161. package/dist/actions/list-documents.d.mts.map +1 -1
  162. package/dist/actions/list-documents.mjs +11 -11
  163. package/dist/actions/list-documents.mjs.map +1 -1
  164. package/dist/actions/list-entities-by-document.cjs +10 -10
  165. package/dist/actions/list-entities-by-document.cjs.map +1 -1
  166. package/dist/actions/list-entities-by-document.d.cts +27 -3
  167. package/dist/actions/list-entities-by-document.d.cts.map +1 -1
  168. package/dist/actions/list-entities-by-document.d.mts +27 -3
  169. package/dist/actions/list-entities-by-document.d.mts.map +1 -1
  170. package/dist/actions/list-entities-by-document.mjs +10 -10
  171. package/dist/actions/list-entities-by-document.mjs.map +1 -1
  172. package/dist/actions/list-entities-by-instruction.cjs +10 -10
  173. package/dist/actions/list-entities-by-instruction.cjs.map +1 -1
  174. package/dist/actions/list-entities-by-instruction.d.cts +27 -3
  175. package/dist/actions/list-entities-by-instruction.d.cts.map +1 -1
  176. package/dist/actions/list-entities-by-instruction.d.mts +27 -3
  177. package/dist/actions/list-entities-by-instruction.d.mts.map +1 -1
  178. package/dist/actions/list-entities-by-instruction.mjs +10 -10
  179. package/dist/actions/list-entities-by-instruction.mjs.map +1 -1
  180. package/dist/actions/list-instructions.cjs +9 -9
  181. package/dist/actions/list-instructions.cjs.map +1 -1
  182. package/dist/actions/list-instructions.d.cts +19 -3
  183. package/dist/actions/list-instructions.d.cts.map +1 -1
  184. package/dist/actions/list-instructions.d.mts +19 -3
  185. package/dist/actions/list-instructions.d.mts.map +1 -1
  186. package/dist/actions/list-instructions.mjs +9 -9
  187. package/dist/actions/list-instructions.mjs.map +1 -1
  188. package/dist/actions/list-partitions.cjs +8 -8
  189. package/dist/actions/list-partitions.cjs.map +1 -1
  190. package/dist/actions/list-partitions.d.cts +36 -3
  191. package/dist/actions/list-partitions.d.cts.map +1 -1
  192. package/dist/actions/list-partitions.d.mts +36 -3
  193. package/dist/actions/list-partitions.d.mts.map +1 -1
  194. package/dist/actions/list-partitions.mjs +8 -8
  195. package/dist/actions/list-partitions.mjs.map +1 -1
  196. package/dist/actions/patch-document-metadata.cjs +3 -3
  197. package/dist/actions/patch-document-metadata.cjs.map +1 -1
  198. package/dist/actions/patch-document-metadata.d.cts +16 -3
  199. package/dist/actions/patch-document-metadata.d.cts.map +1 -1
  200. package/dist/actions/patch-document-metadata.d.mts +16 -3
  201. package/dist/actions/patch-document-metadata.d.mts.map +1 -1
  202. package/dist/actions/patch-document-metadata.mjs +3 -3
  203. package/dist/actions/patch-document-metadata.mjs.map +1 -1
  204. package/dist/actions/retrieve.cjs +2 -2
  205. package/dist/actions/retrieve.cjs.map +1 -1
  206. package/dist/actions/retrieve.d.cts +31 -3
  207. package/dist/actions/retrieve.d.cts.map +1 -1
  208. package/dist/actions/retrieve.d.mts +31 -3
  209. package/dist/actions/retrieve.d.mts.map +1 -1
  210. package/dist/actions/retrieve.mjs +2 -2
  211. package/dist/actions/retrieve.mjs.map +1 -1
  212. package/dist/actions/set-partition-limits.cjs +6 -6
  213. package/dist/actions/set-partition-limits.cjs.map +1 -1
  214. package/dist/actions/set-partition-limits.d.cts +61 -3
  215. package/dist/actions/set-partition-limits.d.cts.map +1 -1
  216. package/dist/actions/set-partition-limits.d.mts +61 -3
  217. package/dist/actions/set-partition-limits.d.mts.map +1 -1
  218. package/dist/actions/set-partition-limits.mjs +6 -6
  219. package/dist/actions/set-partition-limits.mjs.map +1 -1
  220. package/dist/actions/update-document-from-url.cjs +2 -2
  221. package/dist/actions/update-document-from-url.cjs.map +1 -1
  222. package/dist/actions/update-document-from-url.d.cts +23 -3
  223. package/dist/actions/update-document-from-url.d.cts.map +1 -1
  224. package/dist/actions/update-document-from-url.d.mts +23 -3
  225. package/dist/actions/update-document-from-url.d.mts.map +1 -1
  226. package/dist/actions/update-document-from-url.mjs +2 -2
  227. package/dist/actions/update-document-from-url.mjs.map +1 -1
  228. package/dist/actions/update-document-raw.cjs +1 -1
  229. package/dist/actions/update-document-raw.cjs.map +1 -1
  230. package/dist/actions/update-document-raw.d.cts +11 -3
  231. package/dist/actions/update-document-raw.d.cts.map +1 -1
  232. package/dist/actions/update-document-raw.d.mts +11 -3
  233. package/dist/actions/update-document-raw.d.mts.map +1 -1
  234. package/dist/actions/update-document-raw.mjs +1 -1
  235. package/dist/actions/update-document-raw.mjs.map +1 -1
  236. package/dist/actions/update-instruction.cjs +9 -9
  237. package/dist/actions/update-instruction.cjs.map +1 -1
  238. package/dist/actions/update-instruction.d.cts +20 -3
  239. package/dist/actions/update-instruction.d.cts.map +1 -1
  240. package/dist/actions/update-instruction.d.mts +20 -3
  241. package/dist/actions/update-instruction.d.mts.map +1 -1
  242. package/dist/actions/update-instruction.mjs +9 -9
  243. package/dist/actions/update-instruction.mjs.map +1 -1
  244. package/dist/actions/update-partition.cjs +19 -19
  245. package/dist/actions/update-partition.cjs.map +1 -1
  246. package/dist/actions/update-partition.d.cts +49 -3
  247. package/dist/actions/update-partition.d.cts.map +1 -1
  248. package/dist/actions/update-partition.d.mts +49 -3
  249. package/dist/actions/update-partition.d.mts.map +1 -1
  250. package/dist/actions/update-partition.mjs +19 -19
  251. package/dist/actions/update-partition.mjs.map +1 -1
  252. package/dist/catalog.cjs +7 -1
  253. package/dist/catalog.cjs.map +1 -1
  254. package/dist/catalog.d.cts +8 -0
  255. package/dist/catalog.d.mts +8 -0
  256. package/dist/catalog.mjs +7 -1
  257. package/dist/catalog.mjs.map +1 -1
  258. package/dist/execute.cjs +1 -1
  259. package/dist/execute.cjs.map +1 -1
  260. package/dist/execute.mjs +1 -1
  261. package/dist/execute.mjs.map +1 -1
  262. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"delete-partition.mjs","names":[],"sources":["../../src/actions/delete-partition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieDeletePartitionInput: z.ZodTypeAny = z.object({\n partition_id: z.string().describe(\"The partition identifier to delete\"),\n async_deletion: z.boolean().describe(\"When true, performs partition deletion asynchronously. Defaults to false.\").optional(),\n}).describe(\"Request model for deleting a partition.\");\nexport const RagieDeletePartitionOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Status message indicating the result of the deletion operation\").nullable().optional(),\n}).describe(\"Response model for partition deletion operation.\");\n\nexport const ragieDeletePartition = action(\"RAGIE_DELETE_PARTITION\", {\n slug: \"ragie-delete-partition\",\n name: \"Delete Partition\",\n description: \"Tool to delete a partition and all associated data irreversibly. Use when you need to permanently remove a partition. Returns status 200 for synchronous deletion or 202 for asynchronous deletion.\",\n input: RagieDeletePartitionInput,\n output: RagieDeletePartitionOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZqD,EAAE,OAAO;EAC9D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EACtE,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,SAAS,yCASH;CACP,QATsD,EAAE,OAAO,EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrH,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"delete-partition.mjs","names":[],"sources":["../../src/actions/delete-partition.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieDeletePartitionInput = z.object({\n partition_id: z.string().describe(\"The partition identifier to delete\"),\n async_deletion: z.boolean().describe(\"When true, performs partition deletion asynchronously. Defaults to false.\").optional(),\n}).describe(\"Request model for deleting a partition.\");\nexport const RagieDeletePartitionOutput = z.object({\n message: z.string().describe(\"Status message indicating the result of the deletion operation\").nullable().optional(),\n}).passthrough().describe(\"Response model for partition deletion operation.\");\n\nexport const ragieDeletePartition = action(\"RAGIE_DELETE_PARTITION\", {\n slug: \"ragie-delete-partition\",\n name: \"Delete Partition\",\n description: \"Tool to delete a partition and all associated data irreversibly. Use when you need to permanently remove a partition. Returns status 200 for synchronous deletion or 202 for asynchronous deletion.\",\n input: RagieDeletePartitionInput,\n output: RagieDeletePartitionOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuC,EAAE,OAAO;EAChD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EACtE,gBAAgB,EAAE,QAAQ,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,SAAS,yCASH;CACP,QATwC,EAAE,OAAO,EACjD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -20,10 +20,10 @@ const RagieGetDocumentChunkContentInput = zod.z.object({
20
20
  range_header: zod.z.string().describe("Standard HTTP range header for byte-range requests (partial content), e.g., 'bytes=0-1023'.").optional()
21
21
  }).describe("Request model for retrieving document chunk content.");
22
22
  const RagieGetDocumentChunkContentOutput = zod.z.object({
23
- content: zod.z.string().describe("The chunk content. For text/plain, contains the text. For binary formats, contains base64-encoded data or URL to the content."),
23
+ content: zod.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(),
24
24
  content_type: zod.z.string().describe("The MIME type of the returned content.").nullable().optional(),
25
25
  content_length: zod.z.number().int().describe("The size of the content in bytes.").nullable().optional()
26
- }).describe("Response model for document chunk content.");
26
+ }).passthrough().describe("Response model for document chunk content.");
27
27
  const ragieGetDocumentChunkContent = require_action.action("RAGIE_GET_DOCUMENT_CHUNK_CONTENT", {
28
28
  slug: "ragie-get-document-chunk-content",
29
29
  name: "Get Document Chunk Content",
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-chunk-content.cjs","names":["z","action"],"sources":["../../src/actions/get-document-chunk-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieGetDocumentChunkContentInput: z.ZodTypeAny = 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.ZodTypeAny = 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.\"),\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":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACjF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC9I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAc;EAAa;EAAc;EAAc;EAAa;EAAa;EAAc;CAAY,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACvQ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,qCAAmDA,IAAAA,EAAE,OAAO;CACvE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;CAC5J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-document-chunk-content.cjs","names":["z","action"],"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":";;;AAIA,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CACjF,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CAC9I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;CAC1H,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAc;EAAa;EAAc;EAAc;EAAa;EAAa;EAAc;CAAY,CAAC,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACvQ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;AAC5I,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H,CAAC,CAAC,SAAS;CACvK,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-document-chunk-content.d.ts
4
- declare const RagieGetDocumentChunkContentInput: z.ZodTypeAny;
5
- declare const RagieGetDocumentChunkContentOutput: z.ZodTypeAny;
6
- declare const ragieGetDocumentChunkContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieGetDocumentChunkContentInput: z.ZodObject<{
5
+ chunk_id: z.ZodString;
6
+ download: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
+ partition: z.ZodOptional<z.ZodString>;
8
+ media_type: z.ZodOptional<z.ZodEnum<{
9
+ "text/plain": "text/plain";
10
+ "audio/mpeg": "audio/mpeg";
11
+ "video/mp4": "video/mp4";
12
+ "image/webp": "image/webp";
13
+ "image/heic": "image/heic";
14
+ "image/bmp": "image/bmp";
15
+ "image/png": "image/png";
16
+ "image/jpeg": "image/jpeg";
17
+ "image/tiff": "image/tiff";
18
+ }>>;
19
+ document_id: z.ZodString;
20
+ range_header: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ declare const RagieGetDocumentChunkContentOutput: z.ZodObject<{
23
+ content: z.ZodNullable<z.ZodString>;
24
+ content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ content_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ }, z.core.$loose>;
27
+ declare const ragieGetDocumentChunkContent: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ chunk_id: string;
29
+ document_id: string;
30
+ download?: boolean | undefined;
31
+ partition?: string | undefined;
32
+ media_type?: "text/plain" | "audio/mpeg" | "video/mp4" | "image/webp" | "image/heic" | "image/bmp" | "image/png" | "image/jpeg" | "image/tiff" | undefined;
33
+ range_header?: string | undefined;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { ragieGetDocumentChunkContent };
9
37
  //# sourceMappingURL=get-document-chunk-content.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-chunk-content.d.cts","names":[],"sources":["../../src/actions/get-document-chunk-content.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAOiB;AAAA,cACtD,kCAAA,EAAoC,CAAA,CAAE,UAIM;AAAA,cAE5C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-document-chunk-content.d.cts","names":[],"sources":["../../src/actions/get-document-chunk-content.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAQjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-document-chunk-content.d.ts
4
- declare const RagieGetDocumentChunkContentInput: z.ZodTypeAny;
5
- declare const RagieGetDocumentChunkContentOutput: z.ZodTypeAny;
6
- declare const ragieGetDocumentChunkContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieGetDocumentChunkContentInput: z.ZodObject<{
5
+ chunk_id: z.ZodString;
6
+ download: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
7
+ partition: z.ZodOptional<z.ZodString>;
8
+ media_type: z.ZodOptional<z.ZodEnum<{
9
+ "text/plain": "text/plain";
10
+ "audio/mpeg": "audio/mpeg";
11
+ "video/mp4": "video/mp4";
12
+ "image/webp": "image/webp";
13
+ "image/heic": "image/heic";
14
+ "image/bmp": "image/bmp";
15
+ "image/png": "image/png";
16
+ "image/jpeg": "image/jpeg";
17
+ "image/tiff": "image/tiff";
18
+ }>>;
19
+ document_id: z.ZodString;
20
+ range_header: z.ZodOptional<z.ZodString>;
21
+ }, z.core.$strip>;
22
+ declare const RagieGetDocumentChunkContentOutput: z.ZodObject<{
23
+ content: z.ZodNullable<z.ZodString>;
24
+ content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ content_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ }, z.core.$loose>;
27
+ declare const ragieGetDocumentChunkContent: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ chunk_id: string;
29
+ document_id: string;
30
+ download?: boolean | undefined;
31
+ partition?: string | undefined;
32
+ media_type?: "text/plain" | "audio/mpeg" | "video/mp4" | "image/webp" | "image/heic" | "image/bmp" | "image/png" | "image/jpeg" | "image/tiff" | undefined;
33
+ range_header?: string | undefined;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { ragieGetDocumentChunkContent };
9
37
  //# sourceMappingURL=get-document-chunk-content.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-chunk-content.d.mts","names":[],"sources":["../../src/actions/get-document-chunk-content.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAOiB;AAAA,cACtD,kCAAA,EAAoC,CAAA,CAAE,UAIM;AAAA,cAE5C,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-document-chunk-content.d.mts","names":[],"sources":["../../src/actions/get-document-chunk-content.ts"],"mappings":";;;cAIa,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAQjC,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAMlC,4BAAA,gCAA4B,wBAAA"}
@@ -23,10 +23,10 @@ const ragieGetDocumentChunkContent = action("RAGIE_GET_DOCUMENT_CHUNK_CONTENT",
23
23
  range_header: z.string().describe("Standard HTTP range header for byte-range requests (partial content), e.g., 'bytes=0-1023'.").optional()
24
24
  }).describe("Request model for retrieving document chunk content."),
25
25
  output: z.object({
26
- 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."),
26
+ 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(),
27
27
  content_type: z.string().describe("The MIME type of the returned content.").nullable().optional(),
28
28
  content_length: z.number().int().describe("The size of the content in bytes.").nullable().optional()
29
- }).describe("Response model for document chunk content.")
29
+ }).passthrough().describe("Response model for document chunk content.")
30
30
  });
31
31
  //#endregion
32
32
  export { ragieGetDocumentChunkContent };
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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.\"),\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,OAlB6D,EAAE,OAAO;EACtE,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,QAX8D,EAAE,OAAO;EACvE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+HAA+H;EAC5J,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
- id: zod.z.string().describe("The chunk identifier (UUID)."),
13
- text: zod.z.string().describe("Chunk content."),
14
- index: zod.z.number().int().describe("Position within document (default: -1)."),
15
- links: zod.z.object({}).describe("Dictionary of Link objects with href and type properties.").nullable().optional(),
12
+ id: zod.z.string().describe("The chunk identifier (UUID).").nullable(),
13
+ text: zod.z.string().describe("Chunk content.").nullable(),
14
+ index: zod.z.number().int().describe("Position within document (default: -1).").nullable(),
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.ZodTypeAny = 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.ZodTypeAny = z.object({}).describe(\"Custom chunk metadata.\");\nconst RagieGetDocumentChunk_ModalityDataSchema: z.ZodTypeAny = z.object({}).describe(\"Additional data for audio/video chunks, including word-level timestamps.\");\nexport const RagieGetDocumentChunkOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The chunk identifier (UUID).\"),\n text: z.string().describe(\"Chunk content.\"),\n index: z.number().int().describe(\"Position within document (default: -1).\"),\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,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,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,4CAA0DA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB;AAC9G,MAAM,2CAAyDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAC/J,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CAC1E,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"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-document-chunk.d.ts
4
- declare const RagieGetDocumentChunkInput: z.ZodTypeAny;
5
- declare const RagieGetDocumentChunkOutput: z.ZodTypeAny;
6
- declare const ragieGetDocumentChunk: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieGetDocumentChunkInput: z.ZodObject<{
5
+ chunk_id: z.ZodString;
6
+ partition: z.ZodOptional<z.ZodString>;
7
+ document_id: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const RagieGetDocumentChunkOutput: z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ text: z.ZodNullable<z.ZodString>;
12
+ index: z.ZodNullable<z.ZodNumber>;
13
+ links: z.ZodOptional<z.ZodNullable<z.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
+ declare const ragieGetDocumentChunk: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ chunk_id: string;
19
+ document_id: string;
20
+ partition?: string | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { ragieGetDocumentChunk };
9
24
  //# sourceMappingURL=get-document-chunk.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-chunk.d.cts","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAI2C;AAAA,cAGzE,2BAAA,EAA6B,CAAA,CAAE,UAOa;AAAA,cAE5C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-document-chunk.d.cts","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAO1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,24 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-document-chunk.d.ts
4
- declare const RagieGetDocumentChunkInput: z.ZodTypeAny;
5
- declare const RagieGetDocumentChunkOutput: z.ZodTypeAny;
6
- declare const ragieGetDocumentChunk: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieGetDocumentChunkInput: z.ZodObject<{
5
+ chunk_id: z.ZodString;
6
+ partition: z.ZodOptional<z.ZodString>;
7
+ document_id: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const RagieGetDocumentChunkOutput: z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ text: z.ZodNullable<z.ZodString>;
12
+ index: z.ZodNullable<z.ZodNumber>;
13
+ links: z.ZodOptional<z.ZodNullable<z.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
+ declare const ragieGetDocumentChunk: import("@keystrokehq/action").WorkflowActionDefinition<{
18
+ chunk_id: string;
19
+ document_id: string;
20
+ partition?: string | undefined;
21
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
22
  //#endregion
8
23
  export { ragieGetDocumentChunk };
9
24
  //# sourceMappingURL=get-document-chunk.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-chunk.d.mts","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAI2C;AAAA,cAGzE,2BAAA,EAA6B,CAAA,CAAE,UAOa;AAAA,cAE5C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-document-chunk.d.mts","names":[],"sources":["../../src/actions/get-document-chunk.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;cAO1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAS3B,qBAAA,gCAAqB,wBAAA"}
@@ -6,21 +6,21 @@ 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",
14
14
  description: "Tool to retrieve a specific document chunk by its document and chunk ID. Use when you need detailed information about a specific chunk within a document, including its content, metadata, position index, and optional modality data for audio/video chunks.",
15
15
  input: RagieGetDocumentChunkInput,
16
16
  output: z.object({
17
- id: z.string().describe("The chunk identifier (UUID)."),
18
- text: z.string().describe("Chunk content."),
19
- index: z.number().int().describe("Position within document (default: -1)."),
20
- links: z.object({}).describe("Dictionary of Link objects with href and type properties.").nullable().optional(),
17
+ id: z.string().describe("The chunk identifier (UUID).").nullable(),
18
+ text: z.string().describe("Chunk content.").nullable(),
19
+ index: z.number().int().describe("Position within document (default: -1).").nullable(),
20
+ 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.ZodTypeAny = 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.ZodTypeAny = z.object({}).describe(\"Custom chunk metadata.\");\nconst RagieGetDocumentChunk_ModalityDataSchema: z.ZodTypeAny = z.object({}).describe(\"Additional data for audio/video chunks, including word-level timestamps.\");\nexport const RagieGetDocumentChunkOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The chunk identifier (UUID).\"),\n text: z.string().describe(\"Chunk content.\"),\n index: z.number().int().describe(\"Position within document (default: -1).\"),\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,6BAA2C,EAAE,OAAO;CAC/D,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,4CAA0D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB;AAC9G,MAAM,2CAAyD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAU/J,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAduD,EAAE,OAAO;EAChE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;EAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;EAC1E,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"}
@@ -10,20 +10,20 @@ const RagieGetDocumentChunksInput = zod.z.object({
10
10
  start_index: zod.z.number().int().describe("The inclusive starting index of the chunk range to list. Omitting both start_index and end_index returns all chunks.").optional()
11
11
  }).describe("Request model for retrieving document chunks with pagination support.");
12
12
  const RagieGetDocumentChunks_DocumentChunkSchema = zod.z.object({
13
- id: zod.z.string().describe("Chunk identifier (UUID)."),
14
- text: zod.z.string().describe("Chunk content text."),
13
+ id: zod.z.string().describe("Chunk identifier (UUID).").nullable(),
14
+ text: zod.z.string().describe("Chunk content text.").nullable(),
15
15
  index: zod.z.number().int().default(-1).describe("Chunk sequence number. Default is -1.").nullable().optional(),
16
- 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
- total_count: zod.z.number().int().describe("Total number of matching chunks across all pages.")
22
- }).describe("Model representing pagination information.");
21
+ total_count: zod.z.number().int().describe("Total number of matching chunks across all pages.").nullable()
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.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Chunk identifier (UUID).\"),\n text: z.string().describe(\"Chunk content text.\"),\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.ZodTypeAny = 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.\"),\n}).describe(\"Model representing pagination information.\");\nexport const RagieGetDocumentChunksOutput: z.ZodTypeAny = 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,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,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,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,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,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,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;AAC5F,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,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"}
@@ -1,9 +1,35 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-document-chunks.d.ts
4
- declare const RagieGetDocumentChunksInput: z.ZodTypeAny;
5
- declare const RagieGetDocumentChunksOutput: z.ZodTypeAny;
6
- declare const ragieGetDocumentChunks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieGetDocumentChunksInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ end_index: z.ZodOptional<z.ZodNumber>;
7
+ page_size: z.ZodOptional<z.ZodNumber>;
8
+ partition: z.ZodOptional<z.ZodString>;
9
+ document_id: z.ZodString;
10
+ start_index: z.ZodOptional<z.ZodNumber>;
11
+ }, z.core.$strip>;
12
+ declare const RagieGetDocumentChunksOutput: z.ZodObject<{
13
+ chunks: z.ZodArray<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ text: z.ZodNullable<z.ZodString>;
16
+ index: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
17
+ links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
+ }, z.core.$loose>>;
20
+ pagination: z.ZodNullable<z.ZodObject<{
21
+ next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ total_count: z.ZodNullable<z.ZodNumber>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
+ declare const ragieGetDocumentChunks: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ document_id: string;
27
+ cursor?: string | undefined;
28
+ end_index?: number | undefined;
29
+ page_size?: number | undefined;
30
+ partition?: string | undefined;
31
+ start_index?: number | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { ragieGetDocumentChunks };
9
35
  //# sourceMappingURL=get-document-chunks.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-chunks.d.cts","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAOwC;AAAA,cAYvE,4BAAA,EAA8B,CAAA,CAAE,UAGgC;AAAA,cAEhE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-document-chunks.d.cts","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,35 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-document-chunks.d.ts
4
- declare const RagieGetDocumentChunksInput: z.ZodTypeAny;
5
- declare const RagieGetDocumentChunksOutput: z.ZodTypeAny;
6
- declare const ragieGetDocumentChunks: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieGetDocumentChunksInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ end_index: z.ZodOptional<z.ZodNumber>;
7
+ page_size: z.ZodOptional<z.ZodNumber>;
8
+ partition: z.ZodOptional<z.ZodString>;
9
+ document_id: z.ZodString;
10
+ start_index: z.ZodOptional<z.ZodNumber>;
11
+ }, z.core.$strip>;
12
+ declare const RagieGetDocumentChunksOutput: z.ZodObject<{
13
+ chunks: z.ZodArray<z.ZodObject<{
14
+ id: z.ZodNullable<z.ZodString>;
15
+ text: z.ZodNullable<z.ZodString>;
16
+ index: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodNumber>>>;
17
+ links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
+ }, z.core.$loose>>;
20
+ pagination: z.ZodNullable<z.ZodObject<{
21
+ next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ total_count: z.ZodNullable<z.ZodNumber>;
23
+ }, z.core.$loose>>;
24
+ }, z.core.$loose>;
25
+ declare const ragieGetDocumentChunks: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ document_id: string;
27
+ cursor?: string | undefined;
28
+ end_index?: number | undefined;
29
+ page_size?: number | undefined;
30
+ partition?: string | undefined;
31
+ start_index?: number | undefined;
32
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
33
  //#endregion
8
34
  export { ragieGetDocumentChunks };
9
35
  //# sourceMappingURL=get-document-chunks.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-document-chunks.d.mts","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAOwC;AAAA,cAYvE,4BAAA,EAA8B,CAAA,CAAE,UAGgC;AAAA,cAEhE,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-document-chunks.d.mts","names":[],"sources":["../../src/actions/get-document-chunks.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;cAmB3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAK5B,sBAAA,gCAAsB,wBAAA"}
@@ -10,16 +10,16 @@ const RagieGetDocumentChunksInput = z.object({
10
10
  start_index: z.number().int().describe("The inclusive starting index of the chunk range to list. Omitting both start_index and end_index returns all chunks.").optional()
11
11
  }).describe("Request model for retrieving document chunks with pagination support.");
12
12
  const RagieGetDocumentChunks_DocumentChunkSchema = z.object({
13
- id: z.string().describe("Chunk identifier (UUID)."),
14
- text: z.string().describe("Chunk content text."),
13
+ id: z.string().describe("Chunk identifier (UUID).").nullable(),
14
+ text: z.string().describe("Chunk content text.").nullable(),
15
15
  index: z.number().int().default(-1).describe("Chunk sequence number. Default is -1.").nullable().optional(),
16
- 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
- total_count: z.number().int().describe("Total number of matching chunks across all pages.")
22
- }).describe("Model representing pagination information.");
21
+ total_count: z.number().int().describe("Total number of matching chunks across all pages.").nullable()
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.ZodTypeAny = 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.ZodTypeAny = z.object({\n id: z.string().describe(\"Chunk identifier (UUID).\"),\n text: z.string().describe(\"Chunk content text.\"),\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.ZodTypeAny = 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.\"),\n}).describe(\"Model representing pagination information.\");\nexport const RagieGetDocumentChunksOutput: z.ZodTypeAny = 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,8BAA4C,EAAE,OAAO;CAChE,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,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,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,0CAAwD,EAAE,OAAO;CACrE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;AAC5F,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAMxD,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwD,EAAE,OAAO;EACjE,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"}
@@ -12,15 +12,15 @@ const RagieGetDocumentContentOutput = zod.z.object({
12
12
  id: zod.z.string().describe("Document identifier (UUID).").nullable().optional(),
13
13
  name: zod.z.string().describe("Document name.").nullable().optional(),
14
14
  status: zod.z.string().describe("Document processing status.").nullable().optional(),
15
- content: zod.z.string().describe("The document content in requested format."),
16
- metadata: zod.z.object({}).describe("Custom key-value metadata with string/number/boolean/array values.").nullable().optional(),
15
+ content: zod.z.string().describe("The document content in requested format.").nullable(),
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",