@keystrokehq/replicate 0.1.3 → 0.1.5
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.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/account-get.cjs +1 -0
- package/dist/actions/account-get.cjs.map +1 -1
- package/dist/actions/account-get.d.cts +3 -1
- package/dist/actions/account-get.d.cts.map +1 -1
- package/dist/actions/account-get.d.mts +3 -1
- package/dist/actions/account-get.d.mts.map +1 -1
- package/dist/actions/account-get.mjs +1 -0
- package/dist/actions/account-get.mjs.map +1 -1
- package/dist/actions/cancel-prediction.cjs +1 -0
- package/dist/actions/cancel-prediction.cjs.map +1 -1
- package/dist/actions/cancel-prediction.d.cts +3 -3
- package/dist/actions/cancel-prediction.d.cts.map +1 -1
- package/dist/actions/cancel-prediction.d.mts +3 -3
- package/dist/actions/cancel-prediction.d.mts.map +1 -1
- package/dist/actions/cancel-prediction.mjs +1 -0
- package/dist/actions/cancel-prediction.mjs.map +1 -1
- package/dist/actions/collections-get.cjs +1 -0
- package/dist/actions/collections-get.cjs.map +1 -1
- package/dist/actions/collections-get.d.cts +3 -3
- package/dist/actions/collections-get.d.cts.map +1 -1
- package/dist/actions/collections-get.d.mts +3 -3
- package/dist/actions/collections-get.d.mts.map +1 -1
- package/dist/actions/collections-get.mjs +1 -0
- package/dist/actions/collections-get.mjs.map +1 -1
- package/dist/actions/collections-list.cjs +1 -0
- package/dist/actions/collections-list.cjs.map +1 -1
- package/dist/actions/collections-list.d.cts +3 -3
- package/dist/actions/collections-list.d.cts.map +1 -1
- package/dist/actions/collections-list.d.mts +3 -3
- package/dist/actions/collections-list.d.mts.map +1 -1
- package/dist/actions/collections-list.mjs +1 -0
- package/dist/actions/collections-list.mjs.map +1 -1
- package/dist/actions/create-model.cjs +1 -0
- package/dist/actions/create-model.cjs.map +1 -1
- package/dist/actions/create-model.d.cts +3 -11
- package/dist/actions/create-model.d.cts.map +1 -1
- package/dist/actions/create-model.d.mts +3 -11
- package/dist/actions/create-model.d.mts.map +1 -1
- package/dist/actions/create-model.mjs +1 -0
- package/dist/actions/create-model.mjs.map +1 -1
- package/dist/actions/create-prediction.cjs +1 -0
- package/dist/actions/create-prediction.cjs.map +1 -1
- package/dist/actions/create-prediction.d.cts +4 -9
- package/dist/actions/create-prediction.d.cts.map +1 -1
- package/dist/actions/create-prediction.d.mts +4 -9
- package/dist/actions/create-prediction.d.mts.map +1 -1
- package/dist/actions/create-prediction.mjs +1 -0
- package/dist/actions/create-prediction.mjs.map +1 -1
- package/dist/actions/deployments-create.cjs +1 -0
- package/dist/actions/deployments-create.cjs.map +1 -1
- package/dist/actions/deployments-create.d.cts +3 -8
- package/dist/actions/deployments-create.d.cts.map +1 -1
- package/dist/actions/deployments-create.d.mts +3 -8
- package/dist/actions/deployments-create.d.mts.map +1 -1
- package/dist/actions/deployments-create.mjs +1 -0
- package/dist/actions/deployments-create.mjs.map +1 -1
- package/dist/actions/deployments-delete.cjs +1 -0
- package/dist/actions/deployments-delete.cjs.map +1 -1
- package/dist/actions/deployments-delete.d.cts +3 -4
- package/dist/actions/deployments-delete.d.cts.map +1 -1
- package/dist/actions/deployments-delete.d.mts +3 -4
- package/dist/actions/deployments-delete.d.mts.map +1 -1
- package/dist/actions/deployments-delete.mjs +1 -0
- package/dist/actions/deployments-delete.mjs.map +1 -1
- package/dist/actions/deployments-get.cjs +1 -0
- package/dist/actions/deployments-get.cjs.map +1 -1
- package/dist/actions/deployments-get.d.cts +3 -4
- package/dist/actions/deployments-get.d.cts.map +1 -1
- package/dist/actions/deployments-get.d.mts +3 -4
- package/dist/actions/deployments-get.d.mts.map +1 -1
- package/dist/actions/deployments-get.mjs +1 -0
- package/dist/actions/deployments-get.mjs.map +1 -1
- package/dist/actions/deployments-list.cjs +1 -0
- package/dist/actions/deployments-list.cjs.map +1 -1
- package/dist/actions/deployments-list.d.cts +3 -3
- package/dist/actions/deployments-list.d.cts.map +1 -1
- package/dist/actions/deployments-list.d.mts +3 -3
- package/dist/actions/deployments-list.d.mts.map +1 -1
- package/dist/actions/deployments-list.mjs +1 -0
- package/dist/actions/deployments-list.mjs.map +1 -1
- package/dist/actions/files-create.cjs +1 -0
- package/dist/actions/files-create.cjs.map +1 -1
- package/dist/actions/files-create.d.cts +3 -9
- package/dist/actions/files-create.d.cts.map +1 -1
- package/dist/actions/files-create.d.mts +3 -9
- package/dist/actions/files-create.d.mts.map +1 -1
- package/dist/actions/files-create.mjs +1 -0
- package/dist/actions/files-create.mjs.map +1 -1
- package/dist/actions/files-delete.cjs +1 -0
- package/dist/actions/files-delete.cjs.map +1 -1
- package/dist/actions/files-delete.d.cts +3 -3
- package/dist/actions/files-delete.d.cts.map +1 -1
- package/dist/actions/files-delete.d.mts +3 -3
- package/dist/actions/files-delete.d.mts.map +1 -1
- package/dist/actions/files-delete.mjs +1 -0
- package/dist/actions/files-delete.mjs.map +1 -1
- package/dist/actions/files-get.cjs +1 -0
- package/dist/actions/files-get.cjs.map +1 -1
- package/dist/actions/files-get.d.cts +3 -3
- package/dist/actions/files-get.d.cts.map +1 -1
- package/dist/actions/files-get.d.mts +3 -3
- package/dist/actions/files-get.d.mts.map +1 -1
- package/dist/actions/files-get.mjs +1 -0
- package/dist/actions/files-get.mjs.map +1 -1
- package/dist/actions/files-list.cjs +1 -0
- package/dist/actions/files-list.cjs.map +1 -1
- package/dist/actions/files-list.d.cts +3 -3
- package/dist/actions/files-list.d.cts.map +1 -1
- package/dist/actions/files-list.d.mts +3 -3
- package/dist/actions/files-list.d.mts.map +1 -1
- package/dist/actions/files-list.mjs +1 -0
- package/dist/actions/files-list.mjs.map +1 -1
- package/dist/actions/get-prediction.cjs +1 -0
- package/dist/actions/get-prediction.cjs.map +1 -1
- package/dist/actions/get-prediction.d.cts +3 -3
- package/dist/actions/get-prediction.d.cts.map +1 -1
- package/dist/actions/get-prediction.d.mts +3 -3
- package/dist/actions/get-prediction.d.mts.map +1 -1
- package/dist/actions/get-prediction.mjs +1 -0
- package/dist/actions/get-prediction.mjs.map +1 -1
- package/dist/actions/hardware-list.cjs +1 -0
- package/dist/actions/hardware-list.cjs.map +1 -1
- package/dist/actions/hardware-list.d.cts +3 -1
- package/dist/actions/hardware-list.d.cts.map +1 -1
- package/dist/actions/hardware-list.d.mts +3 -1
- package/dist/actions/hardware-list.d.mts.map +1 -1
- package/dist/actions/hardware-list.mjs +1 -0
- package/dist/actions/hardware-list.mjs.map +1 -1
- package/dist/actions/models-examples-list.cjs +1 -0
- package/dist/actions/models-examples-list.cjs.map +1 -1
- package/dist/actions/models-examples-list.d.cts +3 -5
- package/dist/actions/models-examples-list.d.cts.map +1 -1
- package/dist/actions/models-examples-list.d.mts +3 -5
- package/dist/actions/models-examples-list.d.mts.map +1 -1
- package/dist/actions/models-examples-list.mjs +1 -0
- package/dist/actions/models-examples-list.mjs.map +1 -1
- package/dist/actions/models-get.cjs +1 -0
- package/dist/actions/models-get.cjs.map +1 -1
- package/dist/actions/models-get.d.cts +3 -4
- package/dist/actions/models-get.d.cts.map +1 -1
- package/dist/actions/models-get.d.mts +3 -4
- package/dist/actions/models-get.d.mts.map +1 -1
- package/dist/actions/models-get.mjs +1 -0
- package/dist/actions/models-get.mjs.map +1 -1
- package/dist/actions/models-list.cjs +1 -0
- package/dist/actions/models-list.cjs.map +1 -1
- package/dist/actions/models-list.d.cts +3 -5
- package/dist/actions/models-list.d.cts.map +1 -1
- package/dist/actions/models-list.d.mts +3 -5
- package/dist/actions/models-list.d.mts.map +1 -1
- package/dist/actions/models-list.mjs +1 -0
- package/dist/actions/models-list.mjs.map +1 -1
- package/dist/actions/models-predictions-create.cjs +1 -0
- package/dist/actions/models-predictions-create.cjs.map +1 -1
- package/dist/actions/models-predictions-create.d.cts +4 -10
- package/dist/actions/models-predictions-create.d.cts.map +1 -1
- package/dist/actions/models-predictions-create.d.mts +4 -10
- package/dist/actions/models-predictions-create.d.mts.map +1 -1
- package/dist/actions/models-predictions-create.mjs +1 -0
- package/dist/actions/models-predictions-create.mjs.map +1 -1
- package/dist/actions/models-readme-get.cjs +1 -0
- package/dist/actions/models-readme-get.cjs.map +1 -1
- package/dist/actions/models-readme-get.d.cts +3 -4
- package/dist/actions/models-readme-get.d.cts.map +1 -1
- package/dist/actions/models-readme-get.d.mts +3 -4
- package/dist/actions/models-readme-get.d.mts.map +1 -1
- package/dist/actions/models-readme-get.mjs +1 -0
- package/dist/actions/models-readme-get.mjs.map +1 -1
- package/dist/actions/models-versions-get.cjs +1 -0
- package/dist/actions/models-versions-get.cjs.map +1 -1
- package/dist/actions/models-versions-get.d.cts +3 -5
- package/dist/actions/models-versions-get.d.cts.map +1 -1
- package/dist/actions/models-versions-get.d.mts +3 -5
- package/dist/actions/models-versions-get.d.mts.map +1 -1
- package/dist/actions/models-versions-get.mjs +1 -0
- package/dist/actions/models-versions-get.mjs.map +1 -1
- package/dist/actions/models-versions-list.cjs +1 -0
- package/dist/actions/models-versions-list.cjs.map +1 -1
- package/dist/actions/models-versions-list.d.cts +3 -5
- package/dist/actions/models-versions-list.d.cts.map +1 -1
- package/dist/actions/models-versions-list.d.mts +3 -5
- package/dist/actions/models-versions-list.d.mts.map +1 -1
- package/dist/actions/models-versions-list.mjs +1 -0
- package/dist/actions/models-versions-list.mjs.map +1 -1
- package/dist/actions/predictions-create.cjs +1 -0
- package/dist/actions/predictions-create.cjs.map +1 -1
- package/dist/actions/predictions-create.d.cts +4 -10
- package/dist/actions/predictions-create.d.cts.map +1 -1
- package/dist/actions/predictions-create.d.mts +4 -10
- package/dist/actions/predictions-create.d.mts.map +1 -1
- package/dist/actions/predictions-create.mjs +1 -0
- package/dist/actions/predictions-create.mjs.map +1 -1
- package/dist/actions/predictions-list.cjs +1 -0
- package/dist/actions/predictions-list.cjs.map +1 -1
- package/dist/actions/predictions-list.d.cts +3 -5
- package/dist/actions/predictions-list.d.cts.map +1 -1
- package/dist/actions/predictions-list.d.mts +3 -5
- package/dist/actions/predictions-list.d.mts.map +1 -1
- package/dist/actions/predictions-list.mjs +1 -0
- package/dist/actions/predictions-list.mjs.map +1 -1
- package/dist/actions/search.cjs +1 -0
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +3 -4
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +3 -4
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +1 -0
- package/dist/actions/search.mjs.map +1 -1
- package/dist/actions/trainings-cancel.cjs +1 -0
- package/dist/actions/trainings-cancel.cjs.map +1 -1
- package/dist/actions/trainings-cancel.d.cts +3 -3
- package/dist/actions/trainings-cancel.d.cts.map +1 -1
- package/dist/actions/trainings-cancel.d.mts +3 -3
- package/dist/actions/trainings-cancel.d.mts.map +1 -1
- package/dist/actions/trainings-cancel.mjs +1 -0
- package/dist/actions/trainings-cancel.mjs.map +1 -1
- package/dist/actions/trainings-create.cjs +1 -0
- package/dist/actions/trainings-create.cjs.map +1 -1
- package/dist/actions/trainings-create.d.cts +4 -10
- package/dist/actions/trainings-create.d.cts.map +1 -1
- package/dist/actions/trainings-create.d.mts +4 -10
- package/dist/actions/trainings-create.d.mts.map +1 -1
- package/dist/actions/trainings-create.mjs +1 -0
- package/dist/actions/trainings-create.mjs.map +1 -1
- package/dist/actions/trainings-list.cjs +1 -0
- package/dist/actions/trainings-list.cjs.map +1 -1
- package/dist/actions/trainings-list.d.cts +3 -3
- package/dist/actions/trainings-list.d.cts.map +1 -1
- package/dist/actions/trainings-list.d.mts +3 -3
- package/dist/actions/trainings-list.d.mts.map +1 -1
- package/dist/actions/trainings-list.mjs +1 -0
- package/dist/actions/trainings-list.mjs.map +1 -1
- package/dist/actions/update-models.cjs +1 -0
- package/dist/actions/update-models.cjs.map +1 -1
- package/dist/actions/update-models.d.cts +3 -10
- package/dist/actions/update-models.d.cts.map +1 -1
- package/dist/actions/update-models.d.mts +3 -10
- package/dist/actions/update-models.d.mts.map +1 -1
- package/dist/actions/update-models.mjs +1 -0
- package/dist/actions/update-models.mjs.map +1 -1
- package/dist/actions/webhooks-secret-get.cjs +1 -0
- package/dist/actions/webhooks-secret-get.cjs.map +1 -1
- package/dist/actions/webhooks-secret-get.d.cts +3 -1
- package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
- package/dist/actions/webhooks-secret-get.d.mts +3 -1
- package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
- package/dist/actions/webhooks-secret-get.mjs +1 -0
- package/dist/actions/webhooks-secret-get.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-predictions-create.d.ts
|
|
@@ -10,8 +12,8 @@ declare const ReplicateModelsPredictionsCreateInput: z.ZodObject<{
|
|
|
10
12
|
cancel_after: z.ZodOptional<z.ZodString>;
|
|
11
13
|
webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
12
14
|
output: "output";
|
|
13
|
-
start: "start";
|
|
14
15
|
logs: "logs";
|
|
16
|
+
start: "start";
|
|
15
17
|
completed: "completed";
|
|
16
18
|
}>>>;
|
|
17
19
|
}, z.core.$strip>;
|
|
@@ -38,15 +40,7 @@ declare const ReplicateModelsPredictionsCreateOutput: z.ZodObject<{
|
|
|
38
40
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
41
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
42
|
}, z.core.$loose>;
|
|
41
|
-
declare const replicateModelsPredictionsCreate:
|
|
42
|
-
input: Record<string, unknown>;
|
|
43
|
-
model_name: string;
|
|
44
|
-
model_owner: string;
|
|
45
|
-
webhook?: string | undefined;
|
|
46
|
-
wait_for?: number | undefined;
|
|
47
|
-
cancel_after?: string | undefined;
|
|
48
|
-
webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
|
|
49
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
43
|
+
declare const replicateModelsPredictionsCreate: AppAction<typeof ReplicateModelsPredictionsCreateInput, typeof ReplicateModelsPredictionsCreateOutput, typeof replicate.credential>;
|
|
50
44
|
//#endregion
|
|
51
45
|
export { replicateModelsPredictionsCreate };
|
|
52
46
|
//# sourceMappingURL=models-predictions-create.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-predictions-create.d.cts","names":[],"sources":["../../src/actions/models-predictions-create.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-predictions-create.d.cts","names":[],"sources":["../../src/actions/models-predictions-create.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAmBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAgBtC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-predictions-create.d.ts
|
|
@@ -10,8 +12,8 @@ declare const ReplicateModelsPredictionsCreateInput: z.ZodObject<{
|
|
|
10
12
|
cancel_after: z.ZodOptional<z.ZodString>;
|
|
11
13
|
webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
12
14
|
output: "output";
|
|
13
|
-
start: "start";
|
|
14
15
|
logs: "logs";
|
|
16
|
+
start: "start";
|
|
15
17
|
completed: "completed";
|
|
16
18
|
}>>>;
|
|
17
19
|
}, z.core.$strip>;
|
|
@@ -38,15 +40,7 @@ declare const ReplicateModelsPredictionsCreateOutput: z.ZodObject<{
|
|
|
38
40
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
41
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
42
|
}, z.core.$loose>;
|
|
41
|
-
declare const replicateModelsPredictionsCreate:
|
|
42
|
-
input: Record<string, unknown>;
|
|
43
|
-
model_name: string;
|
|
44
|
-
model_owner: string;
|
|
45
|
-
webhook?: string | undefined;
|
|
46
|
-
wait_for?: number | undefined;
|
|
47
|
-
cancel_after?: string | undefined;
|
|
48
|
-
webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
|
|
49
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
43
|
+
declare const replicateModelsPredictionsCreate: AppAction<typeof ReplicateModelsPredictionsCreateInput, typeof ReplicateModelsPredictionsCreateOutput, typeof replicate.credential>;
|
|
50
44
|
//#endregion
|
|
51
45
|
export { replicateModelsPredictionsCreate };
|
|
52
46
|
//# sourceMappingURL=models-predictions-create.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-predictions-create.d.mts","names":[],"sources":["../../src/actions/models-predictions-create.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-predictions-create.d.mts","names":[],"sources":["../../src/actions/models-predictions-create.ts"],"mappings":";;;;;cAMa,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAmBrC,sCAAA,EAAsC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;cAgBtC,gCAAA,EAAkC,SAAA,QACtC,qCAAA,SACA,sCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-predictions-create.mjs","names":[],"sources":["../../src/actions/models-predictions-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsPredictionsCreateInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model - each model has its own set of required fields, optional parameters, and validation constraints (e.g., max dimensions for image models). IMPORTANT: Before making predictions, use the REPLICATE_MODELS_GET action to fetch the model's openapi_schema which contains all valid input parameters and their constraints. For image models like flux-1.1-pro, common constraints include max width/height limits (e.g., 1440px), valid aspect ratios, and output format options\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur\").optional(),\n wait_for: z.number().int().describe(\"Seconds to wait for prediction completion (1-60); adds a 'Prefer: wait=<n>' header to block and wait synchronously\").optional(),\n model_name: z.string().describe(\"The name of the model as it appears on Replicate. Must be an exact match. Find valid model names by searching at replicate.com or using the search/models_list actions. The full model identifier is {model_owner}/{model_name}\"),\n model_owner: z.string().describe(\"The username or organization that owns the model on Replicate. Find valid owners by searching models at replicate.com or using the search/models_list actions. Examples: 'meta', 'stability-ai', 'black-forest-labs', 'bytedance', 'google'\"),\n cancel_after: z.string().describe(\"Maximum execution duration with optional unit suffixes (s/m/h); minimum 5 seconds. Example: '60s' or '5m'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Filter webhook triggers by event type: 'start', 'output', 'logs', or 'completed'\").optional(),\n}).describe(\"Request schema for creating a prediction using an official model.\");\nconst ReplicateModelsPredictionsCreate_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 ReplicateModelsPredictionsCreate_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 ReplicateModelsPredictionsCreateOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"Logs generated during the prediction\").nullable().optional(),\n urls: ReplicateModelsPredictionsCreate_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if prediction failed; null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the prediction\"),\n model: z.string().describe(\"Model identifier in owner/name format\").nullable().optional(),\n output: z.unknown().describe(\"Model output results; null if data removed after retention period or if prediction not yet completed\").nullable().optional(),\n status: z.string().describe(\"Current status of the prediction: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateModelsPredictionsCreate_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"Version ID of the model used in prediction\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when prediction was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when prediction started processing\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when prediction completed\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a prediction using an official model.\");\n\nexport const replicateModelsPredictionsCreate = action(\"REPLICATE_MODELS_PREDICTIONS_CREATE\", {\n slug: \"replicate-models-predictions-create\",\n name: \"Create Model Prediction\",\n description: \"Tool to create a prediction using an official Replicate model. Use when you need to run inference with a specific model using its owner and name. Supports synchronous waiting (up to 60 seconds) and webhooks for async notifications.\",\n input: ReplicateModelsPredictionsCreateInput,\n output: ReplicateModelsPredictionsCreateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-predictions-create.mjs","names":[],"sources":["../../src/actions/models-predictions-create.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateModelsPredictionsCreateInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model - each model has its own set of required fields, optional parameters, and validation constraints (e.g., max dimensions for image models). IMPORTANT: Before making predictions, use the REPLICATE_MODELS_GET action to fetch the model's openapi_schema which contains all valid input parameters and their constraints. For image models like flux-1.1-pro, common constraints include max width/height limits (e.g., 1440px), valid aspect ratios, and output format options\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur\").optional(),\n wait_for: z.number().int().describe(\"Seconds to wait for prediction completion (1-60); adds a 'Prefer: wait=<n>' header to block and wait synchronously\").optional(),\n model_name: z.string().describe(\"The name of the model as it appears on Replicate. Must be an exact match. Find valid model names by searching at replicate.com or using the search/models_list actions. The full model identifier is {model_owner}/{model_name}\"),\n model_owner: z.string().describe(\"The username or organization that owns the model on Replicate. Find valid owners by searching models at replicate.com or using the search/models_list actions. Examples: 'meta', 'stability-ai', 'black-forest-labs', 'bytedance', 'google'\"),\n cancel_after: z.string().describe(\"Maximum execution duration with optional unit suffixes (s/m/h); minimum 5 seconds. Example: '60s' or '5m'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Filter webhook triggers by event type: 'start', 'output', 'logs', or 'completed'\").optional(),\n}).describe(\"Request schema for creating a prediction using an official model.\");\nconst ReplicateModelsPredictionsCreate_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 ReplicateModelsPredictionsCreate_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 ReplicateModelsPredictionsCreateOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"Logs generated during the prediction\").nullable().optional(),\n urls: ReplicateModelsPredictionsCreate_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if prediction failed; null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the prediction\"),\n model: z.string().describe(\"Model identifier in owner/name format\").nullable().optional(),\n output: z.unknown().describe(\"Model output results; null if data removed after retention period or if prediction not yet completed\").nullable().optional(),\n status: z.string().describe(\"Current status of the prediction: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateModelsPredictionsCreate_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"Version ID of the model used in prediction\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when prediction was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when prediction started processing\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when prediction completed\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a prediction using an official model.\");\n\nexport const replicateModelsPredictionsCreate: AppAction<\n typeof ReplicateModelsPredictionsCreateInput,\n typeof ReplicateModelsPredictionsCreateOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_MODELS_PREDICTIONS_CREATE\", {\n slug: \"replicate-models-predictions-create\",\n name: \"Create Model Prediction\",\n description: \"Tool to create a prediction using an official Replicate model. Use when you need to run inference with a specific model using its owner and name. Supports synchronous waiting (up to 60 seconds) and webhooks for async notifications.\",\n input: ReplicateModelsPredictionsCreateInput,\n output: ReplicateModelsPredictionsCreateOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-readme-get.cjs","names":["z","action"],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsReadmeGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\").nullable(),\n}).passthrough().describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-readme-get.cjs","names":["z","action"],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateModelsReadmeGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\").nullable(),\n}).passthrough().describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet: AppAction<\n typeof ReplicateModelsReadmeGetInput,\n typeof ReplicateModelsReadmeGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;AACpK,CAAC,CAAC,CAAC,SAAS,uEAAuE;AACnF,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAA2E;AAErG,MAAa,2BAITC,eAAAA,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-readme-get.d.ts
|
|
@@ -8,10 +10,7 @@ declare const ReplicateModelsReadmeGetInput: z.ZodObject<{
|
|
|
8
10
|
declare const ReplicateModelsReadmeGetOutput: z.ZodObject<{
|
|
9
11
|
content: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const replicateModelsReadmeGet:
|
|
12
|
-
model_name: string;
|
|
13
|
-
model_owner: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
|
+
declare const replicateModelsReadmeGet: AppAction<typeof ReplicateModelsReadmeGetInput, typeof ReplicateModelsReadmeGetOutput, typeof replicate.credential>;
|
|
15
14
|
//#endregion
|
|
16
15
|
export { replicateModelsReadmeGet };
|
|
17
16
|
//# sourceMappingURL=models-readme-get.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-readme-get.d.cts","names":[],"sources":["../../src/actions/models-readme-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-readme-get.d.cts","names":[],"sources":["../../src/actions/models-readme-get.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-readme-get.d.ts
|
|
@@ -8,10 +10,7 @@ declare const ReplicateModelsReadmeGetInput: z.ZodObject<{
|
|
|
8
10
|
declare const ReplicateModelsReadmeGetOutput: z.ZodObject<{
|
|
9
11
|
content: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const replicateModelsReadmeGet:
|
|
12
|
-
model_name: string;
|
|
13
|
-
model_owner: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
13
|
+
declare const replicateModelsReadmeGet: AppAction<typeof ReplicateModelsReadmeGetInput, typeof ReplicateModelsReadmeGetOutput, typeof replicate.credential>;
|
|
15
14
|
//#endregion
|
|
16
15
|
export { replicateModelsReadmeGet };
|
|
17
16
|
//# sourceMappingURL=models-readme-get.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-readme-get.d.mts","names":[],"sources":["../../src/actions/models-readme-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-readme-get.d.mts","names":[],"sources":["../../src/actions/models-readme-get.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-readme-get.mjs","names":[],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsReadmeGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\").nullable(),\n}).passthrough().describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-readme-get.mjs","names":[],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateModelsReadmeGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\").nullable(),\n}).passthrough().describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet: AppAction<\n typeof ReplicateModelsReadmeGetInput,\n typeof ReplicateModelsReadmeGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":";;;AAcA,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB2C,EAAE,OAAO;EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CACpK,CAAC,CAAC,CAAC,SAAS,uEAaH;CACP,QAb4C,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-get.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).passthrough().describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-get.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).passthrough().describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet: AppAction<\n typeof ReplicateModelsVersionsGetInput,\n typeof ReplicateModelsVersionsGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AAChH,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC7H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC5J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+FAA+F;AAEzH,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-versions-get.d.ts
|
|
@@ -12,11 +14,7 @@ declare const ReplicateModelsVersionsGetOutput: z.ZodObject<{
|
|
|
12
14
|
cog_version: z.ZodNullable<z.ZodString>;
|
|
13
15
|
openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const replicateModelsVersionsGet:
|
|
16
|
-
model_name: string;
|
|
17
|
-
version_id: string;
|
|
18
|
-
model_owner: string;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const replicateModelsVersionsGet: AppAction<typeof ReplicateModelsVersionsGetInput, typeof ReplicateModelsVersionsGetOutput, typeof replicate.credential>;
|
|
20
18
|
//#endregion
|
|
21
19
|
export { replicateModelsVersionsGet };
|
|
22
20
|
//# sourceMappingURL=models-versions-get.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-get.d.cts","names":[],"sources":["../../src/actions/models-versions-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-get.d.cts","names":[],"sources":["../../src/actions/models-versions-get.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAOhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-versions-get.d.ts
|
|
@@ -12,11 +14,7 @@ declare const ReplicateModelsVersionsGetOutput: z.ZodObject<{
|
|
|
12
14
|
cog_version: z.ZodNullable<z.ZodString>;
|
|
13
15
|
openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const replicateModelsVersionsGet:
|
|
16
|
-
model_name: string;
|
|
17
|
-
version_id: string;
|
|
18
|
-
model_owner: string;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
17
|
+
declare const replicateModelsVersionsGet: AppAction<typeof ReplicateModelsVersionsGetInput, typeof ReplicateModelsVersionsGetOutput, typeof replicate.credential>;
|
|
20
18
|
//#endregion
|
|
21
19
|
export { replicateModelsVersionsGet };
|
|
22
20
|
//# sourceMappingURL=models-versions-get.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-get.d.mts","names":[],"sources":["../../src/actions/models-versions-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-get.d.mts","names":[],"sources":["../../src/actions/models-versions-get.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAOhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-get.mjs","names":[],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).passthrough().describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-get.mjs","names":[],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).passthrough().describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet: AppAction<\n typeof ReplicateModelsVersionsGetInput,\n typeof ReplicateModelsVersionsGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB6C,EAAE,OAAO;EACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CAChH,CAAC,CAAC,CAAC,SAAS,8DAgBH;CACP,QAhB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EAC7H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC9G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F;CAC5J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+FAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-list.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).passthrough().describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-list.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateModelsVersionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).passthrough().describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList: AppAction<\n typeof ReplicateModelsVersionsListInput,\n typeof ReplicateModelsVersionsListOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAC9D,MAAa,oCAAoCA,IAAAA,EAAE,OAAO;CACxD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,SAASA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,uCAAuC;CACjH,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAE3E,MAAa,8BAITC,eAAAA,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-versions-list.d.ts
|
|
@@ -16,11 +18,7 @@ declare const ReplicateModelsVersionsListOutput: z.ZodObject<{
|
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const replicateModelsVersionsList:
|
|
20
|
-
model_name: string;
|
|
21
|
-
model_owner: string;
|
|
22
|
-
cursor?: string | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const replicateModelsVersionsList: AppAction<typeof ReplicateModelsVersionsListInput, typeof ReplicateModelsVersionsListOutput, typeof replicate.credential>;
|
|
24
22
|
//#endregion
|
|
25
23
|
export { replicateModelsVersionsList };
|
|
26
24
|
//# sourceMappingURL=models-versions-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-list.d.cts","names":[],"sources":["../../src/actions/models-versions-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-list.d.cts","names":[],"sources":["../../src/actions/models-versions-list.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAWhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAMjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-versions-list.d.ts
|
|
@@ -16,11 +18,7 @@ declare const ReplicateModelsVersionsListOutput: z.ZodObject<{
|
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const replicateModelsVersionsList:
|
|
20
|
-
model_name: string;
|
|
21
|
-
model_owner: string;
|
|
22
|
-
cursor?: string | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
declare const replicateModelsVersionsList: AppAction<typeof ReplicateModelsVersionsListInput, typeof ReplicateModelsVersionsListOutput, typeof replicate.credential>;
|
|
24
22
|
//#endregion
|
|
25
23
|
export { replicateModelsVersionsList };
|
|
26
24
|
//# sourceMappingURL=models-versions-list.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-list.d.mts","names":[],"sources":["../../src/actions/models-versions-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-list.d.mts","names":[],"sources":["../../src/actions/models-versions-list.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAWhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAMjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-list.mjs","names":[],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).passthrough().describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-list.mjs","names":[],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateModelsVersionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).passthrough().describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList: AppAction<\n typeof ReplicateModelsVersionsListInput,\n typeof ReplicateModelsVersionsListOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAO9D,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,uCAAuC;EACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predictions-create.cjs","names":["z","action"],"sources":["../../src/actions/predictions-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicatePredictionsCreateInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model. Files should be HTTP URLs (for files >256kb or reusable) or data URLs (for files ≤256kb)\"),\n stream: z.boolean().describe(\"Deprecated. Streaming availability is now included in response urls\").optional(),\n version: z.string().describe(\"Model version identifier. Accepts formats: {owner}/{name}, {owner}/{name}:{version_id}, or {version_id} alone\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur. Body mirrors the get prediction response\").optional(),\n wait_for: z.number().int().describe(\"Seconds (1-60) to hold connection open until model finishes. Adds 'Prefer: wait=<n>' header\").optional(),\n cancel_after: z.string().describe(\"Maximum runtime before automatic cancellation. Accepts durations with optional suffixes (s/m/h). Minimum: 5 seconds. Examples: '30s', '5m', '1h30m45s'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Controls webhook triggers. Options: 'start', 'output', 'logs', 'completed'. Output/logs events throttled to once per 500ms\").optional(),\n}).describe(\"Request schema for creating a prediction by version ID.\");\nconst ReplicatePredictionsCreate_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).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":"
|
|
1
|
+
{"version":3,"file":"predictions-create.cjs","names":["z","action"],"sources":["../../src/actions/predictions-create.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\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: AppAction<\n typeof ReplicatePredictionsCreateInput,\n typeof ReplicatePredictionsCreateOutput,\n typeof replicate.credential\n> = 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":"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"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/predictions-create.d.ts
|
|
@@ -10,8 +12,8 @@ declare const ReplicatePredictionsCreateInput: z.ZodObject<{
|
|
|
10
12
|
cancel_after: z.ZodOptional<z.ZodString>;
|
|
11
13
|
webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
12
14
|
output: "output";
|
|
13
|
-
start: "start";
|
|
14
15
|
logs: "logs";
|
|
16
|
+
start: "start";
|
|
15
17
|
completed: "completed";
|
|
16
18
|
}>>>;
|
|
17
19
|
}, z.core.$strip>;
|
|
@@ -39,15 +41,7 @@ declare const ReplicatePredictionsCreateOutput: z.ZodObject<{
|
|
|
39
41
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
42
|
data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const replicatePredictionsCreate:
|
|
43
|
-
input: Record<string, unknown>;
|
|
44
|
-
version: string;
|
|
45
|
-
stream?: boolean | undefined;
|
|
46
|
-
webhook?: string | undefined;
|
|
47
|
-
wait_for?: number | undefined;
|
|
48
|
-
cancel_after?: string | undefined;
|
|
49
|
-
webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
|
|
50
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
44
|
+
declare const replicatePredictionsCreate: AppAction<typeof ReplicatePredictionsCreateInput, typeof ReplicatePredictionsCreateOutput, typeof replicate.credential>;
|
|
51
45
|
//#endregion
|
|
52
46
|
export { replicatePredictionsCreate };
|
|
53
47
|
//# sourceMappingURL=predictions-create.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predictions-create.d.cts","names":[],"sources":["../../src/actions/predictions-create.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"predictions-create.d.cts","names":[],"sources":["../../src/actions/predictions-create.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAmB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiBhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/predictions-create.d.ts
|
|
@@ -10,8 +12,8 @@ declare const ReplicatePredictionsCreateInput: z.ZodObject<{
|
|
|
10
12
|
cancel_after: z.ZodOptional<z.ZodString>;
|
|
11
13
|
webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
12
14
|
output: "output";
|
|
13
|
-
start: "start";
|
|
14
15
|
logs: "logs";
|
|
16
|
+
start: "start";
|
|
15
17
|
completed: "completed";
|
|
16
18
|
}>>>;
|
|
17
19
|
}, z.core.$strip>;
|
|
@@ -39,15 +41,7 @@ declare const ReplicatePredictionsCreateOutput: z.ZodObject<{
|
|
|
39
41
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
42
|
data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const replicatePredictionsCreate:
|
|
43
|
-
input: Record<string, unknown>;
|
|
44
|
-
version: string;
|
|
45
|
-
stream?: boolean | undefined;
|
|
46
|
-
webhook?: string | undefined;
|
|
47
|
-
wait_for?: number | undefined;
|
|
48
|
-
cancel_after?: string | undefined;
|
|
49
|
-
webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
|
|
50
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
44
|
+
declare const replicatePredictionsCreate: AppAction<typeof ReplicatePredictionsCreateInput, typeof ReplicatePredictionsCreateOutput, typeof replicate.credential>;
|
|
51
45
|
//#endregion
|
|
52
46
|
export { replicatePredictionsCreate };
|
|
53
47
|
//# sourceMappingURL=predictions-create.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predictions-create.d.mts","names":[],"sources":["../../src/actions/predictions-create.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"predictions-create.d.mts","names":[],"sources":["../../src/actions/predictions-create.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAmB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiBhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -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}).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":"
|
|
1
|
+
{"version":3,"file":"predictions-create.mjs","names":[],"sources":["../../src/actions/predictions-create.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\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: AppAction<\n typeof ReplicatePredictionsCreateInput,\n typeof ReplicatePredictionsCreateOutput,\n typeof replicate.credential\n> = 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":"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"}
|