@fastxyz/fastid-sdk 0.1.0
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/LICENSE +202 -0
- package/README.md +65 -0
- package/dist/address.d.ts +12 -0
- package/dist/address.d.ts.map +1 -0
- package/dist/address.js +57 -0
- package/dist/address.js.map +1 -0
- package/dist/canonical-json.d.ts +12 -0
- package/dist/canonical-json.d.ts.map +1 -0
- package/dist/canonical-json.js +95 -0
- package/dist/canonical-json.js.map +1 -0
- package/dist/claim-data.d.ts +9 -0
- package/dist/claim-data.d.ts.map +1 -0
- package/dist/claim-data.js +151 -0
- package/dist/claim-data.js.map +1 -0
- package/dist/claim-fee.d.ts +26 -0
- package/dist/claim-fee.d.ts.map +1 -0
- package/dist/claim-fee.js +144 -0
- package/dist/claim-fee.js.map +1 -0
- package/dist/claim-preflight.d.ts +7 -0
- package/dist/claim-preflight.d.ts.map +1 -0
- package/dist/claim-preflight.js +34 -0
- package/dist/claim-preflight.js.map +1 -0
- package/dist/claim-tx.d.ts +35 -0
- package/dist/claim-tx.d.ts.map +1 -0
- package/dist/claim-tx.js +140 -0
- package/dist/claim-tx.js.map +1 -0
- package/dist/claims.d.ts +44 -0
- package/dist/claims.d.ts.map +1 -0
- package/dist/claims.js +348 -0
- package/dist/claims.js.map +1 -0
- package/dist/client.d.ts +37 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +139 -0
- package/dist/client.js.map +1 -0
- package/dist/errors.d.ts +252 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +410 -0
- package/dist/errors.js.map +1 -0
- package/dist/fasttx.d.ts +10 -0
- package/dist/fasttx.d.ts.map +1 -0
- package/dist/fasttx.js +35 -0
- package/dist/fasttx.js.map +1 -0
- package/dist/http.d.ts +15 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +67 -0
- package/dist/http.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/name.d.ts +15 -0
- package/dist/name.d.ts.map +1 -0
- package/dist/name.js +34 -0
- package/dist/name.js.map +1 -0
- package/dist/networks.d.ts +8 -0
- package/dist/networks.d.ts.map +1 -0
- package/dist/networks.js +32 -0
- package/dist/networks.js.map +1 -0
- package/dist/profile-message.d.ts +22 -0
- package/dist/profile-message.d.ts.map +1 -0
- package/dist/profile-message.js +53 -0
- package/dist/profile-message.js.map +1 -0
- package/dist/profile.d.ts +30 -0
- package/dist/profile.d.ts.map +1 -0
- package/dist/profile.js +363 -0
- package/dist/profile.js.map +1 -0
- package/dist/proofs.d.ts +92 -0
- package/dist/proofs.d.ts.map +1 -0
- package/dist/proofs.js +770 -0
- package/dist/proofs.js.map +1 -0
- package/dist/reads.d.ts +76 -0
- package/dist/reads.d.ts.map +1 -0
- package/dist/reads.js +244 -0
- package/dist/reads.js.map +1 -0
- package/dist/report-wire.d.ts +35 -0
- package/dist/report-wire.d.ts.map +1 -0
- package/dist/report-wire.js +131 -0
- package/dist/report-wire.js.map +1 -0
- package/dist/report.d.ts +36 -0
- package/dist/report.d.ts.map +1 -0
- package/dist/report.js +255 -0
- package/dist/report.js.map +1 -0
- package/dist/share.d.ts +9 -0
- package/dist/share.d.ts.map +1 -0
- package/dist/share.js +16 -0
- package/dist/share.js.map +1 -0
- package/dist/signer.d.ts +23 -0
- package/dist/signer.d.ts.map +1 -0
- package/dist/signer.js +73 -0
- package/dist/signer.js.map +1 -0
- package/dist/verify.d.ts +6 -0
- package/dist/verify.d.ts.map +1 -0
- package/dist/verify.js +33 -0
- package/dist/verify.js.map +1 -0
- package/package.json +53 -0
package/dist/errors.d.ts
ADDED
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import type { ClaimDataKind } from "./claim-data.js";
|
|
2
|
+
export interface SubmissionRecovery {
|
|
3
|
+
readonly nonce?: bigint;
|
|
4
|
+
readonly txIdHex: string;
|
|
5
|
+
readonly recoveryEnvelope: unknown;
|
|
6
|
+
}
|
|
7
|
+
export declare class NotSettledError extends Error {
|
|
8
|
+
readonly tag: string;
|
|
9
|
+
readonly recovery?: SubmissionRecovery | undefined;
|
|
10
|
+
constructor(tag: string, recovery?: SubmissionRecovery | undefined);
|
|
11
|
+
}
|
|
12
|
+
export declare class NonceConflictError extends Error {
|
|
13
|
+
readonly expectedNonce: bigint | null;
|
|
14
|
+
constructor(expectedNonce: bigint | null, options?: {
|
|
15
|
+
cause?: unknown;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Normalize the SDK's tagged nonce-mismatch errors by `_tag`. `instanceof`
|
|
20
|
+
* cannot be trusted when Effect-backed SDK schemas are present in more than
|
|
21
|
+
* one dependency copy.
|
|
22
|
+
*/
|
|
23
|
+
export declare function asNonceConflict(err: unknown): NonceConflictError | null;
|
|
24
|
+
export declare class InsufficientFundsError extends Error {
|
|
25
|
+
readonly symbol: string;
|
|
26
|
+
constructor(symbol: string, options?: {
|
|
27
|
+
cause?: unknown;
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Normalize the proxy's stable `InsufficientFundingForFee` details variant.
|
|
32
|
+
* As above, this deliberately avoids `instanceof` across dependency copies.
|
|
33
|
+
*/
|
|
34
|
+
export declare function asInsufficientFunds(err: unknown, symbol: string): InsufficientFundsError | null;
|
|
35
|
+
export declare class SettlementMismatchError extends Error {
|
|
36
|
+
readonly submittedTxId: string;
|
|
37
|
+
readonly certTxId: string;
|
|
38
|
+
readonly recovery?: SubmissionRecovery | undefined;
|
|
39
|
+
constructor(submittedTxId: string, certTxId: string, recovery?: SubmissionRecovery | undefined);
|
|
40
|
+
}
|
|
41
|
+
export declare class WrongNetworkError extends Error {
|
|
42
|
+
readonly expected: string;
|
|
43
|
+
readonly actual: string;
|
|
44
|
+
readonly recovery?: SubmissionRecovery | undefined;
|
|
45
|
+
constructor(expected: string, actual: string, recovery?: SubmissionRecovery | undefined);
|
|
46
|
+
}
|
|
47
|
+
/** A failure proven to have occurred before an authorized submission. No fee was paid. */
|
|
48
|
+
export declare class PreSubmitError extends Error {
|
|
49
|
+
constructor(message: string, options?: {
|
|
50
|
+
cause?: unknown;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
export declare class NameUnavailableError extends PreSubmitError {
|
|
54
|
+
readonly verdict: string;
|
|
55
|
+
constructor(verdict: string);
|
|
56
|
+
}
|
|
57
|
+
export declare class PropertyAlreadyClaimedError extends PreSubmitError {
|
|
58
|
+
readonly kind: string;
|
|
59
|
+
readonly value: string;
|
|
60
|
+
constructor(kind: string, value: string);
|
|
61
|
+
}
|
|
62
|
+
export declare class ClaimNotHeldError extends PreSubmitError {
|
|
63
|
+
readonly kind: string;
|
|
64
|
+
readonly value: string;
|
|
65
|
+
constructor(kind: string, value: string);
|
|
66
|
+
}
|
|
67
|
+
export declare class FeeUnavailableError extends PreSubmitError {
|
|
68
|
+
constructor();
|
|
69
|
+
}
|
|
70
|
+
export declare class InvalidClaimError extends PreSubmitError {
|
|
71
|
+
constructor(options?: {
|
|
72
|
+
cause?: unknown;
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
export declare class NonceFetchError extends PreSubmitError {
|
|
76
|
+
constructor(options?: {
|
|
77
|
+
cause?: unknown;
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
export declare class SigningError extends PreSubmitError {
|
|
81
|
+
constructor(options?: {
|
|
82
|
+
cause?: unknown;
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
export declare class LocalVerificationError extends PreSubmitError {
|
|
86
|
+
constructor();
|
|
87
|
+
}
|
|
88
|
+
export declare class InvalidSignerError extends PreSubmitError {
|
|
89
|
+
constructor();
|
|
90
|
+
}
|
|
91
|
+
/** Provider submission may have reached settlement. Never treat this as permission to pay again. */
|
|
92
|
+
export declare class IndeterminateSubmissionError extends Error {
|
|
93
|
+
readonly network: string;
|
|
94
|
+
readonly address: string;
|
|
95
|
+
readonly mayHavePaid = true;
|
|
96
|
+
readonly recovery?: SubmissionRecovery;
|
|
97
|
+
readonly nonce?: bigint;
|
|
98
|
+
readonly txIdHex?: string;
|
|
99
|
+
readonly recoveryEnvelope?: unknown;
|
|
100
|
+
constructor(network: string, address: string, options?: {
|
|
101
|
+
cause?: unknown;
|
|
102
|
+
recovery?: SubmissionRecovery;
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
export interface PendingRegistrationShape {
|
|
106
|
+
op: "claim" | "revoke";
|
|
107
|
+
network: string;
|
|
108
|
+
addressHex: string;
|
|
109
|
+
name?: string;
|
|
110
|
+
kind?: ClaimDataKind;
|
|
111
|
+
value?: string;
|
|
112
|
+
nonce: string;
|
|
113
|
+
txIdHex: string;
|
|
114
|
+
}
|
|
115
|
+
export declare class RegistrationPendingError extends Error {
|
|
116
|
+
readonly pending: PendingRegistrationShape;
|
|
117
|
+
readonly feeSpent = true;
|
|
118
|
+
constructor(pending: PendingRegistrationShape, options?: {
|
|
119
|
+
cause?: unknown;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
export type TerminalRegistrationDisposition = "rejected" | "conflict" | "invalid";
|
|
123
|
+
export declare class RegistrationTerminalError extends Error {
|
|
124
|
+
readonly disposition: TerminalRegistrationDisposition;
|
|
125
|
+
readonly reason?: string | undefined;
|
|
126
|
+
readonly feeSpent = true;
|
|
127
|
+
constructor(disposition: TerminalRegistrationDisposition, reason?: string | undefined);
|
|
128
|
+
}
|
|
129
|
+
export declare class PendingNetworkMismatchError extends Error {
|
|
130
|
+
readonly pendingNetwork: string;
|
|
131
|
+
readonly clientNetwork: string;
|
|
132
|
+
constructor(pendingNetwork: string, clientNetwork: string);
|
|
133
|
+
}
|
|
134
|
+
export declare class InvalidPendingRegistrationError extends Error {
|
|
135
|
+
readonly operation: unknown;
|
|
136
|
+
readonly reason: string;
|
|
137
|
+
constructor(operation: unknown, reason?: string);
|
|
138
|
+
}
|
|
139
|
+
export declare class InvalidProofInputError extends PreSubmitError {
|
|
140
|
+
readonly kind: string;
|
|
141
|
+
readonly value: string;
|
|
142
|
+
constructor(kind: string, value: string);
|
|
143
|
+
}
|
|
144
|
+
export declare class OAuthProofUnavailableError extends PreSubmitError {
|
|
145
|
+
readonly provider: "github" | "orcid";
|
|
146
|
+
readonly value: string;
|
|
147
|
+
constructor(provider: "github" | "orcid", value: string, options?: {
|
|
148
|
+
cause?: unknown;
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
export declare class OAuthProofTimeoutError extends PreSubmitError {
|
|
152
|
+
readonly provider: "github" | "orcid";
|
|
153
|
+
readonly value: string;
|
|
154
|
+
constructor(provider: "github" | "orcid", value: string);
|
|
155
|
+
}
|
|
156
|
+
export declare class ProofWaitCancelledError extends PreSubmitError {
|
|
157
|
+
constructor();
|
|
158
|
+
}
|
|
159
|
+
/** A website claim has paid, but the index has not yet observed its proof file. */
|
|
160
|
+
export declare class WebsiteVerificationPendingError extends Error {
|
|
161
|
+
readonly host: string;
|
|
162
|
+
readonly txIdHex: string;
|
|
163
|
+
readonly nonce: string;
|
|
164
|
+
readonly feeSpent = true;
|
|
165
|
+
constructor(host: string, txIdHex: string, nonce: string);
|
|
166
|
+
}
|
|
167
|
+
export declare class ProofProtocolError extends PreSubmitError {
|
|
168
|
+
constructor(message: string, options?: {
|
|
169
|
+
cause?: unknown;
|
|
170
|
+
});
|
|
171
|
+
}
|
|
172
|
+
export declare class ReadTimeoutError extends Error {
|
|
173
|
+
readonly timeoutMs: number;
|
|
174
|
+
constructor(timeoutMs: number);
|
|
175
|
+
}
|
|
176
|
+
export declare class ReadCancelledError extends Error {
|
|
177
|
+
constructor();
|
|
178
|
+
}
|
|
179
|
+
export declare class InvalidReadResponseError extends Error {
|
|
180
|
+
readonly endpoint: string;
|
|
181
|
+
constructor(endpoint: string);
|
|
182
|
+
}
|
|
183
|
+
export declare class XSettlementNotAuthorizedError extends PreSubmitError {
|
|
184
|
+
readonly reason: string;
|
|
185
|
+
constructor(reason: string);
|
|
186
|
+
}
|
|
187
|
+
export declare class ProfileReadError extends PreSubmitError {
|
|
188
|
+
constructor(message: string, options?: {
|
|
189
|
+
cause?: unknown;
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
export declare class ProfileChallengeError extends PreSubmitError {
|
|
193
|
+
readonly status: number | null;
|
|
194
|
+
constructor(status: number | null, options?: {
|
|
195
|
+
cause?: unknown;
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
export declare class InvalidProfileError extends PreSubmitError {
|
|
199
|
+
readonly reason?: string | undefined;
|
|
200
|
+
constructor(reason?: string | undefined);
|
|
201
|
+
}
|
|
202
|
+
export declare class ProfileUnauthorizedError extends Error {
|
|
203
|
+
constructor();
|
|
204
|
+
}
|
|
205
|
+
export declare class ProfileUpdateError extends Error {
|
|
206
|
+
readonly status: number;
|
|
207
|
+
constructor(status: number);
|
|
208
|
+
}
|
|
209
|
+
export declare class IndeterminateProfileUpdateError extends Error {
|
|
210
|
+
readonly mayHaveCommitted = true;
|
|
211
|
+
constructor(options?: {
|
|
212
|
+
cause?: unknown;
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
export declare class InvalidReportError extends Error {
|
|
216
|
+
readonly reason: string;
|
|
217
|
+
constructor(reason: string);
|
|
218
|
+
}
|
|
219
|
+
export declare class ReportConfigError extends Error {
|
|
220
|
+
readonly status?: number | undefined;
|
|
221
|
+
constructor(options?: {
|
|
222
|
+
cause?: unknown;
|
|
223
|
+
}, status?: number | undefined);
|
|
224
|
+
}
|
|
225
|
+
export declare class ReportSealError extends Error {
|
|
226
|
+
constructor(options?: {
|
|
227
|
+
cause?: unknown;
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
export declare class ReportBodyTooLargeError extends Error {
|
|
231
|
+
readonly serializedBytes: number;
|
|
232
|
+
readonly limit: number;
|
|
233
|
+
constructor(serializedBytes: number, limit: number);
|
|
234
|
+
}
|
|
235
|
+
export declare class ReportCiphertextTooLargeError extends Error {
|
|
236
|
+
readonly ciphertextBytes: number;
|
|
237
|
+
readonly limit: number;
|
|
238
|
+
readonly recipientKeyId: string;
|
|
239
|
+
constructor(ciphertextBytes: number, limit: number, recipientKeyId: string);
|
|
240
|
+
}
|
|
241
|
+
export declare class ReportRejectedError extends Error {
|
|
242
|
+
readonly status: number;
|
|
243
|
+
readonly reason?: string | undefined;
|
|
244
|
+
constructor(status: number, reason?: string | undefined);
|
|
245
|
+
}
|
|
246
|
+
export declare class IndeterminateReportSubmissionError extends Error {
|
|
247
|
+
readonly mayHaveStored = true;
|
|
248
|
+
constructor(options?: {
|
|
249
|
+
cause?: unknown;
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,gBAAgB,EAAE,OAAO,CAAC;CACpC;AAED,qBAAa,eAAgB,SAAQ,KAAK;aAEtB,GAAG,EAAE,MAAM;aACX,QAAQ,CAAC,EAAE,kBAAkB;gBAD7B,GAAG,EAAE,MAAM,EACX,QAAQ,CAAC,EAAE,kBAAkB,YAAA;CAKhD;AAED,qBAAa,kBAAmB,SAAQ,KAAK;aAEzB,aAAa,EAAE,MAAM,GAAG,IAAI;gBAA5B,aAAa,EAAE,MAAM,GAAG,IAAI,EAC5C,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;CAUhC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,OAAO,GAAG,kBAAkB,GAAG,IAAI,C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ist/errors.js
ADDED
|
@@ -0,0 +1,410 @@
|
|
|
1
|
+
export class NotSettledError extends Error {
|
|
2
|
+
tag;
|
|
3
|
+
recovery;
|
|
4
|
+
constructor(tag, recovery) {
|
|
5
|
+
super(`transaction was not settled: ${tag}`);
|
|
6
|
+
this.tag = tag;
|
|
7
|
+
this.recovery = recovery;
|
|
8
|
+
this.name = "NotSettledError";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export class NonceConflictError extends Error {
|
|
12
|
+
expectedNonce;
|
|
13
|
+
constructor(expectedNonce, options) {
|
|
14
|
+
super(expectedNonce !== null
|
|
15
|
+
? `nonce conflict: account expects nonce ${expectedNonce}`
|
|
16
|
+
: "nonce conflict: account nonce advanced since prepare", options);
|
|
17
|
+
this.expectedNonce = expectedNonce;
|
|
18
|
+
this.name = "NonceConflictError";
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Normalize the SDK's tagged nonce-mismatch errors by `_tag`. `instanceof`
|
|
23
|
+
* cannot be trusted when Effect-backed SDK schemas are present in more than
|
|
24
|
+
* one dependency copy.
|
|
25
|
+
*/
|
|
26
|
+
export function asNonceConflict(err) {
|
|
27
|
+
if (!err || typeof err !== "object" || !("_tag" in err))
|
|
28
|
+
return null;
|
|
29
|
+
const tag = err._tag;
|
|
30
|
+
if (tag !== "UnexpectedNonceError" && tag !== "ProxyUnexpectedNonceError") {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
const expected = err.expectedNonce;
|
|
34
|
+
return new NonceConflictError(typeof expected === "bigint" ? expected : null, {
|
|
35
|
+
cause: err,
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
export class InsufficientFundsError extends Error {
|
|
39
|
+
symbol;
|
|
40
|
+
constructor(symbol, options) {
|
|
41
|
+
super(`insufficient ${symbol} to pay the settlement fee`, options);
|
|
42
|
+
this.symbol = symbol;
|
|
43
|
+
this.name = "InsufficientFundsError";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Normalize the proxy's stable `InsufficientFundingForFee` details variant.
|
|
48
|
+
* As above, this deliberately avoids `instanceof` across dependency copies.
|
|
49
|
+
*/
|
|
50
|
+
export function asInsufficientFunds(err, symbol) {
|
|
51
|
+
if (!err || typeof err !== "object")
|
|
52
|
+
return null;
|
|
53
|
+
const details = err.details;
|
|
54
|
+
const funding = !!details &&
|
|
55
|
+
typeof details === "object" &&
|
|
56
|
+
"InsufficientFundingForFee" in details;
|
|
57
|
+
if (!funding)
|
|
58
|
+
return null;
|
|
59
|
+
return new InsufficientFundsError(symbol, { cause: err });
|
|
60
|
+
}
|
|
61
|
+
export class SettlementMismatchError extends Error {
|
|
62
|
+
submittedTxId;
|
|
63
|
+
certTxId;
|
|
64
|
+
recovery;
|
|
65
|
+
constructor(submittedTxId, certTxId, recovery) {
|
|
66
|
+
super(`settled certificate does not match the submitted transaction (submitted ${submittedTxId}, certificate ${certTxId})`);
|
|
67
|
+
this.submittedTxId = submittedTxId;
|
|
68
|
+
this.certTxId = certTxId;
|
|
69
|
+
this.recovery = recovery;
|
|
70
|
+
this.name = "SettlementMismatchError";
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export class WrongNetworkError extends Error {
|
|
74
|
+
expected;
|
|
75
|
+
actual;
|
|
76
|
+
recovery;
|
|
77
|
+
constructor(expected, actual, recovery) {
|
|
78
|
+
super(`settled certificate is for network ${actual}, expected ${expected}`);
|
|
79
|
+
this.expected = expected;
|
|
80
|
+
this.actual = actual;
|
|
81
|
+
this.recovery = recovery;
|
|
82
|
+
this.name = "WrongNetworkError";
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/** A failure proven to have occurred before an authorized submission. No fee was paid. */
|
|
86
|
+
export class PreSubmitError extends Error {
|
|
87
|
+
constructor(message, options) {
|
|
88
|
+
super(message, options);
|
|
89
|
+
this.name = "PreSubmitError";
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export class NameUnavailableError extends PreSubmitError {
|
|
93
|
+
verdict;
|
|
94
|
+
constructor(verdict) {
|
|
95
|
+
super(`name claim preflight did not permit settlement: ${verdict}`);
|
|
96
|
+
this.verdict = verdict;
|
|
97
|
+
this.name = "NameUnavailableError";
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
export class PropertyAlreadyClaimedError extends PreSubmitError {
|
|
101
|
+
kind;
|
|
102
|
+
value;
|
|
103
|
+
constructor(kind, value) {
|
|
104
|
+
super(`${kind} value is already claimed`);
|
|
105
|
+
this.kind = kind;
|
|
106
|
+
this.value = value;
|
|
107
|
+
this.name = "PropertyAlreadyClaimedError";
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
export class ClaimNotHeldError extends PreSubmitError {
|
|
111
|
+
kind;
|
|
112
|
+
value;
|
|
113
|
+
constructor(kind, value) {
|
|
114
|
+
super(`the signer does not hold an active ${kind} claim for ${value}`);
|
|
115
|
+
this.kind = kind;
|
|
116
|
+
this.value = value;
|
|
117
|
+
this.name = "ClaimNotHeldError";
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export class FeeUnavailableError extends PreSubmitError {
|
|
121
|
+
constructor() {
|
|
122
|
+
super("the authoritative settlement fee is unavailable; refusing to sign");
|
|
123
|
+
this.name = "FeeUnavailableError";
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
export class InvalidClaimError extends PreSubmitError {
|
|
127
|
+
constructor(options) {
|
|
128
|
+
super("claim value could not be encoded canonically", options);
|
|
129
|
+
this.name = "InvalidClaimError";
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
export class NonceFetchError extends PreSubmitError {
|
|
133
|
+
constructor(options) {
|
|
134
|
+
super("could not obtain the next account nonce", options);
|
|
135
|
+
this.name = "NonceFetchError";
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
export class SigningError extends PreSubmitError {
|
|
139
|
+
constructor(options) {
|
|
140
|
+
super("the signer did not produce a signature", options);
|
|
141
|
+
this.name = "SigningError";
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
export class LocalVerificationError extends PreSubmitError {
|
|
145
|
+
constructor() {
|
|
146
|
+
super("the locally produced signature did not verify; refusing submission");
|
|
147
|
+
this.name = "LocalVerificationError";
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
export class InvalidSignerError extends PreSubmitError {
|
|
151
|
+
constructor() {
|
|
152
|
+
super("signer address, public key, and signer hex do not identify one canonical key");
|
|
153
|
+
this.name = "InvalidSignerError";
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
/** Provider submission may have reached settlement. Never treat this as permission to pay again. */
|
|
157
|
+
export class IndeterminateSubmissionError extends Error {
|
|
158
|
+
network;
|
|
159
|
+
address;
|
|
160
|
+
mayHavePaid = true;
|
|
161
|
+
recovery;
|
|
162
|
+
nonce;
|
|
163
|
+
txIdHex;
|
|
164
|
+
recoveryEnvelope;
|
|
165
|
+
constructor(network, address, options) {
|
|
166
|
+
super("claim submission outcome is indeterminate; check the address and transaction state before attempting another paid claim", options);
|
|
167
|
+
this.network = network;
|
|
168
|
+
this.address = address;
|
|
169
|
+
this.name = "IndeterminateSubmissionError";
|
|
170
|
+
this.recovery = options?.recovery;
|
|
171
|
+
this.nonce = options?.recovery?.nonce;
|
|
172
|
+
this.txIdHex = options?.recovery?.txIdHex;
|
|
173
|
+
this.recoveryEnvelope = options?.recovery?.recoveryEnvelope;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
export class RegistrationPendingError extends Error {
|
|
177
|
+
pending;
|
|
178
|
+
feeSpent = true;
|
|
179
|
+
constructor(pending, options) {
|
|
180
|
+
super("the claim settled, but registration is not definitive; retry this registration record without submitting another paid transaction", options);
|
|
181
|
+
this.pending = pending;
|
|
182
|
+
this.name = "RegistrationPendingError";
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
export class RegistrationTerminalError extends Error {
|
|
186
|
+
disposition;
|
|
187
|
+
reason;
|
|
188
|
+
feeSpent = true;
|
|
189
|
+
constructor(disposition, reason) {
|
|
190
|
+
super(`the settled claim registration is terminal (${disposition})${reason ? `: ${reason}` : ""}`);
|
|
191
|
+
this.disposition = disposition;
|
|
192
|
+
this.reason = reason;
|
|
193
|
+
this.name = "RegistrationTerminalError";
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
export class PendingNetworkMismatchError extends Error {
|
|
197
|
+
pendingNetwork;
|
|
198
|
+
clientNetwork;
|
|
199
|
+
constructor(pendingNetwork, clientNetwork) {
|
|
200
|
+
super(`pending registration is for ${pendingNetwork}, but this client is bound to ${clientNetwork}`);
|
|
201
|
+
this.pendingNetwork = pendingNetwork;
|
|
202
|
+
this.clientNetwork = clientNetwork;
|
|
203
|
+
this.name = "PendingNetworkMismatchError";
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
export class InvalidPendingRegistrationError extends Error {
|
|
207
|
+
operation;
|
|
208
|
+
reason;
|
|
209
|
+
constructor(operation, reason = "unsupported operation") {
|
|
210
|
+
super(`pending registration is invalid: ${reason}`);
|
|
211
|
+
this.operation = operation;
|
|
212
|
+
this.reason = reason;
|
|
213
|
+
this.name = "InvalidPendingRegistrationError";
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
export class InvalidProofInputError extends PreSubmitError {
|
|
217
|
+
kind;
|
|
218
|
+
value;
|
|
219
|
+
constructor(kind, value) {
|
|
220
|
+
super(`invalid ${kind} proof value: ${value}`);
|
|
221
|
+
this.kind = kind;
|
|
222
|
+
this.value = value;
|
|
223
|
+
this.name = "InvalidProofInputError";
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
export class OAuthProofUnavailableError extends PreSubmitError {
|
|
227
|
+
provider;
|
|
228
|
+
value;
|
|
229
|
+
constructor(provider, value, options) {
|
|
230
|
+
super(`no usable ${provider} OAuth proof is available for ${value}`, options);
|
|
231
|
+
this.provider = provider;
|
|
232
|
+
this.value = value;
|
|
233
|
+
this.name = "OAuthProofUnavailableError";
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
export class OAuthProofTimeoutError extends PreSubmitError {
|
|
237
|
+
provider;
|
|
238
|
+
value;
|
|
239
|
+
constructor(provider, value) {
|
|
240
|
+
super(`timed out waiting for the ${provider} OAuth proof for ${value}`);
|
|
241
|
+
this.provider = provider;
|
|
242
|
+
this.value = value;
|
|
243
|
+
this.name = "OAuthProofTimeoutError";
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
export class ProofWaitCancelledError extends PreSubmitError {
|
|
247
|
+
constructor() {
|
|
248
|
+
super("proof wait was cancelled");
|
|
249
|
+
this.name = "ProofWaitCancelledError";
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
/** A website claim has paid, but the index has not yet observed its proof file. */
|
|
253
|
+
export class WebsiteVerificationPendingError extends Error {
|
|
254
|
+
host;
|
|
255
|
+
txIdHex;
|
|
256
|
+
nonce;
|
|
257
|
+
feeSpent = true;
|
|
258
|
+
constructor(host, txIdHex, nonce) {
|
|
259
|
+
super(`website claim settled, but verification is still pending for ${host}`);
|
|
260
|
+
this.host = host;
|
|
261
|
+
this.txIdHex = txIdHex;
|
|
262
|
+
this.nonce = nonce;
|
|
263
|
+
this.name = "WebsiteVerificationPendingError";
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
export class ProofProtocolError extends PreSubmitError {
|
|
267
|
+
constructor(message, options) {
|
|
268
|
+
super(message, options);
|
|
269
|
+
this.name = "ProofProtocolError";
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
export class ReadTimeoutError extends Error {
|
|
273
|
+
timeoutMs;
|
|
274
|
+
constructor(timeoutMs) {
|
|
275
|
+
super(`read timed out after ${timeoutMs} ms`);
|
|
276
|
+
this.timeoutMs = timeoutMs;
|
|
277
|
+
this.name = "ReadTimeoutError";
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
export class ReadCancelledError extends Error {
|
|
281
|
+
constructor() {
|
|
282
|
+
super("read was cancelled");
|
|
283
|
+
this.name = "ReadCancelledError";
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
export class InvalidReadResponseError extends Error {
|
|
287
|
+
endpoint;
|
|
288
|
+
constructor(endpoint) {
|
|
289
|
+
super(`${endpoint} returned a malformed successful response`);
|
|
290
|
+
this.endpoint = endpoint;
|
|
291
|
+
this.name = "InvalidReadResponseError";
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
export class XSettlementNotAuthorizedError extends PreSubmitError {
|
|
295
|
+
reason;
|
|
296
|
+
constructor(reason) {
|
|
297
|
+
super(`X settlement is not authorized: ${reason}`);
|
|
298
|
+
this.reason = reason;
|
|
299
|
+
this.name = "XSettlementNotAuthorizedError";
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
export class ProfileReadError extends PreSubmitError {
|
|
303
|
+
constructor(message, options) {
|
|
304
|
+
super(message, options);
|
|
305
|
+
this.name = "ProfileReadError";
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
export class ProfileChallengeError extends PreSubmitError {
|
|
309
|
+
status;
|
|
310
|
+
constructor(status, options) {
|
|
311
|
+
super(status === null
|
|
312
|
+
? "could not obtain a profile challenge"
|
|
313
|
+
: `profile challenge failed with status ${status}`, options);
|
|
314
|
+
this.status = status;
|
|
315
|
+
this.name = "ProfileChallengeError";
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
export class InvalidProfileError extends PreSubmitError {
|
|
319
|
+
reason;
|
|
320
|
+
constructor(reason) {
|
|
321
|
+
super(reason ? `invalid profile update: ${reason}` : "invalid profile update");
|
|
322
|
+
this.reason = reason;
|
|
323
|
+
this.name = "InvalidProfileError";
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
export class ProfileUnauthorizedError extends Error {
|
|
327
|
+
constructor() {
|
|
328
|
+
super("profile update was unauthorized or its challenge expired");
|
|
329
|
+
this.name = "ProfileUnauthorizedError";
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
export class ProfileUpdateError extends Error {
|
|
333
|
+
status;
|
|
334
|
+
constructor(status) {
|
|
335
|
+
super(`profile update failed with status ${status}`);
|
|
336
|
+
this.status = status;
|
|
337
|
+
this.name = "ProfileUpdateError";
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
export class IndeterminateProfileUpdateError extends Error {
|
|
341
|
+
mayHaveCommitted = true;
|
|
342
|
+
constructor(options) {
|
|
343
|
+
super("profile update result is indeterminate; read the profile before signing another update", options);
|
|
344
|
+
this.name = "IndeterminateProfileUpdateError";
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
export class InvalidReportError extends Error {
|
|
348
|
+
reason;
|
|
349
|
+
constructor(reason) {
|
|
350
|
+
super(`invalid report: ${reason}`);
|
|
351
|
+
this.reason = reason;
|
|
352
|
+
this.name = "InvalidReportError";
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
export class ReportConfigError extends Error {
|
|
356
|
+
status;
|
|
357
|
+
constructor(options, status) {
|
|
358
|
+
super(status === undefined
|
|
359
|
+
? "report configuration is unavailable or malformed"
|
|
360
|
+
: `report configuration failed with status ${status}`, options);
|
|
361
|
+
this.status = status;
|
|
362
|
+
this.name = "ReportConfigError";
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
export class ReportSealError extends Error {
|
|
366
|
+
constructor(options) {
|
|
367
|
+
super("could not seal the report to the configured recipients", options);
|
|
368
|
+
this.name = "ReportSealError";
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
export class ReportBodyTooLargeError extends Error {
|
|
372
|
+
serializedBytes;
|
|
373
|
+
limit;
|
|
374
|
+
constructor(serializedBytes, limit) {
|
|
375
|
+
super(`serialized report body is ${serializedBytes} bytes; limit is ${limit} bytes`);
|
|
376
|
+
this.serializedBytes = serializedBytes;
|
|
377
|
+
this.limit = limit;
|
|
378
|
+
this.name = "ReportBodyTooLargeError";
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
export class ReportCiphertextTooLargeError extends Error {
|
|
382
|
+
ciphertextBytes;
|
|
383
|
+
limit;
|
|
384
|
+
recipientKeyId;
|
|
385
|
+
constructor(ciphertextBytes, limit, recipientKeyId) {
|
|
386
|
+
super(`sealed report ciphertext for ${recipientKeyId} is ${ciphertextBytes} bytes; limit is ${limit} bytes`);
|
|
387
|
+
this.ciphertextBytes = ciphertextBytes;
|
|
388
|
+
this.limit = limit;
|
|
389
|
+
this.recipientKeyId = recipientKeyId;
|
|
390
|
+
this.name = "ReportCiphertextTooLargeError";
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
export class ReportRejectedError extends Error {
|
|
394
|
+
status;
|
|
395
|
+
reason;
|
|
396
|
+
constructor(status, reason) {
|
|
397
|
+
super(`report intake rejected the envelope with status ${status}${reason ? `: ${reason}` : ""}`);
|
|
398
|
+
this.status = status;
|
|
399
|
+
this.reason = reason;
|
|
400
|
+
this.name = "ReportRejectedError";
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
export class IndeterminateReportSubmissionError extends Error {
|
|
404
|
+
mayHaveStored = true;
|
|
405
|
+
constructor(options) {
|
|
406
|
+
super("report submission result is indeterminate; the intake may have stored it", options);
|
|
407
|
+
this.name = "IndeterminateReportSubmissionError";
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
//# sourceMappingURL=errors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAQA,MAAM,OAAO,eAAgB,SAAQ,KAAK;IAEtB;IACA;IAFlB,YACkB,GAAW,EACX,QAA6B;QAE7C,KAAK,CAAC,gCAAgC,GAAG,EAAE,CAAC,CAAC;QAH7B,QAAG,GAAH,GAAG,CAAQ;QACX,aAAQ,GAAR,QAAQ,CAAqB;QAG7C,IAAI,CAAC,IAAI,GAAG,iBAAiB,CAAC;IAChC,CAAC;CACF;AAED,MAAM,OAAO,k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