@keystrokehq/replicate 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/account-get.cjs +4 -4
  4. package/dist/actions/account-get.cjs.map +1 -1
  5. package/dist/actions/account-get.d.cts +8 -3
  6. package/dist/actions/account-get.d.cts.map +1 -1
  7. package/dist/actions/account-get.d.mts +8 -3
  8. package/dist/actions/account-get.d.mts.map +1 -1
  9. package/dist/actions/account-get.mjs +4 -4
  10. package/dist/actions/account-get.mjs.map +1 -1
  11. package/dist/actions/cancel-prediction.cjs +8 -8
  12. package/dist/actions/cancel-prediction.cjs.map +1 -1
  13. package/dist/actions/cancel-prediction.d.cts +43 -3
  14. package/dist/actions/cancel-prediction.d.cts.map +1 -1
  15. package/dist/actions/cancel-prediction.d.mts +43 -3
  16. package/dist/actions/cancel-prediction.d.mts.map +1 -1
  17. package/dist/actions/cancel-prediction.mjs +8 -8
  18. package/dist/actions/cancel-prediction.mjs.map +1 -1
  19. package/dist/actions/collections-get.cjs +10 -10
  20. package/dist/actions/collections-get.cjs.map +1 -1
  21. package/dist/actions/collections-get.d.cts +26 -3
  22. package/dist/actions/collections-get.d.cts.map +1 -1
  23. package/dist/actions/collections-get.d.mts +26 -3
  24. package/dist/actions/collections-get.d.mts.map +1 -1
  25. package/dist/actions/collections-get.mjs +10 -10
  26. package/dist/actions/collections-get.mjs.map +1 -1
  27. package/dist/actions/collections-list.cjs +5 -5
  28. package/dist/actions/collections-list.cjs.map +1 -1
  29. package/dist/actions/collections-list.d.cts +15 -3
  30. package/dist/actions/collections-list.d.cts.map +1 -1
  31. package/dist/actions/collections-list.d.mts +15 -3
  32. package/dist/actions/collections-list.d.mts.map +1 -1
  33. package/dist/actions/collections-list.mjs +5 -5
  34. package/dist/actions/collections-list.mjs.map +1 -1
  35. package/dist/actions/create-model.cjs +8 -8
  36. package/dist/actions/create-model.cjs.map +1 -1
  37. package/dist/actions/create-model.d.cts +39 -3
  38. package/dist/actions/create-model.d.cts.map +1 -1
  39. package/dist/actions/create-model.d.mts +39 -3
  40. package/dist/actions/create-model.d.mts.map +1 -1
  41. package/dist/actions/create-model.mjs +8 -8
  42. package/dist/actions/create-model.mjs.map +1 -1
  43. package/dist/actions/create-prediction.cjs +10 -10
  44. package/dist/actions/create-prediction.cjs.map +1 -1
  45. package/dist/actions/create-prediction.d.cts +40 -3
  46. package/dist/actions/create-prediction.d.cts.map +1 -1
  47. package/dist/actions/create-prediction.d.mts +40 -3
  48. package/dist/actions/create-prediction.d.mts.map +1 -1
  49. package/dist/actions/create-prediction.mjs +10 -10
  50. package/dist/actions/create-prediction.mjs.map +1 -1
  51. package/dist/actions/deployments-create.cjs +16 -16
  52. package/dist/actions/deployments-create.cjs.map +1 -1
  53. package/dist/actions/deployments-create.d.cts +38 -3
  54. package/dist/actions/deployments-create.d.cts.map +1 -1
  55. package/dist/actions/deployments-create.d.mts +38 -3
  56. package/dist/actions/deployments-create.d.mts.map +1 -1
  57. package/dist/actions/deployments-create.mjs +16 -16
  58. package/dist/actions/deployments-create.mjs.map +1 -1
  59. package/dist/actions/deployments-delete.cjs +1 -1
  60. package/dist/actions/deployments-delete.cjs.map +1 -1
  61. package/dist/actions/deployments-delete.d.cts +12 -3
  62. package/dist/actions/deployments-delete.d.cts.map +1 -1
  63. package/dist/actions/deployments-delete.d.mts +12 -3
  64. package/dist/actions/deployments-delete.d.mts.map +1 -1
  65. package/dist/actions/deployments-delete.mjs +1 -1
  66. package/dist/actions/deployments-delete.mjs.map +1 -1
  67. package/dist/actions/deployments-get.cjs +4 -4
  68. package/dist/actions/deployments-get.cjs.map +1 -1
  69. package/dist/actions/deployments-get.d.cts +30 -3
  70. package/dist/actions/deployments-get.d.cts.map +1 -1
  71. package/dist/actions/deployments-get.d.mts +30 -3
  72. package/dist/actions/deployments-get.d.mts.map +1 -1
  73. package/dist/actions/deployments-get.mjs +4 -4
  74. package/dist/actions/deployments-get.mjs.map +1 -1
  75. package/dist/actions/deployments-list.cjs +17 -17
  76. package/dist/actions/deployments-list.cjs.map +1 -1
  77. package/dist/actions/deployments-list.d.cts +32 -3
  78. package/dist/actions/deployments-list.d.cts.map +1 -1
  79. package/dist/actions/deployments-list.d.mts +32 -3
  80. package/dist/actions/deployments-list.d.mts.map +1 -1
  81. package/dist/actions/deployments-list.mjs +17 -17
  82. package/dist/actions/deployments-list.mjs.map +1 -1
  83. package/dist/actions/files-create.cjs +7 -7
  84. package/dist/actions/files-create.cjs.map +1 -1
  85. package/dist/actions/files-create.d.cts +35 -3
  86. package/dist/actions/files-create.d.cts.map +1 -1
  87. package/dist/actions/files-create.d.mts +35 -3
  88. package/dist/actions/files-create.d.mts.map +1 -1
  89. package/dist/actions/files-create.mjs +7 -7
  90. package/dist/actions/files-create.mjs.map +1 -1
  91. package/dist/actions/files-delete.cjs +1 -1
  92. package/dist/actions/files-delete.cjs.map +1 -1
  93. package/dist/actions/files-delete.d.cts +10 -3
  94. package/dist/actions/files-delete.d.cts.map +1 -1
  95. package/dist/actions/files-delete.d.mts +10 -3
  96. package/dist/actions/files-delete.d.mts.map +1 -1
  97. package/dist/actions/files-delete.mjs +1 -1
  98. package/dist/actions/files-delete.mjs.map +1 -1
  99. package/dist/actions/files-get.cjs +8 -8
  100. package/dist/actions/files-get.cjs.map +1 -1
  101. package/dist/actions/files-get.d.cts +23 -3
  102. package/dist/actions/files-get.d.cts.map +1 -1
  103. package/dist/actions/files-get.d.mts +23 -3
  104. package/dist/actions/files-get.d.mts.map +1 -1
  105. package/dist/actions/files-get.mjs +8 -8
  106. package/dist/actions/files-get.mjs.map +1 -1
  107. package/dist/actions/files-list.cjs +10 -10
  108. package/dist/actions/files-list.cjs.map +1 -1
  109. package/dist/actions/files-list.d.cts +27 -3
  110. package/dist/actions/files-list.d.cts.map +1 -1
  111. package/dist/actions/files-list.d.mts +27 -3
  112. package/dist/actions/files-list.d.mts.map +1 -1
  113. package/dist/actions/files-list.mjs +10 -10
  114. package/dist/actions/files-list.mjs.map +1 -1
  115. package/dist/actions/get-prediction.cjs +11 -11
  116. package/dist/actions/get-prediction.cjs.map +1 -1
  117. package/dist/actions/get-prediction.d.cts +42 -3
  118. package/dist/actions/get-prediction.d.cts.map +1 -1
  119. package/dist/actions/get-prediction.d.mts +42 -3
  120. package/dist/actions/get-prediction.d.mts.map +1 -1
  121. package/dist/actions/get-prediction.mjs +11 -11
  122. package/dist/actions/get-prediction.mjs.map +1 -1
  123. package/dist/actions/hardware-list.cjs +4 -4
  124. package/dist/actions/hardware-list.cjs.map +1 -1
  125. package/dist/actions/hardware-list.d.cts +8 -3
  126. package/dist/actions/hardware-list.d.cts.map +1 -1
  127. package/dist/actions/hardware-list.d.mts +8 -3
  128. package/dist/actions/hardware-list.d.mts.map +1 -1
  129. package/dist/actions/hardware-list.mjs +4 -4
  130. package/dist/actions/hardware-list.mjs.map +1 -1
  131. package/dist/actions/models-examples-list.cjs +11 -11
  132. package/dist/actions/models-examples-list.cjs.map +1 -1
  133. package/dist/actions/models-examples-list.d.cts +37 -3
  134. package/dist/actions/models-examples-list.d.cts.map +1 -1
  135. package/dist/actions/models-examples-list.d.mts +37 -3
  136. package/dist/actions/models-examples-list.d.mts.map +1 -1
  137. package/dist/actions/models-examples-list.mjs +11 -11
  138. package/dist/actions/models-examples-list.mjs.map +1 -1
  139. package/dist/actions/models-get.cjs +26 -26
  140. package/dist/actions/models-get.cjs.map +1 -1
  141. package/dist/actions/models-get.d.cts +77 -3
  142. package/dist/actions/models-get.d.cts.map +1 -1
  143. package/dist/actions/models-get.d.mts +77 -3
  144. package/dist/actions/models-get.d.mts.map +1 -1
  145. package/dist/actions/models-get.mjs +26 -26
  146. package/dist/actions/models-get.mjs.map +1 -1
  147. package/dist/actions/models-list.cjs +11 -11
  148. package/dist/actions/models-list.cjs.map +1 -1
  149. package/dist/actions/models-list.d.cts +39 -3
  150. package/dist/actions/models-list.d.cts.map +1 -1
  151. package/dist/actions/models-list.d.mts +39 -3
  152. package/dist/actions/models-list.d.mts.map +1 -1
  153. package/dist/actions/models-list.mjs +11 -11
  154. package/dist/actions/models-list.mjs.map +1 -1
  155. package/dist/actions/models-predictions-create.cjs +7 -7
  156. package/dist/actions/models-predictions-create.cjs.map +1 -1
  157. package/dist/actions/models-predictions-create.d.cts +46 -3
  158. package/dist/actions/models-predictions-create.d.cts.map +1 -1
  159. package/dist/actions/models-predictions-create.d.mts +46 -3
  160. package/dist/actions/models-predictions-create.d.mts.map +1 -1
  161. package/dist/actions/models-predictions-create.mjs +7 -7
  162. package/dist/actions/models-predictions-create.mjs.map +1 -1
  163. package/dist/actions/models-readme-get.cjs +1 -1
  164. package/dist/actions/models-readme-get.cjs.map +1 -1
  165. package/dist/actions/models-readme-get.d.cts +11 -3
  166. package/dist/actions/models-readme-get.d.cts.map +1 -1
  167. package/dist/actions/models-readme-get.d.mts +11 -3
  168. package/dist/actions/models-readme-get.d.mts.map +1 -1
  169. package/dist/actions/models-readme-get.mjs +1 -1
  170. package/dist/actions/models-readme-get.mjs.map +1 -1
  171. package/dist/actions/models-versions-get.cjs +4 -4
  172. package/dist/actions/models-versions-get.cjs.map +1 -1
  173. package/dist/actions/models-versions-get.d.cts +16 -3
  174. package/dist/actions/models-versions-get.d.cts.map +1 -1
  175. package/dist/actions/models-versions-get.d.mts +16 -3
  176. package/dist/actions/models-versions-get.d.mts.map +1 -1
  177. package/dist/actions/models-versions-get.mjs +4 -4
  178. package/dist/actions/models-versions-get.mjs.map +1 -1
  179. package/dist/actions/models-versions-list.cjs +5 -5
  180. package/dist/actions/models-versions-list.cjs.map +1 -1
  181. package/dist/actions/models-versions-list.d.cts +20 -3
  182. package/dist/actions/models-versions-list.d.cts.map +1 -1
  183. package/dist/actions/models-versions-list.d.mts +20 -3
  184. package/dist/actions/models-versions-list.d.mts.map +1 -1
  185. package/dist/actions/models-versions-list.mjs +5 -5
  186. package/dist/actions/models-versions-list.mjs.map +1 -1
  187. package/dist/actions/predictions-create.cjs +7 -7
  188. package/dist/actions/predictions-create.cjs.map +1 -1
  189. package/dist/actions/predictions-create.d.cts +47 -3
  190. package/dist/actions/predictions-create.d.cts.map +1 -1
  191. package/dist/actions/predictions-create.d.mts +47 -3
  192. package/dist/actions/predictions-create.d.mts.map +1 -1
  193. package/dist/actions/predictions-create.mjs +7 -7
  194. package/dist/actions/predictions-create.mjs.map +1 -1
  195. package/dist/actions/predictions-list.cjs +12 -12
  196. package/dist/actions/predictions-list.cjs.map +1 -1
  197. package/dist/actions/predictions-list.d.cts +38 -3
  198. package/dist/actions/predictions-list.d.cts.map +1 -1
  199. package/dist/actions/predictions-list.d.mts +38 -3
  200. package/dist/actions/predictions-list.d.mts.map +1 -1
  201. package/dist/actions/predictions-list.mjs +12 -12
  202. package/dist/actions/predictions-list.mjs.map +1 -1
  203. package/dist/actions/search.cjs +28 -28
  204. package/dist/actions/search.cjs.map +1 -1
  205. package/dist/actions/search.d.cts +80 -3
  206. package/dist/actions/search.d.cts.map +1 -1
  207. package/dist/actions/search.d.mts +80 -3
  208. package/dist/actions/search.d.mts.map +1 -1
  209. package/dist/actions/search.mjs +28 -28
  210. package/dist/actions/search.mjs.map +1 -1
  211. package/dist/actions/trainings-cancel.cjs +8 -8
  212. package/dist/actions/trainings-cancel.cjs.map +1 -1
  213. package/dist/actions/trainings-cancel.d.cts +26 -3
  214. package/dist/actions/trainings-cancel.d.cts.map +1 -1
  215. package/dist/actions/trainings-cancel.d.mts +26 -3
  216. package/dist/actions/trainings-cancel.d.mts.map +1 -1
  217. package/dist/actions/trainings-cancel.mjs +8 -8
  218. package/dist/actions/trainings-cancel.mjs.map +1 -1
  219. package/dist/actions/trainings-create.cjs +8 -8
  220. package/dist/actions/trainings-create.cjs.map +1 -1
  221. package/dist/actions/trainings-create.d.cts +46 -3
  222. package/dist/actions/trainings-create.d.cts.map +1 -1
  223. package/dist/actions/trainings-create.d.mts +46 -3
  224. package/dist/actions/trainings-create.d.mts.map +1 -1
  225. package/dist/actions/trainings-create.mjs +8 -8
  226. package/dist/actions/trainings-create.mjs.map +1 -1
  227. package/dist/actions/trainings-list.cjs +13 -13
  228. package/dist/actions/trainings-list.cjs.map +1 -1
  229. package/dist/actions/trainings-list.d.cts +35 -3
  230. package/dist/actions/trainings-list.d.cts.map +1 -1
  231. package/dist/actions/trainings-list.d.mts +35 -3
  232. package/dist/actions/trainings-list.d.mts.map +1 -1
  233. package/dist/actions/trainings-list.mjs +13 -13
  234. package/dist/actions/trainings-list.mjs.map +1 -1
  235. package/dist/actions/update-models.cjs +7 -7
  236. package/dist/actions/update-models.cjs.map +1 -1
  237. package/dist/actions/update-models.d.cts +35 -3
  238. package/dist/actions/update-models.d.cts.map +1 -1
  239. package/dist/actions/update-models.d.mts +35 -3
  240. package/dist/actions/update-models.d.mts.map +1 -1
  241. package/dist/actions/update-models.mjs +7 -7
  242. package/dist/actions/update-models.mjs.map +1 -1
  243. package/dist/actions/webhooks-secret-get.cjs +1 -1
  244. package/dist/actions/webhooks-secret-get.cjs.map +1 -1
  245. package/dist/actions/webhooks-secret-get.d.cts +5 -3
  246. package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
  247. package/dist/actions/webhooks-secret-get.d.mts +5 -3
  248. package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
  249. package/dist/actions/webhooks-secret-get.mjs +1 -1
  250. package/dist/actions/webhooks-secret-get.mjs.map +1 -1
  251. package/dist/catalog.cjs +7 -1
  252. package/dist/catalog.cjs.map +1 -1
  253. package/dist/catalog.d.cts +8 -0
  254. package/dist/catalog.d.mts +8 -0
  255. package/dist/catalog.mjs +7 -1
  256. package/dist/catalog.mjs.map +1 -1
  257. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["replicate","executeReplicateTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { replicate } from \"./app\";\nimport { executeReplicateTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return replicate.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeReplicateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["replicate","executeReplicateTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { replicate } from \"./app\";\nimport { executeReplicateTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return replicate.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeReplicateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { replicate } from \"./app\";\nimport { executeReplicateTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return replicate.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeReplicateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { replicate } from \"./app\";\nimport { executeReplicateTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return replicate.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeReplicateTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,UAAU,OAAO;EACtB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,qBAAqB,MAAM,KAAgC,CAAC;EAC5F;CACF,CAAC;AACH"}
@@ -3,11 +3,11 @@ let zod = require("zod");
3
3
  //#region src/actions/account-get.ts
4
4
  const ReplicateAccountGetInput = zod.z.object({}).describe("No parameters are required for getting account information.");
5
5
  const ReplicateAccountGetOutput = zod.z.object({
6
- name: zod.z.string().describe("Full display name of the account holder or organization"),
7
- type: zod.z.string().describe("Account type, either 'organization' or 'user'"),
8
- username: zod.z.string().describe("The username or organization name"),
6
+ name: zod.z.string().describe("Full display name of the account holder or organization").nullable(),
7
+ type: zod.z.string().describe("Account type, either 'organization' or 'user'").nullable(),
8
+ username: zod.z.string().describe("The username or organization name").nullable(),
9
9
  github_url: zod.z.string().describe("URL to the associated GitHub profile, if any").nullable().optional()
10
- }).describe("Response schema for account.get: Information about the authenticated account.");
10
+ }).passthrough().describe("Response schema for account.get: Information about the authenticated account.");
11
11
  const replicateAccountGet = require_action.action("REPLICATE_ACCOUNT_GET", {
12
12
  slug: "replicate-account-get",
13
13
  name: "Get Account Information",
@@ -1 +1 @@
1
- {"version":3,"file":"account-get.cjs","names":["z","action"],"sources":["../../src/actions/account-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateAccountGetInput: z.ZodTypeAny = z.object({}).describe(\"No parameters are required for getting account information.\");\nexport const ReplicateAccountGetOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Full display name of the account holder or organization\"),\n type: z.string().describe(\"Account type, either 'organization' or 'user'\"),\n username: z.string().describe(\"The username or organization name\"),\n github_url: z.string().describe(\"URL to the associated GitHub profile, if any\").nullable().optional(),\n}).describe(\"Response schema for account.get: Information about the authenticated account.\");\n\nexport const replicateAccountGet = action(\"REPLICATE_ACCOUNT_GET\", {\n slug: \"replicate-account-get\",\n name: \"Get Account Information\",\n description: \"Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.\",\n input: ReplicateAccountGetInput,\n output: ReplicateAccountGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzI,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,+EAA+E;AAE3F,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"account-get.cjs","names":["z","action"],"sources":["../../src/actions/account-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateAccountGetInput = z.object({}).describe(\"No parameters are required for getting account information.\");\nexport const ReplicateAccountGetOutput = z.object({\n name: z.string().describe(\"Full display name of the account holder or organization\").nullable(),\n type: z.string().describe(\"Account type, either 'organization' or 'user'\").nullable(),\n username: z.string().describe(\"The username or organization name\").nullable(),\n github_url: z.string().describe(\"URL to the associated GitHub profile, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for account.get: Information about the authenticated account.\");\n\nexport const replicateAccountGet = action(\"REPLICATE_ACCOUNT_GET\", {\n slug: \"replicate-account-get\",\n name: \"Get Account Information\",\n description: \"Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.\",\n input: ReplicateAccountGetInput,\n output: ReplicateAccountGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAC3H,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,14 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/account-get.d.ts
4
- declare const ReplicateAccountGetInput: z.ZodTypeAny;
5
- declare const ReplicateAccountGetOutput: z.ZodTypeAny;
6
- declare const replicateAccountGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateAccountGetInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const ReplicateAccountGetOutput: z.ZodObject<{
6
+ name: z.ZodNullable<z.ZodString>;
7
+ type: z.ZodNullable<z.ZodString>;
8
+ username: z.ZodNullable<z.ZodString>;
9
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ }, z.core.$loose>;
11
+ declare const replicateAccountGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
12
  //#endregion
8
13
  export { replicateAccountGet };
9
14
  //# sourceMappingURL=account-get.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account-get.d.cts","names":[],"sources":["../../src/actions/account-get.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAAiG;AAAA,cAC7H,yBAAA,EAA2B,CAAA,CAAE,UAKkD;AAAA,cAE/E,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"account-get.d.cts","names":[],"sources":["../../src/actions/account-get.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,14 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/account-get.d.ts
4
- declare const ReplicateAccountGetInput: z.ZodTypeAny;
5
- declare const ReplicateAccountGetOutput: z.ZodTypeAny;
6
- declare const replicateAccountGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateAccountGetInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const ReplicateAccountGetOutput: z.ZodObject<{
6
+ name: z.ZodNullable<z.ZodString>;
7
+ type: z.ZodNullable<z.ZodString>;
8
+ username: z.ZodNullable<z.ZodString>;
9
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ }, z.core.$loose>;
11
+ declare const replicateAccountGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
12
  //#endregion
8
13
  export { replicateAccountGet };
9
14
  //# sourceMappingURL=account-get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account-get.d.mts","names":[],"sources":["../../src/actions/account-get.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAAiG;AAAA,cAC7H,yBAAA,EAA2B,CAAA,CAAE,UAKkD;AAAA,cAE/E,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"account-get.d.mts","names":[],"sources":["../../src/actions/account-get.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -6,11 +6,11 @@ const replicateAccountGet = action("REPLICATE_ACCOUNT_GET", {
6
6
  description: "Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.",
7
7
  input: z.object({}).describe("No parameters are required for getting account information."),
8
8
  output: z.object({
9
- name: z.string().describe("Full display name of the account holder or organization"),
10
- type: z.string().describe("Account type, either 'organization' or 'user'"),
11
- username: z.string().describe("The username or organization name"),
9
+ name: z.string().describe("Full display name of the account holder or organization").nullable(),
10
+ type: z.string().describe("Account type, either 'organization' or 'user'").nullable(),
11
+ username: z.string().describe("The username or organization name").nullable(),
12
12
  github_url: z.string().describe("URL to the associated GitHub profile, if any").nullable().optional()
13
- }).describe("Response schema for account.get: Information about the authenticated account.")
13
+ }).passthrough().describe("Response schema for account.get: Information about the authenticated account.")
14
14
  });
15
15
  //#endregion
16
16
  export { replicateAccountGet };
@@ -1 +1 @@
1
- {"version":3,"file":"account-get.mjs","names":[],"sources":["../../src/actions/account-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateAccountGetInput: z.ZodTypeAny = z.object({}).describe(\"No parameters are required for getting account information.\");\nexport const ReplicateAccountGetOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Full display name of the account holder or organization\"),\n type: z.string().describe(\"Account type, either 'organization' or 'user'\"),\n username: z.string().describe(\"The username or organization name\"),\n github_url: z.string().describe(\"URL to the associated GitHub profile, if any\").nullable().optional(),\n}).describe(\"Response schema for account.get: Information about the authenticated account.\");\n\nexport const replicateAccountGet = action(\"REPLICATE_ACCOUNT_GET\", {\n slug: \"replicate-account-get\",\n name: \"Get Account Information\",\n description: \"Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.\",\n input: ReplicateAccountGetInput,\n output: ReplicateAccountGetOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZoD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAYnE;CACP,QAZqD,EAAE,OAAO;EAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD;EACnF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,+EAOF;AACV,CAAC"}
1
+ {"version":3,"file":"account-get.mjs","names":[],"sources":["../../src/actions/account-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateAccountGetInput = z.object({}).describe(\"No parameters are required for getting account information.\");\nexport const ReplicateAccountGetOutput = z.object({\n name: z.string().describe(\"Full display name of the account holder or organization\").nullable(),\n type: z.string().describe(\"Account type, either 'organization' or 'user'\").nullable(),\n username: z.string().describe(\"The username or organization name\").nullable(),\n github_url: z.string().describe(\"URL to the associated GitHub profile, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for account.get: Information about the authenticated account.\");\n\nexport const replicateAccountGet = action(\"REPLICATE_ACCOUNT_GET\", {\n slug: \"replicate-account-get\",\n name: \"Get Account Information\",\n description: \"Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.\",\n input: ReplicateAccountGetInput,\n output: ReplicateAccountGetOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAYrD;CACP,QAZuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAOhB;AACV,CAAC"}
@@ -3,11 +3,11 @@ let zod = require("zod");
3
3
  //#region src/actions/cancel-prediction.ts
4
4
  const ReplicateCancelPredictionInput = zod.z.object({ prediction_id: zod.z.string().describe("The ID of the prediction to cancel") }).describe("Request schema for canceling a prediction.");
5
5
  const ReplicateCancelPrediction_PredictionUrlsSchema = zod.z.object({
6
- get: zod.z.string().describe("API endpoint URL to get the prediction details"),
6
+ get: zod.z.string().describe("API endpoint URL to get the prediction details").nullable(),
7
7
  web: zod.z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
8
- cancel: zod.z.string().describe("API endpoint URL to cancel the prediction"),
8
+ cancel: zod.z.string().describe("API endpoint URL to cancel the prediction").nullable(),
9
9
  stream: zod.z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
10
- }).describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
10
+ }).passthrough().describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
11
11
  const ReplicateCancelPrediction_PredictionSourceSchema = zod.z.enum(["web", "api"]).describe("Source of a prediction.");
12
12
  const ReplicateCancelPrediction_PredictionStatusSchema = zod.z.enum([
13
13
  "starting",
@@ -22,24 +22,24 @@ const ReplicateCancelPrediction_PredictionMetricsSchema = zod.z.object({
22
22
  predict_time: zod.z.number().describe("CPU/GPU seconds used during model execution").nullable().optional()
23
23
  }).passthrough().describe("Metrics associated with a prediction.");
24
24
  const ReplicateCancelPredictionOutput = zod.z.object({
25
- id: zod.z.string().describe("Unique prediction identifier"),
25
+ id: zod.z.string().describe("Unique prediction identifier").nullable(),
26
26
  logs: zod.z.string().describe("The log output from the model").nullable().optional(),
27
27
  urls: ReplicateCancelPrediction_PredictionUrlsSchema.nullable(),
28
28
  error: zod.z.string().describe("An error string if the model status is 'failed'").nullable().optional(),
29
29
  input: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The prediction input"),
30
- model: zod.z.string().describe("The name of the model that created the prediction"),
30
+ model: zod.z.string().describe("The name of the model that created the prediction").nullable(),
31
31
  output: zod.z.unknown().describe("The prediction output, which can be any JSON-serializable value, depending on the model").nullable().optional(),
32
32
  source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),
33
33
  status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),
34
34
  metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),
35
35
  version: zod.z.string().describe("64-character model version ID").nullable().optional(),
36
36
  deadline: zod.z.string().describe("The absolute time at which the prediction will be automatically canceled if it has not completed").nullable().optional(),
37
- created_at: zod.z.string().describe("The time that the prediction was created"),
37
+ created_at: zod.z.string().describe("The time that the prediction was created").nullable(),
38
38
  deployment: zod.z.string().describe("The name of the deployment that created the prediction").nullable().optional(),
39
39
  started_at: zod.z.string().describe("The time that the model began the prediction").nullable().optional(),
40
40
  completed_at: zod.z.string().describe("The time that the model completed the prediction and all outputs were uploaded").nullable().optional(),
41
- data_removed: zod.z.boolean().describe("Whether the prediction output has been deleted")
42
- }).describe("Response schema for canceling a prediction.");
41
+ data_removed: zod.z.boolean().describe("Whether the prediction output has been deleted").nullable()
42
+ }).passthrough().describe("Response schema for canceling a prediction.");
43
43
  const replicateCancelPrediction = require_action.action("REPLICATE_CANCEL_PREDICTION", {
44
44
  slug: "replicate-cancel-prediction",
45
45
  name: "Cancel Prediction",
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-prediction.cjs","names":["z","action"],"sources":["../../src/actions/cancel-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCancelPredictionInput: z.ZodTypeAny = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to cancel\"),\n}).describe(\"Request schema for canceling a prediction.\");\nconst ReplicateCancelPrediction_PredictionUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\"),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\"),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateCancelPrediction_PredictionSourceSchema: z.ZodTypeAny = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateCancelPrediction_PredictionStatusSchema: z.ZodTypeAny = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateCancelPrediction_PredictionMetricsSchema: z.ZodTypeAny = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateCancelPredictionOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique prediction identifier\"),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateCancelPrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\"),\n output: z.unknown().describe(\"The prediction output, which can be any JSON-serializable value, depending on the model\").nullable().optional(),\n source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\"),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\"),\n}).describe(\"Response schema for canceling a prediction.\");\n\nexport const replicateCancelPrediction = action(\"REPLICATE_CANCEL_PREDICTION\", {\n slug: \"replicate-cancel-prediction\",\n name: \"Cancel Prediction\",\n description: \"Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.\",\n input: ReplicateCancelPredictionInput,\n output: ReplicateCancelPredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACzE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACzE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,kSAAkS;AAC9S,MAAM,mDAAiEA,IAAAA,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAChI,MAAM,mDAAiEA,IAAAA,EAAE,KAAK;CAAC;CAAY;CAAc;CAAa;CAAU;CAAY;AAAS,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAC1L,MAAM,oDAAkEA,IAAAA,EAAE,OAAO;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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,CAAC,SAAS,6CAA6C;AAEzD,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-prediction.cjs","names":["z","action"],"sources":["../../src/actions/cancel-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCancelPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to cancel\"),\n}).describe(\"Request schema for canceling a prediction.\");\nconst ReplicateCancelPrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateCancelPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateCancelPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateCancelPrediction_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateCancelPredictionOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateCancelPrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.unknown().describe(\"The prediction output, which can be any JSON-serializable value, depending on the model\").nullable().optional(),\n source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for canceling a prediction.\");\n\nexport const replicateCancelPrediction = action(\"REPLICATE_CANCEL_PREDICTION\", {\n slug: \"replicate-cancel-prediction\",\n name: \"Cancel Prediction\",\n description: \"Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.\",\n input: ReplicateCancelPredictionInput,\n output: ReplicateCancelPredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACzE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAA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S;CACzF,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5I,QAAQ,iDAAiD,SAAS,CAAC,CAAC,SAAS;CAC7E,QAAQ,iDAAiD,SAAS;CAClE,SAAS,kDAAkD,SAAS,CAAC,CAAC,SAAS;CAC/E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,49 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/cancel-prediction.d.ts
4
- declare const ReplicateCancelPredictionInput: z.ZodTypeAny;
5
- declare const ReplicateCancelPredictionOutput: z.ZodTypeAny;
6
- declare const replicateCancelPrediction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateCancelPredictionInput: z.ZodObject<{
5
+ prediction_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ReplicateCancelPredictionOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ urls: z.ZodNullable<z.ZodObject<{
11
+ get: z.ZodNullable<z.ZodString>;
12
+ web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ cancel: z.ZodNullable<z.ZodString>;
14
+ stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$loose>>;
16
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18
+ model: z.ZodNullable<z.ZodString>;
19
+ output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
20
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
21
+ web: "web";
22
+ api: "api";
23
+ }>>>;
24
+ status: z.ZodNullable<z.ZodEnum<{
25
+ starting: "starting";
26
+ processing: "processing";
27
+ succeeded: "succeeded";
28
+ failed: "failed";
29
+ canceled: "canceled";
30
+ aborted: "aborted";
31
+ }>>;
32
+ metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
+ total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ }, z.core.$loose>>>;
36
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ created_at: z.ZodNullable<z.ZodString>;
39
+ deployment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ data_removed: z.ZodNullable<z.ZodBoolean>;
43
+ }, z.core.$loose>;
44
+ declare const replicateCancelPrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
45
+ prediction_id: string;
46
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
47
  //#endregion
8
48
  export { replicateCancelPrediction };
9
49
  //# sourceMappingURL=cancel-prediction.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-prediction.d.cts","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEU;AAAA,cAa5C,+BAAA,EAAiC,CAAA,CAAE,UAkBU;AAAA,cAE7C,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"cancel-prediction.d.cts","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAe9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB/B,yBAAA,gCAAyB,wBAAA"}
@@ -1,9 +1,49 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/cancel-prediction.d.ts
4
- declare const ReplicateCancelPredictionInput: z.ZodTypeAny;
5
- declare const ReplicateCancelPredictionOutput: z.ZodTypeAny;
6
- declare const replicateCancelPrediction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateCancelPredictionInput: z.ZodObject<{
5
+ prediction_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ReplicateCancelPredictionOutput: z.ZodObject<{
8
+ id: z.ZodNullable<z.ZodString>;
9
+ logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ urls: z.ZodNullable<z.ZodObject<{
11
+ get: z.ZodNullable<z.ZodString>;
12
+ web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ cancel: z.ZodNullable<z.ZodString>;
14
+ stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ }, z.core.$loose>>;
16
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
18
+ model: z.ZodNullable<z.ZodString>;
19
+ output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
20
+ source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
21
+ web: "web";
22
+ api: "api";
23
+ }>>>;
24
+ status: z.ZodNullable<z.ZodEnum<{
25
+ starting: "starting";
26
+ processing: "processing";
27
+ succeeded: "succeeded";
28
+ failed: "failed";
29
+ canceled: "canceled";
30
+ aborted: "aborted";
31
+ }>>;
32
+ metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
+ total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ }, z.core.$loose>>>;
36
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ created_at: z.ZodNullable<z.ZodString>;
39
+ deployment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ data_removed: z.ZodNullable<z.ZodBoolean>;
43
+ }, z.core.$loose>;
44
+ declare const replicateCancelPrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
45
+ prediction_id: string;
46
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
47
  //#endregion
8
48
  export { replicateCancelPrediction };
9
49
  //# sourceMappingURL=cancel-prediction.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-prediction.d.mts","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAEU;AAAA,cAa5C,+BAAA,EAAiC,CAAA,CAAE,UAkBU;AAAA,cAE7C,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"cancel-prediction.d.mts","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAe9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB/B,yBAAA,gCAAyB,wBAAA"}
@@ -3,11 +3,11 @@ import { z } from "zod";
3
3
  //#region src/actions/cancel-prediction.ts
4
4
  const ReplicateCancelPredictionInput = z.object({ prediction_id: z.string().describe("The ID of the prediction to cancel") }).describe("Request schema for canceling a prediction.");
5
5
  const ReplicateCancelPrediction_PredictionUrlsSchema = z.object({
6
- get: z.string().describe("API endpoint URL to get the prediction details"),
6
+ get: z.string().describe("API endpoint URL to get the prediction details").nullable(),
7
7
  web: z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
8
- cancel: z.string().describe("API endpoint URL to cancel the prediction"),
8
+ cancel: z.string().describe("API endpoint URL to cancel the prediction").nullable(),
9
9
  stream: z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
10
- }).describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
10
+ }).passthrough().describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
11
11
  const ReplicateCancelPrediction_PredictionSourceSchema = z.enum(["web", "api"]).describe("Source of a prediction.");
12
12
  const ReplicateCancelPrediction_PredictionStatusSchema = z.enum([
13
13
  "starting",
@@ -27,24 +27,24 @@ const replicateCancelPrediction = action("REPLICATE_CANCEL_PREDICTION", {
27
27
  description: "Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.",
28
28
  input: ReplicateCancelPredictionInput,
29
29
  output: z.object({
30
- id: z.string().describe("Unique prediction identifier"),
30
+ id: z.string().describe("Unique prediction identifier").nullable(),
31
31
  logs: z.string().describe("The log output from the model").nullable().optional(),
32
32
  urls: ReplicateCancelPrediction_PredictionUrlsSchema.nullable(),
33
33
  error: z.string().describe("An error string if the model status is 'failed'").nullable().optional(),
34
34
  input: z.record(z.string(), z.unknown()).describe("The prediction input"),
35
- model: z.string().describe("The name of the model that created the prediction"),
35
+ model: z.string().describe("The name of the model that created the prediction").nullable(),
36
36
  output: z.unknown().describe("The prediction output, which can be any JSON-serializable value, depending on the model").nullable().optional(),
37
37
  source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),
38
38
  status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),
39
39
  metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),
40
40
  version: z.string().describe("64-character model version ID").nullable().optional(),
41
41
  deadline: z.string().describe("The absolute time at which the prediction will be automatically canceled if it has not completed").nullable().optional(),
42
- created_at: z.string().describe("The time that the prediction was created"),
42
+ created_at: z.string().describe("The time that the prediction was created").nullable(),
43
43
  deployment: z.string().describe("The name of the deployment that created the prediction").nullable().optional(),
44
44
  started_at: z.string().describe("The time that the model began the prediction").nullable().optional(),
45
45
  completed_at: z.string().describe("The time that the model completed the prediction and all outputs were uploaded").nullable().optional(),
46
- data_removed: z.boolean().describe("Whether the prediction output has been deleted")
47
- }).describe("Response schema for canceling a prediction.")
46
+ data_removed: z.boolean().describe("Whether the prediction output has been deleted").nullable()
47
+ }).passthrough().describe("Response schema for canceling a prediction.")
48
48
  });
49
49
  //#endregion
50
50
  export { replicateCancelPrediction };
@@ -1 +1 @@
1
- {"version":3,"file":"cancel-prediction.mjs","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCancelPredictionInput: z.ZodTypeAny = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to cancel\"),\n}).describe(\"Request schema for canceling a prediction.\");\nconst ReplicateCancelPrediction_PredictionUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\"),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\"),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateCancelPrediction_PredictionSourceSchema: z.ZodTypeAny = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateCancelPrediction_PredictionStatusSchema: z.ZodTypeAny = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateCancelPrediction_PredictionMetricsSchema: z.ZodTypeAny = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateCancelPredictionOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique prediction identifier\"),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateCancelPrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\"),\n output: z.unknown().describe(\"The prediction output, which can be any JSON-serializable value, depending on the model\").nullable().optional(),\n source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\"),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\"),\n}).describe(\"Response schema for canceling a prediction.\");\n\nexport const replicateCancelPrediction = action(\"REPLICATE_CANCEL_PREDICTION\", {\n slug: \"replicate-cancel-prediction\",\n name: \"Cancel Prediction\",\n description: \"Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.\",\n input: ReplicateCancelPredictionInput,\n output: ReplicateCancelPredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C,EAAE,OAAO,EACnE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACzE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,iDAA+D,EAAE,OAAO;CAC5E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CA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AAS;EAC7E,QAAQ,iDAAiD,SAAS;EAClE,SAAS,kDAAkD,SAAS,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;EAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD;CACrF,CAAC,CAAC,CAAC,SAAS,6CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"cancel-prediction.mjs","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCancelPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to cancel\"),\n}).describe(\"Request schema for canceling a prediction.\");\nconst ReplicateCancelPrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateCancelPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateCancelPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateCancelPrediction_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateCancelPredictionOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateCancelPrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.unknown().describe(\"The prediction output, which can be any JSON-serializable value, depending on the model\").nullable().optional(),\n source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for canceling a prediction.\");\n\nexport const replicateCancelPrediction = action(\"REPLICATE_CANCEL_PREDICTION\", {\n slug: \"replicate-cancel-prediction\",\n name: \"Cancel Prediction\",\n description: \"Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.\",\n input: ReplicateCancelPredictionInput,\n output: ReplicateCancelPredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,EACrD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACzE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kSAAkS;AAC5T,MAAM,mDAAmD,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAClH,MAAM,mDAAmD,EAAE,KAAK;CAAC;CAAY;CAAc;CAAa;CAAU;CAAY;AAAS,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAC5K,MAAM,oDAAoD,EAAE,OAAO;CACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAqBjE,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAzB6C,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AC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
@@ -3,26 +3,26 @@ let zod = require("zod");
3
3
  //#region src/actions/collections-get.ts
4
4
  const ReplicateCollectionsGetInput = zod.z.object({ collection_slug: zod.z.string().describe("The slug identifier of the collection, e.g., 'super-resolution' or 'text-to-image'") }).describe("Request schema for retrieving a specific collection of models by slug.");
5
5
  const ReplicateCollectionsGet_ModelInCollectionSchema = zod.z.object({
6
- url: zod.z.string().describe("The web URL to the model on Replicate"),
7
- name: zod.z.string().describe("The model's identifier name"),
8
- owner: zod.z.string().describe("The username of the user or organization that owns the model"),
6
+ url: zod.z.string().describe("The web URL to the model on Replicate").nullable(),
7
+ name: zod.z.string().describe("The model's identifier name").nullable(),
8
+ owner: zod.z.string().describe("The username of the user or organization that owns the model").nullable(),
9
9
  paper_url: zod.z.string().describe("Link to associated research documentation").nullable().optional(),
10
- run_count: zod.z.number().int().describe("The number of times the model has been run"),
10
+ run_count: zod.z.number().int().describe("The number of times the model has been run").nullable(),
11
11
  github_url: zod.z.string().describe("Link to the model's source code repository").nullable().optional(),
12
- visibility: zod.z.string().describe("Either 'public' or 'private'"),
12
+ visibility: zod.z.string().describe("Either 'public' or 'private'").nullable(),
13
13
  description: zod.z.string().describe("A description of the model").nullable().optional(),
14
14
  license_url: zod.z.string().describe("Link to the model's license").nullable().optional(),
15
15
  latest_version: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The model's most recently pushed version containing schema and metadata").nullable().optional(),
16
16
  cover_image_url: zod.z.string().describe("An HTTPS URL for an image file").nullable().optional(),
17
17
  default_example: zod.z.record(zod.z.string(), zod.z.unknown()).describe("A prediction created with this model").nullable().optional()
18
- }).describe("Representation of a model within a collection.");
18
+ }).passthrough().describe("Representation of a model within a collection.");
19
19
  const ReplicateCollectionsGetOutput = zod.z.object({
20
- name: zod.z.string().describe("Display name of the collection"),
21
- slug: zod.z.string().describe("URL-friendly identifier for the collection"),
20
+ name: zod.z.string().describe("Display name of the collection").nullable(),
21
+ slug: zod.z.string().describe("URL-friendly identifier for the collection").nullable(),
22
22
  models: zod.z.array(ReplicateCollectionsGet_ModelInCollectionSchema).describe("List of model objects belonging to this collection"),
23
- description: zod.z.string().describe("Brief one-line summary of the collection's purpose"),
23
+ description: zod.z.string().describe("Brief one-line summary of the collection's purpose").nullable(),
24
24
  full_description: zod.z.string().describe("Detailed markdown-formatted description with overview and features").nullable().optional()
25
- }).describe("Response schema for collections.get: Detailed information about a collection.");
25
+ }).passthrough().describe("Response schema for collections.get: Detailed information about a collection.");
26
26
  const replicateCollectionsGet = require_action.action("REPLICATE_COLLECTIONS_GET", {
27
27
  slug: "replicate-collections-get",
28
28
  name: "Get model collection",
@@ -1 +1 @@
1
- {"version":3,"file":"collections-get.cjs","names":["z","action"],"sources":["../../src/actions/collections-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCollectionsGetInput: z.ZodTypeAny = z.object({\n collection_slug: z.string().describe(\"The slug identifier of the collection, e.g., 'super-resolution' or 'text-to-image'\"),\n}).describe(\"Request schema for retrieving a specific collection of models by slug.\");\nconst ReplicateCollectionsGet_ModelInCollectionSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The web URL to the model on Replicate\"),\n name: z.string().describe(\"The model's identifier name\"),\n owner: z.string().describe(\"The username of the user or organization that owns the model\"),\n paper_url: z.string().describe(\"Link to associated research documentation\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\"),\n github_url: z.string().describe(\"Link to the model's source code repository\").nullable().optional(),\n visibility: z.string().describe(\"Either 'public' or 'private'\"),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n license_url: z.string().describe(\"Link to the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's most recently pushed version containing schema and metadata\").nullable().optional(),\n cover_image_url: z.string().describe(\"An HTTPS URL for an image file\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"A prediction created with this model\").nullable().optional(),\n}).describe(\"Representation of a model within a collection.\");\nexport const ReplicateCollectionsGetOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Display name of the collection\"),\n slug: z.string().describe(\"URL-friendly identifier for the collection\"),\n models: z.array(ReplicateCollectionsGet_ModelInCollectionSchema).describe(\"List of model objects belonging to this collection\"),\n description: z.string().describe(\"Brief one-line summary of the collection's purpose\"),\n full_description: z.string().describe(\"Detailed markdown-formatted description with overview and features\").nullable().optional(),\n}).describe(\"Response schema for collections.get: Detailed information about a collection.\");\n\nexport const replicateCollectionsGet = action(\"REPLICATE_COLLECTIONS_GET\", {\n slug: \"replicate-collections-get\",\n name: \"Get model collection\",\n description: \"Tool to get a specific collection of models by its slug. Use when you need detailed information about a collection and its models.\",\n input: ReplicateCollectionsGetInput,\n output: ReplicateCollectionsGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO,EACjE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,EAC3H,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,kDAAgEA,IAAAA,EAAE,OAAO;CAC7E,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;CAChE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D;CACzF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8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collections-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCollectionsGetInput = z.object({\n collection_slug: z.string().describe(\"The slug identifier of the collection, e.g., 'super-resolution' or 'text-to-image'\"),\n}).describe(\"Request schema for retrieving a specific collection of models by slug.\");\nconst ReplicateCollectionsGet_ModelInCollectionSchema = z.object({\n url: z.string().describe(\"The web URL to the model on Replicate\").nullable(),\n name: z.string().describe(\"The model's identifier name\").nullable(),\n owner: z.string().describe(\"The username of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"Link to associated research documentation\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"Link to the model's source code repository\").nullable().optional(),\n visibility: z.string().describe(\"Either 'public' or 'private'\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n license_url: z.string().describe(\"Link to the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's most recently pushed version containing schema and metadata\").nullable().optional(),\n cover_image_url: z.string().describe(\"An HTTPS URL for an image file\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"A prediction created with this model\").nullable().optional(),\n}).passthrough().describe(\"Representation of a model within a collection.\");\nexport const ReplicateCollectionsGetOutput = z.object({\n name: z.string().describe(\"Display name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n models: z.array(ReplicateCollectionsGet_ModelInCollectionSchema).describe(\"List of model objects belonging to this collection\"),\n description: z.string().describe(\"Brief one-line summary of the collection's purpose\").nullable(),\n full_description: z.string().describe(\"Detailed markdown-formatted description with overview and features\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collections.get: Detailed information about a collection.\");\n\nexport const replicateCollectionsGet = action(\"REPLICATE_COLLECTIONS_GET\", {\n slug: \"replicate-collections-get\",\n name: \"Get model collection\",\n description: \"Tool to get a specific collection of models by its slug. Use when you need detailed information about a collection and its models.\",\n input: ReplicateCollect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C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,oDAAoD;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/collections-get.d.ts
4
- declare const ReplicateCollectionsGetInput: z.ZodTypeAny;
5
- declare const ReplicateCollectionsGetOutput: z.ZodTypeAny;
6
- declare const replicateCollectionsGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateCollectionsGetInput: z.ZodObject<{
5
+ collection_slug: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ReplicateCollectionsGetOutput: z.ZodObject<{
8
+ name: z.ZodNullable<z.ZodString>;
9
+ slug: z.ZodNullable<z.ZodString>;
10
+ models: z.ZodArray<z.ZodObject<{
11
+ url: z.ZodNullable<z.ZodString>;
12
+ name: z.ZodNullable<z.ZodString>;
13
+ owner: z.ZodNullable<z.ZodString>;
14
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ run_count: z.ZodNullable<z.ZodNumber>;
16
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ visibility: z.ZodNullable<z.ZodString>;
18
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ license_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
23
+ }, z.core.$loose>>;
24
+ description: z.ZodNullable<z.ZodString>;
25
+ full_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>;
27
+ declare const replicateCollectionsGet: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ collection_slug: string;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { replicateCollectionsGet };
9
32
  //# sourceMappingURL=collections-get.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collections-get.d.cts","names":[],"sources":["../../src/actions/collections-get.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEwC;AAAA,cAexE,6BAAA,EAA+B,CAAA,CAAE,UAM8C;AAAA,cAE/E,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"collections-get.d.cts","names":[],"sources":["../../src/actions/collections-get.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAiB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAQ7B,uBAAA,gCAAuB,wBAAA"}
@@ -1,9 +1,32 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/collections-get.d.ts
4
- declare const ReplicateCollectionsGetInput: z.ZodTypeAny;
5
- declare const ReplicateCollectionsGetOutput: z.ZodTypeAny;
6
- declare const replicateCollectionsGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateCollectionsGetInput: z.ZodObject<{
5
+ collection_slug: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const ReplicateCollectionsGetOutput: z.ZodObject<{
8
+ name: z.ZodNullable<z.ZodString>;
9
+ slug: z.ZodNullable<z.ZodString>;
10
+ models: z.ZodArray<z.ZodObject<{
11
+ url: z.ZodNullable<z.ZodString>;
12
+ name: z.ZodNullable<z.ZodString>;
13
+ owner: z.ZodNullable<z.ZodString>;
14
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
15
+ run_count: z.ZodNullable<z.ZodNumber>;
16
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ visibility: z.ZodNullable<z.ZodString>;
18
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ license_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
+ cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
23
+ }, z.core.$loose>>;
24
+ description: z.ZodNullable<z.ZodString>;
25
+ full_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>;
27
+ declare const replicateCollectionsGet: import("@keystrokehq/action").WorkflowActionDefinition<{
28
+ collection_slug: string;
29
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
30
  //#endregion
8
31
  export { replicateCollectionsGet };
9
32
  //# sourceMappingURL=collections-get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"collections-get.d.mts","names":[],"sources":["../../src/actions/collections-get.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAEwC;AAAA,cAexE,6BAAA,EAA+B,CAAA,CAAE,UAM8C;AAAA,cAE/E,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"collections-get.d.mts","names":[],"sources":["../../src/actions/collections-get.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;cAiB5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAQ7B,uBAAA,gCAAuB,wBAAA"}