wallaby-cash 2.3.0-alpha.2 → 2.3.2

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 (37) hide show
  1. package/README.md +69 -0
  2. package/dist/generated/api.d.ts +1369 -2674
  3. package/dist/helpers/base64.base.d.ts +12 -0
  4. package/dist/helpers/base64.d.ts +6 -0
  5. package/dist/helpers/base64.native.d.ts +6 -0
  6. package/dist/helpers/normalize-storage-keys.d.ts +8 -0
  7. package/dist/index.cjs.js +1049 -605
  8. package/dist/index.cjs.js.map +1 -1
  9. package/dist/index.d.ts +6 -0
  10. package/dist/index.esm.js +1049 -605
  11. package/dist/index.esm.js.map +1 -1
  12. package/dist/index.js +1212 -645
  13. package/dist/index.js.map +1 -1
  14. package/dist/lib/auth/auth.service.d.ts +1 -1
  15. package/dist/lib/auth/authenticator.d.ts +3 -3
  16. package/dist/lib/auth/authenticator.native.d.ts +36 -0
  17. package/dist/lib/auth/passkey.model.d.ts +10 -3
  18. package/dist/lib/auth/passkey.service.base.d.ts +76 -0
  19. package/dist/lib/auth/passkey.service.d.ts +1 -76
  20. package/dist/lib/auth/passkey.service.native.d.ts +4 -0
  21. package/dist/lib/index.d.ts +1 -0
  22. package/dist/lib/swap/index.d.ts +36 -0
  23. package/dist/lib/system/index.d.ts +14 -4
  24. package/dist/lib/transactions/index.d.ts +4 -2
  25. package/dist/lib/utils/constants.d.ts +1 -1
  26. package/dist/lib/wallet/wallet-data.service.d.ts +8 -6
  27. package/dist/package.json +23 -12
  28. package/dist/routes/index.d.ts +1 -0
  29. package/dist/routes/swap.d.ts +24 -0
  30. package/dist/types/auth.d.ts +152 -4
  31. package/dist/types/common.d.ts +3 -0
  32. package/dist/types/error-response-codes.d.ts +1 -0
  33. package/dist/types/index.d.ts +1 -0
  34. package/dist/types/swap.d.ts +95 -0
  35. package/dist/types/transactions.d.ts +1 -0
  36. package/dist/types/wallet.d.ts +2 -4
  37. package/package.json +23 -12
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Shared base64 helpers. Platform-specific files (base64.ts, base64.native.ts)
3
+ * import from here and add or re-export as needed.
4
+ */
5
+ export declare function normalizeAndPadBase64(s: string): string;
6
+ export declare function decodeBase64String(s: string): Uint8Array;
7
+ /**
8
+ * Single-decode only: decode base64 (or base64url) to bytes. No round-trip double-decode.
9
+ */
10
+ export declare function base64ToUint8Array(base64: string): Uint8Array;
11
+ export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
12
+ export declare function decodeBase64URL(base64url: string): Uint8Array;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Web: round-trip with uint8ArrayToBase64 (which does btoa(fromUint8Array(bytes, true))).
3
+ * Single decode first; if the result looks like a base64 string, decode again to get original bytes.
4
+ */
5
+ export declare function base64ToUint8Array(base64: string): Uint8Array;
6
+ export { uint8ArrayToBase64, decodeBase64URL } from './base64.base';
@@ -0,0 +1,6 @@
1
+ /**
2
+ * React Native base64 helper. Re-exports shared logic from base64.base (single-decode only).
3
+ *
4
+ * https://reactnative.dev/docs/platform-specific-code#native-specific-extensions
5
+ */
6
+ export { base64ToUint8Array, decodeBase64URL, uint8ArrayToBase64 } from './base64.base';
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Storage keys adapter for Storage interface across different platforms.
3
+ *
4
+ * This sdk uses keys like "wsdk:version:key-name" but `SecureStore` doesn't allow colons in key names,
5
+ * Valid SecureStore key characters: alphanumeric, ".", "-", "_"
6
+ *
7
+ */
8
+ export declare const normalizeKey: (key: string) => string;