@onkernel/sdk 0.103.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 (64) hide show
  1. package/CHANGELOG.md +18 -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/browsers/webmcp.d.mts +15 -5
  12. package/resources/browsers/webmcp.d.mts.map +1 -1
  13. package/resources/browsers/webmcp.d.ts +15 -5
  14. package/resources/browsers/webmcp.d.ts.map +1 -1
  15. package/resources/browsers/webmcp.js +8 -4
  16. package/resources/browsers/webmcp.js.map +1 -1
  17. package/resources/browsers/webmcp.mjs +8 -4
  18. package/resources/browsers/webmcp.mjs.map +1 -1
  19. package/resources/config-registry/analyses.d.mts +13 -0
  20. package/resources/config-registry/analyses.d.mts.map +1 -1
  21. package/resources/config-registry/analyses.d.ts +13 -0
  22. package/resources/config-registry/analyses.d.ts.map +1 -1
  23. package/resources/config-registry/analyses.js +15 -0
  24. package/resources/config-registry/analyses.js.map +1 -1
  25. package/resources/config-registry/analyses.mjs +15 -0
  26. package/resources/config-registry/analyses.mjs.map +1 -1
  27. package/resources/config-registry/config-registry.d.mts +18 -15
  28. package/resources/config-registry/config-registry.d.mts.map +1 -1
  29. package/resources/config-registry/config-registry.d.ts +18 -15
  30. package/resources/config-registry/config-registry.d.ts.map +1 -1
  31. package/resources/config-registry/config-registry.js.map +1 -1
  32. package/resources/config-registry/config-registry.mjs.map +1 -1
  33. package/resources/invocations.d.mts +1 -1
  34. package/resources/invocations.d.ts +1 -1
  35. package/resources/vaults/index.d.mts +1 -1
  36. package/resources/vaults/index.d.mts.map +1 -1
  37. package/resources/vaults/index.d.ts +1 -1
  38. package/resources/vaults/index.d.ts.map +1 -1
  39. package/resources/vaults/index.js.map +1 -1
  40. package/resources/vaults/index.mjs.map +1 -1
  41. package/resources/vaults/items.d.mts +58 -33
  42. package/resources/vaults/items.d.mts.map +1 -1
  43. package/resources/vaults/items.d.ts +58 -33
  44. package/resources/vaults/items.d.ts.map +1 -1
  45. package/resources/vaults/vaults.d.mts +2 -2
  46. package/resources/vaults/vaults.d.mts.map +1 -1
  47. package/resources/vaults/vaults.d.ts +2 -2
  48. package/resources/vaults/vaults.d.ts.map +1 -1
  49. package/resources/vaults/vaults.js.map +1 -1
  50. package/resources/vaults/vaults.mjs.map +1 -1
  51. package/src/resources/browser-pools.ts +1 -1
  52. package/src/resources/browsers/browsers.ts +12 -4
  53. package/src/resources/browsers/webmcp.ts +15 -5
  54. package/src/resources/config-registry/analyses.ts +16 -0
  55. package/src/resources/config-registry/config-registry.ts +19 -16
  56. package/src/resources/invocations.ts +1 -1
  57. package/src/resources/vaults/index.ts +1 -0
  58. package/src/resources/vaults/items.ts +61 -33
  59. package/src/resources/vaults/vaults.ts +2 -0
  60. package/src/version.ts +1 -1
  61. package/version.d.mts +1 -1
  62. package/version.d.ts +1 -1
  63. package/version.js +1 -1
  64. package/version.mjs +1 -1
@@ -47,6 +47,22 @@ export class Analyses extends APIResource {
47
47
  { query, ...options },
48
48
  );
49
49
  }
50
+
51
+ /**
52
+ * Requests cancellation of a running project-scoped analysis. Cancellation is
53
+ * asynchronous; poll the analysis until its status becomes canceled. Repeating the
54
+ * request after the analysis reaches a terminal state returns the existing
55
+ * outcome.
56
+ *
57
+ * @example
58
+ * ```ts
59
+ * const configRegistryResponse =
60
+ * await client.configRegistry.analyses.cancel('id');
61
+ * ```
62
+ */
63
+ cancel(id: string, options?: RequestOptions): APIPromise<ConfigRegistryAPI.ConfigRegistryResponse> {
64
+ return this._client.post(path`/config-registry/analyses/${id}/cancel`, options);
65
+ }
50
66
  }
51
67
 
52
68
  export interface AnalysisListParams extends OffsetPaginationParams {
@@ -104,6 +104,12 @@ export interface Analysis {
104
104
  * Lifecycle status of a background analysis.
105
105
  */
106
106
  status: 'running' | 'completed' | 'failed' | 'canceled' | 'expired';
107
+
108
+ /**
109
+ * The workload description supplied for this analysis. Null when the analysis only
110
+ * tested connectivity.
111
+ */
112
+ intent?: string | null;
107
113
  }
108
114
 
109
115
  export interface AnalysisSummary {
@@ -208,11 +214,11 @@ export interface Evidence {
208
214
  success_rate: number;
209
215
 
210
216
  /**
211
- * Most recent contributing run where this config met the success threshold.
212
- * Omitted for knowledge assembled from runs that did not independently meet the
213
- * threshold.
217
+ * Most recent contributing run whose evidence supported recommending this
218
+ * configuration. Omitted when no individual run independently met the
219
+ * recommendation threshold.
214
220
  */
215
- last_verified_at?: string | null;
221
+ last_supported_at?: string | null;
216
222
  }
217
223
 
218
224
  export interface LookupRequest {
@@ -453,7 +459,9 @@ export interface Recommendation {
453
459
  evidence: Evidence;
454
460
 
455
461
  /**
456
- * Specificity of knowledge matched for this recommendation.
462
+ * Specificity of knowledge matched for this recommendation. Exact matches use
463
+ * knowledge for the requested target; host and domain matches use broader fallback
464
+ * knowledge.
457
465
  */
458
466
  match_scope: 'exact' | 'host' | 'domain';
459
467
 
@@ -468,13 +476,6 @@ export interface Recommendation {
468
476
  proxy: Proxy;
469
477
 
470
478
  type: 'recommendation';
471
-
472
- /**
473
- * Exact matches meet the evidence threshold; host and domain fallbacks are
474
- * inferred. Check evidence.last_verified_at for successful verification age and
475
- * last_observed_at for the latest evidence.
476
- */
477
- verification: 'verified' | 'inferred';
478
479
  }
479
480
 
480
481
  /**
@@ -542,8 +543,9 @@ export interface ResolveRequest {
542
543
  * any non-HTTPS destination as off-site and will not drive an http one. Kernel
543
544
  * uses it to drive the browser further into the site, where it can observe
544
545
  * protections that only appear once a session interacts. When this target already
545
- * has a verified configuration, the run confirms that one instead of re-deriving
546
- * the whole matrix, so supplying an intent narrows what can be recommended.
546
+ * has a recommended configuration, the run confirms that one instead of
547
+ * re-deriving the whole matrix, so supplying an intent narrows what can be
548
+ * recommended.
547
549
  */
548
550
  intent?: string;
549
551
  }
@@ -609,8 +611,9 @@ export interface ConfigRegistryResolveParams {
609
611
  * any non-HTTPS destination as off-site and will not drive an http one. Kernel
610
612
  * uses it to drive the browser further into the site, where it can observe
611
613
  * protections that only appear once a session interacts. When this target already
612
- * has a verified configuration, the run confirms that one instead of re-deriving
613
- * the whole matrix, so supplying an intent narrows what can be recommended.
614
+ * has a recommended configuration, the run confirms that one instead of
615
+ * re-deriving the whole matrix, so supplying an intent narrows what can be
616
+ * recommended.
614
617
  */
615
618
  intent?: string;
616
619
  }
@@ -566,7 +566,7 @@ export namespace InvocationListBrowsersResponse {
566
566
  proxy_id?: string;
567
567
 
568
568
  /**
569
- * URL the session was asked to navigate to on creation, if any. Recorded for
569
+ * URL the session was most recently asked to navigate to, if any. Recorded for
570
570
  * debugging. Navigation is fire-and-forget — the URL is dispatched to the browser
571
571
  * without waiting for it to load, and any errors (DNS failure, bad status,
572
572
  * timeout) are silently dropped. Captures what was requested, not what the browser
@@ -4,6 +4,7 @@ export {
4
4
  Items,
5
5
  type AgentcardCheckoutAuthorization,
6
6
  type AgentcardCheckoutPreparation,
7
+ type AgentcardPreparedProcessor,
7
8
  type AuthorizeVaultItemOperationRequest,
8
9
  type CardVaultItemSpec,
9
10
  type CardVaultItemState,
@@ -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.103.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.103.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.103.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.103.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.103.0'; // x-release-please-version
1
+ export const VERSION = '0.106.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map