@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,31 +3,31 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/collections-get.ts
|
|
4
4
|
const ReplicateCollectionsGetInput = z.object({ collection_slug: z.string().describe("The slug identifier of the collection, e.g., 'super-resolution' or 'text-to-image'") }).describe("Request schema for retrieving a specific collection of models by slug.");
|
|
5
5
|
const ReplicateCollectionsGet_ModelInCollectionSchema = z.object({
|
|
6
|
-
url: z.string().describe("The web URL to the model on Replicate"),
|
|
7
|
-
name: z.string().describe("The model's identifier name"),
|
|
8
|
-
owner: z.string().describe("The username of the user or organization that owns the model"),
|
|
6
|
+
url: z.string().describe("The web URL to the model on Replicate").nullable(),
|
|
7
|
+
name: z.string().describe("The model's identifier name").nullable(),
|
|
8
|
+
owner: z.string().describe("The username of the user or organization that owns the model").nullable(),
|
|
9
9
|
paper_url: z.string().describe("Link to associated research documentation").nullable().optional(),
|
|
10
|
-
run_count: z.number().int().describe("The number of times the model has been run"),
|
|
10
|
+
run_count: z.number().int().describe("The number of times the model has been run").nullable(),
|
|
11
11
|
github_url: z.string().describe("Link to the model's source code repository").nullable().optional(),
|
|
12
|
-
visibility: z.string().describe("Either 'public' or 'private'"),
|
|
12
|
+
visibility: z.string().describe("Either 'public' or 'private'").nullable(),
|
|
13
13
|
description: z.string().describe("A description of the model").nullable().optional(),
|
|
14
14
|
license_url: z.string().describe("Link to the model's license").nullable().optional(),
|
|
15
15
|
latest_version: z.record(z.string(), z.unknown()).describe("The model's most recently pushed version containing schema and metadata").nullable().optional(),
|
|
16
16
|
cover_image_url: z.string().describe("An HTTPS URL for an image file").nullable().optional(),
|
|
17
17
|
default_example: z.record(z.string(), z.unknown()).describe("A prediction created with this model").nullable().optional()
|
|
18
|
-
}).describe("Representation of a model within a collection.");
|
|
18
|
+
}).passthrough().describe("Representation of a model within a collection.");
|
|
19
19
|
const replicateCollectionsGet = action("REPLICATE_COLLECTIONS_GET", {
|
|
20
20
|
slug: "replicate-collections-get",
|
|
21
21
|
name: "Get model collection",
|
|
22
22
|
description: "Tool to get a specific collection of models by its slug. Use when you need detailed information about a collection and its models.",
|
|
23
23
|
input: ReplicateCollectionsGetInput,
|
|
24
24
|
output: z.object({
|
|
25
|
-
name: z.string().describe("Display name of the collection"),
|
|
26
|
-
slug: z.string().describe("URL-friendly identifier for the collection"),
|
|
25
|
+
name: z.string().describe("Display name of the collection").nullable(),
|
|
26
|
+
slug: z.string().describe("URL-friendly identifier for the collection").nullable(),
|
|
27
27
|
models: z.array(ReplicateCollectionsGet_ModelInCollectionSchema).describe("List of model objects belonging to this collection"),
|
|
28
|
-
description: z.string().describe("Brief one-line summary of the collection's purpose"),
|
|
28
|
+
description: z.string().describe("Brief one-line summary of the collection's purpose").nullable(),
|
|
29
29
|
full_description: z.string().describe("Detailed markdown-formatted description with overview and features").nullable().optional()
|
|
30
|
-
}).describe("Response schema for collections.get: Detailed information about a collection.")
|
|
30
|
+
}).passthrough().describe("Response schema for collections.get: Detailed information about a collection.")
|
|
31
31
|
});
|
|
32
32
|
//#endregion
|
|
33
33
|
export { replicateCollectionsGet };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections-get.mjs","names":[],"sources":["../../src/actions/collections-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCollectionsGetInput
|
|
1
|
+
{"version":3,"file":"collections-get.mjs","names":[],"sources":["../../src/actions/collections-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCollectionsGetInput = z.object({\n collection_slug: z.string().describe(\"The slug identifier of the collection, e.g., 'super-resolution' or 'text-to-image'\"),\n}).describe(\"Request schema for retrieving a specific collection of models by slug.\");\nconst ReplicateCollectionsGet_ModelInCollectionSchema = z.object({\n url: z.string().describe(\"The web URL to the model on Replicate\").nullable(),\n name: z.string().describe(\"The model's identifier name\").nullable(),\n owner: z.string().describe(\"The username of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"Link to associated research documentation\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n github_url: z.string().describe(\"Link to the model's source code repository\").nullable().optional(),\n visibility: z.string().describe(\"Either 'public' or 'private'\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n license_url: z.string().describe(\"Link to the model's license\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's most recently pushed version containing schema and metadata\").nullable().optional(),\n cover_image_url: z.string().describe(\"An HTTPS URL for an image file\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"A prediction created with this model\").nullable().optional(),\n}).passthrough().describe(\"Representation of a model within a collection.\");\nexport const ReplicateCollectionsGetOutput = z.object({\n name: z.string().describe(\"Display name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n models: z.array(ReplicateCollectionsGet_ModelInCollectionSchema).describe(\"List of model objects belonging to this collection\"),\n description: z.string().describe(\"Brief one-line summary of the collection's purpose\").nullable(),\n full_description: z.string().describe(\"Detailed markdown-formatted description with overview and features\").nullable().optional(),\n}).passthrough().describe(\"Response schema for collections.get: Detailed information about a collection.\");\n\nexport const replicateCollectionsGet = action(\"REPLICATE_COLLECTIONS_GET\", {\n slug: \"replicate-collections-get\",\n name: \"Get model collection\",\n description: \"Tool to get a specific collection of models by its slug. Use when you need detailed information about a collection and its models.\",\n input: ReplicateCollectionsGetInput,\n output: ReplicateCollectionsGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO,EACnD,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,EAC3H,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,kDAAkD,EAAE,OAAO;CAC/D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAS1E,MAAa,0BAA0B,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAb2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACrE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EACjF,QAAQ,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,oDAAoD;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAChG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAOhB;AACV,CAAC"}
|
|
@@ -3,15 +3,15 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/collections-list.ts
|
|
4
4
|
const ReplicateCollectionsListInput = zod.z.object({ cursor: zod.z.string().describe("Cursor for pagination. Use the cursor from 'next' URL of previous response.").optional() }).describe("Request schema for listing collections with optional pagination.");
|
|
5
5
|
const ReplicateCollectionsList_CollectionSchema = zod.z.object({
|
|
6
|
-
name: zod.z.string().describe("Human-readable display name of the collection"),
|
|
7
|
-
slug: zod.z.string().describe("URL-friendly identifier for the collection"),
|
|
8
|
-
description: zod.z.string().describe("Brief description of the collection's purpose")
|
|
9
|
-
}).describe("Representation of a model collection.");
|
|
6
|
+
name: zod.z.string().describe("Human-readable display name of the collection").nullable(),
|
|
7
|
+
slug: zod.z.string().describe("URL-friendly identifier for the collection").nullable(),
|
|
8
|
+
description: zod.z.string().describe("Brief description of the collection's purpose").nullable()
|
|
9
|
+
}).passthrough().describe("Representation of a model collection.");
|
|
10
10
|
const ReplicateCollectionsListOutput = zod.z.object({
|
|
11
11
|
next: zod.z.string().describe("URL for the next page of results, null if no more pages").nullable().optional(),
|
|
12
12
|
results: zod.z.array(ReplicateCollectionsList_CollectionSchema).describe("Array of collection objects"),
|
|
13
13
|
previous: zod.z.string().describe("URL for the previous page of results, null if on first page").nullable().optional()
|
|
14
|
-
}).describe("Paginated list of model collections.");
|
|
14
|
+
}).passthrough().describe("Paginated list of model collections.");
|
|
15
15
|
const replicateCollectionsList = require_action.action("REPLICATE_COLLECTIONS_LIST", {
|
|
16
16
|
slug: "replicate-collections-list",
|
|
17
17
|
name: "List model collections",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections-list.cjs","names":["z","action"],"sources":["../../src/actions/collections-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCollectionsListInput
|
|
1
|
+
{"version":3,"file":"collections-list.cjs","names":["z","action"],"sources":["../../src/actions/collections-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCollectionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing collections with optional pagination.\");\nconst ReplicateCollectionsList_CollectionSchema = z.object({\n name: z.string().describe(\"Human-readable display name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n description: z.string().describe(\"Brief description of the collection's purpose\").nullable(),\n}).passthrough().describe(\"Representation of a model collection.\");\nexport const ReplicateCollectionsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateCollectionsList_CollectionSchema).describe(\"Array of collection objects\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model collections.\");\n\nexport const replicateCollectionsList = action(\"REPLICATE_COLLECTIONS_LIST\", {\n slug: \"replicate-collections-list\",\n name: \"List model collections\",\n description: \"Tool to list all collections of models. Use when you need to retrieve available model collections. Collections are curated groupings of related models. Response includes only collection metadata (name, slug, description), not individual models within each collection; use REPLICATE_MODELS_GET for per-model details. Response may include a non-null `next` field indicating additional pages; follow it to enumerate all collections.\",\n input: ReplicateCollectionsListInput,\n output: ReplicateCollectionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO,EACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,SAASA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6BAA6B;CAClG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAAsC;AAEhE,MAAa,2BAA2BC,eAAAA,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/collections-list.d.ts
|
|
4
|
-
declare const ReplicateCollectionsListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateCollectionsListInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ReplicateCollectionsListOutput: z.ZodObject<{
|
|
8
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
results: z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
12
|
+
description: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
|
+
declare const replicateCollectionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
|
+
cursor?: string | undefined;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { replicateCollectionsList };
|
|
9
21
|
//# sourceMappingURL=collections-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections-list.d.cts","names":[],"sources":["../../src/actions/collections-list.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"collections-list.d.cts","names":[],"sources":["../../src/actions/collections-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/collections-list.d.ts
|
|
4
|
-
declare const ReplicateCollectionsListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateCollectionsListInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ReplicateCollectionsListOutput: z.ZodObject<{
|
|
8
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
results: z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
12
|
+
description: z.ZodNullable<z.ZodString>;
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
|
+
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$loose>;
|
|
16
|
+
declare const replicateCollectionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
|
+
cursor?: string | undefined;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { replicateCollectionsList };
|
|
9
21
|
//# sourceMappingURL=collections-list.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections-list.d.mts","names":[],"sources":["../../src/actions/collections-list.ts"],"mappings":";;;cAIa,6BAAA,
|
|
1
|
+
{"version":3,"file":"collections-list.d.mts","names":[],"sources":["../../src/actions/collections-list.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;cAQ7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;cAM9B,wBAAA,gCAAwB,wBAAA"}
|
|
@@ -3,10 +3,10 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/collections-list.ts
|
|
4
4
|
const ReplicateCollectionsListInput = z.object({ cursor: z.string().describe("Cursor for pagination. Use the cursor from 'next' URL of previous response.").optional() }).describe("Request schema for listing collections with optional pagination.");
|
|
5
5
|
const ReplicateCollectionsList_CollectionSchema = z.object({
|
|
6
|
-
name: z.string().describe("Human-readable display name of the collection"),
|
|
7
|
-
slug: z.string().describe("URL-friendly identifier for the collection"),
|
|
8
|
-
description: z.string().describe("Brief description of the collection's purpose")
|
|
9
|
-
}).describe("Representation of a model collection.");
|
|
6
|
+
name: z.string().describe("Human-readable display name of the collection").nullable(),
|
|
7
|
+
slug: z.string().describe("URL-friendly identifier for the collection").nullable(),
|
|
8
|
+
description: z.string().describe("Brief description of the collection's purpose").nullable()
|
|
9
|
+
}).passthrough().describe("Representation of a model collection.");
|
|
10
10
|
const replicateCollectionsList = action("REPLICATE_COLLECTIONS_LIST", {
|
|
11
11
|
slug: "replicate-collections-list",
|
|
12
12
|
name: "List model collections",
|
|
@@ -16,7 +16,7 @@ const replicateCollectionsList = action("REPLICATE_COLLECTIONS_LIST", {
|
|
|
16
16
|
next: z.string().describe("URL for the next page of results, null if no more pages").nullable().optional(),
|
|
17
17
|
results: z.array(ReplicateCollectionsList_CollectionSchema).describe("Array of collection objects"),
|
|
18
18
|
previous: z.string().describe("URL for the previous page of results, null if on first page").nullable().optional()
|
|
19
|
-
}).describe("Paginated list of model collections.")
|
|
19
|
+
}).passthrough().describe("Paginated list of model collections.")
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { replicateCollectionsList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections-list.mjs","names":[],"sources":["../../src/actions/collections-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCollectionsListInput
|
|
1
|
+
{"version":3,"file":"collections-list.mjs","names":[],"sources":["../../src/actions/collections-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCollectionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n}).describe(\"Request schema for listing collections with optional pagination.\");\nconst ReplicateCollectionsList_CollectionSchema = z.object({\n name: z.string().describe(\"Human-readable display name of the collection\").nullable(),\n slug: z.string().describe(\"URL-friendly identifier for the collection\").nullable(),\n description: z.string().describe(\"Brief description of the collection's purpose\").nullable(),\n}).passthrough().describe(\"Representation of a model collection.\");\nexport const ReplicateCollectionsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateCollectionsList_CollectionSchema).describe(\"Array of collection objects\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model collections.\");\n\nexport const replicateCollectionsList = action(\"REPLICATE_COLLECTIONS_LIST\", {\n slug: \"replicate-collections-list\",\n name: \"List model collections\",\n description: \"Tool to list all collections of models. Use when you need to retrieve available model collections. Collections are curated groupings of related models. Response includes only collection metadata (name, slug, description), not individual models within each collection; use REPLICATE_MODELS_GET for per-model details. Response may include a non-null `next` field indicating additional pages; follow it to enumerate all collections.\",\n input: ReplicateCollectionsListInput,\n output: ReplicateCollectionsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO,EACpD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;AAC7F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAOjE,MAAa,2BAA2B,OAAO,8BAA8B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzG,SAAS,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,6BAA6B;EAClG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sCAOhB;AACV,CAAC"}
|
|
@@ -13,22 +13,22 @@ const ReplicateCreateModelInput = zod.z.object({
|
|
|
13
13
|
cover_image_url: zod.z.string().describe("A URL for the model's cover image. This should be an image file.").optional()
|
|
14
14
|
}).describe("Request schema for creating a new model.");
|
|
15
15
|
const ReplicateCreateModelOutput = zod.z.object({
|
|
16
|
-
url: zod.z.string().describe("The URL of the model on Replicate"),
|
|
17
|
-
name: zod.z.string().describe("The name of the model"),
|
|
18
|
-
owner: zod.z.string().describe("The name of the user or organization that owns the model"),
|
|
16
|
+
url: zod.z.string().describe("The URL of the model on Replicate").nullable(),
|
|
17
|
+
name: zod.z.string().describe("The name of the model").nullable(),
|
|
18
|
+
owner: zod.z.string().describe("The name of the user or organization that owns the model").nullable(),
|
|
19
19
|
paper_url: zod.z.string().describe("A URL for the model's paper").nullable().optional(),
|
|
20
|
-
run_count: zod.z.number().int().describe("The number of times the model has been run"),
|
|
21
|
-
created_at: zod.z.string().describe("The date and time the model was created (ISO 8601 format)"),
|
|
20
|
+
run_count: zod.z.number().int().describe("The number of times the model has been run").nullable(),
|
|
21
|
+
created_at: zod.z.string().describe("The date and time the model was created (ISO 8601 format)").nullable(),
|
|
22
22
|
github_url: zod.z.string().describe("A URL for the model's source code on GitHub").nullable().optional(),
|
|
23
|
-
visibility: zod.z.string().describe("Whether the model is public or private"),
|
|
23
|
+
visibility: zod.z.string().describe("Whether the model is public or private").nullable(),
|
|
24
24
|
description: zod.z.string().describe("A description of the model").nullable().optional(),
|
|
25
|
-
is_official: zod.z.boolean().describe("Boolean indicating whether the model is officially maintained by Replicate"),
|
|
25
|
+
is_official: zod.z.boolean().describe("Boolean indicating whether the model is officially maintained by Replicate").nullable(),
|
|
26
26
|
license_url: zod.z.string().describe("A URL for the model's license").nullable().optional(),
|
|
27
27
|
weights_url: zod.z.string().describe("A URL to download the model weights, if available").nullable().optional(),
|
|
28
28
|
latest_version: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The model's latest version").nullable().optional(),
|
|
29
29
|
cover_image_url: zod.z.string().describe("A URL for the model's cover image").nullable().optional(),
|
|
30
30
|
default_example: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The model's default example prediction").nullable().optional()
|
|
31
|
-
}).describe("Response schema for creating a model.");
|
|
31
|
+
}).passthrough().describe("Response schema for creating a model.");
|
|
32
32
|
const replicateCreateModel = require_action.action("REPLICATE_CREATE_MODEL", {
|
|
33
33
|
slug: "replicate-create-model",
|
|
34
34
|
name: "Create Model",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-model.cjs","names":["z","action"],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreateModelInput
|
|
1
|
+
{"version":3,"file":"create-model.cjs","names":["z","action"],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreateModelInput = z.object({\n name: z.string().describe(\"The name of the model. This must be unique among all models owned by the user or organization.\"),\n owner: z.string().describe(\"The name of the user or organization that will own the model. This must be the same as the user or organization making the API request.\"),\n hardware: z.string().describe(\"The SKU for the hardware used to run the model. Possible values can be retrieved from the hardware.list endpoint.\"),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n visibility: z.string().describe(\"Whether the model should be public or private. Public models are viewable and runnable by anyone; private models are restricted to owners.\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image. This should be an image file.\").optional(),\n}).describe(\"Request schema for creating a new model.\");\nexport const ReplicateCreateModelOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n created_at: z.string().describe(\"The date and time the model was created (ISO 8601 format)\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n weights_url: z.string().describe(\"A URL to download the model weights, if available\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a model.\");\n\nexport const replicateCreateModel = action(\"REPLICATE_CREATE_MODEL\", {\n slug: \"replicate-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new Replicate model with specified owner, name, visibility, and hardware. Use when you need to create a destination model before launching LoRA/fine-tune training.\",\n input: ReplicateCreateModelInput,\n output: ReplicateCreateModelOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAM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
|
4
|
+
declare const ReplicateCreateModelInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
owner: z.ZodString;
|
|
7
|
+
hardware: z.ZodString;
|
|
8
|
+
paper_url: z.ZodOptional<z.ZodString>;
|
|
9
|
+
github_url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
visibility: z.ZodString;
|
|
11
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12
|
+
license_url: z.ZodOptional<z.ZodString>;
|
|
13
|
+
cover_image_url: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const ReplicateCreateModelOutput: z.ZodObject<{
|
|
16
|
+
url: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
19
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
run_count: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
22
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
visibility: z.ZodNullable<z.ZodString>;
|
|
24
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
is_official: z.ZodNullable<z.ZodBoolean>;
|
|
26
|
+
license_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
weights_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
29
|
+
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
|
+
declare const replicateCreateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
|
+
name: string;
|
|
34
|
+
owner: string;
|
|
35
|
+
hardware: string;
|
|
36
|
+
visibility: string;
|
|
37
|
+
paper_url?: string | undefined;
|
|
38
|
+
github_url?: string | undefined;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
license_url?: string | undefined;
|
|
41
|
+
cover_image_url?: string | undefined;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { replicateCreateModel };
|
|
9
45
|
//# sourceMappingURL=create-model.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-model.d.cts","names":[],"sources":["../../src/actions/create-model.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"create-model.d.cts","names":[],"sources":["../../src/actions/create-model.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkB1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,45 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/create-model.d.ts
|
|
4
|
-
declare const ReplicateCreateModelInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateCreateModelInput: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
owner: z.ZodString;
|
|
7
|
+
hardware: z.ZodString;
|
|
8
|
+
paper_url: z.ZodOptional<z.ZodString>;
|
|
9
|
+
github_url: z.ZodOptional<z.ZodString>;
|
|
10
|
+
visibility: z.ZodString;
|
|
11
|
+
description: z.ZodOptional<z.ZodString>;
|
|
12
|
+
license_url: z.ZodOptional<z.ZodString>;
|
|
13
|
+
cover_image_url: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
declare const ReplicateCreateModelOutput: z.ZodObject<{
|
|
16
|
+
url: z.ZodNullable<z.ZodString>;
|
|
17
|
+
name: z.ZodNullable<z.ZodString>;
|
|
18
|
+
owner: z.ZodNullable<z.ZodString>;
|
|
19
|
+
paper_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
run_count: z.ZodNullable<z.ZodNumber>;
|
|
21
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
22
|
+
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
visibility: z.ZodNullable<z.ZodString>;
|
|
24
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
is_official: z.ZodNullable<z.ZodBoolean>;
|
|
26
|
+
license_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
weights_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
|
+
latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
29
|
+
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
+
default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
31
|
+
}, z.core.$loose>;
|
|
32
|
+
declare const replicateCreateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
|
+
name: string;
|
|
34
|
+
owner: string;
|
|
35
|
+
hardware: string;
|
|
36
|
+
visibility: string;
|
|
37
|
+
paper_url?: string | undefined;
|
|
38
|
+
github_url?: string | undefined;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
license_url?: string | undefined;
|
|
41
|
+
cover_image_url?: string | undefined;
|
|
42
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
43
|
//#endregion
|
|
8
44
|
export { replicateCreateModel };
|
|
9
45
|
//# sourceMappingURL=create-model.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-model.d.mts","names":[],"sources":["../../src/actions/create-model.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"create-model.d.mts","names":[],"sources":["../../src/actions/create-model.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;cAWzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAkB1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -16,22 +16,22 @@ const replicateCreateModel = action("REPLICATE_CREATE_MODEL", {
|
|
|
16
16
|
cover_image_url: z.string().describe("A URL for the model's cover image. This should be an image file.").optional()
|
|
17
17
|
}).describe("Request schema for creating a new model."),
|
|
18
18
|
output: z.object({
|
|
19
|
-
url: z.string().describe("The URL of the model on Replicate"),
|
|
20
|
-
name: z.string().describe("The name of the model"),
|
|
21
|
-
owner: z.string().describe("The name of the user or organization that owns the model"),
|
|
19
|
+
url: z.string().describe("The URL of the model on Replicate").nullable(),
|
|
20
|
+
name: z.string().describe("The name of the model").nullable(),
|
|
21
|
+
owner: z.string().describe("The name of the user or organization that owns the model").nullable(),
|
|
22
22
|
paper_url: z.string().describe("A URL for the model's paper").nullable().optional(),
|
|
23
|
-
run_count: z.number().int().describe("The number of times the model has been run"),
|
|
24
|
-
created_at: z.string().describe("The date and time the model was created (ISO 8601 format)"),
|
|
23
|
+
run_count: z.number().int().describe("The number of times the model has been run").nullable(),
|
|
24
|
+
created_at: z.string().describe("The date and time the model was created (ISO 8601 format)").nullable(),
|
|
25
25
|
github_url: z.string().describe("A URL for the model's source code on GitHub").nullable().optional(),
|
|
26
|
-
visibility: z.string().describe("Whether the model is public or private"),
|
|
26
|
+
visibility: z.string().describe("Whether the model is public or private").nullable(),
|
|
27
27
|
description: z.string().describe("A description of the model").nullable().optional(),
|
|
28
|
-
is_official: z.boolean().describe("Boolean indicating whether the model is officially maintained by Replicate"),
|
|
28
|
+
is_official: z.boolean().describe("Boolean indicating whether the model is officially maintained by Replicate").nullable(),
|
|
29
29
|
license_url: z.string().describe("A URL for the model's license").nullable().optional(),
|
|
30
30
|
weights_url: z.string().describe("A URL to download the model weights, if available").nullable().optional(),
|
|
31
31
|
latest_version: z.record(z.string(), z.unknown()).describe("The model's latest version").nullable().optional(),
|
|
32
32
|
cover_image_url: z.string().describe("A URL for the model's cover image").nullable().optional(),
|
|
33
33
|
default_example: z.record(z.string(), z.unknown()).describe("The model's default example prediction").nullable().optional()
|
|
34
|
-
}).describe("Response schema for creating a model.")
|
|
34
|
+
}).passthrough().describe("Response schema for creating a model.")
|
|
35
35
|
});
|
|
36
36
|
//#endregion
|
|
37
37
|
export { replicateCreateModel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-model.mjs","names":[],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreateModelInput
|
|
1
|
+
{"version":3,"file":"create-model.mjs","names":[],"sources":["../../src/actions/create-model.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreateModelInput = z.object({\n name: z.string().describe(\"The name of the model. This must be unique among all models owned by the user or organization.\"),\n owner: z.string().describe(\"The name of the user or organization that will own the model. This must be the same as the user or organization making the API request.\"),\n hardware: z.string().describe(\"The SKU for the hardware used to run the model. Possible values can be retrieved from the hardware.list endpoint.\"),\n paper_url: z.string().describe(\"A URL for the model's paper\").optional(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").optional(),\n visibility: z.string().describe(\"Whether the model should be public or private. Public models are viewable and runnable by anyone; private models are restricted to owners.\"),\n description: z.string().describe(\"A description of the model\").optional(),\n license_url: z.string().describe(\"A URL for the model's license\").optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image. This should be an image file.\").optional(),\n}).describe(\"Request schema for creating a new model.\");\nexport const ReplicateCreateModelOutput = z.object({\n url: z.string().describe(\"The URL of the model on Replicate\").nullable(),\n name: z.string().describe(\"The name of the model\").nullable(),\n owner: z.string().describe(\"The name of the user or organization that owns the model\").nullable(),\n paper_url: z.string().describe(\"A URL for the model's paper\").nullable().optional(),\n run_count: z.number().int().describe(\"The number of times the model has been run\").nullable(),\n created_at: z.string().describe(\"The date and time the model was created (ISO 8601 format)\").nullable(),\n github_url: z.string().describe(\"A URL for the model's source code on GitHub\").nullable().optional(),\n visibility: z.string().describe(\"Whether the model is public or private\").nullable(),\n description: z.string().describe(\"A description of the model\").nullable().optional(),\n is_official: z.boolean().describe(\"Boolean indicating whether the model is officially maintained by Replicate\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").nullable().optional(),\n weights_url: z.string().describe(\"A URL to download the model weights, if available\").nullable().optional(),\n latest_version: z.record(z.string(), z.unknown()).describe(\"The model's latest version\").nullable().optional(),\n cover_image_url: z.string().describe(\"A URL for the model's cover image\").nullable().optional(),\n default_example: z.record(z.string(), z.unknown()).describe(\"The model's default example prediction\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a model.\");\n\nexport const replicateCreateModel = action(\"REPLICATE_CREATE_MODEL\", {\n slug: \"replicate-create-model\",\n name: \"Create Model\",\n description: \"Tool to create a new Replicate model with specified owner, name, visibility, and hardware. Use when you need to create a destination model before launching LoRA/fine-tune training.\",\n input: ReplicateCreateModelInput,\n output: ReplicateCreateModelOutput,\n});\n"],"mappings":";;AAiCA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAjCuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;EAC1H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;EACpK,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;EACjJ,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,C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S,CAAC,CAAC,SAAS;EACtF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,iBAAiB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAOhB;AACV,CAAC"}
|
|
@@ -15,25 +15,25 @@ const ReplicateCreatePredictionInput = zod.z.object({
|
|
|
15
15
|
])).describe("List of events to trigger webhook calls").optional()
|
|
16
16
|
}).describe("Request schema for creating a prediction for a specific deployment.");
|
|
17
17
|
const ReplicateCreatePrediction_PredictionUrlsSchema = zod.z.object({
|
|
18
|
-
get: zod.z.string().describe("API endpoint URL to get the prediction details"),
|
|
18
|
+
get: zod.z.string().describe("API endpoint URL to get the prediction details").nullable(),
|
|
19
19
|
web: zod.z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
|
|
20
|
-
cancel: zod.z.string().describe("API endpoint URL to cancel the prediction"),
|
|
20
|
+
cancel: zod.z.string().describe("API endpoint URL to cancel the prediction").nullable(),
|
|
21
21
|
stream: zod.z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
|
|
22
|
-
}).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.");
|
|
22
|
+
}).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.");
|
|
23
23
|
const ReplicateCreatePredictionOutput = zod.z.object({
|
|
24
|
-
id: zod.z.string().describe("Unique identifier of the prediction"),
|
|
25
|
-
logs: zod.z.string().describe("Logs generated during the prediction"),
|
|
24
|
+
id: zod.z.string().describe("Unique identifier of the prediction").nullable(),
|
|
25
|
+
logs: zod.z.string().describe("Logs generated during the prediction").nullable(),
|
|
26
26
|
urls: ReplicateCreatePrediction_PredictionUrlsSchema.nullable(),
|
|
27
27
|
error: zod.z.string().describe("Error message if the prediction failed").nullable().optional(),
|
|
28
28
|
input: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Input provided for the prediction"),
|
|
29
|
-
model: zod.z.string().describe("Model associated with this prediction"),
|
|
29
|
+
model: zod.z.string().describe("Model associated with this prediction").nullable(),
|
|
30
30
|
output: zod.z.unknown().describe("Output of the prediction if completed").nullable().optional(),
|
|
31
|
-
status: zod.z.string().describe("Current status of the prediction (e.g., 'starting', 'processing', 'succeeded', 'failed', 'canceled')"),
|
|
31
|
+
status: zod.z.string().describe("Current status of the prediction (e.g., 'starting', 'processing', 'succeeded', 'failed', 'canceled')").nullable(),
|
|
32
32
|
metrics: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Performance metrics for the prediction, e.g., predict_time"),
|
|
33
|
-
version: zod.z.string().describe("Version of the model used in prediction"),
|
|
34
|
-
created_at: zod.z.string().describe("Timestamp when the prediction was created (ISO 8601)"),
|
|
33
|
+
version: zod.z.string().describe("Version of the model used in prediction").nullable(),
|
|
34
|
+
created_at: zod.z.string().describe("Timestamp when the prediction was created (ISO 8601)").nullable(),
|
|
35
35
|
completed_at: zod.z.string().describe("Timestamp when the prediction completed (ISO 8601), if available").nullable().optional()
|
|
36
|
-
}).describe("Response schema for creating a prediction.");
|
|
36
|
+
}).passthrough().describe("Response schema for creating a prediction.");
|
|
37
37
|
const replicateCreatePrediction = require_action.action("REPLICATE_CREATE_PREDICTION", {
|
|
38
38
|
slug: "replicate-create-prediction",
|
|
39
39
|
name: "Create Prediction",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-prediction.cjs","names":["z","action"],"sources":["../../src/actions/create-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreatePredictionInput
|
|
1
|
+
{"version":3,"file":"create-prediction.cjs","names":["z","action"],"sources":["../../src/actions/create-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCreatePredictionInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"JSON object of inputs for the model Keys and types must exactly match the deployment model's schema; consult REPLICATE_MODELS_README_GET or REPLICATE_MODELS_EXAMPLES_LIST first. For file inputs, verify file IDs via REPLICATE_FILES_LIST before submitting.\"),\n webhook: z.string().describe(\"HTTPS URL to receive webhook callbacks\").optional(),\n wait_for: z.number().int().describe(\"Seconds to wait for prediction completion; adds a 'Prefer: wait=<n>' header if provided Valid range is 1–60; if the prediction does not complete within this window, poll for status or use a webhook instead.\").optional(),\n deployment_name: z.string().describe(\"Name of the deployment. NOTE: This is the deployment name, NOT a public model name. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models like 'meta/llama-2-70b-chat', use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n deployment_owner: z.string().describe(\"Username or organization that owns the deployment. NOTE: This is for Replicate Deployments only, NOT public models. Deployments are persistent instances you create and manage separately. To run public models, use REPLICATE_MODELS_PREDICTIONS_CREATE instead\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of events to trigger webhook calls\").optional(),\n}).describe(\"Request schema for creating a prediction for a specific deployment.\");\nconst ReplicateCreatePrediction_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.\");\nexport const ReplicateCreatePredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier of the prediction\").nullable(),\n logs: z.string().describe(\"Logs generated during the prediction\").nullable(),\n urls: ReplicateCreatePrediction_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input provided for the prediction\"),\n model: z.string().describe(\"Model associated with this prediction\").nullable(),\n output: z.unknown().describe(\"Output of the prediction if completed\").nullable().optional(),\n status: z.string().describe(\"Current status of the prediction (e.g., 'starting', 'processing', 'succeeded', 'failed', 'canceled')\").nullable(),\n metrics: z.record(z.string(), z.unknown()).describe(\"Performance metrics for the prediction, e.g., predict_time\"),\n version: z.string().describe(\"Version of the model used in prediction\").nullable(),\n created_at: z.string().describe(\"Timestamp when the prediction was created (ISO 8601)\").nullable(),\n completed_at: z.string().describe(\"Timestamp when the prediction completed (ISO 8601), if available\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a prediction.\");\n\nexport const replicateCreatePrediction = action(\"REPLICATE_CREATE_PREDICTION\", {\n slug: \"replicate-create-prediction\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction for a Replicate Deployment. IMPORTANT: This action ONLY works with Replicate Deployments (persistent instances you create and manage), NOT public models. Deployments are created via REPLICATE_DEPLOYMENTS_CREATE. To run public models (e.g., 'meta/llama-2-70b-chat', 'stability-ai/sdxl'), use REPLICATE_MODELS_PREDICTIONS_CREATE instead. Use 'wait_for' to wait until the prediction completes.\",\n input: ReplicateCreatePredictionInput,\n output: ReplicateCreat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5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateCreatePredictionInput: z.ZodObject<{
|
|
5
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6
|
+
webhook: z.ZodOptional<z.ZodString>;
|
|
7
|
+
wait_for: z.ZodOptional<z.ZodNumber>;
|
|
8
|
+
deployment_name: z.ZodString;
|
|
9
|
+
deployment_owner: z.ZodString;
|
|
10
|
+
webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
11
|
+
output: "output";
|
|
12
|
+
start: "start";
|
|
13
|
+
logs: "logs";
|
|
14
|
+
completed: "completed";
|
|
15
|
+
}>>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const ReplicateCreatePredictionOutput: z.ZodObject<{
|
|
18
|
+
id: z.ZodNullable<z.ZodString>;
|
|
19
|
+
logs: z.ZodNullable<z.ZodString>;
|
|
20
|
+
urls: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
get: z.ZodNullable<z.ZodString>;
|
|
22
|
+
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
24
|
+
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
28
|
+
model: z.ZodNullable<z.ZodString>;
|
|
29
|
+
output: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
30
|
+
status: z.ZodNullable<z.ZodString>;
|
|
31
|
+
metrics: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
32
|
+
version: z.ZodNullable<z.ZodString>;
|
|
33
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
34
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
}, z.core.$loose>;
|
|
36
|
+
declare const replicateCreatePrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
|
+
input: Record<string, unknown>;
|
|
38
|
+
deployment_name: string;
|
|
39
|
+
deployment_owner: string;
|
|
40
|
+
webhook?: string | undefined;
|
|
41
|
+
wait_for?: number | undefined;
|
|
42
|
+
webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
|
|
43
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
44
|
//#endregion
|
|
8
45
|
export { replicateCreatePrediction };
|
|
9
46
|
//# sourceMappingURL=create-prediction.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-prediction.d.cts","names":[],"sources":["../../src/actions/create-prediction.ts"],"mappings":";;;cAIa,8BAAA,
|
|
1
|
+
{"version":3,"file":"create-prediction.d.cts","names":[],"sources":["../../src/actions/create-prediction.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAc9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;cAe/B,yBAAA,gCAAyB,wBAAA;SAMpC,MAAA"}
|