@keystrokehq/replicate 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/account-get.cjs +1 -1
- package/dist/actions/account-get.cjs.map +1 -1
- package/dist/actions/account-get.d.cts +14 -2
- package/dist/actions/account-get.d.cts.map +1 -1
- package/dist/actions/account-get.d.mts +14 -2
- package/dist/actions/account-get.d.mts.map +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 +15 -3
- package/dist/actions/cancel-prediction.d.mts +15 -3
- 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 +15 -3
- package/dist/actions/collections-get.d.mts +15 -3
- 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 +15 -3
- package/dist/actions/collections-list.d.mts +15 -3
- 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 +14 -2
- package/dist/actions/create-model.d.mts +14 -2
- 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 +17 -5
- package/dist/actions/create-prediction.d.cts.map +1 -1
- package/dist/actions/create-prediction.d.mts +17 -5
- package/dist/actions/create-prediction.d.mts.map +1 -1
- 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 +17 -5
- package/dist/actions/deployments-create.d.mts +17 -5
- 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 +14 -2
- package/dist/actions/deployments-delete.d.mts +14 -2
- 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 +17 -5
- package/dist/actions/deployments-get.d.mts +17 -5
- 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 +18 -6
- package/dist/actions/deployments-list.d.mts +18 -6
- 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 +16 -4
- package/dist/actions/files-create.d.cts.map +1 -1
- package/dist/actions/files-create.d.mts +16 -4
- package/dist/actions/files-create.d.mts.map +1 -1
- 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 +14 -2
- package/dist/actions/files-delete.d.mts +14 -2
- 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 +16 -4
- package/dist/actions/files-get.d.mts +16 -4
- 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 +17 -5
- package/dist/actions/files-list.d.mts +17 -5
- 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 +17 -5
- package/dist/actions/get-prediction.d.mts +17 -5
- 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 +15 -3
- package/dist/actions/hardware-list.d.cts.map +1 -1
- package/dist/actions/hardware-list.d.mts +15 -3
- package/dist/actions/hardware-list.d.mts.map +1 -1
- 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 +17 -5
- package/dist/actions/models-examples-list.d.mts +17 -5
- 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 +19 -7
- package/dist/actions/models-get.d.mts +19 -7
- 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 +16 -4
- package/dist/actions/models-list.d.mts +16 -4
- 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 +17 -5
- package/dist/actions/models-predictions-create.d.cts.map +1 -1
- package/dist/actions/models-predictions-create.d.mts +17 -5
- package/dist/actions/models-predictions-create.d.mts.map +1 -1
- 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 +14 -2
- package/dist/actions/models-readme-get.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/models-versions-get.d.mts +14 -2
- 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 +15 -3
- package/dist/actions/models-versions-list.d.mts +15 -3
- 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 +17 -5
- package/dist/actions/predictions-create.d.cts.map +1 -1
- package/dist/actions/predictions-create.d.mts +17 -5
- package/dist/actions/predictions-create.d.mts.map +1 -1
- 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 +16 -4
- package/dist/actions/predictions-list.d.mts +16 -4
- 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 +22 -10
- package/dist/actions/search.d.mts +22 -10
- 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 +15 -3
- package/dist/actions/trainings-cancel.d.mts +15 -3
- 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 +18 -6
- package/dist/actions/trainings-create.d.cts.map +1 -1
- package/dist/actions/trainings-create.d.mts +18 -6
- package/dist/actions/trainings-create.d.mts.map +1 -1
- 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 +18 -6
- package/dist/actions/trainings-list.d.mts +18 -6
- 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 +14 -2
- package/dist/actions/update-models.d.mts +14 -2
- 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 +14 -2
- package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
- package/dist/actions/webhooks-secret-get.d.mts +14 -2
- package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
- package/dist/actions/webhooks-secret-get.mjs +1 -1
- package/dist/actions/webhooks-secret-get.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.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,8 +7,20 @@ 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.$
|
|
11
|
-
declare const replicateAccountGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const replicateAccountGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
12
|
+
connectionId: z.ZodString;
|
|
13
|
+
entityId: z.ZodString;
|
|
14
|
+
instanceId: z.ZodString;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
bearer_token: z.ZodString;
|
|
17
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
18
|
+
connectionId: z.ZodString;
|
|
19
|
+
entityId: z.ZodString;
|
|
20
|
+
instanceId: z.ZodString;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
bearer_token: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>]>;
|
|
12
24
|
//#endregion
|
|
13
25
|
export { replicateAccountGet };
|
|
14
26
|
//# sourceMappingURL=account-get.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-get.d.cts","names":[],"sources":["../../src/actions/account-get.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,
|
|
1
|
+
{"version":3,"file":"account-get.d.cts","names":[],"sources":["../../src/actions/account-get.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,cAAA,CAAA,CAAA,SAAA"}
|
|
@@ -7,8 +7,20 @@ 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.$
|
|
11
|
-
declare const replicateAccountGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
10
|
+
}, z.core.$loose>;
|
|
11
|
+
declare const replicateAccountGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
12
|
+
connectionId: z.ZodString;
|
|
13
|
+
entityId: z.ZodString;
|
|
14
|
+
instanceId: z.ZodString;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
bearer_token: z.ZodString;
|
|
17
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
18
|
+
connectionId: z.ZodString;
|
|
19
|
+
entityId: z.ZodString;
|
|
20
|
+
instanceId: z.ZodString;
|
|
21
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
22
|
+
bearer_token: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>]>;
|
|
12
24
|
//#endregion
|
|
13
25
|
export { replicateAccountGet };
|
|
14
26
|
//# sourceMappingURL=account-get.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-get.d.mts","names":[],"sources":["../../src/actions/account-get.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,
|
|
1
|
+
{"version":3,"file":"account-get.d.mts","names":[],"sources":["../../src/actions/account-get.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cACxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,cAAA,CAAA,CAAA,SAAA"}
|
|
@@ -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,mD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SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtJ,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CACrF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9G,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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,10 +40,22 @@ 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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
46
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
47
|
+
connectionId: z.ZodString;
|
|
48
|
+
entityId: z.ZodString;
|
|
49
|
+
instanceId: z.ZodString;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
bearer_token: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
53
|
+
connectionId: z.ZodString;
|
|
54
|
+
entityId: z.ZodString;
|
|
55
|
+
instanceId: z.ZodString;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
bearer_token: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>]>;
|
|
47
59
|
//#endregion
|
|
48
60
|
export { replicateCancelPrediction };
|
|
49
61
|
//# sourceMappingURL=cancel-prediction.d.cts.map
|
|
@@ -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,10 +40,22 @@ 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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
46
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
47
|
+
connectionId: z.ZodString;
|
|
48
|
+
entityId: z.ZodString;
|
|
49
|
+
instanceId: z.ZodString;
|
|
50
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
51
|
+
bearer_token: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
53
|
+
connectionId: z.ZodString;
|
|
54
|
+
entityId: z.ZodString;
|
|
55
|
+
instanceId: z.ZodString;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
bearer_token: z.ZodString;
|
|
58
|
+
}, z.core.$strip>>]>;
|
|
47
59
|
//#endregion
|
|
48
60
|
export { replicateCancelPrediction };
|
|
49
61
|
//# sourceMappingURL=cancel-prediction.d.mts.map
|
|
@@ -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"],"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,YAAY,CAAC,CAAC,SAAS,kSAAkS;AAC5T,MAAM,mDAAmD,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAClH,MAAM,mDAAmD,EAAE,KAAK;CAAC;CAAY;CAAc;CAAa;CAAU;CAAY;AAAS,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAC5K,MAAM,oDAAoD,EAAE,OAAO;CACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,cAAc,EAAE,OAA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C,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxI,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAChG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6CAOhB;AACV,CAAC"}
|
|
@@ -15,14 +15,14 @@ const ReplicateCollectionsGet_ModelInCollectionSchema = zod.z.object({
|
|
|
15
15
|
latest_version: zod.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: Replic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CAAgC,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,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,aAAa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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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
29
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
30
|
+
connectionId: z.ZodString;
|
|
31
|
+
entityId: z.ZodString;
|
|
32
|
+
instanceId: z.ZodString;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
bearer_token: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
36
|
+
connectionId: z.ZodString;
|
|
37
|
+
entityId: z.ZodString;
|
|
38
|
+
instanceId: z.ZodString;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
bearer_token: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>]>;
|
|
30
42
|
//#endregion
|
|
31
43
|
export { replicateCollectionsGet };
|
|
32
44
|
//# sourceMappingURL=collections-get.d.cts.map
|
|
@@ -20,13 +20,25 @@ 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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
29
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
30
|
+
connectionId: z.ZodString;
|
|
31
|
+
entityId: z.ZodString;
|
|
32
|
+
instanceId: z.ZodString;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
bearer_token: z.ZodString;
|
|
35
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
36
|
+
connectionId: z.ZodString;
|
|
37
|
+
entityId: z.ZodString;
|
|
38
|
+
instanceId: z.ZodString;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
bearer_token: z.ZodString;
|
|
41
|
+
}, z.core.$strip>>]>;
|
|
30
42
|
//#endregion
|
|
31
43
|
export { replicateCollectionsGet };
|
|
32
44
|
//# sourceMappingURL=collections-get.d.mts.map
|
|
@@ -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,CAA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,oDAAoD;EAC9H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAChG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+EAOhB;AACV,CAAC"}
|
|
@@ -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,12 +10,24 @@ 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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
19
|
+
connectionId: z.ZodString;
|
|
20
|
+
entityId: z.ZodString;
|
|
21
|
+
instanceId: z.ZodString;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
bearer_token: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
25
|
+
connectionId: z.ZodString;
|
|
26
|
+
entityId: z.ZodString;
|
|
27
|
+
instanceId: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
bearer_token: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>]>;
|
|
19
31
|
//#endregion
|
|
20
32
|
export { replicateCollectionsList };
|
|
21
33
|
//# sourceMappingURL=collections-list.d.cts.map
|
|
@@ -10,12 +10,24 @@ 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
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
19
|
+
connectionId: z.ZodString;
|
|
20
|
+
entityId: z.ZodString;
|
|
21
|
+
instanceId: z.ZodString;
|
|
22
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
23
|
+
bearer_token: z.ZodString;
|
|
24
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
25
|
+
connectionId: z.ZodString;
|
|
26
|
+
entityId: z.ZodString;
|
|
27
|
+
instanceId: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
bearer_token: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>]>;
|
|
19
31
|
//#endregion
|
|
20
32
|
export { replicateCollectionsList };
|
|
21
33
|
//# sourceMappingURL=collections-list.d.mts.map
|
|
@@ -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",
|