@sudobility/types 1.9.11 → 1.9.12
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.
- package/CLAUDE.md +2 -2
- package/README.md +6 -6
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/types/kyc/kyc-types.cjs +1 -1
- package/dist/types/kyc/kyc-types.d.ts +1 -1
- package/dist/types/kyc/kyc-types.js +1 -1
- package/dist/utils/auth/auth.cjs +5 -2
- package/dist/utils/auth/auth.d.ts +4 -1
- package/dist/utils/auth/auth.d.ts.map +1 -1
- package/dist/utils/auth/auth.js +5 -2
- package/dist/utils/auth/auth.js.map +1 -1
- package/dist/utils/constants/application.cjs +4 -10
- package/dist/utils/constants/application.d.ts +2 -7
- package/dist/utils/constants/application.d.ts.map +1 -1
- package/dist/utils/constants/application.js +4 -10
- package/dist/utils/constants/application.js.map +1 -1
- package/dist/utils/constants/index.cjs +2 -3
- package/dist/utils/constants/index.d.ts +1 -1
- package/dist/utils/constants/index.d.ts.map +1 -1
- package/dist/utils/constants/index.js +2 -3
- package/dist/utils/constants/index.js.map +1 -1
- package/package.json +3 -4
package/CLAUDE.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Project Overview
|
|
4
4
|
|
|
5
|
-
This is `@sudobility/types` v1.8.29, a comprehensive TypeScript types library for
|
|
5
|
+
This is `@sudobility/types` v1.8.29, a comprehensive TypeScript types library for Web3 email applications. It provides shared type definitions, interfaces, enums, and utility functions used across multiple Web3 email platform projects.
|
|
6
6
|
|
|
7
7
|
## Key Architecture
|
|
8
8
|
|
|
@@ -113,7 +113,7 @@ npm run ai:docs # Generate AI documentation
|
|
|
113
113
|
|
|
114
114
|
## Domain Knowledge
|
|
115
115
|
|
|
116
|
-
###
|
|
116
|
+
### Web3 Email Platform Context
|
|
117
117
|
- **Web3-native email platform**: Blockchain-based messaging system
|
|
118
118
|
- **Multi-chain support**: Ethereum, Polygon, Arbitrum, Optimism, Base, Solana
|
|
119
119
|
- **Wallet-centric**: User management tied to crypto wallet addresses
|
package/README.md
CHANGED
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
[](https://www.typescriptlang.org/)
|
|
5
5
|
[](https://opensource.org/licenses/MIT)
|
|
6
6
|
|
|
7
|
-
**Comprehensive TypeScript type definitions and utilities for
|
|
7
|
+
**Comprehensive TypeScript type definitions and utilities for Web3 email applications.**
|
|
8
8
|
|
|
9
9
|
## 🚀 Overview
|
|
10
10
|
|
|
11
|
-
This package provides a complete type-safe foundation for
|
|
11
|
+
This package provides a complete type-safe foundation for Web3 email applications, featuring:
|
|
12
12
|
|
|
13
13
|
- **267 comprehensive tests** ensuring type reliability
|
|
14
14
|
- **Zero runtime dependencies** for optimal performance
|
|
@@ -59,8 +59,8 @@ import {
|
|
|
59
59
|
|
|
60
60
|
// Email handling
|
|
61
61
|
const email: Email = {
|
|
62
|
-
from: 'sender@
|
|
63
|
-
to: 'recipient@
|
|
62
|
+
from: 'sender@example.com',
|
|
63
|
+
to: 'recipient@example.com',
|
|
64
64
|
subject: 'Web3 Email',
|
|
65
65
|
body: 'Hello from the blockchain!',
|
|
66
66
|
id: 'msg_123',
|
|
@@ -301,10 +301,10 @@ This project follows strict quality standards:
|
|
|
301
301
|
|
|
302
302
|
## 📄 License
|
|
303
303
|
|
|
304
|
-
MIT ©
|
|
304
|
+
MIT © Sudobility
|
|
305
305
|
|
|
306
306
|
---
|
|
307
307
|
|
|
308
308
|
**Built with ❤️ for the Web3 email revolution**
|
|
309
309
|
|
|
310
|
-
*This package powers the type-safe foundation
|
|
310
|
+
*This package powers the type-safe foundation for Web3-native email platforms.*
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* @johnqh/types - Common TypeScript types for
|
|
3
|
+
* @johnqh/types - Common TypeScript types for Web3 email projects
|
|
4
4
|
*
|
|
5
5
|
* This package contains all shared TypeScript definitions used across
|
|
6
|
-
*
|
|
6
|
+
* Web3 email applications including business logic types, blockchain
|
|
7
7
|
* types, configuration interfaces, infrastructure types, and utility functions.
|
|
8
8
|
*
|
|
9
9
|
* @version 1.0.0
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @johnqh/types - Common TypeScript types for
|
|
2
|
+
* @johnqh/types - Common TypeScript types for Web3 email projects
|
|
3
3
|
*
|
|
4
4
|
* This package contains all shared TypeScript definitions used across
|
|
5
|
-
*
|
|
5
|
+
* Web3 email applications including business logic types, blockchain
|
|
6
6
|
* types, configuration interfaces, infrastructure types, and utility functions.
|
|
7
7
|
*
|
|
8
8
|
* @version 1.0.0
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/**
|
|
3
|
-
* @johnqh/types - Common TypeScript types for
|
|
3
|
+
* @johnqh/types - Common TypeScript types for Web3 email projects
|
|
4
4
|
*
|
|
5
5
|
* This package contains all shared TypeScript definitions used across
|
|
6
|
-
*
|
|
6
|
+
* Web3 email applications including business logic types, blockchain
|
|
7
7
|
* types, configuration interfaces, infrastructure types, and utility functions.
|
|
8
8
|
*
|
|
9
9
|
* @version 1.0.0
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* KYC (Know Your Customer) Verification Types
|
|
4
4
|
*
|
|
5
|
-
* Types for
|
|
5
|
+
* Types for KYC verification services which integrate
|
|
6
6
|
* with Sumsub for identity verification at three levels:
|
|
7
7
|
* - Basic: Age and identity verification (18+)
|
|
8
8
|
* - Enhanced: Basic + country verification + AML screening
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* KYC (Know Your Customer) Verification Types
|
|
3
3
|
*
|
|
4
|
-
* Types for
|
|
4
|
+
* Types for KYC verification services which integrate
|
|
5
5
|
* with Sumsub for identity verification at three levels:
|
|
6
6
|
* - Basic: Age and identity verification (18+)
|
|
7
7
|
* - Enhanced: Basic + country verification + AML screening
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* KYC (Know Your Customer) Verification Types
|
|
4
4
|
*
|
|
5
|
-
* Types for
|
|
5
|
+
* Types for KYC verification services which integrate
|
|
6
6
|
* with Sumsub for identity verification at three levels:
|
|
7
7
|
* - Basic: Age and identity verification (18+)
|
|
8
8
|
* - Enhanced: Basic + country verification + AML screening
|
package/dist/utils/auth/auth.cjs
CHANGED
|
@@ -14,10 +14,13 @@ exports.isValidNonce = isValidNonce;
|
|
|
14
14
|
const enums_1 = require("../../types/business/enums");
|
|
15
15
|
/**
|
|
16
16
|
* Generate an authentication message with a nonce
|
|
17
|
+
* @param emailDomain - The email domain/service name to display in the auth message
|
|
18
|
+
* @param nonce - Optional nonce value. If not provided, a random one will be generated
|
|
19
|
+
* @returns Authentication message string
|
|
17
20
|
*/
|
|
18
|
-
function generateAuthMessage(nonce) {
|
|
21
|
+
function generateAuthMessage(emailDomain, nonce) {
|
|
19
22
|
const actualNonce = nonce || `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
20
|
-
return `Authenticate with
|
|
23
|
+
return `Authenticate with ${emailDomain}\nNonce: ${actualNonce}`;
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
23
26
|
* Check if authentication is expired
|
|
@@ -5,8 +5,11 @@ import { AuthStatus } from '../../types/business/enums';
|
|
|
5
5
|
import { Optional } from '../../types/common';
|
|
6
6
|
/**
|
|
7
7
|
* Generate an authentication message with a nonce
|
|
8
|
+
* @param emailDomain - The email domain/service name to display in the auth message
|
|
9
|
+
* @param nonce - Optional nonce value. If not provided, a random one will be generated
|
|
10
|
+
* @returns Authentication message string
|
|
8
11
|
*/
|
|
9
|
-
export declare function generateAuthMessage(nonce?: Optional<string>): string;
|
|
12
|
+
export declare function generateAuthMessage(emailDomain: string, nonce?: Optional<string>): string;
|
|
10
13
|
/**
|
|
11
14
|
* Check if authentication is expired
|
|
12
15
|
* @param createdAt - The date when authentication was created
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/utils/auth/auth.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/utils/auth/auth.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,MAAM,EACnB,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,GACvB,MAAM,CAIR;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,SAAS,EAAE,IAAI,EAAE,eAAe,SAAK,GAAG,OAAO,CAK5E;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAW5D;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAEtE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAEjE;AAED;;GAEG;AACH,wBAAgB,aAAa,IAAI,MAAM,CAEtC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,CAGzE;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAwBnD"}
|
package/dist/utils/auth/auth.js
CHANGED
|
@@ -14,10 +14,13 @@ exports.isValidNonce = isValidNonce;
|
|
|
14
14
|
const enums_1 = require("../../types/business/enums");
|
|
15
15
|
/**
|
|
16
16
|
* Generate an authentication message with a nonce
|
|
17
|
+
* @param emailDomain - The email domain/service name to display in the auth message
|
|
18
|
+
* @param nonce - Optional nonce value. If not provided, a random one will be generated
|
|
19
|
+
* @returns Authentication message string
|
|
17
20
|
*/
|
|
18
|
-
function generateAuthMessage(nonce) {
|
|
21
|
+
function generateAuthMessage(emailDomain, nonce) {
|
|
19
22
|
const actualNonce = nonce || `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
20
|
-
return `Authenticate with
|
|
23
|
+
return `Authenticate with ${emailDomain}\nNonce: ${actualNonce}`;
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
23
26
|
* Check if authentication is expired
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/utils/auth/auth.ts"],"names":[],"mappings":";AAAA;;GAEG;;
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../src/utils/auth/auth.ts"],"names":[],"mappings":";AAAA;;GAEG;;AAWH,kDAOC;AAOD,sCAKC;AAKD,8CAWC;AAKD,gEAEC;AAKD,sDAEC;AAKD,sCAEC;AAKD,0DAGC;AAKD,oCAwBC;AAtGD,sDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,mBAAmB,CACjC,WAAmB,EACnB,KAAwB;IAExB,MAAM,WAAW,GACf,KAAK,IAAI,GAAG,IAAI,CAAC,GAAG,EAAE,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IACtE,OAAO,qBAAqB,WAAW,YAAY,WAAW,EAAE,CAAC;AACnE,CAAC;AAED;;;;GAIG;AACH,SAAgB,aAAa,CAAC,SAAe,EAAE,eAAe,GAAG,EAAE;IACjE,MAAM,cAAc,GAA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OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACxC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,yCAAyC;IACzC,IAAI,KAAK,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QACtB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,oEAAoE;IACpE,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,IAAI,KAAK,CAAC,MAAM,IAAI,CAAC,EAAE,CAAC;QACtB,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACzC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,EAAE,CAAC;YACtB,6CAA6C;YAC7C,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;YACnD,IAAI,SAAS,GAAG,SAAS,EAAE,CAAC;gBAC1B,OAAO,KAAK,CAAC;YACf,CAAC;QACH,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
// - ./gradients.ts - Gradient utilities and color schemes
|
|
5
5
|
// - ./ui-constants.ts - Layout, typography, and component patterns
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.Z_INDEX = exports.ANIMATION = exports.NETWORK_IDS = exports.WALLET_NAMES = exports.
|
|
7
|
+
exports.Z_INDEX = exports.ANIMATION = exports.NETWORK_IDS = exports.WALLET_NAMES = exports.CONTACT_INFO = exports.ROUTES = exports.SUCCESS_MESSAGES = exports.ERROR_MESSAGES = exports.TIME_FORMAT = exports.SUBSCRIPTION_TIERS = exports.EMAIL_CONFIG = exports.STORAGE_KEYS = exports.CHAIN_TYPE = exports.AUTH_STATUS = exports.API_RETRY_DELAY = exports.API_RETRY_ATTEMPTS = exports.API_TIMEOUT = void 0;
|
|
8
8
|
// API Configuration
|
|
9
|
-
const API_BASE_URL = 'https://0xmail.box';
|
|
10
|
-
exports.API_BASE_URL = API_BASE_URL;
|
|
11
9
|
const API_TIMEOUT = 30000; // 30 seconds
|
|
12
10
|
exports.API_TIMEOUT = API_TIMEOUT;
|
|
13
11
|
const API_RETRY_ATTEMPTS = 3;
|
|
@@ -102,16 +100,12 @@ const ROUTES = {
|
|
|
102
100
|
WEB3_PROJECTS: '/web3-projects',
|
|
103
101
|
};
|
|
104
102
|
exports.ROUTES = ROUTES;
|
|
105
|
-
//
|
|
106
|
-
const
|
|
107
|
-
GITHUB: 'https://github.com/0xmailbox',
|
|
108
|
-
TWITTER: 'https://twitter.com/0xmailbox',
|
|
109
|
-
DISCORD: 'https://discord.gg/0xmailbox',
|
|
110
|
-
DOCUMENTATION: 'https://docs.0xmail.box',
|
|
103
|
+
// Contact Information
|
|
104
|
+
const CONTACT_INFO = {
|
|
111
105
|
SUPPORT_EMAIL: 'support@sudobility.com',
|
|
112
106
|
CONTACT_EMAIL: 'info@sudobility.com',
|
|
113
107
|
};
|
|
114
|
-
exports.
|
|
108
|
+
exports.CONTACT_INFO = CONTACT_INFO;
|
|
115
109
|
// Wallet Names
|
|
116
110
|
const WALLET_NAMES = {
|
|
117
111
|
METAMASK: 'MetaMask',
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
declare const API_BASE_URL = "https://0xmail.box";
|
|
2
1
|
declare const API_TIMEOUT = 30000;
|
|
3
2
|
declare const API_RETRY_ATTEMPTS = 3;
|
|
4
3
|
declare const API_RETRY_DELAY = 1000;
|
|
@@ -72,11 +71,7 @@ declare const ROUTES: {
|
|
|
72
71
|
readonly WEB3_USERS: "/web3-users";
|
|
73
72
|
readonly WEB3_PROJECTS: "/web3-projects";
|
|
74
73
|
};
|
|
75
|
-
declare const
|
|
76
|
-
readonly GITHUB: "https://github.com/0xmailbox";
|
|
77
|
-
readonly TWITTER: "https://twitter.com/0xmailbox";
|
|
78
|
-
readonly DISCORD: "https://discord.gg/0xmailbox";
|
|
79
|
-
readonly DOCUMENTATION: "https://docs.0xmail.box";
|
|
74
|
+
declare const CONTACT_INFO: {
|
|
80
75
|
readonly SUPPORT_EMAIL: "support@sudobility.com";
|
|
81
76
|
readonly CONTACT_EMAIL: "info@sudobility.com";
|
|
82
77
|
};
|
|
@@ -115,5 +110,5 @@ declare const Z_INDEX: {
|
|
|
115
110
|
readonly TOOLTIP: 50;
|
|
116
111
|
readonly TOAST: 60;
|
|
117
112
|
};
|
|
118
|
-
export {
|
|
113
|
+
export { API_TIMEOUT, API_RETRY_ATTEMPTS, API_RETRY_DELAY, AUTH_STATUS, CHAIN_TYPE, STORAGE_KEYS, EMAIL_CONFIG, SUBSCRIPTION_TIERS, TIME_FORMAT, ERROR_MESSAGES, SUCCESS_MESSAGES, ROUTES, CONTACT_INFO, WALLET_NAMES, NETWORK_IDS, ANIMATION, Z_INDEX, };
|
|
119
114
|
//# sourceMappingURL=application.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../src/utils/constants/application.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../../../src/utils/constants/application.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,WAAW,QAAQ,CAAC;AAC1B,QAAA,MAAM,kBAAkB,IAAI,CAAC;AAC7B,QAAA,MAAM,eAAe,OAAO,CAAC;AAG7B,QAAA,MAAM,WAAW;;;;CAIP,CAAC;AAGX,QAAA,MAAM,UAAU;;;;CAIN,CAAC;AAGX,QAAA,MAAM,YAAY;;;;;;;CAOR,CAAC;AAGX,QAAA,MAAM,YAAY;;;;;;CAMR,CAAC;AAGX,QAAA,MAAM,kBAAkB;;;;;CAKd,CAAC;AAGX,QAAA,MAAM,WAAW;;;;;CAKP,CAAC;AAGX,QAAA,MAAM,cAAc;;;;;;;;;;CAUV,CAAC;AAGX,QAAA,MAAM,gBAAgB;;;;;;;;CAQZ,CAAC;AAGX,QAAA,MAAM,MAAM;;;;;;;;;;;;CAYF,CAAC;AAGX,QAAA,MAAM,YAAY;;;CAGR,CAAC;AAGX,QAAA,MAAM,YAAY;;;;;;;;;;;CAWR,CAAC;AAGX,QAAA,MAAM,WAAW;;;;;;;;CAQP,CAAC;AAGX,QAAA,MAAM,SAAS;;;;;CAKL,CAAC;AAGX,QAAA,MAAM,OAAO;;;;;;;CAOH,CAAC;AAIX,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,SAAS,EACT,OAAO,GACR,CAAC"}
|
|
@@ -4,10 +4,8 @@
|
|
|
4
4
|
// - ./gradients.ts - Gradient utilities and color schemes
|
|
5
5
|
// - ./ui-constants.ts - Layout, typography, and component patterns
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.Z_INDEX = exports.ANIMATION = exports.NETWORK_IDS = exports.WALLET_NAMES = exports.
|
|
7
|
+
exports.Z_INDEX = exports.ANIMATION = exports.NETWORK_IDS = exports.WALLET_NAMES = exports.CONTACT_INFO = exports.ROUTES = exports.SUCCESS_MESSAGES = exports.ERROR_MESSAGES = exports.TIME_FORMAT = exports.SUBSCRIPTION_TIERS = exports.EMAIL_CONFIG = exports.STORAGE_KEYS = exports.CHAIN_TYPE = exports.AUTH_STATUS = exports.API_RETRY_DELAY = exports.API_RETRY_ATTEMPTS = exports.API_TIMEOUT = void 0;
|
|
8
8
|
// API Configuration
|
|
9
|
-
const API_BASE_URL = 'https://0xmail.box';
|
|
10
|
-
exports.API_BASE_URL = API_BASE_URL;
|
|
11
9
|
const API_TIMEOUT = 30000; // 30 seconds
|
|
12
10
|
exports.API_TIMEOUT = API_TIMEOUT;
|
|
13
11
|
const API_RETRY_ATTEMPTS = 3;
|
|
@@ -102,16 +100,12 @@ const ROUTES = {
|
|
|
102
100
|
WEB3_PROJECTS: '/web3-projects',
|
|
103
101
|
};
|
|
104
102
|
exports.ROUTES = ROUTES;
|
|
105
|
-
//
|
|
106
|
-
const
|
|
107
|
-
GITHUB: 'https://github.com/0xmailbox',
|
|
108
|
-
TWITTER: 'https://twitter.com/0xmailbox',
|
|
109
|
-
DISCORD: 'https://discord.gg/0xmailbox',
|
|
110
|
-
DOCUMENTATION: 'https://docs.0xmail.box',
|
|
103
|
+
// Contact Information
|
|
104
|
+
const CONTACT_INFO = {
|
|
111
105
|
SUPPORT_EMAIL: 'support@sudobility.com',
|
|
112
106
|
CONTACT_EMAIL: 'info@sudobility.com',
|
|
113
107
|
};
|
|
114
|
-
exports.
|
|
108
|
+
exports.CONTACT_INFO = CONTACT_INFO;
|
|
115
109
|
// Wallet Names
|
|
116
110
|
const WALLET_NAMES = {
|
|
117
111
|
METAMASK: 'MetaMask',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../../src/utils/constants/application.ts"],"names":[],"mappings":";AAAA,wBAAwB;AACxB,4DAA4D;AAC5D,0DAA0D;AAC1D,mEAAmE;;;AAEnE,oBAAoB;AACpB,MAAM,
|
|
1
|
+
{"version":3,"file":"application.js","sourceRoot":"","sources":["../../../src/utils/constants/application.ts"],"names":[],"mappings":";AAAA,wBAAwB;AACxB,4DAA4D;AAC5D,0DAA0D;AAC1D,mEAAmE;;;AAEnE,oBAAoB;AACpB,MAAM,WAAW,GAAG,KAAK,CAAC,CAAC,aAAa;AAgJtC,kCAAW;AA/Ib,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAgJ3B,gDAAkB;AA/IpB,MAAM,eAAe,GAAG,IAAI,CAAC,CAAC,WAAW;AAgJvC,0CAAe;AA9IjB,iBAAiB;AACjB,MAAM,WAAW,GAAG;IAClB,YAAY,EAAE,c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AE,KAAK;IACf,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,IAAI;IACV,cAAc,EAAE,cAAc;IAC9B,aAAa,EAAE,QAAQ;CACf,CAAC;AAqCT,kCAAW;AAnCb,sBAAsB;AACtB,MAAM,SAAS,GAAG;IAChB,IAAI,EAAE,GAAG;IACT,MAAM,EAAE,GAAG;IACX,IAAI,EAAE,GAAG;IACT,SAAS,EAAE,IAAI;CACP,CAAC;AA8BT,8BAAS;AA5BX,iBAAiB;AACjB,MAAM,OAAO,GAAG;IACd,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,EAAE;IACX,OAAO,EAAE,EAAE;IACX,KAAK,EAAE,EAAE;CACD,CAAC;AAqBT,0BAAO"}
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
* Constants exports
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.STATUS_VALUES = exports.Z_INDEX = exports.ANIMATION = exports.NETWORK_IDS = exports.WALLET_NAMES = exports.
|
|
6
|
+
exports.STATUS_VALUES = exports.Z_INDEX = exports.ANIMATION = exports.NETWORK_IDS = exports.WALLET_NAMES = exports.CONTACT_INFO = exports.ROUTES = exports.SUCCESS_MESSAGES = exports.ERROR_MESSAGES = exports.TIME_FORMAT = exports.SUBSCRIPTION_TIERS = exports.EMAIL_CONFIG = exports.STORAGE_KEYS = exports.CHAIN_TYPE = exports.AUTH_STATUS = exports.API_RETRY_DELAY = exports.API_RETRY_ATTEMPTS = exports.API_TIMEOUT = void 0;
|
|
7
7
|
// Application constants
|
|
8
8
|
var application_1 = require("./application");
|
|
9
|
-
Object.defineProperty(exports, "API_BASE_URL", { enumerable: true, get: function () { return application_1.API_BASE_URL; } });
|
|
10
9
|
Object.defineProperty(exports, "API_TIMEOUT", { enumerable: true, get: function () { return application_1.API_TIMEOUT; } });
|
|
11
10
|
Object.defineProperty(exports, "API_RETRY_ATTEMPTS", { enumerable: true, get: function () { return application_1.API_RETRY_ATTEMPTS; } });
|
|
12
11
|
Object.defineProperty(exports, "API_RETRY_DELAY", { enumerable: true, get: function () { return application_1.API_RETRY_DELAY; } });
|
|
@@ -19,7 +18,7 @@ Object.defineProperty(exports, "TIME_FORMAT", { enumerable: true, get: function
|
|
|
19
18
|
Object.defineProperty(exports, "ERROR_MESSAGES", { enumerable: true, get: function () { return application_1.ERROR_MESSAGES; } });
|
|
20
19
|
Object.defineProperty(exports, "SUCCESS_MESSAGES", { enumerable: true, get: function () { return application_1.SUCCESS_MESSAGES; } });
|
|
21
20
|
Object.defineProperty(exports, "ROUTES", { enumerable: true, get: function () { return application_1.ROUTES; } });
|
|
22
|
-
Object.defineProperty(exports, "
|
|
21
|
+
Object.defineProperty(exports, "CONTACT_INFO", { enumerable: true, get: function () { return application_1.CONTACT_INFO; } });
|
|
23
22
|
Object.defineProperty(exports, "WALLET_NAMES", { enumerable: true, get: function () { return application_1.WALLET_NAMES; } });
|
|
24
23
|
Object.defineProperty(exports, "NETWORK_IDS", { enumerable: true, get: function () { return application_1.NETWORK_IDS; } });
|
|
25
24
|
Object.defineProperty(exports, "ANIMATION", { enumerable: true, get: function () { return application_1.ANIMATION; } });
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Constants exports
|
|
3
3
|
*/
|
|
4
|
-
export {
|
|
4
|
+
export { API_TIMEOUT, API_RETRY_ATTEMPTS, API_RETRY_DELAY, AUTH_STATUS, CHAIN_TYPE, STORAGE_KEYS, EMAIL_CONFIG, SUBSCRIPTION_TIERS, TIME_FORMAT, ERROR_MESSAGES, SUCCESS_MESSAGES, ROUTES, CONTACT_INFO, WALLET_NAMES, NETWORK_IDS, ANIMATION, Z_INDEX, } from './application';
|
|
5
5
|
export { STATUS_VALUES } from './status-values';
|
|
6
6
|
export type { StatusValue } from './status-values';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/constants/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/constants/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,eAAe,EACf,WAAW,EACX,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,MAAM,EACN,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,SAAS,EACT,OAAO,GACR,MAAM,eAAe,CAAC;AAGvB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -3,10 +3,9 @@
|
|
|
3
3
|
* Constants exports
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.STATUS_VALUES = exports.Z_INDEX = exports.ANIMATION = exports.NETWORK_IDS = exports.WALLET_NAMES = exports.
|
|
6
|
+
exports.STATUS_VALUES = exports.Z_INDEX = exports.ANIMATION = exports.NETWORK_IDS = exports.WALLET_NAMES = exports.CONTACT_INFO = exports.ROUTES = exports.SUCCESS_MESSAGES = exports.ERROR_MESSAGES = exports.TIME_FORMAT = exports.SUBSCRIPTION_TIERS = exports.EMAIL_CONFIG = exports.STORAGE_KEYS = exports.CHAIN_TYPE = exports.AUTH_STATUS = exports.API_RETRY_DELAY = exports.API_RETRY_ATTEMPTS = exports.API_TIMEOUT = void 0;
|
|
7
7
|
// Application constants
|
|
8
8
|
var application_1 = require("./application");
|
|
9
|
-
Object.defineProperty(exports, "API_BASE_URL", { enumerable: true, get: function () { return application_1.API_BASE_URL; } });
|
|
10
9
|
Object.defineProperty(exports, "API_TIMEOUT", { enumerable: true, get: function () { return application_1.API_TIMEOUT; } });
|
|
11
10
|
Object.defineProperty(exports, "API_RETRY_ATTEMPTS", { enumerable: true, get: function () { return application_1.API_RETRY_ATTEMPTS; } });
|
|
12
11
|
Object.defineProperty(exports, "API_RETRY_DELAY", { enumerable: true, get: function () { return application_1.API_RETRY_DELAY; } });
|
|
@@ -19,7 +18,7 @@ Object.defineProperty(exports, "TIME_FORMAT", { enumerable: true, get: function
|
|
|
19
18
|
Object.defineProperty(exports, "ERROR_MESSAGES", { enumerable: true, get: function () { return application_1.ERROR_MESSAGES; } });
|
|
20
19
|
Object.defineProperty(exports, "SUCCESS_MESSAGES", { enumerable: true, get: function () { return application_1.SUCCESS_MESSAGES; } });
|
|
21
20
|
Object.defineProperty(exports, "ROUTES", { enumerable: true, get: function () { return application_1.ROUTES; } });
|
|
22
|
-
Object.defineProperty(exports, "
|
|
21
|
+
Object.defineProperty(exports, "CONTACT_INFO", { enumerable: true, get: function () { return application_1.CONTACT_INFO; } });
|
|
23
22
|
Object.defineProperty(exports, "WALLET_NAMES", { enumerable: true, get: function () { return application_1.WALLET_NAMES; } });
|
|
24
23
|
Object.defineProperty(exports, "NETWORK_IDS", { enumerable: true, get: function () { return application_1.NETWORK_IDS; } });
|
|
25
24
|
Object.defineProperty(exports, "ANIMATION", { enumerable: true, get: function () { return application_1.ANIMATION; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/constants/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wBAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/constants/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,wBAAwB;AACxB,6CAkBuB;AAjBrB,0GAAA,WAAW,OAAA;AACX,iHAAA,kBAAkB,OAAA;AAClB,8GAAA,eAAe,OAAA;AACf,0GAAA,WAAW,OAAA;AACX,yGAAA,UAAU,OAAA;AACV,2GAAA,YAAY,OAAA;AACZ,2GAAA,YAAY,OAAA;AACZ,iHAAA,kBAAkB,OAAA;AAClB,0GAAA,WAAW,OAAA;AACX,6GAAA,cAAc,OAAA;AACd,+GAAA,gBAAgB,OAAA;AAChB,qGAAA,MAAM,OAAA;AACN,2GAAA,YAAY,OAAA;AACZ,2GAAA,YAAY,OAAA;AACZ,0GAAA,WAAW,OAAA;AACX,wGAAA,SAAS,OAAA;AACT,sGAAA,OAAO,OAAA;AAGT,yBAAyB;AACzB,iDAAgD;AAAvC,8GAAA,aAAa,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudobility/types",
|
|
3
|
-
"version": "1.9.
|
|
4
|
-
"description": "Comprehensive TypeScript types, interfaces, and utilities for
|
|
3
|
+
"version": "1.9.12",
|
|
4
|
+
"description": "Comprehensive TypeScript types, interfaces, and utilities for Web3 email applications - optimized for AI-assisted development",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"typescript",
|
|
53
53
|
"types",
|
|
54
54
|
"interfaces",
|
|
55
|
-
"0xmail",
|
|
56
55
|
"web3",
|
|
57
56
|
"blockchain",
|
|
58
57
|
"email",
|
|
@@ -60,7 +59,7 @@
|
|
|
60
59
|
"tree-shakeable",
|
|
61
60
|
"zero-dependencies"
|
|
62
61
|
],
|
|
63
|
-
"author": "
|
|
62
|
+
"author": "Sudobility",
|
|
64
63
|
"license": "MIT",
|
|
65
64
|
"devDependencies": {
|
|
66
65
|
"@eslint/js": "^9.38.0",
|