@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
@@ -3,31 +3,31 @@ import { z } from "zod";
3
3
  //#region src/actions/trainings-cancel.ts
4
4
  const ReplicateTrainingsCancelInput = z.object({ training_id: z.string().describe("The identifier of the training operation to be terminated") }).describe("Request schema for canceling a training job.");
5
5
  const ReplicateTrainingsCancel_TrainingUrlsSchema = z.object({
6
- get: z.string().describe("URL to retrieve the training's current status"),
6
+ get: z.string().describe("URL to retrieve the training's current status").nullable(),
7
7
  web: z.string().describe("Browser-viewable training URL").nullable().optional(),
8
- cancel: z.string().describe("URL to cancel the in-progress training")
9
- }).describe("Endpoints to manage the training.");
8
+ cancel: z.string().describe("URL to cancel the in-progress training").nullable()
9
+ }).passthrough().describe("Endpoints to manage the training.");
10
10
  const replicateTrainingsCancel = action("REPLICATE_TRAININGS_CANCEL", {
11
11
  slug: "replicate-trainings-cancel",
12
12
  name: "Cancel Training",
13
13
  description: "Tool to cancel an ongoing training operation in Replicate. Use when you need to stop a training job that is in progress.",
14
14
  input: ReplicateTrainingsCancelInput,
15
15
  output: z.object({
16
- id: z.string().describe("Unique training identifier"),
16
+ id: z.string().describe("Unique training identifier").nullable(),
17
17
  logs: z.string().describe("Training output logs").nullable().optional(),
18
18
  urls: ReplicateTrainingsCancel_TrainingUrlsSchema.nullable().optional(),
19
19
  error: z.string().describe("Error message if training failed").nullable().optional(),
20
20
  input: z.record(z.string(), z.unknown()).describe("Object containing inputs to the model's train() function"),
21
- model: z.string().describe("Model identifier (e.g., 'stability-ai/sdxl')"),
21
+ model: z.string().describe("Model identifier (e.g., 'stability-ai/sdxl')").nullable(),
22
22
  output: z.record(z.string(), z.unknown()).describe("Result object with fields like 'version' and 'weights' (on success)").nullable().optional(),
23
23
  source: z.string().describe("Indicates creation method ('api' or 'web')").nullable().optional(),
24
- status: z.string().describe("Training status, will be 'canceled' after successful cancellation. Possible values: 'starting', 'processing', 'succeeded', 'failed', 'canceled'"),
24
+ status: z.string().describe("Training status, will be 'canceled' after successful cancellation. Possible values: 'starting', 'processing', 'succeeded', 'failed', 'canceled'").nullable(),
25
25
  metrics: z.record(z.string(), z.unknown()).describe("Contains 'predict_time' (GPU/CPU seconds used) and 'total_time'").nullable().optional(),
26
26
  version: z.string().describe("64-character version ID of the model").nullable().optional(),
27
- created_at: z.string().describe("ISO 8601 timestamp of when the training was created"),
27
+ created_at: z.string().describe("ISO 8601 timestamp of when the training was created").nullable(),
28
28
  started_at: z.string().describe("ISO 8601 timestamp when processing began").nullable().optional(),
29
29
  completed_at: z.string().describe("ISO 8601 timestamp when training finished").nullable().optional()
30
- }).describe("Response schema for canceling a training job.")
30
+ }).passthrough().describe("Response schema for canceling a training job.")
31
31
  });
32
32
  //#endregion
33
33
  export { replicateTrainingsCancel };
@@ -1 +1 @@
1
- {"version":3,"file":"trainings-cancel.mjs","names":[],"sources":["../../src/actions/trainings-cancel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsCancelInput: z.ZodTypeAny = z.object({\n training_id: z.string().describe(\"The identifier of the training operation to be terminated\"),\n}).describe(\"Request schema for canceling a training job.\");\nconst ReplicateTrainingsCancel_TrainingUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status\"),\n web: z.string().describe(\"Browser-viewable training URL\").nullable().optional(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\"),\n}).describe(\"Endpoints to manage the training.\");\nexport const ReplicateTrainingsCancelOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique training identifier\"),\n logs: z.string().describe(\"Training output logs\").nullable().optional(),\n urls: ReplicateTrainingsCancel_TrainingUrlsSchema.nullable().optional(),\n error: z.string().describe(\"Error message if training failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Object containing inputs to the model's train() function\"),\n model: z.string().describe(\"Model identifier (e.g., 'stability-ai/sdxl')\"),\n output: z.record(z.string(), z.unknown()).describe(\"Result object with fields like 'version' and 'weights' (on success)\").nullable().optional(),\n source: z.string().describe(\"Indicates creation method ('api' or 'web')\").nullable().optional(),\n status: z.string().describe(\"Training status, will be 'canceled' after successful cancellation. Possible values: 'starting', 'processing', 'succeeded', 'failed', 'canceled'\"),\n metrics: z.record(z.string(), z.unknown()).describe(\"Contains 'predict_time' (GPU/CPU seconds used) and 'total_time'\").nullable().optional(),\n version: z.string().describe(\"64-character version ID of the model\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the training was created\"),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when training finished\").nullable().optional(),\n}).describe(\"Response schema for canceling a training job.\");\n\nexport const replicateTrainingsCancel = action(\"REPLICATE_TRAININGS_CANCEL\", {\n slug: \"replicate-trainings-cancel\",\n name: \"Cancel Training\",\n description: \"Tool to cancel an ongoing training operation in Replicate. Use when you need to stop a training job that is in progress.\",\n input: ReplicateTrainingsCancelInput,\n output: ReplicateTrainingsCancelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO,EAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,EAC9F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,8CAA4D,EAAE,OAAO;CACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACxE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AACtE,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAkB/C,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAtB0D,EAAE,OAAO;EACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,MAAM,4CAA4C,SAAS,CAAC,CAAC,SAAS;EACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0DAA0D;EAC5G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EACzE,QAAQ,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iJAAiJ;EAC7K,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD;EACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,+CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"trainings-cancel.mjs","names":[],"sources":["../../src/actions/trainings-cancel.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsCancelInput = z.object({\n training_id: z.string().describe(\"The identifier of the training operation to be terminated\"),\n}).describe(\"Request schema for canceling a training job.\");\nconst ReplicateTrainingsCancel_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status\").nullable(),\n web: z.string().describe(\"Browser-viewable training URL\").nullable().optional(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).passthrough().describe(\"Endpoints to manage the training.\");\nexport const ReplicateTrainingsCancelOutput = z.object({\n id: z.string().describe(\"Unique training identifier\").nullable(),\n logs: z.string().describe(\"Training output logs\").nullable().optional(),\n urls: ReplicateTrainingsCancel_TrainingUrlsSchema.nullable().optional(),\n error: z.string().describe(\"Error message if training failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Object containing inputs to the model's train() function\"),\n model: z.string().describe(\"Model identifier (e.g., 'stability-ai/sdxl')\").nullable(),\n output: z.record(z.string(), z.unknown()).describe(\"Result object with fields like 'version' and 'weights' (on success)\").nullable().optional(),\n source: z.string().describe(\"Indicates creation method ('api' or 'web')\").nullable().optional(),\n status: z.string().describe(\"Training status, will be 'canceled' after successful cancellation. Possible values: 'starting', 'processing', 'succeeded', 'failed', 'canceled'\").nullable(),\n metrics: z.record(z.string(), z.unknown()).describe(\"Contains 'predict_time' (GPU/CPU seconds used) and 'total_time'\").nullable().optional(),\n version: z.string().describe(\"64-character version ID of the model\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when training finished\").nullable().optional(),\n}).passthrough().describe(\"Response schema for canceling a training job.\");\n\nexport const replicateTrainingsCancel = action(\"REPLICATE_TRAININGS_CANCEL\", {\n slug: \"replicate-trainings-cancel\",\n name: \"Cancel Training\",\n description: \"Tool to cancel an ongoing training operation in Replicate. Use when you need to stop a training job that is in progress.\",\n input: ReplicateTrainingsCancelInput,\n output: ReplicateTrainingsCancelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,EAC9F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,8CAA8C,EAAE,OAAO;CAC3D,KAA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AAS;EAC3I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAChG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
@@ -16,16 +16,16 @@ const ReplicateTrainingsCreateInput = zod.z.object({
16
16
  ])).describe("List of event types that trigger webhook calls. Options: 'start', 'output', 'logs', 'completed'").optional()
17
17
  }).describe("Request schema for creating a training job.");
18
18
  const ReplicateTrainingsCreate_TrainingsCreateUrlsSchema = zod.z.object({
19
- get: zod.z.string().describe("API endpoint to retrieve training status"),
19
+ get: zod.z.string().describe("API endpoint to retrieve training status").nullable(),
20
20
  web: zod.z.string().describe("Browser-viewable training URL").nullable().optional(),
21
- cancel: zod.z.string().describe("Endpoint to cancel the training")
22
- }).describe("Endpoints to manage the training.");
21
+ cancel: zod.z.string().describe("Endpoint to cancel the training").nullable()
22
+ }).passthrough().describe("Endpoints to manage the training.");
23
23
  const ReplicateTrainingsCreate_TrainingsCreateMetricsSchema = zod.z.object({
24
24
  total_time: zod.z.number().describe("Total completion time in seconds").nullable().optional(),
25
25
  predict_time: zod.z.number().describe("CPU/GPU seconds used during training execution").nullable().optional()
26
- }).describe("Performance metrics for the training.");
26
+ }).passthrough().describe("Performance metrics for the training.");
27
27
  const ReplicateTrainingsCreateOutput = zod.z.object({
28
- id: zod.z.string().describe("Unique training identifier"),
28
+ id: zod.z.string().describe("Unique training identifier").nullable(),
29
29
  logs: zod.z.string().describe("Training operation logs").nullable().optional(),
30
30
  urls: ReplicateTrainingsCreate_TrainingsCreateUrlsSchema.nullable(),
31
31
  error: zod.z.string().describe("Error message if training failed").nullable().optional(),
@@ -33,13 +33,13 @@ const ReplicateTrainingsCreateOutput = zod.z.object({
33
33
  model: zod.z.string().describe("Model identifier in format {owner}/{name}").nullable().optional(),
34
34
  output: zod.z.unknown().describe("Training results including generated version and weights URLs (available upon success)").nullable().optional(),
35
35
  source: zod.z.string().describe("How training was created: web or api").nullable().optional(),
36
- status: zod.z.string().describe("Current training state - one of: starting, processing, succeeded, failed, canceled"),
36
+ status: zod.z.string().describe("Current training state - one of: starting, processing, succeeded, failed, canceled").nullable(),
37
37
  metrics: ReplicateTrainingsCreate_TrainingsCreateMetricsSchema.nullable().optional(),
38
38
  version: zod.z.string().describe("64-character model version ID used to create the training").nullable().optional(),
39
- created_at: zod.z.string().describe("ISO 8601 timestamp when training was initiated"),
39
+ created_at: zod.z.string().describe("ISO 8601 timestamp when training was initiated").nullable(),
40
40
  started_at: zod.z.string().describe("ISO 8601 timestamp when processing began").nullable().optional(),
41
41
  completed_at: zod.z.string().describe("ISO 8601 timestamp when training finished").nullable().optional()
42
- }).describe("Response schema for creating a training job.");
42
+ }).passthrough().describe("Response schema for creating a training job.");
43
43
  const replicateTrainingsCreate = require_action.action("REPLICATE_TRAININGS_CREATE", {
44
44
  slug: "replicate-trainings-create",
45
45
  name: "Create Training Job",
@@ -1 +1 @@
1
- {"version":3,"file":"trainings-create.cjs","names":["z","action"],"sources":["../../src/actions/trainings-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsCreateInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the model to train\"),\n input: z.record(z.string(), z.unknown()).describe(\"JSON object containing inputs to the Cog model's train() function. Schema varies by model\"),\n owner: z.string().describe(\"Name of the user or organization owning the model\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when training updates occur\").optional(),\n version_id: z.string().describe(\"The 64-character model version identifier to use for training\"),\n destination: z.string().describe(\"Destination model to push to in format {owner}/{name}\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of event types that trigger webhook calls. Options: 'start', 'output', 'logs', 'completed'\").optional(),\n}).describe(\"Request schema for creating a training job.\");\nconst ReplicateTrainingsCreate_TrainingsCreateUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"API endpoint to retrieve training status\"),\n web: z.string().describe(\"Browser-viewable training URL\").nullable().optional(),\n cancel: z.string().describe(\"Endpoint to cancel the training\"),\n}).describe(\"Endpoints to manage the training.\");\nconst ReplicateTrainingsCreate_TrainingsCreateMetricsSchema: z.ZodTypeAny = z.object({\n total_time: z.number().describe(\"Total completion time in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during training execution\").nullable().optional(),\n}).describe(\"Performance metrics for the training.\");\nexport const ReplicateTrainingsCreateOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique training identifier\"),\n logs: z.string().describe(\"Training operation logs\").nullable().optional(),\n urls: ReplicateTrainingsCreate_TrainingsCreateUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if training failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Training results including generated version and weights URLs (available upon success)\").nullable().optional(),\n source: z.string().describe(\"How training was created: web or api\").nullable().optional(),\n status: z.string().describe(\"Current training state - one of: starting, processing, succeeded, failed, canceled\"),\n metrics: ReplicateTrainingsCreate_TrainingsCreateMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID used to create the training\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when training was initiated\"),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when training finished\").nullable().optional(),\n}).describe(\"Response schema for creating a training job.\");\n\nexport const replicateTrainingsCreate = action(\"REPLICATE_TRAININGS_CREATE\", {\n slug: \"replicate-trainings-create\",\n name: \"Create Training Job\",\n description: \"Tool to create a training job for a specific model version. Use when you need to fine-tune a model with custom training data. Supports webhook notifications for training status updates.\",\n input: ReplicateTrainingsCreateInput,\n output: ReplicateTrainingsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F;CAC7I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACxF,uBAAuBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;EAAQ;CAAW,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;AACxM,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,qDAAmEA,IAAAA,EAAE,OAAO;CAChF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACnE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;AAC/D,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,wDAAsEA,IAAAA,EAAE,OAAO;CACnF,YAAYA,IAAAA,EAAE,OAAO,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CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAE1D,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"trainings-create.cjs","names":["z","action"],"sources":["../../src/actions/trainings-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsCreateInput = z.object({\n name: z.string().describe(\"Name of the model to train\"),\n input: z.record(z.string(), z.unknown()).describe(\"JSON object containing inputs to the Cog model's train() function. Schema varies by model\"),\n owner: z.string().describe(\"Name of the user or organization owning the model\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when training updates occur\").optional(),\n version_id: z.string().describe(\"The 64-character model version identifier to use for training\"),\n destination: z.string().describe(\"Destination model to push to in format {owner}/{name}\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of event types that trigger webhook calls. Options: 'start', 'output', 'logs', 'completed'\").optional(),\n}).describe(\"Request schema for creating a training job.\");\nconst ReplicateTrainingsCreate_TrainingsCreateUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint to retrieve training status\").nullable(),\n web: z.string().describe(\"Browser-viewable training URL\").nullable().optional(),\n cancel: z.string().describe(\"Endpoint to cancel the training\").nullable(),\n}).passthrough().describe(\"Endpoints to manage the training.\");\nconst ReplicateTrainingsCreate_TrainingsCreateMetricsSchema = z.object({\n total_time: z.number().describe(\"Total completion time in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during training execution\").nullable().optional(),\n}).passthrough().describe(\"Performance metrics for the training.\");\nexport const ReplicateTrainingsCreateOutput = z.object({\n id: z.string().describe(\"Unique training identifier\").nullable(),\n logs: z.string().describe(\"Training operation logs\").nullable().optional(),\n urls: ReplicateTrainingsCreate_TrainingsCreateUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if training failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Training results including generated version and weights URLs (available upon success)\").nullable().optional(),\n source: z.string().describe(\"How training was created: web or api\").nullable().optional(),\n status: z.string().describe(\"Current training state - one of: starting, processing, succeeded, failed, canceled\").nullable(),\n metrics: ReplicateTrainingsCreate_TrainingsCreateMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID used to create the training\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when training was initiated\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when training finished\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a training job.\");\n\nexport const replicateTrainingsCreate = action(\"REPLICATE_TRAININGS_CREATE\", {\n slug: \"replicate-trainings-create\",\n name: \"Create Training Job\",\n description: \"Tool to create a training job for a specific model version. Use when you need to fine-tune a model with custom training data. Supports webhook notifications for training status updates.\",\n input: ReplicateTrainingsCreateInput,\n output: ReplicateTrainingsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F;CAC7I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,YAAYA,IA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AAC,SAAS,CAAC,CAAC,SAAS;CACnF,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC;CACtF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3I,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;CAC3H,SAAS,sDAAsD,SAAS,CAAC,CAAC,SAAS;CACnF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAA8C;AAExE,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,52 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/trainings-create.d.ts
4
- declare const ReplicateTrainingsCreateInput: z.ZodTypeAny;
5
- declare const ReplicateTrainingsCreateOutput: z.ZodTypeAny;
6
- declare const replicateTrainingsCreate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateTrainingsCreateInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
+ owner: z.ZodString;
8
+ webhook: z.ZodOptional<z.ZodString>;
9
+ version_id: z.ZodString;
10
+ destination: z.ZodString;
11
+ webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
12
+ output: "output";
13
+ start: "start";
14
+ logs: "logs";
15
+ completed: "completed";
16
+ }>>>;
17
+ }, z.core.$strip>;
18
+ declare const ReplicateTrainingsCreateOutput: z.ZodObject<{
19
+ id: z.ZodNullable<z.ZodString>;
20
+ logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ urls: z.ZodNullable<z.ZodObject<{
22
+ get: z.ZodNullable<z.ZodString>;
23
+ web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ cancel: 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.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
30
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ status: z.ZodNullable<z.ZodString>;
32
+ metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
+ total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ }, z.core.$loose>>>;
36
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ created_at: z.ZodNullable<z.ZodString>;
38
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$loose>;
41
+ declare const replicateTrainingsCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
42
+ name: string;
43
+ input: Record<string, unknown>;
44
+ owner: string;
45
+ version_id: string;
46
+ destination: string;
47
+ webhook?: string | undefined;
48
+ webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
50
  //#endregion
8
51
  export { replicateTrainingsCreate };
9
52
  //# sourceMappingURL=trainings-create.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trainings-create.d.cts","names":[],"sources":["../../src/actions/trainings-create.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAQY;AAAA,cAU7C,8BAAA,EAAgC,CAAA,CAAE,UAeY;AAAA,cAE9C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"trainings-create.d.cts","names":[],"sources":["../../src/actions/trainings-create.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAkB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAiB9B,wBAAA,gCAAwB,wBAAA;;SAMnC,MAAA"}
@@ -1,9 +1,52 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/trainings-create.d.ts
4
- declare const ReplicateTrainingsCreateInput: z.ZodTypeAny;
5
- declare const ReplicateTrainingsCreateOutput: z.ZodTypeAny;
6
- declare const replicateTrainingsCreate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateTrainingsCreateInput: z.ZodObject<{
5
+ name: z.ZodString;
6
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
+ owner: z.ZodString;
8
+ webhook: z.ZodOptional<z.ZodString>;
9
+ version_id: z.ZodString;
10
+ destination: z.ZodString;
11
+ webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
12
+ output: "output";
13
+ start: "start";
14
+ logs: "logs";
15
+ completed: "completed";
16
+ }>>>;
17
+ }, z.core.$strip>;
18
+ declare const ReplicateTrainingsCreateOutput: z.ZodObject<{
19
+ id: z.ZodNullable<z.ZodString>;
20
+ logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ urls: z.ZodNullable<z.ZodObject<{
22
+ get: z.ZodNullable<z.ZodString>;
23
+ web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ cancel: 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.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
30
+ source: z.ZodOptional<z.ZodNullable<z.ZodString>>;
31
+ status: z.ZodNullable<z.ZodString>;
32
+ metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
+ total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
34
+ predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
35
+ }, z.core.$loose>>>;
36
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ created_at: z.ZodNullable<z.ZodString>;
38
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ }, z.core.$loose>;
41
+ declare const replicateTrainingsCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
42
+ name: string;
43
+ input: Record<string, unknown>;
44
+ owner: string;
45
+ version_id: string;
46
+ destination: string;
47
+ webhook?: string | undefined;
48
+ webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
50
  //#endregion
8
51
  export { replicateTrainingsCreate };
9
52
  //# sourceMappingURL=trainings-create.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trainings-create.d.mts","names":[],"sources":["../../src/actions/trainings-create.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAQY;AAAA,cAU7C,8BAAA,EAAgC,CAAA,CAAE,UAeY;AAAA,cAE9C,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"trainings-create.d.mts","names":[],"sources":["../../src/actions/trainings-create.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAkB7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAiB9B,wBAAA,gCAAwB,wBAAA;;SAMnC,MAAA"}
@@ -16,21 +16,21 @@ const ReplicateTrainingsCreateInput = z.object({
16
16
  ])).describe("List of event types that trigger webhook calls. Options: 'start', 'output', 'logs', 'completed'").optional()
17
17
  }).describe("Request schema for creating a training job.");
18
18
  const ReplicateTrainingsCreate_TrainingsCreateUrlsSchema = z.object({
19
- get: z.string().describe("API endpoint to retrieve training status"),
19
+ get: z.string().describe("API endpoint to retrieve training status").nullable(),
20
20
  web: z.string().describe("Browser-viewable training URL").nullable().optional(),
21
- cancel: z.string().describe("Endpoint to cancel the training")
22
- }).describe("Endpoints to manage the training.");
21
+ cancel: z.string().describe("Endpoint to cancel the training").nullable()
22
+ }).passthrough().describe("Endpoints to manage the training.");
23
23
  const ReplicateTrainingsCreate_TrainingsCreateMetricsSchema = z.object({
24
24
  total_time: z.number().describe("Total completion time in seconds").nullable().optional(),
25
25
  predict_time: z.number().describe("CPU/GPU seconds used during training execution").nullable().optional()
26
- }).describe("Performance metrics for the training.");
26
+ }).passthrough().describe("Performance metrics for the training.");
27
27
  const replicateTrainingsCreate = action("REPLICATE_TRAININGS_CREATE", {
28
28
  slug: "replicate-trainings-create",
29
29
  name: "Create Training Job",
30
30
  description: "Tool to create a training job for a specific model version. Use when you need to fine-tune a model with custom training data. Supports webhook notifications for training status updates.",
31
31
  input: ReplicateTrainingsCreateInput,
32
32
  output: z.object({
33
- id: z.string().describe("Unique training identifier"),
33
+ id: z.string().describe("Unique training identifier").nullable(),
34
34
  logs: z.string().describe("Training operation logs").nullable().optional(),
35
35
  urls: ReplicateTrainingsCreate_TrainingsCreateUrlsSchema.nullable(),
36
36
  error: z.string().describe("Error message if training failed").nullable().optional(),
@@ -38,13 +38,13 @@ const replicateTrainingsCreate = action("REPLICATE_TRAININGS_CREATE", {
38
38
  model: z.string().describe("Model identifier in format {owner}/{name}").nullable().optional(),
39
39
  output: z.unknown().describe("Training results including generated version and weights URLs (available upon success)").nullable().optional(),
40
40
  source: z.string().describe("How training was created: web or api").nullable().optional(),
41
- status: z.string().describe("Current training state - one of: starting, processing, succeeded, failed, canceled"),
41
+ status: z.string().describe("Current training state - one of: starting, processing, succeeded, failed, canceled").nullable(),
42
42
  metrics: ReplicateTrainingsCreate_TrainingsCreateMetricsSchema.nullable().optional(),
43
43
  version: z.string().describe("64-character model version ID used to create the training").nullable().optional(),
44
- created_at: z.string().describe("ISO 8601 timestamp when training was initiated"),
44
+ created_at: z.string().describe("ISO 8601 timestamp when training was initiated").nullable(),
45
45
  started_at: z.string().describe("ISO 8601 timestamp when processing began").nullable().optional(),
46
46
  completed_at: z.string().describe("ISO 8601 timestamp when training finished").nullable().optional()
47
- }).describe("Response schema for creating a training job.")
47
+ }).passthrough().describe("Response schema for creating a training job.")
48
48
  });
49
49
  //#endregion
50
50
  export { replicateTrainingsCreate };
@@ -1 +1 @@
1
- {"version":3,"file":"trainings-create.mjs","names":[],"sources":["../../src/actions/trainings-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsCreateInput: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the model to train\"),\n input: z.record(z.string(), z.unknown()).describe(\"JSON object containing inputs to the Cog model's train() function. Schema varies by model\"),\n owner: z.string().describe(\"Name of the user or organization owning the model\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when training updates occur\").optional(),\n version_id: z.string().describe(\"The 64-character model version identifier to use for training\"),\n destination: z.string().describe(\"Destination model to push to in format {owner}/{name}\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of event types that trigger webhook calls. Options: 'start', 'output', 'logs', 'completed'\").optional(),\n}).describe(\"Request schema for creating a training job.\");\nconst ReplicateTrainingsCreate_TrainingsCreateUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"API endpoint to retrieve training status\"),\n web: z.string().describe(\"Browser-viewable training URL\").nullable().optional(),\n cancel: z.string().describe(\"Endpoint to cancel the training\"),\n}).describe(\"Endpoints to manage the training.\");\nconst ReplicateTrainingsCreate_TrainingsCreateMetricsSchema: z.ZodTypeAny = z.object({\n total_time: z.number().describe(\"Total completion time in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during training execution\").nullable().optional(),\n}).describe(\"Performance metrics for the training.\");\nexport const ReplicateTrainingsCreateOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique training identifier\"),\n logs: z.string().describe(\"Training operation logs\").nullable().optional(),\n urls: ReplicateTrainingsCreate_TrainingsCreateUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if training failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Training results including generated version and weights URLs (available upon success)\").nullable().optional(),\n source: z.string().describe(\"How training was created: web or api\").nullable().optional(),\n status: z.string().describe(\"Current training state - one of: starting, processing, succeeded, failed, canceled\"),\n metrics: ReplicateTrainingsCreate_TrainingsCreateMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID used to create the training\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when training was initiated\"),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when training finished\").nullable().optional(),\n}).describe(\"Response schema for creating a training job.\");\n\nexport const replicateTrainingsCreate = action(\"REPLICATE_TRAININGS_CREATE\", {\n slug: \"replicate-trainings-create\",\n name: \"Create Training Job\",\n description: \"Tool to create a training job for a specific model version. Use when you need to fine-tune a model with custom training data. Supports webhook notifications for training status updates.\",\n input: ReplicateTrainingsCreateInput,\n output: ReplicateTrainingsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8C,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F;CAC7I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACxF,uBAAuB,EAAE,MAAM,EAAE,KAAK;EAAC;EAAS;EAAU;EAAQ;CAAW,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;AACxM,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,qDAAmE,EAAE,OAAO;CAChF,KAAK,EAAE,OAAO,CA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D,SAAS,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,SAAS,8CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"trainings-create.mjs","names":[],"sources":["../../src/actions/trainings-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsCreateInput = z.object({\n name: z.string().describe(\"Name of the model to train\"),\n input: z.record(z.string(), z.unknown()).describe(\"JSON object containing inputs to the Cog model's train() function. Schema varies by model\"),\n owner: z.string().describe(\"Name of the user or organization owning the model\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when training updates occur\").optional(),\n version_id: z.string().describe(\"The 64-character model version identifier to use for training\"),\n destination: z.string().describe(\"Destination model to push to in format {owner}/{name}\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of event types that trigger webhook calls. Options: 'start', 'output', 'logs', 'completed'\").optional(),\n}).describe(\"Request schema for creating a training job.\");\nconst ReplicateTrainingsCreate_TrainingsCreateUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint to retrieve training status\").nullable(),\n web: z.string().describe(\"Browser-viewable training URL\").nullable().optional(),\n cancel: z.string().describe(\"Endpoint to cancel the training\").nullable(),\n}).passthrough().describe(\"Endpoints to manage the training.\");\nconst ReplicateTrainingsCreate_TrainingsCreateMetricsSchema = z.object({\n total_time: z.number().describe(\"Total completion time in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during training execution\").nullable().optional(),\n}).passthrough().describe(\"Performance metrics for the training.\");\nexport const ReplicateTrainingsCreateOutput = z.object({\n id: z.string().describe(\"Unique training identifier\").nullable(),\n logs: z.string().describe(\"Training operation logs\").nullable().optional(),\n urls: ReplicateTrainingsCreate_TrainingsCreateUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if training failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Training results including generated version and weights URLs (available upon success)\").nullable().optional(),\n source: z.string().describe(\"How training was created: web or api\").nullable().optional(),\n status: z.string().describe(\"Current training state - one of: starting, processing, succeeded, failed, canceled\").nullable(),\n metrics: ReplicateTrainingsCreate_TrainingsCreateMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID used to create the training\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when training was initiated\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when training finished\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a training job.\");\n\nexport const replicateTrainingsCreate = action(\"REPLICATE_TRAININGS_CREATE\", {\n slug: \"replicate-trainings-create\",\n name: \"Create Training Job\",\n description: \"Tool to create a training job for a specific model version. Use when you need to fine-tune a model with custom training data. Supports webhook notifications for training status updates.\",\n input: ReplicateTrainingsCreateInput,\n output: ReplicateTrainingsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F;CAC7I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,g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S,CAAC,CAAC,SAAS;EACnF,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC;EACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,sDAAsD,SAAS,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
@@ -3,38 +3,38 @@ let zod = require("zod");
3
3
  //#region src/actions/trainings-list.ts
4
4
  const ReplicateTrainingsListInput = 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 training jobs with optional pagination.");
5
5
  const ReplicateTrainingsList_TrainingUrlsSchema = zod.z.object({
6
- get: zod.z.string().describe("URL to retrieve the training's current status and results"),
7
- cancel: zod.z.string().describe("URL to cancel the in-progress training")
8
- }).describe("Convenience URLs for interacting with a training.");
6
+ get: zod.z.string().describe("URL to retrieve the training's current status and results").nullable(),
7
+ cancel: zod.z.string().describe("URL to cancel the in-progress training").nullable()
8
+ }).passthrough().describe("Convenience URLs for interacting with a training.");
9
9
  const ReplicateTrainingsList_TrainingOutputSchema = zod.z.object({
10
10
  version: zod.z.string().describe("64-character version ID of the trained model").nullable().optional(),
11
11
  weights: zod.z.string().describe("URL to the trained model weights").nullable().optional()
12
- }).describe("Training output containing the resulting model version and weights.");
12
+ }).passthrough().describe("Training output containing the resulting model version and weights.");
13
13
  const ReplicateTrainingsList_TrainingMetricsSchema = zod.z.object({
14
14
  total_time: zod.z.number().describe("Total time from creation to completion in seconds").nullable().optional(),
15
15
  predict_time: zod.z.number().describe("Time taken for prediction execution in seconds").nullable().optional()
16
- }).describe("Performance metrics for a training job.");
16
+ }).passthrough().describe("Performance metrics for a training job.");
17
17
  const ReplicateTrainingsList_TrainingSchema = zod.z.object({
18
- id: zod.z.string().describe("Unique identifier for this training job"),
18
+ id: zod.z.string().describe("Unique identifier for this training job").nullable(),
19
19
  logs: zod.z.string().describe("Training log output").nullable().optional(),
20
20
  urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),
21
21
  error: zod.z.string().describe("Error message if the training failed, null otherwise").nullable().optional(),
22
22
  input: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Training input parameters provided").nullable().optional(),
23
- model: zod.z.string().describe("Model identifier in format {owner}/{name}"),
23
+ model: zod.z.string().describe("Model identifier in format {owner}/{name}").nullable(),
24
24
  output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),
25
- source: zod.z.string().describe("How the training was created: 'web' or 'api'"),
26
- status: zod.z.string().describe("Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'"),
25
+ source: zod.z.string().describe("How the training was created: 'web' or 'api'").nullable(),
26
+ status: zod.z.string().describe("Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'").nullable(),
27
27
  metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),
28
- version: zod.z.string().describe("64-character version ID of the base model used for training"),
29
- created_at: zod.z.string().describe("ISO 8601 timestamp when the training was created"),
28
+ version: zod.z.string().describe("64-character version ID of the base model used for training").nullable(),
29
+ created_at: zod.z.string().describe("ISO 8601 timestamp when the training was created").nullable(),
30
30
  started_at: zod.z.string().describe("ISO 8601 timestamp when training began, null if not started").nullable().optional(),
31
31
  completed_at: zod.z.string().describe("ISO 8601 timestamp when the training completed, null if not completed").nullable().optional()
32
- }).describe("Representation of a training job object.");
32
+ }).passthrough().describe("Representation of a training job object.");
33
33
  const ReplicateTrainingsListOutput = zod.z.object({
34
34
  next: zod.z.string().describe("URL for the next page of results, null if no more pages available").nullable().optional(),
35
35
  results: zod.z.array(ReplicateTrainingsList_TrainingSchema).describe("Array of training objects on this page (up to 100 trainings per page)"),
36
36
  previous: zod.z.string().describe("URL for the previous page of results, null if on the first page").nullable().optional()
37
- }).describe("Paginated list of training jobs.");
37
+ }).passthrough().describe("Paginated list of training jobs.");
38
38
  const replicateTrainingsList = require_action.action("REPLICATE_TRAININGS_LIST", {
39
39
  slug: "replicate-trainings-list",
40
40
  name: "List Training Jobs",
@@ -1 +1 @@
1
- {"version":3,"file":"trainings-list.cjs","names":["z","action"],"sources":["../../src/actions/trainings-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsListInput: 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 training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\"),\n cancel: z.string().describe(\"URL to cancel the in-progress training\"),\n}).describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema: z.ZodTypeAny = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema: z.ZodTypeAny = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for this training job\"),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\"),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\"),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\"),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\"),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACpF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AACtE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrE,MAAM,0C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,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"trainings-list.cjs","names":["z","action"],"sources":["../../src/actions/trainings-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsListInput = 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 training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\").nullable(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).passthrough().describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).passthrough().describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).passthrough().describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema = z.object({\n id: z.string().describe(\"Unique identifier for this training job\").nullable(),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).passthrough().describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAA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AAS;CACtI,SAAS,6CAA6C,SAAS,CAAC,CAAC,SAAS;CAC1E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACrG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uEAAuE;CACxI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,41 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/trainings-list.d.ts
4
- declare const ReplicateTrainingsListInput: z.ZodTypeAny;
5
- declare const ReplicateTrainingsListOutput: z.ZodTypeAny;
6
- declare const replicateTrainingsList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateTrainingsListInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ declare const ReplicateTrainingsListOutput: z.ZodObject<{
8
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ results: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ urls: z.ZodNullable<z.ZodObject<{
13
+ get: z.ZodNullable<z.ZodString>;
14
+ cancel: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$loose>>;
16
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
+ model: z.ZodNullable<z.ZodString>;
19
+ output: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ weights: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$loose>>>;
23
+ source: z.ZodNullable<z.ZodString>;
24
+ status: z.ZodNullable<z.ZodString>;
25
+ metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
+ total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ }, z.core.$loose>>>;
29
+ version: z.ZodNullable<z.ZodString>;
30
+ created_at: z.ZodNullable<z.ZodString>;
31
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ }, z.core.$loose>>;
34
+ previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ }, z.core.$loose>;
36
+ declare const replicateTrainingsList: import("@keystrokehq/action").WorkflowActionDefinition<{
37
+ cursor?: string | undefined;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
39
  //#endregion
8
40
  export { replicateTrainingsList };
9
41
  //# sourceMappingURL=trainings-list.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trainings-list.d.cts","names":[],"sources":["../../src/actions/trainings-list.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEqC;AAAA,cA6BpE,4BAAA,EAA8B,CAAA,CAAE,UAIE;AAAA,cAElC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"trainings-list.d.cts","names":[],"sources":["../../src/actions/trainings-list.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
@@ -1,9 +1,41 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/trainings-list.d.ts
4
- declare const ReplicateTrainingsListInput: z.ZodTypeAny;
5
- declare const ReplicateTrainingsListOutput: z.ZodTypeAny;
6
- declare const replicateTrainingsList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateTrainingsListInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ }, z.core.$strip>;
7
+ declare const ReplicateTrainingsListOutput: z.ZodObject<{
8
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ results: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ urls: z.ZodNullable<z.ZodObject<{
13
+ get: z.ZodNullable<z.ZodString>;
14
+ cancel: z.ZodNullable<z.ZodString>;
15
+ }, z.core.$loose>>;
16
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
+ model: z.ZodNullable<z.ZodString>;
19
+ output: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ weights: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ }, z.core.$loose>>>;
23
+ source: z.ZodNullable<z.ZodString>;
24
+ status: z.ZodNullable<z.ZodString>;
25
+ metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
+ total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
+ predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
+ }, z.core.$loose>>>;
29
+ version: z.ZodNullable<z.ZodString>;
30
+ created_at: z.ZodNullable<z.ZodString>;
31
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ }, z.core.$loose>>;
34
+ previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ }, z.core.$loose>;
36
+ declare const replicateTrainingsList: import("@keystrokehq/action").WorkflowActionDefinition<{
37
+ cursor?: string | undefined;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
39
  //#endregion
8
40
  export { replicateTrainingsList };
9
41
  //# sourceMappingURL=trainings-list.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trainings-list.d.mts","names":[],"sources":["../../src/actions/trainings-list.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEqC;AAAA,cA6BpE,4BAAA,EAA8B,CAAA,CAAE,UAIE;AAAA,cAElC,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"trainings-list.d.mts","names":[],"sources":["../../src/actions/trainings-list.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cA+B3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM5B,sBAAA,gCAAsB,wBAAA"}
@@ -3,33 +3,33 @@ import { z } from "zod";
3
3
  //#region src/actions/trainings-list.ts
4
4
  const ReplicateTrainingsListInput = z.object({ cursor: z.string().describe("Cursor for pagination. Use the cursor from 'next' URL of previous response.").optional() }).describe("Request schema for listing training jobs with optional pagination.");
5
5
  const ReplicateTrainingsList_TrainingUrlsSchema = z.object({
6
- get: z.string().describe("URL to retrieve the training's current status and results"),
7
- cancel: z.string().describe("URL to cancel the in-progress training")
8
- }).describe("Convenience URLs for interacting with a training.");
6
+ get: z.string().describe("URL to retrieve the training's current status and results").nullable(),
7
+ cancel: z.string().describe("URL to cancel the in-progress training").nullable()
8
+ }).passthrough().describe("Convenience URLs for interacting with a training.");
9
9
  const ReplicateTrainingsList_TrainingOutputSchema = z.object({
10
10
  version: z.string().describe("64-character version ID of the trained model").nullable().optional(),
11
11
  weights: z.string().describe("URL to the trained model weights").nullable().optional()
12
- }).describe("Training output containing the resulting model version and weights.");
12
+ }).passthrough().describe("Training output containing the resulting model version and weights.");
13
13
  const ReplicateTrainingsList_TrainingMetricsSchema = z.object({
14
14
  total_time: z.number().describe("Total time from creation to completion in seconds").nullable().optional(),
15
15
  predict_time: z.number().describe("Time taken for prediction execution in seconds").nullable().optional()
16
- }).describe("Performance metrics for a training job.");
16
+ }).passthrough().describe("Performance metrics for a training job.");
17
17
  const ReplicateTrainingsList_TrainingSchema = z.object({
18
- id: z.string().describe("Unique identifier for this training job"),
18
+ id: z.string().describe("Unique identifier for this training job").nullable(),
19
19
  logs: z.string().describe("Training log output").nullable().optional(),
20
20
  urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),
21
21
  error: z.string().describe("Error message if the training failed, null otherwise").nullable().optional(),
22
22
  input: z.record(z.string(), z.unknown()).describe("Training input parameters provided").nullable().optional(),
23
- model: z.string().describe("Model identifier in format {owner}/{name}"),
23
+ model: z.string().describe("Model identifier in format {owner}/{name}").nullable(),
24
24
  output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),
25
- source: z.string().describe("How the training was created: 'web' or 'api'"),
26
- status: z.string().describe("Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'"),
25
+ source: z.string().describe("How the training was created: 'web' or 'api'").nullable(),
26
+ status: z.string().describe("Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'").nullable(),
27
27
  metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),
28
- version: z.string().describe("64-character version ID of the base model used for training"),
29
- created_at: z.string().describe("ISO 8601 timestamp when the training was created"),
28
+ version: z.string().describe("64-character version ID of the base model used for training").nullable(),
29
+ created_at: z.string().describe("ISO 8601 timestamp when the training was created").nullable(),
30
30
  started_at: z.string().describe("ISO 8601 timestamp when training began, null if not started").nullable().optional(),
31
31
  completed_at: z.string().describe("ISO 8601 timestamp when the training completed, null if not completed").nullable().optional()
32
- }).describe("Representation of a training job object.");
32
+ }).passthrough().describe("Representation of a training job object.");
33
33
  const replicateTrainingsList = action("REPLICATE_TRAININGS_LIST", {
34
34
  slug: "replicate-trainings-list",
35
35
  name: "List Training Jobs",
@@ -39,7 +39,7 @@ const replicateTrainingsList = action("REPLICATE_TRAININGS_LIST", {
39
39
  next: z.string().describe("URL for the next page of results, null if no more pages available").nullable().optional(),
40
40
  results: z.array(ReplicateTrainingsList_TrainingSchema).describe("Array of training objects on this page (up to 100 trainings per page)"),
41
41
  previous: z.string().describe("URL for the previous page of results, null if on the first page").nullable().optional()
42
- }).describe("Paginated list of training jobs.")
42
+ }).passthrough().describe("Paginated list of training jobs.")
43
43
  });
44
44
  //#endregion
45
45
  export { replicateTrainingsList };