@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":"list-entities-by-document.cjs","names":["z","action"],"sources":["../../src/actions/list-entities-by-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListEntitiesByDocumentInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination. Use the next_cursor from a previous response to fetch the next page of results.\").optional(),\n page_size: z.number().int().describe(\"Number of items per page. Must be between 1 and 100. Defaults to 10 if not specified.\").optional(),\n partition: z.string().describe(\"An optional partition to scope the request to. If omitted, scoped to default partition.\").optional(),\n document_id: z.string().describe(\"The ID of the document from which to retrieve entities. Must be a valid UUID.\"),\n}).describe(\"Request model for listing entities extracted from a specific document.\");\nconst RagieListEntitiesByDocument_EntityItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the entity.\"),\n data: z.object({}).describe(\"The extracted entity data as a key-value mapping.\"),\n chunk_id: z.string().describe(\"Optional ID of the chunk if entity is chunk-scoped. None if entity is document-scoped.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the entity was created (ISO 8601 datetime).\"),\n updated_at: z.string().describe(\"Timestamp when the entity was last updated (ISO 8601 datetime).\"),\n document_id: z.string().describe(\"ID of the document containing this entity.\"),\n instruction_id: z.string().describe(\"ID of the instruction that generated this entity.\"),\n}).describe(\"Represents a single extracted entity from a document.\");\nconst RagieListEntitiesByDocument_PaginationSchema: z.ZodTypeAny = z.object({\n next_cursor: z.string().describe(\"Cursor for the next page of results. None if no more pages available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of entities available for this document.\"),\n}).describe(\"Pagination metadata for the entity list response.\");\nexport const RagieListEntitiesByDocumentOutput: z.ZodTypeAny = z.object({\n entities: z.array(RagieListEntitiesByDocument_EntityItemSchema).describe(\"List of extracted entities from the document.\"),\n pagination: RagieListEntitiesByDocument_PaginationSchema.nullable(),\n}).describe(\"Response model for listing entities from a document.\");\n\nexport const ragieListEntitiesByDocument = action(\"RAGIE_LIST_ENTITIES_BY_DOCUMENT\", {\n slug: \"ragie-list-entities-by-document\",\n name: \"List Entities By Document\",\n description: \"Tool to retrieve all extracted entities from a specific document with pagination support. Use when you need to access structured data that has been extracted from a document by Ragie's entity extraction instructions.\",\n input: RagieListEntitiesByDocumentInput,\n output: RagieListEntitiesByDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACzJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACvI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;AAClH,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD;CAC/E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC7E,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AACzF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD;AAChG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,UAAUA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,+CAA+C;CACxH,YAAY,6CAA6C,SAAS;AACpE,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-entities-by-document.cjs","names":["z","action"],"sources":["../../src/actions/list-entities-by-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListEntitiesByDocumentInput = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination. Use the next_cursor from a previous response to fetch the next page of results.\").optional(),\n page_size: z.number().int().describe(\"Number of items per page. Must be between 1 and 100. Defaults to 10 if not specified.\").optional(),\n partition: z.string().describe(\"An optional partition to scope the request to. If omitted, scoped to default partition.\").optional(),\n document_id: z.string().describe(\"The ID of the document from which to retrieve entities. Must be a valid UUID.\"),\n}).describe(\"Request model for listing entities extracted from a specific document.\");\nconst RagieListEntitiesByDocument_EntityItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the entity.\").nullable(),\n data: z.record(z.string(), z.unknown()).describe(\"The extracted entity data as a key-value mapping.\"),\n chunk_id: z.string().describe(\"Optional ID of the chunk if entity is chunk-scoped. None if entity is document-scoped.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the entity was created (ISO 8601 datetime).\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the entity was last updated (ISO 8601 datetime).\").nullable(),\n document_id: z.string().describe(\"ID of the document containing this entity.\").nullable(),\n instruction_id: z.string().describe(\"ID of the instruction that generated this entity.\").nullable(),\n}).passthrough().describe(\"Represents a single extracted entity from a document.\");\nconst RagieListEntitiesByDocument_PaginationSchema = z.object({\n next_cursor: z.string().describe(\"Cursor for the next page of results. None if no more pages available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of entities available for this document.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for the entity list response.\");\nexport const RagieListEntitiesByDocumentOutput = z.object({\n entities: z.array(RagieListEntitiesByDocument_EntityItemSchema).describe(\"List of extracted entities from the document.\"),\n pagination: RagieListEntitiesByDocument_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for listing entities from a document.\");\n\nexport const ragieListEntitiesByDocument = action(\"RAGIE_LIST_ENTITIES_BY_DOCUMENT\", {\n slug: \"ragie-list-entities-by-document\",\n name: \"List Entities By Document\",\n description: \"Tool to retrieve all extracted entities from a specific document with pagination support. Use when you need to access structured data that has been extracted from a document by Ragie's entity extraction instructions.\",\n input: RagieListEntitiesByDocumentInput,\n output: RagieListEntitiesByDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACzJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACvI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;AAClH,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC5G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,UAAUA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,+CAA+C;CACxH,YAAY,6CAA6C,SAAS;AACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-entities-by-document.d.ts
4
- declare const RagieListEntitiesByDocumentInput: z.ZodTypeAny;
5
- declare const RagieListEntitiesByDocumentOutput: z.ZodTypeAny;
6
- declare const ragieListEntitiesByDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieListEntitiesByDocumentInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ page_size: z.ZodOptional<z.ZodNumber>;
7
+ partition: z.ZodOptional<z.ZodString>;
8
+ document_id: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const RagieListEntitiesByDocumentOutput: z.ZodObject<{
11
+ entities: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodString>;
13
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ chunk_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ created_at: z.ZodNullable<z.ZodString>;
16
+ updated_at: z.ZodNullable<z.ZodString>;
17
+ document_id: z.ZodNullable<z.ZodString>;
18
+ instruction_id: z.ZodNullable<z.ZodString>;
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 ragieListEntitiesByDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ document_id: string;
27
+ cursor?: string | undefined;
28
+ page_size?: number | undefined;
29
+ partition?: string | undefined;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { ragieListEntitiesByDocument };
9
33
  //# sourceMappingURL=list-entities-by-document.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-entities-by-document.d.cts","names":[],"sources":["../../src/actions/list-entities-by-document.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAKoC;AAAA,cAcxE,iCAAA,EAAmC,CAAA,CAAE,UAGiB;AAAA,cAEtD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-entities-by-document.d.cts","names":[],"sources":["../../src/actions/list-entities-by-document.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAmBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-entities-by-document.d.ts
4
- declare const RagieListEntitiesByDocumentInput: z.ZodTypeAny;
5
- declare const RagieListEntitiesByDocumentOutput: z.ZodTypeAny;
6
- declare const ragieListEntitiesByDocument: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieListEntitiesByDocumentInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ page_size: z.ZodOptional<z.ZodNumber>;
7
+ partition: z.ZodOptional<z.ZodString>;
8
+ document_id: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const RagieListEntitiesByDocumentOutput: z.ZodObject<{
11
+ entities: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodString>;
13
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ chunk_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ created_at: z.ZodNullable<z.ZodString>;
16
+ updated_at: z.ZodNullable<z.ZodString>;
17
+ document_id: z.ZodNullable<z.ZodString>;
18
+ instruction_id: z.ZodNullable<z.ZodString>;
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 ragieListEntitiesByDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ document_id: string;
27
+ cursor?: string | undefined;
28
+ page_size?: number | undefined;
29
+ partition?: string | undefined;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { ragieListEntitiesByDocument };
9
33
  //# sourceMappingURL=list-entities-by-document.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-entities-by-document.d.mts","names":[],"sources":["../../src/actions/list-entities-by-document.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAKoC;AAAA,cAcxE,iCAAA,EAAmC,CAAA,CAAE,UAGiB;AAAA,cAEtD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-entities-by-document.d.mts","names":[],"sources":["../../src/actions/list-entities-by-document.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAmBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAKjC,2BAAA,gCAA2B,wBAAA"}
@@ -8,18 +8,18 @@ const RagieListEntitiesByDocumentInput = z.object({
8
8
  document_id: z.string().describe("The ID of the document from which to retrieve entities. Must be a valid UUID.")
9
9
  }).describe("Request model for listing entities extracted from a specific document.");
10
10
  const RagieListEntitiesByDocument_EntityItemSchema = z.object({
11
- id: z.string().describe("Unique identifier of the entity."),
12
- data: z.object({}).describe("The extracted entity data as a key-value mapping."),
11
+ id: z.string().describe("Unique identifier of the entity.").nullable(),
12
+ data: z.record(z.string(), z.unknown()).describe("The extracted entity data as a key-value mapping."),
13
13
  chunk_id: z.string().describe("Optional ID of the chunk if entity is chunk-scoped. None if entity is document-scoped.").nullable().optional(),
14
- created_at: z.string().describe("Timestamp when the entity was created (ISO 8601 datetime)."),
15
- updated_at: z.string().describe("Timestamp when the entity was last updated (ISO 8601 datetime)."),
16
- document_id: z.string().describe("ID of the document containing this entity."),
17
- instruction_id: z.string().describe("ID of the instruction that generated this entity.")
18
- }).describe("Represents a single extracted entity from a document.");
14
+ created_at: z.string().describe("Timestamp when the entity was created (ISO 8601 datetime).").nullable(),
15
+ updated_at: z.string().describe("Timestamp when the entity was last updated (ISO 8601 datetime).").nullable(),
16
+ document_id: z.string().describe("ID of the document containing this entity.").nullable(),
17
+ instruction_id: z.string().describe("ID of the instruction that generated this entity.").nullable()
18
+ }).passthrough().describe("Represents a single extracted entity from a document.");
19
19
  const RagieListEntitiesByDocument_PaginationSchema = z.object({
20
20
  next_cursor: z.string().describe("Cursor for the next page of results. None if no more pages available.").nullable().optional(),
21
- total_count: z.number().int().describe("Total number of entities available for this document.")
22
- }).describe("Pagination metadata for the entity list response.");
21
+ total_count: z.number().int().describe("Total number of entities available for this document.").nullable()
22
+ }).passthrough().describe("Pagination metadata for the entity list response.");
23
23
  const ragieListEntitiesByDocument = action("RAGIE_LIST_ENTITIES_BY_DOCUMENT", {
24
24
  slug: "ragie-list-entities-by-document",
25
25
  name: "List Entities By Document",
@@ -28,7 +28,7 @@ const ragieListEntitiesByDocument = action("RAGIE_LIST_ENTITIES_BY_DOCUMENT", {
28
28
  output: z.object({
29
29
  entities: z.array(RagieListEntitiesByDocument_EntityItemSchema).describe("List of extracted entities from the document."),
30
30
  pagination: RagieListEntitiesByDocument_PaginationSchema.nullable()
31
- }).describe("Response model for listing entities from a document.")
31
+ }).passthrough().describe("Response model for listing entities from a document.")
32
32
  });
33
33
  //#endregion
34
34
  export { ragieListEntitiesByDocument };
@@ -1 +1 @@
1
- {"version":3,"file":"list-entities-by-document.mjs","names":[],"sources":["../../src/actions/list-entities-by-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListEntitiesByDocumentInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination. Use the next_cursor from a previous response to fetch the next page of results.\").optional(),\n page_size: z.number().int().describe(\"Number of items per page. Must be between 1 and 100. Defaults to 10 if not specified.\").optional(),\n partition: z.string().describe(\"An optional partition to scope the request to. If omitted, scoped to default partition.\").optional(),\n document_id: z.string().describe(\"The ID of the document from which to retrieve entities. Must be a valid UUID.\"),\n}).describe(\"Request model for listing entities extracted from a specific document.\");\nconst RagieListEntitiesByDocument_EntityItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the entity.\"),\n data: z.object({}).describe(\"The extracted entity data as a key-value mapping.\"),\n chunk_id: z.string().describe(\"Optional ID of the chunk if entity is chunk-scoped. None if entity is document-scoped.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the entity was created (ISO 8601 datetime).\"),\n updated_at: z.string().describe(\"Timestamp when the entity was last updated (ISO 8601 datetime).\"),\n document_id: z.string().describe(\"ID of the document containing this entity.\"),\n instruction_id: z.string().describe(\"ID of the instruction that generated this entity.\"),\n}).describe(\"Represents a single extracted entity from a document.\");\nconst RagieListEntitiesByDocument_PaginationSchema: z.ZodTypeAny = z.object({\n next_cursor: z.string().describe(\"Cursor for the next page of results. None if no more pages available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of entities available for this document.\"),\n}).describe(\"Pagination metadata for the entity list response.\");\nexport const RagieListEntitiesByDocumentOutput: z.ZodTypeAny = z.object({\n entities: z.array(RagieListEntitiesByDocument_EntityItemSchema).describe(\"List of extracted entities from the document.\"),\n pagination: RagieListEntitiesByDocument_PaginationSchema.nullable(),\n}).describe(\"Response model for listing entities from a document.\");\n\nexport const ragieListEntitiesByDocument = action(\"RAGIE_LIST_ENTITIES_BY_DOCUMENT\", {\n slug: \"ragie-list-entities-by-document\",\n name: \"List Entities By Document\",\n description: \"Tool to retrieve all extracted entities from a specific document with pagination support. Use when you need to access structured data that has been extracted from a document by Ragie's entity extraction instructions.\",\n input: RagieListEntitiesByDocumentInput,\n output: RagieListEntitiesByDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACzJ,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACvI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;AAClH,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,+CAA6D,EAAE,OAAO;CAC1E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,mDAAmD;CAC/E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC7E,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;AACzF,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAM,+CAA6D,EAAE,OAAO;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD;AAChG,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAM/D,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV6D,EAAE,OAAO;EACtE,UAAU,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,+CAA+C;EACxH,YAAY,6CAA6C,SAAS;CACpE,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-entities-by-document.mjs","names":[],"sources":["../../src/actions/list-entities-by-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListEntitiesByDocumentInput = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination. Use the next_cursor from a previous response to fetch the next page of results.\").optional(),\n page_size: z.number().int().describe(\"Number of items per page. Must be between 1 and 100. Defaults to 10 if not specified.\").optional(),\n partition: z.string().describe(\"An optional partition to scope the request to. If omitted, scoped to default partition.\").optional(),\n document_id: z.string().describe(\"The ID of the document from which to retrieve entities. Must be a valid UUID.\"),\n}).describe(\"Request model for listing entities extracted from a specific document.\");\nconst RagieListEntitiesByDocument_EntityItemSchema = z.object({\n id: z.string().describe(\"Unique identifier of the entity.\").nullable(),\n data: z.record(z.string(), z.unknown()).describe(\"The extracted entity data as a key-value mapping.\"),\n chunk_id: z.string().describe(\"Optional ID of the chunk if entity is chunk-scoped. None if entity is document-scoped.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the entity was created (ISO 8601 datetime).\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the entity was last updated (ISO 8601 datetime).\").nullable(),\n document_id: z.string().describe(\"ID of the document containing this entity.\").nullable(),\n instruction_id: z.string().describe(\"ID of the instruction that generated this entity.\").nullable(),\n}).passthrough().describe(\"Represents a single extracted entity from a document.\");\nconst RagieListEntitiesByDocument_PaginationSchema = z.object({\n next_cursor: z.string().describe(\"Cursor for the next page of results. None if no more pages available.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of entities available for this document.\").nullable(),\n}).passthrough().describe(\"Pagination metadata for the entity list response.\");\nexport const RagieListEntitiesByDocumentOutput = z.object({\n entities: z.array(RagieListEntitiesByDocument_EntityItemSchema).describe(\"List of extracted entities from the document.\"),\n pagination: RagieListEntitiesByDocument_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for listing entities from a document.\");\n\nexport const ragieListEntitiesByDocument = action(\"RAGIE_LIST_ENTITIES_BY_DOCUMENT\", {\n slug: \"ragie-list-entities-by-document\",\n name: \"List Entities By Document\",\n description: \"Tool to retrieve all extracted entities from a specific document with pagination support. Use when you need to access structured data that has been extracted from a document by Ragie's entity extraction instructions.\",\n input: RagieListEntitiesByDocumentInput,\n output: RagieListEntitiesByDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kHAAkH,CAAC,CAAC,SAAS;CACzJ,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CACvI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS;CACnI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+EAA+E;AAClH,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mDAAmD;CACpG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CAC5G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACxF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAM,+CAA+C,EAAE,OAAO;CAC5D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAM7E,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+C,EAAE,OAAO;EACxD,UAAU,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,+CAA+C;EACxH,YAAY,6CAA6C,SAAS;CACpE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
@@ -8,22 +8,22 @@ const RagieListEntitiesByInstructionInput = zod.z.object({
8
8
  instruction_id: zod.z.string().describe("The ID of the instruction (UUID format).")
9
9
  }).describe("Request model for listing entities generated by a specific instruction.");
10
10
  const RagieListEntitiesByInstruction_EntitySchema = zod.z.object({
11
- id: zod.z.string().describe("The unique identifier of the entity (UUID format)."),
12
- data: zod.z.object({}).describe("The entity data generated by the instruction."),
11
+ id: zod.z.string().describe("The unique identifier of the entity (UUID format).").nullable(),
12
+ data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The entity data generated by the instruction."),
13
13
  chunk_id: zod.z.string().describe("The ID of the chunk within the document (UUID format), if applicable.").nullable().optional(),
14
- created_at: zod.z.string().describe("The timestamp when the entity was created (ISO 8601 date-time format)."),
15
- updated_at: zod.z.string().describe("The timestamp when the entity was last updated (ISO 8601 date-time format)."),
16
- document_id: zod.z.string().describe("The ID of the document which the entity was produced from (UUID format)."),
17
- instruction_id: zod.z.string().describe("The ID of the instruction which generated the entity (UUID format).")
18
- }).describe("Represents an entity generated by an instruction.");
14
+ created_at: zod.z.string().describe("The timestamp when the entity was created (ISO 8601 date-time format).").nullable(),
15
+ updated_at: zod.z.string().describe("The timestamp when the entity was last updated (ISO 8601 date-time format).").nullable(),
16
+ document_id: zod.z.string().describe("The ID of the document which the entity was produced from (UUID format).").nullable(),
17
+ instruction_id: zod.z.string().describe("The ID of the instruction which generated the entity (UUID format).").nullable()
18
+ }).passthrough().describe("Represents an entity generated by an instruction.");
19
19
  const RagieListEntitiesByInstruction_PaginationSchema = zod.z.object({
20
20
  next_cursor: zod.z.string().describe("The cursor to use for fetching the next page of results. None if no more pages.").nullable().optional(),
21
- total_count: zod.z.number().int().describe("Total number of entities available.")
22
- }).describe("Pagination information for the entity list.");
21
+ total_count: zod.z.number().int().describe("Total number of entities available.").nullable()
22
+ }).passthrough().describe("Pagination information for the entity list.");
23
23
  const RagieListEntitiesByInstructionOutput = zod.z.object({
24
24
  entities: zod.z.array(RagieListEntitiesByInstruction_EntitySchema).describe("List of entities generated by the instruction."),
25
25
  pagination: RagieListEntitiesByInstruction_PaginationSchema.nullable()
26
- }).describe("Response model for listing entities generated by a specific instruction.");
26
+ }).passthrough().describe("Response model for listing entities generated by a specific instruction.");
27
27
  const ragieListEntitiesByInstruction = require_action.action("RAGIE_LIST_ENTITIES_BY_INSTRUCTION", {
28
28
  slug: "ragie-list-entities-by-instruction",
29
29
  name: "List Entities by Instruction",
@@ -1 +1 @@
1
- {"version":3,"file":"list-entities-by-instruction.cjs","names":["z","action"],"sources":["../../src/actions/list-entities-by-instruction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListEntitiesByInstructionInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination to fetch the next page of results.\").optional(),\n page_size: z.number().int().describe(\"The number of items per page. Must be between 1 and 100. Default is 10.\").optional(),\n partition: z.string().describe(\"An optional partition to scope the request to.\").optional(),\n instruction_id: z.string().describe(\"The ID of the instruction (UUID format).\"),\n}).describe(\"Request model for listing entities generated by a specific instruction.\");\nconst RagieListEntitiesByInstruction_EntitySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the entity (UUID format).\"),\n data: z.object({}).describe(\"The entity data generated by the instruction.\"),\n chunk_id: z.string().describe(\"The ID of the chunk within the document (UUID format), if applicable.\").nullable().optional(),\n created_at: z.string().describe(\"The timestamp when the entity was created (ISO 8601 date-time format).\"),\n updated_at: z.string().describe(\"The timestamp when the entity was last updated (ISO 8601 date-time format).\"),\n document_id: z.string().describe(\"The ID of the document which the entity was produced from (UUID format).\"),\n instruction_id: z.string().describe(\"The ID of the instruction which generated the entity (UUID format).\"),\n}).describe(\"Represents an entity generated by an instruction.\");\nconst RagieListEntitiesByInstruction_PaginationSchema: z.ZodTypeAny = z.object({\n next_cursor: z.string().describe(\"The cursor to use for fetching the next page of results. None if no more pages.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of entities available.\"),\n}).describe(\"Pagination information for the entity list.\");\nexport const RagieListEntitiesByInstructionOutput: z.ZodTypeAny = z.object({\n entities: z.array(RagieListEntitiesByInstruction_EntitySchema).describe(\"List of entities generated by the instruction.\"),\n pagination: RagieListEntitiesByInstruction_PaginationSchema.nullable(),\n}).describe(\"Response model for listing entities generated by a specific instruction.\");\n\nexport const ragieListEntitiesByInstruction = action(\"RAGIE_LIST_ENTITIES_BY_INSTRUCTION\", {\n slug: \"ragie-list-entities-by-instruction\",\n name: \"List Entities by Instruction\",\n description: \"Tool to retrieve entities generated by a specific instruction. Use when you need to fetch entities extracted from documents based on a specific instruction's processing.\",\n input: RagieListEntitiesByInstructionInput,\n output: RagieListEntitiesByInstructionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoDA,IAAAA,EAAE,OAAO;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACzH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAChF,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC5E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAC3E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CAC7G,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CAC3G,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AAC3G,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;AAC9E,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,UAAUA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,gDAAgD;CACxH,YAAY,gDAAgD,SAAS;AACvE,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAEtF,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-entities-by-instruction.cjs","names":["z","action"],"sources":["../../src/actions/list-entities-by-instruction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListEntitiesByInstructionInput = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination to fetch the next page of results.\").optional(),\n page_size: z.number().int().describe(\"The number of items per page. Must be between 1 and 100. Default is 10.\").optional(),\n partition: z.string().describe(\"An optional partition to scope the request to.\").optional(),\n instruction_id: z.string().describe(\"The ID of the instruction (UUID format).\"),\n}).describe(\"Request model for listing entities generated by a specific instruction.\");\nconst RagieListEntitiesByInstruction_EntitySchema = z.object({\n id: z.string().describe(\"The unique identifier of the entity (UUID format).\").nullable(),\n data: z.record(z.string(), z.unknown()).describe(\"The entity data generated by the instruction.\"),\n chunk_id: z.string().describe(\"The ID of the chunk within the document (UUID format), if applicable.\").nullable().optional(),\n created_at: z.string().describe(\"The timestamp when the entity was created (ISO 8601 date-time format).\").nullable(),\n updated_at: z.string().describe(\"The timestamp when the entity was last updated (ISO 8601 date-time format).\").nullable(),\n document_id: z.string().describe(\"The ID of the document which the entity was produced from (UUID format).\").nullable(),\n instruction_id: z.string().describe(\"The ID of the instruction which generated the entity (UUID format).\").nullable(),\n}).passthrough().describe(\"Represents an entity generated by an instruction.\");\nconst RagieListEntitiesByInstruction_PaginationSchema = z.object({\n next_cursor: z.string().describe(\"The cursor to use for fetching the next page of results. None if no more pages.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of entities available.\").nullable(),\n}).passthrough().describe(\"Pagination information for the entity list.\");\nexport const RagieListEntitiesByInstructionOutput = z.object({\n entities: z.array(RagieListEntitiesByInstruction_EntitySchema).describe(\"List of entities generated by the instruction.\"),\n pagination: RagieListEntitiesByInstruction_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for listing entities generated by a specific instruction.\");\n\nexport const ragieListEntitiesByInstruction = action(\"RAGIE_LIST_ENTITIES_BY_INSTRUCTION\", {\n slug: \"ragie-list-entities-by-instruction\",\n name: \"List Entities by Instruction\",\n description: \"Tool to retrieve entities generated by a specific instruction. Use when you need to fetch entities extracted from documents based on a specific instruction's processing.\",\n input: RagieListEntitiesByInstructionInput,\n output: RagieListEntitiesByInstructionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACzH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAChF,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACvF,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACnH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACxH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACtH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AACvE,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,UAAUA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,gDAAgD;CACxH,YAAY,gDAAgD,SAAS;AACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAA0E;AAEpG,MAAa,iCAAiCC,eAAAA,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-entities-by-instruction.d.ts
4
- declare const RagieListEntitiesByInstructionInput: z.ZodTypeAny;
5
- declare const RagieListEntitiesByInstructionOutput: z.ZodTypeAny;
6
- declare const ragieListEntitiesByInstruction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieListEntitiesByInstructionInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ page_size: z.ZodOptional<z.ZodNumber>;
7
+ partition: z.ZodOptional<z.ZodString>;
8
+ instruction_id: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const RagieListEntitiesByInstructionOutput: z.ZodObject<{
11
+ entities: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodString>;
13
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ chunk_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ created_at: z.ZodNullable<z.ZodString>;
16
+ updated_at: z.ZodNullable<z.ZodString>;
17
+ document_id: z.ZodNullable<z.ZodString>;
18
+ instruction_id: z.ZodNullable<z.ZodString>;
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 ragieListEntitiesByInstruction: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ instruction_id: string;
27
+ cursor?: string | undefined;
28
+ page_size?: number | undefined;
29
+ partition?: string | undefined;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { ragieListEntitiesByInstruction };
9
33
  //# sourceMappingURL=list-entities-by-instruction.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-entities-by-instruction.d.cts","names":[],"sources":["../../src/actions/list-entities-by-instruction.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAKkC;AAAA,cAczE,oCAAA,EAAsC,CAAA,CAAE,UAGkC;AAAA,cAE1E,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-entities-by-instruction.d.cts","names":[],"sources":["../../src/actions/list-entities-by-instruction.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAmBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAKpC,8BAAA,gCAA8B,wBAAA"}
@@ -1,9 +1,33 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-entities-by-instruction.d.ts
4
- declare const RagieListEntitiesByInstructionInput: z.ZodTypeAny;
5
- declare const RagieListEntitiesByInstructionOutput: z.ZodTypeAny;
6
- declare const ragieListEntitiesByInstruction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieListEntitiesByInstructionInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ page_size: z.ZodOptional<z.ZodNumber>;
7
+ partition: z.ZodOptional<z.ZodString>;
8
+ instruction_id: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const RagieListEntitiesByInstructionOutput: z.ZodObject<{
11
+ entities: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodString>;
13
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ chunk_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ created_at: z.ZodNullable<z.ZodString>;
16
+ updated_at: z.ZodNullable<z.ZodString>;
17
+ document_id: z.ZodNullable<z.ZodString>;
18
+ instruction_id: z.ZodNullable<z.ZodString>;
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 ragieListEntitiesByInstruction: import("@keystrokehq/action").WorkflowActionDefinition<{
26
+ instruction_id: string;
27
+ cursor?: string | undefined;
28
+ page_size?: number | undefined;
29
+ partition?: string | undefined;
30
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
31
  //#endregion
8
32
  export { ragieListEntitiesByInstruction };
9
33
  //# sourceMappingURL=list-entities-by-instruction.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-entities-by-instruction.d.mts","names":[],"sources":["../../src/actions/list-entities-by-instruction.ts"],"mappings":";;;cAIa,mCAAA,EAAqC,CAAA,CAAE,UAKkC;AAAA,cAczE,oCAAA,EAAsC,CAAA,CAAE,UAGkC;AAAA,cAE1E,8BAAA,gCAA8B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-entities-by-instruction.d.mts","names":[],"sources":["../../src/actions/list-entities-by-instruction.ts"],"mappings":";;;cAIa,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;cAmBnC,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAKpC,8BAAA,gCAA8B,wBAAA"}
@@ -8,18 +8,18 @@ const RagieListEntitiesByInstructionInput = z.object({
8
8
  instruction_id: z.string().describe("The ID of the instruction (UUID format).")
9
9
  }).describe("Request model for listing entities generated by a specific instruction.");
10
10
  const RagieListEntitiesByInstruction_EntitySchema = z.object({
11
- id: z.string().describe("The unique identifier of the entity (UUID format)."),
12
- data: z.object({}).describe("The entity data generated by the instruction."),
11
+ id: z.string().describe("The unique identifier of the entity (UUID format).").nullable(),
12
+ data: z.record(z.string(), z.unknown()).describe("The entity data generated by the instruction."),
13
13
  chunk_id: z.string().describe("The ID of the chunk within the document (UUID format), if applicable.").nullable().optional(),
14
- created_at: z.string().describe("The timestamp when the entity was created (ISO 8601 date-time format)."),
15
- updated_at: z.string().describe("The timestamp when the entity was last updated (ISO 8601 date-time format)."),
16
- document_id: z.string().describe("The ID of the document which the entity was produced from (UUID format)."),
17
- instruction_id: z.string().describe("The ID of the instruction which generated the entity (UUID format).")
18
- }).describe("Represents an entity generated by an instruction.");
14
+ created_at: z.string().describe("The timestamp when the entity was created (ISO 8601 date-time format).").nullable(),
15
+ updated_at: z.string().describe("The timestamp when the entity was last updated (ISO 8601 date-time format).").nullable(),
16
+ document_id: z.string().describe("The ID of the document which the entity was produced from (UUID format).").nullable(),
17
+ instruction_id: z.string().describe("The ID of the instruction which generated the entity (UUID format).").nullable()
18
+ }).passthrough().describe("Represents an entity generated by an instruction.");
19
19
  const RagieListEntitiesByInstruction_PaginationSchema = z.object({
20
20
  next_cursor: z.string().describe("The cursor to use for fetching the next page of results. None if no more pages.").nullable().optional(),
21
- total_count: z.number().int().describe("Total number of entities available.")
22
- }).describe("Pagination information for the entity list.");
21
+ total_count: z.number().int().describe("Total number of entities available.").nullable()
22
+ }).passthrough().describe("Pagination information for the entity list.");
23
23
  const ragieListEntitiesByInstruction = action("RAGIE_LIST_ENTITIES_BY_INSTRUCTION", {
24
24
  slug: "ragie-list-entities-by-instruction",
25
25
  name: "List Entities by Instruction",
@@ -28,7 +28,7 @@ const ragieListEntitiesByInstruction = action("RAGIE_LIST_ENTITIES_BY_INSTRUCTIO
28
28
  output: z.object({
29
29
  entities: z.array(RagieListEntitiesByInstruction_EntitySchema).describe("List of entities generated by the instruction."),
30
30
  pagination: RagieListEntitiesByInstruction_PaginationSchema.nullable()
31
- }).describe("Response model for listing entities generated by a specific instruction.")
31
+ }).passthrough().describe("Response model for listing entities generated by a specific instruction.")
32
32
  });
33
33
  //#endregion
34
34
  export { ragieListEntitiesByInstruction };
@@ -1 +1 @@
1
- {"version":3,"file":"list-entities-by-instruction.mjs","names":[],"sources":["../../src/actions/list-entities-by-instruction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListEntitiesByInstructionInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination to fetch the next page of results.\").optional(),\n page_size: z.number().int().describe(\"The number of items per page. Must be between 1 and 100. Default is 10.\").optional(),\n partition: z.string().describe(\"An optional partition to scope the request to.\").optional(),\n instruction_id: z.string().describe(\"The ID of the instruction (UUID format).\"),\n}).describe(\"Request model for listing entities generated by a specific instruction.\");\nconst RagieListEntitiesByInstruction_EntitySchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The unique identifier of the entity (UUID format).\"),\n data: z.object({}).describe(\"The entity data generated by the instruction.\"),\n chunk_id: z.string().describe(\"The ID of the chunk within the document (UUID format), if applicable.\").nullable().optional(),\n created_at: z.string().describe(\"The timestamp when the entity was created (ISO 8601 date-time format).\"),\n updated_at: z.string().describe(\"The timestamp when the entity was last updated (ISO 8601 date-time format).\"),\n document_id: z.string().describe(\"The ID of the document which the entity was produced from (UUID format).\"),\n instruction_id: z.string().describe(\"The ID of the instruction which generated the entity (UUID format).\"),\n}).describe(\"Represents an entity generated by an instruction.\");\nconst RagieListEntitiesByInstruction_PaginationSchema: z.ZodTypeAny = z.object({\n next_cursor: z.string().describe(\"The cursor to use for fetching the next page of results. None if no more pages.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of entities available.\"),\n}).describe(\"Pagination information for the entity list.\");\nexport const RagieListEntitiesByInstructionOutput: z.ZodTypeAny = z.object({\n entities: z.array(RagieListEntitiesByInstruction_EntitySchema).describe(\"List of entities generated by the instruction.\"),\n pagination: RagieListEntitiesByInstruction_PaginationSchema.nullable(),\n}).describe(\"Response model for listing entities generated by a specific instruction.\");\n\nexport const ragieListEntitiesByInstruction = action(\"RAGIE_LIST_ENTITIES_BY_INSTRUCTION\", {\n slug: \"ragie-list-entities-by-instruction\",\n name: \"List Entities by Instruction\",\n description: \"Tool to retrieve entities generated by a specific instruction. Use when you need to fetch entities extracted from documents based on a specific instruction's processing.\",\n input: RagieListEntitiesByInstructionInput,\n output: RagieListEntitiesByInstructionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAoD,EAAE,OAAO;CACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACzH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAChF,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,8CAA4D,EAAE,OAAO;CACzE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAC3E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE;CACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CAC7G,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E;CAC3G,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AAC3G,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,kDAAgE,EAAE,OAAO;CAC7E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;AAC9E,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAMzD,MAAa,iCAAiC,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVgE,EAAE,OAAO;EACzE,UAAU,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,gDAAgD;EACxH,YAAY,gDAAgD,SAAS;CACvE,CAAC,CAAC,CAAC,SAAS,0EAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-entities-by-instruction.mjs","names":[],"sources":["../../src/actions/list-entities-by-instruction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListEntitiesByInstructionInput = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination to fetch the next page of results.\").optional(),\n page_size: z.number().int().describe(\"The number of items per page. Must be between 1 and 100. Default is 10.\").optional(),\n partition: z.string().describe(\"An optional partition to scope the request to.\").optional(),\n instruction_id: z.string().describe(\"The ID of the instruction (UUID format).\"),\n}).describe(\"Request model for listing entities generated by a specific instruction.\");\nconst RagieListEntitiesByInstruction_EntitySchema = z.object({\n id: z.string().describe(\"The unique identifier of the entity (UUID format).\").nullable(),\n data: z.record(z.string(), z.unknown()).describe(\"The entity data generated by the instruction.\"),\n chunk_id: z.string().describe(\"The ID of the chunk within the document (UUID format), if applicable.\").nullable().optional(),\n created_at: z.string().describe(\"The timestamp when the entity was created (ISO 8601 date-time format).\").nullable(),\n updated_at: z.string().describe(\"The timestamp when the entity was last updated (ISO 8601 date-time format).\").nullable(),\n document_id: z.string().describe(\"The ID of the document which the entity was produced from (UUID format).\").nullable(),\n instruction_id: z.string().describe(\"The ID of the instruction which generated the entity (UUID format).\").nullable(),\n}).passthrough().describe(\"Represents an entity generated by an instruction.\");\nconst RagieListEntitiesByInstruction_PaginationSchema = z.object({\n next_cursor: z.string().describe(\"The cursor to use for fetching the next page of results. None if no more pages.\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of entities available.\").nullable(),\n}).passthrough().describe(\"Pagination information for the entity list.\");\nexport const RagieListEntitiesByInstructionOutput = z.object({\n entities: z.array(RagieListEntitiesByInstruction_EntitySchema).describe(\"List of entities generated by the instruction.\"),\n pagination: RagieListEntitiesByInstruction_PaginationSchema.nullable(),\n}).passthrough().describe(\"Response model for listing entities generated by a specific instruction.\");\n\nexport const ragieListEntitiesByInstruction = action(\"RAGIE_LIST_ENTITIES_BY_INSTRUCTION\", {\n slug: \"ragie-list-entities-by-instruction\",\n name: \"List Entities by Instruction\",\n description: \"Tool to retrieve entities generated by a specific instruction. Use when you need to fetch entities extracted from documents based on a specific instruction's processing.\",\n input: RagieListEntitiesByInstructionInput,\n output: RagieListEntitiesByInstructionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACzH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC1F,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;AAChF,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CACvF,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;CAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CACnH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACxH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACtH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACtH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,kDAAkD,EAAE,OAAO;CAC/D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACzF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAMvE,MAAa,iCAAiC,OAAO,sCAAsC;CACzF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVkD,EAAE,OAAO;EAC3D,UAAU,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,gDAAgD;EACxH,YAAY,gDAAgD,SAAS;CACvE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0EAOhB;AACV,CAAC"}
@@ -3,18 +3,18 @@ let zod = require("zod");
3
3
  //#region src/actions/list-instructions.ts
4
4
  const RagieListInstructionsInput = zod.z.object({}).describe("Request model for listing instructions. No parameters are required for this request.");
5
5
  const RagieListInstructions_InstructionItemSchema = zod.z.object({
6
- id: zod.z.string().describe("Unique identifier for the instruction (UUID format)."),
7
- name: zod.z.string().describe("Unique identifier name for the instruction."),
8
- scope: zod.z.enum(["document", "chunk"]).describe("Determines the application level. Values: 'document' or 'chunk'."),
9
- active: zod.z.boolean().describe("Indicates whether the instruction is currently active and applies to documents during creation/update."),
6
+ id: zod.z.string().describe("Unique identifier for the instruction (UUID format).").nullable(),
7
+ name: zod.z.string().describe("Unique identifier name for the instruction.").nullable(),
8
+ scope: zod.z.enum(["document", "chunk"]).describe("Determines the application level. Values: 'document' or 'chunk'.").nullable(),
9
+ active: zod.z.boolean().describe("Indicates whether the instruction is currently active and applies to documents during creation/update.").nullable(),
10
10
  filter: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata filter for matching documents. Supports operators: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin.").nullable().optional(),
11
- prompt: zod.z.string().describe("Natural language instruction text that is applied to documents."),
11
+ prompt: zod.z.string().describe("Natural language instruction text that is applied to documents.").nullable(),
12
12
  partition: zod.z.string().describe("Partition identifier to scope the instruction to a specific partition.").nullable().optional(),
13
- created_at: zod.z.string().describe("ISO 8601 timestamp when the instruction was created."),
14
- updated_at: zod.z.string().describe("ISO 8601 timestamp when the instruction was last modified."),
13
+ created_at: zod.z.string().describe("ISO 8601 timestamp when the instruction was created.").nullable(),
14
+ updated_at: zod.z.string().describe("ISO 8601 timestamp when the instruction was last modified.").nullable(),
15
15
  entity_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON Schema object defining the structure of entities to be extracted. Root must be of object type.")
16
- }).describe("Schema for a single instruction item in the list.");
17
- const RagieListInstructionsOutput = zod.z.object({ instructions: zod.z.array(RagieListInstructions_InstructionItemSchema).describe("List of instruction objects.") }).describe("Response schema for listing instructions.");
16
+ }).passthrough().describe("Schema for a single instruction item in the list.");
17
+ const RagieListInstructionsOutput = zod.z.object({ instructions: zod.z.array(RagieListInstructions_InstructionItemSchema).describe("List of instruction objects.") }).passthrough().describe("Response schema for listing instructions.");
18
18
  const ragieListInstructions = require_action.action("RAGIE_LIST_INSTRUCTIONS", {
19
19
  slug: "ragie-list-instructions",
20
20
  name: "List Instructions",
@@ -1 +1 @@
1
- {"version":3,"file":"list-instructions.cjs","names":["z","action"],"sources":["../../src/actions/list-instructions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListInstructionsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing instructions. No parameters are required for this request.\");\nconst RagieListInstructions_InstructionItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the instruction (UUID format).\"),\n name: z.string().describe(\"Unique identifier name for the instruction.\"),\n scope: z.enum([\"document\", \"chunk\"]).describe(\"Determines the application level. Values: 'document' or 'chunk'.\"),\n active: z.boolean().describe(\"Indicates whether the instruction is currently active and applies to documents during creation/update.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter for matching documents. Supports operators: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin.\").nullable().optional(),\n prompt: z.string().describe(\"Natural language instruction text that is applied to documents.\"),\n partition: z.string().describe(\"Partition identifier to scope the instruction to a specific partition.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the instruction was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the instruction was last modified.\"),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema object defining the structure of entities to be extracted. Root must be of object type.\"),\n}).describe(\"Schema for a single instruction item in the list.\");\nexport const RagieListInstructionsOutput: z.ZodTypeAny = z.object({\n instructions: z.array(RagieListInstructions_InstructionItemSchema).describe(\"List of instruction objects.\"),\n}).describe(\"Response schema for listing instructions.\");\n\nexport const ragieListInstructions = action(\"RAGIE_LIST_INSTRUCTIONS\", {\n slug: \"ragie-list-instructions\",\n name: \"List Instructions\",\n description: \"Tool to retrieve all instruction records from the Ragie system. Use when you need to view all available instructions that define natural language prompts and entity schemas applied to documents.\",\n input: RagieListInstructionsInput,\n output: RagieListInstructionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sFAAsF;AACpK,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC9E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACvE,OAAOA,IAAAA,EAAE,KAAK,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE;CAChH,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wGAAwG;CACrI,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC7F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC5F,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG;AACjK,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,cAAcA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,8BAA8B,EAC5G,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAEvD,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-instructions.cjs","names":["z","action"],"sources":["../../src/actions/list-instructions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListInstructionsInput = z.object({}).describe(\"Request model for listing instructions. No parameters are required for this request.\");\nconst RagieListInstructions_InstructionItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the instruction (UUID format).\").nullable(),\n name: z.string().describe(\"Unique identifier name for the instruction.\").nullable(),\n scope: z.enum([\"document\", \"chunk\"]).describe(\"Determines the application level. Values: 'document' or 'chunk'.\").nullable(),\n active: z.boolean().describe(\"Indicates whether the instruction is currently active and applies to documents during creation/update.\").nullable(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter for matching documents. Supports operators: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin.\").nullable().optional(),\n prompt: z.string().describe(\"Natural language instruction text that is applied to documents.\").nullable(),\n partition: z.string().describe(\"Partition identifier to scope the instruction to a specific partition.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the instruction was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the instruction was last modified.\").nullable(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema object defining the structure of entities to be extracted. Root must be of object type.\"),\n}).passthrough().describe(\"Schema for a single instruction item in the list.\");\nexport const RagieListInstructionsOutput = z.object({\n instructions: z.array(RagieListInstructions_InstructionItemSchema).describe(\"List of instruction objects.\"),\n}).passthrough().describe(\"Response schema for listing instructions.\");\n\nexport const ragieListInstructions = action(\"RAGIE_LIST_INSTRUCTIONS\", {\n slug: \"ragie-list-instructions\",\n name: \"List Instructions\",\n description: \"Tool to retrieve all instruction records from the Ragie system. Use when you need to view all available instructions that define natural language prompts and entity schemas applied to documents.\",\n input: RagieListInstructionsInput,\n output: RagieListInstructionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sFAAsF;AACtJ,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACzF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAOA,IAAAA,EAAE,KAAK,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3H,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAChJ,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACxG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG;AACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,cAAcA,IAAAA,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,8BAA8B,EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAA2C;AAErE,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-instructions.d.ts
4
- declare const RagieListInstructionsInput: z.ZodTypeAny;
5
- declare const RagieListInstructionsOutput: z.ZodTypeAny;
6
- declare const ragieListInstructions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieListInstructionsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const RagieListInstructionsOutput: z.ZodObject<{
6
+ instructions: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ scope: z.ZodNullable<z.ZodEnum<{
10
+ document: "document";
11
+ chunk: "chunk";
12
+ }>>;
13
+ active: z.ZodNullable<z.ZodBoolean>;
14
+ filter: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ prompt: z.ZodNullable<z.ZodString>;
16
+ partition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ created_at: z.ZodNullable<z.ZodString>;
18
+ updated_at: z.ZodNullable<z.ZodString>;
19
+ entity_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
20
+ }, z.core.$loose>>;
21
+ }, z.core.$loose>;
22
+ declare const ragieListInstructions: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { ragieListInstructions };
9
25
  //# sourceMappingURL=list-instructions.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-instructions.d.cts","names":[],"sources":["../../src/actions/list-instructions.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAA0H;AAAA,cAaxJ,2BAAA,EAA6B,CAAA,CAAE,UAEY;AAAA,cAE3C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-instructions.d.cts","names":[],"sources":["../../src/actions/list-instructions.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAa1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,25 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-instructions.d.ts
4
- declare const RagieListInstructionsInput: z.ZodTypeAny;
5
- declare const RagieListInstructionsOutput: z.ZodTypeAny;
6
- declare const ragieListInstructions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieListInstructionsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const RagieListInstructionsOutput: z.ZodObject<{
6
+ instructions: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ name: z.ZodNullable<z.ZodString>;
9
+ scope: z.ZodNullable<z.ZodEnum<{
10
+ document: "document";
11
+ chunk: "chunk";
12
+ }>>;
13
+ active: z.ZodNullable<z.ZodBoolean>;
14
+ filter: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
15
+ prompt: z.ZodNullable<z.ZodString>;
16
+ partition: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ created_at: z.ZodNullable<z.ZodString>;
18
+ updated_at: z.ZodNullable<z.ZodString>;
19
+ entity_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
20
+ }, z.core.$loose>>;
21
+ }, z.core.$loose>;
22
+ declare const ragieListInstructions: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
23
  //#endregion
8
24
  export { ragieListInstructions };
9
25
  //# sourceMappingURL=list-instructions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-instructions.d.mts","names":[],"sources":["../../src/actions/list-instructions.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAA0H;AAAA,cAaxJ,2BAAA,EAA6B,CAAA,CAAE,UAEY;AAAA,cAE3C,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-instructions.d.mts","names":[],"sources":["../../src/actions/list-instructions.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAa1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -3,23 +3,23 @@ import { z } from "zod";
3
3
  //#region src/actions/list-instructions.ts
4
4
  const RagieListInstructionsInput = z.object({}).describe("Request model for listing instructions. No parameters are required for this request.");
5
5
  const RagieListInstructions_InstructionItemSchema = z.object({
6
- id: z.string().describe("Unique identifier for the instruction (UUID format)."),
7
- name: z.string().describe("Unique identifier name for the instruction."),
8
- scope: z.enum(["document", "chunk"]).describe("Determines the application level. Values: 'document' or 'chunk'."),
9
- active: z.boolean().describe("Indicates whether the instruction is currently active and applies to documents during creation/update."),
6
+ id: z.string().describe("Unique identifier for the instruction (UUID format).").nullable(),
7
+ name: z.string().describe("Unique identifier name for the instruction.").nullable(),
8
+ scope: z.enum(["document", "chunk"]).describe("Determines the application level. Values: 'document' or 'chunk'.").nullable(),
9
+ active: z.boolean().describe("Indicates whether the instruction is currently active and applies to documents during creation/update.").nullable(),
10
10
  filter: z.record(z.string(), z.unknown()).describe("Metadata filter for matching documents. Supports operators: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin.").nullable().optional(),
11
- prompt: z.string().describe("Natural language instruction text that is applied to documents."),
11
+ prompt: z.string().describe("Natural language instruction text that is applied to documents.").nullable(),
12
12
  partition: z.string().describe("Partition identifier to scope the instruction to a specific partition.").nullable().optional(),
13
- created_at: z.string().describe("ISO 8601 timestamp when the instruction was created."),
14
- updated_at: z.string().describe("ISO 8601 timestamp when the instruction was last modified."),
13
+ created_at: z.string().describe("ISO 8601 timestamp when the instruction was created.").nullable(),
14
+ updated_at: z.string().describe("ISO 8601 timestamp when the instruction was last modified.").nullable(),
15
15
  entity_schema: z.record(z.string(), z.unknown()).describe("JSON Schema object defining the structure of entities to be extracted. Root must be of object type.")
16
- }).describe("Schema for a single instruction item in the list.");
16
+ }).passthrough().describe("Schema for a single instruction item in the list.");
17
17
  const ragieListInstructions = action("RAGIE_LIST_INSTRUCTIONS", {
18
18
  slug: "ragie-list-instructions",
19
19
  name: "List Instructions",
20
20
  description: "Tool to retrieve all instruction records from the Ragie system. Use when you need to view all available instructions that define natural language prompts and entity schemas applied to documents.",
21
21
  input: RagieListInstructionsInput,
22
- output: z.object({ instructions: z.array(RagieListInstructions_InstructionItemSchema).describe("List of instruction objects.") }).describe("Response schema for listing instructions.")
22
+ output: z.object({ instructions: z.array(RagieListInstructions_InstructionItemSchema).describe("List of instruction objects.") }).passthrough().describe("Response schema for listing instructions.")
23
23
  });
24
24
  //#endregion
25
25
  export { ragieListInstructions };
@@ -1 +1 @@
1
- {"version":3,"file":"list-instructions.mjs","names":[],"sources":["../../src/actions/list-instructions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListInstructionsInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing instructions. No parameters are required for this request.\");\nconst RagieListInstructions_InstructionItemSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the instruction (UUID format).\"),\n name: z.string().describe(\"Unique identifier name for the instruction.\"),\n scope: z.enum([\"document\", \"chunk\"]).describe(\"Determines the application level. Values: 'document' or 'chunk'.\"),\n active: z.boolean().describe(\"Indicates whether the instruction is currently active and applies to documents during creation/update.\"),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter for matching documents. Supports operators: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin.\").nullable().optional(),\n prompt: z.string().describe(\"Natural language instruction text that is applied to documents.\"),\n partition: z.string().describe(\"Partition identifier to scope the instruction to a specific partition.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the instruction was created.\"),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the instruction was last modified.\"),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema object defining the structure of entities to be extracted. Root must be of object type.\"),\n}).describe(\"Schema for a single instruction item in the list.\");\nexport const RagieListInstructionsOutput: z.ZodTypeAny = z.object({\n instructions: z.array(RagieListInstructions_InstructionItemSchema).describe(\"List of instruction objects.\"),\n}).describe(\"Response schema for listing instructions.\");\n\nexport const ragieListInstructions = action(\"RAGIE_LIST_INSTRUCTIONS\", {\n slug: \"ragie-list-instructions\",\n name: \"List Instructions\",\n description: \"Tool to retrieve all instruction records from the Ragie system. Use when you need to view all available instructions that define natural language prompts and entity schemas applied to documents.\",\n input: RagieListInstructionsInput,\n output: RagieListInstructionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sFAAsF;AACpK,MAAM,8CAA4D,EAAE,OAAO;CACzE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CAC9E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CACvE,OAAO,EAAE,KAAK,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE;CAChH,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wGAAwG;CACrI,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE;CAC7F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D;CAC5F,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG;AACjK,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAK/D,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,cAAc,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,8BAA8B,EAC5G,CAAC,CAAC,CAAC,SAAS,2CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-instructions.mjs","names":[],"sources":["../../src/actions/list-instructions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListInstructionsInput = z.object({}).describe(\"Request model for listing instructions. No parameters are required for this request.\");\nconst RagieListInstructions_InstructionItemSchema = z.object({\n id: z.string().describe(\"Unique identifier for the instruction (UUID format).\").nullable(),\n name: z.string().describe(\"Unique identifier name for the instruction.\").nullable(),\n scope: z.enum([\"document\", \"chunk\"]).describe(\"Determines the application level. Values: 'document' or 'chunk'.\").nullable(),\n active: z.boolean().describe(\"Indicates whether the instruction is currently active and applies to documents during creation/update.\").nullable(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter for matching documents. Supports operators: $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin.\").nullable().optional(),\n prompt: z.string().describe(\"Natural language instruction text that is applied to documents.\").nullable(),\n partition: z.string().describe(\"Partition identifier to scope the instruction to a specific partition.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the instruction was created.\").nullable(),\n updated_at: z.string().describe(\"ISO 8601 timestamp when the instruction was last modified.\").nullable(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema object defining the structure of entities to be extracted. Root must be of object type.\"),\n}).passthrough().describe(\"Schema for a single instruction item in the list.\");\nexport const RagieListInstructionsOutput = z.object({\n instructions: z.array(RagieListInstructions_InstructionItemSchema).describe(\"List of instruction objects.\"),\n}).passthrough().describe(\"Response schema for listing instructions.\");\n\nexport const ragieListInstructions = action(\"RAGIE_LIST_INSTRUCTIONS\", {\n slug: \"ragie-list-instructions\",\n name: \"List Instructions\",\n description: \"Tool to retrieve all instruction records from the Ragie system. Use when you need to view all available instructions that define natural language prompts and entity schemas applied to documents.\",\n input: RagieListInstructionsInput,\n output: RagieListInstructionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,sFAAsF;AACtJ,MAAM,8CAA8C,EAAE,OAAO;CAC3D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACzF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,OAAO,EAAE,KAAK,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC3H,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CAChJ,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS;CACxG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACjG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qGAAqG;AACjK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAK7E,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,cAAc,EAAE,MAAM,2CAA2C,CAAC,CAAC,SAAS,8BAA8B,EAC5G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2CAOhB;AACV,CAAC"}