@metamask-previews/kyc-controller 0.0.0-preview-e68ab1498 → 0.0.0-preview-4b37525

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 (56) hide show
  1. package/CHANGELOG.md +7 -1
  2. package/dist/KycController-method-action-types.cjs.map +1 -1
  3. package/dist/KycController-method-action-types.d.cts +12 -6
  4. package/dist/KycController-method-action-types.d.cts.map +1 -1
  5. package/dist/KycController-method-action-types.d.mts +12 -6
  6. package/dist/KycController-method-action-types.d.mts.map +1 -1
  7. package/dist/KycController-method-action-types.mjs.map +1 -1
  8. package/dist/KycController.cjs +313 -72
  9. package/dist/KycController.cjs.map +1 -1
  10. package/dist/KycController.d.cts +27 -7
  11. package/dist/KycController.d.cts.map +1 -1
  12. package/dist/KycController.d.mts +27 -7
  13. package/dist/KycController.d.mts.map +1 -1
  14. package/dist/KycController.mjs +314 -73
  15. package/dist/KycController.mjs.map +1 -1
  16. package/dist/KycService-method-action-types.cjs.map +1 -1
  17. package/dist/KycService-method-action-types.d.cts +60 -31
  18. package/dist/KycService-method-action-types.d.cts.map +1 -1
  19. package/dist/KycService-method-action-types.d.mts +60 -31
  20. package/dist/KycService-method-action-types.d.mts.map +1 -1
  21. package/dist/KycService-method-action-types.mjs.map +1 -1
  22. package/dist/KycService.cjs +140 -75
  23. package/dist/KycService.cjs.map +1 -1
  24. package/dist/KycService.d.cts +181 -74
  25. package/dist/KycService.d.cts.map +1 -1
  26. package/dist/KycService.d.mts +181 -74
  27. package/dist/KycService.d.mts.map +1 -1
  28. package/dist/KycService.mjs +140 -75
  29. package/dist/KycService.mjs.map +1 -1
  30. package/dist/index.cjs.map +1 -1
  31. package/dist/index.d.cts +3 -3
  32. package/dist/index.d.cts.map +1 -1
  33. package/dist/index.d.mts +3 -3
  34. package/dist/index.d.mts.map +1 -1
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/types.cjs.map +1 -1
  37. package/dist/types.d.cts +49 -4
  38. package/dist/types.d.cts.map +1 -1
  39. package/dist/types.d.mts +49 -4
  40. package/dist/types.d.mts.map +1 -1
  41. package/dist/types.mjs.map +1 -1
  42. package/dist/ukyc/jwtChain.cjs +1 -1
  43. package/dist/ukyc/jwtChain.cjs.map +1 -1
  44. package/dist/ukyc/jwtChain.d.cts +2 -2
  45. package/dist/ukyc/jwtChain.d.mts +2 -2
  46. package/dist/ukyc/jwtChain.mjs +1 -1
  47. package/dist/ukyc/jwtChain.mjs.map +1 -1
  48. package/dist/ukyc/wrapEncryptionKey.cjs +16 -7
  49. package/dist/ukyc/wrapEncryptionKey.cjs.map +1 -1
  50. package/dist/ukyc/wrapEncryptionKey.d.cts +23 -16
  51. package/dist/ukyc/wrapEncryptionKey.d.cts.map +1 -1
  52. package/dist/ukyc/wrapEncryptionKey.d.mts +23 -16
  53. package/dist/ukyc/wrapEncryptionKey.d.mts.map +1 -1
  54. package/dist/ukyc/wrapEncryptionKey.mjs +16 -7
  55. package/dist/ukyc/wrapEncryptionKey.mjs.map +1 -1
  56. package/package.json +1 -1
@@ -7,8 +7,7 @@ import type { AuthenticationControllerGetBearerTokenAction } from "@metamask/pro
7
7
  import type { Infer, Struct } from "@metamask/superstruct";
8
8
  import type { QueryClientConfig } from "@tanstack/query-core";
9
9
  import type { KycServiceMethodActions } from "./KycService-method-action-types.cjs";
10
- import type { KycDisclaimer, KycSessionStatus, KycUserStatusResponse, KycVendor } from "./types.cjs";
11
- import type { UkycStorageAccessToken } from "./ukyc/storageAccessToken.cjs";
10
+ import type { KycConsentRecord, KycDisclaimer, KycSessionDisclaimers, KycSessionStatus, KycUserStatusResponse, KycVendor, KycVendorSigning } from "./types.cjs";
12
11
  /**
13
12
  * The name of the {@link KycService}, used to namespace the service's actions.
14
13
  */
@@ -63,9 +62,7 @@ export type KycServiceOptions = {
63
62
  baseUrl: string;
64
63
  /**
65
64
  * Base URL of the Fractal encryption service, from which the JWKS used to
66
- * verify the `jwtChain` returned by {@link KycService.getWrappingKey} is
67
- * fetched. Required to run the wrapping-key exchange in
68
- * {@link KycService.fetchJwks}.
65
+ * verify encryption-schema `jwtChain`s is fetched.
69
66
  */
70
67
  fractalEncryptionBaseUrl?: string;
71
68
  /**
@@ -81,28 +78,35 @@ declare const CreateSessionResponseStruct: Struct<{
81
78
  }, {
82
79
  sessionToken: Struct<string, null>;
83
80
  }>;
84
- declare const WrappingKeyResponseStruct: Struct<{
85
- id: string;
86
- jwtChain: string;
87
- sessionServerPublicKey: {
81
+ declare const EncryptionSchemaStruct: Struct<{
82
+ serverPublicKey: {
88
83
  kty: string;
89
84
  crv: string;
90
85
  x: string;
86
+ kid?: string | undefined;
87
+ alg?: string | undefined;
88
+ use?: string | undefined;
91
89
  };
90
+ jwtChain: string;
92
91
  }, {
93
- id: Struct<string, null>;
94
- jwtChain: Struct<string, null>;
95
- sessionServerPublicKey: Struct<{
92
+ serverPublicKey: Struct<{
96
93
  kty: string;
97
94
  crv: string;
98
95
  x: string;
96
+ kid?: string | undefined;
97
+ alg?: string | undefined;
98
+ use?: string | undefined;
99
99
  }, {
100
100
  kty: Struct<string, null>;
101
101
  crv: Struct<string, null>;
102
102
  x: Struct<string, null>;
103
+ kid: Struct<string | undefined, null>;
104
+ alg: Struct<string | undefined, null>;
105
+ use: Struct<string | undefined, null>;
103
106
  }>;
107
+ jwtChain: Struct<string, null>;
104
108
  }>;
105
- export type WrappingKeyResponse = Infer<typeof WrappingKeyResponseStruct>;
109
+ export type EncryptionSchema = Infer<typeof EncryptionSchemaStruct>;
106
110
  declare const JwksResponseStruct: Struct<{
107
111
  keys: {
108
112
  kty: string;
@@ -131,12 +135,86 @@ declare const JwksResponseStruct: Struct<{
131
135
  export type JwksResponse = Infer<typeof JwksResponseStruct>;
132
136
  declare const UkycSessionResponseStruct: Struct<{
133
137
  sessionId: string;
134
- kycStatus?: string | undefined;
135
- finalStatus?: string | undefined;
138
+ encryptionDataKey: {
139
+ serverPublicKey: {
140
+ kty: string;
141
+ crv: string;
142
+ x: string;
143
+ kid?: string | undefined;
144
+ alg?: string | undefined;
145
+ use?: string | undefined;
146
+ };
147
+ jwtChain: string;
148
+ };
149
+ ukycCapabilityToken: {
150
+ serverPublicKey: {
151
+ kty: string;
152
+ crv: string;
153
+ x: string;
154
+ kid?: string | undefined;
155
+ alg?: string | undefined;
156
+ use?: string | undefined;
157
+ };
158
+ jwtChain: string;
159
+ };
136
160
  }, {
137
161
  sessionId: Struct<string, null>;
138
- kycStatus: Struct<string | undefined, null>;
139
- finalStatus: Struct<string | undefined, null>;
162
+ encryptionDataKey: Struct<{
163
+ serverPublicKey: {
164
+ kty: string;
165
+ crv: string;
166
+ x: string;
167
+ kid?: string | undefined;
168
+ alg?: string | undefined;
169
+ use?: string | undefined;
170
+ };
171
+ jwtChain: string;
172
+ }, {
173
+ serverPublicKey: Struct<{
174
+ kty: string;
175
+ crv: string;
176
+ x: string;
177
+ kid?: string | undefined;
178
+ alg?: string | undefined;
179
+ use?: string | undefined;
180
+ }, {
181
+ kty: Struct<string, null>;
182
+ crv: Struct<string, null>;
183
+ x: Struct<string, null>;
184
+ kid: Struct<string | undefined, null>;
185
+ alg: Struct<string | undefined, null>;
186
+ use: Struct<string | undefined, null>;
187
+ }>;
188
+ jwtChain: Struct<string, null>;
189
+ }>;
190
+ ukycCapabilityToken: Struct<{
191
+ serverPublicKey: {
192
+ kty: string;
193
+ crv: string;
194
+ x: string;
195
+ kid?: string | undefined;
196
+ alg?: string | undefined;
197
+ use?: string | undefined;
198
+ };
199
+ jwtChain: string;
200
+ }, {
201
+ serverPublicKey: Struct<{
202
+ kty: string;
203
+ crv: string;
204
+ x: string;
205
+ kid?: string | undefined;
206
+ alg?: string | undefined;
207
+ use?: string | undefined;
208
+ }, {
209
+ kty: Struct<string, null>;
210
+ crv: Struct<string, null>;
211
+ x: Struct<string, null>;
212
+ kid: Struct<string | undefined, null>;
213
+ alg: Struct<string | undefined, null>;
214
+ use: Struct<string | undefined, null>;
215
+ }>;
216
+ jwtChain: Struct<string, null>;
217
+ }>;
140
218
  }>;
141
219
  export type UkycSessionResponse = Infer<typeof UkycSessionResponseStruct>;
142
220
  declare const ApplicantAccessTokenResponseStruct: Struct<{
@@ -184,28 +262,28 @@ export type CreateVendorCustomerParams = {
184
262
  vendor: KycVendor;
185
263
  email: string;
186
264
  };
187
- export type SubmitConsentsParams = {
188
- /**
189
- * Vendor disclaimer ids the customer accepted (T&C1). Mapped to the UKYC
190
- * wire field `ironDisclaimerIds` for the Money/VBA consents contract.
191
- */
265
+ export type SubmitVendorDisclaimersParams = {
266
+ /** Identity vendor whose T&Cs were accepted (currently `iron`). */
267
+ vendor: KycVendor;
268
+ /** Disclaimer ids from {@link KycService.fetchDisclaimers}. */
192
269
  disclaimerIds: string[];
193
- sumsubTncSigned: boolean;
194
- idosTncSigned: boolean;
195
- kycLevel?: 'standard';
196
270
  };
197
- export type GetWrappingKeyParams = {
198
- sessionClientPublicKey: string;
271
+ export type FetchSessionDisclaimersParams = {
272
+ /** UKYC session id from {@link KycService.createUkycSession}. */
273
+ sessionId: string;
199
274
  };
200
- /**
201
- * The wrapped `data_encryption_key` sent to the UKYC backend when creating a
202
- * session. `encryptedKey` and `nonce` are produced by `wrapEncryptionKey`;
203
- * `sessionId` is the wrapping key id returned by `getWrappingKey`.
204
- */
205
- export type WrappedEncryptionKey = {
275
+ export type SubmitSessionDisclaimersParams = {
276
+ /** UKYC session id from {@link KycService.createUkycSession}. */
206
277
  sessionId: string;
207
- encryptedKey: string;
208
- nonce: string;
278
+ /** Consents to the idOS legal documents (`key`/`version` from the catalog). */
279
+ idOS: KycConsentRecord[];
280
+ /**
281
+ * Consents to the KYC provider (SumSub) legal documents (`key`/`version`
282
+ * from the catalog).
283
+ */
284
+ kycProvider: KycConsentRecord[];
285
+ /** Consent to reuse the user's existing idOS credentials. */
286
+ credentialReusabilityConsentGiven: boolean;
209
287
  };
210
288
  export type CreateUkycSessionParams = {
211
289
  jwtToken: string;
@@ -220,16 +298,21 @@ export type CreateUkycSessionParams = {
220
298
  * `moonPayUserId`); optional / omitted for other vendors.
221
299
  */
222
300
  vendorMetadata?: Record<string, unknown>;
223
- wrappedEncryptionKey: WrappedEncryptionKey;
224
- /**
225
- * The client-signed `ukyc_capability_token` (envelope: payload + Ed25519
226
- * signature) authorizing later storage access for this session. It is minted
227
- * by the client with `read`-only scope — see the UKYC storage-and-auth spec
228
- * for how it is formed. Only the client holds the signing key, so only the
229
- * client can mint it. The envelope is base64url-encoded into a compact string
230
- * before it is sent to the backend.
231
- */
232
- ukycCapabilityToken: UkycStorageAccessToken;
301
+ };
302
+ /**
303
+ * Encrypted capability authorization payload (base64url nonce + ciphertext)
304
+ * accepted by `POST /sessions/:sessionId/authorizations`. Produced by
305
+ * `wrapEncryptionKey` for both the `data_encryption_key` and the
306
+ * `ukyc_capability_token`.
307
+ */
308
+ export type CapabilityAuthorization = {
309
+ nonce: string;
310
+ data: string;
311
+ };
312
+ export type SetAuthorizationsParams = {
313
+ sessionId: string;
314
+ wrappedEncryptionDataKey: CapabilityAuthorization;
315
+ wrappedUkycCapabilityToken: CapabilityAuthorization;
233
316
  };
234
317
  export type GetSessionStatusParams = {
235
318
  sessionId: string;
@@ -245,8 +328,9 @@ export type GetSessionStatusParams = {
245
328
  * `fetchQuery`: it is wrapped in the shared service policy (retries, circuit
246
329
  * breaker) and its result is exposed via the service's `QueryClient`. Read-only
247
330
  * endpoints (`fetchDisclaimers`, `fetchJwks`) are cached with a `staleTime`;
248
- * the session-creating and status-polling endpoints opt out of caching
249
- * (`staleTime`/`gcTime` of `0`) so they never serve a stale result.
331
+ * vendor-disclaimer, session-scoped disclaimer, session-creating, and
332
+ * status-polling endpoints opt out of caching (`staleTime`/`gcTime` of `0`)
333
+ * so they never serve a stale result.
250
334
  */
251
335
  export declare class KycService extends BaseDataService<typeof serviceName, KycServiceMessenger> {
252
336
  #private;
@@ -259,8 +343,8 @@ export declare class KycService extends BaseDataService<typeof serviceName, KycS
259
343
  * the runtime's native `fetch`.
260
344
  * @param options.baseUrl - Base URL of the KYC API
261
345
  * @param options.fractalEncryptionBaseUrl - Base URL of the Fractal
262
- * encryption service, from which the JWKS used to verify the wrapping-key
263
- * `jwtChain` is fetched.
346
+ * encryption service, from which the JWKS used to verify encryption-schema
347
+ * `jwtChain`s is fetched.
264
348
  * @param options.queryClientConfig - Shared configuration for all queries
265
349
  * exposed by the service.
266
350
  * @param options.policyOptions - Options for the request service policy.
@@ -317,12 +401,38 @@ export declare class KycService extends BaseDataService<typeof serviceName, KycS
317
401
  */
318
402
  createVendorCustomer(params: CreateVendorCustomerParams): Promise<VendorCustomerResponse>;
319
403
  /**
320
- * Posts T&C1 (vendor signings) and T&C2 (Sumsub + idOS) consents for the
321
- * authenticated user. The API responds with 204 No Content on success.
404
+ * Records vendor T&C acceptance (`POST /vendors/{vendor}/disclaimers`).
405
+ * For Iron this creates content signings from the disclaimer ids the
406
+ * customer accepted. Session-scoped idOS / KYC-provider consents are
407
+ * recorded separately via {@link submitSessionDisclaimers}. Retries re-POST
408
+ * the same ids, matching the legacy `POST /consents` signing step.
409
+ *
410
+ * @param params - The parameters.
411
+ * @param params.vendor - Identity vendor (e.g. `iron`).
412
+ * @param params.disclaimerIds - Accepted vendor T&C ids.
413
+ * @returns The vendor signing records.
414
+ */
415
+ submitVendorDisclaimers(params: SubmitVendorDisclaimersParams): Promise<KycVendorSigning[]>;
416
+ /**
417
+ * Fetches the session-scoped idOS + KYC-provider disclaimer catalog
418
+ * (`GET /sessions/{sessionId}/disclaimers`). Requires an existing UKYC
419
+ * session; vendor T&Cs continue to come from {@link fetchDisclaimers}.
420
+ *
421
+ * @param params - The parameters.
422
+ * @param params.sessionId - The UKYC session id.
423
+ * @returns The catalog, including which documents are already consented.
424
+ */
425
+ fetchSessionDisclaimers(params: FetchSessionDisclaimersParams): Promise<KycSessionDisclaimers>;
426
+ /**
427
+ * Records idOS + KYC-provider consents for a UKYC session
428
+ * (`POST /sessions/{sessionId}/disclaimers`). `key`/`version` pairs must
429
+ * match the current catalog from {@link fetchSessionDisclaimers}. A 409
430
+ * means those document versions were already recorded for the session.
322
431
  *
323
432
  * @param params - The consent parameters.
433
+ * @returns The updated catalog after recording.
324
434
  */
325
- submitConsents(params: SubmitConsentsParams): Promise<void>;
435
+ submitSessionDisclaimers(params: SubmitSessionDisclaimersParams): Promise<KycSessionDisclaimers>;
326
436
  /**
327
437
  * Fetches the user-keyed simplified KYC status used by Money toast / banner
328
438
  * surfaces (`GET /kyc/status`).
@@ -331,23 +441,8 @@ export declare class KycService extends BaseDataService<typeof serviceName, KycS
331
441
  */
332
442
  fetchKycStatus(): Promise<KycUserStatusResponse>;
333
443
  /**
334
- * Requests a per-session wrapping key from the UKYC backend.
335
- *
336
- * The client sends its ephemeral X25519 public key; the backend responds with
337
- * its session public key (`sessionServerPublicKey`) and a `jwtChain` that
338
- * attests it. The caller must verify `jwtChain` against the Fractal JWKS
339
- * (see {@link KycService.fetchJwks}) before trusting the key to wrap the
340
- * `data_encryption_key`.
341
- *
342
- * @param params - The parameters.
343
- * @param params.sessionClientPublicKey - Our ephemeral X25519 public key
344
- * (base64url).
345
- * @returns The wrapping key id, `jwtChain`, and session server public key.
346
- */
347
- getWrappingKey(params: GetWrappingKeyParams): Promise<WrappingKeyResponse>;
348
- /**
349
- * Fetches the Fractal encryption service JWKS used to verify the `jwtChain`
350
- * returned by {@link KycService.getWrappingKey}.
444
+ * Fetches the Fractal encryption service JWKS used to verify the `jwtChain`s
445
+ * returned inside encryption schemas from {@link KycService.createUkycSession}.
351
446
  *
352
447
  * This is an unauthenticated request to a well-known path on the Fractal
353
448
  * host, distinct from the UKYC base URL.
@@ -356,15 +451,27 @@ export declare class KycService extends BaseDataService<typeof serviceName, KycS
356
451
  */
357
452
  fetchJwks(): Promise<JwksResponse>;
358
453
  /**
359
- * Creates a UKYC session for the SumSub document-verification sub-flow,
360
- * handing over the wrapped `data_encryption_key` and the client-signed,
361
- * read-only `ukyc_capability_token` that authorizes later storage access for
362
- * the session.
454
+ * Creates a UKYC session for the SumSub document-verification sub-flow.
455
+ *
456
+ * The response carries per-secret encryption schemas (`encryptionDataKey` and
457
+ * `ukycCapabilityToken`) so the client can wrap the `data_encryption_key` and
458
+ * the read-only `ukyc_capability_token` and submit them via
459
+ * {@link KycService.setAuthorizations}.
363
460
  *
364
461
  * @param params - The session parameters.
365
- * @returns The UKYC session identifiers.
462
+ * @returns The UKYC session id and encryption schemas.
366
463
  */
367
464
  createUkycSession(params: CreateUkycSessionParams): Promise<UkycSessionResponse>;
465
+ /**
466
+ * Submits the wrapped `data_encryption_key` and wrapped
467
+ * `ukyc_capability_token` for a UKYC session. Both secrets are sealed with
468
+ * `wrapEncryptionKey` against the encryption schemas returned by
469
+ * {@link KycService.createUkycSession}.
470
+ *
471
+ * @param params - The wrapped authorizations.
472
+ * @returns The session status after the authorizations are applied.
473
+ */
474
+ setAuthorizations(params: SetAuthorizationsParams): Promise<KycSessionStatus>;
368
475
  /**
369
476
  * Creates (or refreshes) the SumSub verification journey for a UKYC session,
370
477
  * returning the applicant access token used to launch the SDK.
@@ -1 +1 @@
1
- {"version":3,"file":"KycService.d.cts","sourceRoot":"","sources":["../src/KycService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,oCAAoC;AAC9D,OAAO,KAAK,EACV,4BAA4B,EAC5B,oCAAoC,EACpC,kCAAkC,EACnC,oCAAoC;AACrC,OAAO,KAAK,EAAE,0BAA0B,EAAE,mCAAmC;AAE7E,OAAO,KAAK,EAAE,yCAAyC,EAAE,yCAAyC;AAClG,OAAO,KAAK,EAAE,SAAS,EAAE,4BAA4B;AACrD,OAAO,KAAK,EAAE,4CAA4C,EAAE,+CAA+C;AAC3G,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,8BAA8B;AAa3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,6BAA6B;AAG9D,OAAO,KAAK,EAAE,uBAAuB,EAAE,6CAA4C;AACnF,OAAO,KAAK,EACV,aAAa,EACb,gBAA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