@keystrokehq/replicate 0.1.2 → 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/actions/account-get.cjs +1 -1
- package/dist/actions/account-get.cjs.map +1 -1
- package/dist/actions/account-get.d.cts +1 -1
- package/dist/actions/account-get.d.mts +1 -1
- package/dist/actions/account-get.mjs +1 -1
- package/dist/actions/account-get.mjs.map +1 -1
- package/dist/actions/cancel-prediction.cjs +2 -2
- package/dist/actions/cancel-prediction.cjs.map +1 -1
- package/dist/actions/cancel-prediction.d.cts +2 -2
- package/dist/actions/cancel-prediction.d.mts +2 -2
- package/dist/actions/cancel-prediction.mjs +2 -2
- package/dist/actions/cancel-prediction.mjs.map +1 -1
- package/dist/actions/collections-get.cjs +2 -2
- package/dist/actions/collections-get.cjs.map +1 -1
- package/dist/actions/collections-get.d.cts +2 -2
- package/dist/actions/collections-get.d.mts +2 -2
- package/dist/actions/collections-get.mjs +2 -2
- package/dist/actions/collections-get.mjs.map +1 -1
- package/dist/actions/collections-list.cjs +2 -2
- package/dist/actions/collections-list.cjs.map +1 -1
- package/dist/actions/collections-list.d.cts +2 -2
- package/dist/actions/collections-list.d.mts +2 -2
- package/dist/actions/collections-list.mjs +2 -2
- package/dist/actions/collections-list.mjs.map +1 -1
- package/dist/actions/create-model.cjs +1 -1
- package/dist/actions/create-model.cjs.map +1 -1
- package/dist/actions/create-model.d.cts +1 -1
- package/dist/actions/create-model.d.mts +1 -1
- package/dist/actions/create-model.mjs +1 -1
- package/dist/actions/create-model.mjs.map +1 -1
- package/dist/actions/create-prediction.cjs +2 -2
- package/dist/actions/create-prediction.cjs.map +1 -1
- package/dist/actions/create-prediction.d.cts +4 -4
- package/dist/actions/create-prediction.d.mts +4 -4
- package/dist/actions/create-prediction.mjs +2 -2
- package/dist/actions/create-prediction.mjs.map +1 -1
- package/dist/actions/deployments-create.cjs +4 -4
- package/dist/actions/deployments-create.cjs.map +1 -1
- package/dist/actions/deployments-create.d.cts +4 -4
- package/dist/actions/deployments-create.d.mts +4 -4
- package/dist/actions/deployments-create.mjs +4 -4
- 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 +1 -1
- package/dist/actions/deployments-delete.d.mts +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 +4 -4
- package/dist/actions/deployments-get.d.mts +4 -4
- package/dist/actions/deployments-get.mjs +4 -4
- package/dist/actions/deployments-get.mjs.map +1 -1
- package/dist/actions/deployments-list.cjs +5 -5
- package/dist/actions/deployments-list.cjs.map +1 -1
- package/dist/actions/deployments-list.d.cts +5 -5
- package/dist/actions/deployments-list.d.mts +5 -5
- package/dist/actions/deployments-list.mjs +5 -5
- package/dist/actions/deployments-list.mjs.map +1 -1
- package/dist/actions/files-create.cjs +3 -3
- package/dist/actions/files-create.cjs.map +1 -1
- package/dist/actions/files-create.d.cts +3 -3
- package/dist/actions/files-create.d.mts +3 -3
- package/dist/actions/files-create.mjs +3 -3
- 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 +1 -1
- package/dist/actions/files-delete.d.mts +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 +3 -3
- package/dist/actions/files-get.cjs.map +1 -1
- package/dist/actions/files-get.d.cts +3 -3
- package/dist/actions/files-get.d.mts +3 -3
- package/dist/actions/files-get.mjs +3 -3
- package/dist/actions/files-get.mjs.map +1 -1
- package/dist/actions/files-list.cjs +4 -4
- package/dist/actions/files-list.cjs.map +1 -1
- package/dist/actions/files-list.d.cts +4 -4
- package/dist/actions/files-list.d.mts +4 -4
- package/dist/actions/files-list.mjs +4 -4
- package/dist/actions/files-list.mjs.map +1 -1
- package/dist/actions/get-prediction.cjs +4 -4
- package/dist/actions/get-prediction.cjs.map +1 -1
- package/dist/actions/get-prediction.d.cts +4 -4
- package/dist/actions/get-prediction.d.mts +4 -4
- package/dist/actions/get-prediction.mjs +4 -4
- package/dist/actions/get-prediction.mjs.map +1 -1
- package/dist/actions/hardware-list.cjs +2 -2
- package/dist/actions/hardware-list.cjs.map +1 -1
- package/dist/actions/hardware-list.d.cts +2 -2
- package/dist/actions/hardware-list.d.mts +2 -2
- package/dist/actions/hardware-list.mjs +2 -2
- package/dist/actions/hardware-list.mjs.map +1 -1
- package/dist/actions/models-examples-list.cjs +4 -4
- package/dist/actions/models-examples-list.cjs.map +1 -1
- package/dist/actions/models-examples-list.d.cts +4 -4
- package/dist/actions/models-examples-list.d.mts +4 -4
- package/dist/actions/models-examples-list.mjs +4 -4
- package/dist/actions/models-examples-list.mjs.map +1 -1
- package/dist/actions/models-get.cjs +6 -6
- package/dist/actions/models-get.cjs.map +1 -1
- package/dist/actions/models-get.d.cts +6 -6
- package/dist/actions/models-get.d.mts +6 -6
- package/dist/actions/models-get.mjs +6 -6
- package/dist/actions/models-get.mjs.map +1 -1
- package/dist/actions/models-list.cjs +3 -3
- package/dist/actions/models-list.cjs.map +1 -1
- package/dist/actions/models-list.d.cts +3 -3
- package/dist/actions/models-list.d.mts +3 -3
- package/dist/actions/models-list.mjs +3 -3
- package/dist/actions/models-list.mjs.map +1 -1
- package/dist/actions/models-predictions-create.cjs +2 -2
- package/dist/actions/models-predictions-create.cjs.map +1 -1
- package/dist/actions/models-predictions-create.d.cts +4 -4
- package/dist/actions/models-predictions-create.d.mts +4 -4
- package/dist/actions/models-predictions-create.mjs +2 -2
- 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 +1 -1
- package/dist/actions/models-readme-get.d.mts +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 +1 -1
- package/dist/actions/models-versions-get.cjs.map +1 -1
- package/dist/actions/models-versions-get.d.cts +1 -1
- package/dist/actions/models-versions-get.d.mts +1 -1
- package/dist/actions/models-versions-get.mjs +1 -1
- package/dist/actions/models-versions-get.mjs.map +1 -1
- package/dist/actions/models-versions-list.cjs +2 -2
- package/dist/actions/models-versions-list.cjs.map +1 -1
- package/dist/actions/models-versions-list.d.cts +2 -2
- package/dist/actions/models-versions-list.d.mts +2 -2
- package/dist/actions/models-versions-list.mjs +2 -2
- package/dist/actions/models-versions-list.mjs.map +1 -1
- package/dist/actions/predictions-create.cjs +2 -2
- package/dist/actions/predictions-create.cjs.map +1 -1
- package/dist/actions/predictions-create.d.cts +4 -4
- package/dist/actions/predictions-create.d.mts +4 -4
- package/dist/actions/predictions-create.mjs +2 -2
- package/dist/actions/predictions-create.mjs.map +1 -1
- package/dist/actions/predictions-list.cjs +3 -3
- package/dist/actions/predictions-list.cjs.map +1 -1
- package/dist/actions/predictions-list.d.cts +3 -3
- package/dist/actions/predictions-list.d.mts +3 -3
- package/dist/actions/predictions-list.mjs +3 -3
- package/dist/actions/predictions-list.mjs.map +1 -1
- package/dist/actions/search.cjs +9 -9
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +9 -9
- package/dist/actions/search.d.mts +9 -9
- package/dist/actions/search.mjs +9 -9
- package/dist/actions/search.mjs.map +1 -1
- package/dist/actions/trainings-cancel.cjs +2 -2
- package/dist/actions/trainings-cancel.cjs.map +1 -1
- package/dist/actions/trainings-cancel.d.cts +2 -2
- package/dist/actions/trainings-cancel.d.mts +2 -2
- package/dist/actions/trainings-cancel.mjs +2 -2
- package/dist/actions/trainings-cancel.mjs.map +1 -1
- package/dist/actions/trainings-create.cjs +3 -3
- package/dist/actions/trainings-create.cjs.map +1 -1
- package/dist/actions/trainings-create.d.cts +5 -5
- package/dist/actions/trainings-create.d.mts +5 -5
- package/dist/actions/trainings-create.mjs +3 -3
- package/dist/actions/trainings-create.mjs.map +1 -1
- package/dist/actions/trainings-list.cjs +5 -5
- package/dist/actions/trainings-list.cjs.map +1 -1
- package/dist/actions/trainings-list.d.cts +5 -5
- package/dist/actions/trainings-list.d.mts +5 -5
- package/dist/actions/trainings-list.mjs +5 -5
- package/dist/actions/trainings-list.mjs.map +1 -1
- package/dist/actions/update-models.cjs +1 -1
- package/dist/actions/update-models.cjs.map +1 -1
- package/dist/actions/update-models.d.cts +1 -1
- package/dist/actions/update-models.d.mts +1 -1
- package/dist/actions/update-models.mjs +1 -1
- 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 +1 -1
- package/dist/actions/webhooks-secret-get.d.mts +1 -1
- package/dist/actions/webhooks-secret-get.mjs +1 -1
- package/dist/actions/webhooks-secret-get.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ const ReplicateAccountGetOutput = zod.z.object({
|
|
|
7
7
|
type: zod.z.string().describe("Account type, either 'organization' or 'user'").nullable(),
|
|
8
8
|
username: zod.z.string().describe("The username or organization name").nullable(),
|
|
9
9
|
github_url: zod.z.string().describe("URL to the associated GitHub profile, if any").nullable().optional()
|
|
10
|
-
}).describe("Response schema for account.get: Information about the authenticated account.");
|
|
10
|
+
}).passthrough().describe("Response schema for account.get: Information about the authenticated account.");
|
|
11
11
|
const replicateAccountGet = require_action.action("REPLICATE_ACCOUNT_GET", {
|
|
12
12
|
slug: "replicate-account-get",
|
|
13
13
|
name: "Get Account Information",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-get.cjs","names":["z","action"],"sources":["../../src/actions/account-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateAccountGetInput = z.object({}).describe(\"No parameters are required for getting account information.\");\nexport const ReplicateAccountGetOutput = z.object({\n name: z.string().describe(\"Full display name of the account holder or organization\").nullable(),\n type: z.string().describe(\"Account type, either 'organization' or 'user'\").nullable(),\n username: z.string().describe(\"The username or organization name\").nullable(),\n github_url: z.string().describe(\"URL to the associated GitHub profile, if any\").nullable().optional(),\n}).describe(\"Response schema for account.get: Information about the authenticated account.\");\n\nexport const replicateAccountGet = action(\"REPLICATE_ACCOUNT_GET\", {\n slug: \"replicate-account-get\",\n name: \"Get Account Information\",\n description: \"Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.\",\n input: ReplicateAccountGetInput,\n output: ReplicateAccountGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAC3H,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,+EAA+E;
|
|
1
|
+
{"version":3,"file":"account-get.cjs","names":["z","action"],"sources":["../../src/actions/account-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateAccountGetInput = z.object({}).describe(\"No parameters are required for getting account information.\");\nexport const ReplicateAccountGetOutput = z.object({\n name: z.string().describe(\"Full display name of the account holder or organization\").nullable(),\n type: z.string().describe(\"Account type, either 'organization' or 'user'\").nullable(),\n username: z.string().describe(\"The username or organization name\").nullable(),\n github_url: z.string().describe(\"URL to the associated GitHub profile, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for account.get: Information about the authenticated account.\");\n\nexport const replicateAccountGet = action(\"REPLICATE_ACCOUNT_GET\", {\n slug: \"replicate-account-get\",\n name: \"Get Account Information\",\n description: \"Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.\",\n input: ReplicateAccountGetInput,\n output: ReplicateAccountGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D;AAC3H,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACpF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const ReplicateAccountGetOutput: z.ZodObject<{
|
|
|
7
7
|
type: z.ZodNullable<z.ZodString>;
|
|
8
8
|
username: z.ZodNullable<z.ZodString>;
|
|
9
9
|
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const replicateAccountGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { replicateAccountGet };
|
|
@@ -7,7 +7,7 @@ declare const ReplicateAccountGetOutput: z.ZodObject<{
|
|
|
7
7
|
type: z.ZodNullable<z.ZodString>;
|
|
8
8
|
username: z.ZodNullable<z.ZodString>;
|
|
9
9
|
github_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
-
}, z.core.$
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const replicateAccountGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { replicateAccountGet };
|
|
@@ -10,7 +10,7 @@ const replicateAccountGet = action("REPLICATE_ACCOUNT_GET", {
|
|
|
10
10
|
type: z.string().describe("Account type, either 'organization' or 'user'").nullable(),
|
|
11
11
|
username: z.string().describe("The username or organization name").nullable(),
|
|
12
12
|
github_url: z.string().describe("URL to the associated GitHub profile, if any").nullable().optional()
|
|
13
|
-
}).describe("Response schema for account.get: Information about the authenticated account.")
|
|
13
|
+
}).passthrough().describe("Response schema for account.get: Information about the authenticated account.")
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
16
|
export { replicateAccountGet };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-get.mjs","names":[],"sources":["../../src/actions/account-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateAccountGetInput = z.object({}).describe(\"No parameters are required for getting account information.\");\nexport const ReplicateAccountGetOutput = z.object({\n name: z.string().describe(\"Full display name of the account holder or organization\").nullable(),\n type: z.string().describe(\"Account type, either 'organization' or 'user'\").nullable(),\n username: z.string().describe(\"The username or organization name\").nullable(),\n github_url: z.string().describe(\"URL to the associated GitHub profile, if any\").nullable().optional(),\n}).describe(\"Response schema for account.get: Information about the authenticated account.\");\n\nexport const replicateAccountGet = action(\"REPLICATE_ACCOUNT_GET\", {\n slug: \"replicate-account-get\",\n name: \"Get Account Information\",\n description: \"Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.\",\n input: ReplicateAccountGetInput,\n output: ReplicateAccountGetOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAYrD;CACP,QAZuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,SAAS,+
|
|
1
|
+
{"version":3,"file":"account-get.mjs","names":[],"sources":["../../src/actions/account-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateAccountGetInput = z.object({}).describe(\"No parameters are required for getting account information.\");\nexport const ReplicateAccountGetOutput = z.object({\n name: z.string().describe(\"Full display name of the account holder or organization\").nullable(),\n type: z.string().describe(\"Account type, either 'organization' or 'user'\").nullable(),\n username: z.string().describe(\"The username or organization name\").nullable(),\n github_url: z.string().describe(\"URL to the associated GitHub profile, if any\").nullable().optional(),\n}).passthrough().describe(\"Response schema for account.get: Information about the authenticated account.\");\n\nexport const replicateAccountGet = action(\"REPLICATE_ACCOUNT_GET\", {\n slug: \"replicate-account-get\",\n name: \"Get Account Information\",\n description: \"Tool to get authenticated account information. Use when you need to retrieve details about the account associated with the API token.\",\n input: ReplicateAccountGetInput,\n output: ReplicateAccountGetOutput,\n});\n"],"mappings":";;AAYA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZsC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6DAYrD;CACP,QAZuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;EAC9F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACpF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAOhB;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const ReplicateCancelPrediction_PredictionUrlsSchema = zod.z.object({
|
|
|
7
7
|
web: zod.z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
|
|
8
8
|
cancel: zod.z.string().describe("API endpoint URL to cancel the prediction").nullable(),
|
|
9
9
|
stream: zod.z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
|
|
10
|
-
}).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.");
|
|
10
|
+
}).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.");
|
|
11
11
|
const ReplicateCancelPrediction_PredictionSourceSchema = zod.z.enum(["web", "api"]).describe("Source of a prediction.");
|
|
12
12
|
const ReplicateCancelPrediction_PredictionStatusSchema = zod.z.enum([
|
|
13
13
|
"starting",
|
|
@@ -39,7 +39,7 @@ const ReplicateCancelPredictionOutput = zod.z.object({
|
|
|
39
39
|
started_at: zod.z.string().describe("The time that the model began the prediction").nullable().optional(),
|
|
40
40
|
completed_at: zod.z.string().describe("The time that the model completed the prediction and all outputs were uploaded").nullable().optional(),
|
|
41
41
|
data_removed: zod.z.boolean().describe("Whether the prediction output has been deleted").nullable()
|
|
42
|
-
}).describe("Response schema for canceling a prediction.");
|
|
42
|
+
}).passthrough().describe("Response schema for canceling a prediction.");
|
|
43
43
|
const replicateCancelPrediction = require_action.action("REPLICATE_CANCEL_PREDICTION", {
|
|
44
44
|
slug: "replicate-cancel-prediction",
|
|
45
45
|
name: "Cancel Prediction",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-prediction.cjs","names":["z","action"],"sources":["../../src/actions/cancel-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCancelPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to cancel\"),\n}).describe(\"Request schema for canceling a prediction.\");\nconst ReplicateCancelPrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateCancelPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateCancelPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateCancelPrediction_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateCancelPredictionOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateCancelPrediction_PredictionUrlsSchema.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.unknown().describe(\"The prediction output, which can be any JSON-serializable value, depending on the model\").nullable().optional(),\n source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\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}).describe(\"Response schema for canceling a prediction.\");\n\nexport const replicateCancelPrediction = action(\"REPLICATE_CANCEL_PREDICTION\", {\n slug: \"replicate-cancel-prediction\",\n name: \"Cancel Prediction\",\n description: \"Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.\",\n input: ReplicateCancelPredictionInput,\n output: ReplicateCancelPredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACzE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,kSAAkS;
|
|
1
|
+
{"version":3,"file":"cancel-prediction.cjs","names":["z","action"],"sources":["../../src/actions/cancel-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCancelPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to cancel\"),\n}).describe(\"Request schema for canceling a prediction.\");\nconst ReplicateCancelPrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateCancelPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateCancelPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateCancelPrediction_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateCancelPredictionOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateCancelPrediction_PredictionUrlsSchema.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.unknown().describe(\"The prediction output, which can be any JSON-serializable value, depending on the model\").nullable().optional(),\n source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\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 canceling a prediction.\");\n\nexport const replicateCancelPrediction = action(\"REPLICATE_CANCEL_PREDICTION\", {\n slug: \"replicate-cancel-prediction\",\n name: \"Cancel Prediction\",\n description: \"Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.\",\n input: ReplicateCancelPredictionInput,\n output: ReplicateCancelPredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACzE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kSAAkS;AAC5T,MAAM,mDAAmDA,IAAAA,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAClH,MAAM,mDAAmDA,IAAAA,EAAE,KAAK;CAAC;CAAY;CAAc;CAAa;CAAU;CAAY;AAAS,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAC5K,MAAM,oDAAoDA,IAAAA,EAAE,OAAO;CACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,kCAAkCA,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gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxI,cAAcA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAA6C;AAEvE,MAAa,4BAA4BC,eAAAA,OAAO,+BAA+B;CAC7E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -12,7 +12,7 @@ declare const ReplicateCancelPredictionOutput: z.ZodObject<{
|
|
|
12
12
|
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
cancel: z.ZodNullable<z.ZodString>;
|
|
14
14
|
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
16
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
18
|
model: z.ZodNullable<z.ZodString>;
|
|
@@ -40,7 +40,7 @@ declare const ReplicateCancelPredictionOutput: z.ZodObject<{
|
|
|
40
40
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
data_removed: z.ZodNullable<z.ZodBoolean>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>;
|
|
44
44
|
declare const replicateCancelPrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
45
|
prediction_id: string;
|
|
46
46
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -12,7 +12,7 @@ declare const ReplicateCancelPredictionOutput: z.ZodObject<{
|
|
|
12
12
|
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
13
|
cancel: z.ZodNullable<z.ZodString>;
|
|
14
14
|
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
16
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
18
|
model: z.ZodNullable<z.ZodString>;
|
|
@@ -40,7 +40,7 @@ declare const ReplicateCancelPredictionOutput: z.ZodObject<{
|
|
|
40
40
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
42
|
data_removed: z.ZodNullable<z.ZodBoolean>;
|
|
43
|
-
}, z.core.$
|
|
43
|
+
}, z.core.$loose>;
|
|
44
44
|
declare const replicateCancelPrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
45
|
prediction_id: string;
|
|
46
46
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,7 +7,7 @@ const ReplicateCancelPrediction_PredictionUrlsSchema = z.object({
|
|
|
7
7
|
web: z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
|
|
8
8
|
cancel: z.string().describe("API endpoint URL to cancel the prediction").nullable(),
|
|
9
9
|
stream: z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
|
|
10
|
-
}).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.");
|
|
10
|
+
}).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.");
|
|
11
11
|
const ReplicateCancelPrediction_PredictionSourceSchema = z.enum(["web", "api"]).describe("Source of a prediction.");
|
|
12
12
|
const ReplicateCancelPrediction_PredictionStatusSchema = z.enum([
|
|
13
13
|
"starting",
|
|
@@ -44,7 +44,7 @@ const replicateCancelPrediction = action("REPLICATE_CANCEL_PREDICTION", {
|
|
|
44
44
|
started_at: z.string().describe("The time that the model began the prediction").nullable().optional(),
|
|
45
45
|
completed_at: z.string().describe("The time that the model completed the prediction and all outputs were uploaded").nullable().optional(),
|
|
46
46
|
data_removed: z.boolean().describe("Whether the prediction output has been deleted").nullable()
|
|
47
|
-
}).describe("Response schema for canceling a prediction.")
|
|
47
|
+
}).passthrough().describe("Response schema for canceling a prediction.")
|
|
48
48
|
});
|
|
49
49
|
//#endregion
|
|
50
50
|
export { replicateCancelPrediction };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancel-prediction.mjs","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCancelPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to cancel\"),\n}).describe(\"Request schema for canceling a prediction.\");\nconst ReplicateCancelPrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateCancelPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateCancelPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateCancelPrediction_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateCancelPredictionOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateCancelPrediction_PredictionUrlsSchema.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.unknown().describe(\"The prediction output, which can be any JSON-serializable value, depending on the model\").nullable().optional(),\n source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\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}).describe(\"Response schema for canceling a prediction.\");\n\nexport const replicateCancelPrediction = action(\"REPLICATE_CANCEL_PREDICTION\", {\n slug: \"replicate-cancel-prediction\",\n name: \"Cancel Prediction\",\n description: \"Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.\",\n input: ReplicateCancelPredictionInput,\n output: ReplicateCancelPredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiC,EAAE,OAAO,EACrD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,EACzE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,kSAAkS;
|
|
1
|
+
{"version":3,"file":"cancel-prediction.mjs","names":[],"sources":["../../src/actions/cancel-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateCancelPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to cancel\"),\n}).describe(\"Request schema for canceling a prediction.\");\nconst ReplicateCancelPrediction_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicateCancelPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateCancelPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateCancelPrediction_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicateCancelPredictionOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateCancelPrediction_PredictionUrlsSchema.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.unknown().describe(\"The prediction output, which can be any JSON-serializable value, depending on the model\").nullable().optional(),\n source: ReplicateCancelPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateCancelPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateCancelPrediction_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\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 canceling a prediction.\");\n\nexport const replicateCancelPrediction = action(\"REPLICATE_CANCEL_PREDICTION\", {\n slug: \"replicate-cancel-prediction\",\n name: \"Cancel Prediction\",\n description: \"Tool to cancel a prediction that is still running. Use when you need to stop an in-progress prediction to free up resources or halt execution.\",\n input: ReplicateCancelPredictionInput,\n output: ReplicateCancelPredictionOutput,\n});\n"],"mapp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z.record(zod.z.string(), zod.z.unknown()).describe("The model's most recently pushed version containing schema and metadata").nullable().optional(),
|
|
16
16
|
cover_image_url: zod.z.string().describe("An HTTPS URL for an image file").nullable().optional(),
|
|
17
17
|
default_example: zod.z.record(zod.z.string(), zod.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 ReplicateCollectionsGetOutput = zod.z.object({
|
|
20
20
|
name: zod.z.string().describe("Display name of the collection").nullable(),
|
|
21
21
|
slug: zod.z.string().describe("URL-friendly identifier for the collection").nullable(),
|
|
22
22
|
models: zod.z.array(ReplicateCollectionsGet_ModelInCollectionSchema).describe("List of model objects belonging to this collection"),
|
|
23
23
|
description: zod.z.string().describe("Brief one-line summary of the collection's purpose").nullable(),
|
|
24
24
|
full_description: zod.z.string().describe("Detailed markdown-formatted description with overview and features").nullable().optional()
|
|
25
|
-
}).describe("Response schema for collections.get: Detailed information about a collection.");
|
|
25
|
+
}).passthrough().describe("Response schema for collections.get: Detailed information about a collection.");
|
|
26
26
|
const replicateCollectionsGet = require_action.action("REPLICATE_COLLECTIONS_GET", {
|
|
27
27
|
slug: "replicate-collections-get",
|
|
28
28
|
name: "Get model collection",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections-get.cjs","names":["z","action"],"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}).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}).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+BA,IAAAA,EAAE,OAAO,EACnD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,EAC3H,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,kDAAkDA,IAAAA,EAAE,OAAO;CAC/D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC3E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CAClE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS;CACpG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACzE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1J,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3F,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,SAAS,gDAAgD;
|
|
1
|
+
{"version":3,"file":"collections-get.cjs","names":["z","action"],"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+BA,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OA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gDAAgD;AAC1E,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,oDAAoD;CAC9H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAChG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAA+E;AAEzG,MAAa,0BAA0BC,eAAAA,OAAO,6BAA6B;CACzE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -20,10 +20,10 @@ declare const ReplicateCollectionsGetOutput: z.ZodObject<{
|
|
|
20
20
|
latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
21
|
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
24
|
description: z.ZodNullable<z.ZodString>;
|
|
25
25
|
full_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const replicateCollectionsGet: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
collection_slug: string;
|
|
29
29
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -20,10 +20,10 @@ declare const ReplicateCollectionsGetOutput: z.ZodObject<{
|
|
|
20
20
|
latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
21
|
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
22
|
default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
23
|
-
}, z.core.$
|
|
23
|
+
}, z.core.$loose>>;
|
|
24
24
|
description: z.ZodNullable<z.ZodString>;
|
|
25
25
|
full_description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const replicateCollectionsGet: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
collection_slug: string;
|
|
29
29
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -15,7 +15,7 @@ const ReplicateCollectionsGet_ModelInCollectionSchema = z.object({
|
|
|
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",
|
|
@@ -27,7 +27,7 @@ const replicateCollectionsGet = action("REPLICATE_COLLECTIONS_GET", {
|
|
|
27
27
|
models: z.array(ReplicateCollectionsGet_ModelInCollectionSchema).describe("List of model objects belonging to this collection"),
|
|
28
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 = 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}).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}).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,SAAS,gDAAgD;
|
|
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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ACV,CAAC"}
|
|
@@ -6,12 +6,12 @@ const ReplicateCollectionsList_CollectionSchema = zod.z.object({
|
|
|
6
6
|
name: zod.z.string().describe("Human-readable display name of the collection").nullable(),
|
|
7
7
|
slug: zod.z.string().describe("URL-friendly identifier for the collection").nullable(),
|
|
8
8
|
description: zod.z.string().describe("Brief description of the collection's purpose").nullable()
|
|
9
|
-
}).describe("Representation of a model collection.");
|
|
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 = 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}).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}).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,SAAS,uCAAuC;
|
|
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"}
|
|
@@ -10,9 +10,9 @@ declare const ReplicateCollectionsListOutput: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
slug: z.ZodNullable<z.ZodString>;
|
|
12
12
|
description: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const replicateCollectionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
17
|
cursor?: string | undefined;
|
|
18
18
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -10,9 +10,9 @@ declare const ReplicateCollectionsListOutput: z.ZodObject<{
|
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
slug: z.ZodNullable<z.ZodString>;
|
|
12
12
|
description: z.ZodNullable<z.ZodString>;
|
|
13
|
-
}, z.core.$
|
|
13
|
+
}, z.core.$loose>>;
|
|
14
14
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>;
|
|
16
16
|
declare const replicateCollectionsList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
17
17
|
cursor?: string | undefined;
|
|
18
18
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -6,7 +6,7 @@ const ReplicateCollectionsList_CollectionSchema = z.object({
|
|
|
6
6
|
name: z.string().describe("Human-readable display name of the collection").nullable(),
|
|
7
7
|
slug: z.string().describe("URL-friendly identifier for the collection").nullable(),
|
|
8
8
|
description: z.string().describe("Brief description of the collection's purpose").nullable()
|
|
9
|
-
}).describe("Representation of a model collection.");
|
|
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 = 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}).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}).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,SAAS,uCAAuC;
|
|
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"}
|
|
@@ -28,7 +28,7 @@ const ReplicateCreateModelOutput = zod.z.object({
|
|
|
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 = 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}).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,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAC1H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;CACpK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CACjJ,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,Y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EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACzH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,SAAS,uCAAuC;
|
|
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,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG;CAC1H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yIAAyI;CACpK,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mHAAmH;CACjJ,WAAWA,IAAAA,EAAE,OAA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AC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACzH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9F,iBAAiBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAEjE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -28,7 +28,7 @@ declare const ReplicateCreateModelOutput: z.ZodObject<{
|
|
|
28
28
|
latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
29
29
|
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const replicateCreateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
name: string;
|
|
34
34
|
owner: string;
|
|
@@ -28,7 +28,7 @@ declare const ReplicateCreateModelOutput: z.ZodObject<{
|
|
|
28
28
|
latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
29
29
|
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
30
|
default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
31
|
-
}, z.core.$
|
|
31
|
+
}, z.core.$loose>;
|
|
32
32
|
declare const replicateCreateModel: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
33
|
name: string;
|
|
34
34
|
owner: string;
|
|
@@ -31,7 +31,7 @@ const replicateCreateModel = action("REPLICATE_CREATE_MODEL", {
|
|
|
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 = 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}).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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O,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;EACzH,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,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,SAAS,
|
|
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,EA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,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,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"}
|
|
@@ -19,7 +19,7 @@ const ReplicateCreatePrediction_PredictionUrlsSchema = zod.z.object({
|
|
|
19
19
|
web: zod.z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
|
|
20
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
24
|
id: zod.z.string().describe("Unique identifier of the prediction").nullable(),
|
|
25
25
|
logs: zod.z.string().describe("Logs generated during the prediction").nullable(),
|
|
@@ -33,7 +33,7 @@ const ReplicateCreatePredictionOutput = zod.z.object({
|
|
|
33
33
|
version: zod.z.string().describe("Version of the model used in prediction").nullable(),
|
|
34
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 = 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}).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}).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: ReplicateCreatePredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gQAAgQ;CAClT,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gNAAgN,CAAC,CAAC,SAAS;CAC/P,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kPAAkP;CACvR,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kQAAkQ;CACxS,uBAAuBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;EAAQ;CAAW,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;AAChJ,CAAC,CAAC,CAAC,SAAS,qEAAqE;AACjF,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACpF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,kSAAkS;
|
|
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: ReplicateCreatePredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gQAAgQ;CAClT,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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