@onkernel/sdk 0.64.0 → 0.66.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/browser-pools.d.mts +13 -0
  12. package/resources/browser-pools.d.mts.map +1 -1
  13. package/resources/browser-pools.d.ts +13 -0
  14. package/resources/browser-pools.d.ts.map +1 -1
  15. package/resources/browsers/browsers.d.mts +20 -7
  16. package/resources/browsers/browsers.d.mts.map +1 -1
  17. package/resources/browsers/browsers.d.ts +20 -7
  18. package/resources/browsers/browsers.d.ts.map +1 -1
  19. package/resources/browsers/browsers.js +7 -7
  20. package/resources/browsers/browsers.js.map +1 -1
  21. package/resources/browsers/browsers.mjs +7 -7
  22. package/resources/browsers/browsers.mjs.map +1 -1
  23. package/resources/index.d.mts +1 -0
  24. package/resources/index.d.mts.map +1 -1
  25. package/resources/index.d.ts +1 -0
  26. package/resources/index.d.ts.map +1 -1
  27. package/resources/index.js +3 -1
  28. package/resources/index.js.map +1 -1
  29. package/resources/index.mjs +1 -0
  30. package/resources/index.mjs.map +1 -1
  31. package/resources/organization/index.d.mts +3 -0
  32. package/resources/organization/index.d.mts.map +1 -0
  33. package/resources/organization/index.d.ts +3 -0
  34. package/resources/organization/index.d.ts.map +1 -0
  35. package/resources/organization/index.js +9 -0
  36. package/resources/organization/index.js.map +1 -0
  37. package/resources/organization/index.mjs +4 -0
  38. package/resources/organization/index.mjs.map +1 -0
  39. package/resources/organization/limits.d.mts +55 -0
  40. package/resources/organization/limits.d.mts.map +1 -0
  41. package/resources/organization/limits.d.ts +55 -0
  42. package/resources/organization/limits.d.ts.map +1 -0
  43. package/resources/organization/limits.js +28 -0
  44. package/resources/organization/limits.js.map +1 -0
  45. package/resources/organization/limits.mjs +24 -0
  46. package/resources/organization/limits.mjs.map +1 -0
  47. package/resources/organization/organization.d.mts +10 -0
  48. package/resources/organization/organization.d.mts.map +1 -0
  49. package/resources/organization/organization.d.ts +10 -0
  50. package/resources/organization/organization.d.ts.map +1 -0
  51. package/resources/organization/organization.js +17 -0
  52. package/resources/organization/organization.js.map +1 -0
  53. package/resources/organization/organization.mjs +12 -0
  54. package/resources/organization/organization.mjs.map +1 -0
  55. package/resources/organization.d.mts +2 -0
  56. package/resources/organization.d.mts.map +1 -0
  57. package/resources/organization.d.ts +2 -0
  58. package/resources/organization.d.ts.map +1 -0
  59. package/resources/organization.js +6 -0
  60. package/resources/organization.js.map +1 -0
  61. package/resources/organization.mjs +3 -0
  62. package/resources/organization.mjs.map +1 -0
  63. package/src/client.ts +5 -0
  64. package/src/resources/browser-pools.ts +15 -0
  65. package/src/resources/browsers/browsers.ts +29 -10
  66. package/src/resources/index.ts +1 -0
  67. package/src/resources/organization/index.ts +4 -0
  68. package/src/resources/organization/limits.ts +71 -0
  69. package/src/resources/organization/organization.ts +20 -0
  70. package/src/resources/organization.ts +3 -0
  71. package/src/version.ts +1 -1
  72. package/version.d.mts +1 -1
  73. package/version.d.ts +1 -1
  74. package/version.js +1 -1
  75. package/version.mjs +1 -1
@@ -0,0 +1,55 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ /**
5
+ * Read and manage organization-level limits.
6
+ */
7
+ export declare class Limits extends APIResource {
8
+ /**
9
+ * Get the organization's concurrent session ceiling and the default per-project
10
+ * concurrency cap applied to projects without an explicit override.
11
+ */
12
+ retrieve(options?: RequestOptions): APIPromise<OrgLimits>;
13
+ /**
14
+ * Set the default per-project concurrency cap applied to projects without an
15
+ * explicit override. Set the value to 0 to remove the default; omit to leave it
16
+ * unchanged. The default cannot exceed the organization's concurrent session
17
+ * ceiling.
18
+ */
19
+ update(body: LimitUpdateParams, options?: RequestOptions): APIPromise<OrgLimits>;
20
+ }
21
+ export interface OrgLimits {
22
+ /**
23
+ * Default maximum concurrent browser sessions applied to every project that has no
24
+ * explicit per-project override. Null means no org-level default, so such projects
25
+ * are uncapped (only the org-wide limit applies). Applies to existing and newly
26
+ * created projects.
27
+ */
28
+ default_project_max_concurrent_sessions?: number | null;
29
+ /**
30
+ * The organization's effective concurrent browser session ceiling, from its plan
31
+ * or an override. Read-only and shared across all projects in the org; a
32
+ * per-project default cannot exceed it.
33
+ */
34
+ max_concurrent_sessions?: number;
35
+ }
36
+ export interface UpdateOrgLimitsRequest {
37
+ /**
38
+ * Default maximum concurrent browser sessions for projects without an explicit
39
+ * override. Set to 0 to remove the default; omit to leave unchanged. Cannot exceed
40
+ * the organization's concurrent session ceiling.
41
+ */
42
+ default_project_max_concurrent_sessions?: number | null;
43
+ }
44
+ export interface LimitUpdateParams {
45
+ /**
46
+ * Default maximum concurrent browser sessions for projects without an explicit
47
+ * override. Set to 0 to remove the default; omit to leave unchanged. Cannot exceed
48
+ * the organization's concurrent session ceiling.
49
+ */
50
+ default_project_max_concurrent_sessions?: number | null;
51
+ }
52
+ export declare namespace Limits {
53
+ export { type OrgLimits as OrgLimits, type UpdateOrgLimitsRequest as UpdateOrgLimitsRequest, type LimitUpdateParams as LimitUpdateParams, };
54
+ }
55
+ //# sourceMappingURL=limits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limits.d.ts","sourceRoot":"","sources":["../../src/resources/organization/limits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIzD;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;CAGjF;AAED,MAAM,WAAW,SAAS;IACxB;;;;;OAKG;IACH,uCAAuC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAExD;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;OAIG;IACH,uCAAuC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzD;AAED,MAAM,WAAW,iBAAiB;IAChC;;;;OAIG;IACH,uCAAuC,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzD;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -0,0 +1,28 @@
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.Limits = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ /**
7
+ * Read and manage organization-level limits.
8
+ */
9
+ class Limits extends resource_1.APIResource {
10
+ /**
11
+ * Get the organization's concurrent session ceiling and the default per-project
12
+ * concurrency cap applied to projects without an explicit override.
13
+ */
14
+ retrieve(options) {
15
+ return this._client.get('/org/limits', options);
16
+ }
17
+ /**
18
+ * Set the default per-project concurrency cap applied to projects without an
19
+ * explicit override. Set the value to 0 to remove the default; omit to leave it
20
+ * unchanged. The default cannot exceed the organization's concurrent session
21
+ * ceiling.
22
+ */
23
+ update(body, options) {
24
+ return this._client.patch('/org/limits', { body, ...options });
25
+ }
26
+ }
27
+ exports.Limits = Limits;
28
+ //# sourceMappingURL=limits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limits.js","sourceRoot":"","sources":["../../src/resources/organization/limits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF;AAlBD,wBAkBC"}
@@ -0,0 +1,24 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ /**
4
+ * Read and manage organization-level limits.
5
+ */
6
+ export class Limits extends APIResource {
7
+ /**
8
+ * Get the organization's concurrent session ceiling and the default per-project
9
+ * concurrency cap applied to projects without an explicit override.
10
+ */
11
+ retrieve(options) {
12
+ return this._client.get('/org/limits', options);
13
+ }
14
+ /**
15
+ * Set the default per-project concurrency cap applied to projects without an
16
+ * explicit override. Set the value to 0 to remove the default; omit to leave it
17
+ * unchanged. The default cannot exceed the organization's concurrent session
18
+ * ceiling.
19
+ */
20
+ update(body, options) {
21
+ return this._client.patch('/org/limits', { body, ...options });
22
+ }
23
+ }
24
+ //# sourceMappingURL=limits.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limits.mjs","sourceRoot":"","sources":["../../src/resources/organization/limits.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAClD,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjE,CAAC;CACF"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as LimitsAPI from "./limits.mjs";
3
+ import { LimitUpdateParams, Limits, OrgLimits, UpdateOrgLimitsRequest } from "./limits.mjs";
4
+ export declare class Organization extends APIResource {
5
+ limits: LimitsAPI.Limits;
6
+ }
7
+ export declare namespace Organization {
8
+ export { Limits as Limits, type OrgLimits as OrgLimits, type UpdateOrgLimitsRequest as UpdateOrgLimitsRequest, type LimitUpdateParams as LimitUpdateParams, };
9
+ }
10
+ //# sourceMappingURL=organization.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.d.mts","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,qBAAiB;AAExF,qBAAa,YAAa,SAAQ,WAAW;IAC3C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAID,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -0,0 +1,10 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import * as LimitsAPI from "./limits.js";
3
+ import { LimitUpdateParams, Limits, OrgLimits, UpdateOrgLimitsRequest } from "./limits.js";
4
+ export declare class Organization extends APIResource {
5
+ limits: LimitsAPI.Limits;
6
+ }
7
+ export declare namespace Organization {
8
+ export { Limits as Limits, type OrgLimits as OrgLimits, type UpdateOrgLimitsRequest as UpdateOrgLimitsRequest, type LimitUpdateParams as LimitUpdateParams, };
9
+ }
10
+ //# sourceMappingURL=organization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,oBAAiB;AAExF,qBAAa,YAAa,SAAQ,WAAW;IAC3C,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAID,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,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.Organization = void 0;
5
+ const tslib_1 = require("../../internal/tslib.js");
6
+ const resource_1 = require("../../core/resource.js");
7
+ const LimitsAPI = tslib_1.__importStar(require("./limits.js"));
8
+ const limits_1 = require("./limits.js");
9
+ class Organization extends resource_1.APIResource {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.limits = new LimitsAPI.Limits(this._client);
13
+ }
14
+ }
15
+ exports.Organization = Organization;
16
+ Organization.Limits = limits_1.Limits;
17
+ //# sourceMappingURL=organization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,+DAAsC;AACtC,wCAAwF;AAExF,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAFD,oCAEC;AAED,YAAY,CAAC,MAAM,GAAG,eAAM,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 LimitsAPI from "./limits.mjs";
4
+ import { Limits } from "./limits.mjs";
5
+ export class Organization extends APIResource {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.limits = new LimitsAPI.Limits(this._client);
9
+ }
10
+ }
11
+ Organization.Limits = Limits;
12
+ //# sourceMappingURL=organization.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.mjs","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAqB,MAAM,EAAqC,qBAAiB;AAExF,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAED,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./organization/index.mjs";
2
+ //# sourceMappingURL=organization.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.d.mts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"AAEA,yCAAqC"}
@@ -0,0 +1,2 @@
1
+ export * from "./organization/index.js";
2
+ //# sourceMappingURL=organization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"AAEA,wCAAqC"}
@@ -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("./organization/index.js"), exports);
6
+ //# sourceMappingURL=organization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.js","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kEAAqC"}
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export * from "./organization/index.mjs";
3
+ //# sourceMappingURL=organization.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"organization.mjs","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,yCAAqC"}
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,
@@ -983,6 +984,7 @@ export class Kernel {
983
984
  * Create and manage projects for resource isolation within an organization.
984
985
  */
985
986
  projects: API.Projects = new API.Projects(this);
987
+ organization: API.Organization = new API.Organization(this);
986
988
  /**
987
989
  * Create and manage API keys for organization and project-scoped access.
988
990
  */
@@ -1004,6 +1006,7 @@ Kernel.Extensions = Extensions;
1004
1006
  Kernel.BrowserPools = BrowserPools;
1005
1007
  Kernel.Credentials = Credentials;
1006
1008
  Kernel.Projects = Projects;
1009
+ Kernel.Organization = Organization;
1007
1010
  Kernel.APIKeys = APIKeys;
1008
1011
  Kernel.CredentialProviders = CredentialProviders;
1009
1012
 
@@ -1138,6 +1141,8 @@ export declare namespace Kernel {
1138
1141
  type ProjectListParams as ProjectListParams,
1139
1142
  };
1140
1143
 
1144
+ export { Organization as Organization };
1145
+
1141
1146
  export {
1142
1147
  APIKeys as APIKeys,
1143
1148
  type APIKey as APIKey,
@@ -626,6 +626,21 @@ export interface BrowserPoolAcquireParams {
626
626
  * rate.
627
627
  */
628
628
  acquire_timeout_seconds?: number;
629
+
630
+ /**
631
+ * Optional human-readable name for the acquired browser session, used to find it
632
+ * later in the dashboard. Must be unique among active sessions within the pool's
633
+ * project. Applies to this lease only and is cleared when the browser is released
634
+ * back to the pool.
635
+ */
636
+ name?: string;
637
+
638
+ /**
639
+ * Optional user-defined key-value tags for the acquired browser session, used to
640
+ * find and group sessions later. Applies to this lease only and are cleared when
641
+ * the browser is released back to the pool. Up to 50 pairs.
642
+ */
643
+ tags?: BrowsersAPI.Tags;
629
644
  }
630
645
 
631
646
  export interface BrowserPoolReleaseParams {
@@ -160,11 +160,11 @@ export class Browsers extends APIResource {
160
160
  * ```
161
161
  */
162
162
  retrieve(
163
- id: string,
163
+ idOrName: string,
164
164
  query: BrowserRetrieveParams | null | undefined = {},
165
165
  options?: RequestOptions,
166
166
  ): APIPromise<BrowserRetrieveResponse> {
167
- return this._client.get(path`/browsers/${id}`, { query, ...options });
167
+ return this._client.get(path`/browsers/${idOrName}`, { query, ...options });
168
168
  }
169
169
 
170
170
  /**
@@ -177,8 +177,12 @@ export class Browsers extends APIResource {
177
177
  * );
178
178
  * ```
179
179
  */
180
- update(id: string, body: BrowserUpdateParams, options?: RequestOptions): APIPromise<BrowserUpdateResponse> {
181
- return this._client.patch(path`/browsers/${id}`, { body, ...options });
180
+ update(
181
+ idOrName: string,
182
+ body: BrowserUpdateParams,
183
+ options?: RequestOptions,
184
+ ): APIPromise<BrowserUpdateResponse> {
185
+ return this._client.patch(path`/browsers/${idOrName}`, { body, ...options });
182
186
  }
183
187
 
184
188
  /**
@@ -225,7 +229,7 @@ export class Browsers extends APIResource {
225
229
  }
226
230
 
227
231
  /**
228
- * Delete a browser session by ID
232
+ * Delete a browser session by ID or name
229
233
  *
230
234
  * @example
231
235
  * ```ts
@@ -234,8 +238,8 @@ export class Browsers extends APIResource {
234
238
  * );
235
239
  * ```
236
240
  */
237
- deleteByID(id: string, options?: RequestOptions): APIPromise<void> {
238
- return this._client.delete(path`/browsers/${id}`, {
241
+ deleteByID(idOrName: string, options?: RequestOptions): APIPromise<void> {
242
+ return this._client.delete(path`/browsers/${idOrName}`, {
239
243
  ...options,
240
244
  headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
241
245
  });
@@ -924,8 +928,8 @@ export interface BrowserCreateParams {
924
928
 
925
929
  /**
926
930
  * Optional human-readable name for the browser session, used to find it later in
927
- * the dashboard. Must be unique among active sessions within the project. Set at
928
- * creation time only.
931
+ * the dashboard. Must be unique among active sessions within the project. Can be
932
+ * changed later via PATCH /browsers/{id_or_name}.
929
933
  */
930
934
  name?: string;
931
935
 
@@ -957,7 +961,8 @@ export interface BrowserCreateParams {
957
961
 
958
962
  /**
959
963
  * Optional user-defined key-value tags for the browser session, used to find and
960
- * group sessions later. Set at creation time only. Up to 50 pairs.
964
+ * group sessions later. Can be changed later via PATCH /browsers/{id_or_name}. Up
965
+ * to 50 pairs.
961
966
  */
962
967
  tags?: Tags;
963
968
 
@@ -1037,6 +1042,13 @@ export interface BrowserUpdateParams {
1037
1042
  */
1038
1043
  disable_default_proxy?: boolean;
1039
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
+
1040
1052
  /**
1041
1053
  * Profile to load into the browser session. Only allowed if the session does not
1042
1054
  * already have a profile loaded.
@@ -1049,6 +1061,13 @@ export interface BrowserUpdateParams {
1049
1061
  */
1050
1062
  proxy_id?: string | null;
1051
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
+
1052
1071
  /**
1053
1072
  * Telemetry configuration. Omit, set to null, or set to an empty object ({}) to
1054
1073
  * leave the existing configuration unchanged. Set enabled to true to enable
@@ -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,4 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export { Limits, type OrgLimits, type UpdateOrgLimitsRequest, type LimitUpdateParams } from './limits';
4
+ export { Organization } from './organization';
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './organization/index';
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.64.0'; // x-release-please-version
1
+ export const VERSION = '0.66.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.64.0";
1
+ export declare const VERSION = "0.66.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.64.0";
1
+ export declare const VERSION = "0.66.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.64.0'; // x-release-please-version
4
+ exports.VERSION = '0.66.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.64.0'; // x-release-please-version
1
+ export const VERSION = '0.66.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map