@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,9 +1,46 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/create-prediction.d.ts
4
- declare const ReplicateCreatePredictionInput: z.ZodTypeAny;
5
- declare const ReplicateCreatePredictionOutput: z.ZodTypeAny;
6
- declare const replicateCreatePrediction: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateCreatePredictionInput: z.ZodObject<{
5
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6
+ webhook: z.ZodOptional<z.ZodString>;
7
+ wait_for: z.ZodOptional<z.ZodNumber>;
8
+ deployment_name: z.ZodString;
9
+ deployment_owner: z.ZodString;
10
+ webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
11
+ output: "output";
12
+ start: "start";
13
+ logs: "logs";
14
+ completed: "completed";
15
+ }>>>;
16
+ }, z.core.$strip>;
17
+ declare const ReplicateCreatePredictionOutput: z.ZodObject<{
18
+ id: z.ZodNullable<z.ZodString>;
19
+ logs: z.ZodNullable<z.ZodString>;
20
+ urls: z.ZodNullable<z.ZodObject<{
21
+ get: z.ZodNullable<z.ZodString>;
22
+ web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ cancel: z.ZodNullable<z.ZodString>;
24
+ stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ }, z.core.$loose>>;
26
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
28
+ model: z.ZodNullable<z.ZodString>;
29
+ output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
30
+ status: z.ZodNullable<z.ZodString>;
31
+ metrics: z.ZodRecord<z.ZodString, z.ZodUnknown>;
32
+ version: z.ZodNullable<z.ZodString>;
33
+ created_at: z.ZodNullable<z.ZodString>;
34
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ }, z.core.$loose>;
36
+ declare const replicateCreatePrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
37
+ input: Record<string, unknown>;
38
+ deployment_name: string;
39
+ deployment_owner: string;
40
+ webhook?: string | undefined;
41
+ wait_for?: number | undefined;
42
+ webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
43
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
44
  //#endregion
8
45
  export { replicateCreatePrediction };
9
46
  //# sourceMappingURL=create-prediction.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-prediction.d.mts","names":[],"sources":["../../src/actions/create-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAAgC,CAAA,CAAE,UAOmC;AAAA,cAOrE,+BAAA,EAAiC,CAAA,CAAE,UAaS;AAAA,cAE5C,yBAAA,gCAAyB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"create-prediction.d.mts","names":[],"sources":["../../src/actions/create-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAe/B,yBAAA,gCAAyB,wBAAA;SAMpC,MAAA"}
@@ -15,30 +15,30 @@ const ReplicateCreatePredictionInput = z.object({
15
15
  ])).describe("List of events to trigger webhook calls").optional()
16
16
  }).describe("Request schema for creating a prediction for a specific deployment.");
17
17
  const ReplicateCreatePrediction_PredictionUrlsSchema = z.object({
18
- get: z.string().describe("API endpoint URL to get the prediction details"),
18
+ get: z.string().describe("API endpoint URL to get the prediction details").nullable(),
19
19
  web: z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
20
- cancel: z.string().describe("API endpoint URL to cancel the prediction"),
20
+ cancel: z.string().describe("API endpoint URL to cancel the prediction").nullable(),
21
21
  stream: z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
22
- }).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.");
22
+ }).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.");
23
23
  const replicateCreatePrediction = action("REPLICATE_CREATE_PREDICTION", {
24
24
  slug: "replicate-create-prediction",
25
25
  name: "Create Prediction",
26
26
  description: "Tool to create a prediction for a Replicate Deployment. IMPORTANT: This action ONLY works with Replicate Deployments (persistent instances you create and manage), NOT public models. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models (e.g., 'meta/llama-2-70b-chat', 'stability-ai/sdxl'), use REPLICATE_MODELS_PREDICTIONS_CREATE instead. Use 'wait_for' to wait until the prediction completes.",
27
27
  input: ReplicateCreatePredictionInput,
28
28
  output: z.object({
29
- id: z.string().describe("Unique identifier of the prediction"),
30
- logs: z.string().describe("Logs generated during the prediction"),
29
+ id: z.string().describe("Unique identifier of the prediction").nullable(),
30
+ logs: z.string().describe("Logs generated during the prediction").nullable(),
31
31
  urls: ReplicateCreatePrediction_PredictionUrlsSchema.nullable(),
32
32
  error: z.string().describe("Error message if the prediction failed").nullable().optional(),
33
33
  input: z.record(z.string(), z.unknown()).describe("Input provided for the prediction"),
34
- model: z.string().describe("Model associated with this prediction"),
34
+ model: z.string().describe("Model associated with this prediction").nullable(),
35
35
  output: z.unknown().describe("Output of the prediction if completed").nullable().optional(),
36
- status: z.string().describe("Current status of the prediction (e.g., 'starting', 'processing', 'succeeded', 'failed', 'canceled')"),
36
+ status: z.string().describe("Current status of the prediction (e.g., 'starting', 'processing', 'succeeded', 'failed', 'canceled')").nullable(),
37
37
  metrics: z.record(z.string(), z.unknown()).describe("Performance metrics for the prediction, e.g., predict_time"),
38
- version: z.string().describe("Version of the model used in prediction"),
39
- created_at: z.string().describe("Timestamp when the prediction was created (ISO 8601)"),
38
+ version: z.string().describe("Version of the model used in prediction").nullable(),
39
+ created_at: z.string().describe("Timestamp when the prediction was created (ISO 8601)").nullable(),
40
40
  completed_at: z.string().describe("Timestamp when the prediction completed (ISO 8601), if available").nullable().optional()
41
- }).describe("Response schema for creating a prediction.")
41
+ }).passthrough().describe("Response schema for creating a prediction.")
42
42
  });
43
43
  //#endregion
44
44
  export { replicateCreatePrediction };
@@ -1 +1 @@
1
- {"version":3,"file":"create-prediction.mjs","names":[],"sources":["../../src/actions/create-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreatePredictionInput: z.ZodTypeAny = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"JSON object of inputs for the model Keys and types must exactly match the deployment model's schema; consult REPLICATE_MODELS_README_GET or REPLICATE_MODELS_EXAMPLES_LIST first. For file inputs, verify file IDs via REPLICATE_FILES_LIST before submitting.\"),\n webhook: z.string().describe(\"HTTPS URL to receive webhook callbacks\").optional(),\n wait_for: z.number().int().describe(\"Seconds to wait for prediction completion; adds a 'Prefer: wait=<n>' header if provided Valid range is 1–60; if the prediction does not complete within this window, poll for status or use a webhook instead.\").optional(),\n deployment_name: z.string().describe(\"Name of the deployment. NOTE: This is the deployment name, NOT a public model name. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models like 'meta/llama-2-70b-chat', use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n deployment_owner: z.string().describe(\"Username or organization that owns the deployment. NOTE: This is for Replicate Deployments only, NOT public models. Deployments are persistent instances you create and manage separately. To run public models, use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of events to trigger webhook calls\").optional(),\n}).describe(\"Request schema for creating a prediction for a specific deployment.\");\nconst ReplicateCreatePrediction_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.\");\nexport const ReplicateCreatePredictionOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the prediction\"),\n logs: z.string().describe(\"Logs generated during the prediction\"),\n urls: ReplicateCreatePrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the prediction\"),\n model: z.string().describe(\"Model associated with this prediction\"),\n output: z.unknown().describe(\"Output of the prediction if completed\").nullable().optional(),\n status: z.string().describe(\"Current status of the prediction (e.g., 'starting', 'processing', 'succeeded', 'failed', 'canceled')\"),\n metrics: z.record(z.string(), z.unknown()).describe(\"Performance metrics for the prediction, e.g., predict_time\"),\n version: z.string().describe(\"Version of the model used in prediction\"),\n created_at: z.string().describe(\"Timestamp when the prediction was created (ISO 8601)\"),\n completed_at: z.string().describe(\"Timestamp when the prediction completed (ISO 8601), if available\").nullable().optional(),\n}).describe(\"Response schema for creating a prediction.\");\n\nexport const replicateCreatePrediction = action(\"REPLICATE_CREATE_PREDICTION\", {\n slug: \"replicate-create-prediction\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction for a Replicate Deployment. IMPORTANT: This action ONLY works with Replicate Deployments (persistent instances you create and manage), NOT public models. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models (e.g., 'meta/llama-2-70b-chat', 'stability-ai/sdxl'), use REPLICATE_MODELS_PREDICTIONS_CREATE instead. Use 'wait_for' to wait until the prediction completes.\",\n input: ReplicateCreatePredictionInput,\n output: ReplicateCreatePredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAA+C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E,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC;EAClE,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG;EAClI,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D;EAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD;EACtF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-prediction.mjs","names":[],"sources":["../../src/actions/create-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreatePredictionInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"JSON object of inputs for the model Keys and types must exactly match the deployment model's schema; consult REPLICATE_MODELS_README_GET or REPLICATE_MODELS_EXAMPLES_LIST first. For file inputs, verify file IDs via REPLICATE_FILES_LIST before submitting.\"),\n webhook: z.string().describe(\"HTTPS URL to receive webhook callbacks\").optional(),\n wait_for: z.number().int().describe(\"Seconds to wait for prediction completion; adds a 'Prefer: wait=<n>' header if provided Valid range is 1–60; if the prediction does not complete within this window, poll for status or use a webhook instead.\").optional(),\n deployment_name: z.string().describe(\"Name of the deployment. NOTE: This is the deployment name, NOT a public model name. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models like 'meta/llama-2-70b-chat', use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n deployment_owner: z.string().describe(\"Username or organization that owns the deployment. NOTE: This is for Replicate Deployments only, NOT public models. Deployments are persistent instances you create and manage separately. To run public models, use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of events to trigger webhook calls\").optional(),\n}).describe(\"Request schema for creating a prediction for a specific deployment.\");\nconst ReplicateCreatePrediction_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.\");\nexport const ReplicateCreatePredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier of the prediction\").nullable(),\n logs: z.string().describe(\"Logs generated during the prediction\").nullable(),\n urls: ReplicateCreatePrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the prediction\"),\n model: z.string().describe(\"Model associated with this prediction\").nullable(),\n output: z.unknown().describe(\"Output of the prediction if completed\").nullable().optional(),\n status: z.string().describe(\"Current status of the prediction (e.g., 'starting', 'processing', 'succeeded', 'failed', 'canceled')\").nullable(),\n metrics: z.record(z.string(), z.unknown()).describe(\"Performance metrics for the prediction, e.g., predict_time\"),\n version: z.string().describe(\"Version of the model used in prediction\").nullable(),\n created_at: z.string().describe(\"Timestamp when the prediction was created (ISO 8601)\").nullable(),\n completed_at: z.string().describe(\"Timestamp when the prediction completed (ISO 8601), if available\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a prediction.\");\n\nexport const replicateCreatePrediction = action(\"REPLICATE_CREATE_PREDICTION\", {\n slug: \"replicate-create-prediction\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction for a Replicate Deployment. IMPORTANT: This action ONLY works with Replicate Deployments (persistent instances you create and manage), NOT public models. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models (e.g., 'meta/llama-2-70b-chat', 'stability-ai/sdxl'), use REPLICATE_MODELS_PREDICTIONS_CREATE instead. Use 'wait_for' to wait until the prediction completes.\",\n input: ReplicateCreatePredictionInput,\n output: ReplicateCreatePredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gQAAgQ;CAClT,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;CAC/P,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP;CACvR,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kQAAkQ;CACxS,uBAAuB,EAAE,MAAM,EAAE,KAAK;EAAC;EAAS;EAAU;EAAQ;CAAW,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,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;AAgB5T,MAAa,4BAA4B,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QApB6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;EAC3E,MAAM,+CAA+C,SAAS;EAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC7E,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EAC7I,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D;EAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -10,30 +10,30 @@ const ReplicateDeploymentsCreateInput = zod.z.object({
10
10
  min_instances: zod.z.number().int().describe("Minimum instances for auto-scaling")
11
11
  }).describe("Request schema for creating a new deployment.");
12
12
  const ReplicateDeploymentsCreate_CreatedBySchema = zod.z.object({
13
- name: zod.z.string().describe("Full name of the creator"),
14
- type: zod.z.string().describe("Type of the creator"),
15
- username: zod.z.string().describe("Username of the creator"),
13
+ name: zod.z.string().describe("Full name of the creator").nullable(),
14
+ type: zod.z.string().describe("Type of the creator").nullable(),
15
+ username: zod.z.string().describe("Username of the creator").nullable(),
16
16
  avatar_url: zod.z.string().describe("URL of the creator's avatar").nullable().optional(),
17
17
  github_url: zod.z.string().describe("GitHub URL of the creator").nullable().optional()
18
- }).describe("Information about the user who created the release.");
18
+ }).passthrough().describe("Information about the user who created the release.");
19
19
  const ReplicateDeploymentsCreate_ConfigurationSchema = zod.z.object({
20
- hardware: zod.z.string().describe("Hardware SKU (e.g., gpu-t4)"),
21
- max_instances: zod.z.number().int().describe("Maximum scaling instances"),
22
- min_instances: zod.z.number().int().describe("Minimum scaling instances")
23
- }).describe("Hardware and scaling settings.");
20
+ hardware: zod.z.string().describe("Hardware SKU (e.g., gpu-t4)").nullable(),
21
+ max_instances: zod.z.number().int().describe("Maximum scaling instances").nullable(),
22
+ min_instances: zod.z.number().int().describe("Minimum scaling instances").nullable()
23
+ }).passthrough().describe("Hardware and scaling settings.");
24
24
  const ReplicateDeploymentsCreate_CurrentReleaseSchema = zod.z.object({
25
- model: zod.z.string().describe("Full model name"),
26
- number: zod.z.number().int().describe("Release version counter"),
27
- version: zod.z.string().describe("64-character model version ID"),
28
- created_at: zod.z.string().describe("ISO 8601 datetime when release was created"),
25
+ model: zod.z.string().describe("Full model name").nullable(),
26
+ number: zod.z.number().int().describe("Release version counter").nullable(),
27
+ version: zod.z.string().describe("64-character model version ID").nullable(),
28
+ created_at: zod.z.string().describe("ISO 8601 datetime when release was created").nullable(),
29
29
  created_by: ReplicateDeploymentsCreate_CreatedBySchema.nullable(),
30
30
  configuration: ReplicateDeploymentsCreate_ConfigurationSchema.nullable()
31
- }).describe("Contains release information including model, version, and hardware configuration.");
31
+ }).passthrough().describe("Contains release information including model, version, and hardware configuration.");
32
32
  const ReplicateDeploymentsCreateOutput = zod.z.object({
33
- name: zod.z.string().describe("Deployment identifier"),
34
- owner: zod.z.string().describe("User or organization owning the deployment"),
33
+ name: zod.z.string().describe("Deployment identifier").nullable(),
34
+ owner: zod.z.string().describe("User or organization owning the deployment").nullable(),
35
35
  current_release: ReplicateDeploymentsCreate_CurrentReleaseSchema.nullable()
36
- }).describe("Response schema for creating a deployment.");
36
+ }).passthrough().describe("Response schema for creating a deployment.");
37
37
  const replicateDeploymentsCreate = require_action.action("REPLICATE_DEPLOYMENTS_CREATE", {
38
38
  slug: "replicate-deployments-create",
39
39
  name: "Create Deployment",
@@ -1 +1 @@
1
- {"version":3,"file":"deployments-create.cjs","names":["z","action"],"sources":["../../src/actions/deployments-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsCreateInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The deployment's identifier\"),\n model: z.string().describe(\"Full model name in format owner/name\"),\n version: z.string().describe(\"The 64-character model version ID to deploy\"),\n hardware: z.string().describe(\"Hardware SKU from the hardware.list endpoint\"),\n max_instances: z.number().int().describe(\"Maximum instances for auto-scaling\"),\n min_instances: z.number().int().describe(\"Minimum instances for auto-scaling\"),\n}).describe(\"Request schema for creating a new deployment.\");\nconst ReplicateDeploymentsCreate_CreatedBySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Full name of the creator\"),\n type: z.string().describe(\"Type of the creator\"),\n username: z.string().describe(\"Username of the creator\"),\n avatar_url: z.string().describe(\"URL of the creator's avatar\").nullable().optional(),\n github_url: z.string().describe(\"GitHub URL of the creator\").nullable().optional(),\n}).describe(\"Information about the user who created the release.\");\nconst ReplicateDeploymentsCreate_ConfigurationSchema: z.ZodTypeAny = z.object({\n hardware: z.string().describe(\"Hardware SKU (e.g., gpu-t4)\"),\n max_instances: z.number().int().describe(\"Maximum scaling instances\"),\n min_instances: z.number().int().describe(\"Minimum scaling instances\"),\n}).describe(\"Hardware and scaling settings.\");\nconst ReplicateDeploymentsCreate_CurrentReleaseSchema: z.ZodTypeAny = z.object({\n model: z.string().describe(\"Full model name\"),\n number: z.number().int().describe(\"Release version counter\"),\n version: z.string().describe(\"64-character model version ID\"),\n created_at: z.string().describe(\"ISO 8601 datetime when release was created\"),\n created_by: ReplicateDeploymentsCreate_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsCreate_ConfigurationSchema.nullable(),\n}).describe(\"Contains release information including model, version, and hardware configuration.\");\nexport const ReplicateDeploymentsCreateOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Deployment identifier\"),\n owner: z.string().describe(\"User or organization owning the deployment\"),\n current_release: ReplicateDeploymentsCreate_CurrentReleaseSchema.nullable(),\n}).describe(\"Response schema for creating a deployment.\");\n\nexport const replicateDeploymentsCreate = action(\"REPLICATE_DEPLOYMENTS_CREATE\", {\n slug: \"replicate-deployments-create\",\n name: \"Create Deployment\",\n description: \"Tool to create a new deployment with specified model, version, hardware, and scaling parameters. Use when you need to deploy a model for production use with auto-scaling.\",\n input: ReplicateDeploymentsCreateInput,\n output: ReplicateDeploymentsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC7E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AAC/E,CAAC,CAAC,CAAC,SAAS,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AS,uBAAuB;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACvE,iBAAiB,gDAAgD,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"deployments-create.cjs","names":["z","action"],"sources":["../../src/actions/deployments-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsCreateInput = z.object({\n name: z.string().describe(\"The deployment's identifier\"),\n model: z.string().describe(\"Full model name in format owner/name\"),\n version: z.string().describe(\"The 64-character model version ID to deploy\"),\n hardware: z.string().describe(\"Hardware SKU from the hardware.list endpoint\"),\n max_instances: z.number().int().describe(\"Maximum instances for auto-scaling\"),\n min_instances: z.number().int().describe(\"Minimum instances for auto-scaling\"),\n}).describe(\"Request schema for creating a new deployment.\");\nconst ReplicateDeploymentsCreate_CreatedBySchema = z.object({\n name: z.string().describe(\"Full name of the creator\").nullable(),\n type: z.string().describe(\"Type of the creator\").nullable(),\n username: z.string().describe(\"Username of the creator\").nullable(),\n avatar_url: z.string().describe(\"URL of the creator's avatar\").nullable().optional(),\n github_url: z.string().describe(\"GitHub URL of the creator\").nullable().optional(),\n}).passthrough().describe(\"Information about the user who created the release.\");\nconst ReplicateDeploymentsCreate_ConfigurationSchema = z.object({\n hardware: z.string().describe(\"Hardware SKU (e.g., gpu-t4)\").nullable(),\n max_instances: z.number().int().describe(\"Maximum scaling instances\").nullable(),\n min_instances: z.number().int().describe(\"Minimum scaling instances\").nullable(),\n}).passthrough().describe(\"Hardware and scaling settings.\");\nconst ReplicateDeploymentsCreate_CurrentReleaseSchema = z.object({\n model: z.string().describe(\"Full model name\").nullable(),\n number: z.number().int().describe(\"Release version counter\").nullable(),\n version: z.string().describe(\"64-character model version ID\").nullable(),\n created_at: z.string().describe(\"ISO 8601 datetime when release was created\").nullable(),\n created_by: ReplicateDeploymentsCreate_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsCreate_ConfigurationSchema.nullable(),\n}).passthrough().describe(\"Contains release information including model, version, and hardware configuration.\");\nexport const ReplicateDeploymentsCreateOutput = z.object({\n name: z.string().describe(\"Deployment identifier\").nullable(),\n owner: z.string().describe(\"User or organization owning the deployment\").nullable(),\n current_release: ReplicateDeploymentsCreate_CurrentReleaseSchema.nullable(),\n}).passthrough().describe(\"Response schema for creating a deployment.\");\n\nexport const replicateDeploymentsCreate = action(\"REPLICATE_DEPLOYMENTS_CREATE\", {\n slug: \"replicate-deployments-create\",\n name: \"Create Deployment\",\n description: \"Tool to create a new deployment with specified model, version, hardware, and scaling parameters. Use when you need to deploy a model for production use with auto-scaling.\",\n input: ReplicateDeploymentsCreateInput,\n output: ReplicateDeploymentsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC7E,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AAC/E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CAC/D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,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,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,iBAAiB,gDAAgD,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,44 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/deployments-create.d.ts
4
- declare const ReplicateDeploymentsCreateInput: z.ZodTypeAny;
5
- declare const ReplicateDeploymentsCreateOutput: z.ZodTypeAny;
6
- declare const replicateDeploymentsCreate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateDeploymentsCreateInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ model: z.ZodString;
7
+ version: z.ZodString;
8
+ hardware: z.ZodString;
9
+ max_instances: z.ZodNumber;
10
+ min_instances: z.ZodNumber;
11
+ }, z.core.$strip>;
12
+ declare const ReplicateDeploymentsCreateOutput: z.ZodObject<{
13
+ name: z.ZodNullable<z.ZodString>;
14
+ owner: z.ZodNullable<z.ZodString>;
15
+ current_release: z.ZodNullable<z.ZodObject<{
16
+ model: z.ZodNullable<z.ZodString>;
17
+ number: z.ZodNullable<z.ZodNumber>;
18
+ version: z.ZodNullable<z.ZodString>;
19
+ created_at: z.ZodNullable<z.ZodString>;
20
+ created_by: z.ZodNullable<z.ZodObject<{
21
+ name: z.ZodNullable<z.ZodString>;
22
+ type: z.ZodNullable<z.ZodString>;
23
+ username: z.ZodNullable<z.ZodString>;
24
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>>;
27
+ configuration: z.ZodNullable<z.ZodObject<{
28
+ hardware: z.ZodNullable<z.ZodString>;
29
+ max_instances: z.ZodNullable<z.ZodNumber>;
30
+ min_instances: z.ZodNullable<z.ZodNumber>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>>;
33
+ }, z.core.$loose>;
34
+ declare const replicateDeploymentsCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ name: string;
36
+ model: string;
37
+ version: string;
38
+ hardware: string;
39
+ max_instances: number;
40
+ min_instances: number;
41
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
42
  //#endregion
8
43
  export { replicateDeploymentsCreate };
9
44
  //# sourceMappingURL=deployments-create.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployments-create.d.cts","names":[],"sources":["../../src/actions/deployments-create.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAOY;AAAA,cAqB/C,gCAAA,EAAkC,CAAA,CAAE,UAIQ;AAAA,cAE5C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"deployments-create.d.cts","names":[],"sources":["../../src/actions/deployments-create.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cA4B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAMhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,44 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/deployments-create.d.ts
4
- declare const ReplicateDeploymentsCreateInput: z.ZodTypeAny;
5
- declare const ReplicateDeploymentsCreateOutput: z.ZodTypeAny;
6
- declare const replicateDeploymentsCreate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateDeploymentsCreateInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ model: z.ZodString;
7
+ version: z.ZodString;
8
+ hardware: z.ZodString;
9
+ max_instances: z.ZodNumber;
10
+ min_instances: z.ZodNumber;
11
+ }, z.core.$strip>;
12
+ declare const ReplicateDeploymentsCreateOutput: z.ZodObject<{
13
+ name: z.ZodNullable<z.ZodString>;
14
+ owner: z.ZodNullable<z.ZodString>;
15
+ current_release: z.ZodNullable<z.ZodObject<{
16
+ model: z.ZodNullable<z.ZodString>;
17
+ number: z.ZodNullable<z.ZodNumber>;
18
+ version: z.ZodNullable<z.ZodString>;
19
+ created_at: z.ZodNullable<z.ZodString>;
20
+ created_by: z.ZodNullable<z.ZodObject<{
21
+ name: z.ZodNullable<z.ZodString>;
22
+ type: z.ZodNullable<z.ZodString>;
23
+ username: z.ZodNullable<z.ZodString>;
24
+ avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$loose>>;
27
+ configuration: z.ZodNullable<z.ZodObject<{
28
+ hardware: z.ZodNullable<z.ZodString>;
29
+ max_instances: z.ZodNullable<z.ZodNumber>;
30
+ min_instances: z.ZodNullable<z.ZodNumber>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>>;
33
+ }, z.core.$loose>;
34
+ declare const replicateDeploymentsCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
35
+ name: string;
36
+ model: string;
37
+ version: string;
38
+ hardware: string;
39
+ max_instances: number;
40
+ min_instances: number;
41
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
42
  //#endregion
8
43
  export { replicateDeploymentsCreate };
9
44
  //# sourceMappingURL=deployments-create.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployments-create.d.mts","names":[],"sources":["../../src/actions/deployments-create.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAOY;AAAA,cAqB/C,gCAAA,EAAkC,CAAA,CAAE,UAIQ;AAAA,cAE5C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"deployments-create.d.mts","names":[],"sources":["../../src/actions/deployments-create.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;cA4B/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;cAMhC,0BAAA,gCAA0B,wBAAA"}
@@ -10,35 +10,35 @@ const ReplicateDeploymentsCreateInput = z.object({
10
10
  min_instances: z.number().int().describe("Minimum instances for auto-scaling")
11
11
  }).describe("Request schema for creating a new deployment.");
12
12
  const ReplicateDeploymentsCreate_CreatedBySchema = z.object({
13
- name: z.string().describe("Full name of the creator"),
14
- type: z.string().describe("Type of the creator"),
15
- username: z.string().describe("Username of the creator"),
13
+ name: z.string().describe("Full name of the creator").nullable(),
14
+ type: z.string().describe("Type of the creator").nullable(),
15
+ username: z.string().describe("Username of the creator").nullable(),
16
16
  avatar_url: z.string().describe("URL of the creator's avatar").nullable().optional(),
17
17
  github_url: z.string().describe("GitHub URL of the creator").nullable().optional()
18
- }).describe("Information about the user who created the release.");
18
+ }).passthrough().describe("Information about the user who created the release.");
19
19
  const ReplicateDeploymentsCreate_ConfigurationSchema = z.object({
20
- hardware: z.string().describe("Hardware SKU (e.g., gpu-t4)"),
21
- max_instances: z.number().int().describe("Maximum scaling instances"),
22
- min_instances: z.number().int().describe("Minimum scaling instances")
23
- }).describe("Hardware and scaling settings.");
20
+ hardware: z.string().describe("Hardware SKU (e.g., gpu-t4)").nullable(),
21
+ max_instances: z.number().int().describe("Maximum scaling instances").nullable(),
22
+ min_instances: z.number().int().describe("Minimum scaling instances").nullable()
23
+ }).passthrough().describe("Hardware and scaling settings.");
24
24
  const ReplicateDeploymentsCreate_CurrentReleaseSchema = z.object({
25
- model: z.string().describe("Full model name"),
26
- number: z.number().int().describe("Release version counter"),
27
- version: z.string().describe("64-character model version ID"),
28
- created_at: z.string().describe("ISO 8601 datetime when release was created"),
25
+ model: z.string().describe("Full model name").nullable(),
26
+ number: z.number().int().describe("Release version counter").nullable(),
27
+ version: z.string().describe("64-character model version ID").nullable(),
28
+ created_at: z.string().describe("ISO 8601 datetime when release was created").nullable(),
29
29
  created_by: ReplicateDeploymentsCreate_CreatedBySchema.nullable(),
30
30
  configuration: ReplicateDeploymentsCreate_ConfigurationSchema.nullable()
31
- }).describe("Contains release information including model, version, and hardware configuration.");
31
+ }).passthrough().describe("Contains release information including model, version, and hardware configuration.");
32
32
  const replicateDeploymentsCreate = action("REPLICATE_DEPLOYMENTS_CREATE", {
33
33
  slug: "replicate-deployments-create",
34
34
  name: "Create Deployment",
35
35
  description: "Tool to create a new deployment with specified model, version, hardware, and scaling parameters. Use when you need to deploy a model for production use with auto-scaling.",
36
36
  input: ReplicateDeploymentsCreateInput,
37
37
  output: z.object({
38
- name: z.string().describe("Deployment identifier"),
39
- owner: z.string().describe("User or organization owning the deployment"),
38
+ name: z.string().describe("Deployment identifier").nullable(),
39
+ owner: z.string().describe("User or organization owning the deployment").nullable(),
40
40
  current_release: ReplicateDeploymentsCreate_CurrentReleaseSchema.nullable()
41
- }).describe("Response schema for creating a deployment.")
41
+ }).passthrough().describe("Response schema for creating a deployment.")
42
42
  });
43
43
  //#endregion
44
44
  export { replicateDeploymentsCreate };
@@ -1 +1 @@
1
- {"version":3,"file":"deployments-create.mjs","names":[],"sources":["../../src/actions/deployments-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsCreateInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"The deployment's identifier\"),\n model: z.string().describe(\"Full model name in format owner/name\"),\n version: z.string().describe(\"The 64-character model version ID to deploy\"),\n hardware: z.string().describe(\"Hardware SKU from the hardware.list endpoint\"),\n max_instances: z.number().int().describe(\"Maximum instances for auto-scaling\"),\n min_instances: z.number().int().describe(\"Minimum instances for auto-scaling\"),\n}).describe(\"Request schema for creating a new deployment.\");\nconst ReplicateDeploymentsCreate_CreatedBySchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Full name of the creator\"),\n type: z.string().describe(\"Type of the creator\"),\n username: z.string().describe(\"Username of the creator\"),\n avatar_url: z.string().describe(\"URL of the creator's avatar\").nullable().optional(),\n github_url: z.string().describe(\"GitHub URL of the creator\").nullable().optional(),\n}).describe(\"Information about the user who created the release.\");\nconst ReplicateDeploymentsCreate_ConfigurationSchema: z.ZodTypeAny = z.object({\n hardware: z.string().describe(\"Hardware SKU (e.g., gpu-t4)\"),\n max_instances: z.number().int().describe(\"Maximum scaling instances\"),\n min_instances: z.number().int().describe(\"Minimum scaling instances\"),\n}).describe(\"Hardware and scaling settings.\");\nconst ReplicateDeploymentsCreate_CurrentReleaseSchema: z.ZodTypeAny = z.object({\n model: z.string().describe(\"Full model name\"),\n number: z.number().int().describe(\"Release version counter\"),\n version: z.string().describe(\"64-character model version ID\"),\n created_at: z.string().describe(\"ISO 8601 datetime when release was created\"),\n created_by: ReplicateDeploymentsCreate_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsCreate_ConfigurationSchema.nullable(),\n}).describe(\"Contains release information including model, version, and hardware configuration.\");\nexport const ReplicateDeploymentsCreateOutput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Deployment identifier\"),\n owner: z.string().describe(\"User or organization owning the deployment\"),\n current_release: ReplicateDeploymentsCreate_CurrentReleaseSchema.nullable(),\n}).describe(\"Response schema for creating a deployment.\");\n\nexport const replicateDeploymentsCreate = action(\"REPLICATE_DEPLOYMENTS_CREATE\", {\n slug: \"replicate-deployments-create\",\n name: \"Create Deployment\",\n description: \"Tool to create a new deployment with specified model, version, hardware, and scaling parameters. Use when you need to deploy a model for production use with auto-scaling.\",\n input: ReplicateDeploymentsCreateInput,\n output: ReplicateDeploymentsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgD,EAAE,OAAO;CACpE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC7E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AAC/E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAM,6CAA2D,EAAE,OAAO;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB;CAC/C,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACvD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,SAAS,qDAAqD;AACjE,MAAM,iDAA+D,EAAE,OAAO;CAC5E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CAC3D,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CACpE,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;AACtE,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAC5C,MAAM,kDAAgE,EAAE,OAAO;CAC7E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC5C,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,YAAY,2CAA2C,SAAS;CAChE,eAAe,+CAA+C,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAOhG,MAAa,6BAA6B,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4D,EAAE,OAAO;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EACjD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACvE,iBAAiB,gDAAgD,SAAS;CAC5E,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"deployments-create.mjs","names":[],"sources":["../../src/actions/deployments-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsCreateInput = z.object({\n name: z.string().describe(\"The deployment's identifier\"),\n model: z.string().describe(\"Full model name in format owner/name\"),\n version: z.string().describe(\"The 64-character model version ID to deploy\"),\n hardware: z.string().describe(\"Hardware SKU from the hardware.list endpoint\"),\n max_instances: z.number().int().describe(\"Maximum instances for auto-scaling\"),\n min_instances: z.number().int().describe(\"Minimum instances for auto-scaling\"),\n}).describe(\"Request schema for creating a new deployment.\");\nconst ReplicateDeploymentsCreate_CreatedBySchema = z.object({\n name: z.string().describe(\"Full name of the creator\").nullable(),\n type: z.string().describe(\"Type of the creator\").nullable(),\n username: z.string().describe(\"Username of the creator\").nullable(),\n avatar_url: z.string().describe(\"URL of the creator's avatar\").nullable().optional(),\n github_url: z.string().describe(\"GitHub URL of the creator\").nullable().optional(),\n}).passthrough().describe(\"Information about the user who created the release.\");\nconst ReplicateDeploymentsCreate_ConfigurationSchema = z.object({\n hardware: z.string().describe(\"Hardware SKU (e.g., gpu-t4)\").nullable(),\n max_instances: z.number().int().describe(\"Maximum scaling instances\").nullable(),\n min_instances: z.number().int().describe(\"Minimum scaling instances\").nullable(),\n}).passthrough().describe(\"Hardware and scaling settings.\");\nconst ReplicateDeploymentsCreate_CurrentReleaseSchema = z.object({\n model: z.string().describe(\"Full model name\").nullable(),\n number: z.number().int().describe(\"Release version counter\").nullable(),\n version: z.string().describe(\"64-character model version ID\").nullable(),\n created_at: z.string().describe(\"ISO 8601 datetime when release was created\").nullable(),\n created_by: ReplicateDeploymentsCreate_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsCreate_ConfigurationSchema.nullable(),\n}).passthrough().describe(\"Contains release information including model, version, and hardware configuration.\");\nexport const ReplicateDeploymentsCreateOutput = z.object({\n name: z.string().describe(\"Deployment identifier\").nullable(),\n owner: z.string().describe(\"User or organization owning the deployment\").nullable(),\n current_release: ReplicateDeploymentsCreate_CurrentReleaseSchema.nullable(),\n}).passthrough().describe(\"Response schema for creating a deployment.\");\n\nexport const replicateDeploymentsCreate = action(\"REPLICATE_DEPLOYMENTS_CREATE\", {\n slug: \"replicate-deployments-create\",\n name: \"Create Deployment\",\n description: \"Tool to create a new deployment with specified model, version, hardware, and scaling parameters. Use when you need to deploy a model for production use with auto-scaling.\",\n input: ReplicateDeploymentsCreateInput,\n output: ReplicateDeploymentsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,e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SAAS;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,YAAY,2CAA2C,SAAS;CAChE,eAAe,+CAA+C,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oFAAoF;AAO9G,MAAa,6BAA6B,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAClF,iBAAiB,gDAAgD,SAAS;CAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -8,7 +8,7 @@ const ReplicateDeploymentsDeleteInput = zod.z.object({
8
8
  const ReplicateDeploymentsDeleteOutput = zod.z.object({
9
9
  message: zod.z.string().default("Deployment deleted successfully").describe("Success message confirming the deletion").nullable().optional(),
10
10
  success: zod.z.boolean().default(true).describe("Indicates whether the deployment was successfully deleted").nullable().optional()
11
- }).describe("Response schema for deleting a deployment.");
11
+ }).passthrough().describe("Response schema for deleting a deployment.");
12
12
  const replicateDeploymentsDelete = require_action.action("REPLICATE_DEPLOYMENTS_DELETE", {
13
13
  slug: "replicate-deployments-delete",
14
14
  name: "Delete Deployment",
@@ -1 +1 @@
1
- {"version":3,"file":"deployments-delete.cjs","names":["z","action"],"sources":["../../src/actions/deployments-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsDeleteInput: z.ZodTypeAny = z.object({\n deployment_name: z.string().describe(\"The name of the deployment to delete. Deployment must be offline and unused for at least 15 minutes before deletion.\"),\n deployment_owner: z.string().describe(\"The username or organization that owns the deployment\"),\n}).describe(\"Request schema for deleting a deployment.\");\nexport const ReplicateDeploymentsDeleteOutput: z.ZodTypeAny = z.object({\n message: z.string().default(\"Deployment deleted successfully\").describe(\"Success message confirming the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the deployment was successfully deleted\").nullable().optional(),\n}).describe(\"Response schema for deleting a deployment.\");\n\nexport const replicateDeploymentsDelete = action(\"REPLICATE_DEPLOYMENTS_DELETE\", {\n slug: \"replicate-deployments-delete\",\n name: \"Delete Deployment\",\n description: \"Tool to delete a deployment from your account. Use when you need to remove a deployment. Deployments must be offline and unused for at least 15 minutes before deletion.\",\n input: ReplicateDeploymentsDeleteInput,\n output: ReplicateDeploymentsDeleteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAC3J,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC/F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,iCAAiC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"deployments-delete.cjs","names":["z","action"],"sources":["../../src/actions/deployments-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsDeleteInput = z.object({\n deployment_name: z.string().describe(\"The name of the deployment to delete. Deployment must be offline and unused for at least 15 minutes before deletion.\"),\n deployment_owner: z.string().describe(\"The username or organization that owns the deployment\"),\n}).describe(\"Request schema for deleting a deployment.\");\nexport const ReplicateDeploymentsDeleteOutput = z.object({\n message: z.string().default(\"Deployment deleted successfully\").describe(\"Success message confirming the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the deployment was successfully deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for deleting a deployment.\");\n\nexport const replicateDeploymentsDelete = action(\"REPLICATE_DEPLOYMENTS_DELETE\", {\n slug: \"replicate-deployments-delete\",\n name: \"Delete Deployment\",\n description: \"Tool to delete a deployment from your account. Use when you need to remove a deployment. Deployments must be offline and unused for at least 15 minutes before deletion.\",\n input: ReplicateDeploymentsDeleteInput,\n output: ReplicateDeploymentsDeleteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAC3J,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC/F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,iCAAiC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/deployments-delete.d.ts
4
- declare const ReplicateDeploymentsDeleteInput: z.ZodTypeAny;
5
- declare const ReplicateDeploymentsDeleteOutput: z.ZodTypeAny;
6
- declare const replicateDeploymentsDelete: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateDeploymentsDeleteInput: z.ZodObject<{
5
+ deployment_name: z.ZodString;
6
+ deployment_owner: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const ReplicateDeploymentsDeleteOutput: z.ZodObject<{
9
+ message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
10
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
11
+ }, z.core.$loose>;
12
+ declare const replicateDeploymentsDelete: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ deployment_name: string;
14
+ deployment_owner: string;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { replicateDeploymentsDelete };
9
18
  //# sourceMappingURL=deployments-delete.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployments-delete.d.cts","names":[],"sources":["../../src/actions/deployments-delete.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAGQ;AAAA,cAC3C,gCAAA,EAAkC,CAAA,CAAE,UAGQ;AAAA,cAE5C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"deployments-delete.d.cts","names":[],"sources":["../../src/actions/deployments-delete.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/deployments-delete.d.ts
4
- declare const ReplicateDeploymentsDeleteInput: z.ZodTypeAny;
5
- declare const ReplicateDeploymentsDeleteOutput: z.ZodTypeAny;
6
- declare const replicateDeploymentsDelete: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateDeploymentsDeleteInput: z.ZodObject<{
5
+ deployment_name: z.ZodString;
6
+ deployment_owner: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const ReplicateDeploymentsDeleteOutput: z.ZodObject<{
9
+ message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
10
+ success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
11
+ }, z.core.$loose>;
12
+ declare const replicateDeploymentsDelete: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ deployment_name: string;
14
+ deployment_owner: string;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { replicateDeploymentsDelete };
9
18
  //# sourceMappingURL=deployments-delete.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deployments-delete.d.mts","names":[],"sources":["../../src/actions/deployments-delete.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAGQ;AAAA,cAC3C,gCAAA,EAAkC,CAAA,CAAE,UAGQ;AAAA,cAE5C,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"deployments-delete.d.mts","names":[],"sources":["../../src/actions/deployments-delete.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;cAI/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;cAKhC,0BAAA,gCAA0B,wBAAA"}
@@ -11,7 +11,7 @@ const replicateDeploymentsDelete = action("REPLICATE_DEPLOYMENTS_DELETE", {
11
11
  output: z.object({
12
12
  message: z.string().default("Deployment deleted successfully").describe("Success message confirming the deletion").nullable().optional(),
13
13
  success: z.boolean().default(true).describe("Indicates whether the deployment was successfully deleted").nullable().optional()
14
- }).describe("Response schema for deleting a deployment.")
14
+ }).passthrough().describe("Response schema for deleting a deployment.")
15
15
  });
16
16
  //#endregion
17
17
  export { replicateDeploymentsDelete };
@@ -1 +1 @@
1
- {"version":3,"file":"deployments-delete.mjs","names":[],"sources":["../../src/actions/deployments-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsDeleteInput: z.ZodTypeAny = z.object({\n deployment_name: z.string().describe(\"The name of the deployment to delete. Deployment must be offline and unused for at least 15 minutes before deletion.\"),\n deployment_owner: z.string().describe(\"The username or organization that owns the deployment\"),\n}).describe(\"Request schema for deleting a deployment.\");\nexport const ReplicateDeploymentsDeleteOutput: z.ZodTypeAny = z.object({\n message: z.string().default(\"Deployment deleted successfully\").describe(\"Success message confirming the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the deployment was successfully deleted\").nullable().optional(),\n}).describe(\"Response schema for deleting a deployment.\");\n\nexport const replicateDeploymentsDelete = action(\"REPLICATE_DEPLOYMENTS_DELETE\", {\n slug: \"replicate-deployments-delete\",\n name: \"Delete Deployment\",\n description: \"Tool to delete a deployment from your account. Use when you need to remove a deployment. Deployments must be offline and unused for at least 15 minutes before deletion.\",\n input: ReplicateDeploymentsDeleteInput,\n output: ReplicateDeploymentsDeleteOutput,\n});\n"],"mappings":";;AAaA,MAAa,6BAA6B,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb2D,EAAE,OAAO;EACpE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;EAC3J,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAC/F,CAAC,CAAC,CAAC,SAAS,2CAUH;CACP,QAV4D,EAAE,OAAO;EACrE,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,iCAAiC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"deployments-delete.mjs","names":[],"sources":["../../src/actions/deployments-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsDeleteInput = z.object({\n deployment_name: z.string().describe(\"The name of the deployment to delete. Deployment must be offline and unused for at least 15 minutes before deletion.\"),\n deployment_owner: z.string().describe(\"The username or organization that owns the deployment\"),\n}).describe(\"Request schema for deleting a deployment.\");\nexport const ReplicateDeploymentsDeleteOutput = z.object({\n message: z.string().default(\"Deployment deleted successfully\").describe(\"Success message confirming the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the deployment was successfully deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for deleting a deployment.\");\n\nexport const replicateDeploymentsDelete = action(\"REPLICATE_DEPLOYMENTS_DELETE\", {\n slug: \"replicate-deployments-delete\",\n name: \"Delete Deployment\",\n description: \"Tool to delete a deployment from your account. Use when you need to remove a deployment. Deployments must be offline and unused for at least 15 minutes before deletion.\",\n input: ReplicateDeploymentsDeleteInput,\n output: ReplicateDeploymentsDeleteOutput,\n});\n"],"mappings":";;AAaA,MAAa,6BAA6B,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb6C,EAAE,OAAO;EACtD,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;EAC3J,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CAC/F,CAAC,CAAC,CAAC,SAAS,2CAUH;CACP,QAV8C,EAAE,OAAO;EACvD,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,iCAAiC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -11,12 +11,12 @@ const ReplicateDeploymentsGet_CreatedBySchema = zod.z.object({
11
11
  username: zod.z.string().describe("Account username").nullable().optional(),
12
12
  avatar_url: zod.z.string().describe("Profile image URL").nullable().optional(),
13
13
  github_url: zod.z.string().describe("GitHub profile link").nullable().optional()
14
- }).describe("User or organization that created the release.");
14
+ }).passthrough().describe("User or organization that created the release.");
15
15
  const ReplicateDeploymentsGet_ConfigurationSchema = zod.z.object({
16
16
  hardware: zod.z.string().describe("GPU/CPU SKU identifier").nullable().optional(),
17
17
  max_instances: zod.z.number().int().describe("Maximum running instances").nullable().optional(),
18
18
  min_instances: zod.z.number().int().describe("Minimum running instances").nullable().optional()
19
- }).describe("Hardware and scaling settings for the deployment.");
19
+ }).passthrough().describe("Hardware and scaling settings for the deployment.");
20
20
  const ReplicateDeploymentsGet_CurrentReleaseSchema = zod.z.object({
21
21
  model: zod.z.string().describe("Full model identifier (e.g., 'stability-ai/sdxl')").nullable().optional(),
22
22
  number: zod.z.number().int().describe("Release version number (increments with updates)").nullable().optional(),
@@ -24,12 +24,12 @@ const ReplicateDeploymentsGet_CurrentReleaseSchema = zod.z.object({
24
24
  created_at: zod.z.string().describe("ISO 8601 timestamp of release creation").nullable().optional(),
25
25
  created_by: ReplicateDeploymentsGet_CreatedBySchema.nullable().optional(),
26
26
  configuration: ReplicateDeploymentsGet_ConfigurationSchema.nullable().optional()
27
- }).describe("Configuration and metadata for the active deployment version.");
27
+ }).passthrough().describe("Configuration and metadata for the active deployment version.");
28
28
  const ReplicateDeploymentsGetOutput = zod.z.object({
29
29
  name: zod.z.string().describe("The name of the deployment").nullable().optional(),
30
30
  owner: zod.z.string().describe("The name of the user or organization that owns the deployment").nullable().optional(),
31
31
  current_release: ReplicateDeploymentsGet_CurrentReleaseSchema.nullable().optional()
32
- }).describe("Response schema for deployments.get: Detailed information about the deployment.");
32
+ }).passthrough().describe("Response schema for deployments.get: Detailed information about the deployment.");
33
33
  const replicateDeploymentsGet = require_action.action("REPLICATE_DEPLOYMENTS_GET", {
34
34
  slug: "replicate-deployments-get",
35
35
  name: "Get Deployment Details",
@@ -1 +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,OAA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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"}
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.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.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}).passthrough().describe(\"User or organization that created the release.\");\nconst ReplicateDeploymentsGet_ConfigurationSchema = 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}).passthrough().describe(\"Hardware and scaling settings for the deployment.\");\nconst ReplicateDeploymentsGet_CurrentReleaseSchema = 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}).passthrough().describe(\"Configuration and metadata for the active deployment version.\");\nexport const ReplicateDeploymentsGetOutput = 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}).passthrough().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,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,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,0CAA0CA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,cAAc,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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