@coinbase/cdp-api-client 0.0.50 → 0.0.51
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/dist/esm/index.js +147 -164
- package/dist/esm/index3.js +259 -360
- package/dist/esm/index4.js +110 -110
- package/dist/types/index.d.ts +72 -421
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -64,16 +64,6 @@ export declare interface Account {
|
|
|
64
64
|
|
|
65
65
|
export declare type AccountId = string;
|
|
66
66
|
|
|
67
|
-
export declare interface AccountSource {
|
|
68
|
-
accountId: string;
|
|
69
|
-
currency: string;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export declare interface AccountTarget {
|
|
73
|
-
accountId: string;
|
|
74
|
-
currency: string;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
67
|
export declare interface AccountTokenAddressesResponse {
|
|
78
68
|
accountAddress?: string;
|
|
79
69
|
tokenAddresses?: string[];
|
|
@@ -123,11 +113,6 @@ export declare const AddressRiskRiskLevel: {
|
|
|
123
113
|
|
|
124
114
|
export declare type AlreadyExistsErrorResponse = Error_2;
|
|
125
115
|
|
|
126
|
-
export declare interface Amount {
|
|
127
|
-
value: string;
|
|
128
|
-
currency: string;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
116
|
export declare class APIError extends Error {
|
|
132
117
|
statusCode: number;
|
|
133
118
|
errorType: APIErrorType;
|
|
@@ -148,13 +133,13 @@ export declare class APIError extends Error {
|
|
|
148
133
|
export declare type APIErrorType = ErrorType | HttpErrorType;
|
|
149
134
|
|
|
150
135
|
export declare interface Asset {
|
|
151
|
-
|
|
152
|
-
|
|
136
|
+
symbol: AssetSymbol;
|
|
137
|
+
type: AssetType;
|
|
153
138
|
name: string;
|
|
154
139
|
decimals: number;
|
|
155
140
|
}
|
|
156
141
|
|
|
157
|
-
export declare type
|
|
142
|
+
export declare type AssetSymbol = string;
|
|
158
143
|
|
|
159
144
|
export declare type AssetType = (typeof AssetType)[keyof typeof AssetType];
|
|
160
145
|
|
|
@@ -168,6 +153,7 @@ export declare type AuthenticationMethod = EmailAuthentication | SmsAuthenticati
|
|
|
168
153
|
export declare type AuthenticationMethods = AuthenticationMethod[];
|
|
169
154
|
|
|
170
155
|
export declare interface AuthManager {
|
|
156
|
+
isSignedIn: () => Promise<boolean>;
|
|
171
157
|
getToken: () => Promise<string | null>;
|
|
172
158
|
getXWalletAuth: (options: {
|
|
173
159
|
requestMethod: string;
|
|
@@ -194,22 +180,16 @@ export declare interface Business {
|
|
|
194
180
|
businessLegalName?: string;
|
|
195
181
|
}
|
|
196
182
|
|
|
183
|
+
export declare interface BusinessCustomer {
|
|
184
|
+
business: Business;
|
|
185
|
+
}
|
|
186
|
+
|
|
197
187
|
export declare interface CapabilitiesMap {
|
|
198
188
|
guestCheckout?: CapabilityStatus;
|
|
199
|
-
sendFiat?: CapabilityStatus;
|
|
200
|
-
receiveFiat?: CapabilityStatus;
|
|
201
|
-
sendCrypto?: CapabilityStatus;
|
|
202
|
-
receiveCrypto?: CapabilityStatus;
|
|
203
|
-
trade?: CapabilityStatus;
|
|
204
189
|
}
|
|
205
190
|
|
|
206
191
|
export declare interface CapabilitiesMapRequest {
|
|
207
192
|
guestCheckout?: CapabilityRequested;
|
|
208
|
-
sendFiat?: CapabilityRequested;
|
|
209
|
-
receiveFiat?: CapabilityRequested;
|
|
210
|
-
sendCrypto?: CapabilityRequested;
|
|
211
|
-
receiveCrypto?: CapabilityRequested;
|
|
212
|
-
trade?: CapabilityRequested;
|
|
213
193
|
}
|
|
214
194
|
|
|
215
195
|
export declare interface CapabilityRequested {
|
|
@@ -276,7 +256,7 @@ export declare const configureCdpApiClient: (options: CdpOptions) => void;
|
|
|
276
256
|
export declare interface CoolPaymentMethod {
|
|
277
257
|
id: string;
|
|
278
258
|
type: CoolPaymentMethodType;
|
|
279
|
-
|
|
259
|
+
asset: string;
|
|
280
260
|
name?: string;
|
|
281
261
|
verified?: boolean;
|
|
282
262
|
allowDeposit?: boolean;
|
|
@@ -335,7 +315,7 @@ export declare type CreatePaymentMethodRequest = CreatePaymentMethodRequestAch |
|
|
|
335
315
|
|
|
336
316
|
export declare interface CreatePaymentMethodRequestAch {
|
|
337
317
|
type: CreatePaymentMethodRequestAchType;
|
|
338
|
-
|
|
318
|
+
asset: string;
|
|
339
319
|
ach: AchDetails;
|
|
340
320
|
}
|
|
341
321
|
|
|
@@ -347,7 +327,7 @@ export declare const CreatePaymentMethodRequestAchType: {
|
|
|
347
327
|
|
|
348
328
|
export declare interface CreatePaymentMethodRequestFedwire {
|
|
349
329
|
type: CreatePaymentMethodRequestFedwireType;
|
|
350
|
-
|
|
330
|
+
asset: string;
|
|
351
331
|
fedwire: FedwireDetails;
|
|
352
332
|
}
|
|
353
333
|
|
|
@@ -398,42 +378,6 @@ export declare type CreateSwapQuoteResponseAllOfTransaction = {
|
|
|
398
378
|
|
|
399
379
|
export declare type CreateSwapQuoteResponseWrapper = CreateSwapQuoteResponse | SwapUnavailableResponse;
|
|
400
380
|
|
|
401
|
-
export declare type CreateTransfer = TransferQuoteDetails | CreateTransferQuote;
|
|
402
|
-
|
|
403
|
-
export declare interface CreateTransferQuote {
|
|
404
|
-
amount: Amount;
|
|
405
|
-
amountType?: CreateTransferQuoteAmountType;
|
|
406
|
-
source: Source;
|
|
407
|
-
target: Target;
|
|
408
|
-
metadata?: Metadata;
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
export declare type CreateTransferQuoteAmountType = (typeof CreateTransferQuoteAmountType)[keyof typeof CreateTransferQuoteAmountType];
|
|
412
|
-
|
|
413
|
-
export declare const CreateTransferQuoteAmountType: {
|
|
414
|
-
readonly target: "target";
|
|
415
|
-
readonly source: "source";
|
|
416
|
-
};
|
|
417
|
-
|
|
418
|
-
export declare interface CryptoRail {
|
|
419
|
-
currency: string;
|
|
420
|
-
name: string;
|
|
421
|
-
networks: CryptoRailNetworksItem[];
|
|
422
|
-
actions: PaymentRailAction[];
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
export declare interface CryptoRailAddress {
|
|
426
|
-
currency: string;
|
|
427
|
-
network: string;
|
|
428
|
-
address: string;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
export declare type CryptoRailNetworksItem = {
|
|
432
|
-
name?: string;
|
|
433
|
-
chainId?: number;
|
|
434
|
-
contractAddress?: string;
|
|
435
|
-
};
|
|
436
|
-
|
|
437
381
|
export declare type Customer = CustomerAllOf & CustomerBase & CustomerAllOfTwo & Required<Pick<CustomerAllOf & CustomerBase & CustomerAllOfTwo, "capabilities" | "requirement" | "type">>;
|
|
438
382
|
|
|
439
383
|
export declare type CustomerAllOf = {
|
|
@@ -452,24 +396,15 @@ export declare type CustomerAllOfTwoRequirementAllOf = {
|
|
|
452
396
|
[key: string]: unknown;
|
|
453
397
|
};
|
|
454
398
|
|
|
455
|
-
export declare type CustomerBase = (
|
|
399
|
+
export declare type CustomerBase = (IndividualCustomer & {
|
|
456
400
|
projectIds?: ProjectId[];
|
|
457
|
-
}) | (
|
|
401
|
+
}) | (BusinessCustomer & {
|
|
458
402
|
projectIds?: ProjectId[];
|
|
459
403
|
});
|
|
460
404
|
|
|
461
|
-
export declare type CustomerBaseOneOf = {
|
|
462
|
-
individual: Individual;
|
|
463
|
-
};
|
|
464
|
-
|
|
465
|
-
export declare type CustomerBaseOneOfTwo = {
|
|
466
|
-
business: Business;
|
|
467
|
-
};
|
|
468
|
-
|
|
469
405
|
export declare type CustomerCreateRequest = CustomerCreateRequestAllOf & CustomerBase;
|
|
470
406
|
|
|
471
407
|
export declare type CustomerCreateRequestAllOf = {
|
|
472
|
-
customerId: CustomerId;
|
|
473
408
|
type: CustomerType;
|
|
474
409
|
capabilities?: CapabilitiesMapRequest;
|
|
475
410
|
};
|
|
@@ -539,7 +474,7 @@ export declare interface EIP712Types {
|
|
|
539
474
|
|
|
540
475
|
export declare interface EmailAddress {
|
|
541
476
|
email: string;
|
|
542
|
-
|
|
477
|
+
asset: string;
|
|
543
478
|
}
|
|
544
479
|
|
|
545
480
|
export declare interface EmailAuthentication {
|
|
@@ -567,7 +502,6 @@ export declare interface Entity {
|
|
|
567
502
|
name: string;
|
|
568
503
|
productionEntityId?: string;
|
|
569
504
|
legalEntityId?: string | null;
|
|
570
|
-
status: EntityStatus;
|
|
571
505
|
type?: string;
|
|
572
506
|
capabilities: CapabilitiesMap;
|
|
573
507
|
createdAt: string;
|
|
@@ -580,16 +514,6 @@ export declare type EntityOtherInfo = {
|
|
|
580
514
|
[key: string]: unknown;
|
|
581
515
|
};
|
|
582
516
|
|
|
583
|
-
export declare type EntityStatus = (typeof EntityStatus)[keyof typeof EntityStatus];
|
|
584
|
-
|
|
585
|
-
export declare const EntityStatus: {
|
|
586
|
-
readonly active_without_kyb: "active_without_kyb";
|
|
587
|
-
readonly pending_kyb: "pending_kyb";
|
|
588
|
-
readonly documents_required: "documents_required";
|
|
589
|
-
readonly in_review: "in_review";
|
|
590
|
-
readonly active: "active";
|
|
591
|
-
};
|
|
592
|
-
|
|
593
517
|
declare interface Error_2 {
|
|
594
518
|
errorType: ErrorType;
|
|
595
519
|
errorMessage: string;
|
|
@@ -890,12 +814,6 @@ export declare const EvmUserOperationStatus: {
|
|
|
890
814
|
readonly failed: "failed";
|
|
891
815
|
};
|
|
892
816
|
|
|
893
|
-
export declare interface ExchangeRate {
|
|
894
|
-
sourceCurrency: string;
|
|
895
|
-
targetCurrency: string;
|
|
896
|
-
rate: string;
|
|
897
|
-
}
|
|
898
|
-
|
|
899
817
|
export declare const exportEndUserEvmAccount: (projectId: string, userId: string, exportEndUserEvmAccountBody: ExportEndUserEvmAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<ExportEndUserEvmAccount200>;
|
|
900
818
|
|
|
901
819
|
export declare type ExportEndUserEvmAccount200 = {
|
|
@@ -931,34 +849,6 @@ export declare interface FedwireDetails {
|
|
|
931
849
|
beneficiaryBankName?: string;
|
|
932
850
|
}
|
|
933
851
|
|
|
934
|
-
export declare interface Fee {
|
|
935
|
-
type: FeeType;
|
|
936
|
-
amount: string;
|
|
937
|
-
currency: string;
|
|
938
|
-
description?: string;
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
export declare interface FeeDetails {
|
|
942
|
-
type?: FeeDetailsType;
|
|
943
|
-
amount?: Amount;
|
|
944
|
-
}
|
|
945
|
-
|
|
946
|
-
export declare type FeeDetailsType = (typeof FeeDetailsType)[keyof typeof FeeDetailsType];
|
|
947
|
-
|
|
948
|
-
export declare const FeeDetailsType: {
|
|
949
|
-
readonly conversion: "conversion";
|
|
950
|
-
readonly settlement: "settlement";
|
|
951
|
-
readonly deposit: "deposit";
|
|
952
|
-
readonly wire_fee: "wire_fee";
|
|
953
|
-
};
|
|
954
|
-
|
|
955
|
-
export declare type FeeType = (typeof FeeType)[keyof typeof FeeType];
|
|
956
|
-
|
|
957
|
-
export declare const FeeType: {
|
|
958
|
-
readonly exchange_fee: "exchange_fee";
|
|
959
|
-
readonly network_fee: "network_fee";
|
|
960
|
-
};
|
|
961
|
-
|
|
962
852
|
export declare type FileId = string;
|
|
963
853
|
|
|
964
854
|
export declare type ForbiddenErrorResponse = Error_2;
|
|
@@ -967,21 +857,6 @@ export declare type FromAmount = string;
|
|
|
967
857
|
|
|
968
858
|
export declare type FromToken = string;
|
|
969
859
|
|
|
970
|
-
export declare interface FundTransfer {
|
|
971
|
-
id: string;
|
|
972
|
-
status: PaymentStatus;
|
|
973
|
-
source: Source;
|
|
974
|
-
target: Target;
|
|
975
|
-
sourceAmount: SourceAmount;
|
|
976
|
-
targetAmount: TargetAmount;
|
|
977
|
-
fees: FeeDetails[];
|
|
978
|
-
exchangeRate?: ExchangeRate;
|
|
979
|
-
sourceDepositInstructions?: SourceDepositInstructions;
|
|
980
|
-
createdAt: string;
|
|
981
|
-
updatedAt: string;
|
|
982
|
-
metadata?: Metadata;
|
|
983
|
-
}
|
|
984
|
-
|
|
985
860
|
export declare type GasPrice = string;
|
|
986
861
|
|
|
987
862
|
export declare const getAuthenticatedEndUser: (projectId: string, userId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
|
|
@@ -1016,8 +891,6 @@ export declare type IdempotencyErrorResponse = Error_2;
|
|
|
1016
891
|
|
|
1017
892
|
export declare type IdempotencyKeyParameter = string;
|
|
1018
893
|
|
|
1019
|
-
export declare type IdempotencyKeyRequiredParameter = string;
|
|
1020
|
-
|
|
1021
894
|
export declare interface Idl {
|
|
1022
895
|
address: string;
|
|
1023
896
|
instructions: IdlInstructionsItem[];
|
|
@@ -1054,53 +927,20 @@ export declare type IdlTypesItem = {
|
|
|
1054
927
|
};
|
|
1055
928
|
|
|
1056
929
|
export declare interface Individual {
|
|
1057
|
-
|
|
930
|
+
firstName?: string;
|
|
931
|
+
familyName?: string;
|
|
1058
932
|
email?: string;
|
|
1059
933
|
phone?: string;
|
|
1060
934
|
address?: PhysicalAddress;
|
|
1061
935
|
dateOfBirth?: DateOfBirth;
|
|
1062
|
-
sourceOfFunds?: IndividualSourceOfFunds;
|
|
1063
|
-
industry?: IndividualIndustry;
|
|
1064
|
-
cryptoActivity?: IndividualCryptoActivity;
|
|
1065
|
-
connectionToPolitician?: IndividualConnectionToPolitician;
|
|
1066
936
|
taxResidency?: string;
|
|
1067
|
-
taxNumber?: string;
|
|
1068
937
|
nationalities?: string[];
|
|
1069
938
|
verification?: IndividualVerification;
|
|
1070
939
|
}
|
|
1071
940
|
|
|
1072
|
-
export declare
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
readonly none: "none";
|
|
1076
|
-
readonly self_pep: "self_pep";
|
|
1077
|
-
readonly family_of_pep: "family_of_pep";
|
|
1078
|
-
readonly associate_of_pep: "associate_of_pep";
|
|
1079
|
-
readonly unknown: "unknown";
|
|
1080
|
-
};
|
|
1081
|
-
|
|
1082
|
-
export declare type IndividualCryptoActivity = (typeof IndividualCryptoActivity)[keyof typeof IndividualCryptoActivity];
|
|
1083
|
-
|
|
1084
|
-
export declare const IndividualCryptoActivity: {
|
|
1085
|
-
readonly trading: "trading";
|
|
1086
|
-
readonly mining: "mining";
|
|
1087
|
-
readonly other: "other";
|
|
1088
|
-
};
|
|
1089
|
-
|
|
1090
|
-
export declare type IndividualIndustry = (typeof IndividualIndustry)[keyof typeof IndividualIndustry];
|
|
1091
|
-
|
|
1092
|
-
export declare const IndividualIndustry: {
|
|
1093
|
-
readonly finance: "finance";
|
|
1094
|
-
readonly technology: "technology";
|
|
1095
|
-
readonly other: "other";
|
|
1096
|
-
};
|
|
1097
|
-
|
|
1098
|
-
export declare type IndividualSourceOfFunds = (typeof IndividualSourceOfFunds)[keyof typeof IndividualSourceOfFunds];
|
|
1099
|
-
|
|
1100
|
-
export declare const IndividualSourceOfFunds: {
|
|
1101
|
-
readonly employment_income: "employment_income";
|
|
1102
|
-
readonly other: "other";
|
|
1103
|
-
};
|
|
941
|
+
export declare interface IndividualCustomer {
|
|
942
|
+
individual: Individual;
|
|
943
|
+
}
|
|
1104
944
|
|
|
1105
945
|
export declare type IndividualVerification = {
|
|
1106
946
|
document?: IndividualVerificationDocument;
|
|
@@ -1241,9 +1081,9 @@ export declare const KnownIdlType: {
|
|
|
1241
1081
|
};
|
|
1242
1082
|
|
|
1243
1083
|
export declare interface Limit {
|
|
1244
|
-
remaining?:
|
|
1245
|
-
used?:
|
|
1246
|
-
total?:
|
|
1084
|
+
remaining?: LimitRemaining;
|
|
1085
|
+
used?: LimitUsed;
|
|
1086
|
+
total?: LimitTotal;
|
|
1247
1087
|
limitPeriod?: LimitPeriod;
|
|
1248
1088
|
description?: string;
|
|
1249
1089
|
}
|
|
@@ -1258,12 +1098,35 @@ export declare const LimitPeriod: {
|
|
|
1258
1098
|
readonly biweekly: "biweekly";
|
|
1259
1099
|
};
|
|
1260
1100
|
|
|
1101
|
+
export declare type LimitRemaining = {
|
|
1102
|
+
amount: string;
|
|
1103
|
+
asset: string;
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
export declare type LimitTotal = {
|
|
1107
|
+
amount: string;
|
|
1108
|
+
asset: string;
|
|
1109
|
+
};
|
|
1110
|
+
|
|
1111
|
+
export declare type LimitUsed = {
|
|
1112
|
+
amount: string;
|
|
1113
|
+
asset: string;
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1261
1116
|
export declare interface LinkableEntity {
|
|
1262
1117
|
entityId: EntityId;
|
|
1263
1118
|
name: string;
|
|
1264
1119
|
type: LinkableEntityType;
|
|
1120
|
+
role: LinkableEntityRole;
|
|
1265
1121
|
}
|
|
1266
1122
|
|
|
1123
|
+
export declare type LinkableEntityRole = (typeof LinkableEntityRole)[keyof typeof LinkableEntityRole];
|
|
1124
|
+
|
|
1125
|
+
export declare const LinkableEntityRole: {
|
|
1126
|
+
readonly admin: "admin";
|
|
1127
|
+
readonly owner: "owner";
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1267
1130
|
export declare type LinkableEntityType = (typeof LinkableEntityType)[keyof typeof LinkableEntityType];
|
|
1268
1131
|
|
|
1269
1132
|
export declare const LinkableEntityType: {
|
|
@@ -1320,10 +1183,6 @@ export declare type LogOutEndUserBody = {
|
|
|
1320
1183
|
|
|
1321
1184
|
export declare type LogOutEndUserResult = NonNullable<Awaited<ReturnType<typeof logOutEndUser>>>;
|
|
1322
1185
|
|
|
1323
|
-
export declare interface Metadata {
|
|
1324
|
-
[key: string]: unknown;
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
1186
|
export declare interface MintAddressCriterion {
|
|
1328
1187
|
type: MintAddressCriterionType;
|
|
1329
1188
|
addresses: string[];
|
|
@@ -1389,18 +1248,6 @@ export declare interface OAuth2Authentication {
|
|
|
1389
1248
|
email?: string;
|
|
1390
1249
|
}
|
|
1391
1250
|
|
|
1392
|
-
export declare type OAuth2ErrorCode = (typeof OAuth2ErrorCode)[keyof typeof OAuth2ErrorCode];
|
|
1393
|
-
|
|
1394
|
-
export declare const OAuth2ErrorCode: {
|
|
1395
|
-
readonly access_denied: "access_denied";
|
|
1396
|
-
readonly invalid_request: "invalid_request";
|
|
1397
|
-
readonly invalid_client: "invalid_client";
|
|
1398
|
-
readonly invalid_grant: "invalid_grant";
|
|
1399
|
-
readonly unauthorized_client: "unauthorized_client";
|
|
1400
|
-
readonly unsupported_grant_type: "unsupported_grant_type";
|
|
1401
|
-
readonly invalid_scope: "invalid_scope";
|
|
1402
|
-
};
|
|
1403
|
-
|
|
1404
1251
|
export declare type OAuth2ProviderType = (typeof OAuth2ProviderType)[keyof typeof OAuth2ProviderType];
|
|
1405
1252
|
|
|
1406
1253
|
export declare const OAuth2ProviderType: {
|
|
@@ -1412,7 +1259,7 @@ export declare interface OnchainAddress {
|
|
|
1412
1259
|
address: string;
|
|
1413
1260
|
network: Network;
|
|
1414
1261
|
destinationTag?: string;
|
|
1415
|
-
|
|
1262
|
+
asset: string;
|
|
1416
1263
|
}
|
|
1417
1264
|
|
|
1418
1265
|
export declare interface OnchainDataColumnSchema {
|
|
@@ -1579,149 +1426,13 @@ export declare type PageSizeParameter = number;
|
|
|
1579
1426
|
|
|
1580
1427
|
export declare type PageTokenParameter = string;
|
|
1581
1428
|
|
|
1582
|
-
export declare interface PaymentAccount {
|
|
1583
|
-
id: string;
|
|
1584
|
-
name: string;
|
|
1585
|
-
currency: string;
|
|
1586
|
-
type: PaymentAccountType;
|
|
1587
|
-
availableBalance: PaymentAccountAvailableBalance;
|
|
1588
|
-
hold: PaymentAccountHold;
|
|
1589
|
-
depositInstructions?: SourceDepositInstructions;
|
|
1590
|
-
createdAt: string;
|
|
1591
|
-
updatedAt: string;
|
|
1592
|
-
}
|
|
1593
|
-
|
|
1594
|
-
export declare type PaymentAccountAvailableBalance = {
|
|
1595
|
-
value: string;
|
|
1596
|
-
currency: string;
|
|
1597
|
-
};
|
|
1598
|
-
|
|
1599
|
-
export declare type PaymentAccountHold = {
|
|
1600
|
-
value: string;
|
|
1601
|
-
currency: string;
|
|
1602
|
-
};
|
|
1603
|
-
|
|
1604
|
-
export declare type PaymentAccountType = (typeof PaymentAccountType)[keyof typeof PaymentAccountType];
|
|
1605
|
-
|
|
1606
|
-
export declare const PaymentAccountType: {
|
|
1607
|
-
readonly crypto: "crypto";
|
|
1608
|
-
readonly fiat: "fiat";
|
|
1609
|
-
};
|
|
1610
|
-
|
|
1611
1429
|
export declare interface PaymentMethod {
|
|
1612
1430
|
paymentMethodId: string;
|
|
1613
|
-
|
|
1614
|
-
}
|
|
1615
|
-
|
|
1616
|
-
export declare interface PaymentMethodRequest {
|
|
1617
|
-
id: string;
|
|
1431
|
+
asset: string;
|
|
1618
1432
|
}
|
|
1619
1433
|
|
|
1620
1434
|
export declare type PaymentMethodRequiredErrorResponse = Error_2;
|
|
1621
1435
|
|
|
1622
|
-
export declare interface PaymentMethodSource {
|
|
1623
|
-
paymentMethodId: string;
|
|
1624
|
-
currency: string;
|
|
1625
|
-
}
|
|
1626
|
-
|
|
1627
|
-
export declare interface PaymentMethodTarget {
|
|
1628
|
-
paymentMethodId: string;
|
|
1629
|
-
currency: string;
|
|
1630
|
-
}
|
|
1631
|
-
|
|
1632
|
-
export declare type PaymentRailAction = (typeof PaymentRailAction)[keyof typeof PaymentRailAction];
|
|
1633
|
-
|
|
1634
|
-
export declare const PaymentRailAction: {
|
|
1635
|
-
readonly source: "source";
|
|
1636
|
-
readonly target: "target";
|
|
1637
|
-
};
|
|
1638
|
-
|
|
1639
|
-
export declare interface PaymentsPaymentMethod {
|
|
1640
|
-
id: string;
|
|
1641
|
-
type: PaymentsPaymentMethodType;
|
|
1642
|
-
currency: string;
|
|
1643
|
-
actions: PaymentRailAction[];
|
|
1644
|
-
limits?: PaymentsPaymentMethodLimits;
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
export declare type PaymentsPaymentMethodLimits = {
|
|
1648
|
-
sourceLimit?: PaymentsPaymentMethodLimitsSourceLimit;
|
|
1649
|
-
targetLimit?: PaymentsPaymentMethodLimitsTargetLimit;
|
|
1650
|
-
};
|
|
1651
|
-
|
|
1652
|
-
export declare type PaymentsPaymentMethodLimitsSourceLimit = {
|
|
1653
|
-
amount?: string;
|
|
1654
|
-
currency?: string;
|
|
1655
|
-
};
|
|
1656
|
-
|
|
1657
|
-
export declare type PaymentsPaymentMethodLimitsTargetLimit = {
|
|
1658
|
-
amount?: string;
|
|
1659
|
-
currency?: string;
|
|
1660
|
-
};
|
|
1661
|
-
|
|
1662
|
-
export declare type PaymentsPaymentMethodType = (typeof PaymentsPaymentMethodType)[keyof typeof PaymentsPaymentMethodType];
|
|
1663
|
-
|
|
1664
|
-
export declare const PaymentsPaymentMethodType: {
|
|
1665
|
-
readonly card: "card";
|
|
1666
|
-
readonly fiat_account: "fiat_account";
|
|
1667
|
-
};
|
|
1668
|
-
|
|
1669
|
-
export declare type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus];
|
|
1670
|
-
|
|
1671
|
-
export declare const PaymentStatus: {
|
|
1672
|
-
readonly pending: "pending";
|
|
1673
|
-
readonly awaiting_funds: "awaiting_funds";
|
|
1674
|
-
readonly in_progress: "in_progress";
|
|
1675
|
-
readonly completed: "completed";
|
|
1676
|
-
readonly failed: "failed";
|
|
1677
|
-
readonly unknown: "unknown";
|
|
1678
|
-
};
|
|
1679
|
-
|
|
1680
|
-
export declare interface PaymentsTransfer {
|
|
1681
|
-
id: string;
|
|
1682
|
-
sourceType: PaymentsTransferSourceType;
|
|
1683
|
-
source: PaymentMethodRequest;
|
|
1684
|
-
targetType: PaymentsTransferTargetType;
|
|
1685
|
-
target: CryptoRailAddress;
|
|
1686
|
-
sourceAmount: string;
|
|
1687
|
-
sourceCurrency: string;
|
|
1688
|
-
targetAmount: string;
|
|
1689
|
-
targetCurrency: string;
|
|
1690
|
-
userAmount: string;
|
|
1691
|
-
userCurrency: string;
|
|
1692
|
-
fees: Fee[];
|
|
1693
|
-
status: PaymentsTransferStatus;
|
|
1694
|
-
createdAt: string;
|
|
1695
|
-
updatedAt: string;
|
|
1696
|
-
transactionHash?: string;
|
|
1697
|
-
}
|
|
1698
|
-
|
|
1699
|
-
export declare type PaymentsTransferSource = PaymentMethodRequest;
|
|
1700
|
-
|
|
1701
|
-
export declare type PaymentsTransferSourceType = (typeof PaymentsTransferSourceType)[keyof typeof PaymentsTransferSourceType];
|
|
1702
|
-
|
|
1703
|
-
export declare const PaymentsTransferSourceType: {
|
|
1704
|
-
readonly payment_method: "payment_method";
|
|
1705
|
-
};
|
|
1706
|
-
|
|
1707
|
-
export declare type PaymentsTransferStatus = (typeof PaymentsTransferStatus)[keyof typeof PaymentsTransferStatus];
|
|
1708
|
-
|
|
1709
|
-
export declare const PaymentsTransferStatus: {
|
|
1710
|
-
readonly created: "created";
|
|
1711
|
-
readonly pending: "pending";
|
|
1712
|
-
readonly started: "started";
|
|
1713
|
-
readonly completed: "completed";
|
|
1714
|
-
readonly failed: "failed";
|
|
1715
|
-
};
|
|
1716
|
-
|
|
1717
|
-
export declare type PaymentsTransferTarget = CryptoRailAddress;
|
|
1718
|
-
|
|
1719
|
-
export declare type PaymentsTransferTargetType = (typeof PaymentsTransferTargetType)[keyof typeof PaymentsTransferTargetType];
|
|
1720
|
-
|
|
1721
|
-
export declare const PaymentsTransferTargetType: {
|
|
1722
|
-
readonly crypto_rail: "crypto_rail";
|
|
1723
|
-
};
|
|
1724
|
-
|
|
1725
1436
|
export declare interface Permission {
|
|
1726
1437
|
permissionId: PermissionId;
|
|
1727
1438
|
name: string;
|
|
@@ -2554,37 +2265,6 @@ export declare const SolValueCriterionType: {
|
|
|
2554
2265
|
readonly solValue: "solValue";
|
|
2555
2266
|
};
|
|
2556
2267
|
|
|
2557
|
-
export declare type Source = AccountSource | PaymentMethodSource;
|
|
2558
|
-
|
|
2559
|
-
export declare interface SourceAmount {
|
|
2560
|
-
value: string;
|
|
2561
|
-
currency: string;
|
|
2562
|
-
}
|
|
2563
|
-
|
|
2564
|
-
export declare interface SourceDepositInstructions {
|
|
2565
|
-
paymentMethodType: SourceDepositInstructionsPaymentMethodType;
|
|
2566
|
-
currency: SourceDepositInstructionsCurrency;
|
|
2567
|
-
accountName: string;
|
|
2568
|
-
accountAddress: string;
|
|
2569
|
-
accountNumber: string;
|
|
2570
|
-
routingNumber: string;
|
|
2571
|
-
bankName: string;
|
|
2572
|
-
bankAddress: string;
|
|
2573
|
-
bankCountryName: string;
|
|
2574
|
-
}
|
|
2575
|
-
|
|
2576
|
-
export declare type SourceDepositInstructionsCurrency = (typeof SourceDepositInstructionsCurrency)[keyof typeof SourceDepositInstructionsCurrency];
|
|
2577
|
-
|
|
2578
|
-
export declare const SourceDepositInstructionsCurrency: {
|
|
2579
|
-
readonly USD: "USD";
|
|
2580
|
-
};
|
|
2581
|
-
|
|
2582
|
-
export declare type SourceDepositInstructionsPaymentMethodType = (typeof SourceDepositInstructionsPaymentMethodType)[keyof typeof SourceDepositInstructionsPaymentMethodType];
|
|
2583
|
-
|
|
2584
|
-
export declare const SourceDepositInstructionsPaymentMethodType: {
|
|
2585
|
-
readonly fedwire: "fedwire";
|
|
2586
|
-
};
|
|
2587
|
-
|
|
2588
2268
|
export declare interface SpendPermission {
|
|
2589
2269
|
account: string;
|
|
2590
2270
|
spender: string;
|
|
@@ -2666,13 +2346,6 @@ export declare interface SwapUnavailableResponse {
|
|
|
2666
2346
|
|
|
2667
2347
|
export declare type Taker = string;
|
|
2668
2348
|
|
|
2669
|
-
export declare type Target = OnchainAddress | EmailAddress | AccountTarget | PaymentMethodTarget;
|
|
2670
|
-
|
|
2671
|
-
export declare interface TargetAmount {
|
|
2672
|
-
value: string;
|
|
2673
|
-
currency: string;
|
|
2674
|
-
}
|
|
2675
|
-
|
|
2676
2349
|
export declare interface TeamMember {
|
|
2677
2350
|
memberId: TeamMemberId;
|
|
2678
2351
|
userId: string;
|
|
@@ -2717,13 +2390,16 @@ export declare interface Transfer {
|
|
|
2717
2390
|
source: TransferSource;
|
|
2718
2391
|
target: TransferTarget;
|
|
2719
2392
|
amount: string;
|
|
2720
|
-
|
|
2393
|
+
asset: string;
|
|
2721
2394
|
sourceAmount?: string;
|
|
2395
|
+
sourceAsset?: string;
|
|
2722
2396
|
targetAmount?: string;
|
|
2397
|
+
targetAsset?: string;
|
|
2398
|
+
exchangeRate?: TransferExchangeRate;
|
|
2723
2399
|
fees?: TransferFees;
|
|
2724
2400
|
completedAt?: string;
|
|
2725
2401
|
sourceDepositInstructions?: TransferSourceDepositsInstructions;
|
|
2726
|
-
failureReason?:
|
|
2402
|
+
failureReason?: string;
|
|
2727
2403
|
reversalReason?: TransferReversalReason;
|
|
2728
2404
|
cancellationReason?: TransferCancellationReason;
|
|
2729
2405
|
lastError?: TransferLastError;
|
|
@@ -2745,32 +2421,16 @@ export declare const TransferCancellationReason: {
|
|
|
2745
2421
|
readonly insufficient_funds_canceled: "insufficient_funds_canceled";
|
|
2746
2422
|
};
|
|
2747
2423
|
|
|
2748
|
-
export declare type
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
readonly invalid_source: "invalid_source";
|
|
2753
|
-
readonly invalid_target: "invalid_target";
|
|
2754
|
-
readonly compliance_failure: "compliance_failure";
|
|
2755
|
-
readonly network_error: "network_error";
|
|
2756
|
-
readonly rate_limit_exceeded: "rate_limit_exceeded";
|
|
2757
|
-
readonly account_restricted: "account_restricted";
|
|
2758
|
-
readonly amount_too_large: "amount_too_large";
|
|
2759
|
-
readonly amount_too_small: "amount_too_small";
|
|
2760
|
-
readonly asset_not_supported: "asset_not_supported";
|
|
2761
|
-
readonly processing_error: "processing_error";
|
|
2762
|
-
readonly network_failure: "network_failure";
|
|
2763
|
-
readonly insufficient_gas: "insufficient_gas";
|
|
2764
|
-
readonly transaction_reverted: "transaction_reverted";
|
|
2765
|
-
readonly timeout: "timeout";
|
|
2766
|
-
readonly compliance_rejection: "compliance_rejection";
|
|
2767
|
-
readonly recipient_unavailable: "recipient_unavailable";
|
|
2424
|
+
export declare type TransferExchangeRate = {
|
|
2425
|
+
sourceAsset: string;
|
|
2426
|
+
targetAsset: string;
|
|
2427
|
+
rate: string;
|
|
2768
2428
|
};
|
|
2769
2429
|
|
|
2770
2430
|
export declare interface TransferFee {
|
|
2771
2431
|
name: TransferFeeName;
|
|
2772
2432
|
amount: string;
|
|
2773
|
-
|
|
2433
|
+
asset: string;
|
|
2774
2434
|
}
|
|
2775
2435
|
|
|
2776
2436
|
export declare type TransferFeeName = (typeof TransferFeeName)[keyof typeof TransferFeeName];
|
|
@@ -2798,31 +2458,22 @@ export declare type TransferLastErrorDetails = {
|
|
|
2798
2458
|
retryAfter?: number;
|
|
2799
2459
|
};
|
|
2800
2460
|
|
|
2801
|
-
export declare interface TransferQuote {
|
|
2802
|
-
id: string;
|
|
2803
|
-
paymentStatus: PaymentStatus;
|
|
2804
|
-
source: Source;
|
|
2805
|
-
target: Target;
|
|
2806
|
-
sourceAmount: SourceAmount;
|
|
2807
|
-
targetAmount: TargetAmount;
|
|
2808
|
-
fees: FeeDetails[];
|
|
2809
|
-
exchangeRate?: ExchangeRate;
|
|
2810
|
-
expiresAt: string;
|
|
2811
|
-
metadata?: Metadata;
|
|
2812
|
-
}
|
|
2813
|
-
|
|
2814
|
-
export declare interface TransferQuoteDetails {
|
|
2815
|
-
quoteId: string;
|
|
2816
|
-
}
|
|
2817
|
-
|
|
2818
2461
|
export declare interface TransferRequest {
|
|
2819
2462
|
source: TransferSource;
|
|
2820
2463
|
target: TransferTarget;
|
|
2821
2464
|
amount: string;
|
|
2822
|
-
|
|
2465
|
+
asset: string;
|
|
2466
|
+
amountType?: TransferRequestAmountType;
|
|
2823
2467
|
execute: boolean;
|
|
2824
2468
|
}
|
|
2825
2469
|
|
|
2470
|
+
export declare type TransferRequestAmountType = (typeof TransferRequestAmountType)[keyof typeof TransferRequestAmountType];
|
|
2471
|
+
|
|
2472
|
+
export declare const TransferRequestAmountType: {
|
|
2473
|
+
readonly target: "target";
|
|
2474
|
+
readonly source: "source";
|
|
2475
|
+
};
|
|
2476
|
+
|
|
2826
2477
|
export declare type TransferReversalReason = (typeof TransferReversalReason)[keyof typeof TransferReversalReason];
|
|
2827
2478
|
|
|
2828
2479
|
export declare const TransferReversalReason: {
|
|
@@ -2835,14 +2486,14 @@ export declare const TransferReversalReason: {
|
|
|
2835
2486
|
|
|
2836
2487
|
export declare interface TransfersAccount {
|
|
2837
2488
|
accountId: string;
|
|
2838
|
-
|
|
2489
|
+
asset: string;
|
|
2839
2490
|
}
|
|
2840
2491
|
|
|
2841
2492
|
export declare type TransferSource = TransfersAccount | PaymentMethod;
|
|
2842
2493
|
|
|
2843
2494
|
export declare interface TransferSourceDepositsInstructions {
|
|
2844
2495
|
paymentMethodType: TransferSourceDepositsInstructionsPaymentMethodType;
|
|
2845
|
-
|
|
2496
|
+
asset: TransferSourceDepositsInstructionsAsset;
|
|
2846
2497
|
accountName: string;
|
|
2847
2498
|
accountAddress: string;
|
|
2848
2499
|
accountNumber: string;
|
|
@@ -2852,9 +2503,9 @@ export declare interface TransferSourceDepositsInstructions {
|
|
|
2852
2503
|
bankCountryName: string;
|
|
2853
2504
|
}
|
|
2854
2505
|
|
|
2855
|
-
export declare type
|
|
2506
|
+
export declare type TransferSourceDepositsInstructionsAsset = (typeof TransferSourceDepositsInstructionsAsset)[keyof typeof TransferSourceDepositsInstructionsAsset];
|
|
2856
2507
|
|
|
2857
|
-
export declare const
|
|
2508
|
+
export declare const TransferSourceDepositsInstructionsAsset: {
|
|
2858
2509
|
readonly usd: "usd";
|
|
2859
2510
|
};
|
|
2860
2511
|
|
|
@@ -2867,7 +2518,7 @@ export declare const TransferSourceDepositsInstructionsPaymentMethodType: {
|
|
|
2867
2518
|
export declare type TransferStatus = (typeof TransferStatus)[keyof typeof TransferStatus];
|
|
2868
2519
|
|
|
2869
2520
|
export declare const TransferStatus: {
|
|
2870
|
-
readonly
|
|
2521
|
+
readonly draft: "draft";
|
|
2871
2522
|
readonly awaiting_funds: "awaiting_funds";
|
|
2872
2523
|
readonly processing: "processing";
|
|
2873
2524
|
readonly completed: "completed";
|
|
@@ -2877,7 +2528,7 @@ export declare const TransferStatus: {
|
|
|
2877
2528
|
readonly reversed: "reversed";
|
|
2878
2529
|
};
|
|
2879
2530
|
|
|
2880
|
-
export declare type TransferTarget = TransfersAccount | PaymentMethod;
|
|
2531
|
+
export declare type TransferTarget = TransfersAccount | PaymentMethod | OnchainAddress | EmailAddress;
|
|
2881
2532
|
|
|
2882
2533
|
export declare type UnauthorizedErrorResponse = Error_2;
|
|
2883
2534
|
|