@onkernel/sdk 0.117.0 → 0.119.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 +15 -0
- package/package.json +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 +225 -32
- package/resources/vaults/items.d.mts.map +1 -1
- package/resources/vaults/items.d.ts +225 -32
- package/resources/vaults/items.d.ts.map +1 -1
- package/resources/vaults/items.js +10 -6
- package/resources/vaults/items.js.map +1 -1
- package/resources/vaults/items.mjs +10 -6
- package/resources/vaults/items.mjs.map +1 -1
- package/resources/vaults/vaults.d.mts +11 -5
- package/resources/vaults/vaults.d.mts.map +1 -1
- package/resources/vaults/vaults.d.ts +11 -5
- package/resources/vaults/vaults.d.ts.map +1 -1
- package/resources/vaults/vaults.js +5 -3
- package/resources/vaults/vaults.js.map +1 -1
- package/resources/vaults/vaults.mjs +5 -3
- package/resources/vaults/vaults.mjs.map +1 -1
- package/src/resources/vaults/index.ts +8 -0
- package/src/resources/vaults/items.ts +283 -31
- package/src/resources/vaults/vaults.ts +27 -4
- 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
|
@@ -87,10 +87,14 @@ export class Items extends APIResource {
|
|
|
87
87
|
|
|
88
88
|
/**
|
|
89
89
|
* Unresolved payment operations normally block deletion, including operations on
|
|
90
|
-
* child cards of a wallet.
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
90
|
+
* child cards of a wallet. Deleting a connected Kernel wallet first blocks new
|
|
91
|
+
* payments on it, then removes its enrolled card. If that fails, the wallet is
|
|
92
|
+
* kept and keeps refusing payments; retry the deletion. An AgentCard card in
|
|
93
|
+
* recovery_required whose checkout create response returned no authorization ID
|
|
94
|
+
* may be explicitly abandoned by deleting that card directly; deleting its wallet
|
|
95
|
+
* or vault remains blocked. Deleting or recreating an item is not proof that a
|
|
96
|
+
* payment did not occur. Deleting a managed auth credential item leaves the
|
|
97
|
+
* connection and its saved credential unchanged.
|
|
94
98
|
*
|
|
95
99
|
* @example
|
|
96
100
|
* ```ts
|
|
@@ -182,8 +186,8 @@ export class Items extends APIResource {
|
|
|
182
186
|
* ```ts
|
|
183
187
|
* const vaultItem = await client.vaults.items.upsert('x', {
|
|
184
188
|
* id_or_name: 'id_or_name',
|
|
185
|
-
* spec: { provider: '
|
|
186
|
-
* type: '
|
|
189
|
+
* spec: { provider: 'managed_auth' },
|
|
190
|
+
* type: 'credential',
|
|
187
191
|
* });
|
|
188
192
|
* ```
|
|
189
193
|
*/
|
|
@@ -304,8 +308,8 @@ export type AgentcardPreparedProcessor =
|
|
|
304
308
|
| 'adyen';
|
|
305
309
|
|
|
306
310
|
/**
|
|
307
|
-
* Authorize a Link card using its existing purchase specification. Use
|
|
308
|
-
* explicit user approval and when the item advertises authorize. Do not
|
|
311
|
+
* Authorize a Link or Kernel card using its existing purchase specification. Use
|
|
312
|
+
* only after explicit user approval and when the item advertises authorize. Do not
|
|
309
313
|
* automatically retry provider failures or indeterminate outcomes. Checkout
|
|
310
314
|
* context is not accepted.
|
|
311
315
|
*/
|
|
@@ -318,7 +322,8 @@ export interface AuthorizeVaultItemOperationRequest {
|
|
|
318
322
|
*/
|
|
319
323
|
export type CardVaultItemSpec =
|
|
320
324
|
| CardVaultItemSpec.LinkCardVaultItemSpec
|
|
321
|
-
| CardVaultItemSpec.AgentCardCardVaultItemSpec
|
|
325
|
+
| CardVaultItemSpec.AgentCardCardVaultItemSpec
|
|
326
|
+
| KernelCardVaultItemSpec;
|
|
322
327
|
|
|
323
328
|
export namespace CardVaultItemSpec {
|
|
324
329
|
/**
|
|
@@ -462,7 +467,10 @@ export namespace CardVaultItemSpec {
|
|
|
462
467
|
* Issued Link cards retain encrypted card material for the fill operation. Link
|
|
463
468
|
* cards do not expose aliases or support egress substitution.
|
|
464
469
|
*/
|
|
465
|
-
export type CardVaultItemState =
|
|
470
|
+
export type CardVaultItemState =
|
|
471
|
+
| CardVaultItemState.LinkCardState
|
|
472
|
+
| CardVaultItemState.AgentCardCardState
|
|
473
|
+
| KernelCardState;
|
|
466
474
|
|
|
467
475
|
export namespace CardVaultItemState {
|
|
468
476
|
/**
|
|
@@ -501,6 +509,11 @@ export namespace CardVaultItemState {
|
|
|
501
509
|
|
|
502
510
|
last4?: string;
|
|
503
511
|
|
|
512
|
+
/**
|
|
513
|
+
* Last four digits of the network token presented to the merchant.
|
|
514
|
+
*/
|
|
515
|
+
token_last4?: string;
|
|
516
|
+
|
|
504
517
|
[k: string]: string | undefined;
|
|
505
518
|
}
|
|
506
519
|
}
|
|
@@ -559,6 +572,11 @@ export namespace CardVaultItemState {
|
|
|
559
572
|
|
|
560
573
|
last4?: string;
|
|
561
574
|
|
|
575
|
+
/**
|
|
576
|
+
* Last four digits of the network token presented to the merchant.
|
|
577
|
+
*/
|
|
578
|
+
token_last4?: string;
|
|
579
|
+
|
|
562
580
|
[k: string]: string | undefined;
|
|
563
581
|
}
|
|
564
582
|
}
|
|
@@ -822,7 +840,8 @@ export interface CredentialVaultItem {
|
|
|
822
840
|
* Kernel credentials advertise collect and fill when eligible. 1Password
|
|
823
841
|
* credentials advertise 1pw_create_access_request until a request is made,
|
|
824
842
|
* 1pw_access_request_status while its approval is pending, and 1pw_fill after
|
|
825
|
-
* access is granted.
|
|
843
|
+
* access is granted. Managed auth credentials advertise fill while ready and
|
|
844
|
+
* nothing otherwise.
|
|
826
845
|
*/
|
|
827
846
|
available_operations: Array<CredentialVaultItem.AvailableOperation>;
|
|
828
847
|
|
|
@@ -847,7 +866,8 @@ export interface CredentialVaultItem {
|
|
|
847
866
|
|
|
848
867
|
/**
|
|
849
868
|
* Starts at 1 and increments on PATCH and successful hosted submission, but not
|
|
850
|
-
* collection-link renewal.
|
|
869
|
+
* collection-link renewal. Managed auth credentials stay at 1; changes to the
|
|
870
|
+
* underlying credential are read at fill time and do not change the version.
|
|
851
871
|
*/
|
|
852
872
|
version: number;
|
|
853
873
|
|
|
@@ -939,7 +959,9 @@ export namespace CredentialVaultItem {
|
|
|
939
959
|
* declare fields and may enter pending_collection. 1Password credentials either
|
|
940
960
|
* reference a connected credential_account or store a supplied access token and
|
|
941
961
|
* integration key encrypted on the item. They store no login values or selectors.
|
|
942
|
-
*
|
|
962
|
+
* Managed auth credentials reference a managed auth connection in the same project
|
|
963
|
+
* that already has a saved credential, and read it at fill time; they store no
|
|
964
|
+
* values. Repeating the original creation request returns the current item without
|
|
943
965
|
* overwriting later state. A different request at the same key returns 409.
|
|
944
966
|
*/
|
|
945
967
|
export interface CredentialVaultItemRequest {
|
|
@@ -959,7 +981,10 @@ export interface CredentialVaultItemRequest {
|
|
|
959
981
|
* Stored-token credentials omit account and never return access_token or
|
|
960
982
|
* integration_key.
|
|
961
983
|
*/
|
|
962
|
-
export type CredentialVaultItemSpec =
|
|
984
|
+
export type CredentialVaultItemSpec =
|
|
985
|
+
| KernelCredentialVaultItemSpec
|
|
986
|
+
| OnePasswordCredentialVaultItemSpec
|
|
987
|
+
| ManagedAuthCredentialVaultItemSpec;
|
|
963
988
|
|
|
964
989
|
/**
|
|
965
990
|
* Credential fields are for login and other non-payment credentials. Do not store,
|
|
@@ -970,7 +995,8 @@ export type CredentialVaultItemSpec = KernelCredentialVaultItemSpec | OnePasswor
|
|
|
970
995
|
*/
|
|
971
996
|
export type CredentialVaultItemSpecInput =
|
|
972
997
|
| KernelCredentialVaultItemSpecInput
|
|
973
|
-
| OnePasswordCredentialVaultItemSpecInput
|
|
998
|
+
| OnePasswordCredentialVaultItemSpecInput
|
|
999
|
+
| ManagedAuthCredentialVaultItemSpecInput;
|
|
974
1000
|
|
|
975
1001
|
export interface CredentialVaultItemSpecUpdate {
|
|
976
1002
|
/**
|
|
@@ -983,7 +1009,10 @@ export interface CredentialVaultItemSpecUpdate {
|
|
|
983
1009
|
fields?: { [key: string]: CredentialVaultFieldUpdate };
|
|
984
1010
|
}
|
|
985
1011
|
|
|
986
|
-
export type CredentialVaultItemState =
|
|
1012
|
+
export type CredentialVaultItemState =
|
|
1013
|
+
| KernelCredentialVaultItemState
|
|
1014
|
+
| OnePasswordCredentialVaultItemState
|
|
1015
|
+
| ManagedAuthCredentialVaultItemState;
|
|
987
1016
|
|
|
988
1017
|
/**
|
|
989
1018
|
* Atomically update description and selected values. Omitted properties are
|
|
@@ -993,7 +1022,8 @@ export type CredentialVaultItemState = KernelCredentialVaultItemState | OnePassw
|
|
|
993
1022
|
* invalidates outstanding Kernel-hosted collection sessions. If required values
|
|
994
1023
|
* remain missing, return pending_collection and a fresh collection action.
|
|
995
1024
|
* Otherwise return ready without an action; collect can open the form again
|
|
996
|
-
* without clearing values. Customer URLs have no Kernel-managed expiry.
|
|
1025
|
+
* without clearing values. Customer URLs have no Kernel-managed expiry. 1Password
|
|
1026
|
+
* and managed auth credentials return 409.
|
|
997
1027
|
*/
|
|
998
1028
|
export interface CredentialVaultItemUpdateRequest {
|
|
999
1029
|
spec: CredentialVaultItemSpecUpdate;
|
|
@@ -1015,11 +1045,11 @@ export interface CredentialVaultItemUpdateRequest {
|
|
|
1015
1045
|
}
|
|
1016
1046
|
|
|
1017
1047
|
/**
|
|
1018
|
-
* Fill selected fields from one ready credential or ready, unexpired Link
|
|
1019
|
-
* into a browser linked to its vault. Only invoke when the item
|
|
1020
|
-
* Browser and vault must belong to the same project. Kernel
|
|
1021
|
-
* allowed destinations before filling; providing a page URL does
|
|
1022
|
-
* destination.
|
|
1048
|
+
* Fill selected fields from one ready credential or ready, unexpired Link or
|
|
1049
|
+
* Kernel card into a browser linked to its vault. Only invoke when the item
|
|
1050
|
+
* advertises `fill`. Browser and vault must belong to the same project. Kernel
|
|
1051
|
+
* checks access and allowed destinations before filling; providing a page URL does
|
|
1052
|
+
* not authorize a destination.
|
|
1023
1053
|
*
|
|
1024
1054
|
* Find exactly one open page matching `page_url`. Credential items may omit
|
|
1025
1055
|
* `page_url` to require exactly one open page; cards require an HTTPS page URL.
|
|
@@ -1035,9 +1065,10 @@ export interface CredentialVaultItemUpdateRequest {
|
|
|
1035
1065
|
*
|
|
1036
1066
|
* Fill in request order and stop on the first failure. This operation is not
|
|
1037
1067
|
* atomic: previously filled fields are not rolled back. Never submit the form or
|
|
1038
|
-
* click buttons, though input/change events may trigger site behavior. Link
|
|
1039
|
-
* use fill for browser checkout and do not expose aliases or support
|
|
1040
|
-
* substitution. Do not automatically retry a failed or indeterminate
|
|
1068
|
+
* click buttons, though input/change events may trigger site behavior. Link and
|
|
1069
|
+
* Kernel cards use fill for browser checkout and do not expose aliases or support
|
|
1070
|
+
* egress substitution. Do not automatically retry a failed or indeterminate
|
|
1071
|
+
* operation.
|
|
1041
1072
|
*
|
|
1042
1073
|
* Secret values are never returned or included in operation logs, traces, audit
|
|
1043
1074
|
* events, or error details. This does not prevent an agent with unrestricted
|
|
@@ -1089,6 +1120,98 @@ export interface FillVaultItemOperationResult {
|
|
|
1089
1120
|
type: 'fill';
|
|
1090
1121
|
}
|
|
1091
1122
|
|
|
1123
|
+
/**
|
|
1124
|
+
* A ready Kernel card retains its encrypted network token and one-time code for
|
|
1125
|
+
* the fill operation until the item's expires_at. Fill and submit checkout before
|
|
1126
|
+
* then. Visa cards can be enrolled, but Visa purchases are not yet supported and
|
|
1127
|
+
* authorize returns 400; supported Mastercard purchases need no cardholder
|
|
1128
|
+
* approval. masks.last4 is the enrolled card's last four digits; masks.token_last4
|
|
1129
|
+
* is the network token's last four digits shown to the merchant. Kernel cards do
|
|
1130
|
+
* not expose aliases or support egress substitution. Kernel does not observe
|
|
1131
|
+
* whether the merchant charged the card.
|
|
1132
|
+
*/
|
|
1133
|
+
export interface KernelCardState {
|
|
1134
|
+
provider: 'kernel';
|
|
1135
|
+
|
|
1136
|
+
/**
|
|
1137
|
+
* recovery_required means issuing the one-time code has an unresolved outcome.
|
|
1138
|
+
* Kernel never issues another code for the item automatically, and the item cannot
|
|
1139
|
+
* be deleted or replaced until the original attempt is reconciled with support.
|
|
1140
|
+
* When status_reason says the provider refused retrieval before acceptance, no
|
|
1141
|
+
* code was issued and a later read retries.
|
|
1142
|
+
*/
|
|
1143
|
+
status:
|
|
1144
|
+
| 'requested'
|
|
1145
|
+
| 'pending_authorization'
|
|
1146
|
+
| 'ready'
|
|
1147
|
+
| 'consumed'
|
|
1148
|
+
| 'expired'
|
|
1149
|
+
| 'declined'
|
|
1150
|
+
| 'recovery_required';
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* Informational registrable domain. Fill is locked to merchant_url's exact origin.
|
|
1154
|
+
*/
|
|
1155
|
+
domains?: Array<string>;
|
|
1156
|
+
|
|
1157
|
+
masks?: KernelCardState.Masks;
|
|
1158
|
+
|
|
1159
|
+
status_reason?: string;
|
|
1160
|
+
}
|
|
1161
|
+
|
|
1162
|
+
export namespace KernelCardState {
|
|
1163
|
+
export interface Masks {
|
|
1164
|
+
brand?: string;
|
|
1165
|
+
|
|
1166
|
+
last4?: string;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Last four digits of the network token presented to the merchant.
|
|
1170
|
+
*/
|
|
1171
|
+
token_last4?: string;
|
|
1172
|
+
|
|
1173
|
+
[k: string]: string | undefined;
|
|
1174
|
+
}
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* One live purchase with a Kernel-enrolled card. Authorization obtains an agentic
|
|
1179
|
+
* network token number, expiry and one-time 3-digit code. They are stored
|
|
1180
|
+
* encrypted for the fill operation, which types them only on merchant_url's
|
|
1181
|
+
* origin; the merchant's own checkout submits the payment. The one-time code is
|
|
1182
|
+
* valid until the item's expires_at; fill and submit checkout before then. Visa
|
|
1183
|
+
* cards can be enrolled, but Visa purchases are not yet supported: authorize
|
|
1184
|
+
* returns 400. Supported Mastercard purchases need no cardholder approval. Card
|
|
1185
|
+
* updates are not supported; delete and create a new item instead.
|
|
1186
|
+
*/
|
|
1187
|
+
export interface KernelCardVaultItemSpec {
|
|
1188
|
+
/**
|
|
1189
|
+
* Integer amount in minor currency units (at most 50000), bound to the one-time
|
|
1190
|
+
* code.
|
|
1191
|
+
*/
|
|
1192
|
+
amount: number;
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* ISO 4217 code. Supported: aud, brl, cad, chf, czk, dkk, eur, gbp, hkd, inr, jpy,
|
|
1196
|
+
* krw, mxn, nok, nzd, pln, sek, sgd, usd, zar.
|
|
1197
|
+
*/
|
|
1198
|
+
currency: string;
|
|
1199
|
+
|
|
1200
|
+
merchant_name: string;
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Merchant checkout URL. Fill is allowed only on this URL's origin.
|
|
1204
|
+
*/
|
|
1205
|
+
merchant_url: string;
|
|
1206
|
+
|
|
1207
|
+
provider: 'kernel';
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* Key of the Kernel wallet item whose enrolled card pays.
|
|
1211
|
+
*/
|
|
1212
|
+
wallet: string;
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1092
1215
|
export interface KernelCredentialVaultItemSpec {
|
|
1093
1216
|
/**
|
|
1094
1217
|
* Ordered field definitions rendered in this order by credential collection forms.
|
|
@@ -1145,6 +1268,122 @@ export interface KernelCredentialVaultItemState {
|
|
|
1145
1268
|
status: 'pending_collection' | 'ready';
|
|
1146
1269
|
}
|
|
1147
1270
|
|
|
1271
|
+
export interface KernelWalletState {
|
|
1272
|
+
provider: 'kernel';
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* pending_authorization asks the cardholder to use the card_enrollment action.
|
|
1276
|
+
* connected is ready for supported purchases. reconnect_required asks the
|
|
1277
|
+
* cardholder to use a new card_enrollment action after an uncertain enrollment was
|
|
1278
|
+
* safely removed. degraded means the enrollment outcome is unknown and the wallet
|
|
1279
|
+
* must be deleted before adding another card.
|
|
1280
|
+
*/
|
|
1281
|
+
status: 'pending_authorization' | 'connected' | 'reconnect_required' | 'degraded';
|
|
1282
|
+
|
|
1283
|
+
status_reason?: string;
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* One card Kernel enrolls for Visa or Mastercard agentic network tokens using
|
|
1288
|
+
* Kernel-managed credentials. Creation returns a card_enrollment action: the
|
|
1289
|
+
* cardholder enters the card and their email on a Kernel-hosted page, then Kernel
|
|
1290
|
+
* enrolls the securely stored card. The card number never reaches Kernel. The
|
|
1291
|
+
* connected wallet's payment_methods expansion lists the enrolled card. Visa cards
|
|
1292
|
+
* can be enrolled, but Visa purchases are not yet supported: authorize
|
|
1293
|
+
* returns 400.
|
|
1294
|
+
*/
|
|
1295
|
+
export interface KernelWalletVaultItemSpec {
|
|
1296
|
+
provider: 'kernel';
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
export interface ManagedAuthCredentialVaultField {
|
|
1300
|
+
/**
|
|
1301
|
+
* Text, email, and password have form inputs; totp does not and is omitted from
|
|
1302
|
+
* both Kernel-hosted and customer React forms. Password and totp must be
|
|
1303
|
+
* sensitive. A totp value is an RFC 4648 Base32 generator seed (case-insensitive,
|
|
1304
|
+
* optional trailing padding), not an otpauth URI or current code. Reject invalid
|
|
1305
|
+
* or empty decoded seeds. Browser fill generates an RFC 6238 code at execution
|
|
1306
|
+
* time using HMAC-SHA1, 6 digits, and a 30-second period. Preserve leading zeros;
|
|
1307
|
+
* never fill the seed. Custom algorithms, digits, periods, and form enrollment are
|
|
1308
|
+
* unsupported.
|
|
1309
|
+
*/
|
|
1310
|
+
type: CredentialVaultFieldType;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
export interface ManagedAuthCredentialVaultItemSpec {
|
|
1314
|
+
/**
|
|
1315
|
+
* ID of the managed auth connection whose saved credential this item reads. List
|
|
1316
|
+
* connections with `GET /auth/connections`.
|
|
1317
|
+
*/
|
|
1318
|
+
connection_id: string;
|
|
1319
|
+
|
|
1320
|
+
provider: 'managed_auth';
|
|
1321
|
+
|
|
1322
|
+
/**
|
|
1323
|
+
* Display text supplied when the item was created. Omitted when none was given.
|
|
1324
|
+
*/
|
|
1325
|
+
description?: string;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* A credential backed by a managed auth connection. The item stores no values: it
|
|
1330
|
+
* reads the connection's saved credential at fill time, so updates made through
|
|
1331
|
+
* managed auth apply immediately. The connection must be in the vault's project
|
|
1332
|
+
* and hold a saved Kernel credential. The check is the saved credential, not
|
|
1333
|
+
* connection status: a connection that needs re-authentication qualifies, and an
|
|
1334
|
+
* authenticated one without a saved credential does not. Returns 404 for an
|
|
1335
|
+
* unknown connection, and 409 when the connection is in another project, has no
|
|
1336
|
+
* saved credential yet, or uses an external credential provider such as 1Password.
|
|
1337
|
+
* No collection form is offered; managed auth collects the login.
|
|
1338
|
+
*/
|
|
1339
|
+
export interface ManagedAuthCredentialVaultItemSpecInput {
|
|
1340
|
+
/**
|
|
1341
|
+
* ID of the managed auth connection whose saved credential this item reads. List
|
|
1342
|
+
* connections with `GET /auth/connections`.
|
|
1343
|
+
*/
|
|
1344
|
+
connection_id: string;
|
|
1345
|
+
|
|
1346
|
+
provider: 'managed_auth';
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* Optional display text for the item, such as the site or service name. Set at
|
|
1350
|
+
* creation and cannot be changed later; repeating the request with a different
|
|
1351
|
+
* description returns 409. At most 16 KiB in UTF-8 bytes.
|
|
1352
|
+
*/
|
|
1353
|
+
description?: string;
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
export interface ManagedAuthCredentialVaultItemState {
|
|
1357
|
+
provider: 'managed_auth';
|
|
1358
|
+
|
|
1359
|
+
/**
|
|
1360
|
+
* Items are created ready, which means the connection has a saved Kernel
|
|
1361
|
+
* credential that stores values or a TOTP seed (what has_values or has_totp_secret
|
|
1362
|
+
* report on credentials), not that a login succeeded. Unavailable means it no
|
|
1363
|
+
* longer does; such items advertise no operations.
|
|
1364
|
+
*/
|
|
1365
|
+
status: 'ready' | 'unavailable';
|
|
1366
|
+
|
|
1367
|
+
/**
|
|
1368
|
+
* One entry per non-empty value on the connection's saved credential, keyed by the
|
|
1369
|
+
* field name to use in fill bindings. Included on single-item responses (create
|
|
1370
|
+
* and get) and omitted from list responses, like `value_keys` on credentials.
|
|
1371
|
+
* Empty when unavailable or when every stored value is empty. A stored value named
|
|
1372
|
+
* totp_secret is never listed or filled. Values are never returned. A totp entry
|
|
1373
|
+
* is present when the credential has a TOTP seed; fill writes a generated code for
|
|
1374
|
+
* it. Entries follow the connection's credential.
|
|
1375
|
+
*/
|
|
1376
|
+
fields?: { [key: string]: ManagedAuthCredentialVaultField };
|
|
1377
|
+
|
|
1378
|
+
/**
|
|
1379
|
+
* Present when status is unavailable. connection_not_found means the connection
|
|
1380
|
+
* was deleted. no_credential means the connection's credential was deleted or
|
|
1381
|
+
* emptied after the item was created. external_credential means the connection was
|
|
1382
|
+
* moved to an external credential provider.
|
|
1383
|
+
*/
|
|
1384
|
+
status_reason?: 'connection_not_found' | 'no_credential' | 'external_credential';
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1148
1387
|
export interface OnePasswordCredentialAccountSpec {
|
|
1149
1388
|
authorization: OnePasswordCredentialAccountSpec.Authorization;
|
|
1150
1389
|
|
|
@@ -1660,8 +1899,9 @@ export interface VaultCheckoutContext {
|
|
|
1660
1899
|
|
|
1661
1900
|
export interface VaultFillField {
|
|
1662
1901
|
/**
|
|
1663
|
-
* A
|
|
1664
|
-
*
|
|
1902
|
+
* A credential field name from the item's declared fields (Kernel) or state.fields
|
|
1903
|
+
* from a single-item read (managed auth), or a supported card field. Unset
|
|
1904
|
+
* credential fields cannot be filled.
|
|
1665
1905
|
*/
|
|
1666
1906
|
field: string;
|
|
1667
1907
|
|
|
@@ -2156,7 +2396,8 @@ export interface VaultWebmcpBinding {
|
|
|
2156
2396
|
*/
|
|
2157
2397
|
export type WalletVaultItemSpec =
|
|
2158
2398
|
| WalletVaultItemSpec.LinkWalletVaultItemSpec
|
|
2159
|
-
| WalletVaultItemSpec.AgentCardWalletVaultItemSpec
|
|
2399
|
+
| WalletVaultItemSpec.AgentCardWalletVaultItemSpec
|
|
2400
|
+
| KernelWalletVaultItemSpec;
|
|
2160
2401
|
|
|
2161
2402
|
export namespace WalletVaultItemSpec {
|
|
2162
2403
|
export interface LinkWalletVaultItemSpec {
|
|
@@ -2238,7 +2479,8 @@ export namespace WalletVaultItemSpec {
|
|
|
2238
2479
|
|
|
2239
2480
|
export type WalletVaultItemState =
|
|
2240
2481
|
| WalletVaultItemState.LinkWalletState
|
|
2241
|
-
| WalletVaultItemState.AgentCardWalletState
|
|
2482
|
+
| WalletVaultItemState.AgentCardWalletState
|
|
2483
|
+
| KernelWalletState;
|
|
2242
2484
|
|
|
2243
2485
|
export namespace WalletVaultItemState {
|
|
2244
2486
|
export interface LinkWalletState {
|
|
@@ -2363,7 +2605,8 @@ export interface ItemRetrieveParams {
|
|
|
2363
2605
|
* authorization, approval, or credential collection. Return the current item when
|
|
2364
2606
|
* ready or when the wait elapses. This does not wait for edits to an already-ready
|
|
2365
2607
|
* credential; poll GET without wait and compare version to observe changes after
|
|
2366
|
-
* collect.
|
|
2608
|
+
* collect. Managed auth credentials are created ready, so wait returns
|
|
2609
|
+
* immediately.
|
|
2367
2610
|
*/
|
|
2368
2611
|
wait?: number;
|
|
2369
2612
|
}
|
|
@@ -2730,7 +2973,8 @@ export declare namespace ItemUpsertParams {
|
|
|
2730
2973
|
*/
|
|
2731
2974
|
spec:
|
|
2732
2975
|
| WalletVaultItemRequest.LinkWalletVaultItemRequestSpec
|
|
2733
|
-
| WalletVaultItemRequest.AgentCardWalletVaultItemSpec
|
|
2976
|
+
| WalletVaultItemRequest.AgentCardWalletVaultItemSpec
|
|
2977
|
+
| KernelWalletVaultItemSpec;
|
|
2734
2978
|
|
|
2735
2979
|
/**
|
|
2736
2980
|
* Body param
|
|
@@ -2964,9 +3208,17 @@ export declare namespace Items {
|
|
|
2964
3208
|
type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest,
|
|
2965
3209
|
type FillVaultItemOperationRequest as FillVaultItemOperationRequest,
|
|
2966
3210
|
type FillVaultItemOperationResult as FillVaultItemOperationResult,
|
|
3211
|
+
type KernelCardState as KernelCardState,
|
|
3212
|
+
type KernelCardVaultItemSpec as KernelCardVaultItemSpec,
|
|
2967
3213
|
type KernelCredentialVaultItemSpec as KernelCredentialVaultItemSpec,
|
|
2968
3214
|
type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput,
|
|
2969
3215
|
type KernelCredentialVaultItemState as KernelCredentialVaultItemState,
|
|
3216
|
+
type KernelWalletState as KernelWalletState,
|
|
3217
|
+
type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec,
|
|
3218
|
+
type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField,
|
|
3219
|
+
type ManagedAuthCredentialVaultItemSpec as ManagedAuthCredentialVaultItemSpec,
|
|
3220
|
+
type ManagedAuthCredentialVaultItemSpecInput as ManagedAuthCredentialVaultItemSpecInput,
|
|
3221
|
+
type ManagedAuthCredentialVaultItemState as ManagedAuthCredentialVaultItemState,
|
|
2970
3222
|
type OnePasswordCredentialAccountSpec as OnePasswordCredentialAccountSpec,
|
|
2971
3223
|
type OnePasswordCredentialAccountState as OnePasswordCredentialAccountState,
|
|
2972
3224
|
type OnePasswordCredentialVaultItemSpec as OnePasswordCredentialVaultItemSpec,
|
|
@@ -36,9 +36,17 @@ import {
|
|
|
36
36
|
ItemUpdateParams,
|
|
37
37
|
ItemUpsertParams,
|
|
38
38
|
Items,
|
|
39
|
+
KernelCardState,
|
|
40
|
+
KernelCardVaultItemSpec,
|
|
39
41
|
KernelCredentialVaultItemSpec,
|
|
40
42
|
KernelCredentialVaultItemSpecInput,
|
|
41
43
|
KernelCredentialVaultItemState,
|
|
44
|
+
KernelWalletState,
|
|
45
|
+
KernelWalletVaultItemSpec,
|
|
46
|
+
ManagedAuthCredentialVaultField,
|
|
47
|
+
ManagedAuthCredentialVaultItemSpec,
|
|
48
|
+
ManagedAuthCredentialVaultItemSpecInput,
|
|
49
|
+
ManagedAuthCredentialVaultItemState,
|
|
42
50
|
OnePasswordCredentialAccountSpec,
|
|
43
51
|
OnePasswordCredentialAccountState,
|
|
44
52
|
OnePasswordCredentialVaultItemSpec,
|
|
@@ -106,9 +114,11 @@ export class Vaults extends APIResource {
|
|
|
106
114
|
}
|
|
107
115
|
|
|
108
116
|
/**
|
|
109
|
-
* Unresolved payment operations block deletion.
|
|
110
|
-
*
|
|
111
|
-
*
|
|
117
|
+
* Unresolved payment operations block deletion. Deleting a connected Kernel wallet
|
|
118
|
+
* first blocks new payments on it, then removes its enrolled card. If that fails,
|
|
119
|
+
* the wallet is kept and keeps refusing payments; retry the deletion. Reconcile
|
|
120
|
+
* the original attempt with the provider or support first; deleting or recreating
|
|
121
|
+
* an item is not proof that a payment did not occur.
|
|
112
122
|
*
|
|
113
123
|
* @example
|
|
114
124
|
* ```ts
|
|
@@ -154,7 +164,12 @@ export interface Vault {
|
|
|
154
164
|
updated_at: string;
|
|
155
165
|
}
|
|
156
166
|
|
|
157
|
-
export interface VaultListParams extends OffsetPaginationParams {
|
|
167
|
+
export interface VaultListParams extends OffsetPaginationParams {
|
|
168
|
+
/**
|
|
169
|
+
* Case-insensitive substring match against vault name. IDs match by exact value.
|
|
170
|
+
*/
|
|
171
|
+
query?: string;
|
|
172
|
+
}
|
|
158
173
|
|
|
159
174
|
export interface VaultUpsertParams {
|
|
160
175
|
/**
|
|
@@ -199,9 +214,17 @@ export declare namespace Vaults {
|
|
|
199
214
|
type CredentialVaultItemUpdateRequest as CredentialVaultItemUpdateRequest,
|
|
200
215
|
type FillVaultItemOperationRequest as FillVaultItemOperationRequest,
|
|
201
216
|
type FillVaultItemOperationResult as FillVaultItemOperationResult,
|
|
217
|
+
type KernelCardState as KernelCardState,
|
|
218
|
+
type KernelCardVaultItemSpec as KernelCardVaultItemSpec,
|
|
202
219
|
type KernelCredentialVaultItemSpec as KernelCredentialVaultItemSpec,
|
|
203
220
|
type KernelCredentialVaultItemSpecInput as KernelCredentialVaultItemSpecInput,
|
|
204
221
|
type KernelCredentialVaultItemState as KernelCredentialVaultItemState,
|
|
222
|
+
type KernelWalletState as KernelWalletState,
|
|
223
|
+
type KernelWalletVaultItemSpec as KernelWalletVaultItemSpec,
|
|
224
|
+
type ManagedAuthCredentialVaultField as ManagedAuthCredentialVaultField,
|
|
225
|
+
type ManagedAuthCredentialVaultItemSpec as ManagedAuthCredentialVaultItemSpec,
|
|
226
|
+
type ManagedAuthCredentialVaultItemSpecInput as ManagedAuthCredentialVaultItemSpecInput,
|
|
227
|
+
type ManagedAuthCredentialVaultItemState as ManagedAuthCredentialVaultItemState,
|
|
205
228
|
type OnePasswordCredentialAccountSpec as OnePasswordCredentialAccountSpec,
|
|
206
229
|
type OnePasswordCredentialAccountState as OnePasswordCredentialAccountState,
|
|
207
230
|
type OnePasswordCredentialVaultItemSpec as OnePasswordCredentialVaultItemSpec,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.119.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.119.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.119.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.119.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|