@dynamic-labs/sdk-api 0.0.1043 → 0.0.1045

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.1043",
3
+ "version": "0.0.1045",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
package/src/index.cjs CHANGED
@@ -2796,6 +2796,10 @@ Object.defineProperty(exports, 'SanctionsWalletBlockedEventPayloadKeyOwnerEnum',
2796
2796
  enumerable: true,
2797
2797
  get: function () { return SanctionsWalletBlockedEventPayload.SanctionsWalletBlockedEventPayloadKeyOwnerEnum; }
2798
2798
  });
2799
+ Object.defineProperty(exports, 'SanctionsWalletBlockedEventPayloadOriginEnum', {
2800
+ enumerable: true,
2801
+ get: function () { return SanctionsWalletBlockedEventPayload.SanctionsWalletBlockedEventPayloadOriginEnum; }
2802
+ });
2799
2803
  Object.defineProperty(exports, 'SanctionsWalletBlockedEventPayloadSanctionsProviderEnum', {
2800
2804
  enumerable: true,
2801
2805
  get: function () { return SanctionsWalletBlockedEventPayload.SanctionsWalletBlockedEventPayloadSanctionsProviderEnum; }
package/src/index.js CHANGED
@@ -560,7 +560,7 @@ export { RevokeDelegatedAccessResponseFromJSON, RevokeDelegatedAccessResponseFro
560
560
  export { RevokeDelegatedAccessWalletResultFromJSON, RevokeDelegatedAccessWalletResultFromJSONTyped, RevokeDelegatedAccessWalletResultToJSON } from './models/RevokeDelegatedAccessWalletResult.js';
561
561
  export { RoleEnum, RoleEnumFromJSON, RoleEnumFromJSONTyped, RoleEnumToJSON } from './models/RoleEnum.js';
562
562
  export { RoomTypeEnum, RoomTypeEnumFromJSON, RoomTypeEnumFromJSONTyped, RoomTypeEnumToJSON } from './models/RoomTypeEnum.js';
563
- export { SanctionsWalletBlockedEventPayloadFromJSON, SanctionsWalletBlockedEventPayloadFromJSONTyped, SanctionsWalletBlockedEventPayloadKeyOwnerEnum, SanctionsWalletBlockedEventPayloadSanctionsProviderEnum, SanctionsWalletBlockedEventPayloadToJSON } from './models/SanctionsWalletBlockedEventPayload.js';
563
+ export { SanctionsWalletBlockedEventPayloadFromJSON, SanctionsWalletBlockedEventPayloadFromJSONTyped, SanctionsWalletBlockedEventPayloadKeyOwnerEnum, SanctionsWalletBlockedEventPayloadOriginEnum, SanctionsWalletBlockedEventPayloadSanctionsProviderEnum, SanctionsWalletBlockedEventPayloadToJSON } from './models/SanctionsWalletBlockedEventPayload.js';
564
564
  export { ScanWebsiteUrlRequestFromJSON, ScanWebsiteUrlRequestFromJSONTyped, ScanWebsiteUrlRequestToJSON } from './models/ScanWebsiteUrlRequest.js';
565
565
  export { ScanWebsiteUrlResponseFromJSON, ScanWebsiteUrlResponseFromJSONTyped, ScanWebsiteUrlResponseToJSON } from './models/ScanWebsiteUrlResponse.js';
566
566
  export { SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSON, SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSONTyped, SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesToJSON, SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum } from './models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.js';
@@ -23,7 +23,7 @@ export interface FlowSourceResponse {
23
23
  */
24
24
  sessionExpiresAt: Date;
25
25
  /**
26
- * Opaque capability token for authenticating subsequent calls on this flow (quote/prepare/broadcast). Minted by the source endpoint and returned exactly once — store it immediately. At most one live token exists per flow at a time. Format: dct_<base64url>.
26
+ * Opaque capability token for authenticating subsequent calls on this flow (quote/prepare/broadcast). Minted by the source endpoint and returned exactly once — store it immediately. At most one live token exists per flow at a time. Format: dft_<base64url>.
27
27
  * @type {string}
28
28
  * @memberof FlowSourceResponse
29
29
  */
@@ -28,6 +28,19 @@ exports.SanctionsWalletBlockedEventPayloadSanctionsProviderEnum = void 0;
28
28
  * @export
29
29
  * @enum {string}
30
30
  */
31
+ exports.SanctionsWalletBlockedEventPayloadOriginEnum = void 0;
32
+ (function (SanctionsWalletBlockedEventPayloadOriginEnum) {
33
+ SanctionsWalletBlockedEventPayloadOriginEnum["SignIn"] = "signIn";
34
+ SanctionsWalletBlockedEventPayloadOriginEnum["WalletConnect"] = "walletConnect";
35
+ SanctionsWalletBlockedEventPayloadOriginEnum["CheckoutDestination"] = "checkoutDestination";
36
+ SanctionsWalletBlockedEventPayloadOriginEnum["CheckoutSource"] = "checkoutSource";
37
+ SanctionsWalletBlockedEventPayloadOriginEnum["FlowDestination"] = "flowDestination";
38
+ SanctionsWalletBlockedEventPayloadOriginEnum["Api"] = "api";
39
+ SanctionsWalletBlockedEventPayloadOriginEnum["BackgroundPrefetch"] = "backgroundPrefetch";
40
+ })(exports.SanctionsWalletBlockedEventPayloadOriginEnum || (exports.SanctionsWalletBlockedEventPayloadOriginEnum = {})); /**
41
+ * @export
42
+ * @enum {string}
43
+ */
31
44
  exports.SanctionsWalletBlockedEventPayloadKeyOwnerEnum = void 0;
32
45
  (function (SanctionsWalletBlockedEventPayloadKeyOwnerEnum) {
33
46
  SanctionsWalletBlockedEventPayloadKeyOwnerEnum["Dynamic"] = "dynamic";
@@ -46,6 +59,7 @@ function SanctionsWalletBlockedEventPayloadFromJSONTyped(json, ignoreDiscriminat
46
59
  'sanctionsProvider': json['sanctionsProvider'],
47
60
  'sanctionCheckRequestId': json['sanctionCheckRequestId'],
48
61
  'categories': json['categories'],
62
+ 'origin': json['origin'],
49
63
  'keyOwner': json['keyOwner'],
50
64
  'screenedAt': (new Date(json['screenedAt'])),
51
65
  };
@@ -63,6 +77,7 @@ function SanctionsWalletBlockedEventPayloadToJSON(value) {
63
77
  'sanctionsProvider': value.sanctionsProvider,
64
78
  'sanctionCheckRequestId': value.sanctionCheckRequestId,
65
79
  'categories': value.categories,
80
+ 'origin': value.origin,
66
81
  'keyOwner': value.keyOwner,
67
82
  'screenedAt': (value.screenedAt.toISOString()),
68
83
  };
@@ -13,10 +13,18 @@
13
13
  * Payload of the `sanctions.wallet.blocked` webhook event.
14
14
  *
15
15
  * Trigger semantics:
16
- * - Fires once per user-flow BLOCKED decision (the orchestrator's
17
- * winning result), not per provider response.
18
- * - NOT emitted on cache-hit BLOCKED the original outbound call
19
- * already emitted.
16
+ * - Fires once per user-facing BLOCKED boundary decision (the
17
+ * orchestrator's winning result), not per provider response
18
+ * including decisions served from the screening cache, since the
19
+ * cache is shared across environments and flows. Each blocked
20
+ * action in your environment produces its own event with its own
21
+ * `origin`.
22
+ * - `backgroundPrefetch` is the exception: the background
23
+ * cache-warming check emits only on a fresh discovery, never on a
24
+ * cache hit, so a blocked returning user does not re-emit per
25
+ * visit. A block discovered this way warms the cache; subsequent
26
+ * user-facing flows that hit that cache DO emit with their own
27
+ * origin.
20
28
  * - NOT emitted on OK, FLAGGED, REVIEW, or ERROR outcomes (v1 surfaces
21
29
  * BLOCKED only).
22
30
  * - Customers opt in via the existing webhook subscription UI.
@@ -50,11 +58,30 @@ export interface SanctionsWalletBlockedEventPayload {
50
58
  */
51
59
  sanctionCheckRequestId: string;
52
60
  /**
53
- * Vendor-returned categories that triggered the block.
61
+ * Vendor-returned categories that triggered the block. May be empty
62
+ * when the decision was served from the screening cache (cached
63
+ * rows do not retain vendor categories).
54
64
  * @type {Array<string>}
55
65
  * @memberof SanctionsWalletBlockedEventPayload
56
66
  */
57
67
  categories: Array<string>;
68
+ /**
69
+ * User-flow surface that triggered the screening which produced
70
+ * this BLOCKED decision. `signIn`: user login/session verification.
71
+ * `walletConnect`: external wallet connect. `checkoutDestination`:
72
+ * a destination address in the checkout flow (checkout
73
+ * create/update or checkout transaction create).
74
+ * `checkoutSource`: the from-address funding a checkout
75
+ * transaction. `flowDestination`: flow create destination address.
76
+ * `api`: direct wallet-sanctions API query. `backgroundPrefetch`:
77
+ * background cache-warming check (see trigger semantics above).
78
+ * This enum will grow as new screening surfaces are added (e.g.
79
+ * decoded WaaS transaction destinations); consumers should handle
80
+ * unrecognized values gracefully.
81
+ * @type {string}
82
+ * @memberof SanctionsWalletBlockedEventPayload
83
+ */
84
+ origin: SanctionsWalletBlockedEventPayloadOriginEnum;
58
85
  /**
59
86
  * Who owns the key used for the check. `customerProvided` if the
60
87
  * check ran against a customer-supplied BYOK key; `dynamic` if it
@@ -82,6 +109,18 @@ export declare enum SanctionsWalletBlockedEventPayloadSanctionsProviderEnum {
82
109
  * @export
83
110
  * @enum {string}
84
111
  */
112
+ export declare enum SanctionsWalletBlockedEventPayloadOriginEnum {
113
+ SignIn = "signIn",
114
+ WalletConnect = "walletConnect",
115
+ CheckoutDestination = "checkoutDestination",
116
+ CheckoutSource = "checkoutSource",
117
+ FlowDestination = "flowDestination",
118
+ Api = "api",
119
+ BackgroundPrefetch = "backgroundPrefetch"
120
+ } /**
121
+ * @export
122
+ * @enum {string}
123
+ */
85
124
  export declare enum SanctionsWalletBlockedEventPayloadKeyOwnerEnum {
86
125
  Dynamic = "dynamic",
87
126
  CustomerProvided = "customerProvided"
@@ -24,6 +24,19 @@ var SanctionsWalletBlockedEventPayloadSanctionsProviderEnum;
24
24
  * @export
25
25
  * @enum {string}
26
26
  */
27
+ var SanctionsWalletBlockedEventPayloadOriginEnum;
28
+ (function (SanctionsWalletBlockedEventPayloadOriginEnum) {
29
+ SanctionsWalletBlockedEventPayloadOriginEnum["SignIn"] = "signIn";
30
+ SanctionsWalletBlockedEventPayloadOriginEnum["WalletConnect"] = "walletConnect";
31
+ SanctionsWalletBlockedEventPayloadOriginEnum["CheckoutDestination"] = "checkoutDestination";
32
+ SanctionsWalletBlockedEventPayloadOriginEnum["CheckoutSource"] = "checkoutSource";
33
+ SanctionsWalletBlockedEventPayloadOriginEnum["FlowDestination"] = "flowDestination";
34
+ SanctionsWalletBlockedEventPayloadOriginEnum["Api"] = "api";
35
+ SanctionsWalletBlockedEventPayloadOriginEnum["BackgroundPrefetch"] = "backgroundPrefetch";
36
+ })(SanctionsWalletBlockedEventPayloadOriginEnum || (SanctionsWalletBlockedEventPayloadOriginEnum = {})); /**
37
+ * @export
38
+ * @enum {string}
39
+ */
27
40
  var SanctionsWalletBlockedEventPayloadKeyOwnerEnum;
28
41
  (function (SanctionsWalletBlockedEventPayloadKeyOwnerEnum) {
29
42
  SanctionsWalletBlockedEventPayloadKeyOwnerEnum["Dynamic"] = "dynamic";
@@ -42,6 +55,7 @@ function SanctionsWalletBlockedEventPayloadFromJSONTyped(json, ignoreDiscriminat
42
55
  'sanctionsProvider': json['sanctionsProvider'],
43
56
  'sanctionCheckRequestId': json['sanctionCheckRequestId'],
44
57
  'categories': json['categories'],
58
+ 'origin': json['origin'],
45
59
  'keyOwner': json['keyOwner'],
46
60
  'screenedAt': (new Date(json['screenedAt'])),
47
61
  };
@@ -59,9 +73,10 @@ function SanctionsWalletBlockedEventPayloadToJSON(value) {
59
73
  'sanctionsProvider': value.sanctionsProvider,
60
74
  'sanctionCheckRequestId': value.sanctionCheckRequestId,
61
75
  'categories': value.categories,
76
+ 'origin': value.origin,
62
77
  'keyOwner': value.keyOwner,
63
78
  'screenedAt': (value.screenedAt.toISOString()),
64
79
  };
65
80
  }
66
81
 
67
- export { SanctionsWalletBlockedEventPayloadFromJSON, SanctionsWalletBlockedEventPayloadFromJSONTyped, SanctionsWalletBlockedEventPayloadKeyOwnerEnum, SanctionsWalletBlockedEventPayloadSanctionsProviderEnum, SanctionsWalletBlockedEventPayloadToJSON };
82
+ export { SanctionsWalletBlockedEventPayloadFromJSON, SanctionsWalletBlockedEventPayloadFromJSONTyped, SanctionsWalletBlockedEventPayloadKeyOwnerEnum, SanctionsWalletBlockedEventPayloadOriginEnum, SanctionsWalletBlockedEventPayloadSanctionsProviderEnum, SanctionsWalletBlockedEventPayloadToJSON };
@@ -25,6 +25,7 @@ exports.WaasWalletShareSetType = void 0;
25
25
  WaasWalletShareSetType["Delegated"] = "delegated";
26
26
  WaasWalletShareSetType["RootUser"] = "rootUser";
27
27
  WaasWalletShareSetType["Server"] = "server";
28
+ WaasWalletShareSetType["BusinessAccountUser"] = "businessAccountUser";
28
29
  })(exports.WaasWalletShareSetType || (exports.WaasWalletShareSetType = {}));
29
30
  function WaasWalletShareSetTypeFromJSON(json) {
30
31
  return WaasWalletShareSetTypeFromJSONTyped(json);
@@ -17,7 +17,8 @@
17
17
  export declare enum WaasWalletShareSetType {
18
18
  Delegated = "delegated",
19
19
  RootUser = "rootUser",
20
- Server = "server"
20
+ Server = "server",
21
+ BusinessAccountUser = "businessAccountUser"
21
22
  }
22
23
  export declare function WaasWalletShareSetTypeFromJSON(json: any): WaasWalletShareSetType;
23
24
  export declare function WaasWalletShareSetTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasWalletShareSetType;
@@ -21,6 +21,7 @@ var WaasWalletShareSetType;
21
21
  WaasWalletShareSetType["Delegated"] = "delegated";
22
22
  WaasWalletShareSetType["RootUser"] = "rootUser";
23
23
  WaasWalletShareSetType["Server"] = "server";
24
+ WaasWalletShareSetType["BusinessAccountUser"] = "businessAccountUser";
24
25
  })(WaasWalletShareSetType || (WaasWalletShareSetType = {}));
25
26
  function WaasWalletShareSetTypeFromJSON(json) {
26
27
  return WaasWalletShareSetTypeFromJSONTyped(json);