@coinbase/cdp-api-client 0.0.42 → 0.0.44

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.
@@ -53,39 +53,25 @@ export declare const AbiStateMutability: {
53
53
  };
54
54
 
55
55
  export declare interface Account {
56
- id: string;
57
- name: string;
58
- currency: string;
56
+ accountId: AccountId;
59
57
  type: AccountType;
60
- availableBalance: AccountAvailableBalance;
61
- hold: AccountHold;
58
+ owner: Owner;
59
+ name?: string;
60
+ projectIds?: ProjectId[];
62
61
  createdAt: string;
63
62
  updatedAt: string;
64
63
  }
65
64
 
66
- export declare type AccountAvailableBalance = {
67
- value: string;
68
- currency: string;
69
- };
70
-
71
- export declare type AccountHold = {
72
- value: string;
73
- currency: string;
74
- };
65
+ export declare type AccountId = string;
75
66
 
76
67
  export declare interface AccountSource {
77
- type: AccountSourceType;
78
68
  accountId: string;
69
+ currency: string;
79
70
  }
80
71
 
81
- export declare type AccountSourceType = (typeof AccountSourceType)[keyof typeof AccountSourceType];
82
-
83
- export declare const AccountSourceType: {
84
- readonly account: "account";
85
- };
86
-
87
72
  export declare interface AccountTarget {
88
73
  accountId: string;
74
+ currency: string;
89
75
  }
90
76
 
91
77
  export declare interface AccountTokenAddressesResponse {
@@ -97,8 +83,9 @@ export declare interface AccountTokenAddressesResponse {
97
83
  export declare type AccountType = (typeof AccountType)[keyof typeof AccountType];
98
84
 
99
85
  export declare const AccountType: {
100
- readonly crypto: "crypto";
101
- readonly fiat: "fiat";
86
+ readonly prime: "prime";
87
+ readonly business: "business";
88
+ readonly cdp: "cdp";
102
89
  };
103
90
 
104
91
  export declare interface AchDetails {
@@ -160,7 +147,23 @@ export declare class APIError extends Error {
160
147
 
161
148
  export declare type APIErrorType = ErrorType | HttpErrorType;
162
149
 
163
- export declare type AuthenticationMethod = EmailAuthentication | SmsAuthentication | DeveloperJWTAuthentication;
150
+ export declare interface Asset {
151
+ assetId: AssetId;
152
+ assetType: AssetType;
153
+ name: string;
154
+ decimals: number;
155
+ }
156
+
157
+ export declare type AssetId = string;
158
+
159
+ export declare type AssetType = (typeof AssetType)[keyof typeof AssetType];
160
+
161
+ export declare const AssetType: {
162
+ readonly fiat: "fiat";
163
+ readonly crypto: "crypto";
164
+ };
165
+
166
+ export declare type AuthenticationMethod = EmailAuthentication | SmsAuthentication | DeveloperJWTAuthentication | OAuth2Authentication;
164
167
 
165
168
  export declare type AuthenticationMethods = AuthenticationMethod[];
166
169
 
@@ -176,6 +179,52 @@ export declare interface AuthManager {
176
179
 
177
180
  export declare type BadGatewayErrorResponse = Error_2;
178
181
 
182
+ export declare interface Balance {
183
+ asset: Asset;
184
+ availableAmount: string;
185
+ totalAmount: string;
186
+ }
187
+
188
+ export declare interface Balances {
189
+ balances: Balance[];
190
+ }
191
+
192
+ export declare interface Business {
193
+ selfOwned?: boolean;
194
+ businessLegalName?: string;
195
+ }
196
+
197
+ export declare interface CapabilitiesMap {
198
+ guestCheckout?: CapabilityStatus;
199
+ sendFiat?: CapabilityStatus;
200
+ receiveFiat?: CapabilityStatus;
201
+ sendCrypto?: CapabilityStatus;
202
+ receiveCrypto?: CapabilityStatus;
203
+ trade?: CapabilityStatus;
204
+ }
205
+
206
+ export declare interface CapabilitiesMapRequest {
207
+ guestCheckout?: CapabilityRequested;
208
+ sendFiat?: CapabilityRequested;
209
+ receiveFiat?: CapabilityRequested;
210
+ sendCrypto?: CapabilityRequested;
211
+ receiveCrypto?: CapabilityRequested;
212
+ trade?: CapabilityRequested;
213
+ }
214
+
215
+ export declare interface CapabilityRequested {
216
+ requested: boolean;
217
+ }
218
+
219
+ export declare type CapabilityStatus = (typeof CapabilityStatus)[keyof typeof CapabilityStatus];
220
+
221
+ export declare const CapabilityStatus: {
222
+ readonly enabled: "enabled";
223
+ readonly restricted: "restricted";
224
+ readonly disabled: "disabled";
225
+ readonly pending: "pending";
226
+ };
227
+
179
228
  declare const cdpApiClient: <T>(config: AxiosRequestConfig, idempotencyKey?: string) => Promise<T>;
180
229
 
181
230
  export declare type CdpOptions = {
@@ -225,10 +274,10 @@ export declare type CommonSwapResponseIssuesBalance = {
225
274
  export declare const configureCdpApiClient: (options: CdpOptions) => void;
226
275
 
227
276
  export declare interface CoolPaymentMethod {
228
- id?: string;
229
- type?: CoolPaymentMethodType;
277
+ id: string;
278
+ type: CoolPaymentMethodType;
279
+ currency: string;
230
280
  name?: string;
231
- currency?: string;
232
281
  verified?: boolean;
233
282
  allowDeposit?: boolean;
234
283
  allowWithdraw?: boolean;
@@ -243,6 +292,20 @@ export declare const CoolPaymentMethodType: {
243
292
  readonly fedwire: "fedwire";
244
293
  };
245
294
 
295
+ export declare interface CreateAccountRequest {
296
+ type: CreateAccountRequestType;
297
+ owner: string;
298
+ name?: string;
299
+ projectIds?: ProjectId[];
300
+ }
301
+
302
+ export declare type CreateAccountRequestType = (typeof CreateAccountRequestType)[keyof typeof CreateAccountRequestType];
303
+
304
+ export declare const CreateAccountRequestType: {
305
+ readonly entity: "entity";
306
+ readonly customer: "customer";
307
+ };
308
+
246
309
  export declare const createEndUserEvmAccount: (projectId: string, userId: string, createEndUserEvmAccountBody: CreateEndUserEvmAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
247
310
 
248
311
  export declare type CreateEndUserEvmAccountBody = {
@@ -342,7 +405,7 @@ export declare interface CreateTransferQuote {
342
405
  amountType?: CreateTransferQuoteAmountType;
343
406
  source: Source;
344
407
  target: Target;
345
- note?: string;
408
+ metadata?: Metadata;
346
409
  }
347
410
 
348
411
  export declare type CreateTransferQuoteAmountType = (typeof CreateTransferQuoteAmountType)[keyof typeof CreateTransferQuoteAmountType];
@@ -371,6 +434,68 @@ export declare type CryptoRailNetworksItem = {
371
434
  contractAddress?: string;
372
435
  };
373
436
 
437
+ export declare type Customer = CustomerAllOf & CustomerBase & CustomerAllOfTwo & Required<Pick<CustomerAllOf & CustomerBase & CustomerAllOfTwo, "capabilities" | "requirement" | "type">>;
438
+
439
+ export declare type CustomerAllOf = {
440
+ customerId: CustomerId;
441
+ };
442
+
443
+ export declare type CustomerAllOfTwo = {
444
+ type?: CustomerType;
445
+ capabilities?: CapabilitiesMap;
446
+ readonly requirement?: CustomerAllOfTwoRequirement;
447
+ };
448
+
449
+ export declare type CustomerAllOfTwoRequirement = Requirement & CustomerAllOfTwoRequirementAllOf;
450
+
451
+ export declare type CustomerAllOfTwoRequirementAllOf = {
452
+ [key: string]: unknown;
453
+ };
454
+
455
+ export declare type CustomerBase = (CustomerBaseOneOf & {
456
+ projectIds?: ProjectId[];
457
+ }) | (CustomerBaseOneOfTwo & {
458
+ projectIds?: ProjectId[];
459
+ });
460
+
461
+ export declare type CustomerBaseOneOf = {
462
+ individual: Individual;
463
+ };
464
+
465
+ export declare type CustomerBaseOneOfTwo = {
466
+ business: Business;
467
+ };
468
+
469
+ export declare type CustomerCreateRequest = CustomerCreateRequestAllOf & CustomerBase;
470
+
471
+ export declare type CustomerCreateRequestAllOf = {
472
+ customerId: CustomerId;
473
+ type: CustomerType;
474
+ capabilities?: CapabilitiesMapRequest;
475
+ };
476
+
477
+ export declare type CustomerId = string;
478
+
479
+ export declare type CustomerType = (typeof CustomerType)[keyof typeof CustomerType];
480
+
481
+ export declare const CustomerType: {
482
+ readonly individual: "individual";
483
+ readonly business: "business";
484
+ };
485
+
486
+ export declare type CustomerUpdateRequest = CustomerUpdateRequestAllOf & CustomerBase;
487
+
488
+ export declare type CustomerUpdateRequestAllOf = {
489
+ customerId: CustomerId;
490
+ capabilities?: CapabilitiesMapRequest;
491
+ };
492
+
493
+ export declare interface DateOfBirth {
494
+ day?: string;
495
+ month?: string;
496
+ year?: string;
497
+ }
498
+
374
499
  export declare interface DeveloperJWTAuthentication {
375
500
  type: DeveloperJWTAuthenticationType;
376
501
  kid: string;
@@ -383,6 +508,12 @@ export declare const DeveloperJWTAuthenticationType: {
383
508
  readonly jwt: "jwt";
384
509
  };
385
510
 
511
+ declare interface Document_2 {
512
+ frontFileId: FileId;
513
+ backFileId: FileId;
514
+ }
515
+ export { Document_2 as Document }
516
+
386
517
  export declare interface EIP712Domain {
387
518
  name?: string;
388
519
  version?: string;
@@ -431,6 +562,34 @@ export declare interface EndUser {
431
562
  createdAt: string;
432
563
  }
433
564
 
565
+ export declare interface Entity {
566
+ entityId: EntityId;
567
+ name: string;
568
+ productionEntityId?: string;
569
+ legalEntityId?: string | null;
570
+ status: EntityStatus;
571
+ type?: string;
572
+ capabilities: CapabilitiesMap;
573
+ createdAt: string;
574
+ otherInfo?: EntityOtherInfo;
575
+ }
576
+
577
+ export declare type EntityId = string;
578
+
579
+ export declare type EntityOtherInfo = {
580
+ [key: string]: unknown;
581
+ };
582
+
583
+ export declare type EntityStatus = (typeof EntityStatus)[keyof typeof EntityStatus];
584
+
585
+ export declare const EntityStatus: {
586
+ readonly active_without_kyb: "active_without_kyb";
587
+ readonly pending_kyb: "pending_kyb";
588
+ readonly documents_required: "documents_required";
589
+ readonly in_review: "in_review";
590
+ readonly active: "active";
591
+ };
592
+
434
593
  declare interface Error_2 {
435
594
  errorType: ErrorType;
436
595
  errorMessage: string;
@@ -527,6 +686,7 @@ export declare interface EvmCall {
527
686
  to: string;
528
687
  value: string;
529
688
  data: string;
689
+ overrideGasLimit?: string;
530
690
  }
531
691
 
532
692
  export declare interface EvmDataCondition {
@@ -730,6 +890,12 @@ export declare const EvmUserOperationStatus: {
730
890
  readonly failed: "failed";
731
891
  };
732
892
 
893
+ export declare interface ExchangeRate {
894
+ sourceCurrency: string;
895
+ targetCurrency: string;
896
+ rate: string;
897
+ }
898
+
733
899
  export declare const exportEndUserEvmAccount: (projectId: string, userId: string, exportEndUserEvmAccountBody: ExportEndUserEvmAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<ExportEndUserEvmAccount200>;
734
900
 
735
901
  export declare type ExportEndUserEvmAccount200 = {
@@ -793,6 +959,10 @@ export declare const FeeType: {
793
959
  readonly network_fee: "network_fee";
794
960
  };
795
961
 
962
+ export declare type FileId = string;
963
+
964
+ export declare type ForbiddenErrorResponse = Error_2;
965
+
796
966
  export declare type FromAmount = string;
797
967
 
798
968
  export declare type FromToken = string;
@@ -805,10 +975,11 @@ export declare interface FundTransfer {
805
975
  sourceAmount: SourceAmount;
806
976
  targetAmount: TargetAmount;
807
977
  fees: FeeDetails[];
978
+ exchangeRate?: ExchangeRate;
808
979
  sourceDepositInstructions?: SourceDepositInstructions;
809
980
  createdAt: string;
810
981
  updatedAt: string;
811
- note?: string;
982
+ metadata?: Metadata;
812
983
  }
813
984
 
814
985
  export declare type GasPrice = string;
@@ -882,11 +1053,77 @@ export declare type IdlTypesItem = {
882
1053
  [key: string]: unknown;
883
1054
  };
884
1055
 
1056
+ export declare interface Individual {
1057
+ fullName?: string;
1058
+ email?: string;
1059
+ phone?: string;
1060
+ address?: PhysicalAddress;
1061
+ dateOfBirth?: DateOfBirth;
1062
+ sourceOfFunds?: IndividualSourceOfFunds;
1063
+ industry?: IndividualIndustry;
1064
+ cryptoActivity?: IndividualCryptoActivity;
1065
+ connectionToPolitician?: IndividualConnectionToPolitician;
1066
+ taxResidency?: string;
1067
+ taxNumber?: string;
1068
+ nationalities?: string[];
1069
+ verification?: IndividualVerification;
1070
+ }
1071
+
1072
+ export declare type IndividualConnectionToPolitician = (typeof IndividualConnectionToPolitician)[keyof typeof IndividualConnectionToPolitician];
1073
+
1074
+ export declare const IndividualConnectionToPolitician: {
1075
+ readonly none: "none";
1076
+ readonly self_pep: "self_pep";
1077
+ readonly family_of_pep: "family_of_pep";
1078
+ readonly associate_of_pep: "associate_of_pep";
1079
+ readonly unknown: "unknown";
1080
+ };
1081
+
1082
+ export declare type IndividualCryptoActivity = (typeof IndividualCryptoActivity)[keyof typeof IndividualCryptoActivity];
1083
+
1084
+ export declare const IndividualCryptoActivity: {
1085
+ readonly trading: "trading";
1086
+ readonly mining: "mining";
1087
+ readonly other: "other";
1088
+ };
1089
+
1090
+ export declare type IndividualIndustry = (typeof IndividualIndustry)[keyof typeof IndividualIndustry];
1091
+
1092
+ export declare const IndividualIndustry: {
1093
+ readonly finance: "finance";
1094
+ readonly technology: "technology";
1095
+ readonly other: "other";
1096
+ };
1097
+
1098
+ export declare type IndividualSourceOfFunds = (typeof IndividualSourceOfFunds)[keyof typeof IndividualSourceOfFunds];
1099
+
1100
+ export declare const IndividualSourceOfFunds: {
1101
+ readonly employment_income: "employment_income";
1102
+ readonly other: "other";
1103
+ };
1104
+
1105
+ export declare type IndividualVerification = {
1106
+ document?: IndividualVerificationDocument;
1107
+ additionalDocument?: IndividualVerificationAdditionalDocument;
1108
+ };
1109
+
1110
+ export declare type IndividualVerificationAdditionalDocument = (Document_2 & IndividualVerificationAdditionalDocumentAllOf) | null;
1111
+
1112
+ export declare type IndividualVerificationAdditionalDocumentAllOf = {
1113
+ [key: string]: unknown;
1114
+ };
1115
+
1116
+ export declare type IndividualVerificationDocument = Document_2 & IndividualVerificationDocumentAllOf;
1117
+
1118
+ export declare type IndividualVerificationDocumentAllOf = {
1119
+ [key: string]: unknown;
1120
+ };
1121
+
885
1122
  export declare const initiateAuthentication: (projectId: string, initiateAuthenticationRequest: InitiateAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<InitiateAuthenticationResponseWrapper>;
886
1123
 
887
- export declare type InitiateAuthenticationRequest = InitiateEmailAuthenticationRequest | InitiateSmsAuthenticationRequest;
1124
+ export declare type InitiateAuthenticationRequest = InitiateEmailAuthenticationRequest | InitiateSmsAuthenticationRequest | InitiateOAuthAuthenticationRequest;
888
1125
 
889
- export declare type InitiateAuthenticationResponseWrapper = InitiateEmailAuthenticationResponse | InitiateSmsAuthenticationResponse;
1126
+ export declare type InitiateAuthenticationResponseWrapper = InitiateEmailAuthenticationResponse | InitiateSmsAuthenticationResponse | InitiateOAuthAuthenticationResponse;
890
1127
 
891
1128
  export declare type InitiateAuthenticationResult = NonNullable<Awaited<ReturnType<typeof initiateAuthentication>>>;
892
1129
 
@@ -918,6 +1155,16 @@ export declare interface InitiateEmailAuthenticationResponse {
918
1155
  nextStep: InitiateEmailAuthenticationNextStep;
919
1156
  }
920
1157
 
1158
+ export declare interface InitiateOAuthAuthenticationRequest {
1159
+ type: OAuth2ProviderType;
1160
+ redirectUrl: string;
1161
+ }
1162
+
1163
+ export declare interface InitiateOAuthAuthenticationResponse {
1164
+ flowId: string;
1165
+ authUrl: string;
1166
+ }
1167
+
921
1168
  export declare interface InitiateSmsAuthenticationNextStep {
922
1169
  type: InitiateSmsAuthenticationNextStepType;
923
1170
  url: string;
@@ -950,6 +1197,31 @@ export declare type InternalServerErrorResponse = Error_2;
950
1197
 
951
1198
  export declare type InvalidSQLQueryErrorResponse = Error_2;
952
1199
 
1200
+ export declare interface Invitation {
1201
+ inviteId: InvitationId;
1202
+ entityId: EntityId;
1203
+ email: string;
1204
+ role: Role;
1205
+ status: InvitationStatus;
1206
+ invitedAt: string;
1207
+ invitedByMemberId: TeamMemberId;
1208
+ acceptedAt?: string | null;
1209
+ rejectedAt?: string | null;
1210
+ expiresAt: string;
1211
+ }
1212
+
1213
+ export declare type InvitationId = string;
1214
+
1215
+ export declare type InvitationStatus = (typeof InvitationStatus)[keyof typeof InvitationStatus];
1216
+
1217
+ export declare const InvitationStatus: {
1218
+ readonly pending: "pending";
1219
+ readonly accepted: "accepted";
1220
+ readonly rejected: "rejected";
1221
+ readonly canceled: "canceled";
1222
+ readonly expired: "expired";
1223
+ };
1224
+
953
1225
  export declare function isOpenAPIError(obj: unknown): obj is Error_2;
954
1226
 
955
1227
  export declare type KnownAbiType = (typeof KnownAbiType)[keyof typeof KnownAbiType];
@@ -986,27 +1258,24 @@ export declare const LimitPeriod: {
986
1258
  readonly biweekly: "biweekly";
987
1259
  };
988
1260
 
989
- export declare const listEndUsers: (params?: ListEndUsersParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<ListEndUsers200>;
990
-
991
- export declare type ListEndUsers200 = ListEndUsers200AllOf & ListResponse;
1261
+ export declare interface LinkableEntity {
1262
+ entityId: EntityId;
1263
+ name: string;
1264
+ type: LinkableEntityType;
1265
+ }
992
1266
 
993
- export declare type ListEndUsers200AllOf = {
994
- endUsers: EndUser[];
995
- };
1267
+ export declare type LinkableEntityType = (typeof LinkableEntityType)[keyof typeof LinkableEntityType];
996
1268
 
997
- export declare type ListEndUsersParams = {
998
- pageSize?: number;
999
- pageToken?: string;
1000
- sort?: ListEndUsersSortItem[];
1269
+ export declare const LinkableEntityType: {
1270
+ readonly business: "business";
1271
+ readonly prime: "prime";
1001
1272
  };
1002
1273
 
1003
- export declare type ListEndUsersResult = NonNullable<Awaited<ReturnType<typeof listEndUsers>>>;
1004
-
1005
- export declare type ListEndUsersSortItem = (typeof ListEndUsersSortItem)[keyof typeof ListEndUsersSortItem];
1274
+ export declare type LinkAccountType = (typeof LinkAccountType)[keyof typeof LinkAccountType];
1006
1275
 
1007
- export declare const ListEndUsersSortItem: {
1008
- readonly "createdAt=asc": "createdAt=asc";
1009
- readonly "createdAt=desc": "createdAt=desc";
1276
+ export declare const LinkAccountType: {
1277
+ readonly business: "business";
1278
+ readonly prime: "prime";
1010
1279
  };
1011
1280
 
1012
1281
  export declare type ListEvmTokenBalancesNetwork = (typeof ListEvmTokenBalancesNetwork)[keyof typeof ListEvmTokenBalancesNetwork];
@@ -1043,10 +1312,18 @@ export declare type ListSpendPermissionsWithEndUserAccountParams = {
1043
1312
 
1044
1313
  export declare type ListSpendPermissionsWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof listSpendPermissionsWithEndUserAccount>>>;
1045
1314
 
1046
- export declare const logOutEndUser: (projectId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
1315
+ export declare const logOutEndUser: (projectId: string, logOutEndUserBody?: LogOutEndUserBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
1316
+
1317
+ export declare type LogOutEndUserBody = {
1318
+ refreshToken?: string;
1319
+ };
1047
1320
 
1048
1321
  export declare type LogOutEndUserResult = NonNullable<Awaited<ReturnType<typeof logOutEndUser>>>;
1049
1322
 
1323
+ export declare interface Metadata {
1324
+ [key: string]: unknown;
1325
+ }
1326
+
1050
1327
  export declare interface MintAddressCriterion {
1051
1328
  type: MintAddressCriterionType;
1052
1329
  addresses: string[];
@@ -1106,6 +1383,30 @@ export declare const Network: {
1106
1383
  readonly unichain: "unichain";
1107
1384
  };
1108
1385
 
1386
+ export declare interface OAuth2Authentication {
1387
+ type: OAuth2ProviderType;
1388
+ sub: string;
1389
+ email?: string;
1390
+ }
1391
+
1392
+ export declare type OAuth2ErrorCode = (typeof OAuth2ErrorCode)[keyof typeof OAuth2ErrorCode];
1393
+
1394
+ export declare const OAuth2ErrorCode: {
1395
+ readonly access_denied: "access_denied";
1396
+ readonly invalid_request: "invalid_request";
1397
+ readonly invalid_client: "invalid_client";
1398
+ readonly invalid_grant: "invalid_grant";
1399
+ readonly unauthorized_client: "unauthorized_client";
1400
+ readonly unsupported_grant_type: "unsupported_grant_type";
1401
+ readonly invalid_scope: "invalid_scope";
1402
+ };
1403
+
1404
+ export declare type OAuth2ProviderType = (typeof OAuth2ProviderType)[keyof typeof OAuth2ProviderType];
1405
+
1406
+ export declare const OAuth2ProviderType: {
1407
+ readonly google: "google";
1408
+ };
1409
+
1109
1410
  export declare interface OnchainAddress {
1110
1411
  address: string;
1111
1412
  network: Network;
@@ -1202,6 +1503,7 @@ export declare interface OnrampOrder {
1202
1503
  txHash?: string;
1203
1504
  createdAt: string;
1204
1505
  updatedAt: string;
1506
+ partnerUserRef?: string;
1205
1507
  }
1206
1508
 
1207
1509
  export declare interface OnrampOrderFee {
@@ -1270,33 +1572,46 @@ export declare interface OnrampSession {
1270
1572
  onrampUrl: string;
1271
1573
  }
1272
1574
 
1575
+ export declare type Owner = string;
1576
+
1273
1577
  export declare type PageSizeParameter = number;
1274
1578
 
1275
1579
  export declare type PageTokenParameter = string;
1276
1580
 
1277
- export declare interface PaymentMethod {
1581
+ export declare interface PaymentAccount {
1278
1582
  id: string;
1279
- type: PaymentMethodType;
1583
+ name: string;
1280
1584
  currency: string;
1281
- actions: PaymentRailAction[];
1282
- limits?: PaymentMethodLimits;
1585
+ type: PaymentAccountType;
1586
+ availableBalance: PaymentAccountAvailableBalance;
1587
+ hold: PaymentAccountHold;
1588
+ depositInstructions?: SourceDepositInstructions;
1589
+ createdAt: string;
1590
+ updatedAt: string;
1283
1591
  }
1284
1592
 
1285
- export declare type PaymentMethodLimits = {
1286
- sourceLimit?: PaymentMethodLimitsSourceLimit;
1287
- targetLimit?: PaymentMethodLimitsTargetLimit;
1593
+ export declare type PaymentAccountAvailableBalance = {
1594
+ value: string;
1595
+ currency: string;
1288
1596
  };
1289
1597
 
1290
- export declare type PaymentMethodLimitsSourceLimit = {
1291
- amount?: string;
1292
- currency?: string;
1598
+ export declare type PaymentAccountHold = {
1599
+ value: string;
1600
+ currency: string;
1293
1601
  };
1294
1602
 
1295
- export declare type PaymentMethodLimitsTargetLimit = {
1296
- amount?: string;
1297
- currency?: string;
1603
+ export declare type PaymentAccountType = (typeof PaymentAccountType)[keyof typeof PaymentAccountType];
1604
+
1605
+ export declare const PaymentAccountType: {
1606
+ readonly crypto: "crypto";
1607
+ readonly fiat: "fiat";
1298
1608
  };
1299
1609
 
1610
+ export declare interface PaymentMethod {
1611
+ paymentMethodId: string;
1612
+ assetId: AssetId;
1613
+ }
1614
+
1300
1615
  export declare interface PaymentMethodRequest {
1301
1616
  id: string;
1302
1617
  }
@@ -1304,27 +1619,15 @@ export declare interface PaymentMethodRequest {
1304
1619
  export declare type PaymentMethodRequiredErrorResponse = Error_2;
1305
1620
 
1306
1621
  export declare interface PaymentMethodSource {
1307
- type: PaymentMethodSourceType;
1308
1622
  paymentMethodId: string;
1623
+ currency: string;
1309
1624
  }
1310
1625
 
1311
- export declare type PaymentMethodSourceType = (typeof PaymentMethodSourceType)[keyof typeof PaymentMethodSourceType];
1312
-
1313
- export declare const PaymentMethodSourceType: {
1314
- readonly payment_method: "payment_method";
1315
- };
1316
-
1317
1626
  export declare interface PaymentMethodTarget {
1318
1627
  paymentMethodId: string;
1628
+ currency: string;
1319
1629
  }
1320
1630
 
1321
- export declare type PaymentMethodType = (typeof PaymentMethodType)[keyof typeof PaymentMethodType];
1322
-
1323
- export declare const PaymentMethodType: {
1324
- readonly card: "card";
1325
- readonly fiat_account: "fiat_account";
1326
- };
1327
-
1328
1631
  export declare type PaymentRailAction = (typeof PaymentRailAction)[keyof typeof PaymentRailAction];
1329
1632
 
1330
1633
  export declare const PaymentRailAction: {
@@ -1332,6 +1635,36 @@ export declare const PaymentRailAction: {
1332
1635
  readonly target: "target";
1333
1636
  };
1334
1637
 
1638
+ export declare interface PaymentsPaymentMethod {
1639
+ id: string;
1640
+ type: PaymentsPaymentMethodType;
1641
+ currency: string;
1642
+ actions: PaymentRailAction[];
1643
+ limits?: PaymentsPaymentMethodLimits;
1644
+ }
1645
+
1646
+ export declare type PaymentsPaymentMethodLimits = {
1647
+ sourceLimit?: PaymentsPaymentMethodLimitsSourceLimit;
1648
+ targetLimit?: PaymentsPaymentMethodLimitsTargetLimit;
1649
+ };
1650
+
1651
+ export declare type PaymentsPaymentMethodLimitsSourceLimit = {
1652
+ amount?: string;
1653
+ currency?: string;
1654
+ };
1655
+
1656
+ export declare type PaymentsPaymentMethodLimitsTargetLimit = {
1657
+ amount?: string;
1658
+ currency?: string;
1659
+ };
1660
+
1661
+ export declare type PaymentsPaymentMethodType = (typeof PaymentsPaymentMethodType)[keyof typeof PaymentsPaymentMethodType];
1662
+
1663
+ export declare const PaymentsPaymentMethodType: {
1664
+ readonly card: "card";
1665
+ readonly fiat_account: "fiat_account";
1666
+ };
1667
+
1335
1668
  export declare type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus];
1336
1669
 
1337
1670
  export declare const PaymentStatus: {
@@ -1340,8 +1673,138 @@ export declare const PaymentStatus: {
1340
1673
  readonly in_progress: "in_progress";
1341
1674
  readonly completed: "completed";
1342
1675
  readonly failed: "failed";
1676
+ readonly unknown: "unknown";
1677
+ };
1678
+
1679
+ export declare interface PaymentsTransfer {
1680
+ id: string;
1681
+ sourceType: PaymentsTransferSourceType;
1682
+ source: PaymentMethodRequest;
1683
+ targetType: PaymentsTransferTargetType;
1684
+ target: CryptoRailAddress;
1685
+ sourceAmount: string;
1686
+ sourceCurrency: string;
1687
+ targetAmount: string;
1688
+ targetCurrency: string;
1689
+ userAmount: string;
1690
+ userCurrency: string;
1691
+ fees: Fee[];
1692
+ status: PaymentsTransferStatus;
1693
+ createdAt: string;
1694
+ updatedAt: string;
1695
+ transactionHash?: string;
1696
+ }
1697
+
1698
+ export declare type PaymentsTransferSource = PaymentMethodRequest;
1699
+
1700
+ export declare type PaymentsTransferSourceType = (typeof PaymentsTransferSourceType)[keyof typeof PaymentsTransferSourceType];
1701
+
1702
+ export declare const PaymentsTransferSourceType: {
1703
+ readonly payment_method: "payment_method";
1704
+ };
1705
+
1706
+ export declare type PaymentsTransferStatus = (typeof PaymentsTransferStatus)[keyof typeof PaymentsTransferStatus];
1707
+
1708
+ export declare const PaymentsTransferStatus: {
1709
+ readonly created: "created";
1710
+ readonly pending: "pending";
1711
+ readonly started: "started";
1712
+ readonly completed: "completed";
1713
+ readonly failed: "failed";
1714
+ };
1715
+
1716
+ export declare type PaymentsTransferTarget = CryptoRailAddress;
1717
+
1718
+ export declare type PaymentsTransferTargetType = (typeof PaymentsTransferTargetType)[keyof typeof PaymentsTransferTargetType];
1719
+
1720
+ export declare const PaymentsTransferTargetType: {
1721
+ readonly crypto_rail: "crypto_rail";
1722
+ };
1723
+
1724
+ export declare interface Permission {
1725
+ permissionId: PermissionId;
1726
+ name: string;
1727
+ entityId: EntityId;
1728
+ subjectType: PermissionSubjectType;
1729
+ verb: PermissionVerb;
1730
+ object: string;
1731
+ description?: string;
1732
+ createdAt: string;
1733
+ }
1734
+
1735
+ export declare interface PermissionCatalog {
1736
+ verbs: PermissionCatalogVerbsItem[];
1737
+ objects: PermissionCatalogObjectsItem[];
1738
+ }
1739
+
1740
+ export declare type PermissionCatalogObjectsItem = {
1741
+ id?: string;
1742
+ type?: PermissionCatalogObjectsItemType;
1743
+ name?: string;
1744
+ parentId?: string | null;
1343
1745
  };
1344
1746
 
1747
+ export declare type PermissionCatalogObjectsItemType = (typeof PermissionCatalogObjectsItemType)[keyof typeof PermissionCatalogObjectsItemType];
1748
+
1749
+ export declare const PermissionCatalogObjectsItemType: {
1750
+ readonly entity: "entity";
1751
+ readonly project: "project";
1752
+ };
1753
+
1754
+ export declare type PermissionCatalogVerbsItem = {
1755
+ name?: string;
1756
+ displayName?: string;
1757
+ description?: string;
1758
+ };
1759
+
1760
+ export declare type PermissionId = string;
1761
+
1762
+ export declare type PermissionSubjectType = (typeof PermissionSubjectType)[keyof typeof PermissionSubjectType];
1763
+
1764
+ export declare const PermissionSubjectType: {
1765
+ readonly team_member: "team_member";
1766
+ readonly api_key: "api_key";
1767
+ };
1768
+
1769
+ export declare type PermissionVerb = (typeof PermissionVerb)[keyof typeof PermissionVerb];
1770
+
1771
+ export declare const PermissionVerb: {
1772
+ readonly create_api_key: "create_api_key";
1773
+ readonly read_api_key: "read_api_key";
1774
+ readonly update_api_key: "update_api_key";
1775
+ readonly delete_api_key: "delete_api_key";
1776
+ readonly create_project: "create_project";
1777
+ readonly read_project: "read_project";
1778
+ readonly update_project: "update_project";
1779
+ readonly delete_project: "delete_project";
1780
+ readonly read_entity: "read_entity";
1781
+ readonly update_entity: "update_entity";
1782
+ readonly invite_team_member: "invite_team_member";
1783
+ readonly read_team_member: "read_team_member";
1784
+ readonly update_team_member: "update_team_member";
1785
+ readonly remove_team_member: "remove_team_member";
1786
+ readonly create_role: "create_role";
1787
+ readonly read_role: "read_role";
1788
+ readonly update_role: "update_role";
1789
+ readonly delete_role: "delete_role";
1790
+ readonly create_permission: "create_permission";
1791
+ readonly read_permission: "read_permission";
1792
+ readonly update_permission: "update_permission";
1793
+ readonly delete_permission: "delete_permission";
1794
+ readonly manage_billing: "manage_billing";
1795
+ readonly view_audit_logs: "view_audit_logs";
1796
+ readonly manage_all: "manage_all";
1797
+ };
1798
+
1799
+ export declare interface PhysicalAddress {
1800
+ line1?: string;
1801
+ line2?: string;
1802
+ city?: string;
1803
+ state?: string;
1804
+ postCode?: string;
1805
+ countryCode?: string;
1806
+ }
1807
+
1345
1808
  export declare interface Policy {
1346
1809
  id: string;
1347
1810
  description?: string;
@@ -1400,6 +1863,18 @@ export declare const ProgramIdCriterionType: {
1400
1863
  readonly programId: "programId";
1401
1864
  };
1402
1865
 
1866
+ export declare interface Project {
1867
+ projectId: ProjectId;
1868
+ name: string;
1869
+ entityId: EntityId;
1870
+ sandbox?: boolean;
1871
+ createdAt: string;
1872
+ updatedAt?: string | null;
1873
+ deletedAt?: string | null;
1874
+ }
1875
+
1876
+ export declare type ProjectId = string;
1877
+
1403
1878
  export declare type RateLimitExceededResponse = Error_2;
1404
1879
 
1405
1880
  export declare const refreshAccessToken: (projectId: string, refreshAccessTokenBody: RefreshAccessTokenBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RefreshAccessToken200>;
@@ -1408,10 +1883,12 @@ export declare type RefreshAccessToken200 = {
1408
1883
  endUser: EndUser;
1409
1884
  accessToken: string;
1410
1885
  validUntil: string;
1886
+ refreshToken?: string;
1411
1887
  };
1412
1888
 
1413
1889
  export declare type RefreshAccessTokenBody = {
1414
1890
  grantType: RefreshAccessTokenBodyGrantType;
1891
+ refreshToken?: string;
1415
1892
  };
1416
1893
 
1417
1894
  export declare type RefreshAccessTokenBodyGrantType = (typeof RefreshAccessTokenBodyGrantType)[keyof typeof RefreshAccessTokenBodyGrantType];
@@ -1443,6 +1920,34 @@ export declare type RegisterTemporaryWalletSecretBody = {
1443
1920
 
1444
1921
  export declare type RegisterTemporaryWalletSecretResult = NonNullable<Awaited<ReturnType<typeof registerTemporaryWalletSecret>>>;
1445
1922
 
1923
+ export declare interface Requirement {
1924
+ due?: RequirementDue[];
1925
+ pending?: RequirementDue[];
1926
+ errors?: RequirementError[];
1927
+ }
1928
+
1929
+ export declare interface RequirementDue {
1930
+ field: RequirementField;
1931
+ deadline?: string;
1932
+ }
1933
+
1934
+ export declare interface RequirementError {
1935
+ code: RequirementErrorCode;
1936
+ reason: string;
1937
+ requirement: RequirementField;
1938
+ }
1939
+
1940
+ export declare type RequirementErrorCode = (typeof RequirementErrorCode)[keyof typeof RequirementErrorCode];
1941
+
1942
+ export declare const RequirementErrorCode: {
1943
+ readonly information_missing: "information_missing";
1944
+ readonly invalid_address: "invalid_address";
1945
+ readonly verification_document_dob_mismatch: "verification_document_dob_mismatch";
1946
+ readonly verification_document_expired: "verification_document_expired";
1947
+ };
1948
+
1949
+ export declare type RequirementField = string;
1950
+
1446
1951
  export declare interface RevokeSpendPermissionRequest {
1447
1952
  walletSecretId: string;
1448
1953
  network: SpendPermissionNetwork;
@@ -1455,6 +1960,17 @@ export declare const revokeSpendPermissionWithEndUserAccount: (projectId: string
1455
1960
 
1456
1961
  export declare type RevokeSpendPermissionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof revokeSpendPermissionWithEndUserAccount>>>;
1457
1962
 
1963
+ export declare interface Role {
1964
+ roleId: RoleId;
1965
+ name: string;
1966
+ description?: string | null;
1967
+ permissions: Permission[];
1968
+ createdAt: string;
1969
+ updatedAt: string;
1970
+ }
1971
+
1972
+ export declare type RoleId = string;
1973
+
1458
1974
  export declare type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule;
1459
1975
 
1460
1976
  export declare type SecondFactorProofTokenParameter = string;
@@ -2068,13 +2584,6 @@ export declare const SourceDepositInstructionsPaymentMethodType: {
2068
2584
  readonly fedwire: "fedwire";
2069
2585
  };
2070
2586
 
2071
- export declare type SourceType = (typeof SourceType)[keyof typeof SourceType];
2072
-
2073
- export declare const SourceType: {
2074
- readonly account: "account";
2075
- readonly payment_method: "payment_method";
2076
- };
2077
-
2078
2587
  export declare interface SpendPermission {
2079
2588
  account: string;
2080
2589
  spender: string;
@@ -2163,6 +2672,18 @@ export declare interface TargetAmount {
2163
2672
  currency: string;
2164
2673
  }
2165
2674
 
2675
+ export declare interface TeamMember {
2676
+ memberId: TeamMemberId;
2677
+ userId: string;
2678
+ entityId: EntityId;
2679
+ sandbox?: boolean;
2680
+ email: string;
2681
+ role: Role;
2682
+ kycRequired: boolean;
2683
+ }
2684
+
2685
+ export declare type TeamMemberId = string;
2686
+
2166
2687
  export declare type TimedOutErrorResponse = Error_2;
2167
2688
 
2168
2689
  export declare interface Token {
@@ -2190,24 +2711,92 @@ export declare interface TokenFee {
2190
2711
  export declare type ToToken = string;
2191
2712
 
2192
2713
  export declare interface Transfer {
2193
- id: string;
2194
- sourceType: TransferSourceType;
2195
- source: PaymentMethodRequest;
2196
- targetType: TransferTargetType;
2197
- target: CryptoRailAddress;
2198
- sourceAmount: string;
2199
- sourceCurrency: string;
2200
- targetAmount: string;
2201
- targetCurrency: string;
2202
- userAmount: string;
2203
- userCurrency: string;
2204
- fees: Fee[];
2714
+ transferId: string;
2205
2715
  status: TransferStatus;
2716
+ source: TransferSource;
2717
+ target: TransferTarget;
2718
+ amount: string;
2719
+ amountAssetId: string;
2720
+ sourceAmount?: string;
2721
+ targetAmount?: string;
2722
+ fees?: TransferFees;
2723
+ completedAt?: string;
2724
+ sourceDepositInstructions?: TransferSourceDepositsInstructions;
2725
+ failureReason?: TransferFailureReason;
2726
+ reversalReason?: TransferReversalReason;
2727
+ cancellationReason?: TransferCancellationReason;
2728
+ lastError?: TransferLastError;
2729
+ expiresAt?: string;
2730
+ executedAt?: string;
2206
2731
  createdAt: string;
2207
2732
  updatedAt: string;
2208
- transactionHash?: string;
2209
2733
  }
2210
2734
 
2735
+ export declare type TransferCancellationReason = (typeof TransferCancellationReason)[keyof typeof TransferCancellationReason];
2736
+
2737
+ export declare const TransferCancellationReason: {
2738
+ readonly user_canceled: "user_canceled";
2739
+ readonly system_canceled: "system_canceled";
2740
+ readonly expired: "expired";
2741
+ readonly compliance_canceled: "compliance_canceled";
2742
+ readonly risk_canceled: "risk_canceled";
2743
+ readonly duplicate_canceled: "duplicate_canceled";
2744
+ readonly insufficient_funds_canceled: "insufficient_funds_canceled";
2745
+ };
2746
+
2747
+ export declare type TransferFailureReason = (typeof TransferFailureReason)[keyof typeof TransferFailureReason];
2748
+
2749
+ export declare const TransferFailureReason: {
2750
+ readonly insufficient_funds: "insufficient_funds";
2751
+ readonly invalid_source: "invalid_source";
2752
+ readonly invalid_target: "invalid_target";
2753
+ readonly compliance_failure: "compliance_failure";
2754
+ readonly network_error: "network_error";
2755
+ readonly rate_limit_exceeded: "rate_limit_exceeded";
2756
+ readonly account_restricted: "account_restricted";
2757
+ readonly amount_too_large: "amount_too_large";
2758
+ readonly amount_too_small: "amount_too_small";
2759
+ readonly asset_not_supported: "asset_not_supported";
2760
+ readonly processing_error: "processing_error";
2761
+ readonly network_failure: "network_failure";
2762
+ readonly insufficient_gas: "insufficient_gas";
2763
+ readonly transaction_reverted: "transaction_reverted";
2764
+ readonly timeout: "timeout";
2765
+ readonly compliance_rejection: "compliance_rejection";
2766
+ readonly recipient_unavailable: "recipient_unavailable";
2767
+ };
2768
+
2769
+ export declare interface TransferFee {
2770
+ name: TransferFeeName;
2771
+ amount: string;
2772
+ assetId: AssetId;
2773
+ }
2774
+
2775
+ export declare type TransferFeeName = (typeof TransferFeeName)[keyof typeof TransferFeeName];
2776
+
2777
+ export declare const TransferFeeName: {
2778
+ readonly network_fee: "network_fee";
2779
+ readonly processing_fee: "processing_fee";
2780
+ readonly wire_fee: "wire_fee";
2781
+ readonly exchange_fee: "exchange_fee";
2782
+ readonly spread_fee: "spread_fee";
2783
+ };
2784
+
2785
+ export declare type TransferFees = TransferFee[];
2786
+
2787
+ export declare type TransferLastError = {
2788
+ code?: string;
2789
+ message?: string;
2790
+ param?: string;
2791
+ details?: TransferLastErrorDetails;
2792
+ };
2793
+
2794
+ export declare type TransferLastErrorDetails = {
2795
+ availableBalance?: string;
2796
+ requiredAmount?: string;
2797
+ retryAfter?: number;
2798
+ };
2799
+
2211
2800
  export declare interface TransferQuote {
2212
2801
  id: string;
2213
2802
  paymentStatus: PaymentStatus;
@@ -2216,39 +2805,78 @@ export declare interface TransferQuote {
2216
2805
  sourceAmount: SourceAmount;
2217
2806
  targetAmount: TargetAmount;
2218
2807
  fees: FeeDetails[];
2808
+ exchangeRate?: ExchangeRate;
2219
2809
  expiresAt: string;
2220
- note?: string;
2810
+ metadata?: Metadata;
2221
2811
  }
2222
2812
 
2223
2813
  export declare interface TransferQuoteDetails {
2224
2814
  quoteId: string;
2225
2815
  }
2226
2816
 
2227
- export declare type TransferSource = PaymentMethodRequest;
2817
+ export declare interface TransferRequest {
2818
+ source: TransferSource;
2819
+ target: TransferTarget;
2820
+ amount: string;
2821
+ amountAssetId: string;
2822
+ execute: boolean;
2823
+ }
2228
2824
 
2229
- export declare type TransferSourceType = (typeof TransferSourceType)[keyof typeof TransferSourceType];
2825
+ export declare type TransferReversalReason = (typeof TransferReversalReason)[keyof typeof TransferReversalReason];
2230
2826
 
2231
- export declare const TransferSourceType: {
2232
- readonly payment_method: "payment_method";
2827
+ export declare const TransferReversalReason: {
2828
+ readonly user_requested: "user_requested";
2829
+ readonly compliance_reversal: "compliance_reversal";
2830
+ readonly fraud_reversal: "fraud_reversal";
2831
+ readonly network_reversal: "network_reversal";
2832
+ readonly system_reversal: "system_reversal";
2833
+ };
2834
+
2835
+ export declare interface TransfersAccount {
2836
+ accountId: string;
2837
+ assetId: AssetId;
2838
+ }
2839
+
2840
+ export declare type TransferSource = TransfersAccount | PaymentMethod;
2841
+
2842
+ export declare interface TransferSourceDepositsInstructions {
2843
+ paymentMethodType: TransferSourceDepositsInstructionsPaymentMethodType;
2844
+ assetId: TransferSourceDepositsInstructionsAssetId;
2845
+ accountName: string;
2846
+ accountAddress: string;
2847
+ accountNumber: string;
2848
+ routingNumber: string;
2849
+ bankName: string;
2850
+ bankAddress: string;
2851
+ bankCountryName: string;
2852
+ }
2853
+
2854
+ export declare type TransferSourceDepositsInstructionsAssetId = (typeof TransferSourceDepositsInstructionsAssetId)[keyof typeof TransferSourceDepositsInstructionsAssetId];
2855
+
2856
+ export declare const TransferSourceDepositsInstructionsAssetId: {
2857
+ readonly usd: "usd";
2858
+ };
2859
+
2860
+ export declare type TransferSourceDepositsInstructionsPaymentMethodType = (typeof TransferSourceDepositsInstructionsPaymentMethodType)[keyof typeof TransferSourceDepositsInstructionsPaymentMethodType];
2861
+
2862
+ export declare const TransferSourceDepositsInstructionsPaymentMethodType: {
2863
+ readonly fedwire: "fedwire";
2233
2864
  };
2234
2865
 
2235
2866
  export declare type TransferStatus = (typeof TransferStatus)[keyof typeof TransferStatus];
2236
2867
 
2237
2868
  export declare const TransferStatus: {
2238
- readonly created: "created";
2239
- readonly pending: "pending";
2240
- readonly started: "started";
2869
+ readonly requires_execution: "requires_execution";
2870
+ readonly awaiting_funds: "awaiting_funds";
2871
+ readonly processing: "processing";
2241
2872
  readonly completed: "completed";
2242
2873
  readonly failed: "failed";
2874
+ readonly canceled: "canceled";
2875
+ readonly expired: "expired";
2876
+ readonly reversed: "reversed";
2243
2877
  };
2244
2878
 
2245
- export declare type TransferTarget = CryptoRailAddress;
2246
-
2247
- export declare type TransferTargetType = (typeof TransferTargetType)[keyof typeof TransferTargetType];
2248
-
2249
- export declare const TransferTargetType: {
2250
- readonly crypto_rail: "crypto_rail";
2251
- };
2879
+ export declare type TransferTarget = TransfersAccount | PaymentMethod;
2252
2880
 
2253
2881
  export declare type UnauthorizedErrorResponse = Error_2;
2254
2882
 
@@ -2281,6 +2909,7 @@ export declare type VerifyEmailAuthentication200 = {
2281
2909
  message: string;
2282
2910
  accessToken: string;
2283
2911
  validUntil: string;
2912
+ refreshToken?: string;
2284
2913
  };
2285
2914
 
2286
2915
  export declare interface VerifyEmailAuthenticationRequest {
@@ -2290,6 +2919,24 @@ export declare interface VerifyEmailAuthenticationRequest {
2290
2919
 
2291
2920
  export declare type VerifyEmailAuthenticationResult = NonNullable<Awaited<ReturnType<typeof verifyEmailAuthentication>>>;
2292
2921
 
2922
+ export declare const verifyOAuthCode: (projectId: string, providerType: OAuth2ProviderType, verifyOAuthCodeRequest: VerifyOAuthCodeRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifyOAuthCode200>;
2923
+
2924
+ export declare type VerifyOAuthCode200 = {
2925
+ endUser: EndUser;
2926
+ isNewEndUser: boolean;
2927
+ message: string;
2928
+ accessToken: string;
2929
+ validUntil: string;
2930
+ refreshToken?: string;
2931
+ };
2932
+
2933
+ export declare interface VerifyOAuthCodeRequest {
2934
+ flowId: string;
2935
+ code: string;
2936
+ }
2937
+
2938
+ export declare type VerifyOAuthCodeResult = NonNullable<Awaited<ReturnType<typeof verifyOAuthCode>>>;
2939
+
2293
2940
  export declare const verifySmsAuthentication: (projectId: string, verifySmsAuthenticationRequest: VerifySmsAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifySmsAuthentication200>;
2294
2941
 
2295
2942
  export declare type VerifySmsAuthentication200 = {
@@ -2298,6 +2945,7 @@ export declare type VerifySmsAuthentication200 = {
2298
2945
  message: string;
2299
2946
  accessToken: string;
2300
2947
  validUntil: string;
2948
+ refreshToken?: string;
2301
2949
  };
2302
2950
 
2303
2951
  export declare interface VerifySmsAuthenticationRequest {