@sudobility/types 1.8.21

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 (248) hide show
  1. package/CLAUDE.md +285 -0
  2. package/README.md +310 -0
  3. package/dist/index.cjs +62 -0
  4. package/dist/index.d.ts +18 -0
  5. package/dist/index.d.ts.map +1 -0
  6. package/dist/index.js +62 -0
  7. package/dist/index.js.map +1 -0
  8. package/dist/types/blockchain/common.cjs +102 -0
  9. package/dist/types/blockchain/common.d.ts +262 -0
  10. package/dist/types/blockchain/common.d.ts.map +1 -0
  11. package/dist/types/blockchain/common.js +102 -0
  12. package/dist/types/blockchain/common.js.map +1 -0
  13. package/dist/types/blockchain/index.cjs +18 -0
  14. package/dist/types/blockchain/index.d.ts +4 -0
  15. package/dist/types/blockchain/index.d.ts.map +1 -0
  16. package/dist/types/blockchain/index.js +18 -0
  17. package/dist/types/blockchain/index.js.map +1 -0
  18. package/dist/types/blockchain/validation.cjs +88 -0
  19. package/dist/types/blockchain/validation.d.ts +9 -0
  20. package/dist/types/blockchain/validation.d.ts.map +1 -0
  21. package/dist/types/blockchain/validation.js +88 -0
  22. package/dist/types/blockchain/validation.js.map +1 -0
  23. package/dist/types/business/enums.cjs +314 -0
  24. package/dist/types/business/enums.d.ts +227 -0
  25. package/dist/types/business/enums.d.ts.map +1 -0
  26. package/dist/types/business/enums.js +314 -0
  27. package/dist/types/business/enums.js.map +1 -0
  28. package/dist/types/business/index.cjs +33 -0
  29. package/dist/types/business/index.d.ts +5 -0
  30. package/dist/types/business/index.d.ts.map +1 -0
  31. package/dist/types/business/index.js +33 -0
  32. package/dist/types/business/index.js.map +1 -0
  33. package/dist/types/business/wallet-status.cjs +38 -0
  34. package/dist/types/business/wallet-status.d.ts +32 -0
  35. package/dist/types/business/wallet-status.d.ts.map +1 -0
  36. package/dist/types/business/wallet-status.js +38 -0
  37. package/dist/types/business/wallet-status.js.map +1 -0
  38. package/dist/types/common.cjs +6 -0
  39. package/dist/types/common.d.ts +142 -0
  40. package/dist/types/common.d.ts.map +1 -0
  41. package/dist/types/common.js +6 -0
  42. package/dist/types/common.js.map +1 -0
  43. package/dist/types/config/app-config.cjs +6 -0
  44. package/dist/types/config/app-config.d.ts +67 -0
  45. package/dist/types/config/app-config.d.ts.map +1 -0
  46. package/dist/types/config/app-config.js +6 -0
  47. package/dist/types/config/app-config.js.map +1 -0
  48. package/dist/types/config/environment.cjs +24 -0
  49. package/dist/types/config/environment.d.ts +68 -0
  50. package/dist/types/config/environment.d.ts.map +1 -0
  51. package/dist/types/config/environment.js +24 -0
  52. package/dist/types/config/environment.js.map +1 -0
  53. package/dist/types/config/index.cjs +6 -0
  54. package/dist/types/config/index.d.ts +4 -0
  55. package/dist/types/config/index.d.ts.map +1 -0
  56. package/dist/types/config/index.js +6 -0
  57. package/dist/types/config/index.js.map +1 -0
  58. package/dist/types/index.cjs +35 -0
  59. package/dist/types/index.d.ts +10 -0
  60. package/dist/types/index.d.ts.map +1 -0
  61. package/dist/types/index.js +35 -0
  62. package/dist/types/index.js.map +1 -0
  63. package/dist/types/indexer/index.cjs +19 -0
  64. package/dist/types/indexer/index.d.ts +3 -0
  65. package/dist/types/indexer/index.d.ts.map +1 -0
  66. package/dist/types/indexer/index.js +19 -0
  67. package/dist/types/indexer/index.js.map +1 -0
  68. package/dist/types/indexer/indexer-guards.cjs +145 -0
  69. package/dist/types/indexer/indexer-guards.d.ts +26 -0
  70. package/dist/types/indexer/indexer-guards.d.ts.map +1 -0
  71. package/dist/types/indexer/indexer-guards.js +145 -0
  72. package/dist/types/indexer/indexer-guards.js.map +1 -0
  73. package/dist/types/indexer/indexer-responses.cjs +8 -0
  74. package/dist/types/indexer/indexer-responses.d.ts +136 -0
  75. package/dist/types/indexer/indexer-responses.d.ts.map +1 -0
  76. package/dist/types/indexer/indexer-responses.js +8 -0
  77. package/dist/types/indexer/indexer-responses.js.map +1 -0
  78. package/dist/types/infrastructure/analytics.cjs +212 -0
  79. package/dist/types/infrastructure/analytics.d.ts +449 -0
  80. package/dist/types/infrastructure/analytics.d.ts.map +1 -0
  81. package/dist/types/infrastructure/analytics.js +212 -0
  82. package/dist/types/infrastructure/analytics.js.map +1 -0
  83. package/dist/types/infrastructure/api.cjs +17 -0
  84. package/dist/types/infrastructure/api.d.ts +152 -0
  85. package/dist/types/infrastructure/api.d.ts.map +1 -0
  86. package/dist/types/infrastructure/api.js +17 -0
  87. package/dist/types/infrastructure/api.js.map +1 -0
  88. package/dist/types/infrastructure/index.cjs +14 -0
  89. package/dist/types/infrastructure/index.d.ts +9 -0
  90. package/dist/types/infrastructure/index.d.ts.map +1 -0
  91. package/dist/types/infrastructure/index.js +14 -0
  92. package/dist/types/infrastructure/index.js.map +1 -0
  93. package/dist/types/infrastructure/navigation.cjs +3 -0
  94. package/dist/types/infrastructure/navigation.d.ts +56 -0
  95. package/dist/types/infrastructure/navigation.d.ts.map +1 -0
  96. package/dist/types/infrastructure/navigation.js +3 -0
  97. package/dist/types/infrastructure/navigation.js.map +1 -0
  98. package/dist/types/infrastructure/network.cjs +18 -0
  99. package/dist/types/infrastructure/network.d.ts +48 -0
  100. package/dist/types/infrastructure/network.d.ts.map +1 -0
  101. package/dist/types/infrastructure/network.js +18 -0
  102. package/dist/types/infrastructure/network.js.map +1 -0
  103. package/dist/types/infrastructure/wallet.cjs +37 -0
  104. package/dist/types/infrastructure/wallet.d.ts +33 -0
  105. package/dist/types/infrastructure/wallet.d.ts.map +1 -0
  106. package/dist/types/infrastructure/wallet.js +37 -0
  107. package/dist/types/infrastructure/wallet.js.map +1 -0
  108. package/dist/types/kyc/index.cjs +19 -0
  109. package/dist/types/kyc/index.d.ts +2 -0
  110. package/dist/types/kyc/index.d.ts.map +1 -0
  111. package/dist/types/kyc/index.js +19 -0
  112. package/dist/types/kyc/index.js.map +1 -0
  113. package/dist/types/kyc/kyc-types.cjs +12 -0
  114. package/dist/types/kyc/kyc-types.d.ts +260 -0
  115. package/dist/types/kyc/kyc-types.d.ts.map +1 -0
  116. package/dist/types/kyc/kyc-types.js +12 -0
  117. package/dist/types/kyc/kyc-types.js.map +1 -0
  118. package/dist/types/mailer/index.cjs +19 -0
  119. package/dist/types/mailer/index.d.ts +2 -0
  120. package/dist/types/mailer/index.d.ts.map +1 -0
  121. package/dist/types/mailer/index.js +19 -0
  122. package/dist/types/mailer/index.js.map +1 -0
  123. package/dist/types/mailer/mail-types.cjs +38 -0
  124. package/dist/types/mailer/mail-types.d.ts +296 -0
  125. package/dist/types/mailer/mail-types.d.ts.map +1 -0
  126. package/dist/types/mailer/mail-types.js +38 -0
  127. package/dist/types/mailer/mail-types.js.map +1 -0
  128. package/dist/types/wildduck/index.cjs +19 -0
  129. package/dist/types/wildduck/index.d.ts +2 -0
  130. package/dist/types/wildduck/index.d.ts.map +1 -0
  131. package/dist/types/wildduck/index.js +19 -0
  132. package/dist/types/wildduck/index.js.map +1 -0
  133. package/dist/types/wildduck/wildduck-types.cjs +48 -0
  134. package/dist/types/wildduck/wildduck-types.d.ts +1239 -0
  135. package/dist/types/wildduck/wildduck-types.d.ts.map +1 -0
  136. package/dist/types/wildduck/wildduck-types.js +48 -0
  137. package/dist/types/wildduck/wildduck-types.js.map +1 -0
  138. package/dist/utils/async-helpers.cjs +130 -0
  139. package/dist/utils/async-helpers.d.ts +35 -0
  140. package/dist/utils/async-helpers.d.ts.map +1 -0
  141. package/dist/utils/async-helpers.js +130 -0
  142. package/dist/utils/async-helpers.js.map +1 -0
  143. package/dist/utils/auth/auth.cjs +96 -0
  144. package/dist/utils/auth/auth.d.ts +40 -0
  145. package/dist/utils/auth/auth.d.ts.map +1 -0
  146. package/dist/utils/auth/auth.js +96 -0
  147. package/dist/utils/auth/auth.js.map +1 -0
  148. package/dist/utils/auth/index.cjs +14 -0
  149. package/dist/utils/auth/index.d.ts +2 -0
  150. package/dist/utils/auth/index.d.ts.map +1 -0
  151. package/dist/utils/auth/index.js +14 -0
  152. package/dist/utils/auth/index.js.map +1 -0
  153. package/dist/utils/blockchain/address.cjs +231 -0
  154. package/dist/utils/blockchain/address.d.ts +65 -0
  155. package/dist/utils/blockchain/address.d.ts.map +1 -0
  156. package/dist/utils/blockchain/address.js +231 -0
  157. package/dist/utils/blockchain/address.js.map +1 -0
  158. package/dist/utils/blockchain/event-helpers.cjs +143 -0
  159. package/dist/utils/blockchain/event-helpers.d.ts +87 -0
  160. package/dist/utils/blockchain/event-helpers.d.ts.map +1 -0
  161. package/dist/utils/blockchain/event-helpers.js +143 -0
  162. package/dist/utils/blockchain/event-helpers.js.map +1 -0
  163. package/dist/utils/blockchain/index.cjs +30 -0
  164. package/dist/utils/blockchain/index.d.ts +8 -0
  165. package/dist/utils/blockchain/index.d.ts.map +1 -0
  166. package/dist/utils/blockchain/index.js +30 -0
  167. package/dist/utils/blockchain/index.js.map +1 -0
  168. package/dist/utils/blockchain/rpc-helpers.cjs +865 -0
  169. package/dist/utils/blockchain/rpc-helpers.d.ts +251 -0
  170. package/dist/utils/blockchain/rpc-helpers.d.ts.map +1 -0
  171. package/dist/utils/blockchain/rpc-helpers.js +865 -0
  172. package/dist/utils/blockchain/rpc-helpers.js.map +1 -0
  173. package/dist/utils/constants/application.cjs +158 -0
  174. package/dist/utils/constants/application.d.ts +119 -0
  175. package/dist/utils/constants/application.d.ts.map +1 -0
  176. package/dist/utils/constants/application.js +158 -0
  177. package/dist/utils/constants/application.js.map +1 -0
  178. package/dist/utils/constants/index.cjs +30 -0
  179. package/dist/utils/constants/index.d.ts +7 -0
  180. package/dist/utils/constants/index.d.ts.map +1 -0
  181. package/dist/utils/constants/index.js +30 -0
  182. package/dist/utils/constants/index.js.map +1 -0
  183. package/dist/utils/constants/status-values.cjs +14 -0
  184. package/dist/utils/constants/status-values.d.ts +12 -0
  185. package/dist/utils/constants/status-values.d.ts.map +1 -0
  186. package/dist/utils/constants/status-values.js +14 -0
  187. package/dist/utils/constants/status-values.js.map +1 -0
  188. package/dist/utils/formatting/currency.cjs +36 -0
  189. package/dist/utils/formatting/currency.d.ts +26 -0
  190. package/dist/utils/formatting/currency.d.ts.map +1 -0
  191. package/dist/utils/formatting/currency.js +36 -0
  192. package/dist/utils/formatting/currency.js.map +1 -0
  193. package/dist/utils/formatting/date.cjs +138 -0
  194. package/dist/utils/formatting/date.d.ts +33 -0
  195. package/dist/utils/formatting/date.d.ts.map +1 -0
  196. package/dist/utils/formatting/date.js +138 -0
  197. package/dist/utils/formatting/date.js.map +1 -0
  198. package/dist/utils/formatting/index.cjs +37 -0
  199. package/dist/utils/formatting/index.d.ts +4 -0
  200. package/dist/utils/formatting/index.d.ts.map +1 -0
  201. package/dist/utils/formatting/index.js +37 -0
  202. package/dist/utils/formatting/index.js.map +1 -0
  203. package/dist/utils/formatting/string.cjs +193 -0
  204. package/dist/utils/formatting/string.d.ts +69 -0
  205. package/dist/utils/formatting/string.d.ts.map +1 -0
  206. package/dist/utils/formatting/string.js +193 -0
  207. package/dist/utils/formatting/string.js.map +1 -0
  208. package/dist/utils/index.cjs +28 -0
  209. package/dist/utils/index.d.ts +12 -0
  210. package/dist/utils/index.d.ts.map +1 -0
  211. package/dist/utils/index.js +28 -0
  212. package/dist/utils/index.js.map +1 -0
  213. package/dist/utils/logging/index.cjs +16 -0
  214. package/dist/utils/logging/index.d.ts +5 -0
  215. package/dist/utils/logging/index.d.ts.map +1 -0
  216. package/dist/utils/logging/index.js +16 -0
  217. package/dist/utils/logging/index.js.map +1 -0
  218. package/dist/utils/logging/logger.cjs +92 -0
  219. package/dist/utils/logging/logger.d.ts +70 -0
  220. package/dist/utils/logging/logger.d.ts.map +1 -0
  221. package/dist/utils/logging/logger.js +92 -0
  222. package/dist/utils/logging/logger.js.map +1 -0
  223. package/dist/utils/url/index.cjs +13 -0
  224. package/dist/utils/url/index.d.ts +5 -0
  225. package/dist/utils/url/index.d.ts.map +1 -0
  226. package/dist/utils/url/index.js +13 -0
  227. package/dist/utils/url/index.js.map +1 -0
  228. package/dist/utils/url/url-params.cjs +128 -0
  229. package/dist/utils/url/url-params.d.ts +36 -0
  230. package/dist/utils/url/url-params.d.ts.map +1 -0
  231. package/dist/utils/url/url-params.js +128 -0
  232. package/dist/utils/url/url-params.js.map +1 -0
  233. package/dist/utils/validation/index.cjs +25 -0
  234. package/dist/utils/validation/index.d.ts +5 -0
  235. package/dist/utils/validation/index.d.ts.map +1 -0
  236. package/dist/utils/validation/index.js +25 -0
  237. package/dist/utils/validation/index.js.map +1 -0
  238. package/dist/utils/validation/type-validation.cjs +167 -0
  239. package/dist/utils/validation/type-validation.d.ts +68 -0
  240. package/dist/utils/validation/type-validation.d.ts.map +1 -0
  241. package/dist/utils/validation/type-validation.js +167 -0
  242. package/dist/utils/validation/type-validation.js.map +1 -0
  243. package/dist/utils/validation/web3-username-validator.cjs +132 -0
  244. package/dist/utils/validation/web3-username-validator.d.ts +43 -0
  245. package/dist/utils/validation/web3-username-validator.d.ts.map +1 -0
  246. package/dist/utils/validation/web3-username-validator.js +132 -0
  247. package/dist/utils/validation/web3-username-validator.js.map +1 -0
  248. package/package.json +80 -0
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * Wallet status management types
4
+ * Defines the structure for tracking wallet connection and verification state
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.getWalletConnectionState = exports.isWalletVerified = exports.isWalletConnected = void 0;
8
+ const enums_1 = require("./enums");
9
+ /**
10
+ * Type guard to check if wallet status is defined
11
+ */
12
+ const isWalletConnected = (status) => {
13
+ return (status !== undefined && status !== null && Boolean(status.walletAddress));
14
+ };
15
+ exports.isWalletConnected = isWalletConnected;
16
+ /**
17
+ * Type guard to check if wallet is verified (has message and signature)
18
+ */
19
+ const isWalletVerified = (status) => {
20
+ return ((0, exports.isWalletConnected)(status) &&
21
+ Boolean(status.message) &&
22
+ Boolean(status.signature));
23
+ };
24
+ exports.isWalletVerified = isWalletVerified;
25
+ /**
26
+ * Get current wallet connection state
27
+ */
28
+ const getWalletConnectionState = (status) => {
29
+ if (!(0, exports.isWalletConnected)(status)) {
30
+ return enums_1.ConnectionState.DISCONNECTED;
31
+ }
32
+ if ((0, exports.isWalletVerified)(status)) {
33
+ return enums_1.ConnectionState.VERIFIED;
34
+ }
35
+ return enums_1.ConnectionState.CONNECTED;
36
+ };
37
+ exports.getWalletConnectionState = getWalletConnectionState;
38
+ //# sourceMappingURL=wallet-status.js.map
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Wallet status management types
3
+ * Defines the structure for tracking wallet connection and verification state
4
+ */
5
+ import { Optional } from '../common';
6
+ import { ConnectionState, ChainType } from './enums';
7
+ /**
8
+ * Wallet status interface representing the current state of wallet connection
9
+ */
10
+ export interface WalletStatus {
11
+ /** The connected wallet address */
12
+ walletAddress: string;
13
+ /** The blockchain type (EVM or Solana) */
14
+ chainType: ChainType;
15
+ /** Optional verification message (present when wallet is verified) */
16
+ message?: Optional<string>;
17
+ /** Optional signature (present when wallet is verified) */
18
+ signature?: Optional<string>;
19
+ }
20
+ /**
21
+ * Type guard to check if wallet status is defined
22
+ */
23
+ export declare const isWalletConnected: (status?: Optional<WalletStatus>) => status is WalletStatus;
24
+ /**
25
+ * Type guard to check if wallet is verified (has message and signature)
26
+ */
27
+ export declare const isWalletVerified: (status?: Optional<WalletStatus>) => status is Required<WalletStatus>;
28
+ /**
29
+ * Get current wallet connection state
30
+ */
31
+ export declare const getWalletConnectionState: (status?: Optional<WalletStatus>) => ConnectionState;
32
+ //# sourceMappingURL=wallet-status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet-status.d.ts","sourceRoot":"","sources":["../../../src/types/business/wallet-status.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,mCAAmC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,SAAS,EAAE,SAAS,CAAC;IACrB,sEAAsE;IACtE,OAAO,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC3B,2DAA2D;IAC3D,SAAS,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,GAC5B,SAAS,QAAQ,CAAC,YAAY,CAAC,KAC9B,MAAM,IAAI,YAIZ,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,QAAQ,CAAC,YAAY,CAAC,KAC9B,MAAM,IAAI,QAAQ,CAAC,YAAY,CAMjC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,GACnC,SAAS,QAAQ,CAAC,YAAY,CAAC,KAC9B,eAUF,CAAC"}
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /**
3
+ * Wallet status management types
4
+ * Defines the structure for tracking wallet connection and verification state
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.getWalletConnectionState = exports.isWalletVerified = exports.isWalletConnected = void 0;
8
+ const enums_1 = require("./enums");
9
+ /**
10
+ * Type guard to check if wallet status is defined
11
+ */
12
+ const isWalletConnected = (status) => {
13
+ return (status !== undefined && status !== null && Boolean(status.walletAddress));
14
+ };
15
+ exports.isWalletConnected = isWalletConnected;
16
+ /**
17
+ * Type guard to check if wallet is verified (has message and signature)
18
+ */
19
+ const isWalletVerified = (status) => {
20
+ return ((0, exports.isWalletConnected)(status) &&
21
+ Boolean(status.message) &&
22
+ Boolean(status.signature));
23
+ };
24
+ exports.isWalletVerified = isWalletVerified;
25
+ /**
26
+ * Get current wallet connection state
27
+ */
28
+ const getWalletConnectionState = (status) => {
29
+ if (!(0, exports.isWalletConnected)(status)) {
30
+ return enums_1.ConnectionState.DISCONNECTED;
31
+ }
32
+ if ((0, exports.isWalletVerified)(status)) {
33
+ return enums_1.ConnectionState.VERIFIED;
34
+ }
35
+ return enums_1.ConnectionState.CONNECTED;
36
+ };
37
+ exports.getWalletConnectionState = getWalletConnectionState;
38
+ //# sourceMappingURL=wallet-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wallet-status.js","sourceRoot":"","sources":["../../../src/types/business/wallet-status.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAGH,mCAAqD;AAgBrD;;GAEG;AACI,MAAM,iBAAiB,GAAG,CAC/B,MAA+B,EACP,EAAE;IAC1B,OAAO,CACL,MAAM,KAAK,SAAS,IAAI,MAAM,KAAK,IAAI,IAAI,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CACzE,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,iBAAiB,qBAM5B;AAEF;;GAEG;AACI,MAAM,gBAAgB,GAAG,CAC9B,MAA+B,EACG,EAAE;IACpC,OAAO,CACL,IAAA,yBAAiB,EAAC,MAAM,CAAC;QACzB,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;QACvB,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAC1B,CAAC;AACJ,CAAC,CAAC;AARW,QAAA,gBAAgB,oBAQ3B;AAEF;;GAEG;AACI,MAAM,wBAAwB,GAAG,CACtC,MAA+B,EACd,EAAE;IACnB,IAAI,CAAC,IAAA,yBAAiB,EAAC,MAAM,CAAC,EAAE,CAAC;QAC/B,OAAO,uBAAe,CAAC,YAAY,CAAC;IACtC,CAAC;IAED,IAAI,IAAA,wBAAgB,EAAC,MAAM,CAAC,EAAE,CAAC;QAC7B,OAAO,uBAAe,CAAC,QAAQ,CAAC;IAClC,CAAC;IAED,OAAO,uBAAe,CAAC,SAAS,CAAC;AACnC,CAAC,CAAC;AAZW,QAAA,wBAAwB,4BAYnC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Common utility types used throughout the application
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1,142 @@
1
+ /**
2
+ * Common utility types used throughout the application
3
+ */
4
+ import { ChainType } from './business/enums';
5
+ /**
6
+ * Utility type for values that can be T, undefined, or null
7
+ * Provides a more semantic way to represent optional/nullable values
8
+ */
9
+ export type Optional<T> = T | undefined | null;
10
+ /**
11
+ * Base wallet data structure containing address and chain type
12
+ * Used across all wallet-related interfaces to ensure consistency
13
+ */
14
+ export interface WalletData {
15
+ /** Wallet address (EVM 0x format or Solana Base58) */
16
+ walletAddress: string;
17
+ /** Chain type classification (EVM or Solana) */
18
+ chainType: ChainType;
19
+ }
20
+ /**
21
+ * Base folder data structure containing common folder properties
22
+ * Used across all folder/mailbox-related interfaces to ensure consistency
23
+ */
24
+ export interface FolderBase {
25
+ /** Folder name */
26
+ name: string;
27
+ /** Total message count */
28
+ count: number;
29
+ /** Unread message count */
30
+ unreadCount: number;
31
+ }
32
+ /**
33
+ * Base message structure containing core message fields
34
+ * Used across all message/email-related interfaces to ensure consistency
35
+ */
36
+ export interface MessageBase {
37
+ /** Message sender */
38
+ from: string;
39
+ /** Message recipient */
40
+ to: string;
41
+ /** Message subject line */
42
+ subject: string;
43
+ /** Message body content */
44
+ body: string;
45
+ }
46
+ /**
47
+ * Base response structure for all API operations
48
+ * Unified response interface for consistency across the entire application
49
+ */
50
+ export interface BaseResponse<T = unknown> {
51
+ /** Operation success status */
52
+ success: boolean;
53
+ /** Response data */
54
+ data?: Optional<T>;
55
+ /** Error message if operation failed */
56
+ error?: Optional<string>;
57
+ /** Response timestamp */
58
+ timestamp: string;
59
+ }
60
+ /**
61
+ * Unified pagination options for querying
62
+ */
63
+ export interface PaginationOptions {
64
+ /** Number of items per page */
65
+ limit: number;
66
+ /** Offset from start (for offset-based pagination) */
67
+ offset?: Optional<number>;
68
+ /** Cursor for cursor-based pagination */
69
+ cursor?: Optional<string>;
70
+ /** Sort order */
71
+ sortOrder?: Optional<'asc' | 'desc'>;
72
+ }
73
+ /**
74
+ * Unified pagination metadata for responses
75
+ */
76
+ export interface PaginationInfo {
77
+ /** Whether there are more items after current page */
78
+ hasNextPage: boolean;
79
+ /** Whether there are items before current page */
80
+ hasPreviousPage?: Optional<boolean>;
81
+ /** Cursor to fetch next page */
82
+ nextCursor?: Optional<string>;
83
+ /** Cursor to fetch previous page */
84
+ previousCursor?: Optional<string>;
85
+ /** Total count of items (if available) */
86
+ totalCount?: Optional<number>;
87
+ /** Current page size */
88
+ pageSize: number;
89
+ }
90
+ /**
91
+ * Paginated response structure
92
+ */
93
+ export interface PaginatedResponse<T> extends BaseResponse<T[]> {
94
+ /** Pagination metadata */
95
+ pagination: PaginationInfo;
96
+ }
97
+ /**
98
+ * Unified error structure for all operations
99
+ */
100
+ export interface UnifiedError {
101
+ /** Error type/code */
102
+ type: 'ValidationError' | 'InsufficientFunds' | 'Unauthorized' | 'ContractError' | 'NetworkError' | 'OperationError';
103
+ /** Error code (optional, for more specific categorization) */
104
+ code?: Optional<string>;
105
+ /** Human-readable error message */
106
+ message: string;
107
+ /** Additional error details */
108
+ details?: Optional<{
109
+ field?: Optional<string>;
110
+ expectedValue?: Optional<unknown>;
111
+ actualValue?: Optional<unknown>;
112
+ txHash?: Optional<string>;
113
+ [key: string]: unknown;
114
+ }>;
115
+ /** Suggested user action */
116
+ suggestedAction?: Optional<string>;
117
+ }
118
+ /**
119
+ * Result type for operations that can succeed or fail
120
+ * @template T Success result type
121
+ * @template E Error type (defaults to UnifiedError)
122
+ */
123
+ export type Result<T, E = UnifiedError> = {
124
+ success: true;
125
+ data: T;
126
+ } | {
127
+ success: false;
128
+ error: E;
129
+ };
130
+ /**
131
+ * Unified validation result pattern
132
+ * @template T The validated data type
133
+ */
134
+ export type ValidationResult<T = unknown> = {
135
+ isValid: true;
136
+ data: T;
137
+ } | {
138
+ isValid: false;
139
+ error: string;
140
+ data?: Optional<never>;
141
+ };
142
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Common utility types used throughout the application
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Application configuration types
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=app-config.js.map
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Application configuration types
3
+ */
4
+ import { Optional } from '../common';
5
+ /**
6
+ * Firebase service configuration interface.
7
+ *
8
+ * Contains all necessary configuration for Firebase services including
9
+ * authentication, analytics, messaging, and web push notifications.
10
+ */
11
+ export interface FirebaseConfig {
12
+ /** Firebase project API key */
13
+ apiKey: string;
14
+ /** Firebase authentication domain */
15
+ authDomain: string;
16
+ /** Firebase project ID */
17
+ projectId: string;
18
+ /** Firebase storage bucket URL */
19
+ storageBucket: string;
20
+ /** Firebase Cloud Messaging sender ID */
21
+ messagingSenderId: string;
22
+ /** Firebase application ID */
23
+ appId: string;
24
+ /** Google Analytics measurement ID (optional) */
25
+ measurementId?: Optional<string>;
26
+ /** VAPID key for web push notifications (optional) */
27
+ vapidKey?: Optional<string>;
28
+ }
29
+ /**
30
+ * Main application configuration interface.
31
+ *
32
+ * Centralizes all application configuration including API endpoints,
33
+ * service keys, and feature flags. Designed for email/communication
34
+ * applications with blockchain wallet integration.
35
+ *
36
+ * @example
37
+ * ```typescript
38
+ * const config: AppConfig = {
39
+ * wildDuckBackendUrl: 'https://api.myemailapp.com',
40
+ * indexerBackendUrl: 'https://indexer.myapp.com',
41
+ * // ... other required configuration
42
+ * };
43
+ * ```
44
+ */
45
+ export interface AppConfig {
46
+ /** Backend API URL for Wildduck email server */
47
+ wildDuckBackendUrl: string;
48
+ /** Backend URL for blockchain/crypto indexer service */
49
+ indexerBackendUrl: string;
50
+ /** API token for Wildduck email server authentication */
51
+ wildDuckApiToken: string;
52
+ /** RevenueCat API key for subscription management */
53
+ revenueCatApiKey: string;
54
+ /** WalletConnect project ID for crypto wallet integration */
55
+ walletConnectProjectId: string;
56
+ /** Privy application ID for authentication service */
57
+ privyAppId: string;
58
+ /** Complete Firebase service configuration */
59
+ firebase: FirebaseConfig;
60
+ /** Whether to use Cloudflare Worker for proxy/caching */
61
+ useCloudflareWorker: boolean;
62
+ /** Cloudflare Worker URL when enabled */
63
+ cloudflareWorkerUrl: string;
64
+ /** Enable mock/fallback services for development/testing */
65
+ useMockFallback: boolean;
66
+ }
67
+ //# sourceMappingURL=app-config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-config.d.ts","sourceRoot":"","sources":["../../../src/types/config/app-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,qCAAqC;IACrC,UAAU,EAAE,MAAM,CAAC;IACnB,0BAA0B;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,yCAAyC;IACzC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,8BAA8B;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,aAAa,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACjC,sDAAsD;IACtD,QAAQ,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,SAAS;IACxB,gDAAgD;IAChD,kBAAkB,EAAE,MAAM,CAAC;IAC3B,wDAAwD;IACxD,iBAAiB,EAAE,MAAM,CAAC;IAE1B,yDAAyD;IACzD,gBAAgB,EAAE,MAAM,CAAC;IACzB,qDAAqD;IACrD,gBAAgB,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,sBAAsB,EAAE,MAAM,CAAC;IAC/B,sDAAsD;IACtD,UAAU,EAAE,MAAM,CAAC;IAEnB,8CAA8C;IAC9C,QAAQ,EAAE,cAAc,CAAC;IAEzB,yDAAyD;IACzD,mBAAmB,EAAE,OAAO,CAAC;IAC7B,yCAAyC;IACzC,mBAAmB,EAAE,MAAM,CAAC;IAE5B,4DAA4D;IAC5D,eAAe,EAAE,OAAO,CAAC;CAC1B"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * Application configuration types
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ //# sourceMappingURL=app-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-config.js","sourceRoot":"","sources":["../../../src/types/config/app-config.ts"],"names":[],"mappings":";AAAA;;GAEG"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ * Environment configuration types for cross-platform applications
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.StorageType = void 0;
7
+ /**
8
+ * Storage type enumeration for cross-platform storage abstraction.
9
+ *
10
+ * Provides runtime-accessible values for different storage mechanisms
11
+ * across web browsers, React Native, and Node.js environments.
12
+ */
13
+ var StorageType;
14
+ (function (StorageType) {
15
+ /** Web browser localStorage for persistent client-side storage */
16
+ StorageType["LOCAL_STORAGE"] = "localStorage";
17
+ /** Web browser sessionStorage for session-based storage */
18
+ StorageType["SESSION_STORAGE"] = "sessionStorage";
19
+ /** React Native AsyncStorage for mobile persistent storage */
20
+ StorageType["ASYNC_STORAGE"] = "asyncStorage";
21
+ /** In-memory storage for testing or temporary data */
22
+ StorageType["MEMORY"] = "memory";
23
+ })(StorageType || (exports.StorageType = StorageType = {}));
24
+ //# sourceMappingURL=environment.js.map
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Environment configuration types for cross-platform applications
3
+ */
4
+ import { Optional } from '../common';
5
+ /**
6
+ * Environment variables interface with typed NODE_ENV and flexible additional properties.
7
+ */
8
+ export interface EnvironmentVariables {
9
+ /** Node.js environment setting with strict typing */
10
+ NODE_ENV?: Optional<'development' | 'production' | 'test'>;
11
+ /** Additional environment variables with flexible string keys */
12
+ [key: string]: Optional<string>;
13
+ }
14
+ /**
15
+ * Environment provider interface for accessing and validating environment configuration.
16
+ *
17
+ * Provides type-safe access to environment variables with runtime environment detection.
18
+ * Essential for configuration management across different deployment environments.
19
+ *
20
+ * @example
21
+ * ```typescript
22
+ * class NodeEnvProvider implements EnvProvider {
23
+ * get(key: string, defaultValue?: string) {
24
+ * return process.env[key] ?? defaultValue;
25
+ * }
26
+ * isDevelopment() { return this.get('NODE_ENV') === 'development'; }
27
+ * }
28
+ * ```
29
+ */
30
+ export interface EnvProvider {
31
+ /**
32
+ * Get environment variable with type-safe key access.
33
+ */
34
+ get<K extends keyof EnvironmentVariables>(key: K, defaultValue?: string): EnvironmentVariables[K] | Optional<string>;
35
+ /**
36
+ * Check if currently running in development environment.
37
+ */
38
+ isDevelopment(): boolean;
39
+ /**
40
+ * Check if currently running in production environment.
41
+ */
42
+ isProduction(): boolean;
43
+ /**
44
+ * Check if currently running in test environment.
45
+ */
46
+ isTest(): boolean;
47
+ /**
48
+ * Get all environment variables as a typed object.
49
+ */
50
+ getAll(): EnvironmentVariables;
51
+ }
52
+ /**
53
+ * Storage type enumeration for cross-platform storage abstraction.
54
+ *
55
+ * Provides runtime-accessible values for different storage mechanisms
56
+ * across web browsers, React Native, and Node.js environments.
57
+ */
58
+ export declare enum StorageType {
59
+ /** Web browser localStorage for persistent client-side storage */
60
+ LOCAL_STORAGE = "localStorage",
61
+ /** Web browser sessionStorage for session-based storage */
62
+ SESSION_STORAGE = "sessionStorage",
63
+ /** React Native AsyncStorage for mobile persistent storage */
64
+ ASYNC_STORAGE = "asyncStorage",
65
+ /** In-memory storage for testing or temporary data */
66
+ MEMORY = "memory"
67
+ }
68
+ //# sourceMappingURL=environment.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../../src/types/config/environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,qDAAqD;IACrD,QAAQ,CAAC,EAAE,QAAQ,CAAC,aAAa,GAAG,YAAY,GAAG,MAAM,CAAC,CAAC;IAC3D,iEAAiE;IACjE,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;CACjC;AAED;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,GAAG,CAAC,CAAC,SAAS,MAAM,oBAAoB,EACtC,GAAG,EAAE,CAAC,EACN,YAAY,CAAC,EAAE,MAAM,GACpB,oBAAoB,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC;IAE9C;;OAEG;IACH,aAAa,IAAI,OAAO,CAAC;IAEzB;;OAEG;IACH,YAAY,IAAI,OAAO,CAAC;IAExB;;OAEG;IACH,MAAM,IAAI,OAAO,CAAC;IAElB;;OAEG;IACH,MAAM,IAAI,oBAAoB,CAAC;CAChC;AAED;;;;;GAKG;AACH,oBAAY,WAAW;IACrB,kEAAkE;IAClE,aAAa,iBAAiB;IAC9B,2DAA2D;IAC3D,eAAe,mBAAmB;IAClC,8DAA8D;IAC9D,aAAa,iBAAiB;IAC9B,sDAAsD;IACtD,MAAM,WAAW;CAClB"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /**
3
+ * Environment configuration types for cross-platform applications
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.StorageType = void 0;
7
+ /**
8
+ * Storage type enumeration for cross-platform storage abstraction.
9
+ *
10
+ * Provides runtime-accessible values for different storage mechanisms
11
+ * across web browsers, React Native, and Node.js environments.
12
+ */
13
+ var StorageType;
14
+ (function (StorageType) {
15
+ /** Web browser localStorage for persistent client-side storage */
16
+ StorageType["LOCAL_STORAGE"] = "localStorage";
17
+ /** Web browser sessionStorage for session-based storage */
18
+ StorageType["SESSION_STORAGE"] = "sessionStorage";
19
+ /** React Native AsyncStorage for mobile persistent storage */
20
+ StorageType["ASYNC_STORAGE"] = "asyncStorage";
21
+ /** In-memory storage for testing or temporary data */
22
+ StorageType["MEMORY"] = "memory";
23
+ })(StorageType || (exports.StorageType = StorageType = {}));
24
+ //# sourceMappingURL=environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment.js","sourceRoot":"","sources":["../../../src/types/config/environment.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AA4DH;;;;;GAKG;AACH,IAAY,WASX;AATD,WAAY,WAAW;IACrB,kEAAkE;IAClE,6CAA8B,CAAA;IAC9B,2DAA2D;IAC3D,iDAAkC,CAAA;IAClC,8DAA8D;IAC9D,6CAA8B,CAAA;IAC9B,sDAAsD;IACtD,gCAAiB,CAAA;AACnB,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StorageType = void 0;
4
+ var environment_1 = require("./environment");
5
+ Object.defineProperty(exports, "StorageType", { enumerable: true, get: function () { return environment_1.StorageType; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,4 @@
1
+ export type { EnvProvider, EnvironmentVariables } from './environment';
2
+ export { StorageType } from './environment';
3
+ export type { AppConfig, FirebaseConfig } from './app-config';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/config/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,WAAW,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StorageType = void 0;
4
+ var environment_1 = require("./environment");
5
+ Object.defineProperty(exports, "StorageType", { enumerable: true, get: function () { return environment_1.StorageType; } });
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/config/index.ts"],"names":[],"mappings":";;;AAGA,6CAA4C;AAAnC,0GAAA,WAAW,OAAA"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Common utility types
18
+ __exportStar(require("./common"), exports);
19
+ // Indexer API response types
20
+ __exportStar(require("./indexer"), exports);
21
+ // Business domain types
22
+ __exportStar(require("./business"), exports);
23
+ // Blockchain and crypto types
24
+ __exportStar(require("./blockchain"), exports);
25
+ // Application configuration
26
+ __exportStar(require("./config"), exports);
27
+ // Infrastructure types
28
+ __exportStar(require("./infrastructure"), exports);
29
+ // Mailer and mailbox contract response types
30
+ __exportStar(require("./mailer"), exports);
31
+ // KYC verification types
32
+ __exportStar(require("./kyc"), exports);
33
+ // WildDuck Mail Server API types
34
+ __exportStar(require("./wildduck"), exports);
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,10 @@
1
+ export * from './common';
2
+ export * from './indexer';
3
+ export * from './business';
4
+ export * from './blockchain';
5
+ export * from './config';
6
+ export * from './infrastructure';
7
+ export * from './mailer';
8
+ export * from './kyc';
9
+ export * from './wildduck';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,cAAc,WAAW,CAAC;AAG1B,cAAc,YAAY,CAAC;AAG3B,cAAc,cAAc,CAAC;AAG7B,cAAc,UAAU,CAAC;AAGzB,cAAc,kBAAkB,CAAC;AAGjC,cAAc,UAAU,CAAC;AAGzB,cAAc,OAAO,CAAC;AAGtB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // Common utility types
18
+ __exportStar(require("./common"), exports);
19
+ // Indexer API response types
20
+ __exportStar(require("./indexer"), exports);
21
+ // Business domain types
22
+ __exportStar(require("./business"), exports);
23
+ // Blockchain and crypto types
24
+ __exportStar(require("./blockchain"), exports);
25
+ // Application configuration
26
+ __exportStar(require("./config"), exports);
27
+ // Infrastructure types
28
+ __exportStar(require("./infrastructure"), exports);
29
+ // Mailer and mailbox contract response types
30
+ __exportStar(require("./mailer"), exports);
31
+ // KYC verification types
32
+ __exportStar(require("./kyc"), exports);
33
+ // WildDuck Mail Server API types
34
+ __exportStar(require("./wildduck"), exports);
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uBAAuB;AACvB,2CAAyB;AAEzB,6BAA6B;AAC7B,4CAA0B;AAE1B,wBAAwB;AACxB,6CAA2B;AAE3B,8BAA8B;AAC9B,+CAA6B;AAE7B,4BAA4B;AAC5B,2CAAyB;AAEzB,uBAAuB;AACvB,mDAAiC;AAEjC,6CAA6C;AAC7C,2CAAyB;AAEzB,yBAAyB;AACzB,wCAAsB;AAEtB,iCAAiC;AACjC,6CAA2B"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isIndexerSuccessResponse = exports.isIndexerErrorResponse = exports.isSiteStatsResponse = exports.isLeaderboardResponse = exports.isPointsResponse = exports.isSignInMessageResponse = exports.isEntitlementResponse = exports.isNonceResponse = exports.isDelegatedFromResponse = exports.isDelegatedToResponse = exports.isRewardsResponse = exports.isEmailAccountsResponse = exports.isAddressValidationResponse = void 0;
4
+ // Export type guards
5
+ var indexer_guards_1 = require("./indexer-guards");
6
+ Object.defineProperty(exports, "isAddressValidationResponse", { enumerable: true, get: function () { return indexer_guards_1.isAddressValidationResponse; } });
7
+ Object.defineProperty(exports, "isEmailAccountsResponse", { enumerable: true, get: function () { return indexer_guards_1.isEmailAccountsResponse; } });
8
+ Object.defineProperty(exports, "isRewardsResponse", { enumerable: true, get: function () { return indexer_guards_1.isRewardsResponse; } });
9
+ Object.defineProperty(exports, "isDelegatedToResponse", { enumerable: true, get: function () { return indexer_guards_1.isDelegatedToResponse; } });
10
+ Object.defineProperty(exports, "isDelegatedFromResponse", { enumerable: true, get: function () { return indexer_guards_1.isDelegatedFromResponse; } });
11
+ Object.defineProperty(exports, "isNonceResponse", { enumerable: true, get: function () { return indexer_guards_1.isNonceResponse; } });
12
+ Object.defineProperty(exports, "isEntitlementResponse", { enumerable: true, get: function () { return indexer_guards_1.isEntitlementResponse; } });
13
+ Object.defineProperty(exports, "isSignInMessageResponse", { enumerable: true, get: function () { return indexer_guards_1.isSignInMessageResponse; } });
14
+ Object.defineProperty(exports, "isPointsResponse", { enumerable: true, get: function () { return indexer_guards_1.isPointsResponse; } });
15
+ Object.defineProperty(exports, "isLeaderboardResponse", { enumerable: true, get: function () { return indexer_guards_1.isLeaderboardResponse; } });
16
+ Object.defineProperty(exports, "isSiteStatsResponse", { enumerable: true, get: function () { return indexer_guards_1.isSiteStatsResponse; } });
17
+ Object.defineProperty(exports, "isIndexerErrorResponse", { enumerable: true, get: function () { return indexer_guards_1.isIndexerErrorResponse; } });
18
+ Object.defineProperty(exports, "isIndexerSuccessResponse", { enumerable: true, get: function () { return indexer_guards_1.isIndexerSuccessResponse; } });
19
+ //# sourceMappingURL=index.js.map