@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.
Files changed (122) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/client.d.mts +1 -1
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +1 -1
  5. package/client.d.ts.map +1 -1
  6. package/client.js +1 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +1 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/audit-logs/audit-logs.d.mts +169 -0
  12. package/resources/audit-logs/audit-logs.d.mts.map +1 -0
  13. package/resources/audit-logs/audit-logs.d.ts +169 -0
  14. package/resources/audit-logs/audit-logs.d.ts.map +1 -0
  15. package/resources/audit-logs/audit-logs.js +53 -0
  16. package/resources/audit-logs/audit-logs.js.map +1 -0
  17. package/resources/audit-logs/audit-logs.mjs +48 -0
  18. package/resources/audit-logs/audit-logs.mjs.map +1 -0
  19. package/resources/audit-logs/export-destinations.d.mts +163 -0
  20. package/resources/audit-logs/export-destinations.d.mts.map +1 -0
  21. package/resources/audit-logs/export-destinations.d.ts +163 -0
  22. package/resources/audit-logs/export-destinations.d.ts.map +1 -0
  23. package/resources/audit-logs/export-destinations.js +62 -0
  24. package/resources/audit-logs/export-destinations.js.map +1 -0
  25. package/resources/audit-logs/export-destinations.mjs +58 -0
  26. package/resources/audit-logs/export-destinations.mjs.map +1 -0
  27. package/resources/audit-logs/index.d.mts +3 -0
  28. package/resources/audit-logs/index.d.mts.map +1 -0
  29. package/resources/audit-logs/index.d.ts +3 -0
  30. package/resources/audit-logs/index.d.ts.map +1 -0
  31. package/resources/audit-logs/index.js +9 -0
  32. package/resources/audit-logs/index.js.map +1 -0
  33. package/resources/audit-logs/index.mjs +4 -0
  34. package/resources/audit-logs/index.mjs.map +1 -0
  35. package/resources/audit-logs.d.mts +1 -164
  36. package/resources/audit-logs.d.mts.map +1 -1
  37. package/resources/audit-logs.d.ts +1 -164
  38. package/resources/audit-logs.d.ts.map +1 -1
  39. package/resources/audit-logs.js +2 -41
  40. package/resources/audit-logs.js.map +1 -1
  41. package/resources/audit-logs.mjs +1 -39
  42. package/resources/audit-logs.mjs.map +1 -1
  43. package/resources/auth/auth.d.mts +4 -0
  44. package/resources/auth/auth.d.mts.map +1 -1
  45. package/resources/auth/auth.d.ts +4 -0
  46. package/resources/auth/auth.d.ts.map +1 -1
  47. package/resources/auth/auth.js +4 -0
  48. package/resources/auth/auth.js.map +1 -1
  49. package/resources/auth/auth.mjs +4 -0
  50. package/resources/auth/auth.mjs.map +1 -1
  51. package/resources/auth/connections.d.mts +306 -0
  52. package/resources/auth/connections.d.mts.map +1 -1
  53. package/resources/auth/connections.d.ts +306 -0
  54. package/resources/auth/connections.d.ts.map +1 -1
  55. package/resources/auth/context.d.mts +106 -0
  56. package/resources/auth/context.d.mts.map +1 -0
  57. package/resources/auth/context.d.ts +106 -0
  58. package/resources/auth/context.d.ts.map +1 -0
  59. package/resources/auth/context.js +25 -0
  60. package/resources/auth/context.js.map +1 -0
  61. package/resources/auth/context.mjs +21 -0
  62. package/resources/auth/context.mjs.map +1 -0
  63. package/resources/auth/index.d.mts +1 -0
  64. package/resources/auth/index.d.mts.map +1 -1
  65. package/resources/auth/index.d.ts +1 -0
  66. package/resources/auth/index.d.ts.map +1 -1
  67. package/resources/auth/index.js +3 -1
  68. package/resources/auth/index.js.map +1 -1
  69. package/resources/auth/index.mjs +1 -0
  70. package/resources/auth/index.mjs.map +1 -1
  71. package/resources/browser-pools.d.mts +158 -0
  72. package/resources/browser-pools.d.mts.map +1 -1
  73. package/resources/browser-pools.d.ts +158 -0
  74. package/resources/browser-pools.d.ts.map +1 -1
  75. package/resources/browsers/browsers.d.mts +125 -3
  76. package/resources/browsers/browsers.d.mts.map +1 -1
  77. package/resources/browsers/browsers.d.ts +125 -3
  78. package/resources/browsers/browsers.d.ts.map +1 -1
  79. package/resources/browsers/browsers.js.map +1 -1
  80. package/resources/browsers/browsers.mjs.map +1 -1
  81. package/resources/browsers/index.d.mts +1 -1
  82. package/resources/browsers/index.d.mts.map +1 -1
  83. package/resources/browsers/index.d.ts +1 -1
  84. package/resources/browsers/index.d.ts.map +1 -1
  85. package/resources/browsers/index.js.map +1 -1
  86. package/resources/browsers/index.mjs.map +1 -1
  87. package/resources/browsers/telemetry.d.mts +29 -1
  88. package/resources/browsers/telemetry.d.mts.map +1 -1
  89. package/resources/browsers/telemetry.d.ts +29 -1
  90. package/resources/browsers/telemetry.d.ts.map +1 -1
  91. package/resources/index.d.mts +1 -1
  92. package/resources/index.d.mts.map +1 -1
  93. package/resources/index.d.ts +1 -1
  94. package/resources/index.d.ts.map +1 -1
  95. package/resources/index.js +1 -1
  96. package/resources/index.js.map +1 -1
  97. package/resources/index.mjs +1 -1
  98. package/resources/index.mjs.map +1 -1
  99. package/resources/invocations.d.mts +5 -0
  100. package/resources/invocations.d.mts.map +1 -1
  101. package/resources/invocations.d.ts +5 -0
  102. package/resources/invocations.d.ts.map +1 -1
  103. package/src/client.ts +7 -7
  104. package/src/resources/audit-logs/audit-logs.ts +281 -0
  105. package/src/resources/audit-logs/export-destinations.ts +262 -0
  106. package/src/resources/audit-logs/index.ts +25 -0
  107. package/src/resources/audit-logs.ts +1 -249
  108. package/src/resources/auth/auth.ts +6 -0
  109. package/src/resources/auth/connections.ts +342 -0
  110. package/src/resources/auth/context.ts +125 -0
  111. package/src/resources/auth/index.ts +1 -0
  112. package/src/resources/browser-pools.ts +177 -0
  113. package/src/resources/browsers/browsers.ts +143 -1
  114. package/src/resources/browsers/index.ts +2 -0
  115. package/src/resources/browsers/telemetry.ts +34 -0
  116. package/src/resources/index.ts +1 -1
  117. package/src/resources/invocations.ts +6 -0
  118. package/src/version.ts +1 -1
  119. package/version.d.mts +1 -1
  120. package/version.d.ts +1 -1
  121. package/version.js +1 -1
  122. 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
+ }
@@ -20,3 +20,4 @@ export {
20
20
  type ManagedAuthsOffsetPagination,
21
21
  type ManagedAuthTimelineEventsOffsetPagination,
22
22
  } from './connections';
23
+ export { Context, type AuthContext } from './context';
@@ -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,
@@ -24,7 +24,7 @@ export {
24
24
  type AuditLogListParams,
25
25
  type AuditLogExportChunkParams,
26
26
  type AuditLogEntriesPageTokenPagination,
27
- } from './audit-logs';
27
+ } from './audit-logs/audit-logs';
28
28
  export { Auth } from './auth/auth';
29
29
  export {
30
30
  BrowserPools,
@@ -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.86.0'; // x-release-please-version
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.86.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.86.0";
1
+ export declare const VERSION = "0.87.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.86.0'; // x-release-please-version
4
+ exports.VERSION = '0.87.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.86.0'; // x-release-please-version
1
+ export const VERSION = '0.87.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map