@keystrokehq/replicate 0.1.2 → 0.1.4

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 (211) hide show
  1. package/dist/actions/account-get.cjs +1 -1
  2. package/dist/actions/account-get.cjs.map +1 -1
  3. package/dist/actions/account-get.d.cts +14 -2
  4. package/dist/actions/account-get.d.cts.map +1 -1
  5. package/dist/actions/account-get.d.mts +14 -2
  6. package/dist/actions/account-get.d.mts.map +1 -1
  7. package/dist/actions/account-get.mjs +1 -1
  8. package/dist/actions/account-get.mjs.map +1 -1
  9. package/dist/actions/cancel-prediction.cjs +2 -2
  10. package/dist/actions/cancel-prediction.cjs.map +1 -1
  11. package/dist/actions/cancel-prediction.d.cts +15 -3
  12. package/dist/actions/cancel-prediction.d.mts +15 -3
  13. package/dist/actions/cancel-prediction.mjs +2 -2
  14. package/dist/actions/cancel-prediction.mjs.map +1 -1
  15. package/dist/actions/collections-get.cjs +2 -2
  16. package/dist/actions/collections-get.cjs.map +1 -1
  17. package/dist/actions/collections-get.d.cts +15 -3
  18. package/dist/actions/collections-get.d.mts +15 -3
  19. package/dist/actions/collections-get.mjs +2 -2
  20. package/dist/actions/collections-get.mjs.map +1 -1
  21. package/dist/actions/collections-list.cjs +2 -2
  22. package/dist/actions/collections-list.cjs.map +1 -1
  23. package/dist/actions/collections-list.d.cts +15 -3
  24. package/dist/actions/collections-list.d.mts +15 -3
  25. package/dist/actions/collections-list.mjs +2 -2
  26. package/dist/actions/collections-list.mjs.map +1 -1
  27. package/dist/actions/create-model.cjs +1 -1
  28. package/dist/actions/create-model.cjs.map +1 -1
  29. package/dist/actions/create-model.d.cts +14 -2
  30. package/dist/actions/create-model.d.mts +14 -2
  31. package/dist/actions/create-model.mjs +1 -1
  32. package/dist/actions/create-model.mjs.map +1 -1
  33. package/dist/actions/create-prediction.cjs +2 -2
  34. package/dist/actions/create-prediction.cjs.map +1 -1
  35. package/dist/actions/create-prediction.d.cts +17 -5
  36. package/dist/actions/create-prediction.d.cts.map +1 -1
  37. package/dist/actions/create-prediction.d.mts +17 -5
  38. package/dist/actions/create-prediction.d.mts.map +1 -1
  39. package/dist/actions/create-prediction.mjs +2 -2
  40. package/dist/actions/create-prediction.mjs.map +1 -1
  41. package/dist/actions/deployments-create.cjs +4 -4
  42. package/dist/actions/deployments-create.cjs.map +1 -1
  43. package/dist/actions/deployments-create.d.cts +17 -5
  44. package/dist/actions/deployments-create.d.mts +17 -5
  45. package/dist/actions/deployments-create.mjs +4 -4
  46. package/dist/actions/deployments-create.mjs.map +1 -1
  47. package/dist/actions/deployments-delete.cjs +1 -1
  48. package/dist/actions/deployments-delete.cjs.map +1 -1
  49. package/dist/actions/deployments-delete.d.cts +14 -2
  50. package/dist/actions/deployments-delete.d.mts +14 -2
  51. package/dist/actions/deployments-delete.mjs +1 -1
  52. package/dist/actions/deployments-delete.mjs.map +1 -1
  53. package/dist/actions/deployments-get.cjs +4 -4
  54. package/dist/actions/deployments-get.cjs.map +1 -1
  55. package/dist/actions/deployments-get.d.cts +17 -5
  56. package/dist/actions/deployments-get.d.mts +17 -5
  57. package/dist/actions/deployments-get.mjs +4 -4
  58. package/dist/actions/deployments-get.mjs.map +1 -1
  59. package/dist/actions/deployments-list.cjs +5 -5
  60. package/dist/actions/deployments-list.cjs.map +1 -1
  61. package/dist/actions/deployments-list.d.cts +18 -6
  62. package/dist/actions/deployments-list.d.mts +18 -6
  63. package/dist/actions/deployments-list.mjs +5 -5
  64. package/dist/actions/deployments-list.mjs.map +1 -1
  65. package/dist/actions/files-create.cjs +3 -3
  66. package/dist/actions/files-create.cjs.map +1 -1
  67. package/dist/actions/files-create.d.cts +16 -4
  68. package/dist/actions/files-create.d.cts.map +1 -1
  69. package/dist/actions/files-create.d.mts +16 -4
  70. package/dist/actions/files-create.d.mts.map +1 -1
  71. package/dist/actions/files-create.mjs +3 -3
  72. package/dist/actions/files-create.mjs.map +1 -1
  73. package/dist/actions/files-delete.cjs +1 -1
  74. package/dist/actions/files-delete.cjs.map +1 -1
  75. package/dist/actions/files-delete.d.cts +14 -2
  76. package/dist/actions/files-delete.d.mts +14 -2
  77. package/dist/actions/files-delete.mjs +1 -1
  78. package/dist/actions/files-delete.mjs.map +1 -1
  79. package/dist/actions/files-get.cjs +3 -3
  80. package/dist/actions/files-get.cjs.map +1 -1
  81. package/dist/actions/files-get.d.cts +16 -4
  82. package/dist/actions/files-get.d.mts +16 -4
  83. package/dist/actions/files-get.mjs +3 -3
  84. package/dist/actions/files-get.mjs.map +1 -1
  85. package/dist/actions/files-list.cjs +4 -4
  86. package/dist/actions/files-list.cjs.map +1 -1
  87. package/dist/actions/files-list.d.cts +17 -5
  88. package/dist/actions/files-list.d.mts +17 -5
  89. package/dist/actions/files-list.mjs +4 -4
  90. package/dist/actions/files-list.mjs.map +1 -1
  91. package/dist/actions/get-prediction.cjs +4 -4
  92. package/dist/actions/get-prediction.cjs.map +1 -1
  93. package/dist/actions/get-prediction.d.cts +17 -5
  94. package/dist/actions/get-prediction.d.mts +17 -5
  95. package/dist/actions/get-prediction.mjs +4 -4
  96. package/dist/actions/get-prediction.mjs.map +1 -1
  97. package/dist/actions/hardware-list.cjs +2 -2
  98. package/dist/actions/hardware-list.cjs.map +1 -1
  99. package/dist/actions/hardware-list.d.cts +15 -3
  100. package/dist/actions/hardware-list.d.cts.map +1 -1
  101. package/dist/actions/hardware-list.d.mts +15 -3
  102. package/dist/actions/hardware-list.d.mts.map +1 -1
  103. package/dist/actions/hardware-list.mjs +2 -2
  104. package/dist/actions/hardware-list.mjs.map +1 -1
  105. package/dist/actions/models-examples-list.cjs +4 -4
  106. package/dist/actions/models-examples-list.cjs.map +1 -1
  107. package/dist/actions/models-examples-list.d.cts +17 -5
  108. package/dist/actions/models-examples-list.d.mts +17 -5
  109. package/dist/actions/models-examples-list.mjs +4 -4
  110. package/dist/actions/models-examples-list.mjs.map +1 -1
  111. package/dist/actions/models-get.cjs +6 -6
  112. package/dist/actions/models-get.cjs.map +1 -1
  113. package/dist/actions/models-get.d.cts +19 -7
  114. package/dist/actions/models-get.d.mts +19 -7
  115. package/dist/actions/models-get.mjs +6 -6
  116. package/dist/actions/models-get.mjs.map +1 -1
  117. package/dist/actions/models-list.cjs +3 -3
  118. package/dist/actions/models-list.cjs.map +1 -1
  119. package/dist/actions/models-list.d.cts +16 -4
  120. package/dist/actions/models-list.d.mts +16 -4
  121. package/dist/actions/models-list.mjs +3 -3
  122. package/dist/actions/models-list.mjs.map +1 -1
  123. package/dist/actions/models-predictions-create.cjs +2 -2
  124. package/dist/actions/models-predictions-create.cjs.map +1 -1
  125. package/dist/actions/models-predictions-create.d.cts +17 -5
  126. package/dist/actions/models-predictions-create.d.cts.map +1 -1
  127. package/dist/actions/models-predictions-create.d.mts +17 -5
  128. package/dist/actions/models-predictions-create.d.mts.map +1 -1
  129. package/dist/actions/models-predictions-create.mjs +2 -2
  130. package/dist/actions/models-predictions-create.mjs.map +1 -1
  131. package/dist/actions/models-readme-get.cjs +1 -1
  132. package/dist/actions/models-readme-get.cjs.map +1 -1
  133. package/dist/actions/models-readme-get.d.cts +14 -2
  134. package/dist/actions/models-readme-get.d.mts +14 -2
  135. package/dist/actions/models-readme-get.mjs +1 -1
  136. package/dist/actions/models-readme-get.mjs.map +1 -1
  137. package/dist/actions/models-versions-get.cjs +1 -1
  138. package/dist/actions/models-versions-get.cjs.map +1 -1
  139. package/dist/actions/models-versions-get.d.cts +14 -2
  140. package/dist/actions/models-versions-get.d.mts +14 -2
  141. package/dist/actions/models-versions-get.mjs +1 -1
  142. package/dist/actions/models-versions-get.mjs.map +1 -1
  143. package/dist/actions/models-versions-list.cjs +2 -2
  144. package/dist/actions/models-versions-list.cjs.map +1 -1
  145. package/dist/actions/models-versions-list.d.cts +15 -3
  146. package/dist/actions/models-versions-list.d.mts +15 -3
  147. package/dist/actions/models-versions-list.mjs +2 -2
  148. package/dist/actions/models-versions-list.mjs.map +1 -1
  149. package/dist/actions/predictions-create.cjs +2 -2
  150. package/dist/actions/predictions-create.cjs.map +1 -1
  151. package/dist/actions/predictions-create.d.cts +17 -5
  152. package/dist/actions/predictions-create.d.cts.map +1 -1
  153. package/dist/actions/predictions-create.d.mts +17 -5
  154. package/dist/actions/predictions-create.d.mts.map +1 -1
  155. package/dist/actions/predictions-create.mjs +2 -2
  156. package/dist/actions/predictions-create.mjs.map +1 -1
  157. package/dist/actions/predictions-list.cjs +3 -3
  158. package/dist/actions/predictions-list.cjs.map +1 -1
  159. package/dist/actions/predictions-list.d.cts +16 -4
  160. package/dist/actions/predictions-list.d.mts +16 -4
  161. package/dist/actions/predictions-list.mjs +3 -3
  162. package/dist/actions/predictions-list.mjs.map +1 -1
  163. package/dist/actions/search.cjs +9 -9
  164. package/dist/actions/search.cjs.map +1 -1
  165. package/dist/actions/search.d.cts +22 -10
  166. package/dist/actions/search.d.mts +22 -10
  167. package/dist/actions/search.mjs +9 -9
  168. package/dist/actions/search.mjs.map +1 -1
  169. package/dist/actions/trainings-cancel.cjs +2 -2
  170. package/dist/actions/trainings-cancel.cjs.map +1 -1
  171. package/dist/actions/trainings-cancel.d.cts +15 -3
  172. package/dist/actions/trainings-cancel.d.mts +15 -3
  173. package/dist/actions/trainings-cancel.mjs +2 -2
  174. package/dist/actions/trainings-cancel.mjs.map +1 -1
  175. package/dist/actions/trainings-create.cjs +3 -3
  176. package/dist/actions/trainings-create.cjs.map +1 -1
  177. package/dist/actions/trainings-create.d.cts +18 -6
  178. package/dist/actions/trainings-create.d.cts.map +1 -1
  179. package/dist/actions/trainings-create.d.mts +18 -6
  180. package/dist/actions/trainings-create.d.mts.map +1 -1
  181. package/dist/actions/trainings-create.mjs +3 -3
  182. package/dist/actions/trainings-create.mjs.map +1 -1
  183. package/dist/actions/trainings-list.cjs +5 -5
  184. package/dist/actions/trainings-list.cjs.map +1 -1
  185. package/dist/actions/trainings-list.d.cts +18 -6
  186. package/dist/actions/trainings-list.d.mts +18 -6
  187. package/dist/actions/trainings-list.mjs +5 -5
  188. package/dist/actions/trainings-list.mjs.map +1 -1
  189. package/dist/actions/update-models.cjs +1 -1
  190. package/dist/actions/update-models.cjs.map +1 -1
  191. package/dist/actions/update-models.d.cts +14 -2
  192. package/dist/actions/update-models.d.mts +14 -2
  193. package/dist/actions/update-models.mjs +1 -1
  194. package/dist/actions/update-models.mjs.map +1 -1
  195. package/dist/actions/webhooks-secret-get.cjs +1 -1
  196. package/dist/actions/webhooks-secret-get.cjs.map +1 -1
  197. package/dist/actions/webhooks-secret-get.d.cts +14 -2
  198. package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
  199. package/dist/actions/webhooks-secret-get.d.mts +14 -2
  200. package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
  201. package/dist/actions/webhooks-secret-get.mjs +1 -1
  202. package/dist/actions/webhooks-secret-get.mjs.map +1 -1
  203. package/dist/app.cjs +5 -2
  204. package/dist/app.cjs.map +1 -1
  205. package/dist/app.d.cts +9 -1
  206. package/dist/app.d.cts.map +1 -1
  207. package/dist/app.d.mts +9 -1
  208. package/dist/app.d.mts.map +1 -1
  209. package/dist/app.mjs +3 -1
  210. package/dist/app.mjs.map +1 -1
  211. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"create-model.cjs","names":["z","action"],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreateModelInput = z.object({\n name: z.string().describe(\"The name of the model. This must be unique among all models owned by the user or organization.\"),\n owner: z.string().describe(\"The name of the user or organization that will own the model. This must be the same as the user or organization making the API request.\"),\n hardware: z.string().describe(\"The SKU for the hardware used to run the model. Possible values can be retrieved from the hardware.list endpoint.\"),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n visibility: z.string().describe(\"Whether the model should be public or private. Public models are viewable and runnable by anyone; private models are restricted to owners.\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image. This should be an image file.\").optional(),\n}).describe(\"Request schema for creating a new model.\");\nexport const ReplicateCreateModelOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n created_at: z.string().describe(\"The date and time the model was created (ISO 8601 format)\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n weights_url: z.string().describe(\"A URL to download the model weights, if available\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).describe(\"Response schema for creating a model.\");\n\nexport const replicateCreateModel = action(\"REPLICATE_CREATE_MODEL\", {\n slug: \"replicate-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new Replicate model with specified owner, name, visibility, and hardware. Use when you need to create a destination model before launching LoRA/fine-tune training.\",\n input: ReplicateCreateModelInput,\n output: ReplicateCreateModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAC1H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;CACpK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHA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,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACzH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAEnD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-model.cjs","names":["z","action"],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreateModelInput = z.object({\n name: z.string().describe(\"The name of the model. This must be unique among all models owned by the user or organization.\"),\n owner: z.string().describe(\"The name of the user or organization that will own the model. This must be the same as the user or organization making the API request.\"),\n hardware: z.string().describe(\"The SKU for the hardware used to run the model. Possible values can be retrieved from the hardware.list endpoint.\"),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n visibility: z.string().describe(\"Whether the model should be public or private. Public models are viewable and runnable by anyone; private models are restricted to owners.\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image. This should be an image file.\").optional(),\n}).describe(\"Request schema for creating a new model.\");\nexport const ReplicateCreateModelOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n created_at: z.string().describe(\"The date and time the model was created (ISO 8601 format)\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n weights_url: z.string().describe(\"A URL to download the model weights, if available\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a model.\");\n\nexport const replicateCreateModel = action(\"REPLICATE_CREATE_MODEL\", {\n slug: \"replicate-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new Replicate model with specified owner, name, visibility, and hardware. Use when you need to create a destination model before launching LoRA/fine-tune training.\",\n input: ReplicateCreateModelInput,\n output: ReplicateCreateModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,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z.ZodString>>;
30
30
  default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
31
- }, z.core.$strip>;
31
+ }, z.core.$loose>;
32
32
  declare const replicateCreateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
33
33
  name: string;
34
34
  owner: string;
@@ -39,7 +39,19 @@ declare const replicateCreateModel: import("@keystrokehq/action").WorkflowAction
39
39
  description?: string | undefined;
40
40
  license_url?: string | undefined;
41
41
  cover_image_url?: string | undefined;
42
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
42
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
43
+ connectionId: z.ZodString;
44
+ entityId: z.ZodString;
45
+ instanceId: z.ZodString;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ bearer_token: z.ZodString;
48
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
49
+ connectionId: z.ZodString;
50
+ entityId: z.ZodString;
51
+ instanceId: z.ZodString;
52
+ }, z.core.$strip>, z.ZodObject<{
53
+ bearer_token: z.ZodString;
54
+ }, z.core.$strip>>]>;
43
55
  //#endregion
44
56
  export { replicateCreateModel };
45
57
  //# sourceMappingURL=create-model.d.cts.map
@@ -28,7 +28,7 @@ declare const ReplicateCreateModelOutput: z.ZodObject<{
28
28
  latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
29
29
  cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
30
  default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
31
- }, z.core.$strip>;
31
+ }, z.core.$loose>;
32
32
  declare const replicateCreateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
33
33
  name: string;
34
34
  owner: string;
@@ -39,7 +39,19 @@ declare const replicateCreateModel: import("@keystrokehq/action").WorkflowAction
39
39
  description?: string | undefined;
40
40
  license_url?: string | undefined;
41
41
  cover_image_url?: string | undefined;
42
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
42
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
43
+ connectionId: z.ZodString;
44
+ entityId: z.ZodString;
45
+ instanceId: z.ZodString;
46
+ }, z.core.$strip>, z.ZodObject<{
47
+ bearer_token: z.ZodString;
48
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
49
+ connectionId: z.ZodString;
50
+ entityId: z.ZodString;
51
+ instanceId: z.ZodString;
52
+ }, z.core.$strip>, z.ZodObject<{
53
+ bearer_token: z.ZodString;
54
+ }, z.core.$strip>>]>;
43
55
  //#endregion
44
56
  export { replicateCreateModel };
45
57
  //# sourceMappingURL=create-model.d.mts.map
@@ -31,7 +31,7 @@ const replicateCreateModel = action("REPLICATE_CREATE_MODEL", {
31
31
  latest_version: z.record(z.string(), z.unknown()).describe("The model's latest version").nullable().optional(),
32
32
  cover_image_url: z.string().describe("A URL for the model's cover image").nullable().optional(),
33
33
  default_example: z.record(z.string(), z.unknown()).describe("The model's default example prediction").nullable().optional()
34
- }).describe("Response schema for creating a model.")
34
+ }).passthrough().describe("Response schema for creating a model.")
35
35
  });
36
36
  //#endregion
37
37
  export { replicateCreateModel };
@@ -1 +1 @@
1
- {"version":3,"file":"create-model.mjs","names":[],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreateModelInput = z.object({\n name: z.string().describe(\"The name of the model. This must be unique among all models owned by the user or organization.\"),\n owner: z.string().describe(\"The name of the user or organization that will own the model. This must be the same as the user or organization making the API request.\"),\n hardware: z.string().describe(\"The SKU for the hardware used to run the model. Possible values can be retrieved from the hardware.list endpoint.\"),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n visibility: z.string().describe(\"Whether the model should be public or private. Public models are viewable and runnable by anyone; private models are restricted to owners.\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image. This should be an image file.\").optional(),\n}).describe(\"Request schema for creating a new model.\");\nexport const ReplicateCreateModelOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n created_at: z.string().describe(\"The date and time the model was created (ISO 8601 format)\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n weights_url: z.string().describe(\"A URL to download the model weights, if available\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).describe(\"Response schema for creating a model.\");\n\nexport const replicateCreateModel = action(\"REPLICATE_CREATE_MODEL\", {\n slug: \"replicate-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new Replicate model with specified owner, name, visibility, and hardware. Use when you need to create a destination model before launching LoRA/fine-tune training.\",\n input: ReplicateCreateModelInput,\n output: Replicate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CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EACzH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,uCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-model.mjs","names":[],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreateModelInput = z.object({\n name: z.string().describe(\"The name of the model. This must be unique among all models owned by the user or organization.\"),\n owner: z.string().describe(\"The name of the user or organization that will own the model. This must be the same as the user or organization making the API request.\"),\n hardware: z.string().describe(\"The SKU for the hardware used to run the model. Possible values can be retrieved from the hardware.list endpoint.\"),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n visibility: z.string().describe(\"Whether the model should be public or private. Public models are viewable and runnable by anyone; private models are restricted to owners.\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image. This should be an image file.\").optional(),\n}).describe(\"Request schema for creating a new model.\");\nexport const ReplicateCreateModelOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n created_at: z.string().describe(\"The date and time the model was created (ISO 8601 format)\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n weights_url: z.string().describe(\"A URL to download the model weights, if available\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a model.\");\n\nexport const replicateCreateModel = action(\"REPLICATE_CREATE_MODEL\", {\n slug: \"replicate-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new Replicate model with specified owner, name, visibility, and hardware. Use when you need to create a destination model before launching LoRA/fine-tune training.\",\n input: ReplicateCreateModelInput,\n output: ReplicateCreateModelOutput,\n});\n"],"mappings":";;AAiCA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjCuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO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C,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EACzH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
@@ -19,7 +19,7 @@ const ReplicateCreatePrediction_PredictionUrlsSchema = zod.z.object({
19
19
  web: zod.z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
20
20
  cancel: zod.z.string().describe("API endpoint URL to cancel the prediction").nullable(),
21
21
  stream: zod.z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
22
- }).describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
22
+ }).passthrough().describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
23
23
  const ReplicateCreatePredictionOutput = zod.z.object({
24
24
  id: zod.z.string().describe("Unique identifier of the prediction").nullable(),
25
25
  logs: zod.z.string().describe("Logs generated during the prediction").nullable(),
@@ -33,7 +33,7 @@ const ReplicateCreatePredictionOutput = zod.z.object({
33
33
  version: zod.z.string().describe("Version of the model used in prediction").nullable(),
34
34
  created_at: zod.z.string().describe("Timestamp when the prediction was created (ISO 8601)").nullable(),
35
35
  completed_at: zod.z.string().describe("Timestamp when the prediction completed (ISO 8601), if available").nullable().optional()
36
- }).describe("Response schema for creating a prediction.");
36
+ }).passthrough().describe("Response schema for creating a prediction.");
37
37
  const replicateCreatePrediction = require_action.action("REPLICATE_CREATE_PREDICTION", {
38
38
  slug: "replicate-create-prediction",
39
39
  name: "Create Prediction",
@@ -1 +1 @@
1
- {"version":3,"file":"create-prediction.cjs","names":["z","action"],"sources":["../../src/actions/create-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreatePredictionInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"JSON object of inputs for the model Keys and types must exactly match the deployment model's schema; consult REPLICATE_MODELS_README_GET or REPLICATE_MODELS_EXAMPLES_LIST first. For file inputs, verify file IDs via REPLICATE_FILES_LIST before submitting.\"),\n webhook: z.string().describe(\"HTTPS URL to receive webhook callbacks\").optional(),\n wait_for: z.number().int().describe(\"Seconds to wait for prediction completion; adds a 'Prefer: wait=<n>' header if provided Valid range is 1–60; if the prediction does not complete within this window, poll for status or use a webhook instead.\").optional(),\n deployment_name: z.string().describe(\"Name of the deployment. NOTE: This is the deployment name, NOT a public model name. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models like 'meta/llama-2-70b-chat', use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n deployment_owner: z.string().describe(\"Username or organization that owns the deployment. NOTE: This is for Replicate Deployments only, NOT public models. Deployments are persistent instances you create and manage separately. To run public models, use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of events to trigger webhook calls\").optional(),\n}).describe(\"Request schema for creating a prediction for a specific deployment.\");\nconst ReplicateCreatePrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nexport const ReplicateCreatePredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier of the prediction\").nullable(),\n logs: z.string().describe(\"Logs generated during the prediction\").nullable(),\n urls: ReplicateCreatePrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the prediction\"),\n model: z.string().describe(\"Model associated with this prediction\").nullable(),\n output: z.unknown().describe(\"Output of the prediction if completed\").nullable().optional(),\n status: z.string().describe(\"Current status of the prediction (e.g., 'starting', 'processing', 'succeeded', 'failed', 'canceled')\").nullable(),\n metrics: z.record(z.string(), z.unknown()).describe(\"Performance metrics for the prediction, e.g., predict_time\"),\n version: z.string().describe(\"Version of the model used in prediction\").nullable(),\n created_at: z.string().describe(\"Timestamp when the prediction was created (ISO 8601)\").nullable(),\n completed_at: z.string().describe(\"Timestamp when the prediction completed (ISO 8601), if available\").nullable().optional(),\n}).describe(\"Response schema for creating a prediction.\");\n\nexport const replicateCreatePrediction = action(\"REPLICATE_CREATE_PREDICTION\", {\n slug: \"replicate-create-prediction\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction for a Replicate Deployment. IMPORTANT: This action ONLY works with Replicate Deployments (persistent instances you create and manage), NOT public models. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models (e.g., 'meta/llama-2-70b-chat', 'stability-ai/sdxl'), use REPLICATE_MODELS_PREDICTIONS_CREATE instead. Use 'wait_for' to wait until the prediction completes.\",\n input: ReplicateCreatePredictionInput,\n output: ReplicateCreatePredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gQAAgQ;CAClT,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;CAC/P,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP;CACvR,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kQAAkQ;CACxS,uBAAuBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;EAAQ;CAAW,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS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CAAC"}
1
+ {"version":3,"file":"create-prediction.cjs","names":["z","action"],"sources":["../../src/actions/create-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreatePredictionInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"JSON object of inputs for the model Keys and types must exactly match the deployment model's schema; consult REPLICATE_MODELS_README_GET or REPLICATE_MODELS_EXAMPLES_LIST first. For file inputs, verify file IDs via REPLICATE_FILES_LIST before submitting.\"),\n webhook: z.string().describe(\"HTTPS URL to receive webhook callbacks\").optional(),\n wait_for: z.number().int().describe(\"Seconds to wait for prediction completion; adds a 'Prefer: wait=<n>' header if provided Valid range is 1–60; if the prediction does not complete within this window, poll for status or use a webhook instead.\").optional(),\n deployment_name: z.string().describe(\"Name of the deployment. NOTE: This is the deployment name, NOT a public model name. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models like 'meta/llama-2-70b-chat', use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n deployment_owner: z.string().describe(\"Username or organization that owns the deployment. NOTE: This is for Replicate Deployments only, NOT public models. Deployments are persistent instances you create and manage separately. To run public models, use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of events to trigger webhook calls\").optional(),\n}).describe(\"Request schema for creating a prediction for a specific deployment.\");\nconst ReplicateCreatePrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nexport const ReplicateCreatePredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier of the prediction\").nullable(),\n logs: z.string().describe(\"Logs generated during the prediction\").nullable(),\n urls: ReplicateCreatePrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the prediction\"),\n model: z.string().describe(\"Model associated with this prediction\").nullable(),\n output: z.unknown().describe(\"Output of the prediction if completed\").nullable().optional(),\n status: z.string().describe(\"Current status of the prediction (e.g., 'starting', 'processing', 'succeeded', 'failed', 'canceled')\").nullable(),\n metrics: z.record(z.string(), z.unknown()).describe(\"Performance metrics for the prediction, e.g., predict_time\"),\n version: z.string().describe(\"Version of the model used in prediction\").nullable(),\n created_at: z.string().describe(\"Timestamp when the prediction was created (ISO 8601)\").nullable(),\n completed_at: z.string().describe(\"Timestamp when the prediction completed (ISO 8601), if available\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a prediction.\");\n\nexport const replicateCreatePrediction = action(\"REPLICATE_CREATE_PREDICTION\", {\n slug: \"replicate-create-prediction\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction for a Replicate Deployment. IMPORTANT: This action ONLY works with Replicate Deployments (persistent instances you create and manage), NOT public models. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models (e.g., 'meta/llama-2-70b-chat', 'stability-ai/sdxl'), use REPLICATE_MODELS_PREDICTIONS_CREATE instead. Use 'wait_for' to wait until the prediction completes.\",\n input: ReplicateCreatePredictionInput,\n output: ReplicateCreatePredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gQAAgQ;CAClT,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAA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AA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;CACrF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC7I,SAASA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D;CAChH,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACjG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,8 +9,8 @@ declare const ReplicateCreatePredictionInput: z.ZodObject<{
9
9
  deployment_owner: z.ZodString;
10
10
  webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
11
11
  output: "output";
12
- logs: "logs";
13
12
  start: "start";
13
+ logs: "logs";
14
14
  completed: "completed";
15
15
  }>>>;
16
16
  }, z.core.$strip>;
@@ -22,7 +22,7 @@ declare const ReplicateCreatePredictionOutput: z.ZodObject<{
22
22
  web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  cancel: z.ZodNullable<z.ZodString>;
24
24
  stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
26
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
28
28
  model: z.ZodNullable<z.ZodString>;
@@ -32,15 +32,27 @@ declare const ReplicateCreatePredictionOutput: z.ZodObject<{
32
32
  version: z.ZodNullable<z.ZodString>;
33
33
  created_at: z.ZodNullable<z.ZodString>;
34
34
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
- }, z.core.$strip>;
35
+ }, z.core.$loose>;
36
36
  declare const replicateCreatePrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
37
37
  input: Record<string, unknown>;
38
38
  deployment_name: string;
39
39
  deployment_owner: string;
40
40
  webhook?: string | undefined;
41
41
  wait_for?: number | undefined;
42
- webhook_events_filter?: ("output" | "logs" | "start" | "completed")[] | undefined;
43
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
42
+ webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
43
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
44
+ connectionId: z.ZodString;
45
+ entityId: z.ZodString;
46
+ instanceId: z.ZodString;
47
+ }, z.core.$strip>, z.ZodObject<{
48
+ bearer_token: z.ZodString;
49
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
50
+ connectionId: z.ZodString;
51
+ entityId: z.ZodString;
52
+ instanceId: z.ZodString;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ bearer_token: z.ZodString;
55
+ }, z.core.$strip>>]>;
44
56
  //#endregion
45
57
  export { replicateCreatePrediction };
46
58
  //# sourceMappingURL=create-prediction.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-prediction.d.cts","names":[],"sources":["../../src/actions/create-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAe/B,yBAAA,gCAAyB,wBAAA;SAMpC,MAAA"}
1
+ {"version":3,"file":"create-prediction.d.cts","names":[],"sources":["../../src/actions/create-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAe/B,yBAAA,gCAAyB,wBAAA"}
@@ -9,8 +9,8 @@ declare const ReplicateCreatePredictionInput: z.ZodObject<{
9
9
  deployment_owner: z.ZodString;
10
10
  webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
11
11
  output: "output";
12
- logs: "logs";
13
12
  start: "start";
13
+ logs: "logs";
14
14
  completed: "completed";
15
15
  }>>>;
16
16
  }, z.core.$strip>;
@@ -22,7 +22,7 @@ declare const ReplicateCreatePredictionOutput: z.ZodObject<{
22
22
  web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
23
  cancel: z.ZodNullable<z.ZodString>;
24
24
  stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- }, z.core.$strip>>;
25
+ }, z.core.$loose>>;
26
26
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
28
28
  model: z.ZodNullable<z.ZodString>;
@@ -32,15 +32,27 @@ declare const ReplicateCreatePredictionOutput: z.ZodObject<{
32
32
  version: z.ZodNullable<z.ZodString>;
33
33
  created_at: z.ZodNullable<z.ZodString>;
34
34
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
- }, z.core.$strip>;
35
+ }, z.core.$loose>;
36
36
  declare const replicateCreatePrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
37
37
  input: Record<string, unknown>;
38
38
  deployment_name: string;
39
39
  deployment_owner: string;
40
40
  webhook?: string | undefined;
41
41
  wait_for?: number | undefined;
42
- webhook_events_filter?: ("output" | "logs" | "start" | "completed")[] | undefined;
43
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
42
+ webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
43
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
44
+ connectionId: z.ZodString;
45
+ entityId: z.ZodString;
46
+ instanceId: z.ZodString;
47
+ }, z.core.$strip>, z.ZodObject<{
48
+ bearer_token: z.ZodString;
49
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
50
+ connectionId: z.ZodString;
51
+ entityId: z.ZodString;
52
+ instanceId: z.ZodString;
53
+ }, z.core.$strip>, z.ZodObject<{
54
+ bearer_token: z.ZodString;
55
+ }, z.core.$strip>>]>;
44
56
  //#endregion
45
57
  export { replicateCreatePrediction };
46
58
  //# sourceMappingURL=create-prediction.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-prediction.d.mts","names":[],"sources":["../../src/actions/create-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAe/B,yBAAA,gCAAyB,wBAAA;SAMpC,MAAA"}
1
+ {"version":3,"file":"create-prediction.d.mts","names":[],"sources":["../../src/actions/create-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAe/B,yBAAA,gCAAyB,wBAAA"}
@@ -19,7 +19,7 @@ const ReplicateCreatePrediction_PredictionUrlsSchema = z.object({
19
19
  web: z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
20
20
  cancel: z.string().describe("API endpoint URL to cancel the prediction").nullable(),
21
21
  stream: z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
22
- }).describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
22
+ }).passthrough().describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
23
23
  const replicateCreatePrediction = action("REPLICATE_CREATE_PREDICTION", {
24
24
  slug: "replicate-create-prediction",
25
25
  name: "Create Prediction",
@@ -38,7 +38,7 @@ const replicateCreatePrediction = action("REPLICATE_CREATE_PREDICTION", {
38
38
  version: z.string().describe("Version of the model used in prediction").nullable(),
39
39
  created_at: z.string().describe("Timestamp when the prediction was created (ISO 8601)").nullable(),
40
40
  completed_at: z.string().describe("Timestamp when the prediction completed (ISO 8601), if available").nullable().optional()
41
- }).describe("Response schema for creating a prediction.")
41
+ }).passthrough().describe("Response schema for creating a prediction.")
42
42
  });
43
43
  //#endregion
44
44
  export { replicateCreatePrediction };
@@ -1 +1 @@
1
- {"version":3,"file":"create-prediction.mjs","names":[],"sources":["../../src/actions/create-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreatePredictionInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"JSON object of inputs for the model Keys and types must exactly match the deployment model's schema; consult REPLICATE_MODELS_README_GET or REPLICATE_MODELS_EXAMPLES_LIST first. For file inputs, verify file IDs via REPLICATE_FILES_LIST before submitting.\"),\n webhook: z.string().describe(\"HTTPS URL to receive webhook callbacks\").optional(),\n wait_for: z.number().int().describe(\"Seconds to wait for prediction completion; adds a 'Prefer: wait=<n>' header if provided Valid range is 1–60; if the prediction does not complete within this window, poll for status or use a webhook instead.\").optional(),\n deployment_name: z.string().describe(\"Name of the deployment. NOTE: This is the deployment name, NOT a public model name. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models like 'meta/llama-2-70b-chat', use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n deployment_owner: z.string().describe(\"Username or organization that owns the deployment. NOTE: This is for Replicate Deployments only, NOT public models. Deployments are persistent instances you create and manage separately. To run public models, use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of events to trigger webhook calls\").optional(),\n}).describe(\"Request schema for creating a prediction for a specific deployment.\");\nconst ReplicateCreatePrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nexport const ReplicateCreatePredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier of the prediction\").nullable(),\n logs: z.string().describe(\"Logs generated during the prediction\").nullable(),\n urls: ReplicateCreatePrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the prediction\"),\n model: z.string().describe(\"Model associated with this prediction\").nullable(),\n output: z.unknown().describe(\"Output of the prediction if completed\").nullable().optional(),\n status: z.string().describe(\"Current status of the prediction (e.g., 'starting', 'processing', 'succeeded', 'failed', 'canceled')\").nullable(),\n metrics: z.record(z.string(), z.unknown()).describe(\"Performance metrics for the prediction, e.g., predict_time\"),\n version: z.string().describe(\"Version of the model used in prediction\").nullable(),\n created_at: z.string().describe(\"Timestamp when the prediction was created (ISO 8601)\").nullable(),\n completed_at: z.string().describe(\"Timestamp when the prediction completed (ISO 8601), if available\").nullable().optional(),\n}).describe(\"Response schema for creating a prediction.\");\n\nexport const replicateCreatePrediction = action(\"REPLICATE_CREATE_PREDICTION\", {\n slug: \"replicate-create-prediction\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction for a Replicate Deployment. IMPORTANT: This action ONLY works with Replicate Deployments (persistent instances you create and manage), NOT public models. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models (e.g., 'meta/llama-2-70b-chat', 'stability-ai/sdxl'), use REPLICATE_MODELS_PREDICTIONS_CREATE instead. Use 'wait_for' to wait until the prediction completes.\",\n input: ReplicateCreatePredictionInput,\n output: ReplicateCreatePredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gQAAgQ;CAClT,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;CAC/P,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP;CACvR,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,kQAAkQ;CACxS,uBAAuB,EAAE,MAAM,EAAE,KAAK;EAAC;EAAS;EAAU;EAAQ;CAAW,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,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C,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"create-prediction.mjs","names":[],"sources":["../../src/actions/create-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreatePredictionInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"JSON object of inputs for the model Keys and types must exactly match the deployment model's schema; consult REPLICATE_MODELS_README_GET or REPLICATE_MODELS_EXAMPLES_LIST first. For file inputs, verify file IDs via REPLICATE_FILES_LIST before submitting.\"),\n webhook: z.string().describe(\"HTTPS URL to receive webhook callbacks\").optional(),\n wait_for: z.number().int().describe(\"Seconds to wait for prediction completion; adds a 'Prefer: wait=<n>' header if provided Valid range is 1–60; if the prediction does not complete within this window, poll for status or use a webhook instead.\").optional(),\n deployment_name: z.string().describe(\"Name of the deployment. NOTE: This is the deployment name, NOT a public model name. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models like 'meta/llama-2-70b-chat', use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n deployment_owner: z.string().describe(\"Username or organization that owns the deployment. NOTE: This is for Replicate Deployments only, NOT public models. Deployments are persistent instances you create and manage separately. To run public models, use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of events to trigger webhook calls\").optional(),\n}).describe(\"Request schema for creating a prediction for a specific deployment.\");\nconst ReplicateCreatePrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nexport const ReplicateCreatePredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier of the prediction\").nullable(),\n logs: z.string().describe(\"Logs generated during the prediction\").nullable(),\n urls: ReplicateCreatePrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the prediction\"),\n model: z.string().describe(\"Model associated with this prediction\").nullable(),\n output: z.unknown().describe(\"Output of the prediction if completed\").nullable().optional(),\n status: z.string().describe(\"Current status of the prediction (e.g., 'starting', 'processing', 'succeeded', 'failed', 'canceled')\").nullable(),\n metrics: z.record(z.string(), z.unknown()).describe(\"Performance metrics for the prediction, e.g., predict_time\"),\n version: z.string().describe(\"Version of the model used in prediction\").nullable(),\n created_at: z.string().describe(\"Timestamp when the prediction was created (ISO 8601)\").nullable(),\n completed_at: z.string().describe(\"Timestamp when the prediction completed (ISO 8601), if available\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a prediction.\");\n\nexport const replicateCreatePrediction = action(\"REPLICATE_CREATE_PREDICTION\", {\n slug: \"replicate-create-prediction\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction for a Replicate Deployment. IMPORTANT: This action ONLY works with Replicate Deployments (persistent instances you create and manage), NOT public models. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models (e.g., 'meta/llama-2-70b-chat', 'stability-ai/sdxl'), use REPLICATE_MODELS_PREDICTIONS_CREATE instead. Use 'wait_for' to wait until the prediction completes.\",\n input: ReplicateCreatePredictionInput,\n output: ReplicateCreatePredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO;CACrD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gQAAgQ;CAClT,SAA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AAQ,CAAC,CAAC,CAAC,SAAS,mCAAmC;EACrF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;EAC7E,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;EAC7I,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D;EAChH,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -15,12 +15,12 @@ const ReplicateDeploymentsCreate_CreatedBySchema = zod.z.object({
15
15
  username: zod.z.string().describe("Username of the creator").nullable(),
16
16
  avatar_url: zod.z.string().describe("URL of the creator's avatar").nullable().optional(),
17
17
  github_url: zod.z.string().describe("GitHub URL of the creator").nullable().optional()
18
- }).describe("Information about the user who created the release.");
18
+ }).passthrough().describe("Information about the user who created the release.");
19
19
  const ReplicateDeploymentsCreate_ConfigurationSchema = zod.z.object({
20
20
  hardware: zod.z.string().describe("Hardware SKU (e.g., gpu-t4)").nullable(),
21
21
  max_instances: zod.z.number().int().describe("Maximum scaling instances").nullable(),
22
22
  min_instances: zod.z.number().int().describe("Minimum scaling instances").nullable()
23
- }).describe("Hardware and scaling settings.");
23
+ }).passthrough().describe("Hardware and scaling settings.");
24
24
  const ReplicateDeploymentsCreate_CurrentReleaseSchema = zod.z.object({
25
25
  model: zod.z.string().describe("Full model name").nullable(),
26
26
  number: zod.z.number().int().describe("Release version counter").nullable(),
@@ -28,12 +28,12 @@ const ReplicateDeploymentsCreate_CurrentReleaseSchema = zod.z.object({
28
28
  created_at: zod.z.string().describe("ISO 8601 datetime when release was created").nullable(),
29
29
  created_by: ReplicateDeploymentsCreate_CreatedBySchema.nullable(),
30
30
  configuration: ReplicateDeploymentsCreate_ConfigurationSchema.nullable()
31
- }).describe("Contains release information including model, version, and hardware configuration.");
31
+ }).passthrough().describe("Contains release information including model, version, and hardware configuration.");
32
32
  const ReplicateDeploymentsCreateOutput = zod.z.object({
33
33
  name: zod.z.string().describe("Deployment identifier").nullable(),
34
34
  owner: zod.z.string().describe("User or organization owning the deployment").nullable(),
35
35
  current_release: ReplicateDeploymentsCreate_CurrentReleaseSchema.nullable()
36
- }).describe("Response schema for creating a deployment.");
36
+ }).passthrough().describe("Response schema for creating a deployment.");
37
37
  const replicateDeploymentsCreate = require_action.action("REPLICATE_DEPLOYMENTS_CREATE", {
38
38
  slug: "replicate-deployments-create",
39
39
  name: "Create Deployment",
@@ -1 +1 @@
1
- {"version":3,"file":"deployments-create.cjs","names":["z","action"],"sources":["../../src/actions/deployments-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsCreateInput = z.object({\n name: z.string().describe(\"The deployment's identifier\"),\n model: z.string().describe(\"Full model name in format owner/name\"),\n version: z.string().describe(\"The 64-character model version ID to deploy\"),\n hardware: z.string().describe(\"Hardware SKU from the hardware.list endpoint\"),\n max_instances: z.number().int().describe(\"Maximum instances for auto-scaling\"),\n min_instances: z.number().int().describe(\"Minimum instances for auto-scaling\"),\n}).describe(\"Request schema for creating a new deployment.\");\nconst ReplicateDeploymentsCreate_CreatedBySchema = z.object({\n name: z.string().describe(\"Full name of the creator\").nullable(),\n type: z.string().describe(\"Type of the creator\").nullable(),\n username: z.string().describe(\"Username of the creator\").nullable(),\n avatar_url: z.string().describe(\"URL of the creator's avatar\").nullable().optional(),\n github_url: z.string().describe(\"GitHub URL of the creator\").nullable().optional(),\n}).describe(\"Information about the user who created the release.\");\nconst ReplicateDeploymentsCreate_ConfigurationSchema = z.object({\n hardware: z.string().describe(\"Hardware SKU (e.g., gpu-t4)\").nullable(),\n max_instances: z.number().int().describe(\"Maximum scaling instances\").nullable(),\n min_instances: z.number().int().describe(\"Minimum scaling instances\").nullable(),\n}).describe(\"Hardware and scaling settings.\");\nconst ReplicateDeploymentsCreate_CurrentReleaseSchema = z.object({\n model: z.string().describe(\"Full model name\").nullable(),\n number: z.number().int().describe(\"Release version counter\").nullable(),\n version: z.string().describe(\"64-character model version ID\").nullable(),\n created_at: z.string().describe(\"ISO 8601 datetime when release was created\").nullable(),\n created_by: ReplicateDeploymentsCreate_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsCreate_ConfigurationSchema.nullable(),\n}).describe(\"Contains release information including model, version, and hardware configuration.\");\nexport const ReplicateDeploymentsCreateOutput = z.object({\n name: z.string().describe(\"Deployment identifier\").nullable(),\n owner: z.string().describe(\"User or organization owning the deployment\").nullable(),\n current_release: ReplicateDeploymentsCreate_CurrentReleaseSchema.nullable(),\n}).describe(\"Response schema for creating a deployment.\");\n\nexport const replicateDeploymentsCreate = action(\"REPLICATE_DEPLOYMENTS_CREATE\", {\n slug: \"replicate-deployments-create\",\n name: \"Create Deployment\",\n description: \"Tool to create a new deployment with specified model, version, hardware, and scaling parameters. Use when you need to deploy a model for production use with auto-scaling.\",\n input: ReplicateDeploymentsCreateInput,\n output: ReplicateDeploymentsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CA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,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,YAAY,2CAA2C,SAAS;CAChE,eAAe,+CAA+C,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAChG,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,iBAAiB,gDAAgD,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"deployments-create.cjs","names":["z","action"],"sources":["../../src/actions/deployments-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsCreateInput = z.object({\n name: z.string().describe(\"The deployment's identifier\"),\n model: z.string().describe(\"Full model name in format owner/name\"),\n version: z.string().describe(\"The 64-character model version ID to deploy\"),\n hardware: z.string().describe(\"Hardware SKU from the hardware.list endpoint\"),\n max_instances: z.number().int().describe(\"Maximum instances for auto-scaling\"),\n min_instances: z.number().int().describe(\"Minimum instances for auto-scaling\"),\n}).describe(\"Request schema for creating a new deployment.\");\nconst ReplicateDeploymentsCreate_CreatedBySchema = z.object({\n name: z.string().describe(\"Full name of the creator\").nullable(),\n type: z.string().describe(\"Type of the creator\").nullable(),\n username: z.string().describe(\"Username of the creator\").nullable(),\n avatar_url: z.string().describe(\"URL of the creator's avatar\").nullable().optional(),\n github_url: z.string().describe(\"GitHub URL of the creator\").nullable().optional(),\n}).passthrough().describe(\"Information about the user who created the release.\");\nconst ReplicateDeploymentsCreate_ConfigurationSchema = z.object({\n hardware: z.string().describe(\"Hardware SKU (e.g., gpu-t4)\").nullable(),\n max_instances: z.number().int().describe(\"Maximum scaling instances\").nullable(),\n min_instances: z.number().int().describe(\"Minimum scaling instances\").nullable(),\n}).passthrough().describe(\"Hardware and scaling settings.\");\nconst ReplicateDeploymentsCreate_CurrentReleaseSchema = z.object({\n model: z.string().describe(\"Full model name\").nullable(),\n number: z.number().int().describe(\"Release version counter\").nullable(),\n version: z.string().describe(\"64-character model version ID\").nullable(),\n created_at: z.string().describe(\"ISO 8601 datetime when release was created\").nullable(),\n created_by: ReplicateDeploymentsCreate_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsCreate_ConfigurationSchema.nullable(),\n}).passthrough().describe(\"Contains release information including model, version, and hardware configuration.\");\nexport const ReplicateDeploymentsCreateOutput = z.object({\n name: z.string().describe(\"Deployment identifier\").nullable(),\n owner: z.string().describe(\"User or organization owning the deployment\").nullable(),\n current_release: ReplicateDeploymentsCreate_CurrentReleaseSchema.nullable(),\n}).passthrough().describe(\"Response schema for creating a deployment.\");\n\nexport const replicateDeploymentsCreate = action(\"REPLICATE_DEPLOYMENTS_CREATE\", {\n slug: \"replicate-deployments-create\",\n name: \"Create Deployment\",\n description: \"Tool to create a new deployment with specified model, version, hardware, and scaling parameters. Use when you need to deploy a model for production use with auto-scaling.\",\n input: ReplicateDeploymentsCreateInput,\n output: ReplicateDeploymentsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;C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C,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CACtE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,YAAY,2CAA2C,SAAS;CAChE,eAAe,+CAA+C,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oFAAoF;AAC9G,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAClF,iBAAiB,gDAAgD,SAAS;AAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -23,14 +23,14 @@ declare const ReplicateDeploymentsCreateOutput: z.ZodObject<{
23
23
  username: z.ZodNullable<z.ZodString>;
24
24
  avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- }, z.core.$strip>>;
26
+ }, z.core.$loose>>;
27
27
  configuration: z.ZodNullable<z.ZodObject<{
28
28
  hardware: z.ZodNullable<z.ZodString>;
29
29
  max_instances: z.ZodNullable<z.ZodNumber>;
30
30
  min_instances: z.ZodNullable<z.ZodNumber>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>>;
33
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>>;
33
+ }, z.core.$loose>;
34
34
  declare const replicateDeploymentsCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
35
35
  name: string;
36
36
  model: string;
@@ -38,7 +38,19 @@ declare const replicateDeploymentsCreate: import("@keystrokehq/action").Workflow
38
38
  hardware: string;
39
39
  max_instances: number;
40
40
  min_instances: number;
41
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
41
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
42
+ connectionId: z.ZodString;
43
+ entityId: z.ZodString;
44
+ instanceId: z.ZodString;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ bearer_token: z.ZodString;
47
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
48
+ connectionId: z.ZodString;
49
+ entityId: z.ZodString;
50
+ instanceId: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ bearer_token: z.ZodString;
53
+ }, z.core.$strip>>]>;
42
54
  //#endregion
43
55
  export { replicateDeploymentsCreate };
44
56
  //# sourceMappingURL=deployments-create.d.cts.map
@@ -23,14 +23,14 @@ declare const ReplicateDeploymentsCreateOutput: z.ZodObject<{
23
23
  username: z.ZodNullable<z.ZodString>;
24
24
  avatar_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
25
  github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- }, z.core.$strip>>;
26
+ }, z.core.$loose>>;
27
27
  configuration: z.ZodNullable<z.ZodObject<{
28
28
  hardware: z.ZodNullable<z.ZodString>;
29
29
  max_instances: z.ZodNullable<z.ZodNumber>;
30
30
  min_instances: z.ZodNullable<z.ZodNumber>;
31
- }, z.core.$strip>>;
32
- }, z.core.$strip>>;
33
- }, z.core.$strip>;
31
+ }, z.core.$loose>>;
32
+ }, z.core.$loose>>;
33
+ }, z.core.$loose>;
34
34
  declare const replicateDeploymentsCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
35
35
  name: string;
36
36
  model: string;
@@ -38,7 +38,19 @@ declare const replicateDeploymentsCreate: import("@keystrokehq/action").Workflow
38
38
  hardware: string;
39
39
  max_instances: number;
40
40
  min_instances: number;
41
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
41
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
42
+ connectionId: z.ZodString;
43
+ entityId: z.ZodString;
44
+ instanceId: z.ZodString;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ bearer_token: z.ZodString;
47
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
48
+ connectionId: z.ZodString;
49
+ entityId: z.ZodString;
50
+ instanceId: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ bearer_token: z.ZodString;
53
+ }, z.core.$strip>>]>;
42
54
  //#endregion
43
55
  export { replicateDeploymentsCreate };
44
56
  //# sourceMappingURL=deployments-create.d.mts.map
@@ -15,12 +15,12 @@ const ReplicateDeploymentsCreate_CreatedBySchema = z.object({
15
15
  username: z.string().describe("Username of the creator").nullable(),
16
16
  avatar_url: z.string().describe("URL of the creator's avatar").nullable().optional(),
17
17
  github_url: z.string().describe("GitHub URL of the creator").nullable().optional()
18
- }).describe("Information about the user who created the release.");
18
+ }).passthrough().describe("Information about the user who created the release.");
19
19
  const ReplicateDeploymentsCreate_ConfigurationSchema = z.object({
20
20
  hardware: z.string().describe("Hardware SKU (e.g., gpu-t4)").nullable(),
21
21
  max_instances: z.number().int().describe("Maximum scaling instances").nullable(),
22
22
  min_instances: z.number().int().describe("Minimum scaling instances").nullable()
23
- }).describe("Hardware and scaling settings.");
23
+ }).passthrough().describe("Hardware and scaling settings.");
24
24
  const ReplicateDeploymentsCreate_CurrentReleaseSchema = z.object({
25
25
  model: z.string().describe("Full model name").nullable(),
26
26
  number: z.number().int().describe("Release version counter").nullable(),
@@ -28,7 +28,7 @@ const ReplicateDeploymentsCreate_CurrentReleaseSchema = z.object({
28
28
  created_at: z.string().describe("ISO 8601 datetime when release was created").nullable(),
29
29
  created_by: ReplicateDeploymentsCreate_CreatedBySchema.nullable(),
30
30
  configuration: ReplicateDeploymentsCreate_ConfigurationSchema.nullable()
31
- }).describe("Contains release information including model, version, and hardware configuration.");
31
+ }).passthrough().describe("Contains release information including model, version, and hardware configuration.");
32
32
  const replicateDeploymentsCreate = action("REPLICATE_DEPLOYMENTS_CREATE", {
33
33
  slug: "replicate-deployments-create",
34
34
  name: "Create Deployment",
@@ -38,7 +38,7 @@ const replicateDeploymentsCreate = action("REPLICATE_DEPLOYMENTS_CREATE", {
38
38
  name: z.string().describe("Deployment identifier").nullable(),
39
39
  owner: z.string().describe("User or organization owning the deployment").nullable(),
40
40
  current_release: ReplicateDeploymentsCreate_CurrentReleaseSchema.nullable()
41
- }).describe("Response schema for creating a deployment.")
41
+ }).passthrough().describe("Response schema for creating a deployment.")
42
42
  });
43
43
  //#endregion
44
44
  export { replicateDeploymentsCreate };
@@ -1 +1 @@
1
- {"version":3,"file":"deployments-create.mjs","names":[],"sources":["../../src/actions/deployments-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsCreateInput = z.object({\n name: z.string().describe(\"The deployment's identifier\"),\n model: z.string().describe(\"Full model name in format owner/name\"),\n version: z.string().describe(\"The 64-character model version ID to deploy\"),\n hardware: z.string().describe(\"Hardware SKU from the hardware.list endpoint\"),\n max_instances: z.number().int().describe(\"Maximum instances for auto-scaling\"),\n min_instances: z.number().int().describe(\"Minimum instances for auto-scaling\"),\n}).describe(\"Request schema for creating a new deployment.\");\nconst ReplicateDeploymentsCreate_CreatedBySchema = z.object({\n name: z.string().describe(\"Full name of the creator\").nullable(),\n type: z.string().describe(\"Type of the creator\").nullable(),\n username: z.string().describe(\"Username of the creator\").nullable(),\n avatar_url: z.string().describe(\"URL of the creator's avatar\").nullable().optional(),\n github_url: z.string().describe(\"GitHub URL of the creator\").nullable().optional(),\n}).describe(\"Information about the user who created the release.\");\nconst ReplicateDeploymentsCreate_ConfigurationSchema = z.object({\n hardware: z.string().describe(\"Hardware SKU (e.g., gpu-t4)\").nullable(),\n max_instances: z.number().int().describe(\"Maximum scaling instances\").nullable(),\n min_instances: z.number().int().describe(\"Minimum scaling instances\").nullable(),\n}).describe(\"Hardware and scaling settings.\");\nconst ReplicateDeploymentsCreate_CurrentReleaseSchema = z.object({\n model: z.string().describe(\"Full model name\").nullable(),\n number: z.number().int().describe(\"Release version counter\").nullable(),\n version: z.string().describe(\"64-character model version ID\").nullable(),\n created_at: z.string().describe(\"ISO 8601 datetime when release was created\").nullable(),\n created_by: ReplicateDeploymentsCreate_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsCreate_ConfigurationSchema.nullable(),\n}).describe(\"Contains release information including model, version, and hardware configuration.\");\nexport const ReplicateDeploymentsCreateOutput = z.object({\n name: z.string().describe(\"Deployment identifier\").nullable(),\n owner: z.string().describe(\"User or organization owning the deployment\").nullable(),\n current_release: ReplicateDeploymentsCreate_CurrentReleaseSchema.nullable(),\n}).describe(\"Response schema for creating a deployment.\");\n\nexport const replicateDeploymentsCreate = action(\"REPLICATE_DEPLOYMENTS_CREATE\", {\n slug: \"replicate-deployments-create\",\n name: \"Create Deployment\",\n description: \"Tool to create a new deployment with specified model, version, hardware, and scaling parameters. Use when you need to deploy a model for production use with auto-scaling.\",\n input: ReplicateDeploymentsCreateInput,\n output: ReplicateDeploymentsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sC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AAC,CAAC,SAAS;CACtE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,YAAY,2CAA2C,SAAS;CAChE,eAAe,+CAA+C,SAAS;AACzE,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAOhG,MAAa,6BAA6B,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAClF,iBAAiB,gDAAgD,SAAS;CAC5E,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"deployments-create.mjs","names":[],"sources":["../../src/actions/deployments-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsCreateInput = z.object({\n name: z.string().describe(\"The deployment's identifier\"),\n model: z.string().describe(\"Full model name in format owner/name\"),\n version: z.string().describe(\"The 64-character model version ID to deploy\"),\n hardware: z.string().describe(\"Hardware SKU from the hardware.list endpoint\"),\n max_instances: z.number().int().describe(\"Maximum instances for auto-scaling\"),\n min_instances: z.number().int().describe(\"Minimum instances for auto-scaling\"),\n}).describe(\"Request schema for creating a new deployment.\");\nconst ReplicateDeploymentsCreate_CreatedBySchema = z.object({\n name: z.string().describe(\"Full name of the creator\").nullable(),\n type: z.string().describe(\"Type of the creator\").nullable(),\n username: z.string().describe(\"Username of the creator\").nullable(),\n avatar_url: z.string().describe(\"URL of the creator's avatar\").nullable().optional(),\n github_url: z.string().describe(\"GitHub URL of the creator\").nullable().optional(),\n}).passthrough().describe(\"Information about the user who created the release.\");\nconst ReplicateDeploymentsCreate_ConfigurationSchema = z.object({\n hardware: z.string().describe(\"Hardware SKU (e.g., gpu-t4)\").nullable(),\n max_instances: z.number().int().describe(\"Maximum scaling instances\").nullable(),\n min_instances: z.number().int().describe(\"Minimum scaling instances\").nullable(),\n}).passthrough().describe(\"Hardware and scaling settings.\");\nconst ReplicateDeploymentsCreate_CurrentReleaseSchema = z.object({\n model: z.string().describe(\"Full model name\").nullable(),\n number: z.number().int().describe(\"Release version counter\").nullable(),\n version: z.string().describe(\"64-character model version ID\").nullable(),\n created_at: z.string().describe(\"ISO 8601 datetime when release was created\").nullable(),\n created_by: ReplicateDeploymentsCreate_CreatedBySchema.nullable(),\n configuration: ReplicateDeploymentsCreate_ConfigurationSchema.nullable(),\n}).passthrough().describe(\"Contains release information including model, version, and hardware configuration.\");\nexport const ReplicateDeploymentsCreateOutput = z.object({\n name: z.string().describe(\"Deployment identifier\").nullable(),\n owner: z.string().describe(\"User or organization owning the deployment\").nullable(),\n current_release: ReplicateDeploymentsCreate_CurrentReleaseSchema.nullable(),\n}).passthrough().describe(\"Response schema for creating a deployment.\");\n\nexport const replicateDeploymentsCreate = action(\"REPLICATE_DEPLOYMENTS_CREATE\", {\n slug: \"replicate-deployments-create\",\n name: \"Create Deployment\",\n description: \"Tool to create a new deployment with specified model, version, hardware, and scaling parameters. Use when you need to deploy a model for production use with auto-scaling.\",\n input: ReplicateDeploymentsCreateInput,\n output: ReplicateDeploymentsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC;CACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C;CAC1E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CAC5E,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;CAC7E,eAAe,EAAE,OA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AY,2CAA2C,SAAS;CAChE,eAAe,+CAA+C,SAAS;AACzE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oFAAoF;AAO9G,MAAa,6BAA6B,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX8C,EAAE,OAAO;EACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAClF,iBAAiB,gDAAgD,SAAS;CAC5E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -8,7 +8,7 @@ const ReplicateDeploymentsDeleteInput = zod.z.object({
8
8
  const ReplicateDeploymentsDeleteOutput = zod.z.object({
9
9
  message: zod.z.string().default("Deployment deleted successfully").describe("Success message confirming the deletion").nullable().optional(),
10
10
  success: zod.z.boolean().default(true).describe("Indicates whether the deployment was successfully deleted").nullable().optional()
11
- }).describe("Response schema for deleting a deployment.");
11
+ }).passthrough().describe("Response schema for deleting a deployment.");
12
12
  const replicateDeploymentsDelete = require_action.action("REPLICATE_DEPLOYMENTS_DELETE", {
13
13
  slug: "replicate-deployments-delete",
14
14
  name: "Delete Deployment",
@@ -1 +1 @@
1
- {"version":3,"file":"deployments-delete.cjs","names":["z","action"],"sources":["../../src/actions/deployments-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsDeleteInput = z.object({\n deployment_name: z.string().describe(\"The name of the deployment to delete. Deployment must be offline and unused for at least 15 minutes before deletion.\"),\n deployment_owner: z.string().describe(\"The username or organization that owns the deployment\"),\n}).describe(\"Request schema for deleting a deployment.\");\nexport const ReplicateDeploymentsDeleteOutput = z.object({\n message: z.string().default(\"Deployment deleted successfully\").describe(\"Success message confirming the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the deployment was successfully deleted\").nullable().optional(),\n}).describe(\"Response schema for deleting a deployment.\");\n\nexport const replicateDeploymentsDelete = action(\"REPLICATE_DEPLOYMENTS_DELETE\", {\n slug: \"replicate-deployments-delete\",\n name: \"Delete Deployment\",\n description: \"Tool to delete a deployment from your account. Use when you need to remove a deployment. Deployments must be offline and unused for at least 15 minutes before deletion.\",\n input: ReplicateDeploymentsDeleteInput,\n output: ReplicateDeploymentsDeleteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAC3J,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC/F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,iCAAiC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"deployments-delete.cjs","names":["z","action"],"sources":["../../src/actions/deployments-delete.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateDeploymentsDeleteInput = z.object({\n deployment_name: z.string().describe(\"The name of the deployment to delete. Deployment must be offline and unused for at least 15 minutes before deletion.\"),\n deployment_owner: z.string().describe(\"The username or organization that owns the deployment\"),\n}).describe(\"Request schema for deleting a deployment.\");\nexport const ReplicateDeploymentsDeleteOutput = z.object({\n message: z.string().default(\"Deployment deleted successfully\").describe(\"Success message confirming the deletion\").nullable().optional(),\n success: z.boolean().default(true).describe(\"Indicates whether the deployment was successfully deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for deleting a deployment.\");\n\nexport const replicateDeploymentsDelete = action(\"REPLICATE_DEPLOYMENTS_DELETE\", {\n slug: \"replicate-deployments-delete\",\n name: \"Delete Deployment\",\n description: \"Tool to delete a deployment from your account. Use when you need to remove a deployment. Deployments must be offline and unused for at least 15 minutes before deletion.\",\n input: ReplicateDeploymentsDeleteInput,\n output: ReplicateDeploymentsDeleteOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sHAAsH;CAC3J,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;AAC/F,CAAC,CAAC,CAAC,SAAS,2CAA2C;AACvD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,iCAAiC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,6BAA6BC,eAAAA,OAAO,gCAAgC;CAC/E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -8,11 +8,23 @@ declare const ReplicateDeploymentsDeleteInput: z.ZodObject<{
8
8
  declare const ReplicateDeploymentsDeleteOutput: z.ZodObject<{
9
9
  message: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodString>>>;
10
10
  success: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
11
- }, z.core.$strip>;
11
+ }, z.core.$loose>;
12
12
  declare const replicateDeploymentsDelete: import("@keystrokehq/action").WorkflowActionDefinition<{
13
13
  deployment_name: string;
14
14
  deployment_owner: string;
15
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
16
+ connectionId: z.ZodString;
17
+ entityId: z.ZodString;
18
+ instanceId: z.ZodString;
19
+ }, z.core.$strip>, z.ZodObject<{
20
+ bearer_token: z.ZodString;
21
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
22
+ connectionId: z.ZodString;
23
+ entityId: z.ZodString;
24
+ instanceId: z.ZodString;
25
+ }, z.core.$strip>, z.ZodObject<{
26
+ bearer_token: z.ZodString;
27
+ }, z.core.$strip>>]>;
16
28
  //#endregion
17
29
  export { replicateDeploymentsDelete };
18
30
  //# sourceMappingURL=deployments-delete.d.cts.map