@onkernel/sdk 0.104.0 → 0.106.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 (55) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/package.json +1 -1
  3. package/resources/browser-pools.d.mts +1 -1
  4. package/resources/browser-pools.d.ts +1 -1
  5. package/resources/browsers/browsers.d.mts +11 -4
  6. package/resources/browsers/browsers.d.mts.map +1 -1
  7. package/resources/browsers/browsers.d.ts +11 -4
  8. package/resources/browsers/browsers.d.ts.map +1 -1
  9. package/resources/browsers/browsers.js.map +1 -1
  10. package/resources/browsers/browsers.mjs.map +1 -1
  11. package/resources/config-registry/analyses.d.mts +13 -0
  12. package/resources/config-registry/analyses.d.mts.map +1 -1
  13. package/resources/config-registry/analyses.d.ts +13 -0
  14. package/resources/config-registry/analyses.d.ts.map +1 -1
  15. package/resources/config-registry/analyses.js +15 -0
  16. package/resources/config-registry/analyses.js.map +1 -1
  17. package/resources/config-registry/analyses.mjs +15 -0
  18. package/resources/config-registry/analyses.mjs.map +1 -1
  19. package/resources/config-registry/config-registry.d.mts +18 -15
  20. package/resources/config-registry/config-registry.d.mts.map +1 -1
  21. package/resources/config-registry/config-registry.d.ts +18 -15
  22. package/resources/config-registry/config-registry.d.ts.map +1 -1
  23. package/resources/config-registry/config-registry.js.map +1 -1
  24. package/resources/config-registry/config-registry.mjs.map +1 -1
  25. package/resources/invocations.d.mts +1 -1
  26. package/resources/invocations.d.ts +1 -1
  27. package/resources/vaults/index.d.mts +1 -1
  28. package/resources/vaults/index.d.mts.map +1 -1
  29. package/resources/vaults/index.d.ts +1 -1
  30. package/resources/vaults/index.d.ts.map +1 -1
  31. package/resources/vaults/index.js.map +1 -1
  32. package/resources/vaults/index.mjs.map +1 -1
  33. package/resources/vaults/items.d.mts +58 -33
  34. package/resources/vaults/items.d.mts.map +1 -1
  35. package/resources/vaults/items.d.ts +58 -33
  36. package/resources/vaults/items.d.ts.map +1 -1
  37. package/resources/vaults/vaults.d.mts +2 -2
  38. package/resources/vaults/vaults.d.mts.map +1 -1
  39. package/resources/vaults/vaults.d.ts +2 -2
  40. package/resources/vaults/vaults.d.ts.map +1 -1
  41. package/resources/vaults/vaults.js.map +1 -1
  42. package/resources/vaults/vaults.mjs.map +1 -1
  43. package/src/resources/browser-pools.ts +1 -1
  44. package/src/resources/browsers/browsers.ts +12 -4
  45. package/src/resources/config-registry/analyses.ts +16 -0
  46. package/src/resources/config-registry/config-registry.ts +19 -16
  47. package/src/resources/invocations.ts +1 -1
  48. package/src/resources/vaults/index.ts +1 -0
  49. package/src/resources/vaults/items.ts +61 -33
  50. package/src/resources/vaults/vaults.ts +2 -0
  51. package/src/version.ts +1 -1
  52. package/version.d.mts +1 -1
  53. package/version.d.ts +1 -1
  54. package/version.js +1 -1
  55. package/version.mjs +1 -1
@@ -256,19 +256,21 @@ export interface AgentcardCheckoutAuthorization {
256
256
  }
257
257
 
258
258
  /**
259
- * One-use Square checkout preparation. Keep the approval page open through token
260
- * handoff. The amount is display-only and does not constrain the merchant's
261
- * eventual charge.
259
+ * One-use processor-bound checkout preparation. Keep the approval page open
260
+ * through token handoff. The amount is display-only and does not constrain the
261
+ * merchant's eventual charge.
262
262
  */
263
263
  export interface AgentcardCheckoutPreparation {
264
264
  browser_id: string;
265
265
 
266
266
  created_at: string;
267
267
 
268
- environment: 'production' | 'sandbox';
268
+ environment: 'production' | 'sandbox' | 'shared';
269
269
 
270
270
  merchant_origin: string;
271
271
 
272
+ psp: AgentcardPreparedProcessor;
273
+
272
274
  /**
273
275
  * Preparation consumed means egress claimed the preparation and it cannot be
274
276
  * reused. It does not mean the attempt settled. Use the enclosing item's status as
@@ -289,6 +291,8 @@ export interface AgentcardCheckoutPreparation {
289
291
  expires_at?: string;
290
292
  }
291
293
 
294
+ export type AgentcardPreparedProcessor = 'square' | 'braintree' | 'worldpay' | 'bambora' | 'mercado_pago';
295
+
292
296
  /**
293
297
  * Authorize a Link card using its existing purchase specification. Use only after
294
298
  * explicit user approval and when the item advertises authorize. Do not
@@ -429,9 +433,17 @@ export namespace CardVaultItemSpec {
429
433
  }
430
434
  }
431
435
 
436
+ /**
437
+ * Issued Link cards retain encrypted card material for the fill operation. Link
438
+ * cards do not expose aliases or support egress substitution.
439
+ */
432
440
  export type CardVaultItemState = CardVaultItemState.LinkCardState | CardVaultItemState.AgentCardCardState;
433
441
 
434
442
  export namespace CardVaultItemState {
443
+ /**
444
+ * Issued Link cards retain encrypted card material for the fill operation. Link
445
+ * cards do not expose aliases or support egress substitution.
446
+ */
435
447
  export interface LinkCardState {
436
448
  provider: 'link';
437
449
 
@@ -451,8 +463,6 @@ export namespace CardVaultItemState {
451
463
  | 'declined'
452
464
  | 'recovery_required';
453
465
 
454
- aliases?: ItemsAPI.VaultCardAliases;
455
-
456
466
  domains?: Array<string>;
457
467
 
458
468
  masks?: LinkCardState.Masks;
@@ -507,9 +517,9 @@ export namespace CardVaultItemState {
507
517
  masks?: AgentCardCardState.Masks;
508
518
 
509
519
  /**
510
- * One-use Square checkout preparation. Keep the approval page open through token
511
- * handoff. The amount is display-only and does not constrain the merchant's
512
- * eventual charge.
520
+ * One-use processor-bound checkout preparation. Keep the approval page open
521
+ * through token handoff. The amount is display-only and does not constrain the
522
+ * merchant's eventual charge.
513
523
  */
514
524
  preparation?: ItemsAPI.AgentcardCheckoutPreparation;
515
525
 
@@ -891,10 +901,9 @@ export interface CredentialVaultItemUpdateRequest {
891
901
  *
892
902
  * Fill in request order and stop on the first failure. This operation is not
893
903
  * atomic: previously filled fields are not rolled back. Never submit the form or
894
- * click buttons, though input/change events may trigger site behavior. Fill is the
895
- * preferred browser-checkout path. Aliases remain an alternative for explicitly
896
- * chosen egress-substitution integrations. Do not automatically retry or fall back
897
- * to aliases after a failed or indeterminate operation.
904
+ * click buttons, though input/change events may trigger site behavior. Link cards
905
+ * use fill for browser checkout and do not expose aliases or support egress
906
+ * substitution. Do not automatically retry a failed or indeterminate operation.
898
907
  *
899
908
  * Secret values are never returned or included in operation logs, traces, audit
900
909
  * events, or error details. This does not prevent an agent with unrestricted
@@ -947,8 +956,8 @@ export interface FillVaultItemOperationResult {
947
956
  }
948
957
 
949
958
  /**
950
- * Prepare an unused AgentCard card for Square checkout. Deliver the returned
951
- * approval URL and keep the approval page open. Poll the item until
959
+ * Prepare an unused AgentCard card for a supported tokenization checkout. Deliver
960
+ * the returned approval URL and keep the approval page open. Poll the item until
952
961
  * ready_to_submit, then submit native Pay before preparation.expires_at. Readiness
953
962
  * lasts at most 30 seconds. Unused preparations expire automatically. Preparations
954
963
  * are single-use even after failure or expiry; do not automatically retry and
@@ -956,11 +965,11 @@ export interface FillVaultItemOperationResult {
956
965
  */
957
966
  export interface PrepareCheckoutVaultItemOperationRequest {
958
967
  /**
959
- * Required when preparing an unused AgentCard card for Square. Consent is bound to
960
- * this browser and declared merchant origin, not a tab. Wait for the item's
961
- * ready_to_submit status before native Pay and submit within its readiness
962
- * deadline. Unused preparations expire automatically; every preparation is
963
- * single-use, including after failure or expiry.
968
+ * Required when preparing an unused AgentCard card for a supported tokenization
969
+ * processor. Consent is bound to this browser and declared merchant origin, not a
970
+ * tab. Wait for the item's ready_to_submit status before native Pay and submit
971
+ * within its readiness deadline. Unused preparations expire automatically; every
972
+ * preparation is single-use, including after failure or expiry.
964
973
  */
965
974
  checkout: VaultCheckoutContext;
966
975
 
@@ -1033,11 +1042,11 @@ export namespace VaultCardFillField {
1033
1042
  }
1034
1043
 
1035
1044
  /**
1036
- * Required when preparing an unused AgentCard card for Square. Consent is bound to
1037
- * this browser and declared merchant origin, not a tab. Wait for the item's
1038
- * ready_to_submit status before native Pay and submit within its readiness
1039
- * deadline. Unused preparations expire automatically; every preparation is
1040
- * single-use, including after failure or expiry.
1045
+ * Required when preparing an unused AgentCard card for a supported tokenization
1046
+ * processor. Consent is bound to this browser and declared merchant origin, not a
1047
+ * tab. Wait for the item's ready_to_submit status before native Pay and submit
1048
+ * within its readiness deadline. Unused preparations expire automatically; every
1049
+ * preparation is single-use, including after failure or expiry.
1041
1050
  */
1042
1051
  export interface VaultCheckoutContext {
1043
1052
  /**
@@ -1046,15 +1055,24 @@ export interface VaultCheckoutContext {
1046
1055
  browser_id: string;
1047
1056
 
1048
1057
  /**
1049
- * Square environment, independent of the AgentCard credential mode.
1058
+ * Use production or sandbox for Square, Braintree and Worldpay; shared for Bambora
1059
+ * and Mercado Pago. Shared endpoints do not establish test mode. Merchant
1060
+ * credentials/configuration determine processor test mode, independently of the
1061
+ * AgentCard credential mode.
1050
1062
  */
1051
- environment: 'production' | 'sandbox';
1063
+ environment: 'production' | 'sandbox' | 'shared';
1052
1064
 
1053
1065
  /**
1054
- * Canonical HTTPS origin of the top-level merchant document, not the Square
1066
+ * Canonical HTTPS origin of the top-level merchant document, not a processor
1055
1067
  * iframe. HTTP localhost is accepted for tests.
1056
1068
  */
1057
1069
  merchant_origin: string;
1070
+
1071
+ /**
1072
+ * Tokenization processor. Omit for Square compatibility. Non-Square processors
1073
+ * require multi-processor preparation enablement.
1074
+ */
1075
+ psp?: AgentcardPreparedProcessor;
1058
1076
  }
1059
1077
 
1060
1078
  export interface VaultFillField {
@@ -1190,6 +1208,10 @@ export namespace VaultItem {
1190
1208
  */
1191
1209
  spec: ItemsAPI.CardVaultItemSpec;
1192
1210
 
1211
+ /**
1212
+ * Issued Link cards retain encrypted card material for the fill operation. Link
1213
+ * cards do not expose aliases or support egress substitution.
1214
+ */
1193
1215
  state: ItemsAPI.CardVaultItemState;
1194
1216
 
1195
1217
  type: 'card';
@@ -1384,6 +1406,10 @@ export namespace VaultItemOperationResponse {
1384
1406
  */
1385
1407
  spec: ItemsAPI.CardVaultItemSpec;
1386
1408
 
1409
+ /**
1410
+ * Issued Link cards retain encrypted card material for the fill operation. Link
1411
+ * cards do not expose aliases or support egress substitution.
1412
+ */
1387
1413
  state: ItemsAPI.CardVaultItemState;
1388
1414
 
1389
1415
  type: 'card';
@@ -1723,11 +1749,12 @@ export declare namespace ItemPerformOperationParams {
1723
1749
  id_or_name: string;
1724
1750
 
1725
1751
  /**
1726
- * Body param: Required when preparing an unused AgentCard card for Square. Consent
1727
- * is bound to this browser and declared merchant origin, not a tab. Wait for the
1728
- * item's ready_to_submit status before native Pay and submit within its readiness
1729
- * deadline. Unused preparations expire automatically; every preparation is
1730
- * single-use, including after failure or expiry.
1752
+ * Body param: Required when preparing an unused AgentCard card for a supported
1753
+ * tokenization processor. Consent is bound to this browser and declared merchant
1754
+ * origin, not a tab. Wait for the item's ready_to_submit status before native Pay
1755
+ * and submit within its readiness deadline. Unused preparations expire
1756
+ * automatically; every preparation is single-use, including after failure or
1757
+ * expiry.
1731
1758
  */
1732
1759
  checkout: VaultCheckoutContext;
1733
1760
 
@@ -1990,6 +2017,7 @@ export declare namespace Items {
1990
2017
  export {
1991
2018
  type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization,
1992
2019
  type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation,
2020
+ type AgentcardPreparedProcessor as AgentcardPreparedProcessor,
1993
2021
  type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest,
1994
2022
  type CardVaultItemSpec as CardVaultItemSpec,
1995
2023
  type CardVaultItemState as CardVaultItemState,
@@ -5,6 +5,7 @@ import * as ItemsAPI from './items';
5
5
  import {
6
6
  AgentcardCheckoutAuthorization,
7
7
  AgentcardCheckoutPreparation,
8
+ AgentcardPreparedProcessor,
8
9
  AuthorizeVaultItemOperationRequest,
9
10
  CardVaultItemSpec,
10
11
  CardVaultItemState,
@@ -158,6 +159,7 @@ export declare namespace Vaults {
158
159
  Items as Items,
159
160
  type AgentcardCheckoutAuthorization as AgentcardCheckoutAuthorization,
160
161
  type AgentcardCheckoutPreparation as AgentcardCheckoutPreparation,
162
+ type AgentcardPreparedProcessor as AgentcardPreparedProcessor,
161
163
  type AuthorizeVaultItemOperationRequest as AuthorizeVaultItemOperationRequest,
162
164
  type CardVaultItemSpec as CardVaultItemSpec,
163
165
  type CardVaultItemState as CardVaultItemState,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.104.0'; // x-release-please-version
1
+ export const VERSION = '0.106.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.104.0";
1
+ export declare const VERSION = "0.106.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.104.0";
1
+ export declare const VERSION = "0.106.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.104.0'; // x-release-please-version
4
+ exports.VERSION = '0.106.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.104.0'; // x-release-please-version
1
+ export const VERSION = '0.106.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map