@onkernel/sdk 0.154.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 (51) hide show
  1. package/CHANGELOG.md +8 -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 +96 -53
  32. package/resources/vaults/items.d.mts.map +1 -1
  33. package/resources/vaults/items.d.ts +96 -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 +96 -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
@@ -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
  }
@@ -1948,18 +1948,18 @@ export interface KernelWalletState {
1948
1948
  provider: 'kernel';
1949
1949
 
1950
1950
  /**
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.
1951
+ * connected means the wallet is usable. New wallets are created connected and
1952
+ * empty. A wallet holds zero or more cards as payment methods, added with
1953
+ * add_payment_method, removed with remove_payment_method and listed by the
1954
+ * payment_methods expansion; each can pay once it reports
1955
+ * capabilities.single_use_card.eligible. A wallet with no cards, before its first
1956
+ * card or after its last is removed, is still connected. A wallet created before
1957
+ * cards were added with add_payment_method holds a default card, ID card; while
1958
+ * that card's enrollment is pending, its card_enrollment action is on the card in
1959
+ * the payment_methods expansion, not on the wallet. pending_authorization,
1960
+ * degraded and reconnect_required appear only on a wallet created before cards
1961
+ * were payment methods and not yet upgraded. Reads preserve its stored state until
1962
+ * the operator upgrade; payment and deletion requests are refused until then.
1963
1963
  */
1964
1964
  status: 'pending_authorization' | 'connected' | 'reconnect_required' | 'degraded';
1965
1965
 
@@ -1968,20 +1968,18 @@ export interface KernelWalletState {
1968
1968
 
1969
1969
  /**
1970
1970
  * 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.
1971
+ * wallet. Creation returns a connected wallet with no cards and no action. Add
1972
+ * each card with the add*payment_method operation, which returns a card_enrollment
1973
+ * action: the cardholder enters the card and their email on a Kernel-hosted page.
1974
+ * Kernel then enrolls each card for an agentic network token when the issuer
1975
+ * supports it. The card number never reaches Kernel. The connected wallet's
1976
+ * payment_methods expansion lists the cards; capabilities.single_use_card.eligible
1977
+ * is false, with a network_token*\* reason, until the card has a network token,
1978
+ * and authorize returns 400 for such a card unless Kernel supports checkout
1979
+ * delivery without a network token for that card. In that case, fill types the
1980
+ * checkout details. Visa purchases require the cardholder to complete a
1981
+ * spend_approval action before Kernel issues a one-time code; Mastercard purchases
1982
+ * need no hosted approval.
1985
1983
  */
1986
1984
  export interface KernelWalletVaultItemSpec {
1987
1985
  provider: 'kernel';
@@ -2729,22 +2727,65 @@ export interface OnePasswordFillVaultItemOperationRequest {
2729
2727
  export interface OnePasswordFillVaultItemOperationResult {
2730
2728
  /**
2731
2729
  * 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.
2730
+ * reported submission, not website authentication; check the page. fill_failed
2731
+ * means 1Password reported a failure, named by error_code; with fillFailed the
2732
+ * form may already have been filled or submitted, so check the page. fill_unknown
2733
+ * means the form may have been filled or submitted without a conclusive result;
2734
+ * inspect the page to see the result of the fill.
2736
2735
  */
2737
2736
  status: 'fill_submitted' | 'fill_failed' | 'fill_unknown';
2738
2737
 
2739
2738
  type: '1pw_fill';
2740
2739
 
2741
2740
  /**
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.
2741
+ * The 1Password extension's error code, passed through unchanged. Present for
2742
+ * fill_failed, and for fill_unknown when the extension reported one. Codes
2743
+ * 1Password adds later are returned with fill_unknown, because the form may have
2744
+ * been filled or submitted. Codes are short identifiers, never raw errors,
2745
+ * secrets, or page content.
2746
+ *
2747
+ * autosubmitFailed (fill_unknown): 1Password filled the form, saw no new page and
2748
+ * no removed fields for 10 seconds, and cleared what it filled. If the login has a
2749
+ * one-time password the site didn't ask for, the sign-in may still have worked.
2750
+ * The approval is still valid: do not request access again. Check the page:
2751
+ * continue if signed in or on a verification step; if the form is still showing,
2752
+ * 1Password cannot sign in to this site, so ask the user or use another sign-in
2753
+ * method rather than filling again.
2754
+ *
2755
+ * internal (fill_unknown): an unexpected 1Password error that may have happened
2756
+ * after the fill. Inspect the page.
2757
+ *
2758
+ * noActiveGrant, credentialNotFound: the approval expired or was revoked, or the
2759
+ * login was deleted or moved. Kernel returns the credential to
2760
+ * pending_authorization and drops its approval; create a new access request with
2761
+ * 1pw_create_access_request.
2762
+ *
2763
+ * fillFailed: 1Password couldn't complete the fill, and the form may already have
2764
+ * been filled or submitted. Check the page before filling again.
2765
+ *
2766
+ * websiteMismatch: the page isn't on the login's website. Navigate to the login
2767
+ * page and fill again.
2768
+ *
2769
+ * rateLimitExceeded: wait at least a minute before filling again.
2770
+ * serviceUnavailable and networkError: fill again with backoff.
2771
+ *
2772
+ * extensionUnavailable: the 1Password extension failed to start in this browser.
2773
+ * Create a new browser with the vault attached and fill there.
2774
+ *
2775
+ * invalidToken: 1Password rejected the access token. For a credential linked to a
2776
+ * 1Password account, Kernel has already refreshed the token and filled once more;
2777
+ * if that refresh failed, the account is now reconnect_required, so link it again
2778
+ * with PUT. For a credential with a stored token, replace the token with
2779
+ * 1pw_update_access_token, then fill again.
2780
+ *
2781
+ * integrationKeyInvalid: the 1Password connection was removed or is out of date.
2782
+ * Invoke 1pw_disconnect on the credential_account item, then link it again with
2783
+ * PUT.
2784
+ *
2785
+ * insufficientScope, permissionDenied, featureEntitlementMissing: the 1Password
2786
+ * account or plan doesn't allow this. Tell the user; filling again won't help.
2746
2787
  */
2747
- error_code?: 'fillFailed' | 'autosubmitFailed' | 'noExistingCredentials' | 'authenticationFailed';
2788
+ error_code?: string;
2748
2789
  }
2749
2790
 
2750
2791
  export interface OnePasswordOAuthAction {
@@ -4046,8 +4087,8 @@ export interface VaultPaymentMethod {
4046
4087
 
4047
4088
  /**
4048
4089
  * 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.
4090
+ * that omits payment_method_id selects. Only wallets created before cards were
4091
+ * added with add_payment_method have a default card.
4051
4092
  */
4052
4093
  is_default: boolean;
4053
4094
 
@@ -4857,20 +4898,22 @@ export declare namespace ItemPerformOperationParams {
4857
4898
  /**
4858
4899
  * Body param: Why the purchase did not succeed, for any other outcome, such as
4859
4900
  * 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.
4901
+ * goes only with DECLINED, which takes no other code. Shop Pay reports it to Shop
4902
+ * Pay; Kernel cards store it with the purchase without reporting it.
4862
4903
  */
4863
4904
  failure_code?: string;
4864
4905
 
4865
4906
  /**
4866
4907
  * Body param: The merchant's order number, for an APPROVED outcome. Shop Pay
4867
- * reports it; other providers ignore it.
4908
+ * reports it to Shop Pay; Kernel cards store it with the purchase without
4909
+ * reporting it.
4868
4910
  */
4869
4911
  order_id?: string;
4870
4912
 
4871
4913
  /**
4872
4914
  * Body param: The merchant's https order page, for an APPROVED outcome. Shop Pay
4873
- * reports it; other providers ignore it.
4915
+ * reports it to Shop Pay; Kernel cards store it with the purchase without
4916
+ * reporting it.
4874
4917
  */
4875
4918
  order_url?: string;
4876
4919
  }
@@ -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.155.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.155.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.155.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.154.0'; // x-release-please-version
4
+ exports.VERSION = '0.155.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.154.0'; // x-release-please-version
1
+ export const VERSION = '0.155.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map