@keystrokehq/ragie 0.1.5 → 0.1.6

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 (261) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/create-document-from-url.cjs +1 -0
  4. package/dist/actions/create-document-from-url.cjs.map +1 -1
  5. package/dist/actions/create-document-from-url.d.cts +3 -20
  6. package/dist/actions/create-document-from-url.d.cts.map +1 -1
  7. package/dist/actions/create-document-from-url.d.mts +3 -20
  8. package/dist/actions/create-document-from-url.d.mts.map +1 -1
  9. package/dist/actions/create-document-from-url.mjs +1 -0
  10. package/dist/actions/create-document-from-url.mjs.map +1 -1
  11. package/dist/actions/create-document-raw.cjs +1 -0
  12. package/dist/actions/create-document-raw.cjs.map +1 -1
  13. package/dist/actions/create-document-raw.d.cts +3 -19
  14. package/dist/actions/create-document-raw.d.cts.map +1 -1
  15. package/dist/actions/create-document-raw.d.mts +3 -19
  16. package/dist/actions/create-document-raw.d.mts.map +1 -1
  17. package/dist/actions/create-document-raw.mjs +1 -0
  18. package/dist/actions/create-document-raw.mjs.map +1 -1
  19. package/dist/actions/create-document.cjs +1 -0
  20. package/dist/actions/create-document.cjs.map +1 -1
  21. package/dist/actions/create-document.d.cts +3 -27
  22. package/dist/actions/create-document.d.cts.map +1 -1
  23. package/dist/actions/create-document.d.mts +3 -27
  24. package/dist/actions/create-document.d.mts.map +1 -1
  25. package/dist/actions/create-document.mjs +1 -0
  26. package/dist/actions/create-document.mjs.map +1 -1
  27. package/dist/actions/create-instruction.cjs +1 -0
  28. package/dist/actions/create-instruction.cjs.map +1 -1
  29. package/dist/actions/create-instruction.d.cts +3 -21
  30. package/dist/actions/create-instruction.d.cts.map +1 -1
  31. package/dist/actions/create-instruction.d.mts +3 -21
  32. package/dist/actions/create-instruction.d.mts.map +1 -1
  33. package/dist/actions/create-instruction.mjs +1 -0
  34. package/dist/actions/create-instruction.mjs.map +1 -1
  35. package/dist/actions/create-oauth-redirect-url.cjs +1 -0
  36. package/dist/actions/create-oauth-redirect-url.cjs.map +1 -1
  37. package/dist/actions/create-oauth-redirect-url.d.cts +3 -23
  38. package/dist/actions/create-oauth-redirect-url.d.cts.map +1 -1
  39. package/dist/actions/create-oauth-redirect-url.d.mts +3 -23
  40. package/dist/actions/create-oauth-redirect-url.d.mts.map +1 -1
  41. package/dist/actions/create-oauth-redirect-url.mjs +1 -0
  42. package/dist/actions/create-oauth-redirect-url.mjs.map +1 -1
  43. package/dist/actions/create-partition-partitions-post.cjs +1 -0
  44. package/dist/actions/create-partition-partitions-post.cjs.map +1 -1
  45. package/dist/actions/create-partition-partitions-post.d.cts +3 -29
  46. package/dist/actions/create-partition-partitions-post.d.cts.map +1 -1
  47. package/dist/actions/create-partition-partitions-post.d.mts +3 -29
  48. package/dist/actions/create-partition-partitions-post.d.mts.map +1 -1
  49. package/dist/actions/create-partition-partitions-post.mjs +1 -0
  50. package/dist/actions/create-partition-partitions-post.mjs.map +1 -1
  51. package/dist/actions/delete-document.cjs +1 -0
  52. package/dist/actions/delete-document.cjs.map +1 -1
  53. package/dist/actions/delete-document.d.cts +3 -17
  54. package/dist/actions/delete-document.d.cts.map +1 -1
  55. package/dist/actions/delete-document.d.mts +3 -17
  56. package/dist/actions/delete-document.d.mts.map +1 -1
  57. package/dist/actions/delete-document.mjs +1 -0
  58. package/dist/actions/delete-document.mjs.map +1 -1
  59. package/dist/actions/delete-instruction.cjs +1 -0
  60. package/dist/actions/delete-instruction.cjs.map +1 -1
  61. package/dist/actions/delete-instruction.d.cts +3 -15
  62. package/dist/actions/delete-instruction.d.cts.map +1 -1
  63. package/dist/actions/delete-instruction.d.mts +3 -15
  64. package/dist/actions/delete-instruction.d.mts.map +1 -1
  65. package/dist/actions/delete-instruction.mjs +1 -0
  66. package/dist/actions/delete-instruction.mjs.map +1 -1
  67. package/dist/actions/delete-partition.cjs +1 -0
  68. package/dist/actions/delete-partition.cjs.map +1 -1
  69. package/dist/actions/delete-partition.d.cts +3 -16
  70. package/dist/actions/delete-partition.d.cts.map +1 -1
  71. package/dist/actions/delete-partition.d.mts +3 -16
  72. package/dist/actions/delete-partition.d.mts.map +1 -1
  73. package/dist/actions/delete-partition.mjs +1 -0
  74. package/dist/actions/delete-partition.mjs.map +1 -1
  75. package/dist/actions/get-document-chunk-content.cjs +1 -0
  76. package/dist/actions/get-document-chunk-content.cjs.map +1 -1
  77. package/dist/actions/get-document-chunk-content.d.cts +3 -20
  78. package/dist/actions/get-document-chunk-content.d.cts.map +1 -1
  79. package/dist/actions/get-document-chunk-content.d.mts +3 -20
  80. package/dist/actions/get-document-chunk-content.d.mts.map +1 -1
  81. package/dist/actions/get-document-chunk-content.mjs +1 -0
  82. package/dist/actions/get-document-chunk-content.mjs.map +1 -1
  83. package/dist/actions/get-document-chunk.cjs +1 -0
  84. package/dist/actions/get-document-chunk.cjs.map +1 -1
  85. package/dist/actions/get-document-chunk.d.cts +3 -17
  86. package/dist/actions/get-document-chunk.d.cts.map +1 -1
  87. package/dist/actions/get-document-chunk.d.mts +3 -17
  88. package/dist/actions/get-document-chunk.d.mts.map +1 -1
  89. package/dist/actions/get-document-chunk.mjs +1 -0
  90. package/dist/actions/get-document-chunk.mjs.map +1 -1
  91. package/dist/actions/get-document-chunks.cjs +1 -0
  92. package/dist/actions/get-document-chunks.cjs.map +1 -1
  93. package/dist/actions/get-document-chunks.d.cts +3 -20
  94. package/dist/actions/get-document-chunks.d.cts.map +1 -1
  95. package/dist/actions/get-document-chunks.d.mts +3 -20
  96. package/dist/actions/get-document-chunks.d.mts.map +1 -1
  97. package/dist/actions/get-document-chunks.mjs +1 -0
  98. package/dist/actions/get-document-chunks.mjs.map +1 -1
  99. package/dist/actions/get-document-content.cjs +1 -0
  100. package/dist/actions/get-document-content.cjs.map +1 -1
  101. package/dist/actions/get-document-content.d.cts +3 -19
  102. package/dist/actions/get-document-content.d.cts.map +1 -1
  103. package/dist/actions/get-document-content.d.mts +3 -19
  104. package/dist/actions/get-document-content.d.mts.map +1 -1
  105. package/dist/actions/get-document-content.mjs +1 -0
  106. package/dist/actions/get-document-content.mjs.map +1 -1
  107. package/dist/actions/get-document-summary.cjs +1 -0
  108. package/dist/actions/get-document-summary.cjs.map +1 -1
  109. package/dist/actions/get-document-summary.d.cts +3 -16
  110. package/dist/actions/get-document-summary.d.cts.map +1 -1
  111. package/dist/actions/get-document-summary.d.mts +3 -16
  112. package/dist/actions/get-document-summary.d.mts.map +1 -1
  113. package/dist/actions/get-document-summary.mjs +1 -0
  114. package/dist/actions/get-document-summary.mjs.map +1 -1
  115. package/dist/actions/get-document.cjs +1 -0
  116. package/dist/actions/get-document.cjs.map +1 -1
  117. package/dist/actions/get-document.d.cts +3 -16
  118. package/dist/actions/get-document.d.cts.map +1 -1
  119. package/dist/actions/get-document.d.mts +3 -16
  120. package/dist/actions/get-document.d.mts.map +1 -1
  121. package/dist/actions/get-document.mjs +1 -0
  122. package/dist/actions/get-document.mjs.map +1 -1
  123. package/dist/actions/get-partition.cjs +1 -0
  124. package/dist/actions/get-partition.cjs.map +1 -1
  125. package/dist/actions/get-partition.d.cts +3 -15
  126. package/dist/actions/get-partition.d.cts.map +1 -1
  127. package/dist/actions/get-partition.d.mts +3 -15
  128. package/dist/actions/get-partition.d.mts.map +1 -1
  129. package/dist/actions/get-partition.mjs +1 -0
  130. package/dist/actions/get-partition.mjs.map +1 -1
  131. package/dist/actions/get-response.cjs +1 -0
  132. package/dist/actions/get-response.cjs.map +1 -1
  133. package/dist/actions/get-response.d.cts +3 -15
  134. package/dist/actions/get-response.d.cts.map +1 -1
  135. package/dist/actions/get-response.d.mts +3 -15
  136. package/dist/actions/get-response.d.mts.map +1 -1
  137. package/dist/actions/get-response.mjs +1 -0
  138. package/dist/actions/get-response.mjs.map +1 -1
  139. package/dist/actions/list-connection-source-types.cjs +1 -0
  140. package/dist/actions/list-connection-source-types.cjs.map +1 -1
  141. package/dist/actions/list-connection-source-types.d.cts +3 -13
  142. package/dist/actions/list-connection-source-types.d.cts.map +1 -1
  143. package/dist/actions/list-connection-source-types.d.mts +3 -13
  144. package/dist/actions/list-connection-source-types.d.mts.map +1 -1
  145. package/dist/actions/list-connection-source-types.mjs +1 -0
  146. package/dist/actions/list-connection-source-types.mjs.map +1 -1
  147. package/dist/actions/list-connections-connections-get.cjs +1 -0
  148. package/dist/actions/list-connections-connections-get.cjs.map +1 -1
  149. package/dist/actions/list-connections-connections-get.d.cts +3 -18
  150. package/dist/actions/list-connections-connections-get.d.cts.map +1 -1
  151. package/dist/actions/list-connections-connections-get.d.mts +3 -18
  152. package/dist/actions/list-connections-connections-get.d.mts.map +1 -1
  153. package/dist/actions/list-connections-connections-get.mjs +1 -0
  154. package/dist/actions/list-connections-connections-get.mjs.map +1 -1
  155. package/dist/actions/list-documents.cjs +1 -0
  156. package/dist/actions/list-documents.cjs.map +1 -1
  157. package/dist/actions/list-documents.d.cts +3 -18
  158. package/dist/actions/list-documents.d.cts.map +1 -1
  159. package/dist/actions/list-documents.d.mts +3 -18
  160. package/dist/actions/list-documents.d.mts.map +1 -1
  161. package/dist/actions/list-documents.mjs +1 -0
  162. package/dist/actions/list-documents.mjs.map +1 -1
  163. package/dist/actions/list-entities-by-document.cjs +1 -0
  164. package/dist/actions/list-entities-by-document.cjs.map +1 -1
  165. package/dist/actions/list-entities-by-document.d.cts +3 -18
  166. package/dist/actions/list-entities-by-document.d.cts.map +1 -1
  167. package/dist/actions/list-entities-by-document.d.mts +3 -18
  168. package/dist/actions/list-entities-by-document.d.mts.map +1 -1
  169. package/dist/actions/list-entities-by-document.mjs +1 -0
  170. package/dist/actions/list-entities-by-document.mjs.map +1 -1
  171. package/dist/actions/list-entities-by-instruction.cjs +1 -0
  172. package/dist/actions/list-entities-by-instruction.cjs.map +1 -1
  173. package/dist/actions/list-entities-by-instruction.d.cts +3 -18
  174. package/dist/actions/list-entities-by-instruction.d.cts.map +1 -1
  175. package/dist/actions/list-entities-by-instruction.d.mts +3 -18
  176. package/dist/actions/list-entities-by-instruction.d.mts.map +1 -1
  177. package/dist/actions/list-entities-by-instruction.mjs +1 -0
  178. package/dist/actions/list-entities-by-instruction.mjs.map +1 -1
  179. package/dist/actions/list-instructions.cjs +1 -0
  180. package/dist/actions/list-instructions.cjs.map +1 -1
  181. package/dist/actions/list-instructions.d.cts +3 -13
  182. package/dist/actions/list-instructions.d.cts.map +1 -1
  183. package/dist/actions/list-instructions.d.mts +3 -13
  184. package/dist/actions/list-instructions.d.mts.map +1 -1
  185. package/dist/actions/list-instructions.mjs +1 -0
  186. package/dist/actions/list-instructions.mjs.map +1 -1
  187. package/dist/actions/list-partitions.cjs +1 -0
  188. package/dist/actions/list-partitions.cjs.map +1 -1
  189. package/dist/actions/list-partitions.d.cts +3 -16
  190. package/dist/actions/list-partitions.d.cts.map +1 -1
  191. package/dist/actions/list-partitions.d.mts +3 -16
  192. package/dist/actions/list-partitions.d.mts.map +1 -1
  193. package/dist/actions/list-partitions.mjs +1 -0
  194. package/dist/actions/list-partitions.mjs.map +1 -1
  195. package/dist/actions/patch-document-metadata.cjs +1 -0
  196. package/dist/actions/patch-document-metadata.cjs.map +1 -1
  197. package/dist/actions/patch-document-metadata.d.cts +3 -18
  198. package/dist/actions/patch-document-metadata.d.cts.map +1 -1
  199. package/dist/actions/patch-document-metadata.d.mts +3 -18
  200. package/dist/actions/patch-document-metadata.d.mts.map +1 -1
  201. package/dist/actions/patch-document-metadata.mjs +1 -0
  202. package/dist/actions/patch-document-metadata.mjs.map +1 -1
  203. package/dist/actions/retrieve.cjs +1 -0
  204. package/dist/actions/retrieve.cjs.map +1 -1
  205. package/dist/actions/retrieve.d.cts +3 -21
  206. package/dist/actions/retrieve.d.cts.map +1 -1
  207. package/dist/actions/retrieve.d.mts +3 -21
  208. package/dist/actions/retrieve.d.mts.map +1 -1
  209. package/dist/actions/retrieve.mjs +1 -0
  210. package/dist/actions/retrieve.mjs.map +1 -1
  211. package/dist/actions/set-partition-limits.cjs +1 -0
  212. package/dist/actions/set-partition-limits.cjs.map +1 -1
  213. package/dist/actions/set-partition-limits.d.cts +3 -27
  214. package/dist/actions/set-partition-limits.d.cts.map +1 -1
  215. package/dist/actions/set-partition-limits.d.mts +3 -27
  216. package/dist/actions/set-partition-limits.d.mts.map +1 -1
  217. package/dist/actions/set-partition-limits.mjs +1 -0
  218. package/dist/actions/set-partition-limits.mjs.map +1 -1
  219. package/dist/actions/update-document-from-url.cjs +1 -0
  220. package/dist/actions/update-document-from-url.cjs.map +1 -1
  221. package/dist/actions/update-document-from-url.d.cts +3 -21
  222. package/dist/actions/update-document-from-url.d.cts.map +1 -1
  223. package/dist/actions/update-document-from-url.d.mts +3 -21
  224. package/dist/actions/update-document-from-url.d.mts.map +1 -1
  225. package/dist/actions/update-document-from-url.mjs +1 -0
  226. package/dist/actions/update-document-from-url.mjs.map +1 -1
  227. package/dist/actions/update-document-raw.cjs +1 -0
  228. package/dist/actions/update-document-raw.cjs.map +1 -1
  229. package/dist/actions/update-document-raw.d.cts +3 -16
  230. package/dist/actions/update-document-raw.d.cts.map +1 -1
  231. package/dist/actions/update-document-raw.d.mts +3 -16
  232. package/dist/actions/update-document-raw.d.mts.map +1 -1
  233. package/dist/actions/update-document-raw.mjs +1 -0
  234. package/dist/actions/update-document-raw.mjs.map +1 -1
  235. package/dist/actions/update-instruction.cjs +1 -0
  236. package/dist/actions/update-instruction.cjs.map +1 -1
  237. package/dist/actions/update-instruction.d.cts +3 -16
  238. package/dist/actions/update-instruction.d.cts.map +1 -1
  239. package/dist/actions/update-instruction.d.mts +3 -16
  240. package/dist/actions/update-instruction.d.mts.map +1 -1
  241. package/dist/actions/update-instruction.mjs +1 -0
  242. package/dist/actions/update-instruction.mjs.map +1 -1
  243. package/dist/actions/update-partition.cjs +1 -0
  244. package/dist/actions/update-partition.cjs.map +1 -1
  245. package/dist/actions/update-partition.d.cts +3 -18
  246. package/dist/actions/update-partition.d.cts.map +1 -1
  247. package/dist/actions/update-partition.d.mts +3 -18
  248. package/dist/actions/update-partition.d.mts.map +1 -1
  249. package/dist/actions/update-partition.mjs +1 -0
  250. package/dist/actions/update-partition.mjs.map +1 -1
  251. package/dist/app.cjs +2 -2
  252. package/dist/app.cjs.map +1 -1
  253. package/dist/app.d.cts +4 -6
  254. package/dist/app.d.cts.map +1 -1
  255. package/dist/app.d.mts +4 -6
  256. package/dist/app.d.mts.map +1 -1
  257. package/dist/app.mjs +0 -1
  258. package/dist/app.mjs.map +1 -1
  259. package/dist/index.d.cts +1 -1
  260. package/dist/index.d.mts +1 -1
  261. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["ragie","executeRagieTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { ragie } from \"./app\";\nimport { executeRagieTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return ragie.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRagieTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["ragie","executeRagieTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { ragie } from \"./app\";\nimport { executeRagieTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof ragie.credential> {\n return ragie.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRagieTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOqD;CACrD,OAAOA,YAAAA,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { ragie } from \"./app\";\nimport { executeRagieTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return ragie.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeRagieTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { ragie } from \"./app\";\nimport { executeRagieTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof ragie.credential> {\n return ragie.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeRagieTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOqD;CACrD,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-document-from-url.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-url.cjs","names":["z","action"],"sources":["../../src/actions/create-document-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentFromUrlInput = z.object({\n url: z.string().describe(\"URL of the file to download. Must be publicly accessible and use HTTP or HTTPS scheme.\"),\n mode: z.union([z.string(), z.record(z.string(), z.unknown())]).optional(),\n name: z.string().describe(\"Optional document name; defaults if omitted\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string/number/boolean/array values; max 1000 total values\").optional(),\n partition: z.string().describe(\"Optional partition identifier for scoping\").optional(),\n external_id: z.string().describe(\"Optional external system identifier\").optional(),\n}).describe(\"Request schema for creating a document from a publicly accessible URL.\");\nexport const RagieCreateDocumentFromUrlOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID)\").nullable(),\n name: z.string().describe(\"Document name\").nullable(),\n status: z.string().describe(\"Processing state (pending, partitioning, indexed, ready, failed, etc.)\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata (strings, numbers, booleans, arrays)\").nullable().optional(),\n partition: z.string().describe(\"Associated partition identifier\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n page_count: z.union([z.number().int(), z.number()]).nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks\").nullable().optional(),\n external_id: z.string().describe(\"External identifier if provided\").nullable().optional(),\n}).passthrough().describe(\"Response schema for document creation from URL.\");\n\nexport const ragieCreateDocumentFromUrl = action(\"RAGIE_CREATE_DOCUMENT_FROM_URL\", {\n slug: \"ragie-create-document-from-url\",\n name: \"Create Document From URL\",\n description: \"Tool to ingest a document from a publicly accessible URL. Use when you need to add documents to Ragie from external sources. The document undergoes processing steps (pending, partitioning, indexed, ready) before becoming available for retrieval.\",\n input: RagieCreateDocumentFromUrlInput,\n output: RagieCreateDocumentFromUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACjH,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS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AC,SAAS,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-from-url.cjs","names":["z","action"],"sources":["../../src/actions/create-document-from-url.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ragie } from \"../app\";\n\nexport const RagieCreateDocumentFromUrlInput = z.object({\n url: z.string().describe(\"URL of the file to download. Must be publicly accessible and use HTTP or HTTPS scheme.\"),\n mode: z.union([z.string(), z.record(z.string(), z.unknown())]).optional(),\n name: z.string().describe(\"Optional document name; defaults if omitted\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string/number/boolean/array values; max 1000 total values\").optional(),\n partition: z.string().describe(\"Optional partition identifier for scoping\").optional(),\n external_id: z.string().describe(\"Optional external system identifier\").optional(),\n}).describe(\"Request schema for creating a document from a publicly accessible URL.\");\nexport const RagieCreateDocumentFromUrlOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID)\").nullable(),\n name: z.string().describe(\"Document name\").nullable(),\n status: z.string().describe(\"Processing state (pending, partitioning, indexed, ready, failed, etc.)\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata (strings, numbers, booleans, arrays)\").nullable().optional(),\n partition: z.string().describe(\"Associated partition identifier\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n page_count: z.union([z.number().int(), z.number()]).nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks\").nullable().optional(),\n external_id: z.string().describe(\"External identifier if provided\").nullable().optional(),\n}).passthrough().describe(\"Response schema for document creation from URL.\");\n\nexport const ragieCreateDocumentFromUrl: AppAction<\n typeof RagieCreateDocumentFromUrlInput,\n typeof RagieCreateDocumentFromUrlOutput,\n typeof ragie.credential\n> = action(\"RAGIE_CREATE_DOCUMENT_FROM_URL\", {\n slug: \"ragie-create-document-from-url\",\n name: \"Create Document From URL\",\n description: \"Tool to ingest a document from a publicly accessible URL. Use when you need to add documents to Ragie from external sources. The document undergoes processing steps (pending, partitioning, indexed, ready) before becoming available for retrieval.\",\n input: RagieCreateDocumentFromUrlInput,\n output: RagieCreateDocumentFromUrlOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACjH,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAClJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC/G,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC/D,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { ragie } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-document-from-url.d.ts
@@ -21,26 +23,7 @@ declare const RagieCreateDocumentFromUrlOutput: z.ZodObject<{
21
23
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
24
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
25
  }, z.core.$loose>;
24
- declare const ragieCreateDocumentFromUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
25
- url: string;
26
- mode?: string | Record<string, unknown> | undefined;
27
- name?: string | undefined;
28
- metadata?: Record<string, unknown> | undefined;
29
- partition?: string | undefined;
30
- external_id?: string | undefined;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- generic_api_key: z.ZodString;
43
- }, z.core.$strip>>]>;
26
+ declare const ragieCreateDocumentFromUrl: AppAction<typeof RagieCreateDocumentFromUrlInput, typeof RagieCreateDocumentFromUrlOutput, typeof ragie.credential>;
44
27
  //#endregion
45
28
  export { ragieCreateDocumentFromUrl };
46
29
  //# sourceMappingURL=create-document-from-url.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-url.d.cts","names":[],"sources":["../../src/actions/create-document-from-url.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAahC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"create-document-from-url.d.cts","names":[],"sources":["../../src/actions/create-document-from-url.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAahC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { ragie } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-document-from-url.d.ts
@@ -21,26 +23,7 @@ declare const RagieCreateDocumentFromUrlOutput: z.ZodObject<{
21
23
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
24
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
25
  }, z.core.$loose>;
24
- declare const ragieCreateDocumentFromUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
25
- url: string;
26
- mode?: string | Record<string, unknown> | undefined;
27
- name?: string | undefined;
28
- metadata?: Record<string, unknown> | undefined;
29
- partition?: string | undefined;
30
- external_id?: string | undefined;
31
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
32
- connectionId: z.ZodString;
33
- entityId: z.ZodString;
34
- instanceId: z.ZodString;
35
- }, z.core.$strip>, z.ZodObject<{
36
- generic_api_key: z.ZodString;
37
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
38
- connectionId: z.ZodString;
39
- entityId: z.ZodString;
40
- instanceId: z.ZodString;
41
- }, z.core.$strip>, z.ZodObject<{
42
- generic_api_key: z.ZodString;
43
- }, z.core.$strip>>]>;
26
+ declare const ragieCreateDocumentFromUrl: AppAction<typeof RagieCreateDocumentFromUrlInput, typeof RagieCreateDocumentFromUrlOutput, typeof ragie.credential>;
44
27
  //#endregion
45
28
  export { ragieCreateDocumentFromUrl };
46
29
  //# sourceMappingURL=create-document-from-url.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-url.d.mts","names":[],"sources":["../../src/actions/create-document-from-url.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAahC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"create-document-from-url.d.mts","names":[],"sources":["../../src/actions/create-document-from-url.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;cAahC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const ragieCreateDocumentFromUrl = action("RAGIE_CREATE_DOCUMENT_FROM_URL", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-url.mjs","names":[],"sources":["../../src/actions/create-document-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentFromUrlInput = z.object({\n url: z.string().describe(\"URL of the file to download. Must be publicly accessible and use HTTP or HTTPS scheme.\"),\n mode: z.union([z.string(), z.record(z.string(), z.unknown())]).optional(),\n name: z.string().describe(\"Optional document name; defaults if omitted\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string/number/boolean/array values; max 1000 total values\").optional(),\n partition: z.string().describe(\"Optional partition identifier for scoping\").optional(),\n external_id: z.string().describe(\"Optional external system identifier\").optional(),\n}).describe(\"Request schema for creating a document from a publicly accessible URL.\");\nexport const RagieCreateDocumentFromUrlOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID)\").nullable(),\n name: z.string().describe(\"Document name\").nullable(),\n status: z.string().describe(\"Processing state (pending, partitioning, indexed, ready, failed, etc.)\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata (strings, numbers, booleans, arrays)\").nullable().optional(),\n partition: z.string().describe(\"Associated partition identifier\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n page_count: z.union([z.number().int(), z.number()]).nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks\").nullable().optional(),\n external_id: z.string().describe(\"External identifier if provided\").nullable().optional(),\n}).passthrough().describe(\"Response schema for document creation from URL.\");\n\nexport const ragieCreateDocumentFromUrl = action(\"RAGIE_CREATE_DOCUMENT_FROM_URL\", {\n slug: \"ragie-create-document-from-url\",\n name: \"Create Document From URL\",\n description: \"Tool to ingest a document from a publicly accessible URL. Use when you need to add documents to Ragie from external sources. The document undergoes processing steps (pending, partitioning, indexed, ready) before becoming available for retrieval.\",\n input: RagieCreateDocumentFromUrlInput,\n output: RagieCreateDocumentFromUrlOutput,\n});\n"],"mappings":";;AAyBA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzB6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EAClJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,SAAS,wEAkBH;CACP,QAlB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC/G,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC/D,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAClE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-from-url.mjs","names":[],"sources":["../../src/actions/create-document-from-url.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ragie } from \"../app\";\n\nexport const RagieCreateDocumentFromUrlInput = z.object({\n url: z.string().describe(\"URL of the file to download. Must be publicly accessible and use HTTP or HTTPS scheme.\"),\n mode: z.union([z.string(), z.record(z.string(), z.unknown())]).optional(),\n name: z.string().describe(\"Optional document name; defaults if omitted\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string/number/boolean/array values; max 1000 total values\").optional(),\n partition: z.string().describe(\"Optional partition identifier for scoping\").optional(),\n external_id: z.string().describe(\"Optional external system identifier\").optional(),\n}).describe(\"Request schema for creating a document from a publicly accessible URL.\");\nexport const RagieCreateDocumentFromUrlOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID)\").nullable(),\n name: z.string().describe(\"Document name\").nullable(),\n status: z.string().describe(\"Processing state (pending, partitioning, indexed, ready, failed, etc.)\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata (strings, numbers, booleans, arrays)\").nullable().optional(),\n partition: z.string().describe(\"Associated partition identifier\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n page_count: z.union([z.number().int(), z.number()]).nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks\").nullable().optional(),\n external_id: z.string().describe(\"External identifier if provided\").nullable().optional(),\n}).passthrough().describe(\"Response schema for document creation from URL.\");\n\nexport const ragieCreateDocumentFromUrl: AppAction<\n typeof RagieCreateDocumentFromUrlInput,\n typeof RagieCreateDocumentFromUrlOutput,\n typeof ragie.credential\n> = action(\"RAGIE_CREATE_DOCUMENT_FROM_URL\", {\n slug: \"ragie-create-document-from-url\",\n name: \"Create Document From URL\",\n description: \"Tool to ingest a document from a publicly accessible URL. Use when you need to add documents to Ragie from external sources. The document undergoes processing steps (pending, partitioning, indexed, ready) before becoming available for retrieval.\",\n input: RagieCreateDocumentFromUrlInput,\n output: RagieCreateDocumentFromUrlOutput,\n});\n"],"mappings":";;;AA2BA,MAAa,6BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA7B6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,MAAM,EAAE,MA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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-document-raw.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-raw.cjs","names":["z","action"],"sources":["../../src/actions/create-document-raw.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentRawInput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown())]),\n name: z.string().describe(\"An optional name for the document. If not set, defaults to the current timestamp.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string keys and string/number/boolean/array values; maximum 1000 total values.\").optional(),\n partition: z.string().describe(\"Document scope identifier; must be lowercase alphanumeric with only '_' and '-' special characters.\").optional(),\n external_id: z.string().describe(\"An optional identifier for the document. A common value might be an id in an external system or the URL.\").optional(),\n}).describe(\"Request model for creating a document from raw text or JSON data.\");\nexport const RagieCreateDocumentRawOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID).\").nullable(),\n name: z.string().describe(\"Document name.\").nullable(),\n status: z.string().describe(\"Processing state of document (pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, ready, or failed).\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Associated metadata.\").nullable().optional(),\n partition: z.string().describe(\"Partition assignment.\").nullable().optional(),\n created_at: z.string().describe(\"Document creation timestamp (datetime).\").nullable(),\n page_count: z.number().describe(\"Page count if applicable.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp (datetime).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created document.\");\n\nexport const ragieCreateDocumentRaw = action(\"RAGIE_CREATE_DOCUMENT_RAW\", {\n slug: \"ragie-create-document-raw\",\n name: \"Create Document Raw\",\n description: \"Tool to ingest a document as raw text or JSON. Use when creating a new document from text or JSON data. The document goes through processing steps and becomes available for retrieval once in the ready state.\",\n input: RagieCreateDocumentRawInput,\n output: RagieCreateDocumentRawOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACxH,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACvK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC/I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;AACxJ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACrD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CAC1L,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-raw.cjs","names":["z","action"],"sources":["../../src/actions/create-document-raw.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ragie } from \"../app\";\n\nexport const RagieCreateDocumentRawInput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown())]),\n name: z.string().describe(\"An optional name for the document. If not set, defaults to the current timestamp.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string keys and string/number/boolean/array values; maximum 1000 total values.\").optional(),\n partition: z.string().describe(\"Document scope identifier; must be lowercase alphanumeric with only '_' and '-' special characters.\").optional(),\n external_id: z.string().describe(\"An optional identifier for the document. A common value might be an id in an external system or the URL.\").optional(),\n}).describe(\"Request model for creating a document from raw text or JSON data.\");\nexport const RagieCreateDocumentRawOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID).\").nullable(),\n name: z.string().describe(\"Document name.\").nullable(),\n status: z.string().describe(\"Processing state of document (pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, ready, or failed).\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Associated metadata.\").nullable().optional(),\n partition: z.string().describe(\"Partition assignment.\").nullable().optional(),\n created_at: z.string().describe(\"Document creation timestamp (datetime).\").nullable(),\n page_count: z.number().describe(\"Page count if applicable.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp (datetime).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created document.\");\n\nexport const ragieCreateDocumentRaw: AppAction<\n typeof RagieCreateDocumentRawInput,\n typeof RagieCreateDocumentRawOutput,\n typeof ragie.credential\n> = action(\"RAGIE_CREATE_DOCUMENT_RAW\", {\n slug: \"ragie-create-document-raw\",\n name: \"Create Document Raw\",\n description: \"Tool to ingest a document as raw text or JSON. Use when creating a new document from text or JSON data. The document goes through processing steps and becomes available for retrieval once in the ready state.\",\n input: RagieCreateDocumentRawInput,\n output: RagieCreateDocumentRawOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACxH,UAAUA,IAAAA,EAAE,OAAOA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A6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,yBAITC,eAAAA,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { ragie } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-document-raw.d.ts
@@ -20,25 +22,7 @@ declare const RagieCreateDocumentRawOutput: z.ZodObject<{
20
22
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
23
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
24
  }, z.core.$loose>;
23
- declare const ragieCreateDocumentRaw: import("@keystrokehq/action").WorkflowActionDefinition<{
24
- data: string | Record<string, unknown>;
25
- name?: string | undefined;
26
- metadata?: Record<string, unknown> | undefined;
27
- partition?: string | undefined;
28
- external_id?: string | undefined;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
30
- connectionId: z.ZodString;
31
- entityId: z.ZodString;
32
- instanceId: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- generic_api_key: z.ZodString;
35
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- generic_api_key: z.ZodString;
41
- }, z.core.$strip>>]>;
25
+ declare const ragieCreateDocumentRaw: AppAction<typeof RagieCreateDocumentRawInput, typeof RagieCreateDocumentRawOutput, typeof ragie.credential>;
42
26
  //#endregion
43
27
  export { ragieCreateDocumentRaw };
44
28
  //# sourceMappingURL=create-document-raw.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-raw.d.cts","names":[],"sources":["../../src/actions/create-document-raw.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAa5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-document-raw.d.cts","names":[],"sources":["../../src/actions/create-document-raw.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAa5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { ragie } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-document-raw.d.ts
@@ -20,25 +22,7 @@ declare const RagieCreateDocumentRawOutput: z.ZodObject<{
20
22
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
23
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
24
  }, z.core.$loose>;
23
- declare const ragieCreateDocumentRaw: import("@keystrokehq/action").WorkflowActionDefinition<{
24
- data: string | Record<string, unknown>;
25
- name?: string | undefined;
26
- metadata?: Record<string, unknown> | undefined;
27
- partition?: string | undefined;
28
- external_id?: string | undefined;
29
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
30
- connectionId: z.ZodString;
31
- entityId: z.ZodString;
32
- instanceId: z.ZodString;
33
- }, z.core.$strip>, z.ZodObject<{
34
- generic_api_key: z.ZodString;
35
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
36
- connectionId: z.ZodString;
37
- entityId: z.ZodString;
38
- instanceId: z.ZodString;
39
- }, z.core.$strip>, z.ZodObject<{
40
- generic_api_key: z.ZodString;
41
- }, z.core.$strip>>]>;
25
+ declare const ragieCreateDocumentRaw: AppAction<typeof RagieCreateDocumentRawInput, typeof RagieCreateDocumentRawOutput, typeof ragie.credential>;
42
26
  //#endregion
43
27
  export { ragieCreateDocumentRaw };
44
28
  //# sourceMappingURL=create-document-raw.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-raw.d.mts","names":[],"sources":["../../src/actions/create-document-raw.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAa5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-document-raw.d.mts","names":[],"sources":["../../src/actions/create-document-raw.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAO3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAa5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const ragieCreateDocumentRaw = action("RAGIE_CREATE_DOCUMENT_RAW", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-raw.mjs","names":[],"sources":["../../src/actions/create-document-raw.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentRawInput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown())]),\n name: z.string().describe(\"An optional name for the document. If not set, defaults to the current timestamp.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string keys and string/number/boolean/array values; maximum 1000 total values.\").optional(),\n partition: z.string().describe(\"Document scope identifier; must be lowercase alphanumeric with only '_' and '-' special characters.\").optional(),\n external_id: z.string().describe(\"An optional identifier for the document. A common value might be an id in an external system or the URL.\").optional(),\n}).describe(\"Request model for creating a document from raw text or JSON data.\");\nexport const RagieCreateDocumentRawOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID).\").nullable(),\n name: z.string().describe(\"Document name.\").nullable(),\n status: z.string().describe(\"Processing state of document (pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, ready, or failed).\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Associated metadata.\").nullable().optional(),\n partition: z.string().describe(\"Partition assignment.\").nullable().optional(),\n created_at: z.string().describe(\"Document creation timestamp (datetime).\").nullable(),\n page_count: z.number().describe(\"Page count if applicable.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp (datetime).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created document.\");\n\nexport const ragieCreateDocumentRaw = action(\"RAGIE_CREATE_DOCUMENT_RAW\", {\n slug: \"ragie-create-document-raw\",\n name: \"Create Document Raw\",\n description: \"Tool to ingest a document as raw text or JSON. Use when creating a new document from text or JSON data. The document goes through processing steps and becomes available for retrieval once in the ready state.\",\n input: RagieCreateDocumentRawInput,\n output: RagieCreateDocumentRawOutput,\n});\n"],"mappings":";;AAwBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxByC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACxH,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EACvK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC/I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,mEAkBH;CACP,QAlB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EAC1L,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-raw.mjs","names":[],"sources":["../../src/actions/create-document-raw.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ragie } from \"../app\";\n\nexport const RagieCreateDocumentRawInput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown())]),\n name: z.string().describe(\"An optional name for the document. If not set, defaults to the current timestamp.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string keys and string/number/boolean/array values; maximum 1000 total values.\").optional(),\n partition: z.string().describe(\"Document scope identifier; must be lowercase alphanumeric with only '_' and '-' special characters.\").optional(),\n external_id: z.string().describe(\"An optional identifier for the document. A common value might be an id in an external system or the URL.\").optional(),\n}).describe(\"Request model for creating a document from raw text or JSON data.\");\nexport const RagieCreateDocumentRawOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID).\").nullable(),\n name: z.string().describe(\"Document name.\").nullable(),\n status: z.string().describe(\"Processing state of document (pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, ready, or failed).\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Associated metadata.\").nullable().optional(),\n partition: z.string().describe(\"Partition assignment.\").nullable().optional(),\n created_at: z.string().describe(\"Document creation timestamp (datetime).\").nullable(),\n page_count: z.number().describe(\"Page count if applicable.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp (datetime).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created document.\");\n\nexport const ragieCreateDocumentRaw: AppAction<\n typeof RagieCreateDocumentRawInput,\n typeof RagieCreateDocumentRawOutput,\n typeof ragie.credential\n> = action(\"RAGIE_CREATE_DOCUMENT_RAW\", {\n slug: \"ragie-create-document-raw\",\n name: \"Create Document Raw\",\n description: \"Tool to ingest a document as raw text or JSON. Use when creating a new document from text or JSON data. The document goes through processing steps and becomes available for retrieval once in the ready state.\",\n input: RagieCreateDocumentRawInput,\n output: RagieCreateDocumentRawOutput,\n});\n"],"mappings":";;;AA0BA,MAAa,yBAIT,OAAO,6BAA6B;CACtC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AAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-document.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.cjs","names":["z","action"],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The document file to upload. Supported formats: Plain Text (.eml.html.json.md.msg.rst.rtf.txt.xml), Images (.png.webp.jpg.jpeg.tiff.bmp.heic), Documents (.csv.doc.docx.epub.odt.pdf.ppt.pptx.tsv.xlsx.xls). Note: PDFs exceeding 2000 pages are unsupported in hi_res mode. If not provided, use inline file content with a filename instead.\").optional(),\n mode: z.union([z.string(), z.boolean()]).optional(),\n name: z.string().describe(\"Custom document name. Defaults to the file's name if omitted.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for document metadata. Keys must be strings. Values can be strings, numbers, booleans, or string arrays. Maximum 1000 total values allowed.\").optional(),\n partition: z.string().describe(\"Partition scope for the document. Must be lowercase alphanumeric with only '_' and '-' allowed.\").optional(),\n rawContent: z.union([z.string(), z.string()]).optional(),\n external_id: z.string().describe(\"Custom identifier for the document (e.g., external system ID or source URL).\").optional(),\n rawFilename: z.string().describe(\"Filename for inline content (e.g., 'document.txt'). Required when using inline file content.\").optional(),\n rawMimetype: z.string().describe(\"MIME type for the inline content (e.g., 'text/plain', 'application/pdf'). Defaults to text/plain.\").optional(),\n}).describe(\"Request model for creating a document in Ragie.\");\nexport const RagieCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the document (UUID format).\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable(),\n status: z.string().describe(\"Current processing state of the document.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata key-value pairs associated with the document.\").nullable().optional(),\n partition: z.string().describe(\"Partition identifier for the document.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the document was created (datetime format).\").nullable(),\n page_count: z.number().describe(\"Total number of pages in the document.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of the last modification (datetime format).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of chunks extracted from the document during processing.\").nullable().optional(),\n external_id: z.string().describe(\"Custom identifier provided during upload.\").nullable().optional(),\n}).passthrough().describe(\"Response model for created document in Ragie.\");\n\nexport const ragieCreateDocument = action(\"RAGIE_CREATE_DOCUMENT\", {\n slug: \"ragie-create-document\",\n name: \"Create Document\",\n description: \"Tool to upload and process a document file in Ragie. Use when you need to create a new document with support for various formats including text, images, and documents. The endpoint accepts multipart/form-data and returns a Document object with processing status and metadata.\",\n input: RagieCreateDocumentInput,\n output: RagieCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,gVAAgV,CAAC,CAAC,SAAS;CACrW,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,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,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-document.cjs","names":["z","action"],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ragie } from \"../app\";\n\nexport const RagieCreateDocumentInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The document file to upload. Supported formats: Plain Text (.eml.html.json.md.msg.rst.rtf.txt.xml), Images (.png.webp.jpg.jpeg.tiff.bmp.heic), Documents (.csv.doc.docx.epub.odt.pdf.ppt.pptx.tsv.xlsx.xls). Note: PDFs exceeding 2000 pages are unsupported in hi_res mode. If not provided, use inline file content with a filename instead.\").optional(),\n mode: z.union([z.string(), z.boolean()]).optional(),\n name: z.string().describe(\"Custom document name. Defaults to the file's name if omitted.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for document metadata. Keys must be strings. Values can be strings, numbers, booleans, or string arrays. Maximum 1000 total values allowed.\").optional(),\n partition: z.string().describe(\"Partition scope for the document. Must be lowercase alphanumeric with only '_' and '-' allowed.\").optional(),\n rawContent: z.union([z.string(), z.string()]).optional(),\n external_id: z.string().describe(\"Custom identifier for the document (e.g., external system ID or source URL).\").optional(),\n rawFilename: z.string().describe(\"Filename for inline content (e.g., 'document.txt'). Required when using inline file content.\").optional(),\n rawMimetype: z.string().describe(\"MIME type for the inline content (e.g., 'text/plain', 'application/pdf'). Defaults to text/plain.\").optional(),\n}).describe(\"Request model for creating a document in Ragie.\");\nexport const RagieCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the document (UUID format).\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable(),\n status: z.string().describe(\"Current processing state of the document.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata key-value pairs associated with the document.\").nullable().optional(),\n partition: z.string().describe(\"Partition identifier for the document.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the document was created (datetime format).\").nullable(),\n page_count: z.number().describe(\"Total number of pages in the document.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of the last modification (datetime format).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of chunks extracted from the document during processing.\").nullable().optional(),\n external_id: z.string().describe(\"Custom identifier provided during upload.\").nullable().optional(),\n}).passthrough().describe(\"Response model for created document in Ragie.\");\n\nexport const ragieCreateDocument: AppAction<\n typeof RagieCreateDocumentInput,\n typeof RagieCreateDocumentOutput,\n typeof ragie.credential\n> = action(\"RAGIE_CREATE_DOCUMENT\", {\n slug: \"ragie-create-document\",\n name: \"Create Document\",\n description: \"Tool to upload and process a document file in Ragie. Use when you need to create a new document with support for various formats including text, images, and documents. The endpoint accepts multipart/form-data and returns a Document object with processing status and metadata.\",\n input: RagieCreateDocumentInput,\n output: RagieCreateDocumentOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,gVAAgV,CAAC,CAAC,SAAS;CACrW,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;CACpO,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC3I,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CACvD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CAC1I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,4BAA4BA,IAAAA,EAA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ions/create-document.d.ts
@@ -28,33 +30,7 @@ declare const RagieCreateDocumentOutput: z.ZodObject<{
28
30
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
31
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
32
  }, z.core.$loose>;
31
- declare const ragieCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- file?: {
33
- name: string;
34
- s3key: string;
35
- mimetype: string;
36
- } | undefined;
37
- mode?: string | boolean | undefined;
38
- name?: string | undefined;
39
- metadata?: Record<string, unknown> | undefined;
40
- partition?: string | undefined;
41
- rawContent?: string | undefined;
42
- external_id?: string | undefined;
43
- rawFilename?: string | undefined;
44
- rawMimetype?: string | undefined;
45
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
46
- connectionId: z.ZodString;
47
- entityId: z.ZodString;
48
- instanceId: z.ZodString;
49
- }, z.core.$strip>, z.ZodObject<{
50
- generic_api_key: z.ZodString;
51
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
52
- connectionId: z.ZodString;
53
- entityId: z.ZodString;
54
- instanceId: z.ZodString;
55
- }, z.core.$strip>, z.ZodObject<{
56
- generic_api_key: z.ZodString;
57
- }, z.core.$strip>>]>;
33
+ declare const ragieCreateDocument: AppAction<typeof RagieCreateDocumentInput, typeof RagieCreateDocumentOutput, typeof ragie.credential>;
58
34
  //#endregion
59
35
  export { ragieCreateDocument };
60
36
  //# sourceMappingURL=create-document.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.d.cts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAexB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAazB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-document.d.cts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAexB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAazB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { ragie } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-document.d.ts
@@ -28,33 +30,7 @@ declare const RagieCreateDocumentOutput: z.ZodObject<{
28
30
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
31
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
32
  }, z.core.$loose>;
31
- declare const ragieCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
32
- file?: {
33
- name: string;
34
- s3key: string;
35
- mimetype: string;
36
- } | undefined;
37
- mode?: string | boolean | undefined;
38
- name?: string | undefined;
39
- metadata?: Record<string, unknown> | undefined;
40
- partition?: string | undefined;
41
- rawContent?: string | undefined;
42
- external_id?: string | undefined;
43
- rawFilename?: string | undefined;
44
- rawMimetype?: string | undefined;
45
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
46
- connectionId: z.ZodString;
47
- entityId: z.ZodString;
48
- instanceId: z.ZodString;
49
- }, z.core.$strip>, z.ZodObject<{
50
- generic_api_key: z.ZodString;
51
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
52
- connectionId: z.ZodString;
53
- entityId: z.ZodString;
54
- instanceId: z.ZodString;
55
- }, z.core.$strip>, z.ZodObject<{
56
- generic_api_key: z.ZodString;
57
- }, z.core.$strip>>]>;
33
+ declare const ragieCreateDocument: AppAction<typeof RagieCreateDocumentInput, typeof RagieCreateDocumentOutput, typeof ragie.credential>;
58
34
  //#endregion
59
35
  export { ragieCreateDocument };
60
36
  //# sourceMappingURL=create-document.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.d.mts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAexB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAazB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"create-document.d.mts","names":[],"sources":["../../src/actions/create-document.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAexB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;cAazB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const ragieCreateDocument = action("RAGIE_CREATE_DOCUMENT", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The document file to upload. Supported formats: Plain Text (.eml.html.json.md.msg.rst.rtf.txt.xml), Images (.png.webp.jpg.jpeg.tiff.bmp.heic), Documents (.csv.doc.docx.epub.odt.pdf.ppt.pptx.tsv.xlsx.xls). Note: PDFs exceeding 2000 pages are unsupported in hi_res mode. If not provided, use inline file content with a filename instead.\").optional(),\n mode: z.union([z.string(), z.boolean()]).optional(),\n name: z.string().describe(\"Custom document name. Defaults to the file's name if omitted.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for document metadata. Keys must be strings. Values can be strings, numbers, booleans, or string arrays. Maximum 1000 total values allowed.\").optional(),\n partition: z.string().describe(\"Partition scope for the document. Must be lowercase alphanumeric with only '_' and '-' allowed.\").optional(),\n rawContent: z.union([z.string(), z.string()]).optional(),\n external_id: z.string().describe(\"Custom identifier for the document (e.g., external system ID or source URL).\").optional(),\n rawFilename: z.string().describe(\"Filename for inline content (e.g., 'document.txt'). Required when using inline file content.\").optional(),\n rawMimetype: z.string().describe(\"MIME type for the inline content (e.g., 'text/plain', 'application/pdf'). Defaults to text/plain.\").optional(),\n}).describe(\"Request model for creating a document in Ragie.\");\nexport const RagieCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the document (UUID format).\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable(),\n status: z.string().describe(\"Current processing state of the document.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata key-value pairs associated with the document.\").nullable().optional(),\n partition: z.string().describe(\"Partition identifier for the document.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the document was created (datetime format).\").nullable(),\n page_count: z.number().describe(\"Total number of pages in the document.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of the last modification (datetime format).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of chunks extracted from the document during processing.\").nullable().optional(),\n external_id: z.string().describe(\"Custom identifier provided during upload.\").nullable().optional(),\n}).passthrough().describe(\"Response model for created document in Ragie.\");\n\nexport const ragieCreateDocument = action(\"RAGIE_CREATE_DOCUMENT\", {\n slug: \"ragie-create-document\",\n name: \"Create Document\",\n description: \"Tool to upload and process a document file in Ragie. Use when you need to create a new document with support for various formats including text, images, and documents. The endpoint accepts multipart/form-data and returns a Document object with processing status and metadata.\",\n input: RagieCreateDocumentInput,\n output: RagieCreateDocumentOutput,\n});\n"],"mappings":";;AAgCA,MA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,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAClG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ragie } from \"../app\";\n\nexport const RagieCreateDocumentInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The document file to upload. Supported formats: Plain Text (.eml.html.json.md.msg.rst.rtf.txt.xml), Images (.png.webp.jpg.jpeg.tiff.bmp.heic), Documents (.csv.doc.docx.epub.odt.pdf.ppt.pptx.tsv.xlsx.xls). Note: PDFs exceeding 2000 pages are unsupported in hi_res mode. If not provided, use inline file content with a filename instead.\").optional(),\n mode: z.union([z.string(), z.boolean()]).optional(),\n name: z.string().describe(\"Custom document name. Defaults to the file's name if omitted.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for document metadata. Keys must be strings. Values can be strings, numbers, booleans, or string arrays. Maximum 1000 total values allowed.\").optional(),\n partition: z.string().describe(\"Partition scope for the document. Must be lowercase alphanumeric with only '_' and '-' allowed.\").optional(),\n rawContent: z.union([z.string(), z.string()]).optional(),\n external_id: z.string().describe(\"Custom identifier for the document (e.g., external system ID or source URL).\").optional(),\n rawFilename: z.string().describe(\"Filename for inline content (e.g., 'document.txt'). Required when using inline file content.\").optional(),\n rawMimetype: z.string().describe(\"MIME type for the inline content (e.g., 'text/plain', 'application/pdf'). Defaults to text/plain.\").optional(),\n}).describe(\"Request model for creating a document in Ragie.\");\nexport const RagieCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the document (UUID format).\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable(),\n status: z.string().describe(\"Current processing state of the document.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata key-value pairs associated with the document.\").nullable().optional(),\n partition: z.string().describe(\"Partition identifier for the document.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the document was created (datetime format).\").nullable(),\n page_count: z.number().describe(\"Total number of pages in the document.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of the last modification (datetime format).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of chunks extracted from the document during processing.\").nullable().optional(),\n external_id: z.string().describe(\"Custom identifier provided during upload.\").nullable().optional(),\n}).passthrough().describe(\"Response model for created document in Ragie.\");\n\nexport const ragieCreateDocument: AppAction<\n typeof RagieCreateDocumentInput,\n typeof RagieCreateDocumentOutput,\n typeof ragie.credential\n> = action(\"RAGIE_CREATE_DOCUMENT\", {\n slug: \"ragie-create-document\",\n name: \"Create Document\",\n description: \"Tool to upload and process a document file in Ragie. Use when you need to create a new document with support for various formats including text, images, and documents. The endpoint accepts multipart/form-data and returns a Document object with processing status and metadata.\",\n input: RagieCreateDocumentInput,\n output: RagieCreateDocumentOutput,\n});\n"],"mappings":";;;AAkCA,MAAa,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApCsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;GACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;EAC3D,CAAC,CAAC,CAAC,SAAS,gVAAgV,CAAC,CAAC,SAAS;EACrW,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EACpG,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;EACpO,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;EAC3I,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;EACvD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;EAC1H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;EAC1I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;CACjJ,CAAC,CAAC,CAAC,SAAS,iDAsBH;CACP,QAtBuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;EACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAClG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-instruction.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-instruction.cjs","names":["z","action"],"sources":["../../src/actions/create-instruction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateInstructionInput = z.object({\n name: z.string().describe(\"Unique identifier for the instruction\"),\n scope: z.enum([\"document\", \"chunk\"]).default(\"chunk\").describe(\"Scope of instruction: 'document' for full analysis, 'chunk' for granular search (default: 'chunk')\").optional(),\n active: z.boolean().default(true).describe(\"Whether instruction applies to new/updated documents (default: true)\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Optional metadata filter matching document metadata before applying instruction\").optional(),\n prompt: z.string().describe(\"Natural language instruction which will be applied to documents as they are created and updated\"),\n partition: z.string().describe(\"Optional partition identifier to scope instruction to specific partition\").optional(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema defining the entity structure generated by the instruction\"),\n}).describe(\"Request model for creating a new instruction in Ragie.\");\nexport const RagieCreateInstructionOutput = z.object({\n id: z.string().describe(\"Unique instruction identifier (UUID)\").nullable(),\n name: z.string().describe(\"Instruction name\").nullable(),\n scope: z.string().describe(\"Scope: 'document' or 'chunk'\").nullable(),\n active: z.boolean().describe(\"Active status\").nullable(),\n filter: z.record(z.string(), z.unknown()).describe(\"Applied metadata filter (if any)\").nullable().optional(),\n prompt: z.string().describe(\"The instruction prompt text\").nullable(),\n partition: z.string().describe(\"Associated partition (if any)\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema for generated entities\"),\n}).passthrough().describe(\"Response model for created instruction.\");\n\nexport const ragieCreateInstruction = action(\"RAGIE_CREATE_INSTRUCTION\", {\n slug: \"ragie-create-instruction\",\n name: \"Create Instruction\",\n description: \"Tool to create a new instruction that applies natural language directives to documents as they're ingested or updated. Use when you need to define structured data extraction or analysis rules for documents in Ragie.\",\n input: RagieCreateInstructionInput,\n output: RagieCreateInstructionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,OAAOA,IAAAA,EAAE,KAAK,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC9K,QAAQA,IAAAA,EAA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AAC,CAAC,SAAS;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-instruction.cjs","names":["z","action"],"sources":["../../src/actions/create-instruction.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { ragie } from \"../app\";\n\nexport const RagieCreateInstructionInput = z.object({\n name: z.string().describe(\"Unique identifier for the instruction\"),\n scope: z.enum([\"document\", \"chunk\"]).default(\"chunk\").describe(\"Scope of instruction: 'document' for full analysis, 'chunk' for granular search (default: 'chunk')\").optional(),\n active: z.boolean().default(true).describe(\"Whether instruction applies to new/updated documents (default: true)\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Optional metadata filter matching document metadata before applying instruction\").optional(),\n prompt: z.string().describe(\"Natural language instruction which will be applied to documents as they are created and updated\"),\n partition: z.string().describe(\"Optional partition identifier to scope instruction to specific partition\").optional(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema defining the entity structure generated by the instruction\"),\n}).describe(\"Request model for creating a new instruction in Ragie.\");\nexport const RagieCreateInstructionOutput = z.object({\n id: z.string().describe(\"Unique instruction identifier (UUID)\").nullable(),\n name: z.string().describe(\"Instruction name\").nullable(),\n scope: z.string().describe(\"Scope: 'document' or 'chunk'\").nullable(),\n active: z.boolean().describe(\"Active status\").nullable(),\n filter: z.record(z.string(), z.unknown()).describe(\"Applied metadata filter (if any)\").nullable().optional(),\n prompt: z.string().describe(\"The instruction prompt text\").nullable(),\n partition: z.string().describe(\"Associated partition (if any)\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema for generated entities\"),\n}).passthrough().describe(\"Response model for created instruction.\");\n\nexport const ragieCreateInstruction: AppAction<\n typeof RagieCreateInstructionInput,\n typeof RagieCreateInstructionOutput,\n typeof ragie.credential\n> = action(\"RAGIE_CREATE_INSTRUCTION\", {\n slug: \"ragie-create-instruction\",\n name: \"Create Instruction\",\n description: \"Tool to create a new instruction that applies natural language directives to documents as they're ingested or updated. Use when you need to define structured data extraction or analysis rules for documents in Ragie.\",\n input: RagieCreateInstructionInput,\n output: RagieCreateInstructionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,OAAOA,IAAAA,EAAE,KAAK,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC9K,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC5H,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC/I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CAC7H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,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q/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-instruction.d.ts
@@ -25,27 +27,7 @@ declare const RagieCreateInstructionOutput: z.ZodObject<{
25
27
  updated_at: z.ZodNullable<z.ZodString>;
26
28
  entity_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
27
29
  }, z.core.$loose>;
28
- declare const ragieCreateInstruction: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- name: string;
30
- prompt: string;
31
- entity_schema: Record<string, unknown>;
32
- scope?: "document" | "chunk" | undefined;
33
- active?: boolean | undefined;
34
- filter?: Record<string, unknown> | undefined;
35
- partition?: string | undefined;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- generic_api_key: z.ZodString;
42
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- generic_api_key: z.ZodString;
48
- }, z.core.$strip>>]>;
30
+ declare const ragieCreateInstruction: AppAction<typeof RagieCreateInstructionInput, typeof RagieCreateInstructionOutput, typeof ragie.credential>;
49
31
  //#endregion
50
32
  export { ragieCreateInstruction };
51
33
  //# sourceMappingURL=create-instruction.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-instruction.d.cts","names":[],"sources":["../../src/actions/create-instruction.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAS3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAa5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-instruction.d.cts","names":[],"sources":["../../src/actions/create-instruction.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAS3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAa5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { ragie } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-instruction.d.ts
@@ -25,27 +27,7 @@ declare const RagieCreateInstructionOutput: z.ZodObject<{
25
27
  updated_at: z.ZodNullable<z.ZodString>;
26
28
  entity_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
27
29
  }, z.core.$loose>;
28
- declare const ragieCreateInstruction: import("@keystrokehq/action").WorkflowActionDefinition<{
29
- name: string;
30
- prompt: string;
31
- entity_schema: Record<string, unknown>;
32
- scope?: "document" | "chunk" | undefined;
33
- active?: boolean | undefined;
34
- filter?: Record<string, unknown> | undefined;
35
- partition?: string | undefined;
36
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
37
- connectionId: z.ZodString;
38
- entityId: z.ZodString;
39
- instanceId: z.ZodString;
40
- }, z.core.$strip>, z.ZodObject<{
41
- generic_api_key: z.ZodString;
42
- }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"ragie", z.ZodObject<{
43
- connectionId: z.ZodString;
44
- entityId: z.ZodString;
45
- instanceId: z.ZodString;
46
- }, z.core.$strip>, z.ZodObject<{
47
- generic_api_key: z.ZodString;
48
- }, z.core.$strip>>]>;
30
+ declare const ragieCreateInstruction: AppAction<typeof RagieCreateInstructionInput, typeof RagieCreateInstructionOutput, typeof ragie.credential>;
49
31
  //#endregion
50
32
  export { ragieCreateInstruction };
51
33
  //# sourceMappingURL=create-instruction.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-instruction.d.mts","names":[],"sources":["../../src/actions/create-instruction.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAS3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAa5B,sBAAA,gCAAsB,wBAAA"}
1
+ {"version":3,"file":"create-instruction.d.mts","names":[],"sources":["../../src/actions/create-instruction.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAS3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;cAa5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,KAAA,CAAM,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const ragieCreateInstruction = action("RAGIE_CREATE_INSTRUCTION", {