@keystrokehq/replicate 0.1.0

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 (282) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/account-get.cjs +21 -0
  7. package/dist/actions/account-get.cjs.map +1 -0
  8. package/dist/actions/account-get.d.cts +9 -0
  9. package/dist/actions/account-get.d.cts.map +1 -0
  10. package/dist/actions/account-get.d.mts +9 -0
  11. package/dist/actions/account-get.d.mts.map +1 -0
  12. package/dist/actions/account-get.mjs +18 -0
  13. package/dist/actions/account-get.mjs.map +1 -0
  14. package/dist/actions/cancel-prediction.cjs +53 -0
  15. package/dist/actions/cancel-prediction.cjs.map +1 -0
  16. package/dist/actions/cancel-prediction.d.cts +9 -0
  17. package/dist/actions/cancel-prediction.d.cts.map +1 -0
  18. package/dist/actions/cancel-prediction.d.mts +9 -0
  19. package/dist/actions/cancel-prediction.d.mts.map +1 -0
  20. package/dist/actions/cancel-prediction.mjs +52 -0
  21. package/dist/actions/cancel-prediction.mjs.map +1 -0
  22. package/dist/actions/collections-get.cjs +36 -0
  23. package/dist/actions/collections-get.cjs.map +1 -0
  24. package/dist/actions/collections-get.d.cts +9 -0
  25. package/dist/actions/collections-get.d.cts.map +1 -0
  26. package/dist/actions/collections-get.d.mts +9 -0
  27. package/dist/actions/collections-get.d.mts.map +1 -0
  28. package/dist/actions/collections-get.mjs +35 -0
  29. package/dist/actions/collections-get.mjs.map +1 -0
  30. package/dist/actions/collections-list.cjs +25 -0
  31. package/dist/actions/collections-list.cjs.map +1 -0
  32. package/dist/actions/collections-list.d.cts +9 -0
  33. package/dist/actions/collections-list.d.cts.map +1 -0
  34. package/dist/actions/collections-list.d.mts +9 -0
  35. package/dist/actions/collections-list.d.mts.map +1 -0
  36. package/dist/actions/collections-list.mjs +24 -0
  37. package/dist/actions/collections-list.mjs.map +1 -0
  38. package/dist/actions/create-model.cjs +42 -0
  39. package/dist/actions/create-model.cjs.map +1 -0
  40. package/dist/actions/create-model.d.cts +9 -0
  41. package/dist/actions/create-model.d.cts.map +1 -0
  42. package/dist/actions/create-model.d.mts +9 -0
  43. package/dist/actions/create-model.d.mts.map +1 -0
  44. package/dist/actions/create-model.mjs +39 -0
  45. package/dist/actions/create-model.mjs.map +1 -0
  46. package/dist/actions/create-prediction.cjs +47 -0
  47. package/dist/actions/create-prediction.cjs.map +1 -0
  48. package/dist/actions/create-prediction.d.cts +9 -0
  49. package/dist/actions/create-prediction.d.cts.map +1 -0
  50. package/dist/actions/create-prediction.d.mts +9 -0
  51. package/dist/actions/create-prediction.d.mts.map +1 -0
  52. package/dist/actions/create-prediction.mjs +46 -0
  53. package/dist/actions/create-prediction.mjs.map +1 -0
  54. package/dist/actions/deployments-create.cjs +47 -0
  55. package/dist/actions/deployments-create.cjs.map +1 -0
  56. package/dist/actions/deployments-create.d.cts +9 -0
  57. package/dist/actions/deployments-create.d.cts.map +1 -0
  58. package/dist/actions/deployments-create.d.mts +9 -0
  59. package/dist/actions/deployments-create.d.mts.map +1 -0
  60. package/dist/actions/deployments-create.mjs +46 -0
  61. package/dist/actions/deployments-create.mjs.map +1 -0
  62. package/dist/actions/deployments-delete.cjs +22 -0
  63. package/dist/actions/deployments-delete.cjs.map +1 -0
  64. package/dist/actions/deployments-delete.d.cts +9 -0
  65. package/dist/actions/deployments-delete.d.cts.map +1 -0
  66. package/dist/actions/deployments-delete.d.mts +9 -0
  67. package/dist/actions/deployments-delete.d.mts.map +1 -0
  68. package/dist/actions/deployments-delete.mjs +19 -0
  69. package/dist/actions/deployments-delete.mjs.map +1 -0
  70. package/dist/actions/deployments-get.cjs +43 -0
  71. package/dist/actions/deployments-get.cjs.map +1 -0
  72. package/dist/actions/deployments-get.d.cts +9 -0
  73. package/dist/actions/deployments-get.d.cts.map +1 -0
  74. package/dist/actions/deployments-get.d.mts +9 -0
  75. package/dist/actions/deployments-get.d.mts.map +1 -0
  76. package/dist/actions/deployments-get.mjs +42 -0
  77. package/dist/actions/deployments-get.mjs.map +1 -0
  78. package/dist/actions/deployments-list.cjs +45 -0
  79. package/dist/actions/deployments-list.cjs.map +1 -0
  80. package/dist/actions/deployments-list.d.cts +9 -0
  81. package/dist/actions/deployments-list.d.cts.map +1 -0
  82. package/dist/actions/deployments-list.d.mts +9 -0
  83. package/dist/actions/deployments-list.d.mts.map +1 -0
  84. package/dist/actions/deployments-list.mjs +44 -0
  85. package/dist/actions/deployments-list.mjs.map +1 -0
  86. package/dist/actions/files-create.cjs +40 -0
  87. package/dist/actions/files-create.cjs.map +1 -0
  88. package/dist/actions/files-create.d.cts +9 -0
  89. package/dist/actions/files-create.d.cts.map +1 -0
  90. package/dist/actions/files-create.d.mts +9 -0
  91. package/dist/actions/files-create.d.mts.map +1 -0
  92. package/dist/actions/files-create.mjs +39 -0
  93. package/dist/actions/files-create.mjs.map +1 -0
  94. package/dist/actions/files-delete.cjs +19 -0
  95. package/dist/actions/files-delete.cjs.map +1 -0
  96. package/dist/actions/files-delete.d.cts +9 -0
  97. package/dist/actions/files-delete.d.cts.map +1 -0
  98. package/dist/actions/files-delete.d.mts +9 -0
  99. package/dist/actions/files-delete.d.mts.map +1 -0
  100. package/dist/actions/files-delete.mjs +16 -0
  101. package/dist/actions/files-delete.mjs.map +1 -0
  102. package/dist/actions/files-get.cjs +32 -0
  103. package/dist/actions/files-get.cjs.map +1 -0
  104. package/dist/actions/files-get.d.cts +9 -0
  105. package/dist/actions/files-get.d.cts.map +1 -0
  106. package/dist/actions/files-get.d.mts +9 -0
  107. package/dist/actions/files-get.d.mts.map +1 -0
  108. package/dist/actions/files-get.mjs +31 -0
  109. package/dist/actions/files-get.mjs.map +1 -0
  110. package/dist/actions/files-list.cjs +37 -0
  111. package/dist/actions/files-list.cjs.map +1 -0
  112. package/dist/actions/files-list.d.cts +9 -0
  113. package/dist/actions/files-list.d.cts.map +1 -0
  114. package/dist/actions/files-list.d.mts +9 -0
  115. package/dist/actions/files-list.d.mts.map +1 -0
  116. package/dist/actions/files-list.mjs +36 -0
  117. package/dist/actions/files-list.mjs.map +1 -0
  118. package/dist/actions/get-prediction.cjs +57 -0
  119. package/dist/actions/get-prediction.cjs.map +1 -0
  120. package/dist/actions/get-prediction.d.cts +9 -0
  121. package/dist/actions/get-prediction.d.cts.map +1 -0
  122. package/dist/actions/get-prediction.d.mts +9 -0
  123. package/dist/actions/get-prediction.d.mts.map +1 -0
  124. package/dist/actions/get-prediction.mjs +56 -0
  125. package/dist/actions/get-prediction.mjs.map +1 -0
  126. package/dist/actions/hardware-list.cjs +20 -0
  127. package/dist/actions/hardware-list.cjs.map +1 -0
  128. package/dist/actions/hardware-list.d.cts +9 -0
  129. package/dist/actions/hardware-list.d.cts.map +1 -0
  130. package/dist/actions/hardware-list.d.mts +9 -0
  131. package/dist/actions/hardware-list.d.mts.map +1 -0
  132. package/dist/actions/hardware-list.mjs +19 -0
  133. package/dist/actions/hardware-list.mjs.map +1 -0
  134. package/dist/actions/index.cjs +63 -0
  135. package/dist/actions/index.d.cts +32 -0
  136. package/dist/actions/index.d.mts +32 -0
  137. package/dist/actions/index.mjs +32 -0
  138. package/dist/actions/models-examples-list.cjs +53 -0
  139. package/dist/actions/models-examples-list.cjs.map +1 -0
  140. package/dist/actions/models-examples-list.d.cts +9 -0
  141. package/dist/actions/models-examples-list.d.cts.map +1 -0
  142. package/dist/actions/models-examples-list.d.mts +9 -0
  143. package/dist/actions/models-examples-list.d.mts.map +1 -0
  144. package/dist/actions/models-examples-list.mjs +52 -0
  145. package/dist/actions/models-examples-list.mjs.map +1 -0
  146. package/dist/actions/models-get.cjs +98 -0
  147. package/dist/actions/models-get.cjs.map +1 -0
  148. package/dist/actions/models-get.d.cts +9 -0
  149. package/dist/actions/models-get.d.cts.map +1 -0
  150. package/dist/actions/models-get.d.mts +9 -0
  151. package/dist/actions/models-get.d.mts.map +1 -0
  152. package/dist/actions/models-get.mjs +97 -0
  153. package/dist/actions/models-get.mjs.map +1 -0
  154. package/dist/actions/models-list.cjs +44 -0
  155. package/dist/actions/models-list.cjs.map +1 -0
  156. package/dist/actions/models-list.d.cts +9 -0
  157. package/dist/actions/models-list.d.cts.map +1 -0
  158. package/dist/actions/models-list.d.mts +9 -0
  159. package/dist/actions/models-list.d.mts.map +1 -0
  160. package/dist/actions/models-list.mjs +43 -0
  161. package/dist/actions/models-list.mjs.map +1 -0
  162. package/dist/actions/models-predictions-create.cjs +53 -0
  163. package/dist/actions/models-predictions-create.cjs.map +1 -0
  164. package/dist/actions/models-predictions-create.d.cts +9 -0
  165. package/dist/actions/models-predictions-create.d.cts.map +1 -0
  166. package/dist/actions/models-predictions-create.d.mts +9 -0
  167. package/dist/actions/models-predictions-create.d.mts.map +1 -0
  168. package/dist/actions/models-predictions-create.mjs +52 -0
  169. package/dist/actions/models-predictions-create.mjs.map +1 -0
  170. package/dist/actions/models-readme-get.cjs +19 -0
  171. package/dist/actions/models-readme-get.cjs.map +1 -0
  172. package/dist/actions/models-readme-get.d.cts +9 -0
  173. package/dist/actions/models-readme-get.d.cts.map +1 -0
  174. package/dist/actions/models-readme-get.d.mts +9 -0
  175. package/dist/actions/models-readme-get.d.mts.map +1 -0
  176. package/dist/actions/models-readme-get.mjs +16 -0
  177. package/dist/actions/models-readme-get.mjs.map +1 -0
  178. package/dist/actions/models-versions-get.cjs +25 -0
  179. package/dist/actions/models-versions-get.cjs.map +1 -0
  180. package/dist/actions/models-versions-get.d.cts +9 -0
  181. package/dist/actions/models-versions-get.d.cts.map +1 -0
  182. package/dist/actions/models-versions-get.d.mts +9 -0
  183. package/dist/actions/models-versions-get.d.mts.map +1 -0
  184. package/dist/actions/models-versions-get.mjs +22 -0
  185. package/dist/actions/models-versions-get.mjs.map +1 -0
  186. package/dist/actions/models-versions-list.cjs +30 -0
  187. package/dist/actions/models-versions-list.cjs.map +1 -0
  188. package/dist/actions/models-versions-list.d.cts +9 -0
  189. package/dist/actions/models-versions-list.d.cts.map +1 -0
  190. package/dist/actions/models-versions-list.d.mts +9 -0
  191. package/dist/actions/models-versions-list.d.mts.map +1 -0
  192. package/dist/actions/models-versions-list.mjs +29 -0
  193. package/dist/actions/models-versions-list.mjs.map +1 -0
  194. package/dist/actions/predictions-create.cjs +54 -0
  195. package/dist/actions/predictions-create.cjs.map +1 -0
  196. package/dist/actions/predictions-create.d.cts +9 -0
  197. package/dist/actions/predictions-create.d.cts.map +1 -0
  198. package/dist/actions/predictions-create.d.mts +9 -0
  199. package/dist/actions/predictions-create.d.mts.map +1 -0
  200. package/dist/actions/predictions-create.mjs +53 -0
  201. package/dist/actions/predictions-create.mjs.map +1 -0
  202. package/dist/actions/predictions-list.cjs +57 -0
  203. package/dist/actions/predictions-list.cjs.map +1 -0
  204. package/dist/actions/predictions-list.d.cts +9 -0
  205. package/dist/actions/predictions-list.d.cts.map +1 -0
  206. package/dist/actions/predictions-list.d.mts +9 -0
  207. package/dist/actions/predictions-list.d.mts.map +1 -0
  208. package/dist/actions/predictions-list.mjs +56 -0
  209. package/dist/actions/predictions-list.mjs.map +1 -0
  210. package/dist/actions/search.cjs +98 -0
  211. package/dist/actions/search.cjs.map +1 -0
  212. package/dist/actions/search.d.cts +9 -0
  213. package/dist/actions/search.d.cts.map +1 -0
  214. package/dist/actions/search.d.mts +9 -0
  215. package/dist/actions/search.d.mts.map +1 -0
  216. package/dist/actions/search.mjs +97 -0
  217. package/dist/actions/search.mjs.map +1 -0
  218. package/dist/actions/trainings-cancel.cjs +36 -0
  219. package/dist/actions/trainings-cancel.cjs.map +1 -0
  220. package/dist/actions/trainings-cancel.d.cts +9 -0
  221. package/dist/actions/trainings-cancel.d.cts.map +1 -0
  222. package/dist/actions/trainings-cancel.d.mts +9 -0
  223. package/dist/actions/trainings-cancel.d.mts.map +1 -0
  224. package/dist/actions/trainings-cancel.mjs +35 -0
  225. package/dist/actions/trainings-cancel.mjs.map +1 -0
  226. package/dist/actions/trainings-create.cjs +53 -0
  227. package/dist/actions/trainings-create.cjs.map +1 -0
  228. package/dist/actions/trainings-create.d.cts +9 -0
  229. package/dist/actions/trainings-create.d.cts.map +1 -0
  230. package/dist/actions/trainings-create.d.mts +9 -0
  231. package/dist/actions/trainings-create.d.mts.map +1 -0
  232. package/dist/actions/trainings-create.mjs +52 -0
  233. package/dist/actions/trainings-create.mjs.map +1 -0
  234. package/dist/actions/trainings-list.cjs +48 -0
  235. package/dist/actions/trainings-list.cjs.map +1 -0
  236. package/dist/actions/trainings-list.d.cts +9 -0
  237. package/dist/actions/trainings-list.d.cts.map +1 -0
  238. package/dist/actions/trainings-list.d.mts +9 -0
  239. package/dist/actions/trainings-list.d.mts.map +1 -0
  240. package/dist/actions/trainings-list.mjs +47 -0
  241. package/dist/actions/trainings-list.mjs.map +1 -0
  242. package/dist/actions/update-models.cjs +39 -0
  243. package/dist/actions/update-models.cjs.map +1 -0
  244. package/dist/actions/update-models.d.cts +9 -0
  245. package/dist/actions/update-models.d.cts.map +1 -0
  246. package/dist/actions/update-models.d.mts +9 -0
  247. package/dist/actions/update-models.d.mts.map +1 -0
  248. package/dist/actions/update-models.mjs +36 -0
  249. package/dist/actions/update-models.mjs.map +1 -0
  250. package/dist/actions/webhooks-secret-get.cjs +16 -0
  251. package/dist/actions/webhooks-secret-get.cjs.map +1 -0
  252. package/dist/actions/webhooks-secret-get.d.cts +9 -0
  253. package/dist/actions/webhooks-secret-get.d.cts.map +1 -0
  254. package/dist/actions/webhooks-secret-get.d.mts +9 -0
  255. package/dist/actions/webhooks-secret-get.d.mts.map +1 -0
  256. package/dist/actions/webhooks-secret-get.mjs +13 -0
  257. package/dist/actions/webhooks-secret-get.mjs.map +1 -0
  258. package/dist/app.cjs +9 -0
  259. package/dist/app.cjs.map +1 -0
  260. package/dist/app.d.cts +5 -0
  261. package/dist/app.d.cts.map +1 -0
  262. package/dist/app.d.mts +5 -0
  263. package/dist/app.d.mts.map +1 -0
  264. package/dist/app.mjs +10 -0
  265. package/dist/app.mjs.map +1 -0
  266. package/dist/catalog.cjs +15 -0
  267. package/dist/catalog.cjs.map +1 -0
  268. package/dist/catalog.d.cts +14 -0
  269. package/dist/catalog.d.cts.map +1 -0
  270. package/dist/catalog.d.mts +14 -0
  271. package/dist/catalog.d.mts.map +1 -0
  272. package/dist/catalog.mjs +15 -0
  273. package/dist/catalog.mjs.map +1 -0
  274. package/dist/execute.cjs +18 -0
  275. package/dist/execute.cjs.map +1 -0
  276. package/dist/execute.mjs +18 -0
  277. package/dist/execute.mjs.map +1 -0
  278. package/dist/index.cjs +68 -0
  279. package/dist/index.d.cts +34 -0
  280. package/dist/index.d.mts +34 -0
  281. package/dist/index.mjs +35 -0
  282. package/package.json +49 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployments-get.cjs","names":["z","action"],"sources":["../../src/actions/deployments-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsGetInput: z.ZodTypeAny = z.object({\n deployment_name: z.string().describe(\"The name of the deployment\"),\n deployment_owner: z.string().describe(\"The name of the user or organization that owns the deployment\"),\n}).describe(\"Request schema for retrieving details of a specific deployment by owner and name.\");\nconst ReplicateDeploymentsGet_CreatedBySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Display name\").nullable().optional(),\n type: z.string().describe(\"Account type (e.g., 'organization' or user)\").nullable().optional(),\n username: z.string().describe(\"Account username\").nullable().optional(),\n avatar_url: z.string().describe(\"Profile image URL\").nullable().optional(),\n github_url: z.string().describe(\"GitHub profile link\").nullable().optional(),\n}).describe(\"User or organization that created the release.\");\nconst ReplicateDeploymentsGet_ConfigurationSchema: z.ZodTypeAny = z.object({\n hardware: z.string().describe(\"GPU/CPU SKU identifier\").nullable().optional(),\n max_instances: z.number().int().describe(\"Maximum running instances\").nullable().optional(),\n min_instances: z.number().int().describe(\"Minimum running instances\").nullable().optional(),\n}).describe(\"Hardware and scaling settings for the deployment.\");\nconst ReplicateDeploymentsGet_CurrentReleaseSchema: z.ZodTypeAny = z.object({\n model: z.string().describe(\"Full model identifier (e.g., 'stability-ai/sdxl')\").nullable().optional(),\n number: z.number().int().describe(\"Release version number (increments with updates)\").nullable().optional(),\n version: z.string().describe(\"The 64-character model version ID being deployed\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of release creation\").nullable().optional(),\n created_by: ReplicateDeploymentsGet_CreatedBySchema.nullable().optional(),\n configuration: ReplicateDeploymentsGet_ConfigurationSchema.nullable().optional(),\n}).describe(\"Configuration and metadata for the active deployment version.\");\nexport const ReplicateDeploymentsGetOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the deployment\").nullable().optional(),\n owner: z.string().describe(\"The name of the user or organization that owns the deployment\").nullable().optional(),\n current_release: ReplicateDeploymentsGet_CurrentReleaseSchema.nullable().optional(),\n}).describe(\"Response schema for deployments.get: Detailed information about the deployment.\");\n\nexport const replicateDeploymentsGet = action(\"REPLICATE_DEPLOYMENTS_GET\", {\n slug: \"replicate-deployments-get\",\n name: \"Get Deployment Details\",\n description: \"Tool to get deployment details by owner and name. Use when you need information about a specific deployment including its release configuration and hardware settings.\",\n input: ReplicateDeploymentsGetInput,\n output: ReplicateDeploymentsGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACjE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AACvG,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAM,0CAAwDA,IAAAA,EAAE,OAAO;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAY,wCAAwC,SAAS,CAAC,CAAC,SAAS;CACxE,eAAe,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAC3E,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChH,iBAAiB,6CAA6C,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAE7F,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/deployments-get.d.ts
4
+ declare const ReplicateDeploymentsGetInput: z.ZodTypeAny;
5
+ declare const ReplicateDeploymentsGetOutput: z.ZodTypeAny;
6
+ declare const replicateDeploymentsGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { replicateDeploymentsGet };
9
+ //# sourceMappingURL=deployments-get.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployments-get.d.cts","names":[],"sources":["../../src/actions/deployments-get.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAGmD;AAAA,cAqBnF,6BAAA,EAA+B,CAAA,CAAE,UAIgD;AAAA,cAEjF,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/deployments-get.d.ts
4
+ declare const ReplicateDeploymentsGetInput: z.ZodTypeAny;
5
+ declare const ReplicateDeploymentsGetOutput: z.ZodTypeAny;
6
+ declare const replicateDeploymentsGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { replicateDeploymentsGet };
9
+ //# sourceMappingURL=deployments-get.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployments-get.d.mts","names":[],"sources":["../../src/actions/deployments-get.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAGmD;AAAA,cAqBnF,6BAAA,EAA+B,CAAA,CAAE,UAIgD;AAAA,cAEjF,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,42 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/deployments-get.ts
4
+ const ReplicateDeploymentsGetInput = z.object({
5
+ deployment_name: z.string().describe("The name of the deployment"),
6
+ deployment_owner: z.string().describe("The name of the user or organization that owns the deployment")
7
+ }).describe("Request schema for retrieving details of a specific deployment by owner and name.");
8
+ const ReplicateDeploymentsGet_CreatedBySchema = z.object({
9
+ name: z.string().describe("Display name").nullable().optional(),
10
+ type: z.string().describe("Account type (e.g., 'organization' or user)").nullable().optional(),
11
+ username: z.string().describe("Account username").nullable().optional(),
12
+ avatar_url: z.string().describe("Profile image URL").nullable().optional(),
13
+ github_url: z.string().describe("GitHub profile link").nullable().optional()
14
+ }).describe("User or organization that created the release.");
15
+ const ReplicateDeploymentsGet_ConfigurationSchema = z.object({
16
+ hardware: z.string().describe("GPU/CPU SKU identifier").nullable().optional(),
17
+ max_instances: z.number().int().describe("Maximum running instances").nullable().optional(),
18
+ min_instances: z.number().int().describe("Minimum running instances").nullable().optional()
19
+ }).describe("Hardware and scaling settings for the deployment.");
20
+ const ReplicateDeploymentsGet_CurrentReleaseSchema = z.object({
21
+ model: z.string().describe("Full model identifier (e.g., 'stability-ai/sdxl')").nullable().optional(),
22
+ number: z.number().int().describe("Release version number (increments with updates)").nullable().optional(),
23
+ version: z.string().describe("The 64-character model version ID being deployed").nullable().optional(),
24
+ created_at: z.string().describe("ISO 8601 timestamp of release creation").nullable().optional(),
25
+ created_by: ReplicateDeploymentsGet_CreatedBySchema.nullable().optional(),
26
+ configuration: ReplicateDeploymentsGet_ConfigurationSchema.nullable().optional()
27
+ }).describe("Configuration and metadata for the active deployment version.");
28
+ const replicateDeploymentsGet = action("REPLICATE_DEPLOYMENTS_GET", {
29
+ slug: "replicate-deployments-get",
30
+ name: "Get Deployment Details",
31
+ description: "Tool to get deployment details by owner and name. Use when you need information about a specific deployment including its release configuration and hardware settings.",
32
+ input: ReplicateDeploymentsGetInput,
33
+ output: z.object({
34
+ name: z.string().describe("The name of the deployment").nullable().optional(),
35
+ owner: z.string().describe("The name of the user or organization that owns the deployment").nullable().optional(),
36
+ current_release: ReplicateDeploymentsGet_CurrentReleaseSchema.nullable().optional()
37
+ }).describe("Response schema for deployments.get: Detailed information about the deployment.")
38
+ });
39
+ //#endregion
40
+ export { replicateDeploymentsGet };
41
+
42
+ //# sourceMappingURL=deployments-get.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployments-get.mjs","names":[],"sources":["../../src/actions/deployments-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsGetInput: z.ZodTypeAny = z.object({\n deployment_name: z.string().describe(\"The name of the deployment\"),\n deployment_owner: z.string().describe(\"The name of the user or organization that owns the deployment\"),\n}).describe(\"Request schema for retrieving details of a specific deployment by owner and name.\");\nconst ReplicateDeploymentsGet_CreatedBySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Display name\").nullable().optional(),\n type: z.string().describe(\"Account type (e.g., 'organization' or user)\").nullable().optional(),\n username: z.string().describe(\"Account username\").nullable().optional(),\n avatar_url: z.string().describe(\"Profile image URL\").nullable().optional(),\n github_url: z.string().describe(\"GitHub profile link\").nullable().optional(),\n}).describe(\"User or organization that created the release.\");\nconst ReplicateDeploymentsGet_ConfigurationSchema: z.ZodTypeAny = z.object({\n hardware: z.string().describe(\"GPU/CPU SKU identifier\").nullable().optional(),\n max_instances: z.number().int().describe(\"Maximum running instances\").nullable().optional(),\n min_instances: z.number().int().describe(\"Minimum running instances\").nullable().optional(),\n}).describe(\"Hardware and scaling settings for the deployment.\");\nconst ReplicateDeploymentsGet_CurrentReleaseSchema: z.ZodTypeAny = z.object({\n model: z.string().describe(\"Full model identifier (e.g., 'stability-ai/sdxl')\").nullable().optional(),\n number: z.number().int().describe(\"Release version number (increments with updates)\").nullable().optional(),\n version: z.string().describe(\"The 64-character model version ID being deployed\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of release creation\").nullable().optional(),\n created_by: ReplicateDeploymentsGet_CreatedBySchema.nullable().optional(),\n configuration: ReplicateDeploymentsGet_ConfigurationSchema.nullable().optional(),\n}).describe(\"Configuration and metadata for the active deployment version.\");\nexport const ReplicateDeploymentsGetOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The name of the deployment\").nullable().optional(),\n owner: z.string().describe(\"The name of the user or organization that owns the deployment\").nullable().optional(),\n current_release: ReplicateDeploymentsGet_CurrentReleaseSchema.nullable().optional(),\n}).describe(\"Response schema for deployments.get: Detailed information about the deployment.\");\n\nexport const replicateDeploymentsGet = action(\"REPLICATE_DEPLOYMENTS_GET\", {\n slug: \"replicate-deployments-get\",\n name: \"Get Deployment Details\",\n description: \"Tool to get deployment details by owner and name. Use when you need information about a specific deployment including its release configuration and hardware settings.\",\n input: ReplicateDeploymentsGetInput,\n output: ReplicateDeploymentsGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACjE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;AACvG,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAM,0CAAwD,EAAE,OAAO;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,8CAA4D,EAAE,OAAO;CACzE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,+CAA6D,EAAE,OAAO;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,YAAY,wCAAwC,SAAS,CAAC,CAAC,SAAS;CACxE,eAAe,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,+DAA+D;AAO3E,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXyD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChH,iBAAiB,6CAA6C,SAAS,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,SAAS,iFAOF;AACV,CAAC"}
@@ -0,0 +1,45 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/deployments-list.ts
4
+ const ReplicateDeploymentsListInput = zod.z.object({ cursor: zod.z.string().describe("Cursor for pagination. Use the cursor from 'next' URL of previous response.").optional() }).describe("Request schema for listing deployments with optional pagination.");
5
+ const ReplicateDeploymentsList_CreatedBySchema = zod.z.object({
6
+ name: zod.z.string().describe("Display name of the creator"),
7
+ type: zod.z.string().describe("Type of creator (e.g., 'organization', 'user')"),
8
+ username: zod.z.string().describe("Username of the creator"),
9
+ avatar_url: zod.z.string().describe("URL to the creator's avatar image").nullable().optional(),
10
+ github_url: zod.z.string().describe("URL to the creator's GitHub profile").nullable().optional()
11
+ }).describe("Creator information for a deployment release.");
12
+ const ReplicateDeploymentsList_ReleaseConfigurationSchema = zod.z.object({
13
+ hardware: zod.z.string().describe("Hardware SKU used for the deployment"),
14
+ max_instances: zod.z.number().int().describe("Maximum number of instances allowed"),
15
+ min_instances: zod.z.number().int().describe("Minimum number of instances to maintain")
16
+ }).describe("Configuration details for a deployment release.");
17
+ const ReplicateDeploymentsList_CurrentReleaseSchema = zod.z.object({
18
+ model: zod.z.string().describe("Model identifier"),
19
+ number: zod.z.number().int().describe("Release number"),
20
+ version: zod.z.string().describe("64-character version ID of the model"),
21
+ created_at: zod.z.string().describe("ISO 8601 timestamp when the release was created"),
22
+ created_by: ReplicateDeploymentsList_CreatedBySchema.nullable(),
23
+ configuration: ReplicateDeploymentsList_ReleaseConfigurationSchema.nullable()
24
+ }).describe("Latest release configuration for a deployment.");
25
+ const ReplicateDeploymentsList_DeploymentSchema = zod.z.object({
26
+ name: zod.z.string().describe("Name of the deployment"),
27
+ owner: zod.z.string().describe("Owner of the deployment"),
28
+ current_release: ReplicateDeploymentsList_CurrentReleaseSchema.nullable()
29
+ }).describe("Representation of a deployment.");
30
+ const ReplicateDeploymentsListOutput = zod.z.object({
31
+ next: zod.z.string().describe("URL to fetch the next page of results, if any").nullable().optional(),
32
+ results: zod.z.array(ReplicateDeploymentsList_DeploymentSchema).describe("List of deployments returned in this page, sorted with most recent deployment first"),
33
+ previous: zod.z.string().describe("URL to fetch the previous page of results, if any").nullable().optional()
34
+ }).describe("Paginated list of deployments.");
35
+ const replicateDeploymentsList = require_action.action("REPLICATE_DEPLOYMENTS_LIST", {
36
+ slug: "replicate-deployments-list",
37
+ name: "List deployments",
38
+ description: "Tool to list all deployments associated with the account. Use when you need to retrieve deployment configurations and their latest releases.",
39
+ input: ReplicateDeploymentsListInput,
40
+ output: ReplicateDeploymentsListOutput
41
+ });
42
+ //#endregion
43
+ exports.replicateDeploymentsList = replicateDeploymentsList;
44
+
45
+ //# sourceMappingURL=deployments-list.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployments-list.cjs","names":["z","action"],"sources":["../../src/actions/deployments-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsListInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing deployments with optional pagination.\");\nconst ReplicateDeploymentsList_CreatedBySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Display name of the creator\"),\n type: z.string().describe(\"Type of creator (e.g., 'organization', 'user')\"),\n username: z.string().describe(\"Username of the creator\"),\n avatar_url: z.string().describe(\"URL to the creator's avatar image\").nullable().optional(),\n github_url: z.string().describe(\"URL to the creator's GitHub profile\").nullable().optional(),\n}).describe(\"Creator information for a deployment release.\");\nconst ReplicateDeploymentsList_ReleaseConfigurationSchema: z.ZodTypeAny = z.object({\n hardware: z.string().describe(\"Hardware SKU used for the deployment\"),\n max_instances: z.number().int().describe(\"Maximum number of instances allowed\"),\n min_instances: z.number().int().describe(\"Minimum number of instances to maintain\"),\n}).describe(\"Configuration details for a deployment release.\");\nconst ReplicateDeploymentsList_CurrentReleaseSchema: z.ZodTypeAny = z.object({\n model: z.string().describe(\"Model identifier\"),\n number: z.number().int().describe(\"Release number\"),\n version: z.string().describe(\"64-character version ID of the model\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the release was created\"),\n created_by: ReplicateDeploymentsList_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsList_ReleaseConfigurationSchema.nullable(),\n}).describe(\"Latest release configuration for a deployment.\");\nconst ReplicateDeploymentsList_DeploymentSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the deployment\"),\n owner: z.string().describe(\"Owner of the deployment\"),\n current_release: ReplicateDeploymentsList_CurrentReleaseSchema.nullable(),\n}).describe(\"Representation of a deployment.\");\nexport const ReplicateDeploymentsListOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateDeploymentsList_DeploymentSchema).describe(\"List of deployments returned in this page, sorted with most recent deployment first\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).describe(\"Paginated list of deployments.\");\n\nexport const replicateDeploymentsList = action(\"REPLICATE_DEPLOYMENTS_LIST\", {\n slug: \"replicate-deployments-list\",\n name: \"List deployments\",\n description: \"Tool to list all deployments associated with the account. Use when you need to retrieve deployment configurations and their latest releases.\",\n input: ReplicateDeploymentsListInput,\n output: ReplicateDeploymentsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,EAClE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACvD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,sDAAoEA,IAAAA,EAAE,OAAO;CACjF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CAC9E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;AACpF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,gDAA8DA,IAAAA,EAAE,OAAO;CAC3E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC7C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gBAAgB;CAClD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACnE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACjF,YAAY,yCAAyC,SAAS;CAC9D,eAAe,oDAAoD,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,iBAAiB,8CAA8C,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAC7C,MAAa,iCAA+CA,IAAAA,EAAE,OAAO;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,qFAAqF;CAC1J,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/deployments-list.d.ts
4
+ declare const ReplicateDeploymentsListInput: z.ZodTypeAny;
5
+ declare const ReplicateDeploymentsListOutput: z.ZodTypeAny;
6
+ declare const replicateDeploymentsList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { replicateDeploymentsList };
9
+ //# sourceMappingURL=deployments-list.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployments-list.d.cts","names":[],"sources":["../../src/actions/deployments-list.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAEiC;AAAA,cA0BlE,8BAAA,EAAgC,CAAA,CAAE,UAIF;AAAA,cAEhC,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/deployments-list.d.ts
4
+ declare const ReplicateDeploymentsListInput: z.ZodTypeAny;
5
+ declare const ReplicateDeploymentsListOutput: z.ZodTypeAny;
6
+ declare const replicateDeploymentsList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { replicateDeploymentsList };
9
+ //# sourceMappingURL=deployments-list.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployments-list.d.mts","names":[],"sources":["../../src/actions/deployments-list.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAEiC;AAAA,cA0BlE,8BAAA,EAAgC,CAAA,CAAE,UAIF;AAAA,cAEhC,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,44 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/deployments-list.ts
4
+ const ReplicateDeploymentsListInput = z.object({ cursor: z.string().describe("Cursor for pagination. Use the cursor from 'next' URL of previous response.").optional() }).describe("Request schema for listing deployments with optional pagination.");
5
+ const ReplicateDeploymentsList_CreatedBySchema = z.object({
6
+ name: z.string().describe("Display name of the creator"),
7
+ type: z.string().describe("Type of creator (e.g., 'organization', 'user')"),
8
+ username: z.string().describe("Username of the creator"),
9
+ avatar_url: z.string().describe("URL to the creator's avatar image").nullable().optional(),
10
+ github_url: z.string().describe("URL to the creator's GitHub profile").nullable().optional()
11
+ }).describe("Creator information for a deployment release.");
12
+ const ReplicateDeploymentsList_ReleaseConfigurationSchema = z.object({
13
+ hardware: z.string().describe("Hardware SKU used for the deployment"),
14
+ max_instances: z.number().int().describe("Maximum number of instances allowed"),
15
+ min_instances: z.number().int().describe("Minimum number of instances to maintain")
16
+ }).describe("Configuration details for a deployment release.");
17
+ const ReplicateDeploymentsList_CurrentReleaseSchema = z.object({
18
+ model: z.string().describe("Model identifier"),
19
+ number: z.number().int().describe("Release number"),
20
+ version: z.string().describe("64-character version ID of the model"),
21
+ created_at: z.string().describe("ISO 8601 timestamp when the release was created"),
22
+ created_by: ReplicateDeploymentsList_CreatedBySchema.nullable(),
23
+ configuration: ReplicateDeploymentsList_ReleaseConfigurationSchema.nullable()
24
+ }).describe("Latest release configuration for a deployment.");
25
+ const ReplicateDeploymentsList_DeploymentSchema = z.object({
26
+ name: z.string().describe("Name of the deployment"),
27
+ owner: z.string().describe("Owner of the deployment"),
28
+ current_release: ReplicateDeploymentsList_CurrentReleaseSchema.nullable()
29
+ }).describe("Representation of a deployment.");
30
+ const replicateDeploymentsList = action("REPLICATE_DEPLOYMENTS_LIST", {
31
+ slug: "replicate-deployments-list",
32
+ name: "List deployments",
33
+ description: "Tool to list all deployments associated with the account. Use when you need to retrieve deployment configurations and their latest releases.",
34
+ input: ReplicateDeploymentsListInput,
35
+ output: z.object({
36
+ next: z.string().describe("URL to fetch the next page of results, if any").nullable().optional(),
37
+ results: z.array(ReplicateDeploymentsList_DeploymentSchema).describe("List of deployments returned in this page, sorted with most recent deployment first"),
38
+ previous: z.string().describe("URL to fetch the previous page of results, if any").nullable().optional()
39
+ }).describe("Paginated list of deployments.")
40
+ });
41
+ //#endregion
42
+ export { replicateDeploymentsList };
43
+
44
+ //# sourceMappingURL=deployments-list.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deployments-list.mjs","names":[],"sources":["../../src/actions/deployments-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsListInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing deployments with optional pagination.\");\nconst ReplicateDeploymentsList_CreatedBySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Display name of the creator\"),\n type: z.string().describe(\"Type of creator (e.g., 'organization', 'user')\"),\n username: z.string().describe(\"Username of the creator\"),\n avatar_url: z.string().describe(\"URL to the creator's avatar image\").nullable().optional(),\n github_url: z.string().describe(\"URL to the creator's GitHub profile\").nullable().optional(),\n}).describe(\"Creator information for a deployment release.\");\nconst ReplicateDeploymentsList_ReleaseConfigurationSchema: z.ZodTypeAny = z.object({\n hardware: z.string().describe(\"Hardware SKU used for the deployment\"),\n max_instances: z.number().int().describe(\"Maximum number of instances allowed\"),\n min_instances: z.number().int().describe(\"Minimum number of instances to maintain\"),\n}).describe(\"Configuration details for a deployment release.\");\nconst ReplicateDeploymentsList_CurrentReleaseSchema: z.ZodTypeAny = z.object({\n model: z.string().describe(\"Model identifier\"),\n number: z.number().int().describe(\"Release number\"),\n version: z.string().describe(\"64-character version ID of the model\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the release was created\"),\n created_by: ReplicateDeploymentsList_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsList_ReleaseConfigurationSchema.nullable(),\n}).describe(\"Latest release configuration for a deployment.\");\nconst ReplicateDeploymentsList_DeploymentSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the deployment\"),\n owner: z.string().describe(\"Owner of the deployment\"),\n current_release: ReplicateDeploymentsList_CurrentReleaseSchema.nullable(),\n}).describe(\"Representation of a deployment.\");\nexport const ReplicateDeploymentsListOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateDeploymentsList_DeploymentSchema).describe(\"List of deployments returned in this page, sorted with most recent deployment first\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).describe(\"Paginated list of deployments.\");\n\nexport const replicateDeploymentsList = action(\"REPLICATE_DEPLOYMENTS_LIST\", {\n slug: \"replicate-deployments-list\",\n name: \"List deployments\",\n description: \"Tool to list all deployments associated with the account. Use when you need to retrieve deployment configurations and their latest releases.\",\n input: ReplicateDeploymentsListInput,\n output: ReplicateDeploymentsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO,EAClE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,2CAAyD,EAAE,OAAO;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,sDAAoE,EAAE,OAAO;CACjF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACpE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;AACpF,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAM,gDAA8D,EAAE,OAAO;CAC3E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC7C,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gBAAgB;CAClD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACnE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD;CACjF,YAAY,yCAAyC,SAAS;CAC9D,eAAe,oDAAoD,SAAS;AAC9E,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,4CAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,iBAAiB,8CAA8C,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAO7C,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0D,EAAE,OAAO;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,qFAAqF;EAC1J,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
@@ -0,0 +1,40 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/files-create.ts
4
+ const ReplicateFilesCreateInput = zod.z.object({
5
+ content: zod.z.object({
6
+ name: zod.z.string().describe("The filename that will be used when uploading the file to the destination service"),
7
+ s3key: zod.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."),
8
+ mimetype: zod.z.string().describe("The MIME type of the file")
9
+ }).describe("File to upload."),
10
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User-provided metadata associated with the file (must be valid JSON)").optional(),
11
+ content_type: zod.z.string().default("application/octet-stream").describe("The content/MIME type for the file").optional()
12
+ }).describe("Request model for creating/uploading a file.");
13
+ const ReplicateFilesCreate_FilesCreateResponseUrlsSchema = zod.z.object({ get: zod.z.string().describe("URL to retrieve the file resource") }).describe("URLs associated with the file resource.");
14
+ const ReplicateFilesCreate_FilesCreateResponseChecksumsSchema = zod.z.object({
15
+ md5: zod.z.string().describe("MD5 checksum of the file").nullable().optional(),
16
+ sha256: zod.z.string().describe("SHA256 checksum of the file").nullable().optional()
17
+ }).describe("Checksums for the file.");
18
+ const ReplicateFilesCreateOutput = zod.z.object({
19
+ id: zod.z.string().describe("A unique, randomly-generated identifier for the file resource"),
20
+ etag: zod.z.string().describe("ETag for the file").nullable().optional(),
21
+ name: zod.z.string().describe("Name of the file").nullable().optional(),
22
+ size: zod.z.number().int().describe("The length of the file in bytes"),
23
+ urls: ReplicateFilesCreate_FilesCreateResponseUrlsSchema.nullable(),
24
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata provided by user when file was created"),
25
+ checksums: ReplicateFilesCreate_FilesCreateResponseChecksumsSchema.nullable(),
26
+ created_at: zod.z.string().describe("When the file was created (ISO 8601 timestamp)"),
27
+ expires_at: zod.z.string().describe("When the file expires (ISO 8601 timestamp)").nullable().optional(),
28
+ content_type: zod.z.string().describe("The content/MIME type of the file")
29
+ }).describe("Response schema after creating a file.");
30
+ const replicateFilesCreate = require_action.action("REPLICATE_FILES_CREATE", {
31
+ slug: "replicate-files-create",
32
+ name: "Create File",
33
+ description: "Tool to create or upload a file to Replicate. Use when you need to upload file content with optional metadata.",
34
+ input: ReplicateFilesCreateInput,
35
+ output: ReplicateFilesCreateOutput
36
+ });
37
+ //#endregion
38
+ exports.replicateFilesCreate = replicateFilesCreate;
39
+
40
+ //# sourceMappingURL=files-create.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files-create.cjs","names":["z","action"],"sources":["../../src/actions/files-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesCreateInput: z.ZodTypeAny = z.object({\n content: 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(\"File to upload.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata associated with the file (must be valid JSON)\").optional(),\n content_type: z.string().default(\"application/octet-stream\").describe(\"The content/MIME type for the file\").optional(),\n}).describe(\"Request model for creating/uploading a file.\");\nconst ReplicateFilesCreate_FilesCreateResponseUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"URL to retrieve the file resource\"),\n}).describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesCreate_FilesCreateResponseChecksumsSchema: z.ZodTypeAny = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable().optional(),\n}).describe(\"Checksums for the file.\");\nexport const ReplicateFilesCreateOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\"),\n etag: z.string().describe(\"ETag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\"),\n urls: ReplicateFilesCreate_FilesCreateResponseUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when file was created\"),\n checksums: ReplicateFilesCreate_FilesCreateResponseChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 timestamp)\"),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 timestamp)\").nullable().optional(),\n content_type: z.string().describe(\"The content/MIME type of the file\"),\n}).describe(\"Response schema after creating a file.\");\n\nexport const replicateFilesCreate = action(\"REPLICATE_FILES_CREATE\", {\n slug: \"replicate-files-create\",\n name: \"Create File\",\n description: \"Tool to create or upload a file to Replicate. Use when you need to upload file content with optional metadata.\",\n input: ReplicateFilesCreateInput,\n output: ReplicateFilesCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,SAASA,IAAAA,EAAE,OAAO;EAClB,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,iBAAiB;CAC3B,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,0BAA0B,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qDAAmEA,IAAAA,EAAE,OAAO,EAChF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,EAC9D,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,0DAAwEA,IAAAA,EAAE,OAAO;CACrF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACrC,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACjE,MAAM,mDAAmD,SAAS;CAClE,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD;CACtG,WAAW,wDAAwD,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;AACvE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/files-create.d.ts
4
+ declare const ReplicateFilesCreateInput: z.ZodTypeAny;
5
+ declare const ReplicateFilesCreateOutput: z.ZodTypeAny;
6
+ declare const replicateFilesCreate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { replicateFilesCreate };
9
+ //# sourceMappingURL=files-create.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files-create.d.cts","names":[],"sources":["../../src/actions/files-create.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAQiB;AAAA,cAQ9C,0BAAA,EAA4B,CAAA,CAAE,UAWU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/files-create.d.ts
4
+ declare const ReplicateFilesCreateInput: z.ZodTypeAny;
5
+ declare const ReplicateFilesCreateOutput: z.ZodTypeAny;
6
+ declare const replicateFilesCreate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { replicateFilesCreate };
9
+ //# sourceMappingURL=files-create.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files-create.d.mts","names":[],"sources":["../../src/actions/files-create.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAQiB;AAAA,cAQ9C,0BAAA,EAA4B,CAAA,CAAE,UAWU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,39 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/files-create.ts
4
+ const ReplicateFilesCreateInput = z.object({
5
+ content: z.object({
6
+ name: z.string().describe("The filename that will be used when uploading the file to the destination service"),
7
+ 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."),
8
+ mimetype: z.string().describe("The MIME type of the file")
9
+ }).describe("File to upload."),
10
+ metadata: z.record(z.string(), z.unknown()).describe("User-provided metadata associated with the file (must be valid JSON)").optional(),
11
+ content_type: z.string().default("application/octet-stream").describe("The content/MIME type for the file").optional()
12
+ }).describe("Request model for creating/uploading a file.");
13
+ const ReplicateFilesCreate_FilesCreateResponseUrlsSchema = z.object({ get: z.string().describe("URL to retrieve the file resource") }).describe("URLs associated with the file resource.");
14
+ const ReplicateFilesCreate_FilesCreateResponseChecksumsSchema = z.object({
15
+ md5: z.string().describe("MD5 checksum of the file").nullable().optional(),
16
+ sha256: z.string().describe("SHA256 checksum of the file").nullable().optional()
17
+ }).describe("Checksums for the file.");
18
+ const replicateFilesCreate = action("REPLICATE_FILES_CREATE", {
19
+ slug: "replicate-files-create",
20
+ name: "Create File",
21
+ description: "Tool to create or upload a file to Replicate. Use when you need to upload file content with optional metadata.",
22
+ input: ReplicateFilesCreateInput,
23
+ output: z.object({
24
+ id: z.string().describe("A unique, randomly-generated identifier for the file resource"),
25
+ etag: z.string().describe("ETag for the file").nullable().optional(),
26
+ name: z.string().describe("Name of the file").nullable().optional(),
27
+ size: z.number().int().describe("The length of the file in bytes"),
28
+ urls: ReplicateFilesCreate_FilesCreateResponseUrlsSchema.nullable(),
29
+ metadata: z.record(z.string(), z.unknown()).describe("Metadata provided by user when file was created"),
30
+ checksums: ReplicateFilesCreate_FilesCreateResponseChecksumsSchema.nullable(),
31
+ created_at: z.string().describe("When the file was created (ISO 8601 timestamp)"),
32
+ expires_at: z.string().describe("When the file expires (ISO 8601 timestamp)").nullable().optional(),
33
+ content_type: z.string().describe("The content/MIME type of the file")
34
+ }).describe("Response schema after creating a file.")
35
+ });
36
+ //#endregion
37
+ export { replicateFilesCreate };
38
+
39
+ //# sourceMappingURL=files-create.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files-create.mjs","names":[],"sources":["../../src/actions/files-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesCreateInput: z.ZodTypeAny = z.object({\n content: 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(\"File to upload.\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata associated with the file (must be valid JSON)\").optional(),\n content_type: z.string().default(\"application/octet-stream\").describe(\"The content/MIME type for the file\").optional(),\n}).describe(\"Request model for creating/uploading a file.\");\nconst ReplicateFilesCreate_FilesCreateResponseUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"URL to retrieve the file resource\"),\n}).describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesCreate_FilesCreateResponseChecksumsSchema: z.ZodTypeAny = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable().optional(),\n}).describe(\"Checksums for the file.\");\nexport const ReplicateFilesCreateOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\"),\n etag: z.string().describe(\"ETag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\"),\n urls: ReplicateFilesCreate_FilesCreateResponseUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when file was created\"),\n checksums: ReplicateFilesCreate_FilesCreateResponseChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 timestamp)\"),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 timestamp)\").nullable().optional(),\n content_type: z.string().describe(\"The content/MIME type of the file\"),\n}).describe(\"Response schema after creating a file.\");\n\nexport const replicateFilesCreate = action(\"REPLICATE_FILES_CREATE\", {\n slug: \"replicate-files-create\",\n name: \"Create File\",\n description: \"Tool to create or upload a file to Replicate. Use when you need to upload file content with optional metadata.\",\n input: ReplicateFilesCreateInput,\n output: ReplicateFilesCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,SAAS,EAAE,OAAO;EAClB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF;EAC7G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;EACnO,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B;CAC3D,CAAC,CAAC,CAAC,SAAS,iBAAiB;CAC3B,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CACtI,cAAc,EAAE,OAAO,CAAC,CAAC,QAAQ,0BAA0B,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,qDAAmE,EAAE,OAAO,EAChF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,EAC9D,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,0DAAwE,EAAE,OAAO;CACrF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAcrC,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAlBsD,EAAE,OAAO;EAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;EACjE,MAAM,mDAAmD,SAAS;EAClE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD;EACtG,WAAW,wDAAwD,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CACvE,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
@@ -0,0 +1,19 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/files-delete.ts
4
+ const ReplicateFilesDeleteInput = zod.z.object({ file_id: zod.z.string().describe("The unique identifier of the file to delete") }).describe("Request schema for deleting a file by its ID.");
5
+ const ReplicateFilesDeleteOutput = zod.z.object({
6
+ message: zod.z.string().default("File deleted successfully").describe("Confirmation message for the deletion").nullable().optional(),
7
+ success: zod.z.boolean().default(true).describe("Indicates whether the file was successfully deleted").nullable().optional()
8
+ }).describe("Response schema for files.delete: Indicates successful deletion.");
9
+ const replicateFilesDelete = require_action.action("REPLICATE_FILES_DELETE", {
10
+ slug: "replicate-files-delete",
11
+ name: "Delete File",
12
+ description: "Tool to delete a file by its ID. Use when you need to remove a file from storage. Returns 204 No Content on success.",
13
+ input: ReplicateFilesDeleteInput,
14
+ output: ReplicateFilesDeleteOutput
15
+ });
16
+ //#endregion
17
+ exports.replicateFilesDelete = replicateFilesDelete;
18
+
19
+ //# sourceMappingURL=files-delete.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files-delete.cjs","names":["z","action"],"sources":["../../src/actions/files-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesDeleteInput: z.ZodTypeAny = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to delete\"),\n}).describe(\"Request schema for deleting a file by its ID.\");\nexport const ReplicateFilesDeleteOutput: z.ZodTypeAny = z.object({\n message: z.string().default(\"File deleted successfully\").describe(\"Confirmation message for the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the file was successfully deleted\").nullable().optional(),\n}).describe(\"Response schema for files.delete: Indicates successful deletion.\");\n\nexport const replicateFilesDelete = action(\"REPLICATE_FILES_DELETE\", {\n slug: \"replicate-files-delete\",\n name: \"Delete File\",\n description: \"Tool to delete a file by its ID. Use when you need to remove a file from storage. Returns 204 No Content on success.\",\n input: ReplicateFilesDeleteInput,\n output: ReplicateFilesDeleteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAC5E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAE9E,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/files-delete.d.ts
4
+ declare const ReplicateFilesDeleteInput: z.ZodTypeAny;
5
+ declare const ReplicateFilesDeleteOutput: z.ZodTypeAny;
6
+ declare const replicateFilesDelete: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { replicateFilesDelete };
9
+ //# sourceMappingURL=files-delete.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files-delete.d.cts","names":[],"sources":["../../src/actions/files-delete.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEkB;AAAA,cAC/C,0BAAA,EAA4B,CAAA,CAAE,UAGoC;AAAA,cAElE,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/files-delete.d.ts
4
+ declare const ReplicateFilesDeleteInput: z.ZodTypeAny;
5
+ declare const ReplicateFilesDeleteOutput: z.ZodTypeAny;
6
+ declare const replicateFilesDelete: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { replicateFilesDelete };
9
+ //# sourceMappingURL=files-delete.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files-delete.d.mts","names":[],"sources":["../../src/actions/files-delete.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEkB;AAAA,cAC/C,0BAAA,EAA4B,CAAA,CAAE,UAGoC;AAAA,cAElE,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,16 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const replicateFilesDelete = action("REPLICATE_FILES_DELETE", {
4
+ slug: "replicate-files-delete",
5
+ name: "Delete File",
6
+ description: "Tool to delete a file by its ID. Use when you need to remove a file from storage. Returns 204 No Content on success.",
7
+ input: z.object({ file_id: z.string().describe("The unique identifier of the file to delete") }).describe("Request schema for deleting a file by its ID."),
8
+ output: z.object({
9
+ message: z.string().default("File deleted successfully").describe("Confirmation message for the deletion").nullable().optional(),
10
+ success: z.boolean().default(true).describe("Indicates whether the file was successfully deleted").nullable().optional()
11
+ }).describe("Response schema for files.delete: Indicates successful deletion.")
12
+ });
13
+ //#endregion
14
+ export { replicateFilesDelete };
15
+
16
+ //# sourceMappingURL=files-delete.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files-delete.mjs","names":[],"sources":["../../src/actions/files-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesDeleteInput: z.ZodTypeAny = z.object({\n file_id: z.string().describe(\"The unique identifier of the file to delete\"),\n}).describe(\"Request schema for deleting a file by its ID.\");\nexport const ReplicateFilesDeleteOutput: z.ZodTypeAny = z.object({\n message: z.string().default(\"File deleted successfully\").describe(\"Confirmation message for the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the file was successfully deleted\").nullable().optional(),\n}).describe(\"Response schema for files.delete: Indicates successful deletion.\");\n\nexport const replicateFilesDelete = action(\"REPLICATE_FILES_DELETE\", {\n slug: \"replicate-files-delete\",\n name: \"Delete File\",\n description: \"Tool to delete a file by its ID. Use when you need to remove a file from storage. Returns 204 No Content on success.\",\n input: ReplicateFilesDeleteInput,\n output: ReplicateFilesDeleteOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZqD,EAAE,OAAO,EAC9D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,EAC5E,CAAC,CAAC,CAAC,SAAS,+CAUH;CACP,QAVsD,EAAE,OAAO;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,kEAOF;AACV,CAAC"}
@@ -0,0 +1,32 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/files-get.ts
4
+ const ReplicateFilesGetInput = zod.z.object({ file_id: zod.z.string().describe("The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.") }).describe("Request schema for retrieving details of a file by its ID.");
5
+ const ReplicateFilesGet_FileUrlsSchema = zod.z.object({ get: zod.z.string().describe("A URL to the file resource") }).describe("URLs associated with the file resource.");
6
+ const ReplicateFilesGet_FileChecksumsSchema = zod.z.object({
7
+ md5: zod.z.string().describe("MD5 checksum of the file").nullable().optional(),
8
+ sha256: zod.z.string().describe("SHA256 checksum of the file")
9
+ }).describe("Checksums for file integrity verification.");
10
+ const ReplicateFilesGetOutput = zod.z.object({
11
+ id: zod.z.string().describe("A unique, randomly-generated identifier for the file resource"),
12
+ etag: zod.z.string().describe("Entity tag for the file").nullable().optional(),
13
+ name: zod.z.string().describe("Name of the file").nullable().optional(),
14
+ size: zod.z.number().int().describe("The length of the file in bytes"),
15
+ urls: ReplicateFilesGet_FileUrlsSchema.nullable(),
16
+ metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Metadata provided by user when the file was created").nullable().optional(),
17
+ checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),
18
+ created_at: zod.z.string().describe("When the file was created (ISO 8601 datetime)"),
19
+ expires_at: zod.z.string().describe("When the file expires (ISO 8601 datetime)").nullable().optional(),
20
+ content_type: zod.z.string().describe("The content / MIME type of the file")
21
+ }).describe("Response schema for files.get: Detailed information about the file.");
22
+ const replicateFilesGet = require_action.action("REPLICATE_FILES_GET", {
23
+ slug: "replicate-files-get",
24
+ name: "Get File Details",
25
+ description: "Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.",
26
+ input: ReplicateFilesGetInput,
27
+ output: ReplicateFilesGetOutput
28
+ });
29
+ //#endregion
30
+ exports.replicateFilesGet = replicateFilesGet;
31
+
32
+ //# sourceMappingURL=files-get.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files-get.cjs","names":["z","action"],"sources":["../../src/actions/files-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesGetInput: z.ZodTypeAny = z.object({\n file_id: z.string().describe(\"The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.\"),\n}).describe(\"Request schema for retrieving details of a file by its ID.\");\nconst ReplicateFilesGet_FileUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"A URL to the file resource\"),\n}).describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesGet_FileChecksumsSchema: z.ZodTypeAny = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\"),\n}).describe(\"Checksums for file integrity verification.\");\nexport const ReplicateFilesGetOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\"),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\"),\n urls: ReplicateFilesGet_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when the file was created\").nullable().optional(),\n checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 datetime)\"),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 datetime)\").nullable().optional(),\n content_type: z.string().describe(\"The content / MIME type of the file\"),\n}).describe(\"Response schema for files.get: Detailed information about the file.\");\n\nexport const replicateFilesGet = action(\"REPLICATE_FILES_GET\", {\n slug: \"replicate-files-get\",\n name: \"Get File Details\",\n description: \"Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.\",\n input: ReplicateFilesGetInput,\n output: ReplicateFilesGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,EACpM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mCAAiDA,IAAAA,EAAE,OAAO,EAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,EACvD,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC3D,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CACvF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACjE,MAAM,iCAAiC,SAAS;CAChD,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,WAAW,sCAAsC,SAAS;CAC1D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CAC/E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;AACzE,CAAC,CAAC,CAAC,SAAS,qEAAqE;AAEjF,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/files-get.d.ts
4
+ declare const ReplicateFilesGetInput: z.ZodTypeAny;
5
+ declare const ReplicateFilesGetOutput: z.ZodTypeAny;
6
+ declare const replicateFilesGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { replicateFilesGet };
9
+ //# sourceMappingURL=files-get.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files-get.d.cts","names":[],"sources":["../../src/actions/files-get.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEkC;AAAA,cAQ5D,uBAAA,EAAyB,CAAA,CAAE,UAW0C;AAAA,cAErE,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/files-get.d.ts
4
+ declare const ReplicateFilesGetInput: z.ZodTypeAny;
5
+ declare const ReplicateFilesGetOutput: z.ZodTypeAny;
6
+ declare const replicateFilesGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { replicateFilesGet };
9
+ //# sourceMappingURL=files-get.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files-get.d.mts","names":[],"sources":["../../src/actions/files-get.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAEkC;AAAA,cAQ5D,uBAAA,EAAyB,CAAA,CAAE,UAW0C;AAAA,cAErE,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,31 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/files-get.ts
4
+ const ReplicateFilesGetInput = z.object({ file_id: z.string().describe("The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.") }).describe("Request schema for retrieving details of a file by its ID.");
5
+ const ReplicateFilesGet_FileUrlsSchema = z.object({ get: z.string().describe("A URL to the file resource") }).describe("URLs associated with the file resource.");
6
+ const ReplicateFilesGet_FileChecksumsSchema = z.object({
7
+ md5: z.string().describe("MD5 checksum of the file").nullable().optional(),
8
+ sha256: z.string().describe("SHA256 checksum of the file")
9
+ }).describe("Checksums for file integrity verification.");
10
+ const replicateFilesGet = action("REPLICATE_FILES_GET", {
11
+ slug: "replicate-files-get",
12
+ name: "Get File Details",
13
+ description: "Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.",
14
+ input: ReplicateFilesGetInput,
15
+ output: z.object({
16
+ id: z.string().describe("A unique, randomly-generated identifier for the file resource"),
17
+ etag: z.string().describe("Entity tag for the file").nullable().optional(),
18
+ name: z.string().describe("Name of the file").nullable().optional(),
19
+ size: z.number().int().describe("The length of the file in bytes"),
20
+ urls: ReplicateFilesGet_FileUrlsSchema.nullable(),
21
+ metadata: z.record(z.string(), z.unknown()).describe("Metadata provided by user when the file was created").nullable().optional(),
22
+ checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),
23
+ created_at: z.string().describe("When the file was created (ISO 8601 datetime)"),
24
+ expires_at: z.string().describe("When the file expires (ISO 8601 datetime)").nullable().optional(),
25
+ content_type: z.string().describe("The content / MIME type of the file")
26
+ }).describe("Response schema for files.get: Detailed information about the file.")
27
+ });
28
+ //#endregion
29
+ export { replicateFilesGet };
30
+
31
+ //# sourceMappingURL=files-get.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"files-get.mjs","names":[],"sources":["../../src/actions/files-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesGetInput: z.ZodTypeAny = z.object({\n file_id: z.string().describe(\"The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.\"),\n}).describe(\"Request schema for retrieving details of a file by its ID.\");\nconst ReplicateFilesGet_FileUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"A URL to the file resource\"),\n}).describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesGet_FileChecksumsSchema: z.ZodTypeAny = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\"),\n}).describe(\"Checksums for file integrity verification.\");\nexport const ReplicateFilesGetOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\"),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"The length of the file in bytes\"),\n urls: ReplicateFilesGet_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when the file was created\").nullable().optional(),\n checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 datetime)\"),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 datetime)\").nullable().optional(),\n content_type: z.string().describe(\"The content / MIME type of the file\"),\n}).describe(\"Response schema for files.get: Detailed information about the file.\");\n\nexport const replicateFilesGet = action(\"REPLICATE_FILES_GET\", {\n slug: \"replicate-files-get\",\n name: \"Get File Details\",\n description: \"Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.\",\n input: ReplicateFilesGetInput,\n output: ReplicateFilesGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO,EAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,EACpM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mCAAiD,EAAE,OAAO,EAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,EACvD,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,wCAAsD,EAAE,OAAO;CACnE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;AAC3D,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAcxD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAlBmD,EAAE,OAAO;EAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;EACvF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;EACjE,MAAM,iCAAiC,SAAS;EAChD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,WAAW,sCAAsC,SAAS;EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;EAC/E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CACzE,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}