@keystrokehq/replicate 0.1.4 → 0.1.5
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 +1 -0
- package/dist/actions/account-get.cjs.map +1 -1
- package/dist/actions/account-get.d.cts +3 -13
- package/dist/actions/account-get.d.cts.map +1 -1
- package/dist/actions/account-get.d.mts +3 -13
- package/dist/actions/account-get.d.mts.map +1 -1
- package/dist/actions/account-get.mjs +1 -0
- package/dist/actions/account-get.mjs.map +1 -1
- package/dist/actions/cancel-prediction.cjs +1 -0
- package/dist/actions/cancel-prediction.cjs.map +1 -1
- package/dist/actions/cancel-prediction.d.cts +3 -15
- package/dist/actions/cancel-prediction.d.cts.map +1 -1
- package/dist/actions/cancel-prediction.d.mts +3 -15
- package/dist/actions/cancel-prediction.d.mts.map +1 -1
- package/dist/actions/cancel-prediction.mjs +1 -0
- package/dist/actions/cancel-prediction.mjs.map +1 -1
- package/dist/actions/collections-get.cjs +1 -0
- package/dist/actions/collections-get.cjs.map +1 -1
- package/dist/actions/collections-get.d.cts +3 -15
- package/dist/actions/collections-get.d.cts.map +1 -1
- package/dist/actions/collections-get.d.mts +3 -15
- package/dist/actions/collections-get.d.mts.map +1 -1
- package/dist/actions/collections-get.mjs +1 -0
- package/dist/actions/collections-get.mjs.map +1 -1
- package/dist/actions/collections-list.cjs +1 -0
- package/dist/actions/collections-list.cjs.map +1 -1
- package/dist/actions/collections-list.d.cts +3 -15
- package/dist/actions/collections-list.d.cts.map +1 -1
- package/dist/actions/collections-list.d.mts +3 -15
- package/dist/actions/collections-list.d.mts.map +1 -1
- package/dist/actions/collections-list.mjs +1 -0
- package/dist/actions/collections-list.mjs.map +1 -1
- package/dist/actions/create-model.cjs +1 -0
- package/dist/actions/create-model.cjs.map +1 -1
- package/dist/actions/create-model.d.cts +3 -23
- package/dist/actions/create-model.d.cts.map +1 -1
- package/dist/actions/create-model.d.mts +3 -23
- package/dist/actions/create-model.d.mts.map +1 -1
- package/dist/actions/create-model.mjs +1 -0
- package/dist/actions/create-model.mjs.map +1 -1
- package/dist/actions/create-prediction.cjs +1 -0
- package/dist/actions/create-prediction.cjs.map +1 -1
- package/dist/actions/create-prediction.d.cts +4 -21
- package/dist/actions/create-prediction.d.cts.map +1 -1
- package/dist/actions/create-prediction.d.mts +4 -21
- package/dist/actions/create-prediction.d.mts.map +1 -1
- package/dist/actions/create-prediction.mjs +1 -0
- package/dist/actions/create-prediction.mjs.map +1 -1
- package/dist/actions/deployments-create.cjs +1 -0
- package/dist/actions/deployments-create.cjs.map +1 -1
- package/dist/actions/deployments-create.d.cts +3 -20
- package/dist/actions/deployments-create.d.cts.map +1 -1
- package/dist/actions/deployments-create.d.mts +3 -20
- package/dist/actions/deployments-create.d.mts.map +1 -1
- package/dist/actions/deployments-create.mjs +1 -0
- package/dist/actions/deployments-create.mjs.map +1 -1
- package/dist/actions/deployments-delete.cjs +1 -0
- package/dist/actions/deployments-delete.cjs.map +1 -1
- package/dist/actions/deployments-delete.d.cts +3 -16
- package/dist/actions/deployments-delete.d.cts.map +1 -1
- package/dist/actions/deployments-delete.d.mts +3 -16
- package/dist/actions/deployments-delete.d.mts.map +1 -1
- package/dist/actions/deployments-delete.mjs +1 -0
- package/dist/actions/deployments-delete.mjs.map +1 -1
- package/dist/actions/deployments-get.cjs +1 -0
- package/dist/actions/deployments-get.cjs.map +1 -1
- package/dist/actions/deployments-get.d.cts +3 -16
- package/dist/actions/deployments-get.d.cts.map +1 -1
- package/dist/actions/deployments-get.d.mts +3 -16
- package/dist/actions/deployments-get.d.mts.map +1 -1
- package/dist/actions/deployments-get.mjs +1 -0
- package/dist/actions/deployments-get.mjs.map +1 -1
- package/dist/actions/deployments-list.cjs +1 -0
- package/dist/actions/deployments-list.cjs.map +1 -1
- package/dist/actions/deployments-list.d.cts +3 -15
- package/dist/actions/deployments-list.d.cts.map +1 -1
- package/dist/actions/deployments-list.d.mts +3 -15
- package/dist/actions/deployments-list.d.mts.map +1 -1
- package/dist/actions/deployments-list.mjs +1 -0
- package/dist/actions/deployments-list.mjs.map +1 -1
- package/dist/actions/files-create.cjs +1 -0
- package/dist/actions/files-create.cjs.map +1 -1
- package/dist/actions/files-create.d.cts +3 -21
- package/dist/actions/files-create.d.cts.map +1 -1
- package/dist/actions/files-create.d.mts +3 -21
- package/dist/actions/files-create.d.mts.map +1 -1
- package/dist/actions/files-create.mjs +1 -0
- package/dist/actions/files-create.mjs.map +1 -1
- package/dist/actions/files-delete.cjs +1 -0
- package/dist/actions/files-delete.cjs.map +1 -1
- package/dist/actions/files-delete.d.cts +3 -15
- package/dist/actions/files-delete.d.cts.map +1 -1
- package/dist/actions/files-delete.d.mts +3 -15
- package/dist/actions/files-delete.d.mts.map +1 -1
- package/dist/actions/files-delete.mjs +1 -0
- package/dist/actions/files-delete.mjs.map +1 -1
- package/dist/actions/files-get.cjs +1 -0
- package/dist/actions/files-get.cjs.map +1 -1
- package/dist/actions/files-get.d.cts +3 -15
- package/dist/actions/files-get.d.cts.map +1 -1
- package/dist/actions/files-get.d.mts +3 -15
- package/dist/actions/files-get.d.mts.map +1 -1
- package/dist/actions/files-get.mjs +1 -0
- package/dist/actions/files-get.mjs.map +1 -1
- package/dist/actions/files-list.cjs +1 -0
- package/dist/actions/files-list.cjs.map +1 -1
- package/dist/actions/files-list.d.cts +3 -15
- package/dist/actions/files-list.d.cts.map +1 -1
- package/dist/actions/files-list.d.mts +3 -15
- package/dist/actions/files-list.d.mts.map +1 -1
- package/dist/actions/files-list.mjs +1 -0
- package/dist/actions/files-list.mjs.map +1 -1
- package/dist/actions/get-prediction.cjs +1 -0
- package/dist/actions/get-prediction.cjs.map +1 -1
- package/dist/actions/get-prediction.d.cts +3 -15
- package/dist/actions/get-prediction.d.cts.map +1 -1
- package/dist/actions/get-prediction.d.mts +3 -15
- package/dist/actions/get-prediction.d.mts.map +1 -1
- package/dist/actions/get-prediction.mjs +1 -0
- package/dist/actions/get-prediction.mjs.map +1 -1
- package/dist/actions/hardware-list.cjs +1 -0
- package/dist/actions/hardware-list.cjs.map +1 -1
- package/dist/actions/hardware-list.d.cts +3 -13
- package/dist/actions/hardware-list.d.cts.map +1 -1
- package/dist/actions/hardware-list.d.mts +3 -13
- package/dist/actions/hardware-list.d.mts.map +1 -1
- package/dist/actions/hardware-list.mjs +1 -0
- package/dist/actions/hardware-list.mjs.map +1 -1
- package/dist/actions/models-examples-list.cjs +1 -0
- package/dist/actions/models-examples-list.cjs.map +1 -1
- package/dist/actions/models-examples-list.d.cts +3 -17
- package/dist/actions/models-examples-list.d.cts.map +1 -1
- package/dist/actions/models-examples-list.d.mts +3 -17
- package/dist/actions/models-examples-list.d.mts.map +1 -1
- package/dist/actions/models-examples-list.mjs +1 -0
- package/dist/actions/models-examples-list.mjs.map +1 -1
- package/dist/actions/models-get.cjs +1 -0
- package/dist/actions/models-get.cjs.map +1 -1
- package/dist/actions/models-get.d.cts +3 -16
- package/dist/actions/models-get.d.cts.map +1 -1
- package/dist/actions/models-get.d.mts +3 -16
- package/dist/actions/models-get.d.mts.map +1 -1
- package/dist/actions/models-get.mjs +1 -0
- package/dist/actions/models-get.mjs.map +1 -1
- package/dist/actions/models-list.cjs +1 -0
- package/dist/actions/models-list.cjs.map +1 -1
- package/dist/actions/models-list.d.cts +3 -17
- package/dist/actions/models-list.d.cts.map +1 -1
- package/dist/actions/models-list.d.mts +3 -17
- package/dist/actions/models-list.d.mts.map +1 -1
- package/dist/actions/models-list.mjs +1 -0
- package/dist/actions/models-list.mjs.map +1 -1
- package/dist/actions/models-predictions-create.cjs +1 -0
- package/dist/actions/models-predictions-create.cjs.map +1 -1
- package/dist/actions/models-predictions-create.d.cts +4 -22
- package/dist/actions/models-predictions-create.d.cts.map +1 -1
- package/dist/actions/models-predictions-create.d.mts +4 -22
- package/dist/actions/models-predictions-create.d.mts.map +1 -1
- package/dist/actions/models-predictions-create.mjs +1 -0
- package/dist/actions/models-predictions-create.mjs.map +1 -1
- package/dist/actions/models-readme-get.cjs +1 -0
- package/dist/actions/models-readme-get.cjs.map +1 -1
- package/dist/actions/models-readme-get.d.cts +3 -16
- package/dist/actions/models-readme-get.d.cts.map +1 -1
- package/dist/actions/models-readme-get.d.mts +3 -16
- package/dist/actions/models-readme-get.d.mts.map +1 -1
- package/dist/actions/models-readme-get.mjs +1 -0
- package/dist/actions/models-readme-get.mjs.map +1 -1
- package/dist/actions/models-versions-get.cjs +1 -0
- package/dist/actions/models-versions-get.cjs.map +1 -1
- package/dist/actions/models-versions-get.d.cts +3 -17
- package/dist/actions/models-versions-get.d.cts.map +1 -1
- package/dist/actions/models-versions-get.d.mts +3 -17
- package/dist/actions/models-versions-get.d.mts.map +1 -1
- package/dist/actions/models-versions-get.mjs +1 -0
- package/dist/actions/models-versions-get.mjs.map +1 -1
- package/dist/actions/models-versions-list.cjs +1 -0
- package/dist/actions/models-versions-list.cjs.map +1 -1
- package/dist/actions/models-versions-list.d.cts +3 -17
- package/dist/actions/models-versions-list.d.cts.map +1 -1
- package/dist/actions/models-versions-list.d.mts +3 -17
- package/dist/actions/models-versions-list.d.mts.map +1 -1
- package/dist/actions/models-versions-list.mjs +1 -0
- package/dist/actions/models-versions-list.mjs.map +1 -1
- package/dist/actions/predictions-create.cjs +1 -0
- package/dist/actions/predictions-create.cjs.map +1 -1
- package/dist/actions/predictions-create.d.cts +4 -22
- package/dist/actions/predictions-create.d.cts.map +1 -1
- package/dist/actions/predictions-create.d.mts +4 -22
- package/dist/actions/predictions-create.d.mts.map +1 -1
- package/dist/actions/predictions-create.mjs +1 -0
- package/dist/actions/predictions-create.mjs.map +1 -1
- package/dist/actions/predictions-list.cjs +1 -0
- package/dist/actions/predictions-list.cjs.map +1 -1
- package/dist/actions/predictions-list.d.cts +3 -17
- package/dist/actions/predictions-list.d.cts.map +1 -1
- package/dist/actions/predictions-list.d.mts +3 -17
- package/dist/actions/predictions-list.d.mts.map +1 -1
- package/dist/actions/predictions-list.mjs +1 -0
- package/dist/actions/predictions-list.mjs.map +1 -1
- package/dist/actions/search.cjs +1 -0
- package/dist/actions/search.cjs.map +1 -1
- package/dist/actions/search.d.cts +3 -16
- package/dist/actions/search.d.cts.map +1 -1
- package/dist/actions/search.d.mts +3 -16
- package/dist/actions/search.d.mts.map +1 -1
- package/dist/actions/search.mjs +1 -0
- package/dist/actions/search.mjs.map +1 -1
- package/dist/actions/trainings-cancel.cjs +1 -0
- package/dist/actions/trainings-cancel.cjs.map +1 -1
- package/dist/actions/trainings-cancel.d.cts +3 -15
- package/dist/actions/trainings-cancel.d.cts.map +1 -1
- package/dist/actions/trainings-cancel.d.mts +3 -15
- package/dist/actions/trainings-cancel.d.mts.map +1 -1
- package/dist/actions/trainings-cancel.mjs +1 -0
- package/dist/actions/trainings-cancel.mjs.map +1 -1
- package/dist/actions/trainings-create.cjs +1 -0
- package/dist/actions/trainings-create.cjs.map +1 -1
- package/dist/actions/trainings-create.d.cts +4 -22
- package/dist/actions/trainings-create.d.cts.map +1 -1
- package/dist/actions/trainings-create.d.mts +4 -22
- package/dist/actions/trainings-create.d.mts.map +1 -1
- package/dist/actions/trainings-create.mjs +1 -0
- package/dist/actions/trainings-create.mjs.map +1 -1
- package/dist/actions/trainings-list.cjs +1 -0
- package/dist/actions/trainings-list.cjs.map +1 -1
- package/dist/actions/trainings-list.d.cts +3 -15
- package/dist/actions/trainings-list.d.cts.map +1 -1
- package/dist/actions/trainings-list.d.mts +3 -15
- package/dist/actions/trainings-list.d.mts.map +1 -1
- package/dist/actions/trainings-list.mjs +1 -0
- package/dist/actions/trainings-list.mjs.map +1 -1
- package/dist/actions/update-models.cjs +1 -0
- package/dist/actions/update-models.cjs.map +1 -1
- package/dist/actions/update-models.d.cts +3 -22
- package/dist/actions/update-models.d.cts.map +1 -1
- package/dist/actions/update-models.d.mts +3 -22
- package/dist/actions/update-models.d.mts.map +1 -1
- package/dist/actions/update-models.mjs +1 -0
- package/dist/actions/update-models.mjs.map +1 -1
- package/dist/actions/webhooks-secret-get.cjs +1 -0
- package/dist/actions/webhooks-secret-get.cjs.map +1 -1
- package/dist/actions/webhooks-secret-get.d.cts +3 -13
- package/dist/actions/webhooks-secret-get.d.cts.map +1 -1
- package/dist/actions/webhooks-secret-get.d.mts +3 -13
- package/dist/actions/webhooks-secret-get.d.mts.map +1 -1
- package/dist/actions/webhooks-secret-get.mjs +1 -0
- package/dist/actions/webhooks-secret-get.mjs.map +1 -1
- package/dist/app.cjs +2 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +4 -6
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +4 -6
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +0 -1
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-readme-get.d.cts","names":[],"sources":["../../src/actions/models-readme-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-readme-get.d.cts","names":[],"sources":["../../src/actions/models-readme-get.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-readme-get.d.ts
|
|
@@ -8,22 +10,7 @@ declare const ReplicateModelsReadmeGetInput: z.ZodObject<{
|
|
|
8
10
|
declare const ReplicateModelsReadmeGetOutput: z.ZodObject<{
|
|
9
11
|
content: z.ZodNullable<z.ZodString>;
|
|
10
12
|
}, z.core.$loose>;
|
|
11
|
-
declare const replicateModelsReadmeGet:
|
|
12
|
-
model_name: string;
|
|
13
|
-
model_owner: string;
|
|
14
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
15
|
-
connectionId: z.ZodString;
|
|
16
|
-
entityId: z.ZodString;
|
|
17
|
-
instanceId: z.ZodString;
|
|
18
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
19
|
-
bearer_token: z.ZodString;
|
|
20
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
21
|
-
connectionId: z.ZodString;
|
|
22
|
-
entityId: z.ZodString;
|
|
23
|
-
instanceId: z.ZodString;
|
|
24
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
-
bearer_token: z.ZodString;
|
|
26
|
-
}, z.core.$strip>>]>;
|
|
13
|
+
declare const replicateModelsReadmeGet: AppAction<typeof ReplicateModelsReadmeGetInput, typeof ReplicateModelsReadmeGetOutput, typeof replicate.credential>;
|
|
27
14
|
//#endregion
|
|
28
15
|
export { replicateModelsReadmeGet };
|
|
29
16
|
//# sourceMappingURL=models-readme-get.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-readme-get.d.mts","names":[],"sources":["../../src/actions/models-readme-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-readme-get.d.mts","names":[],"sources":["../../src/actions/models-readme-get.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;cAI7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-readme-get.mjs","names":[],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsReadmeGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\").nullable(),\n}).passthrough().describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-readme-get.mjs","names":[],"sources":["../../src/actions/models-readme-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateModelsReadmeGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate' Must exactly match the Replicate URL slug (case-sensitive).\"),\n}).describe(\"Request schema for retrieving the README content of a specific model.\");\nexport const ReplicateModelsReadmeGetOutput = z.object({\n content: z.string().describe(\"The README content for the specified model in Markdown format\").nullable(),\n}).passthrough().describe(\"Response schema containing the model's README content in Markdown format.\");\n\nexport const replicateModelsReadmeGet: AppAction<\n typeof ReplicateModelsReadmeGetInput,\n typeof ReplicateModelsReadmeGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_MODELS_README_GET\", {\n slug: \"replicate-models-readme-get\",\n name: \"Get Model README\",\n description: \"Tool to get the README content for a model in Markdown format. Consult alongside REPLICATE_MODELS_EXAMPLES_LIST before calling REPLICATE_CREATE_PREDICTION — Replicate enforces strict JSON schemas on model inputs and returns 422 errors for incorrect keys or types. Use after retrieving model details when you want to view its documentation.\",\n input: ReplicateModelsReadmeGetInput,\n output: ReplicateModelsReadmeGetOutput,\n});\n"],"mappings":";;;AAcA,MAAa,2BAIT,OAAO,+BAA+B;CACxC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhB2C,EAAE,OAAO;EACpD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iIAAiI;CACpK,CAAC,CAAC,CAAC,SAAS,uEAaH;CACP,QAb4C,EAAE,OAAO,EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,EACzG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,2EAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-get.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).passthrough().describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-get.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).passthrough().describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet: AppAction<\n typeof ReplicateModelsVersionsGetInput,\n typeof ReplicateModelsVersionsGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;AAChH,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACjF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;CAC7H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC9G,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F;AAC5J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+FAA+F;AAEzH,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-versions-get.d.ts
|
|
@@ -12,23 +14,7 @@ declare const ReplicateModelsVersionsGetOutput: z.ZodObject<{
|
|
|
12
14
|
cog_version: z.ZodNullable<z.ZodString>;
|
|
13
15
|
openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const replicateModelsVersionsGet:
|
|
16
|
-
model_name: string;
|
|
17
|
-
version_id: string;
|
|
18
|
-
model_owner: string;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
bearer_token: z.ZodString;
|
|
25
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
26
|
-
connectionId: z.ZodString;
|
|
27
|
-
entityId: z.ZodString;
|
|
28
|
-
instanceId: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
bearer_token: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const replicateModelsVersionsGet: AppAction<typeof ReplicateModelsVersionsGetInput, typeof ReplicateModelsVersionsGetOutput, typeof replicate.credential>;
|
|
32
18
|
//#endregion
|
|
33
19
|
export { replicateModelsVersionsGet };
|
|
34
20
|
//# sourceMappingURL=models-versions-get.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-get.d.cts","names":[],"sources":["../../src/actions/models-versions-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-get.d.cts","names":[],"sources":["../../src/actions/models-versions-get.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAOhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-versions-get.d.ts
|
|
@@ -12,23 +14,7 @@ declare const ReplicateModelsVersionsGetOutput: z.ZodObject<{
|
|
|
12
14
|
cog_version: z.ZodNullable<z.ZodString>;
|
|
13
15
|
openapi_schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
14
16
|
}, z.core.$loose>;
|
|
15
|
-
declare const replicateModelsVersionsGet:
|
|
16
|
-
model_name: string;
|
|
17
|
-
version_id: string;
|
|
18
|
-
model_owner: string;
|
|
19
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
20
|
-
connectionId: z.ZodString;
|
|
21
|
-
entityId: z.ZodString;
|
|
22
|
-
instanceId: z.ZodString;
|
|
23
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
-
bearer_token: z.ZodString;
|
|
25
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
26
|
-
connectionId: z.ZodString;
|
|
27
|
-
entityId: z.ZodString;
|
|
28
|
-
instanceId: z.ZodString;
|
|
29
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
-
bearer_token: z.ZodString;
|
|
31
|
-
}, z.core.$strip>>]>;
|
|
17
|
+
declare const replicateModelsVersionsGet: AppAction<typeof ReplicateModelsVersionsGetInput, typeof ReplicateModelsVersionsGetOutput, typeof replicate.credential>;
|
|
32
18
|
//#endregion
|
|
33
19
|
export { replicateModelsVersionsGet };
|
|
34
20
|
//# sourceMappingURL=models-versions-get.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-get.d.mts","names":[],"sources":["../../src/actions/models-versions-get.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-get.d.mts","names":[],"sources":["../../src/actions/models-versions-get.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;cAK/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;cAOhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-get.mjs","names":[],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).passthrough().describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-get.mjs","names":[],"sources":["../../src/actions/models-versions-get.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateModelsVersionsGetInput = z.object({\n model_name: z.string().describe(\"The name of the model, e.g., 'hello-world'\"),\n version_id: z.string().describe(\"The 64-character identifier of the version\"),\n model_owner: z.string().describe(\"The name of the user or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for retrieving a specific version of a model.\");\nexport const ReplicateModelsVersionsGetOutput = z.object({\n id: z.string().describe(\"The version's unique 64-character identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when version was created, e.g., '2022-04-26T19:29:04.418669Z'\").nullable(),\n cog_version: z.string().describe(\"The Cog framework version used to build the model, e.g., '0.3.0'\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI specification including input parameter definitions and output specification\"),\n}).passthrough().describe(\"Response schema for models.versions.get: Detailed information about a specific model version.\");\n\nexport const replicateModelsVersionsGet: AppAction<\n typeof ReplicateModelsVersionsGetInput,\n typeof ReplicateModelsVersionsGetOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_MODELS_VERSIONS_GET\", {\n slug: \"replicate-models-versions-get\",\n name: \"Get Model Version\",\n description: \"Tool to get a specific version of a model. Use when you need details about a particular model version including its schema and metadata.\",\n input: ReplicateModelsVersionsGetInput,\n output: ReplicateModelsVersionsGetOutput,\n});\n"],"mappings":";;;AAkBA,MAAa,6BAIT,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApB6C,EAAE,OAAO;EACtD,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E;CAChH,CAAC,CAAC,CAAC,SAAS,8DAgBH;CACP,QAhB8C,EAAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;EACjF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,kFAAkF,CAAC,CAAC,SAAS;EAC7H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC9G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F;CAC5J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+FAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-list.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsListInput = 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, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).passthrough().describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-list.cjs","names":["z","action"],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateModelsVersionsListInput = 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, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).passthrough().describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList: AppAction<\n typeof ReplicateModelsVersionsListInput,\n typeof ReplicateModelsVersionsListOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;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"@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-versions-list.d.ts
|
|
@@ -16,23 +18,7 @@ declare const ReplicateModelsVersionsListOutput: z.ZodObject<{
|
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const replicateModelsVersionsList:
|
|
20
|
-
model_name: string;
|
|
21
|
-
model_owner: string;
|
|
22
|
-
cursor?: string | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
bearer_token: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
bearer_token: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const replicateModelsVersionsList: AppAction<typeof ReplicateModelsVersionsListInput, typeof ReplicateModelsVersionsListOutput, typeof replicate.credential>;
|
|
36
22
|
//#endregion
|
|
37
23
|
export { replicateModelsVersionsList };
|
|
38
24
|
//# sourceMappingURL=models-versions-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-list.d.cts","names":[],"sources":["../../src/actions/models-versions-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-list.d.cts","names":[],"sources":["../../src/actions/models-versions-list.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAWhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAMjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/models-versions-list.d.ts
|
|
@@ -16,23 +18,7 @@ declare const ReplicateModelsVersionsListOutput: z.ZodObject<{
|
|
|
16
18
|
}, z.core.$loose>>;
|
|
17
19
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
20
|
}, z.core.$loose>;
|
|
19
|
-
declare const replicateModelsVersionsList:
|
|
20
|
-
model_name: string;
|
|
21
|
-
model_owner: string;
|
|
22
|
-
cursor?: string | undefined;
|
|
23
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
24
|
-
connectionId: z.ZodString;
|
|
25
|
-
entityId: z.ZodString;
|
|
26
|
-
instanceId: z.ZodString;
|
|
27
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
28
|
-
bearer_token: z.ZodString;
|
|
29
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
30
|
-
connectionId: z.ZodString;
|
|
31
|
-
entityId: z.ZodString;
|
|
32
|
-
instanceId: z.ZodString;
|
|
33
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
-
bearer_token: z.ZodString;
|
|
35
|
-
}, z.core.$strip>>]>;
|
|
21
|
+
declare const replicateModelsVersionsList: AppAction<typeof ReplicateModelsVersionsListInput, typeof ReplicateModelsVersionsListOutput, typeof replicate.credential>;
|
|
36
22
|
//#endregion
|
|
37
23
|
export { replicateModelsVersionsList };
|
|
38
24
|
//# sourceMappingURL=models-versions-list.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-list.d.mts","names":[],"sources":["../../src/actions/models-versions-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-list.d.mts","names":[],"sources":["../../src/actions/models-versions-list.ts"],"mappings":";;;;;cAMa,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;cAWhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;cAMjC,2BAAA,EAA6B,SAAA,QACjC,gCAAA,SACA,iCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models-versions-list.mjs","names":[],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicateModelsVersionsListInput = 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, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).passthrough().describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"models-versions-list.mjs","names":[],"sources":["../../src/actions/models-versions-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicateModelsVersionsListInput = 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, e.g., 'hello-world'\"),\n model_owner: z.string().describe(\"The username or organization that owns the model, e.g., 'replicate'\"),\n}).describe(\"Request schema for listing all versions of a specific model.\");\nconst ReplicateModelsVersionsList_ModelVersionSchema = z.object({\n id: z.string().describe(\"The 64-character version identifier\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp of when the version was created\").nullable(),\n cog_version: z.string().describe(\"Version of the Cog framework used to build this model version\").nullable(),\n openapi_schema: z.record(z.string(), z.unknown()).describe(\"Complete OpenAPI schema describing the model's inputs and outputs\"),\n}).passthrough().describe(\"Representation of a model version.\");\nexport const ReplicateModelsVersionsListOutput = z.object({\n next: z.string().describe(\"URL to fetch the next page of results, null if no more pages\").nullable().optional(),\n results: z.array(ReplicateModelsVersionsList_ModelVersionSchema).describe(\"Array of version objects on this page\"),\n previous: z.string().describe(\"URL to fetch the previous page of results, null if on first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of model versions, newest first.\");\n\nexport const replicateModelsVersionsList: AppAction<\n typeof ReplicateModelsVersionsListInput,\n typeof ReplicateModelsVersionsListOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_MODELS_VERSIONS_LIST\", {\n slug: \"replicate-models-versions-list\",\n name: \"List Model Versions\",\n description: \"Tool to list all versions of a specific model. Use when you need to see all available versions of a model, sorted by newest first.\",\n input: ReplicateModelsVersionsListInput,\n output: ReplicateModelsVersionsListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,mCAAmC,EAAE,OAAO;CACvD,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qEAAqE;AACxG,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,iDAAiD,EAAE,OAAO;CAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC/F,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS;CAC3G,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAChI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oCAAoC;AAO9D,MAAa,8BAIT,OAAO,kCAAkC;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf+C,EAAE,OAAO;EACxD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9G,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,uCAAuC;EACjH,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predictions-create.cjs","names":["z","action"],"sources":["../../src/actions/predictions-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicatePredictionsCreateInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model. Files should be HTTP URLs (for files >256kb or reusable) or data URLs (for files ≤256kb)\"),\n stream: z.boolean().describe(\"Deprecated. Streaming availability is now included in response urls\").optional(),\n version: z.string().describe(\"Model version identifier. Accepts formats: {owner}/{name}, {owner}/{name}:{version_id}, or {version_id} alone\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur. Body mirrors the get prediction response\").optional(),\n wait_for: z.number().int().describe(\"Seconds (1-60) to hold connection open until model finishes. Adds 'Prefer: wait=<n>' header\").optional(),\n cancel_after: z.string().describe(\"Maximum runtime before automatic cancellation. Accepts durations with optional suffixes (s/m/h). Minimum: 5 seconds. Examples: '30s', '5m', '1h30m45s'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Controls webhook triggers. Options: 'start', 'output', 'logs', 'completed'. Output/logs events throttled to once per 500ms\").optional(),\n}).describe(\"Request schema for creating a prediction by version ID.\");\nconst ReplicatePredictionsCreate_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicatePredictionsCreate_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicatePredictionsCreateOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"Captured output from prediction execution\").nullable().optional(),\n urls: ReplicatePredictionsCreate_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Model results; null after automatic data removal (~1 hour)\").nullable().optional(),\n status: z.string().describe(\"One of 'starting', 'processing', 'succeeded', 'failed', 'canceled'\").nullable(),\n metrics: ReplicatePredictionsCreate_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when prediction finished\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data was deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a prediction.\");\n\nexport const replicatePredictionsCreate = action(\"REPLICATE_PREDICTIONS_CREATE\", {\n slug: \"replicate-predictions-create\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction to run a model by version ID. Use when you have a specific model version identifier and need to run inference with provided inputs. Supports synchronous waiting and webhook notifications.\",\n input: ReplicatePredictionsCreateInput,\n output: ReplicatePredictionsCreateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"predictions-create.cjs","names":["z","action"],"sources":["../../src/actions/predictions-create.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicatePredictionsCreateInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model. Files should be HTTP URLs (for files >256kb or reusable) or data URLs (for files ≤256kb)\"),\n stream: z.boolean().describe(\"Deprecated. Streaming availability is now included in response urls\").optional(),\n version: z.string().describe(\"Model version identifier. Accepts formats: {owner}/{name}, {owner}/{name}:{version_id}, or {version_id} alone\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur. Body mirrors the get prediction response\").optional(),\n wait_for: z.number().int().describe(\"Seconds (1-60) to hold connection open until model finishes. Adds 'Prefer: wait=<n>' header\").optional(),\n cancel_after: z.string().describe(\"Maximum runtime before automatic cancellation. Accepts durations with optional suffixes (s/m/h). Minimum: 5 seconds. Examples: '30s', '5m', '1h30m45s'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Controls webhook triggers. Options: 'start', 'output', 'logs', 'completed'. Output/logs events throttled to once per 500ms\").optional(),\n}).describe(\"Request schema for creating a prediction by version ID.\");\nconst ReplicatePredictionsCreate_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicatePredictionsCreate_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicatePredictionsCreateOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"Captured output from prediction execution\").nullable().optional(),\n urls: ReplicatePredictionsCreate_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Model results; null after automatic data removal (~1 hour)\").nullable().optional(),\n status: z.string().describe(\"One of 'starting', 'processing', 'succeeded', 'failed', 'canceled'\").nullable(),\n metrics: ReplicatePredictionsCreate_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when prediction finished\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data was deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a prediction.\");\n\nexport const replicatePredictionsCreate: AppAction<\n typeof ReplicatePredictionsCreateInput,\n typeof ReplicatePredictionsCreateOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_PREDICTIONS_CREATE\", {\n slug: \"replicate-predictions-create\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction to run a model by version ID. Use when you have a specific model version identifier and need to run inference with provided inputs. Supports synchronous waiting and webhook notifications.\",\n input: ReplicatePredictionsCreateInput,\n output: ReplicatePredictionsCreateOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+IAA+I;CACjM,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CAC7G,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+GAA+G;C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C,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/predictions-create.d.ts
|
|
@@ -10,8 +12,8 @@ declare const ReplicatePredictionsCreateInput: z.ZodObject<{
|
|
|
10
12
|
cancel_after: z.ZodOptional<z.ZodString>;
|
|
11
13
|
webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
12
14
|
output: "output";
|
|
13
|
-
start: "start";
|
|
14
15
|
logs: "logs";
|
|
16
|
+
start: "start";
|
|
15
17
|
completed: "completed";
|
|
16
18
|
}>>>;
|
|
17
19
|
}, z.core.$strip>;
|
|
@@ -39,27 +41,7 @@ declare const ReplicatePredictionsCreateOutput: z.ZodObject<{
|
|
|
39
41
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
42
|
data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const replicatePredictionsCreate:
|
|
43
|
-
input: Record<string, unknown>;
|
|
44
|
-
version: string;
|
|
45
|
-
stream?: boolean | undefined;
|
|
46
|
-
webhook?: string | undefined;
|
|
47
|
-
wait_for?: number | undefined;
|
|
48
|
-
cancel_after?: string | undefined;
|
|
49
|
-
webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
|
|
50
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
51
|
-
connectionId: z.ZodString;
|
|
52
|
-
entityId: z.ZodString;
|
|
53
|
-
instanceId: z.ZodString;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
bearer_token: z.ZodString;
|
|
56
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
57
|
-
connectionId: z.ZodString;
|
|
58
|
-
entityId: z.ZodString;
|
|
59
|
-
instanceId: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
bearer_token: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>]>;
|
|
44
|
+
declare const replicatePredictionsCreate: AppAction<typeof ReplicatePredictionsCreateInput, typeof ReplicatePredictionsCreateOutput, typeof replicate.credential>;
|
|
63
45
|
//#endregion
|
|
64
46
|
export { replicatePredictionsCreate };
|
|
65
47
|
//# sourceMappingURL=predictions-create.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predictions-create.d.cts","names":[],"sources":["../../src/actions/predictions-create.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"predictions-create.d.cts","names":[],"sources":["../../src/actions/predictions-create.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAmB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiBhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/predictions-create.d.ts
|
|
@@ -10,8 +12,8 @@ declare const ReplicatePredictionsCreateInput: z.ZodObject<{
|
|
|
10
12
|
cancel_after: z.ZodOptional<z.ZodString>;
|
|
11
13
|
webhook_events_filter: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
12
14
|
output: "output";
|
|
13
|
-
start: "start";
|
|
14
15
|
logs: "logs";
|
|
16
|
+
start: "start";
|
|
15
17
|
completed: "completed";
|
|
16
18
|
}>>>;
|
|
17
19
|
}, z.core.$strip>;
|
|
@@ -39,27 +41,7 @@ declare const ReplicatePredictionsCreateOutput: z.ZodObject<{
|
|
|
39
41
|
completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
42
|
data_removed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
41
43
|
}, z.core.$loose>;
|
|
42
|
-
declare const replicatePredictionsCreate:
|
|
43
|
-
input: Record<string, unknown>;
|
|
44
|
-
version: string;
|
|
45
|
-
stream?: boolean | undefined;
|
|
46
|
-
webhook?: string | undefined;
|
|
47
|
-
wait_for?: number | undefined;
|
|
48
|
-
cancel_after?: string | undefined;
|
|
49
|
-
webhook_events_filter?: ("output" | "start" | "logs" | "completed")[] | undefined;
|
|
50
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
51
|
-
connectionId: z.ZodString;
|
|
52
|
-
entityId: z.ZodString;
|
|
53
|
-
instanceId: z.ZodString;
|
|
54
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
55
|
-
bearer_token: z.ZodString;
|
|
56
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
57
|
-
connectionId: z.ZodString;
|
|
58
|
-
entityId: z.ZodString;
|
|
59
|
-
instanceId: z.ZodString;
|
|
60
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
61
|
-
bearer_token: z.ZodString;
|
|
62
|
-
}, z.core.$strip>>]>;
|
|
44
|
+
declare const replicatePredictionsCreate: AppAction<typeof ReplicatePredictionsCreateInput, typeof ReplicatePredictionsCreateOutput, typeof replicate.credential>;
|
|
63
45
|
//#endregion
|
|
64
46
|
export { replicatePredictionsCreate };
|
|
65
47
|
//# sourceMappingURL=predictions-create.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predictions-create.d.mts","names":[],"sources":["../../src/actions/predictions-create.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"predictions-create.d.mts","names":[],"sources":["../../src/actions/predictions-create.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAmB/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAiBhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predictions-create.mjs","names":[],"sources":["../../src/actions/predictions-create.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicatePredictionsCreateInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model. Files should be HTTP URLs (for files >256kb or reusable) or data URLs (for files ≤256kb)\"),\n stream: z.boolean().describe(\"Deprecated. Streaming availability is now included in response urls\").optional(),\n version: z.string().describe(\"Model version identifier. Accepts formats: {owner}/{name}, {owner}/{name}:{version_id}, or {version_id} alone\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur. Body mirrors the get prediction response\").optional(),\n wait_for: z.number().int().describe(\"Seconds (1-60) to hold connection open until model finishes. Adds 'Prefer: wait=<n>' header\").optional(),\n cancel_after: z.string().describe(\"Maximum runtime before automatic cancellation. Accepts durations with optional suffixes (s/m/h). Minimum: 5 seconds. Examples: '30s', '5m', '1h30m45s'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Controls webhook triggers. Options: 'start', 'output', 'logs', 'completed'. Output/logs events throttled to once per 500ms\").optional(),\n}).describe(\"Request schema for creating a prediction by version ID.\");\nconst ReplicatePredictionsCreate_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicatePredictionsCreate_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicatePredictionsCreateOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"Captured output from prediction execution\").nullable().optional(),\n urls: ReplicatePredictionsCreate_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Model results; null after automatic data removal (~1 hour)\").nullable().optional(),\n status: z.string().describe(\"One of 'starting', 'processing', 'succeeded', 'failed', 'canceled'\").nullable(),\n metrics: ReplicatePredictionsCreate_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when prediction finished\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data was deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a prediction.\");\n\nexport const replicatePredictionsCreate = action(\"REPLICATE_PREDICTIONS_CREATE\", {\n slug: \"replicate-predictions-create\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction to run a model by version ID. Use when you have a specific model version identifier and need to run inference with provided inputs. Supports synchronous waiting and webhook notifications.\",\n input: ReplicatePredictionsCreateInput,\n output: ReplicatePredictionsCreateOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"predictions-create.mjs","names":[],"sources":["../../src/actions/predictions-create.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicatePredictionsCreateInput = z.object({\n input: z.record(z.string(), z.unknown()).describe(\"Model inputs as JSON object. Schema varies by model. Files should be HTTP URLs (for files >256kb or reusable) or data URLs (for files ≤256kb)\"),\n stream: z.boolean().describe(\"Deprecated. Streaming availability is now included in response urls\").optional(),\n version: z.string().describe(\"Model version identifier. Accepts formats: {owner}/{name}, {owner}/{name}:{version_id}, or {version_id} alone\"),\n webhook: z.string().describe(\"HTTPS URL to receive POST requests when prediction updates occur. Body mirrors the get prediction response\").optional(),\n wait_for: z.number().int().describe(\"Seconds (1-60) to hold connection open until model finishes. Adds 'Prefer: wait=<n>' header\").optional(),\n cancel_after: z.string().describe(\"Maximum runtime before automatic cancellation. Accepts durations with optional suffixes (s/m/h). Minimum: 5 seconds. Examples: '30s', '5m', '1h30m45s'\").optional(),\n webhook_events_filter: z.array(z.enum([\"start\", \"output\", \"logs\", \"completed\"])).describe(\"Controls webhook triggers. Options: 'start', 'output', 'logs', 'completed'. Output/logs events throttled to once per 500ms\").optional(),\n}).describe(\"Request schema for creating a prediction by version ID.\");\nconst ReplicatePredictionsCreate_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicatePredictionsCreate_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nexport const ReplicatePredictionsCreateOutput = z.object({\n id: z.string().describe(\"Unique prediction identifier\").nullable(),\n logs: z.string().describe(\"Captured output from prediction execution\").nullable().optional(),\n urls: ReplicatePredictionsCreate_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if prediction failed\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"The input parameters provided\"),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").nullable().optional(),\n output: z.unknown().describe(\"Model results; null after automatic data removal (~1 hour)\").nullable().optional(),\n status: z.string().describe(\"One of 'starting', 'processing', 'succeeded', 'failed', 'canceled'\").nullable(),\n metrics: ReplicatePredictionsCreate_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"64-character model version ID\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when prediction finished\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data was deleted\").nullable().optional(),\n}).passthrough().describe(\"Response schema for creating a prediction.\");\n\nexport const replicatePredictionsCreate: AppAction<\n typeof ReplicatePredictionsCreateInput,\n typeof ReplicatePredictionsCreateOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_PREDICTIONS_CREATE\", {\n slug: \"replicate-predictions-create\",\n name: \"Create Prediction\",\n description: \"Tool to create a prediction to run a model by version ID. Use when you have a specific model version identifier and need to run inference with provided inputs. Supports synchronous waiting and web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AAS;EACrG,cAAc,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predictions-list.cjs","names":["z","action"],"sources":["../../src/actions/predictions-list.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const ReplicatePredictionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n created_after: z.string().describe(\"Include only predictions created at or after this date-time, in ISO 8601 format (e.g., '2024-01-01T00:00:00Z'). Useful for filtering recent predictions.\").optional(),\n created_before: z.string().describe(\"Include only predictions created before this date-time, in ISO 8601 format (e.g., '2024-12-31T23:59:59Z'). Useful for filtering older predictions.\").optional(),\n}).describe(\"Request schema for listing predictions with optional date filtering.\");\nconst ReplicatePredictionsList_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicatePredictionsList_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nconst ReplicatePredictionsList_PredictionSchema = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n urls: ReplicatePredictionsList_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input parameters provided to the model\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").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: z.string().describe(\"How the prediction was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the prediction: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicatePredictionsList_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"Unique ID of the model version used for this prediction\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the prediction was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the prediction completed, null if not completed\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data has been deleted from the system\").nullable(),\n}).passthrough().describe(\"Representation of a prediction object.\");\nexport const ReplicatePredictionsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicatePredictionsList_PredictionSchema).describe(\"Array of prediction objects on this page (up to 100 predictions per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of predictions.\");\n\nexport const replicatePredictionsList = action(\"REPLICATE_PREDICTIONS_LIST\", {\n slug: \"replicate-predictions-list\",\n name: \"List All Predictions\",\n description: \"Tool to list all predictions for the authenticated user or organization with pagination. Use when you need to retrieve prediction history or filter predictions by creation date.\",\n input: ReplicatePredictionsListInput,\n output: ReplicatePredictionsListOutput,\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"predictions-list.cjs","names":["z","action"],"sources":["../../src/actions/predictions-list.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { replicate } from \"../app\";\n\nexport const ReplicatePredictionsListInput = z.object({\n cursor: z.string().describe(\"Cursor for pagination. Use the cursor from 'next' URL of previous response.\").optional(),\n created_after: z.string().describe(\"Include only predictions created at or after this date-time, in ISO 8601 format (e.g., '2024-01-01T00:00:00Z'). Useful for filtering recent predictions.\").optional(),\n created_before: z.string().describe(\"Include only predictions created before this date-time, in ISO 8601 format (e.g., '2024-12-31T23:59:59Z'). Useful for filtering older predictions.\").optional(),\n}).describe(\"Request schema for listing predictions with optional date filtering.\");\nconst ReplicatePredictionsList_PredictionUrlsSchema = z.object({\n get: z.string().describe(\"API endpoint URL to get the prediction details\").nullable(),\n web: z.string().describe(\"Web URL for viewing the prediction in a browser\").nullable().optional(),\n cancel: z.string().describe(\"API endpoint URL to cancel the prediction\").nullable(),\n stream: z.string().describe(\"Streaming URL for the prediction, if available\").nullable().optional(),\n}).passthrough().describe(\"URLs associated with a prediction.\\n\\nNote: The official OpenAPI schema (https://api.replicate.com/openapi.json) marks 'web'\\nas required, but actual API responses from default_example objects omit this field.\\nTo ensure compatibility with real API responses, 'web' is marked as optional.\");\nconst ReplicatePredictionsList_PredictionMetricsSchema = z.object({\n total_time: z.number().describe(\"Total time in seconds for the prediction\").nullable().optional(),\n predict_time: z.number().describe(\"CPU/GPU seconds used during model execution\").nullable().optional(),\n}).passthrough().describe(\"Metrics associated with a prediction.\");\nconst ReplicatePredictionsList_PredictionSchema = z.object({\n id: z.string().describe(\"Unique identifier for this prediction\").nullable(),\n urls: ReplicatePredictionsList_PredictionUrlsSchema.nullable(),\n error: z.string().describe(\"Error message if the prediction failed, null otherwise\").nullable().optional(),\n input: z.record(z.string(), z.unknown()).describe(\"Input parameters provided to the model\").nullable().optional(),\n model: z.string().describe(\"Model identifier in format {owner}/{name}\").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: z.string().describe(\"How the prediction was created: 'web' or 'api'\").nullable(),\n status: z.string().describe(\"Current state of the prediction: 'starting', 'processing', 'succeeded', 'failed', or 'canceled'\").nullable(),\n metrics: ReplicatePredictionsList_PredictionMetricsSchema.nullable().optional(),\n version: z.string().describe(\"Unique ID of the model version used for this prediction\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the prediction was created\").nullable(),\n started_at: z.string().describe(\"ISO 8601 timestamp when processing began, null if not started\").nullable().optional(),\n completed_at: z.string().describe(\"ISO 8601 timestamp when the prediction completed, null if not completed\").nullable().optional(),\n data_removed: z.boolean().describe(\"Whether input/output data has been deleted from the system\").nullable(),\n}).passthrough().describe(\"Representation of a prediction object.\");\nexport const ReplicatePredictionsListOutput = z.object({\n next: z.string().describe(\"URL for the next page of results, null if no more pages available\").nullable().optional(),\n results: z.array(ReplicatePredictionsList_PredictionSchema).describe(\"Array of prediction objects on this page (up to 100 predictions per page)\"),\n previous: z.string().describe(\"URL for the previous page of results, null if on the first page\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of predictions.\");\n\nexport const replicatePredictionsList: AppAction<\n typeof ReplicatePredictionsListInput,\n typeof ReplicatePredictionsListOutput,\n typeof replicate.credential\n> = action(\"REPLICATE_PREDICTIONS_LIST\", {\n slug: \"replicate-predictions-list\",\n name: \"List All Predictions\",\n description: \"Tool to list all predictions for the authenticated user or organization with pagination. Use when you need to retrieve prediction history or filter predictions by creation date.\",\n input: ReplicatePredictionsListInput,\n output: ReplicatePredictionsListOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACpH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CACxM,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oJ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,CAAC,SAAS,2EAA2E;CAChJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gCAAgC;AAE1D,MAAa,2BAITC,eAAAA,OAAO,8BAA8B;CACvC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/predictions-list.d.ts
|
|
@@ -34,23 +36,7 @@ declare const ReplicatePredictionsListOutput: z.ZodObject<{
|
|
|
34
36
|
}, z.core.$loose>>;
|
|
35
37
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
38
|
}, z.core.$loose>;
|
|
37
|
-
declare const replicatePredictionsList:
|
|
38
|
-
cursor?: string | undefined;
|
|
39
|
-
created_after?: string | undefined;
|
|
40
|
-
created_before?: string | undefined;
|
|
41
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
42
|
-
connectionId: z.ZodString;
|
|
43
|
-
entityId: z.ZodString;
|
|
44
|
-
instanceId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
bearer_token: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
48
|
-
connectionId: z.ZodString;
|
|
49
|
-
entityId: z.ZodString;
|
|
50
|
-
instanceId: z.ZodString;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
bearer_token: z.ZodString;
|
|
53
|
-
}, z.core.$strip>>]>;
|
|
39
|
+
declare const replicatePredictionsList: AppAction<typeof ReplicatePredictionsListInput, typeof ReplicatePredictionsListOutput, typeof replicate.credential>;
|
|
54
40
|
//#endregion
|
|
55
41
|
export { replicatePredictionsList };
|
|
56
42
|
//# sourceMappingURL=predictions-list.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"predictions-list.d.cts","names":[],"sources":["../../src/actions/predictions-list.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"predictions-list.d.cts","names":[],"sources":["../../src/actions/predictions-list.ts"],"mappings":";;;;;cAMa,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;cA+B7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAM9B,wBAAA,EAA0B,SAAA,QAC9B,6BAAA,SACA,8BAAA,SACA,SAAA,CAAU,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { replicate } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/predictions-list.d.ts
|
|
@@ -34,23 +36,7 @@ declare const ReplicatePredictionsListOutput: z.ZodObject<{
|
|
|
34
36
|
}, z.core.$loose>>;
|
|
35
37
|
previous: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
38
|
}, z.core.$loose>;
|
|
37
|
-
declare const replicatePredictionsList:
|
|
38
|
-
cursor?: string | undefined;
|
|
39
|
-
created_after?: string | undefined;
|
|
40
|
-
created_before?: string | undefined;
|
|
41
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
42
|
-
connectionId: z.ZodString;
|
|
43
|
-
entityId: z.ZodString;
|
|
44
|
-
instanceId: z.ZodString;
|
|
45
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
46
|
-
bearer_token: z.ZodString;
|
|
47
|
-
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"replicate", z.ZodObject<{
|
|
48
|
-
connectionId: z.ZodString;
|
|
49
|
-
entityId: z.ZodString;
|
|
50
|
-
instanceId: z.ZodString;
|
|
51
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
52
|
-
bearer_token: z.ZodString;
|
|
53
|
-
}, z.core.$strip>>]>;
|
|
39
|
+
declare const replicatePredictionsList: AppAction<typeof ReplicatePredictionsListInput, typeof ReplicatePredictionsListOutput, typeof replicate.credential>;
|
|
54
40
|
//#endregion
|
|
55
41
|
export { replicatePredictionsList };
|
|
56
42
|
//# sourceMappingURL=predictions-list.d.mts.map
|