Repository navigation
Expand file tree
/
Copy pathindex.js
More file actions
109 lines (99 loc) · 2.36 KB
/
Copy pathindex.js
File metadata and controls
109 lines (99 loc) · 2.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
export { ProofableClient } from './client.js';
export {
PORTABLE_PROOF_SIGNER_HEADER,
canonicalizePortableProofJson,
constructVerificationMessage,
computePortableProofQHash,
verifyPortableProofEnvelope,
validateWalletAddress,
validateUniversalAddress,
validateTimestamp,
validateQHash,
normalizeAddress,
isTerminalStatus,
isSuccessStatus,
isFailureStatus,
formatVerificationStatus,
formatTimestamp,
isSupportedChain,
StatusPoller,
computeContentHash,
deriveDid,
toHexUtf8,
resolveDID,
signMessage,
standardizeVerificationRequest,
resolveZkPassportConfig,
validateVerifierPayload,
buildVerificationRequest,
createVerificationData,
validateSignatureComponents,
withRetry,
delay,
PROOFABLE_CONSTANTS,
DEFAULT_HOSTED_VERIFY_URL,
getHostedCheckoutUrl,
getHostedAgentCreateUrl,
toAgentDelegationMaxSpend
} from './utils.js';
export {
HOUR,
DAY,
WEEK,
MONTH,
YEAR,
GATE_NFT_HOLDER,
GATE_TOKEN_HOLDER,
GATE_CONTRACT_ADMIN,
GATE_DOMAIN_OWNER,
GATE_LINKED_WALLETS,
GATE_AGENT_IDENTITY,
GATE_AGENT_DELEGATION,
GATE_CONTENT_MODERATION,
GATE_WALLET_RISK,
GATE_PSEUDONYM,
createGate,
defineGate,
sanitizeGateRequirements,
hashGatePolicy,
resolveGateSubjectAccountId,
combineGates
} from './gates.js';
export { fetchSponsorGrant } from './sponsor.js';
export {
ProofableSignIn,
PROOFABLE_SIGN_IN_ISSUER,
PROOFABLE_SIGN_IN_RESOURCE,
PROOFABLE_SIGN_IN_SCOPE
} from './sign-in.js';
export {
RUNTIME_MOUNT_SCHEMA,
normalizeWallet,
normalizeQHash,
isDelegationExpired,
pickIdentity,
pickActiveDelegation,
extractAgentContextFromProofs,
buildRuntimeBundle,
profileAgentToIdentitySeed,
isRuntimeBundle,
resolveRuntimeBundleFromMcp,
evaluateMountFileHealth
} from './runtime-mount.js';
// Node-only adapters (fs/path): import `@proofable/sdk/runtime-adapters` (not re-exported here so browser builds stay clean).
export {
SDKError,
ApiError,
ValidationError,
NetworkError,
ConfigurationError,
VerificationError,
AuthenticationError
} from './errors.js';
// CLI command strings and MCP host config live in `./mcp-hosts.js` and
// `./cli-commands.js`. They are internal to the `proofable` CLI and are not
// part of the published API.
export default {
ProofableClient: () => import('./client.js').then((m) => m.ProofableClient),
toString: () => '[proofable/sdk]'
};