@onkernel/sdk 0.91.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/resources/organization/entitlements.d.mts +188 -0
  4. package/resources/organization/entitlements.d.mts.map +1 -0
  5. package/resources/organization/entitlements.d.ts +188 -0
  6. package/resources/organization/entitlements.d.ts.map +1 -0
  7. package/resources/organization/entitlements.js +20 -0
  8. package/resources/organization/entitlements.js.map +1 -0
  9. package/resources/organization/entitlements.mjs +16 -0
  10. package/resources/organization/entitlements.mjs.map +1 -0
  11. package/resources/organization/index.d.mts +1 -0
  12. package/resources/organization/index.d.mts.map +1 -1
  13. package/resources/organization/index.d.ts +1 -0
  14. package/resources/organization/index.d.ts.map +1 -1
  15. package/resources/organization/index.js +3 -1
  16. package/resources/organization/index.js.map +1 -1
  17. package/resources/organization/index.mjs +1 -0
  18. package/resources/organization/index.mjs.map +1 -1
  19. package/resources/organization/organization.d.mts +4 -0
  20. package/resources/organization/organization.d.mts.map +1 -1
  21. package/resources/organization/organization.d.ts +4 -0
  22. package/resources/organization/organization.d.ts.map +1 -1
  23. package/resources/organization/organization.js +4 -0
  24. package/resources/organization/organization.js.map +1 -1
  25. package/resources/organization/organization.mjs +4 -0
  26. package/resources/organization/organization.mjs.map +1 -1
  27. package/src/resources/organization/entitlements.ts +234 -0
  28. package/src/resources/organization/index.ts +1 -0
  29. package/src/resources/organization/organization.ts +6 -0
  30. package/src/version.ts +1 -1
  31. package/version.d.mts +1 -1
  32. package/version.d.ts +1 -1
  33. package/version.js +1 -1
  34. package/version.mjs +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.92.0](https://github.com/kernel/kernel-node-sdk/compare/v0.91.0...v0.92.0) (2026-08-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * chore(stlc): seal custom-code tracking files ([dddaa2a](https://github.com/kernel/kernel-node-sdk/commit/dddaa2aaabe3e31c71ed960ab0b117c452b657a6))
9
+
3
10
  ## [0.91.0](https://github.com/kernel/kernel-node-sdk/compare/v0.90.0...v0.91.0) (2026-08-14)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onkernel/sdk",
3
- "version": "0.91.0",
3
+ "version": "0.92.0",
4
4
  "description": "The official TypeScript library for the Kernel API",
5
5
  "author": "Kernel <>",
6
6
  "types": "./index.d.ts",
@@ -0,0 +1,188 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ /**
5
+ * Read and manage organization-level limits.
6
+ */
7
+ export declare class Entitlements extends APIResource {
8
+ /**
9
+ * Get the authenticated organization's effective feature access and constraints
10
+ * after applying its plan, active trial treatment, plan status, and
11
+ * organization-specific overrides. Null constraint values mean unlimited.
12
+ */
13
+ retrieve(options?: RequestOptions): APIPromise<OrgEntitlements>;
14
+ }
15
+ /**
16
+ * Effective feature access and constraints for the authenticated organization.
17
+ * Values already include trial treatment, plan status, and organization-specific
18
+ * overrides; consumers should use these resolved values instead of comparing plan
19
+ * IDs.
20
+ */
21
+ export interface OrgEntitlements {
22
+ features: OrgEntitlements.Features;
23
+ limits: OrgEntitlements.Limits;
24
+ plan: OrgEntitlements.Plan;
25
+ }
26
+ export declare namespace OrgEntitlements {
27
+ interface Features {
28
+ browser_extensions: Features.BrowserExtensions;
29
+ browser_pools: Features.BrowserPools;
30
+ browser_replays: Features.BrowserReplays;
31
+ credential_providers: Features.CredentialProviders;
32
+ credentials: Features.Credentials;
33
+ custom_proxies: Features.CustomProxies;
34
+ file_io: Features.FileIo;
35
+ gpu: Features.GPU;
36
+ managed_auth: Features.ManagedAuth;
37
+ managed_proxies: Features.ManagedProxies;
38
+ profiles: Features.Profiles;
39
+ proxy_bypass_hosts: Features.ProxyBypassHosts;
40
+ }
41
+ namespace Features {
42
+ interface BrowserExtensions {
43
+ /**
44
+ * Whether browser extensions are available.
45
+ */
46
+ enabled: boolean;
47
+ /**
48
+ * Maximum active custom extensions the organization may store. Null means
49
+ * unlimited. Loading stored extensions into a browser is not plan-limited.
50
+ */
51
+ max_stored_per_org: number | null;
52
+ }
53
+ interface BrowserPools {
54
+ /**
55
+ * Whether the organization is entitled to use this feature.
56
+ */
57
+ enabled: boolean;
58
+ }
59
+ interface BrowserReplays {
60
+ /**
61
+ * Whether browser replay recording is available.
62
+ */
63
+ enabled: boolean;
64
+ /**
65
+ * Number of days browser replays are retained, matching the replay reaper policy.
66
+ */
67
+ retention_days: number;
68
+ }
69
+ interface CredentialProviders {
70
+ /**
71
+ * Whether the organization is entitled to use this feature.
72
+ */
73
+ enabled: boolean;
74
+ }
75
+ interface Credentials {
76
+ /**
77
+ * Whether the organization is entitled to use this feature.
78
+ */
79
+ enabled: boolean;
80
+ }
81
+ interface CustomProxies {
82
+ /**
83
+ * Whether the organization is entitled to use this feature.
84
+ */
85
+ enabled: boolean;
86
+ }
87
+ interface FileIo {
88
+ /**
89
+ * Whether the organization is entitled to use this feature.
90
+ */
91
+ enabled: boolean;
92
+ }
93
+ interface GPU {
94
+ /**
95
+ * Whether the organization is entitled to use this feature.
96
+ */
97
+ enabled: boolean;
98
+ }
99
+ interface ManagedAuth {
100
+ /**
101
+ * Whether managed auth is available.
102
+ */
103
+ enabled: boolean;
104
+ /**
105
+ * Effective interval in seconds used when a connection is created without an
106
+ * explicit health-check interval.
107
+ */
108
+ health_check_interval_default_seconds: number;
109
+ /**
110
+ * Maximum accepted managed auth health-check interval in seconds.
111
+ */
112
+ health_check_interval_max_seconds: number;
113
+ /**
114
+ * Minimum accepted managed auth health-check interval in seconds.
115
+ */
116
+ health_check_interval_min_seconds: number;
117
+ /**
118
+ * Maximum active managed auth connections in the organization. Null means
119
+ * unlimited.
120
+ */
121
+ max_connections: number | null;
122
+ }
123
+ interface ManagedProxies {
124
+ /**
125
+ * Whether the organization is entitled to use this feature.
126
+ */
127
+ enabled: boolean;
128
+ }
129
+ interface Profiles {
130
+ /**
131
+ * Whether the organization is entitled to use this feature.
132
+ */
133
+ enabled: boolean;
134
+ }
135
+ interface ProxyBypassHosts {
136
+ /**
137
+ * Whether the organization is entitled to use this feature.
138
+ */
139
+ enabled: boolean;
140
+ }
141
+ }
142
+ interface Limits {
143
+ /**
144
+ * Effective org-level default concurrent invocation ceiling for apps without an
145
+ * app-specific override. App-specific overrides are not represented here.
146
+ */
147
+ default_max_concurrent_invocations_per_app: number;
148
+ /**
149
+ * Effective organization-wide ceiling shared by on-demand browsers and browser
150
+ * pool reservations.
151
+ */
152
+ max_concurrent_browsers: number;
153
+ /**
154
+ * Effective organization-wide concurrent app invocation ceiling.
155
+ */
156
+ max_concurrent_invocations: number;
157
+ }
158
+ interface Plan {
159
+ /**
160
+ * The organization's contractual plan identifier. Use the resolved feature and
161
+ * limit values, not this field, for access decisions.
162
+ */
163
+ id: 'FREE' | 'HOBBYIST' | 'START_UP' | 'ENTERPRISE';
164
+ /**
165
+ * The plan used to resolve plan-based access. Active trials resolve to START_UP
166
+ * regardless of the contractual plan.
167
+ */
168
+ effective_id: 'FREE' | 'HOBBYIST' | 'START_UP' | 'ENTERPRISE';
169
+ /**
170
+ * Whether the organization is currently within its trial period.
171
+ */
172
+ is_trialing: boolean;
173
+ /**
174
+ * Current billing status of the contractual plan, or null when no billing status
175
+ * is recorded. Status-sensitive feature values already account for it.
176
+ */
177
+ status: 'NEEDS_PAYMENT_METHOD' | 'ACTIVE' | 'CANCELED' | 'UNPAID' | null;
178
+ /**
179
+ * Configured trial end timestamp, or null when the organization has no trial. A
180
+ * past timestamp may be returned when is_trialing is false.
181
+ */
182
+ trial_ends_at: string | null;
183
+ }
184
+ }
185
+ export declare namespace Entitlements {
186
+ export { type OrgEntitlements as OrgEntitlements };
187
+ }
188
+ //# sourceMappingURL=entitlements.d.mts.map
@@ -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ACH,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;QAEpD;;;WAGG;QACH,YAAY,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;QAE9D;;WAEG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;;WAGG;QACH,MAAM,EAAE,sBAAsB,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC;QAEzE;;;WAGG;QACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
@@ -0,0 +1,188 @@
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 Entitlements extends APIResource {
8
+ /**
9
+ * Get the authenticated organization's effective feature access and constraints
10
+ * after applying its plan, active trial treatment, plan status, and
11
+ * organization-specific overrides. Null constraint values mean unlimited.
12
+ */
13
+ retrieve(options?: RequestOptions): APIPromise<OrgEntitlements>;
14
+ }
15
+ /**
16
+ * Effective feature access and constraints for the authenticated organization.
17
+ * Values already include trial treatment, plan status, and organization-specific
18
+ * overrides; consumers should use these resolved values instead of comparing plan
19
+ * IDs.
20
+ */
21
+ export interface OrgEntitlements {
22
+ features: OrgEntitlements.Features;
23
+ limits: OrgEntitlements.Limits;
24
+ plan: OrgEntitlements.Plan;
25
+ }
26
+ export declare namespace OrgEntitlements {
27
+ interface Features {
28
+ browser_extensions: Features.BrowserExtensions;
29
+ browser_pools: Features.BrowserPools;
30
+ browser_replays: Features.BrowserReplays;
31
+ credential_providers: Features.CredentialProviders;
32
+ credentials: Features.Credentials;
33
+ custom_proxies: Features.CustomProxies;
34
+ file_io: Features.FileIo;
35
+ gpu: Features.GPU;
36
+ managed_auth: Features.ManagedAuth;
37
+ managed_proxies: Features.ManagedProxies;
38
+ profiles: Features.Profiles;
39
+ proxy_bypass_hosts: Features.ProxyBypassHosts;
40
+ }
41
+ namespace Features {
42
+ interface BrowserExtensions {
43
+ /**
44
+ * Whether browser extensions are available.
45
+ */
46
+ enabled: boolean;
47
+ /**
48
+ * Maximum active custom extensions the organization may store. Null means
49
+ * unlimited. Loading stored extensions into a browser is not plan-limited.
50
+ */
51
+ max_stored_per_org: number | null;
52
+ }
53
+ interface BrowserPools {
54
+ /**
55
+ * Whether the organization is entitled to use this feature.
56
+ */
57
+ enabled: boolean;
58
+ }
59
+ interface BrowserReplays {
60
+ /**
61
+ * Whether browser replay recording is available.
62
+ */
63
+ enabled: boolean;
64
+ /**
65
+ * Number of days browser replays are retained, matching the replay reaper policy.
66
+ */
67
+ retention_days: number;
68
+ }
69
+ interface CredentialProviders {
70
+ /**
71
+ * Whether the organization is entitled to use this feature.
72
+ */
73
+ enabled: boolean;
74
+ }
75
+ interface Credentials {
76
+ /**
77
+ * Whether the organization is entitled to use this feature.
78
+ */
79
+ enabled: boolean;
80
+ }
81
+ interface CustomProxies {
82
+ /**
83
+ * Whether the organization is entitled to use this feature.
84
+ */
85
+ enabled: boolean;
86
+ }
87
+ interface FileIo {
88
+ /**
89
+ * Whether the organization is entitled to use this feature.
90
+ */
91
+ enabled: boolean;
92
+ }
93
+ interface GPU {
94
+ /**
95
+ * Whether the organization is entitled to use this feature.
96
+ */
97
+ enabled: boolean;
98
+ }
99
+ interface ManagedAuth {
100
+ /**
101
+ * Whether managed auth is available.
102
+ */
103
+ enabled: boolean;
104
+ /**
105
+ * Effective interval in seconds used when a connection is created without an
106
+ * explicit health-check interval.
107
+ */
108
+ health_check_interval_default_seconds: number;
109
+ /**
110
+ * Maximum accepted managed auth health-check interval in seconds.
111
+ */
112
+ health_check_interval_max_seconds: number;
113
+ /**
114
+ * Minimum accepted managed auth health-check interval in seconds.
115
+ */
116
+ health_check_interval_min_seconds: number;
117
+ /**
118
+ * Maximum active managed auth connections in the organization. Null means
119
+ * unlimited.
120
+ */
121
+ max_connections: number | null;
122
+ }
123
+ interface ManagedProxies {
124
+ /**
125
+ * Whether the organization is entitled to use this feature.
126
+ */
127
+ enabled: boolean;
128
+ }
129
+ interface Profiles {
130
+ /**
131
+ * Whether the organization is entitled to use this feature.
132
+ */
133
+ enabled: boolean;
134
+ }
135
+ interface ProxyBypassHosts {
136
+ /**
137
+ * Whether the organization is entitled to use this feature.
138
+ */
139
+ enabled: boolean;
140
+ }
141
+ }
142
+ interface Limits {
143
+ /**
144
+ * Effective org-level default concurrent invocation ceiling for apps without an
145
+ * app-specific override. App-specific overrides are not represented here.
146
+ */
147
+ default_max_concurrent_invocations_per_app: number;
148
+ /**
149
+ * Effective organization-wide ceiling shared by on-demand browsers and browser
150
+ * pool reservations.
151
+ */
152
+ max_concurrent_browsers: number;
153
+ /**
154
+ * Effective organization-wide concurrent app invocation ceiling.
155
+ */
156
+ max_concurrent_invocations: number;
157
+ }
158
+ interface Plan {
159
+ /**
160
+ * The organization's contractual plan identifier. Use the resolved feature and
161
+ * limit values, not this field, for access decisions.
162
+ */
163
+ id: 'FREE' | 'HOBBYIST' | 'START_UP' | 'ENTERPRISE';
164
+ /**
165
+ * The plan used to resolve plan-based access. Active trials resolve to START_UP
166
+ * regardless of the contractual plan.
167
+ */
168
+ effective_id: 'FREE' | 'HOBBYIST' | 'START_UP' | 'ENTERPRISE';
169
+ /**
170
+ * Whether the organization is currently within its trial period.
171
+ */
172
+ is_trialing: boolean;
173
+ /**
174
+ * Current billing status of the contractual plan, or null when no billing status
175
+ * is recorded. Status-sensitive feature values already account for it.
176
+ */
177
+ status: 'NEEDS_PAYMENT_METHOD' | 'ACTIVE' | 'CANCELED' | 'UNPAID' | null;
178
+ /**
179
+ * Configured trial end timestamp, or null when the organization has no trial. A
180
+ * past timestamp may be returned when is_trialing is false.
181
+ */
182
+ trial_ends_at: string | null;
183
+ }
184
+ }
185
+ export declare namespace Entitlements {
186
+ export { type OrgEntitlements as OrgEntitlements };
187
+ }
188
+ //# sourceMappingURL=entitlements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../src/resources/organization/entitlements.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,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,eAAe,CAAC;CAGhE;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,eAAe,CAAC,QAAQ,CAAC;IAEnC,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC;IAE/B,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC;CAC5B;AAED,yBAAiB,eAAe,CAAC;IAC/B,UAAiB,QAAQ;QACvB,kBAAkB,EAAE,QAAQ,CAAC,iBAAiB,CAAC;QAE/C,aAAa,EAAE,QAAQ,CAAC,YAAY,CAAC;QAErC,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC;QAEzC,oBAAoB,EAAE,QAAQ,CAAC,mBAAmB,CAAC;QAEnD,WAAW,EAAE,QAAQ,CAAC,WAAW,CAAC;QAElC,cAAc,EAAE,QAAQ,CAAC,aAAa,CAAC;QAEvC,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC;QAEzB,GAAG,EAAE,QAAQ,CAAC,GAAG,CAAC;QAElB,YAAY,EAAE,QAAQ,CAAC,WAAW,CAAC;QAEnC,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC;QAEzC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC;QAE5B,kBAAkB,EAAE,QAAQ,CAAC,gBAAgB,CAAC;KAC/C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,EAAE,MAAM,CAAC;QAEhC;;WAEG;QACH,0BAA0B,EAAE,MAAM,CAAC;KACpC;IAED,UAAiB,IAAI;QACnB;;;WAGG;QACH,EAAE,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;QAEpD;;;WAGG;QACH,YAAY,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;QAE9D;;WAEG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;;WAGG;QACH,MAAM,EAAE,sBAAsB,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ,GAAG,IAAI,CAAC;QAEzE;;;WAGG;QACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;CACpD"}
@@ -0,0 +1,20 @@
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.Entitlements = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ /**
7
+ * Read and manage organization-level limits.
8
+ */
9
+ class Entitlements extends resource_1.APIResource {
10
+ /**
11
+ * Get the authenticated organization's effective feature access and constraints
12
+ * after applying its plan, active trial treatment, plan status, and
13
+ * organization-specific overrides. Null constraint values mean unlimited.
14
+ */
15
+ retrieve(options) {
16
+ return this._client.get('/org/entitlements', options);
17
+ }
18
+ }
19
+ exports.Entitlements = Entitlements;
20
+ //# sourceMappingURL=entitlements.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entitlements.js","sourceRoot":"","sources":["../../src/resources/organization/entitlements.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAIlD;;GAEG;AACH,MAAa,YAAa,SAAQ,sBAAW;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF;AATD,oCASC"}
@@ -0,0 +1,16 @@
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 Entitlements extends APIResource {
7
+ /**
8
+ * Get the authenticated organization's effective feature access and constraints
9
+ * after applying its plan, active trial treatment, plan status, and
10
+ * organization-specific overrides. Null constraint values mean unlimited.
11
+ */
12
+ retrieve(options) {
13
+ return this._client.get('/org/entitlements', options);
14
+ }
15
+ }
16
+ //# sourceMappingURL=entitlements.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entitlements.mjs","sourceRoot":"","sources":["../../src/resources/organization/entitlements.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAIlD;;GAEG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAC3C;;;;OAIG;IACH,QAAQ,CAAC,OAAwB;QAC/B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF"}
@@ -1,3 +1,4 @@
1
+ export { Entitlements, type OrgEntitlements } from "./entitlements.mjs";
1
2
  export { Limits, type OrgLimits, type UpdateOrgLimitsRequest, type LimitUpdateParams } from "./limits.mjs";
2
3
  export { Organization } from "./organization.mjs";
3
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,KAAK,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,qBAAiB;AACvG,OAAO,EAAE,YAAY,EAAE,2BAAuB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,2BAAuB;AACpE,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,KAAK,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,qBAAiB;AACvG,OAAO,EAAE,YAAY,EAAE,2BAAuB"}
@@ -1,3 +1,4 @@
1
+ export { Entitlements, type OrgEntitlements } from "./entitlements.js";
1
2
  export { Limits, type OrgLimits, type UpdateOrgLimitsRequest, type LimitUpdateParams } from "./limits.js";
2
3
  export { Organization } from "./organization.js";
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,KAAK,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,oBAAiB;AACvG,OAAO,EAAE,YAAY,EAAE,0BAAuB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,KAAK,eAAe,EAAE,0BAAuB;AACpE,OAAO,EAAE,MAAM,EAAE,KAAK,SAAS,EAAE,KAAK,sBAAsB,EAAE,KAAK,iBAAiB,EAAE,oBAAiB;AACvG,OAAO,EAAE,YAAY,EAAE,0BAAuB"}
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Organization = exports.Limits = void 0;
4
+ exports.Organization = exports.Limits = exports.Entitlements = void 0;
5
+ var entitlements_1 = require("./entitlements.js");
6
+ Object.defineProperty(exports, "Entitlements", { enumerable: true, get: function () { return entitlements_1.Entitlements; } });
5
7
  var limits_1 = require("./limits.js");
6
8
  Object.defineProperty(exports, "Limits", { enumerable: true, get: function () { return limits_1.Limits; } });
7
9
  var organization_1 = require("./organization.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAuG;AAA9F,gGAAA,MAAM,OAAA;AACf,kDAA8C;AAArC,4GAAA,YAAY,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAAoE;AAA3D,4GAAA,YAAY,OAAA;AACrB,sCAAuG;AAA9F,gGAAA,MAAM,OAAA;AACf,kDAA8C;AAArC,4GAAA,YAAY,OAAA"}
@@ -1,4 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ export { Entitlements } from "./entitlements.mjs";
2
3
  export { Limits } from "./limits.mjs";
3
4
  export { Organization } from "./organization.mjs";
4
5
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,MAAM,EAAuE,qBAAiB;AACvG,OAAO,EAAE,YAAY,EAAE,2BAAuB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/organization/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,YAAY,EAAwB,2BAAuB;AACpE,OAAO,EAAE,MAAM,EAAuE,qBAAiB;AACvG,OAAO,EAAE,YAAY,EAAE,2BAAuB"}
@@ -1,10 +1,14 @@
1
1
  import { APIResource } from "../../core/resource.mjs";
2
+ import * as EntitlementsAPI from "./entitlements.mjs";
3
+ import { Entitlements, OrgEntitlements } from "./entitlements.mjs";
2
4
  import * as LimitsAPI from "./limits.mjs";
3
5
  import { LimitUpdateParams, Limits, OrgLimits, UpdateOrgLimitsRequest } from "./limits.mjs";
4
6
  export declare class Organization extends APIResource {
7
+ entitlements: EntitlementsAPI.Entitlements;
5
8
  limits: LimitsAPI.Limits;
6
9
  }
7
10
  export declare namespace Organization {
11
+ export { Entitlements as Entitlements, type OrgEntitlements as OrgEntitlements };
8
12
  export { Limits as Limits, type OrgLimits as OrgLimits, type UpdateOrgLimitsRequest as UpdateOrgLimitsRequest, type LimitUpdateParams as LimitUpdateParams, };
9
13
  }
10
14
  //# sourceMappingURL=organization.d.mts.map
@@ -1 +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"}
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,eAAe,2BAAuB;AAClD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,2BAAuB;AAC/D,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,qBAAiB;AAExF,qBAAa,YAAa,SAAQ,WAAW;IAC3C,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAKD,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,YAAY,IAAI,YAAY,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAEjF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -1,10 +1,14 @@
1
1
  import { APIResource } from "../../core/resource.js";
2
+ import * as EntitlementsAPI from "./entitlements.js";
3
+ import { Entitlements, OrgEntitlements } from "./entitlements.js";
2
4
  import * as LimitsAPI from "./limits.js";
3
5
  import { LimitUpdateParams, Limits, OrgLimits, UpdateOrgLimitsRequest } from "./limits.js";
4
6
  export declare class Organization extends APIResource {
7
+ entitlements: EntitlementsAPI.Entitlements;
5
8
  limits: LimitsAPI.Limits;
6
9
  }
7
10
  export declare namespace Organization {
11
+ export { Entitlements as Entitlements, type OrgEntitlements as OrgEntitlements };
8
12
  export { Limits as Limits, type OrgLimits as OrgLimits, type UpdateOrgLimitsRequest as UpdateOrgLimitsRequest, type LimitUpdateParams as LimitUpdateParams, };
9
13
  }
10
14
  //# sourceMappingURL=organization.d.ts.map
@@ -1 +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"}
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,eAAe,0BAAuB;AAClD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,0BAAuB;AAC/D,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,EAAE,oBAAiB;AAExF,qBAAa,YAAa,SAAQ,WAAW;IAC3C,YAAY,EAAE,eAAe,CAAC,YAAY,CAAkD;IAC5F,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAKD,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EAAE,YAAY,IAAI,YAAY,EAAE,KAAK,eAAe,IAAI,eAAe,EAAE,CAAC;IAEjF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
@@ -4,14 +4,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Organization = void 0;
5
5
  const tslib_1 = require("../../internal/tslib.js");
6
6
  const resource_1 = require("../../core/resource.js");
7
+ const EntitlementsAPI = tslib_1.__importStar(require("./entitlements.js"));
8
+ const entitlements_1 = require("./entitlements.js");
7
9
  const LimitsAPI = tslib_1.__importStar(require("./limits.js"));
8
10
  const limits_1 = require("./limits.js");
9
11
  class Organization extends resource_1.APIResource {
10
12
  constructor() {
11
13
  super(...arguments);
14
+ this.entitlements = new EntitlementsAPI.Entitlements(this._client);
12
15
  this.limits = new LimitsAPI.Limits(this._client);
13
16
  }
14
17
  }
15
18
  exports.Organization = Organization;
19
+ Organization.Entitlements = entitlements_1.Entitlements;
16
20
  Organization.Limits = limits_1.Limits;
17
21
  //# sourceMappingURL=organization.js.map
@@ -1 +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"}
1
+ {"version":3,"file":"organization.js","sourceRoot":"","sources":["../../src/resources/organization/organization.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2EAAkD;AAClD,oDAA+D;AAC/D,+DAAsC;AACtC,wCAAwF;AAExF,MAAa,YAAa,SAAQ,sBAAW;IAA7C;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAHD,oCAGC;AAED,YAAY,CAAC,YAAY,GAAG,2BAAY,CAAC;AACzC,YAAY,CAAC,MAAM,GAAG,eAAM,CAAC"}
@@ -1,12 +1,16 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../core/resource.mjs";
3
+ import * as EntitlementsAPI from "./entitlements.mjs";
4
+ import { Entitlements } from "./entitlements.mjs";
3
5
  import * as LimitsAPI from "./limits.mjs";
4
6
  import { Limits } from "./limits.mjs";
5
7
  export class Organization extends APIResource {
6
8
  constructor() {
7
9
  super(...arguments);
10
+ this.entitlements = new EntitlementsAPI.Entitlements(this._client);
8
11
  this.limits = new LimitsAPI.Limits(this._client);
9
12
  }
10
13
  }
14
+ Organization.Entitlements = Entitlements;
11
15
  Organization.Limits = Limits;
12
16
  //# sourceMappingURL=organization.mjs.map
@@ -1 +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"}
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,eAAe,2BAAuB;AAClD,OAAO,EAAE,YAAY,EAAmB,2BAAuB;AAC/D,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAAqB,MAAM,EAAqC,qBAAiB;AAExF,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAChE,CAAC;CAAA;AAED,YAAY,CAAC,YAAY,GAAG,YAAY,CAAC;AACzC,YAAY,CAAC,MAAM,GAAG,MAAM,CAAC"}
@@ -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,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.91.0'; // x-release-please-version
1
+ export const VERSION = '0.92.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.91.0";
1
+ export declare const VERSION = "0.92.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.91.0";
1
+ export declare const VERSION = "0.92.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.91.0'; // x-release-please-version
4
+ exports.VERSION = '0.92.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.91.0'; // x-release-please-version
1
+ export const VERSION = '0.92.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map