@distilled.cloud/coinbase 1.0.0-rc.3 → 1.0.0-rc.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/lib/errors.js +51 -51
- package/lib/errors.js.map +1 -1
- package/lib/services/cdp.d.ts +13 -40
- package/lib/services/cdp.d.ts.map +1 -1
- package/lib/services/cdp.js +8 -32
- package/lib/services/cdp.js.map +1 -1
- package/package.json +13 -13
- package/src/errors.ts +51 -51
- package/src/services/cdp.ts +20 -77
package/lib/errors.js
CHANGED
|
@@ -35,314 +35,314 @@ const CoinbaseErrorFields = {
|
|
|
35
35
|
* Payment method required — a valid payment method is required (HTTP 402).
|
|
36
36
|
* errorType: "payment_method_required" | "payment_required"
|
|
37
37
|
*/
|
|
38
|
-
export class PaymentRequired extends Schema.
|
|
38
|
+
export class PaymentRequired extends Schema.TaggedError()("PaymentRequired", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
39
39
|
}
|
|
40
40
|
// --- Idempotency ---
|
|
41
41
|
/**
|
|
42
42
|
* Idempotency key conflict — the same key was used with different request params (HTTP 422).
|
|
43
43
|
* errorType: "idempotency_error"
|
|
44
44
|
*/
|
|
45
|
-
export class IdempotencyError extends Schema.
|
|
45
|
+
export class IdempotencyError extends Schema.TaggedError()("IdempotencyError", CoinbaseErrorFields).pipe(Category.withConflictError) {
|
|
46
46
|
}
|
|
47
47
|
// --- Resource Conflicts ---
|
|
48
48
|
/**
|
|
49
49
|
* Resource already exists — trying to create a duplicate resource (HTTP 409).
|
|
50
50
|
* errorType: "already_exists"
|
|
51
51
|
*/
|
|
52
|
-
export class AlreadyExists extends Schema.
|
|
52
|
+
export class AlreadyExists extends Schema.TaggedError()("AlreadyExists", CoinbaseErrorFields).pipe(Category.withAlreadyExistsError) {
|
|
53
53
|
}
|
|
54
54
|
// --- Faucet ---
|
|
55
55
|
/**
|
|
56
56
|
* Faucet limit exceeded — too many faucet requests.
|
|
57
57
|
* errorType: "faucet_limit_exceeded"
|
|
58
58
|
*/
|
|
59
|
-
export class FaucetLimitExceeded extends Schema.
|
|
59
|
+
export class FaucetLimitExceeded extends Schema.TaggedError()("FaucetLimitExceeded", CoinbaseErrorFields).pipe(Category.withQuotaError) {
|
|
60
60
|
}
|
|
61
61
|
// --- Query ---
|
|
62
62
|
/**
|
|
63
63
|
* Invalid SQL query — the underlying SQL string is invalid.
|
|
64
64
|
* errorType: "invalid_sql_query"
|
|
65
65
|
*/
|
|
66
|
-
export class InvalidSqlQuery extends Schema.
|
|
66
|
+
export class InvalidSqlQuery extends Schema.TaggedError()("InvalidSqlQuery", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
67
67
|
}
|
|
68
68
|
// --- Signing / Transaction ---
|
|
69
69
|
/**
|
|
70
70
|
* Invalid signature — the transaction or message signature is invalid.
|
|
71
71
|
* errorType: "invalid_signature"
|
|
72
72
|
*/
|
|
73
|
-
export class InvalidSignature extends Schema.
|
|
73
|
+
export class InvalidSignature extends Schema.TaggedError()("InvalidSignature", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
74
74
|
}
|
|
75
75
|
/**
|
|
76
76
|
* Malformed transaction — the transaction data is malformed.
|
|
77
77
|
* errorType: "malformed_transaction"
|
|
78
78
|
*/
|
|
79
|
-
export class MalformedTransaction extends Schema.
|
|
79
|
+
export class MalformedTransaction extends Schema.TaggedError()("MalformedTransaction", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
80
80
|
}
|
|
81
81
|
/**
|
|
82
82
|
* Settlement failed — payment settlement could not be completed.
|
|
83
83
|
* errorType: "settlement_failed"
|
|
84
84
|
*/
|
|
85
|
-
export class SettlementFailed extends Schema.
|
|
85
|
+
export class SettlementFailed extends Schema.TaggedError()("SettlementFailed", CoinbaseErrorFields).pipe(Category.withServerError) {
|
|
86
86
|
}
|
|
87
87
|
// --- Timeout / Abort ---
|
|
88
88
|
/**
|
|
89
89
|
* Request timed out — the server did not respond in time.
|
|
90
90
|
* errorType: "timed_out"
|
|
91
91
|
*/
|
|
92
|
-
export class TimedOut extends Schema.
|
|
92
|
+
export class TimedOut extends Schema.TaggedError()("TimedOut", CoinbaseErrorFields).pipe(Category.withTimeoutError, Category.withRetryable()) {
|
|
93
93
|
}
|
|
94
94
|
/**
|
|
95
95
|
* Client closed request — the client disconnected before the response.
|
|
96
96
|
* errorType: "client_closed_request"
|
|
97
97
|
*/
|
|
98
|
-
export class ClientClosedRequest extends Schema.
|
|
98
|
+
export class ClientClosedRequest extends Schema.TaggedError()("ClientClosedRequest", CoinbaseErrorFields).pipe(Category.withAbortedError) {
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
101
|
* Request canceled — the request was canceled.
|
|
102
102
|
* errorType: "request_canceled"
|
|
103
103
|
*/
|
|
104
|
-
export class RequestCanceled extends Schema.
|
|
104
|
+
export class RequestCanceled extends Schema.TaggedError()("RequestCanceled", CoinbaseErrorFields).pipe(Category.withAbortedError) {
|
|
105
105
|
}
|
|
106
106
|
// --- Policy ---
|
|
107
107
|
/**
|
|
108
108
|
* Policy violation — the request violated an account or project policy.
|
|
109
109
|
* errorType: "policy_violation"
|
|
110
110
|
*/
|
|
111
|
-
export class PolicyViolation extends Schema.
|
|
111
|
+
export class PolicyViolation extends Schema.TaggedError()("PolicyViolation", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
114
|
* Policy in use — the policy cannot be deleted because it's in use.
|
|
115
115
|
* errorType: "policy_in_use"
|
|
116
116
|
*/
|
|
117
|
-
export class PolicyInUse extends Schema.
|
|
117
|
+
export class PolicyInUse extends Schema.TaggedError()("PolicyInUse", CoinbaseErrorFields).pipe(Category.withConflictError) {
|
|
118
118
|
}
|
|
119
119
|
// --- Account Limits / State ---
|
|
120
120
|
/**
|
|
121
121
|
* Account limit exceeded — too many accounts created.
|
|
122
122
|
* errorType: "account_limit_exceeded"
|
|
123
123
|
*/
|
|
124
|
-
export class AccountLimitExceeded extends Schema.
|
|
124
|
+
export class AccountLimitExceeded extends Schema.TaggedError()("AccountLimitExceeded", CoinbaseErrorFields).pipe(Category.withQuotaError) {
|
|
125
125
|
}
|
|
126
126
|
/**
|
|
127
127
|
* Insufficient balance — the account does not have enough funds.
|
|
128
128
|
* errorType: "insufficient_balance"
|
|
129
129
|
*/
|
|
130
|
-
export class InsufficientBalance extends Schema.
|
|
130
|
+
export class InsufficientBalance extends Schema.TaggedError()("InsufficientBalance", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
133
|
* Account not ready — the account is not in a ready state for the operation.
|
|
134
134
|
* errorType: "account_not_ready"
|
|
135
135
|
*/
|
|
136
|
-
export class AccountNotReady extends Schema.
|
|
136
|
+
export class AccountNotReady extends Schema.TaggedError()("AccountNotReady", CoinbaseErrorFields).pipe(Category.withRetryableError, Category.withRetryable()) {
|
|
137
137
|
}
|
|
138
138
|
// --- MFA ---
|
|
139
139
|
/**
|
|
140
140
|
* MFA required — multi-factor authentication is required.
|
|
141
141
|
* errorType: "mfa_required"
|
|
142
142
|
*/
|
|
143
|
-
export class MfaRequired extends Schema.
|
|
143
|
+
export class MfaRequired extends Schema.TaggedError()("MfaRequired", CoinbaseErrorFields).pipe(Category.withAuthError) {
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
* MFA already enrolled — the user already has MFA set up.
|
|
147
147
|
* errorType: "mfa_already_enrolled"
|
|
148
148
|
*/
|
|
149
|
-
export class MfaAlreadyEnrolled extends Schema.
|
|
149
|
+
export class MfaAlreadyEnrolled extends Schema.TaggedError()("MfaAlreadyEnrolled", CoinbaseErrorFields).pipe(Category.withConflictError) {
|
|
150
150
|
}
|
|
151
151
|
/**
|
|
152
152
|
* MFA invalid code — the provided MFA code is incorrect.
|
|
153
153
|
* errorType: "mfa_invalid_code"
|
|
154
154
|
*/
|
|
155
|
-
export class MfaInvalidCode extends Schema.
|
|
155
|
+
export class MfaInvalidCode extends Schema.TaggedError()("MfaInvalidCode", CoinbaseErrorFields).pipe(Category.withAuthError) {
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
158
|
* MFA flow expired — the MFA verification flow has expired.
|
|
159
159
|
* errorType: "mfa_flow_expired"
|
|
160
160
|
*/
|
|
161
|
-
export class MfaFlowExpired extends Schema.
|
|
161
|
+
export class MfaFlowExpired extends Schema.TaggedError()("MfaFlowExpired", CoinbaseErrorFields).pipe(Category.withAuthError) {
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
164
|
* MFA not enrolled — the user has not set up MFA.
|
|
165
165
|
* errorType: "mfa_not_enrolled"
|
|
166
166
|
*/
|
|
167
|
-
export class MfaNotEnrolled extends Schema.
|
|
167
|
+
export class MfaNotEnrolled extends Schema.TaggedError()("MfaNotEnrolled", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
168
168
|
}
|
|
169
169
|
// --- Network / Swap ---
|
|
170
170
|
/**
|
|
171
171
|
* Network not tradable — the specified network does not support trading.
|
|
172
172
|
* errorType: "network_not_tradable"
|
|
173
173
|
*/
|
|
174
|
-
export class NetworkNotTradable extends Schema.
|
|
174
|
+
export class NetworkNotTradable extends Schema.TaggedError()("NetworkNotTradable", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
175
175
|
}
|
|
176
176
|
// --- Guest (Onramp) ---
|
|
177
177
|
/**
|
|
178
178
|
* Guest permission denied — the guest user does not have permission for this action.
|
|
179
179
|
* errorType: "guest_permission_denied"
|
|
180
180
|
*/
|
|
181
|
-
export class GuestPermissionDenied extends Schema.
|
|
181
|
+
export class GuestPermissionDenied extends Schema.TaggedError()("GuestPermissionDenied", CoinbaseErrorFields).pipe(Category.withAuthError) {
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* Guest region forbidden — the guest user's region is not supported.
|
|
185
185
|
* errorType: "guest_region_forbidden"
|
|
186
186
|
*/
|
|
187
|
-
export class GuestRegionForbidden extends Schema.
|
|
187
|
+
export class GuestRegionForbidden extends Schema.TaggedError()("GuestRegionForbidden", CoinbaseErrorFields).pipe(Category.withAuthError) {
|
|
188
188
|
}
|
|
189
189
|
/**
|
|
190
190
|
* Guest transaction limit — the guest user has exceeded their transaction amount limit.
|
|
191
191
|
* errorType: "guest_transaction_limit"
|
|
192
192
|
*/
|
|
193
|
-
export class GuestTransactionLimit extends Schema.
|
|
193
|
+
export class GuestTransactionLimit extends Schema.TaggedError()("GuestTransactionLimit", CoinbaseErrorFields).pipe(Category.withQuotaError) {
|
|
194
194
|
}
|
|
195
195
|
/**
|
|
196
196
|
* Guest transaction count — the guest user has exceeded their transaction count limit.
|
|
197
197
|
* errorType: "guest_transaction_count"
|
|
198
198
|
*/
|
|
199
|
-
export class GuestTransactionCount extends Schema.
|
|
199
|
+
export class GuestTransactionCount extends Schema.TaggedError()("GuestTransactionCount", CoinbaseErrorFields).pipe(Category.withQuotaError) {
|
|
200
200
|
}
|
|
201
201
|
// --- Verification ---
|
|
202
202
|
/**
|
|
203
203
|
* Phone number verification expired — the phone number verification has expired.
|
|
204
204
|
* errorType: "phone_number_verification_expired"
|
|
205
205
|
*/
|
|
206
|
-
export class PhoneNumberVerificationExpired extends Schema.
|
|
206
|
+
export class PhoneNumberVerificationExpired extends Schema.TaggedError()("PhoneNumberVerificationExpired", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
207
207
|
}
|
|
208
208
|
/**
|
|
209
209
|
* Document verification failed — the document verification check failed.
|
|
210
210
|
* errorType: "document_verification_failed"
|
|
211
211
|
*/
|
|
212
|
-
export class DocumentVerificationFailed extends Schema.
|
|
212
|
+
export class DocumentVerificationFailed extends Schema.TaggedError()("DocumentVerificationFailed", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
213
213
|
}
|
|
214
214
|
// --- Recipient Allowlist ---
|
|
215
215
|
/**
|
|
216
216
|
* Recipient allowlist violation — the recipient address is not on the allowlist.
|
|
217
217
|
* errorType: "recipient_allowlist_violation"
|
|
218
218
|
*/
|
|
219
|
-
export class RecipientAllowlistViolation extends Schema.
|
|
219
|
+
export class RecipientAllowlistViolation extends Schema.TaggedError()("RecipientAllowlistViolation", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
222
222
|
* Recipient allowlist pending — the recipient address is pending allowlist approval.
|
|
223
223
|
* errorType: "recipient_allowlist_pending"
|
|
224
224
|
*/
|
|
225
|
-
export class RecipientAllowlistPending extends Schema.
|
|
225
|
+
export class RecipientAllowlistPending extends Schema.TaggedError()("RecipientAllowlistPending", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
226
226
|
}
|
|
227
227
|
// --- Travel Rules ---
|
|
228
228
|
/**
|
|
229
229
|
* Travel rules recipient violation — the recipient violates travel rule requirements.
|
|
230
230
|
* errorType: "travel_rules_recipient_violation"
|
|
231
231
|
*/
|
|
232
|
-
export class TravelRulesRecipientViolation extends Schema.
|
|
232
|
+
export class TravelRulesRecipientViolation extends Schema.TaggedError()("TravelRulesRecipientViolation", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
233
233
|
}
|
|
234
234
|
/**
|
|
235
235
|
* Travel rules field missing — a required travel rules field is missing.
|
|
236
236
|
* errorType: "travel_rules_field_missing"
|
|
237
237
|
*/
|
|
238
|
-
export class TravelRulesFieldMissing extends Schema.
|
|
238
|
+
export class TravelRulesFieldMissing extends Schema.TaggedError()("TravelRulesFieldMissing", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
239
239
|
}
|
|
240
240
|
// --- Account Validation ---
|
|
241
241
|
/**
|
|
242
242
|
* Source account invalid — the source account is not valid for this operation.
|
|
243
243
|
* errorType: "source_account_invalid"
|
|
244
244
|
*/
|
|
245
|
-
export class SourceAccountInvalid extends Schema.
|
|
245
|
+
export class SourceAccountInvalid extends Schema.TaggedError()("SourceAccountInvalid", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
246
246
|
}
|
|
247
247
|
/**
|
|
248
248
|
* Target account invalid — the target account is not valid for this operation.
|
|
249
249
|
* errorType: "target_account_invalid"
|
|
250
250
|
*/
|
|
251
|
-
export class TargetAccountInvalid extends Schema.
|
|
251
|
+
export class TargetAccountInvalid extends Schema.TaggedError()("TargetAccountInvalid", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
252
252
|
}
|
|
253
253
|
/**
|
|
254
254
|
* Source account not found — the source account does not exist.
|
|
255
255
|
* errorType: "source_account_not_found"
|
|
256
256
|
*/
|
|
257
|
-
export class SourceAccountNotFound extends Schema.
|
|
257
|
+
export class SourceAccountNotFound extends Schema.TaggedError()("SourceAccountNotFound", CoinbaseErrorFields).pipe(Category.withNotFoundError) {
|
|
258
258
|
}
|
|
259
259
|
/**
|
|
260
260
|
* Target account not found — the target account does not exist.
|
|
261
261
|
* errorType: "target_account_not_found"
|
|
262
262
|
*/
|
|
263
|
-
export class TargetAccountNotFound extends Schema.
|
|
263
|
+
export class TargetAccountNotFound extends Schema.TaggedError()("TargetAccountNotFound", CoinbaseErrorFields).pipe(Category.withNotFoundError) {
|
|
264
264
|
}
|
|
265
265
|
// --- Asset Support ---
|
|
266
266
|
/**
|
|
267
267
|
* Source asset not supported — the source asset is not supported for this operation.
|
|
268
268
|
* errorType: "source_asset_not_supported"
|
|
269
269
|
*/
|
|
270
|
-
export class SourceAssetNotSupported extends Schema.
|
|
270
|
+
export class SourceAssetNotSupported extends Schema.TaggedError()("SourceAssetNotSupported", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
273
273
|
* Target asset not supported — the target asset is not supported for this operation.
|
|
274
274
|
* errorType: "target_asset_not_supported"
|
|
275
275
|
*/
|
|
276
|
-
export class TargetAssetNotSupported extends Schema.
|
|
276
|
+
export class TargetAssetNotSupported extends Schema.TaggedError()("TargetAssetNotSupported", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
277
277
|
}
|
|
278
278
|
/**
|
|
279
279
|
* Transfer asset not supported — the asset is not supported for transfers.
|
|
280
280
|
* errorType: "transfer_asset_not_supported"
|
|
281
281
|
*/
|
|
282
|
-
export class TransferAssetNotSupported extends Schema.
|
|
282
|
+
export class TransferAssetNotSupported extends Schema.TaggedError()("TransferAssetNotSupported", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
283
283
|
}
|
|
284
284
|
/**
|
|
285
285
|
* Asset mismatch — the source and target assets do not match as expected.
|
|
286
286
|
* errorType: "asset_mismatch"
|
|
287
287
|
*/
|
|
288
|
-
export class AssetMismatch extends Schema.
|
|
288
|
+
export class AssetMismatch extends Schema.TaggedError()("AssetMismatch", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
289
289
|
}
|
|
290
290
|
// --- Transfer Validation ---
|
|
291
291
|
/**
|
|
292
292
|
* Target email invalid — the target email address is not valid.
|
|
293
293
|
* errorType: "target_email_invalid"
|
|
294
294
|
*/
|
|
295
|
-
export class TargetEmailInvalid extends Schema.
|
|
295
|
+
export class TargetEmailInvalid extends Schema.TaggedError()("TargetEmailInvalid", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
296
296
|
}
|
|
297
297
|
/**
|
|
298
298
|
* Target onchain address invalid — the target onchain address is not valid.
|
|
299
299
|
* errorType: "target_onchain_address_invalid"
|
|
300
300
|
*/
|
|
301
|
-
export class TargetOnchainAddressInvalid extends Schema.
|
|
301
|
+
export class TargetOnchainAddressInvalid extends Schema.TaggedError()("TargetOnchainAddressInvalid", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
302
302
|
}
|
|
303
303
|
/**
|
|
304
304
|
* Transfer amount invalid — the transfer amount is not valid.
|
|
305
305
|
* errorType: "transfer_amount_invalid"
|
|
306
306
|
*/
|
|
307
|
-
export class TransferAmountInvalid extends Schema.
|
|
307
|
+
export class TransferAmountInvalid extends Schema.TaggedError()("TransferAmountInvalid", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
308
308
|
}
|
|
309
309
|
// --- Metadata ---
|
|
310
310
|
/**
|
|
311
311
|
* Metadata too many entries — too many metadata entries were provided.
|
|
312
312
|
* errorType: "metadata_too_many_entries"
|
|
313
313
|
*/
|
|
314
|
-
export class MetadataTooManyEntries extends Schema.
|
|
314
|
+
export class MetadataTooManyEntries extends Schema.TaggedError()("MetadataTooManyEntries", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
315
315
|
}
|
|
316
316
|
/**
|
|
317
317
|
* Metadata key too long — a metadata key exceeds the maximum length.
|
|
318
318
|
* errorType: "metadata_key_too_long"
|
|
319
319
|
*/
|
|
320
|
-
export class MetadataKeyTooLong extends Schema.
|
|
320
|
+
export class MetadataKeyTooLong extends Schema.TaggedError()("MetadataKeyTooLong", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
321
321
|
}
|
|
322
322
|
/**
|
|
323
323
|
* Metadata value too long — a metadata value exceeds the maximum length.
|
|
324
324
|
* errorType: "metadata_value_too_long"
|
|
325
325
|
*/
|
|
326
|
-
export class MetadataValueTooLong extends Schema.
|
|
326
|
+
export class MetadataValueTooLong extends Schema.TaggedError()("MetadataValueTooLong", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
327
327
|
}
|
|
328
328
|
// --- Order ---
|
|
329
329
|
/**
|
|
330
330
|
* Order quote expired — the order quote has expired and must be refreshed.
|
|
331
331
|
* errorType: "order_quote_expired"
|
|
332
332
|
*/
|
|
333
|
-
export class OrderQuoteExpired extends Schema.
|
|
333
|
+
export class OrderQuoteExpired extends Schema.TaggedError()("OrderQuoteExpired", CoinbaseErrorFields).pipe(Category.withBadRequestError) {
|
|
334
334
|
}
|
|
335
335
|
/**
|
|
336
336
|
* Order already filled — the order has already been filled.
|
|
337
337
|
* errorType: "order_already_filled"
|
|
338
338
|
*/
|
|
339
|
-
export class OrderAlreadyFilled extends Schema.
|
|
339
|
+
export class OrderAlreadyFilled extends Schema.TaggedError()("OrderAlreadyFilled", CoinbaseErrorFields).pipe(Category.withConflictError) {
|
|
340
340
|
}
|
|
341
341
|
/**
|
|
342
342
|
* Order already canceled — the order has already been canceled.
|
|
343
343
|
* errorType: "order_already_canceled"
|
|
344
344
|
*/
|
|
345
|
-
export class OrderAlreadyCanceled extends Schema.
|
|
345
|
+
export class OrderAlreadyCanceled extends Schema.TaggedError()("OrderAlreadyCanceled", CoinbaseErrorFields).pipe(Category.withConflictError) {
|
|
346
346
|
}
|
|
347
347
|
// ============================================================================
|
|
348
348
|
// Coinbase-specific HTTP status code mappings
|
|
@@ -450,7 +450,7 @@ export const ERROR_TYPE_MAP = {
|
|
|
450
450
|
/**
|
|
451
451
|
* Unknown Coinbase error — returned when an errorType is not recognized.
|
|
452
452
|
*/
|
|
453
|
-
export class UnknownCoinbaseError extends Schema.
|
|
453
|
+
export class UnknownCoinbaseError extends Schema.TaggedError()("UnknownCoinbaseError", {
|
|
454
454
|
...CoinbaseErrorFields,
|
|
455
455
|
body: Schema.Unknown,
|
|
456
456
|
}).pipe(Category.withServerError) {
|
|
@@ -458,7 +458,7 @@ export class UnknownCoinbaseError extends Schema.TaggedErrorClass()("UnknownCoin
|
|
|
458
458
|
/**
|
|
459
459
|
* Schema parse error wrapper — returned when the response body fails schema decoding.
|
|
460
460
|
*/
|
|
461
|
-
export class CoinbaseParseError extends Schema.
|
|
461
|
+
export class CoinbaseParseError extends Schema.TaggedError()("CoinbaseParseError", {
|
|
462
462
|
body: Schema.Unknown,
|
|
463
463
|
cause: Schema.Unknown,
|
|
464
464
|
}).pipe(Category.withParseError) {
|
package/lib/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAO,EACL,UAAU,EACV,UAAU,EACV,QAAQ,EACR,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EAC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
@@ -263,11 +263,8 @@ export interface MFAMethodsTotp {
|
|
|
263
263
|
}
|
|
264
264
|
export declare const MFAMethodsTotp: S.Schema<MFAMethodsTotp>;
|
|
265
265
|
/** An object containing information about the end user's SMS MFA enrollment. */
|
|
266
|
-
export
|
|
267
|
-
|
|
268
|
-
enrolledAt: string;
|
|
269
|
-
}
|
|
270
|
-
export declare const MFAMethodsSms: S.Schema<MFAMethodsSms>;
|
|
266
|
+
export type MFAMethodsSms = MFAMethodsTotp;
|
|
267
|
+
export declare const MFAMethodsSms: S.Schema<MFAMethodsTotp>;
|
|
271
268
|
/** Information about the end user's MFA enrollments. */
|
|
272
269
|
export interface MFAMethods {
|
|
273
270
|
/** The date and time when the end user was prompted for MFA enrollment, in ISO 8601 format. If the this field exists, and the user has no other enrolled MFA methods, then the user skipped MFA enrollment. */
|
|
@@ -275,7 +272,7 @@ export interface MFAMethods {
|
|
|
275
272
|
/** An object containing information about the end user's TOTP enrollment. */
|
|
276
273
|
totp?: MFAMethodsTotp;
|
|
277
274
|
/** An object containing information about the end user's SMS MFA enrollment. */
|
|
278
|
-
sms?:
|
|
275
|
+
sms?: MFAMethodsTotp;
|
|
279
276
|
}
|
|
280
277
|
export declare const MFAMethods: S.Schema<MFAMethods>;
|
|
281
278
|
/** **DEPRECATED**: Use `evmAccountObjects` instead for richer account information. The list of EVM account addresses associated with the end user. End users can have up to 10 EVM accounts. */
|
|
@@ -2400,41 +2397,17 @@ export interface GetEvmSwapPriceRequest {
|
|
|
2400
2397
|
}
|
|
2401
2398
|
export declare const GetEvmSwapPriceRequest: S.Schema<GetEvmSwapPriceRequest>;
|
|
2402
2399
|
/** The estimated fees for the swap. */
|
|
2403
|
-
export
|
|
2404
|
-
|
|
2405
|
-
gasFee: TokenFee | null;
|
|
2406
|
-
/** The estimated protocol fee for the swap. */
|
|
2407
|
-
protocolFee: TokenFee | null;
|
|
2408
|
-
}
|
|
2409
|
-
export declare const GetSwapPriceResponseFees: S.Schema<GetSwapPriceResponseFees>;
|
|
2400
|
+
export type GetSwapPriceResponseFees = CreateSwapQuoteResponseFees;
|
|
2401
|
+
export declare const GetSwapPriceResponseFees: S.Schema<CreateSwapQuoteResponseFees>;
|
|
2410
2402
|
/** Details of the allowances that the taker must set in order to execute the swap successfully. Null if no allowance is required. */
|
|
2411
|
-
export
|
|
2412
|
-
|
|
2413
|
-
currentAllowance: string;
|
|
2414
|
-
/** The 0x-prefixed address of to set the allowance on. */
|
|
2415
|
-
spender: string;
|
|
2416
|
-
}
|
|
2417
|
-
export declare const GetSwapPriceResponseIssuesAllowance: S.Schema<GetSwapPriceResponseIssuesAllowance>;
|
|
2403
|
+
export type GetSwapPriceResponseIssuesAllowance = CreateSwapQuoteResponseIssuesAllowance;
|
|
2404
|
+
export declare const GetSwapPriceResponseIssuesAllowance: S.Schema<CreateSwapQuoteResponseIssuesAllowance>;
|
|
2418
2405
|
/** Details of the balance of the `fromToken` that the `taker` must hold. Null if the `taker` has a sufficient balance. */
|
|
2419
|
-
export
|
|
2420
|
-
|
|
2421
|
-
token: string;
|
|
2422
|
-
/** The current balance of the `fromToken` by the `taker`. */
|
|
2423
|
-
currentBalance: string;
|
|
2424
|
-
/** The amount of the token that the `taker` must hold. */
|
|
2425
|
-
requiredBalance: string;
|
|
2426
|
-
}
|
|
2427
|
-
export declare const GetSwapPriceResponseIssuesBalance: S.Schema<GetSwapPriceResponseIssuesBalance>;
|
|
2406
|
+
export type GetSwapPriceResponseIssuesBalance = CreateSwapQuoteResponseIssuesBalance;
|
|
2407
|
+
export declare const GetSwapPriceResponseIssuesBalance: S.Schema<CreateSwapQuoteResponseIssuesBalance>;
|
|
2428
2408
|
/** An object containing potential issues discovered during validation that could prevent the swap from being executed successfully. */
|
|
2429
|
-
export
|
|
2430
|
-
|
|
2431
|
-
allowance: GetSwapPriceResponseIssuesAllowance | null;
|
|
2432
|
-
/** Details of the balance of the `fromToken` that the `taker` must hold. Null if the `taker` has a sufficient balance. */
|
|
2433
|
-
balance: GetSwapPriceResponseIssuesBalance | null;
|
|
2434
|
-
/** This is set to true when the transaction cannot be validated. This can happen when the taker has an insufficient balance of the `fromToken`. Note that this does not necessarily mean that the trade will revert. */
|
|
2435
|
-
simulationIncomplete: boolean;
|
|
2436
|
-
}
|
|
2437
|
-
export declare const GetSwapPriceResponseIssues: S.Schema<GetSwapPriceResponseIssues>;
|
|
2409
|
+
export type GetSwapPriceResponseIssues = CreateSwapQuoteResponseIssues;
|
|
2410
|
+
export declare const GetSwapPriceResponseIssues: S.Schema<CreateSwapQuoteResponseIssues>;
|
|
2438
2411
|
export interface GetSwapPriceResponse {
|
|
2439
2412
|
/** The block number at which the liquidity conditions were examined. */
|
|
2440
2413
|
blockNumber: string;
|
|
@@ -2443,9 +2416,9 @@ export interface GetSwapPriceResponse {
|
|
|
2443
2416
|
/** The 0x-prefixed contract address of the token that will be received. */
|
|
2444
2417
|
toToken: string;
|
|
2445
2418
|
/** The estimated fees for the swap. */
|
|
2446
|
-
fees:
|
|
2419
|
+
fees: CreateSwapQuoteResponseFees;
|
|
2447
2420
|
/** An object containing potential issues discovered during validation that could prevent the swap from being executed successfully. */
|
|
2448
|
-
issues:
|
|
2421
|
+
issues: CreateSwapQuoteResponseIssues;
|
|
2449
2422
|
/** Whether sufficient liquidity is available to settle the swap. All other fields in the response will be empty if this is false. */
|
|
2450
2423
|
liquidityAvailable: boolean;
|
|
2451
2424
|
/** The minimum amount of the `toToken` that must be received for the swap to succeed, in atomic units of the `toToken`. For example, `1000000000000000000` when receiving ETH equates to 1 ETH, `1000000` when receiving USDC equates to 1 USDC, etc. This value is influenced by the `slippageBps` parameter. */
|