@skyvern/client 1.0.6 → 1.0.11
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 +0 -1
- package/dist/cjs/Client.d.ts +68 -0
- package/dist/cjs/Client.js +263 -2
- package/dist/cjs/api/client/requests/ChangeTierRequest.d.ts +10 -0
- package/dist/cjs/api/client/requests/ChangeTierRequest.js +3 -0
- package/dist/cjs/api/client/requests/CheckoutSubscriptionRequest.d.ts +10 -0
- package/dist/cjs/api/client/requests/CheckoutSubscriptionRequest.js +3 -0
- package/dist/cjs/api/client/requests/CreateBrowserSessionRequest.d.ts +10 -5
- package/dist/cjs/api/client/requests/TotpCodeCreate.d.ts +3 -0
- package/dist/cjs/api/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/types/Action.d.ts +3 -0
- package/dist/cjs/api/types/ArtifactType.d.ts +1 -0
- package/dist/cjs/api/types/ArtifactType.js +1 -0
- package/dist/cjs/api/types/BillingStateResponse.d.ts +19 -0
- package/dist/cjs/api/types/BillingStateResponse.js +3 -0
- package/dist/cjs/api/types/BlockType.d.ts +1 -0
- package/dist/cjs/api/types/BlockType.js +1 -0
- package/dist/cjs/api/types/BrowserSessionResponse.d.ts +6 -0
- package/dist/cjs/api/types/ChangeTierResponse.d.ts +5 -0
- package/dist/cjs/api/types/ChangeTierResponse.js +3 -0
- package/dist/cjs/api/types/CheckoutSessionResponse.d.ts +4 -0
- package/dist/cjs/api/types/CheckoutSessionResponse.js +3 -0
- package/dist/cjs/api/types/Extensions.d.ts +5 -0
- package/dist/cjs/api/types/Extensions.js +8 -0
- package/dist/cjs/api/types/ForLoopBlockLoopBlocksItem.d.ts +4 -1
- package/dist/cjs/api/types/ForLoopBlockYamlLoopBlocksItem.d.ts +4 -1
- package/dist/cjs/api/types/HttpRequestBlock.d.ts +2 -0
- package/dist/cjs/api/types/HttpRequestBlockYaml.d.ts +2 -0
- package/dist/cjs/api/types/InputOrSelectContext.d.ts +1 -0
- package/dist/cjs/api/types/PdfFormat.d.ts +7 -0
- package/dist/cjs/api/types/PdfFormat.js +10 -0
- package/dist/cjs/api/types/PersistentBrowserType.d.ts +5 -0
- package/dist/cjs/api/types/PersistentBrowserType.js +8 -0
- package/dist/cjs/api/types/PlanTier.d.ts +7 -0
- package/dist/cjs/api/types/PlanTier.js +10 -0
- package/dist/cjs/api/types/PortalSessionResponse.d.ts +3 -0
- package/dist/cjs/api/types/PortalSessionResponse.js +3 -0
- package/dist/cjs/api/types/PrintPageBlock.d.ts +18 -0
- package/dist/cjs/api/types/PrintPageBlock.js +3 -0
- package/dist/cjs/api/types/PrintPageBlockParametersItem.d.ts +37 -0
- package/dist/cjs/api/types/PrintPageBlockParametersItem.js +3 -0
- package/dist/cjs/api/types/PrintPageBlockYaml.d.ts +16 -0
- package/dist/cjs/api/types/PrintPageBlockYaml.js +3 -0
- package/dist/cjs/api/types/ProxyLocation.d.ts +1 -0
- package/dist/cjs/api/types/ProxyLocation.js +1 -0
- package/dist/cjs/api/types/TaskRunRequest.d.ts +12 -10
- package/dist/cjs/api/types/TaskRunResponse.d.ts +2 -0
- package/dist/cjs/api/types/TotpCode.d.ts +2 -0
- package/dist/cjs/api/types/WorkflowDefinition.d.ts +1 -0
- package/dist/cjs/api/types/WorkflowDefinitionBlocksItem.d.ts +4 -1
- package/dist/cjs/api/types/WorkflowDefinitionYaml.d.ts +1 -0
- package/dist/cjs/api/types/WorkflowDefinitionYamlBlocksItem.d.ts +4 -1
- package/dist/cjs/api/types/WorkflowRunRequest.d.ts +12 -10
- package/dist/cjs/api/types/WorkflowRunResponse.d.ts +2 -0
- package/dist/cjs/api/types/index.d.ts +11 -0
- package/dist/cjs/api/types/index.js +11 -0
- package/dist/cjs/library/Skyvern.js +5 -4
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.d.mts +68 -0
- package/dist/esm/Client.mjs +263 -2
- package/dist/esm/api/client/requests/ChangeTierRequest.d.mts +10 -0
- package/dist/esm/api/client/requests/ChangeTierRequest.mjs +2 -0
- package/dist/esm/api/client/requests/CheckoutSubscriptionRequest.d.mts +10 -0
- package/dist/esm/api/client/requests/CheckoutSubscriptionRequest.mjs +2 -0
- package/dist/esm/api/client/requests/CreateBrowserSessionRequest.d.mts +10 -5
- package/dist/esm/api/client/requests/TotpCodeCreate.d.mts +3 -0
- package/dist/esm/api/client/requests/index.d.mts +2 -0
- package/dist/esm/api/types/Action.d.mts +3 -0
- package/dist/esm/api/types/ArtifactType.d.mts +1 -0
- package/dist/esm/api/types/ArtifactType.mjs +1 -0
- package/dist/esm/api/types/BillingStateResponse.d.mts +19 -0
- package/dist/esm/api/types/BillingStateResponse.mjs +2 -0
- package/dist/esm/api/types/BlockType.d.mts +1 -0
- package/dist/esm/api/types/BlockType.mjs +1 -0
- package/dist/esm/api/types/BrowserSessionResponse.d.mts +6 -0
- package/dist/esm/api/types/ChangeTierResponse.d.mts +5 -0
- package/dist/esm/api/types/ChangeTierResponse.mjs +2 -0
- package/dist/esm/api/types/CheckoutSessionResponse.d.mts +4 -0
- package/dist/esm/api/types/CheckoutSessionResponse.mjs +2 -0
- package/dist/esm/api/types/Extensions.d.mts +5 -0
- package/dist/esm/api/types/Extensions.mjs +5 -0
- package/dist/esm/api/types/ForLoopBlockLoopBlocksItem.d.mts +4 -1
- package/dist/esm/api/types/ForLoopBlockYamlLoopBlocksItem.d.mts +4 -1
- package/dist/esm/api/types/HttpRequestBlock.d.mts +2 -0
- package/dist/esm/api/types/HttpRequestBlockYaml.d.mts +2 -0
- package/dist/esm/api/types/InputOrSelectContext.d.mts +1 -0
- package/dist/esm/api/types/PdfFormat.d.mts +7 -0
- package/dist/esm/api/types/PdfFormat.mjs +7 -0
- package/dist/esm/api/types/PersistentBrowserType.d.mts +5 -0
- package/dist/esm/api/types/PersistentBrowserType.mjs +5 -0
- package/dist/esm/api/types/PlanTier.d.mts +7 -0
- package/dist/esm/api/types/PlanTier.mjs +7 -0
- package/dist/esm/api/types/PortalSessionResponse.d.mts +3 -0
- package/dist/esm/api/types/PortalSessionResponse.mjs +2 -0
- package/dist/esm/api/types/PrintPageBlock.d.mts +18 -0
- package/dist/esm/api/types/PrintPageBlock.mjs +2 -0
- package/dist/esm/api/types/PrintPageBlockParametersItem.d.mts +37 -0
- package/dist/esm/api/types/PrintPageBlockParametersItem.mjs +2 -0
- package/dist/esm/api/types/PrintPageBlockYaml.d.mts +16 -0
- package/dist/esm/api/types/PrintPageBlockYaml.mjs +2 -0
- package/dist/esm/api/types/ProxyLocation.d.mts +1 -0
- package/dist/esm/api/types/ProxyLocation.mjs +1 -0
- package/dist/esm/api/types/TaskRunRequest.d.mts +12 -10
- package/dist/esm/api/types/TaskRunResponse.d.mts +2 -0
- package/dist/esm/api/types/TotpCode.d.mts +2 -0
- package/dist/esm/api/types/WorkflowDefinition.d.mts +1 -0
- package/dist/esm/api/types/WorkflowDefinitionBlocksItem.d.mts +4 -1
- package/dist/esm/api/types/WorkflowDefinitionYaml.d.mts +1 -0
- package/dist/esm/api/types/WorkflowDefinitionYamlBlocksItem.d.mts +4 -1
- package/dist/esm/api/types/WorkflowRunRequest.d.mts +12 -10
- package/dist/esm/api/types/WorkflowRunResponse.d.mts +2 -0
- package/dist/esm/api/types/index.d.mts +11 -0
- package/dist/esm/api/types/index.mjs +11 -0
- package/dist/esm/library/Skyvern.mjs +5 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +8 -8
package/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
# Skyvern TypeScript Library
|
|
2
2
|
|
|
3
|
-
[](https://buildwithfern.com?utm_source=github&utm_medium=github&utm_campaign=readme&utm_source=https%3A%2F%2Fgithub.com%2FSkyvern-AI%2Fskyvern-typescript)
|
|
4
3
|
[](https://www.npmjs.com/package/@skyvern/client)
|
|
5
4
|
|
|
6
5
|
The Skyvern TypeScript library provides convenient access to the Skyvern APIs from TypeScript.
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -528,4 +528,72 @@ export declare class SkyvernClient {
|
|
|
528
528
|
*/
|
|
529
529
|
runSdkAction(request: Skyvern.RunSdkActionRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.RunSdkActionResponse>;
|
|
530
530
|
private __runSdkAction;
|
|
531
|
+
/**
|
|
532
|
+
* Create a Stripe Checkout Session for subscribing to a tier.
|
|
533
|
+
*
|
|
534
|
+
* Frontend should redirect the user to the returned URL.
|
|
535
|
+
* After successful checkout, Stripe will send a webhook that we handle
|
|
536
|
+
* to store the subscription and initialize billing state.
|
|
537
|
+
*
|
|
538
|
+
* Returns 400 if org already has an active subscription (use portal instead).
|
|
539
|
+
*
|
|
540
|
+
* @param {Skyvern.CheckoutSubscriptionRequest} request
|
|
541
|
+
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
542
|
+
*
|
|
543
|
+
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
544
|
+
*
|
|
545
|
+
* @example
|
|
546
|
+
* await client.createCheckoutSessionApiV1BillingCheckoutPost({
|
|
547
|
+
* tier: "free"
|
|
548
|
+
* })
|
|
549
|
+
*/
|
|
550
|
+
createCheckoutSessionApiV1BillingCheckoutPost(request: Skyvern.CheckoutSubscriptionRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.CheckoutSessionResponse>;
|
|
551
|
+
private __createCheckoutSessionApiV1BillingCheckoutPost;
|
|
552
|
+
/**
|
|
553
|
+
* Create a Stripe Customer Portal session for managing subscription.
|
|
554
|
+
*
|
|
555
|
+
* Frontend should redirect the user to the returned URL.
|
|
556
|
+
* The portal allows users to:
|
|
557
|
+
* - Update payment methods
|
|
558
|
+
* - Upgrade/downgrade plans
|
|
559
|
+
* - Cancel subscription
|
|
560
|
+
* - View invoices
|
|
561
|
+
*
|
|
562
|
+
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
563
|
+
*
|
|
564
|
+
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
565
|
+
*
|
|
566
|
+
* @example
|
|
567
|
+
* await client.createPortalSessionApiV1BillingPortalPost()
|
|
568
|
+
*/
|
|
569
|
+
createPortalSessionApiV1BillingPortalPost(requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.PortalSessionResponse>;
|
|
570
|
+
private __createPortalSessionApiV1BillingPortalPost;
|
|
571
|
+
/**
|
|
572
|
+
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
573
|
+
*
|
|
574
|
+
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
575
|
+
*
|
|
576
|
+
* @example
|
|
577
|
+
* await client.getOrganizationBillingApiV1BillingStateGet()
|
|
578
|
+
*/
|
|
579
|
+
getOrganizationBillingApiV1BillingStateGet(requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.BillingStateResponse | undefined>;
|
|
580
|
+
private __getOrganizationBillingApiV1BillingStateGet;
|
|
581
|
+
/**
|
|
582
|
+
* Redirect to Stripe Portal for tier changes.
|
|
583
|
+
* Portal handles proration based on configured settings:
|
|
584
|
+
* - Upgrades: Immediate proration charge
|
|
585
|
+
* - Downgrades: Apply at end of billing period
|
|
586
|
+
*
|
|
587
|
+
* @param {Skyvern.ChangeTierRequest} request
|
|
588
|
+
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
589
|
+
*
|
|
590
|
+
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
591
|
+
*
|
|
592
|
+
* @example
|
|
593
|
+
* await client.changeTierApiV1BillingChangeTierPost({
|
|
594
|
+
* tier: "free"
|
|
595
|
+
* })
|
|
596
|
+
*/
|
|
597
|
+
changeTierApiV1BillingChangeTierPost(request: Skyvern.ChangeTierRequest, requestOptions?: SkyvernClient.RequestOptions): core.HttpResponsePromise<Skyvern.ChangeTierResponse>;
|
|
598
|
+
private __changeTierApiV1BillingChangeTierPost;
|
|
531
599
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -56,8 +56,8 @@ class SkyvernClient {
|
|
|
56
56
|
"x-api-key": _options === null || _options === void 0 ? void 0 : _options.apiKey,
|
|
57
57
|
"X-Fern-Language": "JavaScript",
|
|
58
58
|
"X-Fern-SDK-Name": "@skyvern/client",
|
|
59
|
-
"X-Fern-SDK-Version": "1.0.
|
|
60
|
-
"User-Agent": "@skyvern/client/1.0.
|
|
59
|
+
"X-Fern-SDK-Version": "1.0.11",
|
|
60
|
+
"User-Agent": "@skyvern/client/1.0.11",
|
|
61
61
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
62
62
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
63
63
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -2263,5 +2263,266 @@ class SkyvernClient {
|
|
|
2263
2263
|
}
|
|
2264
2264
|
});
|
|
2265
2265
|
}
|
|
2266
|
+
/**
|
|
2267
|
+
* Create a Stripe Checkout Session for subscribing to a tier.
|
|
2268
|
+
*
|
|
2269
|
+
* Frontend should redirect the user to the returned URL.
|
|
2270
|
+
* After successful checkout, Stripe will send a webhook that we handle
|
|
2271
|
+
* to store the subscription and initialize billing state.
|
|
2272
|
+
*
|
|
2273
|
+
* Returns 400 if org already has an active subscription (use portal instead).
|
|
2274
|
+
*
|
|
2275
|
+
* @param {Skyvern.CheckoutSubscriptionRequest} request
|
|
2276
|
+
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2277
|
+
*
|
|
2278
|
+
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
2279
|
+
*
|
|
2280
|
+
* @example
|
|
2281
|
+
* await client.createCheckoutSessionApiV1BillingCheckoutPost({
|
|
2282
|
+
* tier: "free"
|
|
2283
|
+
* })
|
|
2284
|
+
*/
|
|
2285
|
+
createCheckoutSessionApiV1BillingCheckoutPost(request, requestOptions) {
|
|
2286
|
+
return core.HttpResponsePromise.fromPromise(this.__createCheckoutSessionApiV1BillingCheckoutPost(request, requestOptions));
|
|
2287
|
+
}
|
|
2288
|
+
__createCheckoutSessionApiV1BillingCheckoutPost(request, requestOptions) {
|
|
2289
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2290
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2291
|
+
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);
|
|
2292
|
+
const _response = yield core.fetcher({
|
|
2293
|
+
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, "api/v1/billing/checkout"),
|
|
2294
|
+
method: "POST",
|
|
2295
|
+
headers: _headers,
|
|
2296
|
+
contentType: "application/json",
|
|
2297
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
2298
|
+
requestType: "json",
|
|
2299
|
+
body: request,
|
|
2300
|
+
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,
|
|
2301
|
+
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,
|
|
2302
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
2303
|
+
});
|
|
2304
|
+
if (_response.ok) {
|
|
2305
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
2306
|
+
}
|
|
2307
|
+
if (_response.error.reason === "status-code") {
|
|
2308
|
+
switch (_response.error.statusCode) {
|
|
2309
|
+
case 422:
|
|
2310
|
+
throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
2311
|
+
default:
|
|
2312
|
+
throw new errors.SkyvernError({
|
|
2313
|
+
statusCode: _response.error.statusCode,
|
|
2314
|
+
body: _response.error.body,
|
|
2315
|
+
rawResponse: _response.rawResponse,
|
|
2316
|
+
});
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
switch (_response.error.reason) {
|
|
2320
|
+
case "non-json":
|
|
2321
|
+
throw new errors.SkyvernError({
|
|
2322
|
+
statusCode: _response.error.statusCode,
|
|
2323
|
+
body: _response.error.rawBody,
|
|
2324
|
+
rawResponse: _response.rawResponse,
|
|
2325
|
+
});
|
|
2326
|
+
case "timeout":
|
|
2327
|
+
throw new errors.SkyvernTimeoutError("Timeout exceeded when calling POST /api/v1/billing/checkout.");
|
|
2328
|
+
case "unknown":
|
|
2329
|
+
throw new errors.SkyvernError({
|
|
2330
|
+
message: _response.error.errorMessage,
|
|
2331
|
+
rawResponse: _response.rawResponse,
|
|
2332
|
+
});
|
|
2333
|
+
}
|
|
2334
|
+
});
|
|
2335
|
+
}
|
|
2336
|
+
/**
|
|
2337
|
+
* Create a Stripe Customer Portal session for managing subscription.
|
|
2338
|
+
*
|
|
2339
|
+
* Frontend should redirect the user to the returned URL.
|
|
2340
|
+
* The portal allows users to:
|
|
2341
|
+
* - Update payment methods
|
|
2342
|
+
* - Upgrade/downgrade plans
|
|
2343
|
+
* - Cancel subscription
|
|
2344
|
+
* - View invoices
|
|
2345
|
+
*
|
|
2346
|
+
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2347
|
+
*
|
|
2348
|
+
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
2349
|
+
*
|
|
2350
|
+
* @example
|
|
2351
|
+
* await client.createPortalSessionApiV1BillingPortalPost()
|
|
2352
|
+
*/
|
|
2353
|
+
createPortalSessionApiV1BillingPortalPost(requestOptions) {
|
|
2354
|
+
return core.HttpResponsePromise.fromPromise(this.__createPortalSessionApiV1BillingPortalPost(requestOptions));
|
|
2355
|
+
}
|
|
2356
|
+
__createPortalSessionApiV1BillingPortalPost(requestOptions) {
|
|
2357
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2358
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2359
|
+
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);
|
|
2360
|
+
const _response = yield core.fetcher({
|
|
2361
|
+
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, "api/v1/billing/portal"),
|
|
2362
|
+
method: "POST",
|
|
2363
|
+
headers: _headers,
|
|
2364
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
2365
|
+
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,
|
|
2366
|
+
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,
|
|
2367
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
2368
|
+
});
|
|
2369
|
+
if (_response.ok) {
|
|
2370
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
2371
|
+
}
|
|
2372
|
+
if (_response.error.reason === "status-code") {
|
|
2373
|
+
switch (_response.error.statusCode) {
|
|
2374
|
+
case 422:
|
|
2375
|
+
throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
2376
|
+
default:
|
|
2377
|
+
throw new errors.SkyvernError({
|
|
2378
|
+
statusCode: _response.error.statusCode,
|
|
2379
|
+
body: _response.error.body,
|
|
2380
|
+
rawResponse: _response.rawResponse,
|
|
2381
|
+
});
|
|
2382
|
+
}
|
|
2383
|
+
}
|
|
2384
|
+
switch (_response.error.reason) {
|
|
2385
|
+
case "non-json":
|
|
2386
|
+
throw new errors.SkyvernError({
|
|
2387
|
+
statusCode: _response.error.statusCode,
|
|
2388
|
+
body: _response.error.rawBody,
|
|
2389
|
+
rawResponse: _response.rawResponse,
|
|
2390
|
+
});
|
|
2391
|
+
case "timeout":
|
|
2392
|
+
throw new errors.SkyvernTimeoutError("Timeout exceeded when calling POST /api/v1/billing/portal.");
|
|
2393
|
+
case "unknown":
|
|
2394
|
+
throw new errors.SkyvernError({
|
|
2395
|
+
message: _response.error.errorMessage,
|
|
2396
|
+
rawResponse: _response.rawResponse,
|
|
2397
|
+
});
|
|
2398
|
+
}
|
|
2399
|
+
});
|
|
2400
|
+
}
|
|
2401
|
+
/**
|
|
2402
|
+
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2403
|
+
*
|
|
2404
|
+
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
2405
|
+
*
|
|
2406
|
+
* @example
|
|
2407
|
+
* await client.getOrganizationBillingApiV1BillingStateGet()
|
|
2408
|
+
*/
|
|
2409
|
+
getOrganizationBillingApiV1BillingStateGet(requestOptions) {
|
|
2410
|
+
return core.HttpResponsePromise.fromPromise(this.__getOrganizationBillingApiV1BillingStateGet(requestOptions));
|
|
2411
|
+
}
|
|
2412
|
+
__getOrganizationBillingApiV1BillingStateGet(requestOptions) {
|
|
2413
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2414
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2415
|
+
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);
|
|
2416
|
+
const _response = yield core.fetcher({
|
|
2417
|
+
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, "api/v1/billing/state"),
|
|
2418
|
+
method: "GET",
|
|
2419
|
+
headers: _headers,
|
|
2420
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
2421
|
+
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,
|
|
2422
|
+
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,
|
|
2423
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
2424
|
+
});
|
|
2425
|
+
if (_response.ok) {
|
|
2426
|
+
return {
|
|
2427
|
+
data: _response.body,
|
|
2428
|
+
rawResponse: _response.rawResponse,
|
|
2429
|
+
};
|
|
2430
|
+
}
|
|
2431
|
+
if (_response.error.reason === "status-code") {
|
|
2432
|
+
switch (_response.error.statusCode) {
|
|
2433
|
+
case 422:
|
|
2434
|
+
throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
2435
|
+
default:
|
|
2436
|
+
throw new errors.SkyvernError({
|
|
2437
|
+
statusCode: _response.error.statusCode,
|
|
2438
|
+
body: _response.error.body,
|
|
2439
|
+
rawResponse: _response.rawResponse,
|
|
2440
|
+
});
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
switch (_response.error.reason) {
|
|
2444
|
+
case "non-json":
|
|
2445
|
+
throw new errors.SkyvernError({
|
|
2446
|
+
statusCode: _response.error.statusCode,
|
|
2447
|
+
body: _response.error.rawBody,
|
|
2448
|
+
rawResponse: _response.rawResponse,
|
|
2449
|
+
});
|
|
2450
|
+
case "timeout":
|
|
2451
|
+
throw new errors.SkyvernTimeoutError("Timeout exceeded when calling GET /api/v1/billing/state.");
|
|
2452
|
+
case "unknown":
|
|
2453
|
+
throw new errors.SkyvernError({
|
|
2454
|
+
message: _response.error.errorMessage,
|
|
2455
|
+
rawResponse: _response.rawResponse,
|
|
2456
|
+
});
|
|
2457
|
+
}
|
|
2458
|
+
});
|
|
2459
|
+
}
|
|
2460
|
+
/**
|
|
2461
|
+
* Redirect to Stripe Portal for tier changes.
|
|
2462
|
+
* Portal handles proration based on configured settings:
|
|
2463
|
+
* - Upgrades: Immediate proration charge
|
|
2464
|
+
* - Downgrades: Apply at end of billing period
|
|
2465
|
+
*
|
|
2466
|
+
* @param {Skyvern.ChangeTierRequest} request
|
|
2467
|
+
* @param {SkyvernClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2468
|
+
*
|
|
2469
|
+
* @throws {@link Skyvern.UnprocessableEntityError}
|
|
2470
|
+
*
|
|
2471
|
+
* @example
|
|
2472
|
+
* await client.changeTierApiV1BillingChangeTierPost({
|
|
2473
|
+
* tier: "free"
|
|
2474
|
+
* })
|
|
2475
|
+
*/
|
|
2476
|
+
changeTierApiV1BillingChangeTierPost(request, requestOptions) {
|
|
2477
|
+
return core.HttpResponsePromise.fromPromise(this.__changeTierApiV1BillingChangeTierPost(request, requestOptions));
|
|
2478
|
+
}
|
|
2479
|
+
__changeTierApiV1BillingChangeTierPost(request, requestOptions) {
|
|
2480
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2481
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
2482
|
+
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);
|
|
2483
|
+
const _response = yield core.fetcher({
|
|
2484
|
+
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, "api/v1/billing/change-tier"),
|
|
2485
|
+
method: "POST",
|
|
2486
|
+
headers: _headers,
|
|
2487
|
+
contentType: "application/json",
|
|
2488
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
2489
|
+
requestType: "json",
|
|
2490
|
+
body: request,
|
|
2491
|
+
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,
|
|
2492
|
+
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,
|
|
2493
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
2494
|
+
});
|
|
2495
|
+
if (_response.ok) {
|
|
2496
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
2497
|
+
}
|
|
2498
|
+
if (_response.error.reason === "status-code") {
|
|
2499
|
+
switch (_response.error.statusCode) {
|
|
2500
|
+
case 422:
|
|
2501
|
+
throw new Skyvern.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
2502
|
+
default:
|
|
2503
|
+
throw new errors.SkyvernError({
|
|
2504
|
+
statusCode: _response.error.statusCode,
|
|
2505
|
+
body: _response.error.body,
|
|
2506
|
+
rawResponse: _response.rawResponse,
|
|
2507
|
+
});
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
switch (_response.error.reason) {
|
|
2511
|
+
case "non-json":
|
|
2512
|
+
throw new errors.SkyvernError({
|
|
2513
|
+
statusCode: _response.error.statusCode,
|
|
2514
|
+
body: _response.error.rawBody,
|
|
2515
|
+
rawResponse: _response.rawResponse,
|
|
2516
|
+
});
|
|
2517
|
+
case "timeout":
|
|
2518
|
+
throw new errors.SkyvernTimeoutError("Timeout exceeded when calling POST /api/v1/billing/change-tier.");
|
|
2519
|
+
case "unknown":
|
|
2520
|
+
throw new errors.SkyvernError({
|
|
2521
|
+
message: _response.error.errorMessage,
|
|
2522
|
+
rawResponse: _response.rawResponse,
|
|
2523
|
+
});
|
|
2524
|
+
}
|
|
2525
|
+
});
|
|
2526
|
+
}
|
|
2266
2527
|
}
|
|
2267
2528
|
exports.SkyvernClient = SkyvernClient;
|
|
@@ -19,16 +19,21 @@ export interface CreateBrowserSessionRequest {
|
|
|
19
19
|
* - RESIDENTIAL_FR: France
|
|
20
20
|
* - RESIDENTIAL_DE: Germany
|
|
21
21
|
* - RESIDENTIAL_NZ: New Zealand
|
|
22
|
+
* - RESIDENTIAL_PH: Philippines
|
|
22
23
|
* - RESIDENTIAL_ZA: South Africa
|
|
23
24
|
* - RESIDENTIAL_AR: Argentina
|
|
24
25
|
* - RESIDENTIAL_AU: Australia
|
|
25
26
|
* - RESIDENTIAL_ISP: ISP proxy
|
|
26
|
-
* - US-CA: California
|
|
27
|
-
* - US-NY: New York
|
|
28
|
-
* - US-TX: Texas
|
|
29
|
-
* - US-FL: Florida
|
|
30
|
-
* - US-WA: Washington
|
|
27
|
+
* - US-CA: California (deprecated, routes through RESIDENTIAL_ISP)
|
|
28
|
+
* - US-NY: New York (deprecated, routes through RESIDENTIAL_ISP)
|
|
29
|
+
* - US-TX: Texas (deprecated, routes through RESIDENTIAL_ISP)
|
|
30
|
+
* - US-FL: Florida (deprecated, routes through RESIDENTIAL_ISP)
|
|
31
|
+
* - US-WA: Washington (deprecated, routes through RESIDENTIAL_ISP)
|
|
31
32
|
* - NONE: No proxy
|
|
32
33
|
*/
|
|
33
34
|
proxy_location?: Skyvern.ProxyLocation;
|
|
35
|
+
/** A list of extensions to install in the browser session. */
|
|
36
|
+
extensions?: Skyvern.Extensions[];
|
|
37
|
+
/** The type of browser to use for the session. */
|
|
38
|
+
browser_type?: Skyvern.PersistentBrowserType;
|
|
34
39
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type * as Skyvern from "../../index.js";
|
|
1
2
|
/**
|
|
2
3
|
* @example
|
|
3
4
|
* {
|
|
@@ -20,4 +21,6 @@ export interface TotpCodeCreate {
|
|
|
20
21
|
content: string;
|
|
21
22
|
/** The timestamp when the TOTP code expires */
|
|
22
23
|
expired_at?: string;
|
|
24
|
+
/** Optional. If provided, forces extraction of this specific OTP type (totp or magic_link). Use this when the content contains multiple OTP types and you want to specify which one to extract. */
|
|
25
|
+
type?: Skyvern.OtpType;
|
|
23
26
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { BodyUploadFileV1UploadFilePost } from "./BodyUploadFileV1UploadFilePost.js";
|
|
2
|
+
export type { ChangeTierRequest } from "./ChangeTierRequest.js";
|
|
3
|
+
export type { CheckoutSubscriptionRequest } from "./CheckoutSubscriptionRequest.js";
|
|
2
4
|
export type { CreateBrowserProfileRequest } from "./CreateBrowserProfileRequest.js";
|
|
3
5
|
export type { CreateBrowserSessionRequest } from "./CreateBrowserSessionRequest.js";
|
|
4
6
|
export type { CreateCredentialRequest } from "./CreateCredentialRequest.js";
|
|
@@ -18,6 +18,7 @@ export interface Action {
|
|
|
18
18
|
element_id?: string;
|
|
19
19
|
skyvern_element_hash?: string;
|
|
20
20
|
skyvern_element_data?: Record<string, unknown>;
|
|
21
|
+
screenshot_artifact_id?: string;
|
|
21
22
|
tool_call_id?: string;
|
|
22
23
|
xpath?: string;
|
|
23
24
|
errors?: Skyvern.UserDefinedError[];
|
|
@@ -25,6 +26,8 @@ export interface Action {
|
|
|
25
26
|
file_name?: string;
|
|
26
27
|
file_url?: string;
|
|
27
28
|
download?: boolean;
|
|
29
|
+
download_triggered?: boolean;
|
|
30
|
+
downloaded_files?: string[];
|
|
28
31
|
is_upload_file_tag?: boolean;
|
|
29
32
|
text?: string;
|
|
30
33
|
input_or_select_context?: Skyvern.InputOrSelectContext;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as Skyvern from "../index.js";
|
|
2
|
+
export interface BillingStateResponse {
|
|
3
|
+
billing_id: string;
|
|
4
|
+
organization_id: string;
|
|
5
|
+
plan_tier: Skyvern.PlanTier;
|
|
6
|
+
current_period_start?: string;
|
|
7
|
+
current_period_end?: string;
|
|
8
|
+
included_credits_this_period: number;
|
|
9
|
+
credits_consumed_this_period: number;
|
|
10
|
+
cached_credits_consumed_this_period: number;
|
|
11
|
+
overage_enabled: boolean;
|
|
12
|
+
browser_uptime_seconds_consumed: number;
|
|
13
|
+
topup_credits_total: number;
|
|
14
|
+
topup_credits_used: number;
|
|
15
|
+
topup_credits_remaining: number;
|
|
16
|
+
credits_remaining: number;
|
|
17
|
+
created_at: string;
|
|
18
|
+
modified_at: string;
|
|
19
|
+
}
|
|
@@ -21,5 +21,6 @@ export declare const BlockType: {
|
|
|
21
21
|
readonly PdfParser: "pdf_parser";
|
|
22
22
|
readonly HttpRequest: "http_request";
|
|
23
23
|
readonly HumanInteraction: "human_interaction";
|
|
24
|
+
readonly PrintPage: "print_page";
|
|
24
25
|
};
|
|
25
26
|
export type BlockType = (typeof BlockType)[keyof typeof BlockType];
|
|
@@ -7,6 +7,8 @@ export interface BrowserSessionResponse {
|
|
|
7
7
|
browser_session_id: string;
|
|
8
8
|
/** ID of the organization that owns this session */
|
|
9
9
|
organization_id: string;
|
|
10
|
+
/** Current status of the browser session */
|
|
11
|
+
status?: string;
|
|
10
12
|
/** Type of the current runnable associated with this session (workflow, task etc) */
|
|
11
13
|
runnable_type?: string;
|
|
12
14
|
/** ID of the current runnable */
|
|
@@ -17,6 +19,10 @@ export interface BrowserSessionResponse {
|
|
|
17
19
|
browser_address?: string;
|
|
18
20
|
/** Url for the browser session page */
|
|
19
21
|
app_url?: string;
|
|
22
|
+
/** A list of extensions installed in the browser session. */
|
|
23
|
+
extensions?: Skyvern.Extensions[];
|
|
24
|
+
/** The type of browser used for the session. */
|
|
25
|
+
browser_type?: Skyvern.PersistentBrowserType;
|
|
20
26
|
/** Whether the browser session supports VNC streaming */
|
|
21
27
|
vnc_streaming_supported?: boolean;
|
|
22
28
|
/** The path where the browser session downloads files */
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Extensions = void 0;
|
|
5
|
+
exports.Extensions = {
|
|
6
|
+
AdBlocker: "ad-blocker",
|
|
7
|
+
CaptchaSolver: "captcha-solver",
|
|
8
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as Skyvern from "../index.js";
|
|
2
|
-
export type ForLoopBlockLoopBlocksItem = Skyvern.ForLoopBlockLoopBlocksItem.Action | Skyvern.ForLoopBlockLoopBlocksItem.Code | Skyvern.ForLoopBlockLoopBlocksItem.Conditional | Skyvern.ForLoopBlockLoopBlocksItem.DownloadToS3 | Skyvern.ForLoopBlockLoopBlocksItem.Extraction | Skyvern.ForLoopBlockLoopBlocksItem.FileDownload | Skyvern.ForLoopBlockLoopBlocksItem.FileUpload | Skyvern.ForLoopBlockLoopBlocksItem.FileUrlParser | Skyvern.ForLoopBlockLoopBlocksItem.ForLoop | Skyvern.ForLoopBlockLoopBlocksItem.GotoUrl | Skyvern.ForLoopBlockLoopBlocksItem.HttpRequest | Skyvern.ForLoopBlockLoopBlocksItem.HumanInteraction | Skyvern.ForLoopBlockLoopBlocksItem.Login | Skyvern.ForLoopBlockLoopBlocksItem.Navigation | Skyvern.ForLoopBlockLoopBlocksItem.PdfParser | Skyvern.ForLoopBlockLoopBlocksItem.SendEmail | Skyvern.ForLoopBlockLoopBlocksItem.Task | Skyvern.ForLoopBlockLoopBlocksItem.TaskV2 | Skyvern.ForLoopBlockLoopBlocksItem.TextPrompt | Skyvern.ForLoopBlockLoopBlocksItem.UploadToS3 | Skyvern.ForLoopBlockLoopBlocksItem.Validation | Skyvern.ForLoopBlockLoopBlocksItem.Wait;
|
|
2
|
+
export type ForLoopBlockLoopBlocksItem = Skyvern.ForLoopBlockLoopBlocksItem.Action | Skyvern.ForLoopBlockLoopBlocksItem.Code | Skyvern.ForLoopBlockLoopBlocksItem.Conditional | Skyvern.ForLoopBlockLoopBlocksItem.DownloadToS3 | Skyvern.ForLoopBlockLoopBlocksItem.Extraction | Skyvern.ForLoopBlockLoopBlocksItem.FileDownload | Skyvern.ForLoopBlockLoopBlocksItem.FileUpload | Skyvern.ForLoopBlockLoopBlocksItem.FileUrlParser | Skyvern.ForLoopBlockLoopBlocksItem.ForLoop | Skyvern.ForLoopBlockLoopBlocksItem.GotoUrl | Skyvern.ForLoopBlockLoopBlocksItem.HttpRequest | Skyvern.ForLoopBlockLoopBlocksItem.HumanInteraction | Skyvern.ForLoopBlockLoopBlocksItem.Login | Skyvern.ForLoopBlockLoopBlocksItem.Navigation | Skyvern.ForLoopBlockLoopBlocksItem.PdfParser | Skyvern.ForLoopBlockLoopBlocksItem.PrintPage | Skyvern.ForLoopBlockLoopBlocksItem.SendEmail | Skyvern.ForLoopBlockLoopBlocksItem.Task | Skyvern.ForLoopBlockLoopBlocksItem.TaskV2 | Skyvern.ForLoopBlockLoopBlocksItem.TextPrompt | Skyvern.ForLoopBlockLoopBlocksItem.UploadToS3 | Skyvern.ForLoopBlockLoopBlocksItem.Validation | Skyvern.ForLoopBlockLoopBlocksItem.Wait;
|
|
3
3
|
export declare namespace ForLoopBlockLoopBlocksItem {
|
|
4
4
|
interface Action extends Skyvern.ActionBlock {
|
|
5
5
|
block_type: "action";
|
|
@@ -46,6 +46,9 @@ export declare namespace ForLoopBlockLoopBlocksItem {
|
|
|
46
46
|
interface PdfParser extends Skyvern.PdfParserBlock {
|
|
47
47
|
block_type: "pdf_parser";
|
|
48
48
|
}
|
|
49
|
+
interface PrintPage extends Skyvern.PrintPageBlock {
|
|
50
|
+
block_type: "print_page";
|
|
51
|
+
}
|
|
49
52
|
interface SendEmail extends Skyvern.SendEmailBlock {
|
|
50
53
|
block_type: "send_email";
|
|
51
54
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type * as Skyvern from "../index.js";
|
|
2
|
-
export type ForLoopBlockYamlLoopBlocksItem = Skyvern.ForLoopBlockYamlLoopBlocksItem.Task | Skyvern.ForLoopBlockYamlLoopBlocksItem.ForLoop | Skyvern.ForLoopBlockYamlLoopBlocksItem.Code | Skyvern.ForLoopBlockYamlLoopBlocksItem.TextPrompt | Skyvern.ForLoopBlockYamlLoopBlocksItem.DownloadToS3 | Skyvern.ForLoopBlockYamlLoopBlocksItem.UploadToS3 | Skyvern.ForLoopBlockYamlLoopBlocksItem.FileUpload | Skyvern.ForLoopBlockYamlLoopBlocksItem.SendEmail | Skyvern.ForLoopBlockYamlLoopBlocksItem.FileUrlParser | Skyvern.ForLoopBlockYamlLoopBlocksItem.Validation | Skyvern.ForLoopBlockYamlLoopBlocksItem.Action | Skyvern.ForLoopBlockYamlLoopBlocksItem.Navigation | Skyvern.ForLoopBlockYamlLoopBlocksItem.Extraction | Skyvern.ForLoopBlockYamlLoopBlocksItem.Login | Skyvern.ForLoopBlockYamlLoopBlocksItem.Wait | Skyvern.ForLoopBlockYamlLoopBlocksItem.HumanInteraction | Skyvern.ForLoopBlockYamlLoopBlocksItem.FileDownload | Skyvern.ForLoopBlockYamlLoopBlocksItem.GotoUrl | Skyvern.ForLoopBlockYamlLoopBlocksItem.PdfParser | Skyvern.ForLoopBlockYamlLoopBlocksItem.TaskV2 | Skyvern.ForLoopBlockYamlLoopBlocksItem.HttpRequest | Skyvern.ForLoopBlockYamlLoopBlocksItem.Conditional;
|
|
2
|
+
export type ForLoopBlockYamlLoopBlocksItem = Skyvern.ForLoopBlockYamlLoopBlocksItem.Task | Skyvern.ForLoopBlockYamlLoopBlocksItem.ForLoop | Skyvern.ForLoopBlockYamlLoopBlocksItem.Code | Skyvern.ForLoopBlockYamlLoopBlocksItem.TextPrompt | Skyvern.ForLoopBlockYamlLoopBlocksItem.DownloadToS3 | Skyvern.ForLoopBlockYamlLoopBlocksItem.UploadToS3 | Skyvern.ForLoopBlockYamlLoopBlocksItem.FileUpload | Skyvern.ForLoopBlockYamlLoopBlocksItem.SendEmail | Skyvern.ForLoopBlockYamlLoopBlocksItem.FileUrlParser | Skyvern.ForLoopBlockYamlLoopBlocksItem.Validation | Skyvern.ForLoopBlockYamlLoopBlocksItem.Action | Skyvern.ForLoopBlockYamlLoopBlocksItem.Navigation | Skyvern.ForLoopBlockYamlLoopBlocksItem.Extraction | Skyvern.ForLoopBlockYamlLoopBlocksItem.Login | Skyvern.ForLoopBlockYamlLoopBlocksItem.Wait | Skyvern.ForLoopBlockYamlLoopBlocksItem.HumanInteraction | Skyvern.ForLoopBlockYamlLoopBlocksItem.FileDownload | Skyvern.ForLoopBlockYamlLoopBlocksItem.GotoUrl | Skyvern.ForLoopBlockYamlLoopBlocksItem.PdfParser | Skyvern.ForLoopBlockYamlLoopBlocksItem.TaskV2 | Skyvern.ForLoopBlockYamlLoopBlocksItem.HttpRequest | Skyvern.ForLoopBlockYamlLoopBlocksItem.Conditional | Skyvern.ForLoopBlockYamlLoopBlocksItem.PrintPage;
|
|
3
3
|
export declare namespace ForLoopBlockYamlLoopBlocksItem {
|
|
4
4
|
interface Task extends Skyvern.TaskBlockYaml {
|
|
5
5
|
block_type: "task";
|
|
@@ -67,4 +67,7 @@ export declare namespace ForLoopBlockYamlLoopBlocksItem {
|
|
|
67
67
|
interface Conditional extends Skyvern.ConditionalBlockYaml {
|
|
68
68
|
block_type: "conditional";
|
|
69
69
|
}
|
|
70
|
+
interface PrintPage extends Skyvern.PrintPageBlockYaml {
|
|
71
|
+
block_type: "print_page";
|
|
72
|
+
}
|
|
70
73
|
}
|
|
@@ -16,5 +16,7 @@ export interface HttpRequestBlock {
|
|
|
16
16
|
files?: Record<string, string | undefined>;
|
|
17
17
|
timeout?: number;
|
|
18
18
|
follow_redirects?: boolean;
|
|
19
|
+
download_filename?: string;
|
|
20
|
+
save_response_as_file?: boolean;
|
|
19
21
|
parameters?: Skyvern.HttpRequestBlockParametersItem[];
|
|
20
22
|
}
|