@neus/sdk 1.0.2 → 1.0.3

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/index.js CHANGED
@@ -1,65 +1,76 @@
1
- // NEUS SDK - Create and verify cryptographic proofs
2
-
3
- // Core client
4
- export { NeusClient } from './client.js';
5
-
6
- // Essential utilities
7
- export {
8
- constructVerificationMessage,
9
- validateWalletAddress,
10
- validateTimestamp,
11
- validateQHash,
12
- normalizeAddress,
13
- isTerminalStatus,
14
- isSuccessStatus,
15
- isFailureStatus,
16
- formatVerificationStatus,
17
- formatTimestamp,
18
- isSupportedChain,
19
- StatusPoller,
20
- computeContentHash,
21
- deriveDid,
22
- validateVerifierPayload,
23
- buildVerificationRequest,
24
- createVerificationData,
25
- validateSignatureComponents,
26
- withRetry,
27
- delay,
28
- NEUS_CONSTANTS
29
- } from './utils.js';
30
-
31
- // Gate recipes (examples, NOT defaults - pick what fits your use case)
32
- export {
33
- // Time constants
34
- HOUR,
35
- DAY,
36
- WEEK,
37
- MONTH,
38
- YEAR,
39
- // Recipe gates
40
- GATE_NFT_HOLDER,
41
- GATE_TOKEN_HOLDER,
42
- GATE_CONTRACT_ADMIN,
43
- GATE_DOMAIN_OWNER,
44
- GATE_LINKED_WALLETS,
45
- // Helpers
46
- createGate,
47
- combineGates,
48
- } from './gates.js';
49
-
50
- // Error classes
51
- export {
52
- SDKError,
53
- ApiError,
54
- ValidationError,
55
- NetworkError,
56
- ConfigurationError,
57
- VerificationError,
58
- AuthenticationError
59
- } from './errors.js';
60
-
61
- // Default export
62
- export default {
63
- NeusClient: () => import('./client.js').then(m => m.NeusClient),
64
- toString: () => '[neus/sdk]'
1
+ // NEUS SDK - Create and verify cryptographic proofs
2
+
3
+ // Core client
4
+ export { NeusClient } from './client.js';
5
+
6
+ // Essential utilities
7
+ export {
8
+ constructVerificationMessage,
9
+ validateWalletAddress,
10
+ validateUniversalAddress,
11
+ validateTimestamp,
12
+ validateQHash,
13
+ normalizeAddress,
14
+ isTerminalStatus,
15
+ isSuccessStatus,
16
+ isFailureStatus,
17
+ formatVerificationStatus,
18
+ formatTimestamp,
19
+ isSupportedChain,
20
+ StatusPoller,
21
+ computeContentHash,
22
+ deriveDid,
23
+ toHexUtf8,
24
+ resolveDID,
25
+ signMessage,
26
+ standardizeVerificationRequest,
27
+ resolveZkPassportConfig,
28
+ validateVerifierPayload,
29
+ buildVerificationRequest,
30
+ createVerificationData,
31
+ validateSignatureComponents,
32
+ withRetry,
33
+ delay,
34
+ NEUS_CONSTANTS
35
+ } from './utils.js';
36
+
37
+ // Gate recipes (examples, NOT defaults - pick what fits your use case)
38
+ export {
39
+ // Time constants
40
+ HOUR,
41
+ DAY,
42
+ WEEK,
43
+ MONTH,
44
+ YEAR,
45
+ // Recipe gates
46
+ GATE_NFT_HOLDER,
47
+ GATE_TOKEN_HOLDER,
48
+ GATE_CONTRACT_ADMIN,
49
+ GATE_DOMAIN_OWNER,
50
+ GATE_LINKED_WALLETS,
51
+ GATE_AGENT_IDENTITY,
52
+ GATE_AGENT_DELEGATION,
53
+ GATE_CONTENT_MODERATION,
54
+ GATE_WALLET_RISK,
55
+ GATE_PSEUDONYM,
56
+ // Helpers
57
+ createGate,
58
+ combineGates,
59
+ } from './gates.js';
60
+
61
+ // Error classes
62
+ export {
63
+ SDKError,
64
+ ApiError,
65
+ ValidationError,
66
+ NetworkError,
67
+ ConfigurationError,
68
+ VerificationError,
69
+ AuthenticationError
70
+ } from './errors.js';
71
+
72
+ // Default export
73
+ export default {
74
+ NeusClient: () => import('./client.js').then(m => m.NeusClient),
75
+ toString: () => '[neus/sdk]'
65
76
  };