@onkernel/sdk 0.153.0 → 0.155.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 (101) hide show
  1. package/CHANGELOG.md +17 -0
  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/api-keys.d.mts +27 -3
  10. package/resources/api-keys.d.mts.map +1 -1
  11. package/resources/api-keys.d.ts +27 -3
  12. package/resources/api-keys.d.ts.map +1 -1
  13. package/resources/auth/context.d.mts +9 -1
  14. package/resources/auth/context.d.mts.map +1 -1
  15. package/resources/auth/context.d.ts +9 -1
  16. package/resources/auth/context.d.ts.map +1 -1
  17. package/resources/browser-pools.d.mts +49 -20
  18. package/resources/browser-pools.d.mts.map +1 -1
  19. package/resources/browser-pools.d.ts +49 -20
  20. package/resources/browser-pools.d.ts.map +1 -1
  21. package/resources/browsers/browsers.d.mts +69 -10
  22. package/resources/browsers/browsers.d.mts.map +1 -1
  23. package/resources/browsers/browsers.d.ts +69 -10
  24. package/resources/browsers/browsers.d.ts.map +1 -1
  25. package/resources/browsers/browsers.js.map +1 -1
  26. package/resources/browsers/browsers.mjs.map +1 -1
  27. package/resources/browsers/index.d.mts +1 -1
  28. package/resources/browsers/index.d.mts.map +1 -1
  29. package/resources/browsers/index.d.ts +1 -1
  30. package/resources/browsers/index.d.ts.map +1 -1
  31. package/resources/browsers/index.js.map +1 -1
  32. package/resources/browsers/index.mjs.map +1 -1
  33. package/resources/deployments.d.mts +82 -0
  34. package/resources/deployments.d.mts.map +1 -1
  35. package/resources/deployments.d.ts +82 -0
  36. package/resources/deployments.d.ts.map +1 -1
  37. package/resources/index.d.mts +1 -1
  38. package/resources/index.d.mts.map +1 -1
  39. package/resources/index.d.ts +1 -1
  40. package/resources/index.d.ts.map +1 -1
  41. package/resources/index.js.map +1 -1
  42. package/resources/index.mjs.map +1 -1
  43. package/resources/invocations.d.mts +7 -2
  44. package/resources/invocations.d.mts.map +1 -1
  45. package/resources/invocations.d.ts +7 -2
  46. package/resources/invocations.d.ts.map +1 -1
  47. package/resources/report-types/report-types.d.mts +7 -0
  48. package/resources/report-types/report-types.d.mts.map +1 -1
  49. package/resources/report-types/report-types.d.ts +7 -0
  50. package/resources/report-types/report-types.d.ts.map +1 -1
  51. package/resources/report-types/report-types.js.map +1 -1
  52. package/resources/report-types/report-types.mjs.map +1 -1
  53. package/resources/shared.d.mts +4 -0
  54. package/resources/shared.d.mts.map +1 -1
  55. package/resources/shared.d.ts +4 -0
  56. package/resources/shared.d.ts.map +1 -1
  57. package/resources/vaults/index.d.mts +1 -1
  58. package/resources/vaults/index.d.mts.map +1 -1
  59. package/resources/vaults/index.d.ts +1 -1
  60. package/resources/vaults/index.d.ts.map +1 -1
  61. package/resources/vaults/index.js.map +1 -1
  62. package/resources/vaults/index.mjs.map +1 -1
  63. package/resources/vaults/items.d.mts +198 -64
  64. package/resources/vaults/items.d.mts.map +1 -1
  65. package/resources/vaults/items.d.ts +198 -64
  66. package/resources/vaults/items.d.ts.map +1 -1
  67. package/resources/vaults/vaults.d.mts +2 -2
  68. package/resources/vaults/vaults.d.mts.map +1 -1
  69. package/resources/vaults/vaults.d.ts +2 -2
  70. package/resources/vaults/vaults.d.ts.map +1 -1
  71. package/resources/vaults/vaults.js.map +1 -1
  72. package/resources/vaults/vaults.mjs.map +1 -1
  73. package/resources/workload-identity-federation-rules.d.mts +9 -1
  74. package/resources/workload-identity-federation-rules.d.mts.map +1 -1
  75. package/resources/workload-identity-federation-rules.d.ts +9 -1
  76. package/resources/workload-identity-federation-rules.d.ts.map +1 -1
  77. package/resources/workload-identity-issuers.d.mts +2 -0
  78. package/resources/workload-identity-issuers.d.mts.map +1 -1
  79. package/resources/workload-identity-issuers.d.ts +2 -0
  80. package/resources/workload-identity-issuers.d.ts.map +1 -1
  81. package/src/client.ts +4 -0
  82. package/src/resources/api-keys.ts +27 -3
  83. package/src/resources/auth/context.ts +9 -1
  84. package/src/resources/browser-pools.ts +53 -20
  85. package/src/resources/browsers/browsers.ts +79 -9
  86. package/src/resources/browsers/index.ts +2 -0
  87. package/src/resources/deployments.ts +90 -0
  88. package/src/resources/index.ts +2 -0
  89. package/src/resources/invocations.ts +8 -2
  90. package/src/resources/report-types/report-types.ts +8 -0
  91. package/src/resources/shared.ts +5 -0
  92. package/src/resources/vaults/index.ts +4 -0
  93. package/src/resources/vaults/items.ts +223 -63
  94. package/src/resources/vaults/vaults.ts +8 -0
  95. package/src/resources/workload-identity-federation-rules.ts +9 -1
  96. package/src/resources/workload-identity-issuers.ts +2 -0
  97. package/src/version.ts +1 -1
  98. package/version.d.mts +1 -1
  99. package/version.d.ts +1 -1
  100. package/version.js +1 -1
  101. package/version.mjs +1 -1
package/src/client.ts CHANGED
@@ -237,6 +237,8 @@ import {
237
237
  BrowserMemoryRequest,
238
238
  BrowserNetworkConfig,
239
239
  BrowserNetworkUpdate,
240
+ BrowserOs,
241
+ BrowserPlatform,
240
242
  BrowserPoolRef,
241
243
  BrowserProxy,
242
244
  BrowserProxyConfig,
@@ -1378,6 +1380,8 @@ export declare namespace Kernel {
1378
1380
  type BrowserMemoryRequest as BrowserMemoryRequest,
1379
1381
  type BrowserNetworkConfig as BrowserNetworkConfig,
1380
1382
  type BrowserNetworkUpdate as BrowserNetworkUpdate,
1383
+ type BrowserOs as BrowserOs,
1384
+ type BrowserPlatform as BrowserPlatform,
1381
1385
  type BrowserPoolRef as BrowserPoolRef,
1382
1386
  type BrowserProxy as BrowserProxy,
1383
1387
  type BrowserProxyConfig as BrowserProxyConfig,
@@ -235,7 +235,15 @@ export namespace APIKey {
235
235
  export namespace Policy {
236
236
  export interface Statement {
237
237
  /**
238
- * Permitted action, such as browsers:use or vaults:read.
238
+ * Permitted action, such as browsers:use or vaults:read. When creating an API key
239
+ * or replacing its policy, `*` may replace whole components as shorthand:
240
+ * browsers:_ names every browsers action, _:delete every delete action the
241
+ * resource can carry, and _:_ every action the resource can carry. The stored
242
+ * policy lists the concrete actions, so actions added later are not granted, and
243
+ * api_keys:issue_beyond_expiry must always be listed explicitly. Partial
244
+ * components such as brow*:use and a bare * are rejected. Other policies, such as
245
+ * workload identity rules and deployment runtime policies, accept only exact
246
+ * actions.
239
247
  */
240
248
  action: string;
241
249
 
@@ -349,7 +357,15 @@ export namespace APIKeyCreateParams {
349
357
  export namespace Policy {
350
358
  export interface Statement {
351
359
  /**
352
- * Permitted action, such as browsers:use or vaults:read.
360
+ * Permitted action, such as browsers:use or vaults:read. When creating an API key
361
+ * or replacing its policy, `*` may replace whole components as shorthand:
362
+ * browsers:_ names every browsers action, _:delete every delete action the
363
+ * resource can carry, and _:_ every action the resource can carry. The stored
364
+ * policy lists the concrete actions, so actions added later are not granted, and
365
+ * api_keys:issue_beyond_expiry must always be listed explicitly. Partial
366
+ * components such as brow*:use and a bare * are rejected. Other policies, such as
367
+ * workload identity rules and deployment runtime policies, accept only exact
368
+ * actions.
353
369
  */
354
370
  action: string;
355
371
 
@@ -438,7 +454,15 @@ export namespace APIKeyUpdateParams {
438
454
  export namespace Policy {
439
455
  export interface Statement {
440
456
  /**
441
- * Permitted action, such as browsers:use or vaults:read.
457
+ * Permitted action, such as browsers:use or vaults:read. When creating an API key
458
+ * or replacing its policy, `*` may replace whole components as shorthand:
459
+ * browsers:_ names every browsers action, _:delete every delete action the
460
+ * resource can carry, and _:_ every action the resource can carry. The stored
461
+ * policy lists the concrete actions, so actions added later are not granted, and
462
+ * api_keys:issue_beyond_expiry must always be listed explicitly. Partial
463
+ * components such as brow*:use and a bare * are rejected. Other policies, such as
464
+ * workload identity rules and deployment runtime policies, accept only exact
465
+ * actions.
442
466
  */
443
467
  action: string;
444
468
 
@@ -121,7 +121,15 @@ export namespace AuthContext {
121
121
  export namespace EffectivePolicy {
122
122
  export interface Statement {
123
123
  /**
124
- * Permitted action, such as browsers:use or vaults:read.
124
+ * Permitted action, such as browsers:use or vaults:read. When creating an API key
125
+ * or replacing its policy, `*` may replace whole components as shorthand:
126
+ * browsers:_ names every browsers action, _:delete every delete action the
127
+ * resource can carry, and _:_ every action the resource can carry. The stored
128
+ * policy lists the concrete actions, so actions added later are not granted, and
129
+ * api_keys:issue_beyond_expiry must always be listed explicitly. Partial
130
+ * components such as brow*:use and a bare * are rejected. Other policies, such as
131
+ * workload identity rules and deployment runtime policies, accept only exact
132
+ * actions.
125
133
  */
126
134
  action: string;
127
135
 
@@ -289,8 +289,13 @@ export namespace BrowserPool {
289
289
  profile?: BrowserPoolConfig.Profile;
290
290
 
291
291
  /**
292
- * Optional proxy associated to the browser session. References a proxy in the same
293
- * project as the browser session.
292
+ * Resolved proxy configuration for browsers in this pool.
293
+ */
294
+ proxy?: BrowsersAPI.BrowserProxy;
295
+
296
+ /**
297
+ * @deprecated ID of the proxy associated with browsers in this pool, if any.
298
+ * Deprecated in favor of proxy.
294
299
  */
295
300
  proxy_id?: string;
296
301
 
@@ -317,9 +322,9 @@ export namespace BrowserPool {
317
322
 
318
323
  /**
319
324
  * @deprecated Whether browsers in this pool use stealth mode, which is CAPTCHA
320
- * solving with Kernel's default stealth proxy unless proxy_id is set. A pool with
325
+ * solving with Kernel's default stealth proxy unless a proxy is set. A pool with
321
326
  * only captcha_solver enabled reports false. Deprecated in favor of captcha_solver
322
- * and proxy_id.
327
+ * and proxy.
323
328
  */
324
329
  stealth?: boolean;
325
330
 
@@ -448,8 +453,9 @@ export interface BrowserPoolAcquireResponse {
448
453
  chrome_policy?: { [key: string]: unknown };
449
454
 
450
455
  /**
451
- * Provisional browser-session usage cost on GET detail responses. Omitted from
452
- * list and other browser responses.
456
+ * Provisional browser-session usage cost. Present only on GET detail responses
457
+ * requested with include_cost=true; omitted otherwise and from list and other
458
+ * browser responses.
453
459
  */
454
460
  cost?: BrowsersAPI.BrowserCost;
455
461
 
@@ -497,6 +503,11 @@ export interface BrowserPoolAcquireResponse {
497
503
  */
498
504
  network?: BrowsersAPI.BrowserNetworkConfig;
499
505
 
506
+ /**
507
+ * Host platform for the browser session. Absent means linux.
508
+ */
509
+ platform?: BrowsersAPI.BrowserPlatform;
510
+
500
511
  /**
501
512
  * Browser pool this session was acquired from, if any.
502
513
  */
@@ -628,8 +639,9 @@ export interface BrowserPoolCreateParams {
628
639
 
629
640
  /**
630
641
  * Automatic CAPTCHA solving for browsers in this pool. Disabled by default.
631
- * Enabling it does not select a proxy: when proxy_id is omitted, browsers use
632
- * direct egress unless stealth=true.
642
+ * Enabling it does not select a proxy: when proxy and proxy_id are omitted,
643
+ * browsers use direct egress unless stealth=true. Set proxy.mode=default for
644
+ * Kernel's default stealth proxy.
633
645
  */
634
646
  captcha_solver?: BrowsersAPI.BrowserCaptchaSolver;
635
647
 
@@ -693,8 +705,19 @@ export interface BrowserPoolCreateParams {
693
705
  profile?: BrowserPoolCreateParams.Profile;
694
706
 
695
707
  /**
696
- * Optional proxy to associate to the browser session. Must reference a proxy in
697
- * the same project as the browser session.
708
+ * Proxy configuration for browsers in this pool. Cannot be combined with proxy_id.
709
+ * Omit to use direct egress, or Kernel's default stealth proxy when stealth=true.
710
+ * Set mode to direct to force direct egress. Set mode to default to use Kernel's
711
+ * default stealth proxy when captcha_solver.enabled=true, or direct egress
712
+ * otherwise. Select id or name to use that proxy. Proxy selection does not change
713
+ * CAPTCHA solver behavior.
714
+ */
715
+ proxy?: BrowsersAPI.BrowserProxyConfig;
716
+
717
+ /**
718
+ * @deprecated Optional proxy to associate to browsers in this pool. Must reference
719
+ * a proxy in the same project as the pool. Cannot be combined with proxy.
720
+ * Deprecated in favor of proxy.
698
721
  */
699
722
  proxy_id?: string;
700
723
 
@@ -727,10 +750,10 @@ export interface BrowserPoolCreateParams {
727
750
  start_url?: string;
728
751
 
729
752
  /**
730
- * @deprecated If true, enables the CAPTCHA solver and, when proxy_id is omitted,
731
- * uses Kernel's default stealth proxy. Defaults to false. Cannot be combined with
732
- * captcha_solver.enabled=false. Deprecated in favor of captcha_solver and
733
- * proxy_id.
753
+ * @deprecated If true, enables the CAPTCHA solver and, when proxy and proxy_id are
754
+ * omitted, uses Kernel's default stealth proxy. Defaults to false. Cannot be
755
+ * combined with captcha_solver.enabled=false. Deprecated in favor of
756
+ * captcha_solver and proxy.
734
757
  */
735
758
  stealth?: boolean;
736
759
 
@@ -902,7 +925,7 @@ export interface BrowserPoolUpdateParams {
902
925
  /**
903
926
  * If provided, replaces whether browsers in this pool automatically solve
904
927
  * CAPTCHAs. Enabling it on a pool with direct egress keeps direct egress unless
905
- * proxy_id or stealth=true is also set.
928
+ * proxy, proxy_id, or stealth=true is also set.
906
929
  */
907
930
  captcha_solver?: BrowsersAPI.BrowserCaptchaSolver;
908
931
 
@@ -999,8 +1022,18 @@ export interface BrowserPoolUpdateParams {
999
1022
  profile?: BrowserPoolUpdateParams.Profile;
1000
1023
 
1001
1024
  /**
1002
- * Empty string clears the previously-selected proxy. Omit this field to leave the
1003
- * proxy unchanged.
1025
+ * Proxy configuration to apply to browsers warmed after the update. Omit to leave
1026
+ * the current configuration unchanged. Cannot be combined with proxy_id. Set mode
1027
+ * to direct to switch to direct egress. Set mode to default to use Kernel's
1028
+ * default stealth proxy for a pool with CAPTCHA solving enabled, or direct egress
1029
+ * otherwise. Updating proxy does not change CAPTCHA solver behavior.
1030
+ */
1031
+ proxy?: BrowsersAPI.BrowserProxyConfig;
1032
+
1033
+ /**
1034
+ * @deprecated Empty string clears the previously-selected proxy. Omit this field
1035
+ * to leave the proxy unchanged. Cannot be combined with proxy. Deprecated in favor
1036
+ * of proxy.
1004
1037
  */
1005
1038
  proxy_id?: string;
1006
1039
 
@@ -1035,9 +1068,9 @@ export interface BrowserPoolUpdateParams {
1035
1068
 
1036
1069
  /**
1037
1070
  * @deprecated If provided, replaces whether browsers launch in stealth mode.
1038
- * stealth=true without proxy_id moves a pool on direct egress to Kernel's default
1039
- * stealth proxy. Cannot be combined with captcha_solver.enabled=false. Deprecated
1040
- * in favor of captcha_solver and proxy_id.
1071
+ * stealth=true without proxy or proxy_id moves a pool on direct egress to Kernel's
1072
+ * default stealth proxy. Cannot be combined with captcha_solver.enabled=false.
1073
+ * Deprecated in favor of captcha_solver and proxy.
1041
1074
  */
1042
1075
  stealth?: boolean;
1043
1076
 
@@ -688,6 +688,21 @@ export interface BrowserNetworkUpdate {
688
688
  mutation_id?: string;
689
689
  }
690
690
 
691
+ /**
692
+ * Operating system of the browser's host.
693
+ */
694
+ export type BrowserOs = 'linux' | 'macos';
695
+
696
+ /**
697
+ * Host platform settings for the browser session.
698
+ */
699
+ export interface BrowserPlatform {
700
+ /**
701
+ * Operating system of the browser's host.
702
+ */
703
+ os: BrowserOs;
704
+ }
705
+
691
706
  /**
692
707
  * Browser pool this session was acquired from, if any.
693
708
  */
@@ -1017,8 +1032,9 @@ export interface BrowserCreateResponse {
1017
1032
  chrome_policy?: { [key: string]: unknown };
1018
1033
 
1019
1034
  /**
1020
- * Provisional browser-session usage cost on GET detail responses. Omitted from
1021
- * list and other browser responses.
1035
+ * Provisional browser-session usage cost. Present only on GET detail responses
1036
+ * requested with include_cost=true; omitted otherwise and from list and other
1037
+ * browser responses.
1022
1038
  */
1023
1039
  cost?: BrowserCost;
1024
1040
 
@@ -1066,6 +1082,11 @@ export interface BrowserCreateResponse {
1066
1082
  */
1067
1083
  network?: BrowserNetworkConfig;
1068
1084
 
1085
+ /**
1086
+ * Host platform for the browser session. Absent means linux.
1087
+ */
1088
+ platform?: BrowserPlatform;
1089
+
1069
1090
  /**
1070
1091
  * Browser pool this session was acquired from, if any.
1071
1092
  */
@@ -1260,8 +1281,9 @@ export interface BrowserRetrieveResponse {
1260
1281
  chrome_policy?: { [key: string]: unknown };
1261
1282
 
1262
1283
  /**
1263
- * Provisional browser-session usage cost on GET detail responses. Omitted from
1264
- * list and other browser responses.
1284
+ * Provisional browser-session usage cost. Present only on GET detail responses
1285
+ * requested with include_cost=true; omitted otherwise and from list and other
1286
+ * browser responses.
1265
1287
  */
1266
1288
  cost?: BrowserCost;
1267
1289
 
@@ -1309,6 +1331,11 @@ export interface BrowserRetrieveResponse {
1309
1331
  */
1310
1332
  network?: BrowserNetworkConfig;
1311
1333
 
1334
+ /**
1335
+ * Host platform for the browser session. Absent means linux.
1336
+ */
1337
+ platform?: BrowserPlatform;
1338
+
1312
1339
  /**
1313
1340
  * Browser pool this session was acquired from, if any.
1314
1341
  */
@@ -1503,8 +1530,9 @@ export interface BrowserUpdateResponse {
1503
1530
  chrome_policy?: { [key: string]: unknown };
1504
1531
 
1505
1532
  /**
1506
- * Provisional browser-session usage cost on GET detail responses. Omitted from
1507
- * list and other browser responses.
1533
+ * Provisional browser-session usage cost. Present only on GET detail responses
1534
+ * requested with include_cost=true; omitted otherwise and from list and other
1535
+ * browser responses.
1508
1536
  */
1509
1537
  cost?: BrowserCost;
1510
1538
 
@@ -1552,6 +1580,11 @@ export interface BrowserUpdateResponse {
1552
1580
  */
1553
1581
  network?: BrowserNetworkConfig;
1554
1582
 
1583
+ /**
1584
+ * Host platform for the browser session. Absent means linux.
1585
+ */
1586
+ platform?: BrowserPlatform;
1587
+
1555
1588
  /**
1556
1589
  * Browser pool this session was acquired from, if any.
1557
1590
  */
@@ -1746,8 +1779,9 @@ export interface BrowserListResponse {
1746
1779
  chrome_policy?: { [key: string]: unknown };
1747
1780
 
1748
1781
  /**
1749
- * Provisional browser-session usage cost on GET detail responses. Omitted from
1750
- * list and other browser responses.
1782
+ * Provisional browser-session usage cost. Present only on GET detail responses
1783
+ * requested with include_cost=true; omitted otherwise and from list and other
1784
+ * browser responses.
1751
1785
  */
1752
1786
  cost?: BrowserCost;
1753
1787
 
@@ -1795,6 +1829,11 @@ export interface BrowserListResponse {
1795
1829
  */
1796
1830
  network?: BrowserNetworkConfig;
1797
1831
 
1832
+ /**
1833
+ * Host platform for the browser session. Absent means linux.
1834
+ */
1835
+ platform?: BrowserPlatform;
1836
+
1798
1837
  /**
1799
1838
  * Browser pool this session was acquired from, if any.
1800
1839
  */
@@ -2019,6 +2058,18 @@ export interface BrowserCreateParams {
2019
2058
  */
2020
2059
  network?: BrowserNetworkConfig;
2021
2060
 
2061
+ /**
2062
+ * Host platform for the browser. Omit it, or set `os` to `linux`, for a Linux
2063
+ * browser. This is the operating system the browser runs on; `fingerprint.os` only
2064
+ * changes what a Linux browser reports to websites. macOS browsers are not
2065
+ * available yet: requests for them return 503 `platform_unavailable`. macOS
2066
+ * browsers are headful and run only in `us-east`. A macOS request that sets
2067
+ * `headless: true`, `memory`, `gpu`, `video_memory`, `profile`, `location`,
2068
+ * `fingerprint`, or a region other than `us-east` returns 400
2069
+ * `unsupported_configuration`, listing those fields in `unsupported_fields`.
2070
+ */
2071
+ platform?: BrowserPlatform;
2072
+
2022
2073
  /**
2023
2074
  * Profile selection for the browser session. Provide either id or name. If
2024
2075
  * specified, the matching profile will be loaded into the browser session.
@@ -2235,6 +2286,11 @@ export namespace BrowserCreateParams {
2235
2286
  }
2236
2287
 
2237
2288
  export interface BrowserRetrieveParams {
2289
+ /**
2290
+ * When true, includes the session's provisional usage cost in the response.
2291
+ */
2292
+ include_cost?: boolean;
2293
+
2238
2294
  /**
2239
2295
  * When true, includes soft-deleted browser sessions in the lookup.
2240
2296
  */
@@ -2242,6 +2298,13 @@ export interface BrowserRetrieveParams {
2242
2298
  }
2243
2299
 
2244
2300
  export interface BrowserUpdateParams {
2301
+ /**
2302
+ * Enable or disable the stealth browser's CAPTCHA solver immediately, without
2303
+ * restarting the browser or interrupting the current page. Omit to leave the
2304
+ * solver unchanged. Only available for stealth browsers.
2305
+ */
2306
+ captcha_solver_enabled?: boolean;
2307
+
2245
2308
  /**
2246
2309
  * @deprecated If true, stealth browsers connect directly instead of using the
2247
2310
  * default stealth proxy. Deprecated in favor of proxy.mode.
@@ -2454,6 +2517,9 @@ export interface BrowserListParams extends OffsetPaginationParams {
2454
2517
 
2455
2518
  /**
2456
2519
  * Search browsers by name, session ID, profile name or ID, proxy ID, or pool name.
2520
+ * With `status=deleted` or `status=all`, only browsers created in the last 24
2521
+ * hours are searched, including active ones; use `status=active` to search all
2522
+ * active browsers.
2457
2523
  */
2458
2524
  query?: string;
2459
2525
 
@@ -2471,7 +2537,9 @@ export interface BrowserListParams extends OffsetPaginationParams {
2471
2537
  /**
2472
2538
  * Filter sessions by tag key-value pairs using deepObject style, e.g.
2473
2539
  * ?tags[team]=backend&tags[env]=staging. Multiple pairs are ANDed: a session must
2474
- * match every supplied pair exactly.
2540
+ * match every supplied pair exactly. With `status=deleted` or `status=all`, only
2541
+ * browsers created in the last 24 hours are matched; use `status=active` to match
2542
+ * all active browsers.
2475
2543
  */
2476
2544
  tags?: { [key: string]: string };
2477
2545
  }
@@ -2588,6 +2656,8 @@ export declare namespace Browsers {
2588
2656
  type BrowserMemoryRequest as BrowserMemoryRequest,
2589
2657
  type BrowserNetworkConfig as BrowserNetworkConfig,
2590
2658
  type BrowserNetworkUpdate as BrowserNetworkUpdate,
2659
+ type BrowserOs as BrowserOs,
2660
+ type BrowserPlatform as BrowserPlatform,
2591
2661
  type BrowserPoolRef as BrowserPoolRef,
2592
2662
  type BrowserProxy as BrowserProxy,
2593
2663
  type BrowserProxyConfig as BrowserProxyConfig,
@@ -14,6 +14,8 @@ export {
14
14
  type BrowserMemoryRequest,
15
15
  type BrowserNetworkConfig,
16
16
  type BrowserNetworkUpdate,
17
+ type BrowserOs,
18
+ type BrowserPlatform,
17
19
  type BrowserPoolRef,
18
20
  type BrowserProxy,
19
21
  type BrowserProxyConfig,
@@ -535,6 +535,21 @@ export interface DeploymentCreateParams {
535
535
  */
536
536
  region?: 'aws.us-east-1a';
537
537
 
538
+ /**
539
+ * Permissions for each invocation's injected API key. Send this multipart field as
540
+ * JSON. Requires scoped deployment enablement. The policy must stay within the
541
+ * deployment's project, be a subset of the caller's permissions when the caller
542
+ * has a policy, and grant container-wide invocations:write for runtime callbacks.
543
+ * It cannot include api_keys:issue_beyond_expiry. Exact resource IDs must exist.
544
+ * The policy outlives the deploying credential; each invocation gets a fresh key
545
+ * valid for 65 minutes from issuance. When the caller has a policy, omission
546
+ * grants only project-wide invocations:write for runtime callbacks. A supplied
547
+ * policy must explicitly include that permission; it is never added automatically.
548
+ * Callers without a policy keep an unrestricted runtime key when this field is
549
+ * omitted. Scoped invokers must cover the runtime policy.
550
+ */
551
+ runtime_policy?: DeploymentCreateParams.RuntimePolicy;
552
+
538
553
  /**
539
554
  * Source from which to fetch application code.
540
555
  */
@@ -547,6 +562,81 @@ export interface DeploymentCreateParams {
547
562
  }
548
563
 
549
564
  export namespace DeploymentCreateParams {
565
+ /**
566
+ * Permissions for each invocation's injected API key. Send this multipart field as
567
+ * JSON. Requires scoped deployment enablement. The policy must stay within the
568
+ * deployment's project, be a subset of the caller's permissions when the caller
569
+ * has a policy, and grant container-wide invocations:write for runtime callbacks.
570
+ * It cannot include api_keys:issue_beyond_expiry. Exact resource IDs must exist.
571
+ * The policy outlives the deploying credential; each invocation gets a fresh key
572
+ * valid for 65 minutes from issuance. When the caller has a policy, omission
573
+ * grants only project-wide invocations:write for runtime callbacks. A supplied
574
+ * policy must explicitly include that permission; it is never added automatically.
575
+ * Callers without a policy keep an unrestricted runtime key when this field is
576
+ * omitted. Scoped invokers must cover the runtime policy.
577
+ */
578
+ export interface RuntimePolicy {
579
+ /**
580
+ * Allow statements. Every action and resource not listed is denied.
581
+ */
582
+ statements: Array<RuntimePolicy.Statement>;
583
+ }
584
+
585
+ export namespace RuntimePolicy {
586
+ export interface Statement {
587
+ /**
588
+ * Permitted action, such as browsers:use or vaults:read. When creating an API key
589
+ * or replacing its policy, `*` may replace whole components as shorthand:
590
+ * browsers:_ names every browsers action, _:delete every delete action the
591
+ * resource can carry, and _:_ every action the resource can carry. The stored
592
+ * policy lists the concrete actions, so actions added later are not granted, and
593
+ * api_keys:issue_beyond_expiry must always be listed explicitly. Partial
594
+ * components such as brow*:use and a bare * are rejected. Other policies, such as
595
+ * workload identity rules and deployment runtime policies, accept only exact
596
+ * actions.
597
+ */
598
+ action: string;
599
+
600
+ /**
601
+ * Resource the action applies to, in the format projects/{project_id}/{kind}/{id}.
602
+ * Wildcards are supported.
603
+ */
604
+ resource: string;
605
+
606
+ /**
607
+ * A condition narrows a policy statement to requests matching its constraint: the
608
+ * request attribute, a comparison operator, and that operator's values.
609
+ */
610
+ condition?: Statement.Condition;
611
+ }
612
+
613
+ export namespace Statement {
614
+ /**
615
+ * A condition narrows a policy statement to requests matching its constraint: the
616
+ * request attribute, a comparison operator, and that operator's values.
617
+ */
618
+ export interface Condition {
619
+ /**
620
+ * Request attribute the condition constrains. `source_ip` restricts the statement
621
+ * to requests whose client address falls inside one of `values`.
622
+ */
623
+ key: 'source_ip';
624
+
625
+ /**
626
+ * Comparison the condition applies between the request attribute and values.
627
+ */
628
+ operator: 'in';
629
+
630
+ /**
631
+ * Values the request attribute must match. For `source_ip`, CIDR networks: a bare
632
+ * address without a mask is rejected, and so are an entry with host bits set and
633
+ * an IPv4 network written in IPv6 notation.
634
+ */
635
+ values: Array<string>;
636
+ }
637
+ }
638
+ }
639
+
550
640
  /**
551
641
  * Source from which to fetch application code.
552
642
  */
@@ -53,6 +53,8 @@ export {
53
53
  type BrowserMemoryRequest,
54
54
  type BrowserNetworkConfig,
55
55
  type BrowserNetworkUpdate,
56
+ type BrowserOs,
57
+ type BrowserPlatform,
56
58
  type BrowserPoolRef,
57
59
  type BrowserProxy,
58
60
  type BrowserProxyConfig,
@@ -520,8 +520,9 @@ export namespace InvocationListBrowsersResponse {
520
520
  chrome_policy?: { [key: string]: unknown };
521
521
 
522
522
  /**
523
- * Provisional browser-session usage cost on GET detail responses. Omitted from
524
- * list and other browser responses.
523
+ * Provisional browser-session usage cost. Present only on GET detail responses
524
+ * requested with include_cost=true; omitted otherwise and from list and other
525
+ * browser responses.
525
526
  */
526
527
  cost?: BrowsersAPI.BrowserCost;
527
528
 
@@ -569,6 +570,11 @@ export namespace InvocationListBrowsersResponse {
569
570
  */
570
571
  network?: BrowsersAPI.BrowserNetworkConfig;
571
572
 
573
+ /**
574
+ * Host platform for the browser session. Absent means linux.
575
+ */
576
+ platform?: BrowsersAPI.BrowserPlatform;
577
+
572
578
  /**
573
579
  * Browser pool this session was acquired from, if any.
574
580
  */
@@ -116,6 +116,14 @@ export interface ReportTypeListParams extends OffsetPaginationParams {
116
116
  * Task the agent is finding a report type for.
117
117
  */
118
118
  task_id: string;
119
+
120
+ /**
121
+ * What the agent wants to report, in its own words. Types are ranked by how
122
+ * closely their meaning matches, most relevant first; they need not share any
123
+ * words. Only this text affects the ranking, not the task. Without it, or if
124
+ * ranking is unavailable, types are listed by name.
125
+ */
126
+ query?: string;
119
127
  }
120
128
 
121
129
  ReportTypes.Versions = Versions;
@@ -143,6 +143,11 @@ export interface ErrorModel {
143
143
  details?: Array<ErrorDetail>;
144
144
 
145
145
  inner_error?: ErrorDetail;
146
+
147
+ /**
148
+ * Request fields that are incompatible with the requested browser platform.
149
+ */
150
+ unsupported_fields?: Array<string>;
146
151
  }
147
152
 
148
153
  /**
@@ -41,6 +41,8 @@ export {
41
41
  type KernelSingleUseCard,
42
42
  type KernelWalletState,
43
43
  type KernelWalletVaultItemSpec,
44
+ type LinkBalanceSetupVaultItemOperationRequest,
45
+ type LinkBalanceSetupVaultItemOperationResult,
44
46
  type LinkShippingAddress,
45
47
  type LinkUserInfo,
46
48
  type ManagedAuthCredentialVaultField,
@@ -81,6 +83,8 @@ export {
81
83
  type VaultItemEvent,
82
84
  type VaultItemOperationResponse,
83
85
  type VaultPaymentMethod,
86
+ type VaultPaymentMethodAmount,
87
+ type VaultPaymentMethodBalance,
84
88
  type VaultWebmcpBinding,
85
89
  type VgsCardInput,
86
90
  type VgsCardState,