@keystrokehq/ragie 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/dist/actions/create-document-from-url.cjs +1 -1
  2. package/dist/actions/create-document-from-url.cjs.map +1 -1
  3. package/dist/actions/create-document-from-url.d.cts +1 -1
  4. package/dist/actions/create-document-from-url.d.mts +1 -1
  5. package/dist/actions/create-document-from-url.mjs +1 -1
  6. package/dist/actions/create-document-from-url.mjs.map +1 -1
  7. package/dist/actions/create-document-raw.cjs +2 -2
  8. package/dist/actions/create-document-raw.cjs.map +1 -1
  9. package/dist/actions/create-document-raw.d.cts +3 -3
  10. package/dist/actions/create-document-raw.d.mts +3 -3
  11. package/dist/actions/create-document-raw.mjs +2 -2
  12. package/dist/actions/create-document-raw.mjs.map +1 -1
  13. package/dist/actions/create-document.cjs +2 -2
  14. package/dist/actions/create-document.cjs.map +1 -1
  15. package/dist/actions/create-document.d.cts +3 -3
  16. package/dist/actions/create-document.d.mts +3 -3
  17. package/dist/actions/create-document.mjs +2 -2
  18. package/dist/actions/create-document.mjs.map +1 -1
  19. package/dist/actions/create-instruction.cjs +1 -1
  20. package/dist/actions/create-instruction.cjs.map +1 -1
  21. package/dist/actions/create-instruction.d.cts +1 -1
  22. package/dist/actions/create-instruction.d.mts +1 -1
  23. package/dist/actions/create-instruction.mjs +1 -1
  24. package/dist/actions/create-instruction.mjs.map +1 -1
  25. package/dist/actions/create-oauth-redirect-url.cjs +1 -1
  26. package/dist/actions/create-oauth-redirect-url.cjs.map +1 -1
  27. package/dist/actions/create-oauth-redirect-url.d.cts +1 -1
  28. package/dist/actions/create-oauth-redirect-url.d.mts +1 -1
  29. package/dist/actions/create-oauth-redirect-url.mjs +1 -1
  30. package/dist/actions/create-oauth-redirect-url.mjs.map +1 -1
  31. package/dist/actions/create-partition-partitions-post.cjs +6 -6
  32. package/dist/actions/create-partition-partitions-post.cjs.map +1 -1
  33. package/dist/actions/create-partition-partitions-post.d.cts +12 -12
  34. package/dist/actions/create-partition-partitions-post.d.mts +12 -12
  35. package/dist/actions/create-partition-partitions-post.mjs +6 -6
  36. package/dist/actions/create-partition-partitions-post.mjs.map +1 -1
  37. package/dist/actions/delete-document.cjs +1 -1
  38. package/dist/actions/delete-document.cjs.map +1 -1
  39. package/dist/actions/delete-document.d.cts +1 -1
  40. package/dist/actions/delete-document.d.mts +1 -1
  41. package/dist/actions/delete-document.mjs +1 -1
  42. package/dist/actions/delete-document.mjs.map +1 -1
  43. package/dist/actions/delete-instruction.cjs +1 -1
  44. package/dist/actions/delete-instruction.cjs.map +1 -1
  45. package/dist/actions/delete-instruction.d.cts +1 -1
  46. package/dist/actions/delete-instruction.d.mts +1 -1
  47. package/dist/actions/delete-instruction.mjs +1 -1
  48. package/dist/actions/delete-instruction.mjs.map +1 -1
  49. package/dist/actions/delete-partition.cjs +1 -1
  50. package/dist/actions/delete-partition.cjs.map +1 -1
  51. package/dist/actions/delete-partition.d.cts +1 -1
  52. package/dist/actions/delete-partition.d.mts +1 -1
  53. package/dist/actions/delete-partition.mjs +1 -1
  54. package/dist/actions/delete-partition.mjs.map +1 -1
  55. package/dist/actions/get-document-chunk-content.cjs +1 -1
  56. package/dist/actions/get-document-chunk-content.cjs.map +1 -1
  57. package/dist/actions/get-document-chunk-content.d.cts +1 -1
  58. package/dist/actions/get-document-chunk-content.d.mts +1 -1
  59. package/dist/actions/get-document-chunk-content.mjs +1 -1
  60. package/dist/actions/get-document-chunk-content.mjs.map +1 -1
  61. package/dist/actions/get-document-chunk.cjs +4 -4
  62. package/dist/actions/get-document-chunk.cjs.map +1 -1
  63. package/dist/actions/get-document-chunk.d.cts +4 -4
  64. package/dist/actions/get-document-chunk.d.mts +4 -4
  65. package/dist/actions/get-document-chunk.mjs +4 -4
  66. package/dist/actions/get-document-chunk.mjs.map +1 -1
  67. package/dist/actions/get-document-chunks.cjs +5 -5
  68. package/dist/actions/get-document-chunks.cjs.map +1 -1
  69. package/dist/actions/get-document-chunks.d.cts +5 -5
  70. package/dist/actions/get-document-chunks.d.mts +5 -5
  71. package/dist/actions/get-document-chunks.mjs +5 -5
  72. package/dist/actions/get-document-chunks.mjs.map +1 -1
  73. package/dist/actions/get-document-content.cjs +2 -2
  74. package/dist/actions/get-document-content.cjs.map +1 -1
  75. package/dist/actions/get-document-content.d.cts +2 -2
  76. package/dist/actions/get-document-content.d.mts +2 -2
  77. package/dist/actions/get-document-content.mjs +2 -2
  78. package/dist/actions/get-document-content.mjs.map +1 -1
  79. package/dist/actions/get-document-summary.cjs +1 -1
  80. package/dist/actions/get-document-summary.cjs.map +1 -1
  81. package/dist/actions/get-document-summary.d.cts +1 -1
  82. package/dist/actions/get-document-summary.d.mts +1 -1
  83. package/dist/actions/get-document-summary.mjs +1 -1
  84. package/dist/actions/get-document-summary.mjs.map +1 -1
  85. package/dist/actions/get-document.cjs +2 -2
  86. package/dist/actions/get-document.cjs.map +1 -1
  87. package/dist/actions/get-document.d.cts +2 -2
  88. package/dist/actions/get-document.d.mts +2 -2
  89. package/dist/actions/get-document.mjs +2 -2
  90. package/dist/actions/get-document.mjs.map +1 -1
  91. package/dist/actions/get-partition.cjs +3 -3
  92. package/dist/actions/get-partition.cjs.map +1 -1
  93. package/dist/actions/get-partition.d.cts +3 -3
  94. package/dist/actions/get-partition.d.mts +3 -3
  95. package/dist/actions/get-partition.mjs +3 -3
  96. package/dist/actions/get-partition.mjs.map +1 -1
  97. package/dist/actions/get-response.cjs +10 -10
  98. package/dist/actions/get-response.cjs.map +1 -1
  99. package/dist/actions/get-response.d.cts +14 -14
  100. package/dist/actions/get-response.d.mts +14 -14
  101. package/dist/actions/get-response.mjs +10 -10
  102. package/dist/actions/get-response.mjs.map +1 -1
  103. package/dist/actions/list-connection-source-types.cjs +2 -2
  104. package/dist/actions/list-connection-source-types.cjs.map +1 -1
  105. package/dist/actions/list-connection-source-types.d.cts +2 -2
  106. package/dist/actions/list-connection-source-types.d.mts +2 -2
  107. package/dist/actions/list-connection-source-types.mjs +2 -2
  108. package/dist/actions/list-connection-source-types.mjs.map +1 -1
  109. package/dist/actions/list-connections-connections-get.cjs +3 -3
  110. package/dist/actions/list-connections-connections-get.cjs.map +1 -1
  111. package/dist/actions/list-connections-connections-get.d.cts +3 -3
  112. package/dist/actions/list-connections-connections-get.d.mts +3 -3
  113. package/dist/actions/list-connections-connections-get.mjs +3 -3
  114. package/dist/actions/list-connections-connections-get.mjs.map +1 -1
  115. package/dist/actions/list-documents.cjs +4 -4
  116. package/dist/actions/list-documents.cjs.map +1 -1
  117. package/dist/actions/list-documents.d.cts +4 -4
  118. package/dist/actions/list-documents.d.mts +4 -4
  119. package/dist/actions/list-documents.mjs +4 -4
  120. package/dist/actions/list-documents.mjs.map +1 -1
  121. package/dist/actions/list-entities-by-document.cjs +4 -4
  122. package/dist/actions/list-entities-by-document.cjs.map +1 -1
  123. package/dist/actions/list-entities-by-document.d.cts +4 -4
  124. package/dist/actions/list-entities-by-document.d.mts +4 -4
  125. package/dist/actions/list-entities-by-document.mjs +4 -4
  126. package/dist/actions/list-entities-by-document.mjs.map +1 -1
  127. package/dist/actions/list-entities-by-instruction.cjs +4 -4
  128. package/dist/actions/list-entities-by-instruction.cjs.map +1 -1
  129. package/dist/actions/list-entities-by-instruction.d.cts +4 -4
  130. package/dist/actions/list-entities-by-instruction.d.mts +4 -4
  131. package/dist/actions/list-entities-by-instruction.mjs +4 -4
  132. package/dist/actions/list-entities-by-instruction.mjs.map +1 -1
  133. package/dist/actions/list-instructions.cjs +2 -2
  134. package/dist/actions/list-instructions.cjs.map +1 -1
  135. package/dist/actions/list-instructions.d.cts +2 -2
  136. package/dist/actions/list-instructions.d.mts +2 -2
  137. package/dist/actions/list-instructions.mjs +2 -2
  138. package/dist/actions/list-instructions.mjs.map +1 -1
  139. package/dist/actions/list-partitions.cjs +4 -4
  140. package/dist/actions/list-partitions.cjs.map +1 -1
  141. package/dist/actions/list-partitions.d.cts +4 -4
  142. package/dist/actions/list-partitions.d.mts +4 -4
  143. package/dist/actions/list-partitions.mjs +4 -4
  144. package/dist/actions/list-partitions.mjs.map +1 -1
  145. package/dist/actions/patch-document-metadata.cjs +3 -3
  146. package/dist/actions/patch-document-metadata.cjs.map +1 -1
  147. package/dist/actions/patch-document-metadata.d.cts +4 -4
  148. package/dist/actions/patch-document-metadata.d.mts +4 -4
  149. package/dist/actions/patch-document-metadata.mjs +3 -3
  150. package/dist/actions/patch-document-metadata.mjs.map +1 -1
  151. package/dist/actions/retrieve.cjs +2 -2
  152. package/dist/actions/retrieve.cjs.map +1 -1
  153. package/dist/actions/retrieve.d.cts +2 -2
  154. package/dist/actions/retrieve.d.mts +2 -2
  155. package/dist/actions/retrieve.mjs +2 -2
  156. package/dist/actions/retrieve.mjs.map +1 -1
  157. package/dist/actions/set-partition-limits.cjs +3 -3
  158. package/dist/actions/set-partition-limits.cjs.map +1 -1
  159. package/dist/actions/set-partition-limits.d.cts +3 -3
  160. package/dist/actions/set-partition-limits.d.mts +3 -3
  161. package/dist/actions/set-partition-limits.mjs +3 -3
  162. package/dist/actions/set-partition-limits.mjs.map +1 -1
  163. package/dist/actions/update-document-from-url.cjs +2 -2
  164. package/dist/actions/update-document-from-url.cjs.map +1 -1
  165. package/dist/actions/update-document-from-url.d.cts +3 -2
  166. package/dist/actions/update-document-from-url.d.mts +3 -2
  167. package/dist/actions/update-document-from-url.mjs +2 -2
  168. package/dist/actions/update-document-from-url.mjs.map +1 -1
  169. package/dist/actions/update-document-raw.cjs +1 -1
  170. package/dist/actions/update-document-raw.cjs.map +1 -1
  171. package/dist/actions/update-document-raw.d.cts +1 -1
  172. package/dist/actions/update-document-raw.d.mts +1 -1
  173. package/dist/actions/update-document-raw.mjs +1 -1
  174. package/dist/actions/update-document-raw.mjs.map +1 -1
  175. package/dist/actions/update-instruction.cjs +2 -2
  176. package/dist/actions/update-instruction.cjs.map +1 -1
  177. package/dist/actions/update-instruction.d.cts +2 -2
  178. package/dist/actions/update-instruction.d.mts +2 -2
  179. package/dist/actions/update-instruction.mjs +2 -2
  180. package/dist/actions/update-instruction.mjs.map +1 -1
  181. package/dist/actions/update-partition.cjs +3 -3
  182. package/dist/actions/update-partition.cjs.map +1 -1
  183. package/dist/actions/update-partition.d.cts +3 -3
  184. package/dist/actions/update-partition.d.mts +3 -3
  185. package/dist/actions/update-partition.mjs +3 -3
  186. package/dist/actions/update-partition.mjs.map +1 -1
  187. package/package.json +1 -1
@@ -20,7 +20,7 @@ const RagieCreateDocumentFromUrlOutput = zod.z.object({
20
20
  updated_at: zod.z.string().describe("Last update timestamp").nullable(),
21
21
  chunk_count: zod.z.number().int().describe("Number of document chunks").nullable().optional(),
22
22
  external_id: zod.z.string().describe("External identifier if provided").nullable().optional()
23
- }).describe("Response schema for document creation from URL.");
23
+ }).passthrough().describe("Response schema for document creation from URL.");
24
24
  const ragieCreateDocumentFromUrl = require_action.action("RAGIE_CREATE_DOCUMENT_FROM_URL", {
25
25
  slug: "ragie-create-document-from-url",
26
26
  name: "Create Document From URL",
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-url.cjs","names":["z","action"],"sources":["../../src/actions/create-document-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentFromUrlInput = z.object({\n url: z.string().describe(\"URL of the file to download. Must be publicly accessible and use HTTP or HTTPS scheme.\"),\n mode: z.union([z.string(), z.record(z.string(), z.unknown())]).optional(),\n name: z.string().describe(\"Optional document name; defaults if omitted\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string/number/boolean/array values; max 1000 total values\").optional(),\n partition: z.string().describe(\"Optional partition identifier for scoping\").optional(),\n external_id: z.string().describe(\"Optional external system identifier\").optional(),\n}).describe(\"Request schema for creating a document from a publicly accessible URL.\");\nexport const RagieCreateDocumentFromUrlOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID)\").nullable(),\n name: z.string().describe(\"Document name\").nullable(),\n status: z.string().describe(\"Processing state (pending, partitioning, indexed, ready, failed, etc.)\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata (strings, numbers, booleans, arrays)\").nullable().optional(),\n partition: z.string().describe(\"Associated partition identifier\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n page_count: z.union([z.number().int(), z.number()]).nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks\").nullable().optional(),\n external_id: z.string().describe(\"External identifier if provided\").nullable().optional(),\n}).describe(\"Response schema for document creation from URL.\");\n\nexport const ragieCreateDocumentFromUrl = action(\"RAGIE_CREATE_DOCUMENT_FROM_URL\", {\n slug: \"ragie-create-document-from-url\",\n name: \"Create Document From URL\",\n description: \"Tool to ingest a document from a publicly accessible URL. Use when you need to add documents to Ragie from external sources. The document undergoes processing steps (pending, partitioning, indexed, ready) before becoming available for retrieval.\",\n input: RagieCreateDocumentFromUrlInput,\n output: RagieCreateDocumentFromUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;CACjH,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACxE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAClJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CACrF,aAAaA,IAAAA,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ACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-from-url.cjs","names":["z","action"],"sources":["../../src/actions/create-document-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentFromUrlInput = z.object({\n url: z.string().describe(\"URL of the file to download. Must be publicly accessible and use HTTP or HTTPS scheme.\"),\n mode: z.union([z.string(), z.record(z.string(), z.unknown())]).optional(),\n name: z.string().describe(\"Optional document name; defaults if omitted\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string/number/boolean/array values; max 1000 total values\").optional(),\n partition: z.string().describe(\"Optional partition identifier for scoping\").optional(),\n external_id: z.string().describe(\"Optional external system identifier\").optional(),\n}).describe(\"Request schema for creating a document from a publicly accessible URL.\");\nexport const RagieCreateDocumentFromUrlOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID)\").nullable(),\n name: z.string().describe(\"Document name\").nullable(),\n status: z.string().describe(\"Processing state (pending, partitioning, indexed, ready, failed, etc.)\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata (strings, numbers, booleans, arrays)\").nullable().optional(),\n partition: z.string().describe(\"Associated partition identifier\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n page_count: z.union([z.number().int(), z.number()]).nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks\").nullable().optional(),\n external_id: z.string().describe(\"External identifier if provided\").nullable().optional(),\n}).passthrough().describe(\"Response schema for document creation from URL.\");\n\nexport const ragieCreateDocumentFromUrl = action(\"RAGIE_CREATE_DOCUMENT_FROM_URL\", {\n slug: \"ragie-create-document-from-url\",\n name: \"Create Document From URL\",\n description: \"Tool to ingest a document from a publicly accessible URL. Use when you need to add documents to Ragie from external sources. The document undergoes processing steps (pending, partitioning, indexed, ready) before becoming available for retrieval.\",\n input: RagieCreateDocumentFromUr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AS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC/D,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,6BAA6BC,eAAAA,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -20,7 +20,7 @@ declare const RagieCreateDocumentFromUrlOutput: z.ZodObject<{
20
20
  updated_at: z.ZodNullable<z.ZodString>;
21
21
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
22
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>;
23
+ }, z.core.$loose>;
24
24
  declare const ragieCreateDocumentFromUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
25
25
  url: string;
26
26
  mode?: string | Record<string, unknown> | undefined;
@@ -20,7 +20,7 @@ declare const RagieCreateDocumentFromUrlOutput: z.ZodObject<{
20
20
  updated_at: z.ZodNullable<z.ZodString>;
21
21
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
22
22
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
- }, z.core.$strip>;
23
+ }, z.core.$loose>;
24
24
  declare const ragieCreateDocumentFromUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
25
25
  url: string;
26
26
  mode?: string | Record<string, unknown> | undefined;
@@ -23,7 +23,7 @@ const ragieCreateDocumentFromUrl = action("RAGIE_CREATE_DOCUMENT_FROM_URL", {
23
23
  updated_at: z.string().describe("Last update timestamp").nullable(),
24
24
  chunk_count: z.number().int().describe("Number of document chunks").nullable().optional(),
25
25
  external_id: z.string().describe("External identifier if provided").nullable().optional()
26
- }).describe("Response schema for document creation from URL.")
26
+ }).passthrough().describe("Response schema for document creation from URL.")
27
27
  });
28
28
  //#endregion
29
29
  export { ragieCreateDocumentFromUrl };
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-from-url.mjs","names":[],"sources":["../../src/actions/create-document-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentFromUrlInput = z.object({\n url: z.string().describe(\"URL of the file to download. Must be publicly accessible and use HTTP or HTTPS scheme.\"),\n mode: z.union([z.string(), z.record(z.string(), z.unknown())]).optional(),\n name: z.string().describe(\"Optional document name; defaults if omitted\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string/number/boolean/array values; max 1000 total values\").optional(),\n partition: z.string().describe(\"Optional partition identifier for scoping\").optional(),\n external_id: z.string().describe(\"Optional external system identifier\").optional(),\n}).describe(\"Request schema for creating a document from a publicly accessible URL.\");\nexport const RagieCreateDocumentFromUrlOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID)\").nullable(),\n name: z.string().describe(\"Document name\").nullable(),\n status: z.string().describe(\"Processing state (pending, partitioning, indexed, ready, failed, etc.)\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata (strings, numbers, booleans, arrays)\").nullable().optional(),\n partition: z.string().describe(\"Associated partition identifier\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n page_count: z.union([z.number().int(), z.number()]).nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks\").nullable().optional(),\n external_id: z.string().describe(\"External identifier if provided\").nullable().optional(),\n}).describe(\"Response schema for document creation from URL.\");\n\nexport const ragieCreateDocumentFromUrl = action(\"RAGIE_CREATE_DOCUMENT_FROM_URL\", {\n slug: \"ragie-create-document-from-url\",\n name: \"Create Document From URL\",\n description: \"Tool to ingest a document from a publicly accessible URL. Use when you need to add documents to Ragie from external sources. The document undergoes processing steps (pending, partitioning, indexed, ready) before becoming available for retrieval.\",\n input: RagieCreateDocumentFromUrlInput,\n output: RagieCreateDocumentFromUrlOutput,\n});\n"],"mappings":";;AAyBA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzB6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EAClJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;EACrF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,SAAS,wEAkBH;CACP,QAlB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;EAC/G,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnI,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC/D,YAAY,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAClE,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-from-url.mjs","names":[],"sources":["../../src/actions/create-document-from-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentFromUrlInput = z.object({\n url: z.string().describe(\"URL of the file to download. Must be publicly accessible and use HTTP or HTTPS scheme.\"),\n mode: z.union([z.string(), z.record(z.string(), z.unknown())]).optional(),\n name: z.string().describe(\"Optional document name; defaults if omitted\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string/number/boolean/array values; max 1000 total values\").optional(),\n partition: z.string().describe(\"Optional partition identifier for scoping\").optional(),\n external_id: z.string().describe(\"Optional external system identifier\").optional(),\n}).describe(\"Request schema for creating a document from a publicly accessible URL.\");\nexport const RagieCreateDocumentFromUrlOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID)\").nullable(),\n name: z.string().describe(\"Document name\").nullable(),\n status: z.string().describe(\"Processing state (pending, partitioning, indexed, ready, failed, etc.)\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata (strings, numbers, booleans, arrays)\").nullable().optional(),\n partition: z.string().describe(\"Associated partition identifier\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n page_count: z.union([z.number().int(), z.number()]).nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks\").nullable().optional(),\n external_id: z.string().describe(\"External identifier if provided\").nullable().optional(),\n}).passthrough().describe(\"Response schema for document creation from URL.\");\n\nexport const ragieCreateDocumentFromUrl = action(\"RAGIE_CREATE_DOCUMENT_FROM_URL\", {\n slug: \"ragie-create-document-from-url\",\n name: \"Create Document From URL\",\n description: \"Tool to ingest a document from a publicly accessible URL. Use when you need to add documents to Ragie from external sources. The document undergoes processing steps (pending, partitioning, indexed, ready) before becoming available for retrieval.\",\n input: RagieCreateDocumentFromUrlInput,\n output: RagieCreateDocumentFromUrlOutput,\n});\n"],"mappings":";;AAyBA,MAAa,6BAA6B,OAAO,kCAAkC;CACjF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAzB6C,EAAE,OAAO;EACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,wFAAwF;EACjH,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EAClJ,WAAW,EAAE,OA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(), zod.z.unknown())]),
6
6
  name: zod.z.string().describe("An optional name for the document. If not set, defaults to the current timestamp.").optional(),
7
- metadata: zod.z.object({}).describe("Document metadata with string keys and string/number/boolean/array values; maximum 1000 total values.").optional(),
7
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Document metadata with string keys and string/number/boolean/array values; maximum 1000 total values.").optional(),
8
8
  partition: zod.z.string().describe("Document scope identifier; must be lowercase alphanumeric with only '_' and '-' special characters.").optional(),
9
9
  external_id: zod.z.string().describe("An optional identifier for the document. A common value might be an id in an external system or the URL.").optional()
10
10
  }).describe("Request model for creating a document from raw text or JSON data.");
@@ -19,7 +19,7 @@ const RagieCreateDocumentRawOutput = zod.z.object({
19
19
  updated_at: zod.z.string().describe("Last update timestamp (datetime).").nullable(),
20
20
  chunk_count: zod.z.number().int().describe("Number of document chunks.").nullable().optional(),
21
21
  external_id: zod.z.string().describe("External system identifier.").nullable().optional()
22
- }).describe("Response model for a created document.");
22
+ }).passthrough().describe("Response model for a created document.");
23
23
  const ragieCreateDocumentRaw = require_action.action("RAGIE_CREATE_DOCUMENT_RAW", {
24
24
  slug: "ragie-create-document-raw",
25
25
  name: "Create Document Raw",
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-raw.cjs","names":["z","action"],"sources":["../../src/actions/create-document-raw.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentRawInput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown())]),\n name: z.string().describe(\"An optional name for the document. If not set, defaults to the current timestamp.\").optional(),\n metadata: z.object({}).describe(\"Document metadata with string keys and string/number/boolean/array values; maximum 1000 total values.\").optional(),\n partition: z.string().describe(\"Document scope identifier; must be lowercase alphanumeric with only '_' and '-' special characters.\").optional(),\n external_id: z.string().describe(\"An optional identifier for the document. A common value might be an id in an external system or the URL.\").optional(),\n}).describe(\"Request model for creating a document from raw text or JSON data.\");\nexport const RagieCreateDocumentRawOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID).\").nullable(),\n name: z.string().describe(\"Document name.\").nullable(),\n status: z.string().describe(\"Processing state of document (pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, ready, or failed).\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Associated metadata.\").nullable().optional(),\n partition: z.string().describe(\"Partition assignment.\").nullable().optional(),\n created_at: z.string().describe(\"Document creation timestamp (datetime).\").nullable(),\n page_count: z.number().describe(\"Page count if applicable.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp (datetime).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier.\").nullable().optional(),\n}).describe(\"Response model for a created document.\");\n\nexport const ragieCreateDocumentRaw = action(\"RAGIE_CREATE_DOCUMENT_RAW\", {\n slug: \"ragie-create-document-raw\",\n name: \"Create Document Raw\",\n description: \"Tool to ingest a document as raw text or JSON. Use when creating a new document from text or JSON data. The document goes through processing steps and becomes available for retrieval once in the ready state.\",\n input: RagieCreateDocumentRawInput,\n output: RagieCreateDocumentRawOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACxH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAClJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;CAC/I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS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raw.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentRawInput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown())]),\n name: z.string().describe(\"An optional name for the document. If not set, defaults to the current timestamp.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string keys and string/number/boolean/array values; maximum 1000 total values.\").optional(),\n partition: z.string().describe(\"Document scope identifier; must be lowercase alphanumeric with only '_' and '-' special characters.\").optional(),\n external_id: z.string().describe(\"An optional identifier for the document. A common value might be an id in an external system or the URL.\").optional(),\n}).describe(\"Request model for creating a document from raw text or JSON data.\");\nexport const RagieCreateDocumentRawOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID).\").nullable(),\n name: z.string().describe(\"Document name.\").nullable(),\n status: z.string().describe(\"Processing state of document (pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, ready, or failed).\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Associated metadata.\").nullable().optional(),\n partition: z.string().describe(\"Partition assignment.\").nullable().optional(),\n created_at: z.string().describe(\"Document creation timestamp (datetime).\").nullable(),\n page_count: z.number().describe(\"Page count if applicable.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp (datetime).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created document.\");\n\nexport const ragieCreateDocumentRaw = action(\"RAGIE_CREATE_DOCUMENT_RAW\", {\n slug: \"ragie-create-document-raw\",\n name: \"Create Document Raw\",\n description: \"Tool to ingest a document as raw text or JSON. Use when creating a new document from text or JSON data. The document goes through processing steps and becomes available for retrieval once in the ready state.\",\n input: RagieCreateDocumentRawInput,\n output: RagieCreateDocumentRawOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM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AAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC9E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,yBAAyBC,eAAAA,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  declare const RagieCreateDocumentRawInput: z.ZodObject<{
5
5
  data: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
6
6
  name: z.ZodOptional<z.ZodString>;
7
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
7
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
8
  partition: z.ZodOptional<z.ZodString>;
9
9
  external_id: z.ZodOptional<z.ZodString>;
10
10
  }, z.core.$strip>;
@@ -19,11 +19,11 @@ declare const RagieCreateDocumentRawOutput: z.ZodObject<{
19
19
  updated_at: z.ZodNullable<z.ZodString>;
20
20
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
21
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>;
22
+ }, z.core.$loose>;
23
23
  declare const ragieCreateDocumentRaw: import("@keystrokehq/action").WorkflowActionDefinition<{
24
24
  data: string | Record<string, unknown>;
25
25
  name?: string | undefined;
26
- metadata?: Record<string, never> | undefined;
26
+ metadata?: Record<string, unknown> | undefined;
27
27
  partition?: string | undefined;
28
28
  external_id?: string | undefined;
29
29
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -4,7 +4,7 @@ import { z } from "zod";
4
4
  declare const RagieCreateDocumentRawInput: z.ZodObject<{
5
5
  data: z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
6
6
  name: z.ZodOptional<z.ZodString>;
7
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
7
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8
8
  partition: z.ZodOptional<z.ZodString>;
9
9
  external_id: z.ZodOptional<z.ZodString>;
10
10
  }, z.core.$strip>;
@@ -19,11 +19,11 @@ declare const RagieCreateDocumentRawOutput: z.ZodObject<{
19
19
  updated_at: z.ZodNullable<z.ZodString>;
20
20
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
21
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>;
22
+ }, z.core.$loose>;
23
23
  declare const ragieCreateDocumentRaw: import("@keystrokehq/action").WorkflowActionDefinition<{
24
24
  data: string | Record<string, unknown>;
25
25
  name?: string | undefined;
26
- metadata?: Record<string, never> | undefined;
26
+ metadata?: Record<string, unknown> | undefined;
27
27
  partition?: string | undefined;
28
28
  external_id?: string | undefined;
29
29
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
@@ -7,7 +7,7 @@ const ragieCreateDocumentRaw = action("RAGIE_CREATE_DOCUMENT_RAW", {
7
7
  input: z.object({
8
8
  data: z.union([z.string(), z.record(z.string(), z.unknown())]),
9
9
  name: z.string().describe("An optional name for the document. If not set, defaults to the current timestamp.").optional(),
10
- metadata: z.object({}).describe("Document metadata with string keys and string/number/boolean/array values; maximum 1000 total values.").optional(),
10
+ metadata: z.record(z.string(), z.unknown()).describe("Document metadata with string keys and string/number/boolean/array values; maximum 1000 total values.").optional(),
11
11
  partition: z.string().describe("Document scope identifier; must be lowercase alphanumeric with only '_' and '-' special characters.").optional(),
12
12
  external_id: z.string().describe("An optional identifier for the document. A common value might be an id in an external system or the URL.").optional()
13
13
  }).describe("Request model for creating a document from raw text or JSON data."),
@@ -22,7 +22,7 @@ const ragieCreateDocumentRaw = action("RAGIE_CREATE_DOCUMENT_RAW", {
22
22
  updated_at: z.string().describe("Last update timestamp (datetime).").nullable(),
23
23
  chunk_count: z.number().int().describe("Number of document chunks.").nullable().optional(),
24
24
  external_id: z.string().describe("External system identifier.").nullable().optional()
25
- }).describe("Response model for a created document.")
25
+ }).passthrough().describe("Response model for a created document.")
26
26
  });
27
27
  //#endregion
28
28
  export { ragieCreateDocumentRaw };
@@ -1 +1 @@
1
- {"version":3,"file":"create-document-raw.mjs","names":[],"sources":["../../src/actions/create-document-raw.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentRawInput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown())]),\n name: z.string().describe(\"An optional name for the document. If not set, defaults to the current timestamp.\").optional(),\n metadata: z.object({}).describe(\"Document metadata with string keys and string/number/boolean/array values; maximum 1000 total values.\").optional(),\n partition: z.string().describe(\"Document scope identifier; must be lowercase alphanumeric with only '_' and '-' special characters.\").optional(),\n external_id: z.string().describe(\"An optional identifier for the document. A common value might be an id in an external system or the URL.\").optional(),\n}).describe(\"Request model for creating a document from raw text or JSON data.\");\nexport const RagieCreateDocumentRawOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID).\").nullable(),\n name: z.string().describe(\"Document name.\").nullable(),\n status: z.string().describe(\"Processing state of document (pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, ready, or failed).\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Associated metadata.\").nullable().optional(),\n partition: z.string().describe(\"Partition assignment.\").nullable().optional(),\n created_at: z.string().describe(\"Document creation timestamp (datetime).\").nullable(),\n page_count: z.number().describe(\"Page count if applicable.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp (datetime).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier.\").nullable().optional(),\n}).describe(\"Response model for a created document.\");\n\nexport const ragieCreateDocumentRaw = action(\"RAGIE_CREATE_DOCUMENT_RAW\", {\n slug: \"ragie-create-document-raw\",\n name: \"Create Document Raw\",\n description: \"Tool to ingest a document as raw text or JSON. Use when creating a new document from text or JSON data. The document goes through processing steps and becomes available for retrieval once in the ready state.\",\n input: RagieCreateDocumentRawInput,\n output: RagieCreateDocumentRawOutput,\n});\n"],"mappings":";;AAwBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxByC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACxH,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EAClJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC/I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,mEAkBH;CACP,QAlB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EAC1L,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-document-raw.mjs","names":[],"sources":["../../src/actions/create-document-raw.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentRawInput = z.object({\n data: z.union([z.string(), z.record(z.string(), z.unknown())]),\n name: z.string().describe(\"An optional name for the document. If not set, defaults to the current timestamp.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string keys and string/number/boolean/array values; maximum 1000 total values.\").optional(),\n partition: z.string().describe(\"Document scope identifier; must be lowercase alphanumeric with only '_' and '-' special characters.\").optional(),\n external_id: z.string().describe(\"An optional identifier for the document. A common value might be an id in an external system or the URL.\").optional(),\n}).describe(\"Request model for creating a document from raw text or JSON data.\");\nexport const RagieCreateDocumentRawOutput = z.object({\n id: z.string().describe(\"Unique document identifier (UUID).\").nullable(),\n name: z.string().describe(\"Document name.\").nullable(),\n status: z.string().describe(\"Processing state of document (pending, partitioning, partitioned, refined, chunked, indexed, summary_indexed, keyword_indexed, ready, or failed).\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Associated metadata.\").nullable().optional(),\n partition: z.string().describe(\"Partition assignment.\").nullable().optional(),\n created_at: z.string().describe(\"Document creation timestamp (datetime).\").nullable(),\n page_count: z.number().describe(\"Page count if applicable.\").nullable().optional(),\n updated_at: z.string().describe(\"Last update timestamp (datetime).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of document chunks.\").nullable().optional(),\n external_id: z.string().describe(\"External system identifier.\").nullable().optional(),\n}).passthrough().describe(\"Response model for a created document.\");\n\nexport const ragieCreateDocumentRaw = action(\"RAGIE_CREATE_DOCUMENT_RAW\", {\n slug: \"ragie-create-document-raw\",\n name: \"Create Document Raw\",\n description: \"Tool to ingest a document as raw text or JSON. Use when creating a new document from text or JSON data. The document goes through processing steps and becomes available for retrieval once in the ready state.\",\n input: RagieCreateDocumentRawInput,\n output: RagieCreateDocumentRawOutput,\n});\n"],"mappings":";;AAwBA,MAAa,yBAAyB,OAAO,6BAA6B;CACxE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAxByC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC;EAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACxH,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;EACvK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,qGAAqG,CAAC,CAAC,SAAS;EAC/I,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS;CACxJ,CAAC,CAAC,CAAC,SAAS,mEAkBH;CACP,QAlB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACrD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;EAC1L,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC9E,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
@@ -9,7 +9,7 @@ const RagieCreateDocumentInput = zod.z.object({
9
9
  }).describe("The document file to upload. Supported formats: Plain Text (.eml.html.json.md.msg.rst.rtf.txt.xml), Images (.png.webp.jpg.jpeg.tiff.bmp.heic), Documents (.csv.doc.docx.epub.odt.pdf.ppt.pptx.tsv.xlsx.xls). Note: PDFs exceeding 2000 pages are unsupported in hi_res mode. If not provided, use inline file content with a filename instead.").optional(),
10
10
  mode: zod.z.union([zod.z.string(), zod.z.boolean()]).optional(),
11
11
  name: zod.z.string().describe("Custom document name. Defaults to the file's name if omitted.").optional(),
12
- metadata: zod.z.object({}).describe("Custom key-value pairs for document metadata. Keys must be strings. Values can be strings, numbers, booleans, or string arrays. Maximum 1000 total values allowed.").optional(),
12
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Custom key-value pairs for document metadata. Keys must be strings. Values can be strings, numbers, booleans, or string arrays. Maximum 1000 total values allowed.").optional(),
13
13
  partition: zod.z.string().describe("Partition scope for the document. Must be lowercase alphanumeric with only '_' and '-' allowed.").optional(),
14
14
  rawContent: zod.z.union([zod.z.string(), zod.z.string()]).optional(),
15
15
  external_id: zod.z.string().describe("Custom identifier for the document (e.g., external system ID or source URL).").optional(),
@@ -27,7 +27,7 @@ const RagieCreateDocumentOutput = zod.z.object({
27
27
  updated_at: zod.z.string().describe("Timestamp of the last modification (datetime format).").nullable(),
28
28
  chunk_count: zod.z.number().int().describe("Number of chunks extracted from the document during processing.").nullable().optional(),
29
29
  external_id: zod.z.string().describe("Custom identifier provided during upload.").nullable().optional()
30
- }).describe("Response model for created document in Ragie.");
30
+ }).passthrough().describe("Response model for created document in Ragie.");
31
31
  const ragieCreateDocument = require_action.action("RAGIE_CREATE_DOCUMENT", {
32
32
  slug: "ragie-create-document",
33
33
  name: "Create Document",
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.cjs","names":["z","action"],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The document file to upload. Supported formats: Plain Text (.eml.html.json.md.msg.rst.rtf.txt.xml), Images (.png.webp.jpg.jpeg.tiff.bmp.heic), Documents (.csv.doc.docx.epub.odt.pdf.ppt.pptx.tsv.xlsx.xls). Note: PDFs exceeding 2000 pages are unsupported in hi_res mode. If not provided, use inline file content with a filename instead.\").optional(),\n mode: z.union([z.string(), z.boolean()]).optional(),\n name: z.string().describe(\"Custom document name. Defaults to the file's name if omitted.\").optional(),\n metadata: z.object({}).describe(\"Custom key-value pairs for document metadata. Keys must be strings. Values can be strings, numbers, booleans, or string arrays. Maximum 1000 total values allowed.\").optional(),\n partition: z.string().describe(\"Partition scope for the document. Must be lowercase alphanumeric with only '_' and '-' allowed.\").optional(),\n rawContent: z.union([z.string(), z.string()]).optional(),\n external_id: z.string().describe(\"Custom identifier for the document (e.g., external system ID or source URL).\").optional(),\n rawFilename: z.string().describe(\"Filename for inline content (e.g., 'document.txt'). Required when using inline file content.\").optional(),\n rawMimetype: z.string().describe(\"MIME type for the inline content (e.g., 'text/plain', 'application/pdf'). Defaults to text/plain.\").optional(),\n}).describe(\"Request model for creating a document in Ragie.\");\nexport const RagieCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the document (UUID format).\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable(),\n status: z.string().describe(\"Current processing state of the document.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata key-value pairs associated with the document.\").nullable().optional(),\n partition: z.string().describe(\"Partition identifier for the document.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the document was created (datetime format).\").nullable(),\n page_count: z.number().describe(\"Total number of pages in the document.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of the last modification (datetime format).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of chunks extracted from the document during processing.\").nullable().optional(),\n external_id: z.string().describe(\"Custom identifier provided during upload.\").nullable().optional(),\n}).describe(\"Response model for created document in Ragie.\");\n\nexport const ragieCreateDocument = action(\"RAGIE_CREATE_DOCUMENT\", {\n slug: \"ragie-create-document\",\n name: \"Create Document\",\n description: \"Tool to upload and process a document file in Ragie. Use when you need to create a new document with support for various formats including text, images, and documents. The endpoint accepts multipart/form-data and returns a Document object with processing status and metadata.\",\n input: RagieCreateDocumentInput,\n output: RagieCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,gVAAgV,CAAC,CAAC,SAAS;CACrW,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;CAC/M,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC3I,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CACvD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8EAA8E,CAAC,CAAC,SAAS;CAC1H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8FAA8F,CAAC,CAAC,SAAS;CAC1I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG,CAAC,CAAC,SAAS;AACjJ,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACvG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CAClG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAE3D,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-document.cjs","names":["z","action"],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The document file to upload. Supported formats: Plain Text (.eml.html.json.md.msg.rst.rtf.txt.xml), Images (.png.webp.jpg.jpeg.tiff.bmp.heic), Documents (.csv.doc.docx.epub.odt.pdf.ppt.pptx.tsv.xlsx.xls). Note: PDFs exceeding 2000 pages are unsupported in hi_res mode. If not provided, use inline file content with a filename instead.\").optional(),\n mode: z.union([z.string(), z.boolean()]).optional(),\n name: z.string().describe(\"Custom document name. Defaults to the file's name if omitted.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for document metadata. Keys must be strings. Values can be strings, numbers, booleans, or string arrays. Maximum 1000 total values allowed.\").optional(),\n partition: z.string().describe(\"Partition scope for the document. Must be lowercase alphanumeric with only '_' and '-' allowed.\").optional(),\n rawContent: z.union([z.string(), z.string()]).optional(),\n external_id: z.string().describe(\"Custom identifier for the document (e.g., external system ID or source URL).\").optional(),\n rawFilename: z.string().describe(\"Filename for inline content (e.g., 'document.txt'). Required when using inline file content.\").optional(),\n rawMimetype: z.string().describe(\"MIME type for the inline content (e.g., 'text/plain', 'application/pdf'). Defaults to text/plain.\").optional(),\n}).describe(\"Request model for creating a document in Ragie.\");\nexport const RagieCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the document (UUID format).\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable(),\n status: z.string().describe(\"Current processing state of the document.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata key-value pairs associated with the document.\").nullable().optional(),\n partition: z.string().describe(\"Partition identifier for the document.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the document was created (datetime format).\").nullable(),\n page_count: z.number().describe(\"Total number of pages in the document.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of the last modification (datetime format).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of chunks extracted from the document during processing.\").nullable().optional(),\n external_id: z.string().describe(\"Custom identifier provided during upload.\").nullable().optional(),\n}).passthrough().describe(\"Response model for created document in Ragie.\");\n\nexport const ragieCreateDocument = action(\"RAGIE_CREATE_DOCUMENT\", {\n slug: \"ragie-create-document\",\n name: \"Create Document\",\n description: \"Tool to upload and process a document file in Ragie. Use when you need to create a new document with support for various formats including text, images, and documents. The endpoint accepts multipart/form-data and returns a Document object with processing status and metadata.\",\n input: RagieCreateDocumentInput,\n output: RagieCreateDocumentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,gVAAgV,CAAC,CAAC,SAAS;CACrW,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CACpG,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oKAAoK,CAAC,CAAC,SAAS;CACpO,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;CAC3I,YAAYA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS;CACvD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAA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AC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,7 +9,7 @@ declare const RagieCreateDocumentInput: z.ZodObject<{
9
9
  }, z.core.$strip>>;
10
10
  mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
11
11
  name: z.ZodOptional<z.ZodString>;
12
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
12
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
13
  partition: z.ZodOptional<z.ZodString>;
14
14
  rawContent: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
15
15
  external_id: z.ZodOptional<z.ZodString>;
@@ -27,7 +27,7 @@ declare const RagieCreateDocumentOutput: z.ZodObject<{
27
27
  updated_at: z.ZodNullable<z.ZodString>;
28
28
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
29
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- }, z.core.$strip>;
30
+ }, z.core.$loose>;
31
31
  declare const ragieCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
32
32
  file?: {
33
33
  name: string;
@@ -36,7 +36,7 @@ declare const ragieCreateDocument: import("@keystrokehq/action").WorkflowActionD
36
36
  } | undefined;
37
37
  mode?: string | boolean | undefined;
38
38
  name?: string | undefined;
39
- metadata?: Record<string, never> | undefined;
39
+ metadata?: Record<string, unknown> | undefined;
40
40
  partition?: string | undefined;
41
41
  rawContent?: string | undefined;
42
42
  external_id?: string | undefined;
@@ -9,7 +9,7 @@ declare const RagieCreateDocumentInput: z.ZodObject<{
9
9
  }, z.core.$strip>>;
10
10
  mode: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodBoolean]>>;
11
11
  name: z.ZodOptional<z.ZodString>;
12
- metadata: z.ZodOptional<z.ZodObject<{}, z.core.$strip>>;
12
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
13
13
  partition: z.ZodOptional<z.ZodString>;
14
14
  rawContent: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
15
15
  external_id: z.ZodOptional<z.ZodString>;
@@ -27,7 +27,7 @@ declare const RagieCreateDocumentOutput: z.ZodObject<{
27
27
  updated_at: z.ZodNullable<z.ZodString>;
28
28
  chunk_count: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
29
  external_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- }, z.core.$strip>;
30
+ }, z.core.$loose>;
31
31
  declare const ragieCreateDocument: import("@keystrokehq/action").WorkflowActionDefinition<{
32
32
  file?: {
33
33
  name: string;
@@ -36,7 +36,7 @@ declare const ragieCreateDocument: import("@keystrokehq/action").WorkflowActionD
36
36
  } | undefined;
37
37
  mode?: string | boolean | undefined;
38
38
  name?: string | undefined;
39
- metadata?: Record<string, never> | undefined;
39
+ metadata?: Record<string, unknown> | undefined;
40
40
  partition?: string | undefined;
41
41
  rawContent?: string | undefined;
42
42
  external_id?: string | undefined;
@@ -12,7 +12,7 @@ const ragieCreateDocument = action("RAGIE_CREATE_DOCUMENT", {
12
12
  }).describe("The document file to upload. Supported formats: Plain Text (.eml.html.json.md.msg.rst.rtf.txt.xml), Images (.png.webp.jpg.jpeg.tiff.bmp.heic), Documents (.csv.doc.docx.epub.odt.pdf.ppt.pptx.tsv.xlsx.xls). Note: PDFs exceeding 2000 pages are unsupported in hi_res mode. If not provided, use inline file content with a filename instead.").optional(),
13
13
  mode: z.union([z.string(), z.boolean()]).optional(),
14
14
  name: z.string().describe("Custom document name. Defaults to the file's name if omitted.").optional(),
15
- metadata: z.object({}).describe("Custom key-value pairs for document metadata. Keys must be strings. Values can be strings, numbers, booleans, or string arrays. Maximum 1000 total values allowed.").optional(),
15
+ metadata: z.record(z.string(), z.unknown()).describe("Custom key-value pairs for document metadata. Keys must be strings. Values can be strings, numbers, booleans, or string arrays. Maximum 1000 total values allowed.").optional(),
16
16
  partition: z.string().describe("Partition scope for the document. Must be lowercase alphanumeric with only '_' and '-' allowed.").optional(),
17
17
  rawContent: z.union([z.string(), z.string()]).optional(),
18
18
  external_id: z.string().describe("Custom identifier for the document (e.g., external system ID or source URL).").optional(),
@@ -30,7 +30,7 @@ const ragieCreateDocument = action("RAGIE_CREATE_DOCUMENT", {
30
30
  updated_at: z.string().describe("Timestamp of the last modification (datetime format).").nullable(),
31
31
  chunk_count: z.number().int().describe("Number of chunks extracted from the document during processing.").nullable().optional(),
32
32
  external_id: z.string().describe("Custom identifier provided during upload.").nullable().optional()
33
- }).describe("Response model for created document in Ragie.")
33
+ }).passthrough().describe("Response model for created document in Ragie.")
34
34
  });
35
35
  //#endregion
36
36
  export { ragieCreateDocument };
@@ -1 +1 @@
1
- {"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The document file to upload. Supported formats: Plain Text (.eml.html.json.md.msg.rst.rtf.txt.xml), Images (.png.webp.jpg.jpeg.tiff.bmp.heic), Documents (.csv.doc.docx.epub.odt.pdf.ppt.pptx.tsv.xlsx.xls). Note: PDFs exceeding 2000 pages are unsupported in hi_res mode. If not provided, use inline file content with a filename instead.\").optional(),\n mode: z.union([z.string(), z.boolean()]).optional(),\n name: z.string().describe(\"Custom document name. Defaults to the file's name if omitted.\").optional(),\n metadata: z.object({}).describe(\"Custom key-value pairs for document metadata. Keys must be strings. Values can be strings, numbers, booleans, or string arrays. Maximum 1000 total values allowed.\").optional(),\n partition: z.string().describe(\"Partition scope for the document. Must be lowercase alphanumeric with only '_' and '-' allowed.\").optional(),\n rawContent: z.union([z.string(), z.string()]).optional(),\n external_id: z.string().describe(\"Custom identifier for the document (e.g., external system ID or source URL).\").optional(),\n rawFilename: z.string().describe(\"Filename for inline content (e.g., 'document.txt'). Required when using inline file content.\").optional(),\n rawMimetype: z.string().describe(\"MIME type for the inline content (e.g., 'text/plain', 'application/pdf'). Defaults to text/plain.\").optional(),\n}).describe(\"Request model for creating a document in Ragie.\");\nexport const RagieCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the document (UUID format).\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable(),\n status: z.string().describe(\"Current processing state of the document.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata key-value pairs associated with the document.\").nullable().optional(),\n partition: z.string().describe(\"Partition identifier for the document.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the document was created (datetime format).\").nullable(),\n page_count: z.number().describe(\"Total number of pages in the document.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of the last modification (datetime format).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of chunks extracted from the document during processing.\").nullable().optional(),\n external_id: z.string().describe(\"Custom identifier provided during upload.\").nullable().optional(),\n}).describe(\"Response model for created document in Ragie.\");\n\nexport const ragieCreateDocument = action(\"RAGIE_CREATE_DOCUMENT\", {\n slug: \"ragie-create-document\",\n name: \"Create Document\",\n description: \"Tool to upload and process a document file in Ragie. Use when you need to create a new document with support for various formats including text, images, and documents. The endpoint accepts multipart/form-data and returns a Document object with processing status and metadata.\",\n input: RagieCreateDocumentInput,\n output: RagieCreateDocumentOutput,\n});\n"],"mappings":";;AAgCA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhCsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAA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,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAClG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-document.mjs","names":[],"sources":["../../src/actions/create-document.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateDocumentInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file to the destination service\"),\n s3key: z.string().describe(\"The S3 key of a publicly accessible file, typically returned from a previous download action that stored the file in S3. This key references an existing file that can be uploaded to another service.\"),\n mimetype: z.string().describe(\"The MIME type of the file\"),\n}).describe(\"The document file to upload. Supported formats: Plain Text (.eml.html.json.md.msg.rst.rtf.txt.xml), Images (.png.webp.jpg.jpeg.tiff.bmp.heic), Documents (.csv.doc.docx.epub.odt.pdf.ppt.pptx.tsv.xlsx.xls). Note: PDFs exceeding 2000 pages are unsupported in hi_res mode. If not provided, use inline file content with a filename instead.\").optional(),\n mode: z.union([z.string(), z.boolean()]).optional(),\n name: z.string().describe(\"Custom document name. Defaults to the file's name if omitted.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom key-value pairs for document metadata. Keys must be strings. Values can be strings, numbers, booleans, or string arrays. Maximum 1000 total values allowed.\").optional(),\n partition: z.string().describe(\"Partition scope for the document. Must be lowercase alphanumeric with only '_' and '-' allowed.\").optional(),\n rawContent: z.union([z.string(), z.string()]).optional(),\n external_id: z.string().describe(\"Custom identifier for the document (e.g., external system ID or source URL).\").optional(),\n rawFilename: z.string().describe(\"Filename for inline content (e.g., 'document.txt'). Required when using inline file content.\").optional(),\n rawMimetype: z.string().describe(\"MIME type for the inline content (e.g., 'text/plain', 'application/pdf'). Defaults to text/plain.\").optional(),\n}).describe(\"Request model for creating a document in Ragie.\");\nexport const RagieCreateDocumentOutput = z.object({\n id: z.string().describe(\"Unique identifier for the document (UUID format).\").nullable(),\n name: z.string().describe(\"Name of the document.\").nullable(),\n status: z.string().describe(\"Current processing state of the document.\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Custom metadata key-value pairs associated with the document.\").nullable().optional(),\n partition: z.string().describe(\"Partition identifier for the document.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the document was created (datetime format).\").nullable(),\n page_count: z.number().describe(\"Total number of pages in the document.\").nullable().optional(),\n updated_at: z.string().describe(\"Timestamp of the last modification (datetime format).\").nullable(),\n chunk_count: z.number().int().describe(\"Number of chunks extracted from the document during processing.\").nullable().optional(),\n external_id: z.string().describe(\"Custom identifier provided during upload.\").nullable().optional(),\n}).passthrough().describe(\"Response model for created document in Ragie.\");\n\nexport const ragieCreateDocument = action(\"RAGIE_CREATE_DOCUMENT\", {\n slug: \"ragie-create-document\",\n name: \"Create Document\",\n description: \"Tool to upload and process a document file in Ragie. Use when you need to create a new document with support for various formats including text, images, and documents. The endpoint accepts multipart/form-data and returns a Document object with processing status and metadata.\",\n input: RagieCreateDocumentInput,\n output: RagieCreateDocumentOutput,\n});\n"],"mappings":";;AAgCA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhCsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;GAC7G,OA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,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;EACvG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EAClG,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
@@ -21,7 +21,7 @@ const RagieCreateInstructionOutput = zod.z.object({
21
21
  created_at: zod.z.string().describe("Creation timestamp").nullable(),
22
22
  updated_at: zod.z.string().describe("Last update timestamp").nullable(),
23
23
  entity_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("JSON Schema for generated entities")
24
- }).describe("Response model for created instruction.");
24
+ }).passthrough().describe("Response model for created instruction.");
25
25
  const ragieCreateInstruction = require_action.action("RAGIE_CREATE_INSTRUCTION", {
26
26
  slug: "ragie-create-instruction",
27
27
  name: "Create Instruction",
@@ -1 +1 @@
1
- {"version":3,"file":"create-instruction.cjs","names":["z","action"],"sources":["../../src/actions/create-instruction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateInstructionInput = z.object({\n name: z.string().describe(\"Unique identifier for the instruction\"),\n scope: z.enum([\"document\", \"chunk\"]).default(\"chunk\").describe(\"Scope of instruction: 'document' for full analysis, 'chunk' for granular search (default: 'chunk')\").optional(),\n active: z.boolean().default(true).describe(\"Whether instruction applies to new/updated documents (default: true)\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Optional metadata filter matching document metadata before applying instruction\").optional(),\n prompt: z.string().describe(\"Natural language instruction which will be applied to documents as they are created and updated\"),\n partition: z.string().describe(\"Optional partition identifier to scope instruction to specific partition\").optional(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema defining the entity structure generated by the instruction\"),\n}).describe(\"Request model for creating a new instruction in Ragie.\");\nexport const RagieCreateInstructionOutput = z.object({\n id: z.string().describe(\"Unique instruction identifier (UUID)\").nullable(),\n name: z.string().describe(\"Instruction name\").nullable(),\n scope: z.string().describe(\"Scope: 'document' or 'chunk'\").nullable(),\n active: z.boolean().describe(\"Active status\").nullable(),\n filter: z.record(z.string(), z.unknown()).describe(\"Applied metadata filter (if any)\").nullable().optional(),\n prompt: z.string().describe(\"The instruction prompt text\").nullable(),\n partition: z.string().describe(\"Associated partition (if any)\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema for generated entities\"),\n}).describe(\"Response model for created instruction.\");\n\nexport const ragieCreateInstruction = action(\"RAGIE_CREATE_INSTRUCTION\", {\n slug: \"ragie-create-instruction\",\n name: \"Create Instruction\",\n description: \"Tool to create a new instruction that applies natural language directives to documents as they're ingested or updated. Use when you need to define structured data extraction or analysis rules for documents in Ragie.\",\n input: RagieCreateInstructionInput,\n output: RagieCreateInstructionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,OAAOA,IAAAA,EAAE,KAAK,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC9K,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,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uB,CAAC,CAAC,SAAS;CAClE,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChG,CAAC,CAAC,CAAC,SAAS,yCAAyC;AAErD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-instruction.cjs","names":["z","action"],"sources":["../../src/actions/create-instruction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateInstructionInput = z.object({\n name: z.string().describe(\"Unique identifier for the instruction\"),\n scope: z.enum([\"document\", \"chunk\"]).default(\"chunk\").describe(\"Scope of instruction: 'document' for full analysis, 'chunk' for granular search (default: 'chunk')\").optional(),\n active: z.boolean().default(true).describe(\"Whether instruction applies to new/updated documents (default: true)\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Optional metadata filter matching document metadata before applying instruction\").optional(),\n prompt: z.string().describe(\"Natural language instruction which will be applied to documents as they are created and updated\"),\n partition: z.string().describe(\"Optional partition identifier to scope instruction to specific partition\").optional(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema defining the entity structure generated by the instruction\"),\n}).describe(\"Request model for creating a new instruction in Ragie.\");\nexport const RagieCreateInstructionOutput = z.object({\n id: z.string().describe(\"Unique instruction identifier (UUID)\").nullable(),\n name: z.string().describe(\"Instruction name\").nullable(),\n scope: z.string().describe(\"Scope: 'document' or 'chunk'\").nullable(),\n active: z.boolean().describe(\"Active status\").nullable(),\n filter: z.record(z.string(), z.unknown()).describe(\"Applied metadata filter (if any)\").nullable().optional(),\n prompt: z.string().describe(\"The instruction prompt text\").nullable(),\n partition: z.string().describe(\"Associated partition (if any)\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema for generated entities\"),\n}).passthrough().describe(\"Response model for created instruction.\");\n\nexport const ragieCreateInstruction = action(\"RAGIE_CREATE_INSTRUCTION\", {\n slug: \"ragie-create-instruction\",\n name: \"Create Instruction\",\n description: \"Tool to create a new instruction that applies natural language directives to documents as they're ingested or updated. Use when you need to define structured data extraction or analysis rules for documents in Ragie.\",\n input: RagieCreateInstructionInput,\n output: RagieCreateInstructionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CACjE,OAAOA,IAAAA,EAAE,KAAK,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CAC9K,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC5H,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC/I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;CAC7H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpI,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACpE,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CACvD,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACpE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CAC/D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAClE,eAAeA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AAEnE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -24,7 +24,7 @@ declare const RagieCreateInstructionOutput: z.ZodObject<{
24
24
  created_at: z.ZodNullable<z.ZodString>;
25
25
  updated_at: z.ZodNullable<z.ZodString>;
26
26
  entity_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  declare const ragieCreateInstruction: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  name: string;
30
30
  prompt: string;
@@ -24,7 +24,7 @@ declare const RagieCreateInstructionOutput: z.ZodObject<{
24
24
  created_at: z.ZodNullable<z.ZodString>;
25
25
  updated_at: z.ZodNullable<z.ZodString>;
26
26
  entity_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  declare const ragieCreateInstruction: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  name: string;
30
30
  prompt: string;
@@ -24,7 +24,7 @@ const ragieCreateInstruction = action("RAGIE_CREATE_INSTRUCTION", {
24
24
  created_at: z.string().describe("Creation timestamp").nullable(),
25
25
  updated_at: z.string().describe("Last update timestamp").nullable(),
26
26
  entity_schema: z.record(z.string(), z.unknown()).describe("JSON Schema for generated entities")
27
- }).describe("Response model for created instruction.")
27
+ }).passthrough().describe("Response model for created instruction.")
28
28
  });
29
29
  //#endregion
30
30
  export { ragieCreateInstruction };
@@ -1 +1 @@
1
- {"version":3,"file":"create-instruction.mjs","names":[],"sources":["../../src/actions/create-instruction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateInstructionInput = z.object({\n name: z.string().describe(\"Unique identifier for the instruction\"),\n scope: z.enum([\"document\", \"chunk\"]).default(\"chunk\").describe(\"Scope of instruction: 'document' for full analysis, 'chunk' for granular search (default: 'chunk')\").optional(),\n active: z.boolean().default(true).describe(\"Whether instruction applies to new/updated documents (default: true)\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Optional metadata filter matching document metadata before applying instruction\").optional(),\n prompt: z.string().describe(\"Natural language instruction which will be applied to documents as they are created and updated\"),\n partition: z.string().describe(\"Optional partition identifier to scope instruction to specific partition\").optional(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema defining the entity structure generated by the instruction\"),\n}).describe(\"Request model for creating a new instruction in Ragie.\");\nexport const RagieCreateInstructionOutput = z.object({\n id: z.string().describe(\"Unique instruction identifier (UUID)\").nullable(),\n name: z.string().describe(\"Instruction name\").nullable(),\n scope: z.string().describe(\"Scope: 'document' or 'chunk'\").nullable(),\n active: z.boolean().describe(\"Active status\").nullable(),\n filter: z.record(z.string(), z.unknown()).describe(\"Applied metadata filter (if any)\").nullable().optional(),\n prompt: z.string().describe(\"The instruction prompt text\").nullable(),\n partition: z.string().describe(\"Associated partition (if any)\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema for generated entities\"),\n}).describe(\"Response model for created instruction.\");\n\nexport const ragieCreateInstruction = action(\"RAGIE_CREATE_INSTRUCTION\", {\n slug: \"ragie-create-instruction\",\n name: \"Create Instruction\",\n description: \"Tool to create a new instruction that applies natural language directives to documents as they're ingested or updated. Use when you need to define structured data extraction or analysis rules for documents in Ragie.\",\n input: RagieCreateInstructionInput,\n output: RagieCreateInstructionOutput,\n});\n"],"mappings":";;AA0BA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1ByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACjE,OAAO,EAAE,KAAK,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;EAC9K,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;EAC5H,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;EAC/I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iGAAiG;EAC7H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EACpH,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wEAAwE;CACpI,CAAC,CAAC,CAAC,SAAS,wDAkBH;CACP,QAlB0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACpE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;EACvD,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACpE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;EAC/D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAClE,eAAe,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC;CAChG,CAAC,CAAC,CAAC,SAAS,yCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-instruction.mjs","names":[],"sources":["../../src/actions/create-instruction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateInstructionInput = z.object({\n name: z.string().describe(\"Unique identifier for the instruction\"),\n scope: z.enum([\"document\", \"chunk\"]).default(\"chunk\").describe(\"Scope of instruction: 'document' for full analysis, 'chunk' for granular search (default: 'chunk')\").optional(),\n active: z.boolean().default(true).describe(\"Whether instruction applies to new/updated documents (default: true)\").optional(),\n filter: z.record(z.string(), z.unknown()).describe(\"Optional metadata filter matching document metadata before applying instruction\").optional(),\n prompt: z.string().describe(\"Natural language instruction which will be applied to documents as they are created and updated\"),\n partition: z.string().describe(\"Optional partition identifier to scope instruction to specific partition\").optional(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema defining the entity structure generated by the instruction\"),\n}).describe(\"Request model for creating a new instruction in Ragie.\");\nexport const RagieCreateInstructionOutput = z.object({\n id: z.string().describe(\"Unique instruction identifier (UUID)\").nullable(),\n name: z.string().describe(\"Instruction name\").nullable(),\n scope: z.string().describe(\"Scope: 'document' or 'chunk'\").nullable(),\n active: z.boolean().describe(\"Active status\").nullable(),\n filter: z.record(z.string(), z.unknown()).describe(\"Applied metadata filter (if any)\").nullable().optional(),\n prompt: z.string().describe(\"The instruction prompt text\").nullable(),\n partition: z.string().describe(\"Associated partition (if any)\").nullable().optional(),\n created_at: z.string().describe(\"Creation timestamp\").nullable(),\n updated_at: z.string().describe(\"Last update timestamp\").nullable(),\n entity_schema: z.record(z.string(), z.unknown()).describe(\"JSON Schema for generated entities\"),\n}).passthrough().describe(\"Response model for created instruction.\");\n\nexport const ragieCreateInstruction = action(\"RAGIE_CREATE_INSTRUCTION\", {\n slug: \"ragie-create-instruction\",\n name: \"Create Instruction\",\n description: \"Tool to create a new instruction that applies natural language directives to documents as they're ingested or updated. Use when you need to define structured data extraction or analysis rules for documents in Ragie.\",\n input: RagieCreateInstructionInput,\n output: RagieCreateInstructionOutput,\n});\n"],"mappings":";;AA0BA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1ByC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EACjE,OAAO,EAAE,KAAK,CAAC,YAAY,OAAO,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAA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QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAOhB;AACV,CAAC"}
@@ -12,7 +12,7 @@ const RagieCreateOauthRedirectUrlInput = zod.z.object({
12
12
  redirect_uri: zod.z.string().describe("The URI where users return after OAuth authentication."),
13
13
  authenticator_id: zod.z.string().describe("Optional authenticator ID for white-labeled credentials (UUID format).").optional()
14
14
  }).describe("Request model for creating an OAuth redirect URL for embedded connector flows.");
15
- const RagieCreateOauthRedirectUrlOutput = zod.z.object({ url: zod.z.string().describe("The redirect URL for OAuth initialization where the user should be redirected to complete the OAuth flow.").nullable() }).describe("Response model for OAuth redirect URL creation.");
15
+ const RagieCreateOauthRedirectUrlOutput = zod.z.object({ url: zod.z.string().describe("The redirect URL for OAuth initialization where the user should be redirected to complete the OAuth flow.").nullable() }).passthrough().describe("Response model for OAuth redirect URL creation.");
16
16
  const ragieCreateOauthRedirectUrl = require_action.action("RAGIE_CREATE_OAUTH_REDIRECT_URL", {
17
17
  slug: "ragie-create-oauth-redirect-url",
18
18
  name: "Create OAuth Redirect URL",
@@ -1 +1 @@
1
- {"version":3,"file":"create-oauth-redirect-url.cjs","names":["z","action"],"sources":["../../src/actions/create-oauth-redirect-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateOauthRedirectUrlInput = z.object({\n mode: z.string().describe(\"Processing strategy (hi_res/fast for text, true/false for audio, audio_only/video_only/audio_video for video).\").optional(),\n theme: z.string().describe(\"UI theme preference: 'light', 'dark', or 'system'; defaults to 'system'.\").optional(),\n config: z.record(z.string(), z.unknown()).describe(\"Optional connector-specific configuration.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string/number/boolean/array values; max 1000 total values.\").optional(),\n partition: z.string().describe(\"Optional partition identifier to scope the connection.\").optional(),\n page_limit: z.number().int().describe(\"Maximum pages to sync; connection disables when limit reached.\").optional(),\n source_type: z.string().describe(\"Connector type (e.g., google_drive, notion, hubspot); defaults to 'google_drive'.\").optional(),\n redirect_uri: z.string().describe(\"The URI where users return after OAuth authentication.\"),\n authenticator_id: z.string().describe(\"Optional authenticator ID for white-labeled credentials (UUID format).\").optional(),\n}).describe(\"Request model for creating an OAuth redirect URL for embedded connector flows.\");\nexport const RagieCreateOauthRedirectUrlOutput = z.object({\n url: z.string().describe(\"The redirect URL for OAuth initialization where the user should be redirected to complete the OAuth flow.\").nullable(),\n}).describe(\"Response model for OAuth redirect URL creation.\");\n\nexport const ragieCreateOauthRedirectUrl = action(\"RAGIE_CREATE_OAUTH_REDIRECT_URL\", {\n slug: \"ragie-create-oauth-redirect-url\",\n name: \"Create OAuth Redirect URL\",\n description: \"Tool to create an OAuth redirect URL for initializing embedded connector OAuth flows. Use when you need to set up OAuth authentication for connectors like Google Drive, Notion, or HubSpot.\",\n input: RagieCreateOauthRedirectUrlInput,\n output: RagieCreateOauthRedirectUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CACrJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACnJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC/H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAC1F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,EACjJ,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-oauth-redirect-url.cjs","names":["z","action"],"sources":["../../src/actions/create-oauth-redirect-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateOauthRedirectUrlInput = z.object({\n mode: z.string().describe(\"Processing strategy (hi_res/fast for text, true/false for audio, audio_only/video_only/audio_video for video).\").optional(),\n theme: z.string().describe(\"UI theme preference: 'light', 'dark', or 'system'; defaults to 'system'.\").optional(),\n config: z.record(z.string(), z.unknown()).describe(\"Optional connector-specific configuration.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string/number/boolean/array values; max 1000 total values.\").optional(),\n partition: z.string().describe(\"Optional partition identifier to scope the connection.\").optional(),\n page_limit: z.number().int().describe(\"Maximum pages to sync; connection disables when limit reached.\").optional(),\n source_type: z.string().describe(\"Connector type (e.g., google_drive, notion, hubspot); defaults to 'google_drive'.\").optional(),\n redirect_uri: z.string().describe(\"The URI where users return after OAuth authentication.\"),\n authenticator_id: z.string().describe(\"Optional authenticator ID for white-labeled credentials (UUID format).\").optional(),\n}).describe(\"Request model for creating an OAuth redirect URL for embedded connector flows.\");\nexport const RagieCreateOauthRedirectUrlOutput = z.object({\n url: z.string().describe(\"The redirect URL for OAuth initialization where the user should be redirected to complete the OAuth flow.\").nullable(),\n}).passthrough().describe(\"Response model for OAuth redirect URL creation.\");\n\nexport const ragieCreateOauthRedirectUrl = action(\"RAGIE_CREATE_OAUTH_REDIRECT_URL\", {\n slug: \"ragie-create-oauth-redirect-url\",\n name: \"Create OAuth Redirect URL\",\n description: \"Tool to create an OAuth redirect URL for initializing embedded connector OAuth flows. Use when you need to set up OAuth authentication for connectors like Google Drive, Notion, or HubSpot.\",\n input: RagieCreateOauthRedirectUrlInput,\n output: RagieCreateOauthRedirectUrlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;CACrJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAChH,QAAQA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC1G,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CACnJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACjH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC/H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;CAC1F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;AAC3H,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAa,oCAAoCA,IAAAA,EAAE,OAAO,EACxD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,EACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -14,7 +14,7 @@ declare const RagieCreateOauthRedirectUrlInput: z.ZodObject<{
14
14
  }, z.core.$strip>;
15
15
  declare const RagieCreateOauthRedirectUrlOutput: z.ZodObject<{
16
16
  url: z.ZodNullable<z.ZodString>;
17
- }, z.core.$strip>;
17
+ }, z.core.$loose>;
18
18
  declare const ragieCreateOauthRedirectUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  redirect_uri: string;
20
20
  mode?: string | undefined;
@@ -14,7 +14,7 @@ declare const RagieCreateOauthRedirectUrlInput: z.ZodObject<{
14
14
  }, z.core.$strip>;
15
15
  declare const RagieCreateOauthRedirectUrlOutput: z.ZodObject<{
16
16
  url: z.ZodNullable<z.ZodString>;
17
- }, z.core.$strip>;
17
+ }, z.core.$loose>;
18
18
  declare const ragieCreateOauthRedirectUrl: import("@keystrokehq/action").WorkflowActionDefinition<{
19
19
  redirect_uri: string;
20
20
  mode?: string | undefined;
@@ -15,7 +15,7 @@ const ragieCreateOauthRedirectUrl = action("RAGIE_CREATE_OAUTH_REDIRECT_URL", {
15
15
  redirect_uri: z.string().describe("The URI where users return after OAuth authentication."),
16
16
  authenticator_id: z.string().describe("Optional authenticator ID for white-labeled credentials (UUID format).").optional()
17
17
  }).describe("Request model for creating an OAuth redirect URL for embedded connector flows."),
18
- output: z.object({ url: z.string().describe("The redirect URL for OAuth initialization where the user should be redirected to complete the OAuth flow.").nullable() }).describe("Response model for OAuth redirect URL creation.")
18
+ output: z.object({ url: z.string().describe("The redirect URL for OAuth initialization where the user should be redirected to complete the OAuth flow.").nullable() }).passthrough().describe("Response model for OAuth redirect URL creation.")
19
19
  });
20
20
  //#endregion
21
21
  export { ragieCreateOauthRedirectUrl };
@@ -1 +1 @@
1
- {"version":3,"file":"create-oauth-redirect-url.mjs","names":[],"sources":["../../src/actions/create-oauth-redirect-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateOauthRedirectUrlInput = z.object({\n mode: z.string().describe(\"Processing strategy (hi_res/fast for text, true/false for audio, audio_only/video_only/audio_video for video).\").optional(),\n theme: z.string().describe(\"UI theme preference: 'light', 'dark', or 'system'; defaults to 'system'.\").optional(),\n config: z.record(z.string(), z.unknown()).describe(\"Optional connector-specific configuration.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string/number/boolean/array values; max 1000 total values.\").optional(),\n partition: z.string().describe(\"Optional partition identifier to scope the connection.\").optional(),\n page_limit: z.number().int().describe(\"Maximum pages to sync; connection disables when limit reached.\").optional(),\n source_type: z.string().describe(\"Connector type (e.g., google_drive, notion, hubspot); defaults to 'google_drive'.\").optional(),\n redirect_uri: z.string().describe(\"The URI where users return after OAuth authentication.\"),\n authenticator_id: z.string().describe(\"Optional authenticator ID for white-labeled credentials (UUID format).\").optional(),\n}).describe(\"Request model for creating an OAuth redirect URL for embedded connector flows.\");\nexport const RagieCreateOauthRedirectUrlOutput = z.object({\n url: z.string().describe(\"The redirect URL for OAuth initialization where the user should be redirected to complete the OAuth flow.\").nullable(),\n}).describe(\"Response model for OAuth redirect URL creation.\");\n\nexport const ragieCreateOauthRedirectUrl = action(\"RAGIE_CREATE_OAUTH_REDIRECT_URL\", {\n slug: \"ragie-create-oauth-redirect-url\",\n name: \"Create OAuth Redirect URL\",\n description: \"Tool to create an OAuth redirect URL for initializing embedded connector OAuth flows. Use when you need to set up OAuth authentication for connectors like Google Drive, Notion, or HubSpot.\",\n input: RagieCreateOauthRedirectUrlInput,\n output: RagieCreateOauthRedirectUrlOutput,\n});\n"],"mappings":";;AAmBA,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;EACrJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EAChH,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC1G,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACnJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAClG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACjH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC/H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EAC1F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,gFASH;CACP,QAT+C,EAAE,OAAO,EACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,EACjJ,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-oauth-redirect-url.mjs","names":[],"sources":["../../src/actions/create-oauth-redirect-url.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const RagieCreateOauthRedirectUrlInput = z.object({\n mode: z.string().describe(\"Processing strategy (hi_res/fast for text, true/false for audio, audio_only/video_only/audio_video for video).\").optional(),\n theme: z.string().describe(\"UI theme preference: 'light', 'dark', or 'system'; defaults to 'system'.\").optional(),\n config: z.record(z.string(), z.unknown()).describe(\"Optional connector-specific configuration.\").optional(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Document metadata with string/number/boolean/array values; max 1000 total values.\").optional(),\n partition: z.string().describe(\"Optional partition identifier to scope the connection.\").optional(),\n page_limit: z.number().int().describe(\"Maximum pages to sync; connection disables when limit reached.\").optional(),\n source_type: z.string().describe(\"Connector type (e.g., google_drive, notion, hubspot); defaults to 'google_drive'.\").optional(),\n redirect_uri: z.string().describe(\"The URI where users return after OAuth authentication.\"),\n authenticator_id: z.string().describe(\"Optional authenticator ID for white-labeled credentials (UUID format).\").optional(),\n}).describe(\"Request model for creating an OAuth redirect URL for embedded connector flows.\");\nexport const RagieCreateOauthRedirectUrlOutput = z.object({\n url: z.string().describe(\"The redirect URL for OAuth initialization where the user should be redirected to complete the OAuth flow.\").nullable(),\n}).passthrough().describe(\"Response model for OAuth redirect URL creation.\");\n\nexport const ragieCreateOauthRedirectUrl = action(\"RAGIE_CREATE_OAUTH_REDIRECT_URL\", {\n slug: \"ragie-create-oauth-redirect-url\",\n name: \"Create OAuth Redirect URL\",\n description: \"Tool to create an OAuth redirect URL for initializing embedded connector OAuth flows. Use when you need to set up OAuth authentication for connectors like Google Drive, Notion, or HubSpot.\",\n input: RagieCreateOauthRedirectUrlInput,\n output: RagieCreateOauthRedirectUrlOutput,\n});\n"],"mappings":";;AAmBA,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH,CAAC,CAAC,SAAS;EACrJ,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;EAChH,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC1G,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EACnJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAClG,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;EACjH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;EAC/H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD;EAC1F,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,wEAAwE,CAAC,CAAC,SAAS;CAC3H,CAAC,CAAC,CAAC,SAAS,gFASH;CACP,QAT+C,EAAE,OAAO,EACxD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS,EACjJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}