@coinbase/cdp-api-client 0.0.87 → 0.0.89
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 +212 -195
- package/dist/esm/index10.js +1 -1
- package/dist/esm/index12.js +7 -38
- package/dist/esm/index14.js +375 -67
- package/dist/esm/index15.js +835 -34
- package/dist/esm/index16.js +38 -20
- package/dist/esm/index17.js +2 -8
- package/dist/esm/index18.js +70 -2
- package/dist/esm/index19.js +30 -373
- package/dist/esm/index2.js +34 -29
- package/dist/esm/index20.js +20 -835
- package/dist/esm/index21.js +2 -2
- package/dist/esm/index22.js +2 -2
- package/dist/esm/index23.js +2 -2
- package/dist/esm/index3.js +1 -1
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index5.js +109 -78
- package/dist/esm/index6.js +387 -299
- package/dist/esm/index7.js +128 -112
- package/dist/types/index.d.ts +545 -193
- 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;
|
|
87
91
|
}
|
|
88
92
|
|
|
89
|
-
export declare type
|
|
93
|
+
export declare type AddMobileClientRequestPlatform = (typeof AddMobileClientRequestPlatform)[keyof typeof AddMobileClientRequestPlatform];
|
|
90
94
|
|
|
91
|
-
export declare const
|
|
92
|
-
readonly
|
|
93
|
-
readonly
|
|
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;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export declare type AddMobileClientResponsePlatform = (typeof AddMobileClientResponsePlatform)[keyof typeof AddMobileClientResponsePlatform];
|
|
108
|
+
|
|
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
|
|
402
|
-
|
|
403
|
-
export declare interface CreatePaymentMethodRequestAch {
|
|
404
|
-
type: CreatePaymentMethodRequestAchType;
|
|
405
|
-
asset: Asset;
|
|
406
|
-
ach: AchDetails;
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
export declare type CreatePaymentMethodRequestAchType = (typeof CreatePaymentMethodRequestAchType)[keyof typeof CreatePaymentMethodRequestAchType];
|
|
461
|
+
export declare const createEvmEip7702DelegationWithEndUserAccount: (projectId: string, userId: string, createEvmEip7702DelegationWithEndUserAccountBody: CreateEvmEip7702DelegationWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<CreateEvmEip7702DelegationWithEndUserAccount201>;
|
|
410
462
|
|
|
411
|
-
export declare
|
|
412
|
-
|
|
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 & {
|
|
590
|
+
export declare type CustomerBase = IndividualCustomer & {
|
|
550
591
|
projectIds?: ProjectId[];
|
|
551
|
-
|
|
552
|
-
|
|
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;
|
|
@@ -862,6 +907,9 @@ export declare const ErrorType: {
|
|
|
862
907
|
readonly mfa_flow_expired: "mfa_flow_expired";
|
|
863
908
|
readonly mfa_required: "mfa_required";
|
|
864
909
|
readonly mfa_not_enrolled: "mfa_not_enrolled";
|
|
910
|
+
readonly order_quote_expired: "order_quote_expired";
|
|
911
|
+
readonly order_already_filled: "order_already_filled";
|
|
912
|
+
readonly order_already_canceled: "order_already_canceled";
|
|
865
913
|
};
|
|
866
914
|
|
|
867
915
|
export declare interface EthValueCriterion {
|
|
@@ -970,6 +1018,18 @@ export declare const EvmDataParameterConditionOperator: {
|
|
|
970
1018
|
readonly "==": "==";
|
|
971
1019
|
};
|
|
972
1020
|
|
|
1021
|
+
export declare type EvmEip7702DelegationNetwork = (typeof EvmEip7702DelegationNetwork)[keyof typeof EvmEip7702DelegationNetwork];
|
|
1022
|
+
|
|
1023
|
+
export declare const EvmEip7702DelegationNetwork: {
|
|
1024
|
+
readonly "base-sepolia": "base-sepolia";
|
|
1025
|
+
readonly base: "base";
|
|
1026
|
+
readonly arbitrum: "arbitrum";
|
|
1027
|
+
readonly optimism: "optimism";
|
|
1028
|
+
readonly polygon: "polygon";
|
|
1029
|
+
readonly ethereum: "ethereum";
|
|
1030
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
1031
|
+
};
|
|
1032
|
+
|
|
973
1033
|
export declare interface EvmMessageCriterion {
|
|
974
1034
|
type: EvmMessageCriterionType;
|
|
975
1035
|
match: string;
|
|
@@ -1132,6 +1192,7 @@ export declare type ExportEndUserEvmAccountBody = {
|
|
|
1132
1192
|
exportEncryptionKey: string;
|
|
1133
1193
|
walletSecretId: string;
|
|
1134
1194
|
parentOrigin?: Url;
|
|
1195
|
+
eject?: boolean;
|
|
1135
1196
|
};
|
|
1136
1197
|
|
|
1137
1198
|
export declare type ExportEndUserEvmAccountResult = NonNullable<Awaited<ReturnType<typeof exportEndUserEvmAccount>>>;
|
|
@@ -1147,18 +1208,38 @@ export declare type ExportEndUserSolanaAccountBody = {
|
|
|
1147
1208
|
exportEncryptionKey: string;
|
|
1148
1209
|
walletSecretId: string;
|
|
1149
1210
|
parentOrigin?: Url;
|
|
1211
|
+
eject?: boolean;
|
|
1150
1212
|
};
|
|
1151
1213
|
|
|
1152
1214
|
export declare type ExportEndUserSolanaAccountResult = NonNullable<Awaited<ReturnType<typeof exportEndUserSolanaAccount>>>;
|
|
1153
1215
|
|
|
1154
1216
|
export declare interface FedwireDetails {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1217
|
+
asset: string;
|
|
1218
|
+
bankName: string;
|
|
1219
|
+
accountLast4: string;
|
|
1220
|
+
routingNumber: string;
|
|
1159
1221
|
}
|
|
1160
1222
|
|
|
1161
|
-
export declare type
|
|
1223
|
+
export declare type FedwirePaymentMethod = PaymentMethodBase & FedwirePaymentMethodAllOf & {
|
|
1224
|
+
paymentRail: FedwirePaymentMethodPaymentRail;
|
|
1225
|
+
};
|
|
1226
|
+
|
|
1227
|
+
export declare type FedwirePaymentMethodAllOf = {
|
|
1228
|
+
paymentRail: FedwirePaymentMethodAllOfPaymentRail;
|
|
1229
|
+
fedwire: FedwireDetails;
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
export declare type FedwirePaymentMethodAllOfPaymentRail = (typeof FedwirePaymentMethodAllOfPaymentRail)[keyof typeof FedwirePaymentMethodAllOfPaymentRail];
|
|
1233
|
+
|
|
1234
|
+
export declare const FedwirePaymentMethodAllOfPaymentRail: {
|
|
1235
|
+
readonly fedwire: "fedwire";
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
export declare type FedwirePaymentMethodPaymentRail = (typeof FedwirePaymentMethodPaymentRail)[keyof typeof FedwirePaymentMethodPaymentRail];
|
|
1239
|
+
|
|
1240
|
+
export declare const FedwirePaymentMethodPaymentRail: {
|
|
1241
|
+
readonly fedwire: "fedwire";
|
|
1242
|
+
};
|
|
1162
1243
|
|
|
1163
1244
|
export declare type FileType = (typeof FileType)[keyof typeof FileType];
|
|
1164
1245
|
|
|
@@ -1184,6 +1265,10 @@ export declare type FromToken = string;
|
|
|
1184
1265
|
|
|
1185
1266
|
export declare type GasPrice = string;
|
|
1186
1267
|
|
|
1268
|
+
export declare const generateAttestationChallenge: (projectId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<IosAttestationChallenge>;
|
|
1269
|
+
|
|
1270
|
+
export declare type GenerateAttestationChallengeResult = NonNullable<Awaited<ReturnType<typeof generateAttestationChallenge>>>;
|
|
1271
|
+
|
|
1187
1272
|
export declare const getAuthenticatedEndUser: (projectId: string, userId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
|
|
1188
1273
|
|
|
1189
1274
|
export declare type GetAuthenticatedEndUserResult = NonNullable<Awaited<ReturnType<typeof getAuthenticatedEndUser>>>;
|
|
@@ -1268,37 +1353,25 @@ export declare type IdlTypesItem = {
|
|
|
1268
1353
|
|
|
1269
1354
|
export declare interface Individual {
|
|
1270
1355
|
firstName?: string;
|
|
1271
|
-
|
|
1272
|
-
email?: string;
|
|
1273
|
-
phone?: string;
|
|
1356
|
+
lastName?: string;
|
|
1274
1357
|
address?: PhysicalAddress;
|
|
1358
|
+
ssnLast4?: string;
|
|
1275
1359
|
dateOfBirth?: DateOfBirth;
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1360
|
+
countryOfResidence?: string;
|
|
1361
|
+
fullSsn?: string;
|
|
1362
|
+
citizenship?: string[];
|
|
1363
|
+
purposeOfAccount?: string;
|
|
1364
|
+
sourceOfFunds?: string;
|
|
1365
|
+
intendedUse?: string;
|
|
1366
|
+
employmentStatus?: string;
|
|
1367
|
+
expectedTransferValue?: string;
|
|
1368
|
+
industry?: string;
|
|
1279
1369
|
}
|
|
1280
1370
|
|
|
1281
1371
|
export declare interface IndividualCustomer {
|
|
1282
1372
|
individual: Individual;
|
|
1283
1373
|
}
|
|
1284
1374
|
|
|
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
1375
|
export declare const initiateAuthentication: (projectId: string, initiateAuthenticationRequest: InitiateAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<InitiateAuthenticationResponseWrapper>;
|
|
1303
1376
|
|
|
1304
1377
|
export declare type InitiateAuthenticationRequest = InitiateEmailAuthenticationRequest | InitiateSmsAuthenticationRequest | InitiateOAuthAuthenticationRequest;
|
|
@@ -1448,6 +1521,35 @@ export declare const InvitationStatus: {
|
|
|
1448
1521
|
readonly expired: "expired";
|
|
1449
1522
|
};
|
|
1450
1523
|
|
|
1524
|
+
export declare interface IosAttestationChallenge {
|
|
1525
|
+
challenge: string;
|
|
1526
|
+
expiresAt: string;
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
export declare interface IosAttestationPayload {
|
|
1530
|
+
keyId: string;
|
|
1531
|
+
attestation: string;
|
|
1532
|
+
bundleId: string;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
export declare interface IosAttestationRegistrationRequest {
|
|
1536
|
+
challenge: string;
|
|
1537
|
+
ios: IosAttestationPayload;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
export declare interface IosAttestationRegistrationResponse {
|
|
1541
|
+
keyId: string;
|
|
1542
|
+
platform: IosAttestationRegistrationResponsePlatform;
|
|
1543
|
+
appId: string;
|
|
1544
|
+
attestedAt: string;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
export declare type IosAttestationRegistrationResponsePlatform = (typeof IosAttestationRegistrationResponsePlatform)[keyof typeof IosAttestationRegistrationResponsePlatform];
|
|
1548
|
+
|
|
1549
|
+
export declare const IosAttestationRegistrationResponsePlatform: {
|
|
1550
|
+
readonly ios: "ios";
|
|
1551
|
+
};
|
|
1552
|
+
|
|
1451
1553
|
export declare function isOpenAPIError(obj: unknown): obj is Error_2;
|
|
1452
1554
|
|
|
1453
1555
|
export declare type KnownAbiType = (typeof KnownAbiType)[keyof typeof KnownAbiType];
|
|
@@ -1466,39 +1568,6 @@ export declare const KnownIdlType: {
|
|
|
1466
1568
|
readonly AssociatedTokenProgram: "AssociatedTokenProgram";
|
|
1467
1569
|
};
|
|
1468
1570
|
|
|
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
1571
|
export declare interface LinkableAccount {
|
|
1503
1572
|
accountId: AccountId;
|
|
1504
1573
|
type: AccountType;
|
|
@@ -1641,6 +1710,12 @@ export declare const MintAddressCriterionType: {
|
|
|
1641
1710
|
readonly mintAddress: "mintAddress";
|
|
1642
1711
|
};
|
|
1643
1712
|
|
|
1713
|
+
export declare interface MobileClientItem {
|
|
1714
|
+
id: string;
|
|
1715
|
+
identifier: string;
|
|
1716
|
+
createdAt: string;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1644
1719
|
export declare interface NetUSDChangeCriterion {
|
|
1645
1720
|
type: NetUSDChangeCriterionType;
|
|
1646
1721
|
changeCents: number;
|
|
@@ -1690,6 +1765,7 @@ export declare const OAuth2ProviderType: {
|
|
|
1690
1765
|
readonly google: "google";
|
|
1691
1766
|
readonly apple: "apple";
|
|
1692
1767
|
readonly x: "x";
|
|
1768
|
+
readonly telegram: "telegram";
|
|
1693
1769
|
};
|
|
1694
1770
|
|
|
1695
1771
|
export declare interface OnchainAddress {
|
|
@@ -1785,6 +1861,50 @@ export declare const OnrampLimitType: {
|
|
|
1785
1861
|
readonly lifetime_transactions: "lifetime_transactions";
|
|
1786
1862
|
};
|
|
1787
1863
|
|
|
1864
|
+
export declare interface OnrampLimitUpgrade {
|
|
1865
|
+
limitType: OnrampLimitType;
|
|
1866
|
+
maxUpgrade: string;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
export declare type OnrampLimitUpgradeIdentityFieldKey = (typeof OnrampLimitUpgradeIdentityFieldKey)[keyof typeof OnrampLimitUpgradeIdentityFieldKey];
|
|
1870
|
+
|
|
1871
|
+
export declare const OnrampLimitUpgradeIdentityFieldKey: {
|
|
1872
|
+
readonly ssnLast4: "ssnLast4";
|
|
1873
|
+
};
|
|
1874
|
+
|
|
1875
|
+
export declare interface OnrampLimitUpgradeIdentityFields {
|
|
1876
|
+
ssnLast4?: string;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
export declare interface OnrampLimitUpgradeOption {
|
|
1880
|
+
status: OnrampLimitUpgradeStatus;
|
|
1881
|
+
fields: OnrampLimitUpgradeIdentityFieldKey[];
|
|
1882
|
+
limitUpgrades: OnrampLimitUpgrade[];
|
|
1883
|
+
lastErrorCode?: OnrampLimitUpgradeOptionLastErrorCode;
|
|
1884
|
+
}
|
|
1885
|
+
|
|
1886
|
+
export declare type OnrampLimitUpgradeOptionLastErrorCode = (typeof OnrampLimitUpgradeOptionLastErrorCode)[keyof typeof OnrampLimitUpgradeOptionLastErrorCode];
|
|
1887
|
+
|
|
1888
|
+
export declare const OnrampLimitUpgradeOptionLastErrorCode: {
|
|
1889
|
+
readonly INVALID_FORMAT: "INVALID_FORMAT";
|
|
1890
|
+
readonly VERIFICATION_FAILED: "VERIFICATION_FAILED";
|
|
1891
|
+
};
|
|
1892
|
+
|
|
1893
|
+
export declare interface OnrampLimitUpgradeRequest {
|
|
1894
|
+
userId: string;
|
|
1895
|
+
userIdType: OnrampUserIdType;
|
|
1896
|
+
fields: OnrampLimitUpgradeIdentityFields;
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
export declare type OnrampLimitUpgradeStatus = (typeof OnrampLimitUpgradeStatus)[keyof typeof OnrampLimitUpgradeStatus];
|
|
1900
|
+
|
|
1901
|
+
export declare const OnrampLimitUpgradeStatus: {
|
|
1902
|
+
readonly pending_submit: "pending_submit";
|
|
1903
|
+
readonly submitted: "submitted";
|
|
1904
|
+
readonly active: "active";
|
|
1905
|
+
readonly rejected: "rejected";
|
|
1906
|
+
};
|
|
1907
|
+
|
|
1788
1908
|
export declare interface OnrampOrder {
|
|
1789
1909
|
orderId: string;
|
|
1790
1910
|
paymentTotal: string;
|
|
@@ -1870,11 +1990,6 @@ export declare interface OnrampSession {
|
|
|
1870
1990
|
onrampUrl: Url;
|
|
1871
1991
|
}
|
|
1872
1992
|
|
|
1873
|
-
export declare interface OnrampUserId {
|
|
1874
|
-
type: OnrampUserIdType;
|
|
1875
|
-
value: string;
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
1993
|
export declare type OnrampUserIdType = (typeof OnrampUserIdType)[keyof typeof OnrampUserIdType];
|
|
1879
1994
|
|
|
1880
1995
|
export declare const OnrampUserIdType: {
|
|
@@ -1885,9 +2000,89 @@ export declare interface OnrampUserLimit {
|
|
|
1885
2000
|
limitType: OnrampLimitType;
|
|
1886
2001
|
currency?: string;
|
|
1887
2002
|
limit: string;
|
|
1888
|
-
|
|
2003
|
+
remaining: string;
|
|
1889
2004
|
}
|
|
1890
2005
|
|
|
2006
|
+
export declare interface Order {
|
|
2007
|
+
orderId: string;
|
|
2008
|
+
accountId: string;
|
|
2009
|
+
productId: string;
|
|
2010
|
+
side: OrderSide;
|
|
2011
|
+
type: OrderType;
|
|
2012
|
+
status: OrderStatus;
|
|
2013
|
+
baseQuantity?: string;
|
|
2014
|
+
quoteValue?: string;
|
|
2015
|
+
limitPrice?: string;
|
|
2016
|
+
timeInForce?: TimeInForce;
|
|
2017
|
+
expiryTime?: string;
|
|
2018
|
+
filledQuantity?: string;
|
|
2019
|
+
filledValue?: string;
|
|
2020
|
+
averageFilledPrice?: string;
|
|
2021
|
+
fees?: OrderFees;
|
|
2022
|
+
expiresAt?: string;
|
|
2023
|
+
executedAt?: string;
|
|
2024
|
+
completedAt?: string;
|
|
2025
|
+
canceledAt?: string;
|
|
2026
|
+
failureReason?: string;
|
|
2027
|
+
createdAt: string;
|
|
2028
|
+
updatedAt: string;
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
export declare interface OrderFee {
|
|
2032
|
+
type: OrderFeeType;
|
|
2033
|
+
amount: string;
|
|
2034
|
+
asset: string;
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
export declare type OrderFees = OrderFee[];
|
|
2038
|
+
|
|
2039
|
+
export declare type OrderFeeType = (typeof OrderFeeType)[keyof typeof OrderFeeType];
|
|
2040
|
+
|
|
2041
|
+
export declare const OrderFeeType: {
|
|
2042
|
+
readonly trading: "trading";
|
|
2043
|
+
readonly network: "network";
|
|
2044
|
+
readonly other: "other";
|
|
2045
|
+
};
|
|
2046
|
+
|
|
2047
|
+
export declare interface OrderRequest {
|
|
2048
|
+
accountId: string;
|
|
2049
|
+
productId: string;
|
|
2050
|
+
side: OrderSide;
|
|
2051
|
+
type: OrderType;
|
|
2052
|
+
baseQuantity?: string;
|
|
2053
|
+
quoteValue?: string;
|
|
2054
|
+
limitPrice?: string;
|
|
2055
|
+
timeInForce?: TimeInForce;
|
|
2056
|
+
expiryTime?: string;
|
|
2057
|
+
execute: boolean;
|
|
2058
|
+
}
|
|
2059
|
+
|
|
2060
|
+
export declare type OrderSide = (typeof OrderSide)[keyof typeof OrderSide];
|
|
2061
|
+
|
|
2062
|
+
export declare const OrderSide: {
|
|
2063
|
+
readonly buy: "buy";
|
|
2064
|
+
readonly sell: "sell";
|
|
2065
|
+
};
|
|
2066
|
+
|
|
2067
|
+
export declare type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus];
|
|
2068
|
+
|
|
2069
|
+
export declare const OrderStatus: {
|
|
2070
|
+
readonly quoted: "quoted";
|
|
2071
|
+
readonly pending: "pending";
|
|
2072
|
+
readonly open: "open";
|
|
2073
|
+
readonly filled: "filled";
|
|
2074
|
+
readonly canceled: "canceled";
|
|
2075
|
+
readonly expired: "expired";
|
|
2076
|
+
readonly failed: "failed";
|
|
2077
|
+
};
|
|
2078
|
+
|
|
2079
|
+
export declare type OrderType = (typeof OrderType)[keyof typeof OrderType];
|
|
2080
|
+
|
|
2081
|
+
export declare const OrderType: {
|
|
2082
|
+
readonly market: "market";
|
|
2083
|
+
readonly limit: "limit";
|
|
2084
|
+
};
|
|
2085
|
+
|
|
1891
2086
|
export declare type Owner = string;
|
|
1892
2087
|
|
|
1893
2088
|
export declare type PageSizeParameter = number;
|
|
@@ -1899,8 +2094,19 @@ export declare interface PaymentMethod {
|
|
|
1899
2094
|
asset: Asset;
|
|
1900
2095
|
}
|
|
1901
2096
|
|
|
2097
|
+
export declare interface PaymentMethodBase {
|
|
2098
|
+
paymentMethodId: PaymentMethodId;
|
|
2099
|
+
active: boolean;
|
|
2100
|
+
createdAt: string;
|
|
2101
|
+
updatedAt: string;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
2104
|
+
export declare type PaymentMethodId = string;
|
|
2105
|
+
|
|
1902
2106
|
export declare type PaymentMethodRequiredErrorResponse = Error_2;
|
|
1903
2107
|
|
|
2108
|
+
export declare type PaymentMethodsPaymentMethod = FedwirePaymentMethod | SwiftPaymentMethod;
|
|
2109
|
+
|
|
1904
2110
|
export declare interface Permission {
|
|
1905
2111
|
permissionId: PermissionId;
|
|
1906
2112
|
name: string;
|
|
@@ -2100,6 +2306,10 @@ export declare interface RefreshTokenStorage {
|
|
|
2100
2306
|
removeRefreshToken(): Promise<void>;
|
|
2101
2307
|
}
|
|
2102
2308
|
|
|
2309
|
+
export declare const registerAttestation: (projectId: string, iosAttestationRegistrationRequest: IosAttestationRegistrationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<IosAttestationRegistrationResponse>;
|
|
2310
|
+
|
|
2311
|
+
export declare type RegisterAttestationResult = NonNullable<Awaited<ReturnType<typeof registerAttestation>>>;
|
|
2312
|
+
|
|
2103
2313
|
export declare const registerTemporaryWalletSecret: (projectId: string, userId: string, registerTemporaryWalletSecretBody: RegisterTemporaryWalletSecretBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RegisterTemporaryWalletSecret200>;
|
|
2104
2314
|
|
|
2105
2315
|
export declare type RegisterTemporaryWalletSecret200 = {
|
|
@@ -2179,41 +2389,23 @@ export declare const ReportStatus: {
|
|
|
2179
2389
|
};
|
|
2180
2390
|
|
|
2181
2391
|
export declare interface Requirement {
|
|
2182
|
-
|
|
2183
|
-
pending?: RequirementDue[];
|
|
2184
|
-
errors?: RequirementError[];
|
|
2185
|
-
}
|
|
2186
|
-
|
|
2187
|
-
export declare interface RequirementDue {
|
|
2188
|
-
field: RequirementField;
|
|
2392
|
+
status: RequirementStatus;
|
|
2189
2393
|
deadline?: string;
|
|
2394
|
+
impact?: CapabilityName[];
|
|
2190
2395
|
}
|
|
2191
2396
|
|
|
2192
|
-
export declare interface
|
|
2193
|
-
|
|
2194
|
-
reason: string;
|
|
2195
|
-
requirement: RequirementField;
|
|
2397
|
+
export declare interface RequirementsMap {
|
|
2398
|
+
[key: string]: Requirement;
|
|
2196
2399
|
}
|
|
2197
2400
|
|
|
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
|
-
};
|
|
2401
|
+
export declare type RequirementStatus = (typeof RequirementStatus)[keyof typeof RequirementStatus];
|
|
2206
2402
|
|
|
2207
|
-
export declare
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
readonly
|
|
2211
|
-
readonly
|
|
2212
|
-
readonly
|
|
2213
|
-
readonly individualaddress: "individual.address";
|
|
2214
|
-
readonly individualnationalityCode: "individual.nationalityCode";
|
|
2215
|
-
readonly individualtaxNumber: "individual.taxNumber";
|
|
2216
|
-
readonly individualverificationdocument: "individual.verification.document";
|
|
2403
|
+
export declare const RequirementStatus: {
|
|
2404
|
+
readonly eventually_due: "eventually_due";
|
|
2405
|
+
readonly due: "due";
|
|
2406
|
+
readonly pending: "pending";
|
|
2407
|
+
readonly rejected: "rejected";
|
|
2408
|
+
readonly overdue: "overdue";
|
|
2217
2409
|
};
|
|
2218
2410
|
|
|
2219
2411
|
export declare type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
@@ -3043,6 +3235,34 @@ export declare interface SwapUnavailableResponse {
|
|
|
3043
3235
|
liquidityAvailable: boolean;
|
|
3044
3236
|
}
|
|
3045
3237
|
|
|
3238
|
+
export declare interface SwiftDetails {
|
|
3239
|
+
asset: string;
|
|
3240
|
+
bankName: string;
|
|
3241
|
+
ibanLast4: string;
|
|
3242
|
+
bic: string;
|
|
3243
|
+
}
|
|
3244
|
+
|
|
3245
|
+
export declare type SwiftPaymentMethod = PaymentMethodBase & SwiftPaymentMethodAllOf & {
|
|
3246
|
+
paymentRail: SwiftPaymentMethodPaymentRail;
|
|
3247
|
+
};
|
|
3248
|
+
|
|
3249
|
+
export declare type SwiftPaymentMethodAllOf = {
|
|
3250
|
+
paymentRail: SwiftPaymentMethodAllOfPaymentRail;
|
|
3251
|
+
swift: SwiftDetails;
|
|
3252
|
+
};
|
|
3253
|
+
|
|
3254
|
+
export declare type SwiftPaymentMethodAllOfPaymentRail = (typeof SwiftPaymentMethodAllOfPaymentRail)[keyof typeof SwiftPaymentMethodAllOfPaymentRail];
|
|
3255
|
+
|
|
3256
|
+
export declare const SwiftPaymentMethodAllOfPaymentRail: {
|
|
3257
|
+
readonly swift: "swift";
|
|
3258
|
+
};
|
|
3259
|
+
|
|
3260
|
+
export declare type SwiftPaymentMethodPaymentRail = (typeof SwiftPaymentMethodPaymentRail)[keyof typeof SwiftPaymentMethodPaymentRail];
|
|
3261
|
+
|
|
3262
|
+
export declare const SwiftPaymentMethodPaymentRail: {
|
|
3263
|
+
readonly swift: "swift";
|
|
3264
|
+
};
|
|
3265
|
+
|
|
3046
3266
|
export declare type Taker = string;
|
|
3047
3267
|
|
|
3048
3268
|
export declare interface TeamMember {
|
|
@@ -3057,6 +3277,16 @@ export declare interface TeamMember {
|
|
|
3057
3277
|
|
|
3058
3278
|
export declare type TeamMemberId = string;
|
|
3059
3279
|
|
|
3280
|
+
export declare interface TelegramAuthentication {
|
|
3281
|
+
type: OAuth2ProviderType;
|
|
3282
|
+
id: number;
|
|
3283
|
+
firstName?: string;
|
|
3284
|
+
lastName?: string;
|
|
3285
|
+
photoUrl?: string;
|
|
3286
|
+
authDate: number;
|
|
3287
|
+
username?: string;
|
|
3288
|
+
}
|
|
3289
|
+
|
|
3060
3290
|
export declare interface TelegramConfig {
|
|
3061
3291
|
enabled?: boolean;
|
|
3062
3292
|
botName?: string;
|
|
@@ -3066,6 +3296,15 @@ export declare interface TelegramConfig {
|
|
|
3066
3296
|
|
|
3067
3297
|
export declare type TimedOutErrorResponse = Error_2;
|
|
3068
3298
|
|
|
3299
|
+
export declare type TimeInForce = (typeof TimeInForce)[keyof typeof TimeInForce];
|
|
3300
|
+
|
|
3301
|
+
export declare const TimeInForce: {
|
|
3302
|
+
readonly goodUntilCanceled: "goodUntilCanceled";
|
|
3303
|
+
readonly goodUntilDateTime: "goodUntilDateTime";
|
|
3304
|
+
readonly immediateOrCancel: "immediateOrCancel";
|
|
3305
|
+
readonly fillOrKill: "fillOrKill";
|
|
3306
|
+
};
|
|
3307
|
+
|
|
3069
3308
|
export declare interface Token {
|
|
3070
3309
|
network: ListEvmTokenBalancesNetwork;
|
|
3071
3310
|
symbol?: string;
|
|
@@ -3255,7 +3494,7 @@ export declare const TransferStatus: {
|
|
|
3255
3494
|
readonly failed: "failed";
|
|
3256
3495
|
};
|
|
3257
3496
|
|
|
3258
|
-
export declare type TransferTarget = TransfersAccount | PaymentMethod | OnchainAddress |
|
|
3497
|
+
export declare type TransferTarget = TransfersAccount | PaymentMethod | OnchainAddress | EmailInstrument;
|
|
3259
3498
|
|
|
3260
3499
|
export declare interface TravelRule {
|
|
3261
3500
|
isSelf?: boolean;
|
|
@@ -3443,6 +3682,32 @@ export declare interface VerifyOAuthCodeRequest {
|
|
|
3443
3682
|
|
|
3444
3683
|
export declare type VerifyOAuthCodeResult = NonNullable<Awaited<ReturnType<typeof verifyOAuthCode>>>;
|
|
3445
3684
|
|
|
3685
|
+
export declare type VerifyOAuthEndUserIdentity = VerifyOAuthTelegramRequest;
|
|
3686
|
+
|
|
3687
|
+
export declare const verifyOAuthEndUserIdentity: (projectId: string, providerType: OAuth2ProviderType, verifyOAuthEndUserIdentity: VerifyOAuthEndUserIdentity, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifyOAuthEndUserIdentity200>;
|
|
3688
|
+
|
|
3689
|
+
export declare type VerifyOAuthEndUserIdentity200 = {
|
|
3690
|
+
endUser: EndUser;
|
|
3691
|
+
isNewEndUser: boolean;
|
|
3692
|
+
message: string;
|
|
3693
|
+
accessToken: string;
|
|
3694
|
+
validUntil: string;
|
|
3695
|
+
refreshToken?: string;
|
|
3696
|
+
};
|
|
3697
|
+
|
|
3698
|
+
export declare type VerifyOAuthEndUserIdentityResult = NonNullable<Awaited<ReturnType<typeof verifyOAuthEndUserIdentity>>>;
|
|
3699
|
+
|
|
3700
|
+
export declare interface VerifyOAuthTelegramRequest {
|
|
3701
|
+
flowId: string;
|
|
3702
|
+
id: number;
|
|
3703
|
+
firstName?: string;
|
|
3704
|
+
lastName?: string;
|
|
3705
|
+
photoUrl?: string;
|
|
3706
|
+
authDate: number;
|
|
3707
|
+
username?: string;
|
|
3708
|
+
hash: string;
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3446
3711
|
export declare const verifySmsAuthentication: (projectId: string, verifySmsAuthenticationRequest: VerifySmsAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifySmsAuthentication200>;
|
|
3447
3712
|
|
|
3448
3713
|
export declare type VerifySmsAuthentication200 = {
|
|
@@ -3573,10 +3838,83 @@ export declare type X402ExactEvmPayloadAuthorization = {
|
|
|
3573
3838
|
nonce: string;
|
|
3574
3839
|
};
|
|
3575
3840
|
|
|
3841
|
+
export declare interface X402ExactEvmPermit2Payload {
|
|
3842
|
+
signature: string;
|
|
3843
|
+
permit2Authorization: X402ExactEvmPermit2PayloadPermit2Authorization;
|
|
3844
|
+
}
|
|
3845
|
+
|
|
3846
|
+
export declare type X402ExactEvmPermit2PayloadPermit2Authorization = {
|
|
3847
|
+
from: string;
|
|
3848
|
+
permitted: X402ExactEvmPermit2PayloadPermit2AuthorizationPermitted;
|
|
3849
|
+
spender: string;
|
|
3850
|
+
nonce: string;
|
|
3851
|
+
deadline: string;
|
|
3852
|
+
witness: X402ExactEvmPermit2PayloadPermit2AuthorizationWitness;
|
|
3853
|
+
};
|
|
3854
|
+
|
|
3855
|
+
export declare type X402ExactEvmPermit2PayloadPermit2AuthorizationPermitted = {
|
|
3856
|
+
token: string;
|
|
3857
|
+
amount: string;
|
|
3858
|
+
};
|
|
3859
|
+
|
|
3860
|
+
export declare type X402ExactEvmPermit2PayloadPermit2AuthorizationWitness = {
|
|
3861
|
+
to: string;
|
|
3862
|
+
validAfter: string;
|
|
3863
|
+
extra?: string;
|
|
3864
|
+
};
|
|
3865
|
+
|
|
3576
3866
|
export declare interface X402ExactSolanaPayload {
|
|
3577
3867
|
transaction: string;
|
|
3578
3868
|
}
|
|
3579
3869
|
|
|
3870
|
+
export declare interface X402McpError {
|
|
3871
|
+
code: number;
|
|
3872
|
+
message: string;
|
|
3873
|
+
data?: X402McpErrorData;
|
|
3874
|
+
}
|
|
3875
|
+
|
|
3876
|
+
export declare type X402McpErrorData = {
|
|
3877
|
+
[key: string]: unknown;
|
|
3878
|
+
};
|
|
3879
|
+
|
|
3880
|
+
export declare interface X402McpRequest {
|
|
3881
|
+
jsonrpc: X402McpRequestJsonrpc;
|
|
3882
|
+
id?: X402McpRequestId;
|
|
3883
|
+
method: string;
|
|
3884
|
+
params?: X402McpRequestParams;
|
|
3885
|
+
}
|
|
3886
|
+
|
|
3887
|
+
export declare type X402McpRequestId = string | number;
|
|
3888
|
+
|
|
3889
|
+
export declare type X402McpRequestJsonrpc = (typeof X402McpRequestJsonrpc)[keyof typeof X402McpRequestJsonrpc];
|
|
3890
|
+
|
|
3891
|
+
export declare const X402McpRequestJsonrpc: {
|
|
3892
|
+
readonly "20": "2.0";
|
|
3893
|
+
};
|
|
3894
|
+
|
|
3895
|
+
export declare type X402McpRequestParams = {
|
|
3896
|
+
[key: string]: unknown;
|
|
3897
|
+
};
|
|
3898
|
+
|
|
3899
|
+
export declare interface X402McpResponse {
|
|
3900
|
+
jsonrpc: X402McpResponseJsonrpc;
|
|
3901
|
+
id?: X402McpResponseId;
|
|
3902
|
+
result?: X402McpResponseResult;
|
|
3903
|
+
error?: X402McpError;
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
export declare type X402McpResponseId = string | number | null;
|
|
3907
|
+
|
|
3908
|
+
export declare type X402McpResponseJsonrpc = (typeof X402McpResponseJsonrpc)[keyof typeof X402McpResponseJsonrpc];
|
|
3909
|
+
|
|
3910
|
+
export declare const X402McpResponseJsonrpc: {
|
|
3911
|
+
readonly "20": "2.0";
|
|
3912
|
+
};
|
|
3913
|
+
|
|
3914
|
+
export declare type X402McpResponseResult = {
|
|
3915
|
+
[key: string]: unknown;
|
|
3916
|
+
};
|
|
3917
|
+
|
|
3580
3918
|
export declare type X402PaymentPayload = X402V1PaymentPayload | X402V2PaymentPayload;
|
|
3581
3919
|
|
|
3582
3920
|
export declare type X402PaymentRequirements = X402V1PaymentRequirements | X402V2PaymentRequirements;
|
|
@@ -3605,6 +3943,13 @@ export declare const X402SettleErrorReason: {
|
|
|
3605
3943
|
readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
|
|
3606
3944
|
readonly invalid_exact_evm_payload_signature: "invalid_exact_evm_payload_signature";
|
|
3607
3945
|
readonly invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address";
|
|
3946
|
+
readonly invalid_exact_evm_permit2_payload_allowance_required: "invalid_exact_evm_permit2_payload_allowance_required";
|
|
3947
|
+
readonly invalid_exact_evm_permit2_payload_signature: "invalid_exact_evm_permit2_payload_signature";
|
|
3948
|
+
readonly invalid_exact_evm_permit2_payload_deadline: "invalid_exact_evm_permit2_payload_deadline";
|
|
3949
|
+
readonly invalid_exact_evm_permit2_payload_valid_after: "invalid_exact_evm_permit2_payload_valid_after";
|
|
3950
|
+
readonly invalid_exact_evm_permit2_payload_spender: "invalid_exact_evm_permit2_payload_spender";
|
|
3951
|
+
readonly invalid_exact_evm_permit2_payload_recipient: "invalid_exact_evm_permit2_payload_recipient";
|
|
3952
|
+
readonly invalid_exact_evm_permit2_payload_amount: "invalid_exact_evm_permit2_payload_amount";
|
|
3608
3953
|
readonly invalid_exact_svm_payload_transaction: "invalid_exact_svm_payload_transaction";
|
|
3609
3954
|
readonly invalid_exact_svm_payload_transaction_amount_mismatch: "invalid_exact_svm_payload_transaction_amount_mismatch";
|
|
3610
3955
|
readonly invalid_exact_svm_payload_transaction_create_ata_instruction: "invalid_exact_svm_payload_transaction_create_ata_instruction";
|
|
@@ -3709,7 +4054,7 @@ export declare const X402V1PaymentPayloadNetwork: {
|
|
|
3709
4054
|
readonly solana: "solana";
|
|
3710
4055
|
};
|
|
3711
4056
|
|
|
3712
|
-
export declare type X402V1PaymentPayloadPayload = X402ExactEvmPayload | X402ExactSolanaPayload;
|
|
4057
|
+
export declare type X402V1PaymentPayloadPayload = X402ExactEvmPayload | X402ExactEvmPermit2Payload | X402ExactSolanaPayload;
|
|
3713
4058
|
|
|
3714
4059
|
export declare type X402V1PaymentPayloadScheme = (typeof X402V1PaymentPayloadScheme)[keyof typeof X402V1PaymentPayloadScheme];
|
|
3715
4060
|
|
|
@@ -3766,7 +4111,7 @@ export declare type X402V2PaymentPayloadExtensions = {
|
|
|
3766
4111
|
[key: string]: unknown;
|
|
3767
4112
|
};
|
|
3768
4113
|
|
|
3769
|
-
export declare type X402V2PaymentPayloadPayload = X402ExactEvmPayload | X402ExactSolanaPayload;
|
|
4114
|
+
export declare type X402V2PaymentPayloadPayload = X402ExactEvmPayload | X402ExactEvmPermit2Payload | X402ExactSolanaPayload;
|
|
3770
4115
|
|
|
3771
4116
|
export declare interface X402V2PaymentRequirements {
|
|
3772
4117
|
scheme: X402V2PaymentRequirementsScheme;
|
|
@@ -3808,6 +4153,13 @@ export declare const X402VerifyInvalidReason: {
|
|
|
3808
4153
|
readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
|
|
3809
4154
|
readonly invalid_exact_evm_payload_signature: "invalid_exact_evm_payload_signature";
|
|
3810
4155
|
readonly invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address";
|
|
4156
|
+
readonly invalid_exact_evm_permit2_payload_allowance_required: "invalid_exact_evm_permit2_payload_allowance_required";
|
|
4157
|
+
readonly invalid_exact_evm_permit2_payload_signature: "invalid_exact_evm_permit2_payload_signature";
|
|
4158
|
+
readonly invalid_exact_evm_permit2_payload_deadline: "invalid_exact_evm_permit2_payload_deadline";
|
|
4159
|
+
readonly invalid_exact_evm_permit2_payload_valid_after: "invalid_exact_evm_permit2_payload_valid_after";
|
|
4160
|
+
readonly invalid_exact_evm_permit2_payload_spender: "invalid_exact_evm_permit2_payload_spender";
|
|
4161
|
+
readonly invalid_exact_evm_permit2_payload_recipient: "invalid_exact_evm_permit2_payload_recipient";
|
|
4162
|
+
readonly invalid_exact_evm_permit2_payload_amount: "invalid_exact_evm_permit2_payload_amount";
|
|
3811
4163
|
readonly invalid_exact_svm_payload_transaction: "invalid_exact_svm_payload_transaction";
|
|
3812
4164
|
readonly invalid_exact_svm_payload_transaction_amount_mismatch: "invalid_exact_svm_payload_transaction_amount_mismatch";
|
|
3813
4165
|
readonly invalid_exact_svm_payload_transaction_create_ata_instruction: "invalid_exact_svm_payload_transaction_create_ata_instruction";
|