@onkernel/sdk 0.65.0 → 0.67.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 +22 -0
- package/client.d.mts +7 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -1
- package/client.d.ts.map +1 -1
- package/client.js +9 -1
- package/client.js.map +1 -1
- package/client.mjs +9 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/auth/connections.d.mts +20 -20
- package/resources/auth/connections.d.ts +20 -20
- package/resources/browser-pools.d.mts +7 -7
- package/resources/browser-pools.d.ts +7 -7
- package/resources/browser-pools.js +1 -1
- package/resources/browser-pools.mjs +1 -1
- package/resources/browsers/browsers.d.mts +18 -5
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +18 -5
- 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/credentials.d.mts +1 -2
- package/resources/credentials.d.mts.map +1 -1
- package/resources/credentials.d.ts +1 -2
- package/resources/credentials.d.ts.map +1 -1
- package/resources/credentials.js +1 -2
- package/resources/credentials.js.map +1 -1
- package/resources/credentials.mjs +1 -2
- package/resources/credentials.mjs.map +1 -1
- package/resources/extensions.d.mts +1 -1
- package/resources/extensions.d.ts +1 -1
- package/resources/extensions.js +1 -1
- package/resources/extensions.mjs +1 -1
- package/resources/index.d.mts +1 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -0
- 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/organization/index.d.mts +3 -0
- package/resources/organization/index.d.mts.map +1 -0
- package/resources/organization/index.d.ts +3 -0
- package/resources/organization/index.d.ts.map +1 -0
- package/resources/organization/index.js +9 -0
- package/resources/organization/index.js.map +1 -0
- package/resources/organization/index.mjs +4 -0
- package/resources/organization/index.mjs.map +1 -0
- package/resources/organization/limits.d.mts +55 -0
- package/resources/organization/limits.d.mts.map +1 -0
- package/resources/organization/limits.d.ts +55 -0
- package/resources/organization/limits.d.ts.map +1 -0
- package/resources/organization/limits.js +28 -0
- package/resources/organization/limits.js.map +1 -0
- package/resources/organization/limits.mjs +24 -0
- package/resources/organization/limits.mjs.map +1 -0
- package/resources/organization/organization.d.mts +10 -0
- package/resources/organization/organization.d.mts.map +1 -0
- package/resources/organization/organization.d.ts +10 -0
- package/resources/organization/organization.d.ts.map +1 -0
- package/resources/organization/organization.js +17 -0
- package/resources/organization/organization.js.map +1 -0
- package/resources/organization/organization.mjs +12 -0
- package/resources/organization/organization.mjs.map +1 -0
- package/resources/organization.d.mts +2 -0
- package/resources/organization.d.mts.map +1 -0
- package/resources/organization.d.ts +2 -0
- package/resources/organization.d.ts.map +1 -0
- package/resources/organization.js +6 -0
- package/resources/organization.js.map +1 -0
- package/resources/organization.mjs +3 -0
- package/resources/organization.mjs.map +1 -0
- package/resources/proxies.d.mts +3 -3
- package/resources/proxies.d.ts +3 -3
- package/resources/proxies.js +3 -3
- package/resources/proxies.mjs +3 -3
- package/src/client.ts +14 -0
- package/src/resources/auth/connections.ts +20 -20
- package/src/resources/browser-pools.ts +7 -7
- package/src/resources/browsers/browsers.ts +20 -5
- package/src/resources/credentials.ts +1 -2
- package/src/resources/extensions.ts +1 -1
- package/src/resources/index.ts +1 -0
- package/src/resources/organization/index.ts +4 -0
- package/src/resources/organization/limits.ts +71 -0
- package/src/resources/organization/organization.ts +20 -0
- package/src/resources/organization.ts +3 -0
- package/src/resources/proxies.ts +3 -3
- 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
package/resources/proxies.mjs
CHANGED
|
@@ -8,19 +8,19 @@ import { path } from "../internal/utils/path.mjs";
|
|
|
8
8
|
*/
|
|
9
9
|
export class Proxies extends APIResource {
|
|
10
10
|
/**
|
|
11
|
-
* Create a new proxy configuration
|
|
11
|
+
* Create a new proxy configuration in the resolved project.
|
|
12
12
|
*/
|
|
13
13
|
create(body, options) {
|
|
14
14
|
return this._client.post('/proxies', { body, ...options });
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Retrieve a proxy
|
|
17
|
+
* Retrieve a proxy in the resolved project by ID.
|
|
18
18
|
*/
|
|
19
19
|
retrieve(id, options) {
|
|
20
20
|
return this._client.get(path `/proxies/${id}`, options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* List proxies
|
|
23
|
+
* List proxies in the resolved project.
|
|
24
24
|
*/
|
|
25
25
|
list(query = {}, options) {
|
|
26
26
|
return this._client.getAPIList('/proxies', (OffsetPagination), { query, ...options });
|
package/src/client.ts
CHANGED
|
@@ -139,6 +139,7 @@ import {
|
|
|
139
139
|
Profile,
|
|
140
140
|
Tags,
|
|
141
141
|
} from './resources/browsers/browsers';
|
|
142
|
+
import { Organization } from './resources/organization/organization';
|
|
142
143
|
import {
|
|
143
144
|
CreateProjectRequest,
|
|
144
145
|
Project,
|
|
@@ -174,6 +175,8 @@ export interface ClientOptions {
|
|
|
174
175
|
*/
|
|
175
176
|
apiKey?: string | undefined;
|
|
176
177
|
|
|
178
|
+
projectID?: string | null | undefined;
|
|
179
|
+
|
|
177
180
|
/**
|
|
178
181
|
* Specifies the environment to use for the API.
|
|
179
182
|
*
|
|
@@ -257,6 +260,7 @@ export interface ClientOptions {
|
|
|
257
260
|
*/
|
|
258
261
|
export class Kernel {
|
|
259
262
|
apiKey: string;
|
|
263
|
+
projectID: string | null;
|
|
260
264
|
|
|
261
265
|
baseURL: string;
|
|
262
266
|
maxRetries: number;
|
|
@@ -276,6 +280,7 @@ export class Kernel {
|
|
|
276
280
|
* API Client for interfacing with the Kernel API.
|
|
277
281
|
*
|
|
278
282
|
* @param {string | undefined} [opts.apiKey=process.env['KERNEL_API_KEY'] ?? undefined]
|
|
283
|
+
* @param {string | null | undefined} [opts.projectID]
|
|
279
284
|
* @param {Environment} [opts.environment=production] - Specifies the environment URL to use for the API.
|
|
280
285
|
* @param {string} [opts.baseURL=process.env['KERNEL_BASE_URL'] ?? https://api.onkernel.com/] - Override the default base URL for the API.
|
|
281
286
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
@@ -288,6 +293,7 @@ export class Kernel {
|
|
|
288
293
|
constructor({
|
|
289
294
|
baseURL = readEnv('KERNEL_BASE_URL'),
|
|
290
295
|
apiKey = readEnv('KERNEL_API_KEY'),
|
|
296
|
+
projectID = null,
|
|
291
297
|
...opts
|
|
292
298
|
}: ClientOptions = {}) {
|
|
293
299
|
// Check for Bun runtime in a way that avoids type errors if Bun is not defined
|
|
@@ -310,6 +316,7 @@ export class Kernel {
|
|
|
310
316
|
|
|
311
317
|
const options: ClientOptions = {
|
|
312
318
|
apiKey,
|
|
319
|
+
projectID,
|
|
313
320
|
...opts,
|
|
314
321
|
baseURL,
|
|
315
322
|
environment: opts.environment ?? 'production',
|
|
@@ -357,6 +364,7 @@ export class Kernel {
|
|
|
357
364
|
this._options = options;
|
|
358
365
|
|
|
359
366
|
this.apiKey = apiKey;
|
|
367
|
+
this.projectID = projectID;
|
|
360
368
|
}
|
|
361
369
|
|
|
362
370
|
/**
|
|
@@ -374,6 +382,7 @@ export class Kernel {
|
|
|
374
382
|
fetch: this.rawFetch,
|
|
375
383
|
fetchOptions: this.fetchOptions,
|
|
376
384
|
apiKey: this.apiKey,
|
|
385
|
+
projectID: this.projectID,
|
|
377
386
|
...options,
|
|
378
387
|
});
|
|
379
388
|
client.browserRouteCache = this.browserRouteCache;
|
|
@@ -850,6 +859,7 @@ export class Kernel {
|
|
|
850
859
|
'X-Stainless-Retry-Count': String(retryCount),
|
|
851
860
|
...(options.timeout ? { 'X-Stainless-Timeout': String(Math.trunc(options.timeout / 1000)) } : {}),
|
|
852
861
|
...getPlatformHeaders(),
|
|
862
|
+
'X-Kernel-Project-Id': this.projectID,
|
|
853
863
|
},
|
|
854
864
|
await this.authHeaders(options),
|
|
855
865
|
this._options.defaultHeaders,
|
|
@@ -983,6 +993,7 @@ export class Kernel {
|
|
|
983
993
|
* Create and manage projects for resource isolation within an organization.
|
|
984
994
|
*/
|
|
985
995
|
projects: API.Projects = new API.Projects(this);
|
|
996
|
+
organization: API.Organization = new API.Organization(this);
|
|
986
997
|
/**
|
|
987
998
|
* Create and manage API keys for organization and project-scoped access.
|
|
988
999
|
*/
|
|
@@ -1004,6 +1015,7 @@ Kernel.Extensions = Extensions;
|
|
|
1004
1015
|
Kernel.BrowserPools = BrowserPools;
|
|
1005
1016
|
Kernel.Credentials = Credentials;
|
|
1006
1017
|
Kernel.Projects = Projects;
|
|
1018
|
+
Kernel.Organization = Organization;
|
|
1007
1019
|
Kernel.APIKeys = APIKeys;
|
|
1008
1020
|
Kernel.CredentialProviders = CredentialProviders;
|
|
1009
1021
|
|
|
@@ -1138,6 +1150,8 @@ export declare namespace Kernel {
|
|
|
1138
1150
|
type ProjectListParams as ProjectListParams,
|
|
1139
1151
|
};
|
|
1140
1152
|
|
|
1153
|
+
export { Organization as Organization };
|
|
1154
|
+
|
|
1141
1155
|
export {
|
|
1142
1156
|
APIKeys as APIKeys,
|
|
1143
1157
|
type APIKey as APIKey,
|
|
@@ -699,8 +699,8 @@ export interface ManagedAuthCreateRequest {
|
|
|
699
699
|
login_url?: string;
|
|
700
700
|
|
|
701
701
|
/**
|
|
702
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
703
|
-
*
|
|
702
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
703
|
+
* project as the resource referencing it.
|
|
704
704
|
*/
|
|
705
705
|
proxy?: ManagedAuthCreateRequest.Proxy;
|
|
706
706
|
|
|
@@ -748,8 +748,8 @@ export namespace ManagedAuthCreateRequest {
|
|
|
748
748
|
}
|
|
749
749
|
|
|
750
750
|
/**
|
|
751
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
752
|
-
*
|
|
751
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
752
|
+
* project as the resource referencing it.
|
|
753
753
|
*/
|
|
754
754
|
export interface Proxy {
|
|
755
755
|
/**
|
|
@@ -812,8 +812,8 @@ export interface ManagedAuthUpdateRequest {
|
|
|
812
812
|
login_url?: string;
|
|
813
813
|
|
|
814
814
|
/**
|
|
815
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
816
|
-
*
|
|
815
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
816
|
+
* project as the resource referencing it.
|
|
817
817
|
*/
|
|
818
818
|
proxy?: ManagedAuthUpdateRequest.Proxy;
|
|
819
819
|
|
|
@@ -859,8 +859,8 @@ export namespace ManagedAuthUpdateRequest {
|
|
|
859
859
|
}
|
|
860
860
|
|
|
861
861
|
/**
|
|
862
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
863
|
-
*
|
|
862
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
863
|
+
* project as the resource referencing it.
|
|
864
864
|
*/
|
|
865
865
|
export interface Proxy {
|
|
866
866
|
/**
|
|
@@ -1215,8 +1215,8 @@ export interface ConnectionCreateParams {
|
|
|
1215
1215
|
login_url?: string;
|
|
1216
1216
|
|
|
1217
1217
|
/**
|
|
1218
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1219
|
-
*
|
|
1218
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1219
|
+
* project as the resource referencing it.
|
|
1220
1220
|
*/
|
|
1221
1221
|
proxy?: ConnectionCreateParams.Proxy;
|
|
1222
1222
|
|
|
@@ -1264,8 +1264,8 @@ export namespace ConnectionCreateParams {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
|
|
1266
1266
|
/**
|
|
1267
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1268
|
-
*
|
|
1267
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1268
|
+
* project as the resource referencing it.
|
|
1269
1269
|
*/
|
|
1270
1270
|
export interface Proxy {
|
|
1271
1271
|
/**
|
|
@@ -1325,8 +1325,8 @@ export interface ConnectionUpdateParams {
|
|
|
1325
1325
|
login_url?: string;
|
|
1326
1326
|
|
|
1327
1327
|
/**
|
|
1328
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1329
|
-
*
|
|
1328
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1329
|
+
* project as the resource referencing it.
|
|
1330
1330
|
*/
|
|
1331
1331
|
proxy?: ConnectionUpdateParams.Proxy;
|
|
1332
1332
|
|
|
@@ -1372,8 +1372,8 @@ export namespace ConnectionUpdateParams {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
|
|
1374
1374
|
/**
|
|
1375
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1376
|
-
*
|
|
1375
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1376
|
+
* project as the resource referencing it.
|
|
1377
1377
|
*/
|
|
1378
1378
|
export interface Proxy {
|
|
1379
1379
|
/**
|
|
@@ -1402,8 +1402,8 @@ export interface ConnectionListParams extends OffsetPaginationParams {
|
|
|
1402
1402
|
|
|
1403
1403
|
export interface ConnectionLoginParams {
|
|
1404
1404
|
/**
|
|
1405
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1406
|
-
*
|
|
1405
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1406
|
+
* project as the resource referencing it.
|
|
1407
1407
|
*/
|
|
1408
1408
|
proxy?: ConnectionLoginParams.Proxy;
|
|
1409
1409
|
|
|
@@ -1416,8 +1416,8 @@ export interface ConnectionLoginParams {
|
|
|
1416
1416
|
|
|
1417
1417
|
export namespace ConnectionLoginParams {
|
|
1418
1418
|
/**
|
|
1419
|
-
* Proxy selection. Provide either id or name. The proxy must
|
|
1420
|
-
*
|
|
1419
|
+
* Proxy selection. Provide either id or name. The proxy must be in the same
|
|
1420
|
+
* project as the resource referencing it.
|
|
1421
1421
|
*/
|
|
1422
1422
|
export interface Proxy {
|
|
1423
1423
|
/**
|
|
@@ -57,7 +57,7 @@ export class BrowserPools extends APIResource {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
|
-
* List browser pools
|
|
60
|
+
* List browser pools in the resolved project.
|
|
61
61
|
*
|
|
62
62
|
* @example
|
|
63
63
|
* ```ts
|
|
@@ -241,8 +241,8 @@ export namespace BrowserPool {
|
|
|
241
241
|
profile?: Shared.BrowserProfile;
|
|
242
242
|
|
|
243
243
|
/**
|
|
244
|
-
* Optional proxy to associate to the browser session. Must reference a proxy
|
|
245
|
-
*
|
|
244
|
+
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
245
|
+
* the same project as the browser session.
|
|
246
246
|
*/
|
|
247
247
|
proxy_id?: string;
|
|
248
248
|
|
|
@@ -467,8 +467,8 @@ export interface BrowserPoolCreateParams {
|
|
|
467
467
|
profile?: Shared.BrowserProfile;
|
|
468
468
|
|
|
469
469
|
/**
|
|
470
|
-
* Optional proxy to associate to the browser session. Must reference a proxy
|
|
471
|
-
*
|
|
470
|
+
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
471
|
+
* the same project as the browser session.
|
|
472
472
|
*/
|
|
473
473
|
proxy_id?: string;
|
|
474
474
|
|
|
@@ -559,8 +559,8 @@ export interface BrowserPoolUpdateParams {
|
|
|
559
559
|
profile?: Shared.BrowserProfile;
|
|
560
560
|
|
|
561
561
|
/**
|
|
562
|
-
* Optional proxy to associate to the browser session. Must reference a proxy
|
|
563
|
-
*
|
|
562
|
+
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
563
|
+
* the same project as the browser session.
|
|
564
564
|
*/
|
|
565
565
|
proxy_id?: string;
|
|
566
566
|
|
|
@@ -928,8 +928,8 @@ export interface BrowserCreateParams {
|
|
|
928
928
|
|
|
929
929
|
/**
|
|
930
930
|
* Optional human-readable name for the browser session, used to find it later in
|
|
931
|
-
* the dashboard. Must be unique among active sessions within the project.
|
|
932
|
-
*
|
|
931
|
+
* the dashboard. Must be unique among active sessions within the project. Can be
|
|
932
|
+
* changed later via PATCH /browsers/{id_or_name}.
|
|
933
933
|
*/
|
|
934
934
|
name?: string;
|
|
935
935
|
|
|
@@ -941,8 +941,8 @@ export interface BrowserCreateParams {
|
|
|
941
941
|
profile?: Shared.BrowserProfile;
|
|
942
942
|
|
|
943
943
|
/**
|
|
944
|
-
* Optional proxy to associate to the browser session. Must reference a proxy
|
|
945
|
-
*
|
|
944
|
+
* Optional proxy to associate to the browser session. Must reference a proxy in
|
|
945
|
+
* the same project as the browser session.
|
|
946
946
|
*/
|
|
947
947
|
proxy_id?: string;
|
|
948
948
|
|
|
@@ -961,7 +961,8 @@ export interface BrowserCreateParams {
|
|
|
961
961
|
|
|
962
962
|
/**
|
|
963
963
|
* Optional user-defined key-value tags for the browser session, used to find and
|
|
964
|
-
* group sessions later.
|
|
964
|
+
* group sessions later. Can be changed later via PATCH /browsers/{id_or_name}. Up
|
|
965
|
+
* to 50 pairs.
|
|
965
966
|
*/
|
|
966
967
|
tags?: Tags;
|
|
967
968
|
|
|
@@ -1041,6 +1042,13 @@ export interface BrowserUpdateParams {
|
|
|
1041
1042
|
*/
|
|
1042
1043
|
disable_default_proxy?: boolean;
|
|
1043
1044
|
|
|
1045
|
+
/**
|
|
1046
|
+
* Human-readable name for the browser session. Omit to leave unchanged, set to an
|
|
1047
|
+
* empty string to clear the name. When set, must be unique among active sessions
|
|
1048
|
+
* within the project.
|
|
1049
|
+
*/
|
|
1050
|
+
name?: string | null;
|
|
1051
|
+
|
|
1044
1052
|
/**
|
|
1045
1053
|
* Profile to load into the browser session. Only allowed if the session does not
|
|
1046
1054
|
* already have a profile loaded.
|
|
@@ -1053,6 +1061,13 @@ export interface BrowserUpdateParams {
|
|
|
1053
1061
|
*/
|
|
1054
1062
|
proxy_id?: string | null;
|
|
1055
1063
|
|
|
1064
|
+
/**
|
|
1065
|
+
* User-defined key-value tags for the browser session. Omit to leave unchanged.
|
|
1066
|
+
* Provide a map to replace the entire tag set (full replace, not a merge). Set to
|
|
1067
|
+
* an empty object ({}) to clear all tags. Up to 50 pairs.
|
|
1068
|
+
*/
|
|
1069
|
+
tags?: Tags | null;
|
|
1070
|
+
|
|
1056
1071
|
/**
|
|
1057
1072
|
* Telemetry configuration. Omit, set to null, or set to an empty object ({}) to
|
|
1058
1073
|
* leave the existing configuration unchanged. Set enabled to true to enable
|
|
@@ -60,8 +60,7 @@ export class Credentials extends APIResource {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
* List credentials
|
|
64
|
-
* returned.
|
|
63
|
+
* List credentials in the resolved project. Credential values are not returned.
|
|
65
64
|
*
|
|
66
65
|
* @example
|
|
67
66
|
* ```ts
|
package/src/resources/index.ts
CHANGED
|
@@ -109,6 +109,7 @@ export {
|
|
|
109
109
|
type InvocationFollowParams,
|
|
110
110
|
type InvocationListResponsesOffsetPagination,
|
|
111
111
|
} from './invocations';
|
|
112
|
+
export { Organization } from './organization/organization';
|
|
112
113
|
export { Profiles, type ProfileCreateParams, type ProfileListParams } from './profiles';
|
|
113
114
|
export {
|
|
114
115
|
Projects,
|
|
@@ -0,0 +1,71 @@
|
|
|
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 Limits extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Get the organization's concurrent session ceiling and the default per-project
|
|
13
|
+
* concurrency cap applied to projects without an explicit override.
|
|
14
|
+
*/
|
|
15
|
+
retrieve(options?: RequestOptions): APIPromise<OrgLimits> {
|
|
16
|
+
return this._client.get('/org/limits', options);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Set the default per-project concurrency cap applied to projects without an
|
|
21
|
+
* explicit override. Set the value to 0 to remove the default; omit to leave it
|
|
22
|
+
* unchanged. The default cannot exceed the organization's concurrent session
|
|
23
|
+
* ceiling.
|
|
24
|
+
*/
|
|
25
|
+
update(body: LimitUpdateParams, options?: RequestOptions): APIPromise<OrgLimits> {
|
|
26
|
+
return this._client.patch('/org/limits', { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface OrgLimits {
|
|
31
|
+
/**
|
|
32
|
+
* Default maximum concurrent browser sessions applied to every project that has no
|
|
33
|
+
* explicit per-project override. Null means no org-level default, so such projects
|
|
34
|
+
* are uncapped (only the org-wide limit applies). Applies to existing and newly
|
|
35
|
+
* created projects.
|
|
36
|
+
*/
|
|
37
|
+
default_project_max_concurrent_sessions?: number | null;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The organization's effective concurrent browser session ceiling, from its plan
|
|
41
|
+
* or an override. Read-only and shared across all projects in the org; a
|
|
42
|
+
* per-project default cannot exceed it.
|
|
43
|
+
*/
|
|
44
|
+
max_concurrent_sessions?: number;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface UpdateOrgLimitsRequest {
|
|
48
|
+
/**
|
|
49
|
+
* Default maximum concurrent browser sessions for projects without an explicit
|
|
50
|
+
* override. Set to 0 to remove the default; omit to leave unchanged. Cannot exceed
|
|
51
|
+
* the organization's concurrent session ceiling.
|
|
52
|
+
*/
|
|
53
|
+
default_project_max_concurrent_sessions?: number | null;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface LimitUpdateParams {
|
|
57
|
+
/**
|
|
58
|
+
* Default maximum concurrent browser sessions for projects without an explicit
|
|
59
|
+
* override. Set to 0 to remove the default; omit to leave unchanged. Cannot exceed
|
|
60
|
+
* the organization's concurrent session ceiling.
|
|
61
|
+
*/
|
|
62
|
+
default_project_max_concurrent_sessions?: number | null;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export declare namespace Limits {
|
|
66
|
+
export {
|
|
67
|
+
type OrgLimits as OrgLimits,
|
|
68
|
+
type UpdateOrgLimitsRequest as UpdateOrgLimitsRequest,
|
|
69
|
+
type LimitUpdateParams as LimitUpdateParams,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as LimitsAPI from './limits';
|
|
5
|
+
import { LimitUpdateParams, Limits, OrgLimits, UpdateOrgLimitsRequest } from './limits';
|
|
6
|
+
|
|
7
|
+
export class Organization extends APIResource {
|
|
8
|
+
limits: LimitsAPI.Limits = new LimitsAPI.Limits(this._client);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
Organization.Limits = Limits;
|
|
12
|
+
|
|
13
|
+
export declare namespace Organization {
|
|
14
|
+
export {
|
|
15
|
+
Limits as Limits,
|
|
16
|
+
type OrgLimits as OrgLimits,
|
|
17
|
+
type UpdateOrgLimitsRequest as UpdateOrgLimitsRequest,
|
|
18
|
+
type LimitUpdateParams as LimitUpdateParams,
|
|
19
|
+
};
|
|
20
|
+
}
|
package/src/resources/proxies.ts
CHANGED
|
@@ -12,21 +12,21 @@ import { path } from '../internal/utils/path';
|
|
|
12
12
|
*/
|
|
13
13
|
export class Proxies extends APIResource {
|
|
14
14
|
/**
|
|
15
|
-
* Create a new proxy configuration
|
|
15
|
+
* Create a new proxy configuration in the resolved project.
|
|
16
16
|
*/
|
|
17
17
|
create(body: ProxyCreateParams, options?: RequestOptions): APIPromise<ProxyCreateResponse> {
|
|
18
18
|
return this._client.post('/proxies', { body, ...options });
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
|
-
* Retrieve a proxy
|
|
22
|
+
* Retrieve a proxy in the resolved project by ID.
|
|
23
23
|
*/
|
|
24
24
|
retrieve(id: string, options?: RequestOptions): APIPromise<ProxyRetrieveResponse> {
|
|
25
25
|
return this._client.get(path`/proxies/${id}`, options);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* List proxies
|
|
29
|
+
* List proxies in the resolved project.
|
|
30
30
|
*/
|
|
31
31
|
list(
|
|
32
32
|
query: ProxyListParams | null | undefined = {},
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.67.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.67.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.67.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.67.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|