@onkernel/sdk 0.119.0 → 0.121.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 (123) hide show
  1. package/CHANGELOG.md +20 -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/auth/connections.d.mts +1 -1
  10. package/resources/auth/connections.d.mts.map +1 -1
  11. package/resources/auth/connections.d.ts +1 -1
  12. package/resources/auth/connections.d.ts.map +1 -1
  13. package/resources/browser-pools.d.mts +4 -4
  14. package/resources/browser-pools.d.mts.map +1 -1
  15. package/resources/browser-pools.d.ts +4 -4
  16. package/resources/browser-pools.d.ts.map +1 -1
  17. package/resources/browsers/browsers.d.mts +59 -11
  18. package/resources/browsers/browsers.d.mts.map +1 -1
  19. package/resources/browsers/browsers.d.ts +59 -11
  20. package/resources/browsers/browsers.d.ts.map +1 -1
  21. package/resources/browsers/browsers.js +2 -2
  22. package/resources/browsers/browsers.js.map +1 -1
  23. package/resources/browsers/browsers.mjs +2 -2
  24. package/resources/browsers/browsers.mjs.map +1 -1
  25. package/resources/browsers/index.d.mts +2 -2
  26. package/resources/browsers/index.d.mts.map +1 -1
  27. package/resources/browsers/index.d.ts +2 -2
  28. package/resources/browsers/index.d.ts.map +1 -1
  29. package/resources/browsers/index.js +4 -4
  30. package/resources/browsers/index.js.map +1 -1
  31. package/resources/browsers/index.mjs +1 -1
  32. package/resources/browsers/index.mjs.map +1 -1
  33. package/resources/browsers/playwright/executors.d.mts +95 -0
  34. package/resources/browsers/playwright/executors.d.mts.map +1 -0
  35. package/resources/browsers/playwright/executors.d.ts +95 -0
  36. package/resources/browsers/playwright/executors.d.ts.map +1 -0
  37. package/resources/browsers/playwright/executors.js +57 -0
  38. package/resources/browsers/playwright/executors.js.map +1 -0
  39. package/resources/browsers/playwright/executors.mjs +53 -0
  40. package/resources/browsers/playwright/executors.mjs.map +1 -0
  41. package/resources/browsers/playwright/index.d.mts +3 -0
  42. package/resources/browsers/playwright/index.d.mts.map +1 -0
  43. package/resources/browsers/playwright/index.d.ts +3 -0
  44. package/resources/browsers/playwright/index.d.ts.map +1 -0
  45. package/resources/browsers/playwright/index.js +9 -0
  46. package/resources/browsers/playwright/index.js.map +1 -0
  47. package/resources/browsers/playwright/index.mjs +4 -0
  48. package/resources/browsers/playwright/index.mjs.map +1 -0
  49. package/resources/browsers/playwright/playwright.d.mts +149 -0
  50. package/resources/browsers/playwright/playwright.d.mts.map +1 -0
  51. package/resources/browsers/playwright/playwright.d.ts +149 -0
  52. package/resources/browsers/playwright/playwright.d.ts.map +1 -0
  53. package/resources/browsers/playwright/playwright.js +76 -0
  54. package/resources/browsers/playwright/playwright.js.map +1 -0
  55. package/resources/browsers/playwright/playwright.mjs +71 -0
  56. package/resources/browsers/playwright/playwright.mjs.map +1 -0
  57. package/resources/browsers/playwright.d.mts +1 -68
  58. package/resources/browsers/playwright.d.mts.map +1 -1
  59. package/resources/browsers/playwright.d.ts +1 -68
  60. package/resources/browsers/playwright.d.ts.map +1 -1
  61. package/resources/browsers/playwright.js +2 -29
  62. package/resources/browsers/playwright.js.map +1 -1
  63. package/resources/browsers/playwright.mjs +1 -27
  64. package/resources/browsers/playwright.mjs.map +1 -1
  65. package/resources/browsers/telemetry.d.mts +17 -15
  66. package/resources/browsers/telemetry.d.mts.map +1 -1
  67. package/resources/browsers/telemetry.d.ts +17 -15
  68. package/resources/browsers/telemetry.d.ts.map +1 -1
  69. package/resources/config-registry/config-registry.d.mts +3 -16
  70. package/resources/config-registry/config-registry.d.mts.map +1 -1
  71. package/resources/config-registry/config-registry.d.ts +3 -16
  72. package/resources/config-registry/config-registry.d.ts.map +1 -1
  73. package/resources/config-registry/config-registry.js.map +1 -1
  74. package/resources/config-registry/config-registry.mjs.map +1 -1
  75. package/resources/index.d.mts +1 -1
  76. package/resources/index.d.mts.map +1 -1
  77. package/resources/index.d.ts +1 -1
  78. package/resources/index.d.ts.map +1 -1
  79. package/resources/index.js.map +1 -1
  80. package/resources/index.mjs.map +1 -1
  81. package/resources/invocations.d.mts +1 -1
  82. package/resources/invocations.d.mts.map +1 -1
  83. package/resources/invocations.d.ts +1 -1
  84. package/resources/invocations.d.ts.map +1 -1
  85. package/resources/proxies.d.mts +33 -113
  86. package/resources/proxies.d.mts.map +1 -1
  87. package/resources/proxies.d.ts +33 -113
  88. package/resources/proxies.d.ts.map +1 -1
  89. package/resources/proxies.js +6 -8
  90. package/resources/proxies.js.map +1 -1
  91. package/resources/proxies.mjs +6 -8
  92. package/resources/proxies.mjs.map +1 -1
  93. package/resources/search/search.d.mts +4 -2
  94. package/resources/search/search.d.mts.map +1 -1
  95. package/resources/search/search.d.ts +4 -2
  96. package/resources/search/search.d.ts.map +1 -1
  97. package/resources/search/search.js.map +1 -1
  98. package/resources/search/search.mjs.map +1 -1
  99. package/resources/vaults/items.d.mts +42 -42
  100. package/resources/vaults/items.d.mts.map +1 -1
  101. package/resources/vaults/items.d.ts +42 -42
  102. package/resources/vaults/items.d.ts.map +1 -1
  103. package/src/client.ts +2 -0
  104. package/src/resources/auth/connections.ts +1 -1
  105. package/src/resources/browser-pools.ts +4 -4
  106. package/src/resources/browsers/browsers.ts +69 -9
  107. package/src/resources/browsers/index.ts +8 -1
  108. package/src/resources/browsers/playwright/executors.ts +123 -0
  109. package/src/resources/browsers/playwright/index.ts +10 -0
  110. package/src/resources/browsers/playwright/playwright.ts +186 -0
  111. package/src/resources/browsers/playwright.ts +1 -87
  112. package/src/resources/browsers/telemetry.ts +17 -14
  113. package/src/resources/config-registry/config-registry.ts +2 -17
  114. package/src/resources/index.ts +1 -0
  115. package/src/resources/invocations.ts +1 -1
  116. package/src/resources/proxies.ts +27 -119
  117. package/src/resources/search/search.ts +4 -2
  118. package/src/resources/vaults/items.ts +43 -45
  119. package/src/version.ts +1 -1
  120. package/version.d.mts +1 -1
  121. package/version.d.ts +1 -1
  122. package/version.js +1 -1
  123. package/version.mjs +1 -1
@@ -303,11 +303,7 @@ export namespace Proxy {
303
303
  * Configuration for routing traffic through a proxy.
304
304
  */
305
305
  export interface Create {
306
- /**
307
- * Proxy type to use. In terms of quality for avoiding bot-detection, from best to
308
- * worst: `mobile` > `residential` > `isp` > `datacenter`.
309
- */
310
- type: 'datacenter' | 'isp' | 'residential' | 'mobile' | 'custom';
306
+ type: 'isp' | 'residential' | 'mobile' | 'custom';
311
307
 
312
308
  /**
313
309
  * Hostnames that should bypass the parent proxy and connect directly.
@@ -315,10 +311,9 @@ export namespace Proxy {
315
311
  bypass_hosts?: Array<string>;
316
312
 
317
313
  /**
318
- * Configuration specific to the selected proxy `type`.
314
+ * Configuration for an ISP proxy.
319
315
  */
320
316
  config?:
321
- | Create.DatacenterProxyConfig
322
317
  | Create.IspProxyConfig
323
318
  | Create.ResidentialProxyConfig
324
319
  | Create.MobileProxyConfig
@@ -336,16 +331,6 @@ export namespace Proxy {
336
331
  }
337
332
 
338
333
  export namespace Create {
339
- /**
340
- * Configuration for a datacenter proxy.
341
- */
342
- export interface DatacenterProxyConfig {
343
- /**
344
- * ISO 3166 country code. Defaults to US if not provided.
345
- */
346
- country?: string;
347
- }
348
-
349
334
  /**
350
335
  * Configuration for an ISP proxy.
351
336
  */
@@ -43,6 +43,7 @@ export {
43
43
  type BrowserMemory,
44
44
  type BrowserMemoryRequest,
45
45
  type BrowserNetworkConfig,
46
+ type BrowserNetworkUpdate,
46
47
  type BrowserPoolRef,
47
48
  type BrowserProxy,
48
49
  type BrowserProxyConfig,
@@ -471,7 +471,7 @@ export namespace InvocationListBrowsersResponse {
471
471
  /**
472
472
  * Geographic region of the browser session. Fixed once the session is created.
473
473
  */
474
- region: 'us-east' | 'eu-west' | 'ap-southeast';
474
+ region: 'us-east' | 'us-west' | 'eu-west' | 'ap-southeast';
475
475
 
476
476
  /**
477
477
  * Unique identifier for the browser session
@@ -16,9 +16,7 @@ export class Proxies extends APIResource {
16
16
  *
17
17
  * @example
18
18
  * ```ts
19
- * const proxy = await client.proxies.create({
20
- * type: 'datacenter',
21
- * });
19
+ * const proxy = await client.proxies.create({ type: 'isp' });
22
20
  * ```
23
21
  */
24
22
  create(body: ProxyCreateParams, options?: RequestOptions): APIPromise<ProxyCreateResponse> {
@@ -92,11 +90,11 @@ export class Proxies extends APIResource {
92
90
 
93
91
  /**
94
92
  * Run a health check on the proxy to verify it's working. Optionally specify a URL
95
- * to test reachability against a specific target. For ISP and datacenter proxies,
96
- * this reliably tests whether the target site is reachable from the proxy's stable
97
- * exit IP. For residential and mobile proxies, the exit node varies between
98
- * requests, so this validates proxy configuration and connectivity rather than
99
- * guaranteeing site-specific reachability.
93
+ * to test reachability against a specific target. For ISP proxies, this reliably
94
+ * tests whether the target site is reachable from the proxy's stable exit IP. For
95
+ * residential and mobile proxies, the exit node varies between requests, so this
96
+ * validates proxy configuration and connectivity rather than guaranteeing
97
+ * site-specific reachability.
100
98
  *
101
99
  * @example
102
100
  * ```ts
@@ -118,11 +116,7 @@ export type ProxyListResponsesOffsetPagination = OffsetPagination<ProxyListRespo
118
116
  * Configuration for routing traffic through a proxy.
119
117
  */
120
118
  export interface ProxyCreateResponse {
121
- /**
122
- * Proxy type to use. In terms of quality for avoiding bot-detection, from best to
123
- * worst: `mobile` > `residential` > `isp` > `datacenter`.
124
- */
125
- type: 'datacenter' | 'isp' | 'residential' | 'mobile' | 'custom';
119
+ type: 'isp' | 'residential' | 'mobile' | 'custom';
126
120
 
127
121
  id?: string;
128
122
 
@@ -132,10 +126,9 @@ export interface ProxyCreateResponse {
132
126
  bypass_hosts?: Array<string>;
133
127
 
134
128
  /**
135
- * Configuration specific to the selected proxy `type`.
129
+ * Configuration for an ISP proxy.
136
130
  */
137
131
  config?:
138
- | ProxyCreateResponse.DatacenterProxyConfig
139
132
  | ProxyCreateResponse.IspProxyConfig
140
133
  | ProxyCreateResponse.ResidentialProxyConfig
141
134
  | ProxyCreateResponse.MobileProxyConfig
@@ -168,16 +161,6 @@ export interface ProxyCreateResponse {
168
161
  }
169
162
 
170
163
  export namespace ProxyCreateResponse {
171
- /**
172
- * Configuration for a datacenter proxy.
173
- */
174
- export interface DatacenterProxyConfig {
175
- /**
176
- * ISO 3166 country code. Defaults to US if not provided.
177
- */
178
- country?: string;
179
- }
180
-
181
164
  /**
182
165
  * Configuration for an ISP proxy.
183
166
  */
@@ -282,11 +265,7 @@ export namespace ProxyCreateResponse {
282
265
  * Configuration for routing traffic through a proxy.
283
266
  */
284
267
  export interface ProxyRetrieveResponse {
285
- /**
286
- * Proxy type to use. In terms of quality for avoiding bot-detection, from best to
287
- * worst: `mobile` > `residential` > `isp` > `datacenter`.
288
- */
289
- type: 'datacenter' | 'isp' | 'residential' | 'mobile' | 'custom';
268
+ type: 'isp' | 'residential' | 'mobile' | 'custom';
290
269
 
291
270
  id?: string;
292
271
 
@@ -296,10 +275,9 @@ export interface ProxyRetrieveResponse {
296
275
  bypass_hosts?: Array<string>;
297
276
 
298
277
  /**
299
- * Configuration specific to the selected proxy `type`.
278
+ * Configuration for an ISP proxy.
300
279
  */
301
280
  config?:
302
- | ProxyRetrieveResponse.DatacenterProxyConfig
303
281
  | ProxyRetrieveResponse.IspProxyConfig
304
282
  | ProxyRetrieveResponse.ResidentialProxyConfig
305
283
  | ProxyRetrieveResponse.MobileProxyConfig
@@ -332,16 +310,6 @@ export interface ProxyRetrieveResponse {
332
310
  }
333
311
 
334
312
  export namespace ProxyRetrieveResponse {
335
- /**
336
- * Configuration for a datacenter proxy.
337
- */
338
- export interface DatacenterProxyConfig {
339
- /**
340
- * ISO 3166 country code. Defaults to US if not provided.
341
- */
342
- country?: string;
343
- }
344
-
345
313
  /**
346
314
  * Configuration for an ISP proxy.
347
315
  */
@@ -446,11 +414,7 @@ export namespace ProxyRetrieveResponse {
446
414
  * Configuration for routing traffic through a proxy.
447
415
  */
448
416
  export interface ProxyUpdateResponse {
449
- /**
450
- * Proxy type to use. In terms of quality for avoiding bot-detection, from best to
451
- * worst: `mobile` > `residential` > `isp` > `datacenter`.
452
- */
453
- type: 'datacenter' | 'isp' | 'residential' | 'mobile' | 'custom';
417
+ type: 'isp' | 'residential' | 'mobile' | 'custom';
454
418
 
455
419
  id?: string;
456
420
 
@@ -460,10 +424,9 @@ export interface ProxyUpdateResponse {
460
424
  bypass_hosts?: Array<string>;
461
425
 
462
426
  /**
463
- * Configuration specific to the selected proxy `type`.
427
+ * Configuration for an ISP proxy.
464
428
  */
465
429
  config?:
466
- | ProxyUpdateResponse.DatacenterProxyConfig
467
430
  | ProxyUpdateResponse.IspProxyConfig
468
431
  | ProxyUpdateResponse.ResidentialProxyConfig
469
432
  | ProxyUpdateResponse.MobileProxyConfig
@@ -496,16 +459,6 @@ export interface ProxyUpdateResponse {
496
459
  }
497
460
 
498
461
  export namespace ProxyUpdateResponse {
499
- /**
500
- * Configuration for a datacenter proxy.
501
- */
502
- export interface DatacenterProxyConfig {
503
- /**
504
- * ISO 3166 country code. Defaults to US if not provided.
505
- */
506
- country?: string;
507
- }
508
-
509
462
  /**
510
463
  * Configuration for an ISP proxy.
511
464
  */
@@ -610,11 +563,7 @@ export namespace ProxyUpdateResponse {
610
563
  * Configuration for routing traffic through a proxy.
611
564
  */
612
565
  export interface ProxyListResponse {
613
- /**
614
- * Proxy type to use. In terms of quality for avoiding bot-detection, from best to
615
- * worst: `mobile` > `residential` > `isp` > `datacenter`.
616
- */
617
- type: 'datacenter' | 'isp' | 'residential' | 'mobile' | 'custom';
566
+ type: 'isp' | 'residential' | 'mobile' | 'custom';
618
567
 
619
568
  id?: string;
620
569
 
@@ -624,10 +573,9 @@ export interface ProxyListResponse {
624
573
  bypass_hosts?: Array<string>;
625
574
 
626
575
  /**
627
- * Configuration specific to the selected proxy `type`.
576
+ * Configuration for an ISP proxy.
628
577
  */
629
578
  config?:
630
- | ProxyListResponse.DatacenterProxyConfig
631
579
  | ProxyListResponse.IspProxyConfig
632
580
  | ProxyListResponse.ResidentialProxyConfig
633
581
  | ProxyListResponse.MobileProxyConfig
@@ -660,16 +608,6 @@ export interface ProxyListResponse {
660
608
  }
661
609
 
662
610
  export namespace ProxyListResponse {
663
- /**
664
- * Configuration for a datacenter proxy.
665
- */
666
- export interface DatacenterProxyConfig {
667
- /**
668
- * ISO 3166 country code. Defaults to US if not provided.
669
- */
670
- country?: string;
671
- }
672
-
673
611
  /**
674
612
  * Configuration for an ISP proxy.
675
613
  */
@@ -774,11 +712,7 @@ export namespace ProxyListResponse {
774
712
  * Configuration for routing traffic through a proxy.
775
713
  */
776
714
  export interface ProxyCheckResponse {
777
- /**
778
- * Proxy type to use. In terms of quality for avoiding bot-detection, from best to
779
- * worst: `mobile` > `residential` > `isp` > `datacenter`.
780
- */
781
- type: 'datacenter' | 'isp' | 'residential' | 'mobile' | 'custom';
715
+ type: 'isp' | 'residential' | 'mobile' | 'custom';
782
716
 
783
717
  id?: string;
784
718
 
@@ -788,10 +722,9 @@ export interface ProxyCheckResponse {
788
722
  bypass_hosts?: Array<string>;
789
723
 
790
724
  /**
791
- * Configuration specific to the selected proxy `type`.
725
+ * Configuration for an ISP proxy.
792
726
  */
793
727
  config?:
794
- | ProxyCheckResponse.DatacenterProxyConfig
795
728
  | ProxyCheckResponse.IspProxyConfig
796
729
  | ProxyCheckResponse.ResidentialProxyConfig
797
730
  | ProxyCheckResponse.MobileProxyConfig
@@ -824,16 +757,6 @@ export interface ProxyCheckResponse {
824
757
  }
825
758
 
826
759
  export namespace ProxyCheckResponse {
827
- /**
828
- * Configuration for a datacenter proxy.
829
- */
830
- export interface DatacenterProxyConfig {
831
- /**
832
- * ISO 3166 country code. Defaults to US if not provided.
833
- */
834
- country?: string;
835
- }
836
-
837
760
  /**
838
761
  * Configuration for an ISP proxy.
839
762
  */
@@ -935,11 +858,7 @@ export namespace ProxyCheckResponse {
935
858
  }
936
859
 
937
860
  export interface ProxyCreateParams {
938
- /**
939
- * Proxy type to use. In terms of quality for avoiding bot-detection, from best to
940
- * worst: `mobile` > `residential` > `isp` > `datacenter`.
941
- */
942
- type: 'datacenter' | 'isp' | 'residential' | 'mobile' | 'custom';
861
+ type: 'isp' | 'residential' | 'mobile' | 'custom';
943
862
 
944
863
  /**
945
864
  * Hostnames that should bypass the parent proxy and connect directly.
@@ -947,10 +866,9 @@ export interface ProxyCreateParams {
947
866
  bypass_hosts?: Array<string>;
948
867
 
949
868
  /**
950
- * Configuration specific to the selected proxy `type`.
869
+ * Configuration for an ISP proxy.
951
870
  */
952
871
  config?:
953
- | ProxyCreateParams.DatacenterProxyConfig
954
872
  | ProxyCreateParams.IspProxyConfig
955
873
  | ProxyCreateParams.ResidentialProxyConfig
956
874
  | ProxyCreateParams.MobileProxyConfig
@@ -968,16 +886,6 @@ export interface ProxyCreateParams {
968
886
  }
969
887
 
970
888
  export namespace ProxyCreateParams {
971
- /**
972
- * Configuration for a datacenter proxy.
973
- */
974
- export interface DatacenterProxyConfig {
975
- /**
976
- * ISO 3166 country code. Defaults to US if not provided.
977
- */
978
- country?: string;
979
- }
980
-
981
889
  /**
982
890
  * Configuration for an ISP proxy.
983
891
  */
@@ -1108,15 +1016,15 @@ export interface ProxyCheckParams {
1108
1016
  * An optional URL to test reachability against. If provided, the proxy check will
1109
1017
  * test connectivity to this URL instead of the default test URLs. Only HTTP and
1110
1018
  * HTTPS schemes are allowed, and the URL must resolve to a public IP address. For
1111
- * ISP and datacenter proxies, the exit IP is stable, so a successful check
1112
- * reliably indicates that subsequent browser sessions will reach the target site
1113
- * with the same IP. For residential and mobile proxies, the exit node changes
1114
- * between requests, so a successful check validates proxy configuration but does
1115
- * not guarantee that a subsequent browser session will use the same exit IP or
1116
- * reach the same site — it is useful for verifying credentials and connectivity,
1117
- * not for predicting site-specific behavior. When provided, the check result does
1118
- * not update the proxy's health status, since a failure may indicate a problem
1119
- * with the target site rather than the proxy itself.
1019
+ * ISP proxies, the exit IP is stable, so a successful check reliably indicates
1020
+ * that subsequent browser sessions will reach the target site with the same IP.
1021
+ * For residential and mobile proxies, the exit node changes between requests, so a
1022
+ * successful check validates proxy configuration but does not guarantee that a
1023
+ * subsequent browser session will use the same exit IP or reach the same site — it
1024
+ * is useful for verifying credentials and connectivity, not for predicting
1025
+ * site-specific behavior. When provided, the check result does not update the
1026
+ * proxy's health status, since a failure may indicate a problem with the target
1027
+ * site rather than the proxy itself.
1120
1028
  */
1121
1029
  url?: string;
1122
1030
  }
@@ -202,7 +202,8 @@ export namespace ProviderTarget {
202
202
  */
203
203
  export interface Contents {
204
204
  /**
205
- * Return query-relevant provider excerpts.
205
+ * Return query-relevant provider excerpts. Defaults to true for Exa search
206
+ * requests; set false to disable.
206
207
  */
207
208
  highlights?: boolean;
208
209
 
@@ -255,7 +256,8 @@ export namespace ProviderTarget {
255
256
  query?: Array<string>;
256
257
 
257
258
  /**
258
- * Provider context size supported by the selected model.
259
+ * Amount of page content Perplexity extracts per result. Defaults to medium unless
260
+ * max_tokens or max_tokens_per_page is set.
259
261
  */
260
262
  search_context_size?: 'low' | 'medium' | 'high';
261
263
 
@@ -1123,22 +1123,24 @@ export interface FillVaultItemOperationResult {
1123
1123
  /**
1124
1124
  * A ready Kernel card retains its encrypted network token and one-time code for
1125
1125
  * the fill operation until the item's expires_at. Fill and submit checkout before
1126
- * then. Visa cards can be enrolled, but Visa purchases are not yet supported and
1127
- * authorize returns 400; supported Mastercard purchases need no cardholder
1128
- * approval. masks.last4 is the enrolled card's last four digits; masks.token_last4
1129
- * is the network token's last four digits shown to the merchant. Kernel cards do
1130
- * not expose aliases or support egress substitution. Kernel does not observe
1131
- * whether the merchant charged the card.
1126
+ * then. Visa purchases require a spend_approval action before the code is issued;
1127
+ * Mastercard purchases need no hosted approval. masks.last4 is the enrolled card's
1128
+ * last four digits; masks.token_last4 is the network token's last four digits
1129
+ * shown to the merchant. Kernel cards do not expose aliases or support egress
1130
+ * substitution. Kernel does not observe whether the merchant charged the card.
1132
1131
  */
1133
1132
  export interface KernelCardState {
1134
1133
  provider: 'kernel';
1135
1134
 
1136
1135
  /**
1137
- * recovery_required means issuing the one-time code has an unresolved outcome.
1138
- * Kernel never issues another code for the item automatically, and the item cannot
1139
- * be deleted or replaced until the original attempt is reconciled with support.
1140
- * When status_reason says the provider refused retrieval before acceptance, no
1141
- * code was issued and a later read retries.
1136
+ * pending_authorization on a Visa purchase waits for the cardholder to approve it
1137
+ * through the spend_approval action; an unused link expires after 30 minutes.
1138
+ * recovery_required means approving the purchase or issuing the one-time code has
1139
+ * an unresolved outcome. Kernel never approves again or issues another code for
1140
+ * the item automatically, and the item cannot be deleted or replaced until the
1141
+ * original attempt is reconciled with support. When status_reason says the
1142
+ * provider refused retrieval before acceptance, no code was issued and a later
1143
+ * read retries. declined means the card network refused to issue a code.
1142
1144
  */
1143
1145
  status:
1144
1146
  | 'requested'
@@ -1179,10 +1181,12 @@ export namespace KernelCardState {
1179
1181
  * network token number, expiry and one-time 3-digit code. They are stored
1180
1182
  * encrypted for the fill operation, which types them only on merchant_url's
1181
1183
  * origin; the merchant's own checkout submits the payment. The one-time code is
1182
- * valid until the item's expires_at; fill and submit checkout before then. Visa
1183
- * cards can be enrolled, but Visa purchases are not yet supported: authorize
1184
- * returns 400. Supported Mastercard purchases need no cardholder approval. Card
1185
- * updates are not supported; delete and create a new item instead.
1184
+ * valid until the item's expires_at; fill and submit checkout before then.
1185
+ * Mastercard purchases need no cardholder approval. A Visa purchase returns a
1186
+ * spend_approval action: the cardholder approves it with a Visa passkey, and
1187
+ * Kernel registers a Visa intent for one transaction up to the amount before
1188
+ * issuing the code. Card updates are not supported; delete and create a new item
1189
+ * instead.
1186
1190
  */
1187
1191
  export interface KernelCardVaultItemSpec {
1188
1192
  /**
@@ -1210,6 +1214,12 @@ export interface KernelCardVaultItemSpec {
1210
1214
  * Key of the Kernel wallet item whose enrolled card pays.
1211
1215
  */
1212
1216
  wallet: string;
1217
+
1218
+ /**
1219
+ * The merchant's ISO 3166-1 alpha-2 country code. Required for Visa cards, whose
1220
+ * one-time code is issued for the merchant's country.
1221
+ */
1222
+ merchant_country?: string;
1213
1223
  }
1214
1224
 
1215
1225
  export interface KernelCredentialVaultItemSpec {
@@ -1273,10 +1283,11 @@ export interface KernelWalletState {
1273
1283
 
1274
1284
  /**
1275
1285
  * pending_authorization asks the cardholder to use the card_enrollment action.
1276
- * connected is ready for supported purchases. reconnect_required asks the
1277
- * cardholder to use a new card_enrollment action after an uncertain enrollment was
1278
- * safely removed. degraded means the enrollment outcome is unknown and the wallet
1279
- * must be deleted before adding another card.
1286
+ * connected means the card is stored; it can pay once payment_methods reports
1287
+ * capabilities.single_use_card.eligible. reconnect_required asks the cardholder to
1288
+ * use a new card_enrollment action after an uncertain enrollment was safely
1289
+ * removed. degraded means the enrollment outcome is unknown and the wallet must be
1290
+ * deleted before adding another card.
1280
1291
  */
1281
1292
  status: 'pending_authorization' | 'connected' | 'reconnect_required' | 'degraded';
1282
1293
 
@@ -1284,13 +1295,16 @@ export interface KernelWalletState {
1284
1295
  }
1285
1296
 
1286
1297
  /**
1287
- * One card Kernel enrolls for Visa or Mastercard agentic network tokens using
1288
- * Kernel-managed credentials. Creation returns a card_enrollment action: the
1289
- * cardholder enters the card and their email on a Kernel-hosted page, then Kernel
1290
- * enrolls the securely stored card. The card number never reaches Kernel. The
1291
- * connected wallet's payment_methods expansion lists the enrolled card. Visa cards
1292
- * can be enrolled, but Visa purchases are not yet supported: authorize
1293
- * returns 400.
1298
+ * One card stored with Kernel-managed credentials. Creation returns a
1299
+ * card*enrollment action: the cardholder enters the card and their email on a
1300
+ * Kernel-hosted page, and the wallet connects once the card is stored. Kernel then
1301
+ * enrolls it for an agentic network token when the issuer supports it. The card
1302
+ * number never reaches Kernel. The connected wallet's payment_methods expansion
1303
+ * lists the card; capabilities.single_use_card.eligible is false, with a
1304
+ * network_token*\* reason, until the card has a network token, and authorize
1305
+ * returns 400 for such a card. Visa purchases require the cardholder to complete a
1306
+ * spend_approval action before Kernel issues a one-time code; Mastercard purchases
1307
+ * need no hosted approval.
1294
1308
  */
1295
1309
  export interface KernelWalletVaultItemSpec {
1296
1310
  provider: 'kernel';
@@ -1754,17 +1768,11 @@ export interface OnePasswordRecoverVaultItemOperationRequest {
1754
1768
 
1755
1769
  /**
1756
1770
  * Request access to login entries in the end-user's own, non-shared 1Password
1757
- * vault through the browser extension, auto-loaded into the browser. The end-user
1758
- * approves access in the 1Password app. Shared-vault items and passkeys are not
1759
- * supported. Per-entry reason and keywords overrides are only supported for a
1760
- * single login entry.
1771
+ * vault. No browser is needed; the end-user approves access in the 1Password app.
1772
+ * Shared-vault items and passkeys are not supported. Per-entry reason and keywords
1773
+ * overrides are only supported for a single login entry.
1761
1774
  */
1762
1775
  export interface OnePasswordRequestAccessVaultItemOperationRequest {
1763
- /**
1764
- * Kernel browser session used to invoke the extension.
1765
- */
1766
- browser_id: string;
1767
-
1768
1776
  type: '1pw_create_access_request';
1769
1777
 
1770
1778
  goal?: string;
@@ -2787,11 +2795,6 @@ export declare namespace ItemPerformOperationParams {
2787
2795
  */
2788
2796
  id_or_name: string;
2789
2797
 
2790
- /**
2791
- * Body param: Kernel browser session used to invoke the extension.
2792
- */
2793
- browser_id: string;
2794
-
2795
2798
  /**
2796
2799
  * Body param
2797
2800
  */
@@ -2819,11 +2822,6 @@ export declare namespace ItemPerformOperationParams {
2819
2822
  */
2820
2823
  id_or_name: string;
2821
2824
 
2822
- /**
2823
- * Body param
2824
- */
2825
- browser_id: string;
2826
-
2827
2825
  /**
2828
2826
  * Body param
2829
2827
  */
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.119.0'; // x-release-please-version
1
+ export const VERSION = '0.121.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.119.0";
1
+ export declare const VERSION = "0.121.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.119.0";
1
+ export declare const VERSION = "0.121.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.119.0'; // x-release-please-version
4
+ exports.VERSION = '0.121.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.119.0'; // x-release-please-version
1
+ export const VERSION = '0.121.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map