@keystrokehq/replicate 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/account-get.cjs +3 -3
  4. package/dist/actions/account-get.cjs.map +1 -1
  5. package/dist/actions/account-get.d.cts +8 -3
  6. package/dist/actions/account-get.d.cts.map +1 -1
  7. package/dist/actions/account-get.d.mts +8 -3
  8. package/dist/actions/account-get.d.mts.map +1 -1
  9. package/dist/actions/account-get.mjs +3 -3
  10. package/dist/actions/account-get.mjs.map +1 -1
  11. package/dist/actions/cancel-prediction.cjs +6 -6
  12. package/dist/actions/cancel-prediction.cjs.map +1 -1
  13. package/dist/actions/cancel-prediction.d.cts +43 -3
  14. package/dist/actions/cancel-prediction.d.cts.map +1 -1
  15. package/dist/actions/cancel-prediction.d.mts +43 -3
  16. package/dist/actions/cancel-prediction.d.mts.map +1 -1
  17. package/dist/actions/cancel-prediction.mjs +6 -6
  18. package/dist/actions/cancel-prediction.mjs.map +1 -1
  19. package/dist/actions/collections-get.cjs +8 -8
  20. package/dist/actions/collections-get.cjs.map +1 -1
  21. package/dist/actions/collections-get.d.cts +26 -3
  22. package/dist/actions/collections-get.d.cts.map +1 -1
  23. package/dist/actions/collections-get.d.mts +26 -3
  24. package/dist/actions/collections-get.d.mts.map +1 -1
  25. package/dist/actions/collections-get.mjs +8 -8
  26. package/dist/actions/collections-get.mjs.map +1 -1
  27. package/dist/actions/collections-list.cjs +3 -3
  28. package/dist/actions/collections-list.cjs.map +1 -1
  29. package/dist/actions/collections-list.d.cts +15 -3
  30. package/dist/actions/collections-list.d.cts.map +1 -1
  31. package/dist/actions/collections-list.d.mts +15 -3
  32. package/dist/actions/collections-list.d.mts.map +1 -1
  33. package/dist/actions/collections-list.mjs +3 -3
  34. package/dist/actions/collections-list.mjs.map +1 -1
  35. package/dist/actions/create-model.cjs +7 -7
  36. package/dist/actions/create-model.cjs.map +1 -1
  37. package/dist/actions/create-model.d.cts +39 -3
  38. package/dist/actions/create-model.d.cts.map +1 -1
  39. package/dist/actions/create-model.d.mts +39 -3
  40. package/dist/actions/create-model.d.mts.map +1 -1
  41. package/dist/actions/create-model.mjs +7 -7
  42. package/dist/actions/create-model.mjs.map +1 -1
  43. package/dist/actions/create-prediction.cjs +8 -8
  44. package/dist/actions/create-prediction.cjs.map +1 -1
  45. package/dist/actions/create-prediction.d.cts +40 -3
  46. package/dist/actions/create-prediction.d.cts.map +1 -1
  47. package/dist/actions/create-prediction.d.mts +40 -3
  48. package/dist/actions/create-prediction.d.mts.map +1 -1
  49. package/dist/actions/create-prediction.mjs +8 -8
  50. package/dist/actions/create-prediction.mjs.map +1 -1
  51. package/dist/actions/deployments-create.cjs +12 -12
  52. package/dist/actions/deployments-create.cjs.map +1 -1
  53. package/dist/actions/deployments-create.d.cts +38 -3
  54. package/dist/actions/deployments-create.d.cts.map +1 -1
  55. package/dist/actions/deployments-create.d.mts +38 -3
  56. package/dist/actions/deployments-create.d.mts.map +1 -1
  57. package/dist/actions/deployments-create.mjs +12 -12
  58. package/dist/actions/deployments-create.mjs.map +1 -1
  59. package/dist/actions/deployments-delete.cjs.map +1 -1
  60. package/dist/actions/deployments-delete.d.cts +12 -3
  61. package/dist/actions/deployments-delete.d.cts.map +1 -1
  62. package/dist/actions/deployments-delete.d.mts +12 -3
  63. package/dist/actions/deployments-delete.d.mts.map +1 -1
  64. package/dist/actions/deployments-delete.mjs.map +1 -1
  65. package/dist/actions/deployments-get.cjs.map +1 -1
  66. package/dist/actions/deployments-get.d.cts +30 -3
  67. package/dist/actions/deployments-get.d.cts.map +1 -1
  68. package/dist/actions/deployments-get.d.mts +30 -3
  69. package/dist/actions/deployments-get.d.mts.map +1 -1
  70. package/dist/actions/deployments-get.mjs.map +1 -1
  71. package/dist/actions/deployments-list.cjs +12 -12
  72. package/dist/actions/deployments-list.cjs.map +1 -1
  73. package/dist/actions/deployments-list.d.cts +32 -3
  74. package/dist/actions/deployments-list.d.cts.map +1 -1
  75. package/dist/actions/deployments-list.d.mts +32 -3
  76. package/dist/actions/deployments-list.d.mts.map +1 -1
  77. package/dist/actions/deployments-list.mjs +12 -12
  78. package/dist/actions/deployments-list.mjs.map +1 -1
  79. package/dist/actions/files-create.cjs +5 -5
  80. package/dist/actions/files-create.cjs.map +1 -1
  81. package/dist/actions/files-create.d.cts +35 -3
  82. package/dist/actions/files-create.d.cts.map +1 -1
  83. package/dist/actions/files-create.d.mts +35 -3
  84. package/dist/actions/files-create.d.mts.map +1 -1
  85. package/dist/actions/files-create.mjs +5 -5
  86. package/dist/actions/files-create.mjs.map +1 -1
  87. package/dist/actions/files-delete.cjs.map +1 -1
  88. package/dist/actions/files-delete.d.cts +10 -3
  89. package/dist/actions/files-delete.d.cts.map +1 -1
  90. package/dist/actions/files-delete.d.mts +10 -3
  91. package/dist/actions/files-delete.d.mts.map +1 -1
  92. package/dist/actions/files-delete.mjs.map +1 -1
  93. package/dist/actions/files-get.cjs +6 -6
  94. package/dist/actions/files-get.cjs.map +1 -1
  95. package/dist/actions/files-get.d.cts +23 -3
  96. package/dist/actions/files-get.d.cts.map +1 -1
  97. package/dist/actions/files-get.d.mts +23 -3
  98. package/dist/actions/files-get.d.mts.map +1 -1
  99. package/dist/actions/files-get.mjs +6 -6
  100. package/dist/actions/files-get.mjs.map +1 -1
  101. package/dist/actions/files-list.cjs +7 -7
  102. package/dist/actions/files-list.cjs.map +1 -1
  103. package/dist/actions/files-list.d.cts +27 -3
  104. package/dist/actions/files-list.d.cts.map +1 -1
  105. package/dist/actions/files-list.d.mts +27 -3
  106. package/dist/actions/files-list.d.mts.map +1 -1
  107. package/dist/actions/files-list.mjs +7 -7
  108. package/dist/actions/files-list.mjs.map +1 -1
  109. package/dist/actions/get-prediction.cjs +7 -7
  110. package/dist/actions/get-prediction.cjs.map +1 -1
  111. package/dist/actions/get-prediction.d.cts +42 -3
  112. package/dist/actions/get-prediction.d.cts.map +1 -1
  113. package/dist/actions/get-prediction.d.mts +42 -3
  114. package/dist/actions/get-prediction.d.mts.map +1 -1
  115. package/dist/actions/get-prediction.mjs +7 -7
  116. package/dist/actions/get-prediction.mjs.map +1 -1
  117. package/dist/actions/hardware-list.cjs +2 -2
  118. package/dist/actions/hardware-list.cjs.map +1 -1
  119. package/dist/actions/hardware-list.d.cts +8 -3
  120. package/dist/actions/hardware-list.d.cts.map +1 -1
  121. package/dist/actions/hardware-list.d.mts +8 -3
  122. package/dist/actions/hardware-list.d.mts.map +1 -1
  123. package/dist/actions/hardware-list.mjs +2 -2
  124. package/dist/actions/hardware-list.mjs.map +1 -1
  125. package/dist/actions/models-examples-list.cjs +7 -7
  126. package/dist/actions/models-examples-list.cjs.map +1 -1
  127. package/dist/actions/models-examples-list.d.cts +37 -3
  128. package/dist/actions/models-examples-list.d.cts.map +1 -1
  129. package/dist/actions/models-examples-list.d.mts +37 -3
  130. package/dist/actions/models-examples-list.d.mts.map +1 -1
  131. package/dist/actions/models-examples-list.mjs +7 -7
  132. package/dist/actions/models-examples-list.mjs.map +1 -1
  133. package/dist/actions/models-get.cjs +20 -20
  134. package/dist/actions/models-get.cjs.map +1 -1
  135. package/dist/actions/models-get.d.cts +77 -3
  136. package/dist/actions/models-get.d.cts.map +1 -1
  137. package/dist/actions/models-get.d.mts +77 -3
  138. package/dist/actions/models-get.d.mts.map +1 -1
  139. package/dist/actions/models-get.mjs +20 -20
  140. package/dist/actions/models-get.mjs.map +1 -1
  141. package/dist/actions/models-list.cjs +8 -8
  142. package/dist/actions/models-list.cjs.map +1 -1
  143. package/dist/actions/models-list.d.cts +39 -3
  144. package/dist/actions/models-list.d.cts.map +1 -1
  145. package/dist/actions/models-list.d.mts +39 -3
  146. package/dist/actions/models-list.d.mts.map +1 -1
  147. package/dist/actions/models-list.mjs +8 -8
  148. package/dist/actions/models-list.mjs.map +1 -1
  149. package/dist/actions/models-predictions-create.cjs +5 -5
  150. package/dist/actions/models-predictions-create.cjs.map +1 -1
  151. package/dist/actions/models-predictions-create.d.cts +46 -3
  152. package/dist/actions/models-predictions-create.d.cts.map +1 -1
  153. package/dist/actions/models-predictions-create.d.mts +46 -3
  154. package/dist/actions/models-predictions-create.d.mts.map +1 -1
  155. package/dist/actions/models-predictions-create.mjs +5 -5
  156. package/dist/actions/models-predictions-create.mjs.map +1 -1
  157. package/dist/actions/models-readme-get.cjs +1 -1
  158. package/dist/actions/models-readme-get.cjs.map +1 -1
  159. package/dist/actions/models-readme-get.d.cts +11 -3
  160. package/dist/actions/models-readme-get.d.cts.map +1 -1
  161. package/dist/actions/models-readme-get.d.mts +11 -3
  162. package/dist/actions/models-readme-get.d.mts.map +1 -1
  163. package/dist/actions/models-readme-get.mjs +1 -1
  164. package/dist/actions/models-readme-get.mjs.map +1 -1
  165. package/dist/actions/models-versions-get.cjs +3 -3
  166. package/dist/actions/models-versions-get.cjs.map +1 -1
  167. package/dist/actions/models-versions-get.d.cts +16 -3
  168. package/dist/actions/models-versions-get.d.cts.map +1 -1
  169. package/dist/actions/models-versions-get.d.mts +16 -3
  170. package/dist/actions/models-versions-get.d.mts.map +1 -1
  171. package/dist/actions/models-versions-get.mjs +3 -3
  172. package/dist/actions/models-versions-get.mjs.map +1 -1
  173. package/dist/actions/models-versions-list.cjs +3 -3
  174. package/dist/actions/models-versions-list.cjs.map +1 -1
  175. package/dist/actions/models-versions-list.d.cts +20 -3
  176. package/dist/actions/models-versions-list.d.cts.map +1 -1
  177. package/dist/actions/models-versions-list.d.mts +20 -3
  178. package/dist/actions/models-versions-list.d.mts.map +1 -1
  179. package/dist/actions/models-versions-list.mjs +3 -3
  180. package/dist/actions/models-versions-list.mjs.map +1 -1
  181. package/dist/actions/predictions-create.cjs +5 -5
  182. package/dist/actions/predictions-create.cjs.map +1 -1
  183. package/dist/actions/predictions-create.d.cts +47 -3
  184. package/dist/actions/predictions-create.d.cts.map +1 -1
  185. package/dist/actions/predictions-create.d.mts +47 -3
  186. package/dist/actions/predictions-create.d.mts.map +1 -1
  187. package/dist/actions/predictions-create.mjs +5 -5
  188. package/dist/actions/predictions-create.mjs.map +1 -1
  189. package/dist/actions/predictions-list.cjs +9 -9
  190. package/dist/actions/predictions-list.cjs.map +1 -1
  191. package/dist/actions/predictions-list.d.cts +38 -3
  192. package/dist/actions/predictions-list.d.cts.map +1 -1
  193. package/dist/actions/predictions-list.d.mts +38 -3
  194. package/dist/actions/predictions-list.d.mts.map +1 -1
  195. package/dist/actions/predictions-list.mjs +9 -9
  196. package/dist/actions/predictions-list.mjs.map +1 -1
  197. package/dist/actions/search.cjs +19 -19
  198. package/dist/actions/search.cjs.map +1 -1
  199. package/dist/actions/search.d.cts +80 -3
  200. package/dist/actions/search.d.cts.map +1 -1
  201. package/dist/actions/search.d.mts +80 -3
  202. package/dist/actions/search.d.mts.map +1 -1
  203. package/dist/actions/search.mjs +19 -19
  204. package/dist/actions/search.mjs.map +1 -1
  205. package/dist/actions/trainings-cancel.cjs +6 -6
  206. package/dist/actions/trainings-cancel.cjs.map +1 -1
  207. package/dist/actions/trainings-cancel.d.cts +26 -3
  208. package/dist/actions/trainings-cancel.d.cts.map +1 -1
  209. package/dist/actions/trainings-cancel.d.mts +26 -3
  210. package/dist/actions/trainings-cancel.d.mts.map +1 -1
  211. package/dist/actions/trainings-cancel.mjs +6 -6
  212. package/dist/actions/trainings-cancel.mjs.map +1 -1
  213. package/dist/actions/trainings-create.cjs +5 -5
  214. package/dist/actions/trainings-create.cjs.map +1 -1
  215. package/dist/actions/trainings-create.d.cts +46 -3
  216. package/dist/actions/trainings-create.d.cts.map +1 -1
  217. package/dist/actions/trainings-create.d.mts +46 -3
  218. package/dist/actions/trainings-create.d.mts.map +1 -1
  219. package/dist/actions/trainings-create.mjs +5 -5
  220. package/dist/actions/trainings-create.mjs.map +1 -1
  221. package/dist/actions/trainings-list.cjs +8 -8
  222. package/dist/actions/trainings-list.cjs.map +1 -1
  223. package/dist/actions/trainings-list.d.cts +35 -3
  224. package/dist/actions/trainings-list.d.cts.map +1 -1
  225. package/dist/actions/trainings-list.d.mts +35 -3
  226. package/dist/actions/trainings-list.d.mts.map +1 -1
  227. package/dist/actions/trainings-list.mjs +8 -8
  228. package/dist/actions/trainings-list.mjs.map +1 -1
  229. package/dist/actions/update-models.cjs +6 -6
  230. package/dist/actions/update-models.cjs.map +1 -1
  231. package/dist/actions/update-models.d.cts +35 -3
  232. package/dist/actions/update-models.d.cts.map +1 -1
  233. package/dist/actions/update-models.d.mts +35 -3
  234. package/dist/actions/update-models.d.mts.map +1 -1
  235. package/dist/actions/update-models.mjs +6 -6
  236. package/dist/actions/update-models.mjs.map +1 -1
  237. package/dist/actions/webhooks-secret-get.cjs +1 -1
  238. package/dist/actions/webhooks-secret-get.cjs.map +1 -1
  239. package/dist/actions/webhooks-secret-get.d.cts +5 -3
  240. package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
  241. package/dist/actions/webhooks-secret-get.d.mts +5 -3
  242. package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
  243. package/dist/actions/webhooks-secret-get.mjs +1 -1
  244. package/dist/actions/webhooks-secret-get.mjs.map +1 -1
  245. package/dist/catalog.cjs +7 -1
  246. package/dist/catalog.cjs.map +1 -1
  247. package/dist/catalog.d.cts +8 -0
  248. package/dist/catalog.d.mts +8 -0
  249. package/dist/catalog.mjs +7 -1
  250. package/dist/catalog.mjs.map +1 -1
  251. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"trainings-list.mjs","names":[],"sources":["../../src/actions/trainings-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsListInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema: z.ZodTypeAny = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\"),\n cancel: z.string().describe(\"URL to cancel the in-progress training\"),\n}).describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema: z.ZodTypeAny = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema: z.ZodTypeAny = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for this training job\"),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\"),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\"),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\"),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\"),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\"),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4C,EAAE,OAAO,EAChE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA0D,EAAE,OAAO;CACvE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D;CACpF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;AACtE,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,8CAA4D,EAAE,OAAO;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,+CAA6D,EAAE,OAAO;CAC1E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACjE,MAAM,EAAE,OAAO,CAA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;AACV,CAAC"}
1
+ {"version":3,"file":"trainings-list.mjs","names":[],"sources":["../../src/actions/trainings-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\").nullable(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema = z.object({\n id: z.string().describe(\"Unique identifier for this training job\").nullable(),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,8CAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,+CAA+C,EAAE,OA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SAAS,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAOtD,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uEAAuE;EACxI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,SAAS,kCAOF;AACV,CAAC"}
@@ -12,15 +12,15 @@ const ReplicateUpdateModelsInput = zod.z.object({
12
12
  weights_url: zod.z.string().describe("A URL for the model's weights").optional()
13
13
  }).describe("Request schema for updating a model's metadata.");
14
14
  const ReplicateUpdateModelsOutput = zod.z.object({
15
- url: zod.z.string().describe("The URL of the model on Replicate"),
16
- name: zod.z.string().describe("The name of the model"),
17
- owner: zod.z.string().describe("The name of the user or organization that owns the model"),
15
+ url: zod.z.string().describe("The URL of the model on Replicate").nullable(),
16
+ name: zod.z.string().describe("The name of the model").nullable(),
17
+ owner: zod.z.string().describe("The name of the user or organization that owns the model").nullable(),
18
18
  paper_url: zod.z.string().describe("A URL for the model's paper").nullable().optional(),
19
- run_count: zod.z.number().int().describe("The number of times the model has been run"),
19
+ run_count: zod.z.number().int().describe("The number of times the model has been run").nullable(),
20
20
  github_url: zod.z.string().describe("A URL for the model's source code on GitHub").nullable().optional(),
21
- visibility: zod.z.string().describe("Whether the model is public or private"),
21
+ visibility: zod.z.string().describe("Whether the model is public or private").nullable(),
22
22
  description: zod.z.string().describe("A description of the model").nullable().optional(),
23
- is_official: zod.z.boolean().describe("Boolean indicating whether the model is officially maintained by Replicate. Official models are always on, have stable API interfaces, and predictable pricing."),
23
+ is_official: zod.z.boolean().describe("Boolean indicating whether the model is officially maintained by Replicate. Official models are always on, have stable API interfaces, and predictable pricing.").nullable(),
24
24
  license_url: zod.z.string().describe("A URL for the model's license").nullable().optional(),
25
25
  latest_version: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The model's latest version").nullable().optional(),
26
26
  cover_image_url: zod.z.string().describe("A URL for the model's cover image").nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"update-models.cjs","names":["z","action"],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput: z.ZodTypeAny = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\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 model_name: z.string().describe(\"The name of the model to update\"),\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 model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\"),\n name: z.string().describe(\"The name of the model\"),\n owner: z.string().describe(\"The name of the user or organization that owns the model\"),\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\"),\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\"),\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. Official models are always on, have stable API interfaces, and predictable pricing.\"),\n license_url: z.string().describe(\"A URL for the model's license\").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 updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACjE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iKAAiK;CACnM,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,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,kDAAkD;AAE9D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-models.cjs","names":["z","action"],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\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 model_name: z.string().describe(\"The name of the model to update\"),\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 model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = 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 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. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").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 updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAA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AS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;CAC9M,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,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,kDAAkD;AAE9D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,41 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-models.d.ts
4
- declare const ReplicateUpdateModelsInput: z.ZodTypeAny;
5
- declare const ReplicateUpdateModelsOutput: z.ZodTypeAny;
6
- declare const replicateUpdateModels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateUpdateModelsInput: z.ZodObject<{
5
+ readme: z.ZodOptional<z.ZodString>;
6
+ paper_url: z.ZodOptional<z.ZodString>;
7
+ github_url: z.ZodOptional<z.ZodString>;
8
+ model_name: z.ZodString;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ license_url: z.ZodOptional<z.ZodString>;
11
+ model_owner: z.ZodString;
12
+ weights_url: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const ReplicateUpdateModelsOutput: z.ZodObject<{
15
+ url: z.ZodNullable<z.ZodString>;
16
+ name: z.ZodNullable<z.ZodString>;
17
+ owner: z.ZodNullable<z.ZodString>;
18
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ run_count: z.ZodNullable<z.ZodNumber>;
20
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ visibility: z.ZodNullable<z.ZodString>;
22
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ is_official: z.ZodNullable<z.ZodBoolean>;
24
+ license_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
+ cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
28
+ }, z.core.$strip>;
29
+ declare const replicateUpdateModels: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ model_name: string;
31
+ model_owner: string;
32
+ readme?: string | undefined;
33
+ paper_url?: string | undefined;
34
+ github_url?: string | undefined;
35
+ description?: string | undefined;
36
+ license_url?: string | undefined;
37
+ weights_url?: string | undefined;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
39
  //#endregion
8
40
  export { replicateUpdateModels };
9
41
  //# sourceMappingURL=update-models.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-models.d.cts","names":[],"sources":["../../src/actions/update-models.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UASmB;AAAA,cACjD,2BAAA,EAA6B,CAAA,CAAE,UAcmB;AAAA,cAElD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-models.d.cts","names":[],"sources":["../../src/actions/update-models.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cAU1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgB3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,41 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/update-models.d.ts
4
- declare const ReplicateUpdateModelsInput: z.ZodTypeAny;
5
- declare const ReplicateUpdateModelsOutput: z.ZodTypeAny;
6
- declare const replicateUpdateModels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateUpdateModelsInput: z.ZodObject<{
5
+ readme: z.ZodOptional<z.ZodString>;
6
+ paper_url: z.ZodOptional<z.ZodString>;
7
+ github_url: z.ZodOptional<z.ZodString>;
8
+ model_name: z.ZodString;
9
+ description: z.ZodOptional<z.ZodString>;
10
+ license_url: z.ZodOptional<z.ZodString>;
11
+ model_owner: z.ZodString;
12
+ weights_url: z.ZodOptional<z.ZodString>;
13
+ }, z.core.$strip>;
14
+ declare const ReplicateUpdateModelsOutput: z.ZodObject<{
15
+ url: z.ZodNullable<z.ZodString>;
16
+ name: z.ZodNullable<z.ZodString>;
17
+ owner: z.ZodNullable<z.ZodString>;
18
+ paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ run_count: z.ZodNullable<z.ZodNumber>;
20
+ github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ visibility: z.ZodNullable<z.ZodString>;
22
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ is_official: z.ZodNullable<z.ZodBoolean>;
24
+ license_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
+ cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
28
+ }, z.core.$strip>;
29
+ declare const replicateUpdateModels: import("@keystrokehq/action").WorkflowActionDefinition<{
30
+ model_name: string;
31
+ model_owner: string;
32
+ readme?: string | undefined;
33
+ paper_url?: string | undefined;
34
+ github_url?: string | undefined;
35
+ description?: string | undefined;
36
+ license_url?: string | undefined;
37
+ weights_url?: string | undefined;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
39
  //#endregion
8
40
  export { replicateUpdateModels };
9
41
  //# sourceMappingURL=update-models.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-models.d.mts","names":[],"sources":["../../src/actions/update-models.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UASmB;AAAA,cACjD,2BAAA,EAA6B,CAAA,CAAE,UAcmB;AAAA,cAElD,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"update-models.d.mts","names":[],"sources":["../../src/actions/update-models.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;cAU1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;cAgB3B,qBAAA,gCAAqB,wBAAA"}
@@ -15,15 +15,15 @@ const replicateUpdateModels = action("REPLICATE_UPDATE_MODELS", {
15
15
  weights_url: z.string().describe("A URL for the model's weights").optional()
16
16
  }).describe("Request schema for updating a model's metadata."),
17
17
  output: z.object({
18
- url: z.string().describe("The URL of the model on Replicate"),
19
- name: z.string().describe("The name of the model"),
20
- owner: z.string().describe("The name of the user or organization that owns the model"),
18
+ url: z.string().describe("The URL of the model on Replicate").nullable(),
19
+ name: z.string().describe("The name of the model").nullable(),
20
+ owner: z.string().describe("The name of the user or organization that owns the model").nullable(),
21
21
  paper_url: z.string().describe("A URL for the model's paper").nullable().optional(),
22
- run_count: z.number().int().describe("The number of times the model has been run"),
22
+ run_count: z.number().int().describe("The number of times the model has been run").nullable(),
23
23
  github_url: z.string().describe("A URL for the model's source code on GitHub").nullable().optional(),
24
- visibility: z.string().describe("Whether the model is public or private"),
24
+ visibility: z.string().describe("Whether the model is public or private").nullable(),
25
25
  description: z.string().describe("A description of the model").nullable().optional(),
26
- is_official: z.boolean().describe("Boolean indicating whether the model is officially maintained by Replicate. Official models are always on, have stable API interfaces, and predictable pricing."),
26
+ is_official: z.boolean().describe("Boolean indicating whether the model is officially maintained by Replicate. Official models are always on, have stable API interfaces, and predictable pricing.").nullable(),
27
27
  license_url: z.string().describe("A URL for the model's license").nullable().optional(),
28
28
  latest_version: z.record(z.string(), z.unknown()).describe("The model's latest version").nullable().optional(),
29
29
  cover_image_url: z.string().describe("A URL for the model's cover image").nullable().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"update-models.mjs","names":[],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput: z.ZodTypeAny = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\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 model_name: z.string().describe(\"The name of the model to update\"),\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 model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\"),\n name: z.string().describe(\"The name of the model\"),\n owner: z.string().describe(\"The name of the user or organization that owns the model\"),\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\"),\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\"),\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. Official models are always on, have stable API interfaces, and predictable pricing.\"),\n license_url: z.string().describe(\"A URL for the model's license\").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 updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;AA8BA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BsD,EAAE,OAAO;EAC/D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EACjE,aAAa,E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AO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-models.mjs","names":[],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\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 model_name: z.string().describe(\"The name of the model to update\"),\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 model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = 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 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. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").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 updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;AA8BA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EACjE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC7E,CAAC,CAAC,CAAC,SAAS,iDAqBH;CACP,QArByC,EAAE,OAAO;EAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,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,iKAAiK,CAAC,CAAC,SAAS;EAC9M,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,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,kDAOF;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/webhooks-secret-get.ts
4
4
  const ReplicateWebhooksSecretGetInput = zod.z.object({}).describe("No parameters are required for getting the webhook signing secret.");
5
- const ReplicateWebhooksSecretGetOutput = zod.z.object({ key: zod.z.string().describe("The signing secret used to verify that webhook requests are coming from Replicate") }).describe("Response schema for webhooks_secret_get: The signing secret for the default webhook.");
5
+ const ReplicateWebhooksSecretGetOutput = zod.z.object({ key: zod.z.string().describe("The signing secret used to verify that webhook requests are coming from Replicate").nullable() }).describe("Response schema for webhooks_secret_get: The signing secret for the default webhook.");
6
6
  const replicateWebhooksSecretGet = require_action.action("REPLICATE_WEBHOOKS_SECRET_GET", {
7
7
  slug: "replicate-webhooks-secret-get",
8
8
  name: "Get Webhook Signing Secret",
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks-secret-get.cjs","names":["z","action"],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput: z.ZodTypeAny = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput: z.ZodTypeAny = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\"),\n}).describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;AACvJ,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,EACrE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,EAC9G,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAElG,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"webhooks-secret-get.cjs","names":["z","action"],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;AACzI,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAElG,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,11 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/webhooks-secret-get.d.ts
4
- declare const ReplicateWebhooksSecretGetInput: z.ZodTypeAny;
5
- declare const ReplicateWebhooksSecretGetOutput: z.ZodTypeAny;
6
- declare const replicateWebhooksSecretGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateWebhooksSecretGetInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const ReplicateWebhooksSecretGetOutput: z.ZodObject<{
6
+ key: z.ZodNullable<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const replicateWebhooksSecretGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
9
  //#endregion
8
10
  export { replicateWebhooksSecretGet };
9
11
  //# sourceMappingURL=webhooks-secret-get.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks-secret-get.d.cts","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAAwG;AAAA,cAC3I,gCAAA,EAAkC,CAAA,CAAE,UAEkD;AAAA,cAEtF,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"webhooks-secret-get.d.cts","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,11 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/webhooks-secret-get.d.ts
4
- declare const ReplicateWebhooksSecretGetInput: z.ZodTypeAny;
5
- declare const ReplicateWebhooksSecretGetOutput: z.ZodTypeAny;
6
- declare const replicateWebhooksSecretGet: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const ReplicateWebhooksSecretGetInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const ReplicateWebhooksSecretGetOutput: z.ZodObject<{
6
+ key: z.ZodNullable<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ declare const replicateWebhooksSecretGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
9
  //#endregion
8
10
  export { replicateWebhooksSecretGet };
9
11
  //# sourceMappingURL=webhooks-secret-get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks-secret-get.d.mts","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAAwG;AAAA,cAC3I,gCAAA,EAAkC,CAAA,CAAE,UAEkD;AAAA,cAEtF,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"webhooks-secret-get.d.mts","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -5,7 +5,7 @@ const replicateWebhooksSecretGet = action("REPLICATE_WEBHOOKS_SECRET_GET", {
5
5
  name: "Get Webhook Signing Secret",
6
6
  description: "Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.",
7
7
  input: z.object({}).describe("No parameters are required for getting the webhook signing secret."),
8
- output: z.object({ key: z.string().describe("The signing secret used to verify that webhook requests are coming from Replicate") }).describe("Response schema for webhooks_secret_get: The signing secret for the default webhook.")
8
+ output: z.object({ key: z.string().describe("The signing secret used to verify that webhook requests are coming from Replicate").nullable() }).describe("Response schema for webhooks_secret_get: The signing secret for the default webhook.")
9
9
  });
10
10
  //#endregion
11
11
  export { replicateWebhooksSecretGet };
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks-secret-get.mjs","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput: z.ZodTypeAny = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput: z.ZodTypeAny = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\"),\n}).describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;AASA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT2D,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAS1E;CACP,QAT4D,EAAE,OAAO,EACrE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,EAC9G,CAAC,CAAC,CAAC,SAAS,sFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"webhooks-secret-get.mjs","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;AASA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAS5D;CACP,QAT8C,EAAE,OAAO,EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,SAAS,sFAOF;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,13 @@ const replicateCatalog = {
7
7
  "category": "Artificial Intelligence",
8
8
  "logo": "https://logos.composio.dev/api/replicate",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "bearer_token": {
12
+ "label": "Replicate API Token",
13
+ "secret": true,
14
+ "description": "Your Replicate API token, used for authenticating API requests."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  exports.replicateCatalog = replicateCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const replicateCatalog = {\n \"slug\": \"replicate\",\n \"name\": \"Replicate\",\n \"description\": \"Replicate allows users to run AI models via a cloud API without managing infrastructure.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/replicate\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const replicateCatalog = {\n \"slug\": \"replicate\",\n \"name\": \"Replicate\",\n \"description\": \"Replicate allows users to run AI models via a cloud API without managing infrastructure.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/replicate\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"bearer_token\": {\n \"label\": \"Replicate API Token\",\n \"secret\": true,\n \"description\": \"Your Replicate API token, used for authenticating API requests.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,gBAAgB;EACd,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,14 @@ declare const replicateCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/replicate";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly bearer_token: {
13
+ readonly label: "Replicate API Token";
14
+ readonly secret: true;
15
+ readonly description: "Your Replicate API token, used for authenticating API requests.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { replicateCatalog };
@@ -8,6 +8,14 @@ declare const replicateCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/replicate";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly bearer_token: {
13
+ readonly label: "Replicate API Token";
14
+ readonly secret: true;
15
+ readonly description: "Your Replicate API token, used for authenticating API requests.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { replicateCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,13 @@ const replicateCatalog = {
7
7
  "category": "Artificial Intelligence",
8
8
  "logo": "https://logos.composio.dev/api/replicate",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "bearer_token": {
12
+ "label": "Replicate API Token",
13
+ "secret": true,
14
+ "description": "Your Replicate API token, used for authenticating API requests."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  export { replicateCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const replicateCatalog = {\n \"slug\": \"replicate\",\n \"name\": \"Replicate\",\n \"description\": \"Replicate allows users to run AI models via a cloud API without managing infrastructure.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/replicate\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const replicateCatalog = {\n \"slug\": \"replicate\",\n \"name\": \"Replicate\",\n \"description\": \"Replicate allows users to run AI models via a cloud API without managing infrastructure.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/replicate\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"bearer_token\": {\n \"label\": \"Replicate API Token\",\n \"secret\": true,\n \"description\": \"Your Replicate API token, used for authenticating API requests.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,mBAAmB;CAC9B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,gBAAgB;EACd,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/replicate",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": "^0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {