@coinbase/cdp-api-client 0.0.88 → 0.0.90
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 +214 -194
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index5.js +117 -78
- package/dist/esm/index6.js +399 -296
- package/dist/types/index.d.ts +582 -207
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -79,18 +79,36 @@ export declare const AccountType: {
|
|
|
79
79
|
readonly cdp: "cdp";
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
export declare
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
82
|
+
export declare type AccountWithLinkStatus = Account & AccountWithLinkStatusAllOf;
|
|
83
|
+
|
|
84
|
+
export declare type AccountWithLinkStatusAllOf = {
|
|
85
|
+
linkStatus?: Status;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export declare interface AddMobileClientRequest {
|
|
89
|
+
platform: AddMobileClientRequestPlatform;
|
|
90
|
+
identifier: string;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export declare type AddMobileClientRequestPlatform = (typeof AddMobileClientRequestPlatform)[keyof typeof AddMobileClientRequestPlatform];
|
|
94
|
+
|
|
95
|
+
export declare const AddMobileClientRequestPlatform: {
|
|
96
|
+
readonly ios: "ios";
|
|
97
|
+
readonly android: "android";
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
export declare interface AddMobileClientResponse {
|
|
101
|
+
id: string;
|
|
102
|
+
platform: AddMobileClientResponsePlatform;
|
|
103
|
+
identifier: string;
|
|
104
|
+
createdAt: string;
|
|
87
105
|
}
|
|
88
106
|
|
|
89
|
-
export declare type
|
|
107
|
+
export declare type AddMobileClientResponsePlatform = (typeof AddMobileClientResponsePlatform)[keyof typeof AddMobileClientResponsePlatform];
|
|
90
108
|
|
|
91
|
-
export declare const
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
109
|
+
export declare const AddMobileClientResponsePlatform: {
|
|
110
|
+
readonly ios: "ios";
|
|
111
|
+
readonly android: "android";
|
|
94
112
|
};
|
|
95
113
|
|
|
96
114
|
export declare interface AddressRisk {
|
|
@@ -112,6 +130,11 @@ export declare const AddressRiskRiskLevel: {
|
|
|
112
130
|
readonly no_risk_indicated: "no_risk_indicated";
|
|
113
131
|
};
|
|
114
132
|
|
|
133
|
+
export declare interface AllowedMobileClients {
|
|
134
|
+
ios: MobileClientItem[];
|
|
135
|
+
android: MobileClientItem[];
|
|
136
|
+
}
|
|
137
|
+
|
|
115
138
|
export declare type AlreadyExistsErrorResponse = Error_2;
|
|
116
139
|
|
|
117
140
|
export declare interface AmountDetail {
|
|
@@ -166,7 +189,7 @@ export declare type AuthenticateUserWithCustomAuth200 = {
|
|
|
166
189
|
|
|
167
190
|
export declare type AuthenticateUserWithCustomAuthResult = NonNullable<Awaited<ReturnType<typeof authenticateUserWithCustomAuth>>>;
|
|
168
191
|
|
|
169
|
-
export declare type AuthenticationMethod = EmailAuthentication | SmsAuthentication | DeveloperJWTAuthentication | OAuth2Authentication;
|
|
192
|
+
export declare type AuthenticationMethod = EmailAuthentication | SmsAuthentication | DeveloperJWTAuthentication | OAuth2Authentication | TelegramAuthentication;
|
|
170
193
|
|
|
171
194
|
export declare type AuthenticationMethods = AuthenticationMethod[];
|
|
172
195
|
|
|
@@ -205,34 +228,90 @@ export declare interface BalancesAsset {
|
|
|
205
228
|
|
|
206
229
|
export declare type BlockchainAddress = string;
|
|
207
230
|
|
|
208
|
-
export declare interface Business {
|
|
209
|
-
selfOwned?: boolean;
|
|
210
|
-
businessLegalName?: string;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export declare interface BusinessCustomer {
|
|
214
|
-
business: Business;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
231
|
export declare interface CapabilitiesMap {
|
|
218
|
-
|
|
232
|
+
custodyCrypto?: Capability;
|
|
233
|
+
custodyFiat?: Capability;
|
|
234
|
+
custodyStablecoin?: Capability;
|
|
235
|
+
custodyStocks?: Capability;
|
|
236
|
+
onrampBankAccount?: Capability;
|
|
237
|
+
onrampCard?: Capability;
|
|
238
|
+
onrampWire?: Capability;
|
|
239
|
+
tradeCryptoToCrypto?: Capability;
|
|
240
|
+
tradeCryptoToFiat?: Capability;
|
|
241
|
+
tradeCryptoToStablecoin?: Capability;
|
|
242
|
+
tradeFiatToCrypto?: Capability;
|
|
243
|
+
tradeFiatToFiat?: Capability;
|
|
244
|
+
tradeFiatToStablecoin?: Capability;
|
|
245
|
+
tradeStablecoinToCrypto?: Capability;
|
|
246
|
+
tradeStablecoinToFiat?: Capability;
|
|
247
|
+
tradeStablecoinToStablecoin?: Capability;
|
|
248
|
+
transferCrypto?: Capability;
|
|
249
|
+
transferFiat?: Capability;
|
|
250
|
+
transferStablecoin?: Capability;
|
|
219
251
|
}
|
|
220
252
|
|
|
221
253
|
export declare interface CapabilitiesMapRequest {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
254
|
+
custodyCrypto?: CapabilityRequest;
|
|
255
|
+
custodyFiat?: CapabilityRequest;
|
|
256
|
+
custodyStablecoin?: CapabilityRequest;
|
|
257
|
+
custodyStocks?: CapabilityRequest;
|
|
258
|
+
onrampBankAccount?: CapabilityRequest;
|
|
259
|
+
onrampCard?: CapabilityRequest;
|
|
260
|
+
onrampWire?: CapabilityRequest;
|
|
261
|
+
tradeCryptoToCrypto?: CapabilityRequest;
|
|
262
|
+
tradeCryptoToFiat?: CapabilityRequest;
|
|
263
|
+
tradeCryptoToStablecoin?: CapabilityRequest;
|
|
264
|
+
tradeFiatToCrypto?: CapabilityRequest;
|
|
265
|
+
tradeFiatToFiat?: CapabilityRequest;
|
|
266
|
+
tradeFiatToStablecoin?: CapabilityRequest;
|
|
267
|
+
tradeStablecoinToCrypto?: CapabilityRequest;
|
|
268
|
+
tradeStablecoinToFiat?: CapabilityRequest;
|
|
269
|
+
tradeStablecoinToStablecoin?: CapabilityRequest;
|
|
270
|
+
transferCrypto?: CapabilityRequest;
|
|
271
|
+
transferFiat?: CapabilityRequest;
|
|
272
|
+
transferStablecoin?: CapabilityRequest;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export declare interface Capability {
|
|
276
|
+
requested: boolean;
|
|
277
|
+
status: CapabilityStatus;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export declare type CapabilityName = (typeof CapabilityName)[keyof typeof CapabilityName];
|
|
281
|
+
|
|
282
|
+
export declare const CapabilityName: {
|
|
283
|
+
readonly custodyCrypto: "custodyCrypto";
|
|
284
|
+
readonly custodyFiat: "custodyFiat";
|
|
285
|
+
readonly custodyStablecoin: "custodyStablecoin";
|
|
286
|
+
readonly custodyStocks: "custodyStocks";
|
|
287
|
+
readonly onrampBankAccount: "onrampBankAccount";
|
|
288
|
+
readonly onrampCard: "onrampCard";
|
|
289
|
+
readonly onrampWire: "onrampWire";
|
|
290
|
+
readonly tradeCryptoToCrypto: "tradeCryptoToCrypto";
|
|
291
|
+
readonly tradeCryptoToFiat: "tradeCryptoToFiat";
|
|
292
|
+
readonly tradeCryptoToStablecoin: "tradeCryptoToStablecoin";
|
|
293
|
+
readonly tradeFiatToCrypto: "tradeFiatToCrypto";
|
|
294
|
+
readonly tradeFiatToFiat: "tradeFiatToFiat";
|
|
295
|
+
readonly tradeFiatToStablecoin: "tradeFiatToStablecoin";
|
|
296
|
+
readonly tradeStablecoinToCrypto: "tradeStablecoinToCrypto";
|
|
297
|
+
readonly tradeStablecoinToFiat: "tradeStablecoinToFiat";
|
|
298
|
+
readonly tradeStablecoinToStablecoin: "tradeStablecoinToStablecoin";
|
|
299
|
+
readonly transferCrypto: "transferCrypto";
|
|
300
|
+
readonly transferFiat: "transferFiat";
|
|
301
|
+
readonly transferStablecoin: "transferStablecoin";
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
export declare interface CapabilityRequest {
|
|
226
305
|
requested: boolean;
|
|
227
306
|
}
|
|
228
307
|
|
|
229
308
|
export declare type CapabilityStatus = (typeof CapabilityStatus)[keyof typeof CapabilityStatus];
|
|
230
309
|
|
|
231
310
|
export declare const CapabilityStatus: {
|
|
232
|
-
readonly
|
|
233
|
-
readonly restricted: "restricted";
|
|
234
|
-
readonly disabled: "disabled";
|
|
311
|
+
readonly unrequested: "unrequested";
|
|
235
312
|
readonly pending: "pending";
|
|
313
|
+
readonly active: "active";
|
|
314
|
+
readonly inactive: "inactive";
|
|
236
315
|
};
|
|
237
316
|
|
|
238
317
|
declare const cdpApiClient: <T>(config: AxiosRequestConfig, idempotencyKey?: string) => Promise<T>;
|
|
@@ -283,25 +362,6 @@ export declare type CommonSwapResponseIssuesBalance = {
|
|
|
283
362
|
|
|
284
363
|
export declare const configureCdpApiClient: (options: CdpOptions) => void;
|
|
285
364
|
|
|
286
|
-
export declare interface CoolPaymentMethod {
|
|
287
|
-
id: string;
|
|
288
|
-
type: CoolPaymentMethodType;
|
|
289
|
-
asset: Asset;
|
|
290
|
-
name?: string;
|
|
291
|
-
verified?: boolean;
|
|
292
|
-
allowDeposit?: boolean;
|
|
293
|
-
allowWithdraw?: boolean;
|
|
294
|
-
allowOutboundPayment?: boolean;
|
|
295
|
-
limits?: Limit[];
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
export declare type CoolPaymentMethodType = (typeof CoolPaymentMethodType)[keyof typeof CoolPaymentMethodType];
|
|
299
|
-
|
|
300
|
-
export declare const CoolPaymentMethodType: {
|
|
301
|
-
readonly ach: "ach";
|
|
302
|
-
readonly fedwire: "fedwire";
|
|
303
|
-
};
|
|
304
|
-
|
|
305
365
|
export declare interface CreateAccountRequest {
|
|
306
366
|
owner?: string;
|
|
307
367
|
name?: AccountName;
|
|
@@ -398,32 +458,21 @@ export declare type CreateEndUserSolanaAccountBody = {
|
|
|
398
458
|
|
|
399
459
|
export declare type CreateEndUserSolanaAccountResult = NonNullable<Awaited<ReturnType<typeof createEndUserSolanaAccount>>>;
|
|
400
460
|
|
|
401
|
-
export declare
|
|
461
|
+
export declare const createEvmEip7702DelegationWithEndUserAccount: (projectId: string, userId: string, createEvmEip7702DelegationWithEndUserAccountBody: CreateEvmEip7702DelegationWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<CreateEvmEip7702DelegationWithEndUserAccount201>;
|
|
402
462
|
|
|
403
|
-
export declare
|
|
404
|
-
|
|
405
|
-
asset: Asset;
|
|
406
|
-
ach: AchDetails;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
export declare type CreatePaymentMethodRequestAchType = (typeof CreatePaymentMethodRequestAchType)[keyof typeof CreatePaymentMethodRequestAchType];
|
|
410
|
-
|
|
411
|
-
export declare const CreatePaymentMethodRequestAchType: {
|
|
412
|
-
readonly ach: "ach";
|
|
463
|
+
export declare type CreateEvmEip7702DelegationWithEndUserAccount201 = {
|
|
464
|
+
transactionHash: string;
|
|
413
465
|
};
|
|
414
466
|
|
|
415
|
-
export declare
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
export declare type CreatePaymentMethodRequestFedwireType = (typeof CreatePaymentMethodRequestFedwireType)[keyof typeof CreatePaymentMethodRequestFedwireType];
|
|
422
|
-
|
|
423
|
-
export declare const CreatePaymentMethodRequestFedwireType: {
|
|
424
|
-
readonly fedwire: "fedwire";
|
|
467
|
+
export declare type CreateEvmEip7702DelegationWithEndUserAccountBody = {
|
|
468
|
+
address: string;
|
|
469
|
+
network: EvmEip7702DelegationNetwork;
|
|
470
|
+
enableSpendPermissions?: boolean;
|
|
471
|
+
walletSecretId: string;
|
|
425
472
|
};
|
|
426
473
|
|
|
474
|
+
export declare type CreateEvmEip7702DelegationWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof createEvmEip7702DelegationWithEndUserAccount>>>;
|
|
475
|
+
|
|
427
476
|
export declare interface CreateProjectConfigRequest {
|
|
428
477
|
name?: string;
|
|
429
478
|
}
|
|
@@ -528,29 +577,21 @@ export declare interface CustomAuthConfig {
|
|
|
528
577
|
updatedAt?: string;
|
|
529
578
|
}
|
|
530
579
|
|
|
531
|
-
export declare type Customer = CustomerAllOf & CustomerBase
|
|
580
|
+
export declare type Customer = CustomerAllOf & CustomerBase;
|
|
532
581
|
|
|
533
582
|
export declare type CustomerAllOf = {
|
|
534
583
|
customerId: CustomerId;
|
|
584
|
+
type: CustomerType;
|
|
585
|
+
readonly capabilities: CapabilitiesMap;
|
|
586
|
+
readonly requirements: RequirementsMap;
|
|
587
|
+
readonly createdAt?: string;
|
|
535
588
|
};
|
|
536
589
|
|
|
537
|
-
export declare type
|
|
538
|
-
type?: CustomerType;
|
|
539
|
-
capabilities?: CapabilitiesMap;
|
|
540
|
-
readonly requirement?: CustomerAllOfTwoRequirement;
|
|
541
|
-
};
|
|
542
|
-
|
|
543
|
-
export declare type CustomerAllOfTwoRequirement = Requirement & CustomerAllOfTwoRequirementAllOf;
|
|
544
|
-
|
|
545
|
-
export declare type CustomerAllOfTwoRequirementAllOf = {
|
|
546
|
-
[key: string]: unknown;
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
export declare type CustomerBase = (IndividualCustomer & {
|
|
550
|
-
projectIds?: ProjectId[];
|
|
551
|
-
}) | (BusinessCustomer & {
|
|
590
|
+
export declare type CustomerBase = IndividualCustomer & {
|
|
552
591
|
projectIds?: ProjectId[];
|
|
553
|
-
|
|
592
|
+
email?: string;
|
|
593
|
+
phone?: string;
|
|
594
|
+
};
|
|
554
595
|
|
|
555
596
|
export declare type CustomerCreateRequest = CustomerCreateRequestAllOf & CustomerBase;
|
|
556
597
|
|
|
@@ -565,13 +606,18 @@ export declare type CustomerType = (typeof CustomerType)[keyof typeof CustomerTy
|
|
|
565
606
|
|
|
566
607
|
export declare const CustomerType: {
|
|
567
608
|
readonly individual: "individual";
|
|
568
|
-
readonly business: "business";
|
|
569
609
|
};
|
|
570
610
|
|
|
571
|
-
export declare
|
|
611
|
+
export declare interface CustomerUpdateBase {
|
|
612
|
+
projectIds?: ProjectId[];
|
|
613
|
+
email?: string;
|
|
614
|
+
phone?: string;
|
|
615
|
+
individual?: Individual;
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
export declare type CustomerUpdateRequest = CustomerUpdateRequestAllOf & CustomerUpdateBase;
|
|
572
619
|
|
|
573
620
|
export declare type CustomerUpdateRequestAllOf = {
|
|
574
|
-
customerId: CustomerId;
|
|
575
621
|
capabilities?: CapabilitiesMapRequest;
|
|
576
622
|
};
|
|
577
623
|
|
|
@@ -632,12 +678,6 @@ export declare const DeveloperJWTAuthenticationType: {
|
|
|
632
678
|
readonly jwt: "jwt";
|
|
633
679
|
};
|
|
634
680
|
|
|
635
|
-
declare interface Document_2 {
|
|
636
|
-
frontFileId: FileId;
|
|
637
|
-
backFileId: FileId;
|
|
638
|
-
}
|
|
639
|
-
export { Document_2 as Document }
|
|
640
|
-
|
|
641
681
|
export declare interface EIP712Domain {
|
|
642
682
|
name?: string;
|
|
643
683
|
version?: string;
|
|
@@ -663,7 +703,6 @@ export declare interface EIP712Types {
|
|
|
663
703
|
|
|
664
704
|
export declare interface EmailAddress {
|
|
665
705
|
email: string;
|
|
666
|
-
asset: Asset;
|
|
667
706
|
}
|
|
668
707
|
|
|
669
708
|
export declare interface EmailAuthentication {
|
|
@@ -677,6 +716,12 @@ export declare const EmailAuthenticationType: {
|
|
|
677
716
|
readonly email: "email";
|
|
678
717
|
};
|
|
679
718
|
|
|
719
|
+
export declare type EmailInstrument = EmailAddress & EmailInstrumentAllOf;
|
|
720
|
+
|
|
721
|
+
export declare type EmailInstrumentAllOf = {
|
|
722
|
+
asset: Asset;
|
|
723
|
+
};
|
|
724
|
+
|
|
680
725
|
export declare interface EndUser {
|
|
681
726
|
userId: string;
|
|
682
727
|
authenticationMethods: AuthenticationMethods;
|
|
@@ -823,6 +868,8 @@ export declare const ErrorType: {
|
|
|
823
868
|
readonly malformed_transaction: "malformed_transaction";
|
|
824
869
|
readonly not_found: "not_found";
|
|
825
870
|
readonly payment_method_required: "payment_method_required";
|
|
871
|
+
readonly payment_required: "payment_required";
|
|
872
|
+
readonly settlement_failed: "settlement_failed";
|
|
826
873
|
readonly rate_limit_exceeded: "rate_limit_exceeded";
|
|
827
874
|
readonly request_canceled: "request_canceled";
|
|
828
875
|
readonly service_unavailable: "service_unavailable";
|
|
@@ -862,6 +909,9 @@ export declare const ErrorType: {
|
|
|
862
909
|
readonly mfa_flow_expired: "mfa_flow_expired";
|
|
863
910
|
readonly mfa_required: "mfa_required";
|
|
864
911
|
readonly mfa_not_enrolled: "mfa_not_enrolled";
|
|
912
|
+
readonly order_quote_expired: "order_quote_expired";
|
|
913
|
+
readonly order_already_filled: "order_already_filled";
|
|
914
|
+
readonly order_already_canceled: "order_already_canceled";
|
|
865
915
|
};
|
|
866
916
|
|
|
867
917
|
export declare interface EthValueCriterion {
|
|
@@ -970,6 +1020,33 @@ export declare const EvmDataParameterConditionOperator: {
|
|
|
970
1020
|
readonly "==": "==";
|
|
971
1021
|
};
|
|
972
1022
|
|
|
1023
|
+
export declare type EvmEip7702DelegationNetwork = (typeof EvmEip7702DelegationNetwork)[keyof typeof EvmEip7702DelegationNetwork];
|
|
1024
|
+
|
|
1025
|
+
export declare const EvmEip7702DelegationNetwork: {
|
|
1026
|
+
readonly "base-sepolia": "base-sepolia";
|
|
1027
|
+
readonly base: "base";
|
|
1028
|
+
readonly arbitrum: "arbitrum";
|
|
1029
|
+
readonly optimism: "optimism";
|
|
1030
|
+
readonly polygon: "polygon";
|
|
1031
|
+
readonly ethereum: "ethereum";
|
|
1032
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
1033
|
+
};
|
|
1034
|
+
|
|
1035
|
+
export declare interface EvmEip7702DelegationStatus {
|
|
1036
|
+
status: EvmEip7702DelegationStatusStatus;
|
|
1037
|
+
delegateAddress?: string;
|
|
1038
|
+
network: EvmEip7702DelegationNetwork;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
export declare type EvmEip7702DelegationStatusStatus = (typeof EvmEip7702DelegationStatusStatus)[keyof typeof EvmEip7702DelegationStatusStatus];
|
|
1042
|
+
|
|
1043
|
+
export declare const EvmEip7702DelegationStatusStatus: {
|
|
1044
|
+
readonly CURRENT: "CURRENT";
|
|
1045
|
+
readonly NOT_DELEGATED: "NOT_DELEGATED";
|
|
1046
|
+
readonly WRONG_PROXY: "WRONG_PROXY";
|
|
1047
|
+
readonly NOT_INITIALIZED: "NOT_INITIALIZED";
|
|
1048
|
+
};
|
|
1049
|
+
|
|
973
1050
|
export declare interface EvmMessageCriterion {
|
|
974
1051
|
type: EvmMessageCriterionType;
|
|
975
1052
|
match: string;
|
|
@@ -1050,6 +1127,7 @@ export declare const EvmSwapsNetwork: {
|
|
|
1050
1127
|
readonly ethereum: "ethereum";
|
|
1051
1128
|
readonly arbitrum: "arbitrum";
|
|
1052
1129
|
readonly optimism: "optimism";
|
|
1130
|
+
readonly polygon: "polygon";
|
|
1053
1131
|
};
|
|
1054
1132
|
|
|
1055
1133
|
export declare interface EvmTypedAddressCondition {
|
|
@@ -1132,6 +1210,7 @@ export declare type ExportEndUserEvmAccountBody = {
|
|
|
1132
1210
|
exportEncryptionKey: string;
|
|
1133
1211
|
walletSecretId: string;
|
|
1134
1212
|
parentOrigin?: Url;
|
|
1213
|
+
eject?: boolean;
|
|
1135
1214
|
};
|
|
1136
1215
|
|
|
1137
1216
|
export declare type ExportEndUserEvmAccountResult = NonNullable<Awaited<ReturnType<typeof exportEndUserEvmAccount>>>;
|
|
@@ -1147,18 +1226,38 @@ export declare type ExportEndUserSolanaAccountBody = {
|
|
|
1147
1226
|
exportEncryptionKey: string;
|
|
1148
1227
|
walletSecretId: string;
|
|
1149
1228
|
parentOrigin?: Url;
|
|
1229
|
+
eject?: boolean;
|
|
1150
1230
|
};
|
|
1151
1231
|
|
|
1152
1232
|
export declare type ExportEndUserSolanaAccountResult = NonNullable<Awaited<ReturnType<typeof exportEndUserSolanaAccount>>>;
|
|
1153
1233
|
|
|
1154
1234
|
export declare interface FedwireDetails {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1235
|
+
asset: string;
|
|
1236
|
+
bankName: string;
|
|
1237
|
+
accountLast4: string;
|
|
1238
|
+
routingNumber: string;
|
|
1159
1239
|
}
|
|
1160
1240
|
|
|
1161
|
-
export declare type
|
|
1241
|
+
export declare type FedwirePaymentMethod = PaymentMethodBase & FedwirePaymentMethodAllOf & {
|
|
1242
|
+
paymentRail: FedwirePaymentMethodPaymentRail;
|
|
1243
|
+
};
|
|
1244
|
+
|
|
1245
|
+
export declare type FedwirePaymentMethodAllOf = {
|
|
1246
|
+
paymentRail: FedwirePaymentMethodAllOfPaymentRail;
|
|
1247
|
+
fedwire: FedwireDetails;
|
|
1248
|
+
};
|
|
1249
|
+
|
|
1250
|
+
export declare type FedwirePaymentMethodAllOfPaymentRail = (typeof FedwirePaymentMethodAllOfPaymentRail)[keyof typeof FedwirePaymentMethodAllOfPaymentRail];
|
|
1251
|
+
|
|
1252
|
+
export declare const FedwirePaymentMethodAllOfPaymentRail: {
|
|
1253
|
+
readonly fedwire: "fedwire";
|
|
1254
|
+
};
|
|
1255
|
+
|
|
1256
|
+
export declare type FedwirePaymentMethodPaymentRail = (typeof FedwirePaymentMethodPaymentRail)[keyof typeof FedwirePaymentMethodPaymentRail];
|
|
1257
|
+
|
|
1258
|
+
export declare const FedwirePaymentMethodPaymentRail: {
|
|
1259
|
+
readonly fedwire: "fedwire";
|
|
1260
|
+
};
|
|
1162
1261
|
|
|
1163
1262
|
export declare type FileType = (typeof FileType)[keyof typeof FileType];
|
|
1164
1263
|
|
|
@@ -1184,10 +1283,23 @@ export declare type FromToken = string;
|
|
|
1184
1283
|
|
|
1185
1284
|
export declare type GasPrice = string;
|
|
1186
1285
|
|
|
1286
|
+
export declare const generateAttestationChallenge: (projectId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<IosAttestationChallenge>;
|
|
1287
|
+
|
|
1288
|
+
export declare type GenerateAttestationChallengeResult = NonNullable<Awaited<ReturnType<typeof generateAttestationChallenge>>>;
|
|
1289
|
+
|
|
1187
1290
|
export declare const getAuthenticatedEndUser: (projectId: string, userId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
|
|
1188
1291
|
|
|
1189
1292
|
export declare type GetAuthenticatedEndUserResult = NonNullable<Awaited<ReturnType<typeof getAuthenticatedEndUser>>>;
|
|
1190
1293
|
|
|
1294
|
+
export declare const getEvmEip7702DelegationStatusWithEndUserAccount: (projectId: string, userId: string, params: GetEvmEip7702DelegationStatusWithEndUserAccountParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmEip7702DelegationStatus>;
|
|
1295
|
+
|
|
1296
|
+
export declare type GetEvmEip7702DelegationStatusWithEndUserAccountParams = {
|
|
1297
|
+
address: string;
|
|
1298
|
+
network: EvmEip7702DelegationNetwork;
|
|
1299
|
+
};
|
|
1300
|
+
|
|
1301
|
+
export declare type GetEvmEip7702DelegationStatusWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof getEvmEip7702DelegationStatusWithEndUserAccount>>>;
|
|
1302
|
+
|
|
1191
1303
|
export declare const getMfaConfig: (projectId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<MfaConfig>;
|
|
1192
1304
|
|
|
1193
1305
|
export declare type GetMfaConfigResult = NonNullable<Awaited<ReturnType<typeof getMfaConfig>>>;
|
|
@@ -1268,37 +1380,25 @@ export declare type IdlTypesItem = {
|
|
|
1268
1380
|
|
|
1269
1381
|
export declare interface Individual {
|
|
1270
1382
|
firstName?: string;
|
|
1271
|
-
|
|
1272
|
-
email?: string;
|
|
1273
|
-
phone?: string;
|
|
1383
|
+
lastName?: string;
|
|
1274
1384
|
address?: PhysicalAddress;
|
|
1385
|
+
ssnLast4?: string;
|
|
1275
1386
|
dateOfBirth?: DateOfBirth;
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1387
|
+
countryOfResidence?: string;
|
|
1388
|
+
fullSsn?: string;
|
|
1389
|
+
citizenship?: string[];
|
|
1390
|
+
purposeOfAccount?: string;
|
|
1391
|
+
sourceOfFunds?: string;
|
|
1392
|
+
intendedUse?: string;
|
|
1393
|
+
employmentStatus?: string;
|
|
1394
|
+
expectedTransferValue?: string;
|
|
1395
|
+
industry?: string;
|
|
1279
1396
|
}
|
|
1280
1397
|
|
|
1281
1398
|
export declare interface IndividualCustomer {
|
|
1282
1399
|
individual: Individual;
|
|
1283
1400
|
}
|
|
1284
1401
|
|
|
1285
|
-
export declare type IndividualVerification = {
|
|
1286
|
-
document?: IndividualVerificationDocument;
|
|
1287
|
-
additionalDocument?: IndividualVerificationAdditionalDocument;
|
|
1288
|
-
};
|
|
1289
|
-
|
|
1290
|
-
export declare type IndividualVerificationAdditionalDocument = (Document_2 & IndividualVerificationAdditionalDocumentAllOf) | null;
|
|
1291
|
-
|
|
1292
|
-
export declare type IndividualVerificationAdditionalDocumentAllOf = {
|
|
1293
|
-
[key: string]: unknown;
|
|
1294
|
-
};
|
|
1295
|
-
|
|
1296
|
-
export declare type IndividualVerificationDocument = Document_2 & IndividualVerificationDocumentAllOf;
|
|
1297
|
-
|
|
1298
|
-
export declare type IndividualVerificationDocumentAllOf = {
|
|
1299
|
-
[key: string]: unknown;
|
|
1300
|
-
};
|
|
1301
|
-
|
|
1302
1402
|
export declare const initiateAuthentication: (projectId: string, initiateAuthenticationRequest: InitiateAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<InitiateAuthenticationResponseWrapper>;
|
|
1303
1403
|
|
|
1304
1404
|
export declare type InitiateAuthenticationRequest = InitiateEmailAuthenticationRequest | InitiateSmsAuthenticationRequest | InitiateOAuthAuthenticationRequest;
|
|
@@ -1448,6 +1548,35 @@ export declare const InvitationStatus: {
|
|
|
1448
1548
|
readonly expired: "expired";
|
|
1449
1549
|
};
|
|
1450
1550
|
|
|
1551
|
+
export declare interface IosAttestationChallenge {
|
|
1552
|
+
challenge: string;
|
|
1553
|
+
expiresAt: string;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
export declare interface IosAttestationPayload {
|
|
1557
|
+
keyId: string;
|
|
1558
|
+
attestation: string;
|
|
1559
|
+
bundleId: string;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
export declare interface IosAttestationRegistrationRequest {
|
|
1563
|
+
challenge: string;
|
|
1564
|
+
ios: IosAttestationPayload;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
export declare interface IosAttestationRegistrationResponse {
|
|
1568
|
+
keyId: string;
|
|
1569
|
+
platform: IosAttestationRegistrationResponsePlatform;
|
|
1570
|
+
appId: string;
|
|
1571
|
+
attestedAt: string;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
export declare type IosAttestationRegistrationResponsePlatform = (typeof IosAttestationRegistrationResponsePlatform)[keyof typeof IosAttestationRegistrationResponsePlatform];
|
|
1575
|
+
|
|
1576
|
+
export declare const IosAttestationRegistrationResponsePlatform: {
|
|
1577
|
+
readonly ios: "ios";
|
|
1578
|
+
};
|
|
1579
|
+
|
|
1451
1580
|
export declare function isOpenAPIError(obj: unknown): obj is Error_2;
|
|
1452
1581
|
|
|
1453
1582
|
export declare type KnownAbiType = (typeof KnownAbiType)[keyof typeof KnownAbiType];
|
|
@@ -1466,39 +1595,6 @@ export declare const KnownIdlType: {
|
|
|
1466
1595
|
readonly AssociatedTokenProgram: "AssociatedTokenProgram";
|
|
1467
1596
|
};
|
|
1468
1597
|
|
|
1469
|
-
export declare interface Limit {
|
|
1470
|
-
remaining?: LimitRemaining;
|
|
1471
|
-
used?: LimitUsed;
|
|
1472
|
-
total?: LimitTotal;
|
|
1473
|
-
limitPeriod?: LimitPeriod;
|
|
1474
|
-
description?: Description;
|
|
1475
|
-
}
|
|
1476
|
-
|
|
1477
|
-
export declare type LimitPeriod = (typeof LimitPeriod)[keyof typeof LimitPeriod];
|
|
1478
|
-
|
|
1479
|
-
export declare const LimitPeriod: {
|
|
1480
|
-
readonly unknown: "unknown";
|
|
1481
|
-
readonly daily: "daily";
|
|
1482
|
-
readonly weekly: "weekly";
|
|
1483
|
-
readonly monthly: "monthly";
|
|
1484
|
-
readonly biweekly: "biweekly";
|
|
1485
|
-
};
|
|
1486
|
-
|
|
1487
|
-
export declare type LimitRemaining = {
|
|
1488
|
-
amount: string;
|
|
1489
|
-
asset: Asset;
|
|
1490
|
-
};
|
|
1491
|
-
|
|
1492
|
-
export declare type LimitTotal = {
|
|
1493
|
-
amount: string;
|
|
1494
|
-
asset: Asset;
|
|
1495
|
-
};
|
|
1496
|
-
|
|
1497
|
-
export declare type LimitUsed = {
|
|
1498
|
-
amount: string;
|
|
1499
|
-
asset: Asset;
|
|
1500
|
-
};
|
|
1501
|
-
|
|
1502
1598
|
export declare interface LinkableAccount {
|
|
1503
1599
|
accountId: AccountId;
|
|
1504
1600
|
type: AccountType;
|
|
@@ -1641,6 +1737,12 @@ export declare const MintAddressCriterionType: {
|
|
|
1641
1737
|
readonly mintAddress: "mintAddress";
|
|
1642
1738
|
};
|
|
1643
1739
|
|
|
1740
|
+
export declare interface MobileClientItem {
|
|
1741
|
+
id: string;
|
|
1742
|
+
identifier: string;
|
|
1743
|
+
createdAt: string;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1644
1746
|
export declare interface NetUSDChangeCriterion {
|
|
1645
1747
|
type: NetUSDChangeCriterionType;
|
|
1646
1748
|
changeCents: number;
|
|
@@ -1690,6 +1792,7 @@ export declare const OAuth2ProviderType: {
|
|
|
1690
1792
|
readonly google: "google";
|
|
1691
1793
|
readonly apple: "apple";
|
|
1692
1794
|
readonly x: "x";
|
|
1795
|
+
readonly telegram: "telegram";
|
|
1693
1796
|
};
|
|
1694
1797
|
|
|
1695
1798
|
export declare interface OnchainAddress {
|
|
@@ -1785,6 +1888,50 @@ export declare const OnrampLimitType: {
|
|
|
1785
1888
|
readonly lifetime_transactions: "lifetime_transactions";
|
|
1786
1889
|
};
|
|
1787
1890
|
|
|
1891
|
+
export declare interface OnrampLimitUpgrade {
|
|
1892
|
+
limitType: OnrampLimitType;
|
|
1893
|
+
maxUpgrade: string;
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
export declare type OnrampLimitUpgradeIdentityFieldKey = (typeof OnrampLimitUpgradeIdentityFieldKey)[keyof typeof OnrampLimitUpgradeIdentityFieldKey];
|
|
1897
|
+
|
|
1898
|
+
export declare const OnrampLimitUpgradeIdentityFieldKey: {
|
|
1899
|
+
readonly ssnLast4: "ssnLast4";
|
|
1900
|
+
};
|
|
1901
|
+
|
|
1902
|
+
export declare interface OnrampLimitUpgradeIdentityFields {
|
|
1903
|
+
ssnLast4?: string;
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
export declare interface OnrampLimitUpgradeOption {
|
|
1907
|
+
status: OnrampLimitUpgradeStatus;
|
|
1908
|
+
fields: OnrampLimitUpgradeIdentityFieldKey[];
|
|
1909
|
+
limitUpgrades: OnrampLimitUpgrade[];
|
|
1910
|
+
lastErrorCode?: OnrampLimitUpgradeOptionLastErrorCode;
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
export declare type OnrampLimitUpgradeOptionLastErrorCode = (typeof OnrampLimitUpgradeOptionLastErrorCode)[keyof typeof OnrampLimitUpgradeOptionLastErrorCode];
|
|
1914
|
+
|
|
1915
|
+
export declare const OnrampLimitUpgradeOptionLastErrorCode: {
|
|
1916
|
+
readonly INVALID_FORMAT: "INVALID_FORMAT";
|
|
1917
|
+
readonly VERIFICATION_FAILED: "VERIFICATION_FAILED";
|
|
1918
|
+
};
|
|
1919
|
+
|
|
1920
|
+
export declare interface OnrampLimitUpgradeRequest {
|
|
1921
|
+
userId: string;
|
|
1922
|
+
userIdType: OnrampUserIdType;
|
|
1923
|
+
fields: OnrampLimitUpgradeIdentityFields;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
export declare type OnrampLimitUpgradeStatus = (typeof OnrampLimitUpgradeStatus)[keyof typeof OnrampLimitUpgradeStatus];
|
|
1927
|
+
|
|
1928
|
+
export declare const OnrampLimitUpgradeStatus: {
|
|
1929
|
+
readonly pending_submit: "pending_submit";
|
|
1930
|
+
readonly submitted: "submitted";
|
|
1931
|
+
readonly active: "active";
|
|
1932
|
+
readonly rejected: "rejected";
|
|
1933
|
+
};
|
|
1934
|
+
|
|
1788
1935
|
export declare interface OnrampOrder {
|
|
1789
1936
|
orderId: string;
|
|
1790
1937
|
paymentTotal: string;
|
|
@@ -1870,11 +2017,6 @@ export declare interface OnrampSession {
|
|
|
1870
2017
|
onrampUrl: Url;
|
|
1871
2018
|
}
|
|
1872
2019
|
|
|
1873
|
-
export declare interface OnrampUserId {
|
|
1874
|
-
type: OnrampUserIdType;
|
|
1875
|
-
value: string;
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
2020
|
export declare type OnrampUserIdType = (typeof OnrampUserIdType)[keyof typeof OnrampUserIdType];
|
|
1879
2021
|
|
|
1880
2022
|
export declare const OnrampUserIdType: {
|
|
@@ -1885,9 +2027,99 @@ export declare interface OnrampUserLimit {
|
|
|
1885
2027
|
limitType: OnrampLimitType;
|
|
1886
2028
|
currency?: string;
|
|
1887
2029
|
limit: string;
|
|
1888
|
-
|
|
2030
|
+
remaining: string;
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
export declare interface Order {
|
|
2034
|
+
orderId: string;
|
|
2035
|
+
accountId: string;
|
|
2036
|
+
productId: string;
|
|
2037
|
+
side: OrderSide;
|
|
2038
|
+
type: OrderType;
|
|
2039
|
+
status: OrderStatus;
|
|
2040
|
+
baseQuantity?: string;
|
|
2041
|
+
quoteValue?: string;
|
|
2042
|
+
limitPrice?: string;
|
|
2043
|
+
timeInForce?: TimeInForce;
|
|
2044
|
+
expiryTime?: string;
|
|
2045
|
+
filledQuantity?: string;
|
|
2046
|
+
filledValue?: string;
|
|
2047
|
+
averageFilledPrice?: string;
|
|
2048
|
+
fees?: OrderFees;
|
|
2049
|
+
expiresAt?: string;
|
|
2050
|
+
executedAt?: string;
|
|
2051
|
+
completedAt?: string;
|
|
2052
|
+
canceledAt?: string;
|
|
2053
|
+
failureCode?: OrderFailureCode;
|
|
2054
|
+
failureMessage?: string;
|
|
2055
|
+
createdAt: string;
|
|
2056
|
+
updatedAt: string;
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
export declare type OrderFailureCode = (typeof OrderFailureCode)[keyof typeof OrderFailureCode];
|
|
2060
|
+
|
|
2061
|
+
export declare const OrderFailureCode: {
|
|
2062
|
+
readonly insufficient_balance: "insufficient_balance";
|
|
2063
|
+
readonly no_liquidity: "no_liquidity";
|
|
2064
|
+
readonly market_unavailable: "market_unavailable";
|
|
2065
|
+
readonly internal_error: "internal_error";
|
|
2066
|
+
};
|
|
2067
|
+
|
|
2068
|
+
export declare interface OrderFee {
|
|
2069
|
+
type: OrderFeeType;
|
|
2070
|
+
amount: string;
|
|
2071
|
+
asset: string;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
export declare type OrderFees = OrderFee[];
|
|
2075
|
+
|
|
2076
|
+
export declare type OrderFeeType = (typeof OrderFeeType)[keyof typeof OrderFeeType];
|
|
2077
|
+
|
|
2078
|
+
export declare const OrderFeeType: {
|
|
2079
|
+
readonly trading: "trading";
|
|
2080
|
+
readonly network: "network";
|
|
2081
|
+
readonly other: "other";
|
|
2082
|
+
};
|
|
2083
|
+
|
|
2084
|
+
export declare interface OrderRequest {
|
|
2085
|
+
accountId: string;
|
|
2086
|
+
productId: string;
|
|
2087
|
+
side: OrderSide;
|
|
2088
|
+
type: OrderType;
|
|
2089
|
+
baseQuantity?: string;
|
|
2090
|
+
quoteValue?: string;
|
|
2091
|
+
limitPrice?: string;
|
|
2092
|
+
timeInForce?: TimeInForce;
|
|
2093
|
+
expiryTime?: string;
|
|
2094
|
+
execute: boolean;
|
|
1889
2095
|
}
|
|
1890
2096
|
|
|
2097
|
+
export declare type OrderSide = (typeof OrderSide)[keyof typeof OrderSide];
|
|
2098
|
+
|
|
2099
|
+
export declare const OrderSide: {
|
|
2100
|
+
readonly buy: "buy";
|
|
2101
|
+
readonly sell: "sell";
|
|
2102
|
+
};
|
|
2103
|
+
|
|
2104
|
+
export declare type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus];
|
|
2105
|
+
|
|
2106
|
+
export declare const OrderStatus: {
|
|
2107
|
+
readonly quoted: "quoted";
|
|
2108
|
+
readonly pending: "pending";
|
|
2109
|
+
readonly open: "open";
|
|
2110
|
+
readonly filled: "filled";
|
|
2111
|
+
readonly canceled: "canceled";
|
|
2112
|
+
readonly expired: "expired";
|
|
2113
|
+
readonly failed: "failed";
|
|
2114
|
+
};
|
|
2115
|
+
|
|
2116
|
+
export declare type OrderType = (typeof OrderType)[keyof typeof OrderType];
|
|
2117
|
+
|
|
2118
|
+
export declare const OrderType: {
|
|
2119
|
+
readonly market: "market";
|
|
2120
|
+
readonly limit: "limit";
|
|
2121
|
+
};
|
|
2122
|
+
|
|
1891
2123
|
export declare type Owner = string;
|
|
1892
2124
|
|
|
1893
2125
|
export declare type PageSizeParameter = number;
|
|
@@ -1899,8 +2131,19 @@ export declare interface PaymentMethod {
|
|
|
1899
2131
|
asset: Asset;
|
|
1900
2132
|
}
|
|
1901
2133
|
|
|
2134
|
+
export declare interface PaymentMethodBase {
|
|
2135
|
+
paymentMethodId: PaymentMethodId;
|
|
2136
|
+
active: boolean;
|
|
2137
|
+
createdAt: string;
|
|
2138
|
+
updatedAt: string;
|
|
2139
|
+
}
|
|
2140
|
+
|
|
2141
|
+
export declare type PaymentMethodId = string;
|
|
2142
|
+
|
|
1902
2143
|
export declare type PaymentMethodRequiredErrorResponse = Error_2;
|
|
1903
2144
|
|
|
2145
|
+
export declare type PaymentMethodsPaymentMethod = FedwirePaymentMethod | SwiftPaymentMethod;
|
|
2146
|
+
|
|
1904
2147
|
export declare interface Permission {
|
|
1905
2148
|
permissionId: PermissionId;
|
|
1906
2149
|
name: string;
|
|
@@ -2100,6 +2343,10 @@ export declare interface RefreshTokenStorage {
|
|
|
2100
2343
|
removeRefreshToken(): Promise<void>;
|
|
2101
2344
|
}
|
|
2102
2345
|
|
|
2346
|
+
export declare const registerAttestation: (projectId: string, iosAttestationRegistrationRequest: IosAttestationRegistrationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<IosAttestationRegistrationResponse>;
|
|
2347
|
+
|
|
2348
|
+
export declare type RegisterAttestationResult = NonNullable<Awaited<ReturnType<typeof registerAttestation>>>;
|
|
2349
|
+
|
|
2103
2350
|
export declare const registerTemporaryWalletSecret: (projectId: string, userId: string, registerTemporaryWalletSecretBody: RegisterTemporaryWalletSecretBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RegisterTemporaryWalletSecret200>;
|
|
2104
2351
|
|
|
2105
2352
|
export declare type RegisterTemporaryWalletSecret200 = {
|
|
@@ -2179,41 +2426,23 @@ export declare const ReportStatus: {
|
|
|
2179
2426
|
};
|
|
2180
2427
|
|
|
2181
2428
|
export declare interface Requirement {
|
|
2182
|
-
|
|
2183
|
-
pending?: RequirementDue[];
|
|
2184
|
-
errors?: RequirementError[];
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
export declare interface RequirementDue {
|
|
2188
|
-
field: RequirementField;
|
|
2429
|
+
status: RequirementStatus;
|
|
2189
2430
|
deadline?: string;
|
|
2431
|
+
impact?: CapabilityName[];
|
|
2190
2432
|
}
|
|
2191
2433
|
|
|
2192
|
-
export declare interface
|
|
2193
|
-
|
|
2194
|
-
reason: string;
|
|
2195
|
-
requirement: RequirementField;
|
|
2434
|
+
export declare interface RequirementsMap {
|
|
2435
|
+
[key: string]: Requirement;
|
|
2196
2436
|
}
|
|
2197
2437
|
|
|
2198
|
-
export declare type
|
|
2199
|
-
|
|
2200
|
-
export declare const RequirementErrorCode: {
|
|
2201
|
-
readonly information_missing: "information_missing";
|
|
2202
|
-
readonly invalid_address: "invalid_address";
|
|
2203
|
-
readonly verification_document_dob_mismatch: "verification_document_dob_mismatch";
|
|
2204
|
-
readonly verification_document_expired: "verification_document_expired";
|
|
2205
|
-
};
|
|
2206
|
-
|
|
2207
|
-
export declare type RequirementField = (typeof RequirementField)[keyof typeof RequirementField];
|
|
2438
|
+
export declare type RequirementStatus = (typeof RequirementStatus)[keyof typeof RequirementStatus];
|
|
2208
2439
|
|
|
2209
|
-
export declare const
|
|
2210
|
-
readonly
|
|
2211
|
-
readonly
|
|
2212
|
-
readonly
|
|
2213
|
-
readonly
|
|
2214
|
-
readonly
|
|
2215
|
-
readonly individualtaxNumber: "individual.taxNumber";
|
|
2216
|
-
readonly individualverificationdocument: "individual.verification.document";
|
|
2440
|
+
export declare const RequirementStatus: {
|
|
2441
|
+
readonly eventually_due: "eventually_due";
|
|
2442
|
+
readonly due: "due";
|
|
2443
|
+
readonly pending: "pending";
|
|
2444
|
+
readonly rejected: "rejected";
|
|
2445
|
+
readonly overdue: "overdue";
|
|
2217
2446
|
};
|
|
2218
2447
|
|
|
2219
2448
|
export declare type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
@@ -3043,6 +3272,34 @@ export declare interface SwapUnavailableResponse {
|
|
|
3043
3272
|
liquidityAvailable: boolean;
|
|
3044
3273
|
}
|
|
3045
3274
|
|
|
3275
|
+
export declare interface SwiftDetails {
|
|
3276
|
+
asset: string;
|
|
3277
|
+
bankName: string;
|
|
3278
|
+
ibanLast4: string;
|
|
3279
|
+
bic: string;
|
|
3280
|
+
}
|
|
3281
|
+
|
|
3282
|
+
export declare type SwiftPaymentMethod = PaymentMethodBase & SwiftPaymentMethodAllOf & {
|
|
3283
|
+
paymentRail: SwiftPaymentMethodPaymentRail;
|
|
3284
|
+
};
|
|
3285
|
+
|
|
3286
|
+
export declare type SwiftPaymentMethodAllOf = {
|
|
3287
|
+
paymentRail: SwiftPaymentMethodAllOfPaymentRail;
|
|
3288
|
+
swift: SwiftDetails;
|
|
3289
|
+
};
|
|
3290
|
+
|
|
3291
|
+
export declare type SwiftPaymentMethodAllOfPaymentRail = (typeof SwiftPaymentMethodAllOfPaymentRail)[keyof typeof SwiftPaymentMethodAllOfPaymentRail];
|
|
3292
|
+
|
|
3293
|
+
export declare const SwiftPaymentMethodAllOfPaymentRail: {
|
|
3294
|
+
readonly swift: "swift";
|
|
3295
|
+
};
|
|
3296
|
+
|
|
3297
|
+
export declare type SwiftPaymentMethodPaymentRail = (typeof SwiftPaymentMethodPaymentRail)[keyof typeof SwiftPaymentMethodPaymentRail];
|
|
3298
|
+
|
|
3299
|
+
export declare const SwiftPaymentMethodPaymentRail: {
|
|
3300
|
+
readonly swift: "swift";
|
|
3301
|
+
};
|
|
3302
|
+
|
|
3046
3303
|
export declare type Taker = string;
|
|
3047
3304
|
|
|
3048
3305
|
export declare interface TeamMember {
|
|
@@ -3057,6 +3314,16 @@ export declare interface TeamMember {
|
|
|
3057
3314
|
|
|
3058
3315
|
export declare type TeamMemberId = string;
|
|
3059
3316
|
|
|
3317
|
+
export declare interface TelegramAuthentication {
|
|
3318
|
+
type: OAuth2ProviderType;
|
|
3319
|
+
id: number;
|
|
3320
|
+
firstName?: string;
|
|
3321
|
+
lastName?: string;
|
|
3322
|
+
photoUrl?: string;
|
|
3323
|
+
authDate: number;
|
|
3324
|
+
username?: string;
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3060
3327
|
export declare interface TelegramConfig {
|
|
3061
3328
|
enabled?: boolean;
|
|
3062
3329
|
botName?: string;
|
|
@@ -3066,6 +3333,15 @@ export declare interface TelegramConfig {
|
|
|
3066
3333
|
|
|
3067
3334
|
export declare type TimedOutErrorResponse = Error_2;
|
|
3068
3335
|
|
|
3336
|
+
export declare type TimeInForce = (typeof TimeInForce)[keyof typeof TimeInForce];
|
|
3337
|
+
|
|
3338
|
+
export declare const TimeInForce: {
|
|
3339
|
+
readonly goodUntilCanceled: "goodUntilCanceled";
|
|
3340
|
+
readonly goodUntilDateTime: "goodUntilDateTime";
|
|
3341
|
+
readonly immediateOrCancel: "immediateOrCancel";
|
|
3342
|
+
readonly fillOrKill: "fillOrKill";
|
|
3343
|
+
};
|
|
3344
|
+
|
|
3069
3345
|
export declare interface Token {
|
|
3070
3346
|
network: ListEvmTokenBalancesNetwork;
|
|
3071
3347
|
symbol?: string;
|
|
@@ -3107,7 +3383,6 @@ export declare interface Transfer {
|
|
|
3107
3383
|
fees?: TransferFees;
|
|
3108
3384
|
completedAt?: string;
|
|
3109
3385
|
failureReason?: string;
|
|
3110
|
-
lastError?: TransferLastError;
|
|
3111
3386
|
expiresAt?: string;
|
|
3112
3387
|
executedAt?: string;
|
|
3113
3388
|
createdAt?: string;
|
|
@@ -3207,19 +3482,6 @@ export declare interface TransferFilters {
|
|
|
3207
3482
|
destinationAmountMax?: string;
|
|
3208
3483
|
}
|
|
3209
3484
|
|
|
3210
|
-
export declare type TransferLastError = {
|
|
3211
|
-
code?: string;
|
|
3212
|
-
message?: string;
|
|
3213
|
-
param?: string;
|
|
3214
|
-
details?: TransferLastErrorDetails;
|
|
3215
|
-
};
|
|
3216
|
-
|
|
3217
|
-
export declare type TransferLastErrorDetails = {
|
|
3218
|
-
availableBalance?: string;
|
|
3219
|
-
requiredAmount?: string;
|
|
3220
|
-
retryAfter?: number;
|
|
3221
|
-
};
|
|
3222
|
-
|
|
3223
3485
|
export declare interface TransferRequest {
|
|
3224
3486
|
source: CreateTransferSource;
|
|
3225
3487
|
target: TransferTarget;
|
|
@@ -3255,7 +3517,7 @@ export declare const TransferStatus: {
|
|
|
3255
3517
|
readonly failed: "failed";
|
|
3256
3518
|
};
|
|
3257
3519
|
|
|
3258
|
-
export declare type TransferTarget = TransfersAccount | PaymentMethod | OnchainAddress |
|
|
3520
|
+
export declare type TransferTarget = TransfersAccount | PaymentMethod | OnchainAddress | EmailInstrument;
|
|
3259
3521
|
|
|
3260
3522
|
export declare interface TravelRule {
|
|
3261
3523
|
isSelf?: boolean;
|
|
@@ -3443,6 +3705,32 @@ export declare interface VerifyOAuthCodeRequest {
|
|
|
3443
3705
|
|
|
3444
3706
|
export declare type VerifyOAuthCodeResult = NonNullable<Awaited<ReturnType<typeof verifyOAuthCode>>>;
|
|
3445
3707
|
|
|
3708
|
+
export declare type VerifyOAuthEndUserIdentity = VerifyOAuthTelegramRequest;
|
|
3709
|
+
|
|
3710
|
+
export declare const verifyOAuthEndUserIdentity: (projectId: string, providerType: OAuth2ProviderType, verifyOAuthEndUserIdentity: VerifyOAuthEndUserIdentity, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifyOAuthEndUserIdentity200>;
|
|
3711
|
+
|
|
3712
|
+
export declare type VerifyOAuthEndUserIdentity200 = {
|
|
3713
|
+
endUser: EndUser;
|
|
3714
|
+
isNewEndUser: boolean;
|
|
3715
|
+
message: string;
|
|
3716
|
+
accessToken: string;
|
|
3717
|
+
validUntil: string;
|
|
3718
|
+
refreshToken?: string;
|
|
3719
|
+
};
|
|
3720
|
+
|
|
3721
|
+
export declare type VerifyOAuthEndUserIdentityResult = NonNullable<Awaited<ReturnType<typeof verifyOAuthEndUserIdentity>>>;
|
|
3722
|
+
|
|
3723
|
+
export declare interface VerifyOAuthTelegramRequest {
|
|
3724
|
+
flowId: string;
|
|
3725
|
+
id: number;
|
|
3726
|
+
firstName?: string;
|
|
3727
|
+
lastName?: string;
|
|
3728
|
+
photoUrl?: string;
|
|
3729
|
+
authDate: number;
|
|
3730
|
+
username?: string;
|
|
3731
|
+
hash: string;
|
|
3732
|
+
}
|
|
3733
|
+
|
|
3446
3734
|
export declare const verifySmsAuthentication: (projectId: string, verifySmsAuthenticationRequest: VerifySmsAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifySmsAuthentication200>;
|
|
3447
3735
|
|
|
3448
3736
|
export declare type VerifySmsAuthentication200 = {
|
|
@@ -3573,10 +3861,83 @@ export declare type X402ExactEvmPayloadAuthorization = {
|
|
|
3573
3861
|
nonce: string;
|
|
3574
3862
|
};
|
|
3575
3863
|
|
|
3864
|
+
export declare interface X402ExactEvmPermit2Payload {
|
|
3865
|
+
signature: string;
|
|
3866
|
+
permit2Authorization: X402ExactEvmPermit2PayloadPermit2Authorization;
|
|
3867
|
+
}
|
|
3868
|
+
|
|
3869
|
+
export declare type X402ExactEvmPermit2PayloadPermit2Authorization = {
|
|
3870
|
+
from: string;
|
|
3871
|
+
permitted: X402ExactEvmPermit2PayloadPermit2AuthorizationPermitted;
|
|
3872
|
+
spender: string;
|
|
3873
|
+
nonce: string;
|
|
3874
|
+
deadline: string;
|
|
3875
|
+
witness: X402ExactEvmPermit2PayloadPermit2AuthorizationWitness;
|
|
3876
|
+
};
|
|
3877
|
+
|
|
3878
|
+
export declare type X402ExactEvmPermit2PayloadPermit2AuthorizationPermitted = {
|
|
3879
|
+
token: string;
|
|
3880
|
+
amount: string;
|
|
3881
|
+
};
|
|
3882
|
+
|
|
3883
|
+
export declare type X402ExactEvmPermit2PayloadPermit2AuthorizationWitness = {
|
|
3884
|
+
to: string;
|
|
3885
|
+
validAfter: string;
|
|
3886
|
+
extra?: string;
|
|
3887
|
+
};
|
|
3888
|
+
|
|
3576
3889
|
export declare interface X402ExactSolanaPayload {
|
|
3577
3890
|
transaction: string;
|
|
3578
3891
|
}
|
|
3579
3892
|
|
|
3893
|
+
export declare interface X402McpError {
|
|
3894
|
+
code: number;
|
|
3895
|
+
message: string;
|
|
3896
|
+
data?: X402McpErrorData;
|
|
3897
|
+
}
|
|
3898
|
+
|
|
3899
|
+
export declare type X402McpErrorData = {
|
|
3900
|
+
[key: string]: unknown;
|
|
3901
|
+
};
|
|
3902
|
+
|
|
3903
|
+
export declare interface X402McpRequest {
|
|
3904
|
+
jsonrpc: X402McpRequestJsonrpc;
|
|
3905
|
+
id?: X402McpRequestId;
|
|
3906
|
+
method: string;
|
|
3907
|
+
params?: X402McpRequestParams;
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
export declare type X402McpRequestId = string | number;
|
|
3911
|
+
|
|
3912
|
+
export declare type X402McpRequestJsonrpc = (typeof X402McpRequestJsonrpc)[keyof typeof X402McpRequestJsonrpc];
|
|
3913
|
+
|
|
3914
|
+
export declare const X402McpRequestJsonrpc: {
|
|
3915
|
+
readonly "20": "2.0";
|
|
3916
|
+
};
|
|
3917
|
+
|
|
3918
|
+
export declare type X402McpRequestParams = {
|
|
3919
|
+
[key: string]: unknown;
|
|
3920
|
+
};
|
|
3921
|
+
|
|
3922
|
+
export declare interface X402McpResponse {
|
|
3923
|
+
jsonrpc: X402McpResponseJsonrpc;
|
|
3924
|
+
id?: X402McpResponseId;
|
|
3925
|
+
result?: X402McpResponseResult;
|
|
3926
|
+
error?: X402McpError;
|
|
3927
|
+
}
|
|
3928
|
+
|
|
3929
|
+
export declare type X402McpResponseId = string | number | null;
|
|
3930
|
+
|
|
3931
|
+
export declare type X402McpResponseJsonrpc = (typeof X402McpResponseJsonrpc)[keyof typeof X402McpResponseJsonrpc];
|
|
3932
|
+
|
|
3933
|
+
export declare const X402McpResponseJsonrpc: {
|
|
3934
|
+
readonly "20": "2.0";
|
|
3935
|
+
};
|
|
3936
|
+
|
|
3937
|
+
export declare type X402McpResponseResult = {
|
|
3938
|
+
[key: string]: unknown;
|
|
3939
|
+
};
|
|
3940
|
+
|
|
3580
3941
|
export declare type X402PaymentPayload = X402V1PaymentPayload | X402V2PaymentPayload;
|
|
3581
3942
|
|
|
3582
3943
|
export declare type X402PaymentRequirements = X402V1PaymentRequirements | X402V2PaymentRequirements;
|
|
@@ -3605,6 +3966,13 @@ export declare const X402SettleErrorReason: {
|
|
|
3605
3966
|
readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
|
|
3606
3967
|
readonly invalid_exact_evm_payload_signature: "invalid_exact_evm_payload_signature";
|
|
3607
3968
|
readonly invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address";
|
|
3969
|
+
readonly invalid_exact_evm_permit2_payload_allowance_required: "invalid_exact_evm_permit2_payload_allowance_required";
|
|
3970
|
+
readonly invalid_exact_evm_permit2_payload_signature: "invalid_exact_evm_permit2_payload_signature";
|
|
3971
|
+
readonly invalid_exact_evm_permit2_payload_deadline: "invalid_exact_evm_permit2_payload_deadline";
|
|
3972
|
+
readonly invalid_exact_evm_permit2_payload_valid_after: "invalid_exact_evm_permit2_payload_valid_after";
|
|
3973
|
+
readonly invalid_exact_evm_permit2_payload_spender: "invalid_exact_evm_permit2_payload_spender";
|
|
3974
|
+
readonly invalid_exact_evm_permit2_payload_recipient: "invalid_exact_evm_permit2_payload_recipient";
|
|
3975
|
+
readonly invalid_exact_evm_permit2_payload_amount: "invalid_exact_evm_permit2_payload_amount";
|
|
3608
3976
|
readonly invalid_exact_svm_payload_transaction: "invalid_exact_svm_payload_transaction";
|
|
3609
3977
|
readonly invalid_exact_svm_payload_transaction_amount_mismatch: "invalid_exact_svm_payload_transaction_amount_mismatch";
|
|
3610
3978
|
readonly invalid_exact_svm_payload_transaction_create_ata_instruction: "invalid_exact_svm_payload_transaction_create_ata_instruction";
|
|
@@ -3709,7 +4077,7 @@ export declare const X402V1PaymentPayloadNetwork: {
|
|
|
3709
4077
|
readonly solana: "solana";
|
|
3710
4078
|
};
|
|
3711
4079
|
|
|
3712
|
-
export declare type X402V1PaymentPayloadPayload = X402ExactEvmPayload | X402ExactSolanaPayload;
|
|
4080
|
+
export declare type X402V1PaymentPayloadPayload = X402ExactEvmPayload | X402ExactEvmPermit2Payload | X402ExactSolanaPayload;
|
|
3713
4081
|
|
|
3714
4082
|
export declare type X402V1PaymentPayloadScheme = (typeof X402V1PaymentPayloadScheme)[keyof typeof X402V1PaymentPayloadScheme];
|
|
3715
4083
|
|
|
@@ -3766,7 +4134,7 @@ export declare type X402V2PaymentPayloadExtensions = {
|
|
|
3766
4134
|
[key: string]: unknown;
|
|
3767
4135
|
};
|
|
3768
4136
|
|
|
3769
|
-
export declare type X402V2PaymentPayloadPayload = X402ExactEvmPayload | X402ExactSolanaPayload;
|
|
4137
|
+
export declare type X402V2PaymentPayloadPayload = X402ExactEvmPayload | X402ExactEvmPermit2Payload | X402ExactSolanaPayload;
|
|
3770
4138
|
|
|
3771
4139
|
export declare interface X402V2PaymentRequirements {
|
|
3772
4140
|
scheme: X402V2PaymentRequirementsScheme;
|
|
@@ -3808,6 +4176,13 @@ export declare const X402VerifyInvalidReason: {
|
|
|
3808
4176
|
readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
|
|
3809
4177
|
readonly invalid_exact_evm_payload_signature: "invalid_exact_evm_payload_signature";
|
|
3810
4178
|
readonly invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address";
|
|
4179
|
+
readonly invalid_exact_evm_permit2_payload_allowance_required: "invalid_exact_evm_permit2_payload_allowance_required";
|
|
4180
|
+
readonly invalid_exact_evm_permit2_payload_signature: "invalid_exact_evm_permit2_payload_signature";
|
|
4181
|
+
readonly invalid_exact_evm_permit2_payload_deadline: "invalid_exact_evm_permit2_payload_deadline";
|
|
4182
|
+
readonly invalid_exact_evm_permit2_payload_valid_after: "invalid_exact_evm_permit2_payload_valid_after";
|
|
4183
|
+
readonly invalid_exact_evm_permit2_payload_spender: "invalid_exact_evm_permit2_payload_spender";
|
|
4184
|
+
readonly invalid_exact_evm_permit2_payload_recipient: "invalid_exact_evm_permit2_payload_recipient";
|
|
4185
|
+
readonly invalid_exact_evm_permit2_payload_amount: "invalid_exact_evm_permit2_payload_amount";
|
|
3811
4186
|
readonly invalid_exact_svm_payload_transaction: "invalid_exact_svm_payload_transaction";
|
|
3812
4187
|
readonly invalid_exact_svm_payload_transaction_amount_mismatch: "invalid_exact_svm_payload_transaction_amount_mismatch";
|
|
3813
4188
|
readonly invalid_exact_svm_payload_transaction_create_ata_instruction: "invalid_exact_svm_payload_transaction_create_ata_instruction";
|