@keystrokehq/replicate 0.1.0 → 0.1.2

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 (251) 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 +3 -3
  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 +3 -3
  10. package/dist/actions/account-get.mjs.map +1 -1
  11. package/dist/actions/cancel-prediction.cjs +6 -6
  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 +6 -6
  18. package/dist/actions/cancel-prediction.mjs.map +1 -1
  19. package/dist/actions/collections-get.cjs +8 -8
  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 +8 -8
  26. package/dist/actions/collections-get.mjs.map +1 -1
  27. package/dist/actions/collections-list.cjs +3 -3
  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 +3 -3
  34. package/dist/actions/collections-list.mjs.map +1 -1
  35. package/dist/actions/create-model.cjs +7 -7
  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 +7 -7
  42. package/dist/actions/create-model.mjs.map +1 -1
  43. package/dist/actions/create-prediction.cjs +8 -8
  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 +8 -8
  50. package/dist/actions/create-prediction.mjs.map +1 -1
  51. package/dist/actions/deployments-create.cjs +12 -12
  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 +12 -12
  58. package/dist/actions/deployments-create.mjs.map +1 -1
  59. package/dist/actions/deployments-delete.cjs.map +1 -1
  60. package/dist/actions/deployments-delete.d.cts +12 -3
  61. package/dist/actions/deployments-delete.d.cts.map +1 -1
  62. package/dist/actions/deployments-delete.d.mts +12 -3
  63. package/dist/actions/deployments-delete.d.mts.map +1 -1
  64. package/dist/actions/deployments-delete.mjs.map +1 -1
  65. package/dist/actions/deployments-get.cjs.map +1 -1
  66. package/dist/actions/deployments-get.d.cts +30 -3
  67. package/dist/actions/deployments-get.d.cts.map +1 -1
  68. package/dist/actions/deployments-get.d.mts +30 -3
  69. package/dist/actions/deployments-get.d.mts.map +1 -1
  70. package/dist/actions/deployments-get.mjs.map +1 -1
  71. package/dist/actions/deployments-list.cjs +12 -12
  72. package/dist/actions/deployments-list.cjs.map +1 -1
  73. package/dist/actions/deployments-list.d.cts +32 -3
  74. package/dist/actions/deployments-list.d.cts.map +1 -1
  75. package/dist/actions/deployments-list.d.mts +32 -3
  76. package/dist/actions/deployments-list.d.mts.map +1 -1
  77. package/dist/actions/deployments-list.mjs +12 -12
  78. package/dist/actions/deployments-list.mjs.map +1 -1
  79. package/dist/actions/files-create.cjs +5 -5
  80. package/dist/actions/files-create.cjs.map +1 -1
  81. package/dist/actions/files-create.d.cts +35 -3
  82. package/dist/actions/files-create.d.cts.map +1 -1
  83. package/dist/actions/files-create.d.mts +35 -3
  84. package/dist/actions/files-create.d.mts.map +1 -1
  85. package/dist/actions/files-create.mjs +5 -5
  86. package/dist/actions/files-create.mjs.map +1 -1
  87. package/dist/actions/files-delete.cjs.map +1 -1
  88. package/dist/actions/files-delete.d.cts +10 -3
  89. package/dist/actions/files-delete.d.cts.map +1 -1
  90. package/dist/actions/files-delete.d.mts +10 -3
  91. package/dist/actions/files-delete.d.mts.map +1 -1
  92. package/dist/actions/files-delete.mjs.map +1 -1
  93. package/dist/actions/files-get.cjs +6 -6
  94. package/dist/actions/files-get.cjs.map +1 -1
  95. package/dist/actions/files-get.d.cts +23 -3
  96. package/dist/actions/files-get.d.cts.map +1 -1
  97. package/dist/actions/files-get.d.mts +23 -3
  98. package/dist/actions/files-get.d.mts.map +1 -1
  99. package/dist/actions/files-get.mjs +6 -6
  100. package/dist/actions/files-get.mjs.map +1 -1
  101. package/dist/actions/files-list.cjs +7 -7
  102. package/dist/actions/files-list.cjs.map +1 -1
  103. package/dist/actions/files-list.d.cts +27 -3
  104. package/dist/actions/files-list.d.cts.map +1 -1
  105. package/dist/actions/files-list.d.mts +27 -3
  106. package/dist/actions/files-list.d.mts.map +1 -1
  107. package/dist/actions/files-list.mjs +7 -7
  108. package/dist/actions/files-list.mjs.map +1 -1
  109. package/dist/actions/get-prediction.cjs +7 -7
  110. package/dist/actions/get-prediction.cjs.map +1 -1
  111. package/dist/actions/get-prediction.d.cts +42 -3
  112. package/dist/actions/get-prediction.d.cts.map +1 -1
  113. package/dist/actions/get-prediction.d.mts +42 -3
  114. package/dist/actions/get-prediction.d.mts.map +1 -1
  115. package/dist/actions/get-prediction.mjs +7 -7
  116. package/dist/actions/get-prediction.mjs.map +1 -1
  117. package/dist/actions/hardware-list.cjs +2 -2
  118. package/dist/actions/hardware-list.cjs.map +1 -1
  119. package/dist/actions/hardware-list.d.cts +8 -3
  120. package/dist/actions/hardware-list.d.cts.map +1 -1
  121. package/dist/actions/hardware-list.d.mts +8 -3
  122. package/dist/actions/hardware-list.d.mts.map +1 -1
  123. package/dist/actions/hardware-list.mjs +2 -2
  124. package/dist/actions/hardware-list.mjs.map +1 -1
  125. package/dist/actions/models-examples-list.cjs +7 -7
  126. package/dist/actions/models-examples-list.cjs.map +1 -1
  127. package/dist/actions/models-examples-list.d.cts +37 -3
  128. package/dist/actions/models-examples-list.d.cts.map +1 -1
  129. package/dist/actions/models-examples-list.d.mts +37 -3
  130. package/dist/actions/models-examples-list.d.mts.map +1 -1
  131. package/dist/actions/models-examples-list.mjs +7 -7
  132. package/dist/actions/models-examples-list.mjs.map +1 -1
  133. package/dist/actions/models-get.cjs +20 -20
  134. package/dist/actions/models-get.cjs.map +1 -1
  135. package/dist/actions/models-get.d.cts +77 -3
  136. package/dist/actions/models-get.d.cts.map +1 -1
  137. package/dist/actions/models-get.d.mts +77 -3
  138. package/dist/actions/models-get.d.mts.map +1 -1
  139. package/dist/actions/models-get.mjs +20 -20
  140. package/dist/actions/models-get.mjs.map +1 -1
  141. package/dist/actions/models-list.cjs +8 -8
  142. package/dist/actions/models-list.cjs.map +1 -1
  143. package/dist/actions/models-list.d.cts +39 -3
  144. package/dist/actions/models-list.d.cts.map +1 -1
  145. package/dist/actions/models-list.d.mts +39 -3
  146. package/dist/actions/models-list.d.mts.map +1 -1
  147. package/dist/actions/models-list.mjs +8 -8
  148. package/dist/actions/models-list.mjs.map +1 -1
  149. package/dist/actions/models-predictions-create.cjs +5 -5
  150. package/dist/actions/models-predictions-create.cjs.map +1 -1
  151. package/dist/actions/models-predictions-create.d.cts +46 -3
  152. package/dist/actions/models-predictions-create.d.cts.map +1 -1
  153. package/dist/actions/models-predictions-create.d.mts +46 -3
  154. package/dist/actions/models-predictions-create.d.mts.map +1 -1
  155. package/dist/actions/models-predictions-create.mjs +5 -5
  156. package/dist/actions/models-predictions-create.mjs.map +1 -1
  157. package/dist/actions/models-readme-get.cjs +1 -1
  158. package/dist/actions/models-readme-get.cjs.map +1 -1
  159. package/dist/actions/models-readme-get.d.cts +11 -3
  160. package/dist/actions/models-readme-get.d.cts.map +1 -1
  161. package/dist/actions/models-readme-get.d.mts +11 -3
  162. package/dist/actions/models-readme-get.d.mts.map +1 -1
  163. package/dist/actions/models-readme-get.mjs +1 -1
  164. package/dist/actions/models-readme-get.mjs.map +1 -1
  165. package/dist/actions/models-versions-get.cjs +3 -3
  166. package/dist/actions/models-versions-get.cjs.map +1 -1
  167. package/dist/actions/models-versions-get.d.cts +16 -3
  168. package/dist/actions/models-versions-get.d.cts.map +1 -1
  169. package/dist/actions/models-versions-get.d.mts +16 -3
  170. package/dist/actions/models-versions-get.d.mts.map +1 -1
  171. package/dist/actions/models-versions-get.mjs +3 -3
  172. package/dist/actions/models-versions-get.mjs.map +1 -1
  173. package/dist/actions/models-versions-list.cjs +3 -3
  174. package/dist/actions/models-versions-list.cjs.map +1 -1
  175. package/dist/actions/models-versions-list.d.cts +20 -3
  176. package/dist/actions/models-versions-list.d.cts.map +1 -1
  177. package/dist/actions/models-versions-list.d.mts +20 -3
  178. package/dist/actions/models-versions-list.d.mts.map +1 -1
  179. package/dist/actions/models-versions-list.mjs +3 -3
  180. package/dist/actions/models-versions-list.mjs.map +1 -1
  181. package/dist/actions/predictions-create.cjs +5 -5
  182. package/dist/actions/predictions-create.cjs.map +1 -1
  183. package/dist/actions/predictions-create.d.cts +47 -3
  184. package/dist/actions/predictions-create.d.cts.map +1 -1
  185. package/dist/actions/predictions-create.d.mts +47 -3
  186. package/dist/actions/predictions-create.d.mts.map +1 -1
  187. package/dist/actions/predictions-create.mjs +5 -5
  188. package/dist/actions/predictions-create.mjs.map +1 -1
  189. package/dist/actions/predictions-list.cjs +9 -9
  190. package/dist/actions/predictions-list.cjs.map +1 -1
  191. package/dist/actions/predictions-list.d.cts +38 -3
  192. package/dist/actions/predictions-list.d.cts.map +1 -1
  193. package/dist/actions/predictions-list.d.mts +38 -3
  194. package/dist/actions/predictions-list.d.mts.map +1 -1
  195. package/dist/actions/predictions-list.mjs +9 -9
  196. package/dist/actions/predictions-list.mjs.map +1 -1
  197. package/dist/actions/search.cjs +19 -19
  198. package/dist/actions/search.cjs.map +1 -1
  199. package/dist/actions/search.d.cts +80 -3
  200. package/dist/actions/search.d.cts.map +1 -1
  201. package/dist/actions/search.d.mts +80 -3
  202. package/dist/actions/search.d.mts.map +1 -1
  203. package/dist/actions/search.mjs +19 -19
  204. package/dist/actions/search.mjs.map +1 -1
  205. package/dist/actions/trainings-cancel.cjs +6 -6
  206. package/dist/actions/trainings-cancel.cjs.map +1 -1
  207. package/dist/actions/trainings-cancel.d.cts +26 -3
  208. package/dist/actions/trainings-cancel.d.cts.map +1 -1
  209. package/dist/actions/trainings-cancel.d.mts +26 -3
  210. package/dist/actions/trainings-cancel.d.mts.map +1 -1
  211. package/dist/actions/trainings-cancel.mjs +6 -6
  212. package/dist/actions/trainings-cancel.mjs.map +1 -1
  213. package/dist/actions/trainings-create.cjs +5 -5
  214. package/dist/actions/trainings-create.cjs.map +1 -1
  215. package/dist/actions/trainings-create.d.cts +46 -3
  216. package/dist/actions/trainings-create.d.cts.map +1 -1
  217. package/dist/actions/trainings-create.d.mts +46 -3
  218. package/dist/actions/trainings-create.d.mts.map +1 -1
  219. package/dist/actions/trainings-create.mjs +5 -5
  220. package/dist/actions/trainings-create.mjs.map +1 -1
  221. package/dist/actions/trainings-list.cjs +8 -8
  222. package/dist/actions/trainings-list.cjs.map +1 -1
  223. package/dist/actions/trainings-list.d.cts +35 -3
  224. package/dist/actions/trainings-list.d.cts.map +1 -1
  225. package/dist/actions/trainings-list.d.mts +35 -3
  226. package/dist/actions/trainings-list.d.mts.map +1 -1
  227. package/dist/actions/trainings-list.mjs +8 -8
  228. package/dist/actions/trainings-list.mjs.map +1 -1
  229. package/dist/actions/update-models.cjs +6 -6
  230. package/dist/actions/update-models.cjs.map +1 -1
  231. package/dist/actions/update-models.d.cts +35 -3
  232. package/dist/actions/update-models.d.cts.map +1 -1
  233. package/dist/actions/update-models.d.mts +35 -3
  234. package/dist/actions/update-models.d.mts.map +1 -1
  235. package/dist/actions/update-models.mjs +6 -6
  236. package/dist/actions/update-models.mjs.map +1 -1
  237. package/dist/actions/webhooks-secret-get.cjs +1 -1
  238. package/dist/actions/webhooks-secret-get.cjs.map +1 -1
  239. package/dist/actions/webhooks-secret-get.d.cts +5 -3
  240. package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
  241. package/dist/actions/webhooks-secret-get.d.mts +5 -3
  242. package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
  243. package/dist/actions/webhooks-secret-get.mjs +1 -1
  244. package/dist/actions/webhooks-secret-get.mjs.map +1 -1
  245. package/dist/catalog.cjs +7 -1
  246. package/dist/catalog.cjs.map +1 -1
  247. package/dist/catalog.d.cts +8 -0
  248. package/dist/catalog.d.mts +8 -0
  249. package/dist/catalog.mjs +7 -1
  250. package/dist/catalog.mjs.map +1 -1
  251. package/package.json +2 -2
@@ -1,9 +1,52 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/models-predictions-create.d.ts
4
- declare const ReplicateModelsPredictionsCreateInput: z.ZodTypeAny;
5
- declare const ReplicateModelsPredictionsCreateOutput: z.ZodTypeAny;
6
- declare const replicateModelsPredictionsCreate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateModelsPredictionsCreateInput: z.ZodObject<{
5
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6
+ webhook: z.ZodOptional<z.ZodString>;
7
+ wait_for: z.ZodOptional<z.ZodNumber>;
8
+ model_name: z.ZodString;
9
+ model_owner: z.ZodString;
10
+ cancel_after: z.ZodOptional<z.ZodString>;
11
+ webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
12
+ output: "output";
13
+ logs: "logs";
14
+ start: "start";
15
+ completed: "completed";
16
+ }>>>;
17
+ }, z.core.$strip>;
18
+ declare const ReplicateModelsPredictionsCreateOutput: 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
+ stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$strip>>;
27
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
29
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
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.$strip>;
41
+ declare const replicateModelsPredictionsCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
42
+ input: Record<string, unknown>;
43
+ model_name: string;
44
+ model_owner: string;
45
+ webhook?: string | undefined;
46
+ wait_for?: number | undefined;
47
+ cancel_after?: string | undefined;
48
+ webhook_events_filter?: ("output" | "logs" | "start" | "completed")[] | undefined;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
50
  //#endregion
8
51
  export { replicateModelsPredictionsCreate };
9
52
  //# sourceMappingURL=models-predictions-create.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models-predictions-create.d.cts","names":[],"sources":["../../src/actions/models-predictions-create.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAQ0B;AAAA,cAWnE,sCAAA,EAAwC,CAAA,CAAE,UAc0B;AAAA,cAEpE,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"models-predictions-create.d.cts","names":[],"sources":["../../src/actions/models-predictions-create.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAmBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAgBtC,gCAAA,gCAAgC,wBAAA;SAM3C,MAAA"}
@@ -1,9 +1,52 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/models-predictions-create.d.ts
4
- declare const ReplicateModelsPredictionsCreateInput: z.ZodTypeAny;
5
- declare const ReplicateModelsPredictionsCreateOutput: z.ZodTypeAny;
6
- declare const replicateModelsPredictionsCreate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateModelsPredictionsCreateInput: z.ZodObject<{
5
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
6
+ webhook: z.ZodOptional<z.ZodString>;
7
+ wait_for: z.ZodOptional<z.ZodNumber>;
8
+ model_name: z.ZodString;
9
+ model_owner: z.ZodString;
10
+ cancel_after: z.ZodOptional<z.ZodString>;
11
+ webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
12
+ output: "output";
13
+ logs: "logs";
14
+ start: "start";
15
+ completed: "completed";
16
+ }>>>;
17
+ }, z.core.$strip>;
18
+ declare const ReplicateModelsPredictionsCreateOutput: 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
+ stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
+ }, z.core.$strip>>;
27
+ error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
29
+ model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
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.$strip>;
41
+ declare const replicateModelsPredictionsCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
42
+ input: Record<string, unknown>;
43
+ model_name: string;
44
+ model_owner: string;
45
+ webhook?: string | undefined;
46
+ wait_for?: number | undefined;
47
+ cancel_after?: string | undefined;
48
+ webhook_events_filter?: ("output" | "logs" | "start" | "completed")[] | undefined;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
50
  //#endregion
8
51
  export { replicateModelsPredictionsCreate };
9
52
  //# sourceMappingURL=models-predictions-create.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models-predictions-create.d.mts","names":[],"sources":["../../src/actions/models-predictions-create.ts"],"mappings":";;;cAIa,qCAAA,EAAuC,CAAA,CAAE,UAQ0B;AAAA,cAWnE,sCAAA,EAAwC,CAAA,CAAE,UAc0B;AAAA,cAEpE,gCAAA,gCAAgC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"models-predictions-create.d.mts","names":[],"sources":["../../src/actions/models-predictions-create.ts"],"mappings":";;;cAIa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAmBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAgBtC,gCAAA,gCAAgC,wBAAA;SAM3C,MAAA"}
@@ -16,9 +16,9 @@ const ReplicateModelsPredictionsCreateInput = z.object({
16
16
  ])).describe("Filter webhook triggers by event type: 'start', 'output', 'logs', or 'completed'").optional()
17
17
  }).describe("Request schema for creating a prediction using an official model.");
18
18
  const ReplicateModelsPredictionsCreate_PredictionUrlsSchema = z.object({
19
- get: z.string().describe("API endpoint URL to get the prediction details"),
19
+ get: z.string().describe("API endpoint URL to get the prediction details").nullable(),
20
20
  web: z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
21
- cancel: z.string().describe("API endpoint URL to cancel the prediction"),
21
+ cancel: z.string().describe("API endpoint URL to cancel the prediction").nullable(),
22
22
  stream: z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
23
23
  }).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.");
24
24
  const ReplicateModelsPredictionsCreate_PredictionMetricsSchema = z.object({
@@ -31,17 +31,17 @@ const replicateModelsPredictionsCreate = action("REPLICATE_MODELS_PREDICTIONS_CR
31
31
  description: "Tool to create a prediction using an official Replicate model. Use when you need to run inference with a specific model using its owner and name. Supports synchronous waiting (up to 60 seconds) and webhooks for async notifications.",
32
32
  input: ReplicateModelsPredictionsCreateInput,
33
33
  output: z.object({
34
- id: z.string().describe("Unique prediction identifier"),
34
+ id: z.string().describe("Unique prediction identifier").nullable(),
35
35
  logs: z.string().describe("Logs generated during the prediction").nullable().optional(),
36
36
  urls: ReplicateModelsPredictionsCreate_PredictionUrlsSchema.nullable(),
37
37
  error: z.string().describe("Error message if prediction failed; null otherwise").nullable().optional(),
38
38
  input: z.record(z.string(), z.unknown()).describe("Input provided for the prediction"),
39
39
  model: z.string().describe("Model identifier in owner/name format").nullable().optional(),
40
40
  output: z.unknown().describe("Model output results; null if data removed after retention period or if prediction not yet completed").nullable().optional(),
41
- status: z.string().describe("Current status of the prediction: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'"),
41
+ status: z.string().describe("Current status of the prediction: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'").nullable(),
42
42
  metrics: ReplicateModelsPredictionsCreate_PredictionMetricsSchema.nullable().optional(),
43
43
  version: z.string().describe("Version ID of the model used in prediction").nullable().optional(),
44
- created_at: z.string().describe("ISO 8601 timestamp when prediction was created"),
44
+ created_at: z.string().describe("ISO 8601 timestamp when prediction was created").nullable(),
45
45
  started_at: z.string().describe("ISO 8601 timestamp when prediction started processing").nullable().optional(),
46
46
  completed_at: z.string().describe("ISO 8601 timestamp when prediction completed").nullable().optional()
47
47
  }).describe("Response schema for creating a prediction using an official model.")
@@ -1 +1 @@
1
- {"version":3,"file":"models-predictions-create.mjs","names":[],"sources":["../../src/actions/models-predictions-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsPredictionsCreateInput: z.ZodTypeAny = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model - each model has its own set of required fields, optional parameters, and validation constraints (e.g., max dimensions for image models). IMPORTANT: Before making predictions, use the REPLICATE_MODELS_GET action to fetch the model's openapi_schema which contains all valid input parameters and their constraints. For image models like flux-1.1-pro, common constraints include max width/height limits (e.g., 1440px), valid aspect ratios, and output format options\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur\").optional(),\n wait_for: z.number().int().describe(\"Seconds to wait for prediction completion (1-60); adds a 'Prefer: wait=<n>' header to block and wait synchronously\").optional(),\n model_name: z.string().describe(\"The name of the model as it appears on Replicate. Must be an exact match. Find valid model names by searching at replicate.com or using the search/models_list actions. The full model identifier is {model_owner}/{model_name}\"),\n model_owner: z.string().describe(\"The username or organization that owns the model on Replicate. Find valid owners by searching models at replicate.com or using the search/models_list actions. Examples: 'meta', 'stability-ai', 'black-forest-labs', 'bytedance', 'google'\"),\n cancel_after: z.string().describe(\"Maximum execution duration with optional unit suffixes (s/m/h); minimum 5 seconds. Example: '60s' or '5m'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Filter webhook triggers by event type: 'start', 'output', 'logs', or 'completed'\").optional(),\n}).describe(\"Request schema for creating a prediction using an official model.\");\nconst ReplicateModelsPredictionsCreate_PredictionUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\"),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\"),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateModelsPredictionsCreate_PredictionMetricsSchema: z.ZodTypeAny = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateModelsPredictionsCreateOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique prediction identifier\"),\n logs: z.string().describe(\"Logs generated during the prediction\").nullable().optional(),\n urls: ReplicateModelsPredictionsCreate_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if prediction failed; null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the prediction\"),\n model: z.string().describe(\"Model identifier in owner/name format\").nullable().optional(),\n output: z.unknown().describe(\"Model output results; null if data removed after retention period or if prediction not yet completed\").nullable().optional(),\n status: z.string().describe(\"Current status of the prediction: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\"),\n metrics: ReplicateModelsPredictionsCreate_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"Version ID of the model used in prediction\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when prediction was created\"),\n started_at: z.string().describe(\"ISO 8601 timestamp when prediction started processing\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when prediction completed\").nullable().optional(),\n}).describe(\"Response schema for creating a prediction using an official model.\");\n\nexport const replicateModelsPredictionsCreate = action(\"REPLICATE_MODELS_PREDICTIONS_CREATE\", {\n slug: \"replicate-models-predictions-create\",\n name: \"Create Model Prediction\",\n description: \"Tool to create a prediction using an official Replicate model. Use when you need to run inference with a specific model using its owner and name. Supports synchronous waiting (up to 60 seconds) and webhooks for async notifications.\",\n input: ReplicateModelsPredictionsCreateInput,\n output: ReplicateModelsPredictionsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAsD,EAAE,OAAO;CAC1E,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,ogBAAogB;CACtjB,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACnK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iOAAiO;CACjQ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6OAA6O;CAC9Q,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACxJ,uBAAuB,EAAE,MAAM,EAAE,KAAK;EAAC;EAAS;EAAU;EAAQ;CAAW,CAAC,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AACzL,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,wDAAsE,EAAE,OAAO;CACnF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;CACzE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C;CACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,kSAAkS;AAC9S,MAAM,2DAAyE,EAAE,OAAO;CACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAiBjE,MAAa,mCAAmC,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBkE,EAAE,OAAO;EAC3E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;EACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,MAAM,sDAAsD,SAAS;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG;EAC9H,SAAS,yDAAyD,SAAS,CAAC,CAAC,SAAS;EACtF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD;EAChF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,SAAS,oEAOF;AACV,CAAC"}
1
+ {"version":3,"file":"models-predictions-create.mjs","names":[],"sources":["../../src/actions/models-predictions-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsPredictionsCreateInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model - each model has its own set of required fields, optional parameters, and validation constraints (e.g., max dimensions for image models). IMPORTANT: Before making predictions, use the REPLICATE_MODELS_GET action to fetch the model's openapi_schema which contains all valid input parameters and their constraints. For image models like flux-1.1-pro, common constraints include max width/height limits (e.g., 1440px), valid aspect ratios, and output format options\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur\").optional(),\n wait_for: z.number().int().describe(\"Seconds to wait for prediction completion (1-60); adds a 'Prefer: wait=<n>' header to block and wait synchronously\").optional(),\n model_name: z.string().describe(\"The name of the model as it appears on Replicate. Must be an exact match. Find valid model names by searching at replicate.com or using the search/models_list actions. The full model identifier is {model_owner}/{model_name}\"),\n model_owner: z.string().describe(\"The username or organization that owns the model on Replicate. Find valid owners by searching models at replicate.com or using the search/models_list actions. Examples: 'meta', 'stability-ai', 'black-forest-labs', 'bytedance', 'google'\"),\n cancel_after: z.string().describe(\"Maximum execution duration with optional unit suffixes (s/m/h); minimum 5 seconds. Example: '60s' or '5m'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Filter webhook triggers by event type: 'start', 'output', 'logs', or 'completed'\").optional(),\n}).describe(\"Request schema for creating a prediction using an official model.\");\nconst ReplicateModelsPredictionsCreate_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}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateModelsPredictionsCreate_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateModelsPredictionsCreateOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"Logs generated during the prediction\").nullable().optional(),\n urls: ReplicateModelsPredictionsCreate_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if prediction failed; null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the prediction\"),\n model: z.string().describe(\"Model identifier in owner/name format\").nullable().optional(),\n output: z.unknown().describe(\"Model output results; null if data removed after retention period or if prediction not yet completed\").nullable().optional(),\n status: z.string().describe(\"Current status of the prediction: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateModelsPredictionsCreate_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"Version ID of the model used in prediction\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when prediction was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when prediction started processing\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when prediction completed\").nullable().optional(),\n}).describe(\"Response schema for creating a prediction using an official model.\");\n\nexport const replicateModelsPredictionsCreate = action(\"REPLICATE_MODELS_PREDICTIONS_CREATE\", {\n slug: \"replicate-models-predictions-create\",\n name: \"Create Model Prediction\",\n description: \"Tool to create a prediction using an official Replicate model. Use when you need to run inference with a specific model using its owner and name. Supports synchronous waiting (up to 60 seconds) and webhooks for async notifications.\",\n input: ReplicateModelsPredictionsCreateInput,\n output: ReplicateModelsPredictionsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wCAAwC,EAAE,OAAO;CAC5D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,ogBAAogB;CACtjB,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC1G,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oHAAoH,CAAC,CAAC,SAAS;CACnK,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iOAAiO;CACjQ,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6OAA6O;CAC9Q,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACxJ,uBAAuB,EAAE,MAAM,EAAE,KAAK;EAAC;EAAS;EAAU;EAAQ;CAAW,CAAC,CAAC,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;AACzL,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,wDAAwD,EAAE,OAAO;CACrE,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,SAAS,kSAAkS;AAC9S,MAAM,2DAA2D,EAAE,OAAO;CACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAiBjE,MAAa,mCAAmC,OAAO,uCAAuC;CAC5F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QArBoD,EAAE,OAAO;EAC7D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,MAAM,sDAAsD,SAAS;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;EACzI,SAAS,yDAAyD,SAAS,CAAC,CAAC,SAAS;EACtF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,CAAC,CAAC,CAAC,SAAS,oEAOF;AACV,CAAC"}
@@ -5,7 +5,7 @@ const ReplicateModelsReadmeGetInput = zod.z.object({
5
5
  model_name: zod.z.string().describe("The name of the model, e.g., 'hello-world'"),
6
6
  model_owner: zod.z.string().describe("The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).")
7
7
  }).describe("Request schema for retrieving the README content of a specific model.");
8
- const ReplicateModelsReadmeGetOutput = zod.z.object({ content: zod.z.string().describe("The README content for the specified model in Markdown format") }).describe("Response schema containing the model's README content in Markdown format.");
8
+ const ReplicateModelsReadmeGetOutput = zod.z.object({ content: zod.z.string().describe("The README content for the specified model in Markdown format").nullable() }).describe("Response schema containing the model's README content in Markdown format.");
9
9
  const replicateModelsReadmeGet = require_action.action("REPLICATE_MODELS_README_GET", {
10
10
  slug: "replicate-models-readme-get",
11
11
  name: "Get Model README",
@@ -1 +1 @@
1
- {"version":3,"file":"models-readme-get.cjs","names":["z","action"],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsReadmeGetInput: z.ZodTypeAny = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\"),\n}).describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AACpK,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC9F,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAEvF,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"models-readme-get.cjs","names":["z","action"],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsReadmeGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\").nullable(),\n}).describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AACpK,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAEvF,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,17 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/models-readme-get.d.ts
4
- declare const ReplicateModelsReadmeGetInput: z.ZodTypeAny;
5
- declare const ReplicateModelsReadmeGetOutput: z.ZodTypeAny;
6
- declare const replicateModelsReadmeGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateModelsReadmeGetInput: z.ZodObject<{
5
+ model_name: z.ZodString;
6
+ model_owner: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const ReplicateModelsReadmeGetOutput: z.ZodObject<{
9
+ content: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ declare const replicateModelsReadmeGet: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ model_name: string;
13
+ model_owner: string;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
15
  //#endregion
8
16
  export { replicateModelsReadmeGet };
9
17
  //# sourceMappingURL=models-readme-get.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models-readme-get.d.cts","names":[],"sources":["../../src/actions/models-readme-get.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAGsC;AAAA,cACvE,8BAAA,EAAgC,CAAA,CAAE,UAEyC;AAAA,cAE3E,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"models-readme-get.d.cts","names":[],"sources":["../../src/actions/models-readme-get.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
@@ -1,9 +1,17 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/models-readme-get.d.ts
4
- declare const ReplicateModelsReadmeGetInput: z.ZodTypeAny;
5
- declare const ReplicateModelsReadmeGetOutput: z.ZodTypeAny;
6
- declare const replicateModelsReadmeGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateModelsReadmeGetInput: z.ZodObject<{
5
+ model_name: z.ZodString;
6
+ model_owner: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const ReplicateModelsReadmeGetOutput: z.ZodObject<{
9
+ content: z.ZodNullable<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ declare const replicateModelsReadmeGet: import("@keystrokehq/action").WorkflowActionDefinition<{
12
+ model_name: string;
13
+ model_owner: string;
14
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
15
  //#endregion
8
16
  export { replicateModelsReadmeGet };
9
17
  //# sourceMappingURL=models-readme-get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models-readme-get.d.mts","names":[],"sources":["../../src/actions/models-readme-get.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAGsC;AAAA,cACvE,8BAAA,EAAgC,CAAA,CAAE,UAEyC;AAAA,cAE3E,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"models-readme-get.d.mts","names":[],"sources":["../../src/actions/models-readme-get.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,gCAAwB,wBAAA"}
@@ -8,7 +8,7 @@ const replicateModelsReadmeGet = action("REPLICATE_MODELS_README_GET", {
8
8
  model_name: z.string().describe("The name of the model, e.g., 'hello-world'"),
9
9
  model_owner: z.string().describe("The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).")
10
10
  }).describe("Request schema for retrieving the README content of a specific model."),
11
- output: z.object({ content: z.string().describe("The README content for the specified model in Markdown format") }).describe("Response schema containing the model's README content in Markdown format.")
11
+ output: z.object({ content: z.string().describe("The README content for the specified model in Markdown format").nullable() }).describe("Response schema containing the model's README content in Markdown format.")
12
12
  });
13
13
  //#endregion
14
14
  export { replicateModelsReadmeGet };
@@ -1 +1 @@
1
- {"version":3,"file":"models-readme-get.mjs","names":[],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsReadmeGetInput: z.ZodTypeAny = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput: z.ZodTypeAny = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\"),\n}).describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":";;AAYA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZyD,EAAE,OAAO;EAClE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CACpK,CAAC,CAAC,CAAC,SAAS,uEASH;CACP,QAT0D,EAAE,OAAO,EACnE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,EAC9F,CAAC,CAAC,CAAC,SAAS,2EAOF;AACV,CAAC"}
1
+ {"version":3,"file":"models-readme-get.mjs","names":[],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsReadmeGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\").nullable(),\n}).describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":";;AAYA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ2C,EAAE,OAAO;EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CACpK,CAAC,CAAC,CAAC,SAAS,uEASH;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,SAAS,2EAOF;AACV,CAAC"}
@@ -7,9 +7,9 @@ const ReplicateModelsVersionsGetInput = zod.z.object({
7
7
  model_owner: zod.z.string().describe("The name of the user or organization that owns the model, e.g., 'replicate'")
8
8
  }).describe("Request schema for retrieving a specific version of a model.");
9
9
  const ReplicateModelsVersionsGetOutput = zod.z.object({
10
- id: zod.z.string().describe("The version's unique 64-character identifier"),
11
- created_at: zod.z.string().describe("ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'"),
12
- cog_version: zod.z.string().describe("The Cog framework version used to build the model, e.g., '0.3.0'"),
10
+ id: zod.z.string().describe("The version's unique 64-character identifier").nullable(),
11
+ created_at: zod.z.string().describe("ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'").nullable(),
12
+ cog_version: zod.z.string().describe("The Cog framework version used to build the model, e.g., '0.3.0'").nullable(),
13
13
  openapi_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Complete OpenAPI specification including input parameter definitions and output specification")
14
14
  }).describe("Response schema for models.versions.get: Detailed information about a specific model version.");
15
15
  const replicateModelsVersionsGet = require_action.action("REPLICATE_MODELS_VERSIONS_GET", {
@@ -1 +1 @@
1
- {"version":3,"file":"models-versions-get.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsGetInput: z.ZodTypeAny = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\"),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\"),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO;CACpE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AAChH,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACtE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;CACnG,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC5J,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAE3G,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"models-versions-get.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AAChH,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC7H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC5J,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAE3G,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/models-versions-get.d.ts
4
- declare const ReplicateModelsVersionsGetInput: z.ZodTypeAny;
5
- declare const ReplicateModelsVersionsGetOutput: z.ZodTypeAny;
6
- declare const replicateModelsVersionsGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateModelsVersionsGetInput: z.ZodObject<{
5
+ model_name: z.ZodString;
6
+ version_id: z.ZodString;
7
+ model_owner: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const ReplicateModelsVersionsGetOutput: z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ created_at: z.ZodNullable<z.ZodString>;
12
+ cog_version: z.ZodNullable<z.ZodString>;
13
+ openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ }, z.core.$strip>;
15
+ declare const replicateModelsVersionsGet: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ model_name: string;
17
+ version_id: string;
18
+ model_owner: string;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { replicateModelsVersionsGet };
9
22
  //# sourceMappingURL=models-versions-get.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models-versions-get.d.cts","names":[],"sources":["../../src/actions/models-versions-get.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAI2B;AAAA,cAC9D,gCAAA,EAAkC,CAAA,CAAE,UAK2D;AAAA,cAE/F,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"models-versions-get.d.cts","names":[],"sources":["../../src/actions/models-versions-get.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAOhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,22 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/models-versions-get.d.ts
4
- declare const ReplicateModelsVersionsGetInput: z.ZodTypeAny;
5
- declare const ReplicateModelsVersionsGetOutput: z.ZodTypeAny;
6
- declare const replicateModelsVersionsGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateModelsVersionsGetInput: z.ZodObject<{
5
+ model_name: z.ZodString;
6
+ version_id: z.ZodString;
7
+ model_owner: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const ReplicateModelsVersionsGetOutput: z.ZodObject<{
10
+ id: z.ZodNullable<z.ZodString>;
11
+ created_at: z.ZodNullable<z.ZodString>;
12
+ cog_version: z.ZodNullable<z.ZodString>;
13
+ openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ }, z.core.$strip>;
15
+ declare const replicateModelsVersionsGet: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ model_name: string;
17
+ version_id: string;
18
+ model_owner: string;
19
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
20
  //#endregion
8
21
  export { replicateModelsVersionsGet };
9
22
  //# sourceMappingURL=models-versions-get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models-versions-get.d.mts","names":[],"sources":["../../src/actions/models-versions-get.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAI2B;AAAA,cAC9D,gCAAA,EAAkC,CAAA,CAAE,UAK2D;AAAA,cAE/F,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"models-versions-get.d.mts","names":[],"sources":["../../src/actions/models-versions-get.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAOhC,0BAAA,gCAA0B,wBAAA"}
@@ -10,9 +10,9 @@ const replicateModelsVersionsGet = action("REPLICATE_MODELS_VERSIONS_GET", {
10
10
  model_owner: z.string().describe("The name of the user or organization that owns the model, e.g., 'replicate'")
11
11
  }).describe("Request schema for retrieving a specific version of a model."),
12
12
  output: z.object({
13
- id: z.string().describe("The version's unique 64-character identifier"),
14
- created_at: z.string().describe("ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'"),
15
- cog_version: z.string().describe("The Cog framework version used to build the model, e.g., '0.3.0'"),
13
+ id: z.string().describe("The version's unique 64-character identifier").nullable(),
14
+ created_at: z.string().describe("ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'").nullable(),
15
+ cog_version: z.string().describe("The Cog framework version used to build the model, e.g., '0.3.0'").nullable(),
16
16
  openapi_schema: z.record(z.string(), z.unknown()).describe("Complete OpenAPI specification including input parameter definitions and output specification")
17
17
  }).describe("Response schema for models.versions.get: Detailed information about a specific model version.")
18
18
  });
@@ -1 +1 @@
1
- {"version":3,"file":"models-versions-get.mjs","names":[],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsGetInput: z.ZodTypeAny = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\"),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\"),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":";;AAgBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB2D,EAAE,OAAO;EACpE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CAChH,CAAC,CAAC,CAAC,SAAS,8DAYH;CACP,QAZ4D,EAAE,OAAO;EACrE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EACtE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF;EAClH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE;EACnG,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F;CAC5J,CAAC,CAAC,CAAC,SAAS,+FAOF;AACV,CAAC"}
1
+ {"version":3,"file":"models-versions-get.mjs","names":[],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":";;AAgBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB6C,EAAE,OAAO;EACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CAChH,CAAC,CAAC,CAAC,SAAS,8DAYH;CACP,QAZ8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EAC7H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC9G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F;CAC5J,CAAC,CAAC,CAAC,SAAS,+FAOF;AACV,CAAC"}
@@ -7,9 +7,9 @@ const ReplicateModelsVersionsListInput = zod.z.object({
7
7
  model_owner: zod.z.string().describe("The username or organization that owns the model, e.g., 'replicate'")
8
8
  }).describe("Request schema for listing all versions of a specific model.");
9
9
  const ReplicateModelsVersionsList_ModelVersionSchema = zod.z.object({
10
- id: zod.z.string().describe("The 64-character version identifier"),
11
- created_at: zod.z.string().describe("ISO 8601 timestamp of when the version was created"),
12
- cog_version: zod.z.string().describe("Version of the Cog framework used to build this model version"),
10
+ id: zod.z.string().describe("The 64-character version identifier").nullable(),
11
+ created_at: zod.z.string().describe("ISO 8601 timestamp of when the version was created").nullable(),
12
+ cog_version: zod.z.string().describe("Version of the Cog framework used to build this model version").nullable(),
13
13
  openapi_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Complete OpenAPI schema describing the model's inputs and outputs")
14
14
  }).describe("Representation of a model version.");
15
15
  const ReplicateModelsVersionsListOutput = zod.z.object({
@@ -1 +1 @@
1
- {"version":3,"file":"models-versions-list.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsListInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The 64-character version identifier\"),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\"),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\"),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,iDAA+DA,IAAAA,EAAE,OAAO;CAC5E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACpF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAChG,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,oCAAkDA,IAAAA,EAAE,OAAO;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,uCAAuC;CACjH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"models-versions-list.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,uCAAuC;CACjH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,26 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/models-versions-list.d.ts
4
- declare const ReplicateModelsVersionsListInput: z.ZodTypeAny;
5
- declare const ReplicateModelsVersionsListOutput: z.ZodTypeAny;
6
- declare const replicateModelsVersionsList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateModelsVersionsListInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ model_name: z.ZodString;
7
+ model_owner: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const ReplicateModelsVersionsListOutput: z.ZodObject<{
10
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ results: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodString>;
13
+ created_at: z.ZodNullable<z.ZodString>;
14
+ cog_version: z.ZodNullable<z.ZodString>;
15
+ openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16
+ }, z.core.$strip>>;
17
+ previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$strip>;
19
+ declare const replicateModelsVersionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ model_name: string;
21
+ model_owner: string;
22
+ cursor?: string | undefined;
23
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
24
  //#endregion
8
25
  export { replicateModelsVersionsList };
9
26
  //# sourceMappingURL=models-versions-list.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models-versions-list.d.cts","names":[],"sources":["../../src/actions/models-versions-list.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAI0B;AAAA,cAO9D,iCAAA,EAAmC,CAAA,CAAE,UAIY;AAAA,cAEjD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"models-versions-list.d.cts","names":[],"sources":["../../src/actions/models-versions-list.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAWhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAMjC,2BAAA,gCAA2B,wBAAA"}
@@ -1,9 +1,26 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/models-versions-list.d.ts
4
- declare const ReplicateModelsVersionsListInput: z.ZodTypeAny;
5
- declare const ReplicateModelsVersionsListOutput: z.ZodTypeAny;
6
- declare const replicateModelsVersionsList: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateModelsVersionsListInput: z.ZodObject<{
5
+ cursor: z.ZodOptional<z.ZodString>;
6
+ model_name: z.ZodString;
7
+ model_owner: z.ZodString;
8
+ }, z.core.$strip>;
9
+ declare const ReplicateModelsVersionsListOutput: z.ZodObject<{
10
+ next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ results: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodString>;
13
+ created_at: z.ZodNullable<z.ZodString>;
14
+ cog_version: z.ZodNullable<z.ZodString>;
15
+ openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16
+ }, z.core.$strip>>;
17
+ previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ }, z.core.$strip>;
19
+ declare const replicateModelsVersionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
20
+ model_name: string;
21
+ model_owner: string;
22
+ cursor?: string | undefined;
23
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
24
  //#endregion
8
25
  export { replicateModelsVersionsList };
9
26
  //# sourceMappingURL=models-versions-list.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"models-versions-list.d.mts","names":[],"sources":["../../src/actions/models-versions-list.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAI0B;AAAA,cAO9D,iCAAA,EAAmC,CAAA,CAAE,UAIY;AAAA,cAEjD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"models-versions-list.d.mts","names":[],"sources":["../../src/actions/models-versions-list.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAWhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAMjC,2BAAA,gCAA2B,wBAAA"}
@@ -7,9 +7,9 @@ const ReplicateModelsVersionsListInput = z.object({
7
7
  model_owner: z.string().describe("The username or organization that owns the model, e.g., 'replicate'")
8
8
  }).describe("Request schema for listing all versions of a specific model.");
9
9
  const ReplicateModelsVersionsList_ModelVersionSchema = z.object({
10
- id: z.string().describe("The 64-character version identifier"),
11
- created_at: z.string().describe("ISO 8601 timestamp of when the version was created"),
12
- cog_version: z.string().describe("Version of the Cog framework used to build this model version"),
10
+ id: z.string().describe("The 64-character version identifier").nullable(),
11
+ created_at: z.string().describe("ISO 8601 timestamp of when the version was created").nullable(),
12
+ cog_version: z.string().describe("Version of the Cog framework used to build this model version").nullable(),
13
13
  openapi_schema: z.record(z.string(), z.unknown()).describe("Complete OpenAPI schema describing the model's inputs and outputs")
14
14
  }).describe("Representation of a model version.");
15
15
  const replicateModelsVersionsList = action("REPLICATE_MODELS_VERSIONS_LIST", {
@@ -1 +1 @@
1
- {"version":3,"file":"models-versions-list.mjs","names":[],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsListInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The 64-character version identifier\"),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\"),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\"),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO;CACrE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,iDAA+D,EAAE,OAAO;CAC5E,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC;CAC7D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CACpF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAChG,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAOhD,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX6D,EAAE,OAAO;EACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,uCAAuC;EACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"models-versions-list.mjs","names":[],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAOhD,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,uCAAuC;EACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}