@metamask-previews/kyc-controller 0.0.0-preview-878689a26 → 0.0.0-preview-64bce4b11

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 (42) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/KycController.cjs +1 -1
  3. package/dist/KycController.cjs.map +1 -1
  4. package/dist/KycController.d.cts +3 -3
  5. package/dist/KycController.d.mts +3 -3
  6. package/dist/KycController.mjs +1 -1
  7. package/dist/KycController.mjs.map +1 -1
  8. package/dist/KycService-method-action-types.cjs.map +1 -1
  9. package/dist/KycService-method-action-types.d.cts +23 -6
  10. package/dist/KycService-method-action-types.d.cts.map +1 -1
  11. package/dist/KycService-method-action-types.d.mts +23 -6
  12. package/dist/KycService-method-action-types.d.mts.map +1 -1
  13. package/dist/KycService-method-action-types.mjs.map +1 -1
  14. package/dist/KycService.cjs +44 -10
  15. package/dist/KycService.cjs.map +1 -1
  16. package/dist/KycService.d.cts +25 -7
  17. package/dist/KycService.d.cts.map +1 -1
  18. package/dist/KycService.d.mts +25 -7
  19. package/dist/KycService.d.mts.map +1 -1
  20. package/dist/KycService.mjs +44 -10
  21. package/dist/KycService.mjs.map +1 -1
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.cts +3 -3
  24. package/dist/index.d.cts.map +1 -1
  25. package/dist/index.d.mts +3 -3
  26. package/dist/index.d.mts.map +1 -1
  27. package/dist/index.mjs.map +1 -1
  28. package/dist/types.cjs.map +1 -1
  29. package/dist/types.d.cts +15 -6
  30. package/dist/types.d.cts.map +1 -1
  31. package/dist/types.d.mts +15 -6
  32. package/dist/types.d.mts.map +1 -1
  33. package/dist/types.mjs.map +1 -1
  34. package/dist/ukyc/wrapEncryptionKey.cjs +4 -9
  35. package/dist/ukyc/wrapEncryptionKey.cjs.map +1 -1
  36. package/dist/ukyc/wrapEncryptionKey.d.cts +8 -10
  37. package/dist/ukyc/wrapEncryptionKey.d.cts.map +1 -1
  38. package/dist/ukyc/wrapEncryptionKey.d.mts +8 -10
  39. package/dist/ukyc/wrapEncryptionKey.d.mts.map +1 -1
  40. package/dist/ukyc/wrapEncryptionKey.mjs +4 -9
  41. package/dist/ukyc/wrapEncryptionKey.mjs.map +1 -1
  42. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -30,6 +30,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
30
30
 
31
31
  ### Changed
32
32
 
33
+ - Add `KycService.fetchDisclaimersCatalog` / `KycService:fetchDisclaimersCatalog` (`GET /disclaimers?country=`, ISO 3166-1 alpha-3) for the pre-session idOS + KYC-provider catalog, plus the `KycDisclaimersCatalog` type (no `credentialReusabilityConsentGiven`). `fetchSessionDisclaimers` remains session-scoped (`GET /sessions/{sessionId}/disclaimers` → `KycSessionDisclaimers`). ([#10011](https://github.com/MetaMask/core/pull/10011))
34
+ - **BREAKING:** Rename `KycService.fetchDisclaimers` / `KycService:fetchDisclaimers` / `KycServiceFetchDisclaimersAction` to `fetchVendorDisclaimers` / `KycService:fetchVendorDisclaimers` / `KycServiceFetchVendorDisclaimersAction`. ([#10011](https://github.com/MetaMask/core/pull/10011))
33
35
  - **BREAKING:** Rename `fractalEncryptionBaseUrl` to `idosEnclaveBaseUrl`, `KycService.fetchJwks` / `KycService:fetchJwks` / `KycServiceFetchJwksAction` to `fetchIdosEnclaveJwks` / `KycService:fetchIdosEnclaveJwks` / `KycServiceFetchIdosEnclaveJwksAction`, and related Fractal encryption naming to idOS enclave. ([#10008](https://github.com/MetaMask/core/pull/10008))
34
36
  - **BREAKING:** Verify `encryptionDataKey` against idOS enclave JWKS (`KycService:fetchIdosEnclaveJwks` / `idosEnclaveBaseUrl`) and `ukycCapabilityToken` against idOS relay JWKS (`KycService:fetchIdosRelayJwks` / `idosRelayBaseUrl`) when wrapping UKYC authorizations, instead of validating both schemas against Fractal. Hosts must supply `idosRelayBaseUrl` on `KycService` construction (same class of requirement as `idosEnclaveBaseUrl`). ([#10008](https://github.com/MetaMask/core/pull/10008))
35
37
  - **BREAKING:** Require `sessionClientPublicKey` (unpadded base64url X25519 public key) and `residenceCountry` (ISO 3166-1 alpha-3) on `KycService.createUkycSession` (`POST /sessions`). The controller generates the per-session keypair before creating the session and uses the private half to wrap authorizations; residence country is taken from the resolved geo country. ([#9993](https://github.com/MetaMask/core/pull/9993))
@@ -43,6 +45,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
43
45
 
44
46
  ### Fixed
45
47
 
48
+ - Stop incorrectly prefixing the session client public key onto wrapped `encryptionDataKey` and `ukycCapabilityToken` values from `wrapEncryptionKey`. `data` is now ciphertext+tag only; the server already has the client public key from session creation. ([#10036](https://github.com/MetaMask/core/pull/10036))
46
49
  - Clear leftover MoonPay `sessionToken`, `accessToken`, and Check/Auth frame credentials when `initialize` or `createVendorCustomer` switches to another vendor, so `buildCheckFrameUrl` cannot return a MoonPay URL for a consents-path session. ([#9908](https://github.com/MetaMask/core/pull/9908))
47
50
  - Rewind the consents path when SumSub fails before completion (thrown step or SDK close without `Completed`), instead of refreshing user status and forcing `phase` to `done`. A terminal UKYC rejection after the SDK completed still finishes as `done` so the decision can be reflected in user status. ([#9908](https://github.com/MetaMask/core/pull/9908))
48
51
  - Make `createVendorCustomer` a no-op during in-progress phases (matching `initialize`), so a vendor switch cannot leave Check/Auth frames attached to the wrong vendor. ([#9908](https://github.com/MetaMask/core/pull/9908))
@@ -643,7 +643,7 @@ class KycController extends base_controller_1.BaseController {
643
643
  state.geoCountry = country;
644
644
  });
645
645
  }
646
- const disclaimers = await this.messenger.call('KycService:fetchDisclaimers', {
646
+ const disclaimers = await this.messenger.call('KycService:fetchVendorDisclaimers', {
647
647
  vendor: this.state.activeVendor,
648
648
  country,
649
649
  });