@keystrokehq/ragie 0.1.4 → 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 -8
  6. package/dist/actions/create-document-from-url.d.cts.map +1 -1
  7. package/dist/actions/create-document-from-url.d.mts +3 -8
  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 -7
  14. package/dist/actions/create-document-raw.d.cts.map +1 -1
  15. package/dist/actions/create-document-raw.d.mts +3 -7
  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 -15
  22. package/dist/actions/create-document.d.cts.map +1 -1
  23. package/dist/actions/create-document.d.mts +3 -15
  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 -9
  30. package/dist/actions/create-instruction.d.cts.map +1 -1
  31. package/dist/actions/create-instruction.d.mts +3 -9
  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 -11
  38. package/dist/actions/create-oauth-redirect-url.d.cts.map +1 -1
  39. package/dist/actions/create-oauth-redirect-url.d.mts +3 -11
  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 -17
  46. package/dist/actions/create-partition-partitions-post.d.cts.map +1 -1
  47. package/dist/actions/create-partition-partitions-post.d.mts +3 -17
  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 -5
  54. package/dist/actions/delete-document.d.cts.map +1 -1
  55. package/dist/actions/delete-document.d.mts +3 -5
  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 -3
  62. package/dist/actions/delete-instruction.d.cts.map +1 -1
  63. package/dist/actions/delete-instruction.d.mts +3 -3
  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 -4
  70. package/dist/actions/delete-partition.d.cts.map +1 -1
  71. package/dist/actions/delete-partition.d.mts +3 -4
  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 -8
  78. package/dist/actions/get-document-chunk-content.d.cts.map +1 -1
  79. package/dist/actions/get-document-chunk-content.d.mts +3 -8
  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 -5
  86. package/dist/actions/get-document-chunk.d.cts.map +1 -1
  87. package/dist/actions/get-document-chunk.d.mts +3 -5
  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 -8
  94. package/dist/actions/get-document-chunks.d.cts.map +1 -1
  95. package/dist/actions/get-document-chunks.d.mts +3 -8
  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 -7
  102. package/dist/actions/get-document-content.d.cts.map +1 -1
  103. package/dist/actions/get-document-content.d.mts +3 -7
  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 -4
  110. package/dist/actions/get-document-summary.d.cts.map +1 -1
  111. package/dist/actions/get-document-summary.d.mts +3 -4
  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 -4
  118. package/dist/actions/get-document.d.cts.map +1 -1
  119. package/dist/actions/get-document.d.mts +3 -4
  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 -3
  126. package/dist/actions/get-partition.d.cts.map +1 -1
  127. package/dist/actions/get-partition.d.mts +3 -3
  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 -3
  134. package/dist/actions/get-response.d.cts.map +1 -1
  135. package/dist/actions/get-response.d.mts +3 -3
  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 -1
  142. package/dist/actions/list-connection-source-types.d.cts.map +1 -1
  143. package/dist/actions/list-connection-source-types.d.mts +3 -1
  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 -6
  150. package/dist/actions/list-connections-connections-get.d.cts.map +1 -1
  151. package/dist/actions/list-connections-connections-get.d.mts +3 -6
  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 -6
  158. package/dist/actions/list-documents.d.cts.map +1 -1
  159. package/dist/actions/list-documents.d.mts +3 -6
  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 -6
  166. package/dist/actions/list-entities-by-document.d.cts.map +1 -1
  167. package/dist/actions/list-entities-by-document.d.mts +3 -6
  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 -6
  174. package/dist/actions/list-entities-by-instruction.d.cts.map +1 -1
  175. package/dist/actions/list-entities-by-instruction.d.mts +3 -6
  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 -1
  182. package/dist/actions/list-instructions.d.cts.map +1 -1
  183. package/dist/actions/list-instructions.d.mts +3 -1
  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 -4
  190. package/dist/actions/list-partitions.d.cts.map +1 -1
  191. package/dist/actions/list-partitions.d.mts +3 -4
  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 -6
  198. package/dist/actions/patch-document-metadata.d.cts.map +1 -1
  199. package/dist/actions/patch-document-metadata.d.mts +3 -6
  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 -9
  206. package/dist/actions/retrieve.d.cts.map +1 -1
  207. package/dist/actions/retrieve.d.mts +3 -9
  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 -15
  214. package/dist/actions/set-partition-limits.d.cts.map +1 -1
  215. package/dist/actions/set-partition-limits.d.mts +3 -15
  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 -9
  222. package/dist/actions/update-document-from-url.d.cts.map +1 -1
  223. package/dist/actions/update-document-from-url.d.mts +3 -9
  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 -4
  230. package/dist/actions/update-document-raw.d.cts.map +1 -1
  231. package/dist/actions/update-document-raw.d.mts +3 -4
  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 -4
  238. package/dist/actions/update-instruction.d.cts.map +1 -1
  239. package/dist/actions/update-instruction.d.mts +3 -4
  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 -6
  246. package/dist/actions/update-partition.d.cts.map +1 -1
  247. package/dist/actions/update-partition.d.mts +3 -6
  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 +5 -2
  252. package/dist/app.cjs.map +1 -1
  253. package/dist/app.d.cts +7 -1
  254. package/dist/app.d.cts.map +1 -1
  255. package/dist/app.d.mts +7 -1
  256. package/dist/app.d.mts.map +1 -1
  257. package/dist/app.mjs +3 -2
  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,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/patch-document-metadata.d.ts
@@ -11,12 +13,7 @@ declare const RagiePatchDocumentMetadataOutput: z.ZodObject<{
11
13
  status: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
14
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
13
15
  }, z.core.$loose>;
14
- declare const ragiePatchDocumentMetadata: import("@keystrokehq/action").WorkflowActionDefinition<{
15
- metadata: Record<string, unknown>;
16
- document_id: string;
17
- async?: boolean | undefined;
18
- partition?: string | undefined;
19
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
16
+ declare const ragiePatchDocumentMetadata: AppAction<typeof RagiePatchDocumentMetadataInput, typeof RagiePatchDocumentMetadataOutput, typeof ragie.credential>;
20
17
  //#endregion
21
18
  export { ragiePatchDocumentMetadata };
22
19
  //# sourceMappingURL=patch-document-metadata.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"patch-document-metadata.d.mts","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA;YAMrC,MAAA"}
1
+ {"version":3,"file":"patch-document-metadata.d.mts","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;cAM/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,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 ragiePatchDocumentMetadata = action("RAGIE_PATCH_DOCUMENT_METADATA", {
@@ -1 +1 @@
1
- {"version":3,"file":"patch-document-metadata.mjs","names":[],"sources":["../../src/actions/patch-document-metadata.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagiePatchDocumentMetadataInput = z.object({\n async: z.boolean().default(false).describe(\"Whether to run the metadata update asynchronously. If true, the metadata update will be run in the background and the response will be 202 Accepted.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata to update on the document. Performs a partial update. Supports string, number, boolean, and string array values. Keys set to null are deleted. Maximum 1000 total values allowed.\"),\n partition: z.string().describe(\"Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n}).describe(\"Request model for patching document metadata with partial updates.\");\nexport const RagiePatchDocumentMetadataOutput = z.object({\n status: z.string().describe(\"Status string indicating the operation was accepted for background processing. Present when async=true (202 Accepted).\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"The full document metadata inclusive of the update. Contains key-value pairs where values can be string, integer, number, boolean, or array of strings. Present when async=false (200 OK).\").nullable().optional(),\n}).passthrough().describe(\"Response model for patching document metadata.\");\n\nexport const ragiePatchDocumentMetadata = action(\"RAGIE_PATCH_DOCUMENT_METADATA\", {\n slug: \"ragie-patch-document-metadata\",\n name: \"Patch Document Metadata\",\n description: \"Tool to update metadata for a specific document with partial update support. Use when you need to modify document metadata fields without replacing the entire metadata object. Supports both synchronous and asynchronous updates.\",\n input: RagiePatchDocumentMetadataInput,\n output: RagiePatchDocumentMetadataOutput,\n});\n"],"mappings":";;AAeA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf6C,EAAE,OAAO;EACtD,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;EAC5M,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gMAAgM;EACrP,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;EACnJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACzF,CAAC,CAAC,CAAC,SAAS,oEAUH;CACP,QAV8C,EAAE,OAAO;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1K,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"patch-document-metadata.mjs","names":[],"sources":["../../src/actions/patch-document-metadata.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 RagiePatchDocumentMetadataInput = z.object({\n async: z.boolean().default(false).describe(\"Whether to run the metadata update asynchronously. If true, the metadata update will be run in the background and the response will be 202 Accepted.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"The metadata to update on the document. Performs a partial update. Supports string, number, boolean, and string array values. Keys set to null are deleted. Maximum 1000 total values allowed.\"),\n partition: z.string().describe(\"Optional partition scope. If omitted, accounts created after 1/9/2025 default to the default partition.\").optional(),\n document_id: z.string().describe(\"The unique identifier of the document (UUID format).\"),\n}).describe(\"Request model for patching document metadata with partial updates.\");\nexport const RagiePatchDocumentMetadataOutput = z.object({\n status: z.string().describe(\"Status string indicating the operation was accepted for background processing. Present when async=true (202 Accepted).\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"The full document metadata inclusive of the update. Contains key-value pairs where values can be string, integer, number, boolean, or array of strings. Present when async=false (200 OK).\").nullable().optional(),\n}).passthrough().describe(\"Response model for patching document metadata.\");\n\nexport const ragiePatchDocumentMetadata: AppAction<\n typeof RagiePatchDocumentMetadataInput,\n typeof RagiePatchDocumentMetadataOutput,\n typeof ragie.credential\n> = action(\"RAGIE_PATCH_DOCUMENT_METADATA\", {\n slug: \"ragie-patch-document-metadata\",\n name: \"Patch Document Metadata\",\n description: \"Tool to update metadata for a specific document with partial update support. Use when you need to modify document metadata fields without replacing the entire metadata object. Supports both synchronous and asynchronous updates.\",\n input: RagiePatchDocumentMetadataInput,\n output: RagiePatchDocumentMetadataOutput,\n});\n"],"mappings":";;;AAiBA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB6C,EAAE,OAAO;EACtD,OAAO,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,sJAAsJ,CAAC,CAAC,SAAS;EAC5M,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gMAAgM;EACrP,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS;EACnJ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;CACzF,CAAC,CAAC,CAAC,SAAS,oEAcH;CACP,QAd8C,EAAE,OAAO;EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1K,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4LAA4L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAWhB;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/retrieve.ts
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve.cjs","names":["z","action"],"sources":["../../src/actions/retrieve.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieRetrieveInput = z.object({\n query: z.string().describe(\"The query to search with when retrieving document chunks.\"),\n top_k: z.number().int().default(8).describe(\"The maximum number of chunks to return. Defaults to 8.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata search filter supporting operators: $eq (equal), $ne (not equal), $gt (greater than), $gte (greater than or equal), $lt (less than), $lte (less than or equal), $in (in array), $nin (not in array). Example: {\\\"department\\\": {\\\"$in\\\": [\\\"sales\\\", \\\"marketing\\\"]}}.\").optional(),\n rerank: z.boolean().default(false).describe(\"Reranks the chunks for semantic relevancy post cosine similarity.\").optional(),\n partition: z.string().describe(\"The partition to scope a retrieval to. If omitted, the retrieval will be scoped to the default partition.\").optional(),\n recency_bias: z.boolean().default(false).describe(\"Enables recency bias which will favor more recent documents vs older documents.\").optional(),\n max_chunks_per_document: z.number().int().describe(\"Maximum number of chunks to retrieve per document.\").optional(),\n}).describe(\"Request model for retrieving document chunks based on a query.\");\nconst RagieRetrieve_ScoredChunkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the chunk.\").nullable().optional(),\n text: z.string().describe(\"The chunk content/text.\").nullable().optional(),\n index: z.number().int().describe(\"Position/index of the chunk within the source document.\").nullable().optional(),\n links: z.record(z.string(), z.unknown()).describe(\"Navigation references.\").nullable().optional(),\n score: z.number().describe(\"Relevance score indicating how well the chunk matches the query.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Chunk-level metadata.\").nullable().optional(),\n document_id: z.string().describe(\"Identifier of the source document.\").nullable().optional(),\n document_name: z.string().describe(\"Name of the source document.\").nullable().optional(),\n document_metadata: z.record(z.string(), z.unknown()).describe(\"Document-level metadata.\").nullable().optional(),\n}).passthrough().describe(\"A document chunk with its relevance score.\");\nexport const RagieRetrieveOutput = z.object({\n scored_chunks: z.array(RagieRetrieve_ScoredChunkSchema).describe(\"Array of retrieved document chunks with relevance scores.\"),\n}).passthrough().describe(\"Response model for document chunk retrieval.\");\n\nexport const ragieRetrieve = action(\"RAGIE_RETRIEVE\", {\n slug: \"ragie-retrieve\",\n name: \"Retrieve Document Chunks\",\n description: \"Tool to retrieve relevant document chunks based on a query. Use when you need to search and retrieve document content that matches a specific query, with optional filtering and reranking capabilities.\",\n input: RagieRetrieveInput,\n output: RagieRetrieveOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iRAAiR,CAAC,CAAC,SAAS;CAC/U,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS;CAC1H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,CAAC,SAAS;CACvF,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,eAAeA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,2DAA2D,EAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,gBAAgBC,eAAAA,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve.cjs","names":["z","action"],"sources":["../../src/actions/retrieve.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 RagieRetrieveInput = z.object({\n query: z.string().describe(\"The query to search with when retrieving document chunks.\"),\n top_k: z.number().int().default(8).describe(\"The maximum number of chunks to return. Defaults to 8.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata search filter supporting operators: $eq (equal), $ne (not equal), $gt (greater than), $gte (greater than or equal), $lt (less than), $lte (less than or equal), $in (in array), $nin (not in array). Example: {\\\"department\\\": {\\\"$in\\\": [\\\"sales\\\", \\\"marketing\\\"]}}.\").optional(),\n rerank: z.boolean().default(false).describe(\"Reranks the chunks for semantic relevancy post cosine similarity.\").optional(),\n partition: z.string().describe(\"The partition to scope a retrieval to. If omitted, the retrieval will be scoped to the default partition.\").optional(),\n recency_bias: z.boolean().default(false).describe(\"Enables recency bias which will favor more recent documents vs older documents.\").optional(),\n max_chunks_per_document: z.number().int().describe(\"Maximum number of chunks to retrieve per document.\").optional(),\n}).describe(\"Request model for retrieving document chunks based on a query.\");\nconst RagieRetrieve_ScoredChunkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the chunk.\").nullable().optional(),\n text: z.string().describe(\"The chunk content/text.\").nullable().optional(),\n index: z.number().int().describe(\"Position/index of the chunk within the source document.\").nullable().optional(),\n links: z.record(z.string(), z.unknown()).describe(\"Navigation references.\").nullable().optional(),\n score: z.number().describe(\"Relevance score indicating how well the chunk matches the query.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Chunk-level metadata.\").nullable().optional(),\n document_id: z.string().describe(\"Identifier of the source document.\").nullable().optional(),\n document_name: z.string().describe(\"Name of the source document.\").nullable().optional(),\n document_metadata: z.record(z.string(), z.unknown()).describe(\"Document-level metadata.\").nullable().optional(),\n}).passthrough().describe(\"A document chunk with its relevance score.\");\nexport const RagieRetrieveOutput = z.object({\n scored_chunks: z.array(RagieRetrieve_ScoredChunkSchema).describe(\"Array of retrieved document chunks with relevance scores.\"),\n}).passthrough().describe(\"Response model for document chunk retrieval.\");\n\nexport const ragieRetrieve: AppAction<\n typeof RagieRetrieveInput,\n typeof RagieRetrieveOutput,\n typeof ragie.credential\n> = action(\"RAGIE_RETRIEVE\", {\n slug: \"ragie-retrieve\",\n name: \"Retrieve Document Chunks\",\n description: \"Tool to retrieve relevant document chunks based on a query. Use when you need to search and retrieve document content that matches a specific query, with optional filtering and reranking capabilities.\",\n input: RagieRetrieveInput,\n output: RagieRetrieveOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqBA,IAAAA,EAAE,OAAO;CACzC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,C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E,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,mBAAmBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAa,sBAAsBA,IAAAA,EAAE,OAAO,EAC1C,eAAeA,IAAAA,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,2DAA2D,EAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,gBAITC,eAAAA,OAAO,kBAAkB;CAC3B,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/retrieve.d.ts
@@ -23,15 +25,7 @@ declare const RagieRetrieveOutput: z.ZodObject<{
23
25
  document_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
24
26
  }, z.core.$loose>>;
25
27
  }, z.core.$loose>;
26
- declare const ragieRetrieve: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- query: string;
28
- top_k?: number | undefined;
29
- filter?: Record<string, unknown> | undefined;
30
- rerank?: boolean | undefined;
31
- partition?: string | undefined;
32
- recency_bias?: boolean | undefined;
33
- max_chunks_per_document?: number | undefined;
34
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ declare const ragieRetrieve: AppAction<typeof RagieRetrieveInput, typeof RagieRetrieveOutput, typeof ragie.credential>;
35
29
  //#endregion
36
30
  export { ragieRetrieve };
37
31
  //# sourceMappingURL=retrieve.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve.d.cts","names":[],"sources":["../../src/actions/retrieve.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;cAoBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAInB,aAAA,gCAAa,wBAAA;;;WAMxB,MAAA"}
1
+ {"version":3,"file":"retrieve.d.cts","names":[],"sources":["../../src/actions/retrieve.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;cAoBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAInB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,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/retrieve.d.ts
@@ -23,15 +25,7 @@ declare const RagieRetrieveOutput: z.ZodObject<{
23
25
  document_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
24
26
  }, z.core.$loose>>;
25
27
  }, z.core.$loose>;
26
- declare const ragieRetrieve: import("@keystrokehq/action").WorkflowActionDefinition<{
27
- query: string;
28
- top_k?: number | undefined;
29
- filter?: Record<string, unknown> | undefined;
30
- rerank?: boolean | undefined;
31
- partition?: string | undefined;
32
- recency_bias?: boolean | undefined;
33
- max_chunks_per_document?: number | undefined;
34
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
28
+ declare const ragieRetrieve: AppAction<typeof RagieRetrieveInput, typeof RagieRetrieveOutput, typeof ragie.credential>;
35
29
  //#endregion
36
30
  export { ragieRetrieve };
37
31
  //# sourceMappingURL=retrieve.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve.d.mts","names":[],"sources":["../../src/actions/retrieve.ts"],"mappings":";;;cAIa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;cAoBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAInB,aAAA,gCAAa,wBAAA;;;WAMxB,MAAA"}
1
+ {"version":3,"file":"retrieve.d.mts","names":[],"sources":["../../src/actions/retrieve.ts"],"mappings":";;;;;cAMa,kBAAA,EAAkB,CAAA,CAAA,SAAA;;;;;;;;;cAoBlB,mBAAA,EAAmB,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAInB,aAAA,EAAe,SAAA,QACnB,kBAAA,SACA,mBAAA,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
  //#region src/actions/retrieve.ts
@@ -1 +1 @@
1
- {"version":3,"file":"retrieve.mjs","names":[],"sources":["../../src/actions/retrieve.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieRetrieveInput = z.object({\n query: z.string().describe(\"The query to search with when retrieving document chunks.\"),\n top_k: z.number().int().default(8).describe(\"The maximum number of chunks to return. Defaults to 8.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata search filter supporting operators: $eq (equal), $ne (not equal), $gt (greater than), $gte (greater than or equal), $lt (less than), $lte (less than or equal), $in (in array), $nin (not in array). Example: {\\\"department\\\": {\\\"$in\\\": [\\\"sales\\\", \\\"marketing\\\"]}}.\").optional(),\n rerank: z.boolean().default(false).describe(\"Reranks the chunks for semantic relevancy post cosine similarity.\").optional(),\n partition: z.string().describe(\"The partition to scope a retrieval to. If omitted, the retrieval will be scoped to the default partition.\").optional(),\n recency_bias: z.boolean().default(false).describe(\"Enables recency bias which will favor more recent documents vs older documents.\").optional(),\n max_chunks_per_document: z.number().int().describe(\"Maximum number of chunks to retrieve per document.\").optional(),\n}).describe(\"Request model for retrieving document chunks based on a query.\");\nconst RagieRetrieve_ScoredChunkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the chunk.\").nullable().optional(),\n text: z.string().describe(\"The chunk content/text.\").nullable().optional(),\n index: z.number().int().describe(\"Position/index of the chunk within the source document.\").nullable().optional(),\n links: z.record(z.string(), z.unknown()).describe(\"Navigation references.\").nullable().optional(),\n score: z.number().describe(\"Relevance score indicating how well the chunk matches the query.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Chunk-level metadata.\").nullable().optional(),\n document_id: z.string().describe(\"Identifier of the source document.\").nullable().optional(),\n document_name: z.string().describe(\"Name of the source document.\").nullable().optional(),\n document_metadata: z.record(z.string(), z.unknown()).describe(\"Document-level metadata.\").nullable().optional(),\n}).passthrough().describe(\"A document chunk with its relevance score.\");\nexport const RagieRetrieveOutput = z.object({\n scored_chunks: z.array(RagieRetrieve_ScoredChunkSchema).describe(\"Array of retrieved document chunks with relevance scores.\"),\n}).passthrough().describe(\"Response model for document chunk retrieval.\");\n\nexport const ragieRetrieve = action(\"RAGIE_RETRIEVE\", {\n slug: \"ragie-retrieve\",\n name: \"Retrieve Document Chunks\",\n description: \"Tool to retrieve relevant document chunks based on a query. Use when you need to search and retrieve document content that matches a specific query, with optional filtering and reranking capabilities.\",\n input: RagieRetrieveInput,\n output: RagieRetrieveOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qBAAqB,EAAE,OAAO;CACzC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,EAAE,OAAO,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,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,mBAAmB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAKtE,MAAa,gBAAgB,OAAO,kBAAkB;CACpD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATiC,EAAE,OAAO,EAC1C,eAAe,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,2DAA2D,EAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"retrieve.mjs","names":[],"sources":["../../src/actions/retrieve.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 RagieRetrieveInput = z.object({\n query: z.string().describe(\"The query to search with when retrieving document chunks.\"),\n top_k: z.number().int().default(8).describe(\"The maximum number of chunks to return. Defaults to 8.\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata search filter supporting operators: $eq (equal), $ne (not equal), $gt (greater than), $gte (greater than or equal), $lt (less than), $lte (less than or equal), $in (in array), $nin (not in array). Example: {\\\"department\\\": {\\\"$in\\\": [\\\"sales\\\", \\\"marketing\\\"]}}.\").optional(),\n rerank: z.boolean().default(false).describe(\"Reranks the chunks for semantic relevancy post cosine similarity.\").optional(),\n partition: z.string().describe(\"The partition to scope a retrieval to. If omitted, the retrieval will be scoped to the default partition.\").optional(),\n recency_bias: z.boolean().default(false).describe(\"Enables recency bias which will favor more recent documents vs older documents.\").optional(),\n max_chunks_per_document: z.number().int().describe(\"Maximum number of chunks to retrieve per document.\").optional(),\n}).describe(\"Request model for retrieving document chunks based on a query.\");\nconst RagieRetrieve_ScoredChunkSchema = z.object({\n id: z.string().describe(\"Unique identifier for the chunk.\").nullable().optional(),\n text: z.string().describe(\"The chunk content/text.\").nullable().optional(),\n index: z.number().int().describe(\"Position/index of the chunk within the source document.\").nullable().optional(),\n links: z.record(z.string(), z.unknown()).describe(\"Navigation references.\").nullable().optional(),\n score: z.number().describe(\"Relevance score indicating how well the chunk matches the query.\").nullable().optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Chunk-level metadata.\").nullable().optional(),\n document_id: z.string().describe(\"Identifier of the source document.\").nullable().optional(),\n document_name: z.string().describe(\"Name of the source document.\").nullable().optional(),\n document_metadata: z.record(z.string(), z.unknown()).describe(\"Document-level metadata.\").nullable().optional(),\n}).passthrough().describe(\"A document chunk with its relevance score.\");\nexport const RagieRetrieveOutput = z.object({\n scored_chunks: z.array(RagieRetrieve_ScoredChunkSchema).describe(\"Array of retrieved document chunks with relevance scores.\"),\n}).passthrough().describe(\"Response model for document chunk retrieval.\");\n\nexport const ragieRetrieve: AppAction<\n typeof RagieRetrieveInput,\n typeof RagieRetrieveOutput,\n typeof ragie.credential\n> = action(\"RAGIE_RETRIEVE\", {\n slug: \"ragie-retrieve\",\n name: \"Retrieve Document Chunks\",\n description: \"Tool to retrieve relevant document chunks based on a query. Use when you need to search and retrieve document content that matches a specific query, with optional filtering and reranking capabilities.\",\n input: RagieRetrieveInput,\n output: RagieRetrieveOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,qBAAqB,EAAE,OAAO;CACzC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACtF,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC/G,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iRAAiR,CAAC,CAAC,SAAS;CAC/U,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAA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C,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAKtE,MAAa,gBAIT,OAAO,kBAAkB;CAC3B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbiC,EAAE,OAAO,EAC1C,eAAe,EAAE,MAAM,+BAA+B,CAAC,CAAC,SAAS,2DAA2D,EAC9H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAWhB;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/set-partition-limits.ts
@@ -1 +1 @@
1
- {"version":3,"file":"set-partition-limits.cjs","names":["z","action"],"sources":["../../src/actions/set-partition-limits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieSetPartitionLimitsInput = z.object({\n partition_id: z.string().describe(\"The identifier for the partition being modified.\"),\n media_hosted_limit_max: z.number().int().describe(\"Maximum media hosting limit in megabytes.\").optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Absolute maximum for hosted document pages.\").optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum media streaming limit in megabytes.\").optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum audio processing limit in minutes.\").optional(),\n pages_processed_limit_max: z.number().int().describe(\"Absolute maximum for processed document pages.\").optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum video processing limit in minutes.\").optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly media hosting limit in megabytes.\").optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly cap for newly added hosted pages.\").optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly media streaming limit in megabytes.\").optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly audio processing limit in minutes.\").optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly cap for processed document pages.\").optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly video processing limit in minutes.\").optional(),\n}).describe(\"Request model for setting partition limits.\");\nconst RagieSetPartitionLimits_PartitionStatsSchema = z.object({\n documents_count: z.number().int().describe(\"Number of documents in the partition.\").nullable().optional(),\n pages_hosted_count: z.number().int().describe(\"Number of pages hosted.\").nullable().optional(),\n pages_processed_count: z.number().int().describe(\"Number of pages processed.\").nullable().optional(),\n media_hosted_megabytes: z.number().describe(\"Media hosting usage in megabytes.\").nullable().optional(),\n audio_processed_minutes: z.number().describe(\"Audio processing time in minutes.\").nullable().optional(),\n video_processed_minutes: z.number().describe(\"Video processing time in minutes.\").nullable().optional(),\n media_streamed_megabytes: z.number().describe(\"Media streaming usage in megabytes.\").nullable().optional(),\n}).passthrough().describe(\"Model for partition usage statistics.\");\nconst RagieSetPartitionLimits_PartitionLimitsSchema = z.object({\n media_hosted_limit_max: z.number().int().describe(\"Maximum media hosting limit in megabytes.\").nullable().optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Absolute maximum for hosted document pages.\").nullable().optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum media streaming limit in megabytes.\").nullable().optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum audio processing limit in minutes.\").nullable().optional(),\n pages_processed_limit_max: z.number().int().describe(\"Absolute maximum for processed document pages.\").nullable().optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum video processing limit in minutes.\").nullable().optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly media hosting limit in megabytes.\").nullable().optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly cap for newly added hosted pages.\").nullable().optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly media streaming limit in megabytes.\").nullable().optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly audio processing limit in minutes.\").nullable().optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly cap for processed document pages.\").nullable().optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly video processing limit in minutes.\").nullable().optional(),\n}).passthrough().describe(\"Model for partition limit values.\");\nexport const RagieSetPartitionLimitsOutput = z.object({\n name: z.string().describe(\"Partition identifier.\").nullable(),\n stats: RagieSetPartitionLimits_PartitionStatsSchema.nullable(),\n limits: RagieSetPartitionLimits_PartitionLimitsSchema.nullable(),\n is_default: z.boolean().describe(\"Whether this is the default partition.\").nullable(),\n description: z.string().describe(\"Partition description.\").nullable().optional(),\n context_aware: z.boolean().describe(\"Context-awareness setting.\").nullable(),\n metadata_schema: z.record(z.string(), z.unknown()).describe(\"Schema definition for metadata.\").nullable().optional(),\n limit_exceeded_at: z.string().describe(\"Timestamp when limits were exceeded, if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Response model for partition detail after setting limits.\");\n\nexport const ragieSetPartitionLimits = action(\"RAGIE_SET_PARTITION_LIMITS\", {\n slug: \"ragie-set-partition-limits\",\n name: \"Set Partition Limits\",\n description: \"Tool to set usage limits on partition pages and media. Use when you need to configure monthly or maximum limits for pages processed/hosted, video/audio processing, or media streaming/hosting for a specific partition.\",\n input: RagieSetPartitionLimitsInput,\n output: RagieSetPartitionLimitsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACpF,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxG,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC1G,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC5G,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAA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AQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"set-partition-limits.cjs","names":["z","action"],"sources":["../../src/actions/set-partition-limits.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 RagieSetPartitionLimitsInput = z.object({\n partition_id: z.string().describe(\"The identifier for the partition being modified.\"),\n media_hosted_limit_max: z.number().int().describe(\"Maximum media hosting limit in megabytes.\").optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Absolute maximum for hosted document pages.\").optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum media streaming limit in megabytes.\").optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum audio processing limit in minutes.\").optional(),\n pages_processed_limit_max: z.number().int().describe(\"Absolute maximum for processed document pages.\").optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum video processing limit in minutes.\").optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly media hosting limit in megabytes.\").optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly cap for newly added hosted pages.\").optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly media streaming limit in megabytes.\").optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly audio processing limit in minutes.\").optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly cap for processed document pages.\").optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly video processing limit in minutes.\").optional(),\n}).describe(\"Request model for setting partition limits.\");\nconst RagieSetPartitionLimits_PartitionStatsSchema = z.object({\n documents_count: z.number().int().describe(\"Number of documents in the partition.\").nullable().optional(),\n pages_hosted_count: z.number().int().describe(\"Number of pages hosted.\").nullable().optional(),\n pages_processed_count: z.number().int().describe(\"Number of pages processed.\").nullable().optional(),\n media_hosted_megabytes: z.number().describe(\"Media hosting usage in megabytes.\").nullable().optional(),\n audio_processed_minutes: z.number().describe(\"Audio processing time in minutes.\").nullable().optional(),\n video_processed_minutes: z.number().describe(\"Video processing time in minutes.\").nullable().optional(),\n media_streamed_megabytes: z.number().describe(\"Media streaming usage in megabytes.\").nullable().optional(),\n}).passthrough().describe(\"Model for partition usage statistics.\");\nconst RagieSetPartitionLimits_PartitionLimitsSchema = z.object({\n media_hosted_limit_max: z.number().int().describe(\"Maximum media hosting limit in megabytes.\").nullable().optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Absolute maximum for hosted document pages.\").nullable().optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum media streaming limit in megabytes.\").nullable().optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum audio processing limit in minutes.\").nullable().optional(),\n pages_processed_limit_max: z.number().int().describe(\"Absolute maximum for processed document pages.\").nullable().optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum video processing limit in minutes.\").nullable().optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly media hosting limit in megabytes.\").nullable().optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly cap for newly added hosted pages.\").nullable().optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly media streaming limit in megabytes.\").nullable().optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly audio processing limit in minutes.\").nullable().optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly cap for processed document pages.\").nullable().optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly video processing limit in minutes.\").nullable().optional(),\n}).passthrough().describe(\"Model for partition limit values.\");\nexport const RagieSetPartitionLimitsOutput = z.object({\n name: z.string().describe(\"Partition identifier.\").nullable(),\n stats: RagieSetPartitionLimits_PartitionStatsSchema.nullable(),\n limits: RagieSetPartitionLimits_PartitionLimitsSchema.nullable(),\n is_default: z.boolean().describe(\"Whether this is the default partition.\").nullable(),\n description: z.string().describe(\"Partition description.\").nullable().optional(),\n context_aware: z.boolean().describe(\"Context-awareness setting.\").nullable(),\n metadata_schema: z.record(z.string(), z.unknown()).describe(\"Schema definition for metadata.\").nullable().optional(),\n limit_exceeded_at: z.string().describe(\"Timestamp when limits were exceeded, if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Response model for partition detail after setting limits.\");\n\nexport const ragieSetPartitionLimits: AppAction<\n typeof RagieSetPartitionLimitsInput,\n typeof RagieSetPartitionLimitsOutput,\n typeof ragie.credential\n> = action(\"RAGIE_SET_PARTITION_LIMITS\", {\n slug: \"ragie-set-partition-limits\",\n name: \"Set Partition Limits\",\n description: \"Tool to set usage limits on partition pages and media. Use when you need to configure monthly or maximum limits for pages processed/hosted, video/audio processing, or media streaming/hosting for a specific partition.\",\n input: RagieSetPartitionLimitsInput,\n output: RagieSetPartitionLimitsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACpF,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxG,wBAAwBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC1G,0BAA0BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC5G,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,S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,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAA2D;AAErF,MAAa,0BAITC,eAAAA,OAAO,8BAA8B;CACvC,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/set-partition-limits.d.ts
@@ -47,21 +49,7 @@ declare const RagieSetPartitionLimitsOutput: z.ZodObject<{
47
49
  metadata_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
48
50
  limit_exceeded_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
51
  }, z.core.$loose>;
50
- declare const ragieSetPartitionLimits: import("@keystrokehq/action").WorkflowActionDefinition<{
51
- partition_id: string;
52
- media_hosted_limit_max?: number | undefined;
53
- pages_hosted_limit_max?: number | undefined;
54
- media_streamed_limit_max?: number | undefined;
55
- audio_processed_limit_max?: number | undefined;
56
- pages_processed_limit_max?: number | undefined;
57
- video_processed_limit_max?: number | undefined;
58
- media_hosted_limit_monthly?: number | undefined;
59
- pages_hosted_limit_monthly?: number | undefined;
60
- media_streamed_limit_monthly?: number | undefined;
61
- audio_processed_limit_monthly?: number | undefined;
62
- pages_processed_limit_monthly?: number | undefined;
63
- video_processed_limit_monthly?: number | undefined;
64
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
52
+ declare const ragieSetPartitionLimits: AppAction<typeof RagieSetPartitionLimitsInput, typeof RagieSetPartitionLimitsOutput, typeof ragie.credential>;
65
53
  //#endregion
66
54
  export { ragieSetPartitionLimits };
67
55
  //# sourceMappingURL=set-partition-limits.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"set-partition-limits.d.cts","names":[],"sources":["../../src/actions/set-partition-limits.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAsC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"set-partition-limits.d.cts","names":[],"sources":["../../src/actions/set-partition-limits.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAsC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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/set-partition-limits.d.ts
@@ -47,21 +49,7 @@ declare const RagieSetPartitionLimitsOutput: z.ZodObject<{
47
49
  metadata_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
48
50
  limit_exceeded_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
49
51
  }, z.core.$loose>;
50
- declare const ragieSetPartitionLimits: import("@keystrokehq/action").WorkflowActionDefinition<{
51
- partition_id: string;
52
- media_hosted_limit_max?: number | undefined;
53
- pages_hosted_limit_max?: number | undefined;
54
- media_streamed_limit_max?: number | undefined;
55
- audio_processed_limit_max?: number | undefined;
56
- pages_processed_limit_max?: number | undefined;
57
- video_processed_limit_max?: number | undefined;
58
- media_hosted_limit_monthly?: number | undefined;
59
- pages_hosted_limit_monthly?: number | undefined;
60
- media_streamed_limit_monthly?: number | undefined;
61
- audio_processed_limit_monthly?: number | undefined;
62
- pages_processed_limit_monthly?: number | undefined;
63
- video_processed_limit_monthly?: number | undefined;
64
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
52
+ declare const ragieSetPartitionLimits: AppAction<typeof RagieSetPartitionLimitsInput, typeof RagieSetPartitionLimitsOutput, typeof ragie.credential>;
65
53
  //#endregion
66
54
  export { ragieSetPartitionLimits };
67
55
  //# sourceMappingURL=set-partition-limits.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"set-partition-limits.d.mts","names":[],"sources":["../../src/actions/set-partition-limits.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAsC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW7B,uBAAA,gCAAuB,wBAAA"}
1
+ {"version":3,"file":"set-partition-limits.d.mts","names":[],"sources":["../../src/actions/set-partition-limits.ts"],"mappings":";;;;;cAMa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAsC5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAW7B,uBAAA,EAAyB,SAAA,QAC7B,4BAAA,SACA,6BAAA,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
  //#region src/actions/set-partition-limits.ts
@@ -1 +1 @@
1
- {"version":3,"file":"set-partition-limits.mjs","names":[],"sources":["../../src/actions/set-partition-limits.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieSetPartitionLimitsInput = z.object({\n partition_id: z.string().describe(\"The identifier for the partition being modified.\"),\n media_hosted_limit_max: z.number().int().describe(\"Maximum media hosting limit in megabytes.\").optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Absolute maximum for hosted document pages.\").optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum media streaming limit in megabytes.\").optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum audio processing limit in minutes.\").optional(),\n pages_processed_limit_max: z.number().int().describe(\"Absolute maximum for processed document pages.\").optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum video processing limit in minutes.\").optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly media hosting limit in megabytes.\").optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly cap for newly added hosted pages.\").optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly media streaming limit in megabytes.\").optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly audio processing limit in minutes.\").optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly cap for processed document pages.\").optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly video processing limit in minutes.\").optional(),\n}).describe(\"Request model for setting partition limits.\");\nconst RagieSetPartitionLimits_PartitionStatsSchema = z.object({\n documents_count: z.number().int().describe(\"Number of documents in the partition.\").nullable().optional(),\n pages_hosted_count: z.number().int().describe(\"Number of pages hosted.\").nullable().optional(),\n pages_processed_count: z.number().int().describe(\"Number of pages processed.\").nullable().optional(),\n media_hosted_megabytes: z.number().describe(\"Media hosting usage in megabytes.\").nullable().optional(),\n audio_processed_minutes: z.number().describe(\"Audio processing time in minutes.\").nullable().optional(),\n video_processed_minutes: z.number().describe(\"Video processing time in minutes.\").nullable().optional(),\n media_streamed_megabytes: z.number().describe(\"Media streaming usage in megabytes.\").nullable().optional(),\n}).passthrough().describe(\"Model for partition usage statistics.\");\nconst RagieSetPartitionLimits_PartitionLimitsSchema = z.object({\n media_hosted_limit_max: z.number().int().describe(\"Maximum media hosting limit in megabytes.\").nullable().optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Absolute maximum for hosted document pages.\").nullable().optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum media streaming limit in megabytes.\").nullable().optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum audio processing limit in minutes.\").nullable().optional(),\n pages_processed_limit_max: z.number().int().describe(\"Absolute maximum for processed document pages.\").nullable().optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum video processing limit in minutes.\").nullable().optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly media hosting limit in megabytes.\").nullable().optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly cap for newly added hosted pages.\").nullable().optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly media streaming limit in megabytes.\").nullable().optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly audio processing limit in minutes.\").nullable().optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly cap for processed document pages.\").nullable().optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly video processing limit in minutes.\").nullable().optional(),\n}).passthrough().describe(\"Model for partition limit values.\");\nexport const RagieSetPartitionLimitsOutput = z.object({\n name: z.string().describe(\"Partition identifier.\").nullable(),\n stats: RagieSetPartitionLimits_PartitionStatsSchema.nullable(),\n limits: RagieSetPartitionLimits_PartitionLimitsSchema.nullable(),\n is_default: z.boolean().describe(\"Whether this is the default partition.\").nullable(),\n description: z.string().describe(\"Partition description.\").nullable().optional(),\n context_aware: z.boolean().describe(\"Context-awareness setting.\").nullable(),\n metadata_schema: z.record(z.string(), z.unknown()).describe(\"Schema definition for metadata.\").nullable().optional(),\n limit_exceeded_at: z.string().describe(\"Timestamp when limits were exceeded, if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Response model for partition detail after setting limits.\");\n\nexport const ragieSetPartitionLimits = action(\"RAGIE_SET_PARTITION_LIMITS\", {\n slug: \"ragie-set-partition-limits\",\n name: \"Set Partition Limits\",\n description: \"Tool to set usage limits on partition pages and media. Use when you need to configure monthly or maximum limits for pages processed/hosted, video/audio processing, or media streaming/hosting for a specific partition.\",\n input: RagieSetPartitionLimitsInput,\n output: RagieSetPartitionLimitsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACpF,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxG,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC1G,0BAA0B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC5G,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5G,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAChH,2BAA2B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5G,4BAA4B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC5G,4BAA4B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC5G,8BAA8B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAChH,+BAA+B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAChH,+BAA+B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAC/G,+BAA+B,EAAE,OAAO,CAAC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,8CAA8C,SAAS;EAC/D,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,eAAe,EAAE,QAAQ,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EAC3E,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,mBAAmB,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"set-partition-limits.mjs","names":[],"sources":["../../src/actions/set-partition-limits.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 RagieSetPartitionLimitsInput = z.object({\n partition_id: z.string().describe(\"The identifier for the partition being modified.\"),\n media_hosted_limit_max: z.number().int().describe(\"Maximum media hosting limit in megabytes.\").optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Absolute maximum for hosted document pages.\").optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum media streaming limit in megabytes.\").optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum audio processing limit in minutes.\").optional(),\n pages_processed_limit_max: z.number().int().describe(\"Absolute maximum for processed document pages.\").optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum video processing limit in minutes.\").optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly media hosting limit in megabytes.\").optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly cap for newly added hosted pages.\").optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly media streaming limit in megabytes.\").optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly audio processing limit in minutes.\").optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly cap for processed document pages.\").optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly video processing limit in minutes.\").optional(),\n}).describe(\"Request model for setting partition limits.\");\nconst RagieSetPartitionLimits_PartitionStatsSchema = z.object({\n documents_count: z.number().int().describe(\"Number of documents in the partition.\").nullable().optional(),\n pages_hosted_count: z.number().int().describe(\"Number of pages hosted.\").nullable().optional(),\n pages_processed_count: z.number().int().describe(\"Number of pages processed.\").nullable().optional(),\n media_hosted_megabytes: z.number().describe(\"Media hosting usage in megabytes.\").nullable().optional(),\n audio_processed_minutes: z.number().describe(\"Audio processing time in minutes.\").nullable().optional(),\n video_processed_minutes: z.number().describe(\"Video processing time in minutes.\").nullable().optional(),\n media_streamed_megabytes: z.number().describe(\"Media streaming usage in megabytes.\").nullable().optional(),\n}).passthrough().describe(\"Model for partition usage statistics.\");\nconst RagieSetPartitionLimits_PartitionLimitsSchema = z.object({\n media_hosted_limit_max: z.number().int().describe(\"Maximum media hosting limit in megabytes.\").nullable().optional(),\n pages_hosted_limit_max: z.number().int().describe(\"Absolute maximum for hosted document pages.\").nullable().optional(),\n media_streamed_limit_max: z.number().int().describe(\"Maximum media streaming limit in megabytes.\").nullable().optional(),\n audio_processed_limit_max: z.number().int().describe(\"Maximum audio processing limit in minutes.\").nullable().optional(),\n pages_processed_limit_max: z.number().int().describe(\"Absolute maximum for processed document pages.\").nullable().optional(),\n video_processed_limit_max: z.number().int().describe(\"Maximum video processing limit in minutes.\").nullable().optional(),\n media_hosted_limit_monthly: z.number().int().describe(\"Monthly media hosting limit in megabytes.\").nullable().optional(),\n pages_hosted_limit_monthly: z.number().int().describe(\"Monthly cap for newly added hosted pages.\").nullable().optional(),\n media_streamed_limit_monthly: z.number().int().describe(\"Monthly media streaming limit in megabytes.\").nullable().optional(),\n audio_processed_limit_monthly: z.number().int().describe(\"Monthly audio processing limit in minutes.\").nullable().optional(),\n pages_processed_limit_monthly: z.number().int().describe(\"Monthly cap for processed document pages.\").nullable().optional(),\n video_processed_limit_monthly: z.number().int().describe(\"Monthly video processing limit in minutes.\").nullable().optional(),\n}).passthrough().describe(\"Model for partition limit values.\");\nexport const RagieSetPartitionLimitsOutput = z.object({\n name: z.string().describe(\"Partition identifier.\").nullable(),\n stats: RagieSetPartitionLimits_PartitionStatsSchema.nullable(),\n limits: RagieSetPartitionLimits_PartitionLimitsSchema.nullable(),\n is_default: z.boolean().describe(\"Whether this is the default partition.\").nullable(),\n description: z.string().describe(\"Partition description.\").nullable().optional(),\n context_aware: z.boolean().describe(\"Context-awareness setting.\").nullable(),\n metadata_schema: z.record(z.string(), z.unknown()).describe(\"Schema definition for metadata.\").nullable().optional(),\n limit_exceeded_at: z.string().describe(\"Timestamp when limits were exceeded, if applicable.\").nullable().optional(),\n}).passthrough().describe(\"Response model for partition detail after setting limits.\");\n\nexport const ragieSetPartitionLimits: AppAction<\n typeof RagieSetPartitionLimitsInput,\n typeof RagieSetPartitionLimitsOutput,\n typeof ragie.credential\n> = action(\"RAGIE_SET_PARTITION_LIMITS\", {\n slug: \"ragie-set-partition-limits\",\n name: \"Set Partition Limits\",\n description: \"Tool to set usage limits on partition pages and media. Use when you need to configure monthly or maximum limits for pages processed/hosted, video/audio processing, or media streaming/hosting for a specific partition.\",\n input: RagieSetPartitionLimitsInput,\n output: RagieSetPartitionLimitsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD;CACpF,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACxG,wBAAwB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAC1G,0BAA0B,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SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2DAWhB;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/update-document-from-url.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-document-from-url.cjs","names":["z","action"],"sources":["../../src/actions/update-document-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieUpdateDocumentFromUrlInput = 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.enum([\"hi_res\", \"fast\"]), z.object({\n backend: z.string().nullable().optional(),\n}).passthrough().describe(\"Media configuration object for video/audio processing\")]).optional(),\n partition: z.string().describe(\"Scopes the request to a specific partition\").optional(),\n document_id: z.string().describe(\"The unique identifier (UUID) of the document to update\"),\n}).describe(\"Request model for updating a document from a publicly accessible URL.\");\nexport const RagieUpdateDocumentFromUrlOutput = z.object({\n status: z.string().describe(\"Operation status indicator\").nullable(),\n}).passthrough().describe(\"Response model for document URL update operation.\");\n\nexport const ragieUpdateDocumentFromUrl = action(\"RAGIE_UPDATE_DOCUMENT_FROM_URL\", {\n slug: \"ragie-update-document-from-url\",\n name: \"Update Document From URL\",\n description: \"Tool to update an existing document by fetching content from a publicly accessible URL. Use when you need to refresh or replace a document's content with data from a web URL. The document goes through processing steps before it is ready for retrieval.\",\n input: RagieUpdateDocumentFromUrlInput,\n output: RagieUpdateDocumentFromUrlOutput,\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,KAAK,CAAC,UAAU,MAAM,CAAC,GAAGA,IAAAA,EAAE,OAAO,EACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,CAAC,CAAC,SAAS;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;AAC3F,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-document-from-url.cjs","names":["z","action"],"sources":["../../src/actions/update-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 RagieUpdateDocumentFromUrlInput = 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.enum([\"hi_res\", \"fast\"]), z.object({\n backend: z.string().nullable().optional(),\n}).passthrough().describe(\"Media configuration object for video/audio processing\")]).optional(),\n partition: z.string().describe(\"Scopes the request to a specific partition\").optional(),\n document_id: z.string().describe(\"The unique identifier (UUID) of the document to update\"),\n}).describe(\"Request model for updating a document from a publicly accessible URL.\");\nexport const RagieUpdateDocumentFromUrlOutput = z.object({\n status: z.string().describe(\"Operation status indicator\").nullable(),\n}).passthrough().describe(\"Response model for document URL update operation.\");\n\nexport const ragieUpdateDocumentFromUrl: AppAction<\n typeof RagieUpdateDocumentFromUrlInput,\n typeof RagieUpdateDocumentFromUrlOutput,\n typeof ragie.credential\n> = action(\"RAGIE_UPDATE_DOCUMENT_FROM_URL\", {\n slug: \"ragie-update-document-from-url\",\n name: \"Update Document From URL\",\n description: \"Tool to update an existing document by fetching content from a publicly accessible URL. Use when you need to refresh or replace a document's content with data from a web URL. The document goes through processing steps before it is ready for retrieval.\",\n input: RagieUpdateDocumentFromUrlInput,\n output: RagieUpdateDocumentFromUrlOutput,\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,KAAK,CAAC,UAAU,MAAM,CAAC,GAAGA,IAAAA,EAAE,OAAO,EACpD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,CAAC,CAAC,SAAS;CAC5F,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;AAC3F,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,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/update-document-from-url.d.ts
@@ -15,15 +17,7 @@ declare const RagieUpdateDocumentFromUrlInput: z.ZodObject<{
15
17
  declare const RagieUpdateDocumentFromUrlOutput: z.ZodObject<{
16
18
  status: z.ZodNullable<z.ZodString>;
17
19
  }, z.core.$loose>;
18
- declare const ragieUpdateDocumentFromUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- url: string;
20
- document_id: string;
21
- mode?: "hi_res" | "fast" | {
22
- [x: string]: unknown;
23
- backend?: string | null | undefined;
24
- } | undefined;
25
- partition?: string | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ declare const ragieUpdateDocumentFromUrl: AppAction<typeof RagieUpdateDocumentFromUrlInput, typeof RagieUpdateDocumentFromUrlOutput, typeof ragie.credential>;
27
21
  //#endregion
28
22
  export { ragieUpdateDocumentFromUrl };
29
23
  //# sourceMappingURL=update-document-from-url.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-document-from-url.d.cts","names":[],"sources":["../../src/actions/update-document-from-url.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"update-document-from-url.d.cts","names":[],"sources":["../../src/actions/update-document-from-url.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,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/update-document-from-url.d.ts
@@ -15,15 +17,7 @@ declare const RagieUpdateDocumentFromUrlInput: z.ZodObject<{
15
17
  declare const RagieUpdateDocumentFromUrlOutput: z.ZodObject<{
16
18
  status: z.ZodNullable<z.ZodString>;
17
19
  }, z.core.$loose>;
18
- declare const ragieUpdateDocumentFromUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- url: string;
20
- document_id: string;
21
- mode?: "hi_res" | "fast" | {
22
- [x: string]: unknown;
23
- backend?: string | null | undefined;
24
- } | undefined;
25
- partition?: string | undefined;
26
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ declare const ragieUpdateDocumentFromUrl: AppAction<typeof RagieUpdateDocumentFromUrlInput, typeof RagieUpdateDocumentFromUrlOutput, typeof ragie.credential>;
27
21
  //#endregion
28
22
  export { ragieUpdateDocumentFromUrl };
29
23
  //# sourceMappingURL=update-document-from-url.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-document-from-url.d.mts","names":[],"sources":["../../src/actions/update-document-from-url.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"update-document-from-url.d.mts","names":[],"sources":["../../src/actions/update-document-from-url.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;cAQ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,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 ragieUpdateDocumentFromUrl = action("RAGIE_UPDATE_DOCUMENT_FROM_URL", {
@@ -1 +1 @@
1
- {"version":3,"file":"update-document-from-url.mjs","names":[],"sources":["../../src/actions/update-document-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieUpdateDocumentFromUrlInput = 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.enum([\"hi_res\", \"fast\"]), z.object({\n backend: z.string().nullable().optional(),\n}).passthrough().describe(\"Media configuration object for video/audio processing\")]).optional(),\n partition: z.string().describe(\"Scopes the request to a specific partition\").optional(),\n document_id: z.string().describe(\"The unique identifier (UUID) of the document to update\"),\n}).describe(\"Request model for updating a document from a publicly accessible URL.\");\nexport const RagieUpdateDocumentFromUrlOutput = z.object({\n status: z.string().describe(\"Operation status indicator\").nullable(),\n}).passthrough().describe(\"Response model for document URL update operation.\");\n\nexport const ragieUpdateDocumentFromUrl = action(\"RAGIE_UPDATE_DOCUMENT_FROM_URL\", {\n slug: \"ragie-update-document-from-url\",\n name: \"Update Document From URL\",\n description: \"Tool to update an existing document by fetching content from a publicly accessible URL. Use when you need to refresh or replace a document's content with data from a web URL. The document goes through processing steps before it is ready for retrieval.\",\n input: RagieUpdateDocumentFromUrlInput,\n output: RagieUpdateDocumentFromUrlOutput,\n});\n"],"mappings":";;AAgBA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,MAAM,CAAC,GAAG,EAAE,OAAO,EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,CAAC,CAAC,SAAS;EAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAC3F,CAAC,CAAC,CAAC,SAAS,uEASH;CACP,QAT8C,EAAE,OAAO,EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-document-from-url.mjs","names":[],"sources":["../../src/actions/update-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 RagieUpdateDocumentFromUrlInput = 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.enum([\"hi_res\", \"fast\"]), z.object({\n backend: z.string().nullable().optional(),\n}).passthrough().describe(\"Media configuration object for video/audio processing\")]).optional(),\n partition: z.string().describe(\"Scopes the request to a specific partition\").optional(),\n document_id: z.string().describe(\"The unique identifier (UUID) of the document to update\"),\n}).describe(\"Request model for updating a document from a publicly accessible URL.\");\nexport const RagieUpdateDocumentFromUrlOutput = z.object({\n status: z.string().describe(\"Operation status indicator\").nullable(),\n}).passthrough().describe(\"Response model for document URL update operation.\");\n\nexport const ragieUpdateDocumentFromUrl: AppAction<\n typeof RagieUpdateDocumentFromUrlInput,\n typeof RagieUpdateDocumentFromUrlOutput,\n typeof ragie.credential\n> = action(\"RAGIE_UPDATE_DOCUMENT_FROM_URL\", {\n slug: \"ragie-update-document-from-url\",\n name: \"Update Document From URL\",\n description: \"Tool to update an existing document by fetching content from a publicly accessible URL. Use when you need to refresh or replace a document's content with data from a web URL. The document goes through processing steps before it is ready for retrieval.\",\n input: RagieUpdateDocumentFromUrlInput,\n output: RagieUpdateDocumentFromUrlOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,6BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,CAAC,UAAU,MAAM,CAAC,GAAG,EAAE,OAAO,EACpD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1C,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,CAAC,CAAC,SAAS;EAC5F,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAC3F,CAAC,CAAC,CAAC,SAAS,uEAaH;CACP,QAb8C,EAAE,OAAO,EACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EACrE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;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/update-document-raw.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-document-raw.cjs","names":["z","action"],"sources":["../../src/actions/update-document-raw.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieUpdateDocumentRawInput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown())]),\n document_id: z.string().describe(\"UUID of the document to update\"),\n}).describe(\"Request model for updating a document's raw content.\");\nexport const RagieUpdateDocumentRawOutput = z.object({\n status: z.string().describe(\"Status of the update operation\").nullable(),\n}).passthrough().describe(\"Response model for document raw update operation.\");\n\nexport const ragieUpdateDocumentRaw = action(\"RAGIE_UPDATE_DOCUMENT_RAW\", {\n slug: \"ragie-update-document-raw\",\n name: \"Update Document Raw\",\n description: \"Tool to update a document's content from raw text or JSON data. Use when modifying existing document content. The document undergoes processing and becomes available for retrieval once it reaches the ready state.\",\n input: RagieUpdateDocumentRawInput,\n output: RagieUpdateDocumentRawOutput,\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,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;AACnE,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-document-raw.cjs","names":["z","action"],"sources":["../../src/actions/update-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 RagieUpdateDocumentRawInput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown())]),\n document_id: z.string().describe(\"UUID of the document to update\"),\n}).describe(\"Request model for updating a document's raw content.\");\nexport const RagieUpdateDocumentRawOutput = z.object({\n status: z.string().describe(\"Status of the update operation\").nullable(),\n}).passthrough().describe(\"Response model for document raw update operation.\");\n\nexport const ragieUpdateDocumentRaw: AppAction<\n typeof RagieUpdateDocumentRawInput,\n typeof RagieUpdateDocumentRawOutput,\n typeof ragie.credential\n> = action(\"RAGIE_UPDATE_DOCUMENT_RAW\", {\n slug: \"ragie-update-document-raw\",\n name: \"Update Document Raw\",\n description: \"Tool to update a document's content from raw text or JSON data. Use when modifying existing document content. The document undergoes processing and becomes available for retrieval once it reaches the ready state.\",\n input: RagieUpdateDocumentRawInput,\n output: RagieUpdateDocumentRawOutput,\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,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;AACnE,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO,EACnD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAE7E,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/update-document-raw.d.ts
@@ -8,10 +10,7 @@ declare const RagieUpdateDocumentRawInput: z.ZodObject<{
8
10
  declare const RagieUpdateDocumentRawOutput: z.ZodObject<{
9
11
  status: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>;
11
- declare const ragieUpdateDocumentRaw: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- data: string | Record<string, unknown>;
13
- document_id: string;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const ragieUpdateDocumentRaw: AppAction<typeof RagieUpdateDocumentRawInput, typeof RagieUpdateDocumentRawOutput, typeof ragie.credential>;
15
14
  //#endregion
16
15
  export { ragieUpdateDocumentRaw };
17
16
  //# sourceMappingURL=update-document-raw.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-document-raw.d.cts","names":[],"sources":["../../src/actions/update-document-raw.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA;iBAMjC,MAAA"}
1
+ {"version":3,"file":"update-document-raw.d.cts","names":[],"sources":["../../src/actions/update-document-raw.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,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/update-document-raw.d.ts
@@ -8,10 +10,7 @@ declare const RagieUpdateDocumentRawInput: z.ZodObject<{
8
10
  declare const RagieUpdateDocumentRawOutput: z.ZodObject<{
9
11
  status: z.ZodNullable<z.ZodString>;
10
12
  }, z.core.$loose>;
11
- declare const ragieUpdateDocumentRaw: import("@keystrokehq/action").WorkflowActionDefinition<{
12
- data: string | Record<string, unknown>;
13
- document_id: string;
14
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
13
+ declare const ragieUpdateDocumentRaw: AppAction<typeof RagieUpdateDocumentRawInput, typeof RagieUpdateDocumentRawOutput, typeof ragie.credential>;
15
14
  //#endregion
16
15
  export { ragieUpdateDocumentRaw };
17
16
  //# sourceMappingURL=update-document-raw.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-document-raw.d.mts","names":[],"sources":["../../src/actions/update-document-raw.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,sBAAA,gCAAsB,wBAAA;iBAMjC,MAAA"}
1
+ {"version":3,"file":"update-document-raw.d.mts","names":[],"sources":["../../src/actions/update-document-raw.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;cAI3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAI5B,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 ragieUpdateDocumentRaw = action("RAGIE_UPDATE_DOCUMENT_RAW", {
@@ -1 +1 @@
1
- {"version":3,"file":"update-document-raw.mjs","names":[],"sources":["../../src/actions/update-document-raw.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieUpdateDocumentRawInput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown())]),\n document_id: z.string().describe(\"UUID of the document to update\"),\n}).describe(\"Request model for updating a document's raw content.\");\nexport const RagieUpdateDocumentRawOutput = z.object({\n status: z.string().describe(\"Status of the update operation\").nullable(),\n}).passthrough().describe(\"Response model for document raw update operation.\");\n\nexport const ragieUpdateDocumentRaw = action(\"RAGIE_UPDATE_DOCUMENT_RAW\", {\n slug: \"ragie-update-document-raw\",\n name: \"Update Document Raw\",\n description: \"Tool to update a document's content from raw text or JSON data. Use when modifying existing document content. The document undergoes processing and becomes available for retrieval once it reaches the ready state.\",\n input: RagieUpdateDocumentRawInput,\n output: RagieUpdateDocumentRawOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;EAC7D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACnE,CAAC,CAAC,CAAC,SAAS,sDASH;CACP,QAT0C,EAAE,OAAO,EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"update-document-raw.mjs","names":[],"sources":["../../src/actions/update-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 RagieUpdateDocumentRawInput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown())]),\n document_id: z.string().describe(\"UUID of the document to update\"),\n}).describe(\"Request model for updating a document's raw content.\");\nexport const RagieUpdateDocumentRawOutput = z.object({\n status: z.string().describe(\"Status of the update operation\").nullable(),\n}).passthrough().describe(\"Response model for document raw update operation.\");\n\nexport const ragieUpdateDocumentRaw: AppAction<\n typeof RagieUpdateDocumentRawInput,\n typeof RagieUpdateDocumentRawOutput,\n typeof ragie.credential\n> = action(\"RAGIE_UPDATE_DOCUMENT_RAW\", {\n slug: \"ragie-update-document-raw\",\n name: \"Update Document Raw\",\n description: \"Tool to update a document's content from raw text or JSON data. Use when modifying existing document content. The document undergoes processing and becomes available for retrieval once it reaches the ready state.\",\n input: RagieUpdateDocumentRawInput,\n output: RagieUpdateDocumentRawOutput,\n});\n"],"mappings":";;;AAcA,MAAa,yBAIT,OAAO,6BAA6B;CACtC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhByC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;EAC7D,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACnE,CAAC,CAAC,CAAC,SAAS,sDAaH;CACP,QAb0C,EAAE,OAAO,EACnD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,EACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAWhB;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/update-instruction.ts
@@ -1 +1 @@
1
- {"version":3,"file":"update-instruction.cjs","names":["z","action"],"sources":["../../src/actions/update-instruction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieUpdateInstructionInput = z.object({\n active: z.boolean().describe(\"Whether the instruction is active. Active instructions are applied to documents when they're created or when their file is updated\"),\n instruction_id: z.string().describe(\"The UUID of the instruction to update\"),\n}).describe(\"Request model for updating an instruction's active status.\");\nconst RagieUpdateInstruction_EntitySchemaSchema = z.record(z.string(), z.unknown()).describe(\"Entity schema object for the instruction.\");\nexport const RagieUpdateInstructionOutput = z.object({\n id: z.string().describe(\"The unique identifier of the instruction\").nullable(),\n name: z.string().describe(\"Name of the instruction\").nullable(),\n scope: z.string().describe(\"Scope of the instruction - either 'document' or 'chunk'\").nullable(),\n active: z.boolean().describe(\"Current active status of the instruction\").nullable(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter applied to the instruction\").nullable().optional(),\n prompt: z.string().describe(\"Natural language instruction prompt\").nullable(),\n partition: z.string().describe(\"Partition identifier for the instruction\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the instruction was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the instruction was last updated\").nullable(),\n entity_schema: RagieUpdateInstruction_EntitySchemaSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the updated instruction.\");\n\nexport const ragieUpdateInstruction = action(\"RAGIE_UPDATE_INSTRUCTION\", {\n slug: \"ragie-update-instruction\",\n name: \"Update Instruction\",\n description: \"Tool to update an instruction's active status. Use when you need to activate or deactivate an existing instruction.\",\n input: RagieUpdateInstructionInput,\n output: RagieUpdateInstructionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oIAAoI;CACjK,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC7E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,4CAA4CA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACxI,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,eAAe,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-instruction.cjs","names":["z","action"],"sources":["../../src/actions/update-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 RagieUpdateInstructionInput = z.object({\n active: z.boolean().describe(\"Whether the instruction is active. Active instructions are applied to documents when they're created or when their file is updated\"),\n instruction_id: z.string().describe(\"The UUID of the instruction to update\"),\n}).describe(\"Request model for updating an instruction's active status.\");\nconst RagieUpdateInstruction_EntitySchemaSchema = z.record(z.string(), z.unknown()).describe(\"Entity schema object for the instruction.\");\nexport const RagieUpdateInstructionOutput = z.object({\n id: z.string().describe(\"The unique identifier of the instruction\").nullable(),\n name: z.string().describe(\"Name of the instruction\").nullable(),\n scope: z.string().describe(\"Scope of the instruction - either 'document' or 'chunk'\").nullable(),\n active: z.boolean().describe(\"Current active status of the instruction\").nullable(),\n filter: z.record(z.string(), z.unknown()).describe(\"Metadata filter applied to the instruction\").nullable().optional(),\n prompt: z.string().describe(\"Natural language instruction prompt\").nullable(),\n partition: z.string().describe(\"Partition identifier for the instruction\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the instruction was created\").nullable(),\n updated_at: z.string().describe(\"Timestamp when the instruction was last updated\").nullable(),\n entity_schema: RagieUpdateInstruction_EntitySchemaSchema.nullable().optional(),\n}).passthrough().describe(\"Response model for the updated instruction.\");\n\nexport const ragieUpdateInstruction: AppAction<\n typeof RagieUpdateInstructionInput,\n typeof RagieUpdateInstructionOutput,\n typeof ragie.credential\n> = action(\"RAGIE_UPDATE_INSTRUCTION\", {\n slug: \"ragie-update-instruction\",\n name: \"Update Instruction\",\n description: \"Tool to update an instruction's active status. Use when you need to activate or deactivate an existing instruction.\",\n input: RagieUpdateInstructionInput,\n output: RagieUpdateInstructionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,oIAAoI;CACjK,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;AAC7E,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,4CAA4CA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACxI,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,eAAe,0CAA0C,SAAS,CAAC,CAAC,SAAS;AAC/E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,yBAITC,eAAAA,OAAO,4BAA4B;CACrC,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/update-instruction.d.ts
@@ -17,10 +19,7 @@ declare const RagieUpdateInstructionOutput: z.ZodObject<{
17
19
  updated_at: z.ZodNullable<z.ZodString>;
18
20
  entity_schema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
19
21
  }, z.core.$loose>;
20
- declare const ragieUpdateInstruction: import("@keystrokehq/action").WorkflowActionDefinition<{
21
- active: boolean;
22
- instruction_id: string;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
22
+ declare const ragieUpdateInstruction: AppAction<typeof RagieUpdateInstructionInput, typeof RagieUpdateInstructionOutput, typeof ragie.credential>;
24
23
  //#endregion
25
24
  export { ragieUpdateInstruction };
26
25
  //# sourceMappingURL=update-instruction.d.cts.map