@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
@@ -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,8 +46,20 @@ 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;
50
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
49
+ webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
50
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
51
+ connectionId: z.ZodString;
52
+ entityId: z.ZodString;
53
+ instanceId: z.ZodString;
54
+ }, z.core.$strip>, z.ZodObject<{
55
+ bearer_token: z.ZodString;
56
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
57
+ connectionId: z.ZodString;
58
+ entityId: z.ZodString;
59
+ instanceId: z.ZodString;
60
+ }, z.core.$strip>, z.ZodObject<{
61
+ bearer_token: z.ZodString;
62
+ }, z.core.$strip>>]>;
51
63
  //#endregion
52
64
  export { replicatePredictionsCreate };
53
65
  //# sourceMappingURL=predictions-create.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"predictions-create.d.mts","names":[],"sources":["../../src/actions/predictions-create.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAmB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiBhC,0BAAA,gCAA0B,wBAAA;SAMrC,MAAA"}
1
+ {"version":3,"file":"predictions-create.d.mts","names":[],"sources":["../../src/actions/predictions-create.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAmB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiBhC,0BAAA,gCAA0B,wBAAA"}
@@ -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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":["../../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,SAA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MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3F,MAAM,gDAAgD,SAAS;EAC/D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,OAAO,EAAE,OAAO,EAAE,OAAO,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,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,gD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AA8B;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,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,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,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAE1D,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -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,14 +31,26 @@ 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;
40
40
  created_before?: string | undefined;
41
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
41
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
42
+ connectionId: z.ZodString;
43
+ entityId: z.ZodString;
44
+ instanceId: z.ZodString;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ bearer_token: z.ZodString;
47
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
48
+ connectionId: z.ZodString;
49
+ entityId: z.ZodString;
50
+ instanceId: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ bearer_token: z.ZodString;
53
+ }, z.core.$strip>>]>;
42
54
  //#endregion
43
55
  export { replicatePredictionsList };
44
56
  //# sourceMappingURL=predictions-list.d.cts.map
@@ -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,14 +31,26 @@ 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;
40
40
  created_before?: string | undefined;
41
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
41
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
42
+ connectionId: z.ZodString;
43
+ entityId: z.ZodString;
44
+ instanceId: z.ZodString;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ bearer_token: z.ZodString;
47
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
48
+ connectionId: z.ZodString;
49
+ entityId: z.ZodString;
50
+ instanceId: z.ZodString;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ bearer_token: z.ZodString;
53
+ }, z.core.$strip>>]>;
42
54
  //#endregion
43
55
  export { replicatePredictionsList };
44
56
  //# sourceMappingURL=predictions-list.d.mts.map
@@ -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 };
@@ -1 +1 @@
1
- {"version":3,"file":"predictions-list.mjs","names":[],"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,gCAAgC,EAAE,OAAO;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACxM,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;AACrM,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gDAAgD,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,kSAAkS;AAC9S,MAAM,mDAAmD,EAAE,OAAO;CAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,4CAA4C,E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CAAC,SAAS,wCAAwC;AAOpD,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,2EAA2E;EAChJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,SAAS,gCAOF;AACV,CAAC"}
1
+ {"version":3,"file":"predictions-list.mjs","names":[],"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,gCAAgC,EAAE,OAAO;CACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACxM,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,oJAAoJ,CAAC,CAAC,SAAS;AACrM,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gDAAgD,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kSAAkS;AAC5T,MAAM,mDAAmD,EAAE,OAAO;CAChE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,4CAA4C,EAAE,OAAO;CACzD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAM,8CAA8C,SAAS;CAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,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EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,2EAA2E;EAChJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAOhB;AACV,CAAC"}
@@ -8,19 +8,19 @@ const ReplicateSearchInput = zod.z.object({
8
8
  const ReplicateSearch_PageResultSchema = zod.z.object({
9
9
  url: zod.z.string().describe("URL of the documentation page").nullable().optional(),
10
10
  title: zod.z.string().describe("Title of the documentation page").nullable().optional()
11
- }).describe("Representation of a documentation page in search results.");
11
+ }).passthrough().describe("Representation of a documentation page in search results.");
12
12
  const ReplicateSearch_ModelVersionSchema = zod.z.object({
13
13
  id: zod.z.string().describe("Unique identifier for this version").nullable(),
14
14
  created_at: zod.z.string().describe("ISO 8601 timestamp of when this version was created").nullable(),
15
15
  cog_version: zod.z.string().describe("Version of the Cog framework used to build this model").nullable(),
16
16
  openapi_schema: zod.z.record(zod.z.string(), zod.z.unknown()).describe("OpenAPI schema defining the model's inputs and outputs. Structure follows OpenAPI specification and varies by model.")
17
- }).describe("Representation of a model version.");
17
+ }).passthrough().describe("Representation of a model version.");
18
18
  const ReplicateSearch_PredictionUrlsSchema = zod.z.object({
19
19
  get: zod.z.string().describe("API endpoint URL to get the prediction details").nullable(),
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 ReplicateSearch_PredictionSourceSchema = zod.z.enum(["web", "api"]).describe("Source of a prediction.");
25
25
  const ReplicateSearch_PredictionStatusSchema = zod.z.enum([
26
26
  "starting",
@@ -50,7 +50,7 @@ const ReplicateSearch_PredictionExampleSchema = zod.z.object({
50
50
  started_at: zod.z.string().describe("ISO 8601 timestamp when the model began processing").nullable().optional(),
51
51
  completed_at: zod.z.string().describe("ISO 8601 timestamp when the prediction completed").nullable().optional(),
52
52
  data_removed: zod.z.boolean().describe("Whether the prediction input/output data has been removed (auto-deleted after 1 hour)").nullable().optional()
53
- }).describe("Prediction object used as a model's default example.");
53
+ }).passthrough().describe("Prediction object used as a model's default example.");
54
54
  const ReplicateSearch_ModelResultSchema = zod.z.object({
55
55
  url: zod.z.string().describe("URL of the model").nullable(),
56
56
  name: zod.z.string().describe("Name of the model").nullable(),
@@ -64,27 +64,27 @@ const ReplicateSearch_ModelResultSchema = zod.z.object({
64
64
  latest_version: ReplicateSearch_ModelVersionSchema.nullable().optional(),
65
65
  cover_image_url: zod.z.string().describe("Cover image URL").nullable().optional(),
66
66
  default_example: ReplicateSearch_PredictionExampleSchema.nullable().optional()
67
- }).describe("Representation of a model in search results.");
67
+ }).passthrough().describe("Representation of a model in search results.");
68
68
  const ReplicateSearch_SearchMetadataSchema = zod.z.object({
69
69
  tags: zod.z.array(zod.z.string()).describe("Model categorization tags").nullable().optional(),
70
70
  score: zod.z.number().describe("Relevance ranking score for the search query").nullable().optional(),
71
71
  generated_description: zod.z.string().describe("Extended AI-generated description of the model").nullable().optional()
72
- }).describe("Search-specific metadata for results.");
72
+ }).passthrough().describe("Search-specific metadata for results.");
73
73
  const ReplicateSearch_ModelWithMetadataSchema = zod.z.object({
74
74
  model: ReplicateSearch_ModelResultSchema.nullable(),
75
75
  metadata: ReplicateSearch_SearchMetadataSchema.nullable()
76
- }).describe("Model with search metadata.");
76
+ }).passthrough().describe("Model with search metadata.");
77
77
  const ReplicateSearch_CollectionResultSchema = zod.z.object({
78
78
  name: zod.z.string().describe("Name of the collection").nullable(),
79
79
  slug: zod.z.string().describe("URL-friendly identifier for the collection").nullable(),
80
80
  description: zod.z.string().describe("Description of the collection").nullable()
81
- }).describe("Representation of a collection in search results.");
81
+ }).passthrough().describe("Representation of a collection in search results.");
82
82
  const ReplicateSearchOutput = zod.z.object({
83
83
  pages: zod.z.array(ReplicateSearch_PageResultSchema).describe("Array of matching documentation pages"),
84
84
  query: zod.z.string().describe("The search query that was executed").nullable(),
85
85
  models: zod.z.array(ReplicateSearch_ModelWithMetadataSchema).describe("Array of matching models with search metadata"),
86
86
  collections: zod.z.array(ReplicateSearch_CollectionResultSchema).describe("Array of matching collections")
87
- }).describe("Search results from the Replicate search API.");
87
+ }).passthrough().describe("Search results from the Replicate search API.");
88
88
  const replicateSearch = require_action.action("REPLICATE_SEARCH", {
89
89
  slug: "replicate-search",
90
90
  name: "Search Models and Collections",
@@ -1 +1 @@
1
- {"version":3,"file":"search.cjs","names":["z","action"],"sources":["../../src/actions/search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateSearchInput = z.object({\n limit: z.number().int().describe(\"Maximum number of model results to return. Must be between 1 and 50. Defaults to 20 if not specified.\").optional(),\n query: z.string().describe(\"The search query string to execute. Can search across models, collections, and documentation.\"),\n}).describe(\"Request schema for searching models, collections, and docs.\");\nconst ReplicateSearch_PageResultSchema = z.object({\n url: z.string().describe(\"URL of the documentation page\").nullable().optional(),\n title: z.string().describe(\"Title of the documentation page\").nullable().optional(),\n}).describe(\"Representation of a documentation page in search results.\");\nconst ReplicateSearch_ModelVersionSchema = z.object({\n id: z.string().describe(\"Unique identifier for this version\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when this version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"OpenAPI schema defining the model's inputs and outputs. Structure follows OpenAPI specification and varies by model.\"),\n}).describe(\"Representation of a model version.\");\nconst ReplicateSearch_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 ReplicateSearch_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateSearch_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateSearch_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 ReplicateSearch_PredictionExampleSchema = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"Logs generated during prediction execution\").nullable().optional(),\n urls: ReplicateSearch_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input parameters used for the prediction. Structure varies by model.\").nullable().optional(),\n model: z.string().describe(\"The model identifier (format: owner/name)\").nullable(),\n output: z.unknown().describe(\"Model output. Can be any JSON-serializable value depending on the model (string, number, array, object, etc.).\").nullable().optional(),\n source: ReplicateSearch_PredictionSourceSchema.nullable().optional(),\n status: ReplicateSearch_PredictionStatusSchema.nullable(),\n metrics: ReplicateSearch_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The 64-character model version identifier\").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 the model began processing\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the prediction completed\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction input/output data has been removed (auto-deleted after 1 hour)\").nullable().optional(),\n}).describe(\"Prediction object used as a model's default example.\");\nconst ReplicateSearch_ModelResultSchema = z.object({\n url: z.string().describe(\"URL of the model\").nullable(),\n name: z.string().describe(\"Name of the model\").nullable(),\n owner: z.string().describe(\"Username or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"Research paper URL, if available\").nullable().optional(),\n run_count: z.number().int().describe(\"Total number of prediction runs for this model\").nullable(),\n github_url: z.string().describe(\"GitHub repository URL, if available\").nullable().optional(),\n visibility: z.string().describe(\"Visibility setting - 'public' or 'private'\").nullable(),\n description: z.string().describe(\"Description of the model\").nullable(),\n license_url: z.string().describe(\"License document URL, if available\").nullable().optional(),\n latest_version: ReplicateSearch_ModelVersionSchema.nullable().optional(),\n cover_image_url: z.string().describe(\"Cover image URL\").nullable().optional(),\n default_example: ReplicateSearch_PredictionExampleSchema.nullable().optional(),\n}).describe(\"Representation of a model in search results.\");\nconst ReplicateSearch_SearchMetadataSchema = z.object({\n tags: z.array(z.string()).describe(\"Model categorization tags\").nullable().optional(),\n score: z.number().describe(\"Relevance ranking score for the search query\").nullable().optional(),\n generated_description: z.string().describe(\"Extended AI-generated description of the model\").nullable().optional(),\n}).describe(\"Search-specific metadata for results.\");\nconst ReplicateSearch_ModelWithMetadataSchema = z.object({\n model: ReplicateSearch_ModelResultSchema.nullable(),\n metadata: ReplicateSearch_SearchMetadataSchema.nullable(),\n}).describe(\"Model with search metadata.\");\nconst ReplicateSearch_CollectionResultSchema = z.object({\n name: z.string().describe(\"Name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n description: z.string().describe(\"Description of the collection\").nullable(),\n}).describe(\"Representation of a collection in search results.\");\nexport const ReplicateSearchOutput = z.object({\n pages: z.array(ReplicateSearch_PageResultSchema).describe(\"Array of matching documentation pages\"),\n query: z.string().describe(\"The search query that was executed\").nullable(),\n models: z.array(ReplicateSearch_ModelWithMetadataSchema).describe(\"Array of matching models with search metadata\"),\n collections: z.array(ReplicateSearch_CollectionResultSchema).describe(\"Array of matching collections\"),\n}).describe(\"Search results from the Replicate search API.\");\n\nexport const replicateSearch = action(\"REPLICATE_SEARCH\", {\n slug: \"replicate-search\",\n name: \"Search Models and Collections\",\n description: \"Tool to search for models, collections, and docs using text queries (beta). Use when you need to find relevant models or collections based on keywords or descriptions.\",\n input: ReplicateSearchInput,\n output: ReplicateSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+FAA+F;AAC5H,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,2DAA2D;AACvE,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACvE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port { action } from \"../action\";\n\nexport const ReplicateSearchInput = z.object({\n limit: z.number().int().describe(\"Maximum number of model results to return. Must be between 1 and 50. Defaults to 20 if not specified.\").optional(),\n query: z.string().describe(\"The search query string to execute. Can search across models, collections, and documentation.\"),\n}).describe(\"Request schema for searching models, collections, and docs.\");\nconst ReplicateSearch_PageResultSchema = z.object({\n url: z.string().describe(\"URL of the documentation page\").nullable().optional(),\n title: z.string().describe(\"Title of the documentation page\").nullable().optional(),\n}).passthrough().describe(\"Representation of a documentation page in search results.\");\nconst ReplicateSearch_ModelVersionSchema = z.object({\n id: z.string().describe(\"Unique identifier for this version\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when this version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"OpenAPI schema defining the model's inputs and outputs. Structure follows OpenAPI specification and varies by model.\"),\n}).passthrough().describe(\"Representation of a model version.\");\nconst ReplicateSearch_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 ReplicateSearch_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateSearch_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateSearch_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 ReplicateSearch_PredictionExampleSchema = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"Logs generated during prediction execution\").nullable().optional(),\n urls: ReplicateSearch_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input parameters used for the prediction. Structure varies by model.\").nullable().optional(),\n model: z.string().describe(\"The model identifier (format: owner/name)\").nullable(),\n output: z.unknown().describe(\"Model output. Can be any JSON-serializable value depending on the model (string, number, array, object, etc.).\").nullable().optional(),\n source: ReplicateSearch_PredictionSourceSchema.nullable().optional(),\n status: ReplicateSearch_PredictionStatusSchema.nullable(),\n metrics: ReplicateSearch_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The 64-character model version identifier\").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 the model began processing\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the prediction completed\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction input/output data has been removed (auto-deleted after 1 hour)\").nullable().optional(),\n}).passthrough().describe(\"Prediction object used as a model's default example.\");\nconst ReplicateSearch_ModelResultSchema = z.object({\n url: z.string().describe(\"URL of the model\").nullable(),\n name: z.string().describe(\"Name of the model\").nullable(),\n owner: z.string().describe(\"Username or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"Research paper URL, if available\").nullable().optional(),\n run_count: z.number().int().describe(\"Total number of prediction runs for this model\").nullable(),\n github_url: z.string().describe(\"GitHub repository URL, if available\").nullable().optional(),\n visibility: z.string().describe(\"Visibility setting - 'public' or 'private'\").nullable(),\n description: z.string().describe(\"Description of the model\").nullable(),\n license_url: z.string().describe(\"License document URL, if available\").nullable().optional(),\n latest_version: ReplicateSearch_ModelVersionSchema.nullable().optional(),\n cover_image_url: z.string().describe(\"Cover image URL\").nullable().optional(),\n default_example: ReplicateSearch_PredictionExampleSchema.nullable().optional(),\n}).passthrough().describe(\"Representation of a model in search results.\");\nconst ReplicateSearch_SearchMetadataSchema = z.object({\n tags: z.array(z.string()).describe(\"Model categorization tags\").nullable().optional(),\n score: z.number().describe(\"Relevance ranking score for the search query\").nullable().optional(),\n generated_description: z.string().describe(\"Extended AI-generated description of the model\").nullable().optional(),\n}).passthrough().describe(\"Search-specific metadata for results.\");\nconst ReplicateSearch_ModelWithMetadataSchema = z.object({\n model: ReplicateSearch_ModelResultSchema.nullable(),\n metadata: ReplicateSearch_SearchMetadataSchema.nullable(),\n}).passthrough().describe(\"Model with search metadata.\");\nconst ReplicateSearch_CollectionResultSchema = z.object({\n name: z.string().describe(\"Name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n description: z.string().describe(\"Description of the collection\").nullable(),\n}).passthrough().describe(\"Representation of a collection in search results.\");\nexport const ReplicateSearchOutput = z.object({\n pages: z.array(ReplicateSearch_PageResultSchema).describe(\"Array of matching documentation pages\"),\n query: z.string().describe(\"The search query that was executed\").nullable(),\n models: z.array(ReplicateSearch_ModelWithMetadataSchema).describe(\"Array of matching models with search metadata\"),\n collections: z.array(ReplicateSearch_CollectionResultSchema).describe(\"Array of matching collections\"),\n}).passthrough().describe(\"Search results from the Replicate search API.\");\n\nexport const replicateSearch = action(\"REPLICATE_SEARCH\", {\n slug: \"replicate-search\",\n name: \"Search Models and Collections\",\n description: \"Tool to search for models, collections, and docs using text queries (beta). Use when you need to find relevant models or collections based on keywords or descriptions.\",\n input: ReplicateSearchInput,\n output: ReplicateSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uBAAuBA,IAAAA,EAAE,OAAO;CAC3C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CACnJ,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AAC,SAAS;AAC7E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,OAAOA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,uCAAuC;CACjG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC1E,QAAQA,IAAAA,EAAE,MAAM,uCAAuC,CAAC,CAAC,SAAS,+CAA+C;CACjH,aAAaA,IAAAA,EAAE,MAAM,sCAAsC,CAAC,CAAC,SAAS,+BAA+B;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAEzE,MAAa,kBAAkBC,eAAAA,OAAO,oBAAoB;CACxD,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -9,7 +9,7 @@ declare const ReplicateSearchOutput: z.ZodObject<{
9
9
  pages: z.ZodArray<z.ZodObject<{
10
10
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- }, z.core.$strip>>;
12
+ }, z.core.$loose>>;
13
13
  query: z.ZodNullable<z.ZodString>;
14
14
  models: z.ZodArray<z.ZodObject<{
15
15
  model: z.ZodNullable<z.ZodObject<{
@@ -27,7 +27,7 @@ declare const ReplicateSearchOutput: z.ZodObject<{
27
27
  created_at: z.ZodNullable<z.ZodString>;
28
28
  cog_version: z.ZodNullable<z.ZodString>;
29
29
  openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
30
- }, z.core.$strip>>>;
30
+ }, z.core.$loose>>>;
31
31
  cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  default_example: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
33
  id: z.ZodNullable<z.ZodString>;
@@ -37,7 +37,7 @@ declare const ReplicateSearchOutput: z.ZodObject<{
37
37
  web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
38
  cancel: z.ZodNullable<z.ZodString>;
39
39
  stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
- }, z.core.$strip>>;
40
+ }, z.core.$loose>>;
41
41
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
42
  input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
43
43
  model: z.ZodNullable<z.ZodString>;
@@ -63,24 +63,36 @@ declare const ReplicateSearchOutput: z.ZodObject<{
63
63
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
64
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
65
  data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
66
- }, z.core.$strip>>>;
67
- }, z.core.$strip>>;
66
+ }, z.core.$loose>>>;
67
+ }, z.core.$loose>>;
68
68
  metadata: z.ZodNullable<z.ZodObject<{
69
69
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
70
70
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
71
71
  generated_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
- }, z.core.$strip>>;
73
- }, z.core.$strip>>;
72
+ }, z.core.$loose>>;
73
+ }, z.core.$loose>>;
74
74
  collections: z.ZodArray<z.ZodObject<{
75
75
  name: z.ZodNullable<z.ZodString>;
76
76
  slug: z.ZodNullable<z.ZodString>;
77
77
  description: z.ZodNullable<z.ZodString>;
78
- }, z.core.$strip>>;
79
- }, z.core.$strip>;
78
+ }, z.core.$loose>>;
79
+ }, z.core.$loose>;
80
80
  declare const replicateSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
81
81
  query: string;
82
82
  limit?: number | undefined;
83
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
83
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
84
+ connectionId: z.ZodString;
85
+ entityId: z.ZodString;
86
+ instanceId: z.ZodString;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ bearer_token: z.ZodString;
89
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
90
+ connectionId: z.ZodString;
91
+ entityId: z.ZodString;
92
+ instanceId: z.ZodString;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ bearer_token: z.ZodString;
95
+ }, z.core.$strip>>]>;
84
96
  //#endregion
85
97
  export { replicateSearch };
86
98
  //# sourceMappingURL=search.d.cts.map
@@ -9,7 +9,7 @@ declare const ReplicateSearchOutput: z.ZodObject<{
9
9
  pages: z.ZodArray<z.ZodObject<{
10
10
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- }, z.core.$strip>>;
12
+ }, z.core.$loose>>;
13
13
  query: z.ZodNullable<z.ZodString>;
14
14
  models: z.ZodArray<z.ZodObject<{
15
15
  model: z.ZodNullable<z.ZodObject<{
@@ -27,7 +27,7 @@ declare const ReplicateSearchOutput: z.ZodObject<{
27
27
  created_at: z.ZodNullable<z.ZodString>;
28
28
  cog_version: z.ZodNullable<z.ZodString>;
29
29
  openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
30
- }, z.core.$strip>>>;
30
+ }, z.core.$loose>>>;
31
31
  cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  default_example: z.ZodOptional<z.ZodNullable<z.ZodObject<{
33
33
  id: z.ZodNullable<z.ZodString>;
@@ -37,7 +37,7 @@ declare const ReplicateSearchOutput: z.ZodObject<{
37
37
  web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
38
  cancel: z.ZodNullable<z.ZodString>;
39
39
  stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
- }, z.core.$strip>>;
40
+ }, z.core.$loose>>;
41
41
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
42
  input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
43
43
  model: z.ZodNullable<z.ZodString>;
@@ -63,24 +63,36 @@ declare const ReplicateSearchOutput: z.ZodObject<{
63
63
  started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
64
64
  completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
65
  data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
66
- }, z.core.$strip>>>;
67
- }, z.core.$strip>>;
66
+ }, z.core.$loose>>>;
67
+ }, z.core.$loose>>;
68
68
  metadata: z.ZodNullable<z.ZodObject<{
69
69
  tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
70
70
  score: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
71
71
  generated_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
- }, z.core.$strip>>;
73
- }, z.core.$strip>>;
72
+ }, z.core.$loose>>;
73
+ }, z.core.$loose>>;
74
74
  collections: z.ZodArray<z.ZodObject<{
75
75
  name: z.ZodNullable<z.ZodString>;
76
76
  slug: z.ZodNullable<z.ZodString>;
77
77
  description: z.ZodNullable<z.ZodString>;
78
- }, z.core.$strip>>;
79
- }, z.core.$strip>;
78
+ }, z.core.$loose>>;
79
+ }, z.core.$loose>;
80
80
  declare const replicateSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
81
81
  query: string;
82
82
  limit?: number | undefined;
83
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
83
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
84
+ connectionId: z.ZodString;
85
+ entityId: z.ZodString;
86
+ instanceId: z.ZodString;
87
+ }, z.core.$strip>, z.ZodObject<{
88
+ bearer_token: z.ZodString;
89
+ }, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
90
+ connectionId: z.ZodString;
91
+ entityId: z.ZodString;
92
+ instanceId: z.ZodString;
93
+ }, z.core.$strip>, z.ZodObject<{
94
+ bearer_token: z.ZodString;
95
+ }, z.core.$strip>>]>;
84
96
  //#endregion
85
97
  export { replicateSearch };
86
98
  //# sourceMappingURL=search.d.mts.map