@onkernel/sdk 0.87.1 → 0.90.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 (95) hide show
  1. package/CHANGELOG.md +25 -1
  2. package/client.d.mts +6 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -3
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -1
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -1
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/auth/auth.d.mts +2 -2
  12. package/resources/auth/auth.d.mts.map +1 -1
  13. package/resources/auth/auth.d.ts +2 -2
  14. package/resources/auth/auth.d.ts.map +1 -1
  15. package/resources/auth/auth.js.map +1 -1
  16. package/resources/auth/auth.mjs.map +1 -1
  17. package/resources/auth/connections.d.mts +238 -88
  18. package/resources/auth/connections.d.mts.map +1 -1
  19. package/resources/auth/connections.d.ts +238 -88
  20. package/resources/auth/connections.d.ts.map +1 -1
  21. package/resources/auth/connections.js.map +1 -1
  22. package/resources/auth/connections.mjs.map +1 -1
  23. package/resources/auth/index.d.mts +1 -1
  24. package/resources/auth/index.d.mts.map +1 -1
  25. package/resources/auth/index.d.ts +1 -1
  26. package/resources/auth/index.d.ts.map +1 -1
  27. package/resources/auth/index.js.map +1 -1
  28. package/resources/auth/index.mjs.map +1 -1
  29. package/resources/browser-pools.d.mts +46 -1
  30. package/resources/browser-pools.d.mts.map +1 -1
  31. package/resources/browser-pools.d.ts +46 -1
  32. package/resources/browser-pools.d.ts.map +1 -1
  33. package/resources/browsers/browsers.d.mts +194 -13
  34. package/resources/browsers/browsers.d.mts.map +1 -1
  35. package/resources/browsers/browsers.d.ts +194 -13
  36. package/resources/browsers/browsers.d.ts.map +1 -1
  37. package/resources/browsers/browsers.js.map +1 -1
  38. package/resources/browsers/browsers.mjs.map +1 -1
  39. package/resources/browsers/index.d.mts +1 -1
  40. package/resources/browsers/index.d.mts.map +1 -1
  41. package/resources/browsers/index.d.ts +1 -1
  42. package/resources/browsers/index.d.ts.map +1 -1
  43. package/resources/browsers/index.js.map +1 -1
  44. package/resources/browsers/index.mjs.map +1 -1
  45. package/resources/index.d.mts +1 -1
  46. package/resources/index.d.mts.map +1 -1
  47. package/resources/index.d.ts +1 -1
  48. package/resources/index.d.ts.map +1 -1
  49. package/resources/index.js.map +1 -1
  50. package/resources/index.mjs.map +1 -1
  51. package/resources/invocations.d.mts +15 -1
  52. package/resources/invocations.d.mts.map +1 -1
  53. package/resources/invocations.d.ts +15 -1
  54. package/resources/invocations.d.ts.map +1 -1
  55. package/resources/organization/limits.d.mts +18 -3
  56. package/resources/organization/limits.d.mts.map +1 -1
  57. package/resources/organization/limits.d.ts +18 -3
  58. package/resources/organization/limits.d.ts.map +1 -1
  59. package/resources/organization/limits.js +1 -3
  60. package/resources/organization/limits.js.map +1 -1
  61. package/resources/organization/limits.mjs +1 -3
  62. package/resources/organization/limits.mjs.map +1 -1
  63. package/resources/projects/limits.d.mts +4 -4
  64. package/resources/projects/limits.d.mts.map +1 -1
  65. package/resources/projects/limits.d.ts +4 -4
  66. package/resources/projects/limits.d.ts.map +1 -1
  67. package/resources/projects/limits.js +6 -6
  68. package/resources/projects/limits.js.map +1 -1
  69. package/resources/projects/limits.mjs +6 -6
  70. package/resources/projects/limits.mjs.map +1 -1
  71. package/resources/projects/projects.d.mts +12 -10
  72. package/resources/projects/projects.d.mts.map +1 -1
  73. package/resources/projects/projects.d.ts +12 -10
  74. package/resources/projects/projects.d.ts.map +1 -1
  75. package/resources/projects/projects.js +11 -9
  76. package/resources/projects/projects.js.map +1 -1
  77. package/resources/projects/projects.mjs +11 -9
  78. package/resources/projects/projects.mjs.map +1 -1
  79. package/src/client.ts +17 -0
  80. package/src/resources/auth/auth.ts +2 -0
  81. package/src/resources/auth/connections.ts +286 -87
  82. package/src/resources/auth/index.ts +1 -0
  83. package/src/resources/browser-pools.ts +55 -1
  84. package/src/resources/browsers/browsers.ts +222 -12
  85. package/src/resources/browsers/index.ts +4 -0
  86. package/src/resources/index.ts +4 -0
  87. package/src/resources/invocations.ts +18 -1
  88. package/src/resources/organization/limits.ts +21 -3
  89. package/src/resources/projects/limits.ts +6 -6
  90. package/src/resources/projects/projects.ts +15 -13
  91. package/src/version.ts +1 -1
  92. package/version.d.mts +1 -1
  93. package/version.d.ts +1 -1
  94. package/version.js +1 -1
  95. 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
  /**
@@ -638,11 +648,42 @@ export namespace ManagedAuth {
638
648
  | 'account'
639
649
  | 'other';
640
650
 
651
+ /**
652
+ * Context captured for a choice.
653
+ */
654
+ context?: string | null;
655
+
641
656
  /**
642
657
  * Additional context for the choice.
643
658
  */
644
659
  description?: string | null;
645
660
 
661
+ /**
662
+ * Display text captured for a choice.
663
+ */
664
+ display_text?: string | null;
665
+
666
+ /**
667
+ * Masked phone number or email address shown for an MFA choice.
668
+ */
669
+ masked_destination?: string | null;
670
+
671
+ /**
672
+ * Semantic MFA method. Choice id remains the stable identity of the exact option
673
+ * selected.
674
+ */
675
+ mfa_type?:
676
+ | 'sms'
677
+ | 'call'
678
+ | 'email'
679
+ | 'totp'
680
+ | 'push'
681
+ | 'password'
682
+ | 'passkey'
683
+ | 'switch'
684
+ | 'other'
685
+ | null;
686
+
646
687
  /**
647
688
  * Selector for the visible choice, when available.
648
689
  */
@@ -744,6 +785,11 @@ export namespace ManagedAuth {
744
785
  */
745
786
  type: 'identifier' | 'password' | 'code' | 'totp_code' | 'totp_secret' | 'text';
746
787
 
788
+ /**
789
+ * Context shown near the field, including a masked code destination.
790
+ */
791
+ hint?: string;
792
+
747
793
  /**
748
794
  * Human-readable label shown to the user.
749
795
  */
@@ -835,6 +881,120 @@ export namespace ManagedAuth {
835
881
  }
836
882
  }
837
883
 
884
+ /**
885
+ * Browser configuration applied to browser sessions created for a managed auth
886
+ * connection. Managed auth controls the profile, headless mode, timeout, start
887
+ * URL, kiosk mode, and viewport.
888
+ */
889
+ export interface ManagedAuthBrowserConfig {
890
+ /**
891
+ * Proxy configuration for managed auth browser sessions. Omit on create to derive
892
+ * the default from stealth, or on update and login to preserve or inherit the
893
+ * connection default.
894
+ */
895
+ proxy?: BrowsersAPI.BrowserProxyConfig;
896
+
897
+ /**
898
+ * Whether managed auth browser sessions use stealth mode. Defaults to true when
899
+ * omitted.
900
+ */
901
+ stealth?: boolean;
902
+
903
+ /**
904
+ * Browser telemetry configuration using the same semantics as browser create.
905
+ */
906
+ telemetry?: ManagedAuthBrowserConfig.Telemetry | null;
907
+ }
908
+
909
+ export namespace ManagedAuthBrowserConfig {
910
+ /**
911
+ * Browser telemetry configuration using the same semantics as browser create.
912
+ */
913
+ export interface Telemetry {
914
+ /**
915
+ * Per-category capture flags. The operational categories (control, connection,
916
+ * system, captcha) are captured whenever telemetry is enabled; set one to
917
+ * enabled=false to opt out. The CDP categories (console, network, page,
918
+ * interaction) and screenshot are off by default; set enabled=true to opt in. On
919
+ * create, provided categories layer onto the default set. On update, provided
920
+ * categories merge onto the session's current config; when no telemetry is active
921
+ * this falls back to the default set (matching create). If browser is omitted or
922
+ * empty, the default set is used. A browser config that disables every category
923
+ * stops capture on update and starts no capture on create.
924
+ */
925
+ browser?: TelemetryAPI.BrowserTelemetryCategoriesConfig;
926
+
927
+ /**
928
+ * Request shortcut for browser telemetry capture. True enables capture; with no
929
+ * browser category settings it captures the default set (control, connection,
930
+ * system, captcha), and any browser category settings are layered onto that
931
+ * default set. On update, enabled=true resolves the config fresh from the default
932
+ * set plus any provided categories, replacing the session's current selection
933
+ * rather than merging onto it; omit enabled to merge categories onto the current
934
+ * selection instead. False stops capture on update and starts no capture on
935
+ * create. enabled=false cannot be combined with browser category settings.
936
+ */
937
+ enabled?: boolean;
938
+
939
+ /**
940
+ * Where to export this session's captured telemetry. Omit to capture without
941
+ * exporting.
942
+ */
943
+ export?: Telemetry.Export;
944
+ }
945
+
946
+ export namespace Telemetry {
947
+ /**
948
+ * Where to export this session's captured telemetry. Omit to capture without
949
+ * exporting.
950
+ */
951
+ export interface Export {
952
+ /**
953
+ * Export captured telemetry over OTLP to one of the org's configured destinations.
954
+ */
955
+ otlp?: Export.Otlp;
956
+ }
957
+
958
+ export namespace Export {
959
+ /**
960
+ * Export captured telemetry over OTLP to one of the org's configured destinations.
961
+ */
962
+ export interface Otlp {
963
+ /**
964
+ * OTLP destination to export this session's captured telemetry to. Provide either
965
+ * id or name. Requires telemetry capture to be enabled.
966
+ */
967
+ destination?: Otlp.Destination;
968
+
969
+ /**
970
+ * Whether to export captured telemetry over OTLP. Setting destination implies
971
+ * enabled=true, so this only needs to be set explicitly to disable export
972
+ * (enabled=false with a destination is rejected).
973
+ */
974
+ enabled?: boolean;
975
+ }
976
+
977
+ export namespace Otlp {
978
+ /**
979
+ * OTLP destination to export this session's captured telemetry to. Provide either
980
+ * id or name. Requires telemetry capture to be enabled.
981
+ */
982
+ export interface Destination {
983
+ /**
984
+ * OTLP destination ID
985
+ */
986
+ id?: string;
987
+
988
+ /**
989
+ * OTLP destination name
990
+ */
991
+ name?: string;
992
+ }
993
+ }
994
+ }
995
+ }
996
+ }
997
+
838
998
  /**
839
999
  * Request to create an auth connection for a profile and domain
840
1000
  */
@@ -884,9 +1044,14 @@ export interface ManagedAuthCreateRequest {
884
1044
  auto_reauth?: boolean;
885
1045
 
886
1046
  /**
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.
1047
+ * Default browser configuration for login, reauthentication, and health-check
1048
+ * sessions.
1049
+ */
1050
+ browser?: ManagedAuthBrowserConfig;
1051
+
1052
+ /**
1053
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
1054
+ * existing clients.
890
1055
  */
891
1056
  browser_telemetry?: ManagedAuthCreateRequest.BrowserTelemetry | null;
892
1057
 
@@ -902,9 +1067,10 @@ export interface ManagedAuthCreateRequest {
902
1067
  /**
903
1068
  * Interval in seconds between automatic health checks. When set, the system
904
1069
  * 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).
1070
+ * if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour) or your plan
1071
+ * minimum, whichever is larger. The minimum depends on your plan: Enterprise: 300
1072
+ * (5 minutes), Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour), Free: 21600 (6
1073
+ * hours).
908
1074
  */
909
1075
  health_check_interval?: number;
910
1076
 
@@ -922,10 +1088,8 @@ export interface ManagedAuthCreateRequest {
922
1088
  login_url?: string;
923
1089
 
924
1090
  /**
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.
1091
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
1092
+ * existing clients.
929
1093
  */
930
1094
  proxy?: ManagedAuthCreateRequest.Proxy;
931
1095
 
@@ -944,9 +1108,8 @@ export interface ManagedAuthCreateRequest {
944
1108
 
945
1109
  export namespace ManagedAuthCreateRequest {
946
1110
  /**
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.
1111
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
1112
+ * existing clients.
950
1113
  */
951
1114
  export interface BrowserTelemetry {
952
1115
  /**
@@ -1062,10 +1225,8 @@ export namespace ManagedAuthCreateRequest {
1062
1225
  }
1063
1226
 
1064
1227
  /**
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.
1228
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
1229
+ * existing clients.
1069
1230
  */
1070
1231
  export interface Proxy {
1071
1232
  /**
@@ -1186,9 +1347,14 @@ export interface ManagedAuthUpdateRequest {
1186
1347
  auto_reauth?: boolean;
1187
1348
 
1188
1349
  /**
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.
1350
+ * Browser configuration updates for future login, reauthentication, and
1351
+ * health-check sessions. Omitted properties remain unchanged.
1352
+ */
1353
+ browser?: ManagedAuthBrowserConfig;
1354
+
1355
+ /**
1356
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
1357
+ * existing clients.
1192
1358
  */
1193
1359
  browser_telemetry?: ManagedAuthUpdateRequest.BrowserTelemetry | null;
1194
1360
 
@@ -1220,10 +1386,8 @@ export interface ManagedAuthUpdateRequest {
1220
1386
  login_url?: string;
1221
1387
 
1222
1388
  /**
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.
1389
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
1390
+ * existing clients.
1227
1391
  */
1228
1392
  proxy?: ManagedAuthUpdateRequest.Proxy;
1229
1393
 
@@ -1240,9 +1404,8 @@ export interface ManagedAuthUpdateRequest {
1240
1404
 
1241
1405
  export namespace ManagedAuthUpdateRequest {
1242
1406
  /**
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.
1407
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
1408
+ * existing clients.
1246
1409
  */
1247
1410
  export interface BrowserTelemetry {
1248
1411
  /**
@@ -1358,10 +1521,8 @@ export namespace ManagedAuthUpdateRequest {
1358
1521
  }
1359
1522
 
1360
1523
  /**
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.
1524
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
1525
+ * existing clients.
1365
1526
  */
1366
1527
  export interface Proxy {
1367
1528
  /**
@@ -1572,11 +1733,42 @@ export namespace ConnectionFollowResponse {
1572
1733
  | 'account'
1573
1734
  | 'other';
1574
1735
 
1736
+ /**
1737
+ * Context captured for a choice.
1738
+ */
1739
+ context?: string | null;
1740
+
1575
1741
  /**
1576
1742
  * Additional context for the choice.
1577
1743
  */
1578
1744
  description?: string | null;
1579
1745
 
1746
+ /**
1747
+ * Display text captured for a choice.
1748
+ */
1749
+ display_text?: string | null;
1750
+
1751
+ /**
1752
+ * Masked phone number or email address shown for an MFA choice.
1753
+ */
1754
+ masked_destination?: string | null;
1755
+
1756
+ /**
1757
+ * Semantic MFA method. Choice id remains the stable identity of the exact option
1758
+ * selected.
1759
+ */
1760
+ mfa_type?:
1761
+ | 'sms'
1762
+ | 'call'
1763
+ | 'email'
1764
+ | 'totp'
1765
+ | 'push'
1766
+ | 'password'
1767
+ | 'passkey'
1768
+ | 'switch'
1769
+ | 'other'
1770
+ | null;
1771
+
1580
1772
  /**
1581
1773
  * Selector for the visible choice, when available.
1582
1774
  */
@@ -1649,6 +1841,11 @@ export namespace ConnectionFollowResponse {
1649
1841
  */
1650
1842
  type: 'identifier' | 'password' | 'code' | 'totp_code' | 'totp_secret' | 'text';
1651
1843
 
1844
+ /**
1845
+ * Context shown near the field, including a masked code destination.
1846
+ */
1847
+ hint?: string;
1848
+
1652
1849
  /**
1653
1850
  * Human-readable label shown to the user.
1654
1851
  */
@@ -1787,9 +1984,14 @@ export interface ConnectionCreateParams {
1787
1984
  auto_reauth?: boolean;
1788
1985
 
1789
1986
  /**
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.
1987
+ * Default browser configuration for login, reauthentication, and health-check
1988
+ * sessions.
1989
+ */
1990
+ browser?: ManagedAuthBrowserConfig;
1991
+
1992
+ /**
1993
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
1994
+ * existing clients.
1793
1995
  */
1794
1996
  browser_telemetry?: ConnectionCreateParams.BrowserTelemetry | null;
1795
1997
 
@@ -1805,9 +2007,10 @@ export interface ConnectionCreateParams {
1805
2007
  /**
1806
2008
  * Interval in seconds between automatic health checks. When set, the system
1807
2009
  * 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).
2010
+ * if needed. Maximum is 86400 (24 hours). Default is 3600 (1 hour) or your plan
2011
+ * minimum, whichever is larger. The minimum depends on your plan: Enterprise: 300
2012
+ * (5 minutes), Startup: 1200 (20 minutes), Hobbyist: 3600 (1 hour), Free: 21600 (6
2013
+ * hours).
1811
2014
  */
1812
2015
  health_check_interval?: number;
1813
2016
 
@@ -1825,10 +2028,8 @@ export interface ConnectionCreateParams {
1825
2028
  login_url?: string;
1826
2029
 
1827
2030
  /**
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.
2031
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
2032
+ * existing clients.
1832
2033
  */
1833
2034
  proxy?: ConnectionCreateParams.Proxy;
1834
2035
 
@@ -1847,9 +2048,8 @@ export interface ConnectionCreateParams {
1847
2048
 
1848
2049
  export namespace ConnectionCreateParams {
1849
2050
  /**
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.
2051
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
2052
+ * existing clients.
1853
2053
  */
1854
2054
  export interface BrowserTelemetry {
1855
2055
  /**
@@ -1965,10 +2165,8 @@ export namespace ConnectionCreateParams {
1965
2165
  }
1966
2166
 
1967
2167
  /**
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.
2168
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
2169
+ * existing clients.
1972
2170
  */
1973
2171
  export interface Proxy {
1974
2172
  /**
@@ -2001,9 +2199,14 @@ export interface ConnectionUpdateParams {
2001
2199
  auto_reauth?: boolean;
2002
2200
 
2003
2201
  /**
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.
2202
+ * Browser configuration updates for future login, reauthentication, and
2203
+ * health-check sessions. Omitted properties remain unchanged.
2204
+ */
2205
+ browser?: ManagedAuthBrowserConfig;
2206
+
2207
+ /**
2208
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
2209
+ * existing clients.
2007
2210
  */
2008
2211
  browser_telemetry?: ConnectionUpdateParams.BrowserTelemetry | null;
2009
2212
 
@@ -2035,10 +2238,8 @@ export interface ConnectionUpdateParams {
2035
2238
  login_url?: string;
2036
2239
 
2037
2240
  /**
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.
2241
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
2242
+ * existing clients.
2042
2243
  */
2043
2244
  proxy?: ConnectionUpdateParams.Proxy;
2044
2245
 
@@ -2055,9 +2256,8 @@ export interface ConnectionUpdateParams {
2055
2256
 
2056
2257
  export namespace ConnectionUpdateParams {
2057
2258
  /**
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.
2259
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
2260
+ * existing clients.
2061
2261
  */
2062
2262
  export interface BrowserTelemetry {
2063
2263
  /**
@@ -2173,10 +2373,8 @@ export namespace ConnectionUpdateParams {
2173
2373
  }
2174
2374
 
2175
2375
  /**
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.
2376
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
2377
+ * existing clients.
2180
2378
  */
2181
2379
  export interface Proxy {
2182
2380
  /**
@@ -2210,17 +2408,20 @@ export interface ConnectionListParams extends OffsetPaginationParams {
2210
2408
 
2211
2409
  export interface ConnectionLoginParams {
2212
2410
  /**
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.
2411
+ * Browser configuration override for this login. Omitted properties inherit the
2412
+ * connection defaults.
2413
+ */
2414
+ browser?: ManagedAuthBrowserConfig;
2415
+
2416
+ /**
2417
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
2418
+ * existing clients.
2216
2419
  */
2217
2420
  browser_telemetry?: ConnectionLoginParams.BrowserTelemetry | null;
2218
2421
 
2219
2422
  /**
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.
2423
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
2424
+ * existing clients.
2224
2425
  */
2225
2426
  proxy?: ConnectionLoginParams.Proxy;
2226
2427
 
@@ -2233,9 +2434,8 @@ export interface ConnectionLoginParams {
2233
2434
 
2234
2435
  export namespace ConnectionLoginParams {
2235
2436
  /**
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.
2437
+ * @deprecated Deprecated. Use browser.telemetry. Retained during migration for
2438
+ * existing clients.
2239
2439
  */
2240
2440
  export interface BrowserTelemetry {
2241
2441
  /**
@@ -2322,10 +2522,8 @@ export namespace ConnectionLoginParams {
2322
2522
  }
2323
2523
 
2324
2524
  /**
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.
2525
+ * @deprecated Deprecated. Use browser.proxy. Retained during migration for
2526
+ * existing clients.
2329
2527
  */
2330
2528
  export interface Proxy {
2331
2529
  /**
@@ -2390,6 +2588,7 @@ export declare namespace Connections {
2390
2588
  export {
2391
2589
  type LoginResponse as LoginResponse,
2392
2590
  type ManagedAuth as ManagedAuth,
2591
+ type ManagedAuthBrowserConfig as ManagedAuthBrowserConfig,
2393
2592
  type ManagedAuthCreateRequest as ManagedAuthCreateRequest,
2394
2593
  type ManagedAuthTimelineEvent as ManagedAuthTimelineEvent,
2395
2594
  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,