@onkernel/sdk 0.154.0 → 0.156.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 (51) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/package.json +1 -1
  3. package/resources/api-keys.d.mts +27 -3
  4. package/resources/api-keys.d.mts.map +1 -1
  5. package/resources/api-keys.d.ts +27 -3
  6. package/resources/api-keys.d.ts.map +1 -1
  7. package/resources/auth/context.d.mts +9 -1
  8. package/resources/auth/context.d.mts.map +1 -1
  9. package/resources/auth/context.d.ts +9 -1
  10. package/resources/auth/context.d.ts.map +1 -1
  11. package/resources/browser-pools.d.mts +42 -18
  12. package/resources/browser-pools.d.mts.map +1 -1
  13. package/resources/browser-pools.d.ts +42 -18
  14. package/resources/browser-pools.d.ts.map +1 -1
  15. package/resources/browsers/browsers.d.mts +12 -1
  16. package/resources/browsers/browsers.d.mts.map +1 -1
  17. package/resources/browsers/browsers.d.ts +12 -1
  18. package/resources/browsers/browsers.d.ts.map +1 -1
  19. package/resources/browsers/browsers.js.map +1 -1
  20. package/resources/browsers/browsers.mjs.map +1 -1
  21. package/resources/deployments.d.mts +82 -0
  22. package/resources/deployments.d.mts.map +1 -1
  23. package/resources/deployments.d.ts +82 -0
  24. package/resources/deployments.d.ts.map +1 -1
  25. package/resources/report-types/report-types.d.mts +7 -0
  26. package/resources/report-types/report-types.d.mts.map +1 -1
  27. package/resources/report-types/report-types.d.ts +7 -0
  28. package/resources/report-types/report-types.d.ts.map +1 -1
  29. package/resources/report-types/report-types.js.map +1 -1
  30. package/resources/report-types/report-types.mjs.map +1 -1
  31. package/resources/vaults/items.d.mts +117 -53
  32. package/resources/vaults/items.d.mts.map +1 -1
  33. package/resources/vaults/items.d.ts +117 -53
  34. package/resources/vaults/items.d.ts.map +1 -1
  35. package/resources/workload-identity-federation-rules.d.mts +9 -1
  36. package/resources/workload-identity-federation-rules.d.mts.map +1 -1
  37. package/resources/workload-identity-federation-rules.d.ts +9 -1
  38. package/resources/workload-identity-federation-rules.d.ts.map +1 -1
  39. package/src/resources/api-keys.ts +27 -3
  40. package/src/resources/auth/context.ts +9 -1
  41. package/src/resources/browser-pools.ts +45 -18
  42. package/src/resources/browsers/browsers.ts +13 -1
  43. package/src/resources/deployments.ts +90 -0
  44. package/src/resources/report-types/report-types.ts +8 -0
  45. package/src/resources/vaults/items.ts +120 -53
  46. package/src/resources/workload-identity-federation-rules.ts +9 -1
  47. package/src/version.ts +1 -1
  48. package/version.d.mts +1 -1
  49. package/version.d.ts +1 -1
  50. package/version.js +1 -1
  51. package/version.mjs +1 -1
@@ -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
 
@@ -634,8 +639,9 @@ export interface BrowserPoolCreateParams {
634
639
 
635
640
  /**
636
641
  * Automatic CAPTCHA solving for browsers in this pool. Disabled by default.
637
- * Enabling it does not select a proxy: when proxy_id is omitted, browsers use
638
- * 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.
639
645
  */
640
646
  captcha_solver?: BrowsersAPI.BrowserCaptchaSolver;
641
647
 
@@ -699,8 +705,19 @@ export interface BrowserPoolCreateParams {
699
705
  profile?: BrowserPoolCreateParams.Profile;
700
706
 
701
707
  /**
702
- * Optional proxy to associate to the browser session. Must reference a proxy in
703
- * 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.
704
721
  */
705
722
  proxy_id?: string;
706
723
 
@@ -733,10 +750,10 @@ export interface BrowserPoolCreateParams {
733
750
  start_url?: string;
734
751
 
735
752
  /**
736
- * @deprecated If true, enables the CAPTCHA solver and, when proxy_id is omitted,
737
- * uses Kernel's default stealth proxy. Defaults to false. Cannot be combined with
738
- * captcha_solver.enabled=false. Deprecated in favor of captcha_solver and
739
- * 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.
740
757
  */
741
758
  stealth?: boolean;
742
759
 
@@ -908,7 +925,7 @@ export interface BrowserPoolUpdateParams {
908
925
  /**
909
926
  * If provided, replaces whether browsers in this pool automatically solve
910
927
  * CAPTCHAs. Enabling it on a pool with direct egress keeps direct egress unless
911
- * proxy_id or stealth=true is also set.
928
+ * proxy, proxy_id, or stealth=true is also set.
912
929
  */
913
930
  captcha_solver?: BrowsersAPI.BrowserCaptchaSolver;
914
931
 
@@ -1005,8 +1022,18 @@ export interface BrowserPoolUpdateParams {
1005
1022
  profile?: BrowserPoolUpdateParams.Profile;
1006
1023
 
1007
1024
  /**
1008
- * Empty string clears the previously-selected proxy. Omit this field to leave the
1009
- * 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.
1010
1037
  */
1011
1038
  proxy_id?: string;
1012
1039
 
@@ -1041,9 +1068,9 @@ export interface BrowserPoolUpdateParams {
1041
1068
 
1042
1069
  /**
1043
1070
  * @deprecated If provided, replaces whether browsers launch in stealth mode.
1044
- * stealth=true without proxy_id moves a pool on direct egress to Kernel's default
1045
- * stealth proxy. Cannot be combined with captcha_solver.enabled=false. Deprecated
1046
- * 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.
1047
1074
  */
1048
1075
  stealth?: boolean;
1049
1076
 
@@ -2298,6 +2298,13 @@ export interface BrowserRetrieveParams {
2298
2298
  }
2299
2299
 
2300
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
+
2301
2308
  /**
2302
2309
  * @deprecated If true, stealth browsers connect directly instead of using the
2303
2310
  * default stealth proxy. Deprecated in favor of proxy.mode.
@@ -2510,6 +2517,9 @@ export interface BrowserListParams extends OffsetPaginationParams {
2510
2517
 
2511
2518
  /**
2512
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.
2513
2523
  */
2514
2524
  query?: string;
2515
2525
 
@@ -2527,7 +2537,9 @@ export interface BrowserListParams extends OffsetPaginationParams {
2527
2537
  /**
2528
2538
  * Filter sessions by tag key-value pairs using deepObject style, e.g.
2529
2539
  * ?tags[team]=backend&tags[env]=staging. Multiple pairs are ANDed: a session must
2530
- * 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.
2531
2543
  */
2532
2544
  tags?: { [key: string]: string };
2533
2545
  }
@@ -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
  */
@@ -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;
@@ -869,12 +869,12 @@ export interface CollectVaultItemOperationRequest {
869
869
  }
870
870
 
871
871
  /**
872
- * Report a real merchant transaction outcome for an issued Kernel Visa or Shop Pay
873
- * credential. Shop Pay accepts PURCHASE, AUTHORIZATION and CAPTURE. Never infer
874
- * success from filling checkout or receiving a credential. Supply the observed
875
- * status, transaction type, actual amount, currency and timestamp. Unknown
876
- * outcomes require manual reconciliation, not retry. Each purchase accepts one
877
- * report.
872
+ * Report a real merchant transaction outcome for an issued Kernel card or Shop Pay
873
+ * credential. Kernel alias cards record the outcome without contacting the issuer.
874
+ * Shop Pay accepts PURCHASE, AUTHORIZATION and CAPTURE. Never infer success from
875
+ * filling checkout or receiving a credential. Supply the observed status,
876
+ * transaction type, actual amount, currency and timestamp. Unknown outcomes
877
+ * require manual reconciliation, not retry. Each purchase accepts one report.
878
878
  */
879
879
  export interface ConfirmTransactionVaultItemOperationRequest {
880
880
  /**
@@ -909,20 +909,20 @@ export interface ConfirmTransactionVaultItemOperationRequest {
909
909
  /**
910
910
  * Why the purchase did not succeed, for any other outcome, such as 3ds_challenge,
911
911
  * captcha, login_required, timeout or site_error. payment_declined goes only with
912
- * DECLINED, which takes no other code. Shop Pay reports it; other providers ignore
913
- * it.
912
+ * DECLINED, which takes no other code. Shop Pay reports it to Shop Pay; Kernel
913
+ * cards store it with the purchase without reporting it.
914
914
  */
915
915
  failure_code?: string;
916
916
 
917
917
  /**
918
- * The merchant's order number, for an APPROVED outcome. Shop Pay reports it; other
919
- * providers ignore it.
918
+ * The merchant's order number, for an APPROVED outcome. Shop Pay reports it to
919
+ * Shop Pay; Kernel cards store it with the purchase without reporting it.
920
920
  */
921
921
  order_id?: string;
922
922
 
923
923
  /**
924
- * The merchant's https order page, for an APPROVED outcome. Shop Pay reports it;
925
- * other providers ignore it.
924
+ * The merchant's https order page, for an APPROVED outcome. Shop Pay reports it to
925
+ * Shop Pay; Kernel cards store it with the purchase without reporting it.
926
926
  */
927
927
  order_url?: string;
928
928
  }
@@ -1478,6 +1478,15 @@ export interface CredentialVaultItemSpecUpdate {
1478
1478
  */
1479
1479
  description?: string;
1480
1480
 
1481
+ /**
1482
+ * Hostname of the site this login is for, such as rippling.com. Collection pages
1483
+ * and link previews show the site's icon and domain. Setting it also puts the
1484
+ * domain in the collection link's query string (/collect?d=<domain>#token=...),
1485
+ * where anyone with the link can read it without the token. An empty string clears
1486
+ * it. Display text only, not an enforced destination policy.
1487
+ */
1488
+ domain?: string;
1489
+
1481
1490
  fields?: { [key: string]: CredentialVaultFieldUpdate };
1482
1491
 
1483
1492
  /**
@@ -1828,6 +1837,12 @@ export interface KernelCredentialVaultItemSpec {
1828
1837
  * destination policy.
1829
1838
  */
1830
1839
  description?: string;
1840
+
1841
+ /**
1842
+ * Hostname of the site this login is for, shown on collection pages and link
1843
+ * previews. Display text only, not an enforced destination policy.
1844
+ */
1845
+ domain?: string;
1831
1846
  }
1832
1847
 
1833
1848
  /**
@@ -1853,6 +1868,15 @@ export interface KernelCredentialVaultItemSpecInput {
1853
1868
  * not an enforced destination policy. At most 16 KiB in UTF-8 bytes.
1854
1869
  */
1855
1870
  description?: string;
1871
+
1872
+ /**
1873
+ * Hostname of the site this login is for, such as rippling.com, without a scheme
1874
+ * or path. Collection pages and link previews show the site's icon and domain.
1875
+ * Setting it also puts the domain in the collection link's query string
1876
+ * (/collect?d=<domain>#token=...), where anyone with the link can read it without
1877
+ * the token. Display text only, not an enforced destination policy.
1878
+ */
1879
+ domain?: string;
1856
1880
  }
1857
1881
 
1858
1882
  export interface KernelCredentialVaultItemState {
@@ -1948,18 +1972,18 @@ export interface KernelWalletState {
1948
1972
  provider: 'kernel';
1949
1973
 
1950
1974
  /**
1951
- * connected means the wallet is usable. It holds zero or more cards as payment
1952
- * methods, listed by the payment_methods expansion, and each can pay once it
1953
- * reports capabilities.single_use_card.eligible. A wallet with no cards, before
1954
- * its first card or after its last is removed, is still connected. Where the
1955
- * wallet advertises add_payment_method and remove_payment_method, use them to
1956
- * manage cards. Otherwise the wallet enrolls one default card when created; until
1957
- * that card is enrolled the wallet reports pending_authorization with the card's
1958
- * card_enrollment action, or degraded when the card's enrollment outcome is
1959
- * unknown and the wallet must be deleted before adding another card.
1960
- * reconnect_required appears only on a wallet created before cards were payment
1961
- * methods and not yet upgraded. Reads preserve its stored state until the operator
1962
- * upgrade; payment and deletion requests are refused until then.
1975
+ * connected means the wallet is usable. New wallets are created connected and
1976
+ * empty. A wallet holds zero or more cards as payment methods, added with
1977
+ * add_payment_method, removed with remove_payment_method and listed by the
1978
+ * payment_methods expansion; each can pay once it reports
1979
+ * capabilities.single_use_card.eligible. A wallet with no cards, before its first
1980
+ * card or after its last is removed, is still connected. A wallet created before
1981
+ * cards were added with add_payment_method holds a default card, ID card; while
1982
+ * that card's enrollment is pending, its card_enrollment action is on the card in
1983
+ * the payment_methods expansion, not on the wallet. pending_authorization,
1984
+ * degraded and reconnect_required appear only on a wallet created before cards
1985
+ * were payment methods and not yet upgraded. Reads preserve its stored state until
1986
+ * the operator upgrade; payment and deletion requests are refused until then.
1963
1987
  */
1964
1988
  status: 'pending_authorization' | 'connected' | 'reconnect_required' | 'degraded';
1965
1989
 
@@ -1968,20 +1992,18 @@ export interface KernelWalletState {
1968
1992
 
1969
1993
  /**
1970
1994
  * Cards stored with Kernel-managed credentials, each a payment method of the
1971
- * wallet. Each card is enrolled through a card*enrollment action: the cardholder
1972
- * enters the card and their email on a Kernel-hosted page. Where the wallet
1973
- * advertises add_payment_method, creation returns an empty connected wallet and
1974
- * each card is enrolled with that operation. Otherwise creation returns the
1975
- * wallet's default card's card_enrollment action, and the wallet connects once
1976
- * that card is stored. Kernel then enrolls each card for an agentic network token
1977
- * when the issuer supports it. The card number never reaches Kernel. The connected
1978
- * wallet's payment_methods expansion lists the cards;
1979
- * capabilities.single_use_card.eligible is false, with a network_token*\* reason,
1980
- * until the card has a network token, and authorize returns 400 for such a card
1981
- * unless Kernel supports checkout delivery without a network token for that card.
1982
- * In that case, fill types the checkout details. Visa purchases require the
1983
- * cardholder to complete a spend_approval action before Kernel issues a one-time
1984
- * code; Mastercard purchases need no hosted approval.
1995
+ * wallet. Creation returns a connected wallet with no cards and no action. Add
1996
+ * each card with the add*payment_method operation, which returns a card_enrollment
1997
+ * action: the cardholder enters the card and their email on a Kernel-hosted page.
1998
+ * Kernel then enrolls each card for an agentic network token when the issuer
1999
+ * supports it. The card number never reaches Kernel. The connected wallet's
2000
+ * payment_methods expansion lists the cards; capabilities.single_use_card.eligible
2001
+ * is false, with a network_token*\* reason, until the card has a network token,
2002
+ * and authorize returns 400 for such a card unless Kernel supports checkout
2003
+ * delivery without a network token for that card. In that case, fill types the
2004
+ * checkout details. Visa purchases require the cardholder to complete a
2005
+ * spend_approval action before Kernel issues a one-time code; Mastercard purchases
2006
+ * need no hosted approval.
1985
2007
  */
1986
2008
  export interface KernelWalletVaultItemSpec {
1987
2009
  provider: 'kernel';
@@ -2729,22 +2751,65 @@ export interface OnePasswordFillVaultItemOperationRequest {
2729
2751
  export interface OnePasswordFillVaultItemOperationResult {
2730
2752
  /**
2731
2753
  * Kernel's outcome of the extension call. fill_submitted means the extension
2732
- * reported submission, not website authentication. fill_failed means the extension
2733
- * returned a known failure and includes error_code. fill_unknown means the form
2734
- * may have been filled or submitted without a conclusive result; inspect the page
2735
- * to see the result of the fill.
2754
+ * reported submission, not website authentication; check the page. fill_failed
2755
+ * means 1Password reported a failure, named by error_code; with fillFailed the
2756
+ * form may already have been filled or submitted, so check the page. fill_unknown
2757
+ * means the form may have been filled or submitted without a conclusive result;
2758
+ * inspect the page to see the result of the fill.
2736
2759
  */
2737
2760
  status: 'fill_submitted' | 'fill_failed' | 'fill_unknown';
2738
2761
 
2739
2762
  type: '1pw_fill';
2740
2763
 
2741
2764
  /**
2742
- * Present for fill_failed, and for fill_unknown when the extension reported
2743
- * autosubmitFailed (it filled and submitted the form but could not confirm the
2744
- * fill finished). These are allowlisted 1Password extension codes, never raw
2745
- * errors, secrets, or page content.
2765
+ * The 1Password extension's error code, passed through unchanged. Present for
2766
+ * fill_failed, and for fill_unknown when the extension reported one. Codes
2767
+ * 1Password adds later are returned with fill_unknown, because the form may have
2768
+ * been filled or submitted. Codes are short identifiers, never raw errors,
2769
+ * secrets, or page content.
2770
+ *
2771
+ * autosubmitFailed (fill_unknown): 1Password filled the form, saw no new page and
2772
+ * no removed fields for 10 seconds, and cleared what it filled. If the login has a
2773
+ * one-time password the site didn't ask for, the sign-in may still have worked.
2774
+ * The approval is still valid: do not request access again. Check the page:
2775
+ * continue if signed in or on a verification step; if the form is still showing,
2776
+ * 1Password cannot sign in to this site, so ask the user or use another sign-in
2777
+ * method rather than filling again.
2778
+ *
2779
+ * internal (fill_unknown): an unexpected 1Password error that may have happened
2780
+ * after the fill. Inspect the page.
2781
+ *
2782
+ * noActiveGrant, credentialNotFound: the approval expired or was revoked, or the
2783
+ * login was deleted or moved. Kernel returns the credential to
2784
+ * pending_authorization and drops its approval; create a new access request with
2785
+ * 1pw_create_access_request.
2786
+ *
2787
+ * fillFailed: 1Password couldn't complete the fill, and the form may already have
2788
+ * been filled or submitted. Check the page before filling again.
2789
+ *
2790
+ * websiteMismatch: the page isn't on the login's website. Navigate to the login
2791
+ * page and fill again.
2792
+ *
2793
+ * rateLimitExceeded: wait at least a minute before filling again.
2794
+ * serviceUnavailable and networkError: fill again with backoff.
2795
+ *
2796
+ * extensionUnavailable: the 1Password extension failed to start in this browser.
2797
+ * Create a new browser with the vault attached and fill there.
2798
+ *
2799
+ * invalidToken: 1Password rejected the access token. For a credential linked to a
2800
+ * 1Password account, Kernel has already refreshed the token and filled once more;
2801
+ * if that refresh failed, the account is now reconnect_required, so link it again
2802
+ * with PUT. For a credential with a stored token, replace the token with
2803
+ * 1pw_update_access_token, then fill again.
2804
+ *
2805
+ * integrationKeyInvalid: the 1Password connection was removed or is out of date.
2806
+ * Invoke 1pw_disconnect on the credential_account item, then link it again with
2807
+ * PUT.
2808
+ *
2809
+ * insufficientScope, permissionDenied, featureEntitlementMissing: the 1Password
2810
+ * account or plan doesn't allow this. Tell the user; filling again won't help.
2746
2811
  */
2747
- error_code?: 'fillFailed' | 'autosubmitFailed' | 'noExistingCredentials' | 'authenticationFailed';
2812
+ error_code?: string;
2748
2813
  }
2749
2814
 
2750
2815
  export interface OnePasswordOAuthAction {
@@ -4046,8 +4111,8 @@ export interface VaultPaymentMethod {
4046
4111
 
4047
4112
  /**
4048
4113
  * For Kernel wallets, true for the default card, ID card, which a Kernel card item
4049
- * that omits payment_method_id selects. Wallets created with payment methods
4050
- * enabled have no default card.
4114
+ * that omits payment_method_id selects. Only wallets created before cards were
4115
+ * added with add_payment_method have a default card.
4051
4116
  */
4052
4117
  is_default: boolean;
4053
4118
 
@@ -4857,20 +4922,22 @@ export declare namespace ItemPerformOperationParams {
4857
4922
  /**
4858
4923
  * Body param: Why the purchase did not succeed, for any other outcome, such as
4859
4924
  * 3ds_challenge, captcha, login_required, timeout or site_error. payment_declined
4860
- * goes only with DECLINED, which takes no other code. Shop Pay reports it; other
4861
- * providers ignore it.
4925
+ * goes only with DECLINED, which takes no other code. Shop Pay reports it to Shop
4926
+ * Pay; Kernel cards store it with the purchase without reporting it.
4862
4927
  */
4863
4928
  failure_code?: string;
4864
4929
 
4865
4930
  /**
4866
4931
  * Body param: The merchant's order number, for an APPROVED outcome. Shop Pay
4867
- * reports it; other providers ignore it.
4932
+ * reports it to Shop Pay; Kernel cards store it with the purchase without
4933
+ * reporting it.
4868
4934
  */
4869
4935
  order_id?: string;
4870
4936
 
4871
4937
  /**
4872
4938
  * Body param: The merchant's https order page, for an APPROVED outcome. Shop Pay
4873
- * reports it; other providers ignore it.
4939
+ * reports it to Shop Pay; Kernel cards store it with the purchase without
4940
+ * reporting it.
4874
4941
  */
4875
4942
  order_url?: string;
4876
4943
  }
@@ -98,7 +98,15 @@ export namespace WorkloadIdentityAuthorization {
98
98
  export namespace Policy {
99
99
  export interface Statement {
100
100
  /**
101
- * Permitted action, such as browsers:use or vaults:read.
101
+ * Permitted action, such as browsers:use or vaults:read. When creating an API key
102
+ * or replacing its policy, `*` may replace whole components as shorthand:
103
+ * browsers:_ names every browsers action, _:delete every delete action the
104
+ * resource can carry, and _:_ every action the resource can carry. The stored
105
+ * policy lists the concrete actions, so actions added later are not granted, and
106
+ * api_keys:issue_beyond_expiry must always be listed explicitly. Partial
107
+ * components such as brow*:use and a bare * are rejected. Other policies, such as
108
+ * workload identity rules and deployment runtime policies, accept only exact
109
+ * actions.
102
110
  */
103
111
  action: string;
104
112
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.154.0'; // x-release-please-version
1
+ export const VERSION = '0.156.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.154.0";
1
+ export declare const VERSION = "0.156.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.154.0";
1
+ export declare const VERSION = "0.156.0";
2
2
  //# sourceMappingURL=version.d.ts.map