@keystrokehq/replicate 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) 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 +1 -1
  4. package/dist/actions/account-get.d.mts +1 -1
  5. package/dist/actions/account-get.mjs +1 -1
  6. package/dist/actions/account-get.mjs.map +1 -1
  7. package/dist/actions/cancel-prediction.cjs +2 -2
  8. package/dist/actions/cancel-prediction.cjs.map +1 -1
  9. package/dist/actions/cancel-prediction.d.cts +2 -2
  10. package/dist/actions/cancel-prediction.d.mts +2 -2
  11. package/dist/actions/cancel-prediction.mjs +2 -2
  12. package/dist/actions/cancel-prediction.mjs.map +1 -1
  13. package/dist/actions/collections-get.cjs +2 -2
  14. package/dist/actions/collections-get.cjs.map +1 -1
  15. package/dist/actions/collections-get.d.cts +2 -2
  16. package/dist/actions/collections-get.d.mts +2 -2
  17. package/dist/actions/collections-get.mjs +2 -2
  18. package/dist/actions/collections-get.mjs.map +1 -1
  19. package/dist/actions/collections-list.cjs +2 -2
  20. package/dist/actions/collections-list.cjs.map +1 -1
  21. package/dist/actions/collections-list.d.cts +2 -2
  22. package/dist/actions/collections-list.d.mts +2 -2
  23. package/dist/actions/collections-list.mjs +2 -2
  24. package/dist/actions/collections-list.mjs.map +1 -1
  25. package/dist/actions/create-model.cjs +1 -1
  26. package/dist/actions/create-model.cjs.map +1 -1
  27. package/dist/actions/create-model.d.cts +1 -1
  28. package/dist/actions/create-model.d.mts +1 -1
  29. package/dist/actions/create-model.mjs +1 -1
  30. package/dist/actions/create-model.mjs.map +1 -1
  31. package/dist/actions/create-prediction.cjs +2 -2
  32. package/dist/actions/create-prediction.cjs.map +1 -1
  33. package/dist/actions/create-prediction.d.cts +4 -4
  34. package/dist/actions/create-prediction.d.mts +4 -4
  35. package/dist/actions/create-prediction.mjs +2 -2
  36. package/dist/actions/create-prediction.mjs.map +1 -1
  37. package/dist/actions/deployments-create.cjs +4 -4
  38. package/dist/actions/deployments-create.cjs.map +1 -1
  39. package/dist/actions/deployments-create.d.cts +4 -4
  40. package/dist/actions/deployments-create.d.mts +4 -4
  41. package/dist/actions/deployments-create.mjs +4 -4
  42. package/dist/actions/deployments-create.mjs.map +1 -1
  43. package/dist/actions/deployments-delete.cjs +1 -1
  44. package/dist/actions/deployments-delete.cjs.map +1 -1
  45. package/dist/actions/deployments-delete.d.cts +1 -1
  46. package/dist/actions/deployments-delete.d.mts +1 -1
  47. package/dist/actions/deployments-delete.mjs +1 -1
  48. package/dist/actions/deployments-delete.mjs.map +1 -1
  49. package/dist/actions/deployments-get.cjs +4 -4
  50. package/dist/actions/deployments-get.cjs.map +1 -1
  51. package/dist/actions/deployments-get.d.cts +4 -4
  52. package/dist/actions/deployments-get.d.mts +4 -4
  53. package/dist/actions/deployments-get.mjs +4 -4
  54. package/dist/actions/deployments-get.mjs.map +1 -1
  55. package/dist/actions/deployments-list.cjs +5 -5
  56. package/dist/actions/deployments-list.cjs.map +1 -1
  57. package/dist/actions/deployments-list.d.cts +5 -5
  58. package/dist/actions/deployments-list.d.mts +5 -5
  59. package/dist/actions/deployments-list.mjs +5 -5
  60. package/dist/actions/deployments-list.mjs.map +1 -1
  61. package/dist/actions/files-create.cjs +3 -3
  62. package/dist/actions/files-create.cjs.map +1 -1
  63. package/dist/actions/files-create.d.cts +3 -3
  64. package/dist/actions/files-create.d.mts +3 -3
  65. package/dist/actions/files-create.mjs +3 -3
  66. package/dist/actions/files-create.mjs.map +1 -1
  67. package/dist/actions/files-delete.cjs +1 -1
  68. package/dist/actions/files-delete.cjs.map +1 -1
  69. package/dist/actions/files-delete.d.cts +1 -1
  70. package/dist/actions/files-delete.d.mts +1 -1
  71. package/dist/actions/files-delete.mjs +1 -1
  72. package/dist/actions/files-delete.mjs.map +1 -1
  73. package/dist/actions/files-get.cjs +3 -3
  74. package/dist/actions/files-get.cjs.map +1 -1
  75. package/dist/actions/files-get.d.cts +3 -3
  76. package/dist/actions/files-get.d.mts +3 -3
  77. package/dist/actions/files-get.mjs +3 -3
  78. package/dist/actions/files-get.mjs.map +1 -1
  79. package/dist/actions/files-list.cjs +4 -4
  80. package/dist/actions/files-list.cjs.map +1 -1
  81. package/dist/actions/files-list.d.cts +4 -4
  82. package/dist/actions/files-list.d.mts +4 -4
  83. package/dist/actions/files-list.mjs +4 -4
  84. package/dist/actions/files-list.mjs.map +1 -1
  85. package/dist/actions/get-prediction.cjs +4 -4
  86. package/dist/actions/get-prediction.cjs.map +1 -1
  87. package/dist/actions/get-prediction.d.cts +4 -4
  88. package/dist/actions/get-prediction.d.mts +4 -4
  89. package/dist/actions/get-prediction.mjs +4 -4
  90. package/dist/actions/get-prediction.mjs.map +1 -1
  91. package/dist/actions/hardware-list.cjs +2 -2
  92. package/dist/actions/hardware-list.cjs.map +1 -1
  93. package/dist/actions/hardware-list.d.cts +2 -2
  94. package/dist/actions/hardware-list.d.mts +2 -2
  95. package/dist/actions/hardware-list.mjs +2 -2
  96. package/dist/actions/hardware-list.mjs.map +1 -1
  97. package/dist/actions/models-examples-list.cjs +4 -4
  98. package/dist/actions/models-examples-list.cjs.map +1 -1
  99. package/dist/actions/models-examples-list.d.cts +4 -4
  100. package/dist/actions/models-examples-list.d.mts +4 -4
  101. package/dist/actions/models-examples-list.mjs +4 -4
  102. package/dist/actions/models-examples-list.mjs.map +1 -1
  103. package/dist/actions/models-get.cjs +6 -6
  104. package/dist/actions/models-get.cjs.map +1 -1
  105. package/dist/actions/models-get.d.cts +6 -6
  106. package/dist/actions/models-get.d.mts +6 -6
  107. package/dist/actions/models-get.mjs +6 -6
  108. package/dist/actions/models-get.mjs.map +1 -1
  109. package/dist/actions/models-list.cjs +3 -3
  110. package/dist/actions/models-list.cjs.map +1 -1
  111. package/dist/actions/models-list.d.cts +3 -3
  112. package/dist/actions/models-list.d.mts +3 -3
  113. package/dist/actions/models-list.mjs +3 -3
  114. package/dist/actions/models-list.mjs.map +1 -1
  115. package/dist/actions/models-predictions-create.cjs +2 -2
  116. package/dist/actions/models-predictions-create.cjs.map +1 -1
  117. package/dist/actions/models-predictions-create.d.cts +4 -4
  118. package/dist/actions/models-predictions-create.d.mts +4 -4
  119. package/dist/actions/models-predictions-create.mjs +2 -2
  120. package/dist/actions/models-predictions-create.mjs.map +1 -1
  121. package/dist/actions/models-readme-get.cjs +1 -1
  122. package/dist/actions/models-readme-get.cjs.map +1 -1
  123. package/dist/actions/models-readme-get.d.cts +1 -1
  124. package/dist/actions/models-readme-get.d.mts +1 -1
  125. package/dist/actions/models-readme-get.mjs +1 -1
  126. package/dist/actions/models-readme-get.mjs.map +1 -1
  127. package/dist/actions/models-versions-get.cjs +1 -1
  128. package/dist/actions/models-versions-get.cjs.map +1 -1
  129. package/dist/actions/models-versions-get.d.cts +1 -1
  130. package/dist/actions/models-versions-get.d.mts +1 -1
  131. package/dist/actions/models-versions-get.mjs +1 -1
  132. package/dist/actions/models-versions-get.mjs.map +1 -1
  133. package/dist/actions/models-versions-list.cjs +2 -2
  134. package/dist/actions/models-versions-list.cjs.map +1 -1
  135. package/dist/actions/models-versions-list.d.cts +2 -2
  136. package/dist/actions/models-versions-list.d.mts +2 -2
  137. package/dist/actions/models-versions-list.mjs +2 -2
  138. package/dist/actions/models-versions-list.mjs.map +1 -1
  139. package/dist/actions/predictions-create.cjs +2 -2
  140. package/dist/actions/predictions-create.cjs.map +1 -1
  141. package/dist/actions/predictions-create.d.cts +4 -4
  142. package/dist/actions/predictions-create.d.mts +4 -4
  143. package/dist/actions/predictions-create.mjs +2 -2
  144. package/dist/actions/predictions-create.mjs.map +1 -1
  145. package/dist/actions/predictions-list.cjs +3 -3
  146. package/dist/actions/predictions-list.cjs.map +1 -1
  147. package/dist/actions/predictions-list.d.cts +3 -3
  148. package/dist/actions/predictions-list.d.mts +3 -3
  149. package/dist/actions/predictions-list.mjs +3 -3
  150. package/dist/actions/predictions-list.mjs.map +1 -1
  151. package/dist/actions/search.cjs +9 -9
  152. package/dist/actions/search.cjs.map +1 -1
  153. package/dist/actions/search.d.cts +9 -9
  154. package/dist/actions/search.d.mts +9 -9
  155. package/dist/actions/search.mjs +9 -9
  156. package/dist/actions/search.mjs.map +1 -1
  157. package/dist/actions/trainings-cancel.cjs +2 -2
  158. package/dist/actions/trainings-cancel.cjs.map +1 -1
  159. package/dist/actions/trainings-cancel.d.cts +2 -2
  160. package/dist/actions/trainings-cancel.d.mts +2 -2
  161. package/dist/actions/trainings-cancel.mjs +2 -2
  162. package/dist/actions/trainings-cancel.mjs.map +1 -1
  163. package/dist/actions/trainings-create.cjs +3 -3
  164. package/dist/actions/trainings-create.cjs.map +1 -1
  165. package/dist/actions/trainings-create.d.cts +5 -5
  166. package/dist/actions/trainings-create.d.mts +5 -5
  167. package/dist/actions/trainings-create.mjs +3 -3
  168. package/dist/actions/trainings-create.mjs.map +1 -1
  169. package/dist/actions/trainings-list.cjs +5 -5
  170. package/dist/actions/trainings-list.cjs.map +1 -1
  171. package/dist/actions/trainings-list.d.cts +5 -5
  172. package/dist/actions/trainings-list.d.mts +5 -5
  173. package/dist/actions/trainings-list.mjs +5 -5
  174. package/dist/actions/trainings-list.mjs.map +1 -1
  175. package/dist/actions/update-models.cjs +1 -1
  176. package/dist/actions/update-models.cjs.map +1 -1
  177. package/dist/actions/update-models.d.cts +1 -1
  178. package/dist/actions/update-models.d.mts +1 -1
  179. package/dist/actions/update-models.mjs +1 -1
  180. package/dist/actions/update-models.mjs.map +1 -1
  181. package/dist/actions/webhooks-secret-get.cjs +1 -1
  182. package/dist/actions/webhooks-secret-get.cjs.map +1 -1
  183. package/dist/actions/webhooks-secret-get.d.cts +1 -1
  184. package/dist/actions/webhooks-secret-get.d.mts +1 -1
  185. package/dist/actions/webhooks-secret-get.mjs +1 -1
  186. package/dist/actions/webhooks-secret-get.mjs.map +1 -1
  187. package/package.json +1 -1
@@ -5,7 +5,7 @@ const ReplicateModelsReadmeGetInput = zod.z.object({
5
5
  model_name: zod.z.string().describe("The name of the model, e.g., 'hello-world'"),
6
6
  model_owner: zod.z.string().describe("The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).")
7
7
  }).describe("Request schema for retrieving the README content of a specific model.");
8
- const ReplicateModelsReadmeGetOutput = zod.z.object({ content: zod.z.string().describe("The README content for the specified model in Markdown format").nullable() }).describe("Response schema containing the model's README content in Markdown format.");
8
+ const ReplicateModelsReadmeGetOutput = zod.z.object({ content: zod.z.string().describe("The README content for the specified model in Markdown format").nullable() }).passthrough().describe("Response schema containing the model's README content in Markdown format.");
9
9
  const replicateModelsReadmeGet = require_action.action("REPLICATE_MODELS_README_GET", {
10
10
  slug: "replicate-models-readme-get",
11
11
  name: "Get Model README",
@@ -1 +1 @@
1
- {"version":3,"file":"models-readme-get.cjs","names":["z","action"],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsReadmeGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\").nullable(),\n}).describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AACpK,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,SAAS,2EAA2E;AAEvF,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"models-readme-get.cjs","names":["z","action"],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsReadmeGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\").nullable(),\n}).passthrough().describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AACpK,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AAErG,MAAa,2BAA2BC,eAAAA,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,7 +7,7 @@ declare const ReplicateModelsReadmeGetInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const ReplicateModelsReadmeGetOutput: z.ZodObject<{
9
9
  content: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const replicateModelsReadmeGet: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  model_name: string;
13
13
  model_owner: string;
@@ -7,7 +7,7 @@ declare const ReplicateModelsReadmeGetInput: z.ZodObject<{
7
7
  }, z.core.$strip>;
8
8
  declare const ReplicateModelsReadmeGetOutput: z.ZodObject<{
9
9
  content: z.ZodNullable<z.ZodString>;
10
- }, z.core.$strip>;
10
+ }, z.core.$loose>;
11
11
  declare const replicateModelsReadmeGet: import("@keystrokehq/action").WorkflowActionDefinition<{
12
12
  model_name: string;
13
13
  model_owner: string;
@@ -8,7 +8,7 @@ const replicateModelsReadmeGet = action("REPLICATE_MODELS_README_GET", {
8
8
  model_name: z.string().describe("The name of the model, e.g., 'hello-world'"),
9
9
  model_owner: z.string().describe("The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).")
10
10
  }).describe("Request schema for retrieving the README content of a specific model."),
11
- output: z.object({ content: z.string().describe("The README content for the specified model in Markdown format").nullable() }).describe("Response schema containing the model's README content in Markdown format.")
11
+ output: z.object({ content: z.string().describe("The README content for the specified model in Markdown format").nullable() }).passthrough().describe("Response schema containing the model's README content in Markdown format.")
12
12
  });
13
13
  //#endregion
14
14
  export { replicateModelsReadmeGet };
@@ -1 +1 @@
1
- {"version":3,"file":"models-readme-get.mjs","names":[],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsReadmeGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\").nullable(),\n}).describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":";;AAYA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ2C,EAAE,OAAO;EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CACpK,CAAC,CAAC,CAAC,SAAS,uEASH;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,SAAS,2EAOF;AACV,CAAC"}
1
+ {"version":3,"file":"models-readme-get.mjs","names":[],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsReadmeGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\").nullable(),\n}).passthrough().describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":";;AAYA,MAAa,2BAA2B,OAAO,+BAA+B;CAC5E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZ2C,EAAE,OAAO;EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CACpK,CAAC,CAAC,CAAC,SAAS,uEASH;CACP,QAT4C,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAOhB;AACV,CAAC"}
@@ -11,7 +11,7 @@ const ReplicateModelsVersionsGetOutput = zod.z.object({
11
11
  created_at: zod.z.string().describe("ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'").nullable(),
12
12
  cog_version: zod.z.string().describe("The Cog framework version used to build the model, e.g., '0.3.0'").nullable(),
13
13
  openapi_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Complete OpenAPI specification including input parameter definitions and output specification")
14
- }).describe("Response schema for models.versions.get: Detailed information about a specific model version.");
14
+ }).passthrough().describe("Response schema for models.versions.get: Detailed information about a specific model version.");
15
15
  const replicateModelsVersionsGet = require_action.action("REPLICATE_MODELS_VERSIONS_GET", {
16
16
  slug: "replicate-models-versions-get",
17
17
  name: "Get Model Version",
@@ -1 +1 @@
1
- {"version":3,"file":"models-versions-get.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AAChH,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC7H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC5J,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAE3G,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"models-versions-get.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).passthrough().describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AAChH,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC7H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC5J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+FAA+F;AAEzH,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -11,7 +11,7 @@ declare const ReplicateModelsVersionsGetOutput: z.ZodObject<{
11
11
  created_at: z.ZodNullable<z.ZodString>;
12
12
  cog_version: z.ZodNullable<z.ZodString>;
13
13
  openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
- }, z.core.$strip>;
14
+ }, z.core.$loose>;
15
15
  declare const replicateModelsVersionsGet: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  model_name: string;
17
17
  version_id: string;
@@ -11,7 +11,7 @@ declare const ReplicateModelsVersionsGetOutput: z.ZodObject<{
11
11
  created_at: z.ZodNullable<z.ZodString>;
12
12
  cog_version: z.ZodNullable<z.ZodString>;
13
13
  openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
- }, z.core.$strip>;
14
+ }, z.core.$loose>;
15
15
  declare const replicateModelsVersionsGet: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  model_name: string;
17
17
  version_id: string;
@@ -14,7 +14,7 @@ const replicateModelsVersionsGet = action("REPLICATE_MODELS_VERSIONS_GET", {
14
14
  created_at: z.string().describe("ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'").nullable(),
15
15
  cog_version: z.string().describe("The Cog framework version used to build the model, e.g., '0.3.0'").nullable(),
16
16
  openapi_schema: z.record(z.string(), z.unknown()).describe("Complete OpenAPI specification including input parameter definitions and output specification")
17
- }).describe("Response schema for models.versions.get: Detailed information about a specific model version.")
17
+ }).passthrough().describe("Response schema for models.versions.get: Detailed information about a specific model version.")
18
18
  });
19
19
  //#endregion
20
20
  export { replicateModelsVersionsGet };
@@ -1 +1 @@
1
- {"version":3,"file":"models-versions-get.mjs","names":[],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":";;AAgBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB6C,EAAE,OAAO;EACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CAChH,CAAC,CAAC,CAAC,SAAS,8DAYH;CACP,QAZ8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EAC7H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC9G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F;CAC5J,CAAC,CAAC,CAAC,SAAS,+FAOF;AACV,CAAC"}
1
+ {"version":3,"file":"models-versions-get.mjs","names":[],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).passthrough().describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":";;AAgBA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB6C,EAAE,OAAO;EACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CAChH,CAAC,CAAC,CAAC,SAAS,8DAYH;CACP,QAZ8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EAC7H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC9G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F;CAC5J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+FAOhB;AACV,CAAC"}
@@ -11,12 +11,12 @@ const ReplicateModelsVersionsList_ModelVersionSchema = zod.z.object({
11
11
  created_at: zod.z.string().describe("ISO 8601 timestamp of when the version was created").nullable(),
12
12
  cog_version: zod.z.string().describe("Version of the Cog framework used to build this model version").nullable(),
13
13
  openapi_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Complete OpenAPI schema describing the model's inputs and outputs")
14
- }).describe("Representation of a model version.");
14
+ }).passthrough().describe("Representation of a model version.");
15
15
  const ReplicateModelsVersionsListOutput = zod.z.object({
16
16
  next: zod.z.string().describe("URL to fetch the next page of results, null if no more pages").nullable().optional(),
17
17
  results: zod.z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe("Array of version objects on this page"),
18
18
  previous: zod.z.string().describe("URL to fetch the previous page of results, null if on first page").nullable().optional()
19
- }).describe("Paginated list of model versions, newest first.");
19
+ }).passthrough().describe("Paginated list of model versions, newest first.");
20
20
  const replicateModelsVersionsList = require_action.action("REPLICATE_MODELS_VERSIONS_LIST", {
21
21
  slug: "replicate-models-versions-list",
22
22
  name: "List Model Versions",
@@ -1 +1 @@
1
- {"version":3,"file":"models-versions-list.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAChD,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,uCAAuC;CACjH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAE7D,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"models-versions-list.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).passthrough().describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,uCAAuC;CACjH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -13,9 +13,9 @@ declare const ReplicateModelsVersionsListOutput: z.ZodObject<{
13
13
  created_at: z.ZodNullable<z.ZodString>;
14
14
  cog_version: z.ZodNullable<z.ZodString>;
15
15
  openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16
- }, z.core.$strip>>;
16
+ }, z.core.$loose>>;
17
17
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- }, z.core.$strip>;
18
+ }, z.core.$loose>;
19
19
  declare const replicateModelsVersionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
20
20
  model_name: string;
21
21
  model_owner: string;
@@ -13,9 +13,9 @@ declare const ReplicateModelsVersionsListOutput: z.ZodObject<{
13
13
  created_at: z.ZodNullable<z.ZodString>;
14
14
  cog_version: z.ZodNullable<z.ZodString>;
15
15
  openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16
- }, z.core.$strip>>;
16
+ }, z.core.$loose>>;
17
17
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- }, z.core.$strip>;
18
+ }, z.core.$loose>;
19
19
  declare const replicateModelsVersionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
20
20
  model_name: string;
21
21
  model_owner: string;
@@ -11,7 +11,7 @@ const ReplicateModelsVersionsList_ModelVersionSchema = z.object({
11
11
  created_at: z.string().describe("ISO 8601 timestamp of when the version was created").nullable(),
12
12
  cog_version: z.string().describe("Version of the Cog framework used to build this model version").nullable(),
13
13
  openapi_schema: z.record(z.string(), z.unknown()).describe("Complete OpenAPI schema describing the model's inputs and outputs")
14
- }).describe("Representation of a model version.");
14
+ }).passthrough().describe("Representation of a model version.");
15
15
  const replicateModelsVersionsList = action("REPLICATE_MODELS_VERSIONS_LIST", {
16
16
  slug: "replicate-models-versions-list",
17
17
  name: "List Model Versions",
@@ -21,7 +21,7 @@ const replicateModelsVersionsList = action("REPLICATE_MODELS_VERSIONS_LIST", {
21
21
  next: z.string().describe("URL to fetch the next page of results, null if no more pages").nullable().optional(),
22
22
  results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe("Array of version objects on this page"),
23
23
  previous: z.string().describe("URL to fetch the previous page of results, null if on first page").nullable().optional()
24
- }).describe("Paginated list of model versions, newest first.")
24
+ }).passthrough().describe("Paginated list of model versions, newest first.")
25
25
  });
26
26
  //#endregion
27
27
  export { replicateModelsVersionsList };
@@ -1 +1 @@
1
- {"version":3,"file":"models-versions-list.mjs","names":[],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,CAAC,CAAC,CAAC,SAAS,oCAAoC;AAOhD,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,uCAAuC;EACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,SAAS,iDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"models-versions-list.mjs","names":[],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).passthrough().describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAO9D,MAAa,8BAA8B,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,uCAAuC;EACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAOhB;AACV,CAAC"}
@@ -20,7 +20,7 @@ const ReplicatePredictionsCreate_PredictionUrlsSchema = zod.z.object({
20
20
  web: zod.z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
21
21
  cancel: zod.z.string().describe("API endpoint URL to cancel the prediction").nullable(),
22
22
  stream: zod.z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
23
- }).describe("URLs associated with a prediction.\n\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\nas required, but actual API responses from default_example objects omit this field.\nTo ensure compatibility with real API responses, 'web' is marked as optional.");
23
+ }).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.");
24
24
  const ReplicatePredictionsCreate_PredictionMetricsSchema = zod.z.object({
25
25
  total_time: zod.z.number().describe("Total time in seconds for the prediction").nullable().optional(),
26
26
  predict_time: zod.z.number().describe("CPU/GPU seconds used during model execution").nullable().optional()
@@ -40,7 +40,7 @@ const ReplicatePredictionsCreateOutput = zod.z.object({
40
40
  started_at: zod.z.string().describe("ISO 8601 timestamp when processing began").nullable().optional(),
41
41
  completed_at: zod.z.string().describe("ISO 8601 timestamp when prediction finished").nullable().optional(),
42
42
  data_removed: zod.z.boolean().describe("Whether input/output data was deleted").nullable().optional()
43
- }).describe("Response schema for creating a prediction.");
43
+ }).passthrough().describe("Response schema for creating a prediction.");
44
44
  const replicatePredictionsCreate = require_action.action("REPLICATE_PREDICTIONS_CREATE", {
45
45
  slug: "replicate-predictions-create",
46
46
  name: "Create Prediction",
@@ -1 +1 @@
1
- {"version":3,"file":"predictions-create.cjs","names":["z","action"],"sources":["../../src/actions/predictions-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicatePredictionsCreateInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model. Files should be HTTP URLs (for files >256kb or reusable) or data URLs (for files ≤256kb)\"),\n stream: z.boolean().describe(\"Deprecated. Streaming availability is now included in response urls\").optional(),\n version: z.string().describe(\"Model version identifier. Accepts formats: {owner}/{name}, {owner}/{name}:{version_id}, or {version_id} alone\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur. Body mirrors the get prediction response\").optional(),\n wait_for: z.number().int().describe(\"Seconds (1-60) to hold connection open until model finishes. Adds 'Prefer: wait=<n>' header\").optional(),\n cancel_after: z.string().describe(\"Maximum runtime before automatic cancellation. Accepts durations with optional suffixes (s/m/h). Minimum: 5 seconds. Examples: '30s', '5m', '1h30m45s'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Controls webhook triggers. Options: 'start', 'output', 'logs', 'completed'. Output/logs events throttled to once per 500ms\").optional(),\n}).describe(\"Request schema for creating a prediction by version ID.\");\nconst ReplicatePredictionsCreate_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicatePredictionsCreate_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicatePredictionsCreateOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"Captured output from prediction execution\").nullable().optional(),\n urls: ReplicatePredictionsCreate_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Model results; null after automatic data removal (~1 hour)\").nullable().optional(),\n status: z.string().describe(\"One of 'starting', 'processing', 'succeeded', 'failed', 'canceled'\").nullable(),\n metrics: ReplicatePredictionsCreate_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when prediction finished\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data was deleted\").nullable().optional(),\n}).describe(\"Response schema for creating a prediction.\");\n\nexport const replicatePredictionsCreate = action(\"REPLICATE_PREDICTIONS_CREATE\", {\n slug: \"replicate-predictions-create\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction to run a model by version ID. Use when you have a specific model version identifier and need to run inference with provided inputs. Supports synchronous waiting and webhook notifications.\",\n input: ReplicatePredictionsCreateInput,\n output: ReplicatePredictionsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+IAA+I;CACjM,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CAC5I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACpJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC5I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAA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C,CAAC,SAAS;CACrF,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC3G,SAAS,mDAAmD,SAAS,CAAC,CAAC,SAAS;CAChF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAC3E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClG,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":"predictions-create.cjs","names":["z","action"],"sources":["../../src/actions/predictions-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicatePredictionsCreateInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model. Files should be HTTP URLs (for files >256kb or reusable) or data URLs (for files ≤256kb)\"),\n stream: z.boolean().describe(\"Deprecated. Streaming availability is now included in response urls\").optional(),\n version: z.string().describe(\"Model version identifier. Accepts formats: {owner}/{name}, {owner}/{name}:{version_id}, or {version_id} alone\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur. Body mirrors the get prediction response\").optional(),\n wait_for: z.number().int().describe(\"Seconds (1-60) to hold connection open until model finishes. Adds 'Prefer: wait=<n>' header\").optional(),\n cancel_after: z.string().describe(\"Maximum runtime before automatic cancellation. Accepts durations with optional suffixes (s/m/h). Minimum: 5 seconds. Examples: '30s', '5m', '1h30m45s'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Controls webhook triggers. Options: 'start', 'output', 'logs', 'completed'. Output/logs events throttled to once per 500ms\").optional(),\n}).describe(\"Request schema for creating a prediction by version ID.\");\nconst ReplicatePredictionsCreate_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.\");\nconst ReplicatePredictionsCreate_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicatePredictionsCreateOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"Captured output from prediction execution\").nullable().optional(),\n urls: ReplicatePredictionsCreate_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Model results; null after automatic data removal (~1 hour)\").nullable().optional(),\n status: z.string().describe(\"One of 'starting', 'processing', 'succeeded', 'failed', 'canceled'\").nullable(),\n metrics: ReplicatePredictionsCreate_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when prediction finished\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data was deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a prediction.\");\n\nexport const replicatePredictionsCreate = action(\"REPLICATE_PREDICTIONS_CREATE\", {\n slug: \"replicate-predictions-create\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction to run a model by version ID. Use when you have a specific model version identifier and need to run inference with provided inputs. Supports synchronous waiting and webhook notifications.\",\n input: ReplicatePredictionsCreateInput,\n output: ReplicatePredictionsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+IAA+I;CACjM,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CAC5I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACpJ,UAAUA,IAAAA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
@@ -10,8 +10,8 @@ declare const ReplicatePredictionsCreateInput: z.ZodObject<{
10
10
  cancel_after: z.ZodOptional<z.ZodString>;
11
11
  webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
12
12
  output: "output";
13
- logs: "logs";
14
13
  start: "start";
14
+ logs: "logs";
15
15
  completed: "completed";
16
16
  }>>>;
17
17
  }, z.core.$strip>;
@@ -23,7 +23,7 @@ declare const ReplicatePredictionsCreateOutput: z.ZodObject<{
23
23
  web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  cancel: z.ZodNullable<z.ZodString>;
25
25
  stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- }, z.core.$strip>>;
26
+ }, z.core.$loose>>;
27
27
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
29
29
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -38,7 +38,7 @@ declare const ReplicatePredictionsCreateOutput: z.ZodObject<{
38
38
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
41
- }, z.core.$strip>;
41
+ }, z.core.$loose>;
42
42
  declare const replicatePredictionsCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
43
43
  input: Record<string, unknown>;
44
44
  version: string;
@@ -46,7 +46,7 @@ declare const replicatePredictionsCreate: import("@keystrokehq/action").Workflow
46
46
  webhook?: string | undefined;
47
47
  wait_for?: number | undefined;
48
48
  cancel_after?: string | undefined;
49
- webhook_events_filter?: ("output" | "logs" | "start" | "completed")[] | undefined;
49
+ webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
50
50
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
51
51
  //#endregion
52
52
  export { replicatePredictionsCreate };
@@ -10,8 +10,8 @@ declare const ReplicatePredictionsCreateInput: z.ZodObject<{
10
10
  cancel_after: z.ZodOptional<z.ZodString>;
11
11
  webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
12
12
  output: "output";
13
- logs: "logs";
14
13
  start: "start";
14
+ logs: "logs";
15
15
  completed: "completed";
16
16
  }>>>;
17
17
  }, z.core.$strip>;
@@ -23,7 +23,7 @@ declare const ReplicatePredictionsCreateOutput: z.ZodObject<{
23
23
  web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  cancel: z.ZodNullable<z.ZodString>;
25
25
  stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- }, z.core.$strip>>;
26
+ }, z.core.$loose>>;
27
27
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
28
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
29
29
  model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -38,7 +38,7 @@ declare const ReplicatePredictionsCreateOutput: z.ZodObject<{
38
38
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
40
  data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
41
- }, z.core.$strip>;
41
+ }, z.core.$loose>;
42
42
  declare const replicatePredictionsCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
43
43
  input: Record<string, unknown>;
44
44
  version: string;
@@ -46,7 +46,7 @@ declare const replicatePredictionsCreate: import("@keystrokehq/action").Workflow
46
46
  webhook?: string | undefined;
47
47
  wait_for?: number | undefined;
48
48
  cancel_after?: string | undefined;
49
- webhook_events_filter?: ("output" | "logs" | "start" | "completed")[] | undefined;
49
+ webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
50
50
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
51
51
  //#endregion
52
52
  export { replicatePredictionsCreate };
@@ -20,7 +20,7 @@ const ReplicatePredictionsCreate_PredictionUrlsSchema = z.object({
20
20
  web: z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
21
21
  cancel: z.string().describe("API endpoint URL to cancel the prediction").nullable(),
22
22
  stream: z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
23
- }).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
+ }).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.");
24
24
  const ReplicatePredictionsCreate_PredictionMetricsSchema = z.object({
25
25
  total_time: z.number().describe("Total time in seconds for the prediction").nullable().optional(),
26
26
  predict_time: z.number().describe("CPU/GPU seconds used during model execution").nullable().optional()
@@ -45,7 +45,7 @@ const replicatePredictionsCreate = action("REPLICATE_PREDICTIONS_CREATE", {
45
45
  started_at: z.string().describe("ISO 8601 timestamp when processing began").nullable().optional(),
46
46
  completed_at: z.string().describe("ISO 8601 timestamp when prediction finished").nullable().optional(),
47
47
  data_removed: z.boolean().describe("Whether input/output data was deleted").nullable().optional()
48
- }).describe("Response schema for creating a prediction.")
48
+ }).passthrough().describe("Response schema for creating a prediction.")
49
49
  });
50
50
  //#endregion
51
51
  export { replicatePredictionsCreate };
@@ -1 +1 @@
1
- {"version":3,"file":"predictions-create.mjs","names":[],"sources":["../../src/actions/predictions-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicatePredictionsCreateInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model. Files should be HTTP URLs (for files >256kb or reusable) or data URLs (for files ≤256kb)\"),\n stream: z.boolean().describe(\"Deprecated. Streaming availability is now included in response urls\").optional(),\n version: z.string().describe(\"Model version identifier. Accepts formats: {owner}/{name}, {owner}/{name}:{version_id}, or {version_id} alone\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur. Body mirrors the get prediction response\").optional(),\n wait_for: z.number().int().describe(\"Seconds (1-60) to hold connection open until model finishes. Adds 'Prefer: wait=<n>' header\").optional(),\n cancel_after: z.string().describe(\"Maximum runtime before automatic cancellation. Accepts durations with optional suffixes (s/m/h). Minimum: 5 seconds. Examples: '30s', '5m', '1h30m45s'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Controls webhook triggers. Options: 'start', 'output', 'logs', 'completed'. Output/logs events throttled to once per 500ms\").optional(),\n}).describe(\"Request schema for creating a prediction by version ID.\");\nconst ReplicatePredictionsCreate_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicatePredictionsCreate_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicatePredictionsCreateOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"Captured output from prediction execution\").nullable().optional(),\n urls: ReplicatePredictionsCreate_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Model results; null after automatic data removal (~1 hour)\").nullable().optional(),\n status: z.string().describe(\"One of 'starting', 'processing', 'succeeded', 'failed', 'canceled'\").nullable(),\n metrics: ReplicatePredictionsCreate_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when prediction finished\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data was deleted\").nullable().optional(),\n}).describe(\"Response schema for creating a prediction.\");\n\nexport const replicatePredictionsCreate = action(\"REPLICATE_PREDICTIONS_CREATE\", {\n slug: \"replicate-predictions-create\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction to run a model by version ID. Use when you have a specific model version identifier and need to run inference with provided inputs. Supports synchronous waiting and webhook notifications.\",\n input: ReplicatePredictionsCreateInput,\n output: ReplicatePredictionsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+IAA+I;CACjM,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CAC5I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACpJ,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC5I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,S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,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+BAA+B;EACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC3G,SAAS,mDAAmD,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}
1
+ {"version":3,"file":"predictions-create.mjs","names":[],"sources":["../../src/actions/predictions-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicatePredictionsCreateInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model. Files should be HTTP URLs (for files >256kb or reusable) or data URLs (for files ≤256kb)\"),\n stream: z.boolean().describe(\"Deprecated. Streaming availability is now included in response urls\").optional(),\n version: z.string().describe(\"Model version identifier. Accepts formats: {owner}/{name}, {owner}/{name}:{version_id}, or {version_id} alone\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur. Body mirrors the get prediction response\").optional(),\n wait_for: z.number().int().describe(\"Seconds (1-60) to hold connection open until model finishes. Adds 'Prefer: wait=<n>' header\").optional(),\n cancel_after: z.string().describe(\"Maximum runtime before automatic cancellation. Accepts durations with optional suffixes (s/m/h). Minimum: 5 seconds. Examples: '30s', '5m', '1h30m45s'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Controls webhook triggers. Options: 'start', 'output', 'logs', 'completed'. Output/logs events throttled to once per 500ms\").optional(),\n}).describe(\"Request schema for creating a prediction by version ID.\");\nconst ReplicatePredictionsCreate_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.\");\nconst ReplicatePredictionsCreate_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicatePredictionsCreateOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"Captured output from prediction execution\").nullable().optional(),\n urls: ReplicatePredictionsCreate_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Model results; null after automatic data removal (~1 hour)\").nullable().optional(),\n status: z.string().describe(\"One of 'starting', 'processing', 'succeeded', 'failed', 'canceled'\").nullable(),\n metrics: ReplicatePredictionsCreate_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when prediction finished\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data was deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a prediction.\");\n\nexport const replicatePredictionsCreate = action(\"REPLICATE_PREDICTIONS_CREATE\", {\n slug: \"replicate-predictions-create\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction to run a model by version ID. Use when you have a specific model version identifier and need to run inference with provided inputs. Supports synchronous waiting and webhook notifications.\",\n input: ReplicatePredictionsCreateInput,\n output: ReplicatePredictionsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+IAA+I;CACjM,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7G,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;CAC5I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4GAA4G,CAAC,CAAC,SAAS;CACpJ,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS;CAC5I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wJAAwJ,CAAC,CAAC,SAAS;CACrM,uBAAuB,EAAE,MAAM,EAAE,KAAK;EAAC;EAAS;EAAU;EAAQ;CAAW,CAAC,CAAC,CAAC,CAAC,SAAS,4HAA4H,CAAC,CAAC,SAAS;AACnO,CAAC,CAAC,CAAC,SAAS,yDAAy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AQ,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/G,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC3G,SAAS,mDAAmD,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EAC3E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
@@ -11,7 +11,7 @@ const ReplicatePredictionsList_PredictionUrlsSchema = zod.z.object({
11
11
  web: zod.z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
12
12
  cancel: zod.z.string().describe("API endpoint URL to cancel the prediction").nullable(),
13
13
  stream: zod.z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
14
- }).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.");
14
+ }).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.");
15
15
  const ReplicatePredictionsList_PredictionMetricsSchema = zod.z.object({
16
16
  total_time: zod.z.number().describe("Total time in seconds for the prediction").nullable().optional(),
17
17
  predict_time: zod.z.number().describe("CPU/GPU seconds used during model execution").nullable().optional()
@@ -38,12 +38,12 @@ const ReplicatePredictionsList_PredictionSchema = zod.z.object({
38
38
  started_at: zod.z.string().describe("ISO 8601 timestamp when processing began, null if not started").nullable().optional(),
39
39
  completed_at: zod.z.string().describe("ISO 8601 timestamp when the prediction completed, null if not completed").nullable().optional(),
40
40
  data_removed: zod.z.boolean().describe("Whether input/output data has been deleted from the system").nullable()
41
- }).describe("Representation of a prediction object.");
41
+ }).passthrough().describe("Representation of a prediction object.");
42
42
  const ReplicatePredictionsListOutput = zod.z.object({
43
43
  next: zod.z.string().describe("URL for the next page of results, null if no more pages available").nullable().optional(),
44
44
  results: zod.z.array(ReplicatePredictionsList_PredictionSchema).describe("Array of prediction objects on this page (up to 100 predictions per page)"),
45
45
  previous: zod.z.string().describe("URL for the previous page of results, null if on the first page").nullable().optional()
46
- }).describe("Paginated list of predictions.");
46
+ }).passthrough().describe("Paginated list of predictions.");
47
47
  const replicatePredictionsList = require_action.action("REPLICATE_PREDICTIONS_LIST", {
48
48
  slug: "replicate-predictions-list",
49
49
  name: "List All Predictions",
@@ -1 +1 @@
1
- {"version":3,"file":"predictions-list.cjs","names":["z","action"],"sources":["../../src/actions/predictions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicatePredictionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n created_after: z.string().describe(\"Include only predictions created at or after this date-time, in ISO 8601 format (e.g., '2024-01-01T00:00:00Z'). Useful for filtering recent predictions.\").optional(),\n created_before: z.string().describe(\"Include only predictions created before this date-time, in ISO 8601 format (e.g., '2024-12-31T23:59:59Z'). Useful for filtering older predictions.\").optional(),\n}).describe(\"Request schema for listing predictions with optional date filtering.\");\nconst ReplicatePredictionsList_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicatePredictionsList_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nconst ReplicatePredictionsList_PredictionSchema = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n urls: ReplicatePredictionsList_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input parameters provided to the model\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).nullable().optional(),\n source: z.string().describe(\"How the prediction was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the prediction: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicatePredictionsList_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"Unique ID of the model version used for this prediction\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the prediction was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the prediction completed, null if not completed\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data has been deleted from the system\").nullable(),\n}).describe(\"Representation of a prediction object.\");\nexport const ReplicatePredictionsListOutput = 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(ReplicatePredictionsList_PredictionSchema).describe(\"Array of prediction objects on this page (up to 100 predictions 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 predictions.\");\n\nexport const replicatePredictionsList = action(\"REPLICATE_PREDICTIONS_LIST\", {\n slug: \"replicate-predictions-list\",\n name: \"List All Predictions\",\n description: \"Tool to list all predictions for the authenticated user or organization with pagination. Use when you need to retrieve prediction history or filter predictions by creation date.\",\n input: ReplicatePredictionsListInput,\n output: ReplicatePredictionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACxM,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;AACrM,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,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;AACpG,CAAC,CAAC,CAAC,SAAS,kSAAkS;AAC9S,MAAM,mDAAmDA,IAAAA,EAAE,OAAO;CAChE,YA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,CAAC,SAAS;CAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjI,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC5G,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,2EAA2E;CAChJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,SAAS,gCAAgC;AAE5C,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"predictions-list.cjs","names":["z","action"],"sources":["../../src/actions/predictions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicatePredictionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n created_after: z.string().describe(\"Include only predictions created at or after this date-time, in ISO 8601 format (e.g., '2024-01-01T00:00:00Z'). Useful for filtering recent predictions.\").optional(),\n created_before: z.string().describe(\"Include only predictions created before this date-time, in ISO 8601 format (e.g., '2024-12-31T23:59:59Z'). Useful for filtering older predictions.\").optional(),\n}).describe(\"Request schema for listing predictions with optional date filtering.\");\nconst ReplicatePredictionsList_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.\");\nconst ReplicatePredictionsList_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nconst ReplicatePredictionsList_PredictionSchema = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n urls: ReplicatePredictionsList_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input parameters provided to the model\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).nullable().optional(),\n source: z.string().describe(\"How the prediction was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the prediction: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicatePredictionsList_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"Unique ID of the model version used for this prediction\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the prediction was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the prediction completed, null if not completed\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data has been deleted from the system\").nullable(),\n}).passthrough().describe(\"Representation of a prediction object.\");\nexport const ReplicatePredictionsListOutput = 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(ReplicatePredictionsList_PredictionSchema).describe(\"Array of prediction objects on this page (up to 100 predictions per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of predictions.\");\n\nexport const replicatePredictionsList = action(\"REPLICATE_PREDICTIONS_LIST\", {\n slug: \"replicate-predictions-list\",\n name: \"List All Predictions\",\n description: \"Tool to list all predictions for the authenticated user or organization with pagination. Use when you need to retrieve prediction history or filter predictions by creation date.\",\n input: ReplicatePredictionsListInput,\n output: ReplicatePredictionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACxM,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;AACrM,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,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,CAA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{
15
15
  web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  cancel: z.ZodNullable<z.ZodString>;
17
17
  stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
21
  model: z.ZodNullable<z.ZodString>;
@@ -31,9 +31,9 @@ declare const ReplicatePredictionsListOutput: z.ZodObject<{
31
31
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  data_removed: z.ZodNullable<z.ZodBoolean>;
34
- }, z.core.$strip>>;
34
+ }, z.core.$loose>>;
35
35
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
- }, z.core.$strip>;
36
+ }, z.core.$loose>;
37
37
  declare const replicatePredictionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
38
38
  cursor?: string | undefined;
39
39
  created_after?: string | undefined;
@@ -15,7 +15,7 @@ declare const ReplicatePredictionsListOutput: z.ZodObject<{
15
15
  web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
16
  cancel: z.ZodNullable<z.ZodString>;
17
17
  stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
- }, z.core.$strip>>;
18
+ }, z.core.$loose>>;
19
19
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
21
21
  model: z.ZodNullable<z.ZodString>;
@@ -31,9 +31,9 @@ declare const ReplicatePredictionsListOutput: z.ZodObject<{
31
31
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  data_removed: z.ZodNullable<z.ZodBoolean>;
34
- }, z.core.$strip>>;
34
+ }, z.core.$loose>>;
35
35
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
- }, z.core.$strip>;
36
+ }, z.core.$loose>;
37
37
  declare const replicatePredictionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
38
38
  cursor?: string | undefined;
39
39
  created_after?: string | undefined;
@@ -11,7 +11,7 @@ const ReplicatePredictionsList_PredictionUrlsSchema = z.object({
11
11
  web: z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
12
12
  cancel: z.string().describe("API endpoint URL to cancel the prediction").nullable(),
13
13
  stream: z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
14
- }).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.");
14
+ }).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.");
15
15
  const ReplicatePredictionsList_PredictionMetricsSchema = z.object({
16
16
  total_time: z.number().describe("Total time in seconds for the prediction").nullable().optional(),
17
17
  predict_time: z.number().describe("CPU/GPU seconds used during model execution").nullable().optional()
@@ -38,7 +38,7 @@ const ReplicatePredictionsList_PredictionSchema = z.object({
38
38
  started_at: z.string().describe("ISO 8601 timestamp when processing began, null if not started").nullable().optional(),
39
39
  completed_at: z.string().describe("ISO 8601 timestamp when the prediction completed, null if not completed").nullable().optional(),
40
40
  data_removed: z.boolean().describe("Whether input/output data has been deleted from the system").nullable()
41
- }).describe("Representation of a prediction object.");
41
+ }).passthrough().describe("Representation of a prediction object.");
42
42
  const replicatePredictionsList = action("REPLICATE_PREDICTIONS_LIST", {
43
43
  slug: "replicate-predictions-list",
44
44
  name: "List All Predictions",
@@ -48,7 +48,7 @@ const replicatePredictionsList = action("REPLICATE_PREDICTIONS_LIST", {
48
48
  next: z.string().describe("URL for the next page of results, null if no more pages available").nullable().optional(),
49
49
  results: z.array(ReplicatePredictionsList_PredictionSchema).describe("Array of prediction objects on this page (up to 100 predictions per page)"),
50
50
  previous: z.string().describe("URL for the previous page of results, null if on the first page").nullable().optional()
51
- }).describe("Paginated list of predictions.")
51
+ }).passthrough().describe("Paginated list of predictions.")
52
52
  });
53
53
  //#endregion
54
54
  export { replicatePredictionsList };