@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
@@ -7,8 +7,8 @@ const RagieListPartitionsInput = zod.z.object({
7
7
  }).describe("Request model for listing partitions.");
8
8
  const RagieListPartitions_PaginationMetadataSchema = zod.z.object({
9
9
  next_cursor: zod.z.string().describe("Cursor for retrieving subsequent pages (null if no more pages)").nullable().optional(),
10
- total_count: zod.z.number().int().describe("Total number of partitions available")
11
- }).describe("Pagination metadata for the response.");
10
+ total_count: zod.z.number().int().describe("Total number of partitions available").nullable()
11
+ }).passthrough().describe("Pagination metadata for the response.");
12
12
  const RagieListPartitions_PartitionLimitsSchema = zod.z.object({
13
13
  media_hosted_limit_max: zod.z.number().int().describe("Maximum limit, in MBs, for media hosted").nullable().optional(),
14
14
  pages_hosted_limit_max: zod.z.number().int().describe("Maximum limit, in pages, for hosted documents").nullable().optional(),
@@ -22,20 +22,20 @@ const RagieListPartitions_PartitionLimitsSchema = zod.z.object({
22
22
  audio_processed_limit_monthly: zod.z.number().int().describe("Monthly limit, in minutes, for audio processing").nullable().optional(),
23
23
  pages_processed_limit_monthly: zod.z.number().int().describe("Monthly limit, in pages, for processed documents").nullable().optional(),
24
24
  video_processed_limit_monthly: zod.z.number().int().describe("Monthly limit, in minutes, for video processing").nullable().optional()
25
- }).describe("Usage limits configuration for a partition.");
25
+ }).passthrough().describe("Usage limits configuration for a partition.");
26
26
  const RagieListPartitions_PartitionSchema = zod.z.object({
27
- name: zod.z.string().describe("Partition identifier"),
27
+ name: zod.z.string().describe("Partition identifier").nullable(),
28
28
  limits: RagieListPartitions_PartitionLimitsSchema.nullable(),
29
- is_default: zod.z.boolean().describe("Whether this is the default partition"),
29
+ is_default: zod.z.boolean().describe("Whether this is the default partition").nullable(),
30
30
  description: zod.z.string().describe("Partition description").nullable().optional(),
31
- context_aware: zod.z.boolean().describe("Context-awareness status"),
31
+ context_aware: zod.z.boolean().describe("Context-awareness status").nullable(),
32
32
  metadata_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Schema for partition metadata").nullable().optional(),
33
33
  limit_exceeded_at: zod.z.string().describe("Timestamp when partition exceeded limits").nullable().optional()
34
- }).describe("Partition object containing details about a single partition.");
34
+ }).passthrough().describe("Partition object containing details about a single partition.");
35
35
  const RagieListPartitionsOutput = zod.z.object({
36
36
  pagination: RagieListPartitions_PaginationMetadataSchema.nullable(),
37
37
  partitions: zod.z.array(RagieListPartitions_PartitionSchema).describe("Array of Partition objects")
38
- }).describe("Response model for listing partitions.");
38
+ }).passthrough().describe("Response model for listing partitions.");
39
39
  const ragieListPartitions = require_action.action("RAGIE_LIST_PARTITIONS", {
40
40
  slug: "ragie-list-partitions",
41
41
  name: "List Partitions",
@@ -1 +1 @@
1
- {"version":3,"file":"list-partitions.cjs","names":["z","action"],"sources":["../../src/actions/list-partitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListPartitionsInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination to retrieve the next page of results\").optional(),\n page_size: z.number().int().describe(\"The number of items per page (must be greater than 0 and less than or equal to 100). Defaults to 10.\").optional(),\n}).describe(\"Request model for listing partitions.\");\nconst RagieListPartitions_PaginationMetadataSchema: z.ZodTypeAny = z.object({\n next_cursor: z.string().describe(\"Cursor for retrieving subsequent pages (null if no more pages)\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of partitions available\"),\n}).describe(\"Pagination metadata for the response.\");\nconst RagieListPartitions_PartitionLimitsSchema: z.ZodTypeAny = z.object({\n media_hosted_limit_max: z.number().int().describe(\"Maximum limit, in MBs, for media hosted\").nullable().optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Maximum limit, in pages, for hosted documents\").nullable().optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum limit, in MBs, for media streamed\").nullable().optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum limit, in minutes, for audio processing\").nullable().optional(),\n pages_processed_limit_max: z.number().int().describe(\"Maximum limit, in pages, for processed documents\").nullable().optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum limit, in minutes, for video processing\").nullable().optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly limit, in MBs, for media hosted\").nullable().optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly limit of hosted pages added in current month\").nullable().optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly limit, in MBs, for media streamed\").nullable().optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in minutes, for audio processing\").nullable().optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in pages, for processed documents\").nullable().optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in minutes, for video processing\").nullable().optional(),\n}).describe(\"Usage limits configuration for a partition.\");\nconst RagieListPartitions_PartitionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Partition identifier\"),\n limits: RagieListPartitions_PartitionLimitsSchema.nullable(),\n is_default: z.boolean().describe(\"Whether this is the default partition\"),\n description: z.string().describe(\"Partition description\").nullable().optional(),\n context_aware: z.boolean().describe(\"Context-awareness status\"),\n metadata_schema: z.record(z.string(), z.unknown()).describe(\"Schema for partition metadata\").nullable().optional(),\n limit_exceeded_at: z.string().describe(\"Timestamp when partition exceeded limits\").nullable().optional(),\n}).describe(\"Partition object containing details about a single partition.\");\nexport const RagieListPartitionsOutput: z.ZodTypeAny = z.object({\n pagination: RagieListPartitions_PaginationMetadataSchema.nullable(),\n partitions: z.array(RagieListPartitions_PartitionSchema).describe(\"Array of Partition objects\"),\n}).describe(\"Response model for listing partitions.\");\n\nexport const ragieListPartitions = action(\"RAGIE_LIST_PARTITIONS\", {\n slug: \"ragie-list-partitions\",\n name: \"List Partitions\",\n description: \"Tool to retrieve a paginated list of all partitions sorted by name in ascending order. Use when you need to list available partitions with their configurations and limits.\",\n input: RagieListPartitionsInput,\n output: RagieListPartitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;AAC/E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH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QAAQ,CAAC,CAAC,SAAS,uCAAuC;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B;CAC9D,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,YAAY,6CAA6C,SAAS;CAClE,YAAYA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4BAA4B;AAChG,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-partitions.cjs","names":["z","action"],"sources":["../../src/actions/list-partitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListPartitionsInput = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination to retrieve the next page of results\").optional(),\n page_size: z.number().int().describe(\"The number of items per page (must be greater than 0 and less than or equal to 100). Defaults to 10.\").optional(),\n}).describe(\"Request model for listing partitions.\");\nconst RagieListPartitions_PaginationMetadataSchema = z.object({\n next_cursor: z.string().describe(\"Cursor for retrieving subsequent pages (null if no more pages)\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of partitions available\").nullable(),\n}).passthrough().describe(\"Pagination metadata for the response.\");\nconst RagieListPartitions_PartitionLimitsSchema = z.object({\n media_hosted_limit_max: z.number().int().describe(\"Maximum limit, in MBs, for media hosted\").nullable().optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Maximum limit, in pages, for hosted documents\").nullable().optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum limit, in MBs, for media streamed\").nullable().optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum limit, in minutes, for audio processing\").nullable().optional(),\n pages_processed_limit_max: z.number().int().describe(\"Maximum limit, in pages, for processed documents\").nullable().optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum limit, in minutes, for video processing\").nullable().optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly limit, in MBs, for media hosted\").nullable().optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly limit of hosted pages added in current month\").nullable().optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly limit, in MBs, for media streamed\").nullable().optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in minutes, for audio processing\").nullable().optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in pages, for processed documents\").nullable().optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in minutes, for video processing\").nullable().optional(),\n}).passthrough().describe(\"Usage limits configuration for a partition.\");\nconst RagieListPartitions_PartitionSchema = z.object({\n name: z.string().describe(\"Partition identifier\").nullable(),\n limits: RagieListPartitions_PartitionLimitsSchema.nullable(),\n is_default: z.boolean().describe(\"Whether this is the default partition\").nullable(),\n description: z.string().describe(\"Partition description\").nullable().optional(),\n context_aware: z.boolean().describe(\"Context-awareness status\").nullable(),\n metadata_schema: z.record(z.string(), z.unknown()).describe(\"Schema for partition metadata\").nullable().optional(),\n limit_exceeded_at: z.string().describe(\"Timestamp when partition exceeded limits\").nullable().optional(),\n}).passthrough().describe(\"Partition object containing details about a single partition.\");\nexport const RagieListPartitionsOutput = z.object({\n pagination: RagieListPartitions_PaginationMetadataSchema.nullable(),\n partitions: z.array(RagieListPartitions_PartitionSchema).describe(\"Array of Partition objects\"),\n}).passthrough().describe(\"Response model for listing partitions.\");\n\nexport const ragieListPartitions = action(\"RAGIE_LIST_PARTITIONS\", {\n slug: \"ragie-list-partitions\",\n name: \"List Partitions\",\n description: \"Tool to retrieve a paginated list of all partitions sorted by name in ascending order. Use when you need to list available partitions with their configurations and limits.\",\n input: RagieListPartitionsInput,\n output: RagieListPartitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC7G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,2BAA2BA,IA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3D,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,eAAeA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACzE,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AACzF,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,YAAY,6CAA6C,SAAS;CAClE,YAAYA,IAAAA,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4BAA4B;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,42 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-partitions.d.ts
4
- declare const RagieListPartitionsInput: z.ZodTypeAny;
5
- declare const RagieListPartitionsOutput: z.ZodTypeAny;
6
- declare const ragieListPartitions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieListPartitionsInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ page_size: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const RagieListPartitionsOutput: z.ZodObject<{
9
+ pagination: z.ZodNullable<z.ZodObject<{
10
+ next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ total_count: z.ZodNullable<z.ZodNumber>;
12
+ }, z.core.$loose>>;
13
+ partitions: z.ZodArray<z.ZodObject<{
14
+ name: z.ZodNullable<z.ZodString>;
15
+ limits: z.ZodNullable<z.ZodObject<{
16
+ media_hosted_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ pages_hosted_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ media_streamed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ audio_processed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ pages_processed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ video_processed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ media_hosted_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ pages_hosted_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ media_streamed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ audio_processed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ pages_processed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ video_processed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ }, z.core.$loose>>;
29
+ is_default: z.ZodNullable<z.ZodBoolean>;
30
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ context_aware: z.ZodNullable<z.ZodBoolean>;
32
+ metadata_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
33
+ limit_exceeded_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
+ declare const ragieListPartitions: import("@keystrokehq/action").WorkflowActionDefinition<{
37
+ cursor?: string | undefined;
38
+ page_size?: number | undefined;
39
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
40
  //#endregion
8
41
  export { ragieListPartitions };
9
42
  //# sourceMappingURL=list-partitions.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-partitions.d.cts","names":[],"sources":["../../src/actions/list-partitions.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGW;AAAA,cA4BvC,yBAAA,EAA2B,CAAA,CAAE,UAGW;AAAA,cAExC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-partitions.d.cts","names":[],"sources":["../../src/actions/list-partitions.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA+BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -1,9 +1,42 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/list-partitions.d.ts
4
- declare const RagieListPartitionsInput: z.ZodTypeAny;
5
- declare const RagieListPartitionsOutput: z.ZodTypeAny;
6
- declare const ragieListPartitions: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieListPartitionsInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ page_size: z.ZodOptional<z.ZodNumber>;
7
+ }, z.core.$strip>;
8
+ declare const RagieListPartitionsOutput: z.ZodObject<{
9
+ pagination: z.ZodNullable<z.ZodObject<{
10
+ next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ total_count: z.ZodNullable<z.ZodNumber>;
12
+ }, z.core.$loose>>;
13
+ partitions: z.ZodArray<z.ZodObject<{
14
+ name: z.ZodNullable<z.ZodString>;
15
+ limits: z.ZodNullable<z.ZodObject<{
16
+ media_hosted_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
17
+ pages_hosted_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ media_streamed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
19
+ audio_processed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ pages_processed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ video_processed_limit_max: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
+ media_hosted_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
23
+ pages_hosted_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
24
+ media_streamed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ audio_processed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ pages_processed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ video_processed_limit_monthly: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ }, z.core.$loose>>;
29
+ is_default: z.ZodNullable<z.ZodBoolean>;
30
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ context_aware: z.ZodNullable<z.ZodBoolean>;
32
+ metadata_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
33
+ limit_exceeded_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ }, z.core.$loose>>;
35
+ }, z.core.$loose>;
36
+ declare const ragieListPartitions: import("@keystrokehq/action").WorkflowActionDefinition<{
37
+ cursor?: string | undefined;
38
+ page_size?: number | undefined;
39
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
40
  //#endregion
8
41
  export { ragieListPartitions };
9
42
  //# sourceMappingURL=list-partitions.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-partitions.d.mts","names":[],"sources":["../../src/actions/list-partitions.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAGW;AAAA,cA4BvC,yBAAA,EAA2B,CAAA,CAAE,UAGW;AAAA,cAExC,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"list-partitions.d.mts","names":[],"sources":["../../src/actions/list-partitions.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cA+BxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKzB,mBAAA,gCAAmB,wBAAA"}
@@ -7,8 +7,8 @@ const RagieListPartitionsInput = z.object({
7
7
  }).describe("Request model for listing partitions.");
8
8
  const RagieListPartitions_PaginationMetadataSchema = z.object({
9
9
  next_cursor: z.string().describe("Cursor for retrieving subsequent pages (null if no more pages)").nullable().optional(),
10
- total_count: z.number().int().describe("Total number of partitions available")
11
- }).describe("Pagination metadata for the response.");
10
+ total_count: z.number().int().describe("Total number of partitions available").nullable()
11
+ }).passthrough().describe("Pagination metadata for the response.");
12
12
  const RagieListPartitions_PartitionLimitsSchema = z.object({
13
13
  media_hosted_limit_max: z.number().int().describe("Maximum limit, in MBs, for media hosted").nullable().optional(),
14
14
  pages_hosted_limit_max: z.number().int().describe("Maximum limit, in pages, for hosted documents").nullable().optional(),
@@ -22,16 +22,16 @@ const RagieListPartitions_PartitionLimitsSchema = z.object({
22
22
  audio_processed_limit_monthly: z.number().int().describe("Monthly limit, in minutes, for audio processing").nullable().optional(),
23
23
  pages_processed_limit_monthly: z.number().int().describe("Monthly limit, in pages, for processed documents").nullable().optional(),
24
24
  video_processed_limit_monthly: z.number().int().describe("Monthly limit, in minutes, for video processing").nullable().optional()
25
- }).describe("Usage limits configuration for a partition.");
25
+ }).passthrough().describe("Usage limits configuration for a partition.");
26
26
  const RagieListPartitions_PartitionSchema = z.object({
27
- name: z.string().describe("Partition identifier"),
27
+ name: z.string().describe("Partition identifier").nullable(),
28
28
  limits: RagieListPartitions_PartitionLimitsSchema.nullable(),
29
- is_default: z.boolean().describe("Whether this is the default partition"),
29
+ is_default: z.boolean().describe("Whether this is the default partition").nullable(),
30
30
  description: z.string().describe("Partition description").nullable().optional(),
31
- context_aware: z.boolean().describe("Context-awareness status"),
31
+ context_aware: z.boolean().describe("Context-awareness status").nullable(),
32
32
  metadata_schema: z.record(z.string(), z.unknown()).describe("Schema for partition metadata").nullable().optional(),
33
33
  limit_exceeded_at: z.string().describe("Timestamp when partition exceeded limits").nullable().optional()
34
- }).describe("Partition object containing details about a single partition.");
34
+ }).passthrough().describe("Partition object containing details about a single partition.");
35
35
  const ragieListPartitions = action("RAGIE_LIST_PARTITIONS", {
36
36
  slug: "ragie-list-partitions",
37
37
  name: "List Partitions",
@@ -40,7 +40,7 @@ const ragieListPartitions = action("RAGIE_LIST_PARTITIONS", {
40
40
  output: z.object({
41
41
  pagination: RagieListPartitions_PaginationMetadataSchema.nullable(),
42
42
  partitions: z.array(RagieListPartitions_PartitionSchema).describe("Array of Partition objects")
43
- }).describe("Response model for listing partitions.")
43
+ }).passthrough().describe("Response model for listing partitions.")
44
44
  });
45
45
  //#endregion
46
46
  export { ragieListPartitions };
@@ -1 +1 @@
1
- {"version":3,"file":"list-partitions.mjs","names":[],"sources":["../../src/actions/list-partitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListPartitionsInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination to retrieve the next page of results\").optional(),\n page_size: z.number().int().describe(\"The number of items per page (must be greater than 0 and less than or equal to 100). Defaults to 10.\").optional(),\n}).describe(\"Request model for listing partitions.\");\nconst RagieListPartitions_PaginationMetadataSchema: z.ZodTypeAny = z.object({\n next_cursor: z.string().describe(\"Cursor for retrieving subsequent pages (null if no more pages)\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of partitions available\"),\n}).describe(\"Pagination metadata for the response.\");\nconst RagieListPartitions_PartitionLimitsSchema: z.ZodTypeAny = z.object({\n media_hosted_limit_max: z.number().int().describe(\"Maximum limit, in MBs, for media hosted\").nullable().optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Maximum limit, in pages, for hosted documents\").nullable().optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum limit, in MBs, for media streamed\").nullable().optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum limit, in minutes, for audio processing\").nullable().optional(),\n pages_processed_limit_max: z.number().int().describe(\"Maximum limit, in pages, for processed documents\").nullable().optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum limit, in minutes, for video processing\").nullable().optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly limit, in MBs, for media hosted\").nullable().optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly limit of hosted pages added in current month\").nullable().optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly limit, in MBs, for media streamed\").nullable().optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in minutes, for audio processing\").nullable().optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in pages, for processed documents\").nullable().optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in minutes, for video processing\").nullable().optional(),\n}).describe(\"Usage limits configuration for a partition.\");\nconst RagieListPartitions_PartitionSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Partition identifier\"),\n limits: RagieListPartitions_PartitionLimitsSchema.nullable(),\n is_default: z.boolean().describe(\"Whether this is the default partition\"),\n description: z.string().describe(\"Partition description\").nullable().optional(),\n context_aware: z.boolean().describe(\"Context-awareness status\"),\n metadata_schema: z.record(z.string(), z.unknown()).describe(\"Schema for partition metadata\").nullable().optional(),\n limit_exceeded_at: z.string().describe(\"Timestamp when partition exceeded limits\").nullable().optional(),\n}).describe(\"Partition object containing details about a single partition.\");\nexport const RagieListPartitionsOutput: z.ZodTypeAny = z.object({\n pagination: RagieListPartitions_PaginationMetadataSchema.nullable(),\n partitions: z.array(RagieListPartitions_PartitionSchema).describe(\"Array of Partition objects\"),\n}).describe(\"Response model for listing partitions.\");\n\nexport const ragieListPartitions = action(\"RAGIE_LIST_PARTITIONS\", {\n slug: \"ragie-list-partitions\",\n name: \"List Partitions\",\n description: \"Tool to retrieve a paginated list of all partitions sorted by name in ascending order. Use when you need to list available partitions with their configurations and limits.\",\n input: RagieListPartitionsInput,\n output: RagieListPartitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,+CAA6D,EAAE,OAAO;CAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC;AAC/E,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,4CAA0D,EAAE,OAAO;CACvE,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CA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;CAC3D,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;CACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,0BAA0B;CAC9D,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAM3E,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqD,EAAE,OAAO;EAC9D,YAAY,6CAA6C,SAAS;EAClE,YAAY,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4BAA4B;CAChG,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-partitions.mjs","names":[],"sources":["../../src/actions/list-partitions.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieListPartitionsInput = z.object({\n cursor: z.string().describe(\"An opaque cursor for pagination to retrieve the next page of results\").optional(),\n page_size: z.number().int().describe(\"The number of items per page (must be greater than 0 and less than or equal to 100). Defaults to 10.\").optional(),\n}).describe(\"Request model for listing partitions.\");\nconst RagieListPartitions_PaginationMetadataSchema = z.object({\n next_cursor: z.string().describe(\"Cursor for retrieving subsequent pages (null if no more pages)\").nullable().optional(),\n total_count: z.number().int().describe(\"Total number of partitions available\").nullable(),\n}).passthrough().describe(\"Pagination metadata for the response.\");\nconst RagieListPartitions_PartitionLimitsSchema = z.object({\n media_hosted_limit_max: z.number().int().describe(\"Maximum limit, in MBs, for media hosted\").nullable().optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Maximum limit, in pages, for hosted documents\").nullable().optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum limit, in MBs, for media streamed\").nullable().optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum limit, in minutes, for audio processing\").nullable().optional(),\n pages_processed_limit_max: z.number().int().describe(\"Maximum limit, in pages, for processed documents\").nullable().optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum limit, in minutes, for video processing\").nullable().optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly limit, in MBs, for media hosted\").nullable().optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly limit of hosted pages added in current month\").nullable().optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly limit, in MBs, for media streamed\").nullable().optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in minutes, for audio processing\").nullable().optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in pages, for processed documents\").nullable().optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly limit, in minutes, for video processing\").nullable().optional(),\n}).passthrough().describe(\"Usage limits configuration for a partition.\");\nconst RagieListPartitions_PartitionSchema = z.object({\n name: z.string().describe(\"Partition identifier\").nullable(),\n limits: RagieListPartitions_PartitionLimitsSchema.nullable(),\n is_default: z.boolean().describe(\"Whether this is the default partition\").nullable(),\n description: z.string().describe(\"Partition description\").nullable().optional(),\n context_aware: z.boolean().describe(\"Context-awareness status\").nullable(),\n metadata_schema: z.record(z.string(), z.unknown()).describe(\"Schema for partition metadata\").nullable().optional(),\n limit_exceeded_at: z.string().describe(\"Timestamp when partition exceeded limits\").nullable().optional(),\n}).passthrough().describe(\"Partition object containing details about a single partition.\");\nexport const RagieListPartitionsOutput = z.object({\n pagination: RagieListPartitions_PaginationMetadataSchema.nullable(),\n partitions: z.array(RagieListPartitions_PartitionSchema).describe(\"Array of Partition objects\"),\n}).passthrough().describe(\"Response model for listing partitions.\");\n\nexport const ragieListPartitions = action(\"RAGIE_LIST_PARTITIONS\", {\n slug: \"ragie-list-partitions\",\n name: \"List Partitions\",\n description: \"Tool to retrieve a paginated list of all partitions sorted by name in ascending order. Use when you need to list available partitions with their configurations and limits.\",\n input: RagieListPartitionsInput,\n output: RagieListPartitionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC7G,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,+CAA+C,EAAE,OAAO;CAC5D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,4CAA4C,EAAE,OAAO;CACzD,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,0BAA0B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC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AAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+DAA+D;AAMzF,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVuC,EAAE,OAAO;EAChD,YAAY,6CAA6C,SAAS;EAClE,YAAY,EAAE,MAAM,mCAAmC,CAAC,CAAC,SAAS,4BAA4B;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
@@ -3,14 +3,14 @@ let zod = require("zod");
3
3
  //#region src/actions/patch-document-metadata.ts
4
4
  const RagiePatchDocumentMetadataInput = zod.z.object({
5
5
  async: zod.z.boolean().default(false).describe("Whether to run the metadata update asynchronously. If true, the metadata update will be run in the background and the response will be 202 Accepted.").optional(),
6
- metadata: zod.z.object({}).describe("The metadata to update on the document. Performs a partial update. Supports string, number, boolean, and string array values. Keys set to null are deleted. Maximum 1000 total values allowed."),
6
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The metadata to update on the document. Performs a partial update. Supports string, number, boolean, and string array values. Keys set to null are deleted. Maximum 1000 total values allowed."),
7
7
  partition: zod.z.string().describe("Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition.").optional(),
8
8
  document_id: zod.z.string().describe("The unique identifier of the document (UUID format).")
9
9
  }).describe("Request model for patching document metadata with partial updates.");
10
10
  const RagiePatchDocumentMetadataOutput = zod.z.object({
11
11
  status: zod.z.string().describe("Status string indicating the operation was accepted for background processing. Present when async=true (202 Accepted).").nullable().optional(),
12
- metadata: zod.z.object({}).describe("The full document metadata inclusive of the update. Contains key-value pairs where values can be string, integer, number, boolean, or array of strings. Present when async=false (200 OK).").nullable().optional()
13
- }).describe("Response model for patching document metadata.");
12
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The full document metadata inclusive of the update. Contains key-value pairs where values can be string, integer, number, boolean, or array of strings. Present when async=false (200 OK).").nullable().optional()
13
+ }).passthrough().describe("Response model for patching document metadata.");
14
14
  const ragiePatchDocumentMetadata = require_action.action("RAGIE_PATCH_DOCUMENT_METADATA", {
15
15
  slug: "ragie-patch-document-metadata",
16
16
  name: "Patch Document Metadata",
@@ -1 +1 @@
1
- {"version":3,"file":"patch-document-metadata.cjs","names":["z","action"],"sources":["../../src/actions/patch-document-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagiePatchDocumentMetadataInput: z.ZodTypeAny = z.object({\n async: z.boolean().default(false).describe(\"Whether to run the metadata update asynchronously. If true, the metadata update will be run in the background and the response will be 202 Accepted.\").optional(),\n metadata: z.object({}).describe(\"The metadata to update on the document. Performs a partial update. Supports string, number, boolean, and string array values. Keys set to null are deleted. Maximum 1000 total values allowed.\"),\n partition: z.string().describe(\"Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n}).describe(\"Request model for patching document metadata with partial updates.\");\nexport const RagiePatchDocumentMetadataOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status string indicating the operation was accepted for background processing. Present when async=true (202 Accepted).\").nullable().optional(),\n metadata: z.object({}).describe(\"The full document metadata inclusive of the update. Contains key-value pairs where values can be string, integer, number, boolean, or array of strings. Present when async=false (200 OK).\").nullable().optional(),\n}).describe(\"Response model for patching document metadata.\");\n\nexport const ragiePatchDocumentMetadata = action(\"RAGIE_PATCH_DOCUMENT_METADATA\", {\n slug: \"ragie-patch-document-metadata\",\n name: \"Patch Document Metadata\",\n description: \"Tool to update metadata for a specific document with partial update support. Use when you need to modify document metadata fields without replacing the entire metadata object. Supports both synchronous and asynchronous updates.\",\n input: RagiePatchDocumentMetadataInput,\n output: RagiePatchDocumentMetadataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC5M,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gMAAgM;CAChO,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACnJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACzF,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpP,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAE5D,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"patch-document-metadata.cjs","names":["z","action"],"sources":["../../src/actions/patch-document-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagiePatchDocumentMetadataInput = z.object({\n async: z.boolean().default(false).describe(\"Whether to run the metadata update asynchronously. If true, the metadata update will be run in the background and the response will be 202 Accepted.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata to update on the document. Performs a partial update. Supports string, number, boolean, and string array values. Keys set to null are deleted. Maximum 1000 total values allowed.\"),\n partition: z.string().describe(\"Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n}).describe(\"Request model for patching document metadata with partial updates.\");\nexport const RagiePatchDocumentMetadataOutput = z.object({\n status: z.string().describe(\"Status string indicating the operation was accepted for background processing. Present when async=true (202 Accepted).\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"The full document metadata inclusive of the update. Contains key-value pairs where values can be string, integer, number, boolean, or array of strings. Present when async=false (200 OK).\").nullable().optional(),\n}).passthrough().describe(\"Response model for patching document metadata.\");\n\nexport const ragiePatchDocumentMetadata = action(\"RAGIE_PATCH_DOCUMENT_METADATA\", {\n slug: \"ragie-patch-document-metadata\",\n name: \"Patch Document Metadata\",\n description: \"Tool to update metadata for a specific document with partial update support. Use when you need to modify document metadata fields without replacing the entire metadata object. Supports both synchronous and asynchronous updates.\",\n input: RagiePatchDocumentMetadataInput,\n output: RagiePatchDocumentMetadataOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;CAC5M,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gMAAgM;CACrP,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;CACnJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;AACzF,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1K,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAE1E,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/patch-document-metadata.d.ts
4
- declare const RagiePatchDocumentMetadataInput: z.ZodTypeAny;
5
- declare const RagiePatchDocumentMetadataOutput: z.ZodTypeAny;
6
- declare const ragiePatchDocumentMetadata: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagiePatchDocumentMetadataInput: z.ZodObject<{
5
+ async: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
+ partition: z.ZodOptional<z.ZodString>;
8
+ document_id: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const RagiePatchDocumentMetadataOutput: z.ZodObject<{
11
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
13
+ }, z.core.$loose>;
14
+ declare const ragiePatchDocumentMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ metadata: Record<string, unknown>;
16
+ document_id: string;
17
+ async?: boolean | undefined;
18
+ partition?: string | undefined;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { ragiePatchDocumentMetadata };
9
22
  //# sourceMappingURL=patch-document-metadata.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"patch-document-metadata.d.cts","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAKiC;AAAA,cACpE,gCAAA,EAAkC,CAAA,CAAE,UAGY;AAAA,cAEhD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"patch-document-metadata.d.cts","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA;YAMrC,MAAA"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/patch-document-metadata.d.ts
4
- declare const RagiePatchDocumentMetadataInput: z.ZodTypeAny;
5
- declare const RagiePatchDocumentMetadataOutput: z.ZodTypeAny;
6
- declare const ragiePatchDocumentMetadata: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagiePatchDocumentMetadataInput: z.ZodObject<{
5
+ async: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
+ partition: z.ZodOptional<z.ZodString>;
8
+ document_id: z.ZodString;
9
+ }, z.core.$strip>;
10
+ declare const RagiePatchDocumentMetadataOutput: z.ZodObject<{
11
+ status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
13
+ }, z.core.$loose>;
14
+ declare const ragiePatchDocumentMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
15
+ metadata: Record<string, unknown>;
16
+ document_id: string;
17
+ async?: boolean | undefined;
18
+ partition?: string | undefined;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { ragiePatchDocumentMetadata };
9
22
  //# sourceMappingURL=patch-document-metadata.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"patch-document-metadata.d.mts","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAKiC;AAAA,cACpE,gCAAA,EAAkC,CAAA,CAAE,UAGY;AAAA,cAEhD,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"patch-document-metadata.d.mts","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA;YAMrC,MAAA"}
@@ -6,14 +6,14 @@ const ragiePatchDocumentMetadata = action("RAGIE_PATCH_DOCUMENT_METADATA", {
6
6
  description: "Tool to update metadata for a specific document with partial update support. Use when you need to modify document metadata fields without replacing the entire metadata object. Supports both synchronous and asynchronous updates.",
7
7
  input: z.object({
8
8
  async: z.boolean().default(false).describe("Whether to run the metadata update asynchronously. If true, the metadata update will be run in the background and the response will be 202 Accepted.").optional(),
9
- metadata: z.object({}).describe("The metadata to update on the document. Performs a partial update. Supports string, number, boolean, and string array values. Keys set to null are deleted. Maximum 1000 total values allowed."),
9
+ metadata: z.record(z.string(), z.unknown()).describe("The metadata to update on the document. Performs a partial update. Supports string, number, boolean, and string array values. Keys set to null are deleted. Maximum 1000 total values allowed."),
10
10
  partition: z.string().describe("Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition.").optional(),
11
11
  document_id: z.string().describe("The unique identifier of the document (UUID format).")
12
12
  }).describe("Request model for patching document metadata with partial updates."),
13
13
  output: z.object({
14
14
  status: z.string().describe("Status string indicating the operation was accepted for background processing. Present when async=true (202 Accepted).").nullable().optional(),
15
- metadata: z.object({}).describe("The full document metadata inclusive of the update. Contains key-value pairs where values can be string, integer, number, boolean, or array of strings. Present when async=false (200 OK).").nullable().optional()
16
- }).describe("Response model for patching document metadata.")
15
+ metadata: z.record(z.string(), z.unknown()).describe("The full document metadata inclusive of the update. Contains key-value pairs where values can be string, integer, number, boolean, or array of strings. Present when async=false (200 OK).").nullable().optional()
16
+ }).passthrough().describe("Response model for patching document metadata.")
17
17
  });
18
18
  //#endregion
19
19
  export { ragiePatchDocumentMetadata };
@@ -1 +1 @@
1
- {"version":3,"file":"patch-document-metadata.mjs","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagiePatchDocumentMetadataInput: z.ZodTypeAny = z.object({\n async: z.boolean().default(false).describe(\"Whether to run the metadata update asynchronously. If true, the metadata update will be run in the background and the response will be 202 Accepted.\").optional(),\n metadata: z.object({}).describe(\"The metadata to update on the document. Performs a partial update. Supports string, number, boolean, and string array values. Keys set to null are deleted. Maximum 1000 total values allowed.\"),\n partition: z.string().describe(\"Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n}).describe(\"Request model for patching document metadata with partial updates.\");\nexport const RagiePatchDocumentMetadataOutput: z.ZodTypeAny = z.object({\n status: z.string().describe(\"Status string indicating the operation was accepted for background processing. Present when async=true (202 Accepted).\").nullable().optional(),\n metadata: z.object({}).describe(\"The full document metadata inclusive of the update. Contains key-value pairs where values can be string, integer, number, boolean, or array of strings. Present when async=false (200 OK).\").nullable().optional(),\n}).describe(\"Response model for patching document metadata.\");\n\nexport const ragiePatchDocumentMetadata = action(\"RAGIE_PATCH_DOCUMENT_METADATA\", {\n slug: \"ragie-patch-document-metadata\",\n name: \"Patch Document Metadata\",\n description: \"Tool to update metadata for a specific document with partial update support. Use when you need to modify document metadata fields without replacing the entire metadata object. Supports both synchronous and asynchronous updates.\",\n input: RagiePatchDocumentMetadataInput,\n output: RagiePatchDocumentMetadataOutput,\n});\n"],"mappings":";;AAeA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf2D,EAAE,OAAO;EACpE,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;EAC5M,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,gMAAgM;EAChO,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;EACnJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACzF,CAAC,CAAC,CAAC,SAAS,oEAUH;CACP,QAV4D,EAAE,OAAO;EACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1K,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpP,CAAC,CAAC,CAAC,SAAS,gDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"patch-document-metadata.mjs","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagiePatchDocumentMetadataInput = z.object({\n async: z.boolean().default(false).describe(\"Whether to run the metadata update asynchronously. If true, the metadata update will be run in the background and the response will be 202 Accepted.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata to update on the document. Performs a partial update. Supports string, number, boolean, and string array values. Keys set to null are deleted. Maximum 1000 total values allowed.\"),\n partition: z.string().describe(\"Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n}).describe(\"Request model for patching document metadata with partial updates.\");\nexport const RagiePatchDocumentMetadataOutput = z.object({\n status: z.string().describe(\"Status string indicating the operation was accepted for background processing. Present when async=true (202 Accepted).\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"The full document metadata inclusive of the update. Contains key-value pairs where values can be string, integer, number, boolean, or array of strings. Present when async=false (200 OK).\").nullable().optional(),\n}).passthrough().describe(\"Response model for patching document metadata.\");\n\nexport const ragiePatchDocumentMetadata = action(\"RAGIE_PATCH_DOCUMENT_METADATA\", {\n slug: \"ragie-patch-document-metadata\",\n name: \"Patch Document Metadata\",\n description: \"Tool to update metadata for a specific document with partial update support. Use when you need to modify document metadata fields without replacing the entire metadata object. Supports both synchronous and asynchronous updates.\",\n input: RagiePatchDocumentMetadataInput,\n output: RagiePatchDocumentMetadataOutput,\n});\n"],"mappings":";;AAeA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf6C,EAAE,OAAO;EACtD,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;EAC5M,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gMAAgM;EACrP,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;EACnJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACzF,CAAC,CAAC,CAAC,SAAS,oEAUH;CACP,QAV8C,EAAE,OAAO;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1K,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
@@ -20,8 +20,8 @@ const RagieRetrieve_ScoredChunkSchema = zod.z.object({
20
20
  document_id: zod.z.string().describe("Identifier of the source document.").nullable().optional(),
21
21
  document_name: zod.z.string().describe("Name of the source document.").nullable().optional(),
22
22
  document_metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Document-level metadata.").nullable().optional()
23
- }).describe("A document chunk with its relevance score.");
24
- const RagieRetrieveOutput = zod.z.object({ scored_chunks: zod.z.array(RagieRetrieve_ScoredChunkSchema).describe("Array of retrieved document chunks with relevance scores.") }).describe("Response model for document chunk retrieval.");
23
+ }).passthrough().describe("A document chunk with its relevance score.");
24
+ const RagieRetrieveOutput = zod.z.object({ scored_chunks: zod.z.array(RagieRetrieve_ScoredChunkSchema).describe("Array of retrieved document chunks with relevance scores.") }).passthrough().describe("Response model for document chunk retrieval.");
25
25
  const ragieRetrieve = require_action.action("RAGIE_RETRIEVE", {
26
26
  slug: "ragie-retrieve",
27
27
  name: "Retrieve Document Chunks",
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve.cjs","names":["z","action"],"sources":["../../src/actions/retrieve.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieRetrieveInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"The query to search with when retrieving document chunks.\"),\n top_k: z.number().int().default(8).describe(\"The maximum number of chunks to return. Defaults to 8.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata search filter supporting operators: $eq (equal), $ne (not equal), $gt (greater than), $gte (greater than or equal), $lt (less than), $lte (less than or equal), $in (in array), $nin (not in array). Example: {\\\"department\\\": {\\\"$in\\\": [\\\"sales\\\", \\\"marketing\\\"]}}.\").optional(),\n rerank: z.boolean().default(false).describe(\"Reranks the chunks for semantic relevancy post cosine similarity.\").optional(),\n partition: z.string().describe(\"The partition to scope a retrieval to. If omitted, the retrieval will be scoped to the default partition.\").optional(),\n recency_bias: z.boolean().default(false).describe(\"Enables recency bias which will favor more recent documents vs older documents.\").optional(),\n max_chunks_per_document: z.number().int().describe(\"Maximum number of chunks to retrieve per document.\").optional(),\n}).describe(\"Request model for retrieving document chunks based on a query.\");\nconst RagieRetrieve_ScoredChunkSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the chunk.\").nullable().optional(),\n text: z.string().describe(\"The chunk content/text.\").nullable().optional(),\n index: z.number().int().describe(\"Position/index of the chunk within the source document.\").nullable().optional(),\n links: z.record(z.string(), z.unknown()).describe(\"Navigation references.\").nullable().optional(),\n score: z.number().describe(\"Relevance score indicating how well the chunk matches the query.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Chunk-level metadata.\").nullable().optional(),\n document_id: z.string().describe(\"Identifier of the source document.\").nullable().optional(),\n document_name: z.string().describe(\"Name of the source document.\").nullable().optional(),\n document_metadata: z.record(z.string(), z.unknown()).describe(\"Document-level metadata.\").nullable().optional(),\n}).describe(\"A document chunk with its relevance score.\");\nexport const RagieRetrieveOutput: z.ZodTypeAny = z.object({\n scored_chunks: z.array(RagieRetrieve_ScoredChunkSchema).describe(\"Array of retrieved document chunks with relevance scores.\"),\n}).describe(\"Response model for document chunk retrieval.\");\n\nexport const ragieRetrieve = action(\"RAGIE_RETRIEVE\", {\n slug: \"ragie-retrieve\",\n name: \"Retrieve Document Chunks\",\n description: \"Tool to retrieve relevant document chunks based on a query. Use when you need to search and retrieve document content that matches a specific query, with optional filtering and reranking capabilities.\",\n input: RagieRetrieveInput,\n output: RagieRetrieveOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAA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CACnH,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,sBAAoCA,IAAAA,EAAE,OAAO,EACxD,eAAeA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,2DAA2D,EAC9H,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,gBAAgBC,eAAAA,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve.cjs","names":["z","action"],"sources":["../../src/actions/retrieve.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieRetrieveInput = z.object({\n query: z.string().describe(\"The query to search with when retrieving document chunks.\"),\n top_k: z.number().int().default(8).describe(\"The maximum number of chunks to return. Defaults to 8.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata search filter supporting operators: $eq (equal), $ne (not equal), $gt (greater than), $gte (greater than or equal), $lt (less than), $lte (less than or equal), $in (in array), $nin (not in array). Example: {\\\"department\\\": {\\\"$in\\\": [\\\"sales\\\", \\\"marketing\\\"]}}.\").optional(),\n rerank: z.boolean().default(false).describe(\"Reranks the chunks for semantic relevancy post cosine similarity.\").optional(),\n partition: z.string().describe(\"The partition to scope a retrieval to. If omitted, the retrieval will be scoped to the default partition.\").optional(),\n recency_bias: z.boolean().default(false).describe(\"Enables recency bias which will favor more recent documents vs older documents.\").optional(),\n max_chunks_per_document: z.number().int().describe(\"Maximum number of chunks to retrieve per document.\").optional(),\n}).describe(\"Request model for retrieving document chunks based on a query.\");\nconst RagieRetrieve_ScoredChunkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the chunk.\").nullable().optional(),\n text: z.string().describe(\"The chunk content/text.\").nullable().optional(),\n index: z.number().int().describe(\"Position/index of the chunk within the source document.\").nullable().optional(),\n links: z.record(z.string(), z.unknown()).describe(\"Navigation references.\").nullable().optional(),\n score: z.number().describe(\"Relevance score indicating how well the chunk matches the query.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Chunk-level metadata.\").nullable().optional(),\n document_id: z.string().describe(\"Identifier of the source document.\").nullable().optional(),\n document_name: z.string().describe(\"Name of the source document.\").nullable().optional(),\n document_metadata: z.record(z.string(), z.unknown()).describe(\"Document-level metadata.\").nullable().optional(),\n}).passthrough().describe(\"A document chunk with its relevance score.\");\nexport const RagieRetrieveOutput = z.object({\n scored_chunks: z.array(RagieRetrieve_ScoredChunkSchema).describe(\"Array of retrieved document chunks with relevance scores.\"),\n}).passthrough().describe(\"Response model for document chunk retrieval.\");\n\nexport const ragieRetrieve = action(\"RAGIE_RETRIEVE\", {\n slug: \"ragie-retrieve\",\n name: \"Retrieve Document Chunks\",\n description: \"Tool to retrieve relevant document chunks based on a query. Use when you need to search and retrieve document content that matches a specific query, with optional filtering and reranking capabilities.\",\n input: RagieRetrieveInput,\n output: RagieRetrieveOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,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nH,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,eAAeA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,2DAA2D,EAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,gBAAgBC,eAAAA,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve.d.ts
4
- declare const RagieRetrieveInput: z.ZodTypeAny;
5
- declare const RagieRetrieveOutput: z.ZodTypeAny;
6
- declare const ragieRetrieve: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieRetrieveInput: z.ZodObject<{
5
+ query: z.ZodString;
6
+ top_k: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ rerank: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
9
+ partition: z.ZodOptional<z.ZodString>;
10
+ recency_bias: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11
+ max_chunks_per_document: z.ZodOptional<z.ZodNumber>;
12
+ }, z.core.$strip>;
13
+ declare const RagieRetrieveOutput: z.ZodObject<{
14
+ scored_chunks: z.ZodArray<z.ZodObject<{
15
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
+ score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ document_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ document_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ document_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
+ declare const ragieRetrieve: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ query: string;
28
+ top_k?: number | undefined;
29
+ filter?: Record<string, unknown> | undefined;
30
+ rerank?: boolean | undefined;
31
+ partition?: string | undefined;
32
+ recency_bias?: boolean | undefined;
33
+ max_chunks_per_document?: number | undefined;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { ragieRetrieve };
9
37
  //# sourceMappingURL=retrieve.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve.d.cts","names":[],"sources":["../../src/actions/retrieve.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAQ0C;AAAA,cAYhE,mBAAA,EAAqB,CAAA,CAAE,UAEuB;AAAA,cAE9C,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve.d.cts","names":[],"sources":["../../src/actions/retrieve.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;cAoBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAInB,aAAA,gCAAa,wBAAA;;;WAMxB,MAAA"}
@@ -1,9 +1,37 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/retrieve.d.ts
4
- declare const RagieRetrieveInput: z.ZodTypeAny;
5
- declare const RagieRetrieveOutput: z.ZodTypeAny;
6
- declare const ragieRetrieve: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const RagieRetrieveInput: z.ZodObject<{
5
+ query: z.ZodString;
6
+ top_k: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
+ filter: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
+ rerank: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
9
+ partition: z.ZodOptional<z.ZodString>;
10
+ recency_bias: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11
+ max_chunks_per_document: z.ZodOptional<z.ZodNumber>;
12
+ }, z.core.$strip>;
13
+ declare const RagieRetrieveOutput: z.ZodObject<{
14
+ scored_chunks: z.ZodArray<z.ZodObject<{
15
+ id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ index: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
18
+ links: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
+ score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
20
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ document_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ document_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ document_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
24
+ }, z.core.$loose>>;
25
+ }, z.core.$loose>;
26
+ declare const ragieRetrieve: import("@keystrokehq/action").WorkflowActionDefinition<{
27
+ query: string;
28
+ top_k?: number | undefined;
29
+ filter?: Record<string, unknown> | undefined;
30
+ rerank?: boolean | undefined;
31
+ partition?: string | undefined;
32
+ recency_bias?: boolean | undefined;
33
+ max_chunks_per_document?: number | undefined;
34
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
35
  //#endregion
8
36
  export { ragieRetrieve };
9
37
  //# sourceMappingURL=retrieve.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve.d.mts","names":[],"sources":["../../src/actions/retrieve.ts"],"mappings":";;;cAIa,kBAAA,EAAoB,CAAA,CAAE,UAQ0C;AAAA,cAYhE,mBAAA,EAAqB,CAAA,CAAE,UAEuB;AAAA,cAE9C,aAAA,gCAAa,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"retrieve.d.mts","names":[],"sources":["../../src/actions/retrieve.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;cAoBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAInB,aAAA,gCAAa,wBAAA;;;WAMxB,MAAA"}
@@ -20,13 +20,13 @@ const RagieRetrieve_ScoredChunkSchema = z.object({
20
20
  document_id: z.string().describe("Identifier of the source document.").nullable().optional(),
21
21
  document_name: z.string().describe("Name of the source document.").nullable().optional(),
22
22
  document_metadata: z.record(z.string(), z.unknown()).describe("Document-level metadata.").nullable().optional()
23
- }).describe("A document chunk with its relevance score.");
23
+ }).passthrough().describe("A document chunk with its relevance score.");
24
24
  const ragieRetrieve = action("RAGIE_RETRIEVE", {
25
25
  slug: "ragie-retrieve",
26
26
  name: "Retrieve Document Chunks",
27
27
  description: "Tool to retrieve relevant document chunks based on a query. Use when you need to search and retrieve document content that matches a specific query, with optional filtering and reranking capabilities.",
28
28
  input: RagieRetrieveInput,
29
- output: z.object({ scored_chunks: z.array(RagieRetrieve_ScoredChunkSchema).describe("Array of retrieved document chunks with relevance scores.") }).describe("Response model for document chunk retrieval.")
29
+ output: z.object({ scored_chunks: z.array(RagieRetrieve_ScoredChunkSchema).describe("Array of retrieved document chunks with relevance scores.") }).passthrough().describe("Response model for document chunk retrieval.")
30
30
  });
31
31
  //#endregion
32
32
  export { ragieRetrieve };
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve.mjs","names":[],"sources":["../../src/actions/retrieve.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieRetrieveInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"The query to search with when retrieving document chunks.\"),\n top_k: z.number().int().default(8).describe(\"The maximum number of chunks to return. Defaults to 8.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata search filter supporting operators: $eq (equal), $ne (not equal), $gt (greater than), $gte (greater than or equal), $lt (less than), $lte (less than or equal), $in (in array), $nin (not in array). Example: {\\\"department\\\": {\\\"$in\\\": [\\\"sales\\\", \\\"marketing\\\"]}}.\").optional(),\n rerank: z.boolean().default(false).describe(\"Reranks the chunks for semantic relevancy post cosine similarity.\").optional(),\n partition: z.string().describe(\"The partition to scope a retrieval to. If omitted, the retrieval will be scoped to the default partition.\").optional(),\n recency_bias: z.boolean().default(false).describe(\"Enables recency bias which will favor more recent documents vs older documents.\").optional(),\n max_chunks_per_document: z.number().int().describe(\"Maximum number of chunks to retrieve per document.\").optional(),\n}).describe(\"Request model for retrieving document chunks based on a query.\");\nconst RagieRetrieve_ScoredChunkSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the chunk.\").nullable().optional(),\n text: z.string().describe(\"The chunk content/text.\").nullable().optional(),\n index: z.number().int().describe(\"Position/index of the chunk within the source document.\").nullable().optional(),\n links: z.record(z.string(), z.unknown()).describe(\"Navigation references.\").nullable().optional(),\n score: z.number().describe(\"Relevance score indicating how well the chunk matches the query.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Chunk-level metadata.\").nullable().optional(),\n document_id: z.string().describe(\"Identifier of the source document.\").nullable().optional(),\n document_name: z.string().describe(\"Name of the source document.\").nullable().optional(),\n document_metadata: z.record(z.string(), z.unknown()).describe(\"Document-level metadata.\").nullable().optional(),\n}).describe(\"A document chunk with its relevance score.\");\nexport const RagieRetrieveOutput: z.ZodTypeAny = z.object({\n scored_chunks: z.array(RagieRetrieve_ScoredChunkSchema).describe(\"Array of retrieved document chunks with relevance scores.\"),\n}).describe(\"Response model for document chunk retrieval.\");\n\nexport const ragieRetrieve = action(\"RAGIE_RETRIEVE\", {\n slug: \"ragie-retrieve\",\n name: \"Retrieve Document Chunks\",\n description: \"Tool to retrieve relevant document chunks based on a query. Use when you need to search and retrieve document content that matches a specific query, with optional filtering and reranking capabilities.\",\n input: RagieRetrieveInput,\n output: RagieRetrieveOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAmC,EAAE,OAAO;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iRAA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AS;CACvF,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAKxD,MAAa,gBAAgB,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT+C,EAAE,OAAO,EACxD,eAAe,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,2DAA2D,EAC9H,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve.mjs","names":[],"sources":["../../src/actions/retrieve.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieRetrieveInput = z.object({\n query: z.string().describe(\"The query to search with when retrieving document chunks.\"),\n top_k: z.number().int().default(8).describe(\"The maximum number of chunks to return. Defaults to 8.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata search filter supporting operators: $eq (equal), $ne (not equal), $gt (greater than), $gte (greater than or equal), $lt (less than), $lte (less than or equal), $in (in array), $nin (not in array). Example: {\\\"department\\\": {\\\"$in\\\": [\\\"sales\\\", \\\"marketing\\\"]}}.\").optional(),\n rerank: z.boolean().default(false).describe(\"Reranks the chunks for semantic relevancy post cosine similarity.\").optional(),\n partition: z.string().describe(\"The partition to scope a retrieval to. If omitted, the retrieval will be scoped to the default partition.\").optional(),\n recency_bias: z.boolean().default(false).describe(\"Enables recency bias which will favor more recent documents vs older documents.\").optional(),\n max_chunks_per_document: z.number().int().describe(\"Maximum number of chunks to retrieve per document.\").optional(),\n}).describe(\"Request model for retrieving document chunks based on a query.\");\nconst RagieRetrieve_ScoredChunkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the chunk.\").nullable().optional(),\n text: z.string().describe(\"The chunk content/text.\").nullable().optional(),\n index: z.number().int().describe(\"Position/index of the chunk within the source document.\").nullable().optional(),\n links: z.record(z.string(), z.unknown()).describe(\"Navigation references.\").nullable().optional(),\n score: z.number().describe(\"Relevance score indicating how well the chunk matches the query.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Chunk-level metadata.\").nullable().optional(),\n document_id: z.string().describe(\"Identifier of the source document.\").nullable().optional(),\n document_name: z.string().describe(\"Name of the source document.\").nullable().optional(),\n document_metadata: z.record(z.string(), z.unknown()).describe(\"Document-level metadata.\").nullable().optional(),\n}).passthrough().describe(\"A document chunk with its relevance score.\");\nexport const RagieRetrieveOutput = z.object({\n scored_chunks: z.array(RagieRetrieve_ScoredChunkSchema).describe(\"Array of retrieved document chunks with relevance scores.\"),\n}).passthrough().describe(\"Response model for document chunk retrieval.\");\n\nexport const ragieRetrieve = action(\"RAGIE_RETRIEVE\", {\n slug: \"ragie-retrieve\",\n name: \"Retrieve Document Chunks\",\n description: \"Tool to retrieve relevant document chunks based on a query. Use when you need to search and retrieve document content that matches a specific query, with optional filtering and reranking capabilities.\",\n input: RagieRetrieveInput,\n output: RagieRetrieveOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqB,EAAE,OAAO;CACzC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iRAAiR,CAAC,CAAC,SAAS;CAC/U,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC1H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACrJ,cAAc,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,iFAAiF,CAA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