@metamask-previews/kyc-controller 0.0.0-preview-823dcff → 0.0.0-preview-e57e5c3dc
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 +8 -0
- package/README.md +10 -2
- package/dist/KycController-method-action-types.cjs +7 -0
- package/dist/KycController-method-action-types.cjs.map +1 -0
- package/dist/KycController-method-action-types.d.cts +168 -0
- package/dist/KycController-method-action-types.d.cts.map +1 -0
- package/dist/KycController-method-action-types.d.mts +168 -0
- package/dist/KycController-method-action-types.d.mts.map +1 -0
- package/dist/KycController-method-action-types.mjs +6 -0
- package/dist/KycController-method-action-types.mjs.map +1 -0
- package/dist/KycController.cjs +1085 -0
- package/dist/KycController.cjs.map +1 -0
- package/dist/KycController.d.cts +255 -0
- package/dist/KycController.d.cts.map +1 -0
- package/dist/KycController.d.mts +255 -0
- package/dist/KycController.d.mts.map +1 -0
- package/dist/KycController.mjs +1080 -0
- package/dist/KycController.mjs.map +1 -0
- package/dist/KycService-method-action-types.cjs +7 -0
- package/dist/KycService-method-action-types.cjs.map +1 -0
- package/dist/KycService-method-action-types.d.cts +121 -0
- package/dist/KycService-method-action-types.d.cts.map +1 -0
- package/dist/KycService-method-action-types.d.mts +121 -0
- package/dist/KycService-method-action-types.d.mts.map +1 -0
- package/dist/KycService-method-action-types.mjs +6 -0
- package/dist/KycService-method-action-types.mjs.map +1 -0
- package/dist/KycService.cjs +417 -0
- package/dist/KycService.cjs.map +1 -0
- package/dist/KycService.d.cts +307 -0
- package/dist/KycService.d.cts.map +1 -0
- package/dist/KycService.d.mts +307 -0
- package/dist/KycService.d.mts.map +1 -0
- package/dist/KycService.mjs +413 -0
- package/dist/KycService.mjs.map +1 -0
- package/dist/countryCodes.cjs +274 -0
- package/dist/countryCodes.cjs.map +1 -0
- package/dist/countryCodes.d.cts +18 -0
- package/dist/countryCodes.d.cts.map +1 -0
- package/dist/countryCodes.d.mts +18 -0
- package/dist/countryCodes.d.mts.map +1 -0
- package/dist/countryCodes.mjs +270 -0
- package/dist/countryCodes.mjs.map +1 -0
- package/dist/crypto.cjs +154 -0
- package/dist/crypto.cjs.map +1 -0
- package/dist/crypto.d.cts +84 -0
- package/dist/crypto.d.cts.map +1 -0
- package/dist/crypto.d.mts +84 -0
- package/dist/crypto.d.mts.map +1 -0
- package/dist/crypto.mjs +149 -0
- package/dist/crypto.mjs.map +1 -0
- package/dist/encoding.cjs +40 -0
- package/dist/encoding.cjs.map +1 -0
- package/dist/encoding.d.cts +24 -0
- package/dist/encoding.d.cts.map +1 -0
- package/dist/encoding.d.mts +24 -0
- package/dist/encoding.d.mts.map +1 -0
- package/dist/encoding.mjs +35 -0
- package/dist/encoding.mjs.map +1 -0
- package/dist/index.cjs +34 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -7
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +18 -7
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/dist/selectors.cjs +30 -0
- package/dist/selectors.cjs.map +1 -0
- package/dist/selectors.d.cts +24 -0
- package/dist/selectors.d.cts.map +1 -0
- package/dist/selectors.d.mts +24 -0
- package/dist/selectors.d.mts.map +1 -0
- package/dist/selectors.mjs +24 -0
- package/dist/selectors.mjs.map +1 -0
- package/dist/types.cjs +10 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.d.cts +124 -0
- package/dist/types.d.cts.map +1 -0
- package/dist/types.d.mts +124 -0
- package/dist/types.d.mts.map +1 -0
- package/dist/types.mjs +9 -0
- package/dist/types.mjs.map +1 -0
- package/dist/ukyc/constants.cjs +75 -0
- package/dist/ukyc/constants.cjs.map +1 -0
- package/dist/ukyc/constants.d.cts +69 -0
- package/dist/ukyc/constants.d.cts.map +1 -0
- package/dist/ukyc/constants.d.mts +69 -0
- package/dist/ukyc/constants.d.mts.map +1 -0
- package/dist/ukyc/constants.mjs +72 -0
- package/dist/ukyc/constants.mjs.map +1 -0
- package/dist/ukyc/deriveClientMaterial.cjs +65 -0
- package/dist/ukyc/deriveClientMaterial.cjs.map +1 -0
- package/dist/ukyc/deriveClientMaterial.d.cts +54 -0
- package/dist/ukyc/deriveClientMaterial.d.cts.map +1 -0
- package/dist/ukyc/deriveClientMaterial.d.mts +54 -0
- package/dist/ukyc/deriveClientMaterial.d.mts.map +1 -0
- package/dist/ukyc/deriveClientMaterial.mjs +60 -0
- package/dist/ukyc/deriveClientMaterial.mjs.map +1 -0
- package/dist/ukyc/jwtChain.cjs +54 -0
- package/dist/ukyc/jwtChain.cjs.map +1 -0
- package/dist/ukyc/jwtChain.d.cts +40 -0
- package/dist/ukyc/jwtChain.d.cts.map +1 -0
- package/dist/ukyc/jwtChain.d.mts +40 -0
- package/dist/ukyc/jwtChain.d.mts.map +1 -0
- package/dist/ukyc/jwtChain.mjs +50 -0
- package/dist/ukyc/jwtChain.mjs.map +1 -0
- package/dist/ukyc/localUserSecret.cjs +98 -0
- package/dist/ukyc/localUserSecret.cjs.map +1 -0
- package/dist/ukyc/localUserSecret.d.cts +65 -0
- package/dist/ukyc/localUserSecret.d.cts.map +1 -0
- package/dist/ukyc/localUserSecret.d.mts +65 -0
- package/dist/ukyc/localUserSecret.d.mts.map +1 -0
- package/dist/ukyc/localUserSecret.mjs +92 -0
- package/dist/ukyc/localUserSecret.mjs.map +1 -0
- package/dist/ukyc/storageAccessToken.cjs +139 -0
- package/dist/ukyc/storageAccessToken.cjs.map +1 -0
- package/dist/ukyc/storageAccessToken.d.cts +99 -0
- package/dist/ukyc/storageAccessToken.d.cts.map +1 -0
- package/dist/ukyc/storageAccessToken.d.mts +99 -0
- package/dist/ukyc/storageAccessToken.d.mts.map +1 -0
- package/dist/ukyc/storageAccessToken.mjs +133 -0
- package/dist/ukyc/storageAccessToken.mjs.map +1 -0
- package/dist/ukyc/testToken.cjs +61 -0
- package/dist/ukyc/testToken.cjs.map +1 -0
- package/dist/ukyc/testToken.d.cts +50 -0
- package/dist/ukyc/testToken.d.cts.map +1 -0
- package/dist/ukyc/testToken.d.mts +50 -0
- package/dist/ukyc/testToken.d.mts.map +1 -0
- package/dist/ukyc/testToken.mjs +57 -0
- package/dist/ukyc/testToken.mjs.map +1 -0
- package/dist/ukyc/wrapEncryptionKey.cjs +28 -0
- package/dist/ukyc/wrapEncryptionKey.cjs.map +1 -0
- package/dist/ukyc/wrapEncryptionKey.d.cts +34 -0
- package/dist/ukyc/wrapEncryptionKey.d.cts.map +1 -0
- package/dist/ukyc/wrapEncryptionKey.d.mts +34 -0
- package/dist/ukyc/wrapEncryptionKey.d.mts.map +1 -0
- package/dist/ukyc/wrapEncryptionKey.mjs +25 -0
- package/dist/ukyc/wrapEncryptionKey.mjs.map +1 -0
- package/dist/ukyc/wrapUserKey.cjs +80 -0
- package/dist/ukyc/wrapUserKey.cjs.map +1 -0
- package/dist/ukyc/wrapUserKey.d.cts +26 -0
- package/dist/ukyc/wrapUserKey.d.cts.map +1 -0
- package/dist/ukyc/wrapUserKey.d.mts +26 -0
- package/dist/ukyc/wrapUserKey.d.mts.map +1 -0
- package/dist/ukyc/wrapUserKey.mjs +76 -0
- package/dist/ukyc/wrapUserKey.mjs.map +1 -0
- package/dist/ukyc/wrappedRelayPayload.cjs +32 -0
- package/dist/ukyc/wrappedRelayPayload.cjs.map +1 -0
- package/dist/ukyc/wrappedRelayPayload.d.cts +35 -0
- package/dist/ukyc/wrappedRelayPayload.d.cts.map +1 -0
- package/dist/ukyc/wrappedRelayPayload.d.mts +35 -0
- package/dist/ukyc/wrappedRelayPayload.d.mts.map +1 -0
- package/dist/ukyc/wrappedRelayPayload.mjs +28 -0
- package/dist/ukyc/wrappedRelayPayload.mjs.map +1 -0
- package/package.json +24 -3
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
import type { ControllerGetStateAction, ControllerStateChangeEvent } from "@metamask/base-controller";
|
|
2
|
+
import { BaseController } from "@metamask/base-controller";
|
|
3
|
+
import type { Messenger } from "@metamask/messenger";
|
|
4
|
+
import type { UserStorageControllerPerformGetStorageAction, UserStorageControllerPerformSetStorageAction } from "@metamask/profile-sync-controller/user-storage";
|
|
5
|
+
import type { Json } from "@metamask/utils";
|
|
6
|
+
import type { KycControllerMethodActions } from "./KycController-method-action-types.mjs";
|
|
7
|
+
import type { KycServiceMethodActions } from "./KycService-method-action-types.mjs";
|
|
8
|
+
import type { KycDisclaimer, KycPhase, KycProduct, KycSessionStatus, KycSumSubLauncher, KycSumSubStatus } from "./types.mjs";
|
|
9
|
+
export declare const controllerName = "KycController";
|
|
10
|
+
/**
|
|
11
|
+
* Describes the shape of the state object for {@link KycController}.
|
|
12
|
+
*/
|
|
13
|
+
export type KycControllerState = {
|
|
14
|
+
/** Current phase of the identity flow. */
|
|
15
|
+
phase: KycPhase;
|
|
16
|
+
/** Human-readable status message for the current phase. */
|
|
17
|
+
statusMessage: string;
|
|
18
|
+
/** The current error message, or `null`. */
|
|
19
|
+
error: string | null;
|
|
20
|
+
/** Email associated with the session (sourced from the account). */
|
|
21
|
+
email: string | null;
|
|
22
|
+
/** ISO-8601 timestamp of the customer's terms acceptance (persisted). */
|
|
23
|
+
termsAcceptedAt: string | null;
|
|
24
|
+
/** IDs of the disclaimers the customer accepted (persisted). */
|
|
25
|
+
acceptedDisclaimerIds: string[];
|
|
26
|
+
/** Disclaimers fetched for the current country. */
|
|
27
|
+
disclaimers: KycDisclaimer[];
|
|
28
|
+
/** Error encountered while loading disclaimers, or `null`. */
|
|
29
|
+
disclaimersError: string | null;
|
|
30
|
+
/** Resolved ISO 3166-1 alpha-3 country code. */
|
|
31
|
+
geoCountry: string | null;
|
|
32
|
+
/** Vendor session token (not persisted, not logged). */
|
|
33
|
+
sessionToken: string | null;
|
|
34
|
+
/** Vendor access token (not persisted, not logged). */
|
|
35
|
+
accessToken: string | null;
|
|
36
|
+
/** Vendor customer id, used for the SumSub hand-off. */
|
|
37
|
+
moonpayCustomerId: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* The product the current flow is running for. Captured at `initialize`
|
|
40
|
+
* (or `acceptTermsAndStartSession`) and used to automatically run the
|
|
41
|
+
* KYC-required check once authentication completes. `null` outside a
|
|
42
|
+
* product-scoped flow (in which case the flow stops at `form` and the
|
|
43
|
+
* consumer drives the check manually).
|
|
44
|
+
*/
|
|
45
|
+
activeProduct: KycProduct | null;
|
|
46
|
+
/** Cached "is KYC required" result per product (persisted). */
|
|
47
|
+
kycRequiredByProduct: Partial<Record<KycProduct, boolean>>;
|
|
48
|
+
/** ISO-8601 timestamp of the last KYC-required check (persisted). */
|
|
49
|
+
lastCheckedAt: string | null;
|
|
50
|
+
/** SumSub document-verification sub-flow state. */
|
|
51
|
+
sumsub: {
|
|
52
|
+
status: KycSumSubStatus;
|
|
53
|
+
result: Json | null;
|
|
54
|
+
sessionId: string | null;
|
|
55
|
+
applicantAccessToken: string | null;
|
|
56
|
+
/**
|
|
57
|
+
* The latest UKYC session status, populated while polling after the SDK
|
|
58
|
+
* completes. `null` until the first successful poll.
|
|
59
|
+
*/
|
|
60
|
+
sessionStatus: KycSessionStatus | null;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Constructs the default {@link KycController} state.
|
|
65
|
+
*
|
|
66
|
+
* @returns The default state.
|
|
67
|
+
*/
|
|
68
|
+
export declare function getDefaultKycControllerState(): KycControllerState;
|
|
69
|
+
export type KycControllerGetStateAction = ControllerGetStateAction<typeof controllerName, KycControllerState>;
|
|
70
|
+
export type KycControllerActions = KycControllerGetStateAction | KycControllerMethodActions;
|
|
71
|
+
type AllowedActions = KycServiceMethodActions | UserStorageControllerPerformGetStorageAction | UserStorageControllerPerformSetStorageAction;
|
|
72
|
+
export type KycControllerStateChangeEvent = ControllerStateChangeEvent<typeof controllerName, KycControllerState>;
|
|
73
|
+
export type KycControllerEvents = KycControllerStateChangeEvent;
|
|
74
|
+
type AllowedEvents = never;
|
|
75
|
+
export type KycControllerMessenger = Messenger<typeof controllerName, KycControllerActions | AllowedActions, KycControllerEvents | AllowedEvents>;
|
|
76
|
+
/**
|
|
77
|
+
* Options for constructing a {@link KycController}.
|
|
78
|
+
*/
|
|
79
|
+
export type KycControllerOptions = {
|
|
80
|
+
messenger: KycControllerMessenger;
|
|
81
|
+
state?: Partial<KycControllerState>;
|
|
82
|
+
/**
|
|
83
|
+
* Platform adapter that presents the SumSub SDK. Injected by each client so
|
|
84
|
+
* the controller stays platform-agnostic.
|
|
85
|
+
*/
|
|
86
|
+
sumsubLauncher: KycSumSubLauncher;
|
|
87
|
+
/**
|
|
88
|
+
* How often, in milliseconds, to poll the UKYC session status after the
|
|
89
|
+
* SumSub SDK completes. Defaults to
|
|
90
|
+
* {@link DEFAULT_SESSION_STATUS_POLL_INTERVAL_MS}.
|
|
91
|
+
*/
|
|
92
|
+
sessionStatusPollIntervalMs?: number;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* `KycController` orchestrates the vendor-backed KYC / identity-verification
|
|
96
|
+
* flow (MoonPay identity + SumSub documents) behind a vendor-neutral, per
|
|
97
|
+
* product surface used by ramps and card. It owns all state, HTTP
|
|
98
|
+
* orchestration (via `KycService`), crypto, and the frame message protocol;
|
|
99
|
+
* platform-specific presentation (WebView/iframe, SumSub SDK) is injected.
|
|
100
|
+
*/
|
|
101
|
+
export declare class KycController extends BaseController<typeof controllerName, KycControllerState, KycControllerMessenger> {
|
|
102
|
+
#private;
|
|
103
|
+
/**
|
|
104
|
+
* Constructs a new {@link KycController}.
|
|
105
|
+
*
|
|
106
|
+
* @param options - The constructor options.
|
|
107
|
+
* @param options.messenger - The messenger suited for this controller.
|
|
108
|
+
* @param options.state - Partial initial state; merged over defaults.
|
|
109
|
+
* @param options.sumsubLauncher - The platform SumSub launcher adapter.
|
|
110
|
+
* @param options.sessionStatusPollIntervalMs - How often to poll the UKYC
|
|
111
|
+
* session status after the SumSub SDK completes.
|
|
112
|
+
*/
|
|
113
|
+
constructor({ messenger, state, sumsubLauncher, sessionStatusPollIntervalMs, }: KycControllerOptions);
|
|
114
|
+
/**
|
|
115
|
+
* Resolves persisted terms + geolocation, and auto-creates a session when
|
|
116
|
+
* terms are already accepted and an email is available.
|
|
117
|
+
*
|
|
118
|
+
* @param params - Optional parameters.
|
|
119
|
+
* @param params.email - The account email to associate with the session.
|
|
120
|
+
* @param params.product - The consuming feature the flow runs for. When
|
|
121
|
+
* provided, the controller automatically runs the KYC-required check once
|
|
122
|
+
* authentication completes (and chains into document verification when KYC
|
|
123
|
+
* is required). When omitted, the flow stops at `form` and the consumer must
|
|
124
|
+
* call `checkKycRequired` manually.
|
|
125
|
+
*/
|
|
126
|
+
initialize(params?: {
|
|
127
|
+
email?: string;
|
|
128
|
+
product?: KycProduct;
|
|
129
|
+
}): Promise<void>;
|
|
130
|
+
/**
|
|
131
|
+
* Loads the disclaimers for the resolved (or provided) country.
|
|
132
|
+
*
|
|
133
|
+
* @param params - Optional parameters.
|
|
134
|
+
* @param params.country - ISO 3166-1 alpha-3 country code override.
|
|
135
|
+
*/
|
|
136
|
+
loadDisclaimers(params?: {
|
|
137
|
+
country?: string;
|
|
138
|
+
}): Promise<void>;
|
|
139
|
+
/**
|
|
140
|
+
* Captures terms acceptance for the currently loaded disclaimers and creates
|
|
141
|
+
* a session.
|
|
142
|
+
*
|
|
143
|
+
* @param params - Optional parameters.
|
|
144
|
+
* @param params.email - The account email to associate with the session.
|
|
145
|
+
* @param params.product - The consuming feature the flow runs for. See
|
|
146
|
+
* {@link initialize} for how the product drives the automatic post
|
|
147
|
+
* authentication continuation.
|
|
148
|
+
*/
|
|
149
|
+
acceptTermsAndStartSession(params?: {
|
|
150
|
+
email?: string;
|
|
151
|
+
product?: KycProduct;
|
|
152
|
+
}): Promise<void>;
|
|
153
|
+
/**
|
|
154
|
+
* Clears the persisted terms acceptance.
|
|
155
|
+
*/
|
|
156
|
+
clearSavedTerms(): void;
|
|
157
|
+
/**
|
|
158
|
+
* Handles a message posted by a Check/Auth frame and advances the flow.
|
|
159
|
+
*
|
|
160
|
+
* The transport-agnostic caller (WebView on mobile, iframe on web) forwards
|
|
161
|
+
* the raw message and injects the returned `reply` back into the frame.
|
|
162
|
+
*
|
|
163
|
+
* @param params - The parameters.
|
|
164
|
+
* @param params.message - The raw message posted by the frame.
|
|
165
|
+
* @returns An object whose optional `reply` should be posted back.
|
|
166
|
+
*/
|
|
167
|
+
handleFrameMessage(params: {
|
|
168
|
+
message: unknown;
|
|
169
|
+
}): Promise<{
|
|
170
|
+
reply?: unknown;
|
|
171
|
+
}>;
|
|
172
|
+
/**
|
|
173
|
+
* Builds the Check-frame URL, or `null` when no session exists yet.
|
|
174
|
+
*
|
|
175
|
+
* @returns The Check-frame URL or `null`.
|
|
176
|
+
*/
|
|
177
|
+
buildCheckFrameUrl(): string | null;
|
|
178
|
+
/**
|
|
179
|
+
* Builds the Auth-frame URL, or `null` when no client token is available.
|
|
180
|
+
*
|
|
181
|
+
* @returns The Auth-frame URL or `null`.
|
|
182
|
+
*/
|
|
183
|
+
buildAuthFrameUrl(): string | null;
|
|
184
|
+
/**
|
|
185
|
+
* Builds the Reset-frame URL.
|
|
186
|
+
*
|
|
187
|
+
* @returns The Reset-frame URL.
|
|
188
|
+
*/
|
|
189
|
+
buildResetFrameUrl(): string;
|
|
190
|
+
/**
|
|
191
|
+
* Checks whether KYC is required for a product and caches the result.
|
|
192
|
+
*
|
|
193
|
+
* @param params - The parameters.
|
|
194
|
+
* @param params.product - The consuming feature.
|
|
195
|
+
* @param params.country - Optional alpha-3 country override.
|
|
196
|
+
* @returns Whether KYC is required.
|
|
197
|
+
*/
|
|
198
|
+
checkKycRequired(params: {
|
|
199
|
+
product: KycProduct;
|
|
200
|
+
country?: string;
|
|
201
|
+
}): Promise<boolean>;
|
|
202
|
+
/**
|
|
203
|
+
* Reads the cached "is KYC required" result for a product.
|
|
204
|
+
*
|
|
205
|
+
* @param params - The parameters.
|
|
206
|
+
* @param params.product - The consuming feature.
|
|
207
|
+
* @returns The cached value, or `undefined` if not yet checked.
|
|
208
|
+
*/
|
|
209
|
+
getKycStatus(params: {
|
|
210
|
+
product: KycProduct;
|
|
211
|
+
}): boolean | undefined;
|
|
212
|
+
/**
|
|
213
|
+
* Runs the SumSub document-verification sub-flow end to end:
|
|
214
|
+
*
|
|
215
|
+
* 1. requests a per-session wrapping key from the UKYC backend;
|
|
216
|
+
* 2. verifies its `jwtChain` against the Fractal JWKS and confirms the
|
|
217
|
+
* attested session server public key;
|
|
218
|
+
* 3. derives the `data_encryption_key` from the wallet's UKYC
|
|
219
|
+
* `local_user_secret` and wraps it for the session server;
|
|
220
|
+
* 4. mints a client-signed, read-only `ukyc_capability_token` and creates
|
|
221
|
+
* the UKYC session (handing over the wrapped key and the token);
|
|
222
|
+
* 5. fetches the SumSub applicant access token; and
|
|
223
|
+
* 6. presents the SDK via the injected launcher.
|
|
224
|
+
*
|
|
225
|
+
* If session creation reports the applicant is already approved on the relay
|
|
226
|
+
* while the vendor is still finalizing (`kycStatus: approved`,
|
|
227
|
+
* `finalStatus: pending`), the sub-flow stops at step 4 with a
|
|
228
|
+
* `vendorProcessing` status and a message rather than launching the SDK.
|
|
229
|
+
*
|
|
230
|
+
* @param params - Optional parameters.
|
|
231
|
+
* @param params.locale - BCP-47 locale for the SDK UI.
|
|
232
|
+
* @param params.debug - Enables SDK debug logging.
|
|
233
|
+
* @returns The SDK result.
|
|
234
|
+
*/
|
|
235
|
+
startSumSub(params?: {
|
|
236
|
+
locale?: string;
|
|
237
|
+
debug?: boolean;
|
|
238
|
+
}): Promise<Record<string, unknown>>;
|
|
239
|
+
/**
|
|
240
|
+
* Fetches the current UKYC session status for the active sub-flow and records
|
|
241
|
+
* it on state. Useful for a one-off refresh outside the automatic polling
|
|
242
|
+
* loop that {@link startSumSub} runs.
|
|
243
|
+
*
|
|
244
|
+
* @returns The fetched session status.
|
|
245
|
+
* @throws If there is no active SumSub session to query.
|
|
246
|
+
*/
|
|
247
|
+
getSessionStatus(): Promise<KycSessionStatus>;
|
|
248
|
+
/**
|
|
249
|
+
* Resets the flow to idle, clearing session tokens and sub-flow state while
|
|
250
|
+
* preserving persisted terms acceptance and the per-product cache.
|
|
251
|
+
*/
|
|
252
|
+
reset(): void;
|
|
253
|
+
}
|
|
254
|
+
export {};
|
|
255
|
+
//# sourceMappingURL=KycController.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"KycController.d.mts","sourceRoot":"","sources":["../src/KycController.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,0BAA0B,EAE3B,kCAAkC;AACnC,OAAO,EAAE,cAAc,EAAE,kCAAkC;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,4BAA4B;AACrD,OAAO,KAAK,EACV,4CAA4C,EAC5C,4CAA4C,EAC7C,uDAAuD;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,wBAAwB;AAK5C,OAAO,KAAK,EAAE,0BAA0B,EAAE,gDAA+C;AACzF,OAAO,KAAK,EAAE,uBAAuB,EAAE,6CAA4C;AACnF,OAAO,KAAK,EACV,aAAa,EACb,QAAQ,EACR,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EAChB,oBAAmB;AAWpB,eAAO,MAAM,cAAc,kBAAkB,CAAC;AA8E9C;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,0CAA0C;IAC1C,KAAK,EAAE,QAAQ,CAAC;IAChB,2DAA2D;IAC3D,aAAa,EAAE,MAAM,CAAC;IACtB,4CAA4C;IAC5C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,oEAAoE;IACpE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB,yEAAyE;IACzE,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,gEAAgE;IAChE,qBAAqB,EAAE,MAAM,EAAE,CAAC;IAEhC,mDAAmD;IACnD,WAAW,EAAE,aAAa,EAAE,CAAC;IAC7B,8DAA8D;IAC9D,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