@skyvern/client 0.2.23 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (184) hide show
  1. package/README.md +18 -1
  2. package/dist/cjs/Client.d.ts +60 -3
  3. package/dist/cjs/Client.js +266 -11
  4. package/dist/cjs/api/{resources/browserProfiles/client/requests/ListBrowserProfilesV1BrowserProfilesGetRequest.d.ts → client/requests/ListBrowserProfilesRequest.d.ts} +1 -1
  5. package/dist/cjs/api/client/requests/LoginRequest.d.ts +2 -0
  6. package/dist/cjs/api/client/requests/index.d.ts +2 -0
  7. package/dist/cjs/api/errors/ConflictError.d.ts +5 -0
  8. package/dist/cjs/api/errors/ConflictError.js +50 -0
  9. package/dist/cjs/api/errors/index.d.ts +1 -0
  10. package/dist/cjs/api/errors/index.js +1 -0
  11. package/dist/cjs/api/resources/index.d.ts +0 -2
  12. package/dist/cjs/api/resources/index.js +4 -6
  13. package/dist/cjs/api/types/ActionBlock.d.ts +3 -1
  14. package/dist/cjs/api/types/ActionBlockYaml.d.ts +3 -1
  15. package/dist/cjs/api/types/BlockType.d.ts +1 -0
  16. package/dist/cjs/api/types/BlockType.js +1 -0
  17. package/dist/cjs/api/types/BranchCondition.d.ts +10 -0
  18. package/dist/cjs/api/{resources/browserProfiles/client/requests/index.js → types/BranchCondition.js} +1 -0
  19. package/dist/cjs/api/types/BranchCriteria.d.ts +8 -0
  20. package/dist/cjs/api/types/BranchCriteria.js +3 -0
  21. package/dist/cjs/api/types/CodeBlock.d.ts +3 -0
  22. package/dist/cjs/api/types/CodeBlockYaml.d.ts +3 -0
  23. package/dist/cjs/api/types/ConditionalBlock.d.ts +15 -0
  24. package/dist/cjs/api/types/ConditionalBlock.js +3 -0
  25. package/dist/cjs/api/types/DownloadToS3Block.d.ts +3 -0
  26. package/dist/cjs/api/types/DownloadToS3BlockYaml.d.ts +3 -0
  27. package/dist/cjs/api/types/ExtractionBlock.d.ts +3 -1
  28. package/dist/cjs/api/types/ExtractionBlockYaml.d.ts +3 -1
  29. package/dist/cjs/api/types/FileDownloadBlock.d.ts +3 -1
  30. package/dist/cjs/api/types/FileDownloadBlockYaml.d.ts +3 -1
  31. package/dist/cjs/api/types/FileParserBlock.d.ts +3 -0
  32. package/dist/cjs/api/types/FileParserBlockYaml.d.ts +3 -0
  33. package/dist/cjs/api/types/FileUploadBlock.d.ts +3 -0
  34. package/dist/cjs/api/types/FileUploadBlockYaml.d.ts +3 -0
  35. package/dist/cjs/api/types/ForLoopBlock.d.ts +3 -0
  36. package/dist/cjs/api/types/ForLoopBlockLoopBlocksItem.d.ts +4 -1
  37. package/dist/cjs/api/types/ForLoopBlockYaml.d.ts +3 -0
  38. package/dist/cjs/api/types/GeoTarget.d.ts +21 -0
  39. package/dist/cjs/api/types/GeoTarget.js +3 -0
  40. package/dist/cjs/api/types/HttpRequestBlock.d.ts +3 -0
  41. package/dist/cjs/api/types/HttpRequestBlockYaml.d.ts +3 -0
  42. package/dist/cjs/api/types/HumanInteractionBlock.d.ts +3 -1
  43. package/dist/cjs/api/types/HumanInteractionBlockYaml.d.ts +3 -0
  44. package/dist/cjs/api/types/LocateElementAction.d.ts +7 -0
  45. package/dist/cjs/api/types/LocateElementAction.js +3 -0
  46. package/dist/cjs/api/types/LoginBlock.d.ts +3 -1
  47. package/dist/cjs/api/types/LoginBlockYaml.d.ts +3 -1
  48. package/dist/cjs/api/types/NavigationBlock.d.ts +3 -1
  49. package/dist/cjs/api/types/NavigationBlockYaml.d.ts +3 -1
  50. package/dist/cjs/api/types/NonEmptyPasswordCredential.d.ts +2 -0
  51. package/dist/cjs/api/types/PasswordCredentialResponse.d.ts +2 -0
  52. package/dist/cjs/api/types/PdfParserBlock.d.ts +3 -0
  53. package/dist/cjs/api/types/PdfParserBlockYaml.d.ts +3 -0
  54. package/dist/cjs/api/types/RunSdkActionRequestAction.d.ts +4 -1
  55. package/dist/cjs/api/types/SendEmailBlock.d.ts +3 -0
  56. package/dist/cjs/api/types/SendEmailBlockYaml.d.ts +3 -0
  57. package/dist/cjs/api/types/TaskBlock.d.ts +3 -1
  58. package/dist/cjs/api/types/TaskBlockYaml.d.ts +3 -1
  59. package/dist/cjs/api/types/TaskRunRequest.d.ts +29 -1
  60. package/dist/cjs/api/types/TaskV2Block.d.ts +3 -0
  61. package/dist/cjs/api/types/TaskV2BlockYaml.d.ts +3 -0
  62. package/dist/cjs/api/types/TextPromptBlock.d.ts +3 -0
  63. package/dist/cjs/api/types/TextPromptBlockYaml.d.ts +3 -0
  64. package/dist/cjs/api/types/UploadToS3Block.d.ts +3 -0
  65. package/dist/cjs/api/types/UploadToS3BlockYaml.d.ts +3 -0
  66. package/dist/cjs/api/types/UrlBlock.d.ts +3 -1
  67. package/dist/cjs/api/types/UrlBlockYaml.d.ts +3 -0
  68. package/dist/cjs/api/types/ValidationBlock.d.ts +3 -1
  69. package/dist/cjs/api/types/ValidationBlockYaml.d.ts +3 -0
  70. package/dist/cjs/api/types/WaitBlock.d.ts +3 -0
  71. package/dist/cjs/api/types/WaitBlockYaml.d.ts +3 -0
  72. package/dist/cjs/api/types/Workflow.d.ts +4 -1
  73. package/dist/cjs/api/types/WorkflowCreateYamlRequest.d.ts +4 -1
  74. package/dist/cjs/api/types/WorkflowDefinition.d.ts +1 -0
  75. package/dist/cjs/api/types/WorkflowDefinitionBlocksItem.d.ts +4 -1
  76. package/dist/cjs/api/types/WorkflowDefinitionYaml.d.ts +1 -0
  77. package/dist/cjs/api/types/WorkflowRunRequest.d.ts +31 -1
  78. package/dist/cjs/api/types/index.d.ts +5 -0
  79. package/dist/cjs/api/types/index.js +5 -0
  80. package/dist/cjs/version.d.ts +1 -1
  81. package/dist/cjs/version.js +1 -1
  82. package/dist/esm/Client.d.mts +60 -3
  83. package/dist/esm/Client.mjs +262 -7
  84. package/dist/esm/api/{resources/browserProfiles/client/requests/ListBrowserProfilesV1BrowserProfilesGetRequest.d.mts → client/requests/ListBrowserProfilesRequest.d.mts} +1 -1
  85. package/dist/esm/api/client/requests/LoginRequest.d.mts +2 -0
  86. package/dist/esm/api/client/requests/index.d.mts +2 -0
  87. package/dist/esm/api/errors/ConflictError.d.mts +5 -0
  88. package/dist/esm/api/errors/ConflictError.mjs +13 -0
  89. package/dist/esm/api/errors/index.d.mts +1 -0
  90. package/dist/esm/api/errors/index.mjs +1 -0
  91. package/dist/esm/api/resources/index.d.mts +0 -2
  92. package/dist/esm/api/resources/index.mjs +0 -2
  93. package/dist/esm/api/types/ActionBlock.d.mts +3 -1
  94. package/dist/esm/api/types/ActionBlockYaml.d.mts +3 -1
  95. package/dist/esm/api/types/BlockType.d.mts +1 -0
  96. package/dist/esm/api/types/BlockType.mjs +1 -0
  97. package/dist/esm/api/types/BranchCondition.d.mts +10 -0
  98. package/dist/esm/api/types/BranchCondition.mjs +2 -0
  99. package/dist/esm/api/types/BranchCriteria.d.mts +8 -0
  100. package/dist/esm/api/types/BranchCriteria.mjs +2 -0
  101. package/dist/esm/api/types/CodeBlock.d.mts +3 -0
  102. package/dist/esm/api/types/CodeBlockYaml.d.mts +3 -0
  103. package/dist/esm/api/types/ConditionalBlock.d.mts +15 -0
  104. package/dist/esm/api/types/ConditionalBlock.mjs +2 -0
  105. package/dist/esm/api/types/DownloadToS3Block.d.mts +3 -0
  106. package/dist/esm/api/types/DownloadToS3BlockYaml.d.mts +3 -0
  107. package/dist/esm/api/types/ExtractionBlock.d.mts +3 -1
  108. package/dist/esm/api/types/ExtractionBlockYaml.d.mts +3 -1
  109. package/dist/esm/api/types/FileDownloadBlock.d.mts +3 -1
  110. package/dist/esm/api/types/FileDownloadBlockYaml.d.mts +3 -1
  111. package/dist/esm/api/types/FileParserBlock.d.mts +3 -0
  112. package/dist/esm/api/types/FileParserBlockYaml.d.mts +3 -0
  113. package/dist/esm/api/types/FileUploadBlock.d.mts +3 -0
  114. package/dist/esm/api/types/FileUploadBlockYaml.d.mts +3 -0
  115. package/dist/esm/api/types/ForLoopBlock.d.mts +3 -0
  116. package/dist/esm/api/types/ForLoopBlockLoopBlocksItem.d.mts +4 -1
  117. package/dist/esm/api/types/ForLoopBlockYaml.d.mts +3 -0
  118. package/dist/esm/api/types/GeoTarget.d.mts +21 -0
  119. package/dist/esm/api/types/GeoTarget.mjs +2 -0
  120. package/dist/esm/api/types/HttpRequestBlock.d.mts +3 -0
  121. package/dist/esm/api/types/HttpRequestBlockYaml.d.mts +3 -0
  122. package/dist/esm/api/types/HumanInteractionBlock.d.mts +3 -1
  123. package/dist/esm/api/types/HumanInteractionBlockYaml.d.mts +3 -0
  124. package/dist/esm/api/types/LocateElementAction.d.mts +7 -0
  125. package/dist/esm/api/types/LocateElementAction.mjs +2 -0
  126. package/dist/esm/api/types/LoginBlock.d.mts +3 -1
  127. package/dist/esm/api/types/LoginBlockYaml.d.mts +3 -1
  128. package/dist/esm/api/types/NavigationBlock.d.mts +3 -1
  129. package/dist/esm/api/types/NavigationBlockYaml.d.mts +3 -1
  130. package/dist/esm/api/types/NonEmptyPasswordCredential.d.mts +2 -0
  131. package/dist/esm/api/types/PasswordCredentialResponse.d.mts +2 -0
  132. package/dist/esm/api/types/PdfParserBlock.d.mts +3 -0
  133. package/dist/esm/api/types/PdfParserBlockYaml.d.mts +3 -0
  134. package/dist/esm/api/types/RunSdkActionRequestAction.d.mts +4 -1
  135. package/dist/esm/api/types/SendEmailBlock.d.mts +3 -0
  136. package/dist/esm/api/types/SendEmailBlockYaml.d.mts +3 -0
  137. package/dist/esm/api/types/TaskBlock.d.mts +3 -1
  138. package/dist/esm/api/types/TaskBlockYaml.d.mts +3 -1
  139. package/dist/esm/api/types/TaskRunRequest.d.mts +29 -1
  140. package/dist/esm/api/types/TaskV2Block.d.mts +3 -0
  141. package/dist/esm/api/types/TaskV2BlockYaml.d.mts +3 -0
  142. package/dist/esm/api/types/TextPromptBlock.d.mts +3 -0
  143. package/dist/esm/api/types/TextPromptBlockYaml.d.mts +3 -0
  144. package/dist/esm/api/types/UploadToS3Block.d.mts +3 -0
  145. package/dist/esm/api/types/UploadToS3BlockYaml.d.mts +3 -0
  146. package/dist/esm/api/types/UrlBlock.d.mts +3 -1
  147. package/dist/esm/api/types/UrlBlockYaml.d.mts +3 -0
  148. package/dist/esm/api/types/ValidationBlock.d.mts +3 -1
  149. package/dist/esm/api/types/ValidationBlockYaml.d.mts +3 -0
  150. package/dist/esm/api/types/WaitBlock.d.mts +3 -0
  151. package/dist/esm/api/types/WaitBlockYaml.d.mts +3 -0
  152. package/dist/esm/api/types/Workflow.d.mts +4 -1
  153. package/dist/esm/api/types/WorkflowCreateYamlRequest.d.mts +4 -1
  154. package/dist/esm/api/types/WorkflowDefinition.d.mts +1 -0
  155. package/dist/esm/api/types/WorkflowDefinitionBlocksItem.d.mts +4 -1
  156. package/dist/esm/api/types/WorkflowDefinitionYaml.d.mts +1 -0
  157. package/dist/esm/api/types/WorkflowRunRequest.d.mts +31 -1
  158. package/dist/esm/api/types/index.d.mts +5 -0
  159. package/dist/esm/api/types/index.mjs +5 -0
  160. package/dist/esm/version.d.mts +1 -1
  161. package/dist/esm/version.mjs +1 -1
  162. package/package.json +1 -1
  163. package/reference.md +0 -243
  164. package/dist/cjs/api/resources/browserProfiles/client/Client.d.ts +0 -69
  165. package/dist/cjs/api/resources/browserProfiles/client/Client.js +0 -309
  166. package/dist/cjs/api/resources/browserProfiles/client/index.d.ts +0 -1
  167. package/dist/cjs/api/resources/browserProfiles/client/index.js +0 -17
  168. package/dist/cjs/api/resources/browserProfiles/client/requests/index.d.ts +0 -2
  169. package/dist/cjs/api/resources/browserProfiles/index.d.ts +0 -1
  170. package/dist/cjs/api/resources/browserProfiles/index.js +0 -17
  171. package/dist/esm/api/resources/browserProfiles/client/Client.d.mts +0 -69
  172. package/dist/esm/api/resources/browserProfiles/client/Client.mjs +0 -272
  173. package/dist/esm/api/resources/browserProfiles/client/index.d.mts +0 -1
  174. package/dist/esm/api/resources/browserProfiles/client/index.mjs +0 -1
  175. package/dist/esm/api/resources/browserProfiles/client/requests/index.d.mts +0 -2
  176. package/dist/esm/api/resources/browserProfiles/client/requests/index.mjs +0 -1
  177. package/dist/esm/api/resources/browserProfiles/index.d.mts +0 -1
  178. package/dist/esm/api/resources/browserProfiles/index.mjs +0 -1
  179. /package/dist/cjs/api/{resources/browserProfiles/client → client}/requests/CreateBrowserProfileRequest.d.ts +0 -0
  180. /package/dist/cjs/api/{resources/browserProfiles/client → client}/requests/CreateBrowserProfileRequest.js +0 -0
  181. /package/dist/cjs/api/{resources/browserProfiles/client/requests/ListBrowserProfilesV1BrowserProfilesGetRequest.js → client/requests/ListBrowserProfilesRequest.js} +0 -0
  182. /package/dist/esm/api/{resources/browserProfiles/client → client}/requests/CreateBrowserProfileRequest.d.mts +0 -0
  183. /package/dist/esm/api/{resources/browserProfiles/client → client}/requests/CreateBrowserProfileRequest.mjs +0 -0
  184. /package/dist/esm/api/{resources/browserProfiles/client/requests/ListBrowserProfilesV1BrowserProfilesGetRequest.mjs → client/requests/ListBrowserProfilesRequest.mjs} +0 -0
package/README.md CHANGED
@@ -5,6 +5,23 @@
5
5
 
6
6
  The Skyvern TypeScript library provides convenient access to the Skyvern APIs from TypeScript.
7
7
 
8
+ ## Table of Contents
9
+
10
+ - [Installation](#installation)
11
+ - [Reference](#reference)
12
+ - [Usage](#usage)
13
+ - [Request and Response Types](#request-and-response-types)
14
+ - [Exception Handling](#exception-handling)
15
+ - [Advanced](#advanced)
16
+ - [Additional Headers](#additional-headers)
17
+ - [Additional Query String Parameters](#additional-query-string-parameters)
18
+ - [Retries](#retries)
19
+ - [Timeouts](#timeouts)
20
+ - [Aborting Requests](#aborting-requests)
21
+ - [Access Raw Response Data](#access-raw-response-data)
22
+ - [Runtime Compatibility](#runtime-compatibility)
23
+ - [Contributing](#contributing)
24
+
8
25
  ## Installation
9
26
 
10
27
  ```sh
@@ -31,7 +48,7 @@ await client.runTask({
31
48
  });
32
49
  ```
33
50
 
34
- ## Request And Response Types
51
+ ## Request and Response Types
35
52
 
36
53
  The SDK exports all request and response types as TypeScript interfaces. Simply import them with the
37
54
  following namespace:
@@ -1,5 +1,4 @@
1
1
  import * as Skyvern from "./api/index.js";
2
- import { BrowserProfiles } from "./api/resources/browserProfiles/client/Client.js";
3
2
  import { Scripts } from "./api/resources/scripts/client/Client.js";
4
3
  import { Workflows } from "./api/resources/workflows/client/Client.js";
5
4
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js";
@@ -13,11 +12,9 @@ export declare namespace SkyvernClient {
13
12
  export declare class SkyvernClient {
14
13
  protected readonly _options: SkyvernClient.Options;
15
14
  protected _workflows: Workflows | undefined;
16
- protected _browserProfiles: BrowserProfiles | undefined;
17
15
  protected _scripts: Scripts | undefined;
18
16
  constructor(_options?: SkyvernClient.Options);
19
17
  get workflows(): Workflows;
20
- get browserProfiles(): BrowserProfiles;
21
18
  get scripts(): Scripts;
22
19
  /**
23
20
  * Run a task
@@ -214,6 +211,66 @@ export declare class SkyvernClient {
214
211
  */
215
212
  getRunTimeline(runId: string, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.WorkflowRunTimeline[]>;
216
213
  private __getRunTimeline;
214
+ /**
215
+ * Get all browser profiles for the organization
216
+ *
217
+ * @param {Skyvern.ListBrowserProfilesRequest} request
218
+ * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
219
+ *
220
+ * @throws {@link Skyvern.UnprocessableEntityError}
221
+ *
222
+ * @example
223
+ * await client.listBrowserProfiles({
224
+ * include_deleted: true
225
+ * })
226
+ */
227
+ listBrowserProfiles(request?: Skyvern.ListBrowserProfilesRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.BrowserProfile[]>;
228
+ private __listBrowserProfiles;
229
+ /**
230
+ * Create a browser profile from a persistent browser session or workflow run.
231
+ *
232
+ * @param {Skyvern.CreateBrowserProfileRequest} request
233
+ * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
234
+ *
235
+ * @throws {@link Skyvern.BadRequestError}
236
+ * @throws {@link Skyvern.ConflictError}
237
+ * @throws {@link Skyvern.UnprocessableEntityError}
238
+ *
239
+ * @example
240
+ * await client.createBrowserProfile({
241
+ * name: "name"
242
+ * })
243
+ */
244
+ createBrowserProfile(request: Skyvern.CreateBrowserProfileRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.BrowserProfile>;
245
+ private __createBrowserProfile;
246
+ /**
247
+ * Get a specific browser profile by ID
248
+ *
249
+ * @param {string} profileId - The ID of the browser profile. browser_profile_id starts with `bp_`
250
+ * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
251
+ *
252
+ * @throws {@link Skyvern.NotFoundError}
253
+ * @throws {@link Skyvern.UnprocessableEntityError}
254
+ *
255
+ * @example
256
+ * await client.getBrowserProfile("bp_123456")
257
+ */
258
+ getBrowserProfile(profileId: string, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.BrowserProfile>;
259
+ private __getBrowserProfile;
260
+ /**
261
+ * Delete a browser profile (soft delete)
262
+ *
263
+ * @param {string} profileId - The ID of the browser profile to delete. browser_profile_id starts with `bp_`
264
+ * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
265
+ *
266
+ * @throws {@link Skyvern.NotFoundError}
267
+ * @throws {@link Skyvern.UnprocessableEntityError}
268
+ *
269
+ * @example
270
+ * await client.deleteBrowserProfile("bp_123456")
271
+ */
272
+ deleteBrowserProfile(profileId: string, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<void>;
273
+ private __deleteBrowserProfile;
217
274
  /**
218
275
  * Get all active browser sessions for the organization
219
276
  *
@@ -45,9 +45,8 @@ 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/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");
48
+ const Client_js_1 = require("./api/resources/scripts/client/Client.js");
49
+ const Client_js_2 = require("./api/resources/workflows/client/Client.js");
51
50
  const headers_js_1 = require("./core/headers.js");
52
51
  const core = __importStar(require("./core/index.js"));
53
52
  const environments = __importStar(require("./environments.js"));
@@ -58,23 +57,19 @@ class SkyvernClient {
58
57
  "x-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
59
58
  "X-Fern-Language": "JavaScript",
60
59
  "X-Fern-SDK-Name": "@skyvern/client",
61
- "X-Fern-SDK-Version": "0.2.23",
62
- "User-Agent": "@skyvern/client/0.2.23",
60
+ "X-Fern-SDK-Version": "1.0.2",
61
+ "User-Agent": "@skyvern/client/1.0.2",
63
62
  "X-Fern-Runtime": core.RUNTIME.type,
64
63
  "X-Fern-Runtime-Version": core.RUNTIME.version,
65
64
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
66
65
  }
67
66
  get workflows() {
68
67
  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)));
68
+ return ((_a = this._workflows) !== null && _a !== void 0 ? _a : (this._workflows = new Client_js_2.Workflows(this._options)));
74
69
  }
75
70
  get scripts() {
76
71
  var _a;
77
- return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_js_2.Scripts(this._options)));
72
+ return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_js_1.Scripts(this._options)));
78
73
  }
79
74
  /**
80
75
  * Run a task
@@ -909,6 +904,266 @@ class SkyvernClient {
909
904
  }
910
905
  });
911
906
  }
907
+ /**
908
+ * Get all browser profiles for the organization
909
+ *
910
+ * @param {Skyvern.ListBrowserProfilesRequest} request
911
+ * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
912
+ *
913
+ * @throws {@link Skyvern.UnprocessableEntityError}
914
+ *
915
+ * @example
916
+ * await client.listBrowserProfiles({
917
+ * include_deleted: true
918
+ * })
919
+ */
920
+ listBrowserProfiles(request = {}, requestOptions) {
921
+ return core.HttpResponsePromise.fromPromise(this.__listBrowserProfiles(request, requestOptions));
922
+ }
923
+ __listBrowserProfiles() {
924
+ return __awaiter(this, arguments, void 0, function* (request = {}, requestOptions) {
925
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
926
+ const { include_deleted: includeDeleted } = request;
927
+ const _queryParams = {};
928
+ if (includeDeleted != null) {
929
+ _queryParams.include_deleted = includeDeleted.toString();
930
+ }
931
+ 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);
932
+ const _response = yield core.fetcher({
933
+ 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_profiles"),
934
+ method: "GET",
935
+ headers: _headers,
936
+ queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
937
+ 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,
938
+ 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,
939
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
940
+ });
941
+ if (_response.ok) {
942
+ return { data: _response.body, rawResponse: _response.rawResponse };
943
+ }
944
+ if (_response.error.reason === "status-code") {
945
+ switch (_response.error.statusCode) {
946
+ case 422:
947
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
948
+ default:
949
+ throw new errors.SkyvernError({
950
+ statusCode: _response.error.statusCode,
951
+ body: _response.error.body,
952
+ rawResponse: _response.rawResponse,
953
+ });
954
+ }
955
+ }
956
+ switch (_response.error.reason) {
957
+ case "non-json":
958
+ throw new errors.SkyvernError({
959
+ statusCode: _response.error.statusCode,
960
+ body: _response.error.rawBody,
961
+ rawResponse: _response.rawResponse,
962
+ });
963
+ case "timeout":
964
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling GET /v1/browser_profiles.");
965
+ case "unknown":
966
+ throw new errors.SkyvernError({
967
+ message: _response.error.errorMessage,
968
+ rawResponse: _response.rawResponse,
969
+ });
970
+ }
971
+ });
972
+ }
973
+ /**
974
+ * Create a browser profile from a persistent browser session or workflow run.
975
+ *
976
+ * @param {Skyvern.CreateBrowserProfileRequest} request
977
+ * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
978
+ *
979
+ * @throws {@link Skyvern.BadRequestError}
980
+ * @throws {@link Skyvern.ConflictError}
981
+ * @throws {@link Skyvern.UnprocessableEntityError}
982
+ *
983
+ * @example
984
+ * await client.createBrowserProfile({
985
+ * name: "name"
986
+ * })
987
+ */
988
+ createBrowserProfile(request, requestOptions) {
989
+ return core.HttpResponsePromise.fromPromise(this.__createBrowserProfile(request, requestOptions));
990
+ }
991
+ __createBrowserProfile(request, requestOptions) {
992
+ return __awaiter(this, void 0, void 0, function* () {
993
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
994
+ 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);
995
+ const _response = yield core.fetcher({
996
+ 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_profiles"),
997
+ method: "POST",
998
+ headers: _headers,
999
+ contentType: "application/json",
1000
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1001
+ requestType: "json",
1002
+ body: request,
1003
+ 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,
1004
+ 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,
1005
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1006
+ });
1007
+ if (_response.ok) {
1008
+ return { data: _response.body, rawResponse: _response.rawResponse };
1009
+ }
1010
+ if (_response.error.reason === "status-code") {
1011
+ switch (_response.error.statusCode) {
1012
+ case 400:
1013
+ throw new Skyvern.BadRequestError(_response.error.body, _response.rawResponse);
1014
+ case 409:
1015
+ throw new Skyvern.ConflictError(_response.error.body, _response.rawResponse);
1016
+ case 422:
1017
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1018
+ default:
1019
+ throw new errors.SkyvernError({
1020
+ statusCode: _response.error.statusCode,
1021
+ body: _response.error.body,
1022
+ rawResponse: _response.rawResponse,
1023
+ });
1024
+ }
1025
+ }
1026
+ switch (_response.error.reason) {
1027
+ case "non-json":
1028
+ throw new errors.SkyvernError({
1029
+ statusCode: _response.error.statusCode,
1030
+ body: _response.error.rawBody,
1031
+ rawResponse: _response.rawResponse,
1032
+ });
1033
+ case "timeout":
1034
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling POST /v1/browser_profiles.");
1035
+ case "unknown":
1036
+ throw new errors.SkyvernError({
1037
+ message: _response.error.errorMessage,
1038
+ rawResponse: _response.rawResponse,
1039
+ });
1040
+ }
1041
+ });
1042
+ }
1043
+ /**
1044
+ * Get a specific browser profile by ID
1045
+ *
1046
+ * @param {string} profileId - The ID of the browser profile. browser_profile_id starts with `bp_`
1047
+ * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
1048
+ *
1049
+ * @throws {@link Skyvern.NotFoundError}
1050
+ * @throws {@link Skyvern.UnprocessableEntityError}
1051
+ *
1052
+ * @example
1053
+ * await client.getBrowserProfile("bp_123456")
1054
+ */
1055
+ getBrowserProfile(profileId, requestOptions) {
1056
+ return core.HttpResponsePromise.fromPromise(this.__getBrowserProfile(profileId, requestOptions));
1057
+ }
1058
+ __getBrowserProfile(profileId, requestOptions) {
1059
+ return __awaiter(this, void 0, void 0, function* () {
1060
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1061
+ 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);
1062
+ const _response = yield core.fetcher({
1063
+ 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_profiles/${core.url.encodePathParam(profileId)}`),
1064
+ method: "GET",
1065
+ headers: _headers,
1066
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1067
+ 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,
1068
+ 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,
1069
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1070
+ });
1071
+ if (_response.ok) {
1072
+ return { data: _response.body, rawResponse: _response.rawResponse };
1073
+ }
1074
+ if (_response.error.reason === "status-code") {
1075
+ switch (_response.error.statusCode) {
1076
+ case 404:
1077
+ throw new Skyvern.NotFoundError(_response.error.body, _response.rawResponse);
1078
+ case 422:
1079
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1080
+ default:
1081
+ throw new errors.SkyvernError({
1082
+ statusCode: _response.error.statusCode,
1083
+ body: _response.error.body,
1084
+ rawResponse: _response.rawResponse,
1085
+ });
1086
+ }
1087
+ }
1088
+ switch (_response.error.reason) {
1089
+ case "non-json":
1090
+ throw new errors.SkyvernError({
1091
+ statusCode: _response.error.statusCode,
1092
+ body: _response.error.rawBody,
1093
+ rawResponse: _response.rawResponse,
1094
+ });
1095
+ case "timeout":
1096
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling GET /v1/browser_profiles/{profile_id}.");
1097
+ case "unknown":
1098
+ throw new errors.SkyvernError({
1099
+ message: _response.error.errorMessage,
1100
+ rawResponse: _response.rawResponse,
1101
+ });
1102
+ }
1103
+ });
1104
+ }
1105
+ /**
1106
+ * Delete a browser profile (soft delete)
1107
+ *
1108
+ * @param {string} profileId - The ID of the browser profile to delete. browser_profile_id starts with `bp_`
1109
+ * @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
1110
+ *
1111
+ * @throws {@link Skyvern.NotFoundError}
1112
+ * @throws {@link Skyvern.UnprocessableEntityError}
1113
+ *
1114
+ * @example
1115
+ * await client.deleteBrowserProfile("bp_123456")
1116
+ */
1117
+ deleteBrowserProfile(profileId, requestOptions) {
1118
+ return core.HttpResponsePromise.fromPromise(this.__deleteBrowserProfile(profileId, requestOptions));
1119
+ }
1120
+ __deleteBrowserProfile(profileId, requestOptions) {
1121
+ return __awaiter(this, void 0, void 0, function* () {
1122
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
1123
+ 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);
1124
+ const _response = yield core.fetcher({
1125
+ 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_profiles/${core.url.encodePathParam(profileId)}`),
1126
+ method: "DELETE",
1127
+ headers: _headers,
1128
+ queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
1129
+ 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,
1130
+ 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,
1131
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1132
+ });
1133
+ if (_response.ok) {
1134
+ return { data: undefined, rawResponse: _response.rawResponse };
1135
+ }
1136
+ if (_response.error.reason === "status-code") {
1137
+ switch (_response.error.statusCode) {
1138
+ case 404:
1139
+ throw new Skyvern.NotFoundError(_response.error.body, _response.rawResponse);
1140
+ case 422:
1141
+ throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
1142
+ default:
1143
+ throw new errors.SkyvernError({
1144
+ statusCode: _response.error.statusCode,
1145
+ body: _response.error.body,
1146
+ rawResponse: _response.rawResponse,
1147
+ });
1148
+ }
1149
+ }
1150
+ switch (_response.error.reason) {
1151
+ case "non-json":
1152
+ throw new errors.SkyvernError({
1153
+ statusCode: _response.error.statusCode,
1154
+ body: _response.error.rawBody,
1155
+ rawResponse: _response.rawResponse,
1156
+ });
1157
+ case "timeout":
1158
+ throw new errors.SkyvernTimeoutError("Timeout exceeded when calling DELETE /v1/browser_profiles/{profile_id}.");
1159
+ case "unknown":
1160
+ throw new errors.SkyvernError({
1161
+ message: _response.error.errorMessage,
1162
+ rawResponse: _response.rawResponse,
1163
+ });
1164
+ }
1165
+ });
1166
+ }
912
1167
  /**
913
1168
  * Get all active browser sessions for the organization
914
1169
  *
@@ -4,7 +4,7 @@
4
4
  * include_deleted: true
5
5
  * }
6
6
  */
7
- export interface ListBrowserProfilesV1BrowserProfilesGetRequest {
7
+ export interface ListBrowserProfilesRequest {
8
8
  /** Include deleted browser profiles */
9
9
  include_deleted?: boolean;
10
10
  }
@@ -22,6 +22,8 @@ export interface LoginRequest {
22
22
  totp_url?: string;
23
23
  /** ID of the browser session to use, which is prefixed by `pbs_` e.g. `pbs_123456` */
24
24
  browser_session_id?: string;
25
+ /** ID of a browser profile to reuse for this run */
26
+ browser_profile_id?: string;
25
27
  /** The CDP address for the task. */
26
28
  browser_address?: string;
27
29
  /** Additional HTTP headers to include in requests */
@@ -1,3 +1,4 @@
1
+ export type { CreateBrowserProfileRequest } from "./CreateBrowserProfileRequest.js";
1
2
  export type { CreateBrowserSessionRequest } from "./CreateBrowserSessionRequest.js";
2
3
  export type { CreateCredentialRequest } from "./CreateCredentialRequest.js";
3
4
  export type { CreateScriptRequest } from "./CreateScriptRequest.js";
@@ -7,6 +8,7 @@ export type { GetCredentialsRequest } from "./GetCredentialsRequest.js";
7
8
  export type { GetRunArtifactsRequest } from "./GetRunArtifactsRequest.js";
8
9
  export type { GetScriptsRequest } from "./GetScriptsRequest.js";
9
10
  export type { GetWorkflowsRequest } from "./GetWorkflowsRequest.js";
11
+ export type { ListBrowserProfilesRequest } from "./ListBrowserProfilesRequest.js";
10
12
  export type { LoginRequest } from "./LoginRequest.js";
11
13
  export type { RunSdkActionRequest } from "./RunSdkActionRequest.js";
12
14
  export type { RunTaskRequest } from "./RunTaskRequest.js";
@@ -0,0 +1,5 @@
1
+ import type * as core from "../../core/index.js";
2
+ import * as errors from "../../errors/index.js";
3
+ export declare class ConflictError extends errors.SkyvernError {
4
+ constructor(body?: unknown, rawResponse?: core.RawResponse);
5
+ }
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.ConflictError = void 0;
38
+ const errors = __importStar(require("../../errors/index.js"));
39
+ class ConflictError extends errors.SkyvernError {
40
+ constructor(body, rawResponse) {
41
+ super({
42
+ message: "ConflictError",
43
+ statusCode: 409,
44
+ body: body,
45
+ rawResponse: rawResponse,
46
+ });
47
+ Object.setPrototypeOf(this, ConflictError.prototype);
48
+ }
49
+ }
50
+ exports.ConflictError = ConflictError;
@@ -1,4 +1,5 @@
1
1
  export * from "./BadRequestError.js";
2
+ export * from "./ConflictError.js";
2
3
  export * from "./ForbiddenError.js";
3
4
  export * from "./NotFoundError.js";
4
5
  export * from "./UnprocessableEntityError.js";
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./BadRequestError.js"), exports);
18
+ __exportStar(require("./ConflictError.js"), exports);
18
19
  __exportStar(require("./ForbiddenError.js"), exports);
19
20
  __exportStar(require("./NotFoundError.js"), exports);
20
21
  __exportStar(require("./UnprocessableEntityError.js"), exports);
@@ -1,5 +1,3 @@
1
- export * from "./browserProfiles/client/requests/index.js";
2
- export * as browserProfiles from "./browserProfiles/index.js";
3
1
  export * as scripts from "./scripts/index.js";
4
2
  export * from "./workflows/client/requests/index.js";
5
3
  export * as workflows from "./workflows/index.js";
@@ -15,9 +15,6 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
- };
21
18
  var __importStar = (this && this.__importStar) || (function () {
22
19
  var ownKeys = function(o) {
23
20
  ownKeys = Object.getOwnPropertyNames || function (o) {
@@ -35,10 +32,11 @@ var __importStar = (this && this.__importStar) || (function () {
35
32
  return result;
36
33
  };
37
34
  })();
35
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
36
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
37
+ };
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.workflows = exports.scripts = exports.browserProfiles = void 0;
40
- __exportStar(require("./browserProfiles/client/requests/index.js"), exports);
41
- exports.browserProfiles = __importStar(require("./browserProfiles/index.js"));
39
+ exports.workflows = exports.scripts = void 0;
42
40
  exports.scripts = __importStar(require("./scripts/index.js"));
43
41
  __exportStar(require("./workflows/client/requests/index.js"), exports);
44
42
  exports.workflows = __importStar(require("./workflows/index.js"));
@@ -1,6 +1,9 @@
1
1
  import type * as Skyvern from "../index.js";
2
2
  export interface ActionBlock {
3
+ /** Author-facing identifier for a block; unique within a workflow. */
3
4
  label: string;
5
+ /** Optional pointer to the next block label when constructing a DAG. Defaults to sequential order when omitted. */
6
+ next_block_label?: string;
4
7
  output_parameter: Skyvern.OutputParameter;
5
8
  continue_on_failure?: boolean;
6
9
  model?: Record<string, unknown>;
@@ -22,7 +25,6 @@ export interface ActionBlock {
22
25
  download_suffix?: string;
23
26
  totp_verification_url?: string;
24
27
  totp_identifier?: string;
25
- cache_actions?: boolean;
26
28
  complete_verification?: boolean;
27
29
  include_action_history_in_verification?: boolean;
28
30
  download_timeout?: number;
@@ -1,6 +1,9 @@
1
1
  import type * as Skyvern from "../index.js";
2
2
  export interface ActionBlockYaml {
3
+ /** Author-facing identifier; must be unique per workflow. */
3
4
  label: string;
5
+ /** Optional pointer to the label of the next block. When omitted, it will default to sequential order. See [[s-4bnl]]. */
6
+ next_block_label?: string;
4
7
  continue_on_failure?: boolean;
5
8
  model?: Record<string, unknown>;
6
9
  url?: string;
@@ -14,6 +17,5 @@ export interface ActionBlockYaml {
14
17
  download_suffix?: string;
15
18
  totp_verification_url?: string;
16
19
  totp_identifier?: string;
17
- cache_actions?: boolean;
18
20
  disable_cache?: boolean;
19
21
  }
@@ -2,6 +2,7 @@ export declare const BlockType: {
2
2
  readonly Task: "task";
3
3
  readonly TaskV2: "task_v2";
4
4
  readonly ForLoop: "for_loop";
5
+ readonly Conditional: "conditional";
5
6
  readonly Code: "code";
6
7
  readonly TextPrompt: "text_prompt";
7
8
  readonly DownloadToS3: "download_to_s3";
@@ -6,6 +6,7 @@ exports.BlockType = {
6
6
  Task: "task",
7
7
  TaskV2: "task_v2",
8
8
  ForLoop: "for_loop",
9
+ Conditional: "conditional",
9
10
  Code: "code",
10
11
  TextPrompt: "text_prompt",
11
12
  DownloadToS3: "download_to_s3",
@@ -0,0 +1,10 @@
1
+ import type * as Skyvern from "../index.js";
2
+ /**
3
+ * Represents a single conditional branch edge within a ConditionalBlock.
4
+ */
5
+ export interface BranchCondition {
6
+ criteria?: Skyvern.BranchCriteria;
7
+ next_block_label?: string;
8
+ description?: string;
9
+ is_default?: boolean;
10
+ }
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Abstract interface describing how a branch condition should be evaluated.
3
+ */
4
+ export interface BranchCriteria {
5
+ criteria_type: string;
6
+ expression: string;
7
+ description?: string;
8
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // This file was auto-generated by Fern from our API Definition.
3
+ Object.defineProperty(exports, "__esModule", { value: true });