@neus/sdk 1.0.3 → 1.0.5
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/README.md +127 -150
- package/SECURITY.md +33 -29
- package/cjs/client.cjs +308 -264
- package/cjs/index.cjs +403 -310
- package/cjs/utils.cjs +138 -97
- package/cli/neus.mjs +606 -0
- package/client.js +559 -470
- package/errors.js +5 -5
- package/gates.js +18 -18
- package/index.js +79 -75
- package/package.json +16 -10
- package/types.d.ts +138 -59
- package/utils.js +1291 -1180
- package/widgets/README.md +45 -64
- package/widgets/index.js +1 -1
- package/widgets/verify-gate/dist/ProofBadge.js +10 -18
- package/widgets/verify-gate/dist/VerifyGate.js +109 -98
- package/widgets/verify-gate/index.js +5 -5
package/types.d.ts
CHANGED
|
@@ -31,18 +31,17 @@ declare module '@neus/sdk' {
|
|
|
31
31
|
verify(params: VerifyParams): Promise<VerificationResult>;
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
|
-
* Get
|
|
35
|
-
* @param proofId - Proof ID (
|
|
36
|
-
* @returns Promise resolving to current status
|
|
34
|
+
* Get proof record by receipt ID.
|
|
35
|
+
* @param proofId - Proof receipt ID (0x + 64 hex).
|
|
37
36
|
*/
|
|
38
|
-
|
|
37
|
+
getProof(proofId: string): Promise<StatusResult>;
|
|
39
38
|
|
|
40
39
|
/**
|
|
41
|
-
* Get private proof
|
|
42
|
-
* @param proofId - Proof ID
|
|
40
|
+
* Get private proof record (owner-signed)
|
|
41
|
+
* @param proofId - Proof receipt ID.
|
|
43
42
|
* @param wallet - Optional injected wallet/provider (MetaMask/ethers Wallet)
|
|
44
43
|
*/
|
|
45
|
-
|
|
44
|
+
getPrivateProof(proofId: string, wallet?: WalletLike | GatePrivateAuth): Promise<StatusResult>;
|
|
46
45
|
|
|
47
46
|
/**
|
|
48
47
|
* Check API health
|
|
@@ -52,10 +51,27 @@ declare module '@neus/sdk' {
|
|
|
52
51
|
|
|
53
52
|
/** List available verifiers */
|
|
54
53
|
getVerifiers(): Promise<string[]>;
|
|
54
|
+
|
|
55
|
+
/** Get the public verifier catalog, including per-verifier capabilities. */
|
|
56
|
+
getVerifierCatalog(): Promise<VerifierCatalog>;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Build and sign a wallet-link verifier payload with the secondary wallet.
|
|
60
|
+
* Use this for advanced direct/API flows; browser user-facing flows should still prefer hosted `/verify`.
|
|
61
|
+
*/
|
|
62
|
+
createWalletLinkData(params: {
|
|
63
|
+
primaryWalletAddress: string;
|
|
64
|
+
secondaryWalletAddress: string;
|
|
65
|
+
wallet?: WalletLike;
|
|
66
|
+
chain?: string;
|
|
67
|
+
signedTimestamp?: number;
|
|
68
|
+
relationshipType?: 'primary' | 'personal' | 'org' | 'affiliate' | 'agent' | 'linked';
|
|
69
|
+
label?: string;
|
|
70
|
+
}): Promise<WalletLinkData>;
|
|
55
71
|
|
|
56
72
|
/**
|
|
57
73
|
* Poll verification status until completion
|
|
58
|
-
* @param proofId - Proof ID
|
|
74
|
+
* @param proofId - Proof ID to poll.
|
|
59
75
|
* @param options - Polling configuration options
|
|
60
76
|
* @returns Promise resolving to final status
|
|
61
77
|
* @example
|
|
@@ -90,7 +106,7 @@ declare module '@neus/sdk' {
|
|
|
90
106
|
getPrivateProofsByWallet(walletAddress: string, options?: GetProofsOptions, wallet?: WalletLike): Promise<ProofsResult>;
|
|
91
107
|
|
|
92
108
|
/**
|
|
93
|
-
* Minimal eligibility check against public +
|
|
109
|
+
* Minimal eligibility check against public + unlisted proofs by default (API-backed).
|
|
94
110
|
* Prefer this for server-side integrations that do not need full proof payloads.
|
|
95
111
|
*/
|
|
96
112
|
gateCheck(params: GateCheckApiParams): Promise<GateCheckApiResponse>;
|
|
@@ -139,15 +155,13 @@ declare module '@neus/sdk' {
|
|
|
139
155
|
apiKey?: string;
|
|
140
156
|
/** Optional public app attribution ID (maps to X-Neus-App) */
|
|
141
157
|
appId?: string;
|
|
142
|
-
/** Optional sponsor capability token (maps to X-Sponsor-Grant) */
|
|
143
|
-
sponsorGrant?: string;
|
|
144
158
|
/** Optional x402 receipt token for retry calls (maps to PAYMENT-SIGNATURE) */
|
|
145
159
|
paymentSignature?: string;
|
|
146
160
|
/** Optional extra passthrough headers for advanced integrations */
|
|
147
161
|
extraHeaders?: Record<string, string>;
|
|
148
162
|
/** Request timeout in milliseconds */
|
|
149
163
|
timeout?: number;
|
|
150
|
-
/**
|
|
164
|
+
/** Advanced. NEUS protocol primary-chain id override; most integrators omit. */
|
|
151
165
|
hubChainId?: number;
|
|
152
166
|
/** Enable SDK logging */
|
|
153
167
|
enableLogging?: boolean;
|
|
@@ -172,6 +186,24 @@ declare module '@neus/sdk' {
|
|
|
172
186
|
/** Verifier-specific options */
|
|
173
187
|
verifierOptions?: Record<string, any>;
|
|
174
188
|
}
|
|
189
|
+
|
|
190
|
+
export interface VerifierCatalogMetadataEntry {
|
|
191
|
+
category?: string;
|
|
192
|
+
description?: string;
|
|
193
|
+
flowType?: 'instant' | 'interactive' | 'external_lookup' | string;
|
|
194
|
+
expiryType?: 'permanent' | 'point_in_time' | 'expiring' | string;
|
|
195
|
+
supportsDirectApi?: boolean;
|
|
196
|
+
supportsHostedVerify?: boolean;
|
|
197
|
+
dataSchema?: Record<string, any>;
|
|
198
|
+
requiredFields?: string[];
|
|
199
|
+
optionalFields?: string[];
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export interface VerifierCatalog {
|
|
203
|
+
data: string[];
|
|
204
|
+
metadata: Record<string, VerifierCatalogMetadataEntry>;
|
|
205
|
+
meta?: Record<string, any>;
|
|
206
|
+
}
|
|
175
207
|
|
|
176
208
|
/**
|
|
177
209
|
* Parameters for manual verification
|
|
@@ -194,7 +226,7 @@ declare module '@neus/sdk' {
|
|
|
194
226
|
signature?: string;
|
|
195
227
|
/** Advanced/manual path: signed timestamp */
|
|
196
228
|
signedTimestamp?: number;
|
|
197
|
-
/** Advanced/
|
|
229
|
+
/** Advanced/optional. EVM signing-context hint; when omitted, resolved to the NEUS protocol primary chain for signing. For chain-specific asset claims (NFT, token, contract), set chainId inside verifier data instead. */
|
|
198
230
|
chainId?: number;
|
|
199
231
|
/** CAIP-2 chain reference for universal mode (e.g. eip155:1, solana:mainnet) */
|
|
200
232
|
chain?: string;
|
|
@@ -208,16 +240,16 @@ declare module '@neus/sdk' {
|
|
|
208
240
|
* Result from proof creation
|
|
209
241
|
*/
|
|
210
242
|
export interface ProofResult {
|
|
211
|
-
/** Proof ID
|
|
243
|
+
/** Proof receipt ID */
|
|
212
244
|
proofId: string;
|
|
213
|
-
/**
|
|
245
|
+
/** HTTP wire field for the proof receipt ID. */
|
|
214
246
|
qHash: string;
|
|
215
247
|
/** Current status */
|
|
216
248
|
status: string;
|
|
217
249
|
/** Wallet address that created proof */
|
|
218
250
|
walletAddress?: string;
|
|
219
|
-
/**
|
|
220
|
-
|
|
251
|
+
/** Stable URL for GET proof record */
|
|
252
|
+
proofUrl?: string;
|
|
221
253
|
/** Cross-chain enabled */
|
|
222
254
|
crossChain?: boolean;
|
|
223
255
|
}
|
|
@@ -226,9 +258,9 @@ declare module '@neus/sdk' {
|
|
|
226
258
|
* Verification result
|
|
227
259
|
*/
|
|
228
260
|
export interface VerificationResult {
|
|
229
|
-
/** Proof ID
|
|
261
|
+
/** Proof receipt ID */
|
|
230
262
|
proofId: string;
|
|
231
|
-
/**
|
|
263
|
+
/** HTTP wire field for the proof receipt ID. */
|
|
232
264
|
qHash: string;
|
|
233
265
|
/** Current status */
|
|
234
266
|
status: VerificationStatus;
|
|
@@ -242,10 +274,12 @@ declare module '@neus/sdk' {
|
|
|
242
274
|
* Status check result
|
|
243
275
|
*/
|
|
244
276
|
export interface StatusResult {
|
|
245
|
-
/** Proof ID
|
|
277
|
+
/** Proof receipt ID */
|
|
246
278
|
proofId?: string;
|
|
247
|
-
/**
|
|
279
|
+
/** HTTP wire field for the proof receipt ID. */
|
|
248
280
|
qHash?: string;
|
|
281
|
+
/** Stable URL for GET proof record */
|
|
282
|
+
proofUrl?: string | null;
|
|
249
283
|
/** Whether verification succeeded */
|
|
250
284
|
success: boolean;
|
|
251
285
|
/** Current status */
|
|
@@ -253,7 +287,7 @@ declare module '@neus/sdk' {
|
|
|
253
287
|
/** Full verification data */
|
|
254
288
|
data?: {
|
|
255
289
|
proofId?: string;
|
|
256
|
-
/**
|
|
290
|
+
/** HTTP wire field for the proof receipt ID. */
|
|
257
291
|
qHash?: string;
|
|
258
292
|
status: string;
|
|
259
293
|
walletAddress: string;
|
|
@@ -287,6 +321,7 @@ declare module '@neus/sdk' {
|
|
|
287
321
|
}>;
|
|
288
322
|
createdVouchers?: string[];
|
|
289
323
|
};
|
|
324
|
+
/** Advanced. Primary-chain transaction metadata from the NEUS protocol. */
|
|
290
325
|
hubTransaction?: {
|
|
291
326
|
txHash: string;
|
|
292
327
|
timestamp: number;
|
|
@@ -360,7 +395,7 @@ declare module '@neus/sdk' {
|
|
|
360
395
|
| 'contract-ownership'
|
|
361
396
|
| 'wallet-risk' // Wallet risk assessment
|
|
362
397
|
| 'proof-of-human' // Hosted ZK personhood verification
|
|
363
|
-
// AI & Agent verifiers (
|
|
398
|
+
// AI & Agent verifiers (portable, protocol-agnostic)
|
|
364
399
|
| 'agent-identity'
|
|
365
400
|
| 'agent-delegation'
|
|
366
401
|
| 'ai-content-moderation'
|
|
@@ -410,6 +445,9 @@ declare module '@neus/sdk' {
|
|
|
410
445
|
chainId?: number;
|
|
411
446
|
chain?: string;
|
|
412
447
|
}): string;
|
|
448
|
+
|
|
449
|
+
/** CAIP-380 six-line signer message — line 1 */
|
|
450
|
+
export const PORTABLE_PROOF_SIGNER_HEADER: string;
|
|
413
451
|
|
|
414
452
|
/**
|
|
415
453
|
* Validate Ethereum wallet address
|
|
@@ -438,8 +476,8 @@ declare module '@neus/sdk' {
|
|
|
438
476
|
|
|
439
477
|
/**
|
|
440
478
|
* Resolve DID from wallet identity via profile resolver endpoint.
|
|
441
|
-
*
|
|
442
|
-
*
|
|
479
|
+
* EVM wallets resolve to the NEUS protocol primary chain by default; chainId is optional.
|
|
480
|
+
* Use `chain` (CAIP-2) for non-EVM wallets (e.g. `solana:mainnet`).
|
|
443
481
|
*/
|
|
444
482
|
export function resolveDID(
|
|
445
483
|
params: {
|
|
@@ -577,19 +615,51 @@ declare module '@neus/sdk' {
|
|
|
577
615
|
backoffFactor?: number;
|
|
578
616
|
}): Promise<T>;
|
|
579
617
|
|
|
580
|
-
/**
|
|
581
|
-
* Proof status
|
|
582
|
-
*/
|
|
583
|
-
// Use NeusClient.getStatus(proofId) for status checks (`qHash` remains as deprecated alias).
|
|
584
|
-
|
|
585
|
-
|
|
586
618
|
// ============================================================================
|
|
587
619
|
// CONSTANTS & REGISTRY
|
|
588
620
|
// ============================================================================
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Build `agent-delegation` maxSpend from a display decimal (e.g. USDC `"100.50"` with six decimal places).
|
|
624
|
+
* Returns a whole-number string in token base units (no decimal point) for the verifier API.
|
|
625
|
+
*/
|
|
626
|
+
export function toAgentDelegationMaxSpend(
|
|
627
|
+
humanAmount: string | number,
|
|
628
|
+
decimals: number
|
|
629
|
+
): string;
|
|
589
630
|
|
|
590
631
|
/**
|
|
591
632
|
* NEUS Network constants
|
|
592
633
|
*/
|
|
634
|
+
export const DEFAULT_HOSTED_VERIFY_URL: string;
|
|
635
|
+
|
|
636
|
+
export function getHostedCheckoutUrl(opts?: {
|
|
637
|
+
gateId?: string;
|
|
638
|
+
returnUrl?: string;
|
|
639
|
+
verifiers?: string[];
|
|
640
|
+
preset?: string;
|
|
641
|
+
mode?: string;
|
|
642
|
+
intent?: string;
|
|
643
|
+
origin?: string;
|
|
644
|
+
oauthProvider?: string;
|
|
645
|
+
baseUrl?: string;
|
|
646
|
+
}): string;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* Public gate monetization.charge from GET /api/v1/profile/gates/{gateId} (sanitized).
|
|
650
|
+
* Safe for clients: no payout secrets; `recipient` is the published settlement address when enabled.
|
|
651
|
+
*/
|
|
652
|
+
export type NeusPublicGateCharge = {
|
|
653
|
+
enabled: boolean;
|
|
654
|
+
scheme: string;
|
|
655
|
+
label: string;
|
|
656
|
+
amountUsd: number;
|
|
657
|
+
methods: string[];
|
|
658
|
+
appliesTo: string;
|
|
659
|
+
executionOrder?: string;
|
|
660
|
+
recipient?: string;
|
|
661
|
+
};
|
|
662
|
+
|
|
593
663
|
export const NEUS_CONSTANTS: {
|
|
594
664
|
HUB_CHAIN_ID: number;
|
|
595
665
|
TESTNET_CHAINS: number[];
|
|
@@ -654,12 +724,6 @@ declare module '@neus/sdk' {
|
|
|
654
724
|
*/
|
|
655
725
|
export class AuthenticationError extends SDKError {}
|
|
656
726
|
|
|
657
|
-
// ============================================================================
|
|
658
|
-
// SCHEMA ACCESS
|
|
659
|
-
// ============================================================================
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
727
|
// ============================================================================
|
|
664
728
|
// PROOFS & GATING TYPES
|
|
665
729
|
// ============================================================================
|
|
@@ -750,7 +814,7 @@ declare module '@neus/sdk' {
|
|
|
750
814
|
since?: number;
|
|
751
815
|
/** Max rows to scan (server may clamp) */
|
|
752
816
|
limit?: number;
|
|
753
|
-
/** Include private proofs for owner-
|
|
817
|
+
/** Include private proofs for owner/controller-authorized checks */
|
|
754
818
|
includePrivate?: boolean;
|
|
755
819
|
/** Include matched qHashes in response (minimal identifiers only) */
|
|
756
820
|
includeQHashes?: boolean;
|
|
@@ -772,9 +836,10 @@ declare module '@neus/sdk' {
|
|
|
772
836
|
content?: string;
|
|
773
837
|
contentHash?: string;
|
|
774
838
|
|
|
775
|
-
// Asset/ownership filters
|
|
839
|
+
// Asset/ownership filters — chainId here is the chain where the asset lives (e.g. 8453 for Base, 1 for Ethereum)
|
|
776
840
|
contractAddress?: string;
|
|
777
841
|
tokenId?: string;
|
|
842
|
+
/** EVM chain ID of the asset (e.g. 1, 8453). Required for nft-ownership, token-holding, contract-ownership. */
|
|
778
843
|
chainId?: number;
|
|
779
844
|
domain?: string;
|
|
780
845
|
minBalance?: string;
|
|
@@ -782,6 +847,10 @@ declare module '@neus/sdk' {
|
|
|
782
847
|
// Wallet filters
|
|
783
848
|
/** Risk assessment provider hint. Known value: webacy. */
|
|
784
849
|
provider?: string;
|
|
850
|
+
/** Social handle (ownership-social) or pseudonym handle (ownership-pseudonym); server matches data.handle / pseudonymId */
|
|
851
|
+
handle?: string;
|
|
852
|
+
/** ownership-pseudonym namespace filter (matches GET /api/v1/proofs/check `namespace` query) */
|
|
853
|
+
namespace?: string;
|
|
785
854
|
ownerAddress?: string;
|
|
786
855
|
riskLevel?: string;
|
|
787
856
|
sanctioned?: boolean;
|
|
@@ -805,7 +874,7 @@ declare module '@neus/sdk' {
|
|
|
805
874
|
eligible: boolean;
|
|
806
875
|
matchedCount?: number;
|
|
807
876
|
matchedQHashes?: string[];
|
|
808
|
-
/** @deprecated matchedProofIds is a
|
|
877
|
+
/** @deprecated matchedProofIds is a compatibility alias of matchedQHashes (same values when provided). */
|
|
809
878
|
matchedProofIds?: string[];
|
|
810
879
|
matchedTags?: string[];
|
|
811
880
|
projections?: Array<Record<string, any>> | null;
|
|
@@ -1004,6 +1073,13 @@ declare module '@neus/sdk' {
|
|
|
1004
1073
|
agentType?: 'ai' | 'bot' | 'service' | 'automation' | 'agent';
|
|
1005
1074
|
description?: string;
|
|
1006
1075
|
capabilities?: any[];
|
|
1076
|
+
instructions?: string;
|
|
1077
|
+
skills?: string[];
|
|
1078
|
+
services?: Array<{
|
|
1079
|
+
name: string;
|
|
1080
|
+
endpoint: string;
|
|
1081
|
+
version?: string;
|
|
1082
|
+
}>;
|
|
1007
1083
|
[key: string]: any;
|
|
1008
1084
|
};
|
|
1009
1085
|
|
|
@@ -1013,10 +1089,13 @@ declare module '@neus/sdk' {
|
|
|
1013
1089
|
agentId?: string;
|
|
1014
1090
|
scope?: string;
|
|
1015
1091
|
permissions?: any[];
|
|
1092
|
+
/** Whole-number string, token base units (1–78 digits, no decimal point). Build via `toAgentDelegationMaxSpend`. */
|
|
1016
1093
|
maxSpend?: string;
|
|
1017
1094
|
allowedPaymentTypes?: string[];
|
|
1018
1095
|
receiptDisclosure?: 'none' | 'summary' | 'full';
|
|
1019
1096
|
expiresAt?: number;
|
|
1097
|
+
instructions?: string;
|
|
1098
|
+
skills?: string[];
|
|
1020
1099
|
[key: string]: any;
|
|
1021
1100
|
};
|
|
1022
1101
|
|
|
@@ -1114,16 +1193,16 @@ declare module '@neus/sdk/widgets' {
|
|
|
1114
1193
|
/** Callback when verification completes successfully */
|
|
1115
1194
|
onVerified?: (result: {
|
|
1116
1195
|
proofId: string;
|
|
1117
|
-
/**
|
|
1196
|
+
/** HTTP wire field for the proof receipt ID. */
|
|
1118
1197
|
qHash: string;
|
|
1119
1198
|
proofIds?: string[];
|
|
1120
|
-
/**
|
|
1199
|
+
/** HTTP wire fields for proof receipt IDs. */
|
|
1121
1200
|
qHashes?: string[];
|
|
1122
1201
|
address?: string;
|
|
1123
1202
|
txHash?: string | null;
|
|
1124
1203
|
verifierIds: string[];
|
|
1125
1204
|
verifiedVerifiers?: any[];
|
|
1126
|
-
|
|
1205
|
+
proofUrl?: string | null;
|
|
1127
1206
|
existing?: boolean;
|
|
1128
1207
|
eligible?: boolean;
|
|
1129
1208
|
mode?: 'create' | 'access';
|
|
@@ -1131,12 +1210,12 @@ declare module '@neus/sdk/widgets' {
|
|
|
1131
1210
|
results?: Array<{
|
|
1132
1211
|
verifierId: string;
|
|
1133
1212
|
proofId: string;
|
|
1134
|
-
/**
|
|
1213
|
+
/** HTTP wire field for the proof receipt ID. */
|
|
1135
1214
|
qHash: string;
|
|
1136
1215
|
address?: string;
|
|
1137
1216
|
txHash?: string | null;
|
|
1138
1217
|
verifiedVerifiers?: any[];
|
|
1139
|
-
|
|
1218
|
+
proofUrl?: string | null;
|
|
1140
1219
|
}>;
|
|
1141
1220
|
proofsByVerifierId?: Record<string, any>;
|
|
1142
1221
|
}) => void;
|
|
@@ -1144,14 +1223,14 @@ declare module '@neus/sdk/widgets' {
|
|
|
1144
1223
|
apiUrl?: string;
|
|
1145
1224
|
/** Optional public app attribution ID (maps to X-Neus-App) */
|
|
1146
1225
|
appId?: string;
|
|
1147
|
-
/** Optional sponsor capability token (maps to X-Sponsor-Grant) */
|
|
1148
|
-
sponsorGrant?: string;
|
|
1149
1226
|
/** Optional x402 receipt token for retry calls (maps to PAYMENT-SIGNATURE) */
|
|
1150
1227
|
paymentSignature?: string;
|
|
1151
1228
|
/** Optional extra passthrough headers for advanced integrations */
|
|
1152
1229
|
extraHeaders?: Record<string, string>;
|
|
1153
1230
|
/** Hosted checkout URL for interactive verifiers (default: https://neus.network/verify) */
|
|
1154
1231
|
hostedCheckoutUrl?: string;
|
|
1232
|
+
/** Optional OAuth provider id to pre-select for social/org verifiers (hosted flow) */
|
|
1233
|
+
oauthProvider?: string;
|
|
1155
1234
|
/** Custom inline styles */
|
|
1156
1235
|
style?: Record<string, any>;
|
|
1157
1236
|
/** Child content to show when verified */
|
|
@@ -1160,7 +1239,7 @@ declare module '@neus/sdk/widgets' {
|
|
|
1160
1239
|
verifierOptions?: Record<string, any>;
|
|
1161
1240
|
/** Pre-built verifier data for each verifier */
|
|
1162
1241
|
verifierData?: Record<string, any>;
|
|
1163
|
-
/** Proof creation options (
|
|
1242
|
+
/** Proof creation options (defaults: private, publicDisplay false, storeOriginalContent true) */
|
|
1164
1243
|
proofOptions?: Record<string, any>;
|
|
1165
1244
|
/** Proof reuse strategy */
|
|
1166
1245
|
strategy?: 'reuse-or-create' | 'reuse' | 'fresh';
|
|
@@ -1180,7 +1259,7 @@ declare module '@neus/sdk/widgets' {
|
|
|
1180
1259
|
mode?: 'create' | 'access';
|
|
1181
1260
|
/** proofId for private proof access (required when mode='access') */
|
|
1182
1261
|
proofId?: string | null;
|
|
1183
|
-
/**
|
|
1262
|
+
/** HTTP wire field for callers that receive API-shaped proof records. */
|
|
1184
1263
|
qHash?: string | null;
|
|
1185
1264
|
/** Optional injected wallet/provider for signing flows */
|
|
1186
1265
|
wallet?: WalletLike | any;
|
|
@@ -1197,11 +1276,11 @@ declare module '@neus/sdk/widgets' {
|
|
|
1197
1276
|
export function VerifyGate(props: VerifyGateProps): any;
|
|
1198
1277
|
|
|
1199
1278
|
export interface ProofBadgeProps {
|
|
1200
|
-
/** Proof ID
|
|
1279
|
+
/** Proof receipt ID. */
|
|
1201
1280
|
proofId?: string;
|
|
1202
|
-
/**
|
|
1281
|
+
/** HTTP wire field for callers that receive API-shaped proof records. Prefer proofId. */
|
|
1203
1282
|
qHash?: string;
|
|
1204
|
-
/** URL path pattern for proof links. Supports :proofId
|
|
1283
|
+
/** URL path pattern for proof links. Supports :proofId. */
|
|
1205
1284
|
proofUrlPattern?: string;
|
|
1206
1285
|
/** Badge size */
|
|
1207
1286
|
size?: 'sm' | 'md';
|
|
@@ -1227,9 +1306,9 @@ declare module '@neus/sdk/widgets' {
|
|
|
1227
1306
|
|
|
1228
1307
|
export interface SimpleProofBadgeProps {
|
|
1229
1308
|
proofId?: string;
|
|
1230
|
-
/**
|
|
1309
|
+
/** HTTP wire field for callers that receive API-shaped proof records. Prefer proofId. */
|
|
1231
1310
|
qHash?: string;
|
|
1232
|
-
/** URL path pattern for proof links. Supports :proofId
|
|
1311
|
+
/** URL path pattern for proof links. Supports :proofId. */
|
|
1233
1312
|
proofUrlPattern?: string;
|
|
1234
1313
|
uiLinkBase?: string;
|
|
1235
1314
|
apiUrl?: string;
|
|
@@ -1247,9 +1326,9 @@ declare module '@neus/sdk/widgets' {
|
|
|
1247
1326
|
|
|
1248
1327
|
export interface NeusPillLinkProps {
|
|
1249
1328
|
proofId?: string;
|
|
1250
|
-
/**
|
|
1329
|
+
/** HTTP wire field for callers that receive API-shaped proof records. Prefer proofId. */
|
|
1251
1330
|
qHash?: string;
|
|
1252
|
-
/** URL path pattern for proof links. Supports :proofId
|
|
1331
|
+
/** URL path pattern for proof links. Supports :proofId. */
|
|
1253
1332
|
proofUrlPattern?: string;
|
|
1254
1333
|
uiLinkBase?: string;
|
|
1255
1334
|
label?: string;
|
|
@@ -1263,11 +1342,11 @@ declare module '@neus/sdk/widgets' {
|
|
|
1263
1342
|
export function NeusPillLink(props: NeusPillLinkProps): any;
|
|
1264
1343
|
|
|
1265
1344
|
export interface VerifiedIconProps {
|
|
1266
|
-
/** Proof ID
|
|
1345
|
+
/** Proof receipt ID for link */
|
|
1267
1346
|
proofId?: string;
|
|
1268
|
-
/**
|
|
1347
|
+
/** HTTP wire field for callers that receive API-shaped proof records. Prefer proofId. */
|
|
1269
1348
|
qHash?: string;
|
|
1270
|
-
/** URL path pattern for proof links. Supports :proofId
|
|
1349
|
+
/** URL path pattern for proof links. Supports :proofId. */
|
|
1271
1350
|
proofUrlPattern?: string;
|
|
1272
1351
|
/** UI platform base URL */
|
|
1273
1352
|
uiLinkBase?: string;
|