@metamask-previews/profile-sync-controller 28.0.2-preview-02f91c63c → 28.0.2-preview-7a471e191

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 (78) hide show
  1. package/CHANGELOG.md +0 -14
  2. package/dist/controllers/authentication/AuthenticationController-method-action-types.cjs.map +1 -1
  3. package/dist/controllers/authentication/AuthenticationController-method-action-types.d.cts +6 -36
  4. package/dist/controllers/authentication/AuthenticationController-method-action-types.d.cts.map +1 -1
  5. package/dist/controllers/authentication/AuthenticationController-method-action-types.d.mts +6 -36
  6. package/dist/controllers/authentication/AuthenticationController-method-action-types.d.mts.map +1 -1
  7. package/dist/controllers/authentication/AuthenticationController-method-action-types.mjs.map +1 -1
  8. package/dist/controllers/authentication/AuthenticationController.cjs +6 -101
  9. package/dist/controllers/authentication/AuthenticationController.cjs.map +1 -1
  10. package/dist/controllers/authentication/AuthenticationController.d.cts +7 -43
  11. package/dist/controllers/authentication/AuthenticationController.d.cts.map +1 -1
  12. package/dist/controllers/authentication/AuthenticationController.d.mts +7 -43
  13. package/dist/controllers/authentication/AuthenticationController.d.mts.map +1 -1
  14. package/dist/controllers/authentication/AuthenticationController.mjs +6 -101
  15. package/dist/controllers/authentication/AuthenticationController.mjs.map +1 -1
  16. package/dist/controllers/authentication/index.cjs.map +1 -1
  17. package/dist/controllers/authentication/index.d.cts +1 -1
  18. package/dist/controllers/authentication/index.d.cts.map +1 -1
  19. package/dist/controllers/authentication/index.d.mts +1 -1
  20. package/dist/controllers/authentication/index.d.mts.map +1 -1
  21. package/dist/controllers/authentication/index.mjs.map +1 -1
  22. package/dist/controllers/authentication/mocks/mockResponses.d.cts +0 -18
  23. package/dist/controllers/authentication/mocks/mockResponses.d.cts.map +1 -1
  24. package/dist/controllers/authentication/mocks/mockResponses.d.mts +0 -18
  25. package/dist/controllers/authentication/mocks/mockResponses.d.mts.map +1 -1
  26. package/dist/sdk/authentication-jwt-bearer/flow-srp.cjs +1 -28
  27. package/dist/sdk/authentication-jwt-bearer/flow-srp.cjs.map +1 -1
  28. package/dist/sdk/authentication-jwt-bearer/flow-srp.d.cts +0 -2
  29. package/dist/sdk/authentication-jwt-bearer/flow-srp.d.cts.map +1 -1
  30. package/dist/sdk/authentication-jwt-bearer/flow-srp.d.mts +0 -2
  31. package/dist/sdk/authentication-jwt-bearer/flow-srp.d.mts.map +1 -1
  32. package/dist/sdk/authentication-jwt-bearer/flow-srp.mjs +2 -29
  33. package/dist/sdk/authentication-jwt-bearer/flow-srp.mjs.map +1 -1
  34. package/dist/sdk/authentication-jwt-bearer/services.cjs +1 -56
  35. package/dist/sdk/authentication-jwt-bearer/services.cjs.map +1 -1
  36. package/dist/sdk/authentication-jwt-bearer/services.d.cts +1 -17
  37. package/dist/sdk/authentication-jwt-bearer/services.d.cts.map +1 -1
  38. package/dist/sdk/authentication-jwt-bearer/services.d.mts +1 -17
  39. package/dist/sdk/authentication-jwt-bearer/services.d.mts.map +1 -1
  40. package/dist/sdk/authentication-jwt-bearer/services.mjs +0 -53
  41. package/dist/sdk/authentication-jwt-bearer/services.mjs.map +1 -1
  42. package/dist/sdk/authentication-jwt-bearer/types.cjs.map +1 -1
  43. package/dist/sdk/authentication-jwt-bearer/types.d.cts +1 -20
  44. package/dist/sdk/authentication-jwt-bearer/types.d.cts.map +1 -1
  45. package/dist/sdk/authentication-jwt-bearer/types.d.mts +1 -20
  46. package/dist/sdk/authentication-jwt-bearer/types.d.mts.map +1 -1
  47. package/dist/sdk/authentication-jwt-bearer/types.mjs.map +1 -1
  48. package/dist/sdk/authentication.cjs +0 -4
  49. package/dist/sdk/authentication.cjs.map +1 -1
  50. package/dist/sdk/authentication.d.cts +0 -2
  51. package/dist/sdk/authentication.d.cts.map +1 -1
  52. package/dist/sdk/authentication.d.mts +0 -2
  53. package/dist/sdk/authentication.d.mts.map +1 -1
  54. package/dist/sdk/authentication.mjs +0 -4
  55. package/dist/sdk/authentication.mjs.map +1 -1
  56. package/dist/sdk/mocks/auth.cjs +1 -11
  57. package/dist/sdk/mocks/auth.cjs.map +1 -1
  58. package/dist/sdk/mocks/auth.d.cts +0 -10
  59. package/dist/sdk/mocks/auth.d.cts.map +1 -1
  60. package/dist/sdk/mocks/auth.d.mts +0 -10
  61. package/dist/sdk/mocks/auth.d.mts.map +1 -1
  62. package/dist/sdk/mocks/auth.mjs +1 -11
  63. package/dist/sdk/mocks/auth.mjs.map +1 -1
  64. package/dist/sdk/user-storage.cjs +1 -11
  65. package/dist/sdk/user-storage.cjs.map +1 -1
  66. package/dist/sdk/user-storage.d.cts.map +1 -1
  67. package/dist/sdk/user-storage.d.mts.map +1 -1
  68. package/dist/sdk/user-storage.mjs +1 -11
  69. package/dist/sdk/user-storage.mjs.map +1 -1
  70. package/package.json +1 -1
  71. package/dist/sdk/authentication-jwt-bearer/utils/identifier.cjs +0 -27
  72. package/dist/sdk/authentication-jwt-bearer/utils/identifier.cjs.map +0 -1
  73. package/dist/sdk/authentication-jwt-bearer/utils/identifier.d.cts +0 -13
  74. package/dist/sdk/authentication-jwt-bearer/utils/identifier.d.cts.map +0 -1
  75. package/dist/sdk/authentication-jwt-bearer/utils/identifier.d.mts +0 -13
  76. package/dist/sdk/authentication-jwt-bearer/utils/identifier.d.mts.map +0 -1
  77. package/dist/sdk/authentication-jwt-bearer/utils/identifier.mjs +0 -23
  78. package/dist/sdk/authentication-jwt-bearer/utils/identifier.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"identifier.d.cts","sourceRoot":"","sources":["../../../../src/sdk/authentication-jwt-bearer/utils/identifier.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,gCAA4B;AAE/C,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAI/C,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,MAAM,CAMvE"}
@@ -1,13 +0,0 @@
1
- import type { Env } from "../../../shared/env.mjs";
2
- export declare const IDENTIFIER_SALT: Record<Env, string>;
3
- /**
4
- * Computes a deterministic identifier ID by hashing a public key with an
5
- * environment-specific salt. Matches the server-side formula:
6
- * SHA256(publicKey + salt).
7
- *
8
- * @param publicKey - The raw SRP public key
9
- * @param env - The environment whose salt to use
10
- * @returns The hex-encoded SHA256 hash used as identifier_id
11
- */
12
- export declare function computeIdentifierId(publicKey: string, env: Env): string;
13
- //# sourceMappingURL=identifier.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identifier.d.mts","sourceRoot":"","sources":["../../../../src/sdk/authentication-jwt-bearer/utils/identifier.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,GAAG,EAAE,gCAA4B;AAE/C,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAI/C,CAAC;AAEF;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,MAAM,CAMvE"}
@@ -1,23 +0,0 @@
1
- import { createSHA256Hash } from "../../../shared/encryption/index.mjs";
2
- export const IDENTIFIER_SALT = {
3
- dev: 'Baiche1eu8Oa2een5ieReul0Phooph4e',
4
- uat: 'wooG2Nahd4juviiw7cooxa7ekaeNgeik',
5
- prd: 'oCheThi4lohv5choGhuosh1aiT2phioF',
6
- };
7
- /**
8
- * Computes a deterministic identifier ID by hashing a public key with an
9
- * environment-specific salt. Matches the server-side formula:
10
- * SHA256(publicKey + salt).
11
- *
12
- * @param publicKey - The raw SRP public key
13
- * @param env - The environment whose salt to use
14
- * @returns The hex-encoded SHA256 hash used as identifier_id
15
- */
16
- export function computeIdentifierId(publicKey, env) {
17
- const salt = IDENTIFIER_SALT[env];
18
- if (!salt) {
19
- throw new Error('Cannot compute identifier ID: invalid environment');
20
- }
21
- return createSHA256Hash(publicKey + salt);
22
- }
23
- //# sourceMappingURL=identifier.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identifier.mjs","sourceRoot":"","sources":["../../../../src/sdk/authentication-jwt-bearer/utils/identifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,6CAAmC;AAG9D,MAAM,CAAC,MAAM,eAAe,GAAwB;IAClD,GAAG,EAAE,kCAAkC;IACvC,GAAG,EAAE,kCAAkC;IACvC,GAAG,EAAE,kCAAkC;CACxC,CAAC;AAEF;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,SAAiB,EAAE,GAAQ;IAC7D,MAAM,IAAI,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC;IAClC,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CAAC,mDAAmD,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,gBAAgB,CAAC,SAAS,GAAG,IAAI,CAAC,CAAC;AAC5C,CAAC","sourcesContent":["import { createSHA256Hash } from '../../../shared/encryption';\nimport type { Env } from '../../../shared/env';\n\nexport const IDENTIFIER_SALT: Record<Env, string> = {\n dev: 'Baiche1eu8Oa2een5ieReul0Phooph4e',\n uat: 'wooG2Nahd4juviiw7cooxa7ekaeNgeik',\n prd: 'oCheThi4lohv5choGhuosh1aiT2phioF',\n};\n\n/**\n * Computes a deterministic identifier ID by hashing a public key with an\n * environment-specific salt. Matches the server-side formula:\n * SHA256(publicKey + salt).\n *\n * @param publicKey - The raw SRP public key\n * @param env - The environment whose salt to use\n * @returns The hex-encoded SHA256 hash used as identifier_id\n */\nexport function computeIdentifierId(publicKey: string, env: Env): string {\n const salt = IDENTIFIER_SALT[env];\n if (!salt) {\n throw new Error('Cannot compute identifier ID: invalid environment');\n }\n return createSHA256Hash(publicKey + salt);\n}\n"]}