@onkernel/sdk 0.65.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 (68) hide show
  1. package/CHANGELOG.md +9 -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/browsers/browsers.d.mts +16 -3
  12. package/resources/browsers/browsers.d.mts.map +1 -1
  13. package/resources/browsers/browsers.d.ts +16 -3
  14. package/resources/browsers/browsers.d.ts.map +1 -1
  15. package/resources/browsers/browsers.js.map +1 -1
  16. package/resources/browsers/browsers.mjs.map +1 -1
  17. package/resources/index.d.mts +1 -0
  18. package/resources/index.d.mts.map +1 -1
  19. package/resources/index.d.ts +1 -0
  20. package/resources/index.d.ts.map +1 -1
  21. package/resources/index.js +3 -1
  22. package/resources/index.js.map +1 -1
  23. package/resources/index.mjs +1 -0
  24. package/resources/index.mjs.map +1 -1
  25. package/resources/organization/index.d.mts +3 -0
  26. package/resources/organization/index.d.mts.map +1 -0
  27. package/resources/organization/index.d.ts +3 -0
  28. package/resources/organization/index.d.ts.map +1 -0
  29. package/resources/organization/index.js +9 -0
  30. package/resources/organization/index.js.map +1 -0
  31. package/resources/organization/index.mjs +4 -0
  32. package/resources/organization/index.mjs.map +1 -0
  33. package/resources/organization/limits.d.mts +55 -0
  34. package/resources/organization/limits.d.mts.map +1 -0
  35. package/resources/organization/limits.d.ts +55 -0
  36. package/resources/organization/limits.d.ts.map +1 -0
  37. package/resources/organization/limits.js +28 -0
  38. package/resources/organization/limits.js.map +1 -0
  39. package/resources/organization/limits.mjs +24 -0
  40. package/resources/organization/limits.mjs.map +1 -0
  41. package/resources/organization/organization.d.mts +10 -0
  42. package/resources/organization/organization.d.mts.map +1 -0
  43. package/resources/organization/organization.d.ts +10 -0
  44. package/resources/organization/organization.d.ts.map +1 -0
  45. package/resources/organization/organization.js +17 -0
  46. package/resources/organization/organization.js.map +1 -0
  47. package/resources/organization/organization.mjs +12 -0
  48. package/resources/organization/organization.mjs.map +1 -0
  49. package/resources/organization.d.mts +2 -0
  50. package/resources/organization.d.mts.map +1 -0
  51. package/resources/organization.d.ts +2 -0
  52. package/resources/organization.d.ts.map +1 -0
  53. package/resources/organization.js +6 -0
  54. package/resources/organization.js.map +1 -0
  55. package/resources/organization.mjs +3 -0
  56. package/resources/organization.mjs.map +1 -0
  57. package/src/client.ts +5 -0
  58. package/src/resources/browsers/browsers.ts +18 -3
  59. package/src/resources/index.ts +1 -0
  60. package/src/resources/organization/index.ts +4 -0
  61. package/src/resources/organization/limits.ts +71 -0
  62. package/src/resources/organization/organization.ts +20 -0
  63. package/src/resources/organization.ts +3 -0
  64. package/src/version.ts +1 -1
  65. package/version.d.mts +1 -1
  66. package/version.d.ts +1 -1
  67. package/version.js +1 -1
  68. package/version.mjs +1 -1
@@ -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. Set at
932
- * 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}.
933
933
  */
934
934
  name?: string;
935
935
 
@@ -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. 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.
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
@@ -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.65.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.65.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.65.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.65.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.65.0'; // x-release-please-version
1
+ export const VERSION = '0.66.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map