@onkernel/sdk 0.109.0 → 0.111.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 (85) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/client.d.mts +6 -0
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -0
  5. package/client.d.ts.map +1 -1
  6. package/client.js +6 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +6 -0
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/auth/connections.d.mts +26 -8
  12. package/resources/auth/connections.d.mts.map +1 -1
  13. package/resources/auth/connections.d.ts +26 -8
  14. package/resources/auth/connections.d.ts.map +1 -1
  15. package/resources/browsers/telemetry.d.mts +13 -4
  16. package/resources/browsers/telemetry.d.mts.map +1 -1
  17. package/resources/browsers/telemetry.d.ts +13 -4
  18. package/resources/browsers/telemetry.d.ts.map +1 -1
  19. package/resources/index.d.mts +1 -0
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +1 -0
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +3 -1
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +1 -0
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/search/contents.d.mts +267 -0
  28. package/resources/search/contents.d.mts.map +1 -0
  29. package/resources/search/contents.d.ts +267 -0
  30. package/resources/search/contents.d.ts.map +1 -0
  31. package/resources/search/contents.js +31 -0
  32. package/resources/search/contents.js.map +1 -0
  33. package/resources/search/contents.mjs +27 -0
  34. package/resources/search/contents.mjs.map +1 -0
  35. package/resources/search/index.d.mts +4 -0
  36. package/resources/search/index.d.mts.map +1 -0
  37. package/resources/search/index.d.ts +4 -0
  38. package/resources/search/index.d.ts.map +1 -0
  39. package/resources/search/index.js +11 -0
  40. package/resources/search/index.js.map +1 -0
  41. package/resources/search/index.mjs +5 -0
  42. package/resources/search/index.mjs.map +1 -0
  43. package/resources/search/providers.d.mts +141 -0
  44. package/resources/search/providers.d.mts.map +1 -0
  45. package/resources/search/providers.d.ts +141 -0
  46. package/resources/search/providers.d.ts.map +1 -0
  47. package/resources/search/providers.js +25 -0
  48. package/resources/search/providers.js.map +1 -0
  49. package/resources/search/providers.mjs +21 -0
  50. package/resources/search/providers.mjs.map +1 -0
  51. package/resources/search/search.d.mts +1187 -0
  52. package/resources/search/search.d.mts.map +1 -0
  53. package/resources/search/search.d.ts +1187 -0
  54. package/resources/search/search.d.ts.map +1 -0
  55. package/resources/search/search.js +58 -0
  56. package/resources/search/search.js.map +1 -0
  57. package/resources/search/search.mjs +53 -0
  58. package/resources/search/search.mjs.map +1 -0
  59. package/resources/search.d.mts +2 -0
  60. package/resources/search.d.mts.map +1 -0
  61. package/resources/search.d.ts +2 -0
  62. package/resources/search.d.ts.map +1 -0
  63. package/resources/search.js +6 -0
  64. package/resources/search.js.map +1 -0
  65. package/resources/search.mjs +3 -0
  66. package/resources/search.mjs.map +1 -0
  67. package/resources/vaults/items.d.mts +35 -14
  68. package/resources/vaults/items.d.mts.map +1 -1
  69. package/resources/vaults/items.d.ts +35 -14
  70. package/resources/vaults/items.d.ts.map +1 -1
  71. package/src/client.ts +30 -0
  72. package/src/resources/auth/connections.ts +28 -7
  73. package/src/resources/browsers/telemetry.ts +17 -4
  74. package/src/resources/index.ts +12 -0
  75. package/src/resources/search/contents.ts +327 -0
  76. package/src/resources/search/index.ts +16 -0
  77. package/src/resources/search/providers.ts +197 -0
  78. package/src/resources/search/search.ts +1496 -0
  79. package/src/resources/search.ts +3 -0
  80. package/src/resources/vaults/items.ts +43 -14
  81. package/src/version.ts +1 -1
  82. package/version.d.mts +1 -1
  83. package/version.d.ts +1 -1
  84. package/version.js +1 -1
  85. package/version.mjs +1 -1
@@ -0,0 +1,3 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ export * from './search/index';
@@ -259,8 +259,10 @@ export interface AgentcardCheckoutAuthorization {
259
259
 
260
260
  /**
261
261
  * One-use processor-bound checkout preparation. Keep the approval page open
262
- * through token handoff. The amount is display-only and does not constrain the
263
- * merchant's eventual charge.
262
+ * through device handoff, including Adyen encryption. The amount is declared by
263
+ * the caller and does not constrain the merchant's eventual charge. Adyen device
264
+ * approval and browser Authorised responses are not capture or fulfillment
265
+ * evidence.
264
266
  */
265
267
  export interface AgentcardCheckoutPreparation {
266
268
  browser_id: string;
@@ -293,7 +295,13 @@ export interface AgentcardCheckoutPreparation {
293
295
  expires_at?: string;
294
296
  }
295
297
 
296
- export type AgentcardPreparedProcessor = 'square' | 'braintree' | 'worldpay' | 'bambora' | 'mercado_pago';
298
+ export type AgentcardPreparedProcessor =
299
+ | 'square'
300
+ | 'braintree'
301
+ | 'worldpay'
302
+ | 'bambora'
303
+ | 'mercado_pago'
304
+ | 'adyen';
297
305
 
298
306
  /**
299
307
  * Authorize a Link card using its existing purchase specification. Use only after
@@ -522,8 +530,10 @@ export namespace CardVaultItemState {
522
530
 
523
531
  /**
524
532
  * One-use processor-bound checkout preparation. Keep the approval page open
525
- * through token handoff. The amount is display-only and does not constrain the
526
- * merchant's eventual charge.
533
+ * through device handoff, including Adyen encryption. The amount is declared by
534
+ * the caller and does not constrain the merchant's eventual charge. Adyen device
535
+ * approval and browser Authorised responses are not capture or fulfillment
536
+ * evidence.
527
537
  */
528
538
  preparation?: ItemsAPI.AgentcardCheckoutPreparation;
529
539
 
@@ -630,6 +640,14 @@ export interface CredentialVaultFieldDefinition {
630
640
  * unsupported.
631
641
  */
632
642
  type: CredentialVaultFieldType;
643
+
644
+ /**
645
+ * Optional human-readable display label. It is returned as non-secret metadata and
646
+ * never affects value keys, updates, or browser fills. Use single-line, trimmed
647
+ * display text without control or formatting characters. The server enforces a
648
+ * 128-byte UTF-8 limit.
649
+ */
650
+ label?: string;
633
651
  }
634
652
 
635
653
  export interface CredentialVaultFieldInput {
@@ -650,6 +668,14 @@ export interface CredentialVaultFieldInput {
650
668
  */
651
669
  type: CredentialVaultFieldType;
652
670
 
671
+ /**
672
+ * Optional human-readable display label. It is returned as non-secret metadata and
673
+ * never affects value keys, updates, or browser fills. Use single-line, trimmed
674
+ * display text without control or formatting characters. The server enforces a
675
+ * 128-byte UTF-8 limit.
676
+ */
677
+ label?: string;
678
+
653
679
  required?: boolean;
654
680
 
655
681
  /**
@@ -981,8 +1007,8 @@ export interface FillVaultItemOperationResult {
981
1007
  }
982
1008
 
983
1009
  /**
984
- * Prepare an unused AgentCard card for a supported tokenization checkout. Deliver
985
- * the returned approval URL and keep the approval page open. Poll the item until
1010
+ * Prepare an unused AgentCard card for a supported checkout. Deliver the returned
1011
+ * approval URL and keep the approval page open. Poll the item until
986
1012
  * ready_to_submit, then submit native Pay before preparation.expires_at. Readiness
987
1013
  * lasts at most 30 seconds. Unused preparations expire automatically. Preparations
988
1014
  * are single-use even after failure or expiry; do not automatically retry and
@@ -990,7 +1016,7 @@ export interface FillVaultItemOperationResult {
990
1016
  */
991
1017
  export interface PrepareCheckoutVaultItemOperationRequest {
992
1018
  /**
993
- * Required when preparing an unused AgentCard card for a supported tokenization
1019
+ * Required when preparing an unused AgentCard card for a supported checkout
994
1020
  * processor. Consent is bound to this browser and declared merchant origin, not a
995
1021
  * tab. Wait for the item's ready_to_submit status before native Pay and submit
996
1022
  * within its readiness deadline. Unused preparations expire automatically; every
@@ -1067,7 +1093,7 @@ export namespace VaultCardFillField {
1067
1093
  }
1068
1094
 
1069
1095
  /**
1070
- * Required when preparing an unused AgentCard card for a supported tokenization
1096
+ * Required when preparing an unused AgentCard card for a supported checkout
1071
1097
  * processor. Consent is bound to this browser and declared merchant origin, not a
1072
1098
  * tab. Wait for the item's ready_to_submit status before native Pay and submit
1073
1099
  * within its readiness deadline. Unused preparations expire automatically; every
@@ -1080,8 +1106,8 @@ export interface VaultCheckoutContext {
1080
1106
  browser_id: string;
1081
1107
 
1082
1108
  /**
1083
- * Use production or sandbox for Square, Braintree and Worldpay; shared for Bambora
1084
- * and Mercado Pago. Shared endpoints do not establish test mode. Merchant
1109
+ * Use production or sandbox for Square, Braintree, Worldpay and Adyen; shared for
1110
+ * Bambora and Mercado Pago. Shared endpoints do not establish test mode. Merchant
1085
1111
  * credentials/configuration determine processor test mode, independently of the
1086
1112
  * AgentCard credential mode.
1087
1113
  */
@@ -1094,8 +1120,11 @@ export interface VaultCheckoutContext {
1094
1120
  merchant_origin: string;
1095
1121
 
1096
1122
  /**
1097
- * Tokenization processor. Omit for Square compatibility. Non-Square processors
1098
- * require multi-processor preparation enablement.
1123
+ * Checkout processor. Omit for Square compatibility. Adyen supports fresh-card
1124
+ * Sessions requests on Adyen hosts only. Use public dummy card fields, not vault
1125
+ * aliases. The unique armed preparation is associated with the subsequent eligible
1126
+ * request from this browser and declared merchant origin; competing preparations
1127
+ * are rejected.
1099
1128
  */
1100
1129
  psp?: AgentcardPreparedProcessor;
1101
1130
  }
@@ -1775,7 +1804,7 @@ export declare namespace ItemPerformOperationParams {
1775
1804
 
1776
1805
  /**
1777
1806
  * Body param: Required when preparing an unused AgentCard card for a supported
1778
- * tokenization processor. Consent is bound to this browser and declared merchant
1807
+ * checkout processor. Consent is bound to this browser and declared merchant
1779
1808
  * origin, not a tab. Wait for the item's ready_to_submit status before native Pay
1780
1809
  * and submit within its readiness deadline. Unused preparations expire
1781
1810
  * automatically; every preparation is single-use, including after failure or
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.109.0'; // x-release-please-version
1
+ export const VERSION = '0.111.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.109.0";
1
+ export declare const VERSION = "0.111.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.109.0";
1
+ export declare const VERSION = "0.111.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.109.0'; // x-release-please-version
4
+ exports.VERSION = '0.111.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.109.0'; // x-release-please-version
1
+ export const VERSION = '0.111.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map