@keystrokehq/replicate 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/account-get.cjs +3 -3
- package/dist/actions/account-get.cjs.map +1 -1
- package/dist/actions/account-get.d.cts +8 -3
- package/dist/actions/account-get.d.cts.map +1 -1
- package/dist/actions/account-get.d.mts +8 -3
- package/dist/actions/account-get.d.mts.map +1 -1
- package/dist/actions/account-get.mjs +3 -3
- package/dist/actions/account-get.mjs.map +1 -1
- package/dist/actions/cancel-prediction.cjs +6 -6
- package/dist/actions/cancel-prediction.cjs.map +1 -1
- package/dist/actions/cancel-prediction.d.cts +43 -3
- package/dist/actions/cancel-prediction.d.cts.map +1 -1
- package/dist/actions/cancel-prediction.d.mts +43 -3
- package/dist/actions/cancel-prediction.d.mts.map +1 -1
- package/dist/actions/cancel-prediction.mjs +6 -6
- package/dist/actions/cancel-prediction.mjs.map +1 -1
- package/dist/actions/collections-get.cjs +8 -8
- package/dist/actions/collections-get.cjs.map +1 -1
- package/dist/actions/collections-get.d.cts +26 -3
- package/dist/actions/collections-get.d.cts.map +1 -1
- package/dist/actions/collections-get.d.mts +26 -3
- package/dist/actions/collections-get.d.mts.map +1 -1
- package/dist/actions/collections-get.mjs +8 -8
- package/dist/actions/collections-get.mjs.map +1 -1
- package/dist/actions/collections-list.cjs +3 -3
- package/dist/actions/collections-list.cjs.map +1 -1
- package/dist/actions/collections-list.d.cts +15 -3
- package/dist/actions/collections-list.d.cts.map +1 -1
- package/dist/actions/collections-list.d.mts +15 -3
- package/dist/actions/collections-list.d.mts.map +1 -1
- package/dist/actions/collections-list.mjs +3 -3
- package/dist/actions/collections-list.mjs.map +1 -1
- package/dist/actions/create-model.cjs +7 -7
- package/dist/actions/create-model.cjs.map +1 -1
- package/dist/actions/create-model.d.cts +39 -3
- package/dist/actions/create-model.d.cts.map +1 -1
- package/dist/actions/create-model.d.mts +39 -3
- package/dist/actions/create-model.d.mts.map +1 -1
- package/dist/actions/create-model.mjs +7 -7
- package/dist/actions/create-model.mjs.map +1 -1
- package/dist/actions/create-prediction.cjs +8 -8
- package/dist/actions/create-prediction.cjs.map +1 -1
- package/dist/actions/create-prediction.d.cts +40 -3
- package/dist/actions/create-prediction.d.cts.map +1 -1
- package/dist/actions/create-prediction.d.mts +40 -3
- package/dist/actions/create-prediction.d.mts.map +1 -1
- package/dist/actions/create-prediction.mjs +8 -8
- package/dist/actions/create-prediction.mjs.map +1 -1
- package/dist/actions/deployments-create.cjs +12 -12
- package/dist/actions/deployments-create.cjs.map +1 -1
- package/dist/actions/deployments-create.d.cts +38 -3
- package/dist/actions/deployments-create.d.cts.map +1 -1
- package/dist/actions/deployments-create.d.mts +38 -3
- package/dist/actions/deployments-create.d.mts.map +1 -1
- package/dist/actions/deployments-create.mjs +12 -12
- package/dist/actions/deployments-create.mjs.map +1 -1
- package/dist/actions/deployments-delete.cjs.map +1 -1
- package/dist/actions/deployments-delete.d.cts +12 -3
- package/dist/actions/deployments-delete.d.cts.map +1 -1
- package/dist/actions/deployments-delete.d.mts +12 -3
- package/dist/actions/deployments-delete.d.mts.map +1 -1
- package/dist/actions/deployments-delete.mjs.map +1 -1
- package/dist/actions/deployments-get.cjs.map +1 -1
- package/dist/actions/deployments-get.d.cts +30 -3
- package/dist/actions/deployments-get.d.cts.map +1 -1
- package/dist/actions/deployments-get.d.mts +30 -3
- package/dist/actions/deployments-get.d.mts.map +1 -1
- package/dist/actions/deployments-get.mjs.map +1 -1
- package/dist/actions/deployments-list.cjs +12 -12
- package/dist/actions/deployments-list.cjs.map +1 -1
- package/dist/actions/deployments-list.d.cts +32 -3
- package/dist/actions/deployments-list.d.cts.map +1 -1
- package/dist/actions/deployments-list.d.mts +32 -3
- package/dist/actions/deployments-list.d.mts.map +1 -1
- package/dist/actions/deployments-list.mjs +12 -12
- package/dist/actions/deployments-list.mjs.map +1 -1
- package/dist/actions/files-create.cjs +5 -5
- package/dist/actions/files-create.cjs.map +1 -1
- package/dist/actions/files-create.d.cts +35 -3
- package/dist/actions/files-create.d.cts.map +1 -1
- package/dist/actions/files-create.d.mts +35 -3
- package/dist/actions/files-create.d.mts.map +1 -1
- package/dist/actions/files-create.mjs +5 -5
- package/dist/actions/files-create.mjs.map +1 -1
- package/dist/actions/files-delete.cjs.map +1 -1
- package/dist/actions/files-delete.d.cts +10 -3
- package/dist/actions/files-delete.d.cts.map +1 -1
- package/dist/actions/files-delete.d.mts +10 -3
- package/dist/actions/files-delete.d.mts.map +1 -1
- package/dist/actions/files-delete.mjs.map +1 -1
- package/dist/actions/files-get.cjs +6 -6
- package/dist/actions/files-get.cjs.map +1 -1
- package/dist/actions/files-get.d.cts +23 -3
- package/dist/actions/files-get.d.cts.map +1 -1
- package/dist/actions/files-get.d.mts +23 -3
- package/dist/actions/files-get.d.mts.map +1 -1
- package/dist/actions/files-get.mjs +6 -6
- package/dist/actions/files-get.mjs.map +1 -1
- package/dist/actions/files-list.cjs +7 -7
- package/dist/actions/files-list.cjs.map +1 -1
- package/dist/actions/files-list.d.cts +27 -3
- package/dist/actions/files-list.d.cts.map +1 -1
- package/dist/actions/files-list.d.mts +27 -3
- package/dist/actions/files-list.d.mts.map +1 -1
- package/dist/actions/files-list.mjs +7 -7
- package/dist/actions/files-list.mjs.map +1 -1
- package/dist/actions/get-prediction.cjs +7 -7
- package/dist/actions/get-prediction.cjs.map +1 -1
- package/dist/actions/get-prediction.d.cts +42 -3
- package/dist/actions/get-prediction.d.cts.map +1 -1
- package/dist/actions/get-prediction.d.mts +42 -3
- package/dist/actions/get-prediction.d.mts.map +1 -1
- package/dist/actions/get-prediction.mjs +7 -7
- 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 +8 -3
- package/dist/actions/hardware-list.d.cts.map +1 -1
- package/dist/actions/hardware-list.d.mts +8 -3
- package/dist/actions/hardware-list.d.mts.map +1 -1
- package/dist/actions/hardware-list.mjs +2 -2
- package/dist/actions/hardware-list.mjs.map +1 -1
- package/dist/actions/models-examples-list.cjs +7 -7
- package/dist/actions/models-examples-list.cjs.map +1 -1
- package/dist/actions/models-examples-list.d.cts +37 -3
- package/dist/actions/models-examples-list.d.cts.map +1 -1
- package/dist/actions/models-examples-list.d.mts +37 -3
- package/dist/actions/models-examples-list.d.mts.map +1 -1
- package/dist/actions/models-examples-list.mjs +7 -7
- package/dist/actions/models-examples-list.mjs.map +1 -1
- package/dist/actions/models-get.cjs +20 -20
- package/dist/actions/models-get.cjs.map +1 -1
- package/dist/actions/models-get.d.cts +77 -3
- package/dist/actions/models-get.d.cts.map +1 -1
- package/dist/actions/models-get.d.mts +77 -3
- package/dist/actions/models-get.d.mts.map +1 -1
- package/dist/actions/models-get.mjs +20 -20
- package/dist/actions/models-get.mjs.map +1 -1
- package/dist/actions/models-list.cjs +8 -8
- package/dist/actions/models-list.cjs.map +1 -1
- package/dist/actions/models-list.d.cts +39 -3
- package/dist/actions/models-list.d.cts.map +1 -1
- package/dist/actions/models-list.d.mts +39 -3
- package/dist/actions/models-list.d.mts.map +1 -1
- package/dist/actions/models-list.mjs +8 -8
- package/dist/actions/models-list.mjs.map +1 -1
- package/dist/actions/models-predictions-create.cjs +5 -5
- package/dist/actions/models-predictions-create.cjs.map +1 -1
- package/dist/actions/models-predictions-create.d.cts +46 -3
- package/dist/actions/models-predictions-create.d.cts.map +1 -1
- package/dist/actions/models-predictions-create.d.mts +46 -3
- package/dist/actions/models-predictions-create.d.mts.map +1 -1
- package/dist/actions/models-predictions-create.mjs +5 -5
- package/dist/actions/models-predictions-create.mjs.map +1 -1
- package/dist/actions/models-readme-get.cjs +1 -1
- package/dist/actions/models-readme-get.cjs.map +1 -1
- package/dist/actions/models-readme-get.d.cts +11 -3
- package/dist/actions/models-readme-get.d.cts.map +1 -1
- package/dist/actions/models-readme-get.d.mts +11 -3
- package/dist/actions/models-readme-get.d.mts.map +1 -1
- package/dist/actions/models-readme-get.mjs +1 -1
- package/dist/actions/models-readme-get.mjs.map +1 -1
- package/dist/actions/models-versions-get.cjs +3 -3
- package/dist/actions/models-versions-get.cjs.map +1 -1
- package/dist/actions/models-versions-get.d.cts +16 -3
- package/dist/actions/models-versions-get.d.cts.map +1 -1
- package/dist/actions/models-versions-get.d.mts +16 -3
- package/dist/actions/models-versions-get.d.mts.map +1 -1
- package/dist/actions/models-versions-get.mjs +3 -3
- package/dist/actions/models-versions-get.mjs.map +1 -1
- package/dist/actions/models-versions-list.cjs +3 -3
- package/dist/actions/models-versions-list.cjs.map +1 -1
- package/dist/actions/models-versions-list.d.cts +20 -3
- package/dist/actions/models-versions-list.d.cts.map +1 -1
- package/dist/actions/models-versions-list.d.mts +20 -3
- package/dist/actions/models-versions-list.d.mts.map +1 -1
- package/dist/actions/models-versions-list.mjs +3 -3
- package/dist/actions/models-versions-list.mjs.map +1 -1
- package/dist/actions/predictions-create.cjs +5 -5
- package/dist/actions/predictions-create.cjs.map +1 -1
- package/dist/actions/predictions-create.d.cts +47 -3
- package/dist/actions/predictions-create.d.cts.map +1 -1
- package/dist/actions/predictions-create.d.mts +47 -3
- package/dist/actions/predictions-create.d.mts.map +1 -1
- package/dist/actions/predictions-create.mjs +5 -5
- package/dist/actions/predictions-create.mjs.map +1 -1
- package/dist/actions/predictions-list.cjs +9 -9
- package/dist/actions/predictions-list.cjs.map +1 -1
- package/dist/actions/predictions-list.d.cts +38 -3
- package/dist/actions/predictions-list.d.cts.map +1 -1
- package/dist/actions/predictions-list.d.mts +38 -3
- package/dist/actions/predictions-list.d.mts.map +1 -1
- package/dist/actions/predictions-list.mjs +9 -9
- package/dist/actions/predictions-list.mjs.map +1 -1
- package/dist/actions/search.cjs +19 -19
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +80 -3
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +80 -3
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +19 -19
- package/dist/actions/search.mjs.map +1 -1
- package/dist/actions/trainings-cancel.cjs +6 -6
- package/dist/actions/trainings-cancel.cjs.map +1 -1
- package/dist/actions/trainings-cancel.d.cts +26 -3
- package/dist/actions/trainings-cancel.d.cts.map +1 -1
- package/dist/actions/trainings-cancel.d.mts +26 -3
- package/dist/actions/trainings-cancel.d.mts.map +1 -1
- package/dist/actions/trainings-cancel.mjs +6 -6
- package/dist/actions/trainings-cancel.mjs.map +1 -1
- package/dist/actions/trainings-create.cjs +5 -5
- package/dist/actions/trainings-create.cjs.map +1 -1
- package/dist/actions/trainings-create.d.cts +46 -3
- package/dist/actions/trainings-create.d.cts.map +1 -1
- package/dist/actions/trainings-create.d.mts +46 -3
- package/dist/actions/trainings-create.d.mts.map +1 -1
- package/dist/actions/trainings-create.mjs +5 -5
- package/dist/actions/trainings-create.mjs.map +1 -1
- package/dist/actions/trainings-list.cjs +8 -8
- package/dist/actions/trainings-list.cjs.map +1 -1
- package/dist/actions/trainings-list.d.cts +35 -3
- package/dist/actions/trainings-list.d.cts.map +1 -1
- package/dist/actions/trainings-list.d.mts +35 -3
- package/dist/actions/trainings-list.d.mts.map +1 -1
- package/dist/actions/trainings-list.mjs +8 -8
- package/dist/actions/trainings-list.mjs.map +1 -1
- package/dist/actions/update-models.cjs +6 -6
- package/dist/actions/update-models.cjs.map +1 -1
- package/dist/actions/update-models.d.cts +35 -3
- package/dist/actions/update-models.d.cts.map +1 -1
- package/dist/actions/update-models.d.mts +35 -3
- package/dist/actions/update-models.d.mts.map +1 -1
- package/dist/actions/update-models.mjs +6 -6
- package/dist/actions/update-models.mjs.map +1 -1
- package/dist/actions/webhooks-secret-get.cjs +1 -1
- package/dist/actions/webhooks-secret-get.cjs.map +1 -1
- package/dist/actions/webhooks-secret-get.d.cts +5 -3
- package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
- package/dist/actions/webhooks-secret-get.d.mts +5 -3
- package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
- package/dist/actions/webhooks-secret-get.mjs +1 -1
- package/dist/actions/webhooks-secret-get.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -2,10 +2,10 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/files-get.ts
|
|
4
4
|
const ReplicateFilesGetInput = z.object({ file_id: z.string().describe("The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.") }).describe("Request schema for retrieving details of a file by its ID.");
|
|
5
|
-
const ReplicateFilesGet_FileUrlsSchema = z.object({ get: z.string().describe("A URL to the file resource") }).describe("URLs associated with the file resource.");
|
|
5
|
+
const ReplicateFilesGet_FileUrlsSchema = z.object({ get: z.string().describe("A URL to the file resource").nullable() }).describe("URLs associated with the file resource.");
|
|
6
6
|
const ReplicateFilesGet_FileChecksumsSchema = z.object({
|
|
7
7
|
md5: z.string().describe("MD5 checksum of the file").nullable().optional(),
|
|
8
|
-
sha256: z.string().describe("SHA256 checksum of the file")
|
|
8
|
+
sha256: z.string().describe("SHA256 checksum of the file").nullable()
|
|
9
9
|
}).describe("Checksums for file integrity verification.");
|
|
10
10
|
const replicateFilesGet = action("REPLICATE_FILES_GET", {
|
|
11
11
|
slug: "replicate-files-get",
|
|
@@ -13,16 +13,16 @@ const replicateFilesGet = action("REPLICATE_FILES_GET", {
|
|
|
13
13
|
description: "Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.",
|
|
14
14
|
input: ReplicateFilesGetInput,
|
|
15
15
|
output: z.object({
|
|
16
|
-
id: z.string().describe("A unique, randomly-generated identifier for the file resource"),
|
|
16
|
+
id: z.string().describe("A unique, randomly-generated identifier for the file resource").nullable(),
|
|
17
17
|
etag: z.string().describe("Entity tag for the file").nullable().optional(),
|
|
18
18
|
name: z.string().describe("Name of the file").nullable().optional(),
|
|
19
|
-
size: z.number().int().describe("The length of the file in bytes"),
|
|
19
|
+
size: z.number().int().describe("The length of the file in bytes").nullable(),
|
|
20
20
|
urls: ReplicateFilesGet_FileUrlsSchema.nullable(),
|
|
21
21
|
metadata: z.record(z.string(), z.unknown()).describe("Metadata provided by user when the file was created").nullable().optional(),
|
|
22
22
|
checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),
|
|
23
|
-
created_at: z.string().describe("When the file was created (ISO 8601 datetime)"),
|
|
23
|
+
created_at: z.string().describe("When the file was created (ISO 8601 datetime)").nullable(),
|
|
24
24
|
expires_at: z.string().describe("When the file expires (ISO 8601 datetime)").nullable().optional(),
|
|
25
|
-
content_type: z.string().describe("The content / MIME type of the file")
|
|
25
|
+
content_type: z.string().describe("The content / MIME type of the file").nullable()
|
|
26
26
|
}).describe("Response schema for files.get: Detailed information about the file.")
|
|
27
27
|
});
|
|
28
28
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-get.mjs","names":[],"sources":["../../src/actions/files-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesGetInput
|
|
1
|
+
{"version":3,"file":"files-get.mjs","names":[],"sources":["../../src/actions/files-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesGetInput = z.object({\n file_id: z.string().describe(\"The ID of the file to retrieve Must originate from a prior upload or prediction output. Use REPLICATE_FILES_LIST to confirm the ID exists before calling this tool.\"),\n}).describe(\"Request schema for retrieving details of a file by its ID.\");\nconst ReplicateFilesGet_FileUrlsSchema = z.object({\n get: z.string().describe(\"A URL to the file resource\").nullable(),\n}).describe(\"URLs associated with the file resource.\");\nconst ReplicateFilesGet_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.\");\nexport const ReplicateFilesGetOutput = z.object({\n id: z.string().describe(\"A unique, randomly-generated identifier for the file resource\").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(\"The length of the file in bytes\").nullable(),\n urls: ReplicateFilesGet_FileUrlsSchema.nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Metadata provided by user when the file was created\").nullable().optional(),\n checksums: ReplicateFilesGet_FileChecksumsSchema.nullable(),\n created_at: z.string().describe(\"When the file was created (ISO 8601 datetime)\").nullable(),\n expires_at: z.string().describe(\"When the file expires (ISO 8601 datetime)\").nullable().optional(),\n content_type: z.string().describe(\"The content / MIME type of the file\").nullable(),\n}).describe(\"Response schema for files.get: Detailed information about the file.\");\n\nexport const replicateFilesGet = action(\"REPLICATE_FILES_GET\", {\n slug: \"replicate-files-get\",\n name: \"Get File Details\",\n description: \"Tool to get details of a file by its ID. Use when you need to inspect uploaded file information before further operations. Returned URLs may be short-lived; download or persist needed files promptly after retrieval.\",\n input: ReplicateFilesGetInput,\n output: ReplicateFilesGetOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO,EAC7C,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,qKAAqK,EACpM,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,mCAAmC,EAAE,OAAO,EAChD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,EAClE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,wCAAwC,EAAE,OAAO;CACrD,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,SAAS,4CAA4C;AAcxD,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAlBqC,EAAE,OAAO;EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;EAClG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC5E,MAAM,iCAAiC,SAAS;EAChD,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,WAAW,sCAAsC,SAAS;EAC1D,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAC1F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,SAAS,qEAOF;AACV,CAAC"}
|
|
@@ -2,22 +2,22 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/files-list.ts
|
|
4
4
|
const ReplicateFilesListInput = zod.z.object({ cursor: zod.z.string().describe("Cursor for pagination. Use the cursor from 'next' URL of previous response.").optional() }).describe("Request schema for listing files with optional pagination.");
|
|
5
|
-
const ReplicateFilesList_FileUrlsSchema = zod.z.object({ get: zod.z.string().describe("URL to the file resource") }).describe("URLs associated with the file resource.");
|
|
5
|
+
const ReplicateFilesList_FileUrlsSchema = zod.z.object({ get: zod.z.string().describe("URL to the file resource").nullable() }).describe("URLs associated with the file resource.");
|
|
6
6
|
const ReplicateFilesList_FileChecksumsSchema = zod.z.object({
|
|
7
7
|
md5: zod.z.string().describe("MD5 checksum of the file").nullable().optional(),
|
|
8
|
-
sha256: zod.z.string().describe("SHA256 checksum of the file")
|
|
8
|
+
sha256: zod.z.string().describe("SHA256 checksum of the file").nullable()
|
|
9
9
|
}).describe("Checksums for file integrity verification.");
|
|
10
10
|
const ReplicateFilesList_FileSchema = zod.z.object({
|
|
11
|
-
id: zod.z.string().describe("Unique random identifier for the file"),
|
|
11
|
+
id: zod.z.string().describe("Unique random identifier for the file").nullable(),
|
|
12
12
|
etag: zod.z.string().describe("Entity tag for the file").nullable().optional(),
|
|
13
13
|
name: zod.z.string().describe("Name of the file").nullable().optional(),
|
|
14
|
-
size: zod.z.number().int().describe("File length in bytes, must be non-negative"),
|
|
14
|
+
size: zod.z.number().int().describe("File length in bytes, must be non-negative").nullable(),
|
|
15
15
|
urls: ReplicateFilesList_FileUrlsSchema.nullable(),
|
|
16
16
|
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("User-provided metadata (can be empty object)"),
|
|
17
17
|
checksums: ReplicateFilesList_FileChecksumsSchema.nullable(),
|
|
18
|
-
created_at: zod.z.string().describe("Creation timestamp in ISO 8601 date-time format"),
|
|
19
|
-
expires_at: zod.z.string().describe("Expiration timestamp in ISO 8601 date-time format"),
|
|
20
|
-
content_type: zod.z.string().describe("MIME type of the file")
|
|
18
|
+
created_at: zod.z.string().describe("Creation timestamp in ISO 8601 date-time format").nullable(),
|
|
19
|
+
expires_at: zod.z.string().describe("Expiration timestamp in ISO 8601 date-time format").nullable(),
|
|
20
|
+
content_type: zod.z.string().describe("MIME type of the file").nullable()
|
|
21
21
|
}).describe("Representation of a file object.");
|
|
22
22
|
const ReplicateFilesListOutput = zod.z.object({
|
|
23
23
|
next: zod.z.string().describe("URL to fetch the next page of results, if any").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-list.cjs","names":["z","action"],"sources":["../../src/actions/files-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateFilesListInput
|
|
1
|
+
{"version":3,"file":"files-list.cjs","names":["z","action"],"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,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,EACtH,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,oCAAoCA,IAAAA,EAAE,OAAO,EACjD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,EAChE,CAAC,CAAC,CAAC,SAAS,yCAAyC;AACrD,MAAM,yCAAyCA,IAAAA,EAAE,OAAO;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS;AACtE,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,gCAAgCA,IAAAA,EAAE,OAAO;CAC7C,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CA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plicateFilesListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateFilesListInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ReplicateFilesListOutput: z.ZodObject<{
|
|
8
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
results: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
etag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
urls: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
get: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
+
checksums: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
md5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
23
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
24
|
+
content_type: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const replicateFilesList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
cursor?: string | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { replicateFilesList };
|
|
9
33
|
//# sourceMappingURL=files-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-list.d.cts","names":[],"sources":["../../src/actions/files-list.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"files-list.d.cts","names":[],"sources":["../../src/actions/files-list.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -1,9 +1,33 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/files-list.d.ts
|
|
4
|
-
declare const ReplicateFilesListInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateFilesListInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ReplicateFilesListOutput: z.ZodObject<{
|
|
8
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
results: z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
etag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
+
name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
size: z.ZodNullable<z.ZodNumber>;
|
|
14
|
+
urls: z.ZodNullable<z.ZodObject<{
|
|
15
|
+
get: z.ZodNullable<z.ZodString>;
|
|
16
|
+
}, z.core.$strip>>;
|
|
17
|
+
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
18
|
+
checksums: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
md5: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
sha256: z.ZodNullable<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>>;
|
|
22
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
23
|
+
expires_at: z.ZodNullable<z.ZodString>;
|
|
24
|
+
content_type: z.ZodNullable<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
declare const replicateFilesList: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
29
|
+
cursor?: string | undefined;
|
|
30
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
31
|
//#endregion
|
|
8
32
|
export { replicateFilesList };
|
|
9
33
|
//# sourceMappingURL=files-list.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files-list.d.mts","names":[],"sources":["../../src/actions/files-list.ts"],"mappings":";;;cAIa,uBAAA,
|
|
1
|
+
{"version":3,"file":"files-list.d.mts","names":[],"sources":["../../src/actions/files-list.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAsBvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
|
|
@@ -2,22 +2,22 @@ import { action } from "../action.mjs";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
//#region src/actions/files-list.ts
|
|
4
4
|
const ReplicateFilesListInput = z.object({ cursor: z.string().describe("Cursor for pagination. Use the cursor from 'next' URL of previous response.").optional() }).describe("Request schema for listing files with optional pagination.");
|
|
5
|
-
const ReplicateFilesList_FileUrlsSchema = z.object({ get: z.string().describe("URL to the file resource") }).describe("URLs associated with the file resource.");
|
|
5
|
+
const ReplicateFilesList_FileUrlsSchema = z.object({ get: z.string().describe("URL to the file resource").nullable() }).describe("URLs associated with the file resource.");
|
|
6
6
|
const ReplicateFilesList_FileChecksumsSchema = z.object({
|
|
7
7
|
md5: z.string().describe("MD5 checksum of the file").nullable().optional(),
|
|
8
|
-
sha256: z.string().describe("SHA256 checksum of the file")
|
|
8
|
+
sha256: z.string().describe("SHA256 checksum of the file").nullable()
|
|
9
9
|
}).describe("Checksums for file integrity verification.");
|
|
10
10
|
const ReplicateFilesList_FileSchema = z.object({
|
|
11
|
-
id: z.string().describe("Unique random identifier for the file"),
|
|
11
|
+
id: z.string().describe("Unique random identifier for the file").nullable(),
|
|
12
12
|
etag: z.string().describe("Entity tag for the file").nullable().optional(),
|
|
13
13
|
name: z.string().describe("Name of the file").nullable().optional(),
|
|
14
|
-
size: z.number().int().describe("File length in bytes, must be non-negative"),
|
|
14
|
+
size: z.number().int().describe("File length in bytes, must be non-negative").nullable(),
|
|
15
15
|
urls: ReplicateFilesList_FileUrlsSchema.nullable(),
|
|
16
16
|
metadata: z.record(z.string(), z.unknown()).describe("User-provided metadata (can be empty object)"),
|
|
17
17
|
checksums: ReplicateFilesList_FileChecksumsSchema.nullable(),
|
|
18
|
-
created_at: z.string().describe("Creation timestamp in ISO 8601 date-time format"),
|
|
19
|
-
expires_at: z.string().describe("Expiration timestamp in ISO 8601 date-time format"),
|
|
20
|
-
content_type: z.string().describe("MIME type of the file")
|
|
18
|
+
created_at: z.string().describe("Creation timestamp in ISO 8601 date-time format").nullable(),
|
|
19
|
+
expires_at: z.string().describe("Expiration timestamp in ISO 8601 date-time format").nullable(),
|
|
20
|
+
content_type: z.string().describe("MIME type of the file").nullable()
|
|
21
21
|
}).describe("Representation of a file object.");
|
|
22
22
|
const replicateFilesList = action("REPLICATE_FILES_LIST", {
|
|
23
23
|
slug: "replicate-files-list",
|
|
@@ -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
|
|
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;AACrD,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,SAAS,4CAA4C;AACxD,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,SAAS,kCAAkC;AAO9C,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,SAAS,0BAOF;AACV,CAAC"}
|
|
@@ -3,9 +3,9 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/get-prediction.ts
|
|
4
4
|
const ReplicateGetPredictionInput = zod.z.object({ prediction_id: zod.z.string().describe("The ID of the prediction to get") }).describe("Request schema for getting a prediction by ID.");
|
|
5
5
|
const ReplicateGetPrediction_GetPredictionUrlsSchema = zod.z.object({
|
|
6
|
-
get: zod.z.string().describe("Retrieve the latest state of the prediction via API"),
|
|
6
|
+
get: zod.z.string().describe("Retrieve the latest state of the prediction via API").nullable(),
|
|
7
7
|
web: zod.z.string().describe("View the prediction in a browser").nullable().optional(),
|
|
8
|
-
cancel: zod.z.string().describe("Cancel the prediction via API"),
|
|
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
10
|
}).describe("URLs for working with the prediction.");
|
|
11
11
|
const ReplicateGetPrediction_PredictionSourceSchema = zod.z.enum(["web", "api"]).describe("Source of a prediction.");
|
|
@@ -19,12 +19,12 @@ const ReplicateGetPrediction_PredictionStatusSchema = zod.z.enum([
|
|
|
19
19
|
]).describe("Status of a prediction.");
|
|
20
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.");
|
|
21
21
|
const ReplicateGetPredictionOutput = zod.z.object({
|
|
22
|
-
id: zod.z.string().describe("Unique identifier for this prediction"),
|
|
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
26
|
input: zod.z.object({}).describe("The prediction input"),
|
|
27
|
-
model: zod.z.string().describe("The name of the model that created the prediction"),
|
|
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(),
|
|
30
30
|
zod.z.number().int(),
|
|
@@ -36,13 +36,13 @@ const ReplicateGetPredictionOutput = zod.z.object({
|
|
|
36
36
|
source: ReplicateGetPrediction_PredictionSourceSchema.nullable().optional(),
|
|
37
37
|
status: ReplicateGetPrediction_PredictionStatusSchema.nullable(),
|
|
38
38
|
metrics: ReplicateGetPrediction_GetPredictionMetricsSchema.nullable().optional(),
|
|
39
|
-
version: zod.z.string().describe("The model version that created the prediction"),
|
|
39
|
+
version: zod.z.string().describe("The model version that created the prediction").nullable(),
|
|
40
40
|
deadline: zod.z.string().describe("The absolute time at which the prediction will be automatically canceled if it has not completed").nullable().optional(),
|
|
41
|
-
created_at: zod.z.string().describe("The time that the prediction was created"),
|
|
41
|
+
created_at: zod.z.string().describe("The time that the prediction was created").nullable(),
|
|
42
42
|
deployment: zod.z.string().describe("The name of the deployment that created the prediction").nullable().optional(),
|
|
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
|
-
data_removed: zod.z.boolean().describe("Whether the prediction output has been deleted")
|
|
45
|
+
data_removed: zod.z.boolean().describe("Whether the prediction output has been deleted").nullable()
|
|
46
46
|
}).describe("Response schema for getting a prediction.");
|
|
47
47
|
const replicateGetPrediction = require_action.action("REPLICATE_GET_PREDICTION", {
|
|
48
48
|
slug: "replicate-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
|
|
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.object({}).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}).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,SA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
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-prediction.d.ts
|
|
4
|
-
declare const ReplicateGetPredictionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateGetPredictionInput: z.ZodObject<{
|
|
5
|
+
prediction_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ReplicateGetPredictionOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
urls: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
get: z.ZodNullable<z.ZodString>;
|
|
12
|
+
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
14
|
+
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
input: z.ZodObject<{}, z.core.$strip>;
|
|
18
|
+
model: z.ZodNullable<z.ZodString>;
|
|
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
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
21
|
+
web: "web";
|
|
22
|
+
api: "api";
|
|
23
|
+
}>>>;
|
|
24
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
25
|
+
starting: "starting";
|
|
26
|
+
processing: "processing";
|
|
27
|
+
succeeded: "succeeded";
|
|
28
|
+
failed: "failed";
|
|
29
|
+
canceled: "canceled";
|
|
30
|
+
aborted: "aborted";
|
|
31
|
+
}>>;
|
|
32
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
version: z.ZodNullable<z.ZodString>;
|
|
36
|
+
deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
38
|
+
deployment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
data_removed: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
declare const replicateGetPrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
|
+
prediction_id: string;
|
|
45
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
46
|
//#endregion
|
|
8
47
|
export { replicateGetPrediction };
|
|
9
48
|
//# sourceMappingURL=get-prediction.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prediction.d.cts","names":[],"sources":["../../src/actions/get-prediction.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-prediction.d.cts","names":[],"sources":["../../src/actions/get-prediction.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAc3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -1,9 +1,48 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-prediction.d.ts
|
|
4
|
-
declare const ReplicateGetPredictionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const ReplicateGetPredictionInput: z.ZodObject<{
|
|
5
|
+
prediction_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const ReplicateGetPredictionOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
logs: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10
|
+
urls: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
get: z.ZodNullable<z.ZodString>;
|
|
12
|
+
web: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
cancel: z.ZodNullable<z.ZodString>;
|
|
14
|
+
stream: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
input: z.ZodObject<{}, z.core.$strip>;
|
|
18
|
+
model: z.ZodNullable<z.ZodString>;
|
|
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
|
+
source: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
21
|
+
web: "web";
|
|
22
|
+
api: "api";
|
|
23
|
+
}>>>;
|
|
24
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
25
|
+
starting: "starting";
|
|
26
|
+
processing: "processing";
|
|
27
|
+
succeeded: "succeeded";
|
|
28
|
+
failed: "failed";
|
|
29
|
+
canceled: "canceled";
|
|
30
|
+
aborted: "aborted";
|
|
31
|
+
}>>;
|
|
32
|
+
metrics: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
33
|
+
total_time: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
version: z.ZodNullable<z.ZodString>;
|
|
36
|
+
deadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
created_at: z.ZodNullable<z.ZodString>;
|
|
38
|
+
deployment: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
|
+
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
|
+
data_removed: z.ZodNullable<z.ZodBoolean>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
declare const replicateGetPrediction: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
44
|
+
prediction_id: string;
|
|
45
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
46
|
//#endregion
|
|
8
47
|
export { replicateGetPrediction };
|
|
9
48
|
//# sourceMappingURL=get-prediction.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-prediction.d.mts","names":[],"sources":["../../src/actions/get-prediction.ts"],"mappings":";;;cAIa,2BAAA,
|
|
1
|
+
{"version":3,"file":"get-prediction.d.mts","names":[],"sources":["../../src/actions/get-prediction.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;cAc3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAoB5B,sBAAA,gCAAsB,wBAAA"}
|
|
@@ -3,9 +3,9 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/get-prediction.ts
|
|
4
4
|
const ReplicateGetPredictionInput = z.object({ prediction_id: z.string().describe("The ID of the prediction to get") }).describe("Request schema for getting a prediction by ID.");
|
|
5
5
|
const ReplicateGetPrediction_GetPredictionUrlsSchema = z.object({
|
|
6
|
-
get: z.string().describe("Retrieve the latest state of the prediction via API"),
|
|
6
|
+
get: z.string().describe("Retrieve the latest state of the prediction via API").nullable(),
|
|
7
7
|
web: z.string().describe("View the prediction in a browser").nullable().optional(),
|
|
8
|
-
cancel: z.string().describe("Cancel the prediction via API"),
|
|
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
10
|
}).describe("URLs for working with the prediction.");
|
|
11
11
|
const ReplicateGetPrediction_PredictionSourceSchema = z.enum(["web", "api"]).describe("Source of a prediction.");
|
|
@@ -24,12 +24,12 @@ const replicateGetPrediction = action("REPLICATE_GET_PREDICTION", {
|
|
|
24
24
|
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.",
|
|
25
25
|
input: ReplicateGetPredictionInput,
|
|
26
26
|
output: z.object({
|
|
27
|
-
id: z.string().describe("Unique identifier for this prediction"),
|
|
27
|
+
id: z.string().describe("Unique identifier for this prediction").nullable(),
|
|
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
31
|
input: z.object({}).describe("The prediction input"),
|
|
32
|
-
model: z.string().describe("The name of the model that created the prediction"),
|
|
32
|
+
model: z.string().describe("The name of the model that created the prediction").nullable(),
|
|
33
33
|
output: z.union([
|
|
34
34
|
z.string(),
|
|
35
35
|
z.number().int(),
|
|
@@ -41,13 +41,13 @@ const replicateGetPrediction = action("REPLICATE_GET_PREDICTION", {
|
|
|
41
41
|
source: ReplicateGetPrediction_PredictionSourceSchema.nullable().optional(),
|
|
42
42
|
status: ReplicateGetPrediction_PredictionStatusSchema.nullable(),
|
|
43
43
|
metrics: ReplicateGetPrediction_GetPredictionMetricsSchema.nullable().optional(),
|
|
44
|
-
version: z.string().describe("The model version that created the prediction"),
|
|
44
|
+
version: z.string().describe("The model version that created the prediction").nullable(),
|
|
45
45
|
deadline: z.string().describe("The absolute time at which the prediction will be automatically canceled if it has not completed").nullable().optional(),
|
|
46
|
-
created_at: z.string().describe("The time that the prediction was created"),
|
|
46
|
+
created_at: z.string().describe("The time that the prediction was created").nullable(),
|
|
47
47
|
deployment: z.string().describe("The name of the deployment that created the prediction").nullable().optional(),
|
|
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
|
-
data_removed: z.boolean().describe("Whether the prediction output has been deleted")
|
|
50
|
+
data_removed: z.boolean().describe("Whether the prediction output has been deleted").nullable()
|
|
51
51
|
}).describe("Response schema for getting a prediction.")
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
@@ -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
|
|
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.object({}).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}).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,CAA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AAS,mDAAmD,CAAC,CAAC,SAAS;EACzF,QAAQ,EAAE,MAAM;GAAC,EAAE,OAAO;GAAG,EAAE,OAAO,CAAC,CAAC,IAAI;GAAG,EAAE,OAAO;GAAG,EAAE,QAAQ;GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC;GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC;EAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,QAAQ,8CAA8C,SAAS,CAAC,CAAC,SAAS;EAC1E,QAAQ,8CAA8C,SAAS;EAC/D,SAAS,kDAAkD,SAAS,CAAC,CAAC,SAAS;EAC/E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EACvF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtJ,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;EACrF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,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,SAAS,2CAOF;AACV,CAAC"}
|
|
@@ -3,8 +3,8 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/hardware-list.ts
|
|
4
4
|
const ReplicateHardwareListInput = zod.z.object({}).describe("No parameters are required for listing hardware.");
|
|
5
5
|
const ReplicateHardwareList_HardwareSchema = zod.z.object({
|
|
6
|
-
sku: zod.z.string().describe("Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')"),
|
|
7
|
-
name: zod.z.string().describe("Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')")
|
|
6
|
+
sku: zod.z.string().describe("Machine-readable identifier used in API requests (e.g., 'cpu', 'gpu-t4')").nullable(),
|
|
7
|
+
name: zod.z.string().describe("Human-readable hardware name (e.g., 'CPU', 'Nvidia T4 GPU')").nullable()
|
|
8
8
|
}).describe("Representation of a hardware SKU.");
|
|
9
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.");
|
|
10
10
|
const replicateHardwareList = require_action.action("REPLICATE_HARDWARE_LIST", {
|
|
@@ -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
|
|
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;AAC/C,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,UAAUA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,4DAA4D,EAC/H,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAE9C,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/hardware-list.d.ts
|
|
4
|
-
declare const ReplicateHardwareListInput: z.
|
|
5
|
-
declare const ReplicateHardwareListOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const ReplicateHardwareListInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const ReplicateHardwareListOutput: z.ZodObject<{
|
|
6
|
+
hardware: z.ZodArray<z.ZodObject<{
|
|
7
|
+
sku: z.ZodNullable<z.ZodString>;
|
|
8
|
+
name: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
10
|
+
}, z.core.$strip>;
|
|
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]>;
|
|
7
12
|
//#endregion
|
|
8
13
|
export { replicateHardwareList };
|
|
9
14
|
//# sourceMappingURL=hardware-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hardware-list.d.cts","names":[],"sources":["../../src/actions/hardware-list.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"hardware-list.d.cts","names":[],"sources":["../../src/actions/hardware-list.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAK1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|