@onkernel/sdk 0.87.1 → 0.88.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 (66) hide show
  1. package/CHANGELOG.md +8 -1
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs.map +1 -1
  8. package/package.json +1 -1
  9. package/resources/auth/auth.d.mts +2 -2
  10. package/resources/auth/auth.d.mts.map +1 -1
  11. package/resources/auth/auth.d.ts +2 -2
  12. package/resources/auth/auth.d.ts.map +1 -1
  13. package/resources/auth/auth.js.map +1 -1
  14. package/resources/auth/auth.mjs.map +1 -1
  15. package/resources/auth/connections.d.mts +196 -88
  16. package/resources/auth/connections.d.mts.map +1 -1
  17. package/resources/auth/connections.d.ts +196 -88
  18. package/resources/auth/connections.d.ts.map +1 -1
  19. package/resources/auth/connections.js.map +1 -1
  20. package/resources/auth/connections.mjs.map +1 -1
  21. package/resources/auth/index.d.mts +1 -1
  22. package/resources/auth/index.d.mts.map +1 -1
  23. package/resources/auth/index.d.ts +1 -1
  24. package/resources/auth/index.d.ts.map +1 -1
  25. package/resources/auth/index.js.map +1 -1
  26. package/resources/auth/index.mjs.map +1 -1
  27. package/resources/browser-pools.d.mts +6 -1
  28. package/resources/browser-pools.d.mts.map +1 -1
  29. package/resources/browser-pools.d.ts +6 -1
  30. package/resources/browser-pools.d.ts.map +1 -1
  31. package/resources/browsers/browsers.d.mts +114 -13
  32. package/resources/browsers/browsers.d.mts.map +1 -1
  33. package/resources/browsers/browsers.d.ts +114 -13
  34. package/resources/browsers/browsers.d.ts.map +1 -1
  35. package/resources/browsers/browsers.js.map +1 -1
  36. package/resources/browsers/browsers.mjs.map +1 -1
  37. package/resources/browsers/index.d.mts +1 -1
  38. package/resources/browsers/index.d.mts.map +1 -1
  39. package/resources/browsers/index.d.ts +1 -1
  40. package/resources/browsers/index.d.ts.map +1 -1
  41. package/resources/browsers/index.js.map +1 -1
  42. package/resources/browsers/index.mjs.map +1 -1
  43. package/resources/index.d.mts +1 -1
  44. package/resources/index.d.mts.map +1 -1
  45. package/resources/index.d.ts +1 -1
  46. package/resources/index.d.ts.map +1 -1
  47. package/resources/index.js.map +1 -1
  48. package/resources/index.mjs.map +1 -1
  49. package/resources/invocations.d.mts +6 -1
  50. package/resources/invocations.d.mts.map +1 -1
  51. package/resources/invocations.d.ts +6 -1
  52. package/resources/invocations.d.ts.map +1 -1
  53. package/src/client.ts +6 -0
  54. package/src/resources/auth/auth.ts +2 -0
  55. package/src/resources/auth/connections.ts +214 -87
  56. package/src/resources/auth/index.ts +1 -0
  57. package/src/resources/browser-pools.ts +7 -1
  58. package/src/resources/browsers/browsers.ts +129 -12
  59. package/src/resources/browsers/index.ts +3 -0
  60. package/src/resources/index.ts +3 -0
  61. package/src/resources/invocations.ts +7 -1
  62. package/src/version.ts +1 -1
  63. package/version.d.mts +1 -1
  64. package/version.d.ts +1 -1
  65. package/version.js +1 -1
  66. package/version.mjs +1 -1
@@ -2,6 +2,7 @@
2
2
 
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as Shared from '../shared';
5
+ import * as BrowsersAPI from '../browsers/browsers';
5
6
  import * as TelemetryAPI from '../browsers/telemetry';
6
7
  import { APIPromise } from '../../core/api-promise';
7
8
  import { OffsetPagination, type OffsetPaginationParams, PagePromise } from '../../core/pagination';
@@ -291,6 +292,12 @@ export interface ManagedAuth {
291
292
  */
292
293
  auto_reauth?: boolean;
293
294
 
295
+ /**
296
+ * Default browser configuration for login, reauthentication, and health-check
297
+ * sessions.
298
+ */
299
+ browser?: ManagedAuthBrowserConfig;
300
+
294
301
  /**
295
302
  * ID of the underlying browser session driving the current flow (present when flow
296
303
  * in progress). Use this to inspect or terminate the browser session via the
@@ -299,9 +306,8 @@ export interface ManagedAuth {
299
306
  browser_session_id?: string | null;
300
307
 
301
308
  /**
302
- * Browser telemetry configuration used by this connection's browser sessions by
303
- * default. The exact create-browser configuration is preserved and can be
304
- * overridden per-login.
309
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
310
+ * existing clients.
305
311
  */
306
312
  browser_telemetry?: ManagedAuth.BrowserTelemetry | null;
307
313
 
@@ -343,6 +349,8 @@ export interface ManagedAuth {
343
349
  * automatically
344
350
  * - `requires_email_code` — flow needs an email code that cannot be received
345
351
  * automatically
352
+ * - `requires_customer_input` — flow needs another field or choice that is
353
+ * unavailable during unattended re-authentication
346
354
  */
347
355
  can_reauth_reason?:
348
356
  | 'external_credential'
@@ -358,7 +366,8 @@ export interface ManagedAuth {
358
366
  | 'requires_external_action'
359
367
  | 'requires_totp_without_secret'
360
368
  | 'requires_sms_code'
361
- | 'requires_email_code';
369
+ | 'requires_email_code'
370
+ | 'requires_customer_input';
362
371
 
363
372
  /**
364
373
  * Canonical choices awaiting selection. Prefer this over pending_sso_buttons,
@@ -435,9 +444,10 @@ export interface ManagedAuth {
435
444
  /**
436
445
  * Interval in seconds between automatic health checks. When set, the system
437
446
  * periodically verifies the authentication status and triggers re-authentication
438
- * if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
439
- * depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
440
- * Hobbyist: 3600 (1 hour).
447
+ * if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour) or your plan
448
+ * minimum, whichever is larger. The minimum depends on your plan: Enterprise: 300
449
+ * (5 minutes), Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour), Free: 21600 (6
450
+ * hours).
441
451
  */
442
452
  health_check_interval?: number | null;
443
453
 
@@ -499,7 +509,8 @@ export interface ManagedAuth {
499
509
  post_login_url?: string;
500
510
 
501
511
  /**
502
- * ID of the proxy associated with this connection, if any.
512
+ * @deprecated Deprecated. Read browser.proxy instead. Retained during migration
513
+ * for existing clients.
503
514
  */
504
515
  proxy_id?: string;
505
516
 
@@ -524,9 +535,8 @@ export interface ManagedAuth {
524
535
 
525
536
  export namespace ManagedAuth {
526
537
  /**
527
- * Browser telemetry configuration used by this connection's browser sessions by
528
- * default. The exact create-browser configuration is preserved and can be
529
- * overridden per-login.
538
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
539
+ * existing clients.
530
540
  */
531
541
  export interface BrowserTelemetry {
532
542
  /**
@@ -835,6 +845,120 @@ export namespace ManagedAuth {
835
845
  }
836
846
  }
837
847
 
848
+ /**
849
+ * Browser configuration applied to browser sessions created for a managed auth
850
+ * connection. Managed auth controls the profile, headless mode, timeout, start
851
+ * URL, kiosk mode, and viewport.
852
+ */
853
+ export interface ManagedAuthBrowserConfig {
854
+ /**
855
+ * Proxy configuration for managed auth browser sessions. Omit on create to derive
856
+ * the default from stealth, or on update and login to preserve or inherit the
857
+ * connection default.
858
+ */
859
+ proxy?: BrowsersAPI.BrowserProxyConfig;
860
+
861
+ /**
862
+ * Whether managed auth browser sessions use stealth mode. Defaults to true when
863
+ * omitted.
864
+ */
865
+ stealth?: boolean;
866
+
867
+ /**
868
+ * Browser telemetry configuration using the same semantics as browser create.
869
+ */
870
+ telemetry?: ManagedAuthBrowserConfig.Telemetry | null;
871
+ }
872
+
873
+ export namespace ManagedAuthBrowserConfig {
874
+ /**
875
+ * Browser telemetry configuration using the same semantics as browser create.
876
+ */
877
+ export interface Telemetry {
878
+ /**
879
+ * Per-category capture flags. The operational categories (control, connection,
880
+ * system, captcha) are captured whenever telemetry is enabled; set one to
881
+ * enabled=false to opt out. The CDP categories (console, network, page,
882
+ * interaction) and screenshot are off by default; set enabled=true to opt in. On
883
+ * create, provided categories layer onto the default set. On update, provided
884
+ * categories merge onto the session's current config; when no telemetry is active
885
+ * this falls back to the default set (matching create). If browser is omitted or
886
+ * empty, the default set is used. A browser config that disables every category
887
+ * stops capture on update and starts no capture on create.
888
+ */
889
+ browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
890
+
891
+ /**
892
+ * Request shortcut for browser telemetry capture. True enables capture; with no
893
+ * browser category settings it captures the default set (control, connection,
894
+ * system, captcha), and any browser category settings are layered onto that
895
+ * default set. On update, enabled=true resolves the config fresh from the default
896
+ * set plus any provided categories, replacing the session's current selection
897
+ * rather than merging onto it; omit enabled to merge categories onto the current
898
+ * selection instead. False stops capture on update and starts no capture on
899
+ * create. enabled=false cannot be combined with browser category settings.
900
+ */
901
+ enabled?: boolean;
902
+
903
+ /**
904
+ * Where to export this session's captured telemetry. Omit to capture without
905
+ * exporting.
906
+ */
907
+ export?: Telemetry.Export;
908
+ }
909
+
910
+ export namespace Telemetry {
911
+ /**
912
+ * Where to export this session's captured telemetry. Omit to capture without
913
+ * exporting.
914
+ */
915
+ export interface Export {
916
+ /**
917
+ * Export captured telemetry over OTLP to one of the org's configured destinations.
918
+ */
919
+ otlp?: Export.Otlp;
920
+ }
921
+
922
+ export namespace Export {
923
+ /**
924
+ * Export captured telemetry over OTLP to one of the org's configured destinations.
925
+ */
926
+ export interface Otlp {
927
+ /**
928
+ * OTLP destination to export this session's captured telemetry to. Provide either
929
+ * id or name. Requires telemetry capture to be enabled.
930
+ */
931
+ destination?: Otlp.Destination;
932
+
933
+ /**
934
+ * Whether to export captured telemetry over OTLP. Setting destination implies
935
+ * enabled=true, so this only needs to be set explicitly to disable export
936
+ * (enabled=false with a destination is rejected).
937
+ */
938
+ enabled?: boolean;
939
+ }
940
+
941
+ export namespace Otlp {
942
+ /**
943
+ * OTLP destination to export this session's captured telemetry to. Provide either
944
+ * id or name. Requires telemetry capture to be enabled.
945
+ */
946
+ export interface Destination {
947
+ /**
948
+ * OTLP destination ID
949
+ */
950
+ id?: string;
951
+
952
+ /**
953
+ * OTLP destination name
954
+ */
955
+ name?: string;
956
+ }
957
+ }
958
+ }
959
+ }
960
+ }
961
+
838
962
  /**
839
963
  * Request to create an auth connection for a profile and domain
840
964
  */
@@ -884,9 +1008,14 @@ export interface ManagedAuthCreateRequest {
884
1008
  auto_reauth?: boolean;
885
1009
 
886
1010
  /**
887
- * Browser telemetry configuration used by this connection's browser sessions by
888
- * default. Uses the exact create-browser configuration. Can be overridden
889
- * per-login.
1011
+ * Default browser configuration for login, reauthentication, and health-check
1012
+ * sessions.
1013
+ */
1014
+ browser?: ManagedAuthBrowserConfig;
1015
+
1016
+ /**
1017
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
1018
+ * existing clients.
890
1019
  */
891
1020
  browser_telemetry?: ManagedAuthCreateRequest.BrowserTelemetry | null;
892
1021
 
@@ -902,9 +1031,10 @@ export interface ManagedAuthCreateRequest {
902
1031
  /**
903
1032
  * Interval in seconds between automatic health checks. When set, the system
904
1033
  * periodically verifies the authentication status and triggers re-authentication
905
- * if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
906
- * depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
907
- * Hobbyist: 3600 (1 hour).
1034
+ * if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour) or your plan
1035
+ * minimum, whichever is larger. The minimum depends on your plan: Enterprise: 300
1036
+ * (5 minutes), Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour), Free: 21600 (6
1037
+ * hours).
908
1038
  */
909
1039
  health_check_interval?: number;
910
1040
 
@@ -922,10 +1052,8 @@ export interface ManagedAuthCreateRequest {
922
1052
  login_url?: string;
923
1053
 
924
1054
  /**
925
- * Proxy selection. Provide either id or name. The proxy must be in the same
926
- * project as the resource referencing it. When selecting by name, the name must
927
- * match exactly one active proxy in the project. Ambiguous names return a 400; use
928
- * id for stable references.
1055
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
1056
+ * existing clients.
929
1057
  */
930
1058
  proxy?: ManagedAuthCreateRequest.Proxy;
931
1059
 
@@ -944,9 +1072,8 @@ export interface ManagedAuthCreateRequest {
944
1072
 
945
1073
  export namespace ManagedAuthCreateRequest {
946
1074
  /**
947
- * Browser telemetry configuration used by this connection's browser sessions by
948
- * default. Uses the exact create-browser configuration. Can be overridden
949
- * per-login.
1075
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
1076
+ * existing clients.
950
1077
  */
951
1078
  export interface BrowserTelemetry {
952
1079
  /**
@@ -1062,10 +1189,8 @@ export namespace ManagedAuthCreateRequest {
1062
1189
  }
1063
1190
 
1064
1191
  /**
1065
- * Proxy selection. Provide either id or name. The proxy must be in the same
1066
- * project as the resource referencing it. When selecting by name, the name must
1067
- * match exactly one active proxy in the project. Ambiguous names return a 400; use
1068
- * id for stable references.
1192
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
1193
+ * existing clients.
1069
1194
  */
1070
1195
  export interface Proxy {
1071
1196
  /**
@@ -1186,9 +1311,14 @@ export interface ManagedAuthUpdateRequest {
1186
1311
  auto_reauth?: boolean;
1187
1312
 
1188
1313
  /**
1189
- * Browser telemetry configuration used by future browser sessions for this
1190
- * connection. Uses the exact create-browser configuration. Set enabled to false to
1191
- * disable telemetry.
1314
+ * Browser configuration updates for future login, reauthentication, and
1315
+ * health-check sessions. Omitted properties remain unchanged.
1316
+ */
1317
+ browser?: ManagedAuthBrowserConfig;
1318
+
1319
+ /**
1320
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
1321
+ * existing clients.
1192
1322
  */
1193
1323
  browser_telemetry?: ManagedAuthUpdateRequest.BrowserTelemetry | null;
1194
1324
 
@@ -1220,10 +1350,8 @@ export interface ManagedAuthUpdateRequest {
1220
1350
  login_url?: string;
1221
1351
 
1222
1352
  /**
1223
- * Proxy selection. Provide either id or name. The proxy must be in the same
1224
- * project as the resource referencing it. When selecting by name, the name must
1225
- * match exactly one active proxy in the project. Ambiguous names return a 400; use
1226
- * id for stable references.
1353
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
1354
+ * existing clients.
1227
1355
  */
1228
1356
  proxy?: ManagedAuthUpdateRequest.Proxy;
1229
1357
 
@@ -1240,9 +1368,8 @@ export interface ManagedAuthUpdateRequest {
1240
1368
 
1241
1369
  export namespace ManagedAuthUpdateRequest {
1242
1370
  /**
1243
- * Browser telemetry configuration used by future browser sessions for this
1244
- * connection. Uses the exact create-browser configuration. Set enabled to false to
1245
- * disable telemetry.
1371
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
1372
+ * existing clients.
1246
1373
  */
1247
1374
  export interface BrowserTelemetry {
1248
1375
  /**
@@ -1358,10 +1485,8 @@ export namespace ManagedAuthUpdateRequest {
1358
1485
  }
1359
1486
 
1360
1487
  /**
1361
- * Proxy selection. Provide either id or name. The proxy must be in the same
1362
- * project as the resource referencing it. When selecting by name, the name must
1363
- * match exactly one active proxy in the project. Ambiguous names return a 400; use
1364
- * id for stable references.
1488
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
1489
+ * existing clients.
1365
1490
  */
1366
1491
  export interface Proxy {
1367
1492
  /**
@@ -1787,9 +1912,14 @@ export interface ConnectionCreateParams {
1787
1912
  auto_reauth?: boolean;
1788
1913
 
1789
1914
  /**
1790
- * Browser telemetry configuration used by this connection's browser sessions by
1791
- * default. Uses the exact create-browser configuration. Can be overridden
1792
- * per-login.
1915
+ * Default browser configuration for login, reauthentication, and health-check
1916
+ * sessions.
1917
+ */
1918
+ browser?: ManagedAuthBrowserConfig;
1919
+
1920
+ /**
1921
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
1922
+ * existing clients.
1793
1923
  */
1794
1924
  browser_telemetry?: ConnectionCreateParams.BrowserTelemetry | null;
1795
1925
 
@@ -1805,9 +1935,10 @@ export interface ConnectionCreateParams {
1805
1935
  /**
1806
1936
  * Interval in seconds between automatic health checks. When set, the system
1807
1937
  * periodically verifies the authentication status and triggers re-authentication
1808
- * if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour). The minimum
1809
- * depends on your plan: Enterprise: 300 (5 minutes), Startup: 1200 (20 minutes),
1810
- * Hobbyist: 3600 (1 hour).
1938
+ * if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour) or your plan
1939
+ * minimum, whichever is larger. The minimum depends on your plan: Enterprise: 300
1940
+ * (5 minutes), Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour), Free: 21600 (6
1941
+ * hours).
1811
1942
  */
1812
1943
  health_check_interval?: number;
1813
1944
 
@@ -1825,10 +1956,8 @@ export interface ConnectionCreateParams {
1825
1956
  login_url?: string;
1826
1957
 
1827
1958
  /**
1828
- * Proxy selection. Provide either id or name. The proxy must be in the same
1829
- * project as the resource referencing it. When selecting by name, the name must
1830
- * match exactly one active proxy in the project. Ambiguous names return a 400; use
1831
- * id for stable references.
1959
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
1960
+ * existing clients.
1832
1961
  */
1833
1962
  proxy?: ConnectionCreateParams.Proxy;
1834
1963
 
@@ -1847,9 +1976,8 @@ export interface ConnectionCreateParams {
1847
1976
 
1848
1977
  export namespace ConnectionCreateParams {
1849
1978
  /**
1850
- * Browser telemetry configuration used by this connection's browser sessions by
1851
- * default. Uses the exact create-browser configuration. Can be overridden
1852
- * per-login.
1979
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
1980
+ * existing clients.
1853
1981
  */
1854
1982
  export interface BrowserTelemetry {
1855
1983
  /**
@@ -1965,10 +2093,8 @@ export namespace ConnectionCreateParams {
1965
2093
  }
1966
2094
 
1967
2095
  /**
1968
- * Proxy selection. Provide either id or name. The proxy must be in the same
1969
- * project as the resource referencing it. When selecting by name, the name must
1970
- * match exactly one active proxy in the project. Ambiguous names return a 400; use
1971
- * id for stable references.
2096
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
2097
+ * existing clients.
1972
2098
  */
1973
2099
  export interface Proxy {
1974
2100
  /**
@@ -2001,9 +2127,14 @@ export interface ConnectionUpdateParams {
2001
2127
  auto_reauth?: boolean;
2002
2128
 
2003
2129
  /**
2004
- * Browser telemetry configuration used by future browser sessions for this
2005
- * connection. Uses the exact create-browser configuration. Set enabled to false to
2006
- * disable telemetry.
2130
+ * Browser configuration updates for future login, reauthentication, and
2131
+ * health-check sessions. Omitted properties remain unchanged.
2132
+ */
2133
+ browser?: ManagedAuthBrowserConfig;
2134
+
2135
+ /**
2136
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
2137
+ * existing clients.
2007
2138
  */
2008
2139
  browser_telemetry?: ConnectionUpdateParams.BrowserTelemetry | null;
2009
2140
 
@@ -2035,10 +2166,8 @@ export interface ConnectionUpdateParams {
2035
2166
  login_url?: string;
2036
2167
 
2037
2168
  /**
2038
- * Proxy selection. Provide either id or name. The proxy must be in the same
2039
- * project as the resource referencing it. When selecting by name, the name must
2040
- * match exactly one active proxy in the project. Ambiguous names return a 400; use
2041
- * id for stable references.
2169
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
2170
+ * existing clients.
2042
2171
  */
2043
2172
  proxy?: ConnectionUpdateParams.Proxy;
2044
2173
 
@@ -2055,9 +2184,8 @@ export interface ConnectionUpdateParams {
2055
2184
 
2056
2185
  export namespace ConnectionUpdateParams {
2057
2186
  /**
2058
- * Browser telemetry configuration used by future browser sessions for this
2059
- * connection. Uses the exact create-browser configuration. Set enabled to false to
2060
- * disable telemetry.
2187
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
2188
+ * existing clients.
2061
2189
  */
2062
2190
  export interface BrowserTelemetry {
2063
2191
  /**
@@ -2173,10 +2301,8 @@ export namespace ConnectionUpdateParams {
2173
2301
  }
2174
2302
 
2175
2303
  /**
2176
- * Proxy selection. Provide either id or name. The proxy must be in the same
2177
- * project as the resource referencing it. When selecting by name, the name must
2178
- * match exactly one active proxy in the project. Ambiguous names return a 400; use
2179
- * id for stable references.
2304
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
2305
+ * existing clients.
2180
2306
  */
2181
2307
  export interface Proxy {
2182
2308
  /**
@@ -2210,17 +2336,20 @@ export interface ConnectionListParams extends OffsetPaginationParams {
2210
2336
 
2211
2337
  export interface ConnectionLoginParams {
2212
2338
  /**
2213
- * Override the connection's default browser telemetry configuration for this
2214
- * login. When omitted, the connection's browser_telemetry default is used. Uses
2215
- * the exact create-browser configuration.
2339
+ * Browser configuration override for this login. Omitted properties inherit the
2340
+ * connection defaults.
2341
+ */
2342
+ browser?: ManagedAuthBrowserConfig;
2343
+
2344
+ /**
2345
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
2346
+ * existing clients.
2216
2347
  */
2217
2348
  browser_telemetry?: ConnectionLoginParams.BrowserTelemetry | null;
2218
2349
 
2219
2350
  /**
2220
- * Proxy selection. Provide either id or name. The proxy must be in the same
2221
- * project as the resource referencing it. When selecting by name, the name must
2222
- * match exactly one active proxy in the project. Ambiguous names return a 400; use
2223
- * id for stable references.
2351
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
2352
+ * existing clients.
2224
2353
  */
2225
2354
  proxy?: ConnectionLoginParams.Proxy;
2226
2355
 
@@ -2233,9 +2362,8 @@ export interface ConnectionLoginParams {
2233
2362
 
2234
2363
  export namespace ConnectionLoginParams {
2235
2364
  /**
2236
- * Override the connection's default browser telemetry configuration for this
2237
- * login. When omitted, the connection's browser_telemetry default is used. Uses
2238
- * the exact create-browser configuration.
2365
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
2366
+ * existing clients.
2239
2367
  */
2240
2368
  export interface BrowserTelemetry {
2241
2369
  /**
@@ -2322,10 +2450,8 @@ export namespace ConnectionLoginParams {
2322
2450
  }
2323
2451
 
2324
2452
  /**
2325
- * Proxy selection. Provide either id or name. The proxy must be in the same
2326
- * project as the resource referencing it. When selecting by name, the name must
2327
- * match exactly one active proxy in the project. Ambiguous names return a 400; use
2328
- * id for stable references.
2453
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
2454
+ * existing clients.
2329
2455
  */
2330
2456
  export interface Proxy {
2331
2457
  /**
@@ -2390,6 +2516,7 @@ export declare namespace Connections {
2390
2516
  export {
2391
2517
  type LoginResponse as LoginResponse,
2392
2518
  type ManagedAuth as ManagedAuth,
2519
+ type ManagedAuthBrowserConfig as ManagedAuthBrowserConfig,
2393
2520
  type ManagedAuthCreateRequest as ManagedAuthCreateRequest,
2394
2521
  type ManagedAuthTimelineEvent as ManagedAuthTimelineEvent,
2395
2522
  type ManagedAuthUpdateRequest as ManagedAuthUpdateRequest,
@@ -5,6 +5,7 @@ export {
5
5
  Connections,
6
6
  type LoginResponse,
7
7
  type ManagedAuth,
8
+ type ManagedAuthBrowserConfig,
8
9
  type ManagedAuthCreateRequest,
9
10
  type ManagedAuthTimelineEvent,
10
11
  type ManagedAuthUpdateRequest,
@@ -439,7 +439,13 @@ export interface BrowserPoolAcquireResponse {
439
439
  profile_save_changes?: boolean;
440
440
 
441
441
  /**
442
- * ID of the proxy associated with this browser session, if any.
442
+ * Resolved proxy configuration for this browser session.
443
+ */
444
+ proxy?: BrowsersAPI.BrowserProxy;
445
+
446
+ /**
447
+ * @deprecated ID of the proxy associated with this browser session, if any.
448
+ * Deprecated in favor of proxy.
443
449
  */
444
450
  proxy_id?: string;
445
451