@skyvern/client 0.2.21 → 0.2.23
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 +33 -5
- package/dist/cjs/Client.js +134 -37
- package/dist/cjs/api/client/requests/CreateWorkflowRequest.d.ts +13 -0
- package/dist/cjs/api/client/requests/CreateWorkflowRequest.js +3 -0
- 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 +2 -0
- package/dist/cjs/api/resources/browserProfiles/client/Client.d.ts +69 -0
- package/dist/cjs/api/resources/browserProfiles/client/Client.js +309 -0
- package/dist/cjs/api/resources/browserProfiles/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/browserProfiles/client/index.js +17 -0
- package/dist/cjs/api/resources/browserProfiles/client/requests/CreateBrowserProfileRequest.d.ts +16 -0
- package/dist/cjs/api/resources/browserProfiles/client/requests/CreateBrowserProfileRequest.js +3 -0
- package/dist/cjs/api/resources/browserProfiles/client/requests/ListBrowserProfilesV1BrowserProfilesGetRequest.d.ts +10 -0
- package/dist/cjs/api/resources/browserProfiles/client/requests/ListBrowserProfilesV1BrowserProfilesGetRequest.js +3 -0
- package/dist/cjs/api/resources/browserProfiles/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/browserProfiles/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/browserProfiles/index.d.ts +1 -0
- package/dist/cjs/api/resources/browserProfiles/index.js +17 -0
- package/dist/cjs/api/resources/index.d.ts +4 -0
- package/dist/cjs/api/resources/index.js +8 -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/BrowserProfile.d.ts +9 -0
- package/dist/cjs/api/types/BrowserProfile.js +3 -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/InputOrSelectContext.d.ts +1 -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 +25 -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/TaskRunResponse.d.ts +2 -0
- package/dist/cjs/api/types/UploadFileAction.d.ts +21 -0
- package/dist/cjs/api/types/UploadFileAction.js +3 -0
- package/dist/cjs/api/types/Workflow.d.ts +2 -0
- package/dist/cjs/api/types/WorkflowCreateYamlRequest.d.ts +1 -0
- package/dist/cjs/api/types/WorkflowRunRequest.d.ts +2 -0
- package/dist/cjs/api/types/WorkflowRunResponse.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 +11 -0
- package/dist/cjs/api/types/index.js +11 -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 +33 -5
- package/dist/esm/Client.mjs +132 -35
- package/dist/esm/api/client/requests/CreateWorkflowRequest.d.mts +13 -0
- package/dist/esm/api/client/requests/CreateWorkflowRequest.mjs +2 -0
- 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 +2 -0
- package/dist/esm/api/resources/browserProfiles/client/Client.d.mts +69 -0
- package/dist/esm/api/resources/browserProfiles/client/Client.mjs +272 -0
- package/dist/esm/api/resources/browserProfiles/client/index.d.mts +1 -0
- package/dist/esm/api/resources/browserProfiles/client/index.mjs +1 -0
- package/dist/esm/api/resources/browserProfiles/client/requests/CreateBrowserProfileRequest.d.mts +16 -0
- package/dist/esm/api/resources/browserProfiles/client/requests/CreateBrowserProfileRequest.mjs +2 -0
- package/dist/esm/api/resources/browserProfiles/client/requests/ListBrowserProfilesV1BrowserProfilesGetRequest.d.mts +10 -0
- package/dist/esm/api/resources/browserProfiles/client/requests/ListBrowserProfilesV1BrowserProfilesGetRequest.mjs +2 -0
- package/dist/esm/api/resources/browserProfiles/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/browserProfiles/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/browserProfiles/index.d.mts +1 -0
- package/dist/esm/api/resources/browserProfiles/index.mjs +1 -0
- package/dist/esm/api/resources/index.d.mts +4 -0
- package/dist/esm/api/resources/index.mjs +4 -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/BrowserProfile.d.mts +9 -0
- package/dist/esm/api/types/BrowserProfile.mjs +2 -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/InputOrSelectContext.d.mts +1 -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 +25 -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/TaskRunResponse.d.mts +2 -0
- package/dist/esm/api/types/UploadFileAction.d.mts +21 -0
- package/dist/esm/api/types/UploadFileAction.mjs +2 -0
- package/dist/esm/api/types/Workflow.d.mts +2 -0
- package/dist/esm/api/types/WorkflowCreateYamlRequest.d.mts +1 -0
- package/dist/esm/api/types/WorkflowRunRequest.d.mts +2 -0
- package/dist/esm/api/types/WorkflowRunResponse.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 +11 -0
- package/dist/esm/api/types/index.mjs +11 -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 +12 -3
- package/reference.md +657 -11
package/README.md
CHANGED
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as Skyvern from "./api/index.js";
|
|
2
|
+
import { BrowserProfiles } from "./api/resources/browserProfiles/client/Client.js";
|
|
2
3
|
import { Scripts } from "./api/resources/scripts/client/Client.js";
|
|
4
|
+
import { Workflows } from "./api/resources/workflows/client/Client.js";
|
|
3
5
|
import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
|
|
4
6
|
import * as core from "./core/index.js";
|
|
5
7
|
export declare namespace SkyvernClient {
|
|
@@ -10,8 +12,12 @@ export declare namespace SkyvernClient {
|
|
|
10
12
|
}
|
|
11
13
|
export declare class SkyvernClient {
|
|
12
14
|
protected readonly _options: SkyvernClient.Options;
|
|
15
|
+
protected _workflows: Workflows | undefined;
|
|
16
|
+
protected _browserProfiles: BrowserProfiles | undefined;
|
|
13
17
|
protected _scripts: Scripts | undefined;
|
|
14
18
|
constructor(_options?: SkyvernClient.Options);
|
|
19
|
+
get workflows(): Workflows;
|
|
20
|
+
get browserProfiles(): BrowserProfiles;
|
|
15
21
|
get scripts(): Scripts;
|
|
16
22
|
/**
|
|
17
23
|
* Run a task
|
|
@@ -84,8 +90,8 @@ export declare class SkyvernClient {
|
|
|
84
90
|
* Get all workflows with the latest version for the organization.
|
|
85
91
|
*
|
|
86
92
|
* 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
|
|
93
|
+
* - If `search_key` is provided, its value is used as a unified search term for
|
|
94
|
+
* `workflows.title`, `folders.title`, and workflow parameter metadata (key, description, and default_value for
|
|
89
95
|
* `WorkflowParameterModel`).
|
|
90
96
|
* - Falls back to deprecated `title` (title-only search) if `search_key` is not provided.
|
|
91
97
|
* - Parameter metadata search excludes soft-deleted parameter rows across all parameter tables.
|
|
@@ -103,6 +109,7 @@ export declare class SkyvernClient {
|
|
|
103
109
|
* only_workflows: true,
|
|
104
110
|
* search_key: "search_key",
|
|
105
111
|
* title: "title",
|
|
112
|
+
* folder_id: "folder_id",
|
|
106
113
|
* template: true
|
|
107
114
|
* })
|
|
108
115
|
*/
|
|
@@ -111,15 +118,18 @@ export declare class SkyvernClient {
|
|
|
111
118
|
/**
|
|
112
119
|
* Create a new workflow
|
|
113
120
|
*
|
|
114
|
-
* @param {Skyvern.
|
|
121
|
+
* @param {Skyvern.CreateWorkflowRequest} request
|
|
115
122
|
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
116
123
|
*
|
|
117
124
|
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
118
125
|
*
|
|
119
126
|
* @example
|
|
120
|
-
* await client.createWorkflow({
|
|
127
|
+
* await client.createWorkflow({
|
|
128
|
+
* folder_id: "folder_id",
|
|
129
|
+
* body: {}
|
|
130
|
+
* })
|
|
121
131
|
*/
|
|
122
|
-
createWorkflow(request: Skyvern.
|
|
132
|
+
createWorkflow(request: Skyvern.CreateWorkflowRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.Workflow>;
|
|
123
133
|
private __createWorkflow;
|
|
124
134
|
/**
|
|
125
135
|
* Update a workflow
|
|
@@ -415,4 +425,22 @@ export declare class SkyvernClient {
|
|
|
415
425
|
*/
|
|
416
426
|
deployScript(scriptId: string, request: Skyvern.DeployScriptRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.CreateScriptResponse>;
|
|
417
427
|
private __deployScript;
|
|
428
|
+
/**
|
|
429
|
+
* Execute a single SDK action with the specified parameters
|
|
430
|
+
*
|
|
431
|
+
* @param {Skyvern.RunSdkActionRequest} request
|
|
432
|
+
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
433
|
+
*
|
|
434
|
+
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
435
|
+
*
|
|
436
|
+
* @example
|
|
437
|
+
* await client.runSdkAction({
|
|
438
|
+
* url: "url",
|
|
439
|
+
* action: {
|
|
440
|
+
* type: "ai_act"
|
|
441
|
+
* }
|
|
442
|
+
* })
|
|
443
|
+
*/
|
|
444
|
+
runSdkAction(request: Skyvern.RunSdkActionRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.RunSdkActionResponse>;
|
|
445
|
+
private __runSdkAction;
|
|
418
446
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -45,7 +45,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
45
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
46
|
exports.SkyvernClient = void 0;
|
|
47
47
|
const Skyvern = __importStar(require("./api/index.js"));
|
|
48
|
-
const Client_js_1 = require("./api/resources/
|
|
48
|
+
const Client_js_1 = require("./api/resources/browserProfiles/client/Client.js");
|
|
49
|
+
const Client_js_2 = require("./api/resources/scripts/client/Client.js");
|
|
50
|
+
const Client_js_3 = require("./api/resources/workflows/client/Client.js");
|
|
49
51
|
const headers_js_1 = require("./core/headers.js");
|
|
50
52
|
const core = __importStar(require("./core/index.js"));
|
|
51
53
|
const environments = __importStar(require("./environments.js"));
|
|
@@ -56,15 +58,23 @@ class SkyvernClient {
|
|
|
56
58
|
"x-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
|
|
57
59
|
"X-Fern-Language": "JavaScript",
|
|
58
60
|
"X-Fern-SDK-Name": "@skyvern/client",
|
|
59
|
-
"X-Fern-SDK-Version": "0.2.
|
|
60
|
-
"User-Agent": "@skyvern/client/0.2.
|
|
61
|
+
"X-Fern-SDK-Version": "0.2.23",
|
|
62
|
+
"User-Agent": "@skyvern/client/0.2.23",
|
|
61
63
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
62
64
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
63
65
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
64
66
|
}
|
|
67
|
+
get workflows() {
|
|
68
|
+
var _a;
|
|
69
|
+
return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_js_3.Workflows(this._options)));
|
|
70
|
+
}
|
|
71
|
+
get browserProfiles() {
|
|
72
|
+
var _a;
|
|
73
|
+
return ((_a = this._browserProfiles) !== null && _a !== void 0 ? _a : (this._browserProfiles = new Client_js_1.BrowserProfiles(this._options)));
|
|
74
|
+
}
|
|
65
75
|
get scripts() {
|
|
66
76
|
var _a;
|
|
67
|
-
return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new
|
|
77
|
+
return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_js_2.Scripts(this._options)));
|
|
68
78
|
}
|
|
69
79
|
/**
|
|
70
80
|
* Run a task
|
|
@@ -95,7 +105,7 @@ class SkyvernClient {
|
|
|
95
105
|
"x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey,
|
|
96
106
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
97
107
|
const _response = yield core.fetcher({
|
|
98
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
108
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/run/tasks"),
|
|
99
109
|
method: "POST",
|
|
100
110
|
headers: _headers,
|
|
101
111
|
contentType: "application/json",
|
|
@@ -176,7 +186,7 @@ class SkyvernClient {
|
|
|
176
186
|
"x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey,
|
|
177
187
|
}), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
178
188
|
const _response = yield core.fetcher({
|
|
179
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
189
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/run/workflows"),
|
|
180
190
|
method: "POST",
|
|
181
191
|
headers: _headers,
|
|
182
192
|
contentType: "application/json",
|
|
@@ -241,7 +251,7 @@ class SkyvernClient {
|
|
|
241
251
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
242
252
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
243
253
|
const _response = yield core.fetcher({
|
|
244
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
254
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/runs/${core.url.encodePathParam(runId)}`),
|
|
245
255
|
method: "GET",
|
|
246
256
|
headers: _headers,
|
|
247
257
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -302,7 +312,7 @@ class SkyvernClient {
|
|
|
302
312
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
303
313
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
304
314
|
const _response = yield core.fetcher({
|
|
305
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
315
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/runs/${core.url.encodePathParam(runId)}/cancel`),
|
|
306
316
|
method: "POST",
|
|
307
317
|
headers: _headers,
|
|
308
318
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -346,8 +356,8 @@ class SkyvernClient {
|
|
|
346
356
|
* Get all workflows with the latest version for the organization.
|
|
347
357
|
*
|
|
348
358
|
* Search semantics:
|
|
349
|
-
* - If `search_key` is provided, its value is used as a unified search term for
|
|
350
|
-
* `workflows.title` and workflow parameter metadata (key, description, and default_value for
|
|
359
|
+
* - If `search_key` is provided, its value is used as a unified search term for
|
|
360
|
+
* `workflows.title`, `folders.title`, and workflow parameter metadata (key, description, and default_value for
|
|
351
361
|
* `WorkflowParameterModel`).
|
|
352
362
|
* - Falls back to deprecated `title` (title-only search) if `search_key` is not provided.
|
|
353
363
|
* - Parameter metadata search excludes soft-deleted parameter rows across all parameter tables.
|
|
@@ -365,6 +375,7 @@ class SkyvernClient {
|
|
|
365
375
|
* only_workflows: true,
|
|
366
376
|
* search_key: "search_key",
|
|
367
377
|
* title: "title",
|
|
378
|
+
* folder_id: "folder_id",
|
|
368
379
|
* template: true
|
|
369
380
|
* })
|
|
370
381
|
*/
|
|
@@ -374,7 +385,7 @@ class SkyvernClient {
|
|
|
374
385
|
__getWorkflows() {
|
|
375
386
|
return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
|
|
376
387
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
377
|
-
const { page, page_size: pageSize, only_saved_tasks: onlySavedTasks, only_workflows: onlyWorkflows, search_key: searchKey, title, template, } = request;
|
|
388
|
+
const { page, page_size: pageSize, only_saved_tasks: onlySavedTasks, only_workflows: onlyWorkflows, search_key: searchKey, title, folder_id: folderId, status, template, } = request;
|
|
378
389
|
const _queryParams = {};
|
|
379
390
|
if (page != null) {
|
|
380
391
|
_queryParams.page = page.toString();
|
|
@@ -394,12 +405,23 @@ class SkyvernClient {
|
|
|
394
405
|
if (title != null) {
|
|
395
406
|
_queryParams.title = title;
|
|
396
407
|
}
|
|
408
|
+
if (folderId != null) {
|
|
409
|
+
_queryParams.folder_id = folderId;
|
|
410
|
+
}
|
|
411
|
+
if (status != null) {
|
|
412
|
+
if (Array.isArray(status)) {
|
|
413
|
+
_queryParams.status = status.map((item) => item);
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
_queryParams.status = status;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
397
419
|
if (template != null) {
|
|
398
420
|
_queryParams.template = template.toString();
|
|
399
421
|
}
|
|
400
422
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
401
423
|
const _response = yield core.fetcher({
|
|
402
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
424
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/workflows"),
|
|
403
425
|
method: "GET",
|
|
404
426
|
headers: _headers,
|
|
405
427
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -442,13 +464,16 @@ class SkyvernClient {
|
|
|
442
464
|
/**
|
|
443
465
|
* Create a new workflow
|
|
444
466
|
*
|
|
445
|
-
* @param {Skyvern.
|
|
467
|
+
* @param {Skyvern.CreateWorkflowRequest} request
|
|
446
468
|
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
447
469
|
*
|
|
448
470
|
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
449
471
|
*
|
|
450
472
|
* @example
|
|
451
|
-
* await client.createWorkflow({
|
|
473
|
+
* await client.createWorkflow({
|
|
474
|
+
* folder_id: "folder_id",
|
|
475
|
+
* body: {}
|
|
476
|
+
* })
|
|
452
477
|
*/
|
|
453
478
|
createWorkflow(request, requestOptions) {
|
|
454
479
|
return core.HttpResponsePromise.fromPromise(this.__createWorkflow(request, requestOptions));
|
|
@@ -456,15 +481,20 @@ class SkyvernClient {
|
|
|
456
481
|
__createWorkflow(request, requestOptions) {
|
|
457
482
|
return __awaiter(this, void 0, void 0, function* () {
|
|
458
483
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
484
|
+
const { folder_id: folderId, body: _body } = request;
|
|
485
|
+
const _queryParams = {};
|
|
486
|
+
if (folderId != null) {
|
|
487
|
+
_queryParams.folder_id = folderId;
|
|
488
|
+
}
|
|
459
489
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
460
490
|
const _response = yield core.fetcher({
|
|
461
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
491
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/workflows"),
|
|
462
492
|
method: "POST",
|
|
463
493
|
headers: _headers,
|
|
464
494
|
contentType: "application/json",
|
|
465
|
-
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
495
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
466
496
|
requestType: "json",
|
|
467
|
-
body:
|
|
497
|
+
body: _body,
|
|
468
498
|
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
469
499
|
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
470
500
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -521,7 +551,7 @@ class SkyvernClient {
|
|
|
521
551
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
522
552
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
523
553
|
const _response = yield core.fetcher({
|
|
524
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
554
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/workflows/${core.url.encodePathParam(workflowId)}`),
|
|
525
555
|
method: "POST",
|
|
526
556
|
headers: _headers,
|
|
527
557
|
contentType: "application/json",
|
|
@@ -583,7 +613,7 @@ class SkyvernClient {
|
|
|
583
613
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
584
614
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
585
615
|
const _response = yield core.fetcher({
|
|
586
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
616
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/workflows/${core.url.encodePathParam(workflowId)}/delete`),
|
|
587
617
|
method: "POST",
|
|
588
618
|
headers: _headers,
|
|
589
619
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -643,7 +673,7 @@ class SkyvernClient {
|
|
|
643
673
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
644
674
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
645
675
|
const _response = yield core.fetcher({
|
|
646
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
676
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/artifacts/${core.url.encodePathParam(artifactId)}`),
|
|
647
677
|
method: "GET",
|
|
648
678
|
headers: _headers,
|
|
649
679
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -715,7 +745,7 @@ class SkyvernClient {
|
|
|
715
745
|
}
|
|
716
746
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
717
747
|
const _response = yield core.fetcher({
|
|
718
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
748
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/runs/${core.url.encodePathParam(runId)}/artifacts`),
|
|
719
749
|
method: "GET",
|
|
720
750
|
headers: _headers,
|
|
721
751
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -774,7 +804,7 @@ class SkyvernClient {
|
|
|
774
804
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
775
805
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
776
806
|
const _response = yield core.fetcher({
|
|
777
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
807
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/runs/${core.url.encodePathParam(runId)}/retry_webhook`),
|
|
778
808
|
method: "POST",
|
|
779
809
|
headers: _headers,
|
|
780
810
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -835,7 +865,7 @@ class SkyvernClient {
|
|
|
835
865
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
836
866
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
837
867
|
const _response = yield core.fetcher({
|
|
838
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
868
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/runs/${core.url.encodePathParam(runId)}/timeline`),
|
|
839
869
|
method: "GET",
|
|
840
870
|
headers: _headers,
|
|
841
871
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -898,7 +928,7 @@ class SkyvernClient {
|
|
|
898
928
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
899
929
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
900
930
|
const _response = yield core.fetcher({
|
|
901
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
931
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/browser_sessions"),
|
|
902
932
|
method: "GET",
|
|
903
933
|
headers: _headers,
|
|
904
934
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -960,7 +990,7 @@ class SkyvernClient {
|
|
|
960
990
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
961
991
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
962
992
|
const _response = yield core.fetcher({
|
|
963
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
993
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/browser_sessions"),
|
|
964
994
|
method: "POST",
|
|
965
995
|
headers: _headers,
|
|
966
996
|
contentType: "application/json",
|
|
@@ -1025,7 +1055,7 @@ class SkyvernClient {
|
|
|
1025
1055
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1026
1056
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1027
1057
|
const _response = yield core.fetcher({
|
|
1028
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
1058
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/browser_sessions/${core.url.encodePathParam(browserSessionId)}/close`),
|
|
1029
1059
|
method: "POST",
|
|
1030
1060
|
headers: _headers,
|
|
1031
1061
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -1088,7 +1118,7 @@ class SkyvernClient {
|
|
|
1088
1118
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1089
1119
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1090
1120
|
const _response = yield core.fetcher({
|
|
1091
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
1121
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/browser_sessions/${core.url.encodePathParam(browserSessionId)}`),
|
|
1092
1122
|
method: "GET",
|
|
1093
1123
|
headers: _headers,
|
|
1094
1124
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -1154,7 +1184,7 @@ class SkyvernClient {
|
|
|
1154
1184
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1155
1185
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1156
1186
|
const _response = yield core.fetcher({
|
|
1157
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
1187
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/credentials/totp"),
|
|
1158
1188
|
method: "POST",
|
|
1159
1189
|
headers: _headers,
|
|
1160
1190
|
contentType: "application/json",
|
|
@@ -1227,7 +1257,7 @@ class SkyvernClient {
|
|
|
1227
1257
|
}
|
|
1228
1258
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1229
1259
|
const _response = yield core.fetcher({
|
|
1230
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
1260
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/credentials"),
|
|
1231
1261
|
method: "GET",
|
|
1232
1262
|
headers: _headers,
|
|
1233
1263
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -1294,7 +1324,7 @@ class SkyvernClient {
|
|
|
1294
1324
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1295
1325
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1296
1326
|
const _response = yield core.fetcher({
|
|
1297
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
1327
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/credentials"),
|
|
1298
1328
|
method: "POST",
|
|
1299
1329
|
headers: _headers,
|
|
1300
1330
|
contentType: "application/json",
|
|
@@ -1356,7 +1386,7 @@ class SkyvernClient {
|
|
|
1356
1386
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1357
1387
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1358
1388
|
const _response = yield core.fetcher({
|
|
1359
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
1389
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/credentials/${core.url.encodePathParam(credentialId)}/delete`),
|
|
1360
1390
|
method: "POST",
|
|
1361
1391
|
headers: _headers,
|
|
1362
1392
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -1415,7 +1445,7 @@ class SkyvernClient {
|
|
|
1415
1445
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1416
1446
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1417
1447
|
const _response = yield core.fetcher({
|
|
1418
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
1448
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/credentials/${core.url.encodePathParam(credentialId)}`),
|
|
1419
1449
|
method: "GET",
|
|
1420
1450
|
headers: _headers,
|
|
1421
1451
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -1476,7 +1506,7 @@ class SkyvernClient {
|
|
|
1476
1506
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1477
1507
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1478
1508
|
const _response = yield core.fetcher({
|
|
1479
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
1509
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/run/tasks/login"),
|
|
1480
1510
|
method: "POST",
|
|
1481
1511
|
headers: _headers,
|
|
1482
1512
|
contentType: "application/json",
|
|
@@ -1549,7 +1579,7 @@ class SkyvernClient {
|
|
|
1549
1579
|
}
|
|
1550
1580
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1551
1581
|
const _response = yield core.fetcher({
|
|
1552
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
1582
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/scripts"),
|
|
1553
1583
|
method: "GET",
|
|
1554
1584
|
headers: _headers,
|
|
1555
1585
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -1608,7 +1638,7 @@ class SkyvernClient {
|
|
|
1608
1638
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1609
1639
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1610
1640
|
const _response = yield core.fetcher({
|
|
1611
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
1641
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/scripts"),
|
|
1612
1642
|
method: "POST",
|
|
1613
1643
|
headers: _headers,
|
|
1614
1644
|
contentType: "application/json",
|
|
@@ -1670,7 +1700,7 @@ class SkyvernClient {
|
|
|
1670
1700
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1671
1701
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1672
1702
|
const _response = yield core.fetcher({
|
|
1673
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
1703
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/scripts/${core.url.encodePathParam(scriptId)}`),
|
|
1674
1704
|
method: "GET",
|
|
1675
1705
|
headers: _headers,
|
|
1676
1706
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -1735,7 +1765,7 @@ class SkyvernClient {
|
|
|
1735
1765
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1736
1766
|
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1737
1767
|
const _response = yield core.fetcher({
|
|
1738
|
-
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.
|
|
1768
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, `v1/scripts/${core.url.encodePathParam(scriptId)}/deploy`),
|
|
1739
1769
|
method: "POST",
|
|
1740
1770
|
headers: _headers,
|
|
1741
1771
|
contentType: "application/json",
|
|
@@ -1778,5 +1808,72 @@ class SkyvernClient {
|
|
|
1778
1808
|
}
|
|
1779
1809
|
});
|
|
1780
1810
|
}
|
|
1811
|
+
/**
|
|
1812
|
+
* Execute a single SDK action with the specified parameters
|
|
1813
|
+
*
|
|
1814
|
+
* @param {Skyvern.RunSdkActionRequest} request
|
|
1815
|
+
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1816
|
+
*
|
|
1817
|
+
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
1818
|
+
*
|
|
1819
|
+
* @example
|
|
1820
|
+
* await client.runSdkAction({
|
|
1821
|
+
* url: "url",
|
|
1822
|
+
* action: {
|
|
1823
|
+
* type: "ai_act"
|
|
1824
|
+
* }
|
|
1825
|
+
* })
|
|
1826
|
+
*/
|
|
1827
|
+
runSdkAction(request, requestOptions) {
|
|
1828
|
+
return core.HttpResponsePromise.fromPromise(this.__runSdkAction(request, requestOptions));
|
|
1829
|
+
}
|
|
1830
|
+
__runSdkAction(request, requestOptions) {
|
|
1831
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1832
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1833
|
+
const _headers = (0, headers_js_1.mergeHeaders)((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ "x-api-key": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.apiKey) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.apiKey }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1834
|
+
const _response = yield core.fetcher({
|
|
1835
|
+
url: core.url.join((_e = (_d = (yield core.Supplier.get(this._options.baseUrl))) !== null && _d !== void 0 ? _d : (yield core.Supplier.get(this._options.environment))) !== null && _e !== void 0 ? _e : environments.SkyvernEnvironment.Cloud, "v1/sdk/run_action"),
|
|
1836
|
+
method: "POST",
|
|
1837
|
+
headers: _headers,
|
|
1838
|
+
contentType: "application/json",
|
|
1839
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1840
|
+
requestType: "json",
|
|
1841
|
+
body: request,
|
|
1842
|
+
timeoutMs: ((_h = (_f = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _f !== void 0 ? _f : (_g = this._options) === null || _g === void 0 ? void 0 : _g.timeoutInSeconds) !== null && _h !== void 0 ? _h : 60) * 1000,
|
|
1843
|
+
maxRetries: (_j = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _j !== void 0 ? _j : (_k = this._options) === null || _k === void 0 ? void 0 : _k.maxRetries,
|
|
1844
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1845
|
+
});
|
|
1846
|
+
if (_response.ok) {
|
|
1847
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1848
|
+
}
|
|
1849
|
+
if (_response.error.reason === "status-code") {
|
|
1850
|
+
switch (_response.error.statusCode) {
|
|
1851
|
+
case 422:
|
|
1852
|
+
throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
1853
|
+
default:
|
|
1854
|
+
throw new errors.SkyvernError({
|
|
1855
|
+
statusCode: _response.error.statusCode,
|
|
1856
|
+
body: _response.error.body,
|
|
1857
|
+
rawResponse: _response.rawResponse,
|
|
1858
|
+
});
|
|
1859
|
+
}
|
|
1860
|
+
}
|
|
1861
|
+
switch (_response.error.reason) {
|
|
1862
|
+
case "non-json":
|
|
1863
|
+
throw new errors.SkyvernError({
|
|
1864
|
+
statusCode: _response.error.statusCode,
|
|
1865
|
+
body: _response.error.rawBody,
|
|
1866
|
+
rawResponse: _response.rawResponse,
|
|
1867
|
+
});
|
|
1868
|
+
case "timeout":
|
|
1869
|
+
throw new errors.SkyvernTimeoutError("Timeout exceeded when calling POST /v1/sdk/run_action.");
|
|
1870
|
+
case "unknown":
|
|
1871
|
+
throw new errors.SkyvernError({
|
|
1872
|
+
message: _response.error.errorMessage,
|
|
1873
|
+
rawResponse: _response.rawResponse,
|
|
1874
|
+
});
|
|
1875
|
+
}
|
|
1876
|
+
});
|
|
1877
|
+
}
|
|
1781
1878
|
}
|
|
1782
1879
|
exports.SkyvernClient = SkyvernClient;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Skyvern from "../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* folder_id: "folder_id",
|
|
6
|
+
* body: {}
|
|
7
|
+
* }
|
|
8
|
+
*/
|
|
9
|
+
export interface CreateWorkflowRequest {
|
|
10
|
+
/** Optional folder ID to assign the workflow to */
|
|
11
|
+
folder_id?: string;
|
|
12
|
+
body: Skyvern.WorkflowRequest;
|
|
13
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Skyvern from "../../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
@@ -7,6 +8,7 @@
|
|
|
7
8
|
* only_workflows: true,
|
|
8
9
|
* search_key: "search_key",
|
|
9
10
|
* title: "title",
|
|
11
|
+
* folder_id: "folder_id",
|
|
10
12
|
* template: true
|
|
11
13
|
* }
|
|
12
14
|
*/
|
|
@@ -15,9 +17,12 @@ export interface GetWorkflowsRequest {
|
|
|
15
17
|
page_size?: number;
|
|
16
18
|
only_saved_tasks?: boolean;
|
|
17
19
|
only_workflows?: boolean;
|
|
18
|
-
/** Unified search across workflow title and parameter metadata (key, description, default_value). */
|
|
20
|
+
/** Unified search across workflow title, folder name, and parameter metadata (key, description, default_value). */
|
|
19
21
|
search_key?: string;
|
|
20
22
|
/** Deprecated: use search_key instead. */
|
|
21
23
|
title?: string;
|
|
24
|
+
/** Filter workflows by folder ID */
|
|
25
|
+
folder_id?: string;
|
|
26
|
+
status?: Skyvern.WorkflowStatus | Skyvern.WorkflowStatus[];
|
|
22
27
|
template?: boolean;
|
|
23
28
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Skyvern from "../../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* url: "url",
|
|
6
|
+
* action: {
|
|
7
|
+
* type: "ai_act"
|
|
8
|
+
* }
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface RunSdkActionRequest {
|
|
12
|
+
/** The URL where the action should be executed */
|
|
13
|
+
url: string;
|
|
14
|
+
/** The browser session ID */
|
|
15
|
+
browser_session_id?: string;
|
|
16
|
+
/** The browser address */
|
|
17
|
+
browser_address?: string;
|
|
18
|
+
/** Optional workflow run ID to continue an existing workflow run */
|
|
19
|
+
workflow_run_id?: string;
|
|
20
|
+
/** The action to execute with its specific parameters */
|
|
21
|
+
action: Skyvern.RunSdkActionRequestAction;
|
|
22
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
export type { CreateBrowserSessionRequest } from "./CreateBrowserSessionRequest.js";
|
|
2
2
|
export type { CreateCredentialRequest } from "./CreateCredentialRequest.js";
|
|
3
3
|
export type { CreateScriptRequest } from "./CreateScriptRequest.js";
|
|
4
|
+
export type { CreateWorkflowRequest } from "./CreateWorkflowRequest.js";
|
|
4
5
|
export type { DeployScriptRequest } from "./DeployScriptRequest.js";
|
|
5
6
|
export type { GetCredentialsRequest } from "./GetCredentialsRequest.js";
|
|
6
7
|
export type { GetRunArtifactsRequest } from "./GetRunArtifactsRequest.js";
|
|
7
8
|
export type { GetScriptsRequest } from "./GetScriptsRequest.js";
|
|
8
9
|
export type { GetWorkflowsRequest } from "./GetWorkflowsRequest.js";
|
|
9
10
|
export type { LoginRequest } from "./LoginRequest.js";
|
|
11
|
+
export type { RunSdkActionRequest } from "./RunSdkActionRequest.js";
|
|
10
12
|
export type { RunTaskRequest } from "./RunTaskRequest.js";
|
|
11
13
|
export type { RunWorkflowRequest } from "./RunWorkflowRequest.js";
|
|
12
14
|
export type { TotpCodeCreate } from "./TotpCodeCreate.js";
|