@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
|
@@ -10,8 +10,8 @@ declare const ReplicateTrainingsCreateInput: z.ZodObject<{
|
|
|
10
10
|
destination: z.ZodString;
|
|
11
11
|
webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
12
12
|
output: "output";
|
|
13
|
-
logs: "logs";
|
|
14
13
|
start: "start";
|
|
14
|
+
logs: "logs";
|
|
15
15
|
completed: "completed";
|
|
16
16
|
}>>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
@@ -22,7 +22,7 @@ declare const ReplicateTrainingsCreateOutput: z.ZodObject<{
|
|
|
22
22
|
get: z.ZodNullable<z.ZodString>;
|
|
23
23
|
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
cancel: z.ZodNullable<z.ZodString>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
26
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
28
28
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -32,12 +32,12 @@ declare const ReplicateTrainingsCreateOutput: z.ZodObject<{
|
|
|
32
32
|
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
33
|
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
34
|
predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
36
|
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
created_at: z.ZodNullable<z.ZodString>;
|
|
38
38
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>;
|
|
41
41
|
declare const replicateTrainingsCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
42
|
name: string;
|
|
43
43
|
input: Record<string, unknown>;
|
|
@@ -45,7 +45,7 @@ declare const replicateTrainingsCreate: import("@keystrokehq/action").WorkflowAc
|
|
|
45
45
|
version_id: string;
|
|
46
46
|
destination: string;
|
|
47
47
|
webhook?: string | undefined;
|
|
48
|
-
webhook_events_filter?: ("output" | "
|
|
48
|
+
webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
|
|
49
49
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { replicateTrainingsCreate };
|
|
@@ -10,8 +10,8 @@ declare const ReplicateTrainingsCreateInput: z.ZodObject<{
|
|
|
10
10
|
destination: z.ZodString;
|
|
11
11
|
webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
12
12
|
output: "output";
|
|
13
|
-
logs: "logs";
|
|
14
13
|
start: "start";
|
|
14
|
+
logs: "logs";
|
|
15
15
|
completed: "completed";
|
|
16
16
|
}>>>;
|
|
17
17
|
}, z.core.$strip>;
|
|
@@ -22,7 +22,7 @@ declare const ReplicateTrainingsCreateOutput: z.ZodObject<{
|
|
|
22
22
|
get: z.ZodNullable<z.ZodString>;
|
|
23
23
|
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
24
|
cancel: z.ZodNullable<z.ZodString>;
|
|
25
|
-
}, z.core.$
|
|
25
|
+
}, z.core.$loose>>;
|
|
26
26
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
28
28
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -32,12 +32,12 @@ declare const ReplicateTrainingsCreateOutput: z.ZodObject<{
|
|
|
32
32
|
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
33
|
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
34
|
predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>>>;
|
|
36
36
|
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
created_at: z.ZodNullable<z.ZodString>;
|
|
38
38
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
-
}, z.core.$
|
|
40
|
+
}, z.core.$loose>;
|
|
41
41
|
declare const replicateTrainingsCreate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
42
42
|
name: string;
|
|
43
43
|
input: Record<string, unknown>;
|
|
@@ -45,7 +45,7 @@ declare const replicateTrainingsCreate: import("@keystrokehq/action").WorkflowAc
|
|
|
45
45
|
version_id: string;
|
|
46
46
|
destination: string;
|
|
47
47
|
webhook?: string | undefined;
|
|
48
|
-
webhook_events_filter?: ("output" | "
|
|
48
|
+
webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
|
|
49
49
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
50
50
|
//#endregion
|
|
51
51
|
export { replicateTrainingsCreate };
|
|
@@ -19,11 +19,11 @@ const ReplicateTrainingsCreate_TrainingsCreateUrlsSchema = z.object({
|
|
|
19
19
|
get: z.string().describe("API endpoint to retrieve training status").nullable(),
|
|
20
20
|
web: z.string().describe("Browser-viewable training URL").nullable().optional(),
|
|
21
21
|
cancel: z.string().describe("Endpoint to cancel the training").nullable()
|
|
22
|
-
}).describe("Endpoints to manage the training.");
|
|
22
|
+
}).passthrough().describe("Endpoints to manage the training.");
|
|
23
23
|
const ReplicateTrainingsCreate_TrainingsCreateMetricsSchema = z.object({
|
|
24
24
|
total_time: z.number().describe("Total completion time in seconds").nullable().optional(),
|
|
25
25
|
predict_time: z.number().describe("CPU/GPU seconds used during training execution").nullable().optional()
|
|
26
|
-
}).describe("Performance metrics for the training.");
|
|
26
|
+
}).passthrough().describe("Performance metrics for the training.");
|
|
27
27
|
const replicateTrainingsCreate = action("REPLICATE_TRAININGS_CREATE", {
|
|
28
28
|
slug: "replicate-trainings-create",
|
|
29
29
|
name: "Create Training Job",
|
|
@@ -44,7 +44,7 @@ const replicateTrainingsCreate = action("REPLICATE_TRAININGS_CREATE", {
|
|
|
44
44
|
created_at: z.string().describe("ISO 8601 timestamp when training was initiated").nullable(),
|
|
45
45
|
started_at: z.string().describe("ISO 8601 timestamp when processing began").nullable().optional(),
|
|
46
46
|
completed_at: z.string().describe("ISO 8601 timestamp when training finished").nullable().optional()
|
|
47
|
-
}).describe("Response schema for creating a training job.")
|
|
47
|
+
}).passthrough().describe("Response schema for creating a training job.")
|
|
48
48
|
});
|
|
49
49
|
//#endregion
|
|
50
50
|
export { replicateTrainingsCreate };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trainings-create.mjs","names":[],"sources":["../../src/actions/trainings-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsCreateInput = z.object({\n name: z.string().describe(\"Name of the model to train\"),\n input: z.record(z.string(), z.unknown()).describe(\"JSON object containing inputs to the Cog model's train() function. Schema varies by model\"),\n owner: z.string().describe(\"Name of the user or organization owning the model\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when training updates occur\").optional(),\n version_id: z.string().describe(\"The 64-character model version identifier to use for training\"),\n destination: z.string().describe(\"Destination model to push to in format {owner}/{name}\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of event types that trigger webhook calls. Options: 'start', 'output', 'logs', 'completed'\").optional(),\n}).describe(\"Request schema for creating a training job.\");\nconst ReplicateTrainingsCreate_TrainingsCreateUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint to retrieve training status\").nullable(),\n web: z.string().describe(\"Browser-viewable training URL\").nullable().optional(),\n cancel: z.string().describe(\"Endpoint to cancel the training\").nullable(),\n}).describe(\"Endpoints to manage the training.\");\nconst ReplicateTrainingsCreate_TrainingsCreateMetricsSchema = z.object({\n total_time: z.number().describe(\"Total completion time in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during training execution\").nullable().optional(),\n}).describe(\"Performance metrics for the training.\");\nexport const ReplicateTrainingsCreateOutput = z.object({\n id: z.string().describe(\"Unique training identifier\").nullable(),\n logs: z.string().describe(\"Training operation logs\").nullable().optional(),\n urls: ReplicateTrainingsCreate_TrainingsCreateUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if training failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Training results including generated version and weights URLs (available upon success)\").nullable().optional(),\n source: z.string().describe(\"How training was created: web or api\").nullable().optional(),\n status: z.string().describe(\"Current training state - one of: starting, processing, succeeded, failed, canceled\").nullable(),\n metrics: ReplicateTrainingsCreate_TrainingsCreateMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID used to create the training\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when training was initiated\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when training finished\").nullable().optional(),\n}).describe(\"Response schema for creating a training job.\");\n\nexport const replicateTrainingsCreate = action(\"REPLICATE_TRAININGS_CREATE\", {\n slug: \"replicate-trainings-create\",\n name: \"Create Training Job\",\n description: \"Tool to create a training job for a specific model version. Use when you need to fine-tune a model with custom training data. Supports webhook notifications for training status updates.\",\n input: ReplicateTrainingsCreateInput,\n output: ReplicateTrainingsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F;CAC7I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD;CACxF,uBAAuB,EAAE,MAAM,EAAE,KAAK;EAAC;EAAS;EAAU;EAAQ;CAAW,CAAC,CAAC,CAAC,CAAC,SAAS,iGAAiG,CAAC,CAAC,SAAS;AACxM,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,qDAAqD,EAAE,OAAO;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC9E,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,mCAAmC;
|
|
1
|
+
{"version":3,"file":"trainings-create.mjs","names":[],"sources":["../../src/actions/trainings-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsCreateInput = z.object({\n name: z.string().describe(\"Name of the model to train\"),\n input: z.record(z.string(), z.unknown()).describe(\"JSON object containing inputs to the Cog model's train() function. Schema varies by model\"),\n owner: z.string().describe(\"Name of the user or organization owning the model\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when training updates occur\").optional(),\n version_id: z.string().describe(\"The 64-character model version identifier to use for training\"),\n destination: z.string().describe(\"Destination model to push to in format {owner}/{name}\"),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"List of event types that trigger webhook calls. Options: 'start', 'output', 'logs', 'completed'\").optional(),\n}).describe(\"Request schema for creating a training job.\");\nconst ReplicateTrainingsCreate_TrainingsCreateUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint to retrieve training status\").nullable(),\n web: z.string().describe(\"Browser-viewable training URL\").nullable().optional(),\n cancel: z.string().describe(\"Endpoint to cancel the training\").nullable(),\n}).passthrough().describe(\"Endpoints to manage the training.\");\nconst ReplicateTrainingsCreate_TrainingsCreateMetricsSchema = z.object({\n total_time: z.number().describe(\"Total completion time in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during training execution\").nullable().optional(),\n}).passthrough().describe(\"Performance metrics for the training.\");\nexport const ReplicateTrainingsCreateOutput = z.object({\n id: z.string().describe(\"Unique training identifier\").nullable(),\n logs: z.string().describe(\"Training operation logs\").nullable().optional(),\n urls: ReplicateTrainingsCreate_TrainingsCreateUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if training failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Training results including generated version and weights URLs (available upon success)\").nullable().optional(),\n source: z.string().describe(\"How training was created: web or api\").nullable().optional(),\n status: z.string().describe(\"Current training state - one of: starting, processing, succeeded, failed, canceled\").nullable(),\n metrics: ReplicateTrainingsCreate_TrainingsCreateMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID used to create the training\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when training was initiated\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when training finished\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a training job.\");\n\nexport const replicateTrainingsCreate = action(\"REPLICATE_TRAININGS_CREATE\", {\n slug: \"replicate-trainings-create\",\n name: \"Create Training Job\",\n description: \"Tool to create a training job for a specific model version. Use when you need to fine-tune a model with custom training data. Supports webhook notifications for training status updates.\",\n input: ReplicateTrainingsCreateInput,\n output: ReplicateTrainingsCreateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAAgC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CACtD,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,2FAA2F;CAC7I,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD;CAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CACxG,YAAY,EAAE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O,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oCAAoC;EACtF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,wFAAwF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3I,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC3H,SAAS,sDAAsD,SAAS,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EAC3F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8CAOhB;AACV,CAAC"}
|
|
@@ -5,15 +5,15 @@ const ReplicateTrainingsListInput = zod.z.object({ cursor: zod.z.string().descri
|
|
|
5
5
|
const ReplicateTrainingsList_TrainingUrlsSchema = zod.z.object({
|
|
6
6
|
get: zod.z.string().describe("URL to retrieve the training's current status and results").nullable(),
|
|
7
7
|
cancel: zod.z.string().describe("URL to cancel the in-progress training").nullable()
|
|
8
|
-
}).describe("Convenience URLs for interacting with a training.");
|
|
8
|
+
}).passthrough().describe("Convenience URLs for interacting with a training.");
|
|
9
9
|
const ReplicateTrainingsList_TrainingOutputSchema = zod.z.object({
|
|
10
10
|
version: zod.z.string().describe("64-character version ID of the trained model").nullable().optional(),
|
|
11
11
|
weights: zod.z.string().describe("URL to the trained model weights").nullable().optional()
|
|
12
|
-
}).describe("Training output containing the resulting model version and weights.");
|
|
12
|
+
}).passthrough().describe("Training output containing the resulting model version and weights.");
|
|
13
13
|
const ReplicateTrainingsList_TrainingMetricsSchema = zod.z.object({
|
|
14
14
|
total_time: zod.z.number().describe("Total time from creation to completion in seconds").nullable().optional(),
|
|
15
15
|
predict_time: zod.z.number().describe("Time taken for prediction execution in seconds").nullable().optional()
|
|
16
|
-
}).describe("Performance metrics for a training job.");
|
|
16
|
+
}).passthrough().describe("Performance metrics for a training job.");
|
|
17
17
|
const ReplicateTrainingsList_TrainingSchema = zod.z.object({
|
|
18
18
|
id: zod.z.string().describe("Unique identifier for this training job").nullable(),
|
|
19
19
|
logs: zod.z.string().describe("Training log output").nullable().optional(),
|
|
@@ -29,12 +29,12 @@ const ReplicateTrainingsList_TrainingSchema = zod.z.object({
|
|
|
29
29
|
created_at: zod.z.string().describe("ISO 8601 timestamp when the training was created").nullable(),
|
|
30
30
|
started_at: zod.z.string().describe("ISO 8601 timestamp when training began, null if not started").nullable().optional(),
|
|
31
31
|
completed_at: zod.z.string().describe("ISO 8601 timestamp when the training completed, null if not completed").nullable().optional()
|
|
32
|
-
}).describe("Representation of a training job object.");
|
|
32
|
+
}).passthrough().describe("Representation of a training job object.");
|
|
33
33
|
const ReplicateTrainingsListOutput = zod.z.object({
|
|
34
34
|
next: zod.z.string().describe("URL for the next page of results, null if no more pages available").nullable().optional(),
|
|
35
35
|
results: zod.z.array(ReplicateTrainingsList_TrainingSchema).describe("Array of training objects on this page (up to 100 trainings per page)"),
|
|
36
36
|
previous: zod.z.string().describe("URL for the previous page of results, null if on the first page").nullable().optional()
|
|
37
|
-
}).describe("Paginated list of training jobs.");
|
|
37
|
+
}).passthrough().describe("Paginated list of training jobs.");
|
|
38
38
|
const replicateTrainingsList = require_action.action("REPLICATE_TRAININGS_LIST", {
|
|
39
39
|
slug: "replicate-trainings-list",
|
|
40
40
|
name: "List Training Jobs",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trainings-list.cjs","names":["z","action"],"sources":["../../src/actions/trainings-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsListInput = 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 training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\").nullable(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema = z.object({\n id: z.string().describe(\"Unique identifier for this training job\").nullable(),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,mDAAmD;
|
|
1
|
+
{"version":3,"file":"trainings-list.cjs","names":["z","action"],"sources":["../../src/actions/trainings-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsListInput = 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 training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\").nullable(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).passthrough().describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).passthrough().describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).passthrough().describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema = z.object({\n id: z.string().describe(\"Unique identifier for this training job\").nullable(),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).passthrough().describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC/F,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAC/F,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,YAAYA,IAAAA,EAAE,OAA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DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AACpE,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnH,SAASA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uEAAuE;CACxI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -12,27 +12,27 @@ declare const ReplicateTrainingsListOutput: z.ZodObject<{
|
|
|
12
12
|
urls: z.ZodNullable<z.ZodObject<{
|
|
13
13
|
get: z.ZodNullable<z.ZodString>;
|
|
14
14
|
cancel: z.ZodNullable<z.ZodString>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
16
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
18
|
model: z.ZodNullable<z.ZodString>;
|
|
19
19
|
output: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
20
|
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
weights: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
source: z.ZodNullable<z.ZodString>;
|
|
24
24
|
status: z.ZodNullable<z.ZodString>;
|
|
25
25
|
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
26
|
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
29
|
version: z.ZodNullable<z.ZodString>;
|
|
30
30
|
created_at: z.ZodNullable<z.ZodString>;
|
|
31
31
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>;
|
|
36
36
|
declare const replicateTrainingsList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
37
|
cursor?: string | undefined;
|
|
38
38
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -12,27 +12,27 @@ declare const ReplicateTrainingsListOutput: z.ZodObject<{
|
|
|
12
12
|
urls: z.ZodNullable<z.ZodObject<{
|
|
13
13
|
get: z.ZodNullable<z.ZodString>;
|
|
14
14
|
cancel: z.ZodNullable<z.ZodString>;
|
|
15
|
-
}, z.core.$
|
|
15
|
+
}, z.core.$loose>>;
|
|
16
16
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
18
18
|
model: z.ZodNullable<z.ZodString>;
|
|
19
19
|
output: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
20
|
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
21
|
weights: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>>;
|
|
23
23
|
source: z.ZodNullable<z.ZodString>;
|
|
24
24
|
status: z.ZodNullable<z.ZodString>;
|
|
25
25
|
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
26
26
|
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
27
|
predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>>>;
|
|
29
29
|
version: z.ZodNullable<z.ZodString>;
|
|
30
30
|
created_at: z.ZodNullable<z.ZodString>;
|
|
31
31
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
-
}, z.core.$
|
|
35
|
+
}, z.core.$loose>;
|
|
36
36
|
declare const replicateTrainingsList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
37
|
cursor?: string | undefined;
|
|
38
38
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -5,15 +5,15 @@ const ReplicateTrainingsListInput = z.object({ cursor: z.string().describe("Curs
|
|
|
5
5
|
const ReplicateTrainingsList_TrainingUrlsSchema = z.object({
|
|
6
6
|
get: z.string().describe("URL to retrieve the training's current status and results").nullable(),
|
|
7
7
|
cancel: z.string().describe("URL to cancel the in-progress training").nullable()
|
|
8
|
-
}).describe("Convenience URLs for interacting with a training.");
|
|
8
|
+
}).passthrough().describe("Convenience URLs for interacting with a training.");
|
|
9
9
|
const ReplicateTrainingsList_TrainingOutputSchema = z.object({
|
|
10
10
|
version: z.string().describe("64-character version ID of the trained model").nullable().optional(),
|
|
11
11
|
weights: z.string().describe("URL to the trained model weights").nullable().optional()
|
|
12
|
-
}).describe("Training output containing the resulting model version and weights.");
|
|
12
|
+
}).passthrough().describe("Training output containing the resulting model version and weights.");
|
|
13
13
|
const ReplicateTrainingsList_TrainingMetricsSchema = z.object({
|
|
14
14
|
total_time: z.number().describe("Total time from creation to completion in seconds").nullable().optional(),
|
|
15
15
|
predict_time: z.number().describe("Time taken for prediction execution in seconds").nullable().optional()
|
|
16
|
-
}).describe("Performance metrics for a training job.");
|
|
16
|
+
}).passthrough().describe("Performance metrics for a training job.");
|
|
17
17
|
const ReplicateTrainingsList_TrainingSchema = z.object({
|
|
18
18
|
id: z.string().describe("Unique identifier for this training job").nullable(),
|
|
19
19
|
logs: z.string().describe("Training log output").nullable().optional(),
|
|
@@ -29,7 +29,7 @@ const ReplicateTrainingsList_TrainingSchema = z.object({
|
|
|
29
29
|
created_at: z.string().describe("ISO 8601 timestamp when the training was created").nullable(),
|
|
30
30
|
started_at: z.string().describe("ISO 8601 timestamp when training began, null if not started").nullable().optional(),
|
|
31
31
|
completed_at: z.string().describe("ISO 8601 timestamp when the training completed, null if not completed").nullable().optional()
|
|
32
|
-
}).describe("Representation of a training job object.");
|
|
32
|
+
}).passthrough().describe("Representation of a training job object.");
|
|
33
33
|
const replicateTrainingsList = action("REPLICATE_TRAININGS_LIST", {
|
|
34
34
|
slug: "replicate-trainings-list",
|
|
35
35
|
name: "List Training Jobs",
|
|
@@ -39,7 +39,7 @@ const replicateTrainingsList = action("REPLICATE_TRAININGS_LIST", {
|
|
|
39
39
|
next: z.string().describe("URL for the next page of results, null if no more pages available").nullable().optional(),
|
|
40
40
|
results: z.array(ReplicateTrainingsList_TrainingSchema).describe("Array of training objects on this page (up to 100 trainings per page)"),
|
|
41
41
|
previous: z.string().describe("URL for the previous page of results, null if on the first page").nullable().optional()
|
|
42
|
-
}).describe("Paginated list of training jobs.")
|
|
42
|
+
}).passthrough().describe("Paginated list of training jobs.")
|
|
43
43
|
});
|
|
44
44
|
//#endregion
|
|
45
45
|
export { replicateTrainingsList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trainings-list.mjs","names":[],"sources":["../../src/actions/trainings-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsListInput = 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 training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\").nullable(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema = z.object({\n id: z.string().describe(\"Unique identifier for this training job\").nullable(),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,mDAAmD;
|
|
1
|
+
{"version":3,"file":"trainings-list.mjs","names":[],"sources":["../../src/actions/trainings-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateTrainingsListInput = 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 training jobs with optional pagination.\");\nconst ReplicateTrainingsList_TrainingUrlsSchema = z.object({\n get: z.string().describe(\"URL to retrieve the training's current status and results\").nullable(),\n cancel: z.string().describe(\"URL to cancel the in-progress training\").nullable(),\n}).passthrough().describe(\"Convenience URLs for interacting with a training.\");\nconst ReplicateTrainingsList_TrainingOutputSchema = z.object({\n version: z.string().describe(\"64-character version ID of the trained model\").nullable().optional(),\n weights: z.string().describe(\"URL to the trained model weights\").nullable().optional(),\n}).passthrough().describe(\"Training output containing the resulting model version and weights.\");\nconst ReplicateTrainingsList_TrainingMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time from creation to completion in seconds\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction execution in seconds\").nullable().optional(),\n}).passthrough().describe(\"Performance metrics for a training job.\");\nconst ReplicateTrainingsList_TrainingSchema = z.object({\n id: z.string().describe(\"Unique identifier for this training job\").nullable(),\n logs: z.string().describe(\"Training log output\").nullable().optional(),\n urls: ReplicateTrainingsList_TrainingUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the training failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Training input parameters provided\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable(),\n output: ReplicateTrainingsList_TrainingOutputSchema.nullable().optional(),\n source: z.string().describe(\"How the training was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the training: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicateTrainingsList_TrainingMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the base model used for training\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the training was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when training began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the training completed, null if not completed\").nullable().optional(),\n}).passthrough().describe(\"Representation of a training job object.\");\nexport const ReplicateTrainingsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicateTrainingsList_TrainingSchema).describe(\"Array of training objects on this page (up to 100 trainings per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of training jobs.\");\n\nexport const replicateTrainingsList = action(\"REPLICATE_TRAININGS_LIST\", {\n slug: \"replicate-trainings-list\",\n name: \"List Training Jobs\",\n description: \"Tool to list all training jobs for the authenticated user or organization with pagination. Use when you need to retrieve training history or check the status of training jobs.\",\n input: ReplicateTrainingsListInput,\n output: ReplicateTrainingsListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,oEAAoE;AAChF,MAAM,4CAA4C,EAAE,OAAO;CACzD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,2DAA2D,CAAC,CAAC,SAAS;CAC/F,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mDAAmD;AAC7E,MAAM,8CAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,qEAAqE;AAC/F,MAAM,+CAA+C,EAAE,OAAO;CAC5D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CA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C,CAAC,YAAY,CAAC,CAAC,SAAS,0CAA0C;AAOpE,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX0C,EAAE,OAAO;EACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnH,SAAS,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,uEAAuE;EACxI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAOhB;AACV,CAAC"}
|
|
@@ -25,7 +25,7 @@ const ReplicateUpdateModelsOutput = zod.z.object({
|
|
|
25
25
|
latest_version: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The model's latest version").nullable().optional(),
|
|
26
26
|
cover_image_url: zod.z.string().describe("A URL for the model's cover image").nullable().optional(),
|
|
27
27
|
default_example: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The model's default example prediction").nullable().optional()
|
|
28
|
-
}).describe("Response schema for updating a model's metadata.");
|
|
28
|
+
}).passthrough().describe("Response schema for updating a model's metadata.");
|
|
29
29
|
const replicateUpdateModels = require_action.action("REPLICATE_UPDATE_MODELS", {
|
|
30
30
|
slug: "replicate-update-models",
|
|
31
31
|
name: "Update Model Metadata",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-models.cjs","names":["z","action"],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\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 model_name: z.string().describe(\"The name of the model to update\"),\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 model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = 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 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. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").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 updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC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AC,SAAS;CAC9M,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,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,kDAAkD;
|
|
1
|
+
{"version":3,"file":"update-models.cjs","names":["z","action"],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\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 model_name: z.string().describe(\"The name of the model to update\"),\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 model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = 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 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. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").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 updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACxE,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;CACvE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;CACjE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CACxE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC3E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CAC3F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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F,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,kDAAkD;AAE5E,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -25,7 +25,7 @@ declare const ReplicateUpdateModelsOutput: z.ZodObject<{
|
|
|
25
25
|
latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
26
26
|
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const replicateUpdateModels: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
model_name: string;
|
|
31
31
|
model_owner: string;
|
|
@@ -25,7 +25,7 @@ declare const ReplicateUpdateModelsOutput: z.ZodObject<{
|
|
|
25
25
|
latest_version: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
26
26
|
cover_image_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
default_example: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
28
|
-
}, z.core.$
|
|
28
|
+
}, z.core.$loose>;
|
|
29
29
|
declare const replicateUpdateModels: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
30
30
|
model_name: string;
|
|
31
31
|
model_owner: string;
|
|
@@ -28,7 +28,7 @@ const replicateUpdateModels = action("REPLICATE_UPDATE_MODELS", {
|
|
|
28
28
|
latest_version: z.record(z.string(), z.unknown()).describe("The model's latest version").nullable().optional(),
|
|
29
29
|
cover_image_url: z.string().describe("A URL for the model's cover image").nullable().optional(),
|
|
30
30
|
default_example: z.record(z.string(), z.unknown()).describe("The model's default example prediction").nullable().optional()
|
|
31
|
-
}).describe("Response schema for updating a model's metadata.")
|
|
31
|
+
}).passthrough().describe("Response schema for updating a model's metadata.")
|
|
32
32
|
});
|
|
33
33
|
//#endregion
|
|
34
34
|
export { replicateUpdateModels };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-models.mjs","names":[],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\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 model_name: z.string().describe(\"The name of the model to update\"),\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 model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = 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 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. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").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 updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;AA8BA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACxE,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;EACvE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EACxF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC;EACjE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACxE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;EAC3E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;EAC3F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAC7E,CAAC,CAAC,CAAC,SAAS,iDAqBH;CACP,QArByC,EAAE,OAAO;EAClD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;EAC5D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EAChG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClF,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,iKAAiK,CAAC,CAAC,SAAS;EAC9M,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,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":"update-models.mjs","names":[],"sources":["../../src/actions/update-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateUpdateModelsInput = z.object({\n readme: z.string().describe(\"The README content of the model\").optional(),\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 model_name: z.string().describe(\"The name of the model to update\"),\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 model_owner: z.string().describe(\"The name of the user or organization that owns the model\"),\n weights_url: z.string().describe(\"A URL for the model's weights\").optional(),\n}).describe(\"Request schema for updating a model's metadata.\");\nexport const ReplicateUpdateModelsOutput = 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 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. Official models are always on, have stable API interfaces, and predictable pricing.\").nullable(),\n license_url: z.string().describe(\"A URL for the model's license\").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 updating a model's metadata.\");\n\nexport const replicateUpdateModels = action(\"REPLICATE_UPDATE_MODELS\", {\n slug: \"replicate-update-models\",\n name: \"Update Model Metadata\",\n description: \"Tool to update metadata for a model including description, URLs, and README. Use when you need to modify a model's visibility, documentation, or associated links.\",\n input: ReplicateUpdateModelsInput,\n output: ReplicateUpdateModelsOutput,\n});\n"],"mappings":";;AA8BA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BwC,EAAE,OAAO;EACjD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC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E,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,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,kDAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/webhooks-secret-get.ts
|
|
4
4
|
const ReplicateWebhooksSecretGetInput = zod.z.object({}).describe("No parameters are required for getting the webhook signing secret.");
|
|
5
|
-
const ReplicateWebhooksSecretGetOutput = zod.z.object({ key: zod.z.string().describe("The signing secret used to verify that webhook requests are coming from Replicate").nullable() }).describe("Response schema for webhooks_secret_get: The signing secret for the default webhook.");
|
|
5
|
+
const ReplicateWebhooksSecretGetOutput = zod.z.object({ key: zod.z.string().describe("The signing secret used to verify that webhook requests are coming from Replicate").nullable() }).passthrough().describe("Response schema for webhooks_secret_get: The signing secret for the default webhook.");
|
|
6
6
|
const replicateWebhooksSecretGet = require_action.action("REPLICATE_WEBHOOKS_SECRET_GET", {
|
|
7
7
|
slug: "replicate-webhooks-secret-get",
|
|
8
8
|
name: "Get Webhook Signing Secret",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-secret-get.cjs","names":["z","action"],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;AACzI,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,SAAS,sFAAsF;
|
|
1
|
+
{"version":3,"file":"webhooks-secret-get.cjs","names":["z","action"],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).passthrough().describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAAoE;AACzI,MAAa,mCAAmCA,IAAAA,EAAE,OAAO,EACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAAsF;AAEhH,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
declare const ReplicateWebhooksSecretGetInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
declare const ReplicateWebhooksSecretGetOutput: z.ZodObject<{
|
|
6
6
|
key: z.ZodNullable<z.ZodString>;
|
|
7
|
-
}, z.core.$
|
|
7
|
+
}, z.core.$loose>;
|
|
8
8
|
declare const replicateWebhooksSecretGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { replicateWebhooksSecretGet };
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
declare const ReplicateWebhooksSecretGetInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
declare const ReplicateWebhooksSecretGetOutput: z.ZodObject<{
|
|
6
6
|
key: z.ZodNullable<z.ZodString>;
|
|
7
|
-
}, z.core.$
|
|
7
|
+
}, z.core.$loose>;
|
|
8
8
|
declare const replicateWebhooksSecretGet: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { replicateWebhooksSecretGet };
|
|
@@ -5,7 +5,7 @@ const replicateWebhooksSecretGet = action("REPLICATE_WEBHOOKS_SECRET_GET", {
|
|
|
5
5
|
name: "Get Webhook Signing Secret",
|
|
6
6
|
description: "Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.",
|
|
7
7
|
input: z.object({}).describe("No parameters are required for getting the webhook signing secret."),
|
|
8
|
-
output: z.object({ key: z.string().describe("The signing secret used to verify that webhook requests are coming from Replicate").nullable() }).describe("Response schema for webhooks_secret_get: The signing secret for the default webhook.")
|
|
8
|
+
output: z.object({ key: z.string().describe("The signing secret used to verify that webhook requests are coming from Replicate").nullable() }).passthrough().describe("Response schema for webhooks_secret_get: The signing secret for the default webhook.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { replicateWebhooksSecretGet };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-secret-get.mjs","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;AASA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAS5D;CACP,QAT8C,EAAE,OAAO,EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,SAAS,
|
|
1
|
+
{"version":3,"file":"webhooks-secret-get.mjs","names":[],"sources":["../../src/actions/webhooks-secret-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateWebhooksSecretGetInput = z.object({}).describe(\"No parameters are required for getting the webhook signing secret.\");\nexport const ReplicateWebhooksSecretGetOutput = z.object({\n key: z.string().describe(\"The signing secret used to verify that webhook requests are coming from Replicate\").nullable(),\n}).passthrough().describe(\"Response schema for webhooks_secret_get: The signing secret for the default webhook.\");\n\nexport const replicateWebhooksSecretGet = action(\"REPLICATE_WEBHOOKS_SECRET_GET\", {\n slug: \"replicate-webhooks-secret-get\",\n name: \"Get Webhook Signing Secret\",\n description: \"Tool to get the signing secret for the default webhook. Use when you need to retrieve the secret key used to verify webhook authenticity.\",\n input: ReplicateWebhooksSecretGetInput,\n output: ReplicateWebhooksSecretGetOutput,\n});\n"],"mappings":";;AASA,MAAa,6BAA6B,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAT6C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,oEAS5D;CACP,QAT8C,EAAE,OAAO,EACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS,EACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sFAOhB;AACV,CAAC"}
|