@skyvern/client 0.2.21 → 0.2.22
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/README.md +1 -1
- package/dist/cjs/Client.d.ts +24 -2
- package/dist/cjs/Client.js +115 -31
- package/dist/cjs/api/client/requests/GetWorkflowsRequest.d.ts +6 -1
- package/dist/cjs/api/client/requests/RunSdkActionRequest.d.ts +22 -0
- package/dist/cjs/api/client/requests/RunSdkActionRequest.js +3 -0
- package/dist/cjs/api/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/index.d.ts +2 -0
- package/dist/cjs/api/resources/index.js +6 -1
- package/dist/cjs/api/resources/scripts/client/Client.js +1 -1
- package/dist/cjs/api/resources/workflows/client/Client.d.ts +108 -0
- package/dist/cjs/api/resources/workflows/client/Client.js +465 -0
- package/dist/cjs/api/resources/workflows/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/client/index.js +17 -0
- package/dist/cjs/api/resources/workflows/client/requests/DeleteFolderV1FoldersFolderIdDeleteRequest.d.ts +10 -0
- package/dist/cjs/api/resources/workflows/client/requests/DeleteFolderV1FoldersFolderIdDeleteRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/FolderCreate.d.ts +12 -0
- package/dist/cjs/api/resources/workflows/client/requests/FolderCreate.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/FolderUpdate.d.ts +10 -0
- package/dist/cjs/api/resources/workflows/client/requests/FolderUpdate.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetFoldersV1FoldersGetRequest.d.ts +16 -0
- package/dist/cjs/api/resources/workflows/client/requests/GetFoldersV1FoldersGetRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/UpdateWorkflowFolderRequest.d.ts +8 -0
- package/dist/cjs/api/resources/workflows/client/requests/UpdateWorkflowFolderRequest.js +3 -0
- package/dist/cjs/api/resources/workflows/client/requests/index.d.ts +5 -0
- package/dist/cjs/api/resources/workflows/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/workflows/index.d.ts +1 -0
- package/dist/cjs/api/resources/workflows/index.js +17 -0
- package/dist/cjs/api/types/ActAction.d.ts +15 -0
- package/dist/cjs/api/types/ActAction.js +3 -0
- package/dist/cjs/api/types/Action.d.ts +1 -0
- package/dist/cjs/api/types/ClickAction.d.ts +19 -0
- package/dist/cjs/api/types/ClickAction.js +3 -0
- package/dist/cjs/api/types/ClickContext.d.ts +4 -0
- package/dist/cjs/api/types/ClickContext.js +3 -0
- package/dist/cjs/api/types/ExtractAction.d.ts +25 -0
- package/dist/cjs/api/types/ExtractAction.js +3 -0
- package/dist/cjs/api/types/Folder.d.ts +15 -0
- package/dist/cjs/api/types/Folder.js +3 -0
- package/dist/cjs/api/types/InputTextAction.d.ts +25 -0
- package/dist/cjs/api/types/InputTextAction.js +3 -0
- package/dist/cjs/api/types/RunSdkActionRequestAction.d.ts +22 -0
- package/dist/cjs/api/types/RunSdkActionRequestAction.js +3 -0
- package/dist/cjs/api/types/RunSdkActionResponse.d.ts +9 -0
- package/dist/cjs/api/types/RunSdkActionResponse.js +3 -0
- package/dist/cjs/api/types/SelectOptionAction.d.ts +21 -0
- package/dist/cjs/api/types/SelectOptionAction.js +3 -0
- package/dist/cjs/api/types/Workflow.d.ts +2 -0
- package/dist/cjs/api/types/WorkflowStatus.d.ts +2 -0
- package/dist/cjs/api/types/WorkflowStatus.js +2 -0
- package/dist/cjs/api/types/index.d.ts +9 -0
- package/dist/cjs/api/types/index.js +9 -0
- package/dist/cjs/environments.d.ts +3 -3
- package/dist/cjs/environments.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +24 -2
- package/dist/esm/Client.mjs +115 -31
- package/dist/esm/api/client/requests/GetWorkflowsRequest.d.mts +6 -1
- package/dist/esm/api/client/requests/RunSdkActionRequest.d.mts +22 -0
- package/dist/esm/api/client/requests/RunSdkActionRequest.mjs +2 -0
- package/dist/esm/api/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/index.d.mts +2 -0
- package/dist/esm/api/resources/index.mjs +2 -0
- package/dist/esm/api/resources/scripts/client/Client.mjs +1 -1
- package/dist/esm/api/resources/workflows/client/Client.d.mts +108 -0
- package/dist/esm/api/resources/workflows/client/Client.mjs +428 -0
- package/dist/esm/api/resources/workflows/client/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/client/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/client/requests/DeleteFolderV1FoldersFolderIdDeleteRequest.d.mts +10 -0
- package/dist/esm/api/resources/workflows/client/requests/DeleteFolderV1FoldersFolderIdDeleteRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/FolderCreate.d.mts +12 -0
- package/dist/esm/api/resources/workflows/client/requests/FolderCreate.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/FolderUpdate.d.mts +10 -0
- package/dist/esm/api/resources/workflows/client/requests/FolderUpdate.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/GetFoldersV1FoldersGetRequest.d.mts +16 -0
- package/dist/esm/api/resources/workflows/client/requests/GetFoldersV1FoldersGetRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/UpdateWorkflowFolderRequest.d.mts +8 -0
- package/dist/esm/api/resources/workflows/client/requests/UpdateWorkflowFolderRequest.mjs +2 -0
- package/dist/esm/api/resources/workflows/client/requests/index.d.mts +5 -0
- package/dist/esm/api/resources/workflows/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/workflows/index.d.mts +1 -0
- package/dist/esm/api/resources/workflows/index.mjs +1 -0
- package/dist/esm/api/types/ActAction.d.mts +15 -0
- package/dist/esm/api/types/ActAction.mjs +2 -0
- package/dist/esm/api/types/Action.d.mts +1 -0
- package/dist/esm/api/types/ClickAction.d.mts +19 -0
- package/dist/esm/api/types/ClickAction.mjs +2 -0
- package/dist/esm/api/types/ClickContext.d.mts +4 -0
- package/dist/esm/api/types/ClickContext.mjs +2 -0
- package/dist/esm/api/types/ExtractAction.d.mts +25 -0
- package/dist/esm/api/types/ExtractAction.mjs +2 -0
- package/dist/esm/api/types/Folder.d.mts +15 -0
- package/dist/esm/api/types/Folder.mjs +2 -0
- package/dist/esm/api/types/InputTextAction.d.mts +25 -0
- package/dist/esm/api/types/InputTextAction.mjs +2 -0
- package/dist/esm/api/types/RunSdkActionRequestAction.d.mts +22 -0
- package/dist/esm/api/types/RunSdkActionRequestAction.mjs +2 -0
- package/dist/esm/api/types/RunSdkActionResponse.d.mts +9 -0
- package/dist/esm/api/types/RunSdkActionResponse.mjs +2 -0
- package/dist/esm/api/types/SelectOptionAction.d.mts +21 -0
- package/dist/esm/api/types/SelectOptionAction.mjs +2 -0
- package/dist/esm/api/types/Workflow.d.mts +2 -0
- package/dist/esm/api/types/WorkflowStatus.d.mts +2 -0
- package/dist/esm/api/types/WorkflowStatus.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +9 -0
- package/dist/esm/api/types/index.mjs +9 -0
- package/dist/esm/environments.d.mts +3 -3
- package/dist/esm/environments.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +6 -2
- package/reference.md +414 -11
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { DeleteFolderV1FoldersFolderIdDeleteRequest } from "./DeleteFolderV1FoldersFolderIdDeleteRequest.js";
|
|
2
|
+
export type { FolderCreate } from "./FolderCreate.js";
|
|
3
|
+
export type { FolderUpdate } from "./FolderUpdate.js";
|
|
4
|
+
export type { GetFoldersV1FoldersGetRequest } from "./GetFoldersV1FoldersGetRequest.js";
|
|
5
|
+
export type { UpdateWorkflowFolderRequest } from "./UpdateWorkflowFolderRequest.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AI act action parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface ActAction {
|
|
5
|
+
/** Natural language prompt for the action */
|
|
6
|
+
intention?: string;
|
|
7
|
+
/** Additional context data */
|
|
8
|
+
data?: ActAction.Data;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace ActAction {
|
|
11
|
+
/**
|
|
12
|
+
* Additional context data
|
|
13
|
+
*/
|
|
14
|
+
type Data = string | Record<string, unknown>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Click action parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface ClickAction {
|
|
5
|
+
/** CSS selector for the element */
|
|
6
|
+
selector?: string;
|
|
7
|
+
/** The intention or goal of the click */
|
|
8
|
+
intention?: string;
|
|
9
|
+
/** Additional context data */
|
|
10
|
+
data?: ClickAction.Data;
|
|
11
|
+
/** Timeout in milliseconds */
|
|
12
|
+
timeout?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace ClickAction {
|
|
15
|
+
/**
|
|
16
|
+
* Additional context data
|
|
17
|
+
*/
|
|
18
|
+
type Data = string | Record<string, unknown>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Extract data action parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface ExtractAction {
|
|
5
|
+
/** Extraction prompt */
|
|
6
|
+
prompt?: string;
|
|
7
|
+
/** Schema for extraction */
|
|
8
|
+
extract_schema?: ExtractAction.ExtractSchema;
|
|
9
|
+
/** Error code mapping for extraction */
|
|
10
|
+
error_code_mapping?: Record<string, string | undefined>;
|
|
11
|
+
/** The intention or goal of the extraction */
|
|
12
|
+
intention?: string;
|
|
13
|
+
/** Additional context data */
|
|
14
|
+
data?: ExtractAction.Data;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace ExtractAction {
|
|
17
|
+
/**
|
|
18
|
+
* Schema for extraction
|
|
19
|
+
*/
|
|
20
|
+
type ExtractSchema = Record<string, unknown> | unknown[] | string;
|
|
21
|
+
/**
|
|
22
|
+
* Additional context data
|
|
23
|
+
*/
|
|
24
|
+
type Data = string | Record<string, unknown>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response model for a folder
|
|
3
|
+
*/
|
|
4
|
+
export interface Folder {
|
|
5
|
+
/** Folder title */
|
|
6
|
+
title: string;
|
|
7
|
+
/** Folder description */
|
|
8
|
+
description?: string;
|
|
9
|
+
folder_id: string;
|
|
10
|
+
organization_id: string;
|
|
11
|
+
/** Number of workflows in this folder */
|
|
12
|
+
workflow_count?: number;
|
|
13
|
+
created_at: string;
|
|
14
|
+
modified_at: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Input text action parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface InputTextAction {
|
|
5
|
+
/** CSS selector for the element */
|
|
6
|
+
selector?: string;
|
|
7
|
+
/** Value to input */
|
|
8
|
+
value?: string;
|
|
9
|
+
/** The intention or goal of the input */
|
|
10
|
+
intention?: string;
|
|
11
|
+
/** Additional context data */
|
|
12
|
+
data?: InputTextAction.Data;
|
|
13
|
+
/** TOTP identifier for input_text actions */
|
|
14
|
+
totp_identifier?: string;
|
|
15
|
+
/** TOTP URL for input_text actions */
|
|
16
|
+
totp_url?: string;
|
|
17
|
+
/** Timeout in milliseconds */
|
|
18
|
+
timeout?: number;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace InputTextAction {
|
|
21
|
+
/**
|
|
22
|
+
* Additional context data
|
|
23
|
+
*/
|
|
24
|
+
type Data = string | Record<string, unknown>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Skyvern from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The action to execute with its specific parameters
|
|
4
|
+
*/
|
|
5
|
+
export type RunSdkActionRequestAction = Skyvern.RunSdkActionRequestAction.AiAct | Skyvern.RunSdkActionRequestAction.AiClick | Skyvern.RunSdkActionRequestAction.AiInputText | Skyvern.RunSdkActionRequestAction.AiSelectOption | Skyvern.RunSdkActionRequestAction.Extract;
|
|
6
|
+
export declare namespace RunSdkActionRequestAction {
|
|
7
|
+
interface AiAct extends Skyvern.ActAction {
|
|
8
|
+
type: "ai_act";
|
|
9
|
+
}
|
|
10
|
+
interface AiClick extends Skyvern.ClickAction {
|
|
11
|
+
type: "ai_click";
|
|
12
|
+
}
|
|
13
|
+
interface AiInputText extends Skyvern.InputTextAction {
|
|
14
|
+
type: "ai_input_text";
|
|
15
|
+
}
|
|
16
|
+
interface AiSelectOption extends Skyvern.SelectOptionAction {
|
|
17
|
+
type: "ai_select_option";
|
|
18
|
+
}
|
|
19
|
+
interface Extract extends Skyvern.ExtractAction {
|
|
20
|
+
type: "extract";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response from running an SDK action.
|
|
3
|
+
*/
|
|
4
|
+
export interface RunSdkActionResponse {
|
|
5
|
+
/** The workflow run ID used for this action */
|
|
6
|
+
workflow_run_id: string;
|
|
7
|
+
/** The result from the action (e.g., selector, value, extracted data) */
|
|
8
|
+
result?: unknown;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Select option action parameters.
|
|
3
|
+
*/
|
|
4
|
+
export interface SelectOptionAction {
|
|
5
|
+
/** CSS selector for the element */
|
|
6
|
+
selector?: string;
|
|
7
|
+
/** Value to select */
|
|
8
|
+
value?: string;
|
|
9
|
+
/** The intention or goal of the selection */
|
|
10
|
+
intention?: string;
|
|
11
|
+
/** Additional context data */
|
|
12
|
+
data?: SelectOptionAction.Data;
|
|
13
|
+
/** Timeout in milliseconds */
|
|
14
|
+
timeout?: number;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace SelectOptionAction {
|
|
17
|
+
/**
|
|
18
|
+
* Additional context data
|
|
19
|
+
*/
|
|
20
|
+
type Data = string | Record<string, unknown>;
|
|
21
|
+
}
|
|
@@ -2,5 +2,7 @@ export declare const WorkflowStatus: {
|
|
|
2
2
|
readonly Published: "published";
|
|
3
3
|
readonly Draft: "draft";
|
|
4
4
|
readonly AutoGenerated: "auto_generated";
|
|
5
|
+
readonly Importing: "importing";
|
|
6
|
+
readonly ImportFailed: "import_failed";
|
|
5
7
|
};
|
|
6
8
|
export type WorkflowStatus = (typeof WorkflowStatus)[keyof typeof WorkflowStatus];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "./ActAction.js";
|
|
1
2
|
export * from "./Action.js";
|
|
2
3
|
export * from "./ActionBlock.js";
|
|
3
4
|
export * from "./ActionBlockParametersItem.js";
|
|
@@ -19,6 +20,8 @@ export * from "./BitwardenSensitiveInformationParameter.js";
|
|
|
19
20
|
export * from "./BitwardenSensitiveInformationParameterYaml.js";
|
|
20
21
|
export * from "./BlockType.js";
|
|
21
22
|
export * from "./BrowserSessionResponse.js";
|
|
23
|
+
export * from "./ClickAction.js";
|
|
24
|
+
export * from "./ClickContext.js";
|
|
22
25
|
export * from "./CodeBlock.js";
|
|
23
26
|
export * from "./CodeBlockParametersItem.js";
|
|
24
27
|
export * from "./CodeBlockYaml.js";
|
|
@@ -33,6 +36,7 @@ export * from "./CredentialTypeOutput.js";
|
|
|
33
36
|
export * from "./CreditCardCredentialResponse.js";
|
|
34
37
|
export * from "./DownloadToS3Block.js";
|
|
35
38
|
export * from "./DownloadToS3BlockYaml.js";
|
|
39
|
+
export * from "./ExtractAction.js";
|
|
36
40
|
export * from "./ExtractionBlock.js";
|
|
37
41
|
export * from "./ExtractionBlockParametersItem.js";
|
|
38
42
|
export * from "./ExtractionBlockYaml.js";
|
|
@@ -48,6 +52,7 @@ export * from "./FileStorageType.js";
|
|
|
48
52
|
export * from "./FileType.js";
|
|
49
53
|
export * from "./FileUploadBlock.js";
|
|
50
54
|
export * from "./FileUploadBlockYaml.js";
|
|
55
|
+
export * from "./Folder.js";
|
|
51
56
|
export * from "./ForLoopBlock.js";
|
|
52
57
|
export * from "./ForLoopBlockLoopBlocksItem.js";
|
|
53
58
|
export * from "./ForLoopBlockLoopOver.js";
|
|
@@ -62,6 +67,7 @@ export * from "./HumanInteractionBlock.js";
|
|
|
62
67
|
export * from "./HumanInteractionBlockParametersItem.js";
|
|
63
68
|
export * from "./HumanInteractionBlockYaml.js";
|
|
64
69
|
export * from "./InputOrSelectContext.js";
|
|
70
|
+
export * from "./InputTextAction.js";
|
|
65
71
|
export * from "./LoginBlock.js";
|
|
66
72
|
export * from "./LoginBlockParametersItem.js";
|
|
67
73
|
export * from "./LoginBlockYaml.js";
|
|
@@ -80,11 +86,14 @@ export * from "./PdfParserBlock.js";
|
|
|
80
86
|
export * from "./PdfParserBlockYaml.js";
|
|
81
87
|
export * from "./ProxyLocation.js";
|
|
82
88
|
export * from "./RunEngine.js";
|
|
89
|
+
export * from "./RunSdkActionRequestAction.js";
|
|
90
|
+
export * from "./RunSdkActionResponse.js";
|
|
83
91
|
export * from "./RunStatus.js";
|
|
84
92
|
export * from "./Script.js";
|
|
85
93
|
export * from "./ScriptFileCreate.js";
|
|
86
94
|
export * from "./ScriptRunResponse.js";
|
|
87
95
|
export * from "./SelectOption.js";
|
|
96
|
+
export * from "./SelectOptionAction.js";
|
|
88
97
|
export * from "./SendEmailBlock.js";
|
|
89
98
|
export * from "./SendEmailBlockYaml.js";
|
|
90
99
|
export * from "./SkyvernForgeSdkSchemasCredentialsCredentialType.js";
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ActAction.js"), exports);
|
|
17
18
|
__exportStar(require("./Action.js"), exports);
|
|
18
19
|
__exportStar(require("./ActionBlock.js"), exports);
|
|
19
20
|
__exportStar(require("./ActionBlockParametersItem.js"), exports);
|
|
@@ -35,6 +36,8 @@ __exportStar(require("./BitwardenSensitiveInformationParameter.js"), exports);
|
|
|
35
36
|
__exportStar(require("./BitwardenSensitiveInformationParameterYaml.js"), exports);
|
|
36
37
|
__exportStar(require("./BlockType.js"), exports);
|
|
37
38
|
__exportStar(require("./BrowserSessionResponse.js"), exports);
|
|
39
|
+
__exportStar(require("./ClickAction.js"), exports);
|
|
40
|
+
__exportStar(require("./ClickContext.js"), exports);
|
|
38
41
|
__exportStar(require("./CodeBlock.js"), exports);
|
|
39
42
|
__exportStar(require("./CodeBlockParametersItem.js"), exports);
|
|
40
43
|
__exportStar(require("./CodeBlockYaml.js"), exports);
|
|
@@ -49,6 +52,7 @@ __exportStar(require("./CredentialTypeOutput.js"), exports);
|
|
|
49
52
|
__exportStar(require("./CreditCardCredentialResponse.js"), exports);
|
|
50
53
|
__exportStar(require("./DownloadToS3Block.js"), exports);
|
|
51
54
|
__exportStar(require("./DownloadToS3BlockYaml.js"), exports);
|
|
55
|
+
__exportStar(require("./ExtractAction.js"), exports);
|
|
52
56
|
__exportStar(require("./ExtractionBlock.js"), exports);
|
|
53
57
|
__exportStar(require("./ExtractionBlockParametersItem.js"), exports);
|
|
54
58
|
__exportStar(require("./ExtractionBlockYaml.js"), exports);
|
|
@@ -64,6 +68,7 @@ __exportStar(require("./FileStorageType.js"), exports);
|
|
|
64
68
|
__exportStar(require("./FileType.js"), exports);
|
|
65
69
|
__exportStar(require("./FileUploadBlock.js"), exports);
|
|
66
70
|
__exportStar(require("./FileUploadBlockYaml.js"), exports);
|
|
71
|
+
__exportStar(require("./Folder.js"), exports);
|
|
67
72
|
__exportStar(require("./ForLoopBlock.js"), exports);
|
|
68
73
|
__exportStar(require("./ForLoopBlockLoopBlocksItem.js"), exports);
|
|
69
74
|
__exportStar(require("./ForLoopBlockLoopOver.js"), exports);
|
|
@@ -78,6 +83,7 @@ __exportStar(require("./HumanInteractionBlock.js"), exports);
|
|
|
78
83
|
__exportStar(require("./HumanInteractionBlockParametersItem.js"), exports);
|
|
79
84
|
__exportStar(require("./HumanInteractionBlockYaml.js"), exports);
|
|
80
85
|
__exportStar(require("./InputOrSelectContext.js"), exports);
|
|
86
|
+
__exportStar(require("./InputTextAction.js"), exports);
|
|
81
87
|
__exportStar(require("./LoginBlock.js"), exports);
|
|
82
88
|
__exportStar(require("./LoginBlockParametersItem.js"), exports);
|
|
83
89
|
__exportStar(require("./LoginBlockYaml.js"), exports);
|
|
@@ -96,11 +102,14 @@ __exportStar(require("./PdfParserBlock.js"), exports);
|
|
|
96
102
|
__exportStar(require("./PdfParserBlockYaml.js"), exports);
|
|
97
103
|
__exportStar(require("./ProxyLocation.js"), exports);
|
|
98
104
|
__exportStar(require("./RunEngine.js"), exports);
|
|
105
|
+
__exportStar(require("./RunSdkActionRequestAction.js"), exports);
|
|
106
|
+
__exportStar(require("./RunSdkActionResponse.js"), exports);
|
|
99
107
|
__exportStar(require("./RunStatus.js"), exports);
|
|
100
108
|
__exportStar(require("./Script.js"), exports);
|
|
101
109
|
__exportStar(require("./ScriptFileCreate.js"), exports);
|
|
102
110
|
__exportStar(require("./ScriptRunResponse.js"), exports);
|
|
103
111
|
__exportStar(require("./SelectOption.js"), exports);
|
|
112
|
+
__exportStar(require("./SelectOptionAction.js"), exports);
|
|
104
113
|
__exportStar(require("./SendEmailBlock.js"), exports);
|
|
105
114
|
__exportStar(require("./SendEmailBlockYaml.js"), exports);
|
|
106
115
|
__exportStar(require("./SkyvernForgeSdkSchemasCredentialsCredentialType.js"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const SkyvernEnvironment: {
|
|
2
|
-
readonly
|
|
2
|
+
readonly Cloud: "https://api.skyvern.com";
|
|
3
3
|
readonly Staging: "https://api-staging.skyvern.com";
|
|
4
|
-
readonly
|
|
4
|
+
readonly Local: "http://localhost:8000";
|
|
5
5
|
};
|
|
6
|
-
export type SkyvernEnvironment = typeof SkyvernEnvironment.
|
|
6
|
+
export type SkyvernEnvironment = typeof SkyvernEnvironment.Cloud | typeof SkyvernEnvironment.Staging | typeof SkyvernEnvironment.Local;
|
package/dist/cjs/environments.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.SkyvernEnvironment = void 0;
|
|
5
5
|
exports.SkyvernEnvironment = {
|
|
6
|
-
|
|
6
|
+
Cloud: "https://api.skyvern.com",
|
|
7
7
|
Staging: "https://api-staging.skyvern.com",
|
|
8
|
-
|
|
8
|
+
Local: "http://localhost:8000",
|
|
9
9
|
};
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.2.
|
|
1
|
+
export declare const SDK_VERSION = "0.2.22";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as Skyvern from "./api/index.mjs";
|
|
2
2
|
import { Scripts } from "./api/resources/scripts/client/Client.mjs";
|
|
3
|
+
import { Workflows } from "./api/resources/workflows/client/Client.mjs";
|
|
3
4
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.mjs";
|
|
4
5
|
import * as core from "./core/index.mjs";
|
|
5
6
|
export declare namespace SkyvernClient {
|
|
@@ -10,8 +11,10 @@ export declare namespace SkyvernClient {
|
|
|
10
11
|
}
|
|
11
12
|
export declare class SkyvernClient {
|
|
12
13
|
protected readonly _options: SkyvernClient.Options;
|
|
14
|
+
protected _workflows: Workflows | undefined;
|
|
13
15
|
protected _scripts: Scripts | undefined;
|
|
14
16
|
constructor(_options?: SkyvernClient.Options);
|
|
17
|
+
get workflows(): Workflows;
|
|
15
18
|
get scripts(): Scripts;
|
|
16
19
|
/**
|
|
17
20
|
* Run a task
|
|
@@ -84,8 +87,8 @@ export declare class SkyvernClient {
|
|
|
84
87
|
* Get all workflows with the latest version for the organization.
|
|
85
88
|
*
|
|
86
89
|
* Search semantics:
|
|
87
|
-
* - If `search_key` is provided, its value is used as a unified search term for
|
|
88
|
-
* `workflows.title` and workflow parameter metadata (key, description, and default_value for
|
|
90
|
+
* - If `search_key` is provided, its value is used as a unified search term for
|
|
91
|
+
* `workflows.title`, `folders.title`, and workflow parameter metadata (key, description, and default_value for
|
|
89
92
|
* `WorkflowParameterModel`).
|
|
90
93
|
* - Falls back to deprecated `title` (title-only search) if `search_key` is not provided.
|
|
91
94
|
* - Parameter metadata search excludes soft-deleted parameter rows across all parameter tables.
|
|
@@ -103,6 +106,7 @@ export declare class SkyvernClient {
|
|
|
103
106
|
* only_workflows: true,
|
|
104
107
|
* search_key: "search_key",
|
|
105
108
|
* title: "title",
|
|
109
|
+
* folder_id: "folder_id",
|
|
106
110
|
* template: true
|
|
107
111
|
* })
|
|
108
112
|
*/
|
|
@@ -415,4 +419,22 @@ export declare class SkyvernClient {
|
|
|
415
419
|
*/
|
|
416
420
|
deployScript(scriptId: string, request: Skyvern.DeployScriptRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.CreateScriptResponse>;
|
|
417
421
|
private __deployScript;
|
|
422
|
+
/**
|
|
423
|
+
* Execute a single SDK action with the specified parameters
|
|
424
|
+
*
|
|
425
|
+
* @param {Skyvern.RunSdkActionRequest} request
|
|
426
|
+
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
427
|
+
*
|
|
428
|
+
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
429
|
+
*
|
|
430
|
+
* @example
|
|
431
|
+
* await client.runSdkAction({
|
|
432
|
+
* url: "url",
|
|
433
|
+
* action: {
|
|
434
|
+
* type: "ai_act"
|
|
435
|
+
* }
|
|
436
|
+
* })
|
|
437
|
+
*/
|
|
438
|
+
runSdkAction(request: Skyvern.RunSdkActionRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.RunSdkActionResponse>;
|
|
439
|
+
private __runSdkAction;
|
|
418
440
|
}
|