@onkernel/sdk 0.90.0 → 0.92.0
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/CHANGELOG.md +16 -0
- package/client.d.mts +5 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +5 -2
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/browser-pools.d.mts +4 -0
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +4 -0
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +29 -1
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +29 -1
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/browsers/telemetry.d.mts +1 -1
- package/resources/browsers/telemetry.d.ts +1 -1
- package/resources/browsers/telemetry.js +1 -1
- package/resources/browsers/telemetry.mjs +1 -1
- package/resources/credential-providers.d.mts +8 -4
- package/resources/credential-providers.d.mts.map +1 -1
- package/resources/credential-providers.d.ts +8 -4
- package/resources/credential-providers.d.ts.map +1 -1
- package/resources/index.d.mts +2 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invocations.d.mts +4 -0
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +4 -0
- package/resources/invocations.d.ts.map +1 -1
- package/resources/organization/entitlements.d.mts +188 -0
- package/resources/organization/entitlements.d.mts.map +1 -0
- package/resources/organization/entitlements.d.ts +188 -0
- package/resources/organization/entitlements.d.ts.map +1 -0
- package/resources/organization/entitlements.js +20 -0
- package/resources/organization/entitlements.js.map +1 -0
- package/resources/organization/entitlements.mjs +16 -0
- package/resources/organization/entitlements.mjs.map +1 -0
- package/resources/organization/index.d.mts +1 -0
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +1 -0
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/index.js +3 -1
- package/resources/organization/index.js.map +1 -1
- package/resources/organization/index.mjs +1 -0
- package/resources/organization/index.mjs.map +1 -1
- package/resources/organization/organization.d.mts +4 -0
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +4 -0
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js +4 -0
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs +4 -0
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/telemetry/destinations.d.mts +138 -0
- package/resources/telemetry/destinations.d.mts.map +1 -0
- package/resources/telemetry/destinations.d.ts +138 -0
- package/resources/telemetry/destinations.d.ts.map +1 -0
- package/resources/telemetry/destinations.js +63 -0
- package/resources/telemetry/destinations.js.map +1 -0
- package/resources/telemetry/destinations.mjs +59 -0
- package/resources/telemetry/destinations.mjs.map +1 -0
- package/resources/telemetry/index.d.mts +3 -0
- package/resources/telemetry/index.d.mts.map +1 -0
- package/resources/telemetry/index.d.ts +3 -0
- package/resources/telemetry/index.d.ts.map +1 -0
- package/resources/telemetry/index.js +9 -0
- package/resources/telemetry/index.js.map +1 -0
- package/resources/telemetry/index.mjs +4 -0
- package/resources/telemetry/index.mjs.map +1 -0
- package/resources/telemetry/telemetry.d.mts +10 -0
- package/resources/telemetry/telemetry.d.mts.map +1 -0
- package/resources/telemetry/telemetry.d.ts +10 -0
- package/resources/telemetry/telemetry.d.ts.map +1 -0
- package/resources/telemetry/telemetry.js +17 -0
- package/resources/telemetry/telemetry.js.map +1 -0
- package/resources/telemetry/telemetry.mjs +12 -0
- package/resources/telemetry/telemetry.mjs.map +1 -0
- package/resources/telemetry.d.mts +2 -0
- package/resources/telemetry.d.mts.map +1 -0
- package/resources/telemetry.d.ts +2 -0
- package/resources/telemetry.d.ts.map +1 -0
- package/resources/telemetry.js +6 -0
- package/resources/telemetry.js.map +1 -0
- package/resources/telemetry.mjs +3 -0
- package/resources/telemetry.mjs.map +1 -0
- package/src/client.ts +9 -0
- package/src/resources/browser-pools.ts +5 -0
- package/src/resources/browsers/browsers.ts +37 -0
- package/src/resources/browsers/index.ts +2 -0
- package/src/resources/browsers/telemetry.ts +1 -1
- package/src/resources/credential-providers.ts +8 -4
- package/src/resources/index.ts +3 -0
- package/src/resources/invocations.ts +5 -0
- package/src/resources/organization/entitlements.ts +234 -0
- package/src/resources/organization/index.ts +1 -0
- package/src/resources/organization/organization.ts +6 -0
- package/src/resources/telemetry/destinations.ts +188 -0
- package/src/resources/telemetry/index.ts +11 -0
- package/src/resources/telemetry/telemetry.ts +29 -0
- package/src/resources/telemetry.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Destinations, type OtlpDestination, type DestinationCreateParams, type DestinationUpdateParams, type DestinationListParams, type OtlpDestinationsOffsetPagination, } from "./destinations.js";
|
|
2
|
+
export { Telemetry } from "./telemetry.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/telemetry/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,YAAY,EACZ,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,gCAAgC,GACtC,0BAAuB;AACxB,OAAO,EAAE,SAAS,EAAE,uBAAoB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Telemetry = exports.Destinations = void 0;
|
|
5
|
+
var destinations_1 = require("./destinations.js");
|
|
6
|
+
Object.defineProperty(exports, "Destinations", { enumerable: true, get: function () { return destinations_1.Destinations; } });
|
|
7
|
+
var telemetry_1 = require("./telemetry.js");
|
|
8
|
+
Object.defineProperty(exports, "Telemetry", { enumerable: true, get: function () { return telemetry_1.Telemetry; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/telemetry/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAOwB;AANtB,4GAAA,YAAY,OAAA;AAOd,4CAAwC;AAA/B,sGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/telemetry/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,YAAY,GAMb,2BAAuB;AACxB,OAAO,EAAE,SAAS,EAAE,wBAAoB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as DestinationsAPI from "./destinations.mjs";
|
|
3
|
+
import { DestinationCreateParams, DestinationListParams, DestinationUpdateParams, Destinations, OtlpDestination, OtlpDestinationsOffsetPagination } from "./destinations.mjs";
|
|
4
|
+
export declare class Telemetry extends APIResource {
|
|
5
|
+
destinations: DestinationsAPI.Destinations;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Telemetry {
|
|
8
|
+
export { Destinations as Destinations, type OtlpDestination as OtlpDestination, type OtlpDestinationsOffsetPagination as OtlpDestinationsOffsetPagination, type DestinationCreateParams as DestinationCreateParams, type DestinationUpdateParams as DestinationUpdateParams, type DestinationListParams as DestinationListParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=telemetry.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry.d.mts","sourceRoot":"","sources":["../../src/resources/telemetry/telemetry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,YAAY,EACZ,eAAe,EACf,gCAAgC,EACjC,2BAAuB;AAExB,qBAAa,SAAU,SAAQ,WAAW;IACxC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;CAC7F;AAID,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as DestinationsAPI from "./destinations.js";
|
|
3
|
+
import { DestinationCreateParams, DestinationListParams, DestinationUpdateParams, Destinations, OtlpDestination, OtlpDestinationsOffsetPagination } from "./destinations.js";
|
|
4
|
+
export declare class Telemetry extends APIResource {
|
|
5
|
+
destinations: DestinationsAPI.Destinations;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace Telemetry {
|
|
8
|
+
export { Destinations as Destinations, type OtlpDestination as OtlpDestination, type OtlpDestinationsOffsetPagination as OtlpDestinationsOffsetPagination, type DestinationCreateParams as DestinationCreateParams, type DestinationUpdateParams as DestinationUpdateParams, type DestinationListParams as DestinationListParams, };
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=telemetry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../../src/resources/telemetry/telemetry.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,eAAe,0BAAuB;AAClD,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,uBAAuB,EACvB,YAAY,EACZ,eAAe,EACf,gCAAgC,EACjC,0BAAuB;AAExB,qBAAa,SAAU,SAAQ,WAAW;IACxC,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;CAC7F;AAID,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,GACpD,CAAC;CACH"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Telemetry = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const DestinationsAPI = tslib_1.__importStar(require("./destinations.js"));
|
|
8
|
+
const destinations_1 = require("./destinations.js");
|
|
9
|
+
class Telemetry extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.destinations = new DestinationsAPI.Destinations(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Telemetry = Telemetry;
|
|
16
|
+
Telemetry.Destinations = destinations_1.Destinations;
|
|
17
|
+
//# sourceMappingURL=telemetry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../../src/resources/telemetry/telemetry.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2EAAkD;AAClD,oDAOwB;AAExB,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;CAAA;AAFD,8BAEC;AAED,SAAS,CAAC,YAAY,GAAG,2BAAY,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as DestinationsAPI from "./destinations.mjs";
|
|
4
|
+
import { Destinations, } from "./destinations.mjs";
|
|
5
|
+
export class Telemetry extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.destinations = new DestinationsAPI.Destinations(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Telemetry.Destinations = Destinations;
|
|
12
|
+
//# sourceMappingURL=telemetry.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry.mjs","sourceRoot":"","sources":["../../src/resources/telemetry/telemetry.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAIL,YAAY,GAGb,2BAAuB;AAExB,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9F,CAAC;CAAA;AAED,SAAS,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry.d.mts","sourceRoot":"","sources":["../src/resources/telemetry.ts"],"names":[],"mappings":"AAEA,sCAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry.d.ts","sourceRoot":"","sources":["../src/resources/telemetry.ts"],"names":[],"mappings":"AAEA,qCAAkC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./telemetry/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=telemetry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry.js","sourceRoot":"","sources":["../src/resources/telemetry.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,+DAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telemetry.mjs","sourceRoot":"","sources":["../src/resources/telemetry.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,sCAAkC"}
|
package/src/client.ts
CHANGED
|
@@ -153,6 +153,8 @@ import {
|
|
|
153
153
|
BrowserListResponse,
|
|
154
154
|
BrowserListResponsesOffsetPagination,
|
|
155
155
|
BrowserLoadExtensionsParams,
|
|
156
|
+
BrowserMemory,
|
|
157
|
+
BrowserMemoryRequest,
|
|
156
158
|
BrowserNetworkConfig,
|
|
157
159
|
BrowserPoolRef,
|
|
158
160
|
BrowserProxy,
|
|
@@ -178,6 +180,7 @@ import {
|
|
|
178
180
|
ProjectsOffsetPagination,
|
|
179
181
|
UpdateProjectRequest,
|
|
180
182
|
} from './resources/projects/projects';
|
|
183
|
+
import { Telemetry } from './resources/telemetry/telemetry';
|
|
181
184
|
import { type Fetch } from './internal/builtin-types';
|
|
182
185
|
import { HeadersLike, NullableHeaders, buildHeaders } from './internal/headers';
|
|
183
186
|
import { FinalRequestOptions, RequestOptions } from './internal/request-options';
|
|
@@ -1018,6 +1021,7 @@ export class Kernel {
|
|
|
1018
1021
|
*/
|
|
1019
1022
|
profiles: API.Profiles = new API.Profiles(this);
|
|
1020
1023
|
auth: API.Auth = new API.Auth(this);
|
|
1024
|
+
telemetry: API.Telemetry = new API.Telemetry(this);
|
|
1021
1025
|
/**
|
|
1022
1026
|
* Create and manage proxy configurations for routing browser traffic.
|
|
1023
1027
|
*/
|
|
@@ -1062,6 +1066,7 @@ Kernel.Invocations = Invocations;
|
|
|
1062
1066
|
Kernel.Browsers = Browsers;
|
|
1063
1067
|
Kernel.Profiles = Profiles;
|
|
1064
1068
|
Kernel.Auth = Auth;
|
|
1069
|
+
Kernel.Telemetry = Telemetry;
|
|
1065
1070
|
Kernel.Proxies = Proxies;
|
|
1066
1071
|
Kernel.Extensions = Extensions;
|
|
1067
1072
|
Kernel.BrowserPools = BrowserPools;
|
|
@@ -1125,6 +1130,8 @@ export declare namespace Kernel {
|
|
|
1125
1130
|
|
|
1126
1131
|
export {
|
|
1127
1132
|
Browsers as Browsers,
|
|
1133
|
+
type BrowserMemory as BrowserMemory,
|
|
1134
|
+
type BrowserMemoryRequest as BrowserMemoryRequest,
|
|
1128
1135
|
type BrowserNetworkConfig as BrowserNetworkConfig,
|
|
1129
1136
|
type BrowserPoolRef as BrowserPoolRef,
|
|
1130
1137
|
type BrowserProxy as BrowserProxy,
|
|
@@ -1157,6 +1164,8 @@ export declare namespace Kernel {
|
|
|
1157
1164
|
|
|
1158
1165
|
export { Auth as Auth };
|
|
1159
1166
|
|
|
1167
|
+
export { Telemetry as Telemetry };
|
|
1168
|
+
|
|
1160
1169
|
export {
|
|
1161
1170
|
Proxies as Proxies,
|
|
1162
1171
|
type ProxyCreateResponse as ProxyCreateResponse,
|
|
@@ -374,6 +374,11 @@ export interface BrowserPoolAcquireResponse {
|
|
|
374
374
|
*/
|
|
375
375
|
headless: boolean;
|
|
376
376
|
|
|
377
|
+
/**
|
|
378
|
+
* Memory allocated to the browser session.
|
|
379
|
+
*/
|
|
380
|
+
memory: BrowsersAPI.BrowserMemory;
|
|
381
|
+
|
|
377
382
|
/**
|
|
378
383
|
* Geographic region of the browser session. Fixed once the session is created.
|
|
379
384
|
*/
|
|
@@ -281,6 +281,16 @@ export type BrowserListResponsesOffsetPagination = OffsetPagination<BrowserListR
|
|
|
281
281
|
|
|
282
282
|
export type ProfilesOffsetPagination = OffsetPagination<Profile>;
|
|
283
283
|
|
|
284
|
+
/**
|
|
285
|
+
* Memory allocated to the browser session.
|
|
286
|
+
*/
|
|
287
|
+
export type BrowserMemory = '1GiB' | '2GiB' | '6GiB' | '8GiB' | '16GiB';
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* Memory requested for a headful, non-GPU browser session.
|
|
291
|
+
*/
|
|
292
|
+
export type BrowserMemoryRequest = '8GiB' | '16GiB';
|
|
293
|
+
|
|
284
294
|
/**
|
|
285
295
|
* Network configuration for a browser session or browser pool.
|
|
286
296
|
*/
|
|
@@ -454,6 +464,11 @@ export interface BrowserCreateResponse {
|
|
|
454
464
|
*/
|
|
455
465
|
headless: boolean;
|
|
456
466
|
|
|
467
|
+
/**
|
|
468
|
+
* Memory allocated to the browser session.
|
|
469
|
+
*/
|
|
470
|
+
memory: BrowserMemory;
|
|
471
|
+
|
|
457
472
|
/**
|
|
458
473
|
* Geographic region of the browser session. Fixed once the session is created.
|
|
459
474
|
*/
|
|
@@ -609,6 +624,11 @@ export interface BrowserRetrieveResponse {
|
|
|
609
624
|
*/
|
|
610
625
|
headless: boolean;
|
|
611
626
|
|
|
627
|
+
/**
|
|
628
|
+
* Memory allocated to the browser session.
|
|
629
|
+
*/
|
|
630
|
+
memory: BrowserMemory;
|
|
631
|
+
|
|
612
632
|
/**
|
|
613
633
|
* Geographic region of the browser session. Fixed once the session is created.
|
|
614
634
|
*/
|
|
@@ -764,6 +784,11 @@ export interface BrowserUpdateResponse {
|
|
|
764
784
|
*/
|
|
765
785
|
headless: boolean;
|
|
766
786
|
|
|
787
|
+
/**
|
|
788
|
+
* Memory allocated to the browser session.
|
|
789
|
+
*/
|
|
790
|
+
memory: BrowserMemory;
|
|
791
|
+
|
|
767
792
|
/**
|
|
768
793
|
* Geographic region of the browser session. Fixed once the session is created.
|
|
769
794
|
*/
|
|
@@ -919,6 +944,11 @@ export interface BrowserListResponse {
|
|
|
919
944
|
*/
|
|
920
945
|
headless: boolean;
|
|
921
946
|
|
|
947
|
+
/**
|
|
948
|
+
* Memory allocated to the browser session.
|
|
949
|
+
*/
|
|
950
|
+
memory: BrowserMemory;
|
|
951
|
+
|
|
922
952
|
/**
|
|
923
953
|
* Geographic region of the browser session. Fixed once the session is created.
|
|
924
954
|
*/
|
|
@@ -1120,6 +1150,11 @@ export interface BrowserCreateParams {
|
|
|
1120
1150
|
*/
|
|
1121
1151
|
kiosk_mode?: boolean;
|
|
1122
1152
|
|
|
1153
|
+
/**
|
|
1154
|
+
* Memory for a headful, non-GPU browser session. Defaults to 8GiB.
|
|
1155
|
+
*/
|
|
1156
|
+
memory?: BrowserMemoryRequest;
|
|
1157
|
+
|
|
1123
1158
|
/**
|
|
1124
1159
|
* Optional human-readable name for the browser session, used to find it later in
|
|
1125
1160
|
* the dashboard. Must be unique among active sessions within the project. Can be
|
|
@@ -1580,6 +1615,8 @@ Browsers.Playwright = Playwright;
|
|
|
1580
1615
|
|
|
1581
1616
|
export declare namespace Browsers {
|
|
1582
1617
|
export {
|
|
1618
|
+
type BrowserMemory as BrowserMemory,
|
|
1619
|
+
type BrowserMemoryRequest as BrowserMemoryRequest,
|
|
1583
1620
|
type BrowserNetworkConfig as BrowserNetworkConfig,
|
|
1584
1621
|
type BrowserPoolRef as BrowserPoolRef,
|
|
1585
1622
|
type BrowserProxy as BrowserProxy,
|
|
@@ -10,7 +10,7 @@ import { RequestOptions } from '../../internal/request-options';
|
|
|
10
10
|
import { path } from '../../internal/utils/path';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* Stream live telemetry events from a browser session.
|
|
13
|
+
* Stream live telemetry events from a browser session, and manage the destinations sessions export them to.
|
|
14
14
|
*/
|
|
15
15
|
export class Telemetry extends APIResource {
|
|
16
16
|
/**
|
|
@@ -136,7 +136,8 @@ export interface CreateCredentialProviderRequest {
|
|
|
136
136
|
token: string;
|
|
137
137
|
|
|
138
138
|
/**
|
|
139
|
-
* Human-readable name for this provider instance (unique per org)
|
|
139
|
+
* Human-readable name for this provider instance (unique per org). Surrounding
|
|
140
|
+
* whitespace is trimmed and the trimmed value must be non-empty.
|
|
140
141
|
*/
|
|
141
142
|
name: string;
|
|
142
143
|
|
|
@@ -281,7 +282,8 @@ export interface UpdateCredentialProviderRequest {
|
|
|
281
282
|
enabled?: boolean;
|
|
282
283
|
|
|
283
284
|
/**
|
|
284
|
-
* Human-readable name for this provider instance
|
|
285
|
+
* Human-readable name for this provider instance. Surrounding whitespace is
|
|
286
|
+
* trimmed and the trimmed value must be non-empty.
|
|
285
287
|
*/
|
|
286
288
|
name?: string;
|
|
287
289
|
|
|
@@ -302,7 +304,8 @@ export interface CredentialProviderCreateParams {
|
|
|
302
304
|
token: string;
|
|
303
305
|
|
|
304
306
|
/**
|
|
305
|
-
* Human-readable name for this provider instance (unique per org)
|
|
307
|
+
* Human-readable name for this provider instance (unique per org). Surrounding
|
|
308
|
+
* whitespace is trimmed and the trimmed value must be non-empty.
|
|
306
309
|
*/
|
|
307
310
|
name: string;
|
|
308
311
|
|
|
@@ -334,7 +337,8 @@ export interface CredentialProviderUpdateParams {
|
|
|
334
337
|
enabled?: boolean;
|
|
335
338
|
|
|
336
339
|
/**
|
|
337
|
-
* Human-readable name for this provider instance
|
|
340
|
+
* Human-readable name for this provider instance. Surrounding whitespace is
|
|
341
|
+
* trimmed and the trimmed value must be non-empty.
|
|
338
342
|
*/
|
|
339
343
|
name?: string;
|
|
340
344
|
|
package/src/resources/index.ts
CHANGED
|
@@ -40,6 +40,8 @@ export {
|
|
|
40
40
|
} from './browser-pools';
|
|
41
41
|
export {
|
|
42
42
|
Browsers,
|
|
43
|
+
type BrowserMemory,
|
|
44
|
+
type BrowserMemoryRequest,
|
|
43
45
|
type BrowserNetworkConfig,
|
|
44
46
|
type BrowserPoolRef,
|
|
45
47
|
type BrowserProxy,
|
|
@@ -154,3 +156,4 @@ export {
|
|
|
154
156
|
type ProxyCheckParams,
|
|
155
157
|
type ProxyListResponsesOffsetPagination,
|
|
156
158
|
} from './proxies';
|
|
159
|
+
export { Telemetry } from './telemetry/telemetry';
|
|
@@ -434,6 +434,11 @@ export namespace InvocationListBrowsersResponse {
|
|
|
434
434
|
*/
|
|
435
435
|
headless: boolean;
|
|
436
436
|
|
|
437
|
+
/**
|
|
438
|
+
* Memory allocated to the browser session.
|
|
439
|
+
*/
|
|
440
|
+
memory: BrowsersAPI.BrowserMemory;
|
|
441
|
+
|
|
437
442
|
/**
|
|
438
443
|
* Geographic region of the browser session. Fixed once the session is created.
|
|
439
444
|
*/
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Read and manage organization-level limits.
|
|
9
|
+
*/
|
|
10
|
+
export class Entitlements extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get the authenticated organization's effective feature access and constraints
|
|
13
|
+
* after applying its plan, active trial treatment, plan status, and
|
|
14
|
+
* organization-specific overrides. Null constraint values mean unlimited.
|
|
15
|
+
*/
|
|
16
|
+
retrieve(options?: RequestOptions): APIPromise<OrgEntitlements> {
|
|
17
|
+
return this._client.get('/org/entitlements', options);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Effective feature access and constraints for the authenticated organization.
|
|
23
|
+
* Values already include trial treatment, plan status, and organization-specific
|
|
24
|
+
* overrides; consumers should use these resolved values instead of comparing plan
|
|
25
|
+
* IDs.
|
|
26
|
+
*/
|
|
27
|
+
export interface OrgEntitlements {
|
|
28
|
+
features: OrgEntitlements.Features;
|
|
29
|
+
|
|
30
|
+
limits: OrgEntitlements.Limits;
|
|
31
|
+
|
|
32
|
+
plan: OrgEntitlements.Plan;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export namespace OrgEntitlements {
|
|
36
|
+
export interface Features {
|
|
37
|
+
browser_extensions: Features.BrowserExtensions;
|
|
38
|
+
|
|
39
|
+
browser_pools: Features.BrowserPools;
|
|
40
|
+
|
|
41
|
+
browser_replays: Features.BrowserReplays;
|
|
42
|
+
|
|
43
|
+
credential_providers: Features.CredentialProviders;
|
|
44
|
+
|
|
45
|
+
credentials: Features.Credentials;
|
|
46
|
+
|
|
47
|
+
custom_proxies: Features.CustomProxies;
|
|
48
|
+
|
|
49
|
+
file_io: Features.FileIo;
|
|
50
|
+
|
|
51
|
+
gpu: Features.GPU;
|
|
52
|
+
|
|
53
|
+
managed_auth: Features.ManagedAuth;
|
|
54
|
+
|
|
55
|
+
managed_proxies: Features.ManagedProxies;
|
|
56
|
+
|
|
57
|
+
profiles: Features.Profiles;
|
|
58
|
+
|
|
59
|
+
proxy_bypass_hosts: Features.ProxyBypassHosts;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export namespace Features {
|
|
63
|
+
export interface BrowserExtensions {
|
|
64
|
+
/**
|
|
65
|
+
* Whether browser extensions are available.
|
|
66
|
+
*/
|
|
67
|
+
enabled: boolean;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Maximum active custom extensions the organization may store. Null means
|
|
71
|
+
* unlimited. Loading stored extensions into a browser is not plan-limited.
|
|
72
|
+
*/
|
|
73
|
+
max_stored_per_org: number | null;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface BrowserPools {
|
|
77
|
+
/**
|
|
78
|
+
* Whether the organization is entitled to use this feature.
|
|
79
|
+
*/
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export interface BrowserReplays {
|
|
84
|
+
/**
|
|
85
|
+
* Whether browser replay recording is available.
|
|
86
|
+
*/
|
|
87
|
+
enabled: boolean;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Number of days browser replays are retained, matching the replay reaper policy.
|
|
91
|
+
*/
|
|
92
|
+
retention_days: number;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export interface CredentialProviders {
|
|
96
|
+
/**
|
|
97
|
+
* Whether the organization is entitled to use this feature.
|
|
98
|
+
*/
|
|
99
|
+
enabled: boolean;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export interface Credentials {
|
|
103
|
+
/**
|
|
104
|
+
* Whether the organization is entitled to use this feature.
|
|
105
|
+
*/
|
|
106
|
+
enabled: boolean;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface CustomProxies {
|
|
110
|
+
/**
|
|
111
|
+
* Whether the organization is entitled to use this feature.
|
|
112
|
+
*/
|
|
113
|
+
enabled: boolean;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export interface FileIo {
|
|
117
|
+
/**
|
|
118
|
+
* Whether the organization is entitled to use this feature.
|
|
119
|
+
*/
|
|
120
|
+
enabled: boolean;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export interface GPU {
|
|
124
|
+
/**
|
|
125
|
+
* Whether the organization is entitled to use this feature.
|
|
126
|
+
*/
|
|
127
|
+
enabled: boolean;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface ManagedAuth {
|
|
131
|
+
/**
|
|
132
|
+
* Whether managed auth is available.
|
|
133
|
+
*/
|
|
134
|
+
enabled: boolean;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* Effective interval in seconds used when a connection is created without an
|
|
138
|
+
* explicit health-check interval.
|
|
139
|
+
*/
|
|
140
|
+
health_check_interval_default_seconds: number;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Maximum accepted managed auth health-check interval in seconds.
|
|
144
|
+
*/
|
|
145
|
+
health_check_interval_max_seconds: number;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Minimum accepted managed auth health-check interval in seconds.
|
|
149
|
+
*/
|
|
150
|
+
health_check_interval_min_seconds: number;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Maximum active managed auth connections in the organization. Null means
|
|
154
|
+
* unlimited.
|
|
155
|
+
*/
|
|
156
|
+
max_connections: number | null;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export interface ManagedProxies {
|
|
160
|
+
/**
|
|
161
|
+
* Whether the organization is entitled to use this feature.
|
|
162
|
+
*/
|
|
163
|
+
enabled: boolean;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface Profiles {
|
|
167
|
+
/**
|
|
168
|
+
* Whether the organization is entitled to use this feature.
|
|
169
|
+
*/
|
|
170
|
+
enabled: boolean;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface ProxyBypassHosts {
|
|
174
|
+
/**
|
|
175
|
+
* Whether the organization is entitled to use this feature.
|
|
176
|
+
*/
|
|
177
|
+
enabled: boolean;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface Limits {
|
|
182
|
+
/**
|
|
183
|
+
* Effective org-level default concurrent invocation ceiling for apps without an
|
|
184
|
+
* app-specific override. App-specific overrides are not represented here.
|
|
185
|
+
*/
|
|
186
|
+
default_max_concurrent_invocations_per_app: number;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Effective organization-wide ceiling shared by on-demand browsers and browser
|
|
190
|
+
* pool reservations.
|
|
191
|
+
*/
|
|
192
|
+
max_concurrent_browsers: number;
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* Effective organization-wide concurrent app invocation ceiling.
|
|
196
|
+
*/
|
|
197
|
+
max_concurrent_invocations: number;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface Plan {
|
|
201
|
+
/**
|
|
202
|
+
* The organization's contractual plan identifier. Use the resolved feature and
|
|
203
|
+
* limit values, not this field, for access decisions.
|
|
204
|
+
*/
|
|
205
|
+
id: 'FREE' | 'HOBBYIST' | 'START_UP' | 'ENTERPRISE';
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* The plan used to resolve plan-based access. Active trials resolve to START_UP
|
|
209
|
+
* regardless of the contractual plan.
|
|
210
|
+
*/
|
|
211
|
+
effective_id: 'FREE' | 'HOBBYIST' | 'START_UP' | 'ENTERPRISE';
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Whether the organization is currently within its trial period.
|
|
215
|
+
*/
|
|
216
|
+
is_trialing: boolean;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Current billing status of the contractual plan, or null when no billing status
|
|
220
|
+
* is recorded. Status-sensitive feature values already account for it.
|
|
221
|
+
*/
|
|
222
|
+
status: 'NEEDS_PAYMENT_METHOD' | 'ACTIVE' | 'CANCELED' | 'UNPAID' | null;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Configured trial end timestamp, or null when the organization has no trial. A
|
|
226
|
+
* past timestamp may be returned when is_trialing is false.
|
|
227
|
+
*/
|
|
228
|
+
trial_ends_at: string | null;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
export declare namespace Entitlements {
|
|
233
|
+
export { type OrgEntitlements as OrgEntitlements };
|
|
234
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export { Entitlements, type OrgEntitlements } from './entitlements';
|
|
3
4
|
export { Limits, type OrgLimits, type UpdateOrgLimitsRequest, type LimitUpdateParams } from './limits';
|
|
4
5
|
export { Organization } from './organization';
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as EntitlementsAPI from './entitlements';
|
|
5
|
+
import { Entitlements, OrgEntitlements } from './entitlements';
|
|
4
6
|
import * as LimitsAPI from './limits';
|
|
5
7
|
import { LimitUpdateParams, Limits, OrgLimits, UpdateOrgLimitsRequest } from './limits';
|
|
6
8
|
|
|
7
9
|
export class Organization extends APIResource {
|
|
10
|
+
entitlements: EntitlementsAPI.Entitlements = new EntitlementsAPI.Entitlements(this._client);
|
|
8
11
|
limits: LimitsAPI.Limits = new LimitsAPI.Limits(this._client);
|
|
9
12
|
}
|
|
10
13
|
|
|
14
|
+
Organization.Entitlements = Entitlements;
|
|
11
15
|
Organization.Limits = Limits;
|
|
12
16
|
|
|
13
17
|
export declare namespace Organization {
|
|
18
|
+
export { Entitlements as Entitlements, type OrgEntitlements as OrgEntitlements };
|
|
19
|
+
|
|
14
20
|
export {
|
|
15
21
|
Limits as Limits,
|
|
16
22
|
type OrgLimits as OrgLimits,
|