@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.
- package/CHANGELOG.md +9 -0
- package/client.d.mts +3 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -0
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/browsers/browsers.d.mts +16 -3
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +16 -3
- 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/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/src/client.ts +5 -0
- package/src/resources/browsers/browsers.ts +18 -3
- 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/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
|
@@ -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
|
|
|
@@ -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
|
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/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
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.
|
|
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.
|
|
1
|
+
export declare const VERSION = "0.66.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.66.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|