@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-list.mjs","names":[],"sources":["../../src/actions/files-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesListInput = 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 files with optional pagination.\");\nconst ReplicateFilesList_FileUrlsSchema = z.object({\n get: z.string().describe(\"URL to the file resource\").nullable(),\n}).describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesList_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).describe(\"Checksums for file integrity verification.\");\nconst ReplicateFilesList_FileSchema = z.object({\n id: z.string().describe(\"Unique random identifier for the file\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"File length in bytes, must be non-negative\").nullable(),\n urls: ReplicateFilesList_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata (can be empty object)\"),\n checksums: ReplicateFilesList_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 date-time format\").nullable(),\n expires_at: z.string().describe(\"Expiration timestamp in ISO 8601 date-time format\").nullable(),\n content_type: z.string().describe(\"MIME type of the file\").nullable(),\n}).describe(\"Representation of a file object.\");\nexport const ReplicateFilesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateFilesList_FileSchema).describe(\"List of files returned in this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).describe(\"Paginated list of files.\");\n\nexport const replicateFilesList = action(\"REPLICATE_FILES_LIST\", {\n slug: \"replicate-files-list\",\n name: \"List Files\",\n description: \"Tool to retrieve a paginated list of uploaded files. Use to view all files created by the authenticated user or organization. Files are sorted with most recent first. Pagination is cursor-based: follow the next cursor until empty to retrieve all files. Limit requests to 1–2/second to avoid 429 Too Many Requests errors. Use to validate current file_ids before passing to prediction tools, as stale file_ids cause runtime errors.\",\n input: ReplicateFilesListInput,\n output: ReplicateFilesListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAoC,EAAE,OAAO,EACjD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,yCAAyC;
|
|
1
|
+
{"version":3,"file":"files-list.mjs","names":[],"sources":["../../src/actions/files-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesListInput = 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 files with optional pagination.\");\nconst ReplicateFilesList_FileUrlsSchema = z.object({\n get: z.string().describe(\"URL to the file resource\").nullable(),\n}).passthrough().describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesList_FileChecksumsSchema = z.object({\n md5: z.string().describe(\"MD5 checksum of the file\").nullable().optional(),\n sha256: z.string().describe(\"SHA256 checksum of the file\").nullable(),\n}).passthrough().describe(\"Checksums for file integrity verification.\");\nconst ReplicateFilesList_FileSchema = z.object({\n id: z.string().describe(\"Unique random identifier for the file\").nullable(),\n etag: z.string().describe(\"Entity tag for the file\").nullable().optional(),\n name: z.string().describe(\"Name of the file\").nullable().optional(),\n size: z.number().int().describe(\"File length in bytes, must be non-negative\").nullable(),\n urls: ReplicateFilesList_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"User-provided metadata (can be empty object)\"),\n checksums: ReplicateFilesList_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"Creation timestamp in ISO 8601 date-time format\").nullable(),\n expires_at: z.string().describe(\"Expiration timestamp in ISO 8601 date-time format\").nullable(),\n content_type: z.string().describe(\"MIME type of the file\").nullable(),\n}).passthrough().describe(\"Representation of a file object.\");\nexport const ReplicateFilesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any\").nullable().optional(),\n results: z.array(ReplicateFilesList_FileSchema).describe(\"List of files returned in this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of files.\");\n\nexport const replicateFilesList = action(\"REPLICATE_FILES_LIST\", {\n slug: \"replicate-files-list\",\n name: \"List Files\",\n description: \"Tool to retrieve a paginated list of uploaded files. Use to view all files created by the authenticated user or organization. Files are sorted with most recent first. Pagination is cursor-based: follow the next cursor until empty to retrieve all files. Limit requests to 1–2/second to avoid 429 Too Many Requests errors. Use to validate current file_ids before passing to prediction tools, as stale file_ids cause runtime errors.\",\n input: ReplicateFilesListInput,\n output: ReplicateFilesListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAoC,EAAE,OAAO,EACjD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,EAChE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yCAAyC;AACnE,MAAM,yCAAyC,EAAE,OAAO;CACtD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AACtE,MAAM,gCAAgC,EAAE,OAAO;CAC7C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACvF,MAAM,kCAAkC,SAAS;CACjD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C;CACnG,WAAW,uCAAuC,SAAS;CAC3D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC9F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAO5D,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsC,EAAE,OAAO;EAC/C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,SAAS,EAAE,MAAM,6BAA6B,CAAC,CAAC,SAAS,qCAAqC;EAC9F,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,0BAOhB;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ const ReplicateGetPrediction_GetPredictionUrlsSchema = zod.z.object({
|
|
|
7
7
|
web: zod.z.string().describe("View the prediction in a browser").nullable().optional(),
|
|
8
8
|
cancel: zod.z.string().describe("Cancel the prediction via API").nullable(),
|
|
9
9
|
stream: zod.z.string().describe("An event source to stream the output of the prediction via API").nullable().optional()
|
|
10
|
-
}).describe("URLs for working with the prediction.");
|
|
10
|
+
}).passthrough().describe("URLs for working with the prediction.");
|
|
11
11
|
const ReplicateGetPrediction_PredictionSourceSchema = zod.z.enum(["web", "api"]).describe("Source of a prediction.");
|
|
12
12
|
const ReplicateGetPrediction_PredictionStatusSchema = zod.z.enum([
|
|
13
13
|
"starting",
|
|
@@ -17,13 +17,13 @@ const ReplicateGetPrediction_PredictionStatusSchema = zod.z.enum([
|
|
|
17
17
|
"canceled",
|
|
18
18
|
"aborted"
|
|
19
19
|
]).describe("Status of a prediction.");
|
|
20
|
-
const ReplicateGetPrediction_GetPredictionMetricsSchema = zod.z.object({ total_time: zod.z.number().describe("The total time, in seconds, that the prediction took to complete").nullable().optional() }).describe("Additional metrics associated with the prediction.");
|
|
20
|
+
const ReplicateGetPrediction_GetPredictionMetricsSchema = zod.z.object({ total_time: zod.z.number().describe("The total time, in seconds, that the prediction took to complete").nullable().optional() }).passthrough().describe("Additional metrics associated with the prediction.");
|
|
21
21
|
const ReplicateGetPredictionOutput = zod.z.object({
|
|
22
22
|
id: zod.z.string().describe("Unique identifier for this prediction").nullable(),
|
|
23
23
|
logs: zod.z.string().describe("The log output from the model").nullable().optional(),
|
|
24
24
|
urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),
|
|
25
25
|
error: zod.z.string().describe("An error string if the model status is 'failed'").nullable().optional(),
|
|
26
|
-
input: zod.z.
|
|
26
|
+
input: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The prediction input"),
|
|
27
27
|
model: zod.z.string().describe("The name of the model that created the prediction").nullable(),
|
|
28
28
|
output: zod.z.union([
|
|
29
29
|
zod.z.string(),
|
|
@@ -43,7 +43,7 @@ const ReplicateGetPredictionOutput = zod.z.object({
|
|
|
43
43
|
started_at: zod.z.string().describe("The time that the model began the prediction").nullable().optional(),
|
|
44
44
|
completed_at: zod.z.string().describe("The time that the model completed the prediction and all outputs were uploaded").nullable().optional(),
|
|
45
45
|
data_removed: zod.z.boolean().describe("Whether the prediction output has been deleted").nullable()
|
|
46
|
-
}).describe("Response schema for getting a prediction.");
|
|
46
|
+
}).passthrough().describe("Response schema for getting a prediction.");
|
|
47
47
|
const replicateGetPrediction = require_action.action("REPLICATE_GET_PREDICTION", {
|
|
48
48
|
slug: "replicate-get-prediction",
|
|
49
49
|
name: "Get Prediction",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prediction.cjs","names":["z","action"],"sources":["../../src/actions/get-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateGetPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to get\"),\n}).describe(\"Request schema for getting a prediction by ID.\");\nconst ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({\n get: z.string().describe(\"Retrieve the latest state of the prediction via API\").nullable(),\n web: z.string().describe(\"View the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"Cancel the prediction via API\").nullable(),\n stream: z.string().describe(\"An event source to stream the output of the prediction via API\").nullable().optional(),\n}).describe(\"URLs for working with the prediction.\");\nconst ReplicateGetPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateGetPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"The total time, in seconds, that the prediction took to complete\").nullable().optional(),\n}).describe(\"Additional metrics associated with the prediction.\");\nexport const ReplicateGetPredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.
|
|
1
|
+
{"version":3,"file":"get-prediction.cjs","names":["z","action"],"sources":["../../src/actions/get-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateGetPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to get\"),\n}).describe(\"Request schema for getting a prediction by ID.\");\nconst ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({\n get: z.string().describe(\"Retrieve the latest state of the prediction via API\").nullable(),\n web: z.string().describe(\"View the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"Cancel the prediction via API\").nullable(),\n stream: z.string().describe(\"An event source to stream the output of the prediction via API\").nullable().optional(),\n}).passthrough().describe(\"URLs for working with the prediction.\");\nconst ReplicateGetPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateGetPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"The total time, in seconds, that the prediction took to complete\").nullable().optional(),\n}).passthrough().describe(\"Additional metrics associated with the prediction.\");\nexport const ReplicateGetPredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).nullable().optional(),\n source: ReplicateGetPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateGetPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateGetPrediction_GetPredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The model version that created the prediction\").nullable(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for getting a prediction.\");\n\nexport const replicateGetPrediction = action(\"REPLICATE_GET_PREDICTION\", {\n slug: \"replicate-get-prediction\",\n name: \"Get Prediction\",\n description: \"Tool to get the status and output of a prediction by its ID. Use when you need to check on a running prediction or retrieve the results of a completed prediction.\",\n input: ReplicateGetPredictionInput,\n output: ReplicateGetPredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,EACtE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,iDAAiDA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACzF,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,gDAAgDA,IAAAA,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAC/G,MAAM,gDAAgDA,IAAAA,EAAE,KAAK;CAAC;CAAY;CAAc;CAAa;CAAU;CAAY;AAAS,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACzK,MAAM,oDAAoDA,IAAAA,EAAE,OAAO,EACjE,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAC9E,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;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,2CAA2C;AAErE,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -12,9 +12,9 @@ declare const ReplicateGetPredictionOutput: 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
|
-
input: z.
|
|
17
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
18
|
model: z.ZodNullable<z.ZodString>;
|
|
19
19
|
output: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
20
20
|
source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -31,7 +31,7 @@ declare const ReplicateGetPredictionOutput: z.ZodObject<{
|
|
|
31
31
|
}>>;
|
|
32
32
|
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
33
|
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
35
|
version: z.ZodNullable<z.ZodString>;
|
|
36
36
|
deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
created_at: z.ZodNullable<z.ZodString>;
|
|
@@ -39,7 +39,7 @@ declare const ReplicateGetPredictionOutput: z.ZodObject<{
|
|
|
39
39
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
40
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
data_removed: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>;
|
|
43
43
|
declare const replicateGetPrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
44
|
prediction_id: string;
|
|
45
45
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -12,9 +12,9 @@ declare const ReplicateGetPredictionOutput: 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
|
-
input: z.
|
|
17
|
+
input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
18
|
model: z.ZodNullable<z.ZodString>;
|
|
19
19
|
output: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnknown>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
20
20
|
source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
@@ -31,7 +31,7 @@ declare const ReplicateGetPredictionOutput: z.ZodObject<{
|
|
|
31
31
|
}>>;
|
|
32
32
|
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
33
|
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>>;
|
|
35
35
|
version: z.ZodNullable<z.ZodString>;
|
|
36
36
|
deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
37
|
created_at: z.ZodNullable<z.ZodString>;
|
|
@@ -39,7 +39,7 @@ declare const ReplicateGetPredictionOutput: z.ZodObject<{
|
|
|
39
39
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
40
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
41
|
data_removed: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>;
|
|
43
43
|
declare const replicateGetPrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
44
|
prediction_id: string;
|
|
45
45
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -7,7 +7,7 @@ const ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({
|
|
|
7
7
|
web: z.string().describe("View the prediction in a browser").nullable().optional(),
|
|
8
8
|
cancel: z.string().describe("Cancel the prediction via API").nullable(),
|
|
9
9
|
stream: z.string().describe("An event source to stream the output of the prediction via API").nullable().optional()
|
|
10
|
-
}).describe("URLs for working with the prediction.");
|
|
10
|
+
}).passthrough().describe("URLs for working with the prediction.");
|
|
11
11
|
const ReplicateGetPrediction_PredictionSourceSchema = z.enum(["web", "api"]).describe("Source of a prediction.");
|
|
12
12
|
const ReplicateGetPrediction_PredictionStatusSchema = z.enum([
|
|
13
13
|
"starting",
|
|
@@ -17,7 +17,7 @@ const ReplicateGetPrediction_PredictionStatusSchema = z.enum([
|
|
|
17
17
|
"canceled",
|
|
18
18
|
"aborted"
|
|
19
19
|
]).describe("Status of a prediction.");
|
|
20
|
-
const ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({ total_time: z.number().describe("The total time, in seconds, that the prediction took to complete").nullable().optional() }).describe("Additional metrics associated with the prediction.");
|
|
20
|
+
const ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({ total_time: z.number().describe("The total time, in seconds, that the prediction took to complete").nullable().optional() }).passthrough().describe("Additional metrics associated with the prediction.");
|
|
21
21
|
const replicateGetPrediction = action("REPLICATE_GET_PREDICTION", {
|
|
22
22
|
slug: "replicate-get-prediction",
|
|
23
23
|
name: "Get Prediction",
|
|
@@ -28,7 +28,7 @@ const replicateGetPrediction = action("REPLICATE_GET_PREDICTION", {
|
|
|
28
28
|
logs: z.string().describe("The log output from the model").nullable().optional(),
|
|
29
29
|
urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),
|
|
30
30
|
error: z.string().describe("An error string if the model status is 'failed'").nullable().optional(),
|
|
31
|
-
input: z.
|
|
31
|
+
input: z.record(z.string(), z.unknown()).describe("The prediction input"),
|
|
32
32
|
model: z.string().describe("The name of the model that created the prediction").nullable(),
|
|
33
33
|
output: z.union([
|
|
34
34
|
z.string(),
|
|
@@ -48,7 +48,7 @@ const replicateGetPrediction = action("REPLICATE_GET_PREDICTION", {
|
|
|
48
48
|
started_at: z.string().describe("The time that the model began the prediction").nullable().optional(),
|
|
49
49
|
completed_at: z.string().describe("The time that the model completed the prediction and all outputs were uploaded").nullable().optional(),
|
|
50
50
|
data_removed: z.boolean().describe("Whether the prediction output has been deleted").nullable()
|
|
51
|
-
}).describe("Response schema for getting a prediction.")
|
|
51
|
+
}).passthrough().describe("Response schema for getting a prediction.")
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
54
|
export { replicateGetPrediction };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prediction.mjs","names":[],"sources":["../../src/actions/get-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateGetPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to get\"),\n}).describe(\"Request schema for getting a prediction by ID.\");\nconst ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({\n get: z.string().describe(\"Retrieve the latest state of the prediction via API\").nullable(),\n web: z.string().describe(\"View the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"Cancel the prediction via API\").nullable(),\n stream: z.string().describe(\"An event source to stream the output of the prediction via API\").nullable().optional(),\n}).describe(\"URLs for working with the prediction.\");\nconst ReplicateGetPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateGetPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"The total time, in seconds, that the prediction took to complete\").nullable().optional(),\n}).describe(\"Additional metrics associated with the prediction.\");\nexport const ReplicateGetPredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.
|
|
1
|
+
{"version":3,"file":"get-prediction.mjs","names":[],"sources":["../../src/actions/get-prediction.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateGetPredictionInput = z.object({\n prediction_id: z.string().describe(\"The ID of the prediction to get\"),\n}).describe(\"Request schema for getting a prediction by ID.\");\nconst ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({\n get: z.string().describe(\"Retrieve the latest state of the prediction via API\").nullable(),\n web: z.string().describe(\"View the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"Cancel the prediction via API\").nullable(),\n stream: z.string().describe(\"An event source to stream the output of the prediction via API\").nullable().optional(),\n}).passthrough().describe(\"URLs for working with the prediction.\");\nconst ReplicateGetPrediction_PredictionSourceSchema = z.enum([\"web\", \"api\"]).describe(\"Source of a prediction.\");\nconst ReplicateGetPrediction_PredictionStatusSchema = z.enum([\"starting\", \"processing\", \"succeeded\", \"failed\", \"canceled\", \"aborted\"]).describe(\"Status of a prediction.\");\nconst ReplicateGetPrediction_GetPredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"The total time, in seconds, that the prediction took to complete\").nullable().optional(),\n}).passthrough().describe(\"Additional metrics associated with the prediction.\");\nexport const ReplicateGetPredictionOutput = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n logs: z.string().describe(\"The log output from the model\").nullable().optional(),\n urls: ReplicateGetPrediction_GetPredictionUrlsSchema.nullable(),\n error: z.string().describe(\"An error string if the model status is 'failed'\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The prediction input\"),\n model: z.string().describe(\"The name of the model that created the prediction\").nullable(),\n output: z.union([z.string(), z.number().int(), z.number(), z.boolean(), z.array(z.unknown()), z.record(z.string(), z.unknown())]).nullable().optional(),\n source: ReplicateGetPrediction_PredictionSourceSchema.nullable().optional(),\n status: ReplicateGetPrediction_PredictionStatusSchema.nullable(),\n metrics: ReplicateGetPrediction_GetPredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"The model version that created the prediction\").nullable(),\n deadline: z.string().describe(\"The absolute time at which the prediction will be automatically canceled if it has not completed\").nullable().optional(),\n created_at: z.string().describe(\"The time that the prediction was created\").nullable(),\n deployment: z.string().describe(\"The name of the deployment that created the prediction\").nullable().optional(),\n started_at: z.string().describe(\"The time that the model began the prediction\").nullable().optional(),\n completed_at: z.string().describe(\"The time that the model completed the prediction and all outputs were uploaded\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether the prediction output has been deleted\").nullable(),\n}).passthrough().describe(\"Response schema for getting a prediction.\");\n\nexport const replicateGetPrediction = action(\"REPLICATE_GET_PREDICTION\", {\n slug: \"replicate-get-prediction\",\n name: \"Get Prediction\",\n description: \"Tool to get the status and output of a prediction by its ID. Use when you need to check on a running prediction or retrieve the results of a completed prediction.\",\n input: ReplicateGetPredictionInput,\n output: ReplicateGetPredictionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO,EAClD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,EACtE,CAAC,CAAC,CAAC,SAAS,gDAAgD;AAC5D,MAAM,iDAAiD,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CACzF,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAM,gDAAgD,EAAE,KAAK,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,SAAS,yBAAyB;AAC/G,MAAM,gDAAgD,EAAE,KAAK;CAAC;CAAY;CAAc;CAAa;CAAU;CAAY;AAAS,CAAC,CAAC,CAAC,SAAS,yBAAyB;AACzK,MAAM,oDAAoD,EAAE,OAAO,EACjE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;A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,YAAY,EAAE,OAAO,CAAC,CAAC,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,2CAOhB;AACV,CAAC"}
|
|
@@ -5,8 +5,8 @@ const ReplicateHardwareListInput = zod.z.object({}).describe("No parameters are
|
|
|
5
5
|
const ReplicateHardwareList_HardwareSchema = zod.z.object({
|
|
6
6
|
sku: zod.z.string().describe("Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')").nullable(),
|
|
7
7
|
name: zod.z.string().describe("Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')").nullable()
|
|
8
|
-
}).describe("Representation of a hardware SKU.");
|
|
9
|
-
const ReplicateHardwareListOutput = zod.z.object({ hardware: zod.z.array(ReplicateHardwareList_HardwareSchema).describe("List of available hardware SKUs for models and deployments") }).describe("List of available hardware SKUs.");
|
|
8
|
+
}).passthrough().describe("Representation of a hardware SKU.");
|
|
9
|
+
const ReplicateHardwareListOutput = zod.z.object({ hardware: zod.z.array(ReplicateHardwareList_HardwareSchema).describe("List of available hardware SKUs for models and deployments") }).passthrough().describe("List of available hardware SKUs.");
|
|
10
10
|
const replicateHardwareList = require_action.action("REPLICATE_HARDWARE_LIST", {
|
|
11
11
|
slug: "replicate-hardware-list",
|
|
12
12
|
name: "List Available Hardware",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware-list.cjs","names":["z","action"],"sources":["../../src/actions/hardware-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateHardwareListInput = z.object({}).describe(\"No parameters are required for listing hardware.\");\nconst ReplicateHardwareList_HardwareSchema = z.object({\n sku: z.string().describe(\"Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')\").nullable(),\n name: z.string().describe(\"Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')\").nullable(),\n}).describe(\"Representation of a hardware SKU.\");\nexport const ReplicateHardwareListOutput = z.object({\n hardware: z.array(ReplicateHardwareList_HardwareSchema).describe(\"List of available hardware SKUs for models and deployments\"),\n}).describe(\"List of available hardware SKUs.\");\n\nexport const replicateHardwareList = action(\"REPLICATE_HARDWARE_LIST\", {\n slug: \"replicate-hardware-list\",\n name: \"List Available Hardware\",\n description: \"Tool to list available hardware SKUs for models and deployments. Use when you need to see what hardware options are available on the Replicate platform.\",\n input: ReplicateHardwareListInput,\n output: ReplicateHardwareListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAClH,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC9G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,mCAAmC;
|
|
1
|
+
{"version":3,"file":"hardware-list.cjs","names":["z","action"],"sources":["../../src/actions/hardware-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateHardwareListInput = z.object({}).describe(\"No parameters are required for listing hardware.\");\nconst ReplicateHardwareList_HardwareSchema = z.object({\n sku: z.string().describe(\"Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')\").nullable(),\n name: z.string().describe(\"Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')\").nullable(),\n}).passthrough().describe(\"Representation of a hardware SKU.\");\nexport const ReplicateHardwareListOutput = z.object({\n hardware: z.array(ReplicateHardwareList_HardwareSchema).describe(\"List of available hardware SKUs for models and deployments\"),\n}).passthrough().describe(\"List of available hardware SKUs.\");\n\nexport const replicateHardwareList = action(\"REPLICATE_HARDWARE_LIST\", {\n slug: \"replicate-hardware-list\",\n name: \"List Available Hardware\",\n description: \"Tool to list available hardware SKUs for models and deployments. Use when you need to see what hardware options are available on the Replicate platform.\",\n input: ReplicateHardwareListInput,\n output: ReplicateHardwareListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAClH,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC9G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAC7D,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,UAAUA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4DAA4D,EAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAE5D,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,8 +6,8 @@ declare const ReplicateHardwareListOutput: z.ZodObject<{
|
|
|
6
6
|
hardware: z.ZodArray<z.ZodObject<{
|
|
7
7
|
sku: z.ZodNullable<z.ZodString>;
|
|
8
8
|
name: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
10
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const replicateHardwareList: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { replicateHardwareList };
|
|
@@ -6,8 +6,8 @@ declare const ReplicateHardwareListOutput: z.ZodObject<{
|
|
|
6
6
|
hardware: z.ZodArray<z.ZodObject<{
|
|
7
7
|
sku: z.ZodNullable<z.ZodString>;
|
|
8
8
|
name: z.ZodNullable<z.ZodString>;
|
|
9
|
-
}, z.core.$
|
|
10
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>>;
|
|
10
|
+
}, z.core.$loose>;
|
|
11
11
|
declare const replicateHardwareList: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
12
12
|
//#endregion
|
|
13
13
|
export { replicateHardwareList };
|
|
@@ -5,13 +5,13 @@ const ReplicateHardwareListInput = z.object({}).describe("No parameters are requ
|
|
|
5
5
|
const ReplicateHardwareList_HardwareSchema = z.object({
|
|
6
6
|
sku: z.string().describe("Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')").nullable(),
|
|
7
7
|
name: z.string().describe("Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')").nullable()
|
|
8
|
-
}).describe("Representation of a hardware SKU.");
|
|
8
|
+
}).passthrough().describe("Representation of a hardware SKU.");
|
|
9
9
|
const replicateHardwareList = action("REPLICATE_HARDWARE_LIST", {
|
|
10
10
|
slug: "replicate-hardware-list",
|
|
11
11
|
name: "List Available Hardware",
|
|
12
12
|
description: "Tool to list available hardware SKUs for models and deployments. Use when you need to see what hardware options are available on the Replicate platform.",
|
|
13
13
|
input: ReplicateHardwareListInput,
|
|
14
|
-
output: z.object({ hardware: z.array(ReplicateHardwareList_HardwareSchema).describe("List of available hardware SKUs for models and deployments") }).describe("List of available hardware SKUs.")
|
|
14
|
+
output: z.object({ hardware: z.array(ReplicateHardwareList_HardwareSchema).describe("List of available hardware SKUs for models and deployments") }).passthrough().describe("List of available hardware SKUs.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { replicateHardwareList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware-list.mjs","names":[],"sources":["../../src/actions/hardware-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateHardwareListInput = z.object({}).describe(\"No parameters are required for listing hardware.\");\nconst ReplicateHardwareList_HardwareSchema = z.object({\n sku: z.string().describe(\"Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')\").nullable(),\n name: z.string().describe(\"Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')\").nullable(),\n}).describe(\"Representation of a hardware SKU.\");\nexport const ReplicateHardwareListOutput = z.object({\n hardware: z.array(ReplicateHardwareList_HardwareSchema).describe(\"List of available hardware SKUs for models and deployments\"),\n}).describe(\"List of available hardware SKUs.\");\n\nexport const replicateHardwareList = action(\"REPLICATE_HARDWARE_LIST\", {\n slug: \"replicate-hardware-list\",\n name: \"List Available Hardware\",\n description: \"Tool to list available hardware SKUs for models and deployments. Use when you need to see what hardware options are available on the Replicate platform.\",\n input: ReplicateHardwareListInput,\n output: ReplicateHardwareListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAClH,MAAM,uCAAuC,EAAE,OAAO;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC9G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,SAAS,mCAAmC;
|
|
1
|
+
{"version":3,"file":"hardware-list.mjs","names":[],"sources":["../../src/actions/hardware-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateHardwareListInput = z.object({}).describe(\"No parameters are required for listing hardware.\");\nconst ReplicateHardwareList_HardwareSchema = z.object({\n sku: z.string().describe(\"Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')\").nullable(),\n name: z.string().describe(\"Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')\").nullable(),\n}).passthrough().describe(\"Representation of a hardware SKU.\");\nexport const ReplicateHardwareListOutput = z.object({\n hardware: z.array(ReplicateHardwareList_HardwareSchema).describe(\"List of available hardware SKUs for models and deployments\"),\n}).passthrough().describe(\"List of available hardware SKUs.\");\n\nexport const replicateHardwareList = action(\"REPLICATE_HARDWARE_LIST\", {\n slug: \"replicate-hardware-list\",\n name: \"List Available Hardware\",\n description: \"Tool to list available hardware SKUs for models and deployments. Use when you need to see what hardware options are available on the Replicate platform.\",\n input: ReplicateHardwareListInput,\n output: ReplicateHardwareListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAClH,MAAM,uCAAuC,EAAE,OAAO;CACpD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS;CAC9G,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;AACpG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mCAAmC;AAK7D,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,UAAU,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4DAA4D,EAC/H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAOhB;AACV,CAAC"}
|
|
@@ -10,11 +10,11 @@ const ReplicateModelsExamplesList_ExampleUrlsSchema = zod.z.object({
|
|
|
10
10
|
get: zod.z.string().describe("URL to get the prediction details.").nullable(),
|
|
11
11
|
cancel: zod.z.string().describe("URL to cancel the prediction.").nullable(),
|
|
12
12
|
stream: zod.z.string().describe("URL to stream the prediction output, if available.").nullable().optional()
|
|
13
|
-
}).describe("URLs associated with a prediction.");
|
|
13
|
+
}).passthrough().describe("URLs associated with a prediction.");
|
|
14
14
|
const ReplicateModelsExamplesList_ExampleMetricsSchema = zod.z.object({
|
|
15
15
|
total_time: zod.z.number().describe("Total time including overhead in seconds.").nullable().optional(),
|
|
16
16
|
predict_time: zod.z.number().describe("Time taken for prediction in seconds.").nullable().optional()
|
|
17
|
-
}).describe("Metrics for a prediction.");
|
|
17
|
+
}).passthrough().describe("Metrics for a prediction.");
|
|
18
18
|
const ReplicateModelsExamplesList_ExamplePredictionSchema = zod.z.object({
|
|
19
19
|
id: zod.z.string().describe("Unique identifier of the example prediction.").nullable(),
|
|
20
20
|
logs: zod.z.string().describe("Text output from the model's execution.").nullable().optional(),
|
|
@@ -34,12 +34,12 @@ const ReplicateModelsExamplesList_ExamplePredictionSchema = zod.z.object({
|
|
|
34
34
|
started_at: zod.z.string().describe("Timestamp when prediction processing began (ISO 8601).").nullable().optional(),
|
|
35
35
|
completed_at: zod.z.string().describe("Timestamp when prediction finished (ISO 8601), if available.").nullable().optional(),
|
|
36
36
|
data_removed: zod.z.boolean().describe("Whether input/output data has been deleted.").nullable().optional()
|
|
37
|
-
}).describe("Represents a saved example prediction of a model.");
|
|
37
|
+
}).passthrough().describe("Represents a saved example prediction of a model.");
|
|
38
38
|
const ReplicateModelsExamplesListOutput = zod.z.object({
|
|
39
39
|
next: zod.z.string().describe("URL to fetch the next page of results, if any.").nullable().optional(),
|
|
40
40
|
results: zod.z.array(ReplicateModelsExamplesList_ExamplePredictionSchema).describe("List of example prediction objects."),
|
|
41
41
|
previous: zod.z.string().describe("URL to fetch the previous page of results, if any.").nullable().optional()
|
|
42
|
-
}).describe("Paginated list of example predictions for a model.");
|
|
42
|
+
}).passthrough().describe("Paginated list of example predictions for a model.");
|
|
43
43
|
const replicateModelsExamplesList = require_action.action("REPLICATE_MODELS_EXAMPLES_LIST", {
|
|
44
44
|
slug: "replicate-models-examples-list",
|
|
45
45
|
name: "List model examples",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-examples-list.cjs","names":["z","action"],"sources":["../../src/actions/models-examples-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsExamplesListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model to list examples for. Must exactly match the Replicate URL slug (case-sensitive).\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model. Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for listing example predictions for a specific model.\");\nconst ReplicateModelsExamplesList_ExampleUrlsSchema = z.object({\n get: z.string().describe(\"URL to get the prediction details.\").nullable(),\n cancel: z.string().describe(\"URL to cancel the prediction.\").nullable(),\n stream: z.string().describe(\"URL to stream the prediction output, if available.\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\");\nconst ReplicateModelsExamplesList_ExampleMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time including overhead in seconds.\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction in seconds.\").nullable().optional(),\n}).describe(\"Metrics for a prediction.\");\nconst ReplicateModelsExamplesList_ExamplePredictionSchema = z.object({\n id: z.string().describe(\"Unique identifier of the example prediction.\").nullable(),\n logs: z.string().describe(\"Text output from the model's execution.\").nullable().optional(),\n urls: ReplicateModelsExamplesList_ExampleUrlsSchema.nullable().optional(),\n error: z.string().describe(\"Error message if the prediction failed.\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input JSON object provided to the model for the example.\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}.\").nullable(),\n output: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Status of the prediction: starting, processing, succeeded, failed, or canceled.\").nullable(),\n metrics: ReplicateModelsExamplesList_ExampleMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the model used.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the example was created (ISO 8601).\").nullable(),\n started_at: z.string().describe(\"Timestamp when prediction processing began (ISO 8601).\").nullable().optional(),\n completed_at: z.string().describe(\"Timestamp when prediction finished (ISO 8601), if available.\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data has been deleted.\").nullable().optional(),\n}).describe(\"Represents a saved example prediction of a model.\");\nexport const ReplicateModelsExamplesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any.\").nullable().optional(),\n results: z.array(ReplicateModelsExamplesList_ExamplePredictionSchema).describe(\"List of example prediction objects.\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any.\").nullable().optional(),\n}).describe(\"Paginated list of example predictions for a model.\");\n\nexport const replicateModelsExamplesList = action(\"REPLICATE_MODELS_EXAMPLES_LIST\", {\n slug: \"replicate-models-examples-list\",\n name: \"List model examples\",\n description: \"Tool to list example predictions for a specific model. Use when you want to retrieve author-provided illustrative examples after identifying the model. Returned examples are minimal working payloads; cross-reference with REPLICATE_MODELS_README_GET before calling REPLICATE_CREATE_PREDICTION to satisfy strict input validation.\",\n input: ReplicateModelsExamplesListInput,\n output: ReplicateModelsExamplesListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;CACzI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;AAC1J,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gDAAgDA,IAAAA,EAAE,OAAO;CAC7D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACxE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,oCAAoC;
|
|
1
|
+
{"version":3,"file":"models-examples-list.cjs","names":["z","action"],"sources":["../../src/actions/models-examples-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsExamplesListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model to list examples for. Must exactly match the Replicate URL slug (case-sensitive).\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model. Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for listing example predictions for a specific model.\");\nconst ReplicateModelsExamplesList_ExampleUrlsSchema = z.object({\n get: z.string().describe(\"URL to get the prediction details.\").nullable(),\n cancel: z.string().describe(\"URL to cancel the prediction.\").nullable(),\n stream: z.string().describe(\"URL to stream the prediction output, if available.\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\");\nconst ReplicateModelsExamplesList_ExampleMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time including overhead in seconds.\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Metrics for a prediction.\");\nconst ReplicateModelsExamplesList_ExamplePredictionSchema = z.object({\n id: z.string().describe(\"Unique identifier of the example prediction.\").nullable(),\n logs: z.string().describe(\"Text output from the model's execution.\").nullable().optional(),\n urls: ReplicateModelsExamplesList_ExampleUrlsSchema.nullable().optional(),\n error: z.string().describe(\"Error message if the prediction failed.\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input JSON object provided to the model for the example.\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}.\").nullable(),\n output: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Status of the prediction: starting, processing, succeeded, failed, or canceled.\").nullable(),\n metrics: ReplicateModelsExamplesList_ExampleMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the model used.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the example was created (ISO 8601).\").nullable(),\n started_at: z.string().describe(\"Timestamp when prediction processing began (ISO 8601).\").nullable().optional(),\n completed_at: z.string().describe(\"Timestamp when prediction finished (ISO 8601), if available.\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data has been deleted.\").nullable().optional(),\n}).passthrough().describe(\"Represents a saved example prediction of a model.\");\nexport const ReplicateModelsExamplesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any.\").nullable().optional(),\n results: z.array(ReplicateModelsExamplesList_ExamplePredictionSchema).describe(\"List of example prediction objects.\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any.\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of example predictions for a model.\");\n\nexport const replicateModelsExamplesList = action(\"REPLICATE_MODELS_EXAMPLES_LIST\", {\n slug: \"replicate-models-examples-list\",\n name: \"List model examples\",\n description: \"Tool to list example predictions for a specific model. Use when you want to retrieve author-provided illustrative examples after identifying the model. Returned examples are minimal working payloads; cross-reference with REPLICATE_MODELS_README_GET before calling REPLICATE_CREATE_PREDICTION to satisfy strict input validation.\",\n input: ReplicateModelsExamplesListInput,\n output: ReplicateModelsExamplesListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAYA,IAAAA,EAAE,OAAO,CAAC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AC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oDAAoD;AAE9E,MAAa,8BAA8BC,eAAAA,OAAO,kCAAkC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -15,7 +15,7 @@ declare const ReplicateModelsExamplesListOutput: z.ZodObject<{
|
|
|
15
15
|
get: z.ZodNullable<z.ZodString>;
|
|
16
16
|
cancel: z.ZodNullable<z.ZodString>;
|
|
17
17
|
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>;
|
|
19
19
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
21
|
model: z.ZodNullable<z.ZodString>;
|
|
@@ -24,15 +24,15 @@ declare const ReplicateModelsExamplesListOutput: z.ZodObject<{
|
|
|
24
24
|
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
25
|
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
26
|
predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
28
|
version: z.ZodNullable<z.ZodString>;
|
|
29
29
|
created_at: z.ZodNullable<z.ZodString>;
|
|
30
30
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
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 replicateModelsExamplesList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
37
|
model_name: string;
|
|
38
38
|
model_owner: string;
|
|
@@ -15,7 +15,7 @@ declare const ReplicateModelsExamplesListOutput: z.ZodObject<{
|
|
|
15
15
|
get: z.ZodNullable<z.ZodString>;
|
|
16
16
|
cancel: z.ZodNullable<z.ZodString>;
|
|
17
17
|
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>>>;
|
|
19
19
|
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
20
|
input: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
21
21
|
model: z.ZodNullable<z.ZodString>;
|
|
@@ -24,15 +24,15 @@ declare const ReplicateModelsExamplesListOutput: z.ZodObject<{
|
|
|
24
24
|
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
25
25
|
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
26
|
predict_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
27
|
-
}, z.core.$
|
|
27
|
+
}, z.core.$loose>>>;
|
|
28
28
|
version: z.ZodNullable<z.ZodString>;
|
|
29
29
|
created_at: z.ZodNullable<z.ZodString>;
|
|
30
30
|
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
31
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
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 replicateModelsExamplesList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
37
37
|
model_name: string;
|
|
38
38
|
model_owner: string;
|
|
@@ -10,11 +10,11 @@ const ReplicateModelsExamplesList_ExampleUrlsSchema = z.object({
|
|
|
10
10
|
get: z.string().describe("URL to get the prediction details.").nullable(),
|
|
11
11
|
cancel: z.string().describe("URL to cancel the prediction.").nullable(),
|
|
12
12
|
stream: z.string().describe("URL to stream the prediction output, if available.").nullable().optional()
|
|
13
|
-
}).describe("URLs associated with a prediction.");
|
|
13
|
+
}).passthrough().describe("URLs associated with a prediction.");
|
|
14
14
|
const ReplicateModelsExamplesList_ExampleMetricsSchema = z.object({
|
|
15
15
|
total_time: z.number().describe("Total time including overhead in seconds.").nullable().optional(),
|
|
16
16
|
predict_time: z.number().describe("Time taken for prediction in seconds.").nullable().optional()
|
|
17
|
-
}).describe("Metrics for a prediction.");
|
|
17
|
+
}).passthrough().describe("Metrics for a prediction.");
|
|
18
18
|
const ReplicateModelsExamplesList_ExamplePredictionSchema = z.object({
|
|
19
19
|
id: z.string().describe("Unique identifier of the example prediction.").nullable(),
|
|
20
20
|
logs: z.string().describe("Text output from the model's execution.").nullable().optional(),
|
|
@@ -34,7 +34,7 @@ const ReplicateModelsExamplesList_ExamplePredictionSchema = z.object({
|
|
|
34
34
|
started_at: z.string().describe("Timestamp when prediction processing began (ISO 8601).").nullable().optional(),
|
|
35
35
|
completed_at: z.string().describe("Timestamp when prediction finished (ISO 8601), if available.").nullable().optional(),
|
|
36
36
|
data_removed: z.boolean().describe("Whether input/output data has been deleted.").nullable().optional()
|
|
37
|
-
}).describe("Represents a saved example prediction of a model.");
|
|
37
|
+
}).passthrough().describe("Represents a saved example prediction of a model.");
|
|
38
38
|
const replicateModelsExamplesList = action("REPLICATE_MODELS_EXAMPLES_LIST", {
|
|
39
39
|
slug: "replicate-models-examples-list",
|
|
40
40
|
name: "List model examples",
|
|
@@ -44,7 +44,7 @@ const replicateModelsExamplesList = action("REPLICATE_MODELS_EXAMPLES_LIST", {
|
|
|
44
44
|
next: z.string().describe("URL to fetch the next page of results, if any.").nullable().optional(),
|
|
45
45
|
results: z.array(ReplicateModelsExamplesList_ExamplePredictionSchema).describe("List of example prediction objects."),
|
|
46
46
|
previous: z.string().describe("URL to fetch the previous page of results, if any.").nullable().optional()
|
|
47
|
-
}).describe("Paginated list of example predictions for a model.")
|
|
47
|
+
}).passthrough().describe("Paginated list of example predictions for a model.")
|
|
48
48
|
});
|
|
49
49
|
//#endregion
|
|
50
50
|
export { replicateModelsExamplesList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-examples-list.mjs","names":[],"sources":["../../src/actions/models-examples-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsExamplesListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model to list examples for. Must exactly match the Replicate URL slug (case-sensitive).\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model. Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for listing example predictions for a specific model.\");\nconst ReplicateModelsExamplesList_ExampleUrlsSchema = z.object({\n get: z.string().describe(\"URL to get the prediction details.\").nullable(),\n cancel: z.string().describe(\"URL to cancel the prediction.\").nullable(),\n stream: z.string().describe(\"URL to stream the prediction output, if available.\").nullable().optional(),\n}).describe(\"URLs associated with a prediction.\");\nconst ReplicateModelsExamplesList_ExampleMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time including overhead in seconds.\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction in seconds.\").nullable().optional(),\n}).describe(\"Metrics for a prediction.\");\nconst ReplicateModelsExamplesList_ExamplePredictionSchema = z.object({\n id: z.string().describe(\"Unique identifier of the example prediction.\").nullable(),\n logs: z.string().describe(\"Text output from the model's execution.\").nullable().optional(),\n urls: ReplicateModelsExamplesList_ExampleUrlsSchema.nullable().optional(),\n error: z.string().describe(\"Error message if the prediction failed.\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input JSON object provided to the model for the example.\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}.\").nullable(),\n output: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Status of the prediction: starting, processing, succeeded, failed, or canceled.\").nullable(),\n metrics: ReplicateModelsExamplesList_ExampleMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the model used.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the example was created (ISO 8601).\").nullable(),\n started_at: z.string().describe(\"Timestamp when prediction processing began (ISO 8601).\").nullable().optional(),\n completed_at: z.string().describe(\"Timestamp when prediction finished (ISO 8601), if available.\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data has been deleted.\").nullable().optional(),\n}).describe(\"Represents a saved example prediction of a model.\");\nexport const ReplicateModelsExamplesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any.\").nullable().optional(),\n results: z.array(ReplicateModelsExamplesList_ExamplePredictionSchema).describe(\"List of example prediction objects.\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any.\").nullable().optional(),\n}).describe(\"Paginated list of example predictions for a model.\");\n\nexport const replicateModelsExamplesList = action(\"REPLICATE_MODELS_EXAMPLES_LIST\", {\n slug: \"replicate-models-examples-list\",\n name: \"List model examples\",\n description: \"Tool to list example predictions for a specific model. Use when you want to retrieve author-provided illustrative examples after identifying the model. Returned examples are minimal working payloads; cross-reference with REPLICATE_MODELS_README_GET before calling REPLICATE_CREATE_PREDICTION to satisfy strict input validation.\",\n input: ReplicateModelsExamplesListInput,\n output: ReplicateModelsExamplesListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG;CACzI,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,uHAAuH;AAC1J,CAAC,CAAC,CAAC,SAAS,sEAAsE;AAClF,MAAM,gDAAgD,EAAE,OAAO;CAC7D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CACtE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxG,CAAC,CAAC,CAAC,SAAS,oCAAoC;
|
|
1
|
+
{"version":3,"file":"models-examples-list.mjs","names":[],"sources":["../../src/actions/models-examples-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsExamplesListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n model_name: z.string().describe(\"The name of the model to list examples for. Must exactly match the Replicate URL slug (case-sensitive).\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model. Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for listing example predictions for a specific model.\");\nconst ReplicateModelsExamplesList_ExampleUrlsSchema = z.object({\n get: z.string().describe(\"URL to get the prediction details.\").nullable(),\n cancel: z.string().describe(\"URL to cancel the prediction.\").nullable(),\n stream: z.string().describe(\"URL to stream the prediction output, if available.\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\");\nconst ReplicateModelsExamplesList_ExampleMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time including overhead in seconds.\").nullable().optional(),\n predict_time: z.number().describe(\"Time taken for prediction in seconds.\").nullable().optional(),\n}).passthrough().describe(\"Metrics for a prediction.\");\nconst ReplicateModelsExamplesList_ExamplePredictionSchema = z.object({\n id: z.string().describe(\"Unique identifier of the example prediction.\").nullable(),\n logs: z.string().describe(\"Text output from the model's execution.\").nullable().optional(),\n urls: ReplicateModelsExamplesList_ExampleUrlsSchema.nullable().optional(),\n error: z.string().describe(\"Error message if the prediction failed.\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input JSON object provided to the model for the example.\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}.\").nullable(),\n output: z.union([z.string(), z.record(z.string(), z.unknown()), z.array(z.unknown())]).nullable().optional(),\n status: z.string().describe(\"Status of the prediction: starting, processing, succeeded, failed, or canceled.\").nullable(),\n metrics: ReplicateModelsExamplesList_ExampleMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character version ID of the model used.\").nullable(),\n created_at: z.string().describe(\"Timestamp when the example was created (ISO 8601).\").nullable(),\n started_at: z.string().describe(\"Timestamp when prediction processing began (ISO 8601).\").nullable().optional(),\n completed_at: z.string().describe(\"Timestamp when prediction finished (ISO 8601), if available.\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data has been deleted.\").nullable().optional(),\n}).passthrough().describe(\"Represents a saved example prediction of a model.\");\nexport const ReplicateModelsExamplesListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, if any.\").nullable().optional(),\n results: z.array(ReplicateModelsExamplesList_ExamplePredictionSchema).describe(\"List of example prediction objects.\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, if any.\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of example predictions for a model.\");\n\nexport const replicateModelsExamplesList = action(\"REPLICATE_MODELS_EXAMPLES_LIST\", {\n slug: \"replicate-models-examples-list\",\n name: \"List model examples\",\n description: \"Tool to list example predictions for a specific model. Use when you want to retrieve author-provided illustrative examples after identifying the model. Returned examples are minimal working payloads; cross-reference with REPLICATE_MODELS_README_GET before calling REPLICATE_CREATE_PREDICTION to satisfy strict input validation.\",\n input: ReplicateModelsExamplesListInput,\n output: ReplicateModelsExamplesListOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,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elsGet_OpenAPIInfoSchema = zod.z.object({
|
|
|
9
9
|
title: zod.z.string().describe("API title").nullable(),
|
|
10
10
|
version: zod.z.string().describe("API version").nullable()
|
|
11
11
|
}).passthrough().describe("OpenAPI info object.");
|
|
12
|
-
const ReplicateModelsGet_OpenAPIComponentsSchema = zod.z.object({ schemas: zod.z.
|
|
12
|
+
const ReplicateModelsGet_OpenAPIComponentsSchema = zod.z.object({ schemas: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Reusable schema definitions with arbitrary names (e.g., Input, Output, Status, etc.)").nullable().optional() }).passthrough().describe("OpenAPI components object.");
|
|
13
13
|
const ReplicateModelsGet_OpenAPISchemaSchema = zod.z.object({
|
|
14
14
|
info: ReplicateModelsGet_OpenAPIInfoSchema.nullable(),
|
|
15
|
-
paths: zod.z.
|
|
15
|
+
paths: zod.z.record(zod.z.string(), zod.z.unknown()).describe("API paths (typically empty for models)").nullable().optional(),
|
|
16
16
|
openapi: zod.z.string().describe("OpenAPI version (e.g., '3.0.2')").nullable(),
|
|
17
17
|
components: ReplicateModelsGet_OpenAPIComponentsSchema.nullable().optional()
|
|
18
18
|
}).passthrough().describe("OpenAPI 3.0.2 schema structure for model inputs/outputs.");
|
|
@@ -21,13 +21,13 @@ const ReplicateModelsGet_VersionResponseSchema = zod.z.object({
|
|
|
21
21
|
created_at: zod.z.string().describe("The date and time the version was created (ISO 8601 format)").nullable(),
|
|
22
22
|
cog_version: zod.z.string().describe("The version of Cog used to create this version").nullable().optional(),
|
|
23
23
|
openapi_schema: ReplicateModelsGet_OpenAPISchemaSchema.nullable().optional()
|
|
24
|
-
}).describe("Schema for a model version object returned by the API.");
|
|
24
|
+
}).passthrough().describe("Schema for a model version object returned by the API.");
|
|
25
25
|
const ReplicateModelsGet_PredictionUrlsSchema = zod.z.object({
|
|
26
26
|
get: zod.z.string().describe("API endpoint URL to get the prediction details").nullable(),
|
|
27
27
|
web: zod.z.string().describe("Web URL for viewing the prediction in a browser").nullable().optional(),
|
|
28
28
|
cancel: zod.z.string().describe("API endpoint URL to cancel the prediction").nullable(),
|
|
29
29
|
stream: zod.z.string().describe("Streaming URL for the prediction, if available").nullable().optional()
|
|
30
|
-
}).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.");
|
|
30
|
+
}).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.");
|
|
31
31
|
const ReplicateModelsGet_PredictionSourceSchema = zod.z.enum(["web", "api"]).describe("Source of a prediction.");
|
|
32
32
|
const ReplicateModelsGet_PredictionStatusSchema = zod.z.enum([
|
|
33
33
|
"starting",
|
|
@@ -67,7 +67,7 @@ const ReplicateModelsGet_PredictionResponseSchema = zod.z.object({
|
|
|
67
67
|
completed_at: zod.z.string().describe("The date and time the prediction completed (ISO 8601 format)").nullable().optional(),
|
|
68
68
|
data_removed: zod.z.boolean().describe("Whether the prediction output has been deleted").nullable(),
|
|
69
69
|
is_free_trial_prediction: zod.z.boolean().describe("Whether this prediction was created using free trial credits").nullable().optional()
|
|
70
|
-
}).describe("Schema for a prediction object returned by the API.");
|
|
70
|
+
}).passthrough().describe("Schema for a prediction object returned by the API.");
|
|
71
71
|
const ReplicateModelsGetOutput = zod.z.object({
|
|
72
72
|
url: zod.z.string().describe("Canonical URL of the model").nullable(),
|
|
73
73
|
name: zod.z.string().describe("Name of the model").nullable(),
|
|
@@ -84,7 +84,7 @@ const ReplicateModelsGetOutput = zod.z.object({
|
|
|
84
84
|
latest_version: ReplicateModelsGet_VersionResponseSchema.nullable().optional(),
|
|
85
85
|
cover_image_url: zod.z.string().describe("URL to the model's cover image, if any").nullable().optional(),
|
|
86
86
|
default_example: ReplicateModelsGet_PredictionResponseSchema.nullable().optional()
|
|
87
|
-
}).describe("Response schema for models.get: Detailed information about the model.");
|
|
87
|
+
}).passthrough().describe("Response schema for models.get: Detailed information about the model.");
|
|
88
88
|
const replicateModelsGet = require_action.action("REPLICATE_MODELS_GET", {
|
|
89
89
|
slug: "replicate-models-get",
|
|
90
90
|
name: "Get Model Details",
|