@onkernel/sdk 0.99.0 → 0.101.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 (97) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/client.d.mts +3 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +3 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +3 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +3 -0
  9. package/client.mjs.map +1 -1
  10. package/lib/browser-routing.d.mts.map +1 -1
  11. package/lib/browser-routing.d.ts.map +1 -1
  12. package/lib/browser-routing.js +23 -6
  13. package/lib/browser-routing.js.map +1 -1
  14. package/lib/browser-routing.mjs +23 -6
  15. package/lib/browser-routing.mjs.map +1 -1
  16. package/package.json +1 -1
  17. package/resources/browsers/telemetry.d.mts +4 -3
  18. package/resources/browsers/telemetry.d.mts.map +1 -1
  19. package/resources/browsers/telemetry.d.ts +4 -3
  20. package/resources/browsers/telemetry.d.ts.map +1 -1
  21. package/resources/config-registry/config-registry.d.mts +14 -7
  22. package/resources/config-registry/config-registry.d.mts.map +1 -1
  23. package/resources/config-registry/config-registry.d.ts +14 -7
  24. package/resources/config-registry/config-registry.d.ts.map +1 -1
  25. package/resources/config-registry/config-registry.js.map +1 -1
  26. package/resources/config-registry/config-registry.mjs.map +1 -1
  27. package/resources/index.d.mts +1 -0
  28. package/resources/index.d.mts.map +1 -1
  29. package/resources/index.d.ts +1 -0
  30. package/resources/index.d.ts.map +1 -1
  31. package/resources/index.js +3 -1
  32. package/resources/index.js.map +1 -1
  33. package/resources/index.mjs +1 -0
  34. package/resources/index.mjs.map +1 -1
  35. package/resources/invocations.d.mts +44 -15
  36. package/resources/invocations.d.mts.map +1 -1
  37. package/resources/invocations.d.ts +44 -15
  38. package/resources/invocations.d.ts.map +1 -1
  39. package/resources/organization/entitlements.d.mts +20 -0
  40. package/resources/organization/entitlements.d.mts.map +1 -1
  41. package/resources/organization/entitlements.d.ts +20 -0
  42. package/resources/organization/entitlements.d.ts.map +1 -1
  43. package/resources/organization/limits.d.mts +10 -1
  44. package/resources/organization/limits.d.mts.map +1 -1
  45. package/resources/organization/limits.d.ts +10 -1
  46. package/resources/organization/limits.d.ts.map +1 -1
  47. package/resources/organization/limits.js +1 -1
  48. package/resources/organization/limits.mjs +1 -1
  49. package/resources/proxies.d.mts +36 -18
  50. package/resources/proxies.d.mts.map +1 -1
  51. package/resources/proxies.d.ts +36 -18
  52. package/resources/proxies.d.ts.map +1 -1
  53. package/resources/vault-provider-configs.d.mts +179 -0
  54. package/resources/vault-provider-configs.d.mts.map +1 -0
  55. package/resources/vault-provider-configs.d.ts +179 -0
  56. package/resources/vault-provider-configs.d.ts.map +1 -0
  57. package/resources/vault-provider-configs.js +99 -0
  58. package/resources/vault-provider-configs.js.map +1 -0
  59. package/resources/vault-provider-configs.mjs +95 -0
  60. package/resources/vault-provider-configs.mjs.map +1 -0
  61. package/resources/vaults/items.d.mts +296 -38
  62. package/resources/vaults/items.d.mts.map +1 -1
  63. package/resources/vaults/items.d.ts +296 -38
  64. package/resources/vaults/items.d.ts.map +1 -1
  65. package/resources/vaults/items.js +86 -4
  66. package/resources/vaults/items.js.map +1 -1
  67. package/resources/vaults/items.mjs +86 -4
  68. package/resources/vaults/items.mjs.map +1 -1
  69. package/resources/vaults/vaults.d.mts +31 -2
  70. package/resources/vaults/vaults.d.mts.map +1 -1
  71. package/resources/vaults/vaults.d.ts +31 -2
  72. package/resources/vaults/vaults.d.ts.map +1 -1
  73. package/resources/vaults/vaults.js +31 -2
  74. package/resources/vaults/vaults.js.map +1 -1
  75. package/resources/vaults/vaults.mjs +31 -2
  76. package/resources/vaults/vaults.mjs.map +1 -1
  77. package/src/client.ts +19 -0
  78. package/src/lib/browser-routing.ts +27 -6
  79. package/src/resources/browsers/telemetry.ts +5 -2
  80. package/src/resources/config-registry/config-registry.ts +15 -7
  81. package/src/resources/index.ts +8 -0
  82. package/src/resources/invocations.ts +44 -15
  83. package/src/resources/organization/entitlements.ts +23 -0
  84. package/src/resources/organization/limits.ts +12 -1
  85. package/src/resources/proxies.ts +36 -18
  86. package/src/resources/vault-provider-configs.ts +250 -0
  87. package/src/resources/vaults/items.ts +333 -39
  88. package/src/resources/vaults/vaults.ts +31 -2
  89. package/src/version.ts +1 -1
  90. package/version.d.mts +1 -1
  91. package/version.d.mts.map +1 -1
  92. package/version.d.ts +1 -1
  93. package/version.d.ts.map +1 -1
  94. package/version.js +1 -1
  95. package/version.js.map +1 -1
  96. package/version.mjs +1 -1
  97. package/version.mjs.map +1 -1
@@ -9,32 +9,114 @@ export declare class Items extends APIResource {
9
9
  * description before using it. Expanded data is fetched from the provider and is
10
10
  * not persisted in the vault item. Requesting an unavailable expansion returns 409
11
11
  * instead of a partial item.
12
+ *
13
+ * @example
14
+ * ```ts
15
+ * const vaultItem = await client.vaults.items.retrieve('x', {
16
+ * id_or_name: 'id_or_name',
17
+ * });
18
+ * ```
12
19
  */
13
20
  retrieve(key: string, params: ItemRetrieveParams, options?: RequestOptions): APIPromise<VaultItem>;
14
21
  /**
15
- * Update a card specification before or between authorizations
22
+ * Requested cards accept a replacement specification. Pending issuance requests
23
+ * may update provider-supported fields on their existing request, subject to
24
+ * atomic provider approval checks; omitted optional fields remain unchanged and
25
+ * explicit empty lists clear them. Wallet/provider binding and unsupported fields
26
+ * cannot change after authorization starts. An uncertain update enters
27
+ * recovery_required and must not be retried. Checkout cards may be edited between
28
+ * authorizations.
29
+ *
30
+ * @example
31
+ * ```ts
32
+ * const vaultItem = await client.vaults.items.update('x', {
33
+ * id_or_name: 'id_or_name',
34
+ * spec: {
35
+ * provider: 'link',
36
+ * wallet: 'link-wallet',
37
+ * payment_method_id: 'pm_example',
38
+ * amount: 3000,
39
+ * currency: 'usd',
40
+ * merchant_name: 'Example Store',
41
+ * merchant_url: 'https://store.example.com',
42
+ * context:
43
+ * 'The order total changed to USD 30.00 including shipping and taxes for one notebook. Update this unapproved request rather than creating a second payment.',
44
+ * },
45
+ * });
46
+ * ```
16
47
  */
17
48
  update(key: string, params: ItemUpdateParams, options?: RequestOptions): APIPromise<VaultItem>;
18
49
  /**
19
50
  * List vault items without secret values
51
+ *
52
+ * @example
53
+ * ```ts
54
+ * const vaultItems = await client.vaults.items.list(
55
+ * 'id_or_name',
56
+ * );
57
+ * ```
20
58
  */
21
59
  list(idOrName: string, options?: RequestOptions): APIPromise<ItemListResponse>;
22
60
  /**
23
- * Delete a vault item and invalidate its secret value
61
+ * Unresolved payment operations block deletion, including operations on child
62
+ * cards of a wallet. Reconcile the original attempt with the provider or support
63
+ * first; deleting or recreating an item is not proof that a payment did not occur.
64
+ *
65
+ * @example
66
+ * ```ts
67
+ * await client.vaults.items.delete('x', {
68
+ * id_or_name: 'id_or_name',
69
+ * });
70
+ * ```
24
71
  */
25
72
  delete(key: string, params: ItemDeleteParams, options?: RequestOptions): APIPromise<void>;
26
73
  /**
27
74
  * List immutable audit events for a vault item
75
+ *
76
+ * @example
77
+ * ```ts
78
+ * const vaultItemEvents = await client.vaults.items.events(
79
+ * 'key',
80
+ * { id_or_name: 'id_or_name' },
81
+ * );
82
+ * ```
28
83
  */
29
84
  events(key: string, params: ItemEventsParams, options?: RequestOptions): APIPromise<ItemEventsResponse>;
30
85
  /**
31
86
  * Retrieve the item first and invoke only an operation listed in
32
87
  * `available_operations`, following its natural-language description. Operations
33
- * may call an external provider and can return the item's updated state.
88
+ * may call an external provider and return updated state. Link cards advertise
89
+ * authorize. AgentCard cards are created with PUT and request approval when their
90
+ * aliases are used at checkout; they do not expose this operation. If
91
+ * spend-request creation is rate limited, returns HTTP 429 with code
92
+ * `spend_request_rate_limited`; stop and back off before retrying.
93
+ *
94
+ * @example
95
+ * ```ts
96
+ * const vaultItem =
97
+ * await client.vaults.items.performOperation('key', {
98
+ * id_or_name: 'id_or_name',
99
+ * type: 'authorize',
100
+ * });
101
+ * ```
34
102
  */
35
103
  performOperation(key: string, params: ItemPerformOperationParams, options?: RequestOptions): APIPromise<VaultItem>;
36
104
  /**
37
- * Create or retrieve an identical vault item by immutable key
105
+ * Create an item under a key unique within its vault, or retrieve the existing
106
+ * item when its specification matches. An identical card PUT returns the existing
107
+ * card in any lifecycle state without polling the provider, reauthorizing,
108
+ * replacing aliases, or resetting recovery. Conflicting specifications return 409.
109
+ * Provider-specific authorization requirements and retry behavior are described in
110
+ * the item's request schema.
111
+ *
112
+ * @example
113
+ * ```ts
114
+ * const vaultItem = await client.vaults.items.upsert('x', {
115
+ * id_or_name: 'id_or_name',
116
+ * spec: { provider: 'link' },
117
+ * type: 'card',
118
+ * });
119
+ * ```
38
120
  */
39
121
  upsert(key: string, params: ItemUpsertParams, options?: RequestOptions): APIPromise<VaultItem>;
40
122
  }
@@ -80,11 +162,13 @@ export interface AgentcardCheckoutAuthorization {
80
162
  replay_status?: number;
81
163
  }
82
164
  /**
83
- * AgentCard reusable card. Each checkout creates an approval-gated authorization
84
- * for spec.merchant / spec.amount. The card stays ready after each authorization.
165
+ * Live payment card. Test-mode card creation is not supported.
85
166
  */
86
167
  export type CardVaultItemSpec = CardVaultItemSpec.LinkCardVaultItemSpec | CardVaultItemSpec.AgentCardCardVaultItemSpec;
87
168
  export declare namespace CardVaultItemSpec {
169
+ /**
170
+ * Live payment card. Test-mode card creation is not supported.
171
+ */
88
172
  interface LinkCardVaultItemSpec {
89
173
  /**
90
174
  * Integer amount in minor currency units.
@@ -101,11 +185,6 @@ export declare namespace CardVaultItemSpec {
101
185
  */
102
186
  payment_method_id: string;
103
187
  provider: 'link';
104
- /**
105
- * Whether Link should return test credentials instead of a live payment
106
- * credential.
107
- */
108
- test: boolean;
109
188
  /**
110
189
  * Wallet item key used to mint this card.
111
190
  */
@@ -152,8 +231,9 @@ export declare namespace CardVaultItemSpec {
152
231
  }
153
232
  }
154
233
  /**
155
- * AgentCard reusable card. Each checkout creates an approval-gated authorization
156
- * for spec.merchant / spec.amount. The card stays ready after each authorization.
234
+ * AgentCard reusable live payment card. Test-mode card creation is not supported.
235
+ * Each checkout creates an approval-gated authorization for spec.merchant /
236
+ * spec.amount. The card stays ready after each authorization.
157
237
  */
158
238
  interface AgentCardCardVaultItemSpec {
159
239
  /**
@@ -181,7 +261,14 @@ export type CardVaultItemState = CardVaultItemState.LinkCardState | CardVaultIte
181
261
  export declare namespace CardVaultItemState {
182
262
  interface LinkCardState {
183
263
  provider: 'link';
184
- status: 'requested' | 'pending_authorization' | 'ready' | 'consumed' | 'expired' | 'declined';
264
+ /**
265
+ * recovery_required means an original provider operation has an unresolved
266
+ * outcome. Do not retry, delete, or replace it. Known references may be observed
267
+ * safely, but unknown creation without an ID and uncertain card-material retrieval
268
+ * require manual reconciliation with the provider or support. There is no reset or
269
+ * caller-asserted reconciliation operation.
270
+ */
271
+ status: 'requested' | 'pending_authorization' | 'ready' | 'consumed' | 'expired' | 'declined' | 'recovery_required';
185
272
  aliases?: ItemsAPI.VaultCardAliases;
186
273
  domains?: Array<string>;
187
274
  masks?: LinkCardState.Masks;
@@ -196,7 +283,13 @@ export declare namespace CardVaultItemState {
196
283
  }
197
284
  interface AgentCardCardState {
198
285
  provider: 'agentcard';
199
- status: 'requested' | 'ready' | 'pending_approval' | 'degraded';
286
+ /**
287
+ * recovery_required means the original checkout outcome is unresolved. Do not
288
+ * retry, delete, or replace it. Known authorization IDs may be reconciled through
289
+ * provider observations; otherwise contact the provider or support for manual
290
+ * reconciliation. It does not mean declined or expired.
291
+ */
292
+ status: 'requested' | 'ready' | 'pending_approval' | 'degraded' | 'recovery_required';
200
293
  aliases?: ItemsAPI.VaultCardAliases;
201
294
  /**
202
295
  * The in-flight or most recent checkout authorization. Present while a checkout is
@@ -232,9 +325,12 @@ export declare namespace VaultItem {
232
325
  */
233
326
  key: string;
234
327
  /**
235
- * AgentCard wallet. Mode (sandbox vs live) is fixed by the deployment's AgentCard
236
- * credential; there is no per-item test flag. user_id may only reference a user
237
- * already enrolled by a wallet in this organization.
328
+ * AgentCard wallet. Omit provider_config to use Kernel-managed credentials, or
329
+ * select a customer-owned configuration. Mode (sandbox vs live) is determined by
330
+ * the selected credential; there is no per-item test flag. Without user_id,
331
+ * creation returns a hosted enrollment action and Kernel polls until the user
332
+ * connects. user_id may only reference a user already enrolled by a wallet in this
333
+ * organization under the same configuration.
238
334
  */
239
335
  spec: ItemsAPI.WalletVaultItemSpec;
240
336
  state: ItemsAPI.WalletVaultItemState;
@@ -281,8 +377,7 @@ export declare namespace VaultItem {
281
377
  */
282
378
  key: string;
283
379
  /**
284
- * AgentCard reusable card. Each checkout creates an approval-gated authorization
285
- * for spec.merchant / spec.amount. The card stays ready after each authorization.
380
+ * Live payment card. Test-mode card creation is not supported.
286
381
  */
287
382
  spec: ItemsAPI.CardVaultItemSpec;
288
383
  state: ItemsAPI.CardVaultItemState;
@@ -388,9 +483,12 @@ export declare namespace VaultPaymentMethod {
388
483
  }
389
484
  }
390
485
  /**
391
- * AgentCard wallet. Mode (sandbox vs live) is fixed by the deployment's AgentCard
392
- * credential; there is no per-item test flag. user_id may only reference a user
393
- * already enrolled by a wallet in this organization.
486
+ * AgentCard wallet. Omit provider_config to use Kernel-managed credentials, or
487
+ * select a customer-owned configuration. Mode (sandbox vs live) is determined by
488
+ * the selected credential; there is no per-item test flag. Without user_id,
489
+ * creation returns a hosted enrollment action and Kernel polls until the user
490
+ * connects. user_id may only reference a user already enrolled by a wallet in this
491
+ * organization under the same configuration.
394
492
  */
395
493
  export type WalletVaultItemSpec = WalletVaultItemSpec.LinkWalletVaultItemSpec | WalletVaultItemSpec.AgentCardWalletVaultItemSpec;
396
494
  export declare namespace WalletVaultItemSpec {
@@ -400,24 +498,62 @@ export declare namespace WalletVaultItemSpec {
400
498
  }
401
499
  namespace LinkWalletVaultItemSpec {
402
500
  interface Authorization {
403
- client: Authorization.Client;
501
+ client: Authorization.KernelManagedOAuthClient | Authorization.CustomerManagedOAuthClient;
404
502
  method: 'oauth';
405
503
  }
406
504
  namespace Authorization {
407
- interface Client {
505
+ interface KernelManagedOAuthClient {
408
506
  type: 'kernel_managed';
409
507
  }
508
+ interface CustomerManagedOAuthClient {
509
+ /**
510
+ * Select a provider config by ID or name. Responses return the ID. Renaming a
511
+ * config does not change existing wallet bindings; a wallet cannot switch to a
512
+ * different config after creation.
513
+ */
514
+ provider_config: CustomerManagedOAuthClient.ProviderConfig;
515
+ type: 'customer_managed';
516
+ }
517
+ namespace CustomerManagedOAuthClient {
518
+ /**
519
+ * Select a provider config by ID or name. Responses return the ID. Renaming a
520
+ * config does not change existing wallet bindings; a wallet cannot switch to a
521
+ * different config after creation.
522
+ */
523
+ interface ProviderConfig {
524
+ id?: string;
525
+ name?: string;
526
+ }
527
+ }
410
528
  }
411
529
  }
412
530
  /**
413
- * AgentCard wallet. Mode (sandbox vs live) is fixed by the deployment's AgentCard
414
- * credential; there is no per-item test flag. user_id may only reference a user
415
- * already enrolled by a wallet in this organization.
531
+ * AgentCard wallet. Omit provider_config to use Kernel-managed credentials, or
532
+ * select a customer-owned configuration. Mode (sandbox vs live) is determined by
533
+ * the selected credential; there is no per-item test flag. Without user_id,
534
+ * creation returns a hosted enrollment action and Kernel polls until the user
535
+ * connects. user_id may only reference a user already enrolled by a wallet in this
536
+ * organization under the same configuration.
416
537
  */
417
538
  interface AgentCardWalletVaultItemSpec {
418
539
  provider: 'agentcard';
540
+ /**
541
+ * Select an AgentCard configuration. The wallet's configuration cannot be changed
542
+ * after creation.
543
+ */
544
+ provider_config?: AgentCardWalletVaultItemSpec.ProviderConfig;
419
545
  user_id?: string;
420
546
  }
547
+ namespace AgentCardWalletVaultItemSpec {
548
+ /**
549
+ * Select an AgentCard configuration. The wallet's configuration cannot be changed
550
+ * after creation.
551
+ */
552
+ interface ProviderConfig {
553
+ id?: string;
554
+ name?: string;
555
+ }
556
+ }
421
557
  }
422
558
  export type WalletVaultItemState = WalletVaultItemState.LinkWalletState | WalletVaultItemState.AgentCardWalletState;
423
559
  export declare namespace WalletVaultItemState {
@@ -460,9 +596,7 @@ export interface ItemUpdateParams {
460
596
  */
461
597
  id_or_name: string;
462
598
  /**
463
- * Body param: AgentCard reusable card. Each checkout creates an approval-gated
464
- * authorization for spec.merchant / spec.amount. The card stays ready after each
465
- * authorization.
599
+ * Body param: Live payment card. Test-mode card creation is not supported.
466
600
  */
467
601
  spec: CardVaultItemSpec;
468
602
  }
@@ -501,25 +635,149 @@ export declare namespace ItemUpsertParams {
501
635
  */
502
636
  id_or_name: string;
503
637
  /**
504
- * Body param: AgentCard wallet. Mode (sandbox vs live) is fixed by the
505
- * deployment's AgentCard credential; there is no per-item test flag. user_id may
506
- * only reference a user already enrolled by a wallet in this organization.
638
+ * Body param: AgentCard wallet. Omit provider_config to use Kernel-managed
639
+ * credentials, or select a customer-owned configuration. Mode (sandbox vs live) is
640
+ * determined by the selected credential; there is no per-item test flag. Without
641
+ * user_id, creation returns a hosted enrollment action and Kernel polls until the
642
+ * user connects. user_id may only reference a user already enrolled by a wallet in
643
+ * this organization under the same configuration.
507
644
  */
508
- spec: WalletVaultItemSpec;
645
+ spec: WalletVaultItemRequest.LinkWalletVaultItemRequestSpec | WalletVaultItemRequest.AgentCardWalletVaultItemSpec;
509
646
  /**
510
647
  * Body param
511
648
  */
512
649
  type: 'wallet';
513
650
  }
651
+ namespace WalletVaultItemRequest {
652
+ interface LinkWalletVaultItemRequestSpec {
653
+ /**
654
+ * Kernel starts and completes the user's Link authorization flow.
655
+ */
656
+ authorization: LinkWalletVaultItemRequestSpec.KernelManagedLinkAuthorizationInput | LinkWalletVaultItemRequestSpec.ImportedLinkAuthorizationInput;
657
+ provider: 'link';
658
+ }
659
+ namespace LinkWalletVaultItemRequestSpec {
660
+ /**
661
+ * Kernel starts and completes the user's Link authorization flow.
662
+ */
663
+ interface KernelManagedLinkAuthorizationInput {
664
+ client: KernelManagedLinkAuthorizationInput.Client;
665
+ method: 'oauth';
666
+ }
667
+ namespace KernelManagedLinkAuthorizationInput {
668
+ interface Client {
669
+ type: 'kernel_managed';
670
+ }
671
+ }
672
+ /**
673
+ * The customer's backend completes Link OAuth and supplies the resulting tokens.
674
+ * For a new wallet, Kernel verifies the access token can access Link payment
675
+ * methods without consuming or rotating the refresh token. Valid access creates a
676
+ * wallet with state.status=connected. An expired, invalid, revoked, or
677
+ * insufficiently scoped access token returns 400 and no wallet is created. Refresh
678
+ * expired tokens in your backend before importing them. A failed import does not
679
+ * modify existing wallets. After successful import, Kernel owns subsequent
680
+ * refresh-token rotation; the customer must stop refreshing this grant. Import
681
+ * does not verify the refresh token: if it or the configured client credentials
682
+ * are rejected during a later refresh, the imported wallet becomes degraded. An
683
+ * unknown refresh outcome also leaves it degraded; Kernel does not retry a refresh
684
+ * token that may already have been consumed. There is no in-place reauthorization
685
+ * operation for an imported wallet. If this imported wallet's credentials become
686
+ * unusable, obtain a fresh Link OAuth grant in your backend and create a wallet
687
+ * under a NEW wallet key. Use the new wallet for NEW cards and payments, not to
688
+ * retry an old payment whose outcome is uncertain. This does not replace the old
689
+ * grant, rebind existing cards, or resolve their payment outcomes. Retain the old
690
+ * wallet and its cards while reconciling any uncertain payments with the provider
691
+ * or support. Do not repeat an uncertain payment on the new wallet, and do not
692
+ * treat deletion as evidence that it did not execute. Deletion of the old wallet
693
+ * can remain blocked by unresolved child cards. Repeating a create for the same
694
+ * item key and non-secret spec returns the existing wallet without replacing
695
+ * tokens, even if they have rotated or the wallet needs reconnection. ID and name
696
+ * references resolving to the same config are equivalent. A different config or
697
+ * non-secret spec returns 409. This create operation does not replace an existing
698
+ * grant.
699
+ */
700
+ interface ImportedLinkAuthorizationInput {
701
+ client: ImportedLinkAuthorizationInput.Client;
702
+ method: 'oauth';
703
+ /**
704
+ * Send the token pair from your backend. Both tokens must be from the same Link
705
+ * grant under the referenced client. Supply a currently valid access token. Kernel
706
+ * refreshes when needed after import and uses the expiry returned by Link for
707
+ * subsequent tokens. Tokens are never returned in wallet responses, events, or
708
+ * logs.
709
+ */
710
+ tokens: ImportedLinkAuthorizationInput.Tokens;
711
+ }
712
+ namespace ImportedLinkAuthorizationInput {
713
+ interface Client {
714
+ /**
715
+ * Select a provider config by ID or name. Responses return the ID. Renaming a
716
+ * config does not change existing wallet bindings; a wallet cannot switch to a
717
+ * different config after creation.
718
+ */
719
+ provider_config: Client.ProviderConfig;
720
+ type: 'customer_managed';
721
+ }
722
+ namespace Client {
723
+ /**
724
+ * Select a provider config by ID or name. Responses return the ID. Renaming a
725
+ * config does not change existing wallet bindings; a wallet cannot switch to a
726
+ * different config after creation.
727
+ */
728
+ interface ProviderConfig {
729
+ id?: string;
730
+ name?: string;
731
+ }
732
+ }
733
+ /**
734
+ * Send the token pair from your backend. Both tokens must be from the same Link
735
+ * grant under the referenced client. Supply a currently valid access token. Kernel
736
+ * refreshes when needed after import and uses the expiry returned by Link for
737
+ * subsequent tokens. Tokens are never returned in wallet responses, events, or
738
+ * logs.
739
+ */
740
+ interface Tokens {
741
+ access_token: string;
742
+ refresh_token: string;
743
+ }
744
+ }
745
+ }
746
+ /**
747
+ * AgentCard wallet. Omit provider_config to use Kernel-managed credentials, or
748
+ * select a customer-owned configuration. Mode (sandbox vs live) is determined by
749
+ * the selected credential; there is no per-item test flag. Without user_id,
750
+ * creation returns a hosted enrollment action and Kernel polls until the user
751
+ * connects. user_id may only reference a user already enrolled by a wallet in this
752
+ * organization under the same configuration.
753
+ */
754
+ interface AgentCardWalletVaultItemSpec {
755
+ provider: 'agentcard';
756
+ /**
757
+ * Select an AgentCard configuration. The wallet's configuration cannot be changed
758
+ * after creation.
759
+ */
760
+ provider_config?: AgentCardWalletVaultItemSpec.ProviderConfig;
761
+ user_id?: string;
762
+ }
763
+ namespace AgentCardWalletVaultItemSpec {
764
+ /**
765
+ * Select an AgentCard configuration. The wallet's configuration cannot be changed
766
+ * after creation.
767
+ */
768
+ interface ProviderConfig {
769
+ id?: string;
770
+ name?: string;
771
+ }
772
+ }
773
+ }
514
774
  interface CardVaultItemRequest {
515
775
  /**
516
776
  * Path param
517
777
  */
518
778
  id_or_name: string;
519
779
  /**
520
- * Body param: AgentCard reusable card. Each checkout creates an approval-gated
521
- * authorization for spec.merchant / spec.amount. The card stays ready after each
522
- * authorization.
780
+ * Body param: Live payment card. Test-mode card creation is not supported.
523
781
  */
524
782
  spec: CardVaultItemSpec;
525
783
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"items.d.ts","sourceRoot":"","sources":["../../src/resources/vaults/items.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;OAMG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAKlG;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAK9F;;OAEG;IACH,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,gBAAgB,CAAC;IAI9E;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;IAQzF;;OAEG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,kBAAkB,CAAC;IAKvG;;;;OAIG;IACH,gBAAgB,CACd,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,0BAA0B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,SAAS,CAAC;IAKxB;;OAEG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GG;YACH,eAAe,CAAC,EAAE,4BAA4B,CAAC,cAAc,CAAC;YAE9D,OAAO,CAAC,EAAE,MAAM,CAAC;SAClB;QAED,UAAiB,4BAA4B,CAAC;YAC5C;;;eAGG;YACH,UAAiB,cAAc;gBAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;gBAEZ,IAAI,CAAC,EAAE,MAAM,CAAC;aACf;SACF;KACF;IAED,UAAiB,oBAAoB;QACnC;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,IAAI,EAAE,iBAAiB,CAAC;QAExB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;KACd;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;CACH"}
@@ -12,13 +12,44 @@ class Items extends resource_1.APIResource {
12
12
  * description before using it. Expanded data is fetched from the provider and is
13
13
  * not persisted in the vault item. Requesting an unavailable expansion returns 409
14
14
  * instead of a partial item.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const vaultItem = await client.vaults.items.retrieve('x', {
19
+ * id_or_name: 'id_or_name',
20
+ * });
21
+ * ```
15
22
  */
16
23
  retrieve(key, params, options) {
17
24
  const { id_or_name, ...query } = params;
18
25
  return this._client.get((0, path_1.path) `/vaults/${id_or_name}/items/${key}`, { query, ...options });
19
26
  }
20
27
  /**
21
- * Update a card specification before or between authorizations
28
+ * Requested cards accept a replacement specification. Pending issuance requests
29
+ * may update provider-supported fields on their existing request, subject to
30
+ * atomic provider approval checks; omitted optional fields remain unchanged and
31
+ * explicit empty lists clear them. Wallet/provider binding and unsupported fields
32
+ * cannot change after authorization starts. An uncertain update enters
33
+ * recovery_required and must not be retried. Checkout cards may be edited between
34
+ * authorizations.
35
+ *
36
+ * @example
37
+ * ```ts
38
+ * const vaultItem = await client.vaults.items.update('x', {
39
+ * id_or_name: 'id_or_name',
40
+ * spec: {
41
+ * provider: 'link',
42
+ * wallet: 'link-wallet',
43
+ * payment_method_id: 'pm_example',
44
+ * amount: 3000,
45
+ * currency: 'usd',
46
+ * merchant_name: 'Example Store',
47
+ * merchant_url: 'https://store.example.com',
48
+ * context:
49
+ * 'The order total changed to USD 30.00 including shipping and taxes for one notebook. Update this unapproved request rather than creating a second payment.',
50
+ * },
51
+ * });
52
+ * ```
22
53
  */
23
54
  update(key, params, options) {
24
55
  const { id_or_name, ...body } = params;
@@ -26,12 +57,28 @@ class Items extends resource_1.APIResource {
26
57
  }
27
58
  /**
28
59
  * List vault items without secret values
60
+ *
61
+ * @example
62
+ * ```ts
63
+ * const vaultItems = await client.vaults.items.list(
64
+ * 'id_or_name',
65
+ * );
66
+ * ```
29
67
  */
30
68
  list(idOrName, options) {
31
69
  return this._client.get((0, path_1.path) `/vaults/${idOrName}/items`, options);
32
70
  }
33
71
  /**
34
- * Delete a vault item and invalidate its secret value
72
+ * Unresolved payment operations block deletion, including operations on child
73
+ * cards of a wallet. Reconcile the original attempt with the provider or support
74
+ * first; deleting or recreating an item is not proof that a payment did not occur.
75
+ *
76
+ * @example
77
+ * ```ts
78
+ * await client.vaults.items.delete('x', {
79
+ * id_or_name: 'id_or_name',
80
+ * });
81
+ * ```
35
82
  */
36
83
  delete(key, params, options) {
37
84
  const { id_or_name } = params;
@@ -42,6 +89,14 @@ class Items extends resource_1.APIResource {
42
89
  }
43
90
  /**
44
91
  * List immutable audit events for a vault item
92
+ *
93
+ * @example
94
+ * ```ts
95
+ * const vaultItemEvents = await client.vaults.items.events(
96
+ * 'key',
97
+ * { id_or_name: 'id_or_name' },
98
+ * );
99
+ * ```
45
100
  */
46
101
  events(key, params, options) {
47
102
  const { id_or_name, ...query } = params;
@@ -50,14 +105,41 @@ class Items extends resource_1.APIResource {
50
105
  /**
51
106
  * Retrieve the item first and invoke only an operation listed in
52
107
  * `available_operations`, following its natural-language description. Operations
53
- * may call an external provider and can return the item's updated state.
108
+ * may call an external provider and return updated state. Link cards advertise
109
+ * authorize. AgentCard cards are created with PUT and request approval when their
110
+ * aliases are used at checkout; they do not expose this operation. If
111
+ * spend-request creation is rate limited, returns HTTP 429 with code
112
+ * `spend_request_rate_limited`; stop and back off before retrying.
113
+ *
114
+ * @example
115
+ * ```ts
116
+ * const vaultItem =
117
+ * await client.vaults.items.performOperation('key', {
118
+ * id_or_name: 'id_or_name',
119
+ * type: 'authorize',
120
+ * });
121
+ * ```
54
122
  */
55
123
  performOperation(key, params, options) {
56
124
  const { id_or_name, ...body } = params;
57
125
  return this._client.post((0, path_1.path) `/vaults/${id_or_name}/items/${key}/operations`, { body, ...options });
58
126
  }
59
127
  /**
60
- * Create or retrieve an identical vault item by immutable key
128
+ * Create an item under a key unique within its vault, or retrieve the existing
129
+ * item when its specification matches. An identical card PUT returns the existing
130
+ * card in any lifecycle state without polling the provider, reauthorizing,
131
+ * replacing aliases, or resetting recovery. Conflicting specifications return 409.
132
+ * Provider-specific authorization requirements and retry behavior are described in
133
+ * the item's request schema.
134
+ *
135
+ * @example
136
+ * ```ts
137
+ * const vaultItem = await client.vaults.items.upsert('x', {
138
+ * id_or_name: 'id_or_name',
139
+ * spec: { provider: 'link' },
140
+ * type: 'card',
141
+ * });
142
+ * ```
61
143
  */
62
144
  upsert(key, params, options) {
63
145
  const { id_or_name, ...body } = params;