@metamask-previews/profile-sync-controller 19.0.0-preview-0d7196ba → 20.0.0-preview-988fbb56

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 (116) hide show
  1. package/CHANGELOG.md +19 -1
  2. package/dist/controllers/authentication/AuthenticationController.cjs +5 -0
  3. package/dist/controllers/authentication/AuthenticationController.cjs.map +1 -1
  4. package/dist/controllers/authentication/AuthenticationController.d.cts +4 -2
  5. package/dist/controllers/authentication/AuthenticationController.d.cts.map +1 -1
  6. package/dist/controllers/authentication/AuthenticationController.d.mts +4 -2
  7. package/dist/controllers/authentication/AuthenticationController.d.mts.map +1 -1
  8. package/dist/controllers/authentication/AuthenticationController.mjs +5 -0
  9. package/dist/controllers/authentication/AuthenticationController.mjs.map +1 -1
  10. package/dist/controllers/user-storage/UserStorageController.cjs +11 -4
  11. package/dist/controllers/user-storage/UserStorageController.cjs.map +1 -1
  12. package/dist/controllers/user-storage/UserStorageController.d.cts +4 -2
  13. package/dist/controllers/user-storage/UserStorageController.d.cts.map +1 -1
  14. package/dist/controllers/user-storage/UserStorageController.d.mts +4 -2
  15. package/dist/controllers/user-storage/UserStorageController.d.mts.map +1 -1
  16. package/dist/controllers/user-storage/UserStorageController.mjs +11 -4
  17. package/dist/controllers/user-storage/UserStorageController.mjs.map +1 -1
  18. package/dist/controllers/user-storage/account-syncing/controller-integration.cjs +185 -166
  19. package/dist/controllers/user-storage/account-syncing/controller-integration.cjs.map +1 -1
  20. package/dist/controllers/user-storage/account-syncing/controller-integration.d.cts +3 -0
  21. package/dist/controllers/user-storage/account-syncing/controller-integration.d.cts.map +1 -1
  22. package/dist/controllers/user-storage/account-syncing/controller-integration.d.mts +3 -0
  23. package/dist/controllers/user-storage/account-syncing/controller-integration.d.mts.map +1 -1
  24. package/dist/controllers/user-storage/account-syncing/controller-integration.mjs +185 -166
  25. package/dist/controllers/user-storage/account-syncing/controller-integration.mjs.map +1 -1
  26. package/dist/controllers/user-storage/account-syncing/types.cjs.map +1 -1
  27. package/dist/controllers/user-storage/account-syncing/types.d.cts +2 -0
  28. package/dist/controllers/user-storage/account-syncing/types.d.cts.map +1 -1
  29. package/dist/controllers/user-storage/account-syncing/types.d.mts +2 -0
  30. package/dist/controllers/user-storage/account-syncing/types.d.mts.map +1 -1
  31. package/dist/controllers/user-storage/account-syncing/types.mjs.map +1 -1
  32. package/dist/controllers/user-storage/constants/index.cjs +18 -0
  33. package/dist/controllers/user-storage/constants/index.cjs.map +1 -0
  34. package/dist/controllers/user-storage/constants/index.d.cts +2 -0
  35. package/dist/controllers/user-storage/constants/index.d.cts.map +1 -0
  36. package/dist/controllers/user-storage/constants/index.d.mts +2 -0
  37. package/dist/controllers/user-storage/constants/index.d.mts.map +1 -0
  38. package/dist/controllers/user-storage/constants/index.mjs +2 -0
  39. package/dist/controllers/user-storage/constants/index.mjs.map +1 -0
  40. package/dist/controllers/user-storage/constants/traces.cjs +17 -0
  41. package/dist/controllers/user-storage/constants/traces.cjs.map +1 -0
  42. package/dist/controllers/user-storage/constants/traces.d.cts +12 -0
  43. package/dist/controllers/user-storage/constants/traces.d.cts.map +1 -0
  44. package/dist/controllers/user-storage/constants/traces.d.mts +12 -0
  45. package/dist/controllers/user-storage/constants/traces.d.mts.map +1 -0
  46. package/dist/controllers/user-storage/constants/traces.mjs +14 -0
  47. package/dist/controllers/user-storage/constants/traces.mjs.map +1 -0
  48. package/dist/controllers/user-storage/contact-syncing/controller-integration.cjs +224 -162
  49. package/dist/controllers/user-storage/contact-syncing/controller-integration.cjs.map +1 -1
  50. package/dist/controllers/user-storage/contact-syncing/controller-integration.d.cts +3 -0
  51. package/dist/controllers/user-storage/contact-syncing/controller-integration.d.cts.map +1 -1
  52. package/dist/controllers/user-storage/contact-syncing/controller-integration.d.mts +3 -0
  53. package/dist/controllers/user-storage/contact-syncing/controller-integration.d.mts.map +1 -1
  54. package/dist/controllers/user-storage/contact-syncing/controller-integration.mjs +224 -162
  55. package/dist/controllers/user-storage/contact-syncing/controller-integration.mjs.map +1 -1
  56. package/dist/controllers/user-storage/contact-syncing/types.cjs.map +1 -1
  57. package/dist/controllers/user-storage/contact-syncing/types.d.cts +2 -0
  58. package/dist/controllers/user-storage/contact-syncing/types.d.cts.map +1 -1
  59. package/dist/controllers/user-storage/contact-syncing/types.d.mts +2 -0
  60. package/dist/controllers/user-storage/contact-syncing/types.d.mts.map +1 -1
  61. package/dist/controllers/user-storage/contact-syncing/types.mjs.map +1 -1
  62. package/dist/controllers/user-storage/index.cjs +1 -1
  63. package/dist/controllers/user-storage/index.cjs.map +1 -1
  64. package/dist/controllers/user-storage/index.d.cts +1 -1
  65. package/dist/controllers/user-storage/index.d.cts.map +1 -1
  66. package/dist/controllers/user-storage/index.d.mts +1 -1
  67. package/dist/controllers/user-storage/index.d.mts.map +1 -1
  68. package/dist/controllers/user-storage/index.mjs +1 -1
  69. package/dist/controllers/user-storage/index.mjs.map +1 -1
  70. package/dist/sdk/authentication-jwt-bearer/flow-siwe.cjs +4 -0
  71. package/dist/sdk/authentication-jwt-bearer/flow-siwe.cjs.map +1 -1
  72. package/dist/sdk/authentication-jwt-bearer/flow-siwe.d.cts +2 -1
  73. package/dist/sdk/authentication-jwt-bearer/flow-siwe.d.cts.map +1 -1
  74. package/dist/sdk/authentication-jwt-bearer/flow-siwe.d.mts +2 -1
  75. package/dist/sdk/authentication-jwt-bearer/flow-siwe.d.mts.map +1 -1
  76. package/dist/sdk/authentication-jwt-bearer/flow-siwe.mjs +5 -1
  77. package/dist/sdk/authentication-jwt-bearer/flow-siwe.mjs.map +1 -1
  78. package/dist/sdk/authentication-jwt-bearer/flow-srp.cjs +4 -0
  79. package/dist/sdk/authentication-jwt-bearer/flow-srp.cjs.map +1 -1
  80. package/dist/sdk/authentication-jwt-bearer/flow-srp.d.cts +2 -1
  81. package/dist/sdk/authentication-jwt-bearer/flow-srp.d.cts.map +1 -1
  82. package/dist/sdk/authentication-jwt-bearer/flow-srp.d.mts +2 -1
  83. package/dist/sdk/authentication-jwt-bearer/flow-srp.d.mts.map +1 -1
  84. package/dist/sdk/authentication-jwt-bearer/flow-srp.mjs +5 -1
  85. package/dist/sdk/authentication-jwt-bearer/flow-srp.mjs.map +1 -1
  86. package/dist/sdk/authentication-jwt-bearer/services.cjs +33 -1
  87. package/dist/sdk/authentication-jwt-bearer/services.cjs.map +1 -1
  88. package/dist/sdk/authentication-jwt-bearer/services.d.cts +10 -1
  89. package/dist/sdk/authentication-jwt-bearer/services.d.cts.map +1 -1
  90. package/dist/sdk/authentication-jwt-bearer/services.d.mts +10 -1
  91. package/dist/sdk/authentication-jwt-bearer/services.d.mts.map +1 -1
  92. package/dist/sdk/authentication-jwt-bearer/services.mjs +30 -0
  93. package/dist/sdk/authentication-jwt-bearer/services.mjs.map +1 -1
  94. package/dist/sdk/authentication-jwt-bearer/types.cjs.map +1 -1
  95. package/dist/sdk/authentication-jwt-bearer/types.d.cts +11 -0
  96. package/dist/sdk/authentication-jwt-bearer/types.d.cts.map +1 -1
  97. package/dist/sdk/authentication-jwt-bearer/types.d.mts +11 -0
  98. package/dist/sdk/authentication-jwt-bearer/types.d.mts.map +1 -1
  99. package/dist/sdk/authentication-jwt-bearer/types.mjs.map +1 -1
  100. package/dist/sdk/authentication.cjs +3 -0
  101. package/dist/sdk/authentication.cjs.map +1 -1
  102. package/dist/sdk/authentication.d.cts +2 -1
  103. package/dist/sdk/authentication.d.cts.map +1 -1
  104. package/dist/sdk/authentication.d.mts +2 -1
  105. package/dist/sdk/authentication.d.mts.map +1 -1
  106. package/dist/sdk/authentication.mjs +3 -0
  107. package/dist/sdk/authentication.mjs.map +1 -1
  108. package/dist/sdk/mocks/auth.cjs +22 -1
  109. package/dist/sdk/mocks/auth.cjs.map +1 -1
  110. package/dist/sdk/mocks/auth.d.cts +13 -0
  111. package/dist/sdk/mocks/auth.d.cts.map +1 -1
  112. package/dist/sdk/mocks/auth.d.mts +13 -0
  113. package/dist/sdk/mocks/auth.d.mts.map +1 -1
  114. package/dist/sdk/mocks/auth.mjs +23 -2
  115. package/dist/sdk/mocks/auth.mjs.map +1 -1
  116. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../../src/sdk/mocks/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,6BAAyB;AACvC,OAAO,EACL,SAAS,EACT,cAAc,EACd,aAAa,EACb,cAAc,EACd,gBAAgB,EACjB,kDAA8C;AAE/C,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACjD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAEnE,MAAM,CAAC,MAAM,QAAQ,GACnB,opBAAopB,CAAC;AAEvpB,MAAM,CAAC,MAAM,eAAe,GAC1B,6JAA6J,CAAC;AAEhK,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,KAAK,EAAE,kBAAkB;IACzB,UAAU,EAAE,4CAA4C;IACxD,UAAU,EAAE,GAAG;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,KAAK,EAAE,QAAQ;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE;QACP,UAAU,EAAE,sCAAsC;QAClD,cAAc,EAAE,sCAAsC;QACtD,aAAa,EACX,kEAAkE;QACpE,eAAe,EAAE,MAAM;QACvB,qBAAqB,EAAE,iCAAiC;KACzD;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,QAAQ;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE;QACP,UAAU,EAAE,sCAAsC;QAClD,cAAc,EAAE,sCAAsC;QACtD,aAAa,EACX,kEAAkE;QACpE,eAAe,EAAE,KAAK;QACtB,qBAAqB,EAAE,4BAA4B;KACpD;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,YAAY,EAAE,eAAe;IAC7B,UAAU,EAAE,IAAI;CACjB,CAAC","sourcesContent":["import { Env } from '../../shared/env';\nimport {\n NONCE_URL,\n SIWE_LOGIN_URL,\n SRP_LOGIN_URL,\n OIDC_TOKEN_URL,\n PAIR_IDENTIFIERS,\n} from '../authentication-jwt-bearer/services';\n\nexport const MOCK_NONCE_URL = NONCE_URL(Env.PRD);\nexport const MOCK_SRP_LOGIN_URL = SRP_LOGIN_URL(Env.PRD);\nexport const MOCK_OIDC_TOKEN_URL = OIDC_TOKEN_URL(Env.PRD);\nexport const MOCK_SIWE_LOGIN_URL = SIWE_LOGIN_URL(Env.PRD);\nexport const MOCK_PAIR_IDENTIFIERS_URL = PAIR_IDENTIFIERS(Env.PRD);\n\nexport const MOCK_JWT =\n 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImIwNzE2N2U2LWJjNWUtNDgyZC1hNjRhLWU1MjQ0MjY2MGU3NyJ9.eyJzdWIiOiI1MzE0ODc5YWM2NDU1OGI3OTQ5ZmI4NWIzMjg2ZjZjNjUwODAzYmFiMTY0Y2QyOWNmMmM3YzdmMjMzMWMwZTRlIiwiaWF0IjoxNzA2MTEzMDYyLCJleHAiOjE3NjkxODUwNjMsImlzcyI6ImF1dGgubWV0YW1hc2suaW8iLCJhdWQiOiJwb3J0Zm9saW8ubWV0YW1hc2suaW8ifQ.E5UL6oABNweS8t5a6IBTqTf7NLOJbrhJSmEcsr7kwLp4bGvcENJzACwnsHDkA6PlzfDV09ZhAGU_F3hlS0j-erbY0k0AFR-GAtyS7E9N02D8RgUDz5oDR65CKmzM8JilgFA8UvruJ6OJGogroaOSOqzRES_s8MjHpP47RJ9lXrUesajsbOudXbuksXWg5QmWip6LLvjwr8UUzcJzNQilyIhiEpo4WdzWM4R3VtTwr4rHnWEvtYnYCov1jmI2w3YQ48y0M-3Y9IOO0ov_vlITRrOnR7Y7fRUGLUFmU5msD8mNWRywjQFLHfJJ1yNP5aJ8TkuCK3sC6kcUH335IVvukQ';\n\nexport const MOCK_ACCESS_JWT =\n 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c';\n\nexport const MOCK_NONCE_RESPONSE = {\n nonce: 'xGMm9SoihEKeAEfV',\n identifier: '0xd8641601Cb79a94FD872fE42d5b4a067A44a7e88',\n expires_in: 300,\n};\n\nexport const MOCK_SIWE_LOGIN_RESPONSE = {\n token: MOCK_JWT,\n expires_in: 3600,\n profile: {\n profile_id: 'fa2bbf82-bd9a-4e6b-aabc-9ca0d0319b6e',\n metametrics_id: 'de742679-4960-4977-a415-4718b5f8e86c',\n identifier_id:\n 'ec9a4e9906836497efad2fd4d4290b34d2c6a2c0d93eb174aa3cd88a133adbaf',\n identifier_type: 'SIWE',\n encrypted_storage_key: '2c6a2c0d93eb174aa3cd88a133adbaf',\n },\n};\n\nexport const MOCK_SRP_LOGIN_RESPONSE = {\n token: MOCK_JWT,\n expires_in: 3600,\n profile: {\n profile_id: 'f88227bd-b615-41a3-b0be-467dd781a4ad',\n metametrics_id: '561ec651-a844-4b36-a451-04d6eac35740',\n identifier_id:\n 'da9a9fc7b09edde9cc23cec9b7e11a71fb0ab4d2ddd8af8af905306f3e1456fb',\n identifier_type: 'SRP',\n encrypted_storage_key: 'd2ddd8af8af905306f3e1456fb',\n },\n};\n\nexport const MOCK_OIDC_TOKEN_RESPONSE = {\n access_token: MOCK_ACCESS_JWT,\n expires_in: 3600,\n};\n"]}
1
+ {"version":3,"file":"auth.mjs","sourceRoot":"","sources":["../../../src/sdk/mocks/auth.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,6BAAyB;AACjD,OAAO,EACL,SAAS,EACT,cAAc,EACd,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,uBAAuB,EACxB,kDAA8C;AAE/C,MAAM,CAAC,MAAM,cAAc,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACjD,MAAM,CAAC,MAAM,kBAAkB,GAAG,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,mBAAmB,GAAG,cAAc,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAC3D,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACnE,MAAM,CAAC,MAAM,4BAA4B,GAAG,uBAAuB,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE7E,MAAM,CAAC,MAAM,QAAQ,GACnB,opBAAopB,CAAC;AAEvpB,MAAM,CAAC,MAAM,eAAe,GAC1B,6JAA6J,CAAC;AAEhK,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,KAAK,EAAE,kBAAkB;IACzB,UAAU,EAAE,4CAA4C;IACxD,UAAU,EAAE,GAAG;CAChB,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,KAAK,EAAE,QAAQ;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE;QACP,UAAU,EAAE,sCAAsC;QAClD,cAAc,EAAE,sCAAsC;QACtD,aAAa,EACX,kEAAkE;QACpE,eAAe,EAAE,MAAM;QACvB,qBAAqB,EAAE,iCAAiC;KACzD;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,KAAK,EAAE,QAAQ;IACf,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE;QACP,UAAU,EAAE,sCAAsC;QAClD,cAAc,EAAE,sCAAsC;QACtD,aAAa,EACX,kEAAkE;QACpE,eAAe,EAAE,KAAK;QACtB,qBAAqB,EAAE,4BAA4B;KACpD;CACF,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,YAAY,EAAE,eAAe;IAC7B,UAAU,EAAE,IAAI;CACjB,CAAC;AAEF,MAAM,CAAC,MAAM,sCAAsC,GAAG;IACpD,UAAU,EAAE,sCAAsC;IAClD,UAAU,EAAE,sBAAsB;IAClC,OAAO,EAAE;QACP;YACE,cAAc,EAAE,sCAAsC;YACtD,KAAK,EAAE,QAAQ,CAAC,MAAM;YACtB,UAAU,EAAE,sBAAsB;YAClC,UAAU,EAAE,sBAAsB;YAClC,OAAO,EAAE,CAAC;SACX;QACD;YACE,cAAc,EAAE,sCAAsC;YACtD,KAAK,EAAE,QAAQ,CAAC,SAAS;YACzB,UAAU,EAAE,sBAAsB;YAClC,UAAU,EAAE,sBAAsB;YAClC,OAAO,EAAE,CAAC;SACX;KACF;CACF,CAAC","sourcesContent":["import { Env, Platform } from '../../shared/env';\nimport {\n NONCE_URL,\n SIWE_LOGIN_URL,\n SRP_LOGIN_URL,\n OIDC_TOKEN_URL,\n PAIR_IDENTIFIERS,\n PROFILE_METAMETRICS_URL,\n} from '../authentication-jwt-bearer/services';\n\nexport const MOCK_NONCE_URL = NONCE_URL(Env.PRD);\nexport const MOCK_SRP_LOGIN_URL = SRP_LOGIN_URL(Env.PRD);\nexport const MOCK_OIDC_TOKEN_URL = OIDC_TOKEN_URL(Env.PRD);\nexport const MOCK_SIWE_LOGIN_URL = SIWE_LOGIN_URL(Env.PRD);\nexport const MOCK_PAIR_IDENTIFIERS_URL = PAIR_IDENTIFIERS(Env.PRD);\nexport const MOCK_PROFILE_METAMETRICS_URL = PROFILE_METAMETRICS_URL(Env.PRD);\n\nexport const MOCK_JWT =\n 'eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6ImIwNzE2N2U2LWJjNWUtNDgyZC1hNjRhLWU1MjQ0MjY2MGU3NyJ9.eyJzdWIiOiI1MzE0ODc5YWM2NDU1OGI3OTQ5ZmI4NWIzMjg2ZjZjNjUwODAzYmFiMTY0Y2QyOWNmMmM3YzdmMjMzMWMwZTRlIiwiaWF0IjoxNzA2MTEzMDYyLCJleHAiOjE3NjkxODUwNjMsImlzcyI6ImF1dGgubWV0YW1hc2suaW8iLCJhdWQiOiJwb3J0Zm9saW8ubWV0YW1hc2suaW8ifQ.E5UL6oABNweS8t5a6IBTqTf7NLOJbrhJSmEcsr7kwLp4bGvcENJzACwnsHDkA6PlzfDV09ZhAGU_F3hlS0j-erbY0k0AFR-GAtyS7E9N02D8RgUDz5oDR65CKmzM8JilgFA8UvruJ6OJGogroaOSOqzRES_s8MjHpP47RJ9lXrUesajsbOudXbuksXWg5QmWip6LLvjwr8UUzcJzNQilyIhiEpo4WdzWM4R3VtTwr4rHnWEvtYnYCov1jmI2w3YQ48y0M-3Y9IOO0ov_vlITRrOnR7Y7fRUGLUFmU5msD8mNWRywjQFLHfJJ1yNP5aJ8TkuCK3sC6kcUH335IVvukQ';\n\nexport const MOCK_ACCESS_JWT =\n 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c';\n\nexport const MOCK_NONCE_RESPONSE = {\n nonce: 'xGMm9SoihEKeAEfV',\n identifier: '0xd8641601Cb79a94FD872fE42d5b4a067A44a7e88',\n expires_in: 300,\n};\n\nexport const MOCK_SIWE_LOGIN_RESPONSE = {\n token: MOCK_JWT,\n expires_in: 3600,\n profile: {\n profile_id: 'fa2bbf82-bd9a-4e6b-aabc-9ca0d0319b6e',\n metametrics_id: 'de742679-4960-4977-a415-4718b5f8e86c',\n identifier_id:\n 'ec9a4e9906836497efad2fd4d4290b34d2c6a2c0d93eb174aa3cd88a133adbaf',\n identifier_type: 'SIWE',\n encrypted_storage_key: '2c6a2c0d93eb174aa3cd88a133adbaf',\n },\n};\n\nexport const MOCK_SRP_LOGIN_RESPONSE = {\n token: MOCK_JWT,\n expires_in: 3600,\n profile: {\n profile_id: 'f88227bd-b615-41a3-b0be-467dd781a4ad',\n metametrics_id: '561ec651-a844-4b36-a451-04d6eac35740',\n identifier_id:\n 'da9a9fc7b09edde9cc23cec9b7e11a71fb0ab4d2ddd8af8af905306f3e1456fb',\n identifier_type: 'SRP',\n encrypted_storage_key: 'd2ddd8af8af905306f3e1456fb',\n },\n};\n\nexport const MOCK_OIDC_TOKEN_RESPONSE = {\n access_token: MOCK_ACCESS_JWT,\n expires_in: 3600,\n};\n\nexport const MOCK_USER_PROFILE_METAMETRICS_RESPONSE = {\n profile_id: 'f88227bd-b615-41a3-b0be-467dd781a4ad',\n created_at: '2025-10-01T12:00:00Z',\n lineage: [\n {\n metametrics_id: '561ec651-a844-4b36-a451-04d6eac35740',\n agent: Platform.MOBILE,\n created_at: '2025-10-01T12:00:00Z',\n updated_at: '2025-10-01T12:00:00Z',\n counter: 1,\n },\n {\n metametrics_id: 'de742679-4960-4977-a415-4718b5f8e86c',\n agent: Platform.EXTENSION,\n created_at: '2025-10-01T12:00:00Z',\n updated_at: '2025-10-01T12:00:00Z',\n counter: 2,\n },\n ],\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/profile-sync-controller",
3
- "version": "19.0.0-preview-0d7196ba",
3
+ "version": "20.0.0-preview-988fbb56",
4
4
  "description": "The profile sync helps developers synchronize data across multiple clients and devices in a privacy-preserving way. All data saved in the user storage database is encrypted client-side to preserve privacy. The user storage provides a modular design, giving developers the flexibility to construct and manage their storage spaces in a way that best suits their needs",
5
5
  "keywords": [
6
6
  "MetaMask",
@@ -101,8 +101,8 @@
101
101
  },
102
102
  "dependencies": {
103
103
  "@metamask/base-controller": "^8.0.1",
104
- "@metamask/snaps-sdk": "^7.1.0",
105
- "@metamask/snaps-utils": "^9.4.0",
104
+ "@metamask/snaps-sdk": "^9.0.0",
105
+ "@metamask/snaps-utils": "^11.0.0",
106
106
  "@noble/ciphers": "^0.5.2",
107
107
  "@noble/hashes": "^1.4.0",
108
108
  "immer": "^9.0.6",
@@ -115,11 +115,11 @@
115
115
  "@metamask/accounts-controller": "^31.0.0",
116
116
  "@metamask/auto-changelog": "^3.4.4",
117
117
  "@metamask/keyring-api": "^18.0.0",
118
- "@metamask/keyring-controller": "^22.0.2",
118
+ "@metamask/keyring-controller": "^22.1.0",
119
119
  "@metamask/keyring-internal-api": "^6.2.0",
120
120
  "@metamask/network-controller": "^24.0.0",
121
121
  "@metamask/providers": "^22.1.0",
122
- "@metamask/snaps-controllers": "^12.3.1",
122
+ "@metamask/snaps-controllers": "^14.0.1",
123
123
  "@types/jest": "^27.4.1",
124
124
  "deepmerge": "^4.2.2",
125
125
  "ethers": "^6.12.0",
@@ -137,7 +137,7 @@
137
137
  "@metamask/keyring-controller": "^22.0.0",
138
138
  "@metamask/network-controller": "^24.0.0",
139
139
  "@metamask/providers": "^22.0.0",
140
- "@metamask/snaps-controllers": "^12.0.0",
140
+ "@metamask/snaps-controllers": "^14.0.0",
141
141
  "webextension-polyfill": "^0.10.0 || ^0.11.0 || ^0.12.0"
142
142
  },
143
143
  "engines": {