@keystrokehq/replicate 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (211) hide show
  1. package/dist/actions/account-get.cjs +1 -1
  2. package/dist/actions/account-get.cjs.map +1 -1
  3. package/dist/actions/account-get.d.cts +14 -2
  4. package/dist/actions/account-get.d.cts.map +1 -1
  5. package/dist/actions/account-get.d.mts +14 -2
  6. package/dist/actions/account-get.d.mts.map +1 -1
  7. package/dist/actions/account-get.mjs +1 -1
  8. package/dist/actions/account-get.mjs.map +1 -1
  9. package/dist/actions/cancel-prediction.cjs +2 -2
  10. package/dist/actions/cancel-prediction.cjs.map +1 -1
  11. package/dist/actions/cancel-prediction.d.cts +15 -3
  12. package/dist/actions/cancel-prediction.d.mts +15 -3
  13. package/dist/actions/cancel-prediction.mjs +2 -2
  14. package/dist/actions/cancel-prediction.mjs.map +1 -1
  15. package/dist/actions/collections-get.cjs +2 -2
  16. package/dist/actions/collections-get.cjs.map +1 -1
  17. package/dist/actions/collections-get.d.cts +15 -3
  18. package/dist/actions/collections-get.d.mts +15 -3
  19. package/dist/actions/collections-get.mjs +2 -2
  20. package/dist/actions/collections-get.mjs.map +1 -1
  21. package/dist/actions/collections-list.cjs +2 -2
  22. package/dist/actions/collections-list.cjs.map +1 -1
  23. package/dist/actions/collections-list.d.cts +15 -3
  24. package/dist/actions/collections-list.d.mts +15 -3
  25. package/dist/actions/collections-list.mjs +2 -2
  26. package/dist/actions/collections-list.mjs.map +1 -1
  27. package/dist/actions/create-model.cjs +1 -1
  28. package/dist/actions/create-model.cjs.map +1 -1
  29. package/dist/actions/create-model.d.cts +14 -2
  30. package/dist/actions/create-model.d.mts +14 -2
  31. package/dist/actions/create-model.mjs +1 -1
  32. package/dist/actions/create-model.mjs.map +1 -1
  33. package/dist/actions/create-prediction.cjs +2 -2
  34. package/dist/actions/create-prediction.cjs.map +1 -1
  35. package/dist/actions/create-prediction.d.cts +17 -5
  36. package/dist/actions/create-prediction.d.cts.map +1 -1
  37. package/dist/actions/create-prediction.d.mts +17 -5
  38. package/dist/actions/create-prediction.d.mts.map +1 -1
  39. package/dist/actions/create-prediction.mjs +2 -2
  40. package/dist/actions/create-prediction.mjs.map +1 -1
  41. package/dist/actions/deployments-create.cjs +4 -4
  42. package/dist/actions/deployments-create.cjs.map +1 -1
  43. package/dist/actions/deployments-create.d.cts +17 -5
  44. package/dist/actions/deployments-create.d.mts +17 -5
  45. package/dist/actions/deployments-create.mjs +4 -4
  46. package/dist/actions/deployments-create.mjs.map +1 -1
  47. package/dist/actions/deployments-delete.cjs +1 -1
  48. package/dist/actions/deployments-delete.cjs.map +1 -1
  49. package/dist/actions/deployments-delete.d.cts +14 -2
  50. package/dist/actions/deployments-delete.d.mts +14 -2
  51. package/dist/actions/deployments-delete.mjs +1 -1
  52. package/dist/actions/deployments-delete.mjs.map +1 -1
  53. package/dist/actions/deployments-get.cjs +4 -4
  54. package/dist/actions/deployments-get.cjs.map +1 -1
  55. package/dist/actions/deployments-get.d.cts +17 -5
  56. package/dist/actions/deployments-get.d.mts +17 -5
  57. package/dist/actions/deployments-get.mjs +4 -4
  58. package/dist/actions/deployments-get.mjs.map +1 -1
  59. package/dist/actions/deployments-list.cjs +5 -5
  60. package/dist/actions/deployments-list.cjs.map +1 -1
  61. package/dist/actions/deployments-list.d.cts +18 -6
  62. package/dist/actions/deployments-list.d.mts +18 -6
  63. package/dist/actions/deployments-list.mjs +5 -5
  64. package/dist/actions/deployments-list.mjs.map +1 -1
  65. package/dist/actions/files-create.cjs +3 -3
  66. package/dist/actions/files-create.cjs.map +1 -1
  67. package/dist/actions/files-create.d.cts +16 -4
  68. package/dist/actions/files-create.d.cts.map +1 -1
  69. package/dist/actions/files-create.d.mts +16 -4
  70. package/dist/actions/files-create.d.mts.map +1 -1
  71. package/dist/actions/files-create.mjs +3 -3
  72. package/dist/actions/files-create.mjs.map +1 -1
  73. package/dist/actions/files-delete.cjs +1 -1
  74. package/dist/actions/files-delete.cjs.map +1 -1
  75. package/dist/actions/files-delete.d.cts +14 -2
  76. package/dist/actions/files-delete.d.mts +14 -2
  77. package/dist/actions/files-delete.mjs +1 -1
  78. package/dist/actions/files-delete.mjs.map +1 -1
  79. package/dist/actions/files-get.cjs +3 -3
  80. package/dist/actions/files-get.cjs.map +1 -1
  81. package/dist/actions/files-get.d.cts +16 -4
  82. package/dist/actions/files-get.d.mts +16 -4
  83. package/dist/actions/files-get.mjs +3 -3
  84. package/dist/actions/files-get.mjs.map +1 -1
  85. package/dist/actions/files-list.cjs +4 -4
  86. package/dist/actions/files-list.cjs.map +1 -1
  87. package/dist/actions/files-list.d.cts +17 -5
  88. package/dist/actions/files-list.d.mts +17 -5
  89. package/dist/actions/files-list.mjs +4 -4
  90. package/dist/actions/files-list.mjs.map +1 -1
  91. package/dist/actions/get-prediction.cjs +4 -4
  92. package/dist/actions/get-prediction.cjs.map +1 -1
  93. package/dist/actions/get-prediction.d.cts +17 -5
  94. package/dist/actions/get-prediction.d.mts +17 -5
  95. package/dist/actions/get-prediction.mjs +4 -4
  96. package/dist/actions/get-prediction.mjs.map +1 -1
  97. package/dist/actions/hardware-list.cjs +2 -2
  98. package/dist/actions/hardware-list.cjs.map +1 -1
  99. package/dist/actions/hardware-list.d.cts +15 -3
  100. package/dist/actions/hardware-list.d.cts.map +1 -1
  101. package/dist/actions/hardware-list.d.mts +15 -3
  102. package/dist/actions/hardware-list.d.mts.map +1 -1
  103. package/dist/actions/hardware-list.mjs +2 -2
  104. package/dist/actions/hardware-list.mjs.map +1 -1
  105. package/dist/actions/models-examples-list.cjs +4 -4
  106. package/dist/actions/models-examples-list.cjs.map +1 -1
  107. package/dist/actions/models-examples-list.d.cts +17 -5
  108. package/dist/actions/models-examples-list.d.mts +17 -5
  109. package/dist/actions/models-examples-list.mjs +4 -4
  110. package/dist/actions/models-examples-list.mjs.map +1 -1
  111. package/dist/actions/models-get.cjs +6 -6
  112. package/dist/actions/models-get.cjs.map +1 -1
  113. package/dist/actions/models-get.d.cts +19 -7
  114. package/dist/actions/models-get.d.mts +19 -7
  115. package/dist/actions/models-get.mjs +6 -6
  116. package/dist/actions/models-get.mjs.map +1 -1
  117. package/dist/actions/models-list.cjs +3 -3
  118. package/dist/actions/models-list.cjs.map +1 -1
  119. package/dist/actions/models-list.d.cts +16 -4
  120. package/dist/actions/models-list.d.mts +16 -4
  121. package/dist/actions/models-list.mjs +3 -3
  122. package/dist/actions/models-list.mjs.map +1 -1
  123. package/dist/actions/models-predictions-create.cjs +2 -2
  124. package/dist/actions/models-predictions-create.cjs.map +1 -1
  125. package/dist/actions/models-predictions-create.d.cts +17 -5
  126. package/dist/actions/models-predictions-create.d.cts.map +1 -1
  127. package/dist/actions/models-predictions-create.d.mts +17 -5
  128. package/dist/actions/models-predictions-create.d.mts.map +1 -1
  129. package/dist/actions/models-predictions-create.mjs +2 -2
  130. package/dist/actions/models-predictions-create.mjs.map +1 -1
  131. package/dist/actions/models-readme-get.cjs +1 -1
  132. package/dist/actions/models-readme-get.cjs.map +1 -1
  133. package/dist/actions/models-readme-get.d.cts +14 -2
  134. package/dist/actions/models-readme-get.d.mts +14 -2
  135. package/dist/actions/models-readme-get.mjs +1 -1
  136. package/dist/actions/models-readme-get.mjs.map +1 -1
  137. package/dist/actions/models-versions-get.cjs +1 -1
  138. package/dist/actions/models-versions-get.cjs.map +1 -1
  139. package/dist/actions/models-versions-get.d.cts +14 -2
  140. package/dist/actions/models-versions-get.d.mts +14 -2
  141. package/dist/actions/models-versions-get.mjs +1 -1
  142. package/dist/actions/models-versions-get.mjs.map +1 -1
  143. package/dist/actions/models-versions-list.cjs +2 -2
  144. package/dist/actions/models-versions-list.cjs.map +1 -1
  145. package/dist/actions/models-versions-list.d.cts +15 -3
  146. package/dist/actions/models-versions-list.d.mts +15 -3
  147. package/dist/actions/models-versions-list.mjs +2 -2
  148. package/dist/actions/models-versions-list.mjs.map +1 -1
  149. package/dist/actions/predictions-create.cjs +2 -2
  150. package/dist/actions/predictions-create.cjs.map +1 -1
  151. package/dist/actions/predictions-create.d.cts +17 -5
  152. package/dist/actions/predictions-create.d.cts.map +1 -1
  153. package/dist/actions/predictions-create.d.mts +17 -5
  154. package/dist/actions/predictions-create.d.mts.map +1 -1
  155. package/dist/actions/predictions-create.mjs +2 -2
  156. package/dist/actions/predictions-create.mjs.map +1 -1
  157. package/dist/actions/predictions-list.cjs +3 -3
  158. package/dist/actions/predictions-list.cjs.map +1 -1
  159. package/dist/actions/predictions-list.d.cts +16 -4
  160. package/dist/actions/predictions-list.d.mts +16 -4
  161. package/dist/actions/predictions-list.mjs +3 -3
  162. package/dist/actions/predictions-list.mjs.map +1 -1
  163. package/dist/actions/search.cjs +9 -9
  164. package/dist/actions/search.cjs.map +1 -1
  165. package/dist/actions/search.d.cts +22 -10
  166. package/dist/actions/search.d.mts +22 -10
  167. package/dist/actions/search.mjs +9 -9
  168. package/dist/actions/search.mjs.map +1 -1
  169. package/dist/actions/trainings-cancel.cjs +2 -2
  170. package/dist/actions/trainings-cancel.cjs.map +1 -1
  171. package/dist/actions/trainings-cancel.d.cts +15 -3
  172. package/dist/actions/trainings-cancel.d.mts +15 -3
  173. package/dist/actions/trainings-cancel.mjs +2 -2
  174. package/dist/actions/trainings-cancel.mjs.map +1 -1
  175. package/dist/actions/trainings-create.cjs +3 -3
  176. package/dist/actions/trainings-create.cjs.map +1 -1
  177. package/dist/actions/trainings-create.d.cts +18 -6
  178. package/dist/actions/trainings-create.d.cts.map +1 -1
  179. package/dist/actions/trainings-create.d.mts +18 -6
  180. package/dist/actions/trainings-create.d.mts.map +1 -1
  181. package/dist/actions/trainings-create.mjs +3 -3
  182. package/dist/actions/trainings-create.mjs.map +1 -1
  183. package/dist/actions/trainings-list.cjs +5 -5
  184. package/dist/actions/trainings-list.cjs.map +1 -1
  185. package/dist/actions/trainings-list.d.cts +18 -6
  186. package/dist/actions/trainings-list.d.mts +18 -6
  187. package/dist/actions/trainings-list.mjs +5 -5
  188. package/dist/actions/trainings-list.mjs.map +1 -1
  189. package/dist/actions/update-models.cjs +1 -1
  190. package/dist/actions/update-models.cjs.map +1 -1
  191. package/dist/actions/update-models.d.cts +14 -2
  192. package/dist/actions/update-models.d.mts +14 -2
  193. package/dist/actions/update-models.mjs +1 -1
  194. package/dist/actions/update-models.mjs.map +1 -1
  195. package/dist/actions/webhooks-secret-get.cjs +1 -1
  196. package/dist/actions/webhooks-secret-get.cjs.map +1 -1
  197. package/dist/actions/webhooks-secret-get.d.cts +14 -2
  198. package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
  199. package/dist/actions/webhooks-secret-get.d.mts +14 -2
  200. package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
  201. package/dist/actions/webhooks-secret-get.mjs +1 -1
  202. package/dist/actions/webhooks-secret-get.mjs.map +1 -1
  203. package/dist/app.cjs +5 -2
  204. package/dist/app.cjs.map +1 -1
  205. package/dist/app.d.cts +9 -1
  206. package/dist/app.d.cts.map +1 -1
  207. package/dist/app.d.mts +9 -1
  208. package/dist/app.d.mts.map +1 -1
  209. package/dist/app.mjs +3 -1
  210. package/dist/app.mjs.map +1 -1
  211. package/package.json +1 -1
@@ -12,30 +12,42 @@ declare const ReplicateTrainingsListOutput: z.ZodObject<{
12
12
  urls: z.ZodNullable<z.ZodObject<{
13
13
  get: z.ZodNullable<z.ZodString>;
14
14
  cancel: z.ZodNullable<z.ZodString>;
15
- }, z.core.$strip>>;
15
+ }, z.core.$loose>>;
16
16
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
18
  model: z.ZodNullable<z.ZodString>;
19
19
  output: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
20
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  weights: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>>>;
22
+ }, z.core.$loose>>>;
23
23
  source: z.ZodNullable<z.ZodString>;
24
24
  status: z.ZodNullable<z.ZodString>;
25
25
  metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
26
  total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
27
  predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
- }, z.core.$strip>>>;
28
+ }, z.core.$loose>>>;
29
29
  version: z.ZodNullable<z.ZodString>;
30
30
  created_at: z.ZodNullable<z.ZodString>;
31
31
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- }, z.core.$strip>>;
33
+ }, z.core.$loose>>;
34
34
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
- }, z.core.$strip>;
35
+ }, z.core.$loose>;
36
36
  declare const replicateTrainingsList: import("@keystrokehq/action").WorkflowActionDefinition<{
37
37
  cursor?: string | undefined;
38
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
39
+ connectionId: z.ZodString;
40
+ entityId: z.ZodString;
41
+ instanceId: z.ZodString;
42
+ }, z.core.$strip>, z.ZodObject<{
43
+ bearer_token: z.ZodString;
44
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
45
+ connectionId: z.ZodString;
46
+ entityId: z.ZodString;
47
+ instanceId: z.ZodString;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ bearer_token: z.ZodString;
50
+ }, z.core.$strip>>]>;
39
51
  //#endregion
40
52
  export { replicateTrainingsList };
41
53
  //# sourceMappingURL=trainings-list.d.cts.map
@@ -12,30 +12,42 @@ declare const ReplicateTrainingsListOutput: z.ZodObject<{
12
12
  urls: z.ZodNullable<z.ZodObject<{
13
13
  get: z.ZodNullable<z.ZodString>;
14
14
  cancel: z.ZodNullable<z.ZodString>;
15
- }, z.core.$strip>>;
15
+ }, z.core.$loose>>;
16
16
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
17
  input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
18
18
  model: z.ZodNullable<z.ZodString>;
19
19
  output: z.ZodOptional<z.ZodNullable<z.ZodObject<{
20
20
  version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
21
  weights: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- }, z.core.$strip>>>;
22
+ }, z.core.$loose>>>;
23
23
  source: z.ZodNullable<z.ZodString>;
24
24
  status: z.ZodNullable<z.ZodString>;
25
25
  metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
26
26
  total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
27
27
  predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
28
- }, z.core.$strip>>>;
28
+ }, z.core.$loose>>>;
29
29
  version: z.ZodNullable<z.ZodString>;
30
30
  created_at: z.ZodNullable<z.ZodString>;
31
31
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- }, z.core.$strip>>;
33
+ }, z.core.$loose>>;
34
34
  previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
- }, z.core.$strip>;
35
+ }, z.core.$loose>;
36
36
  declare const replicateTrainingsList: import("@keystrokehq/action").WorkflowActionDefinition<{
37
37
  cursor?: string | undefined;
38
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
39
+ connectionId: z.ZodString;
40
+ entityId: z.ZodString;
41
+ instanceId: z.ZodString;
42
+ }, z.core.$strip>, z.ZodObject<{
43
+ bearer_token: z.ZodString;
44
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
45
+ connectionId: z.ZodString;
46
+ entityId: z.ZodString;
47
+ instanceId: z.ZodString;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ bearer_token: z.ZodString;
50
+ }, z.core.$strip>>]>;
39
51
  //#endregion
40
52
  export { replicateTrainingsList };
41
53
  //# sourceMappingURL=trainings-list.d.mts.map
@@ -5,15 +5,15 @@ const ReplicateTrainingsListInput = z.object({ cursor: z.string().describe("Curs
5
5
  const ReplicateTrainingsList_TrainingUrlsSchema = z.object({
6
6
  get: z.string().describe("URL to retrieve the training's current status and results").nullable(),
7
7
  cancel: z.string().describe("URL to cancel the in-progress training").nullable()
8
- }).describe("Convenience URLs for interacting with a training.");
8
+ }).passthrough().describe("Convenience URLs for interacting with a training.");
9
9
  const ReplicateTrainingsList_TrainingOutputSchema = z.object({
10
10
  version: z.string().describe("64-character version ID of the trained model").nullable().optional(),
11
11
  weights: z.string().describe("URL to the trained model weights").nullable().optional()
12
- }).describe("Training output containing the resulting model version and weights.");
12
+ }).passthrough().describe("Training output containing the resulting model version and weights.");
13
13
  const ReplicateTrainingsList_TrainingMetricsSchema = z.object({
14
14
  total_time: z.number().describe("Total time from creation to completion in seconds").nullable().optional(),
15
15
  predict_time: z.number().describe("Time taken for prediction execution in seconds").nullable().optional()
16
- }).describe("Performance metrics for a training job.");
16
+ }).passthrough().describe("Performance metrics for a training job.");
17
17
  const ReplicateTrainingsList_TrainingSchema = z.object({
18
18
  id: z.string().describe("Unique identifier for this training job").nullable(),
19
19
  logs: z.string().describe("Training log output").nullable().optional(),
@@ -29,7 +29,7 @@ const ReplicateTrainingsList_TrainingSchema = z.object({
29
29
  created_at: z.string().describe("ISO 8601 timestamp when the training was created").nullable(),
30
30
  started_at: z.string().describe("ISO 8601 timestamp when training began, null if not started").nullable().optional(),
31
31
  completed_at: z.string().describe("ISO 8601 timestamp when the training completed, null if not completed").nullable().optional()
32
- }).describe("Representation of a training job object.");
32
+ }).passthrough().describe("Representation of a training job object.");
33
33
  const replicateTrainingsList = action("REPLICATE_TRAININGS_LIST", {
34
34
  slug: "replicate-trainings-list",
35
35
  name: "List Training Jobs",
@@ -39,7 +39,7 @@ const replicateTrainingsList = action("REPLICATE_TRAININGS_LIST", {
39
39
  next: z.string().describe("URL for the next page of results, null if no more pages available").nullable().optional(),
40
40
  results: z.array(ReplicateTrainingsList_TrainingSchema).describe("Array of training objects on this page (up to 100 trainings per page)"),
41
41
  previous: z.string().describe("URL for the previous page of results, null if on the first page").nullable().optional()
42
- }).describe("Paginated list of training jobs.")
42
+ }).passthrough().describe("Paginated list of training jobs.")
43
43
  });
44
44
  //#endregion
45
45
  export { replicateTrainingsList };
@@ -1 +1 @@
1
- {"version":3,"file":"trainings-list.mjs","names":[],"sources":["../../src/actions/trainings-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\").nullable(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema = z.object({\n id: z.string().describe(\"Unique identifier for this training job\").nullable(),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC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,QAAQ,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACrF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACtI,SAAS,6CAA6C,SAAS,CAAC,CAAC,SAAS;CAC1E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACrG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CAC7F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAOtD,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uEAAuE;EACxI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,SAAS,kCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"trainings-list.mjs","names":[],"sources":["../../src/actions/trainings-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\").nullable(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).passthrough().describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).passthrough().describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).passthrough().describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema = z.object({\n id: z.string().describe(\"Unique identifier for this training job\").nullable(),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).passthrough().describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,8CAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAC/F,MAAM,+CAA+C,EAAE,OAAO;CAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,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EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uEAAuE;EACxI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAOhB;AACV,CAAC"}
@@ -25,7 +25,7 @@ const ReplicateUpdateModelsOutput = zod.z.object({
25
25
  latest_version: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The model's latest version").nullable().optional(),
26
26
  cover_image_url: zod.z.string().describe("A URL for the model's cover image").nullable().optional(),
27
27
  default_example: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The model's default example prediction").nullable().optional()
28
- }).describe("Response schema for updating a model's metadata.");
28
+ }).passthrough().describe("Response schema for updating a model's metadata.");
29
29
  const replicateUpdateModels = require_action.action("REPLICATE_UPDATE_MODELS", {
30
30
  slug: "replicate-update-models",
31
31
  name: "Update Model Metadata",
@@ -1 +1 @@
1
- {"version":3,"file":"update-models.cjs","names":["z","action"],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n model_name: z.string().describe(\"The name of the model to update\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).describe(\"Response schema for updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACjE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+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,SAAS,CAAC,CAAC,SAAS;CAC7G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"update-models.cjs","names":["z","action"],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n model_name: z.string().describe(\"The name of the model to update\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACjE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;AAC7E,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,I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AS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD;AAE5E,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -25,7 +25,7 @@ declare const ReplicateUpdateModelsOutput: z.ZodObject<{
25
25
  latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
26
  cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
28
- }, z.core.$strip>;
28
+ }, z.core.$loose>;
29
29
  declare const replicateUpdateModels: import("@keystrokehq/action").WorkflowActionDefinition<{
30
30
  model_name: string;
31
31
  model_owner: string;
@@ -35,7 +35,19 @@ declare const replicateUpdateModels: import("@keystrokehq/action").WorkflowActio
35
35
  description?: string | undefined;
36
36
  license_url?: string | undefined;
37
37
  weights_url?: string | undefined;
38
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
39
+ connectionId: z.ZodString;
40
+ entityId: z.ZodString;
41
+ instanceId: z.ZodString;
42
+ }, z.core.$strip>, z.ZodObject<{
43
+ bearer_token: z.ZodString;
44
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
45
+ connectionId: z.ZodString;
46
+ entityId: z.ZodString;
47
+ instanceId: z.ZodString;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ bearer_token: z.ZodString;
50
+ }, z.core.$strip>>]>;
39
51
  //#endregion
40
52
  export { replicateUpdateModels };
41
53
  //# sourceMappingURL=update-models.d.cts.map
@@ -25,7 +25,7 @@ declare const ReplicateUpdateModelsOutput: z.ZodObject<{
25
25
  latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
26
26
  cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
27
  default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
28
- }, z.core.$strip>;
28
+ }, z.core.$loose>;
29
29
  declare const replicateUpdateModels: import("@keystrokehq/action").WorkflowActionDefinition<{
30
30
  model_name: string;
31
31
  model_owner: string;
@@ -35,7 +35,19 @@ declare const replicateUpdateModels: import("@keystrokehq/action").WorkflowActio
35
35
  description?: string | undefined;
36
36
  license_url?: string | undefined;
37
37
  weights_url?: string | undefined;
38
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
38
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
39
+ connectionId: z.ZodString;
40
+ entityId: z.ZodString;
41
+ instanceId: z.ZodString;
42
+ }, z.core.$strip>, z.ZodObject<{
43
+ bearer_token: z.ZodString;
44
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
45
+ connectionId: z.ZodString;
46
+ entityId: z.ZodString;
47
+ instanceId: z.ZodString;
48
+ }, z.core.$strip>, z.ZodObject<{
49
+ bearer_token: z.ZodString;
50
+ }, z.core.$strip>>]>;
39
51
  //#endregion
40
52
  export { replicateUpdateModels };
41
53
  //# sourceMappingURL=update-models.d.mts.map
@@ -28,7 +28,7 @@ const replicateUpdateModels = action("REPLICATE_UPDATE_MODELS", {
28
28
  latest_version: z.record(z.string(), z.unknown()).describe("The model's latest version").nullable().optional(),
29
29
  cover_image_url: z.string().describe("A URL for the model's cover image").nullable().optional(),
30
30
  default_example: z.record(z.string(), z.unknown()).describe("The model's default example prediction").nullable().optional()
31
- }).describe("Response schema for updating a model's metadata.")
31
+ }).passthrough().describe("Response schema for updating a model's metadata.")
32
32
  });
33
33
  //#endregion
34
34
  export { replicateUpdateModels };
@@ -1 +1 @@
1
- {"version":3,"file":"update-models.mjs","names":[],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n model_name: z.string().describe(\"The name of the model to update\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).describe(\"Response schema for updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;AA8BA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EACjE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC7E,CAAC,CAAC,CAAC,SAAS,iDAqBH;CACP,QArByC,EAAE,OAAO;EAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;EAC9M,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"update-models.mjs","names":[],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n model_name: z.string().describe(\"The name of the model to update\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;AA8BA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CA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S,CAAC,CAAC,SAAS;EAC7G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAOhB;AACV,CAAC"}
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/webhooks-secret-get.ts
4
4
  const ReplicateWebhooksSecretGetInput = zod.z.object({}).describe("No parameters are required for getting the webhook signing secret.");
5
- const ReplicateWebhooksSecretGetOutput = zod.z.object({ key: zod.z.string().describe("The signing secret used to verify that webhook requests are coming from Replicate").nullable() }).describe("Response schema for webhooks_secret_get: The signing secret for the default webhook.");
5
+ const ReplicateWebhooksSecretGetOutput = zod.z.object({ key: zod.z.string().describe("The signing secret used to verify that webhook requests are coming from Replicate").nullable() }).passthrough().describe("Response schema for webhooks_secret_get: The signing secret for the default webhook.");
6
6
  const replicateWebhooksSecretGet = require_action.action("REPLICATE_WEBHOOKS_SECRET_GET", {
7
7
  slug: "replicate-webhooks-secret-get",
8
8
  name: "Get Webhook Signing Secret",
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks-secret-get.cjs","names":["z","action"],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;AACzI,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,SAAS,sFAAsF;AAElG,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"webhooks-secret-get.cjs","names":["z","action"],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).passthrough().describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;AACzI,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -4,8 +4,20 @@ import { z } from "zod";
4
4
  declare const ReplicateWebhooksSecretGetInput: z.ZodObject<{}, z.core.$strip>;
5
5
  declare const ReplicateWebhooksSecretGetOutput: z.ZodObject<{
6
6
  key: z.ZodNullable<z.ZodString>;
7
- }, z.core.$strip>;
8
- declare const replicateWebhooksSecretGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ }, z.core.$loose>;
8
+ declare const replicateWebhooksSecretGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
9
+ connectionId: z.ZodString;
10
+ entityId: z.ZodString;
11
+ instanceId: z.ZodString;
12
+ }, z.core.$strip>, z.ZodObject<{
13
+ bearer_token: z.ZodString;
14
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
15
+ connectionId: z.ZodString;
16
+ entityId: z.ZodString;
17
+ instanceId: z.ZodString;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ bearer_token: z.ZodString;
20
+ }, z.core.$strip>>]>;
9
21
  //#endregion
10
22
  export { replicateWebhooksSecretGet };
11
23
  //# sourceMappingURL=webhooks-secret-get.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks-secret-get.d.cts","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"webhooks-secret-get.d.cts","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,cAAA,CAAA,CAAA,SAAA"}
@@ -4,8 +4,20 @@ import { z } from "zod";
4
4
  declare const ReplicateWebhooksSecretGetInput: z.ZodObject<{}, z.core.$strip>;
5
5
  declare const ReplicateWebhooksSecretGetOutput: z.ZodObject<{
6
6
  key: z.ZodNullable<z.ZodString>;
7
- }, z.core.$strip>;
8
- declare const replicateWebhooksSecretGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ }, z.core.$loose>;
8
+ declare const replicateWebhooksSecretGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
9
+ connectionId: z.ZodString;
10
+ entityId: z.ZodString;
11
+ instanceId: z.ZodString;
12
+ }, z.core.$strip>, z.ZodObject<{
13
+ bearer_token: z.ZodString;
14
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
15
+ connectionId: z.ZodString;
16
+ entityId: z.ZodString;
17
+ instanceId: z.ZodString;
18
+ }, z.core.$strip>, z.ZodObject<{
19
+ bearer_token: z.ZodString;
20
+ }, z.core.$strip>>]>;
9
21
  //#endregion
10
22
  export { replicateWebhooksSecretGet };
11
23
  //# sourceMappingURL=webhooks-secret-get.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks-secret-get.d.mts","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"webhooks-secret-get.d.mts","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;cAIhC,0BAAA,gCAA0B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,cAAA,CAAA,CAAA,SAAA"}
@@ -5,7 +5,7 @@ const replicateWebhooksSecretGet = action("REPLICATE_WEBHOOKS_SECRET_GET", {
5
5
  name: "Get Webhook Signing Secret",
6
6
  description: "Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.",
7
7
  input: z.object({}).describe("No parameters are required for getting the webhook signing secret."),
8
- output: z.object({ key: z.string().describe("The signing secret used to verify that webhook requests are coming from Replicate").nullable() }).describe("Response schema for webhooks_secret_get: The signing secret for the default webhook.")
8
+ output: z.object({ key: z.string().describe("The signing secret used to verify that webhook requests are coming from Replicate").nullable() }).passthrough().describe("Response schema for webhooks_secret_get: The signing secret for the default webhook.")
9
9
  });
10
10
  //#endregion
11
11
  export { replicateWebhooksSecretGet };
@@ -1 +1 @@
1
- {"version":3,"file":"webhooks-secret-get.mjs","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;AASA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAS5D;CACP,QAT8C,EAAE,OAAO,EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,SAAS,sFAOF;AACV,CAAC"}
1
+ {"version":3,"file":"webhooks-secret-get.mjs","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).passthrough().describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;AASA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAS5D;CACP,QAT8C,EAAE,OAAO,EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAOhB;AACV,CAAC"}
package/dist/app.cjs CHANGED
@@ -1,7 +1,10 @@
1
+ let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
2
+ let zod = require("zod");
1
3
  //#region src/app.ts
2
- const replicate = (0, require("@keystrokehq/keystroke/app").defineApp)({
4
+ const replicate = (0, _keystrokehq_keystroke_app.defineApp)({
3
5
  slug: "replicate",
4
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential: { bearer_token: zod.z.string() }
5
8
  });
6
9
  //#endregion
7
10
  exports.replicate = replicate;
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const replicate = defineApp({\n slug: \"replicate\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,aAAA,uCAAA,CAAA,CAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const replicate = defineApp({\n slug: \"replicate\",\n auth: \"keystroke\",\n credential: {\n bearer_token: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,aAAA,GAAA,2BAAA,UAAA,CAAsB;CACjC,MAAM;CACN,MAAM;CACN,YAAY,EACV,cAAcA,IAAAA,EAAE,OAAO,EACzB;AACF,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,13 @@
1
+ import { z } from "zod";
2
+
1
3
  //#region src/app.d.ts
2
- declare const replicate: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
4
+ declare const replicate: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
5
+ connectionId: z.ZodString;
6
+ entityId: z.ZodString;
7
+ instanceId: z.ZodString;
8
+ }, z.core.$strip>, z.ZodObject<{
9
+ bearer_token: z.ZodString;
10
+ }, z.core.$strip>>>;
3
11
  //#endregion
4
12
  export { replicate };
5
13
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,SAAA,6BAAS,GAAA,+BAAA,UAAA,cAAA,CAAA,CAAA,SAAA"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,13 @@
1
+ import { z } from "zod";
2
+
1
3
  //#region src/app.d.ts
2
- declare const replicate: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
4
+ declare const replicate: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
5
+ connectionId: z.ZodString;
6
+ entityId: z.ZodString;
7
+ instanceId: z.ZodString;
8
+ }, z.core.$strip>, z.ZodObject<{
9
+ bearer_token: z.ZodString;
10
+ }, z.core.$strip>>>;
3
11
  //#endregion
4
12
  export { replicate };
5
13
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,SAAA,6BAAS,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,SAAA,6BAAS,GAAA,+BAAA,UAAA,cAAA,CAAA,CAAA,SAAA"}
package/dist/app.mjs CHANGED
@@ -1,8 +1,10 @@
1
1
  import { defineApp } from "@keystrokehq/keystroke/app";
2
+ import { z } from "zod";
2
3
  //#region src/app.ts
3
4
  const replicate = defineApp({
4
5
  slug: "replicate",
5
- auth: "keystroke"
6
+ auth: "keystroke",
7
+ credential: { bearer_token: z.string() }
6
8
  });
7
9
  //#endregion
8
10
  export { replicate };
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const replicate = defineApp({\n slug: \"replicate\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,YAAY,UAAU;CACjC,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const replicate = defineApp({\n slug: \"replicate\",\n auth: \"keystroke\",\n credential: {\n bearer_token: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,YAAY,UAAU;CACjC,MAAM;CACN,MAAM;CACN,YAAY,EACV,cAAc,EAAE,OAAO,EACzB;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/replicate",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"