@coinbase/cdp-api-client 0.0.74 → 0.0.76
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 +182 -164
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index5.js +95 -68
- package/dist/esm/index6.js +354 -245
- package/dist/types/index.d.ts +722 -179
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -138,14 +138,16 @@ export declare class APIError extends Error {
|
|
|
138
138
|
|
|
139
139
|
export declare type APIErrorType = ErrorType | HttpErrorType;
|
|
140
140
|
|
|
141
|
-
export declare interface
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
141
|
+
export declare interface AppleConfig {
|
|
142
|
+
enabled?: boolean;
|
|
143
|
+
clientId?: string;
|
|
144
|
+
teamId?: string;
|
|
145
|
+
keyId?: string;
|
|
146
|
+
createdAt?: string;
|
|
147
|
+
updatedAt?: string;
|
|
146
148
|
}
|
|
147
149
|
|
|
148
|
-
export declare type
|
|
150
|
+
export declare type Asset = string;
|
|
149
151
|
|
|
150
152
|
export declare type AssetType = (typeof AssetType)[keyof typeof AssetType];
|
|
151
153
|
|
|
@@ -182,7 +184,7 @@ export declare interface AuthManager {
|
|
|
182
184
|
export declare type BadGatewayErrorResponse = Error_2;
|
|
183
185
|
|
|
184
186
|
export declare interface Balance {
|
|
185
|
-
asset:
|
|
187
|
+
asset: BalancesAsset;
|
|
186
188
|
amount: BalanceAmount;
|
|
187
189
|
}
|
|
188
190
|
|
|
@@ -194,6 +196,15 @@ export declare interface Balances {
|
|
|
194
196
|
balances: Balance[];
|
|
195
197
|
}
|
|
196
198
|
|
|
199
|
+
export declare interface BalancesAsset {
|
|
200
|
+
symbol: Asset;
|
|
201
|
+
type: AssetType;
|
|
202
|
+
name: string;
|
|
203
|
+
decimals: number;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export declare type BlockchainAddress = string;
|
|
207
|
+
|
|
197
208
|
export declare interface Business {
|
|
198
209
|
selfOwned?: boolean;
|
|
199
210
|
businessLegalName?: string;
|
|
@@ -275,7 +286,7 @@ export declare const configureCdpApiClient: (options: CdpOptions) => void;
|
|
|
275
286
|
export declare interface CoolPaymentMethod {
|
|
276
287
|
id: string;
|
|
277
288
|
type: CoolPaymentMethodType;
|
|
278
|
-
asset:
|
|
289
|
+
asset: Asset;
|
|
279
290
|
name?: string;
|
|
280
291
|
verified?: boolean;
|
|
281
292
|
allowDeposit?: boolean;
|
|
@@ -301,19 +312,49 @@ export declare interface CreateCustomAuthConfigRequest {
|
|
|
301
312
|
jwksUrl: Url;
|
|
302
313
|
issuer: Url;
|
|
303
314
|
audience?: string;
|
|
315
|
+
userIdentifierClaim?: string;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
export declare interface CreateCustomOAuthAppleConfig {
|
|
319
|
+
enabled: boolean;
|
|
320
|
+
clientId: string;
|
|
321
|
+
teamId: string;
|
|
322
|
+
keyId: string;
|
|
323
|
+
signingKey: string;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
export declare interface CreateCustomOAuthConfigRequest {
|
|
327
|
+
telegramConfig?: CreateCustomOAuthTelegramConfig;
|
|
328
|
+
googleConfig?: CreateCustomOAuthGoogleConfig;
|
|
329
|
+
appleConfig?: CreateCustomOAuthAppleConfig;
|
|
330
|
+
xConfig?: CreateCustomOAuthXConfig;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
export declare interface CreateCustomOAuthGoogleConfig {
|
|
334
|
+
enabled: boolean;
|
|
335
|
+
clientId: string;
|
|
336
|
+
clientSecret: string;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export declare interface CreateCustomOAuthTelegramConfig {
|
|
340
|
+
enabled: boolean;
|
|
341
|
+
botToken: string;
|
|
342
|
+
botName: string;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
export declare interface CreateCustomOAuthXConfig {
|
|
346
|
+
enabled: boolean;
|
|
347
|
+
clientId: string;
|
|
348
|
+
clientSecret: string;
|
|
304
349
|
}
|
|
305
350
|
|
|
306
351
|
export declare interface CreateDepositDestinationRequest {
|
|
307
352
|
accountId: AccountId;
|
|
308
353
|
type: CreateDepositDestinationRequestType;
|
|
309
354
|
network: Network;
|
|
310
|
-
metadata?:
|
|
355
|
+
metadata?: Metadata;
|
|
311
356
|
}
|
|
312
357
|
|
|
313
|
-
export declare type CreateDepositDestinationRequestMetadata = {
|
|
314
|
-
[key: string]: string;
|
|
315
|
-
};
|
|
316
|
-
|
|
317
358
|
export declare type CreateDepositDestinationRequestType = (typeof CreateDepositDestinationRequestType)[keyof typeof CreateDepositDestinationRequestType];
|
|
318
359
|
|
|
319
360
|
export declare const CreateDepositDestinationRequestType: {
|
|
@@ -349,7 +390,7 @@ export declare type CreatePaymentMethodRequest = CreatePaymentMethodRequestAch |
|
|
|
349
390
|
|
|
350
391
|
export declare interface CreatePaymentMethodRequestAch {
|
|
351
392
|
type: CreatePaymentMethodRequestAchType;
|
|
352
|
-
asset:
|
|
393
|
+
asset: Asset;
|
|
353
394
|
ach: AchDetails;
|
|
354
395
|
}
|
|
355
396
|
|
|
@@ -361,7 +402,7 @@ export declare const CreatePaymentMethodRequestAchType: {
|
|
|
361
402
|
|
|
362
403
|
export declare interface CreatePaymentMethodRequestFedwire {
|
|
363
404
|
type: CreatePaymentMethodRequestFedwireType;
|
|
364
|
-
asset:
|
|
405
|
+
asset: Asset;
|
|
365
406
|
fedwire: FedwireDetails;
|
|
366
407
|
}
|
|
367
408
|
|
|
@@ -371,6 +412,36 @@ export declare const CreatePaymentMethodRequestFedwireType: {
|
|
|
371
412
|
readonly fedwire: "fedwire";
|
|
372
413
|
};
|
|
373
414
|
|
|
415
|
+
export declare type CreateReportDestinationRequest = CreateReportDestinationRequestAllOf & CreateReportDestinationRequestAllOfThreeOneOf;
|
|
416
|
+
|
|
417
|
+
export declare type CreateReportDestinationRequestAllOf = {
|
|
418
|
+
name?: string;
|
|
419
|
+
type: CreateReportDestinationRequestAllOfType;
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
export declare type CreateReportDestinationRequestAllOfThreeOneOf = {
|
|
423
|
+
sftpConfig: SFTPConfig;
|
|
424
|
+
};
|
|
425
|
+
|
|
426
|
+
export declare type CreateReportDestinationRequestAllOfType = (typeof CreateReportDestinationRequestAllOfType)[keyof typeof CreateReportDestinationRequestAllOfType];
|
|
427
|
+
|
|
428
|
+
export declare const CreateReportDestinationRequestAllOfType: {
|
|
429
|
+
readonly sftp: "sftp";
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
export declare interface CreateReportScheduleRequest {
|
|
433
|
+
name: string;
|
|
434
|
+
frequency: Frequency;
|
|
435
|
+
timeOfDay?: string;
|
|
436
|
+
scheduleStartDate: string;
|
|
437
|
+
scheduleEndDate?: string;
|
|
438
|
+
resourceType: ResourceType;
|
|
439
|
+
fileType: FileType;
|
|
440
|
+
filters?: TransferFilters;
|
|
441
|
+
destinationIds?: string[];
|
|
442
|
+
outputColumns?: TransferColumn[];
|
|
443
|
+
}
|
|
444
|
+
|
|
374
445
|
export declare interface CreateSpendPermissionRequest {
|
|
375
446
|
walletSecretId: string;
|
|
376
447
|
network: SpendPermissionNetwork;
|
|
@@ -418,17 +489,13 @@ export declare interface CryptoDepositDestination {
|
|
|
418
489
|
depositDestinationId: DepositDestinationId;
|
|
419
490
|
accountId: AccountId;
|
|
420
491
|
type: CryptoDepositDestinationType;
|
|
421
|
-
address:
|
|
492
|
+
address: BlockchainAddress;
|
|
422
493
|
network: Network;
|
|
423
|
-
metadata?:
|
|
494
|
+
metadata?: Metadata;
|
|
424
495
|
createdAt: string;
|
|
425
496
|
updatedAt: string;
|
|
426
497
|
}
|
|
427
498
|
|
|
428
|
-
export declare type CryptoDepositDestinationMetadata = {
|
|
429
|
-
[key: string]: string;
|
|
430
|
-
};
|
|
431
|
-
|
|
432
499
|
export declare type CryptoDepositDestinationType = (typeof CryptoDepositDestinationType)[keyof typeof CryptoDepositDestinationType];
|
|
433
500
|
|
|
434
501
|
export declare const CryptoDepositDestinationType: {
|
|
@@ -440,6 +507,7 @@ export declare interface CustomAuthConfig {
|
|
|
440
507
|
jwksUrl: string;
|
|
441
508
|
issuer: Url;
|
|
442
509
|
audience?: string;
|
|
510
|
+
userIdentifierClaim?: string;
|
|
443
511
|
createdAt?: string;
|
|
444
512
|
updatedAt?: string;
|
|
445
513
|
}
|
|
@@ -491,22 +559,51 @@ export declare type CustomerUpdateRequestAllOf = {
|
|
|
491
559
|
capabilities?: CapabilitiesMapRequest;
|
|
492
560
|
};
|
|
493
561
|
|
|
562
|
+
export declare interface CustomOAuthConfig {
|
|
563
|
+
projectId: string;
|
|
564
|
+
telegramConfig?: TelegramConfig;
|
|
565
|
+
googleConfig?: GoogleConfig;
|
|
566
|
+
appleConfig?: AppleConfig;
|
|
567
|
+
xConfig?: XConfig;
|
|
568
|
+
createdAt: string;
|
|
569
|
+
updatedAt: string;
|
|
570
|
+
}
|
|
571
|
+
|
|
494
572
|
export declare interface DateOfBirth {
|
|
495
573
|
day?: string;
|
|
496
574
|
month?: string;
|
|
497
575
|
year?: string;
|
|
498
576
|
}
|
|
499
577
|
|
|
578
|
+
export declare type DeliveryStatus = (typeof DeliveryStatus)[keyof typeof DeliveryStatus];
|
|
579
|
+
|
|
580
|
+
export declare const DeliveryStatus: {
|
|
581
|
+
readonly completed: "completed";
|
|
582
|
+
readonly failed: "failed";
|
|
583
|
+
};
|
|
584
|
+
|
|
500
585
|
export declare type DepositDestination = CryptoDepositDestination;
|
|
501
586
|
|
|
502
587
|
export declare type DepositDestinationId = string;
|
|
503
588
|
|
|
589
|
+
export declare interface DepositDestinationReference {
|
|
590
|
+
id: DepositDestinationId;
|
|
591
|
+
}
|
|
592
|
+
|
|
504
593
|
export declare type DepositDestinationType = (typeof DepositDestinationType)[keyof typeof DepositDestinationType];
|
|
505
594
|
|
|
506
595
|
export declare const DepositDestinationType: {
|
|
507
596
|
readonly crypto: "crypto";
|
|
508
597
|
};
|
|
509
598
|
|
|
599
|
+
export declare type Description = string;
|
|
600
|
+
|
|
601
|
+
export declare type DestinationType = (typeof DestinationType)[keyof typeof DestinationType];
|
|
602
|
+
|
|
603
|
+
export declare const DestinationType: {
|
|
604
|
+
readonly sftp: "sftp";
|
|
605
|
+
};
|
|
606
|
+
|
|
510
607
|
export declare interface DeveloperJWTAuthentication {
|
|
511
608
|
type: DeveloperJWTAuthenticationType;
|
|
512
609
|
kid: string;
|
|
@@ -550,7 +647,7 @@ export declare interface EIP712Types {
|
|
|
550
647
|
|
|
551
648
|
export declare interface EmailAddress {
|
|
552
649
|
email: string;
|
|
553
|
-
asset:
|
|
650
|
+
asset: Asset;
|
|
554
651
|
}
|
|
555
652
|
|
|
556
653
|
export declare interface EmailAuthentication {
|
|
@@ -569,12 +666,13 @@ export declare interface EndUser {
|
|
|
569
666
|
authenticationMethods: AuthenticationMethods;
|
|
570
667
|
mfaMethods?: MFAMethods;
|
|
571
668
|
evmAccounts: string[];
|
|
572
|
-
evmAccountObjects
|
|
669
|
+
evmAccountObjects: EndUserEvmAccount[];
|
|
573
670
|
evmSmartAccounts: string[];
|
|
574
|
-
evmSmartAccountObjects
|
|
671
|
+
evmSmartAccountObjects: EndUserEvmSmartAccount[];
|
|
575
672
|
solanaAccounts: string[];
|
|
576
|
-
solanaAccountObjects
|
|
673
|
+
solanaAccountObjects: EndUserSolanaAccount[];
|
|
577
674
|
createdAt: string;
|
|
675
|
+
lastAuthenticatedAt?: string;
|
|
578
676
|
}
|
|
579
677
|
|
|
580
678
|
export declare interface EndUserEvmAccount {
|
|
@@ -956,8 +1054,24 @@ export declare interface FedwireDetails {
|
|
|
956
1054
|
|
|
957
1055
|
export declare type FileId = string;
|
|
958
1056
|
|
|
1057
|
+
export declare type FileType = (typeof FileType)[keyof typeof FileType];
|
|
1058
|
+
|
|
1059
|
+
export declare const FileType: {
|
|
1060
|
+
readonly csv: "csv";
|
|
1061
|
+
readonly json: "json";
|
|
1062
|
+
readonly pdf: "pdf";
|
|
1063
|
+
};
|
|
1064
|
+
|
|
959
1065
|
export declare type ForbiddenErrorResponse = Error_2;
|
|
960
1066
|
|
|
1067
|
+
export declare type Frequency = (typeof Frequency)[keyof typeof Frequency];
|
|
1068
|
+
|
|
1069
|
+
export declare const Frequency: {
|
|
1070
|
+
readonly daily: "daily";
|
|
1071
|
+
readonly weekly: "weekly";
|
|
1072
|
+
readonly monthly: "monthly";
|
|
1073
|
+
};
|
|
1074
|
+
|
|
961
1075
|
export declare type FromAmount = string;
|
|
962
1076
|
|
|
963
1077
|
export declare type FromToken = string;
|
|
@@ -985,6 +1099,13 @@ export declare const getUserOperationWithEndUserAccount: (projectId: string, use
|
|
|
985
1099
|
|
|
986
1100
|
export declare type GetUserOperationWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof getUserOperationWithEndUserAccount>>>;
|
|
987
1101
|
|
|
1102
|
+
export declare interface GoogleConfig {
|
|
1103
|
+
enabled?: boolean;
|
|
1104
|
+
clientId?: string;
|
|
1105
|
+
createdAt?: string;
|
|
1106
|
+
updatedAt?: string;
|
|
1107
|
+
}
|
|
1108
|
+
|
|
988
1109
|
export declare const HttpErrorType: {
|
|
989
1110
|
readonly unexpected_error: "unexpected_error";
|
|
990
1111
|
readonly unauthorized: "unauthorized";
|
|
@@ -1104,24 +1225,34 @@ export declare interface InitiateEmailAuthenticationResponse {
|
|
|
1104
1225
|
nextStep: InitiateEmailAuthenticationNextStep;
|
|
1105
1226
|
}
|
|
1106
1227
|
|
|
1107
|
-
export declare const initiateMfaEnrollment: (projectId: string, userId: string, mfaMethod: "totp", options?: SecondParameter<typeof cdpApiClient>) => Promise<
|
|
1228
|
+
export declare const initiateMfaEnrollment: (projectId: string, userId: string, mfaMethod: "totp" | "sms", options?: SecondParameter<typeof cdpApiClient>) => Promise<InitiateMfaEnrollmentResponseWrapper>;
|
|
1229
|
+
|
|
1230
|
+
export declare const initiateMfaEnrollment2: (projectId: string, userId: string, mfaMethod: "totp" | "sms", initiateMfaEnrollmentRequest: InitiateMfaEnrollmentRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<InitiateMfaEnrollmentResponseWrapper>;
|
|
1231
|
+
|
|
1232
|
+
export declare type InitiateMfaEnrollment2Result = NonNullable<Awaited<ReturnType<typeof initiateMfaEnrollment2>>>;
|
|
1108
1233
|
|
|
1109
|
-
export declare type
|
|
1234
|
+
export declare type InitiateMfaEnrollmentRequest = InitiateTotpMfaEnrollment | InitiateSmsMfaEnrollment;
|
|
1235
|
+
|
|
1236
|
+
export declare type InitiateMfaEnrollmentResponseWrapper = InitiateMfaEnrollmentTotpResponse | InitiateMfaEnrollmentSmsResponse;
|
|
1110
1237
|
|
|
1111
1238
|
export declare type InitiateMfaEnrollmentResult = NonNullable<Awaited<ReturnType<typeof initiateMfaEnrollment>>>;
|
|
1112
1239
|
|
|
1240
|
+
export declare interface InitiateMfaEnrollmentSmsResponse {
|
|
1241
|
+
success: boolean;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1113
1244
|
export declare interface InitiateMfaEnrollmentTotpResponse {
|
|
1114
1245
|
authUrl: string;
|
|
1115
1246
|
secret: string;
|
|
1116
1247
|
}
|
|
1117
1248
|
|
|
1118
|
-
export declare const initiateMfaVerification: (projectId: string, userId: string, mfaMethod: "totp", options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
|
|
1249
|
+
export declare const initiateMfaVerification: (projectId: string, userId: string, mfaMethod: "totp" | "sms", options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
|
|
1119
1250
|
|
|
1120
1251
|
export declare type InitiateMfaVerificationResult = NonNullable<Awaited<ReturnType<typeof initiateMfaVerification>>>;
|
|
1121
1252
|
|
|
1122
1253
|
export declare interface InitiateOAuthAuthenticationRequest {
|
|
1123
1254
|
type: OAuth2ProviderType;
|
|
1124
|
-
redirectUrl:
|
|
1255
|
+
redirectUrl: UriUri;
|
|
1125
1256
|
}
|
|
1126
1257
|
|
|
1127
1258
|
export declare interface InitiateOAuthAuthenticationResponse {
|
|
@@ -1157,6 +1288,27 @@ export declare interface InitiateSmsAuthenticationResponse {
|
|
|
1157
1288
|
nextStep: InitiateSmsAuthenticationNextStep;
|
|
1158
1289
|
}
|
|
1159
1290
|
|
|
1291
|
+
export declare interface InitiateSmsMfaEnrollment {
|
|
1292
|
+
type: InitiateSmsMfaEnrollmentType;
|
|
1293
|
+
phoneNumber?: string;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
export declare type InitiateSmsMfaEnrollmentType = (typeof InitiateSmsMfaEnrollmentType)[keyof typeof InitiateSmsMfaEnrollmentType];
|
|
1297
|
+
|
|
1298
|
+
export declare const InitiateSmsMfaEnrollmentType: {
|
|
1299
|
+
readonly sms: "sms";
|
|
1300
|
+
};
|
|
1301
|
+
|
|
1302
|
+
export declare interface InitiateTotpMfaEnrollment {
|
|
1303
|
+
type: InitiateTotpMfaEnrollmentType;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
export declare type InitiateTotpMfaEnrollmentType = (typeof InitiateTotpMfaEnrollmentType)[keyof typeof InitiateTotpMfaEnrollmentType];
|
|
1307
|
+
|
|
1308
|
+
export declare const InitiateTotpMfaEnrollmentType: {
|
|
1309
|
+
readonly totp: "totp";
|
|
1310
|
+
};
|
|
1311
|
+
|
|
1160
1312
|
export declare type InternalServerErrorResponse = Error_2;
|
|
1161
1313
|
|
|
1162
1314
|
export declare type InvalidSQLQueryErrorResponse = Error_2;
|
|
@@ -1209,7 +1361,7 @@ export declare interface Limit {
|
|
|
1209
1361
|
used?: LimitUsed;
|
|
1210
1362
|
total?: LimitTotal;
|
|
1211
1363
|
limitPeriod?: LimitPeriod;
|
|
1212
|
-
description?:
|
|
1364
|
+
description?: Description;
|
|
1213
1365
|
}
|
|
1214
1366
|
|
|
1215
1367
|
export declare type LimitPeriod = (typeof LimitPeriod)[keyof typeof LimitPeriod];
|
|
@@ -1224,17 +1376,17 @@ export declare const LimitPeriod: {
|
|
|
1224
1376
|
|
|
1225
1377
|
export declare type LimitRemaining = {
|
|
1226
1378
|
amount: string;
|
|
1227
|
-
asset:
|
|
1379
|
+
asset: Asset;
|
|
1228
1380
|
};
|
|
1229
1381
|
|
|
1230
1382
|
export declare type LimitTotal = {
|
|
1231
1383
|
amount: string;
|
|
1232
|
-
asset:
|
|
1384
|
+
asset: Asset;
|
|
1233
1385
|
};
|
|
1234
1386
|
|
|
1235
1387
|
export declare type LimitUsed = {
|
|
1236
1388
|
amount: string;
|
|
1237
|
-
asset:
|
|
1389
|
+
asset: Asset;
|
|
1238
1390
|
};
|
|
1239
1391
|
|
|
1240
1392
|
export declare interface LinkableAccount {
|
|
@@ -1313,7 +1465,7 @@ export declare type LogOutEndUserBody = {
|
|
|
1313
1465
|
export declare type LogOutEndUserResult = NonNullable<Awaited<ReturnType<typeof logOutEndUser>>>;
|
|
1314
1466
|
|
|
1315
1467
|
export declare interface Metadata {
|
|
1316
|
-
[key: string]:
|
|
1468
|
+
[key: string]: string;
|
|
1317
1469
|
}
|
|
1318
1470
|
|
|
1319
1471
|
export declare type MfaAlreadyEnrolledErrorResponse = Error_2;
|
|
@@ -1322,6 +1474,10 @@ export declare interface MfaConfig {
|
|
|
1322
1474
|
projectId: string;
|
|
1323
1475
|
enabled: boolean;
|
|
1324
1476
|
totpConfig: TotpConfig;
|
|
1477
|
+
smsConfig?: SmsConfig;
|
|
1478
|
+
verificationWindowSeconds: number;
|
|
1479
|
+
promptEnrollmentOnLogin: boolean;
|
|
1480
|
+
requireVerificationOnLogin: boolean;
|
|
1325
1481
|
createdAt: string;
|
|
1326
1482
|
updatedAt: string;
|
|
1327
1483
|
}
|
|
@@ -1334,13 +1490,20 @@ export declare type MfaMethod = (typeof MfaMethod)[keyof typeof MfaMethod];
|
|
|
1334
1490
|
|
|
1335
1491
|
export declare const MfaMethod: {
|
|
1336
1492
|
readonly totp: "totp";
|
|
1493
|
+
readonly sms: "sms";
|
|
1337
1494
|
};
|
|
1338
1495
|
|
|
1339
1496
|
export declare interface MFAMethods {
|
|
1340
1497
|
enrollmentPromptedAt?: string;
|
|
1498
|
+
lastVerificationCompletedAt?: string;
|
|
1341
1499
|
totp?: MFAMethodsTotp;
|
|
1500
|
+
sms?: MFAMethodsSms;
|
|
1342
1501
|
}
|
|
1343
1502
|
|
|
1503
|
+
export declare type MFAMethodsSms = {
|
|
1504
|
+
enrolledAt: string;
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1344
1507
|
export declare type MFAMethodsTotp = {
|
|
1345
1508
|
enrolledAt: string;
|
|
1346
1509
|
};
|
|
@@ -1418,17 +1581,17 @@ export declare const OAuth2ProviderType: {
|
|
|
1418
1581
|
};
|
|
1419
1582
|
|
|
1420
1583
|
export declare interface OnchainAddress {
|
|
1421
|
-
address:
|
|
1584
|
+
address: BlockchainAddress;
|
|
1422
1585
|
network: Network;
|
|
1423
1586
|
destinationTag?: string;
|
|
1424
|
-
asset:
|
|
1587
|
+
asset: Asset;
|
|
1425
1588
|
}
|
|
1426
1589
|
|
|
1427
1590
|
export declare interface OnchainDataColumnSchema {
|
|
1428
1591
|
name?: string;
|
|
1429
1592
|
type?: string;
|
|
1430
1593
|
nullable?: boolean;
|
|
1431
|
-
description?:
|
|
1594
|
+
description?: Description;
|
|
1432
1595
|
indexOrder?: number;
|
|
1433
1596
|
sample?: string;
|
|
1434
1597
|
}
|
|
@@ -1499,7 +1662,7 @@ export declare interface OnchainDataSchemaResponse {
|
|
|
1499
1662
|
|
|
1500
1663
|
export declare interface OnchainDataTableSchema {
|
|
1501
1664
|
name?: string;
|
|
1502
|
-
description?:
|
|
1665
|
+
description?: Description;
|
|
1503
1666
|
columns?: OnchainDataColumnSchema[];
|
|
1504
1667
|
}
|
|
1505
1668
|
|
|
@@ -1513,7 +1676,7 @@ export declare interface OnrampOrder {
|
|
|
1513
1676
|
purchaseCurrency: string;
|
|
1514
1677
|
fees: OnrampOrderFee[];
|
|
1515
1678
|
exchangeRate: string;
|
|
1516
|
-
destinationAddress:
|
|
1679
|
+
destinationAddress: BlockchainAddress;
|
|
1517
1680
|
destinationNetwork: string;
|
|
1518
1681
|
status: OnrampOrderStatus;
|
|
1519
1682
|
txHash?: string;
|
|
@@ -1596,7 +1759,7 @@ export declare type PageTokenParameter = string;
|
|
|
1596
1759
|
|
|
1597
1760
|
export declare interface PaymentMethod {
|
|
1598
1761
|
paymentMethodId: string;
|
|
1599
|
-
asset:
|
|
1762
|
+
asset: Asset;
|
|
1600
1763
|
}
|
|
1601
1764
|
|
|
1602
1765
|
export declare type PaymentMethodRequiredErrorResponse = Error_2;
|
|
@@ -1608,7 +1771,7 @@ export declare interface Permission {
|
|
|
1608
1771
|
subjectType: PermissionSubjectType;
|
|
1609
1772
|
verb: PermissionVerb;
|
|
1610
1773
|
object: string;
|
|
1611
|
-
description?:
|
|
1774
|
+
description?: Description;
|
|
1612
1775
|
createdAt: string;
|
|
1613
1776
|
}
|
|
1614
1777
|
|
|
@@ -1634,7 +1797,7 @@ export declare const PermissionCatalogObjectsItemType: {
|
|
|
1634
1797
|
export declare type PermissionCatalogVerbsItem = {
|
|
1635
1798
|
name?: string;
|
|
1636
1799
|
displayName?: string;
|
|
1637
|
-
description?:
|
|
1800
|
+
description?: Description;
|
|
1638
1801
|
};
|
|
1639
1802
|
|
|
1640
1803
|
export declare type PermissionId = string;
|
|
@@ -1808,6 +1971,69 @@ export declare type RegisterTemporaryWalletSecretBody = {
|
|
|
1808
1971
|
|
|
1809
1972
|
export declare type RegisterTemporaryWalletSecretResult = NonNullable<Awaited<ReturnType<typeof registerTemporaryWalletSecret>>>;
|
|
1810
1973
|
|
|
1974
|
+
declare interface Report_2 {
|
|
1975
|
+
reportId: string;
|
|
1976
|
+
entityId: string;
|
|
1977
|
+
scheduleId?: string;
|
|
1978
|
+
scheduleType: ScheduleType;
|
|
1979
|
+
resourceType: ResourceType;
|
|
1980
|
+
name: string;
|
|
1981
|
+
status: ReportStatus;
|
|
1982
|
+
dataStartTime?: string;
|
|
1983
|
+
dataEndTime?: string;
|
|
1984
|
+
fileType: FileType;
|
|
1985
|
+
recordCount?: number;
|
|
1986
|
+
fileSizeBytes?: number;
|
|
1987
|
+
errorMessage?: string;
|
|
1988
|
+
destinationIds?: string[];
|
|
1989
|
+
requestedAt: string;
|
|
1990
|
+
startedAt?: string;
|
|
1991
|
+
completedAt?: string;
|
|
1992
|
+
}
|
|
1993
|
+
export { Report_2 as Report }
|
|
1994
|
+
|
|
1995
|
+
export declare interface ReportDelivery {
|
|
1996
|
+
deliveryId: string;
|
|
1997
|
+
reportId: string;
|
|
1998
|
+
entityId: string;
|
|
1999
|
+
destinationId: string;
|
|
2000
|
+
destinationType: DestinationType;
|
|
2001
|
+
destinationName: string;
|
|
2002
|
+
status: DeliveryStatus;
|
|
2003
|
+
errorMessage?: string;
|
|
2004
|
+
completedAt: string;
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
export declare type ReportDestination = ReportDestinationAllOf & ReportDestinationAllOfThreeOneOf;
|
|
2008
|
+
|
|
2009
|
+
export declare type ReportDestinationAllOf = {
|
|
2010
|
+
destinationId: string;
|
|
2011
|
+
entityId: string;
|
|
2012
|
+
name?: string;
|
|
2013
|
+
type: ReportDestinationAllOfType;
|
|
2014
|
+
createdAt: string;
|
|
2015
|
+
updatedAt: string;
|
|
2016
|
+
};
|
|
2017
|
+
|
|
2018
|
+
export declare type ReportDestinationAllOfThreeOneOf = {
|
|
2019
|
+
sftpConfig: SFTPConfig;
|
|
2020
|
+
};
|
|
2021
|
+
|
|
2022
|
+
export declare type ReportDestinationAllOfType = (typeof ReportDestinationAllOfType)[keyof typeof ReportDestinationAllOfType];
|
|
2023
|
+
|
|
2024
|
+
export declare const ReportDestinationAllOfType: {
|
|
2025
|
+
readonly sftp: "sftp";
|
|
2026
|
+
};
|
|
2027
|
+
|
|
2028
|
+
export declare type ReportStatus = (typeof ReportStatus)[keyof typeof ReportStatus];
|
|
2029
|
+
|
|
2030
|
+
export declare const ReportStatus: {
|
|
2031
|
+
readonly processing: "processing";
|
|
2032
|
+
readonly completed: "completed";
|
|
2033
|
+
readonly failed: "failed";
|
|
2034
|
+
readonly canceled: "canceled";
|
|
2035
|
+
};
|
|
2036
|
+
|
|
1811
2037
|
export declare interface Requirement {
|
|
1812
2038
|
due?: RequirementDue[];
|
|
1813
2039
|
pending?: RequirementDue[];
|
|
@@ -1846,6 +2072,12 @@ export declare const RequirementField: {
|
|
|
1846
2072
|
readonly individualverificationdocument: "individual.verification.document";
|
|
1847
2073
|
};
|
|
1848
2074
|
|
|
2075
|
+
export declare type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
2076
|
+
|
|
2077
|
+
export declare const ResourceType: {
|
|
2078
|
+
readonly transfers: "transfers";
|
|
2079
|
+
};
|
|
2080
|
+
|
|
1849
2081
|
export declare interface RevokeSpendPermissionRequest {
|
|
1850
2082
|
walletSecretId: string;
|
|
1851
2083
|
network: SpendPermissionNetwork;
|
|
@@ -1861,7 +2093,7 @@ export declare type RevokeSpendPermissionWithEndUserAccountResult = NonNullable<
|
|
|
1861
2093
|
export declare interface Role {
|
|
1862
2094
|
roleId: RoleId;
|
|
1863
2095
|
name: string;
|
|
1864
|
-
description?:
|
|
2096
|
+
description?: Description;
|
|
1865
2097
|
permissions: Permission[];
|
|
1866
2098
|
createdAt?: string;
|
|
1867
2099
|
updatedAt?: string;
|
|
@@ -1871,10 +2103,69 @@ export declare type RoleId = "role_entity_admin" | "role_entity_viewer" | string
|
|
|
1871
2103
|
|
|
1872
2104
|
export declare type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule;
|
|
1873
2105
|
|
|
2106
|
+
export declare interface Schedule {
|
|
2107
|
+
scheduleId: string;
|
|
2108
|
+
entityId: string;
|
|
2109
|
+
name: string;
|
|
2110
|
+
resourceType: ResourceType;
|
|
2111
|
+
frequency: Frequency;
|
|
2112
|
+
timeOfDay?: string;
|
|
2113
|
+
scheduleStartDate: string;
|
|
2114
|
+
scheduleEndDate?: string;
|
|
2115
|
+
fileType: FileType;
|
|
2116
|
+
filters?: TransferFilters;
|
|
2117
|
+
destinationIds?: string[];
|
|
2118
|
+
outputColumns?: TransferColumn[];
|
|
2119
|
+
readonly enabled: boolean;
|
|
2120
|
+
nextRunTime?: string;
|
|
2121
|
+
createdAt: string;
|
|
2122
|
+
updatedAt: string;
|
|
2123
|
+
createdBy?: string;
|
|
2124
|
+
updatedBy?: string;
|
|
2125
|
+
}
|
|
2126
|
+
|
|
2127
|
+
export declare type ScheduleType = (typeof ScheduleType)[keyof typeof ScheduleType];
|
|
2128
|
+
|
|
2129
|
+
export declare const ScheduleType: {
|
|
2130
|
+
readonly oneTime: "oneTime";
|
|
2131
|
+
readonly recurring: "recurring";
|
|
2132
|
+
};
|
|
2133
|
+
|
|
1874
2134
|
export declare type SecondFactorProofTokenParameter = string;
|
|
1875
2135
|
|
|
1876
2136
|
declare type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
1877
2137
|
|
|
2138
|
+
export declare const sendEvmAssetWithEndUserAccount: (projectId: string, userId: string, address: BlockchainAddress, asset: "usdc", sendEvmAssetWithEndUserAccountBody: SendEvmAssetWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SendEvmAssetWithEndUserAccount200>;
|
|
2139
|
+
|
|
2140
|
+
export declare type SendEvmAssetWithEndUserAccount200 = {
|
|
2141
|
+
transactionHash?: string | null;
|
|
2142
|
+
userOpHash?: string | null;
|
|
2143
|
+
};
|
|
2144
|
+
|
|
2145
|
+
export declare type SendEvmAssetWithEndUserAccountBody = {
|
|
2146
|
+
to: BlockchainAddress;
|
|
2147
|
+
amount: string;
|
|
2148
|
+
network: SendEvmAssetWithEndUserAccountBodyNetwork;
|
|
2149
|
+
useCdpPaymaster?: boolean;
|
|
2150
|
+
paymasterUrl?: Url;
|
|
2151
|
+
walletSecretId: string;
|
|
2152
|
+
};
|
|
2153
|
+
|
|
2154
|
+
export declare type SendEvmAssetWithEndUserAccountBodyNetwork = (typeof SendEvmAssetWithEndUserAccountBodyNetwork)[keyof typeof SendEvmAssetWithEndUserAccountBodyNetwork];
|
|
2155
|
+
|
|
2156
|
+
export declare const SendEvmAssetWithEndUserAccountBodyNetwork: {
|
|
2157
|
+
readonly base: "base";
|
|
2158
|
+
readonly "base-sepolia": "base-sepolia";
|
|
2159
|
+
readonly ethereum: "ethereum";
|
|
2160
|
+
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
2161
|
+
readonly avalanche: "avalanche";
|
|
2162
|
+
readonly polygon: "polygon";
|
|
2163
|
+
readonly optimism: "optimism";
|
|
2164
|
+
readonly arbitrum: "arbitrum";
|
|
2165
|
+
};
|
|
2166
|
+
|
|
2167
|
+
export declare type SendEvmAssetWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendEvmAssetWithEndUserAccount>>>;
|
|
2168
|
+
|
|
1878
2169
|
export declare type SendEvmTransactionCriteria = SendEvmTransactionCriteriaItem[];
|
|
1879
2170
|
|
|
1880
2171
|
export declare type SendEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
@@ -1926,6 +2217,29 @@ export declare const SendEvmTransactionWithEndUserAccountBodyNetwork: {
|
|
|
1926
2217
|
|
|
1927
2218
|
export declare type SendEvmTransactionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendEvmTransactionWithEndUserAccount>>>;
|
|
1928
2219
|
|
|
2220
|
+
export declare const sendSolanaAssetWithEndUserAccount: (projectId: string, userId: string, address: BlockchainAddress, asset: "usdc", sendSolanaAssetWithEndUserAccountBody: SendSolanaAssetWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SendSolanaAssetWithEndUserAccount200>;
|
|
2221
|
+
|
|
2222
|
+
export declare type SendSolanaAssetWithEndUserAccount200 = {
|
|
2223
|
+
transactionSignature: string;
|
|
2224
|
+
};
|
|
2225
|
+
|
|
2226
|
+
export declare type SendSolanaAssetWithEndUserAccountBody = {
|
|
2227
|
+
to: BlockchainAddress;
|
|
2228
|
+
amount: string;
|
|
2229
|
+
network: SendSolanaAssetWithEndUserAccountBodyNetwork;
|
|
2230
|
+
createRecipientAta?: boolean;
|
|
2231
|
+
walletSecretId: string;
|
|
2232
|
+
};
|
|
2233
|
+
|
|
2234
|
+
export declare type SendSolanaAssetWithEndUserAccountBodyNetwork = (typeof SendSolanaAssetWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaAssetWithEndUserAccountBodyNetwork];
|
|
2235
|
+
|
|
2236
|
+
export declare const SendSolanaAssetWithEndUserAccountBodyNetwork: {
|
|
2237
|
+
readonly solana: "solana";
|
|
2238
|
+
readonly "solana-devnet": "solana-devnet";
|
|
2239
|
+
};
|
|
2240
|
+
|
|
2241
|
+
export declare type SendSolanaAssetWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendSolanaAssetWithEndUserAccount>>>;
|
|
2242
|
+
|
|
1929
2243
|
export declare const sendSolanaTransactionWithEndUserAccount: (projectId: string, userId: string, sendSolanaTransactionWithEndUserAccountBody: SendSolanaTransactionWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SendSolanaTransactionWithEndUserAccount200>;
|
|
1930
2244
|
|
|
1931
2245
|
export declare type SendSolanaTransactionWithEndUserAccount200 = {
|
|
@@ -2011,6 +2325,13 @@ export declare type ServiceUnavailableErrorResponse = Error_2;
|
|
|
2011
2325
|
|
|
2012
2326
|
export declare const setAuthManager: (manager: AuthManager) => void;
|
|
2013
2327
|
|
|
2328
|
+
export declare interface SFTPConfig {
|
|
2329
|
+
host: Uri;
|
|
2330
|
+
port?: number;
|
|
2331
|
+
username: string;
|
|
2332
|
+
remotePath: string;
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2014
2335
|
export declare type SignerAddress = string;
|
|
2015
2336
|
|
|
2016
2337
|
export declare interface SignEvmHashRule {
|
|
@@ -2300,6 +2621,10 @@ export declare const SmsAuthenticationType: {
|
|
|
2300
2621
|
readonly sms: "sms";
|
|
2301
2622
|
};
|
|
2302
2623
|
|
|
2624
|
+
export declare interface SmsConfig {
|
|
2625
|
+
enabled?: boolean;
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2303
2628
|
export declare interface SolAddressCriterion {
|
|
2304
2629
|
type: SolAddressCriterionType;
|
|
2305
2630
|
addresses: string[];
|
|
@@ -2527,7 +2852,22 @@ export declare const SplValueCriterionType: {
|
|
|
2527
2852
|
readonly splValue: "splValue";
|
|
2528
2853
|
};
|
|
2529
2854
|
|
|
2530
|
-
export declare
|
|
2855
|
+
export declare type SSHKeyAlgorithm = (typeof SSHKeyAlgorithm)[keyof typeof SSHKeyAlgorithm];
|
|
2856
|
+
|
|
2857
|
+
export declare const SSHKeyAlgorithm: {
|
|
2858
|
+
readonly ed25519: "ed25519";
|
|
2859
|
+
readonly rsa4096: "rsa4096";
|
|
2860
|
+
};
|
|
2861
|
+
|
|
2862
|
+
export declare interface SSHKeyPair {
|
|
2863
|
+
entityId: string;
|
|
2864
|
+
publicKey: string;
|
|
2865
|
+
algorithm: SSHKeyAlgorithm;
|
|
2866
|
+
fingerprint: string;
|
|
2867
|
+
createdAt: string;
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
export declare const submitMfaEnrollment: (projectId: string, userId: string, mfaMethod: "totp" | "sms", submitMfaEnrollmentBody: SubmitMfaEnrollmentBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SubmitMfaEnrollment200>;
|
|
2531
2871
|
|
|
2532
2872
|
export declare type SubmitMfaEnrollment200 = {
|
|
2533
2873
|
endUser: EndUser;
|
|
@@ -2539,7 +2879,7 @@ export declare type SubmitMfaEnrollmentBody = {
|
|
|
2539
2879
|
|
|
2540
2880
|
export declare type SubmitMfaEnrollmentResult = NonNullable<Awaited<ReturnType<typeof submitMfaEnrollment>>>;
|
|
2541
2881
|
|
|
2542
|
-
export declare const submitMfaVerification: (projectId: string, userId: string, mfaMethod: "totp", submitMfaVerificationBody: SubmitMfaVerificationBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
|
|
2882
|
+
export declare const submitMfaVerification: (projectId: string, userId: string, mfaMethod: "totp" | "sms", submitMfaVerificationBody: SubmitMfaVerificationBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
|
|
2543
2883
|
|
|
2544
2884
|
export declare type SubmitMfaVerificationBody = {
|
|
2545
2885
|
mfaCode: string;
|
|
@@ -2565,6 +2905,13 @@ export declare interface TeamMember {
|
|
|
2565
2905
|
|
|
2566
2906
|
export declare type TeamMemberId = string;
|
|
2567
2907
|
|
|
2908
|
+
export declare interface TelegramConfig {
|
|
2909
|
+
enabled?: boolean;
|
|
2910
|
+
botName?: string;
|
|
2911
|
+
createdAt?: string;
|
|
2912
|
+
updatedAt?: string;
|
|
2913
|
+
}
|
|
2914
|
+
|
|
2568
2915
|
export declare type TimedOutErrorResponse = Error_2;
|
|
2569
2916
|
|
|
2570
2917
|
export declare interface Token {
|
|
@@ -2596,52 +2943,88 @@ export declare interface TotpConfig {
|
|
|
2596
2943
|
}
|
|
2597
2944
|
|
|
2598
2945
|
export declare interface Transfer {
|
|
2599
|
-
transferId
|
|
2600
|
-
status
|
|
2946
|
+
transferId?: string;
|
|
2947
|
+
status?: TransferStatus;
|
|
2601
2948
|
source: TransferSource;
|
|
2602
2949
|
target: TransferTarget;
|
|
2603
2950
|
sourceAmount?: string;
|
|
2604
|
-
sourceAsset?:
|
|
2951
|
+
sourceAsset?: Asset;
|
|
2605
2952
|
targetAmount?: string;
|
|
2606
|
-
targetAsset?:
|
|
2953
|
+
targetAsset?: Asset;
|
|
2607
2954
|
exchangeRate?: TransferExchangeRate;
|
|
2608
2955
|
fees?: TransferFees;
|
|
2609
2956
|
completedAt?: string;
|
|
2610
2957
|
failureReason?: string;
|
|
2611
|
-
reversalReason?: TransferReversalReason;
|
|
2612
|
-
cancellationReason?: TransferCancellationReason;
|
|
2613
2958
|
lastError?: TransferLastError;
|
|
2614
2959
|
expiresAt?: string;
|
|
2615
2960
|
executedAt?: string;
|
|
2616
|
-
createdAt
|
|
2617
|
-
updatedAt
|
|
2961
|
+
createdAt?: string;
|
|
2962
|
+
updatedAt?: string;
|
|
2618
2963
|
validateOnly?: boolean;
|
|
2619
2964
|
metadata?: Metadata;
|
|
2620
2965
|
travelRule?: TravelRule;
|
|
2966
|
+
details?: TransferDetails;
|
|
2967
|
+
}
|
|
2968
|
+
|
|
2969
|
+
export declare type TransferColumn = (typeof TransferColumn)[keyof typeof TransferColumn];
|
|
2970
|
+
|
|
2971
|
+
export declare const TransferColumn: {
|
|
2972
|
+
readonly transferID: "transferID";
|
|
2973
|
+
readonly status: "status";
|
|
2974
|
+
readonly sourceType: "sourceType";
|
|
2975
|
+
readonly sourceId: "sourceId";
|
|
2976
|
+
readonly sourceAsset: "sourceAsset";
|
|
2977
|
+
readonly sourceAmount: "sourceAmount";
|
|
2978
|
+
readonly sourceNetwork: "sourceNetwork";
|
|
2979
|
+
readonly targetType: "targetType";
|
|
2980
|
+
readonly targetId: "targetId";
|
|
2981
|
+
readonly targetAsset: "targetAsset";
|
|
2982
|
+
readonly targetAmount: "targetAmount";
|
|
2983
|
+
readonly targetNetwork: "targetNetwork";
|
|
2984
|
+
readonly networkFee: "networkFee";
|
|
2985
|
+
readonly networkFeeAsset: "networkFeeAsset";
|
|
2986
|
+
readonly conversionFee: "conversionFee";
|
|
2987
|
+
readonly conversionFeeAsset: "conversionFeeAsset";
|
|
2988
|
+
readonly bankFee: "bankFee";
|
|
2989
|
+
readonly bankFeeAsset: "bankFeeAsset";
|
|
2990
|
+
readonly otherFee: "otherFee";
|
|
2991
|
+
readonly otherFeeAsset: "otherFeeAsset";
|
|
2992
|
+
readonly createdAt: "createdAt";
|
|
2993
|
+
readonly updatedAt: "updatedAt";
|
|
2994
|
+
readonly metadata: "metadata";
|
|
2995
|
+
};
|
|
2996
|
+
|
|
2997
|
+
export declare interface TransferDetails {
|
|
2998
|
+
depositDestination?: DepositDestinationReference;
|
|
2999
|
+
}
|
|
3000
|
+
|
|
3001
|
+
export declare interface TransferEvent {
|
|
3002
|
+
eventType: TransferEventEventType;
|
|
3003
|
+
eventId: string;
|
|
3004
|
+
timestamp: string;
|
|
3005
|
+
data: Transfer;
|
|
2621
3006
|
}
|
|
2622
3007
|
|
|
2623
|
-
export declare type
|
|
3008
|
+
export declare type TransferEventEventType = (typeof TransferEventEventType)[keyof typeof TransferEventEventType];
|
|
2624
3009
|
|
|
2625
|
-
export declare const
|
|
2626
|
-
readonly
|
|
2627
|
-
readonly
|
|
2628
|
-
readonly
|
|
2629
|
-
readonly
|
|
2630
|
-
readonly
|
|
2631
|
-
readonly duplicate_canceled: "duplicate_canceled";
|
|
2632
|
-
readonly insufficient_funds_canceled: "insufficient_funds_canceled";
|
|
3010
|
+
export declare const TransferEventEventType: {
|
|
3011
|
+
readonly paymentstransfersquoted: "payments.transfers.quoted";
|
|
3012
|
+
readonly paymentstransfersprocessing: "payments.transfers.processing";
|
|
3013
|
+
readonly paymentstransferscompleted: "payments.transfers.completed";
|
|
3014
|
+
readonly paymentstransfersfailed: "payments.transfers.failed";
|
|
3015
|
+
readonly paymentstransfersexpired: "payments.transfers.expired";
|
|
2633
3016
|
};
|
|
2634
3017
|
|
|
2635
3018
|
export declare type TransferExchangeRate = {
|
|
2636
|
-
sourceAsset:
|
|
2637
|
-
targetAsset:
|
|
3019
|
+
sourceAsset: Asset;
|
|
3020
|
+
targetAsset: Asset;
|
|
2638
3021
|
rate: string;
|
|
2639
3022
|
};
|
|
2640
3023
|
|
|
2641
3024
|
export declare interface TransferFee {
|
|
2642
3025
|
type: TransferFeeType;
|
|
2643
3026
|
amount: string;
|
|
2644
|
-
asset:
|
|
3027
|
+
asset: Asset;
|
|
2645
3028
|
}
|
|
2646
3029
|
|
|
2647
3030
|
export declare type TransferFees = TransferFee[];
|
|
@@ -2655,6 +3038,18 @@ export declare const TransferFeeType: {
|
|
|
2655
3038
|
readonly other: "other";
|
|
2656
3039
|
};
|
|
2657
3040
|
|
|
3041
|
+
export declare interface TransferFilters {
|
|
3042
|
+
transferStatuses?: TransferStatus[];
|
|
3043
|
+
sourceCurrencies?: string[];
|
|
3044
|
+
targetCurrencies?: string[];
|
|
3045
|
+
sourceIds?: string[];
|
|
3046
|
+
destinationIds?: string[];
|
|
3047
|
+
sourceAmountMin?: string;
|
|
3048
|
+
sourceAmountMax?: string;
|
|
3049
|
+
destinationAmountMin?: string;
|
|
3050
|
+
destinationAmountMax?: string;
|
|
3051
|
+
}
|
|
3052
|
+
|
|
2658
3053
|
export declare type TransferLastError = {
|
|
2659
3054
|
code?: string;
|
|
2660
3055
|
message?: string;
|
|
@@ -2672,7 +3067,7 @@ export declare interface TransferRequest {
|
|
|
2672
3067
|
source: CreateTransferSource;
|
|
2673
3068
|
target: TransferTarget;
|
|
2674
3069
|
amount: string;
|
|
2675
|
-
asset:
|
|
3070
|
+
asset: Asset;
|
|
2676
3071
|
amountType?: TransferRequestAmountType;
|
|
2677
3072
|
validateOnly?: boolean;
|
|
2678
3073
|
execute: boolean;
|
|
@@ -2687,19 +3082,9 @@ export declare const TransferRequestAmountType: {
|
|
|
2687
3082
|
readonly source: "source";
|
|
2688
3083
|
};
|
|
2689
3084
|
|
|
2690
|
-
export declare type TransferReversalReason = (typeof TransferReversalReason)[keyof typeof TransferReversalReason];
|
|
2691
|
-
|
|
2692
|
-
export declare const TransferReversalReason: {
|
|
2693
|
-
readonly user_requested: "user_requested";
|
|
2694
|
-
readonly compliance_reversal: "compliance_reversal";
|
|
2695
|
-
readonly fraud_reversal: "fraud_reversal";
|
|
2696
|
-
readonly network_reversal: "network_reversal";
|
|
2697
|
-
readonly system_reversal: "system_reversal";
|
|
2698
|
-
};
|
|
2699
|
-
|
|
2700
3085
|
export declare interface TransfersAccount {
|
|
2701
3086
|
accountId: string;
|
|
2702
|
-
asset:
|
|
3087
|
+
asset: Asset;
|
|
2703
3088
|
}
|
|
2704
3089
|
|
|
2705
3090
|
export declare type TransferSource = TransfersAccount | PaymentMethod | OnchainAddress;
|
|
@@ -2711,38 +3096,28 @@ export declare const TransferStatus: {
|
|
|
2711
3096
|
readonly processing: "processing";
|
|
2712
3097
|
readonly completed: "completed";
|
|
2713
3098
|
readonly failed: "failed";
|
|
2714
|
-
readonly canceled: "canceled";
|
|
2715
3099
|
readonly expired: "expired";
|
|
2716
|
-
readonly reversed: "reversed";
|
|
2717
|
-
};
|
|
2718
|
-
|
|
2719
|
-
export declare interface TransferStatusChangedWebhookEvent {
|
|
2720
|
-
eventType: TransferStatusChangedWebhookEventEventType;
|
|
2721
|
-
eventId: string;
|
|
2722
|
-
timestamp: string;
|
|
2723
|
-
data: Transfer;
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
export declare type TransferStatusChangedWebhookEventEventType = (typeof TransferStatusChangedWebhookEventEventType)[keyof typeof TransferStatusChangedWebhookEventEventType];
|
|
2727
|
-
|
|
2728
|
-
export declare const TransferStatusChangedWebhookEventEventType: {
|
|
2729
|
-
readonly transferstatus_changed: "transfer.status_changed";
|
|
2730
3100
|
};
|
|
2731
3101
|
|
|
2732
3102
|
export declare type TransferTarget = TransfersAccount | PaymentMethod | OnchainAddress | EmailAddress;
|
|
2733
3103
|
|
|
2734
3104
|
export declare interface TravelRule {
|
|
2735
3105
|
originator?: TravelRuleOriginator;
|
|
2736
|
-
beneficiary?:
|
|
3106
|
+
beneficiary?: TravelRuleBeneficiary;
|
|
2737
3107
|
}
|
|
2738
3108
|
|
|
2739
|
-
export declare
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
3109
|
+
export declare type TravelRuleBeneficiary = TravelRuleParty & TravelRuleBeneficiaryAllOf;
|
|
3110
|
+
|
|
3111
|
+
export declare type TravelRuleBeneficiaryAllOf = {
|
|
3112
|
+
walletType?: TravelRuleBeneficiaryAllOfWalletType;
|
|
3113
|
+
};
|
|
3114
|
+
|
|
3115
|
+
export declare type TravelRuleBeneficiaryAllOfWalletType = (typeof TravelRuleBeneficiaryAllOfWalletType)[keyof typeof TravelRuleBeneficiaryAllOfWalletType];
|
|
3116
|
+
|
|
3117
|
+
export declare const TravelRuleBeneficiaryAllOfWalletType: {
|
|
3118
|
+
readonly custodial: "custodial";
|
|
3119
|
+
readonly self_custody: "self_custody";
|
|
3120
|
+
};
|
|
2746
3121
|
|
|
2747
3122
|
export declare type TravelRuleOriginator = TravelRuleParty & TravelRuleOriginatorAllOf;
|
|
2748
3123
|
|
|
@@ -2752,7 +3127,7 @@ export declare type TravelRuleOriginatorAllOf = {
|
|
|
2752
3127
|
|
|
2753
3128
|
export declare interface TravelRuleParty {
|
|
2754
3129
|
name?: string;
|
|
2755
|
-
address?:
|
|
3130
|
+
address?: PhysicalAddress;
|
|
2756
3131
|
}
|
|
2757
3132
|
|
|
2758
3133
|
export declare type UnauthorizedErrorResponse = Error_2;
|
|
@@ -2770,14 +3145,83 @@ export declare interface UpdateCustomAuthConfigRequest {
|
|
|
2770
3145
|
jwksUrl?: Url;
|
|
2771
3146
|
issuer?: Url;
|
|
2772
3147
|
audience?: string;
|
|
3148
|
+
userIdentifierClaim?: string;
|
|
3149
|
+
}
|
|
3150
|
+
|
|
3151
|
+
export declare interface UpdateCustomOAuthAppleConfig {
|
|
3152
|
+
enabled?: boolean;
|
|
3153
|
+
clientId?: string;
|
|
3154
|
+
teamId?: string;
|
|
3155
|
+
keyId?: string;
|
|
3156
|
+
signingKey?: string;
|
|
3157
|
+
}
|
|
3158
|
+
|
|
3159
|
+
export declare interface UpdateCustomOAuthConfigRequest {
|
|
3160
|
+
telegramConfig?: UpdateCustomOAuthTelegramConfig;
|
|
3161
|
+
googleConfig?: UpdateCustomOAuthGoogleConfig;
|
|
3162
|
+
appleConfig?: UpdateCustomOAuthAppleConfig;
|
|
3163
|
+
xConfig?: UpdateCustomOAuthXConfig;
|
|
3164
|
+
}
|
|
3165
|
+
|
|
3166
|
+
export declare interface UpdateCustomOAuthGoogleConfig {
|
|
3167
|
+
enabled?: boolean;
|
|
3168
|
+
clientId?: string;
|
|
3169
|
+
clientSecret?: string;
|
|
3170
|
+
}
|
|
3171
|
+
|
|
3172
|
+
export declare interface UpdateCustomOAuthTelegramConfig {
|
|
3173
|
+
enabled?: boolean;
|
|
3174
|
+
botToken?: string;
|
|
3175
|
+
botName?: string;
|
|
3176
|
+
}
|
|
3177
|
+
|
|
3178
|
+
export declare interface UpdateCustomOAuthXConfig {
|
|
3179
|
+
enabled?: boolean;
|
|
3180
|
+
clientId?: string;
|
|
3181
|
+
clientSecret?: string;
|
|
2773
3182
|
}
|
|
2774
3183
|
|
|
2775
3184
|
export declare interface UpdateMfaConfigRequest {
|
|
2776
3185
|
enabled?: boolean;
|
|
2777
3186
|
totpConfig?: TotpConfig;
|
|
3187
|
+
smsConfig?: SmsConfig;
|
|
3188
|
+
promptEnrollmentOnLogin?: boolean;
|
|
3189
|
+
requireVerificationOnLogin?: boolean;
|
|
3190
|
+
}
|
|
3191
|
+
|
|
3192
|
+
export declare type UpdateReportDestinationRequest = UpdateReportDestinationRequestAllOf & UpdateReportDestinationRequestAllOfTwo;
|
|
3193
|
+
|
|
3194
|
+
export declare type UpdateReportDestinationRequestAllOf = {
|
|
3195
|
+
name?: string;
|
|
3196
|
+
};
|
|
3197
|
+
|
|
3198
|
+
export declare type UpdateReportDestinationRequestAllOfTwo = UpdateReportDestinationRequestAllOfTwoOneOf | UpdateReportDestinationRequestAllOfTwoOneOfTwo;
|
|
3199
|
+
|
|
3200
|
+
export declare type UpdateReportDestinationRequestAllOfTwoOneOf = {
|
|
3201
|
+
sftpConfig: SFTPConfig;
|
|
3202
|
+
};
|
|
3203
|
+
|
|
3204
|
+
export declare type UpdateReportDestinationRequestAllOfTwoOneOfTwo = {
|
|
3205
|
+
[key: string]: unknown;
|
|
3206
|
+
};
|
|
3207
|
+
|
|
3208
|
+
export declare interface UpdateReportScheduleRequest {
|
|
3209
|
+
name?: string;
|
|
3210
|
+
frequency?: Frequency;
|
|
3211
|
+
timeOfDay?: string;
|
|
3212
|
+
scheduleStartDate?: string;
|
|
3213
|
+
scheduleEndDate?: string;
|
|
3214
|
+
resourceType?: ResourceType;
|
|
3215
|
+
fileType?: FileType;
|
|
3216
|
+
filters?: TransferFilters;
|
|
3217
|
+
destinationIds?: string[];
|
|
3218
|
+
outputColumns?: TransferColumn[];
|
|
3219
|
+
}
|
|
3220
|
+
|
|
3221
|
+
export declare interface Uri {
|
|
2778
3222
|
}
|
|
2779
3223
|
|
|
2780
|
-
export declare type
|
|
3224
|
+
export declare type UriUri = string;
|
|
2781
3225
|
|
|
2782
3226
|
export declare type Url = string;
|
|
2783
3227
|
|
|
@@ -2859,20 +3303,20 @@ export declare type WebhookSubscriptionListResponseAllOf = {
|
|
|
2859
3303
|
};
|
|
2860
3304
|
|
|
2861
3305
|
export declare type WebhookSubscriptionRequest = (unknown & {
|
|
2862
|
-
description?:
|
|
3306
|
+
description?: Description;
|
|
2863
3307
|
eventTypes?: string[];
|
|
2864
3308
|
isEnabled?: boolean;
|
|
2865
3309
|
target?: WebhookTarget;
|
|
2866
|
-
metadata?:
|
|
3310
|
+
metadata?: Metadata;
|
|
2867
3311
|
labelKey?: string;
|
|
2868
3312
|
labelValue?: string;
|
|
2869
3313
|
labels?: WebhookSubscriptionRequestLabels;
|
|
2870
3314
|
}) | (unknown & {
|
|
2871
|
-
description?:
|
|
3315
|
+
description?: Description;
|
|
2872
3316
|
eventTypes?: string[];
|
|
2873
3317
|
isEnabled?: boolean;
|
|
2874
3318
|
target?: WebhookTarget;
|
|
2875
|
-
metadata?:
|
|
3319
|
+
metadata?: Metadata;
|
|
2876
3320
|
labelKey?: string;
|
|
2877
3321
|
labelValue?: string;
|
|
2878
3322
|
labels?: WebhookSubscriptionRequestLabels;
|
|
@@ -2882,13 +3326,9 @@ export declare type WebhookSubscriptionRequestLabels = {
|
|
|
2882
3326
|
[key: string]: string;
|
|
2883
3327
|
};
|
|
2884
3328
|
|
|
2885
|
-
export declare type WebhookSubscriptionRequestMetadata = {
|
|
2886
|
-
[key: string]: unknown;
|
|
2887
|
-
};
|
|
2888
|
-
|
|
2889
3329
|
export declare interface WebhookSubscriptionResponse {
|
|
2890
3330
|
createdAt: string;
|
|
2891
|
-
description?:
|
|
3331
|
+
description?: Description;
|
|
2892
3332
|
eventTypes: string[];
|
|
2893
3333
|
isEnabled: boolean;
|
|
2894
3334
|
metadata?: WebhookSubscriptionResponseMetadata;
|
|
@@ -2904,38 +3344,36 @@ export declare type WebhookSubscriptionResponseLabels = {
|
|
|
2904
3344
|
[key: string]: string;
|
|
2905
3345
|
};
|
|
2906
3346
|
|
|
2907
|
-
export declare type WebhookSubscriptionResponseMetadata =
|
|
3347
|
+
export declare type WebhookSubscriptionResponseMetadata = Metadata & WebhookSubscriptionResponseMetadataAllOf;
|
|
3348
|
+
|
|
3349
|
+
export declare type WebhookSubscriptionResponseMetadataAllOf = {
|
|
2908
3350
|
secret?: string;
|
|
2909
3351
|
};
|
|
2910
3352
|
|
|
2911
3353
|
export declare type WebhookSubscriptionUpdateRequest = (unknown & {
|
|
2912
|
-
description?:
|
|
3354
|
+
description?: Description;
|
|
2913
3355
|
eventTypes?: string[];
|
|
2914
3356
|
isEnabled?: boolean;
|
|
2915
3357
|
target?: WebhookTarget;
|
|
2916
|
-
metadata?:
|
|
3358
|
+
metadata?: Metadata;
|
|
3359
|
+
labels?: WebhookSubscriptionUpdateRequestLabels;
|
|
2917
3360
|
labelKey?: string;
|
|
2918
3361
|
labelValue?: string;
|
|
2919
|
-
labels?: WebhookSubscriptionUpdateRequestLabels;
|
|
2920
3362
|
}) | (unknown & {
|
|
2921
|
-
description?:
|
|
3363
|
+
description?: Description;
|
|
2922
3364
|
eventTypes?: string[];
|
|
2923
3365
|
isEnabled?: boolean;
|
|
2924
3366
|
target?: WebhookTarget;
|
|
2925
|
-
metadata?:
|
|
3367
|
+
metadata?: Metadata;
|
|
3368
|
+
labels?: WebhookSubscriptionUpdateRequestLabels;
|
|
2926
3369
|
labelKey?: string;
|
|
2927
3370
|
labelValue?: string;
|
|
2928
|
-
labels?: WebhookSubscriptionUpdateRequestLabels;
|
|
2929
3371
|
});
|
|
2930
3372
|
|
|
2931
3373
|
export declare type WebhookSubscriptionUpdateRequestLabels = {
|
|
2932
3374
|
[key: string]: string;
|
|
2933
3375
|
};
|
|
2934
3376
|
|
|
2935
|
-
export declare type WebhookSubscriptionUpdateRequestMetadata = {
|
|
2936
|
-
[key: string]: unknown;
|
|
2937
|
-
};
|
|
2938
|
-
|
|
2939
3377
|
export declare interface WebhookTarget {
|
|
2940
3378
|
url: Url;
|
|
2941
3379
|
headers?: WebhookTargetHeaders;
|
|
@@ -2994,67 +3432,16 @@ export declare interface X402ExactSolanaPayload {
|
|
|
2994
3432
|
transaction: string;
|
|
2995
3433
|
}
|
|
2996
3434
|
|
|
2997
|
-
export declare
|
|
2998
|
-
x402Version: X402Version;
|
|
2999
|
-
scheme: X402PaymentPayloadScheme;
|
|
3000
|
-
network: X402PaymentPayloadNetwork;
|
|
3001
|
-
payload: X402PaymentPayloadPayload;
|
|
3002
|
-
}
|
|
3003
|
-
|
|
3004
|
-
export declare type X402PaymentPayloadNetwork = (typeof X402PaymentPayloadNetwork)[keyof typeof X402PaymentPayloadNetwork];
|
|
3005
|
-
|
|
3006
|
-
export declare const X402PaymentPayloadNetwork: {
|
|
3007
|
-
readonly "base-sepolia": "base-sepolia";
|
|
3008
|
-
readonly base: "base";
|
|
3009
|
-
readonly "solana-devnet": "solana-devnet";
|
|
3010
|
-
readonly solana: "solana";
|
|
3011
|
-
};
|
|
3012
|
-
|
|
3013
|
-
export declare type X402PaymentPayloadPayload = X402ExactEvmPayload | X402ExactSolanaPayload;
|
|
3435
|
+
export declare type X402PaymentPayload = X402V1PaymentPayload | X402V2PaymentPayload;
|
|
3014
3436
|
|
|
3015
|
-
export declare type
|
|
3016
|
-
|
|
3017
|
-
export declare const X402PaymentPayloadScheme: {
|
|
3018
|
-
readonly exact: "exact";
|
|
3019
|
-
};
|
|
3437
|
+
export declare type X402PaymentRequirements = X402V1PaymentRequirements | X402V2PaymentRequirements;
|
|
3020
3438
|
|
|
3021
|
-
export declare interface
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
resource: Url;
|
|
3026
|
-
description: string;
|
|
3027
|
-
mimeType: string;
|
|
3028
|
-
outputSchema?: X402PaymentRequirementsOutputSchema;
|
|
3029
|
-
payTo: string;
|
|
3030
|
-
maxTimeoutSeconds: number;
|
|
3031
|
-
asset: string;
|
|
3032
|
-
extra?: X402PaymentRequirementsExtra;
|
|
3439
|
+
export declare interface X402ResourceInfo {
|
|
3440
|
+
url?: string;
|
|
3441
|
+
description?: Description;
|
|
3442
|
+
mimeType?: string;
|
|
3033
3443
|
}
|
|
3034
3444
|
|
|
3035
|
-
export declare type X402PaymentRequirementsExtra = {
|
|
3036
|
-
[key: string]: unknown;
|
|
3037
|
-
};
|
|
3038
|
-
|
|
3039
|
-
export declare type X402PaymentRequirementsNetwork = (typeof X402PaymentRequirementsNetwork)[keyof typeof X402PaymentRequirementsNetwork];
|
|
3040
|
-
|
|
3041
|
-
export declare const X402PaymentRequirementsNetwork: {
|
|
3042
|
-
readonly "base-sepolia": "base-sepolia";
|
|
3043
|
-
readonly base: "base";
|
|
3044
|
-
readonly "solana-devnet": "solana-devnet";
|
|
3045
|
-
readonly solana: "solana";
|
|
3046
|
-
};
|
|
3047
|
-
|
|
3048
|
-
export declare type X402PaymentRequirementsOutputSchema = {
|
|
3049
|
-
[key: string]: unknown;
|
|
3050
|
-
};
|
|
3051
|
-
|
|
3052
|
-
export declare type X402PaymentRequirementsScheme = (typeof X402PaymentRequirementsScheme)[keyof typeof X402PaymentRequirementsScheme];
|
|
3053
|
-
|
|
3054
|
-
export declare const X402PaymentRequirementsScheme: {
|
|
3055
|
-
readonly exact: "exact";
|
|
3056
|
-
};
|
|
3057
|
-
|
|
3058
3445
|
export declare type X402SettleErrorReason = (typeof X402SettleErrorReason)[keyof typeof X402SettleErrorReason];
|
|
3059
3446
|
|
|
3060
3447
|
export declare const X402SettleErrorReason: {
|
|
@@ -3065,16 +3452,51 @@ export declare const X402SettleErrorReason: {
|
|
|
3065
3452
|
readonly invalid_payment_requirements: "invalid_payment_requirements";
|
|
3066
3453
|
readonly invalid_payload: "invalid_payload";
|
|
3067
3454
|
readonly invalid_exact_evm_payload_authorization_value: "invalid_exact_evm_payload_authorization_value";
|
|
3455
|
+
readonly invalid_exact_evm_payload_authorization_value_too_low: "invalid_exact_evm_payload_authorization_value_too_low";
|
|
3068
3456
|
readonly invalid_exact_evm_payload_authorization_valid_after: "invalid_exact_evm_payload_authorization_valid_after";
|
|
3069
3457
|
readonly invalid_exact_evm_payload_authorization_valid_before: "invalid_exact_evm_payload_authorization_valid_before";
|
|
3070
3458
|
readonly invalid_exact_evm_payload_authorization_typed_data_message: "invalid_exact_evm_payload_authorization_typed_data_message";
|
|
3071
3459
|
readonly invalid_exact_evm_payload_authorization_from_address_kyt: "invalid_exact_evm_payload_authorization_from_address_kyt";
|
|
3072
3460
|
readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
|
|
3461
|
+
readonly invalid_exact_evm_payload_signature: "invalid_exact_evm_payload_signature";
|
|
3073
3462
|
readonly invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address";
|
|
3463
|
+
readonly invalid_exact_svm_payload_transaction: "invalid_exact_svm_payload_transaction";
|
|
3464
|
+
readonly invalid_exact_svm_payload_transaction_amount_mismatch: "invalid_exact_svm_payload_transaction_amount_mismatch";
|
|
3465
|
+
readonly invalid_exact_svm_payload_transaction_create_ata_instruction: "invalid_exact_svm_payload_transaction_create_ata_instruction";
|
|
3466
|
+
readonly invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee: "invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee";
|
|
3467
|
+
readonly invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset: "invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset";
|
|
3468
|
+
readonly invalid_exact_svm_payload_transaction_instructions: "invalid_exact_svm_payload_transaction_instructions";
|
|
3469
|
+
readonly invalid_exact_svm_payload_transaction_instructions_length: "invalid_exact_svm_payload_transaction_instructions_length";
|
|
3470
|
+
readonly invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction: "invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction";
|
|
3471
|
+
readonly invalid_exact_svm_payload_transaction_instructions_compute_price_instruction: "invalid_exact_svm_payload_transaction_instructions_compute_price_instruction";
|
|
3472
|
+
readonly invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high: "invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high";
|
|
3473
|
+
readonly invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked: "invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked";
|
|
3474
|
+
readonly invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked: "invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked";
|
|
3475
|
+
readonly invalid_exact_svm_payload_transaction_not_a_transfer_instruction: "invalid_exact_svm_payload_transaction_not_a_transfer_instruction";
|
|
3476
|
+
readonly invalid_exact_svm_payload_transaction_cannot_derive_receiver_ata: "invalid_exact_svm_payload_transaction_cannot_derive_receiver_ata";
|
|
3477
|
+
readonly invalid_exact_svm_payload_transaction_receiver_ata_not_found: "invalid_exact_svm_payload_transaction_receiver_ata_not_found";
|
|
3478
|
+
readonly invalid_exact_svm_payload_transaction_sender_ata_not_found: "invalid_exact_svm_payload_transaction_sender_ata_not_found";
|
|
3479
|
+
readonly invalid_exact_svm_payload_transaction_simulation_failed: "invalid_exact_svm_payload_transaction_simulation_failed";
|
|
3480
|
+
readonly invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata: "invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata";
|
|
3481
|
+
readonly invalid_exact_svm_payload_transaction_fee_payer_included_in_instruction_accounts: "invalid_exact_svm_payload_transaction_fee_payer_included_in_instruction_accounts";
|
|
3482
|
+
readonly invalid_exact_svm_payload_transaction_fee_payer_transferring_funds: "invalid_exact_svm_payload_transaction_fee_payer_transferring_funds";
|
|
3483
|
+
readonly settle_exact_evm_transaction_confirmation_timed_out: "settle_exact_evm_transaction_confirmation_timed_out";
|
|
3484
|
+
readonly settle_exact_node_failure: "settle_exact_node_failure";
|
|
3485
|
+
readonly settle_exact_failed_onchain: "settle_exact_failed_onchain";
|
|
3074
3486
|
readonly settle_exact_svm_block_height_exceeded: "settle_exact_svm_block_height_exceeded";
|
|
3075
3487
|
readonly settle_exact_svm_transaction_confirmation_timed_out: "settle_exact_svm_transaction_confirmation_timed_out";
|
|
3076
3488
|
};
|
|
3077
3489
|
|
|
3490
|
+
export declare type X402SettleErrorResponse = X402SettlePaymentRejection;
|
|
3491
|
+
|
|
3492
|
+
export declare interface X402SettlePaymentRejection {
|
|
3493
|
+
success: boolean;
|
|
3494
|
+
errorReason: X402SettleErrorReason;
|
|
3495
|
+
payer?: string;
|
|
3496
|
+
transaction?: string;
|
|
3497
|
+
network?: string;
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3078
3500
|
export declare type X402SettleResponseResponse = {
|
|
3079
3501
|
success: boolean;
|
|
3080
3502
|
errorReason?: X402SettleErrorReason;
|
|
@@ -3101,6 +3523,10 @@ export declare const X402SupportedPaymentKindNetwork: {
|
|
|
3101
3523
|
readonly base: "base";
|
|
3102
3524
|
readonly "solana-devnet": "solana-devnet";
|
|
3103
3525
|
readonly solana: "solana";
|
|
3526
|
+
readonly "eip155:8453": "eip155:8453";
|
|
3527
|
+
readonly "eip155:84532": "eip155:84532";
|
|
3528
|
+
readonly "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
3529
|
+
readonly "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
3104
3530
|
};
|
|
3105
3531
|
|
|
3106
3532
|
export declare type X402SupportedPaymentKindScheme = (typeof X402SupportedPaymentKindScheme)[keyof typeof X402SupportedPaymentKindScheme];
|
|
@@ -3111,8 +3537,111 @@ export declare const X402SupportedPaymentKindScheme: {
|
|
|
3111
3537
|
|
|
3112
3538
|
export declare type X402SupportedPaymentKindsResponseResponse = {
|
|
3113
3539
|
kinds: X402SupportedPaymentKind[];
|
|
3540
|
+
extensions: string[];
|
|
3541
|
+
signers: X402SupportedPaymentKindsResponseResponseSigners;
|
|
3542
|
+
};
|
|
3543
|
+
|
|
3544
|
+
export declare type X402SupportedPaymentKindsResponseResponseSigners = {
|
|
3545
|
+
[key: string]: string[];
|
|
3114
3546
|
};
|
|
3115
3547
|
|
|
3548
|
+
export declare interface X402V1PaymentPayload {
|
|
3549
|
+
x402Version: X402Version;
|
|
3550
|
+
scheme: X402V1PaymentPayloadScheme;
|
|
3551
|
+
network: X402V1PaymentPayloadNetwork;
|
|
3552
|
+
payload: X402V1PaymentPayloadPayload;
|
|
3553
|
+
}
|
|
3554
|
+
|
|
3555
|
+
export declare type X402V1PaymentPayloadNetwork = (typeof X402V1PaymentPayloadNetwork)[keyof typeof X402V1PaymentPayloadNetwork];
|
|
3556
|
+
|
|
3557
|
+
export declare const X402V1PaymentPayloadNetwork: {
|
|
3558
|
+
readonly "base-sepolia": "base-sepolia";
|
|
3559
|
+
readonly base: "base";
|
|
3560
|
+
readonly "solana-devnet": "solana-devnet";
|
|
3561
|
+
readonly solana: "solana";
|
|
3562
|
+
};
|
|
3563
|
+
|
|
3564
|
+
export declare type X402V1PaymentPayloadPayload = X402ExactEvmPayload | X402ExactSolanaPayload;
|
|
3565
|
+
|
|
3566
|
+
export declare type X402V1PaymentPayloadScheme = (typeof X402V1PaymentPayloadScheme)[keyof typeof X402V1PaymentPayloadScheme];
|
|
3567
|
+
|
|
3568
|
+
export declare const X402V1PaymentPayloadScheme: {
|
|
3569
|
+
readonly exact: "exact";
|
|
3570
|
+
};
|
|
3571
|
+
|
|
3572
|
+
export declare interface X402V1PaymentRequirements {
|
|
3573
|
+
scheme: X402V1PaymentRequirementsScheme;
|
|
3574
|
+
network: X402V1PaymentRequirementsNetwork;
|
|
3575
|
+
maxAmountRequired: string;
|
|
3576
|
+
resource: string;
|
|
3577
|
+
description: Description;
|
|
3578
|
+
mimeType: string;
|
|
3579
|
+
outputSchema?: X402V1PaymentRequirementsOutputSchema;
|
|
3580
|
+
payTo: string;
|
|
3581
|
+
maxTimeoutSeconds: number;
|
|
3582
|
+
asset: string;
|
|
3583
|
+
extra?: X402V1PaymentRequirementsExtra;
|
|
3584
|
+
}
|
|
3585
|
+
|
|
3586
|
+
export declare type X402V1PaymentRequirementsExtra = {
|
|
3587
|
+
[key: string]: unknown;
|
|
3588
|
+
};
|
|
3589
|
+
|
|
3590
|
+
export declare type X402V1PaymentRequirementsNetwork = (typeof X402V1PaymentRequirementsNetwork)[keyof typeof X402V1PaymentRequirementsNetwork];
|
|
3591
|
+
|
|
3592
|
+
export declare const X402V1PaymentRequirementsNetwork: {
|
|
3593
|
+
readonly "base-sepolia": "base-sepolia";
|
|
3594
|
+
readonly base: "base";
|
|
3595
|
+
readonly "solana-devnet": "solana-devnet";
|
|
3596
|
+
readonly solana: "solana";
|
|
3597
|
+
};
|
|
3598
|
+
|
|
3599
|
+
export declare type X402V1PaymentRequirementsOutputSchema = {
|
|
3600
|
+
[key: string]: unknown;
|
|
3601
|
+
};
|
|
3602
|
+
|
|
3603
|
+
export declare type X402V1PaymentRequirementsScheme = (typeof X402V1PaymentRequirementsScheme)[keyof typeof X402V1PaymentRequirementsScheme];
|
|
3604
|
+
|
|
3605
|
+
export declare const X402V1PaymentRequirementsScheme: {
|
|
3606
|
+
readonly exact: "exact";
|
|
3607
|
+
};
|
|
3608
|
+
|
|
3609
|
+
export declare interface X402V2PaymentPayload {
|
|
3610
|
+
x402Version: X402Version;
|
|
3611
|
+
payload: X402V2PaymentPayloadPayload;
|
|
3612
|
+
accepted: X402V2PaymentRequirements;
|
|
3613
|
+
resource?: X402ResourceInfo;
|
|
3614
|
+
extensions?: X402V2PaymentPayloadExtensions;
|
|
3615
|
+
}
|
|
3616
|
+
|
|
3617
|
+
export declare type X402V2PaymentPayloadExtensions = {
|
|
3618
|
+
[key: string]: unknown;
|
|
3619
|
+
};
|
|
3620
|
+
|
|
3621
|
+
export declare type X402V2PaymentPayloadPayload = X402ExactEvmPayload | X402ExactSolanaPayload;
|
|
3622
|
+
|
|
3623
|
+
export declare interface X402V2PaymentRequirements {
|
|
3624
|
+
scheme: X402V2PaymentRequirementsScheme;
|
|
3625
|
+
network: string;
|
|
3626
|
+
asset: string;
|
|
3627
|
+
amount: string;
|
|
3628
|
+
payTo: string;
|
|
3629
|
+
maxTimeoutSeconds: number;
|
|
3630
|
+
extra?: X402V2PaymentRequirementsExtra;
|
|
3631
|
+
}
|
|
3632
|
+
|
|
3633
|
+
export declare type X402V2PaymentRequirementsExtra = {
|
|
3634
|
+
[key: string]: unknown;
|
|
3635
|
+
};
|
|
3636
|
+
|
|
3637
|
+
export declare type X402V2PaymentRequirementsScheme = (typeof X402V2PaymentRequirementsScheme)[keyof typeof X402V2PaymentRequirementsScheme];
|
|
3638
|
+
|
|
3639
|
+
export declare const X402V2PaymentRequirementsScheme: {
|
|
3640
|
+
readonly exact: "exact";
|
|
3641
|
+
};
|
|
3642
|
+
|
|
3643
|
+
export declare type X402VerifyInvalidErrorResponse = X402VerifyPaymentRejection;
|
|
3644
|
+
|
|
3116
3645
|
export declare type X402VerifyInvalidReason = (typeof X402VerifyInvalidReason)[keyof typeof X402VerifyInvalidReason];
|
|
3117
3646
|
|
|
3118
3647
|
export declare const X402VerifyInvalidReason: {
|
|
@@ -3153,6 +3682,12 @@ export declare const X402VerifyInvalidReason: {
|
|
|
3153
3682
|
readonly invalid_exact_svm_payload_transaction_fee_payer_transferring_funds: "invalid_exact_svm_payload_transaction_fee_payer_transferring_funds";
|
|
3154
3683
|
};
|
|
3155
3684
|
|
|
3685
|
+
export declare interface X402VerifyPaymentRejection {
|
|
3686
|
+
isValid: boolean;
|
|
3687
|
+
invalidReason: X402VerifyInvalidReason;
|
|
3688
|
+
payer?: string;
|
|
3689
|
+
}
|
|
3690
|
+
|
|
3156
3691
|
export declare type X402VerifyResponseResponse = {
|
|
3157
3692
|
isValid: boolean;
|
|
3158
3693
|
invalidReason?: X402VerifyInvalidReason;
|
|
@@ -3163,8 +3698,16 @@ export declare type X402Version = (typeof X402Version)[keyof typeof X402Version]
|
|
|
3163
3698
|
|
|
3164
3699
|
export declare const X402Version: {
|
|
3165
3700
|
readonly NUMBER_1: 1;
|
|
3701
|
+
readonly NUMBER_2: 2;
|
|
3166
3702
|
};
|
|
3167
3703
|
|
|
3704
|
+
export declare interface XConfig {
|
|
3705
|
+
enabled?: boolean;
|
|
3706
|
+
clientId?: string;
|
|
3707
|
+
createdAt?: string;
|
|
3708
|
+
updatedAt?: string;
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3168
3711
|
export declare type XDeveloperAuthParameter = string;
|
|
3169
3712
|
|
|
3170
3713
|
export declare type XWalletAuthParameter = string;
|