@onkernel/sdk 0.126.0 → 0.128.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.
- package/CHANGELOG.md +24 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/browser-pools.d.mts +19 -5
- package/resources/browser-pools.d.mts.map +1 -1
- package/resources/browser-pools.d.ts +19 -5
- package/resources/browser-pools.d.ts.map +1 -1
- package/resources/browsers/browsers.d.mts +130 -5
- package/resources/browsers/browsers.d.mts.map +1 -1
- package/resources/browsers/browsers.d.ts +130 -5
- package/resources/browsers/browsers.d.ts.map +1 -1
- package/resources/browsers/browsers.js.map +1 -1
- package/resources/browsers/browsers.mjs.map +1 -1
- package/resources/browsers/index.d.mts +1 -1
- package/resources/browsers/index.d.mts.map +1 -1
- package/resources/browsers/index.d.ts +1 -1
- package/resources/browsers/index.d.ts.map +1 -1
- package/resources/browsers/index.js.map +1 -1
- package/resources/browsers/index.mjs.map +1 -1
- package/resources/browsers/telemetry.d.mts +14 -6
- package/resources/browsers/telemetry.d.mts.map +1 -1
- package/resources/browsers/telemetry.d.ts +14 -6
- package/resources/browsers/telemetry.d.ts.map +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invocations.d.mts +4 -0
- package/resources/invocations.d.mts.map +1 -1
- package/resources/invocations.d.ts +4 -0
- package/resources/invocations.d.ts.map +1 -1
- package/resources/proxies.d.mts +14 -13
- package/resources/proxies.d.mts.map +1 -1
- package/resources/proxies.d.ts +14 -13
- package/resources/proxies.d.ts.map +1 -1
- package/resources/proxies.js +18 -17
- package/resources/proxies.js.map +1 -1
- package/resources/proxies.mjs +18 -17
- package/resources/proxies.mjs.map +1 -1
- package/resources/vaults/index.d.mts +1 -1
- package/resources/vaults/index.d.mts.map +1 -1
- package/resources/vaults/index.d.ts +1 -1
- package/resources/vaults/index.d.ts.map +1 -1
- package/resources/vaults/index.js.map +1 -1
- package/resources/vaults/index.mjs.map +1 -1
- package/resources/vaults/items.d.mts +292 -154
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +292 -154
- package/resources/vaults/items.d.ts.map +1 -1
- package/resources/vaults/items.js +13 -9
- package/resources/vaults/items.js.map +1 -1
- package/resources/vaults/items.mjs +13 -9
- package/resources/vaults/items.mjs.map +1 -1
- package/resources/vaults/vaults.d.mts +2 -2
- package/resources/vaults/vaults.d.mts.map +1 -1
- package/resources/vaults/vaults.d.ts +2 -2
- package/resources/vaults/vaults.d.ts.map +1 -1
- package/resources/vaults/vaults.js.map +1 -1
- package/resources/vaults/vaults.mjs.map +1 -1
- package/src/client.ts +10 -0
- package/src/resources/browser-pools.ts +21 -5
- package/src/resources/browsers/browsers.ts +155 -4
- package/src/resources/browsers/index.ts +5 -0
- package/src/resources/browsers/telemetry.ts +16 -3
- package/src/resources/index.ts +5 -0
- package/src/resources/invocations.ts +5 -0
- package/src/resources/proxies.ts +22 -17
- package/src/resources/vaults/index.ts +1 -0
- package/src/resources/vaults/items.ts +299 -154
- package/src/resources/vaults/vaults.ts +2 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -33,10 +33,10 @@ export declare class Items extends APIResource {
|
|
|
33
33
|
* request, subject to atomic provider approval checks; omitted optional fields
|
|
34
34
|
* remain unchanged and explicit empty lists clear them. Wallet/provider binding
|
|
35
35
|
* and unsupported fields cannot change after authorization starts. An uncertain
|
|
36
|
-
* update enters recovery_required
|
|
37
|
-
*
|
|
38
|
-
* page_url cannot be changed; delete it
|
|
39
|
-
* details.
|
|
36
|
+
* update enters recovery_required; delete the card and create a new one rather
|
|
37
|
+
* than retrying the update. Checkout cards may be edited between authorizations. A
|
|
38
|
+
* Link card authorized with browser_id and page_url cannot be changed; delete it
|
|
39
|
+
* and create a new card with the updated details.
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
42
|
* ```ts
|
|
@@ -75,11 +75,12 @@ export declare class Items extends APIResource {
|
|
|
75
75
|
* Unresolved payment operations normally block deletion, including operations on
|
|
76
76
|
* child cards of a wallet. Deleting a connected Kernel wallet first blocks new
|
|
77
77
|
* payments on it, then removes its enrolled card. If that fails, the wallet is
|
|
78
|
-
* kept and keeps refusing payments; retry the deletion.
|
|
79
|
-
* recovery_required
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
78
|
+
* kept and keeps refusing payments; retry the deletion. A Link or Kernel card in
|
|
79
|
+
* recovery_required for issuance, or an AgentCard card in recovery_required whose
|
|
80
|
+
* checkout create response returned no authorization ID, may be explicitly
|
|
81
|
+
* abandoned by deleting that card directly; deleting its wallet or vault remains
|
|
82
|
+
* blocked until the card is deleted. Deleting or recreating an item is not proof
|
|
83
|
+
* that a payment did not occur. Deleting a managed auth credential item leaves the
|
|
83
84
|
* connection and its saved credential unchanged.
|
|
84
85
|
*
|
|
85
86
|
* @example
|
|
@@ -118,6 +119,9 @@ export declare class Items extends APIResource {
|
|
|
118
119
|
* return HTTP 429 and retain the card item; stop, back off, and retry the same
|
|
119
120
|
* authorize operation.
|
|
120
121
|
*
|
|
122
|
+
* Ready Kernel cards advertise fill. Fill delivers card details for a few minutes;
|
|
123
|
+
* submit checkout promptly after filling. A repeated fill is safe.
|
|
124
|
+
*
|
|
121
125
|
* Fill returns a value-free execution result. Validation failures before writing
|
|
122
126
|
* return 400 (invalid request or targets), 403 (access or destination denied), 404
|
|
123
127
|
* (resource not found), or 409 (item or browser not ready). Once writing starts,
|
|
@@ -275,9 +279,7 @@ export declare namespace CardVaultItemSpec {
|
|
|
275
279
|
*/
|
|
276
280
|
interface LinkCardVaultItemSpec {
|
|
277
281
|
/**
|
|
278
|
-
* Integer amount in minor currency units
|
|
279
|
-
* 500000; virtual-card execution permits at most 50000. Authorization rejects a
|
|
280
|
-
* larger amount when the checkout requires a virtual card.
|
|
282
|
+
* Integer amount in minor currency units, at most 50000.
|
|
281
283
|
*/
|
|
282
284
|
amount: number;
|
|
283
285
|
context: string;
|
|
@@ -295,7 +297,6 @@ export declare namespace CardVaultItemSpec {
|
|
|
295
297
|
* Connected Link wallet item key.
|
|
296
298
|
*/
|
|
297
299
|
wallet: string;
|
|
298
|
-
expires_at?: number;
|
|
299
300
|
line_items?: Array<LinkCardVaultItemSpec.LineItem>;
|
|
300
301
|
metadata?: {
|
|
301
302
|
[key: string]: string;
|
|
@@ -389,11 +390,12 @@ export declare namespace CardVaultItemState {
|
|
|
389
390
|
interface LinkCardState {
|
|
390
391
|
provider: 'link';
|
|
391
392
|
/**
|
|
392
|
-
* recovery_required means an original provider operation has an unresolved
|
|
393
|
-
*
|
|
394
|
-
*
|
|
395
|
-
*
|
|
396
|
-
*
|
|
393
|
+
* recovery_required means an original provider operation has an unresolved outcome
|
|
394
|
+
* and the card cannot be used. Reads keep observing a known provider request and
|
|
395
|
+
* may clear the recovery. To continue, delete this card and create a new one;
|
|
396
|
+
* deleting cancels the original request when its ID is known and keeps the
|
|
397
|
+
* recovery evidence. The user may see an approval request for the original card
|
|
398
|
+
* and should approve only the new one.
|
|
397
399
|
*/
|
|
398
400
|
status: 'requested' | 'pending_authorization' | 'ready' | 'consumed' | 'expired' | 'declined' | 'recovery_required';
|
|
399
401
|
domains?: Array<string>;
|
|
@@ -457,16 +459,16 @@ export declare namespace CardVaultItemState {
|
|
|
457
459
|
/**
|
|
458
460
|
* Return the credential item with its collection action. Supported for ready and
|
|
459
461
|
* pending_collection credential items. Always render the same form from every
|
|
460
|
-
* form-supported field; totp fields have no form input and are
|
|
461
|
-
* caller-selected field subsets or form overrides are accepted. Reuse
|
|
462
|
-
* Kernel-hosted session or renew an expired session atomically.
|
|
463
|
-
* forms use their own backend and ordinary item GET/PATCH. Opening
|
|
464
|
-
* not clear values or change readiness or item version. To observe
|
|
465
|
-
* ready item, record its version and poll GET without wait until the
|
|
466
|
-
* changes, then reconcile the returned state. Version changes may also
|
|
467
|
-
* PATCH; they do not identify a particular form submission.
|
|
468
|
-
* use their own submission callback, including for unchanged
|
|
469
|
-
* parameter waits for readiness, not edits.
|
|
462
|
+
* form-supported field; totp and passkey fields have no form input and are
|
|
463
|
+
* omitted. No caller-selected field subsets or form overrides are accepted. Reuse
|
|
464
|
+
* an active Kernel-hosted session or renew an expired session atomically.
|
|
465
|
+
* Customer-hosted forms use their own backend and ordinary item GET/PATCH. Opening
|
|
466
|
+
* the form does not clear values or change readiness or item version. To observe
|
|
467
|
+
* edits on a ready item, record its version and poll GET without wait until the
|
|
468
|
+
* version changes, then reconcile the returned state. Version changes may also
|
|
469
|
+
* come from PATCH; they do not identify a particular form submission.
|
|
470
|
+
* Customer-hosted apps use their own submission callback, including for unchanged
|
|
471
|
+
* forms. The wait parameter waits for readiness, not edits.
|
|
470
472
|
*/
|
|
471
473
|
export interface CollectVaultItemOperationRequest {
|
|
472
474
|
type: 'collect';
|
|
@@ -540,30 +542,31 @@ export interface CredentialAccountVaultItemRequest {
|
|
|
540
542
|
}
|
|
541
543
|
/**
|
|
542
544
|
* One schema-derived form for the item, available in ready or pending_collection
|
|
543
|
-
* state. Render every form-supported field as editable; omit totp
|
|
544
|
-
* preserve their stored
|
|
545
|
-
* sensitive values to be preserved or replaced without ever revealing
|
|
546
|
-
* field subsets or per-request form configuration exist. Validate
|
|
547
|
-
* against the resulting values, including preserved secrets.
|
|
548
|
-
* only, using the version used to render the form. Scoped
|
|
549
|
-
* rejects totp edits;
|
|
550
|
-
* Customer forms likewise omit
|
|
551
|
-
* successful hosted submission increments the
|
|
552
|
-
* the session; an empty edit may complete
|
|
553
|
-
* customer form uses PATCH for changed
|
|
554
|
-
* when nothing changed. Kernel-hosted
|
|
555
|
-
* and are bound to the item version.
|
|
556
|
-
* deleted-item sessions cannot submit.
|
|
557
|
-
* active sessions for ready or pending
|
|
558
|
-
* action. A ready item with no active
|
|
559
|
-
*
|
|
560
|
-
* values nor item version. An expired link
|
|
561
|
-
* handles its collection protocol; callers
|
|
562
|
-
* extract or submit its token through the
|
|
563
|
-
* use @onkernel/vault-react and an
|
|
564
|
-
* ordinary item GET/PATCH API. Kernel
|
|
565
|
-
*
|
|
566
|
-
* secrets and exclude them from logs,
|
|
545
|
+
* state. Render every form-supported field as editable; omit totp and passkey
|
|
546
|
+
* fields and preserve their stored values. Prefill non-sensitive values, and allow
|
|
547
|
+
* existing sensitive values to be preserved or replaced without ever revealing
|
|
548
|
+
* them. No field subsets or per-request form configuration exist. Validate
|
|
549
|
+
* required fields against the resulting values, including preserved secrets.
|
|
550
|
+
* Submit changed values only, using the version used to render the form. Scoped
|
|
551
|
+
* hosted submission rejects totp and passkey edits; those writes require the
|
|
552
|
+
* ordinary authenticated item API. Customer forms likewise omit them from their
|
|
553
|
+
* payloads. Save edits atomically. A successful hosted submission increments the
|
|
554
|
+
* version, marks ready, and consumes the session; an empty edit may complete
|
|
555
|
+
* collection while preserving values. A customer form uses PATCH for changed
|
|
556
|
+
* values and does not send an empty PATCH when nothing changed. Kernel-hosted
|
|
557
|
+
* bearer sessions require no Kernel account and are bound to the item version.
|
|
558
|
+
* Expired, superseded, consumed, or deleted-item sessions cannot submit.
|
|
559
|
+
* Authenticated item GET renews expired active sessions for ready or pending
|
|
560
|
+
* items; pending items always receive an action. A ready item with no active
|
|
561
|
+
* session omits the action until collect is invoked. Concurrent renewals return
|
|
562
|
+
* the same link. Renewal changes neither values nor item version. An expired link
|
|
563
|
+
* cannot renew itself. The hosted form handles its collection protocol; callers
|
|
564
|
+
* only open the returned URL and do not extract or submit its token through the
|
|
565
|
+
* public API. For customer-hosted forms, use @onkernel/vault-react and an
|
|
566
|
+
* authenticated customer backend calling the ordinary item GET/PATCH API. Kernel
|
|
567
|
+
* does not store customer collection URLs or authenticate the customer's end
|
|
568
|
+
* users. Treat URLs and submitted values as secrets and exclude them from logs,
|
|
569
|
+
* traces, and errors.
|
|
567
570
|
*/
|
|
568
571
|
export interface CredentialCollectionAction {
|
|
569
572
|
/**
|
|
@@ -593,14 +596,52 @@ export interface CredentialVaultFieldDefinition {
|
|
|
593
596
|
*/
|
|
594
597
|
sensitive: boolean;
|
|
595
598
|
/**
|
|
596
|
-
* Text, email, and password have form inputs; totp
|
|
597
|
-
* both Kernel-hosted and customer React forms. Password
|
|
598
|
-
* sensitive. A totp value is an RFC 4648 Base32 generator seed
|
|
599
|
-
* optional trailing padding), not an otpauth URI or current
|
|
600
|
-
* or empty decoded seeds. Browser fill generates an RFC 6238
|
|
601
|
-
* time using HMAC-SHA1, 6 digits, and a 30-second period.
|
|
602
|
-
* never fill the seed. Custom algorithms, digits, periods,
|
|
603
|
-
* unsupported.
|
|
599
|
+
* Text, email, and password have form inputs; totp and passkey do not and are
|
|
600
|
+
* omitted from both Kernel-hosted and customer React forms. Password, totp, and
|
|
601
|
+
* passkey must be sensitive. A totp value is an RFC 4648 Base32 generator seed
|
|
602
|
+
* (case-insensitive, optional trailing padding), not an otpauth URI or current
|
|
603
|
+
* code. Reject invalid or empty decoded seeds. Browser fill generates an RFC 6238
|
|
604
|
+
* code at execution time using HMAC-SHA1, 6 digits, and a 30-second period.
|
|
605
|
+
* Preserve leading zeros; never fill the seed. Custom algorithms, digits, periods,
|
|
606
|
+
* and form enrollment are unsupported. A passkey value is a JSON-encoded FIDO
|
|
607
|
+
* Credential Exchange Format passkey object with unpadded base64url
|
|
608
|
+
* `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
|
|
609
|
+
* private key), a lowercase `rpId` domain, and optional `username` and
|
|
610
|
+
* `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
|
|
611
|
+
* pages.
|
|
612
|
+
*/
|
|
613
|
+
type: CredentialVaultFieldType;
|
|
614
|
+
/**
|
|
615
|
+
* Optional human-readable display label. It is returned as non-secret metadata and
|
|
616
|
+
* never affects value keys, updates, or browser fills. Use single-line, trimmed
|
|
617
|
+
* display text without control or formatting characters. The server enforces a
|
|
618
|
+
* 128-byte UTF-8 limit.
|
|
619
|
+
*/
|
|
620
|
+
label?: string;
|
|
621
|
+
}
|
|
622
|
+
/**
|
|
623
|
+
* A field definition without a value. Field updates add fields with this shape and
|
|
624
|
+
* set their values in `fields`.
|
|
625
|
+
*/
|
|
626
|
+
export interface CredentialVaultFieldDefinitionInput {
|
|
627
|
+
/**
|
|
628
|
+
* Unique stable field name used to key values, updates, and browser fills.
|
|
629
|
+
*/
|
|
630
|
+
name: string;
|
|
631
|
+
/**
|
|
632
|
+
* Text, email, and password have form inputs; totp and passkey do not and are
|
|
633
|
+
* omitted from both Kernel-hosted and customer React forms. Password, totp, and
|
|
634
|
+
* passkey must be sensitive. A totp value is an RFC 4648 Base32 generator seed
|
|
635
|
+
* (case-insensitive, optional trailing padding), not an otpauth URI or current
|
|
636
|
+
* code. Reject invalid or empty decoded seeds. Browser fill generates an RFC 6238
|
|
637
|
+
* code at execution time using HMAC-SHA1, 6 digits, and a 30-second period.
|
|
638
|
+
* Preserve leading zeros; never fill the seed. Custom algorithms, digits, periods,
|
|
639
|
+
* and form enrollment are unsupported. A passkey value is a JSON-encoded FIDO
|
|
640
|
+
* Credential Exchange Format passkey object with unpadded base64url
|
|
641
|
+
* `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
|
|
642
|
+
* private key), a lowercase `rpId` domain, and optional `username` and
|
|
643
|
+
* `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
|
|
644
|
+
* pages.
|
|
604
645
|
*/
|
|
605
646
|
type: CredentialVaultFieldType;
|
|
606
647
|
/**
|
|
@@ -610,6 +651,15 @@ export interface CredentialVaultFieldDefinition {
|
|
|
610
651
|
* 128-byte UTF-8 limit.
|
|
611
652
|
*/
|
|
612
653
|
label?: string;
|
|
654
|
+
required?: boolean;
|
|
655
|
+
/**
|
|
656
|
+
* Set false explicitly for ordinary usernames, email addresses, and other
|
|
657
|
+
* non-secret identifiers. Reserve true for secrets such as passwords, API tokens,
|
|
658
|
+
* and TOTP seeds. Password, totp, and passkey fields must be true. Omission
|
|
659
|
+
* defaults to true for safety; do not rely on that default for every field. False
|
|
660
|
+
* permits API reads and form prefilling.
|
|
661
|
+
*/
|
|
662
|
+
sensitive?: boolean;
|
|
613
663
|
}
|
|
614
664
|
export interface CredentialVaultFieldInput {
|
|
615
665
|
/**
|
|
@@ -617,14 +667,19 @@ export interface CredentialVaultFieldInput {
|
|
|
617
667
|
*/
|
|
618
668
|
name: string;
|
|
619
669
|
/**
|
|
620
|
-
* Text, email, and password have form inputs; totp
|
|
621
|
-
* both Kernel-hosted and customer React forms. Password
|
|
622
|
-
* sensitive. A totp value is an RFC 4648 Base32 generator seed
|
|
623
|
-
* optional trailing padding), not an otpauth URI or current
|
|
624
|
-
* or empty decoded seeds. Browser fill generates an RFC 6238
|
|
625
|
-
* time using HMAC-SHA1, 6 digits, and a 30-second period.
|
|
626
|
-
* never fill the seed. Custom algorithms, digits, periods,
|
|
627
|
-
* unsupported.
|
|
670
|
+
* Text, email, and password have form inputs; totp and passkey do not and are
|
|
671
|
+
* omitted from both Kernel-hosted and customer React forms. Password, totp, and
|
|
672
|
+
* passkey must be sensitive. A totp value is an RFC 4648 Base32 generator seed
|
|
673
|
+
* (case-insensitive, optional trailing padding), not an otpauth URI or current
|
|
674
|
+
* code. Reject invalid or empty decoded seeds. Browser fill generates an RFC 6238
|
|
675
|
+
* code at execution time using HMAC-SHA1, 6 digits, and a 30-second period.
|
|
676
|
+
* Preserve leading zeros; never fill the seed. Custom algorithms, digits, periods,
|
|
677
|
+
* and form enrollment are unsupported. A passkey value is a JSON-encoded FIDO
|
|
678
|
+
* Credential Exchange Format passkey object with unpadded base64url
|
|
679
|
+
* `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
|
|
680
|
+
* private key), a lowercase `rpId` domain, and optional `username` and
|
|
681
|
+
* `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
|
|
682
|
+
* pages.
|
|
628
683
|
*/
|
|
629
684
|
type: CredentialVaultFieldType;
|
|
630
685
|
/**
|
|
@@ -653,9 +708,9 @@ export interface CredentialVaultFieldInput {
|
|
|
653
708
|
/**
|
|
654
709
|
* Set false explicitly for ordinary usernames, email addresses, and other
|
|
655
710
|
* non-secret identifiers. Reserve true for secrets such as passwords, API tokens,
|
|
656
|
-
* and TOTP seeds. Password and
|
|
657
|
-
* for safety; do not rely on that default for every field. False
|
|
658
|
-
* and form prefilling.
|
|
711
|
+
* and TOTP seeds. Password, totp, and passkey fields must be true. Omission
|
|
712
|
+
* defaults to true for safety; do not rely on that default for every field. False
|
|
713
|
+
* permits API reads and form prefilling.
|
|
659
714
|
*/
|
|
660
715
|
sensitive?: boolean;
|
|
661
716
|
/**
|
|
@@ -677,16 +732,21 @@ export interface CredentialVaultFieldState {
|
|
|
677
732
|
value?: string;
|
|
678
733
|
}
|
|
679
734
|
/**
|
|
680
|
-
* Text, email, and password have form inputs; totp
|
|
681
|
-
* both Kernel-hosted and customer React forms. Password
|
|
682
|
-
* sensitive. A totp value is an RFC 4648 Base32 generator seed
|
|
683
|
-
* optional trailing padding), not an otpauth URI or current
|
|
684
|
-
* or empty decoded seeds. Browser fill generates an RFC 6238
|
|
685
|
-
* time using HMAC-SHA1, 6 digits, and a 30-second period.
|
|
686
|
-
* never fill the seed. Custom algorithms, digits, periods,
|
|
687
|
-
* unsupported.
|
|
735
|
+
* Text, email, and password have form inputs; totp and passkey do not and are
|
|
736
|
+
* omitted from both Kernel-hosted and customer React forms. Password, totp, and
|
|
737
|
+
* passkey must be sensitive. A totp value is an RFC 4648 Base32 generator seed
|
|
738
|
+
* (case-insensitive, optional trailing padding), not an otpauth URI or current
|
|
739
|
+
* code. Reject invalid or empty decoded seeds. Browser fill generates an RFC 6238
|
|
740
|
+
* code at execution time using HMAC-SHA1, 6 digits, and a 30-second period.
|
|
741
|
+
* Preserve leading zeros; never fill the seed. Custom algorithms, digits, periods,
|
|
742
|
+
* and form enrollment are unsupported. A passkey value is a JSON-encoded FIDO
|
|
743
|
+
* Credential Exchange Format passkey object with unpadded base64url
|
|
744
|
+
* `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
|
|
745
|
+
* private key), a lowercase `rpId` domain, and optional `username` and
|
|
746
|
+
* `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
|
|
747
|
+
* pages.
|
|
688
748
|
*/
|
|
689
|
-
export type CredentialVaultFieldType = 'text' | 'email' | 'password' | 'totp';
|
|
749
|
+
export type CredentialVaultFieldType = 'text' | 'email' | 'password' | 'totp' | 'passkey';
|
|
690
750
|
/**
|
|
691
751
|
* Set exactly one of value or encrypted_value. Use value unless the update comes
|
|
692
752
|
* from your own credential collection web app that encrypts values in the browser;
|
|
@@ -713,8 +773,9 @@ export interface CredentialVaultFieldUpdate {
|
|
|
713
773
|
* immediately clear the stored value. Clearing a required form-supported field
|
|
714
774
|
* reopens collection; clearing an optional field does not prevent readiness.
|
|
715
775
|
* Values must satisfy the declared field type. For totp, value is the generator
|
|
716
|
-
* seed, never a current code.
|
|
717
|
-
*
|
|
776
|
+
* seed, never a current code. For passkey, value is the JSON-encoded CXF passkey
|
|
777
|
+
* object. Clearing a required totp or passkey field returns 400 because it cannot
|
|
778
|
+
* be collected in a form.
|
|
718
779
|
*/
|
|
719
780
|
value?: string | null;
|
|
720
781
|
}
|
|
@@ -750,30 +811,31 @@ export interface CredentialVaultItem {
|
|
|
750
811
|
version: number;
|
|
751
812
|
/**
|
|
752
813
|
* One schema-derived form for the item, available in ready or pending_collection
|
|
753
|
-
* state. Render every form-supported field as editable; omit totp
|
|
754
|
-
* preserve their stored
|
|
755
|
-
* sensitive values to be preserved or replaced without ever revealing
|
|
756
|
-
* field subsets or per-request form configuration exist. Validate
|
|
757
|
-
* against the resulting values, including preserved secrets.
|
|
758
|
-
* only, using the version used to render the form. Scoped
|
|
759
|
-
* rejects totp edits;
|
|
760
|
-
* Customer forms likewise omit
|
|
761
|
-
* successful hosted submission increments the
|
|
762
|
-
* the session; an empty edit may complete
|
|
763
|
-
* customer form uses PATCH for changed
|
|
764
|
-
* when nothing changed. Kernel-hosted
|
|
765
|
-
* and are bound to the item version.
|
|
766
|
-
* deleted-item sessions cannot submit.
|
|
767
|
-
* active sessions for ready or pending
|
|
768
|
-
* action. A ready item with no active
|
|
769
|
-
*
|
|
770
|
-
* values nor item version. An expired link
|
|
771
|
-
* handles its collection protocol; callers
|
|
772
|
-
* extract or submit its token through the
|
|
773
|
-
* use @onkernel/vault-react and an
|
|
774
|
-
* ordinary item GET/PATCH API. Kernel
|
|
775
|
-
*
|
|
776
|
-
* secrets and exclude them from logs,
|
|
814
|
+
* state. Render every form-supported field as editable; omit totp and passkey
|
|
815
|
+
* fields and preserve their stored values. Prefill non-sensitive values, and allow
|
|
816
|
+
* existing sensitive values to be preserved or replaced without ever revealing
|
|
817
|
+
* them. No field subsets or per-request form configuration exist. Validate
|
|
818
|
+
* required fields against the resulting values, including preserved secrets.
|
|
819
|
+
* Submit changed values only, using the version used to render the form. Scoped
|
|
820
|
+
* hosted submission rejects totp and passkey edits; those writes require the
|
|
821
|
+
* ordinary authenticated item API. Customer forms likewise omit them from their
|
|
822
|
+
* payloads. Save edits atomically. A successful hosted submission increments the
|
|
823
|
+
* version, marks ready, and consumes the session; an empty edit may complete
|
|
824
|
+
* collection while preserving values. A customer form uses PATCH for changed
|
|
825
|
+
* values and does not send an empty PATCH when nothing changed. Kernel-hosted
|
|
826
|
+
* bearer sessions require no Kernel account and are bound to the item version.
|
|
827
|
+
* Expired, superseded, consumed, or deleted-item sessions cannot submit.
|
|
828
|
+
* Authenticated item GET renews expired active sessions for ready or pending
|
|
829
|
+
* items; pending items always receive an action. A ready item with no active
|
|
830
|
+
* session omits the action until collect is invoked. Concurrent renewals return
|
|
831
|
+
* the same link. Renewal changes neither values nor item version. An expired link
|
|
832
|
+
* cannot renew itself. The hosted form handles its collection protocol; callers
|
|
833
|
+
* only open the returned URL and do not extract or submit its token through the
|
|
834
|
+
* public API. For customer-hosted forms, use @onkernel/vault-react and an
|
|
835
|
+
* authenticated customer backend calling the ordinary item GET/PATCH API. Kernel
|
|
836
|
+
* does not store customer collection URLs or authenticate the customer's end
|
|
837
|
+
* users. Treat URLs and submitted values as secrets and exclude them from logs,
|
|
838
|
+
* traces, and errors.
|
|
777
839
|
*/
|
|
778
840
|
action?: CredentialCollectionAction | CredentialVaultItem.OnePasswordAccessApprovalAction;
|
|
779
841
|
}
|
|
@@ -849,6 +911,13 @@ export type CredentialVaultItemSpec = KernelCredentialVaultItemSpec | OnePasswor
|
|
|
849
911
|
*/
|
|
850
912
|
export type CredentialVaultItemSpecInput = KernelCredentialVaultItemSpecInput | OnePasswordCredentialVaultItemSpecInput | ManagedAuthCredentialVaultItemSpecInput;
|
|
851
913
|
export interface CredentialVaultItemSpecUpdate {
|
|
914
|
+
/**
|
|
915
|
+
* Field definitions to append, with the same defaults as creation. Set their
|
|
916
|
+
* values in `fields` in the same update. Names must be unique after removals; at
|
|
917
|
+
* most 32 fields may result. A required totp or passkey field needs a value in
|
|
918
|
+
* `fields`.
|
|
919
|
+
*/
|
|
920
|
+
add_fields?: Array<CredentialVaultFieldDefinitionInput>;
|
|
852
921
|
/**
|
|
853
922
|
* Recognizable site or service name used as the form title, without suffixes such
|
|
854
923
|
* as sign-in credentials. An empty string clears it. Display text only, not an
|
|
@@ -858,18 +927,26 @@ export interface CredentialVaultItemSpecUpdate {
|
|
|
858
927
|
fields?: {
|
|
859
928
|
[key: string]: CredentialVaultFieldUpdate;
|
|
860
929
|
};
|
|
930
|
+
/**
|
|
931
|
+
* Names of fields to delete with their values. Unknown names return 400. At least
|
|
932
|
+
* one field must remain.
|
|
933
|
+
*/
|
|
934
|
+
remove_fields?: Array<string>;
|
|
861
935
|
}
|
|
862
936
|
export type CredentialVaultItemState = KernelCredentialVaultItemState | OnePasswordCredentialVaultItemState | ManagedAuthCredentialVaultItemState;
|
|
863
937
|
/**
|
|
864
|
-
* Atomically update description and selected values. Omitted
|
|
865
|
-
* preserved.
|
|
866
|
-
*
|
|
867
|
-
*
|
|
868
|
-
*
|
|
869
|
-
*
|
|
870
|
-
*
|
|
871
|
-
*
|
|
872
|
-
*
|
|
938
|
+
* Atomically update description, field definitions, and selected values. Omitted
|
|
939
|
+
* properties are preserved. `remove_fields` deletes definitions and their values,
|
|
940
|
+
* then `add_fields` appends definitions, then `fields` sets values, including for
|
|
941
|
+
* added fields. An existing field's definition cannot be edited in place; to
|
|
942
|
+
* change it, remove the field and add it again, in the same update or a later one.
|
|
943
|
+
* The old value is deleted with it. Unknown field names return 400; stale versions
|
|
944
|
+
* or mismatched item types return 409 without changing the item. A successful
|
|
945
|
+
* update increments version and invalidates outstanding Kernel-hosted collection
|
|
946
|
+
* sessions. If required values remain missing, return pending_collection and a
|
|
947
|
+
* fresh collection action. Otherwise return ready without an action; collect can
|
|
948
|
+
* open the form again without clearing values. Customer URLs have no
|
|
949
|
+
* Kernel-managed expiry. 1Password and managed auth credentials return 409.
|
|
873
950
|
*/
|
|
874
951
|
export interface CredentialVaultItemUpdateRequest {
|
|
875
952
|
spec: CredentialVaultItemSpecUpdate;
|
|
@@ -950,13 +1027,13 @@ export interface FillVaultItemOperationResult {
|
|
|
950
1027
|
type: 'fill';
|
|
951
1028
|
}
|
|
952
1029
|
/**
|
|
953
|
-
* A ready Kernel card
|
|
954
|
-
*
|
|
955
|
-
*
|
|
956
|
-
* Mastercard purchases need no hosted approval.
|
|
957
|
-
*
|
|
958
|
-
* shown to the merchant. Kernel
|
|
959
|
-
*
|
|
1030
|
+
* A ready Kernel card supports authorize, fill, then submit checkout. Card details
|
|
1031
|
+
* are delivered for a few minutes after fill; submit promptly. Repeated fill is
|
|
1032
|
+
* safe and never submits checkout. Visa purchases require a spend_approval action
|
|
1033
|
+
* before details are issued; Mastercard purchases need no hosted approval.
|
|
1034
|
+
* masks.last4 is the enrolled card's last four digits; masks.token_last4, when
|
|
1035
|
+
* present, is the token's last four digits shown to the merchant. Kernel does not
|
|
1036
|
+
* observe whether the merchant charged the card.
|
|
960
1037
|
*/
|
|
961
1038
|
export interface KernelCardState {
|
|
962
1039
|
provider: 'kernel';
|
|
@@ -969,10 +1046,12 @@ export interface KernelCardState {
|
|
|
969
1046
|
* fresh local verification link; this does not approve spending or replay any
|
|
970
1047
|
* provider request. Unclassified legacy recovery and uncertain intent creation
|
|
971
1048
|
* cannot restart. Kernel never approves again or issues another code for the item
|
|
972
|
-
* automatically,
|
|
973
|
-
*
|
|
974
|
-
*
|
|
975
|
-
*
|
|
1049
|
+
* automatically. To continue, delete this card and create a new purchase; the
|
|
1050
|
+
* cardholder approves the new purchase separately. Recovery while reporting a
|
|
1051
|
+
* merchant transaction cannot be deleted and must be reconciled with support. When
|
|
1052
|
+
* status_reason says the provider refused retrieval before acceptance, no code was
|
|
1053
|
+
* issued and a later read retries. declined means the card network refused to
|
|
1054
|
+
* issue a code.
|
|
976
1055
|
*/
|
|
977
1056
|
status: 'requested' | 'pending_authorization' | 'ready' | 'consumed' | 'expired' | 'declined' | 'recovery_required';
|
|
978
1057
|
/**
|
|
@@ -1002,12 +1081,17 @@ export declare namespace KernelCardState {
|
|
|
1002
1081
|
* Mastercard purchases need no cardholder approval. A Visa purchase returns a
|
|
1003
1082
|
* spend_approval action: the cardholder approves it with a Visa passkey, and
|
|
1004
1083
|
* Kernel registers a Visa intent for one transaction up to the amount before
|
|
1005
|
-
* issuing the code.
|
|
1006
|
-
*
|
|
1084
|
+
* issuing the code. For supported cards whose network cannot be enrolled for
|
|
1085
|
+
* agentic tokens, authorize prepares checkout details without issuing a one-time
|
|
1086
|
+
* code. The card can be filled into one checkout before its expires_at, one hour
|
|
1087
|
+
* after authorization. Fill types those details on merchant_url's origin. The
|
|
1088
|
+
* amount, merchant_url and merchant_country are recorded but do not restrict
|
|
1089
|
+
* payment requests sent by the browser. Card updates are not supported; delete and
|
|
1090
|
+
* create a new item instead.
|
|
1007
1091
|
*/
|
|
1008
1092
|
export interface KernelCardVaultItemSpec {
|
|
1009
1093
|
/**
|
|
1010
|
-
* Integer amount in minor currency units (at most
|
|
1094
|
+
* Integer amount in minor currency units (at most 1000000), bound to the one-time
|
|
1011
1095
|
* code.
|
|
1012
1096
|
*/
|
|
1013
1097
|
amount: number;
|
|
@@ -1111,23 +1195,29 @@ export interface KernelWalletState {
|
|
|
1111
1195
|
* number never reaches Kernel. The connected wallet's payment_methods expansion
|
|
1112
1196
|
* lists the card; capabilities.single_use_card.eligible is false, with a
|
|
1113
1197
|
* network_token*\* reason, until the card has a network token, and authorize
|
|
1114
|
-
* returns 400 for such a card
|
|
1115
|
-
*
|
|
1116
|
-
*
|
|
1198
|
+
* returns 400 for such a card unless Kernel supports checkout delivery without a
|
|
1199
|
+
* network token for that card. In that case, fill types the checkout details. Visa
|
|
1200
|
+
* purchases require the cardholder to complete a spend_approval action before
|
|
1201
|
+
* Kernel issues a one-time code; Mastercard purchases need no hosted approval.
|
|
1117
1202
|
*/
|
|
1118
1203
|
export interface KernelWalletVaultItemSpec {
|
|
1119
1204
|
provider: 'kernel';
|
|
1120
1205
|
}
|
|
1121
1206
|
export interface ManagedAuthCredentialVaultField {
|
|
1122
1207
|
/**
|
|
1123
|
-
* Text, email, and password have form inputs; totp
|
|
1124
|
-
* both Kernel-hosted and customer React forms. Password
|
|
1125
|
-
* sensitive. A totp value is an RFC 4648 Base32 generator seed
|
|
1126
|
-
* optional trailing padding), not an otpauth URI or current
|
|
1127
|
-
* or empty decoded seeds. Browser fill generates an RFC 6238
|
|
1128
|
-
* time using HMAC-SHA1, 6 digits, and a 30-second period.
|
|
1129
|
-
* never fill the seed. Custom algorithms, digits, periods,
|
|
1130
|
-
* unsupported.
|
|
1208
|
+
* Text, email, and password have form inputs; totp and passkey do not and are
|
|
1209
|
+
* omitted from both Kernel-hosted and customer React forms. Password, totp, and
|
|
1210
|
+
* passkey must be sensitive. A totp value is an RFC 4648 Base32 generator seed
|
|
1211
|
+
* (case-insensitive, optional trailing padding), not an otpauth URI or current
|
|
1212
|
+
* code. Reject invalid or empty decoded seeds. Browser fill generates an RFC 6238
|
|
1213
|
+
* code at execution time using HMAC-SHA1, 6 digits, and a 30-second period.
|
|
1214
|
+
* Preserve leading zeros; never fill the seed. Custom algorithms, digits, periods,
|
|
1215
|
+
* and form enrollment are unsupported. A passkey value is a JSON-encoded FIDO
|
|
1216
|
+
* Credential Exchange Format passkey object with unpadded base64url
|
|
1217
|
+
* `credentialId`, `userHandle` (at most 64 bytes), and `key` (a PKCS#8 ECDSA P-256
|
|
1218
|
+
* private key), a lowercase `rpId` domain, and optional `username` and
|
|
1219
|
+
* `userDisplayName`. Other CXF members are ignored. Passkeys are never filled into
|
|
1220
|
+
* pages.
|
|
1131
1221
|
*/
|
|
1132
1222
|
type: CredentialVaultFieldType;
|
|
1133
1223
|
}
|
|
@@ -1657,8 +1747,16 @@ export declare namespace VaultItem {
|
|
|
1657
1747
|
* select a customer-owned configuration. Mode (sandbox vs live) is determined by
|
|
1658
1748
|
* the selected credential; there is no per-item test flag. Without user_id,
|
|
1659
1749
|
* creation returns a hosted enrollment action and Kernel polls until the user
|
|
1660
|
-
* connects.
|
|
1661
|
-
*
|
|
1750
|
+
* connects. With a customer-owned provider_config, user_id imports an existing
|
|
1751
|
+
* connection after verifying access with the selected credentials in their sandbox
|
|
1752
|
+
* or live mode; no hosted enrollment is needed, even if the connected user has no
|
|
1753
|
+
* stored cards. With Kernel-managed credentials, user_id may only reference a user
|
|
1754
|
+
* already enrolled by a wallet in this organization under the same configuration.
|
|
1755
|
+
* The user and configuration bindings cannot be changed after creation. Import
|
|
1756
|
+
* validation is read-only and runs before creation: a failed validation leaves no
|
|
1757
|
+
* wallet or reserved key, so the user_id can be corrected and retried. Concurrent
|
|
1758
|
+
* imports of the same key may both validate, but create at most one wallet and
|
|
1759
|
+
* connected event.
|
|
1662
1760
|
*/
|
|
1663
1761
|
spec: ItemsAPI.WalletVaultItemSpec;
|
|
1664
1762
|
state: ItemsAPI.WalletVaultItemState;
|
|
@@ -1806,8 +1904,16 @@ export declare namespace VaultItemOperationResponse {
|
|
|
1806
1904
|
* select a customer-owned configuration. Mode (sandbox vs live) is determined by
|
|
1807
1905
|
* the selected credential; there is no per-item test flag. Without user_id,
|
|
1808
1906
|
* creation returns a hosted enrollment action and Kernel polls until the user
|
|
1809
|
-
* connects.
|
|
1810
|
-
*
|
|
1907
|
+
* connects. With a customer-owned provider_config, user_id imports an existing
|
|
1908
|
+
* connection after verifying access with the selected credentials in their sandbox
|
|
1909
|
+
* or live mode; no hosted enrollment is needed, even if the connected user has no
|
|
1910
|
+
* stored cards. With Kernel-managed credentials, user_id may only reference a user
|
|
1911
|
+
* already enrolled by a wallet in this organization under the same configuration.
|
|
1912
|
+
* The user and configuration bindings cannot be changed after creation. Import
|
|
1913
|
+
* validation is read-only and runs before creation: a failed validation leaves no
|
|
1914
|
+
* wallet or reserved key, so the user_id can be corrected and retried. Concurrent
|
|
1915
|
+
* imports of the same key may both validate, but create at most one wallet and
|
|
1916
|
+
* connected event.
|
|
1811
1917
|
*/
|
|
1812
1918
|
spec: ItemsAPI.WalletVaultItemSpec;
|
|
1813
1919
|
state: ItemsAPI.WalletVaultItemState;
|
|
@@ -1936,7 +2042,7 @@ export declare namespace VaultPaymentMethod {
|
|
|
1936
2042
|
export interface VaultWebmcpBinding {
|
|
1937
2043
|
/**
|
|
1938
2044
|
* A declared, populated credential field or supported card field. A TOTP field
|
|
1939
|
-
* supplies a fresh code, never its seed.
|
|
2045
|
+
* supplies a fresh code, never its seed. Passkey fields cannot be filled.
|
|
1940
2046
|
*/
|
|
1941
2047
|
field: string;
|
|
1942
2048
|
/**
|
|
@@ -1956,8 +2062,16 @@ export interface VaultWebmcpBinding {
|
|
|
1956
2062
|
* select a customer-owned configuration. Mode (sandbox vs live) is determined by
|
|
1957
2063
|
* the selected credential; there is no per-item test flag. Without user_id,
|
|
1958
2064
|
* creation returns a hosted enrollment action and Kernel polls until the user
|
|
1959
|
-
* connects.
|
|
1960
|
-
*
|
|
2065
|
+
* connects. With a customer-owned provider_config, user_id imports an existing
|
|
2066
|
+
* connection after verifying access with the selected credentials in their sandbox
|
|
2067
|
+
* or live mode; no hosted enrollment is needed, even if the connected user has no
|
|
2068
|
+
* stored cards. With Kernel-managed credentials, user_id may only reference a user
|
|
2069
|
+
* already enrolled by a wallet in this organization under the same configuration.
|
|
2070
|
+
* The user and configuration bindings cannot be changed after creation. Import
|
|
2071
|
+
* validation is read-only and runs before creation: a failed validation leaves no
|
|
2072
|
+
* wallet or reserved key, so the user_id can be corrected and retried. Concurrent
|
|
2073
|
+
* imports of the same key may both validate, but create at most one wallet and
|
|
2074
|
+
* connected event.
|
|
1961
2075
|
*/
|
|
1962
2076
|
export type WalletVaultItemSpec = WalletVaultItemSpec.LinkWalletVaultItemSpec | WalletVaultItemSpec.AgentCardWalletVaultItemSpec | KernelWalletVaultItemSpec;
|
|
1963
2077
|
export declare namespace WalletVaultItemSpec {
|
|
@@ -2001,8 +2115,16 @@ export declare namespace WalletVaultItemSpec {
|
|
|
2001
2115
|
* select a customer-owned configuration. Mode (sandbox vs live) is determined by
|
|
2002
2116
|
* the selected credential; there is no per-item test flag. Without user_id,
|
|
2003
2117
|
* creation returns a hosted enrollment action and Kernel polls until the user
|
|
2004
|
-
* connects.
|
|
2005
|
-
*
|
|
2118
|
+
* connects. With a customer-owned provider_config, user_id imports an existing
|
|
2119
|
+
* connection after verifying access with the selected credentials in their sandbox
|
|
2120
|
+
* or live mode; no hosted enrollment is needed, even if the connected user has no
|
|
2121
|
+
* stored cards. With Kernel-managed credentials, user_id may only reference a user
|
|
2122
|
+
* already enrolled by a wallet in this organization under the same configuration.
|
|
2123
|
+
* The user and configuration bindings cannot be changed after creation. Import
|
|
2124
|
+
* validation is read-only and runs before creation: a failed validation leaves no
|
|
2125
|
+
* wallet or reserved key, so the user_id can be corrected and retried. Concurrent
|
|
2126
|
+
* imports of the same key may both validate, but create at most one wallet and
|
|
2127
|
+
* connected event.
|
|
2006
2128
|
*/
|
|
2007
2129
|
interface AgentCardWalletVaultItemSpec {
|
|
2008
2130
|
provider: 'agentcard';
|
|
@@ -2469,8 +2591,16 @@ export declare namespace ItemUpsertParams {
|
|
|
2469
2591
|
* credentials, or select a customer-owned configuration. Mode (sandbox vs live) is
|
|
2470
2592
|
* determined by the selected credential; there is no per-item test flag. Without
|
|
2471
2593
|
* user_id, creation returns a hosted enrollment action and Kernel polls until the
|
|
2472
|
-
* user connects.
|
|
2473
|
-
*
|
|
2594
|
+
* user connects. With a customer-owned provider_config, user_id imports an
|
|
2595
|
+
* existing connection after verifying access with the selected credentials in
|
|
2596
|
+
* their sandbox or live mode; no hosted enrollment is needed, even if the
|
|
2597
|
+
* connected user has no stored cards. With Kernel-managed credentials, user_id may
|
|
2598
|
+
* only reference a user already enrolled by a wallet in this organization under
|
|
2599
|
+
* the same configuration. The user and configuration bindings cannot be changed
|
|
2600
|
+
* after creation. Import validation is read-only and runs before creation: a
|
|
2601
|
+
* failed validation leaves no wallet or reserved key, so the user_id can be
|
|
2602
|
+
* corrected and retried. Concurrent imports of the same key may both validate, but
|
|
2603
|
+
* create at most one wallet and connected event.
|
|
2474
2604
|
*/
|
|
2475
2605
|
spec: WalletVaultItemRequest.LinkWalletVaultItemRequestSpec | WalletVaultItemRequest.AgentCardWalletVaultItemSpec | KernelWalletVaultItemSpec;
|
|
2476
2606
|
/**
|
|
@@ -2578,8 +2708,16 @@ export declare namespace ItemUpsertParams {
|
|
|
2578
2708
|
* select a customer-owned configuration. Mode (sandbox vs live) is determined by
|
|
2579
2709
|
* the selected credential; there is no per-item test flag. Without user_id,
|
|
2580
2710
|
* creation returns a hosted enrollment action and Kernel polls until the user
|
|
2581
|
-
* connects.
|
|
2582
|
-
*
|
|
2711
|
+
* connects. With a customer-owned provider_config, user_id imports an existing
|
|
2712
|
+
* connection after verifying access with the selected credentials in their sandbox
|
|
2713
|
+
* or live mode; no hosted enrollment is needed, even if the connected user has no
|
|
2714
|
+
* stored cards. With Kernel-managed credentials, user_id may only reference a user
|
|
2715
|
+
* already enrolled by a wallet in this organization under the same configuration.
|
|
2716
|
+
* The user and configuration bindings cannot be changed after creation. Import
|
|
2717
|
+
* validation is read-only and runs before creation: a failed validation leaves no
|
|
2718
|
+
* wallet or reserved key, so the user_id can be corrected and retried. Concurrent
|
|
2719
|
+
* imports of the same key may both validate, but create at most one wallet and
|
|
2720
|
+
* connected event.
|
|
2583
2721
|
*/
|
|
2584
2722
|
interface AgentCardWalletVaultItemSpec {
|
|
2585
2723
|
provider: 'agentcard';
|
|
@@ -2654,6 +2792,6 @@ export declare namespace ItemUpsertParams {
|
|
|
2654
2792
|
}
|
|
2655
2793
|
}
|
|
2656
2794
|
export declare namespace Items {
|
|
2657
|
-
export { type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization, type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation, type AgentcardPreparedProcessor as AgentcardPreparedProcessor, type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest, type CardVaultItemSpec as CardVaultItemSpec, type CardVaultItemState as CardVaultItemState, type CollectVaultItemOperationRequest as CollectVaultItemOperationRequest, type ConfirmTransactionVaultItemOperationRequest as ConfirmTransactionVaultItemOperationRequest, type CredentialAccountVaultItem as CredentialAccountVaultItem, type CredentialAccountVaultItemRequest as CredentialAccountVaultItemRequest, type CredentialCollectionAction as CredentialCollectionAction, type CredentialVaultFieldDefinition as CredentialVaultFieldDefinition, type CredentialVaultFieldInput as CredentialVaultFieldInput, type CredentialVaultFieldState as CredentialVaultFieldState, type CredentialVaultFieldType as CredentialVaultFieldType, type CredentialVaultFieldUpdate as CredentialVaultFieldUpdate, type CredentialVaultItem as CredentialVaultItem, type CredentialVaultItemRequest as CredentialVaultItemRequest, type CredentialVaultItemSpec as CredentialVaultItemSpec, type CredentialVaultItemSpecInput as CredentialVaultItemSpecInput, type CredentialVaultItemSpecUpdate as CredentialVaultItemSpecUpdate, type CredentialVaultItemState as CredentialVaultItemState, type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest, type FillVaultItemOperationRequest as FillVaultItemOperationRequest, type FillVaultItemOperationResult as FillVaultItemOperationResult, type KernelCardState as KernelCardState, type KernelCardVaultItemSpec as KernelCardVaultItemSpec, type KernelCredentialVaultItemSpec as KernelCredentialVaultItemSpec, type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput, type KernelCredentialVaultItemState as KernelCredentialVaultItemState, type KernelWalletState as KernelWalletState, type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec, type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField, type ManagedAuthCredentialVaultItemSpec as ManagedAuthCredentialVaultItemSpec, type ManagedAuthCredentialVaultItemSpecInput as ManagedAuthCredentialVaultItemSpecInput, type ManagedAuthCredentialVaultItemState as ManagedAuthCredentialVaultItemState, type OnePasswordCredentialAccountSpec as OnePasswordCredentialAccountSpec, type OnePasswordCredentialAccountState as OnePasswordCredentialAccountState, type OnePasswordCredentialVaultItemSpec as OnePasswordCredentialVaultItemSpec, type OnePasswordCredentialVaultItemSpecInput as OnePasswordCredentialVaultItemSpecInput, type OnePasswordCredentialVaultItemState as OnePasswordCredentialVaultItemState, type OnePasswordFillVaultItemOperationRequest as OnePasswordFillVaultItemOperationRequest, type OnePasswordFillVaultItemOperationResult as OnePasswordFillVaultItemOperationResult, type OnePasswordOAuthAction as OnePasswordOAuthAction, type OnePasswordRecoverVaultItemOperationRequest as OnePasswordRecoverVaultItemOperationRequest, type OnePasswordRequestAccessVaultItemOperationRequest as OnePasswordRequestAccessVaultItemOperationRequest, type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest, type RestartVerificationVaultItemOperationRequest as RestartVerificationVaultItemOperationRequest, type VaultCardAliases as VaultCardAliases, type VaultCardFillField as VaultCardFillField, type VaultCheckoutContext as VaultCheckoutContext, type VaultFillField as VaultFillField, type VaultFillFieldResult as VaultFillFieldResult, type VaultItem as VaultItem, type VaultItemAction as VaultItemAction, type VaultItemEvent as VaultItemEvent, type VaultItemOperationResponse as VaultItemOperationResponse, type VaultPaymentMethod as VaultPaymentMethod, type VaultWebmcpBinding as VaultWebmcpBinding, type WalletVaultItemSpec as WalletVaultItemSpec, type WalletVaultItemState as WalletVaultItemState, type WebmcpInvokeVaultItemOperationRequest as WebmcpInvokeVaultItemOperationRequest, type WebmcpInvokeVaultItemOperationResult as WebmcpInvokeVaultItemOperationResult, type ItemListResponse as ItemListResponse, type ItemEventsResponse as ItemEventsResponse, type ItemRetrieveParams as ItemRetrieveParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, type ItemEventsParams as ItemEventsParams, type ItemPerformOperationParams as ItemPerformOperationParams, type ItemUpsertParams as ItemUpsertParams, };
|
|
2795
|
+
export { type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization, type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation, type AgentcardPreparedProcessor as AgentcardPreparedProcessor, type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest, type CardVaultItemSpec as CardVaultItemSpec, type CardVaultItemState as CardVaultItemState, type CollectVaultItemOperationRequest as CollectVaultItemOperationRequest, type ConfirmTransactionVaultItemOperationRequest as ConfirmTransactionVaultItemOperationRequest, type CredentialAccountVaultItem as CredentialAccountVaultItem, type CredentialAccountVaultItemRequest as CredentialAccountVaultItemRequest, type CredentialCollectionAction as CredentialCollectionAction, type CredentialVaultFieldDefinition as CredentialVaultFieldDefinition, type CredentialVaultFieldDefinitionInput as CredentialVaultFieldDefinitionInput, type CredentialVaultFieldInput as CredentialVaultFieldInput, type CredentialVaultFieldState as CredentialVaultFieldState, type CredentialVaultFieldType as CredentialVaultFieldType, type CredentialVaultFieldUpdate as CredentialVaultFieldUpdate, type CredentialVaultItem as CredentialVaultItem, type CredentialVaultItemRequest as CredentialVaultItemRequest, type CredentialVaultItemSpec as CredentialVaultItemSpec, type CredentialVaultItemSpecInput as CredentialVaultItemSpecInput, type CredentialVaultItemSpecUpdate as CredentialVaultItemSpecUpdate, type CredentialVaultItemState as CredentialVaultItemState, type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest, type FillVaultItemOperationRequest as FillVaultItemOperationRequest, type FillVaultItemOperationResult as FillVaultItemOperationResult, type KernelCardState as KernelCardState, type KernelCardVaultItemSpec as KernelCardVaultItemSpec, type KernelCredentialVaultItemSpec as KernelCredentialVaultItemSpec, type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput, type KernelCredentialVaultItemState as KernelCredentialVaultItemState, type KernelWalletState as KernelWalletState, type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec, type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField, type ManagedAuthCredentialVaultItemSpec as ManagedAuthCredentialVaultItemSpec, type ManagedAuthCredentialVaultItemSpecInput as ManagedAuthCredentialVaultItemSpecInput, type ManagedAuthCredentialVaultItemState as ManagedAuthCredentialVaultItemState, type OnePasswordCredentialAccountSpec as OnePasswordCredentialAccountSpec, type OnePasswordCredentialAccountState as OnePasswordCredentialAccountState, type OnePasswordCredentialVaultItemSpec as OnePasswordCredentialVaultItemSpec, type OnePasswordCredentialVaultItemSpecInput as OnePasswordCredentialVaultItemSpecInput, type OnePasswordCredentialVaultItemState as OnePasswordCredentialVaultItemState, type OnePasswordFillVaultItemOperationRequest as OnePasswordFillVaultItemOperationRequest, type OnePasswordFillVaultItemOperationResult as OnePasswordFillVaultItemOperationResult, type OnePasswordOAuthAction as OnePasswordOAuthAction, type OnePasswordRecoverVaultItemOperationRequest as OnePasswordRecoverVaultItemOperationRequest, type OnePasswordRequestAccessVaultItemOperationRequest as OnePasswordRequestAccessVaultItemOperationRequest, type PrepareCheckoutVaultItemOperationRequest as PrepareCheckoutVaultItemOperationRequest, type RestartVerificationVaultItemOperationRequest as RestartVerificationVaultItemOperationRequest, type VaultCardAliases as VaultCardAliases, type VaultCardFillField as VaultCardFillField, type VaultCheckoutContext as VaultCheckoutContext, type VaultFillField as VaultFillField, type VaultFillFieldResult as VaultFillFieldResult, type VaultItem as VaultItem, type VaultItemAction as VaultItemAction, type VaultItemEvent as VaultItemEvent, type VaultItemOperationResponse as VaultItemOperationResponse, type VaultPaymentMethod as VaultPaymentMethod, type VaultWebmcpBinding as VaultWebmcpBinding, type WalletVaultItemSpec as WalletVaultItemSpec, type WalletVaultItemState as WalletVaultItemState, type WebmcpInvokeVaultItemOperationRequest as WebmcpInvokeVaultItemOperationRequest, type WebmcpInvokeVaultItemOperationResult as WebmcpInvokeVaultItemOperationResult, type ItemListResponse as ItemListResponse, type ItemEventsResponse as ItemEventsResponse, type ItemRetrieveParams as ItemRetrieveParams, type ItemUpdateParams as ItemUpdateParams, type ItemDeleteParams as ItemDeleteParams, type ItemEventsParams as ItemEventsParams, type ItemPerformOperationParams as ItemPerformOperationParams, type ItemUpsertParams as ItemUpsertParams, };
|
|
2658
2796
|
}
|
|
2659
2797
|
//# sourceMappingURL=items.d.mts.map
|