@keystrokehq/replicate 0.1.0 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/account-get.cjs +4 -4
- package/dist/actions/account-get.cjs.map +1 -1
- package/dist/actions/account-get.d.cts +8 -3
- package/dist/actions/account-get.d.cts.map +1 -1
- package/dist/actions/account-get.d.mts +8 -3
- package/dist/actions/account-get.d.mts.map +1 -1
- package/dist/actions/account-get.mjs +4 -4
- package/dist/actions/account-get.mjs.map +1 -1
- package/dist/actions/cancel-prediction.cjs +8 -8
- package/dist/actions/cancel-prediction.cjs.map +1 -1
- package/dist/actions/cancel-prediction.d.cts +43 -3
- package/dist/actions/cancel-prediction.d.cts.map +1 -1
- package/dist/actions/cancel-prediction.d.mts +43 -3
- package/dist/actions/cancel-prediction.d.mts.map +1 -1
- package/dist/actions/cancel-prediction.mjs +8 -8
- package/dist/actions/cancel-prediction.mjs.map +1 -1
- package/dist/actions/collections-get.cjs +10 -10
- package/dist/actions/collections-get.cjs.map +1 -1
- package/dist/actions/collections-get.d.cts +26 -3
- package/dist/actions/collections-get.d.cts.map +1 -1
- package/dist/actions/collections-get.d.mts +26 -3
- package/dist/actions/collections-get.d.mts.map +1 -1
- package/dist/actions/collections-get.mjs +10 -10
- package/dist/actions/collections-get.mjs.map +1 -1
- package/dist/actions/collections-list.cjs +5 -5
- package/dist/actions/collections-list.cjs.map +1 -1
- package/dist/actions/collections-list.d.cts +15 -3
- package/dist/actions/collections-list.d.cts.map +1 -1
- package/dist/actions/collections-list.d.mts +15 -3
- package/dist/actions/collections-list.d.mts.map +1 -1
- package/dist/actions/collections-list.mjs +5 -5
- package/dist/actions/collections-list.mjs.map +1 -1
- package/dist/actions/create-model.cjs +8 -8
- package/dist/actions/create-model.cjs.map +1 -1
- package/dist/actions/create-model.d.cts +39 -3
- package/dist/actions/create-model.d.cts.map +1 -1
- package/dist/actions/create-model.d.mts +39 -3
- package/dist/actions/create-model.d.mts.map +1 -1
- package/dist/actions/create-model.mjs +8 -8
- package/dist/actions/create-model.mjs.map +1 -1
- package/dist/actions/create-prediction.cjs +10 -10
- package/dist/actions/create-prediction.cjs.map +1 -1
- package/dist/actions/create-prediction.d.cts +40 -3
- package/dist/actions/create-prediction.d.cts.map +1 -1
- package/dist/actions/create-prediction.d.mts +40 -3
- package/dist/actions/create-prediction.d.mts.map +1 -1
- package/dist/actions/create-prediction.mjs +10 -10
- package/dist/actions/create-prediction.mjs.map +1 -1
- package/dist/actions/deployments-create.cjs +16 -16
- package/dist/actions/deployments-create.cjs.map +1 -1
- package/dist/actions/deployments-create.d.cts +38 -3
- package/dist/actions/deployments-create.d.cts.map +1 -1
- package/dist/actions/deployments-create.d.mts +38 -3
- package/dist/actions/deployments-create.d.mts.map +1 -1
- package/dist/actions/deployments-create.mjs +16 -16
- package/dist/actions/deployments-create.mjs.map +1 -1
- package/dist/actions/deployments-delete.cjs +1 -1
- package/dist/actions/deployments-delete.cjs.map +1 -1
- package/dist/actions/deployments-delete.d.cts +12 -3
- package/dist/actions/deployments-delete.d.cts.map +1 -1
- package/dist/actions/deployments-delete.d.mts +12 -3
- package/dist/actions/deployments-delete.d.mts.map +1 -1
- package/dist/actions/deployments-delete.mjs +1 -1
- package/dist/actions/deployments-delete.mjs.map +1 -1
- package/dist/actions/deployments-get.cjs +4 -4
- package/dist/actions/deployments-get.cjs.map +1 -1
- package/dist/actions/deployments-get.d.cts +30 -3
- package/dist/actions/deployments-get.d.cts.map +1 -1
- package/dist/actions/deployments-get.d.mts +30 -3
- package/dist/actions/deployments-get.d.mts.map +1 -1
- package/dist/actions/deployments-get.mjs +4 -4
- package/dist/actions/deployments-get.mjs.map +1 -1
- package/dist/actions/deployments-list.cjs +17 -17
- package/dist/actions/deployments-list.cjs.map +1 -1
- package/dist/actions/deployments-list.d.cts +32 -3
- package/dist/actions/deployments-list.d.cts.map +1 -1
- package/dist/actions/deployments-list.d.mts +32 -3
- package/dist/actions/deployments-list.d.mts.map +1 -1
- package/dist/actions/deployments-list.mjs +17 -17
- package/dist/actions/deployments-list.mjs.map +1 -1
- package/dist/actions/files-create.cjs +7 -7
- package/dist/actions/files-create.cjs.map +1 -1
- package/dist/actions/files-create.d.cts +35 -3
- package/dist/actions/files-create.d.cts.map +1 -1
- package/dist/actions/files-create.d.mts +35 -3
- package/dist/actions/files-create.d.mts.map +1 -1
- package/dist/actions/files-create.mjs +7 -7
- package/dist/actions/files-create.mjs.map +1 -1
- package/dist/actions/files-delete.cjs +1 -1
- package/dist/actions/files-delete.cjs.map +1 -1
- package/dist/actions/files-delete.d.cts +10 -3
- package/dist/actions/files-delete.d.cts.map +1 -1
- package/dist/actions/files-delete.d.mts +10 -3
- package/dist/actions/files-delete.d.mts.map +1 -1
- package/dist/actions/files-delete.mjs +1 -1
- package/dist/actions/files-delete.mjs.map +1 -1
- package/dist/actions/files-get.cjs +8 -8
- package/dist/actions/files-get.cjs.map +1 -1
- package/dist/actions/files-get.d.cts +23 -3
- package/dist/actions/files-get.d.cts.map +1 -1
- package/dist/actions/files-get.d.mts +23 -3
- package/dist/actions/files-get.d.mts.map +1 -1
- package/dist/actions/files-get.mjs +8 -8
- package/dist/actions/files-get.mjs.map +1 -1
- package/dist/actions/files-list.cjs +10 -10
- package/dist/actions/files-list.cjs.map +1 -1
- package/dist/actions/files-list.d.cts +27 -3
- package/dist/actions/files-list.d.cts.map +1 -1
- package/dist/actions/files-list.d.mts +27 -3
- package/dist/actions/files-list.d.mts.map +1 -1
- package/dist/actions/files-list.mjs +10 -10
- package/dist/actions/files-list.mjs.map +1 -1
- package/dist/actions/get-prediction.cjs +11 -11
- package/dist/actions/get-prediction.cjs.map +1 -1
- package/dist/actions/get-prediction.d.cts +42 -3
- package/dist/actions/get-prediction.d.cts.map +1 -1
- package/dist/actions/get-prediction.d.mts +42 -3
- package/dist/actions/get-prediction.d.mts.map +1 -1
- package/dist/actions/get-prediction.mjs +11 -11
- package/dist/actions/get-prediction.mjs.map +1 -1
- package/dist/actions/hardware-list.cjs +4 -4
- package/dist/actions/hardware-list.cjs.map +1 -1
- package/dist/actions/hardware-list.d.cts +8 -3
- package/dist/actions/hardware-list.d.cts.map +1 -1
- package/dist/actions/hardware-list.d.mts +8 -3
- package/dist/actions/hardware-list.d.mts.map +1 -1
- package/dist/actions/hardware-list.mjs +4 -4
- package/dist/actions/hardware-list.mjs.map +1 -1
- package/dist/actions/models-examples-list.cjs +11 -11
- package/dist/actions/models-examples-list.cjs.map +1 -1
- package/dist/actions/models-examples-list.d.cts +37 -3
- package/dist/actions/models-examples-list.d.cts.map +1 -1
- package/dist/actions/models-examples-list.d.mts +37 -3
- package/dist/actions/models-examples-list.d.mts.map +1 -1
- package/dist/actions/models-examples-list.mjs +11 -11
- package/dist/actions/models-examples-list.mjs.map +1 -1
- package/dist/actions/models-get.cjs +26 -26
- package/dist/actions/models-get.cjs.map +1 -1
- package/dist/actions/models-get.d.cts +77 -3
- package/dist/actions/models-get.d.cts.map +1 -1
- package/dist/actions/models-get.d.mts +77 -3
- package/dist/actions/models-get.d.mts.map +1 -1
- package/dist/actions/models-get.mjs +26 -26
- package/dist/actions/models-get.mjs.map +1 -1
- package/dist/actions/models-list.cjs +11 -11
- package/dist/actions/models-list.cjs.map +1 -1
- package/dist/actions/models-list.d.cts +39 -3
- package/dist/actions/models-list.d.cts.map +1 -1
- package/dist/actions/models-list.d.mts +39 -3
- package/dist/actions/models-list.d.mts.map +1 -1
- package/dist/actions/models-list.mjs +11 -11
- package/dist/actions/models-list.mjs.map +1 -1
- package/dist/actions/models-predictions-create.cjs +7 -7
- package/dist/actions/models-predictions-create.cjs.map +1 -1
- package/dist/actions/models-predictions-create.d.cts +46 -3
- package/dist/actions/models-predictions-create.d.cts.map +1 -1
- package/dist/actions/models-predictions-create.d.mts +46 -3
- package/dist/actions/models-predictions-create.d.mts.map +1 -1
- package/dist/actions/models-predictions-create.mjs +7 -7
- package/dist/actions/models-predictions-create.mjs.map +1 -1
- package/dist/actions/models-readme-get.cjs +1 -1
- package/dist/actions/models-readme-get.cjs.map +1 -1
- package/dist/actions/models-readme-get.d.cts +11 -3
- package/dist/actions/models-readme-get.d.cts.map +1 -1
- package/dist/actions/models-readme-get.d.mts +11 -3
- package/dist/actions/models-readme-get.d.mts.map +1 -1
- package/dist/actions/models-readme-get.mjs +1 -1
- package/dist/actions/models-readme-get.mjs.map +1 -1
- package/dist/actions/models-versions-get.cjs +4 -4
- package/dist/actions/models-versions-get.cjs.map +1 -1
- package/dist/actions/models-versions-get.d.cts +16 -3
- package/dist/actions/models-versions-get.d.cts.map +1 -1
- package/dist/actions/models-versions-get.d.mts +16 -3
- package/dist/actions/models-versions-get.d.mts.map +1 -1
- package/dist/actions/models-versions-get.mjs +4 -4
- package/dist/actions/models-versions-get.mjs.map +1 -1
- package/dist/actions/models-versions-list.cjs +5 -5
- package/dist/actions/models-versions-list.cjs.map +1 -1
- package/dist/actions/models-versions-list.d.cts +20 -3
- package/dist/actions/models-versions-list.d.cts.map +1 -1
- package/dist/actions/models-versions-list.d.mts +20 -3
- package/dist/actions/models-versions-list.d.mts.map +1 -1
- package/dist/actions/models-versions-list.mjs +5 -5
- package/dist/actions/models-versions-list.mjs.map +1 -1
- package/dist/actions/predictions-create.cjs +7 -7
- package/dist/actions/predictions-create.cjs.map +1 -1
- package/dist/actions/predictions-create.d.cts +47 -3
- package/dist/actions/predictions-create.d.cts.map +1 -1
- package/dist/actions/predictions-create.d.mts +47 -3
- package/dist/actions/predictions-create.d.mts.map +1 -1
- package/dist/actions/predictions-create.mjs +7 -7
- package/dist/actions/predictions-create.mjs.map +1 -1
- package/dist/actions/predictions-list.cjs +12 -12
- package/dist/actions/predictions-list.cjs.map +1 -1
- package/dist/actions/predictions-list.d.cts +38 -3
- package/dist/actions/predictions-list.d.cts.map +1 -1
- package/dist/actions/predictions-list.d.mts +38 -3
- package/dist/actions/predictions-list.d.mts.map +1 -1
- package/dist/actions/predictions-list.mjs +12 -12
- package/dist/actions/predictions-list.mjs.map +1 -1
- package/dist/actions/search.cjs +28 -28
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +80 -3
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +80 -3
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +28 -28
- package/dist/actions/search.mjs.map +1 -1
- package/dist/actions/trainings-cancel.cjs +8 -8
- package/dist/actions/trainings-cancel.cjs.map +1 -1
- package/dist/actions/trainings-cancel.d.cts +26 -3
- package/dist/actions/trainings-cancel.d.cts.map +1 -1
- package/dist/actions/trainings-cancel.d.mts +26 -3
- package/dist/actions/trainings-cancel.d.mts.map +1 -1
- package/dist/actions/trainings-cancel.mjs +8 -8
- package/dist/actions/trainings-cancel.mjs.map +1 -1
- package/dist/actions/trainings-create.cjs +8 -8
- package/dist/actions/trainings-create.cjs.map +1 -1
- package/dist/actions/trainings-create.d.cts +46 -3
- package/dist/actions/trainings-create.d.cts.map +1 -1
- package/dist/actions/trainings-create.d.mts +46 -3
- package/dist/actions/trainings-create.d.mts.map +1 -1
- package/dist/actions/trainings-create.mjs +8 -8
- package/dist/actions/trainings-create.mjs.map +1 -1
- package/dist/actions/trainings-list.cjs +13 -13
- package/dist/actions/trainings-list.cjs.map +1 -1
- package/dist/actions/trainings-list.d.cts +35 -3
- package/dist/actions/trainings-list.d.cts.map +1 -1
- package/dist/actions/trainings-list.d.mts +35 -3
- package/dist/actions/trainings-list.d.mts.map +1 -1
- package/dist/actions/trainings-list.mjs +13 -13
- package/dist/actions/trainings-list.mjs.map +1 -1
- package/dist/actions/update-models.cjs +7 -7
- package/dist/actions/update-models.cjs.map +1 -1
- package/dist/actions/update-models.d.cts +35 -3
- package/dist/actions/update-models.d.cts.map +1 -1
- package/dist/actions/update-models.d.mts +35 -3
- package/dist/actions/update-models.d.mts.map +1 -1
- package/dist/actions/update-models.mjs +7 -7
- package/dist/actions/update-models.mjs.map +1 -1
- package/dist/actions/webhooks-secret-get.cjs +1 -1
- package/dist/actions/webhooks-secret-get.cjs.map +1 -1
- package/dist/actions/webhooks-secret-get.d.cts +5 -3
- package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
- package/dist/actions/webhooks-secret-get.d.mts +5 -3
- package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
- package/dist/actions/webhooks-secret-get.mjs +1 -1
- package/dist/actions/webhooks-secret-get.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -3,11 +3,11 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-prediction.ts
|
|
4
4
|
const ReplicateGetPredictionInput = zod.z.object({ prediction_id: zod.z.string().describe("The ID of the prediction to get") }).describe("Request schema for getting a prediction by ID.");
|
|
5
5
|
const ReplicateGetPrediction_GetPredictionUrlsSchema = zod.z.object({
|
|
6
|
-
get: zod.z.string().describe("Retrieve the latest state of the prediction via API"),
|
|
6
|
+
get: zod.z.string().describe("Retrieve the latest state of the prediction via API").nullable(),
|
|
7
7
|
web: zod.z.string().describe("View the prediction in a browser").nullable().optional(),
|
|
8
|
-
cancel: zod.z.string().describe("Cancel the prediction via API"),
|
|
8
|
+
cancel: zod.z.string().describe("Cancel the prediction via API").nullable(),
|
|
9
9
|
stream: zod.z.string().describe("An event source to stream the output of the prediction via API").nullable().optional()
|
|
10
|
-
}).describe("URLs for working with the prediction.");
|
|
10
|
+
}).passthrough().describe("URLs for working with the prediction.");
|
|
11
11
|
const ReplicateGetPrediction_PredictionSourceSchema = zod.z.enum(["web", "api"]).describe("Source of a prediction.");
|
|
12
12
|
const ReplicateGetPrediction_PredictionStatusSchema = zod.z.enum([
|
|
13
13
|
"starting",
|
|
@@ -17,14 +17,14 @@ const ReplicateGetPrediction_PredictionStatusSchema = zod.z.enum([
|
|
|
17
17
|
"canceled",
|
|
18
18
|
"aborted"
|
|
19
19
|
]).describe("Status of a prediction.");
|
|
20
|
-
const ReplicateGetPrediction_GetPredictionMetricsSchema = zod.z.object({ total_time: zod.z.number().describe("The total time, in seconds, that the prediction took to complete").nullable().optional() }).describe("Additional metrics associated with the prediction.");
|
|
20
|
+
const ReplicateGetPrediction_GetPredictionMetricsSchema = zod.z.object({ total_time: zod.z.number().describe("The total time, in seconds, that the prediction took to complete").nullable().optional() }).passthrough().describe("Additional metrics associated with the prediction.");
|
|
21
21
|
const ReplicateGetPredictionOutput = zod.z.object({
|
|
22
|
-
id: zod.z.string().describe("Unique identifier for this prediction"),
|
|
22
|
+
id: zod.z.string().describe("Unique identifier for this prediction").nullable(),
|
|
23
23
|
logs: zod.z.string().describe("The log output from the model").nullable().optional(),
|
|
24
24
|
urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),
|
|
25
25
|
error: zod.z.string().describe("An error string if the model status is 'failed'").nullable().optional(),
|
|
26
|
-
input: zod.z.
|
|
27
|
-
model: zod.z.string().describe("The name of the model that created the prediction"),
|
|
26
|
+
input: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The prediction input"),
|
|
27
|
+
model: zod.z.string().describe("The name of the model that created the prediction").nullable(),
|
|
28
28
|
output: zod.z.union([
|
|
29
29
|
zod.z.string(),
|
|
30
30
|
zod.z.number().int(),
|
|
@@ -36,14 +36,14 @@ const ReplicateGetPredictionOutput = zod.z.object({
|
|
|
36
36
|
source: ReplicateGetPrediction_PredictionSourceSchema.nullable().optional(),
|
|
37
37
|
status: ReplicateGetPrediction_PredictionStatusSchema.nullable(),
|
|
38
38
|
metrics: ReplicateGetPrediction_GetPredictionMetricsSchema.nullable().optional(),
|
|
39
|
-
version: zod.z.string().describe("The model version that created the prediction"),
|
|
39
|
+
version: zod.z.string().describe("The model version that created the prediction").nullable(),
|
|
40
40
|
deadline: zod.z.string().describe("The absolute time at which the prediction will be automatically canceled if it has not completed").nullable().optional(),
|
|
41
|
-
created_at: zod.z.string().describe("The time that the prediction was created"),
|
|
41
|
+
created_at: zod.z.string().describe("The time that the prediction was created").nullable(),
|
|
42
42
|
deployment: zod.z.string().describe("The name of the deployment that created the prediction").nullable().optional(),
|
|
43
43
|
started_at: zod.z.string().describe("The time that the model began the prediction").nullable().optional(),
|
|
44
44
|
completed_at: zod.z.string().describe("The time that the model completed the prediction and all outputs were uploaded").nullable().optional(),
|
|
45
|
-
data_removed: zod.z.boolean().describe("Whether the prediction output has been deleted")
|
|
46
|
-
}).describe("Response schema for getting a prediction.");
|
|
45
|
+
data_removed: zod.z.boolean().describe("Whether the prediction output has been deleted").nullable()
|
|
46
|
+
}).passthrough().describe("Response schema for getting a prediction.");
|
|
47
47
|
const replicateGetPrediction = require_action.action("REPLICATE_GET_PREDICTION", {
|
|
48
48
|
slug: "replicate-get-prediction",
|
|
49
49
|
name: "Get Prediction",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prediction.cjs","names":["z","action"],"sources":["../../src/actions/get-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateGetPredictionInput
|
|
1
|
+
{"version":3,"file":"get-prediction.cjs","names":["z","action"],"sources":["../../src/actions/get-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateGetPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to get\"),\n}).describe(\"Request schema for getting a prediction by ID.\");\nconst ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({\n get: z.string().describe(\"Retrieve the latest state of the prediction via API\").nullable(),\n web: z.string().describe(\"View the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"Cancel the prediction via API\").nullable(),\n stream: z.string().describe(\"An event source to stream the output of the prediction via API\").nullable().optional(),\n}).passthrough().describe(\"URLs for working with the prediction.\");\nconst ReplicateGetPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateGetPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"The total time, in seconds, that the prediction took to complete\").nullable().optional(),\n}).passthrough().describe(\"Additional metrics associated with the prediction.\");\nexport const ReplicateGetPredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").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: ReplicateGetPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateGetPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateGetPrediction_GetPredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The model version that created the prediction\").nullable(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for getting a prediction.\");\n\nexport const replicateGetPrediction = action(\"REPLICATE_GET_PREDICTION\", {\n slug: \"replicate-get-prediction\",\n name: \"Get Prediction\",\n description: \"Tool to get the status and output of a prediction by its ID. Use when you need to check on a running prediction or retrieve the results of a completed prediction.\",\n input: ReplicateGetPredictionInput,\n output: ReplicateGetPredictionOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1,9 +1,48 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-prediction.d.ts
|
|
4
|
-
declare const ReplicateGetPredictionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateGetPredictionInput: z.ZodObject<{
|
|
5
|
+
prediction_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ReplicateGetPredictionOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
urls: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
get: z.ZodNullable<z.ZodString>;
|
|
12
|
+
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
14
|
+
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
+
model: z.ZodNullable<z.ZodString>;
|
|
19
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
20
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
21
|
+
web: "web";
|
|
22
|
+
api: "api";
|
|
23
|
+
}>>>;
|
|
24
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
25
|
+
starting: "starting";
|
|
26
|
+
processing: "processing";
|
|
27
|
+
succeeded: "succeeded";
|
|
28
|
+
failed: "failed";
|
|
29
|
+
canceled: "canceled";
|
|
30
|
+
aborted: "aborted";
|
|
31
|
+
}>>;
|
|
32
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
|
+
version: z.ZodNullable<z.ZodString>;
|
|
36
|
+
deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
38
|
+
deployment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
data_removed: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
|
+
declare const replicateGetPrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
|
+
prediction_id: string;
|
|
45
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
46
|
//#endregion
|
|
8
47
|
export { replicateGetPrediction };
|
|
9
48
|
//# sourceMappingURL=get-prediction.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prediction.d.cts","names":[],"sources":["../../src/actions/get-prediction.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-prediction.d.cts","names":[],"sources":["../../src/actions/get-prediction.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAc3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,48 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-prediction.d.ts
|
|
4
|
-
declare const ReplicateGetPredictionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateGetPredictionInput: z.ZodObject<{
|
|
5
|
+
prediction_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ReplicateGetPredictionOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
urls: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
get: z.ZodNullable<z.ZodString>;
|
|
12
|
+
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
14
|
+
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
+
model: z.ZodNullable<z.ZodString>;
|
|
19
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
20
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
21
|
+
web: "web";
|
|
22
|
+
api: "api";
|
|
23
|
+
}>>>;
|
|
24
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
25
|
+
starting: "starting";
|
|
26
|
+
processing: "processing";
|
|
27
|
+
succeeded: "succeeded";
|
|
28
|
+
failed: "failed";
|
|
29
|
+
canceled: "canceled";
|
|
30
|
+
aborted: "aborted";
|
|
31
|
+
}>>;
|
|
32
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
|
+
version: z.ZodNullable<z.ZodString>;
|
|
36
|
+
deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
38
|
+
deployment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
data_removed: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
+
}, z.core.$loose>;
|
|
43
|
+
declare const replicateGetPrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
|
+
prediction_id: string;
|
|
45
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
46
|
//#endregion
|
|
8
47
|
export { replicateGetPrediction };
|
|
9
48
|
//# sourceMappingURL=get-prediction.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prediction.d.mts","names":[],"sources":["../../src/actions/get-prediction.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-prediction.d.mts","names":[],"sources":["../../src/actions/get-prediction.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAc3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -3,11 +3,11 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-prediction.ts
|
|
4
4
|
const ReplicateGetPredictionInput = z.object({ prediction_id: z.string().describe("The ID of the prediction to get") }).describe("Request schema for getting a prediction by ID.");
|
|
5
5
|
const ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({
|
|
6
|
-
get: z.string().describe("Retrieve the latest state of the prediction via API"),
|
|
6
|
+
get: z.string().describe("Retrieve the latest state of the prediction via API").nullable(),
|
|
7
7
|
web: z.string().describe("View the prediction in a browser").nullable().optional(),
|
|
8
|
-
cancel: z.string().describe("Cancel the prediction via API"),
|
|
8
|
+
cancel: z.string().describe("Cancel the prediction via API").nullable(),
|
|
9
9
|
stream: z.string().describe("An event source to stream the output of the prediction via API").nullable().optional()
|
|
10
|
-
}).describe("URLs for working with the prediction.");
|
|
10
|
+
}).passthrough().describe("URLs for working with the prediction.");
|
|
11
11
|
const ReplicateGetPrediction_PredictionSourceSchema = z.enum(["web", "api"]).describe("Source of a prediction.");
|
|
12
12
|
const ReplicateGetPrediction_PredictionStatusSchema = z.enum([
|
|
13
13
|
"starting",
|
|
@@ -17,19 +17,19 @@ const ReplicateGetPrediction_PredictionStatusSchema = z.enum([
|
|
|
17
17
|
"canceled",
|
|
18
18
|
"aborted"
|
|
19
19
|
]).describe("Status of a prediction.");
|
|
20
|
-
const ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({ total_time: z.number().describe("The total time, in seconds, that the prediction took to complete").nullable().optional() }).describe("Additional metrics associated with the prediction.");
|
|
20
|
+
const ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({ total_time: z.number().describe("The total time, in seconds, that the prediction took to complete").nullable().optional() }).passthrough().describe("Additional metrics associated with the prediction.");
|
|
21
21
|
const replicateGetPrediction = action("REPLICATE_GET_PREDICTION", {
|
|
22
22
|
slug: "replicate-get-prediction",
|
|
23
23
|
name: "Get Prediction",
|
|
24
24
|
description: "Tool to get the status and output of a prediction by its ID. Use when you need to check on a running prediction or retrieve the results of a completed prediction.",
|
|
25
25
|
input: ReplicateGetPredictionInput,
|
|
26
26
|
output: z.object({
|
|
27
|
-
id: z.string().describe("Unique identifier for this prediction"),
|
|
27
|
+
id: z.string().describe("Unique identifier for this prediction").nullable(),
|
|
28
28
|
logs: z.string().describe("The log output from the model").nullable().optional(),
|
|
29
29
|
urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),
|
|
30
30
|
error: z.string().describe("An error string if the model status is 'failed'").nullable().optional(),
|
|
31
|
-
input: z.
|
|
32
|
-
model: z.string().describe("The name of the model that created the prediction"),
|
|
31
|
+
input: z.record(z.string(), z.unknown()).describe("The prediction input"),
|
|
32
|
+
model: z.string().describe("The name of the model that created the prediction").nullable(),
|
|
33
33
|
output: z.union([
|
|
34
34
|
z.string(),
|
|
35
35
|
z.number().int(),
|
|
@@ -41,14 +41,14 @@ const replicateGetPrediction = action("REPLICATE_GET_PREDICTION", {
|
|
|
41
41
|
source: ReplicateGetPrediction_PredictionSourceSchema.nullable().optional(),
|
|
42
42
|
status: ReplicateGetPrediction_PredictionStatusSchema.nullable(),
|
|
43
43
|
metrics: ReplicateGetPrediction_GetPredictionMetricsSchema.nullable().optional(),
|
|
44
|
-
version: z.string().describe("The model version that created the prediction"),
|
|
44
|
+
version: z.string().describe("The model version that created the prediction").nullable(),
|
|
45
45
|
deadline: z.string().describe("The absolute time at which the prediction will be automatically canceled if it has not completed").nullable().optional(),
|
|
46
|
-
created_at: z.string().describe("The time that the prediction was created"),
|
|
46
|
+
created_at: z.string().describe("The time that the prediction was created").nullable(),
|
|
47
47
|
deployment: z.string().describe("The name of the deployment that created the prediction").nullable().optional(),
|
|
48
48
|
started_at: z.string().describe("The time that the model began the prediction").nullable().optional(),
|
|
49
49
|
completed_at: z.string().describe("The time that the model completed the prediction and all outputs were uploaded").nullable().optional(),
|
|
50
|
-
data_removed: z.boolean().describe("Whether the prediction output has been deleted")
|
|
51
|
-
}).describe("Response schema for getting a prediction.")
|
|
50
|
+
data_removed: z.boolean().describe("Whether the prediction output has been deleted").nullable()
|
|
51
|
+
}).passthrough().describe("Response schema for getting a prediction.")
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
54
|
export { replicateGetPrediction };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prediction.mjs","names":[],"sources":["../../src/actions/get-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateGetPredictionInput
|
|
1
|
+
{"version":3,"file":"get-prediction.mjs","names":[],"sources":["../../src/actions/get-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateGetPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to get\"),\n}).describe(\"Request schema for getting a prediction by ID.\");\nconst ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({\n get: z.string().describe(\"Retrieve the latest state of the prediction via API\").nullable(),\n web: z.string().describe(\"View the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"Cancel the prediction via API\").nullable(),\n stream: z.string().describe(\"An event source to stream the output of the prediction via API\").nullable().optional(),\n}).passthrough().describe(\"URLs for working with the prediction.\");\nconst ReplicateGetPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateGetPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"The total time, in seconds, that the prediction took to complete\").nullable().optional(),\n}).passthrough().describe(\"Additional metrics associated with the prediction.\");\nexport const ReplicateGetPredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").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: ReplicateGetPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateGetPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateGetPrediction_GetPredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The model version that created the prediction\").nullable(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for getting a prediction.\");\n\nexport const replicateGetPrediction = action(\"REPLICATE_GET_PREDICTION\", {\n slug: \"replicate-get-prediction\",\n name: \"Get Prediction\",\n description: \"Tool to get the status and output of a prediction by its ID. Use when you need to check on a running prediction or retrieve the results of a completed prediction.\",\n input: ReplicateGetPredictionInput,\n output: ReplicateGetPredictionOutput,\n});\n"],"mappings":"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"}
|
|
@@ -3,10 +3,10 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/hardware-list.ts
|
|
4
4
|
const ReplicateHardwareListInput = zod.z.object({}).describe("No parameters are required for listing hardware.");
|
|
5
5
|
const ReplicateHardwareList_HardwareSchema = zod.z.object({
|
|
6
|
-
sku: zod.z.string().describe("Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')"),
|
|
7
|
-
name: zod.z.string().describe("Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')")
|
|
8
|
-
}).describe("Representation of a hardware SKU.");
|
|
9
|
-
const ReplicateHardwareListOutput = zod.z.object({ hardware: zod.z.array(ReplicateHardwareList_HardwareSchema).describe("List of available hardware SKUs for models and deployments") }).describe("List of available hardware SKUs.");
|
|
6
|
+
sku: zod.z.string().describe("Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')").nullable(),
|
|
7
|
+
name: zod.z.string().describe("Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')").nullable()
|
|
8
|
+
}).passthrough().describe("Representation of a hardware SKU.");
|
|
9
|
+
const ReplicateHardwareListOutput = zod.z.object({ hardware: zod.z.array(ReplicateHardwareList_HardwareSchema).describe("List of available hardware SKUs for models and deployments") }).passthrough().describe("List of available hardware SKUs.");
|
|
10
10
|
const replicateHardwareList = require_action.action("REPLICATE_HARDWARE_LIST", {
|
|
11
11
|
slug: "replicate-hardware-list",
|
|
12
12
|
name: "List Available Hardware",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware-list.cjs","names":["z","action"],"sources":["../../src/actions/hardware-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateHardwareListInput
|
|
1
|
+
{"version":3,"file":"hardware-list.cjs","names":["z","action"],"sources":["../../src/actions/hardware-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateHardwareListInput = z.object({}).describe(\"No parameters are required for listing hardware.\");\nconst ReplicateHardwareList_HardwareSchema = z.object({\n sku: z.string().describe(\"Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')\").nullable(),\n name: z.string().describe(\"Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')\").nullable(),\n}).passthrough().describe(\"Representation of a hardware SKU.\");\nexport const ReplicateHardwareListOutput = z.object({\n hardware: z.array(ReplicateHardwareList_HardwareSchema).describe(\"List of available hardware SKUs for models and deployments\"),\n}).passthrough().describe(\"List of available hardware SKUs.\");\n\nexport const replicateHardwareList = action(\"REPLICATE_HARDWARE_LIST\", {\n slug: \"replicate-hardware-list\",\n name: \"List Available Hardware\",\n description: \"Tool to list available hardware SKUs for models and deployments. Use when you need to see what hardware options are available on the Replicate platform.\",\n input: ReplicateHardwareListInput,\n output: ReplicateHardwareListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAClH,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC9G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,UAAUA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4DAA4D,EAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/hardware-list.d.ts
|
|
4
|
-
declare const ReplicateHardwareListInput: z.
|
|
5
|
-
declare const ReplicateHardwareListOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ReplicateHardwareListInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ReplicateHardwareListOutput: z.ZodObject<{
|
|
6
|
+
hardware: z.ZodArray<z.ZodObject<{
|
|
7
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const replicateHardwareList: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
12
|
//#endregion
|
|
8
13
|
export { replicateHardwareList };
|
|
9
14
|
//# sourceMappingURL=hardware-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware-list.d.cts","names":[],"sources":["../../src/actions/hardware-list.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"hardware-list.d.cts","names":[],"sources":["../../src/actions/hardware-list.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAK1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/hardware-list.d.ts
|
|
4
|
-
declare const ReplicateHardwareListInput: z.
|
|
5
|
-
declare const ReplicateHardwareListOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ReplicateHardwareListInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ReplicateHardwareListOutput: z.ZodObject<{
|
|
6
|
+
hardware: z.ZodArray<z.ZodObject<{
|
|
7
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const replicateHardwareList: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
12
|
//#endregion
|
|
8
13
|
export { replicateHardwareList };
|
|
9
14
|
//# sourceMappingURL=hardware-list.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware-list.d.mts","names":[],"sources":["../../src/actions/hardware-list.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"hardware-list.d.mts","names":[],"sources":["../../src/actions/hardware-list.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAK1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,15 +3,15 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/hardware-list.ts
|
|
4
4
|
const ReplicateHardwareListInput = z.object({}).describe("No parameters are required for listing hardware.");
|
|
5
5
|
const ReplicateHardwareList_HardwareSchema = z.object({
|
|
6
|
-
sku: z.string().describe("Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')"),
|
|
7
|
-
name: z.string().describe("Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')")
|
|
8
|
-
}).describe("Representation of a hardware SKU.");
|
|
6
|
+
sku: z.string().describe("Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')").nullable(),
|
|
7
|
+
name: z.string().describe("Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')").nullable()
|
|
8
|
+
}).passthrough().describe("Representation of a hardware SKU.");
|
|
9
9
|
const replicateHardwareList = action("REPLICATE_HARDWARE_LIST", {
|
|
10
10
|
slug: "replicate-hardware-list",
|
|
11
11
|
name: "List Available Hardware",
|
|
12
12
|
description: "Tool to list available hardware SKUs for models and deployments. Use when you need to see what hardware options are available on the Replicate platform.",
|
|
13
13
|
input: ReplicateHardwareListInput,
|
|
14
|
-
output: z.object({ hardware: z.array(ReplicateHardwareList_HardwareSchema).describe("List of available hardware SKUs for models and deployments") }).describe("List of available hardware SKUs.")
|
|
14
|
+
output: z.object({ hardware: z.array(ReplicateHardwareList_HardwareSchema).describe("List of available hardware SKUs for models and deployments") }).passthrough().describe("List of available hardware SKUs.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { replicateHardwareList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware-list.mjs","names":[],"sources":["../../src/actions/hardware-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateHardwareListInput
|
|
1
|
+
{"version":3,"file":"hardware-list.mjs","names":[],"sources":["../../src/actions/hardware-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateHardwareListInput = z.object({}).describe(\"No parameters are required for listing hardware.\");\nconst ReplicateHardwareList_HardwareSchema = z.object({\n sku: z.string().describe(\"Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')\").nullable(),\n name: z.string().describe(\"Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')\").nullable(),\n}).passthrough().describe(\"Representation of a hardware SKU.\");\nexport const ReplicateHardwareListOutput = z.object({\n hardware: z.array(ReplicateHardwareList_HardwareSchema).describe(\"List of available hardware SKUs for models and deployments\"),\n}).passthrough().describe(\"List of available hardware SKUs.\");\n\nexport const replicateHardwareList = action(\"REPLICATE_HARDWARE_LIST\", {\n slug: \"replicate-hardware-list\",\n name: \"List Available Hardware\",\n description: \"Tool to list available hardware SKUs for models and deployments. Use when you need to see what hardware options are available on the Replicate platform.\",\n input: ReplicateHardwareListInput,\n output: ReplicateHardwareListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAClH,MAAM,uCAAuC,EAAE,OAAO;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC9G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAK7D,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4DAA4D,EAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAOhB;AACV,CAAC"}
|
|
@@ -7,39 +7,39 @@ const ReplicateModelsExamplesListInput = zod.z.object({
|
|
|
7
7
|
model_owner: zod.z.string().describe("The name of the user or organization that owns the model. Must exactly match the Replicate URL slug (case-sensitive).")
|
|
8
8
|
}).describe("Request schema for listing example predictions for a specific model.");
|
|
9
9
|
const ReplicateModelsExamplesList_ExampleUrlsSchema = zod.z.object({
|
|
10
|
-
get: zod.z.string().describe("URL to get the prediction details."),
|
|
11
|
-
cancel: zod.z.string().describe("URL to cancel the prediction."),
|
|
10
|
+
get: zod.z.string().describe("URL to get the prediction details.").nullable(),
|
|
11
|
+
cancel: zod.z.string().describe("URL to cancel the prediction.").nullable(),
|
|
12
12
|
stream: zod.z.string().describe("URL to stream the prediction output, if available.").nullable().optional()
|
|
13
|
-
}).describe("URLs associated with a prediction.");
|
|
13
|
+
}).passthrough().describe("URLs associated with a prediction.");
|
|
14
14
|
const ReplicateModelsExamplesList_ExampleMetricsSchema = zod.z.object({
|
|
15
15
|
total_time: zod.z.number().describe("Total time including overhead in seconds.").nullable().optional(),
|
|
16
16
|
predict_time: zod.z.number().describe("Time taken for prediction in seconds.").nullable().optional()
|
|
17
|
-
}).describe("Metrics for a prediction.");
|
|
17
|
+
}).passthrough().describe("Metrics for a prediction.");
|
|
18
18
|
const ReplicateModelsExamplesList_ExamplePredictionSchema = zod.z.object({
|
|
19
|
-
id: zod.z.string().describe("Unique identifier of the example prediction."),
|
|
19
|
+
id: zod.z.string().describe("Unique identifier of the example prediction.").nullable(),
|
|
20
20
|
logs: zod.z.string().describe("Text output from the model's execution.").nullable().optional(),
|
|
21
21
|
urls: ReplicateModelsExamplesList_ExampleUrlsSchema.nullable().optional(),
|
|
22
22
|
error: zod.z.string().describe("Error message if the prediction failed.").nullable().optional(),
|
|
23
23
|
input: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Input JSON object provided to the model for the example.").nullable().optional(),
|
|
24
|
-
model: zod.z.string().describe("Model identifier in format {owner}/{name}."),
|
|
24
|
+
model: zod.z.string().describe("Model identifier in format {owner}/{name}.").nullable(),
|
|
25
25
|
output: zod.z.union([
|
|
26
26
|
zod.z.string(),
|
|
27
27
|
zod.z.record(zod.z.string(), zod.z.unknown()),
|
|
28
28
|
zod.z.array(zod.z.unknown())
|
|
29
29
|
]).nullable().optional(),
|
|
30
|
-
status: zod.z.string().describe("Status of the prediction: starting, processing, succeeded, failed, or canceled."),
|
|
30
|
+
status: zod.z.string().describe("Status of the prediction: starting, processing, succeeded, failed, or canceled.").nullable(),
|
|
31
31
|
metrics: ReplicateModelsExamplesList_ExampleMetricsSchema.nullable().optional(),
|
|
32
|
-
version: zod.z.string().describe("64-character version ID of the model used."),
|
|
33
|
-
created_at: zod.z.string().describe("Timestamp when the example was created (ISO 8601)."),
|
|
32
|
+
version: zod.z.string().describe("64-character version ID of the model used.").nullable(),
|
|
33
|
+
created_at: zod.z.string().describe("Timestamp when the example was created (ISO 8601).").nullable(),
|
|
34
34
|
started_at: zod.z.string().describe("Timestamp when prediction processing began (ISO 8601).").nullable().optional(),
|
|
35
35
|
completed_at: zod.z.string().describe("Timestamp when prediction finished (ISO 8601), if available.").nullable().optional(),
|
|
36
36
|
data_removed: zod.z.boolean().describe("Whether input/output data has been deleted.").nullable().optional()
|
|
37
|
-
}).describe("Represents a saved example prediction of a model.");
|
|
37
|
+
}).passthrough().describe("Represents a saved example prediction of a model.");
|
|
38
38
|
const ReplicateModelsExamplesListOutput = zod.z.object({
|
|
39
39
|
next: zod.z.string().describe("URL to fetch the next page of results, if any.").nullable().optional(),
|
|
40
40
|
results: zod.z.array(ReplicateModelsExamplesList_ExamplePredictionSchema).describe("List of example prediction objects."),
|
|
41
41
|
previous: zod.z.string().describe("URL to fetch the previous page of results, if any.").nullable().optional()
|
|
42
|
-
}).describe("Paginated list of example predictions for a model.");
|
|
42
|
+
}).passthrough().describe("Paginated list of example predictions for a model.");
|
|
43
43
|
const replicateModelsExamplesList = require_action.action("REPLICATE_MODELS_EXAMPLES_LIST", {
|
|
44
44
|
slug: "replicate-models-examples-list",
|
|
45
45
|
name: "List model examples",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-examples-list.cjs","names":["z","action"],"sources":["../../src/actions/models-examples-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsExamplesListInput
|
|
1
|
+
{"version":3,"file":"models-examples-list.cjs","names":["z","action"],"sources":["../../src/actions/models-examples-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsExamplesListInput = 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 to list examples for. Must exactly match the Replicate URL slug (case-sensitive).\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model. Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for listing example predictions for a specific model.\");\nconst ReplicateModelsExamplesList_ExampleUrlsSchema = z.object({\n get: z.string().describe(\"URL to get the prediction details.\").nullable(),\n cancel: z.string().describe(\"URL to cancel the prediction.\").nullable(),\n stream: z.string().describe(\"URL to stream the prediction output, if available.\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\");\nconst ReplicateModelsExamplesList_ExampleMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time including overhead in seconds.\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Metrics for a prediction.\");\nconst ReplicateModelsExamplesList_ExamplePredictionSchema = z.object({\n id: z.string().describe(\"Unique identifier of the example prediction.\").nullable(),\n logs: z.string().describe(\"Text output from the model's execution.\").nullable().optional(),\n urls: ReplicateModelsExamplesList_ExampleUrlsSchema.nullable().optional(),\n error: z.string().describe(\"Error message if the prediction failed.\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input JSON object provided to the model for the example.\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}.\").nullable(),\n output: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Status of the prediction: starting, processing, succeeded, failed, or canceled.\").nullable(),\n metrics: ReplicateModelsExamplesList_ExampleMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the model used.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the example was created (ISO 8601).\").nullable(),\n started_at: z.string().describe(\"Timestamp when prediction processing began (ISO 8601).\").nullable().optional(),\n completed_at: z.string().describe(\"Timestamp when prediction finished (ISO 8601), if available.\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data has been deleted.\").nullable().optional(),\n}).passthrough().describe(\"Represents a saved example prediction of a model.\");\nexport const ReplicateModelsExamplesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any.\").nullable().optional(),\n results: z.array(ReplicateModelsExamplesList_ExamplePredictionSchema).describe(\"List of example prediction objects.\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any.\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of example predictions for a model.\");\n\nexport const replicateModelsExamplesList = action(\"REPLICATE_MODELS_EXAMPLES_LIST\", {\n slug: \"replicate-models-examples-list\",\n name: \"List model examples\",\n description: \"Tool to list example predictions for a specific model. Use when you want to retrieve author-provided illustrative examples after identifying the model. Returned examples are minimal working payloads; cross-reference with REPLICATE_MODELS_README_GET before calling REPLICATE_CREATE_PREDICTION to satisfy strict input validation.\",\n input: ReplicateModelsExamplesListInput,\n output: ReplicateModelsExamplesListOutput,\n});\n"],"mappings":"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"}
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/models-examples-list.d.ts
|
|
4
|
-
declare const ReplicateModelsExamplesListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateModelsExamplesListInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
model_name: z.ZodString;
|
|
7
|
+
model_owner: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ReplicateModelsExamplesListOutput: z.ZodObject<{
|
|
10
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
results: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
urls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
|
+
get: z.ZodNullable<z.ZodString>;
|
|
16
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
17
|
+
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$loose>>>;
|
|
19
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
|
+
model: z.ZodNullable<z.ZodString>;
|
|
22
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
23
|
+
status: z.ZodNullable<z.ZodString>;
|
|
24
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
|
+
version: z.ZodNullable<z.ZodString>;
|
|
29
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
30
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
}, z.core.$loose>;
|
|
36
|
+
declare const replicateModelsExamplesList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
model_name: string;
|
|
38
|
+
model_owner: string;
|
|
39
|
+
cursor?: string | undefined;
|
|
40
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
41
|
//#endregion
|
|
8
42
|
export { replicateModelsExamplesList };
|
|
9
43
|
//# sourceMappingURL=models-examples-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-examples-list.d.cts","names":[],"sources":["../../src/actions/models-examples-list.ts"],"mappings":";;;cAIa,gCAAA,
|
|
1
|
+
{"version":3,"file":"models-examples-list.d.cts","names":[],"sources":["../../src/actions/models-examples-list.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cA8BhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAMjC,2BAAA,gCAA2B,wBAAA"}
|
|
@@ -1,9 +1,43 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/models-examples-list.d.ts
|
|
4
|
-
declare const ReplicateModelsExamplesListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateModelsExamplesListInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
model_name: z.ZodString;
|
|
7
|
+
model_owner: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const ReplicateModelsExamplesListOutput: z.ZodObject<{
|
|
10
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
results: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
urls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
|
+
get: z.ZodNullable<z.ZodString>;
|
|
16
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
17
|
+
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
}, z.core.$loose>>>;
|
|
19
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
|
+
model: z.ZodNullable<z.ZodString>;
|
|
22
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodRecord<z.ZodString, z.ZodUnknown>, z.ZodArray<z.ZodUnknown>]>>>;
|
|
23
|
+
status: z.ZodNullable<z.ZodString>;
|
|
24
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
|
+
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
|
+
version: z.ZodNullable<z.ZodString>;
|
|
29
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
30
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
|
+
data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
|
+
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
}, z.core.$loose>;
|
|
36
|
+
declare const replicateModelsExamplesList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
model_name: string;
|
|
38
|
+
model_owner: string;
|
|
39
|
+
cursor?: string | undefined;
|
|
40
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
41
|
//#endregion
|
|
8
42
|
export { replicateModelsExamplesList };
|
|
9
43
|
//# sourceMappingURL=models-examples-list.d.mts.map
|