@onkernel/sdk 0.86.0 → 0.87.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 +14 -0
- package/client.d.mts +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +1 -1
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audit-logs/audit-logs.d.mts +169 -0
- package/resources/audit-logs/audit-logs.d.mts.map +1 -0
- package/resources/audit-logs/audit-logs.d.ts +169 -0
- package/resources/audit-logs/audit-logs.d.ts.map +1 -0
- package/resources/audit-logs/audit-logs.js +53 -0
- package/resources/audit-logs/audit-logs.js.map +1 -0
- package/resources/audit-logs/audit-logs.mjs +48 -0
- package/resources/audit-logs/audit-logs.mjs.map +1 -0
- package/resources/audit-logs/export-destinations.d.mts +163 -0
- package/resources/audit-logs/export-destinations.d.mts.map +1 -0
- package/resources/audit-logs/export-destinations.d.ts +163 -0
- package/resources/audit-logs/export-destinations.d.ts.map +1 -0
- package/resources/audit-logs/export-destinations.js +62 -0
- package/resources/audit-logs/export-destinations.js.map +1 -0
- package/resources/audit-logs/export-destinations.mjs +58 -0
- package/resources/audit-logs/export-destinations.mjs.map +1 -0
- package/resources/audit-logs/index.d.mts +3 -0
- package/resources/audit-logs/index.d.mts.map +1 -0
- package/resources/audit-logs/index.d.ts +3 -0
- package/resources/audit-logs/index.d.ts.map +1 -0
- package/resources/audit-logs/index.js +9 -0
- package/resources/audit-logs/index.js.map +1 -0
- package/resources/audit-logs/index.mjs +4 -0
- package/resources/audit-logs/index.mjs.map +1 -0
- package/resources/audit-logs.d.mts +1 -164
- package/resources/audit-logs.d.mts.map +1 -1
- package/resources/audit-logs.d.ts +1 -164
- package/resources/audit-logs.d.ts.map +1 -1
- package/resources/audit-logs.js +2 -41
- package/resources/audit-logs.js.map +1 -1
- package/resources/audit-logs.mjs +1 -39
- package/resources/audit-logs.mjs.map +1 -1
- package/resources/auth/auth.d.mts +4 -0
- package/resources/auth/auth.d.mts.map +1 -1
- package/resources/auth/auth.d.ts +4 -0
- package/resources/auth/auth.d.ts.map +1 -1
- package/resources/auth/auth.js +4 -0
- package/resources/auth/auth.js.map +1 -1
- package/resources/auth/auth.mjs +4 -0
- package/resources/auth/auth.mjs.map +1 -1
- package/resources/auth/connections.d.mts +306 -0
- package/resources/auth/connections.d.mts.map +1 -1
- package/resources/auth/connections.d.ts +306 -0
- package/resources/auth/connections.d.ts.map +1 -1
- package/resources/auth/context.d.mts +106 -0
- package/resources/auth/context.d.mts.map +1 -0
- package/resources/auth/context.d.ts +106 -0
- package/resources/auth/context.d.ts.map +1 -0
- package/resources/auth/context.js +25 -0
- package/resources/auth/context.js.map +1 -0
- package/resources/auth/context.mjs +21 -0
- package/resources/auth/context.mjs.map +1 -0
- package/resources/auth/index.d.mts +1 -0
- package/resources/auth/index.d.mts.map +1 -1
- package/resources/auth/index.d.ts +1 -0
- package/resources/auth/index.d.ts.map +1 -1
- package/resources/auth/index.js +3 -1
- package/resources/auth/index.js.map +1 -1
- package/resources/auth/index.mjs +1 -0
- package/resources/auth/index.mjs.map +1 -1
- package/resources/browser-pools.d.mts +158 -0
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +158 -0
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +125 -3
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +125 -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/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/browsers/telemetry.d.mts +29 -1
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +29 -1
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invocations.d.mts +5 -0
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +5 -0
- package/resources/invocations.d.ts.map +1 -1
- package/src/client.ts +7 -7
- package/src/resources/audit-logs/audit-logs.ts +281 -0
- package/src/resources/audit-logs/export-destinations.ts +262 -0
- package/src/resources/audit-logs/index.ts +25 -0
- package/src/resources/audit-logs.ts +1 -249
- package/src/resources/auth/auth.ts +6 -0
- package/src/resources/auth/connections.ts +342 -0
- package/src/resources/auth/context.ts +125 -0
- package/src/resources/auth/index.ts +1 -0
- package/src/resources/browser-pools.ts +177 -0
- package/src/resources/browsers/browsers.ts +143 -1
- package/src/resources/browsers/index.ts +2 -0
- package/src/resources/browsers/telemetry.ts +34 -0
- package/src/resources/index.ts +1 -1
- package/src/resources/invocations.ts +6 -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
|
@@ -0,0 +1,125 @@
|
|
|
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
|
+
* Inspect the identity and authorization context for the current request.
|
|
9
|
+
*/
|
|
10
|
+
export class Context extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Returns the authenticated principal, organization, credential scope, and
|
|
13
|
+
* effective request scope. The response is derived from the verified request
|
|
14
|
+
* context and does not expose credential secrets.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```ts
|
|
18
|
+
* const authContext = await client.auth.context.retrieve();
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
retrieve(options?: RequestOptions): APIPromise<AuthContext> {
|
|
22
|
+
return this._client.get('/auth/context', options);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* The identity and authorization context resolved for the current request.
|
|
28
|
+
*/
|
|
29
|
+
export interface AuthContext {
|
|
30
|
+
authentication: AuthContext.Authentication;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* The credential's maximum scope and the effective scope selected for this
|
|
34
|
+
* request. Future permission data can be added without changing scope semantics.
|
|
35
|
+
*/
|
|
36
|
+
authorization: AuthContext.Authorization;
|
|
37
|
+
|
|
38
|
+
organization: AuthContext.Organization;
|
|
39
|
+
|
|
40
|
+
principal: AuthContext.Principal;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export namespace AuthContext {
|
|
44
|
+
export interface Authentication {
|
|
45
|
+
/**
|
|
46
|
+
* The API key ID when authenticated with an API key; null for session credentials.
|
|
47
|
+
*/
|
|
48
|
+
credential_id: string | null;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* The credential format used to authenticate the request.
|
|
52
|
+
*/
|
|
53
|
+
method: 'api_key' | 'jwt';
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The source classification resolved by authentication middleware.
|
|
57
|
+
*/
|
|
58
|
+
source: 'api_key' | 'oauth' | 'dashboard';
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* The credential's maximum scope and the effective scope selected for this
|
|
63
|
+
* request. Future permission data can be added without changing scope semantics.
|
|
64
|
+
*/
|
|
65
|
+
export interface Authorization {
|
|
66
|
+
/**
|
|
67
|
+
* A scope within the authenticated organization. A null project_id represents
|
|
68
|
+
* organization-wide scope.
|
|
69
|
+
*/
|
|
70
|
+
credential_scope: Authorization.CredentialScope;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* A scope within the authenticated organization. A null project_id represents
|
|
74
|
+
* organization-wide scope.
|
|
75
|
+
*/
|
|
76
|
+
effective_scope: Authorization.EffectiveScope;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export namespace Authorization {
|
|
80
|
+
/**
|
|
81
|
+
* A scope within the authenticated organization. A null project_id represents
|
|
82
|
+
* organization-wide scope.
|
|
83
|
+
*/
|
|
84
|
+
export interface CredentialScope {
|
|
85
|
+
/**
|
|
86
|
+
* The Kernel project ID, or null when the scope is organization-wide.
|
|
87
|
+
*/
|
|
88
|
+
project_id: string | null;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* A scope within the authenticated organization. A null project_id represents
|
|
93
|
+
* organization-wide scope.
|
|
94
|
+
*/
|
|
95
|
+
export interface EffectiveScope {
|
|
96
|
+
/**
|
|
97
|
+
* The Kernel project ID, or null when the scope is organization-wide.
|
|
98
|
+
*/
|
|
99
|
+
project_id: string | null;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export interface Organization {
|
|
104
|
+
/**
|
|
105
|
+
* The authenticated Kernel organization ID.
|
|
106
|
+
*/
|
|
107
|
+
id: string;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export interface Principal {
|
|
111
|
+
/**
|
|
112
|
+
* The API key ID for API-key principals or user ID for user principals.
|
|
113
|
+
*/
|
|
114
|
+
id: string;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* The kind of principal authenticated for the request.
|
|
118
|
+
*/
|
|
119
|
+
type: 'api_key' | 'user';
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export declare namespace Context {
|
|
124
|
+
export { type AuthContext as AuthContext };
|
|
125
|
+
}
|
|
@@ -432,6 +432,12 @@ export interface BrowserPoolAcquireResponse {
|
|
|
432
432
|
*/
|
|
433
433
|
profile?: BrowsersAPI.Profile;
|
|
434
434
|
|
|
435
|
+
/**
|
|
436
|
+
* Whether changes made during this browser session are saved back to its profile
|
|
437
|
+
* when the session ends. Omitted when no profile is attached.
|
|
438
|
+
*/
|
|
439
|
+
profile_save_changes?: boolean;
|
|
440
|
+
|
|
435
441
|
/**
|
|
436
442
|
* ID of the proxy associated with this browser session, if any.
|
|
437
443
|
*/
|
|
@@ -648,6 +654,63 @@ export namespace BrowserPoolCreateParams {
|
|
|
648
654
|
* create. enabled=false cannot be combined with browser category settings.
|
|
649
655
|
*/
|
|
650
656
|
enabled?: boolean;
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Where to export this session's captured telemetry. Omit to capture without
|
|
660
|
+
* exporting.
|
|
661
|
+
*/
|
|
662
|
+
export?: Telemetry.Export;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
export namespace Telemetry {
|
|
666
|
+
/**
|
|
667
|
+
* Where to export this session's captured telemetry. Omit to capture without
|
|
668
|
+
* exporting.
|
|
669
|
+
*/
|
|
670
|
+
export interface Export {
|
|
671
|
+
/**
|
|
672
|
+
* Export captured telemetry over OTLP to one of the org's configured destinations.
|
|
673
|
+
*/
|
|
674
|
+
otlp?: Export.Otlp;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export namespace Export {
|
|
678
|
+
/**
|
|
679
|
+
* Export captured telemetry over OTLP to one of the org's configured destinations.
|
|
680
|
+
*/
|
|
681
|
+
export interface Otlp {
|
|
682
|
+
/**
|
|
683
|
+
* OTLP destination to export this session's captured telemetry to. Provide either
|
|
684
|
+
* id or name. Requires telemetry capture to be enabled.
|
|
685
|
+
*/
|
|
686
|
+
destination?: Otlp.Destination;
|
|
687
|
+
|
|
688
|
+
/**
|
|
689
|
+
* Whether to export captured telemetry over OTLP. Setting destination implies
|
|
690
|
+
* enabled=true, so this only needs to be set explicitly to disable export
|
|
691
|
+
* (enabled=false with a destination is rejected).
|
|
692
|
+
*/
|
|
693
|
+
enabled?: boolean;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
export namespace Otlp {
|
|
697
|
+
/**
|
|
698
|
+
* OTLP destination to export this session's captured telemetry to. Provide either
|
|
699
|
+
* id or name. Requires telemetry capture to be enabled.
|
|
700
|
+
*/
|
|
701
|
+
export interface Destination {
|
|
702
|
+
/**
|
|
703
|
+
* OTLP destination ID
|
|
704
|
+
*/
|
|
705
|
+
id?: string;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* OTLP destination name
|
|
709
|
+
*/
|
|
710
|
+
name?: string;
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
651
714
|
}
|
|
652
715
|
}
|
|
653
716
|
|
|
@@ -833,6 +896,63 @@ export namespace BrowserPoolUpdateParams {
|
|
|
833
896
|
* create. enabled=false cannot be combined with browser category settings.
|
|
834
897
|
*/
|
|
835
898
|
enabled?: boolean;
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Where to export this session's captured telemetry. Omit to capture without
|
|
902
|
+
* exporting.
|
|
903
|
+
*/
|
|
904
|
+
export?: Telemetry.Export;
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
export namespace Telemetry {
|
|
908
|
+
/**
|
|
909
|
+
* Where to export this session's captured telemetry. Omit to capture without
|
|
910
|
+
* exporting.
|
|
911
|
+
*/
|
|
912
|
+
export interface Export {
|
|
913
|
+
/**
|
|
914
|
+
* Export captured telemetry over OTLP to one of the org's configured destinations.
|
|
915
|
+
*/
|
|
916
|
+
otlp?: Export.Otlp;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
export namespace Export {
|
|
920
|
+
/**
|
|
921
|
+
* Export captured telemetry over OTLP to one of the org's configured destinations.
|
|
922
|
+
*/
|
|
923
|
+
export interface Otlp {
|
|
924
|
+
/**
|
|
925
|
+
* OTLP destination to export this session's captured telemetry to. Provide either
|
|
926
|
+
* id or name. Requires telemetry capture to be enabled.
|
|
927
|
+
*/
|
|
928
|
+
destination?: Otlp.Destination;
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Whether to export captured telemetry over OTLP. Setting destination implies
|
|
932
|
+
* enabled=true, so this only needs to be set explicitly to disable export
|
|
933
|
+
* (enabled=false with a destination is rejected).
|
|
934
|
+
*/
|
|
935
|
+
enabled?: boolean;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
export namespace Otlp {
|
|
939
|
+
/**
|
|
940
|
+
* OTLP destination to export this session's captured telemetry to. Provide either
|
|
941
|
+
* id or name. Requires telemetry capture to be enabled.
|
|
942
|
+
*/
|
|
943
|
+
export interface Destination {
|
|
944
|
+
/**
|
|
945
|
+
* OTLP destination ID
|
|
946
|
+
*/
|
|
947
|
+
id?: string;
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* OTLP destination name
|
|
951
|
+
*/
|
|
952
|
+
name?: string;
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
}
|
|
836
956
|
}
|
|
837
957
|
}
|
|
838
958
|
|
|
@@ -939,6 +1059,63 @@ export namespace BrowserPoolAcquireParams {
|
|
|
939
1059
|
* create. enabled=false cannot be combined with browser category settings.
|
|
940
1060
|
*/
|
|
941
1061
|
enabled?: boolean;
|
|
1062
|
+
|
|
1063
|
+
/**
|
|
1064
|
+
* Where to export this session's captured telemetry. Omit to capture without
|
|
1065
|
+
* exporting.
|
|
1066
|
+
*/
|
|
1067
|
+
export?: Telemetry.Export;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
export namespace Telemetry {
|
|
1071
|
+
/**
|
|
1072
|
+
* Where to export this session's captured telemetry. Omit to capture without
|
|
1073
|
+
* exporting.
|
|
1074
|
+
*/
|
|
1075
|
+
export interface Export {
|
|
1076
|
+
/**
|
|
1077
|
+
* Export captured telemetry over OTLP to one of the org's configured destinations.
|
|
1078
|
+
*/
|
|
1079
|
+
otlp?: Export.Otlp;
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
export namespace Export {
|
|
1083
|
+
/**
|
|
1084
|
+
* Export captured telemetry over OTLP to one of the org's configured destinations.
|
|
1085
|
+
*/
|
|
1086
|
+
export interface Otlp {
|
|
1087
|
+
/**
|
|
1088
|
+
* OTLP destination to export this session's captured telemetry to. Provide either
|
|
1089
|
+
* id or name. Requires telemetry capture to be enabled.
|
|
1090
|
+
*/
|
|
1091
|
+
destination?: Otlp.Destination;
|
|
1092
|
+
|
|
1093
|
+
/**
|
|
1094
|
+
* Whether to export captured telemetry over OTLP. Setting destination implies
|
|
1095
|
+
* enabled=true, so this only needs to be set explicitly to disable export
|
|
1096
|
+
* (enabled=false with a destination is rejected).
|
|
1097
|
+
*/
|
|
1098
|
+
enabled?: boolean;
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
export namespace Otlp {
|
|
1102
|
+
/**
|
|
1103
|
+
* OTLP destination to export this session's captured telemetry to. Provide either
|
|
1104
|
+
* id or name. Requires telemetry capture to be enabled.
|
|
1105
|
+
*/
|
|
1106
|
+
export interface Destination {
|
|
1107
|
+
/**
|
|
1108
|
+
* OTLP destination ID
|
|
1109
|
+
*/
|
|
1110
|
+
id?: string;
|
|
1111
|
+
|
|
1112
|
+
/**
|
|
1113
|
+
* OTLP destination name
|
|
1114
|
+
*/
|
|
1115
|
+
name?: string;
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
942
1119
|
}
|
|
943
1120
|
}
|
|
944
1121
|
|
|
@@ -91,6 +91,8 @@ import {
|
|
|
91
91
|
BrowserTelemetryCategoryConfig,
|
|
92
92
|
BrowserTelemetryConfig,
|
|
93
93
|
BrowserTelemetryEvent,
|
|
94
|
+
BrowserTelemetryExportConfig,
|
|
95
|
+
BrowserTelemetryOtlpExportConfig,
|
|
94
96
|
Telemetry as TelemetryAPITelemetry,
|
|
95
97
|
TelemetryEventsParams,
|
|
96
98
|
TelemetryEventsResponse,
|
|
@@ -424,6 +426,12 @@ export interface BrowserCreateResponse {
|
|
|
424
426
|
*/
|
|
425
427
|
profile?: Profile;
|
|
426
428
|
|
|
429
|
+
/**
|
|
430
|
+
* Whether changes made during this browser session are saved back to its profile
|
|
431
|
+
* when the session ends. Omitted when no profile is attached.
|
|
432
|
+
*/
|
|
433
|
+
profile_save_changes?: boolean;
|
|
434
|
+
|
|
427
435
|
/**
|
|
428
436
|
* ID of the proxy associated with this browser session, if any.
|
|
429
437
|
*/
|
|
@@ -556,6 +564,12 @@ export interface BrowserRetrieveResponse {
|
|
|
556
564
|
*/
|
|
557
565
|
profile?: Profile;
|
|
558
566
|
|
|
567
|
+
/**
|
|
568
|
+
* Whether changes made during this browser session are saved back to its profile
|
|
569
|
+
* when the session ends. Omitted when no profile is attached.
|
|
570
|
+
*/
|
|
571
|
+
profile_save_changes?: boolean;
|
|
572
|
+
|
|
559
573
|
/**
|
|
560
574
|
* ID of the proxy associated with this browser session, if any.
|
|
561
575
|
*/
|
|
@@ -688,6 +702,12 @@ export interface BrowserUpdateResponse {
|
|
|
688
702
|
*/
|
|
689
703
|
profile?: Profile;
|
|
690
704
|
|
|
705
|
+
/**
|
|
706
|
+
* Whether changes made during this browser session are saved back to its profile
|
|
707
|
+
* when the session ends. Omitted when no profile is attached.
|
|
708
|
+
*/
|
|
709
|
+
profile_save_changes?: boolean;
|
|
710
|
+
|
|
691
711
|
/**
|
|
692
712
|
* ID of the proxy associated with this browser session, if any.
|
|
693
713
|
*/
|
|
@@ -820,6 +840,12 @@ export interface BrowserListResponse {
|
|
|
820
840
|
*/
|
|
821
841
|
profile?: Profile;
|
|
822
842
|
|
|
843
|
+
/**
|
|
844
|
+
* Whether changes made during this browser session are saved back to its profile
|
|
845
|
+
* when the session ends. Omitted when no profile is attached.
|
|
846
|
+
*/
|
|
847
|
+
profile_save_changes?: boolean;
|
|
848
|
+
|
|
823
849
|
/**
|
|
824
850
|
* ID of the proxy associated with this browser session, if any.
|
|
825
851
|
*/
|
|
@@ -1037,6 +1063,63 @@ export namespace BrowserCreateParams {
|
|
|
1037
1063
|
* create. enabled=false cannot be combined with browser category settings.
|
|
1038
1064
|
*/
|
|
1039
1065
|
enabled?: boolean;
|
|
1066
|
+
|
|
1067
|
+
/**
|
|
1068
|
+
* Where to export this session's captured telemetry. Omit to capture without
|
|
1069
|
+
* exporting.
|
|
1070
|
+
*/
|
|
1071
|
+
export?: Telemetry.Export;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
export namespace Telemetry {
|
|
1075
|
+
/**
|
|
1076
|
+
* Where to export this session's captured telemetry. Omit to capture without
|
|
1077
|
+
* exporting.
|
|
1078
|
+
*/
|
|
1079
|
+
export interface Export {
|
|
1080
|
+
/**
|
|
1081
|
+
* Export captured telemetry over OTLP to one of the org's configured destinations.
|
|
1082
|
+
*/
|
|
1083
|
+
otlp?: Export.Otlp;
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
export namespace Export {
|
|
1087
|
+
/**
|
|
1088
|
+
* Export captured telemetry over OTLP to one of the org's configured destinations.
|
|
1089
|
+
*/
|
|
1090
|
+
export interface Otlp {
|
|
1091
|
+
/**
|
|
1092
|
+
* OTLP destination to export this session's captured telemetry to. Provide either
|
|
1093
|
+
* id or name. Requires telemetry capture to be enabled.
|
|
1094
|
+
*/
|
|
1095
|
+
destination?: Otlp.Destination;
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Whether to export captured telemetry over OTLP. Setting destination implies
|
|
1099
|
+
* enabled=true, so this only needs to be set explicitly to disable export
|
|
1100
|
+
* (enabled=false with a destination is rejected).
|
|
1101
|
+
*/
|
|
1102
|
+
enabled?: boolean;
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
export namespace Otlp {
|
|
1106
|
+
/**
|
|
1107
|
+
* OTLP destination to export this session's captured telemetry to. Provide either
|
|
1108
|
+
* id or name. Requires telemetry capture to be enabled.
|
|
1109
|
+
*/
|
|
1110
|
+
export interface Destination {
|
|
1111
|
+
/**
|
|
1112
|
+
* OTLP destination ID
|
|
1113
|
+
*/
|
|
1114
|
+
id?: string;
|
|
1115
|
+
|
|
1116
|
+
/**
|
|
1117
|
+
* OTLP destination name
|
|
1118
|
+
*/
|
|
1119
|
+
name?: string;
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
}
|
|
1040
1123
|
}
|
|
1041
1124
|
}
|
|
1042
1125
|
|
|
@@ -1128,6 +1211,63 @@ export namespace BrowserUpdateParams {
|
|
|
1128
1211
|
* create. enabled=false cannot be combined with browser category settings.
|
|
1129
1212
|
*/
|
|
1130
1213
|
enabled?: boolean;
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* Where to export this session's captured telemetry. Omit to capture without
|
|
1217
|
+
* exporting.
|
|
1218
|
+
*/
|
|
1219
|
+
export?: Telemetry.Export;
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
export namespace Telemetry {
|
|
1223
|
+
/**
|
|
1224
|
+
* Where to export this session's captured telemetry. Omit to capture without
|
|
1225
|
+
* exporting.
|
|
1226
|
+
*/
|
|
1227
|
+
export interface Export {
|
|
1228
|
+
/**
|
|
1229
|
+
* Export captured telemetry over OTLP to one of the org's configured destinations.
|
|
1230
|
+
*/
|
|
1231
|
+
otlp?: Export.Otlp;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
export namespace Export {
|
|
1235
|
+
/**
|
|
1236
|
+
* Export captured telemetry over OTLP to one of the org's configured destinations.
|
|
1237
|
+
*/
|
|
1238
|
+
export interface Otlp {
|
|
1239
|
+
/**
|
|
1240
|
+
* OTLP destination to export this session's captured telemetry to. Provide either
|
|
1241
|
+
* id or name. Requires telemetry capture to be enabled.
|
|
1242
|
+
*/
|
|
1243
|
+
destination?: Otlp.Destination;
|
|
1244
|
+
|
|
1245
|
+
/**
|
|
1246
|
+
* Whether to export captured telemetry over OTLP. Setting destination implies
|
|
1247
|
+
* enabled=true, so this only needs to be set explicitly to disable export
|
|
1248
|
+
* (enabled=false with a destination is rejected).
|
|
1249
|
+
*/
|
|
1250
|
+
enabled?: boolean;
|
|
1251
|
+
}
|
|
1252
|
+
|
|
1253
|
+
export namespace Otlp {
|
|
1254
|
+
/**
|
|
1255
|
+
* OTLP destination to export this session's captured telemetry to. Provide either
|
|
1256
|
+
* id or name. Requires telemetry capture to be enabled.
|
|
1257
|
+
*/
|
|
1258
|
+
export interface Destination {
|
|
1259
|
+
/**
|
|
1260
|
+
* OTLP destination ID
|
|
1261
|
+
*/
|
|
1262
|
+
id?: string;
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* OTLP destination name
|
|
1266
|
+
*/
|
|
1267
|
+
name?: string;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
}
|
|
1131
1271
|
}
|
|
1132
1272
|
|
|
1133
1273
|
/**
|
|
@@ -1152,7 +1292,7 @@ export interface BrowserListParams extends OffsetPaginationParams {
|
|
|
1152
1292
|
include_deleted?: boolean;
|
|
1153
1293
|
|
|
1154
1294
|
/**
|
|
1155
|
-
* Search browsers by name, session ID, profile ID, proxy ID, or pool name.
|
|
1295
|
+
* Search browsers by name, session ID, profile name or ID, proxy ID, or pool name.
|
|
1156
1296
|
*/
|
|
1157
1297
|
query?: string;
|
|
1158
1298
|
|
|
@@ -1292,6 +1432,8 @@ export declare namespace Browsers {
|
|
|
1292
1432
|
type BrowserTelemetryCategoryConfig as BrowserTelemetryCategoryConfig,
|
|
1293
1433
|
type BrowserTelemetryConfig as BrowserTelemetryConfig,
|
|
1294
1434
|
type BrowserTelemetryEvent as BrowserTelemetryEvent,
|
|
1435
|
+
type BrowserTelemetryExportConfig as BrowserTelemetryExportConfig,
|
|
1436
|
+
type BrowserTelemetryOtlpExportConfig as BrowserTelemetryOtlpExportConfig,
|
|
1295
1437
|
type TelemetryEventsResponse as TelemetryEventsResponse,
|
|
1296
1438
|
type TelemetryStreamResponse as TelemetryStreamResponse,
|
|
1297
1439
|
type TelemetryEventsResponsesOffsetPagination as TelemetryEventsResponsesOffsetPagination,
|
|
@@ -120,6 +120,8 @@ export {
|
|
|
120
120
|
type BrowserTelemetryCategoryConfig,
|
|
121
121
|
type BrowserTelemetryConfig,
|
|
122
122
|
type BrowserTelemetryEvent,
|
|
123
|
+
type BrowserTelemetryExportConfig,
|
|
124
|
+
type BrowserTelemetryOtlpExportConfig,
|
|
123
125
|
type TelemetryEventsResponse,
|
|
124
126
|
type TelemetryStreamResponse,
|
|
125
127
|
type TelemetryEventsParams,
|
|
@@ -1965,6 +1965,12 @@ export interface BrowserTelemetryConfig {
|
|
|
1965
1965
|
* Per-category enable/disable flags.
|
|
1966
1966
|
*/
|
|
1967
1967
|
browser?: BrowserTelemetryCategoriesConfig;
|
|
1968
|
+
|
|
1969
|
+
/**
|
|
1970
|
+
* Where the session's captured telemetry is being exported. Omitted when the
|
|
1971
|
+
* export state is unknown.
|
|
1972
|
+
*/
|
|
1973
|
+
export?: BrowserTelemetryExportConfig;
|
|
1968
1974
|
}
|
|
1969
1975
|
|
|
1970
1976
|
/**
|
|
@@ -2009,6 +2015,32 @@ export type BrowserTelemetryEvent =
|
|
|
2009
2015
|
| BrowserSystemOomKillEvent
|
|
2010
2016
|
| BrowserServiceCrashedEvent;
|
|
2011
2017
|
|
|
2018
|
+
/**
|
|
2019
|
+
* Active export state for a session's captured telemetry, by protocol.
|
|
2020
|
+
*/
|
|
2021
|
+
export interface BrowserTelemetryExportConfig {
|
|
2022
|
+
/**
|
|
2023
|
+
* Active OTLP export state.
|
|
2024
|
+
*/
|
|
2025
|
+
otlp?: BrowserTelemetryOtlpExportConfig;
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
/**
|
|
2029
|
+
* Active OTLP export state for a browser session.
|
|
2030
|
+
*/
|
|
2031
|
+
export interface BrowserTelemetryOtlpExportConfig {
|
|
2032
|
+
/**
|
|
2033
|
+
* ID of the OTLP destination the session is bound to. Omitted when the session is
|
|
2034
|
+
* not exporting.
|
|
2035
|
+
*/
|
|
2036
|
+
destination?: string;
|
|
2037
|
+
|
|
2038
|
+
/**
|
|
2039
|
+
* Whether the session is exporting captured telemetry over OTLP.
|
|
2040
|
+
*/
|
|
2041
|
+
enabled?: boolean;
|
|
2042
|
+
}
|
|
2043
|
+
|
|
2012
2044
|
/**
|
|
2013
2045
|
* Envelope wrapping a browser telemetry event with its monotonic sequence number.
|
|
2014
2046
|
* Each SSE data: frame carries one envelope as JSON. The seq value is also emitted
|
|
@@ -2158,6 +2190,8 @@ export declare namespace Telemetry {
|
|
|
2158
2190
|
type BrowserTelemetryCategoryConfig as BrowserTelemetryCategoryConfig,
|
|
2159
2191
|
type BrowserTelemetryConfig as BrowserTelemetryConfig,
|
|
2160
2192
|
type BrowserTelemetryEvent as BrowserTelemetryEvent,
|
|
2193
|
+
type BrowserTelemetryExportConfig as BrowserTelemetryExportConfig,
|
|
2194
|
+
type BrowserTelemetryOtlpExportConfig as BrowserTelemetryOtlpExportConfig,
|
|
2161
2195
|
type TelemetryEventsResponse as TelemetryEventsResponse,
|
|
2162
2196
|
type TelemetryStreamResponse as TelemetryStreamResponse,
|
|
2163
2197
|
type TelemetryEventsResponsesOffsetPagination as TelemetryEventsResponsesOffsetPagination,
|
package/src/resources/index.ts
CHANGED
|
@@ -503,6 +503,12 @@ export namespace InvocationListBrowsersResponse {
|
|
|
503
503
|
*/
|
|
504
504
|
profile?: BrowsersAPI.Profile;
|
|
505
505
|
|
|
506
|
+
/**
|
|
507
|
+
* Whether changes made during this browser session are saved back to its profile
|
|
508
|
+
* when the session ends. Omitted when no profile is attached.
|
|
509
|
+
*/
|
|
510
|
+
profile_save_changes?: boolean;
|
|
511
|
+
|
|
506
512
|
/**
|
|
507
513
|
* ID of the proxy associated with this browser session, if any.
|
|
508
514
|
*/
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.87.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.87.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.87.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.87.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|