@dynamic-labs-sdk/client 0.26.7 → 0.26.9

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 (70) hide show
  1. package/dist/{InvalidParamError-WXK434H2.esm.js → InvalidParamError-0lP4zZBe.esm.js} +2 -2
  2. package/dist/{InvalidParamError-WXK434H2.esm.js.map → InvalidParamError-0lP4zZBe.esm.js.map} +1 -1
  3. package/dist/{InvalidParamError-F90z0K5r.native.esm.js → InvalidParamError-CY4JGkjq.native.esm.js} +2 -2
  4. package/dist/{InvalidParamError-F90z0K5r.native.esm.js.map → InvalidParamError-CY4JGkjq.native.esm.js.map} +1 -1
  5. package/dist/{InvalidParamError-DFpM4bIX.cjs → InvalidParamError-Cu4kK02f.cjs} +3 -3
  6. package/dist/{InvalidParamError-DFpM4bIX.cjs.map → InvalidParamError-Cu4kK02f.cjs.map} +1 -1
  7. package/dist/{NotWaasWalletAccountError-D_qlVMCG.esm.js → NotWaasWalletAccountError-BAD01hkG.esm.js} +3 -3
  8. package/dist/{NotWaasWalletAccountError-D_qlVMCG.esm.js.map → NotWaasWalletAccountError-BAD01hkG.esm.js.map} +1 -1
  9. package/dist/{NotWaasWalletAccountError-DbzO2LzZ.cjs → NotWaasWalletAccountError-CWKsiVqV.cjs} +3 -3
  10. package/dist/{NotWaasWalletAccountError-DbzO2LzZ.cjs.map → NotWaasWalletAccountError-CWKsiVqV.cjs.map} +1 -1
  11. package/dist/{NotWaasWalletAccountError-QZZmjyhq.native.esm.js → NotWaasWalletAccountError-DYuQuYeI.native.esm.js} +3 -3
  12. package/dist/{NotWaasWalletAccountError-QZZmjyhq.native.esm.js.map → NotWaasWalletAccountError-DYuQuYeI.native.esm.js.map} +1 -1
  13. package/dist/core.cjs +5 -5
  14. package/dist/core.esm.js +5 -5
  15. package/dist/core.native.esm.js +5 -5
  16. package/dist/core.native.esm.js.map +1 -1
  17. package/dist/{getNetworkProviderFromNetworkId-DbR2qejA.native.esm.js → getNetworkProviderFromNetworkId-Cjj23n1Y.native.esm.js} +3 -3
  18. package/dist/getNetworkProviderFromNetworkId-Cjj23n1Y.native.esm.js.map +1 -0
  19. package/dist/{getNetworkProviderFromNetworkId-BVurb9VE.esm.js → getNetworkProviderFromNetworkId-D1mT7AfE.esm.js} +3 -3
  20. package/dist/{getNetworkProviderFromNetworkId-BVurb9VE.esm.js.map → getNetworkProviderFromNetworkId-D1mT7AfE.esm.js.map} +1 -1
  21. package/dist/{getNetworkProviderFromNetworkId-BV9lOcuP.cjs → getNetworkProviderFromNetworkId-VDuMPEtz.cjs} +3 -3
  22. package/dist/{getNetworkProviderFromNetworkId-BV9lOcuP.cjs.map → getNetworkProviderFromNetworkId-VDuMPEtz.cjs.map} +1 -1
  23. package/dist/{getSignedSessionId-DXtxIjxF.native.esm.js → getSignedSessionId-BGFoe3gh.native.esm.js} +3 -3
  24. package/dist/{getSignedSessionId-DXtxIjxF.native.esm.js.map → getSignedSessionId-BGFoe3gh.native.esm.js.map} +1 -1
  25. package/dist/{getSignedSessionId-DFiqF8_b.esm.js → getSignedSessionId-DQr-WJ3a.esm.js} +3 -3
  26. package/dist/{getSignedSessionId-DFiqF8_b.esm.js.map → getSignedSessionId-DQr-WJ3a.esm.js.map} +1 -1
  27. package/dist/{getSignedSessionId-CNkcX15D.cjs → getSignedSessionId-qeRsJErq.cjs} +3 -3
  28. package/dist/{getSignedSessionId-CNkcX15D.cjs.map → getSignedSessionId-qeRsJErq.cjs.map} +1 -1
  29. package/dist/{getVerifiedCredentialForWalletAccount-CHIZTYim.native.esm.js → getVerifiedCredentialForWalletAccount-BCPvaJ1V.native.esm.js} +2 -2
  30. package/dist/{getVerifiedCredentialForWalletAccount-CHIZTYim.native.esm.js.map → getVerifiedCredentialForWalletAccount-BCPvaJ1V.native.esm.js.map} +1 -1
  31. package/dist/{getVerifiedCredentialForWalletAccount-4eVkx2ZN.cjs → getVerifiedCredentialForWalletAccount-CjPzTFHz.cjs} +3 -3
  32. package/dist/{getVerifiedCredentialForWalletAccount-4eVkx2ZN.cjs.map → getVerifiedCredentialForWalletAccount-CjPzTFHz.cjs.map} +1 -1
  33. package/dist/{getVerifiedCredentialForWalletAccount-6di80gqF.esm.js → getVerifiedCredentialForWalletAccount-DEkVcH8j.esm.js} +2 -2
  34. package/dist/{getVerifiedCredentialForWalletAccount-6di80gqF.esm.js.map → getVerifiedCredentialForWalletAccount-DEkVcH8j.esm.js.map} +1 -1
  35. package/dist/index.cjs +5 -5
  36. package/dist/index.esm.js +5 -5
  37. package/dist/index.native.esm.js +5 -5
  38. package/dist/index.native.esm.js.map +1 -1
  39. package/dist/{isMfaRequiredForAction-DKSH9YEU.esm.js → isMfaRequiredForAction-CTghrtq8.esm.js} +2 -2
  40. package/dist/{isMfaRequiredForAction-DKSH9YEU.esm.js.map → isMfaRequiredForAction-CTghrtq8.esm.js.map} +1 -1
  41. package/dist/{isMfaRequiredForAction-cJ294BGH.native.esm.js → isMfaRequiredForAction-DaZoGOB-.native.esm.js} +2 -2
  42. package/dist/{isMfaRequiredForAction-cJ294BGH.native.esm.js.map → isMfaRequiredForAction-DaZoGOB-.native.esm.js.map} +1 -1
  43. package/dist/{isMfaRequiredForAction-ZwjmqVg-.cjs → isMfaRequiredForAction-qSv2yrfd.cjs} +2 -2
  44. package/dist/{isMfaRequiredForAction-ZwjmqVg-.cjs.map → isMfaRequiredForAction-qSv2yrfd.cjs.map} +1 -1
  45. package/dist/tsconfig.lib.tsbuildinfo +1 -1
  46. package/dist/waas.cjs +4 -4
  47. package/dist/waas.esm.js +3 -3
  48. package/dist/waas.native.esm.js +3 -3
  49. package/dist/waasCore.cjs +4 -4
  50. package/dist/waasCore.esm.js +3 -3
  51. package/dist/waasCore.native.esm.js +3 -3
  52. package/package.json +3 -43
  53. package/android/build.gradle +0 -71
  54. package/android/src/main/java/xyz/dynamic/client/DynamicClientPackage.kt +0 -42
  55. package/android/src/main/java/xyz/dynamic/client/keychain/KeyStoreKeyManager.kt +0 -147
  56. package/android/src/main/java/xyz/dynamic/client/keychain/KeychainModule.kt +0 -85
  57. package/android/src/main/java/xyz/dynamic/client/manifest/ReactNativeManifestModule.kt +0 -25
  58. package/dist/getNetworkProviderFromNetworkId-DbR2qejA.native.esm.js.map +0 -1
  59. package/dynamic-labs-sdk-client.podspec +0 -27
  60. package/ios/Keychain.h +0 -4
  61. package/ios/Keychain.mm +0 -101
  62. package/ios/ReactNativeManifest.h +0 -4
  63. package/ios/ReactNativeManifest.mm +0 -45
  64. package/ios/ReactNativeManifestImpl.swift +0 -20
  65. package/ios/SecureEnclaveKeyManager.swift +0 -180
  66. package/react-native.config.cjs +0 -14
  67. package/src/turboModules/NativeKeychain.native.spec.ts +0 -45
  68. package/src/turboModules/NativeKeychain.ts +0 -21
  69. package/src/turboModules/NativeReactNativeManifest.native.spec.ts +0 -55
  70. package/src/turboModules/NativeReactNativeManifest.ts +0 -29
@@ -1,45 +0,0 @@
1
- /// <reference types="vitest/globals" />
2
-
3
- const turboModuleGetEnforcingMock = vi.fn();
4
-
5
- vi.mock('react-native', () => ({
6
- TurboModuleRegistry: {
7
- get getEnforcing() {
8
- return turboModuleGetEnforcingMock;
9
- },
10
- },
11
- }));
12
-
13
- describe('NativeKeychain', () => {
14
- const resolvedModule = {
15
- deleteKey: vi.fn(),
16
- generateKeyPair: vi.fn(),
17
- getPublicKey: vi.fn(),
18
- hasKey: vi.fn(),
19
- isAvailable: vi.fn(),
20
- sign: vi.fn(),
21
- };
22
-
23
- beforeEach(() => {
24
- vi.resetModules();
25
- turboModuleGetEnforcingMock.mockReturnValue(resolvedModule);
26
- });
27
-
28
- it('should expose the resolved module as the default export', async () => {
29
- const imported = await import('./NativeKeychain');
30
-
31
- expect(imported.default).toBe(resolvedModule);
32
- });
33
-
34
- it("should look up the native module under the 'Keychain' key that matches the iOS and Android registration", async () => {
35
- await import('./NativeKeychain');
36
-
37
- expect(turboModuleGetEnforcingMock).toHaveBeenCalledWith('Keychain');
38
- });
39
-
40
- it('should resolve the native module exactly once at import time', async () => {
41
- await import('./NativeKeychain');
42
-
43
- expect(turboModuleGetEnforcingMock).toHaveBeenCalledOnce();
44
- });
45
- });
@@ -1,21 +0,0 @@
1
- // This file is a TurboModule spec consumed by React Native codegen.
2
- // The `interface`, `default export`, and `react-native` import are hard
3
- // requirements of the codegen parser and intentionally deviate from the
4
- // project's conventions. Codegen discovers specs by the `Native*` filename
5
- // prefix, so this file cannot be renamed to `.native.ts`.
6
-
7
-
8
- import { type TurboModule, TurboModuleRegistry } from 'react-native';
9
-
10
-
11
- export interface Spec extends TurboModule {
12
- deleteKey(key: string): Promise<void>;
13
- generateKeyPair(key: string): Promise<{ publicKey: string }>;
14
- getPublicKey(key: string): Promise<{ publicKey: string } | null>;
15
- hasKey(key: string): Promise<boolean>;
16
- isAvailable(): Promise<boolean>;
17
- sign(key: string, payload: string): Promise<{ signature: string }>;
18
- }
19
-
20
- // eslint-disable-next-line import/no-default-export
21
- export default TurboModuleRegistry.getEnforcing<Spec>('Keychain');
@@ -1,55 +0,0 @@
1
- /// <reference types="vitest/globals" />
2
-
3
- const turboModuleGetMock = vi.fn();
4
-
5
- vi.mock('react-native', () => ({
6
- TurboModuleRegistry: {
7
- get get() {
8
- return turboModuleGetMock;
9
- },
10
- },
11
- }));
12
-
13
- describe('NativeReactNativeManifest', () => {
14
- beforeEach(() => {
15
- vi.resetModules();
16
- });
17
-
18
- describe('when the TurboModuleRegistry resolves the native module', () => {
19
- const resolvedModule = { getManifest: vi.fn() };
20
-
21
- beforeEach(() => {
22
- turboModuleGetMock.mockReturnValue(resolvedModule);
23
- });
24
-
25
- it('should expose the resolved module as the default export', async () => {
26
- const imported = await import('./NativeReactNativeManifest');
27
-
28
- expect(imported.default).toBe(resolvedModule);
29
- });
30
-
31
- it("should look up the native module under the 'ReactNativeManifest' key that matches the iOS and Android registration", async () => {
32
- await import('./NativeReactNativeManifest');
33
-
34
- expect(turboModuleGetMock).toHaveBeenCalledWith('ReactNativeManifest');
35
- });
36
-
37
- it('should resolve the native module exactly once at import time', async () => {
38
- await import('./NativeReactNativeManifest');
39
-
40
- expect(turboModuleGetMock).toHaveBeenCalledOnce();
41
- });
42
- });
43
-
44
- describe('when the TurboModuleRegistry cannot resolve the native module', () => {
45
- beforeEach(() => {
46
- turboModuleGetMock.mockReturnValue(null);
47
- });
48
-
49
- it('should expose null as the default export so consumers can surface a linking error', async () => {
50
- const imported = await import('./NativeReactNativeManifest');
51
-
52
- expect(imported.default).toBeNull();
53
- });
54
- });
55
- });
@@ -1,29 +0,0 @@
1
- /**
2
- * React Native TurboModule spec for the `ReactNativeManifest` native module.
3
- *
4
- * Consumed by React Native codegen to emit the Android/iOS native interfaces.
5
- * The filename must stay prefixed with `Native` — codegen's parser discovers
6
- * spec files by that convention and will silently skip anything else, leaving
7
- * the native module uncompiled. Do not rename this file.
8
- *
9
- * The `interface` keyword, the `default export`, and the locally-declared
10
- * `ReactNativeManifest` type are hard requirements of the codegen parser and
11
- * intentionally deviate from project conventions: codegen parses this file
12
- * statically and does NOT follow imported type aliases, so the return shape
13
- * must be defined inline here. The canonical type lives in
14
- * `nativeManifest.types.ts`; the `assertSameShape` line below is a TS-only
15
- * check that fails the build if the two definitions drift.
16
- */
17
-
18
- import { type TurboModule, TurboModuleRegistry } from 'react-native';
19
-
20
- export type ReactNativeManifest = {
21
- sdkVersion: string;
22
- };
23
-
24
- export interface Spec extends TurboModule {
25
- getManifest(): ReactNativeManifest;
26
- }
27
-
28
- // eslint-disable-next-line import/no-default-export -- codegen requires a default export of the TurboModule spec
29
- export default TurboModuleRegistry.get<Spec>('ReactNativeManifest');