@coinbase/cdp-api-client 0.0.0 → 0.0.5

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.
@@ -0,0 +1,1458 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+
3
+ export declare type Abi = AbiItem[];
4
+
5
+ export declare interface AbiFunction {
6
+ type: AbiFunctionType;
7
+ name: string;
8
+ inputs: AbiParameter[];
9
+ outputs: AbiParameter[];
10
+ constant?: boolean;
11
+ payable?: boolean;
12
+ stateMutability: AbiStateMutability;
13
+ gas?: number;
14
+ }
15
+
16
+ export declare type AbiFunctionType = (typeof AbiFunctionType)[keyof typeof AbiFunctionType];
17
+
18
+ export declare const AbiFunctionType: {
19
+ readonly function: "function";
20
+ };
21
+
22
+ export declare interface AbiInput {
23
+ type: AbiInputType;
24
+ additionalProperties?: unknown;
25
+ }
26
+
27
+ export declare type AbiInputType = (typeof AbiInputType)[keyof typeof AbiInputType];
28
+
29
+ export declare const AbiInputType: {
30
+ readonly constructor: "constructor";
31
+ readonly error: "error";
32
+ readonly event: "event";
33
+ readonly fallback: "fallback";
34
+ readonly receive: "receive";
35
+ };
36
+
37
+ export declare type AbiItem = AbiFunction | AbiInput;
38
+
39
+ export declare interface AbiParameter {
40
+ name?: string;
41
+ type: string;
42
+ internalType?: string;
43
+ components?: AbiParameter[];
44
+ }
45
+
46
+ export declare type AbiStateMutability = (typeof AbiStateMutability)[keyof typeof AbiStateMutability];
47
+
48
+ export declare const AbiStateMutability: {
49
+ readonly pure: "pure";
50
+ readonly view: "view";
51
+ readonly nonpayable: "nonpayable";
52
+ readonly payable: "payable";
53
+ };
54
+
55
+ export declare interface AccountTokenAddressesResponse {
56
+ accountAddress?: string;
57
+ tokenAddresses?: string[];
58
+ totalCount?: number;
59
+ }
60
+
61
+ export declare type AlreadyExistsErrorResponse = Error_2;
62
+
63
+ export declare type AuthenticationMethod = EmailAuthentication | DeveloperJWTAuthentication;
64
+
65
+ export declare type AuthenticationMethods = AuthenticationMethod[];
66
+
67
+ export declare interface AuthManager {
68
+ getToken: () => Promise<string | null>;
69
+ getXWalletAuth: (options: {
70
+ requestMethod: string;
71
+ requestHost: string;
72
+ requestPath: string;
73
+ requestData?: Record<string, unknown>;
74
+ }) => Promise<string>;
75
+ }
76
+
77
+ export declare type BadGatewayErrorResponse = Error_2;
78
+
79
+ declare const cdpApiClient: <T>(config: AxiosRequestConfig, idempotencyKey?: string) => Promise<T>;
80
+
81
+ export declare type CdpOptions = {
82
+ debugging?: boolean;
83
+ basePath?: string;
84
+ };
85
+
86
+ export declare interface CommonSwapResponse {
87
+ blockNumber: string;
88
+ toAmount: string;
89
+ toToken: string;
90
+ fees: CommonSwapResponseFees;
91
+ issues: CommonSwapResponseIssues;
92
+ liquidityAvailable: boolean;
93
+ minToAmount: string;
94
+ fromAmount: string;
95
+ fromToken: string;
96
+ }
97
+
98
+ export declare type CommonSwapResponseFees = {
99
+ gasFee: CommonSwapResponseFeesGasFee;
100
+ protocolFee: CommonSwapResponseFeesProtocolFee;
101
+ };
102
+
103
+ export declare type CommonSwapResponseFeesGasFee = TokenFee | null;
104
+
105
+ export declare type CommonSwapResponseFeesProtocolFee = TokenFee | null;
106
+
107
+ export declare type CommonSwapResponseIssues = {
108
+ allowance: CommonSwapResponseIssuesAllowance;
109
+ balance: CommonSwapResponseIssuesBalance;
110
+ simulationIncomplete: boolean;
111
+ };
112
+
113
+ export declare type CommonSwapResponseIssuesAllowance = {
114
+ currentAllowance: string;
115
+ spender: string;
116
+ } | null;
117
+
118
+ export declare type CommonSwapResponseIssuesBalance = {
119
+ token: string;
120
+ currentBalance: string;
121
+ requiredBalance: string;
122
+ } | null;
123
+
124
+ export declare const configureCdpApiClient: (options: CdpOptions) => void;
125
+
126
+ export declare const createEndUserEvmAccount: (projectId: string, userId: string, createEndUserEvmAccountBody: CreateEndUserEvmAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
127
+
128
+ export declare type CreateEndUserEvmAccountBody = {
129
+ walletSecretId?: string;
130
+ };
131
+
132
+ export declare type CreateEndUserEvmAccountResult = NonNullable<Awaited<ReturnType<typeof createEndUserEvmAccount>>>;
133
+
134
+ export declare type CreateSwapQuoteResponse = CreateSwapQuoteResponseAllOf & CommonSwapResponse;
135
+
136
+ export declare type CreateSwapQuoteResponseAllOf = {
137
+ permit2: CreateSwapQuoteResponseAllOfPermit2;
138
+ transaction: CreateSwapQuoteResponseAllOfTransaction;
139
+ };
140
+
141
+ export declare type CreateSwapQuoteResponseAllOfPermit2 = {
142
+ hash: string;
143
+ eip712: EIP712Message;
144
+ } | null;
145
+
146
+ export declare type CreateSwapQuoteResponseAllOfTransaction = {
147
+ to: string;
148
+ data: string;
149
+ gas: string;
150
+ gasPrice: string;
151
+ value: string;
152
+ };
153
+
154
+ export declare type CreateSwapQuoteResponseWrapper = CreateSwapQuoteResponse | SwapUnavailableResponse;
155
+
156
+ export declare interface CryptoRail {
157
+ currency: string;
158
+ name: string;
159
+ networks: CryptoRailNetworksItem[];
160
+ actions: PaymentRailAction[];
161
+ }
162
+
163
+ export declare interface CryptoRailAddress {
164
+ currency: string;
165
+ network: string;
166
+ address: string;
167
+ }
168
+
169
+ export declare type CryptoRailNetworksItem = {
170
+ name?: string;
171
+ chainId?: number;
172
+ contractAddress?: string;
173
+ };
174
+
175
+ export declare interface DeveloperJWTAuthentication {
176
+ type: DeveloperJWTAuthenticationType;
177
+ kid: string;
178
+ sub: string;
179
+ }
180
+
181
+ export declare type DeveloperJWTAuthenticationType = (typeof DeveloperJWTAuthenticationType)[keyof typeof DeveloperJWTAuthenticationType];
182
+
183
+ export declare const DeveloperJWTAuthenticationType: {
184
+ readonly jwt: "jwt";
185
+ };
186
+
187
+ export declare interface EIP712Domain {
188
+ name?: string;
189
+ version?: string;
190
+ chainId?: number;
191
+ verifyingContract?: string;
192
+ salt?: string;
193
+ }
194
+
195
+ export declare interface EIP712Message {
196
+ domain: EIP712Domain;
197
+ types: EIP712Types;
198
+ primaryType: string;
199
+ message: EIP712MessageMessage;
200
+ }
201
+
202
+ export declare type EIP712MessageMessage = {
203
+ [key: string]: unknown;
204
+ };
205
+
206
+ export declare interface EIP712Types {
207
+ [key: string]: unknown;
208
+ }
209
+
210
+ export declare interface EmailAuthentication {
211
+ type: EmailAuthenticationType;
212
+ email: string;
213
+ }
214
+
215
+ export declare type EmailAuthenticationType = (typeof EmailAuthenticationType)[keyof typeof EmailAuthenticationType];
216
+
217
+ export declare const EmailAuthenticationType: {
218
+ readonly email: "email";
219
+ };
220
+
221
+ export declare interface EndUser {
222
+ userId: string;
223
+ authenticationMethods: AuthenticationMethods;
224
+ evmAccounts?: string[];
225
+ }
226
+
227
+ declare interface Error_2 {
228
+ errorType: ErrorType;
229
+ errorMessage: string;
230
+ correlationId?: string;
231
+ errorLink?: string;
232
+ }
233
+ export { Error_2 as Error }
234
+
235
+ export declare type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
236
+
237
+ export declare const ErrorType: {
238
+ readonly already_exists: "already_exists";
239
+ readonly bad_gateway: "bad_gateway";
240
+ readonly faucet_limit_exceeded: "faucet_limit_exceeded";
241
+ readonly forbidden: "forbidden";
242
+ readonly idempotency_error: "idempotency_error";
243
+ readonly internal_server_error: "internal_server_error";
244
+ readonly invalid_request: "invalid_request";
245
+ readonly invalid_signature: "invalid_signature";
246
+ readonly malformed_transaction: "malformed_transaction";
247
+ readonly not_found: "not_found";
248
+ readonly payment_method_required: "payment_method_required";
249
+ readonly rate_limit_exceeded: "rate_limit_exceeded";
250
+ readonly request_canceled: "request_canceled";
251
+ readonly service_unavailable: "service_unavailable";
252
+ readonly timed_out: "timed_out";
253
+ readonly unauthorized: "unauthorized";
254
+ readonly policy_violation: "policy_violation";
255
+ readonly policy_in_use: "policy_in_use";
256
+ readonly account_limit_exceeded: "account_limit_exceeded";
257
+ readonly network_not_tradable: "network_not_tradable";
258
+ readonly guest_permission_denied: "guest_permission_denied";
259
+ readonly guest_region_forbidden: "guest_region_forbidden";
260
+ readonly guest_transaction_limit: "guest_transaction_limit";
261
+ readonly guest_transaction_count: "guest_transaction_count";
262
+ readonly guest_phone_number_verification_expired: "guest_phone_number_verification_expired";
263
+ };
264
+
265
+ export declare interface EthValueCriterion {
266
+ type: EthValueCriterionType;
267
+ ethValue: string;
268
+ operator: EthValueCriterionOperator;
269
+ }
270
+
271
+ export declare type EthValueCriterionOperator = (typeof EthValueCriterionOperator)[keyof typeof EthValueCriterionOperator];
272
+
273
+ export declare const EthValueCriterionOperator: {
274
+ readonly ">": ">";
275
+ readonly ">=": ">=";
276
+ readonly "<": "<";
277
+ readonly "<=": "<=";
278
+ readonly "==": "==";
279
+ };
280
+
281
+ export declare type EthValueCriterionType = (typeof EthValueCriterionType)[keyof typeof EthValueCriterionType];
282
+
283
+ export declare const EthValueCriterionType: {
284
+ readonly ethValue: "ethValue";
285
+ };
286
+
287
+ export declare interface EvmAccount {
288
+ address: string;
289
+ name?: string;
290
+ policies?: string[];
291
+ createdAt?: string;
292
+ updatedAt?: string;
293
+ }
294
+
295
+ export declare interface EvmAddressCriterion {
296
+ type: EvmAddressCriterionType;
297
+ addresses: string[];
298
+ operator: EvmAddressCriterionOperator;
299
+ }
300
+
301
+ export declare type EvmAddressCriterionOperator = (typeof EvmAddressCriterionOperator)[keyof typeof EvmAddressCriterionOperator];
302
+
303
+ export declare const EvmAddressCriterionOperator: {
304
+ readonly in: "in";
305
+ readonly not_in: "not in";
306
+ };
307
+
308
+ export declare type EvmAddressCriterionType = (typeof EvmAddressCriterionType)[keyof typeof EvmAddressCriterionType];
309
+
310
+ export declare const EvmAddressCriterionType: {
311
+ readonly evmAddress: "evmAddress";
312
+ };
313
+
314
+ export declare interface EvmCall {
315
+ to: string;
316
+ value: string;
317
+ data: string;
318
+ }
319
+
320
+ export declare interface EvmDataCondition {
321
+ function: string;
322
+ params?: EvmDataConditionParamsItem[];
323
+ }
324
+
325
+ export declare type EvmDataConditionParamsItem = EvmDataParameterCondition | EvmDataParameterConditionList;
326
+
327
+ export declare interface EvmDataCriterion {
328
+ type: EvmDataCriterionType;
329
+ abi: EvmDataCriterionAbi;
330
+ conditions: EvmDataCondition[];
331
+ }
332
+
333
+ export declare type EvmDataCriterionAbi = KnownAbiType | Abi;
334
+
335
+ export declare type EvmDataCriterionType = (typeof EvmDataCriterionType)[keyof typeof EvmDataCriterionType];
336
+
337
+ export declare const EvmDataCriterionType: {
338
+ readonly evmData: "evmData";
339
+ };
340
+
341
+ export declare interface EvmDataParameterCondition {
342
+ name: string;
343
+ operator: EvmDataParameterConditionOperator;
344
+ value: string;
345
+ }
346
+
347
+ export declare interface EvmDataParameterConditionList {
348
+ name: string;
349
+ operator: EvmDataParameterConditionListOperator;
350
+ values: string[];
351
+ }
352
+
353
+ export declare type EvmDataParameterConditionListOperator = (typeof EvmDataParameterConditionListOperator)[keyof typeof EvmDataParameterConditionListOperator];
354
+
355
+ export declare const EvmDataParameterConditionListOperator: {
356
+ readonly in: "in";
357
+ readonly not_in: "not in";
358
+ };
359
+
360
+ export declare type EvmDataParameterConditionOperator = (typeof EvmDataParameterConditionOperator)[keyof typeof EvmDataParameterConditionOperator];
361
+
362
+ export declare const EvmDataParameterConditionOperator: {
363
+ readonly ">": ">";
364
+ readonly ">=": ">=";
365
+ readonly "<": "<";
366
+ readonly "<=": "<=";
367
+ readonly "==": "==";
368
+ };
369
+
370
+ export declare interface EvmMessageCriterion {
371
+ type: EvmMessageCriterionType;
372
+ match: string;
373
+ }
374
+
375
+ export declare type EvmMessageCriterionType = (typeof EvmMessageCriterionType)[keyof typeof EvmMessageCriterionType];
376
+
377
+ export declare const EvmMessageCriterionType: {
378
+ readonly evmMessage: "evmMessage";
379
+ };
380
+
381
+ export declare interface EvmNetworkCriterion {
382
+ type: EvmNetworkCriterionType;
383
+ networks: EvmNetworkCriterionNetworksItem[];
384
+ operator: EvmNetworkCriterionOperator;
385
+ }
386
+
387
+ export declare type EvmNetworkCriterionNetworksItem = (typeof EvmNetworkCriterionNetworksItem)[keyof typeof EvmNetworkCriterionNetworksItem];
388
+
389
+ export declare const EvmNetworkCriterionNetworksItem: {
390
+ readonly "base-sepolia": "base-sepolia";
391
+ readonly base: "base";
392
+ };
393
+
394
+ export declare type EvmNetworkCriterionOperator = (typeof EvmNetworkCriterionOperator)[keyof typeof EvmNetworkCriterionOperator];
395
+
396
+ export declare const EvmNetworkCriterionOperator: {
397
+ readonly in: "in";
398
+ readonly not_in: "not in";
399
+ };
400
+
401
+ export declare type EvmNetworkCriterionType = (typeof EvmNetworkCriterionType)[keyof typeof EvmNetworkCriterionType];
402
+
403
+ export declare const EvmNetworkCriterionType: {
404
+ readonly evmNetwork: "evmNetwork";
405
+ };
406
+
407
+ export declare interface EvmSmartAccount {
408
+ address: string;
409
+ owners: string[];
410
+ name?: string;
411
+ policies?: string[];
412
+ createdAt?: string;
413
+ updatedAt?: string;
414
+ }
415
+
416
+ export declare type EvmSwapsNetwork = (typeof EvmSwapsNetwork)[keyof typeof EvmSwapsNetwork];
417
+
418
+ export declare const EvmSwapsNetwork: {
419
+ readonly base: "base";
420
+ readonly ethereum: "ethereum";
421
+ };
422
+
423
+ export declare interface EvmTypedAddressCondition {
424
+ addresses: string[];
425
+ operator: EvmTypedAddressConditionOperator;
426
+ path: string;
427
+ }
428
+
429
+ export declare type EvmTypedAddressConditionOperator = (typeof EvmTypedAddressConditionOperator)[keyof typeof EvmTypedAddressConditionOperator];
430
+
431
+ export declare const EvmTypedAddressConditionOperator: {
432
+ readonly in: "in";
433
+ readonly not_in: "not in";
434
+ };
435
+
436
+ export declare interface EvmTypedNumericalCondition {
437
+ value: string;
438
+ operator: EvmTypedNumericalConditionOperator;
439
+ path: string;
440
+ }
441
+
442
+ export declare type EvmTypedNumericalConditionOperator = (typeof EvmTypedNumericalConditionOperator)[keyof typeof EvmTypedNumericalConditionOperator];
443
+
444
+ export declare const EvmTypedNumericalConditionOperator: {
445
+ readonly ">": ">";
446
+ readonly ">=": ">=";
447
+ readonly "<": "<";
448
+ readonly "<=": "<=";
449
+ readonly "==": "==";
450
+ };
451
+
452
+ export declare interface EvmTypedStringCondition {
453
+ match: string;
454
+ path: string;
455
+ }
456
+
457
+ export declare interface EvmUserOperation {
458
+ network: EvmUserOperationNetwork;
459
+ userOpHash: string;
460
+ calls: EvmCall[];
461
+ status: EvmUserOperationStatus;
462
+ transactionHash?: string;
463
+ receipts?: UserOperationReceipt[];
464
+ }
465
+
466
+ export declare type EvmUserOperationNetwork = (typeof EvmUserOperationNetwork)[keyof typeof EvmUserOperationNetwork];
467
+
468
+ export declare const EvmUserOperationNetwork: {
469
+ readonly "base-sepolia": "base-sepolia";
470
+ readonly base: "base";
471
+ };
472
+
473
+ export declare type EvmUserOperationStatus = (typeof EvmUserOperationStatus)[keyof typeof EvmUserOperationStatus];
474
+
475
+ export declare const EvmUserOperationStatus: {
476
+ readonly pending: "pending";
477
+ readonly signed: "signed";
478
+ readonly broadcast: "broadcast";
479
+ readonly complete: "complete";
480
+ readonly dropped: "dropped";
481
+ readonly failed: "failed";
482
+ };
483
+
484
+ export declare const exportEndUserEvmAccount: (projectId: string, userId: string, exportEndUserEvmAccountBody: ExportEndUserEvmAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<ExportEndUserEvmAccount200>;
485
+
486
+ export declare type ExportEndUserEvmAccount200 = {
487
+ encryptedPrivateKey: string;
488
+ };
489
+
490
+ export declare type ExportEndUserEvmAccountBody = {
491
+ address: string;
492
+ exportEncryptionKey: string;
493
+ walletSecretId: string;
494
+ };
495
+
496
+ export declare type ExportEndUserEvmAccountResult = NonNullable<Awaited<ReturnType<typeof exportEndUserEvmAccount>>>;
497
+
498
+ export declare interface Fee {
499
+ type: FeeType;
500
+ amount: string;
501
+ currency: string;
502
+ description?: string;
503
+ }
504
+
505
+ export declare type FeeType = (typeof FeeType)[keyof typeof FeeType];
506
+
507
+ export declare const FeeType: {
508
+ readonly exchange_fee: "exchange_fee";
509
+ readonly network_fee: "network_fee";
510
+ };
511
+
512
+ export declare type FromAmount = string;
513
+
514
+ export declare type FromToken = string;
515
+
516
+ export declare type GasPrice = string;
517
+
518
+ export declare const getAuthenticatedEndUser: (projectId: string, userId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
519
+
520
+ export declare type GetAuthenticatedEndUserResult = NonNullable<Awaited<ReturnType<typeof getAuthenticatedEndUser>>>;
521
+
522
+ export declare type GetSwapPriceResponse = CommonSwapResponse & GetSwapPriceResponseAllOf;
523
+
524
+ export declare type GetSwapPriceResponseAllOf = {
525
+ gas: string | null;
526
+ gasPrice: string;
527
+ };
528
+
529
+ export declare type GetSwapPriceResponseWrapper = GetSwapPriceResponse | SwapUnavailableResponse;
530
+
531
+ export declare type IdempotencyErrorResponse = Error_2;
532
+
533
+ export declare type IdempotencyKeyParameter = string;
534
+
535
+ export declare const initiateAuthentication: (projectId: string, initiateAuthenticationRequest: InitiateAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<InitiateEmailAuthenticationResponse>;
536
+
537
+ export declare type InitiateAuthenticationRequest = InitiateEmailAuthenticationRequest;
538
+
539
+ export declare type InitiateAuthenticationResult = NonNullable<Awaited<ReturnType<typeof initiateAuthentication>>>;
540
+
541
+ export declare interface InitiateEmailAuthenticationNextStep {
542
+ type: InitiateEmailAuthenticationNextStepType;
543
+ url: string;
544
+ }
545
+
546
+ export declare type InitiateEmailAuthenticationNextStepType = (typeof InitiateEmailAuthenticationNextStepType)[keyof typeof InitiateEmailAuthenticationNextStepType];
547
+
548
+ export declare const InitiateEmailAuthenticationNextStepType: {
549
+ readonly "verify-otp": "verify-otp";
550
+ };
551
+
552
+ export declare interface InitiateEmailAuthenticationRequest {
553
+ type: InitiateEmailAuthenticationRequestType;
554
+ email: string;
555
+ }
556
+
557
+ export declare type InitiateEmailAuthenticationRequestType = (typeof InitiateEmailAuthenticationRequestType)[keyof typeof InitiateEmailAuthenticationRequestType];
558
+
559
+ export declare const InitiateEmailAuthenticationRequestType: {
560
+ readonly email: "email";
561
+ };
562
+
563
+ export declare interface InitiateEmailAuthenticationResponse {
564
+ message: string;
565
+ flowId: string;
566
+ nextStep: InitiateEmailAuthenticationNextStep;
567
+ }
568
+
569
+ export declare type InternalServerErrorResponse = Error_2;
570
+
571
+ export declare type KnownAbiType = (typeof KnownAbiType)[keyof typeof KnownAbiType];
572
+
573
+ export declare const KnownAbiType: {
574
+ readonly erc20: "erc20";
575
+ readonly erc721: "erc721";
576
+ readonly erc1155: "erc1155";
577
+ };
578
+
579
+ export declare type ListEvmTokenBalancesNetwork = (typeof ListEvmTokenBalancesNetwork)[keyof typeof ListEvmTokenBalancesNetwork];
580
+
581
+ export declare const ListEvmTokenBalancesNetwork: {
582
+ readonly base: "base";
583
+ readonly "base-sepolia": "base-sepolia";
584
+ readonly ethereum: "ethereum";
585
+ };
586
+
587
+ export declare interface ListResponse {
588
+ nextPageToken?: string;
589
+ }
590
+
591
+ export declare type ListSolanaTokenBalancesNetwork = (typeof ListSolanaTokenBalancesNetwork)[keyof typeof ListSolanaTokenBalancesNetwork];
592
+
593
+ export declare const ListSolanaTokenBalancesNetwork: {
594
+ readonly solana: "solana";
595
+ readonly "solana-devnet": "solana-devnet";
596
+ };
597
+
598
+ export declare const logOutEndUser: (projectId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
599
+
600
+ export declare type LogOutEndUserResult = NonNullable<Awaited<ReturnType<typeof logOutEndUser>>>;
601
+
602
+ export declare interface OnrampOrder {
603
+ orderId?: string;
604
+ paymentTotal?: string;
605
+ paymentSubtotal?: unknown;
606
+ paymentCurrency?: string;
607
+ paymentMethod?: OnrampPaymentMethodTypeId;
608
+ purchaseAmount?: string;
609
+ purchaseCurrency?: string;
610
+ fees?: OnrampOrderFee[];
611
+ exchangeRate?: string;
612
+ destinationAddress?: string;
613
+ destinationNetwork?: string;
614
+ status?: OnrampOrderStatus;
615
+ txHash?: string;
616
+ createdAt?: string;
617
+ updatedAt?: string;
618
+ }
619
+
620
+ export declare interface OnrampOrderFee {
621
+ type?: OnrampOrderFeeType;
622
+ amount?: string;
623
+ currency?: string;
624
+ }
625
+
626
+ export declare type OnrampOrderFeeType = (typeof OnrampOrderFeeType)[keyof typeof OnrampOrderFeeType];
627
+
628
+ export declare const OnrampOrderFeeType: {
629
+ readonly FEE_TYPE_NETWORK: "FEE_TYPE_NETWORK";
630
+ readonly FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE";
631
+ };
632
+
633
+ export declare type OnrampOrderStatus = (typeof OnrampOrderStatus)[keyof typeof OnrampOrderStatus];
634
+
635
+ export declare const OnrampOrderStatus: {
636
+ readonly ONRAMP_ORDER_STATUS_PENDING_AUTH: "ONRAMP_ORDER_STATUS_PENDING_AUTH";
637
+ readonly ONRAMP_ORDER_STATUS_PENDING_PAYMENT: "ONRAMP_ORDER_STATUS_PENDING_PAYMENT";
638
+ readonly ONRAMP_ORDER_STATUS_PROCESSING: "ONRAMP_ORDER_STATUS_PROCESSING";
639
+ readonly ONRAMP_ORDER_STATUS_COMPLETED: "ONRAMP_ORDER_STATUS_COMPLETED";
640
+ readonly ONRAMP_ORDER_STATUS_FAILED: "ONRAMP_ORDER_STATUS_FAILED";
641
+ };
642
+
643
+ export declare interface OnrampPaymentLink {
644
+ url?: string;
645
+ paymentLinkType?: OnrampPaymentLinkType;
646
+ }
647
+
648
+ export declare type OnrampPaymentLinkType = (typeof OnrampPaymentLinkType)[keyof typeof OnrampPaymentLinkType];
649
+
650
+ export declare const OnrampPaymentLinkType: {
651
+ readonly PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON: "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON";
652
+ };
653
+
654
+ export declare type OnrampPaymentMethodTypeId = (typeof OnrampPaymentMethodTypeId)[keyof typeof OnrampPaymentMethodTypeId];
655
+
656
+ export declare const OnrampPaymentMethodTypeId: {
657
+ readonly GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY";
658
+ };
659
+
660
+ export declare interface PaymentMethod {
661
+ id: string;
662
+ type: PaymentMethodType;
663
+ currency: string;
664
+ actions: PaymentRailAction[];
665
+ limits?: PaymentMethodLimits;
666
+ }
667
+
668
+ export declare type PaymentMethodLimits = {
669
+ sourceLimit?: PaymentMethodLimitsSourceLimit;
670
+ targetLimit?: PaymentMethodLimitsTargetLimit;
671
+ };
672
+
673
+ export declare type PaymentMethodLimitsSourceLimit = {
674
+ amount?: string;
675
+ currency?: string;
676
+ };
677
+
678
+ export declare type PaymentMethodLimitsTargetLimit = {
679
+ amount?: string;
680
+ currency?: string;
681
+ };
682
+
683
+ export declare interface PaymentMethodRequest {
684
+ id: string;
685
+ }
686
+
687
+ export declare type PaymentMethodRequiredErrorResponse = Error_2;
688
+
689
+ export declare type PaymentMethodType = (typeof PaymentMethodType)[keyof typeof PaymentMethodType];
690
+
691
+ export declare const PaymentMethodType: {
692
+ readonly card: "card";
693
+ readonly fiat_account: "fiat_account";
694
+ };
695
+
696
+ export declare type PaymentRailAction = (typeof PaymentRailAction)[keyof typeof PaymentRailAction];
697
+
698
+ export declare const PaymentRailAction: {
699
+ readonly source: "source";
700
+ readonly target: "target";
701
+ };
702
+
703
+ export declare interface Policy {
704
+ id: string;
705
+ description?: string;
706
+ scope: PolicyScope;
707
+ rules: Rule[];
708
+ createdAt: string;
709
+ updatedAt: string;
710
+ }
711
+
712
+ export declare type PolicyScope = (typeof PolicyScope)[keyof typeof PolicyScope];
713
+
714
+ export declare const PolicyScope: {
715
+ readonly project: "project";
716
+ readonly account: "account";
717
+ };
718
+
719
+ export declare interface PrepareRevokeSpendPermissionRequest {
720
+ network: string;
721
+ permissionHash: string;
722
+ paymasterUrl?: string;
723
+ }
724
+
725
+ export declare interface PrepareSpendPermissionRequest {
726
+ network: string;
727
+ account: string;
728
+ spender: string;
729
+ token: string;
730
+ allowance: string;
731
+ period: string;
732
+ start: string;
733
+ end: string;
734
+ salt?: string;
735
+ extraData?: string;
736
+ paymasterUrl?: string;
737
+ }
738
+
739
+ export declare type PrepareUserOperationCriteria = PrepareUserOperationCriteriaItem[];
740
+
741
+ export declare type PrepareUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion;
742
+
743
+ export declare interface PrepareUserOperationRule {
744
+ action: PrepareUserOperationRuleAction;
745
+ operation: PrepareUserOperationRuleOperation;
746
+ criteria: PrepareUserOperationCriteria;
747
+ }
748
+
749
+ export declare type PrepareUserOperationRuleAction = (typeof PrepareUserOperationRuleAction)[keyof typeof PrepareUserOperationRuleAction];
750
+
751
+ export declare const PrepareUserOperationRuleAction: {
752
+ readonly reject: "reject";
753
+ readonly accept: "accept";
754
+ };
755
+
756
+ export declare type PrepareUserOperationRuleOperation = (typeof PrepareUserOperationRuleOperation)[keyof typeof PrepareUserOperationRuleOperation];
757
+
758
+ export declare const PrepareUserOperationRuleOperation: {
759
+ readonly prepareUserOperation: "prepareUserOperation";
760
+ };
761
+
762
+ export declare interface QueryRequest {
763
+ sql: string;
764
+ }
765
+
766
+ export declare interface QueryResult {
767
+ result?: QueryResultResultItem[];
768
+ schema?: QueryResultSchema;
769
+ }
770
+
771
+ export declare type QueryResultResultItem = {
772
+ [key: string]: unknown;
773
+ };
774
+
775
+ export declare type QueryResultSchema = {
776
+ columns?: QueryResultSchemaColumnsItem[];
777
+ };
778
+
779
+ export declare type QueryResultSchemaColumnsItem = {
780
+ name?: string;
781
+ type?: QueryResultSchemaColumnsItemType;
782
+ };
783
+
784
+ export declare type QueryResultSchemaColumnsItemType = (typeof QueryResultSchemaColumnsItemType)[keyof typeof QueryResultSchemaColumnsItemType];
785
+
786
+ export declare const QueryResultSchemaColumnsItemType: {
787
+ readonly String: "String";
788
+ readonly UInt8: "UInt8";
789
+ readonly UInt16: "UInt16";
790
+ readonly UInt32: "UInt32";
791
+ readonly UInt64: "UInt64";
792
+ readonly UInt128: "UInt128";
793
+ readonly UInt256: "UInt256";
794
+ readonly Int8: "Int8";
795
+ readonly Int16: "Int16";
796
+ readonly Int32: "Int32";
797
+ readonly Int64: "Int64";
798
+ readonly Int128: "Int128";
799
+ readonly Int256: "Int256";
800
+ readonly Float32: "Float32";
801
+ readonly Float64: "Float64";
802
+ readonly Bool: "Bool";
803
+ readonly Date: "Date";
804
+ readonly DateTime: "DateTime";
805
+ readonly DateTime64: "DateTime64";
806
+ readonly UUID: "UUID";
807
+ readonly IPv4: "IPv4";
808
+ readonly IPv6: "IPv6";
809
+ };
810
+
811
+ export declare type RateLimitExceededResponse = Error_2;
812
+
813
+ export declare const refreshAccessToken: (projectId: string, refreshAccessTokenBody: RefreshAccessTokenBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RefreshAccessToken200>;
814
+
815
+ export declare type RefreshAccessToken200 = {
816
+ endUser: EndUser;
817
+ accessToken: string;
818
+ validUntil: string;
819
+ };
820
+
821
+ export declare type RefreshAccessTokenBody = {
822
+ grantType: RefreshAccessTokenBodyGrantType;
823
+ };
824
+
825
+ export declare type RefreshAccessTokenBodyGrantType = (typeof RefreshAccessTokenBodyGrantType)[keyof typeof RefreshAccessTokenBodyGrantType];
826
+
827
+ export declare const RefreshAccessTokenBodyGrantType: {
828
+ readonly refresh_token: "refresh_token";
829
+ };
830
+
831
+ export declare type RefreshAccessTokenResult = NonNullable<Awaited<ReturnType<typeof refreshAccessToken>>>;
832
+
833
+ export declare const registerTemporaryWalletSecret: (projectId: string, userId: string, registerTemporaryWalletSecretBody: RegisterTemporaryWalletSecretBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RegisterTemporaryWalletSecret200>;
834
+
835
+ export declare type RegisterTemporaryWalletSecret200 = {
836
+ walletSecretId: string;
837
+ validUntil: string;
838
+ };
839
+
840
+ export declare type RegisterTemporaryWalletSecretBody = {
841
+ publicKey: string;
842
+ validUntil: string;
843
+ walletSecretId?: string;
844
+ };
845
+
846
+ export declare type RegisterTemporaryWalletSecretResult = NonNullable<Awaited<ReturnType<typeof registerTemporaryWalletSecret>>>;
847
+
848
+ export declare type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule;
849
+
850
+ export declare type SecondFactorProofTokenParameter = string;
851
+
852
+ declare type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
853
+
854
+ export declare type SendEvmTransactionCriteria = SendEvmTransactionCriteriaItem[];
855
+
856
+ export declare type SendEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion;
857
+
858
+ export declare interface SendEvmTransactionRule {
859
+ action: SendEvmTransactionRuleAction;
860
+ operation: SendEvmTransactionRuleOperation;
861
+ criteria: SendEvmTransactionCriteria;
862
+ }
863
+
864
+ export declare type SendEvmTransactionRuleAction = (typeof SendEvmTransactionRuleAction)[keyof typeof SendEvmTransactionRuleAction];
865
+
866
+ export declare const SendEvmTransactionRuleAction: {
867
+ readonly reject: "reject";
868
+ readonly accept: "accept";
869
+ };
870
+
871
+ export declare type SendEvmTransactionRuleOperation = (typeof SendEvmTransactionRuleOperation)[keyof typeof SendEvmTransactionRuleOperation];
872
+
873
+ export declare const SendEvmTransactionRuleOperation: {
874
+ readonly sendEvmTransaction: "sendEvmTransaction";
875
+ };
876
+
877
+ export declare const sendEvmTransactionWithEndUserAccount: (projectId: string, userId: string, sendEvmTransactionWithEndUserAccountBody: SendEvmTransactionWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SendEvmTransactionWithEndUserAccount200>;
878
+
879
+ export declare type SendEvmTransactionWithEndUserAccount200 = {
880
+ transactionHash: string;
881
+ };
882
+
883
+ export declare type SendEvmTransactionWithEndUserAccountBody = {
884
+ address: string;
885
+ network: SendEvmTransactionWithEndUserAccountBodyNetwork;
886
+ walletSecretId: string;
887
+ transaction: string;
888
+ };
889
+
890
+ export declare type SendEvmTransactionWithEndUserAccountBodyNetwork = (typeof SendEvmTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendEvmTransactionWithEndUserAccountBodyNetwork];
891
+
892
+ export declare const SendEvmTransactionWithEndUserAccountBodyNetwork: {
893
+ readonly base: "base";
894
+ readonly "base-sepolia": "base-sepolia";
895
+ };
896
+
897
+ export declare type SendEvmTransactionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendEvmTransactionWithEndUserAccount>>>;
898
+
899
+ export declare interface SendRevokeSpendPermissionRequest {
900
+ signature: string;
901
+ }
902
+
903
+ export declare interface SendSpendPermissionRequest {
904
+ signature: string;
905
+ }
906
+
907
+ export declare type SendUserOperationCriteria = SendUserOperationCriteriaItem[];
908
+
909
+ export declare type SendUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion;
910
+
911
+ export declare interface SendUserOperationRule {
912
+ action: SendUserOperationRuleAction;
913
+ operation: SendUserOperationRuleOperation;
914
+ criteria: SendUserOperationCriteria;
915
+ }
916
+
917
+ export declare type SendUserOperationRuleAction = (typeof SendUserOperationRuleAction)[keyof typeof SendUserOperationRuleAction];
918
+
919
+ export declare const SendUserOperationRuleAction: {
920
+ readonly reject: "reject";
921
+ readonly accept: "accept";
922
+ };
923
+
924
+ export declare type SendUserOperationRuleOperation = (typeof SendUserOperationRuleOperation)[keyof typeof SendUserOperationRuleOperation];
925
+
926
+ export declare const SendUserOperationRuleOperation: {
927
+ readonly sendUserOperation: "sendUserOperation";
928
+ };
929
+
930
+ export declare type ServiceUnavailableErrorResponse = Error_2;
931
+
932
+ export declare const setAuthManager: (manager: AuthManager) => void;
933
+
934
+ export declare type SignerAddress = string;
935
+
936
+ export declare interface SignEvmHashRule {
937
+ action: SignEvmHashRuleAction;
938
+ operation: SignEvmHashRuleOperation;
939
+ }
940
+
941
+ export declare type SignEvmHashRuleAction = (typeof SignEvmHashRuleAction)[keyof typeof SignEvmHashRuleAction];
942
+
943
+ export declare const SignEvmHashRuleAction: {
944
+ readonly reject: "reject";
945
+ readonly accept: "accept";
946
+ };
947
+
948
+ export declare type SignEvmHashRuleOperation = (typeof SignEvmHashRuleOperation)[keyof typeof SignEvmHashRuleOperation];
949
+
950
+ export declare const SignEvmHashRuleOperation: {
951
+ readonly signEvmHash: "signEvmHash";
952
+ };
953
+
954
+ export declare const signEvmHashWithEndUserAccount: (projectId: string, userId: string, signEvmHashWithEndUserAccountBody: SignEvmHashWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignEvmHashWithEndUserAccount200>;
955
+
956
+ export declare type SignEvmHashWithEndUserAccount200 = {
957
+ signature: string;
958
+ };
959
+
960
+ export declare type SignEvmHashWithEndUserAccountBody = {
961
+ hash: string;
962
+ address: string;
963
+ walletSecretId: string;
964
+ };
965
+
966
+ export declare type SignEvmHashWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signEvmHashWithEndUserAccount>>>;
967
+
968
+ export declare type SignEvmMessageCriteria = EvmMessageCriterion[];
969
+
970
+ export declare interface SignEvmMessageRule {
971
+ action: SignEvmMessageRuleAction;
972
+ operation: SignEvmMessageRuleOperation;
973
+ criteria: SignEvmMessageCriteria;
974
+ }
975
+
976
+ export declare type SignEvmMessageRuleAction = (typeof SignEvmMessageRuleAction)[keyof typeof SignEvmMessageRuleAction];
977
+
978
+ export declare const SignEvmMessageRuleAction: {
979
+ readonly reject: "reject";
980
+ readonly accept: "accept";
981
+ };
982
+
983
+ export declare type SignEvmMessageRuleOperation = (typeof SignEvmMessageRuleOperation)[keyof typeof SignEvmMessageRuleOperation];
984
+
985
+ export declare const SignEvmMessageRuleOperation: {
986
+ readonly signEvmMessage: "signEvmMessage";
987
+ };
988
+
989
+ export declare const signEvmMessageWithEndUserAccount: (projectId: string, userId: string, signEvmMessageWithEndUserAccountBody: SignEvmMessageWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignEvmMessageWithEndUserAccount200>;
990
+
991
+ export declare type SignEvmMessageWithEndUserAccount200 = {
992
+ signature: string;
993
+ };
994
+
995
+ export declare type SignEvmMessageWithEndUserAccountBody = {
996
+ address: string;
997
+ message: string;
998
+ walletSecretId: string;
999
+ };
1000
+
1001
+ export declare type SignEvmMessageWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signEvmMessageWithEndUserAccount>>>;
1002
+
1003
+ export declare type SignEvmTransactionCriteria = SignEvmTransactionCriteriaItem[];
1004
+
1005
+ export declare type SignEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion;
1006
+
1007
+ export declare interface SignEvmTransactionRule {
1008
+ action: SignEvmTransactionRuleAction;
1009
+ operation: SignEvmTransactionRuleOperation;
1010
+ criteria: SignEvmTransactionCriteria;
1011
+ }
1012
+
1013
+ export declare type SignEvmTransactionRuleAction = (typeof SignEvmTransactionRuleAction)[keyof typeof SignEvmTransactionRuleAction];
1014
+
1015
+ export declare const SignEvmTransactionRuleAction: {
1016
+ readonly reject: "reject";
1017
+ readonly accept: "accept";
1018
+ };
1019
+
1020
+ export declare type SignEvmTransactionRuleOperation = (typeof SignEvmTransactionRuleOperation)[keyof typeof SignEvmTransactionRuleOperation];
1021
+
1022
+ export declare const SignEvmTransactionRuleOperation: {
1023
+ readonly signEvmTransaction: "signEvmTransaction";
1024
+ };
1025
+
1026
+ export declare const signEvmTransactionWithEndUserAccount: (projectId: string, userId: string, signEvmTransactionWithEndUserAccountBody: SignEvmTransactionWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignEvmTransactionWithEndUserAccount200>;
1027
+
1028
+ export declare type SignEvmTransactionWithEndUserAccount200 = {
1029
+ signedTransaction: string;
1030
+ };
1031
+
1032
+ export declare type SignEvmTransactionWithEndUserAccountBody = {
1033
+ address: string;
1034
+ transaction: string;
1035
+ walletSecretId: string;
1036
+ };
1037
+
1038
+ export declare type SignEvmTransactionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signEvmTransactionWithEndUserAccount>>>;
1039
+
1040
+ export declare type SignEvmTypedDataCriteria = SignEvmTypedDataCriteriaItem[];
1041
+
1042
+ export declare type SignEvmTypedDataCriteriaItem = SignEvmTypedDataFieldCriterion | SignEvmTypedDataVerifyingContractCriterion;
1043
+
1044
+ export declare interface SignEvmTypedDataFieldCriterion {
1045
+ type: SignEvmTypedDataFieldCriterionType;
1046
+ types: SignEvmTypedDataFieldCriterionTypes;
1047
+ conditions: SignEvmTypedDataFieldCriterionConditionsItem[];
1048
+ }
1049
+
1050
+ export declare type SignEvmTypedDataFieldCriterionConditionsItem = EvmTypedAddressCondition | EvmTypedNumericalCondition | EvmTypedStringCondition;
1051
+
1052
+ export declare type SignEvmTypedDataFieldCriterionType = (typeof SignEvmTypedDataFieldCriterionType)[keyof typeof SignEvmTypedDataFieldCriterionType];
1053
+
1054
+ export declare const SignEvmTypedDataFieldCriterionType: {
1055
+ readonly evmTypedDataField: "evmTypedDataField";
1056
+ };
1057
+
1058
+ export declare type SignEvmTypedDataFieldCriterionTypes = {
1059
+ types: SignEvmTypedDataFieldCriterionTypesTypes;
1060
+ primaryType: string;
1061
+ };
1062
+
1063
+ export declare type SignEvmTypedDataFieldCriterionTypesTypes = {
1064
+ [key: string]: SignEvmTypedDataFieldCriterionTypesTypesItem[];
1065
+ };
1066
+
1067
+ export declare type SignEvmTypedDataFieldCriterionTypesTypesItem = {
1068
+ name?: string;
1069
+ type?: string;
1070
+ };
1071
+
1072
+ export declare interface SignEvmTypedDataRule {
1073
+ action: SignEvmTypedDataRuleAction;
1074
+ operation: SignEvmTypedDataRuleOperation;
1075
+ criteria: SignEvmTypedDataCriteria;
1076
+ }
1077
+
1078
+ export declare type SignEvmTypedDataRuleAction = (typeof SignEvmTypedDataRuleAction)[keyof typeof SignEvmTypedDataRuleAction];
1079
+
1080
+ export declare const SignEvmTypedDataRuleAction: {
1081
+ readonly reject: "reject";
1082
+ readonly accept: "accept";
1083
+ };
1084
+
1085
+ export declare type SignEvmTypedDataRuleOperation = (typeof SignEvmTypedDataRuleOperation)[keyof typeof SignEvmTypedDataRuleOperation];
1086
+
1087
+ export declare const SignEvmTypedDataRuleOperation: {
1088
+ readonly signEvmTypedData: "signEvmTypedData";
1089
+ };
1090
+
1091
+ export declare interface SignEvmTypedDataVerifyingContractCriterion {
1092
+ type: SignEvmTypedDataVerifyingContractCriterionType;
1093
+ addresses: string[];
1094
+ operator: SignEvmTypedDataVerifyingContractCriterionOperator;
1095
+ }
1096
+
1097
+ export declare type SignEvmTypedDataVerifyingContractCriterionOperator = (typeof SignEvmTypedDataVerifyingContractCriterionOperator)[keyof typeof SignEvmTypedDataVerifyingContractCriterionOperator];
1098
+
1099
+ export declare const SignEvmTypedDataVerifyingContractCriterionOperator: {
1100
+ readonly in: "in";
1101
+ readonly not_in: "not in";
1102
+ };
1103
+
1104
+ export declare type SignEvmTypedDataVerifyingContractCriterionType = (typeof SignEvmTypedDataVerifyingContractCriterionType)[keyof typeof SignEvmTypedDataVerifyingContractCriterionType];
1105
+
1106
+ export declare const SignEvmTypedDataVerifyingContractCriterionType: {
1107
+ readonly evmTypedDataVerifyingContract: "evmTypedDataVerifyingContract";
1108
+ };
1109
+
1110
+ export declare const signEvmTypedDataWithEndUserAccount: (projectId: string, userId: string, signEvmTypedDataWithEndUserAccountBody: SignEvmTypedDataWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignEvmTypedDataWithEndUserAccount200>;
1111
+
1112
+ export declare type SignEvmTypedDataWithEndUserAccount200 = {
1113
+ signature: string;
1114
+ };
1115
+
1116
+ export declare type SignEvmTypedDataWithEndUserAccountBody = {
1117
+ address: string;
1118
+ typedData: EIP712Message;
1119
+ walletSecretId: string;
1120
+ };
1121
+
1122
+ export declare type SignEvmTypedDataWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signEvmTypedDataWithEndUserAccount>>>;
1123
+
1124
+ export declare type SignSolTransactionCriteria = SolAddressCriterion[];
1125
+
1126
+ export declare interface SignSolTransactionRule {
1127
+ action: SignSolTransactionRuleAction;
1128
+ operation: SignSolTransactionRuleOperation;
1129
+ criteria: SignSolTransactionCriteria;
1130
+ }
1131
+
1132
+ export declare type SignSolTransactionRuleAction = (typeof SignSolTransactionRuleAction)[keyof typeof SignSolTransactionRuleAction];
1133
+
1134
+ export declare const SignSolTransactionRuleAction: {
1135
+ readonly reject: "reject";
1136
+ readonly accept: "accept";
1137
+ };
1138
+
1139
+ export declare type SignSolTransactionRuleOperation = (typeof SignSolTransactionRuleOperation)[keyof typeof SignSolTransactionRuleOperation];
1140
+
1141
+ export declare const SignSolTransactionRuleOperation: {
1142
+ readonly signSolTransaction: "signSolTransaction";
1143
+ };
1144
+
1145
+ export declare type SlippageBps = number;
1146
+
1147
+ export declare interface SolAddressCriterion {
1148
+ type: SolAddressCriterionType;
1149
+ addresses: string[];
1150
+ operator: SolAddressCriterionOperator;
1151
+ }
1152
+
1153
+ export declare type SolAddressCriterionOperator = (typeof SolAddressCriterionOperator)[keyof typeof SolAddressCriterionOperator];
1154
+
1155
+ export declare const SolAddressCriterionOperator: {
1156
+ readonly in: "in";
1157
+ readonly not_in: "not in";
1158
+ };
1159
+
1160
+ export declare type SolAddressCriterionType = (typeof SolAddressCriterionType)[keyof typeof SolAddressCriterionType];
1161
+
1162
+ export declare const SolAddressCriterionType: {
1163
+ readonly solAddress: "solAddress";
1164
+ };
1165
+
1166
+ export declare interface SolanaAccount {
1167
+ address: string;
1168
+ name?: string;
1169
+ policies?: string[];
1170
+ createdAt?: string;
1171
+ updatedAt?: string;
1172
+ }
1173
+
1174
+ export declare interface SolanaToken {
1175
+ symbol?: string;
1176
+ name?: string;
1177
+ mintAddress: string;
1178
+ }
1179
+
1180
+ export declare interface SolanaTokenAmount {
1181
+ amount: string;
1182
+ decimals: number;
1183
+ }
1184
+
1185
+ export declare interface SolanaTokenBalance {
1186
+ amount: SolanaTokenAmount;
1187
+ token: SolanaToken;
1188
+ }
1189
+
1190
+ export declare interface SwapUnavailableResponse {
1191
+ liquidityAvailable: boolean;
1192
+ }
1193
+
1194
+ export declare type Taker = string;
1195
+
1196
+ export declare interface Token {
1197
+ network: ListEvmTokenBalancesNetwork;
1198
+ symbol?: string;
1199
+ name?: string;
1200
+ contractAddress: string;
1201
+ }
1202
+
1203
+ export declare interface TokenAmount {
1204
+ amount: string;
1205
+ decimals: number;
1206
+ }
1207
+
1208
+ export declare interface TokenBalance {
1209
+ amount: TokenAmount;
1210
+ token: Token;
1211
+ }
1212
+
1213
+ export declare interface TokenFee {
1214
+ amount: string;
1215
+ token: string;
1216
+ }
1217
+
1218
+ export declare type ToToken = string;
1219
+
1220
+ export declare interface Transfer {
1221
+ id: string;
1222
+ sourceType: TransferSourceType;
1223
+ source: PaymentMethodRequest;
1224
+ targetType: TransferTargetType;
1225
+ target: CryptoRailAddress;
1226
+ sourceAmount: string;
1227
+ sourceCurrency: string;
1228
+ targetAmount: string;
1229
+ targetCurrency: string;
1230
+ userAmount: string;
1231
+ userCurrency: string;
1232
+ fees: Fee[];
1233
+ status: TransferStatus;
1234
+ createdAt: string;
1235
+ updatedAt: string;
1236
+ transactionHash?: string;
1237
+ }
1238
+
1239
+ export declare type TransferSource = PaymentMethodRequest;
1240
+
1241
+ export declare type TransferSourceType = (typeof TransferSourceType)[keyof typeof TransferSourceType];
1242
+
1243
+ export declare const TransferSourceType: {
1244
+ readonly payment_method: "payment_method";
1245
+ };
1246
+
1247
+ export declare type TransferStatus = (typeof TransferStatus)[keyof typeof TransferStatus];
1248
+
1249
+ export declare const TransferStatus: {
1250
+ readonly created: "created";
1251
+ readonly pending: "pending";
1252
+ readonly started: "started";
1253
+ readonly completed: "completed";
1254
+ readonly failed: "failed";
1255
+ };
1256
+
1257
+ export declare type TransferTarget = CryptoRailAddress;
1258
+
1259
+ export declare type TransferTargetType = (typeof TransferTargetType)[keyof typeof TransferTargetType];
1260
+
1261
+ export declare const TransferTargetType: {
1262
+ readonly crypto_rail: "crypto_rail";
1263
+ };
1264
+
1265
+ export declare type UnauthorizedErrorResponse = Error_2;
1266
+
1267
+ export declare interface UserOperationReceipt {
1268
+ revert?: UserOperationReceiptRevert;
1269
+ }
1270
+
1271
+ export declare type UserOperationReceiptRevert = {
1272
+ data?: string;
1273
+ message?: string;
1274
+ };
1275
+
1276
+ export declare const verifyEmailAuthentication: (projectId: string, verifyEmailAuthenticationRequest: VerifyEmailAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifyEmailAuthentication200>;
1277
+
1278
+ export declare type VerifyEmailAuthentication200 = {
1279
+ endUser: EndUser;
1280
+ isNewEndUser: boolean;
1281
+ message: string;
1282
+ accessToken: string;
1283
+ validUntil: string;
1284
+ };
1285
+
1286
+ export declare interface VerifyEmailAuthenticationRequest {
1287
+ flowId: string;
1288
+ otp: string;
1289
+ }
1290
+
1291
+ export declare type VerifyEmailAuthenticationResult = NonNullable<Awaited<ReturnType<typeof verifyEmailAuthentication>>>;
1292
+
1293
+ export declare interface WalletSecretMetadata {
1294
+ updatedAt: string;
1295
+ }
1296
+
1297
+ export declare interface X402ExactEvmPayload {
1298
+ signature: string;
1299
+ authorization: X402ExactEvmPayloadAuthorization;
1300
+ }
1301
+
1302
+ export declare type X402ExactEvmPayloadAuthorization = {
1303
+ from: string;
1304
+ to: string;
1305
+ value: string;
1306
+ validAfter: string;
1307
+ validBefore: string;
1308
+ nonce: string;
1309
+ };
1310
+
1311
+ export declare interface X402PaymentPayload {
1312
+ x402Version: X402PaymentPayloadX402Version;
1313
+ scheme: X402PaymentPayloadScheme;
1314
+ network: X402PaymentPayloadNetwork;
1315
+ payload: X402ExactEvmPayload;
1316
+ }
1317
+
1318
+ export declare type X402PaymentPayloadNetwork = (typeof X402PaymentPayloadNetwork)[keyof typeof X402PaymentPayloadNetwork];
1319
+
1320
+ export declare const X402PaymentPayloadNetwork: {
1321
+ readonly "base-sepolia": "base-sepolia";
1322
+ readonly base: "base";
1323
+ };
1324
+
1325
+ export declare type X402PaymentPayloadScheme = (typeof X402PaymentPayloadScheme)[keyof typeof X402PaymentPayloadScheme];
1326
+
1327
+ export declare const X402PaymentPayloadScheme: {
1328
+ readonly exact: "exact";
1329
+ };
1330
+
1331
+ export declare type X402PaymentPayloadX402Version = (typeof X402PaymentPayloadX402Version)[keyof typeof X402PaymentPayloadX402Version];
1332
+
1333
+ export declare const X402PaymentPayloadX402Version: {
1334
+ readonly NUMBER_1: 1;
1335
+ };
1336
+
1337
+ export declare interface X402PaymentRequirements {
1338
+ scheme: X402PaymentRequirementsScheme;
1339
+ network: X402PaymentRequirementsNetwork;
1340
+ maxAmountRequired: string;
1341
+ resource: string;
1342
+ description: string;
1343
+ mimeType: string;
1344
+ outputSchema?: X402PaymentRequirementsOutputSchema;
1345
+ payTo: string;
1346
+ maxTimeoutSeconds: number;
1347
+ asset: string;
1348
+ extra?: X402PaymentRequirementsExtra;
1349
+ }
1350
+
1351
+ export declare type X402PaymentRequirementsExtra = {
1352
+ [key: string]: unknown;
1353
+ };
1354
+
1355
+ export declare type X402PaymentRequirementsNetwork = (typeof X402PaymentRequirementsNetwork)[keyof typeof X402PaymentRequirementsNetwork];
1356
+
1357
+ export declare const X402PaymentRequirementsNetwork: {
1358
+ readonly "base-sepolia": "base-sepolia";
1359
+ readonly base: "base";
1360
+ };
1361
+
1362
+ export declare type X402PaymentRequirementsOutputSchema = {
1363
+ [key: string]: unknown;
1364
+ };
1365
+
1366
+ export declare type X402PaymentRequirementsScheme = (typeof X402PaymentRequirementsScheme)[keyof typeof X402PaymentRequirementsScheme];
1367
+
1368
+ export declare const X402PaymentRequirementsScheme: {
1369
+ readonly exact: "exact";
1370
+ };
1371
+
1372
+ export declare type X402SettleErrorReason = (typeof X402SettleErrorReason)[keyof typeof X402SettleErrorReason];
1373
+
1374
+ export declare const X402SettleErrorReason: {
1375
+ readonly insufficient_funds: "insufficient_funds";
1376
+ readonly invalid_scheme: "invalid_scheme";
1377
+ readonly invalid_network: "invalid_network";
1378
+ readonly invalid_x402_version: "invalid_x402_version";
1379
+ readonly invalid_payment_requirements: "invalid_payment_requirements";
1380
+ readonly invalid_payload: "invalid_payload";
1381
+ readonly invalid_exact_evm_payload_authorization_value: "invalid_exact_evm_payload_authorization_value";
1382
+ readonly invalid_exact_evm_payload_authorization_valid_after: "invalid_exact_evm_payload_authorization_valid_after";
1383
+ readonly invalid_exact_evm_payload_authorization_valid_before: "invalid_exact_evm_payload_authorization_valid_before";
1384
+ readonly invalid_exact_evm_payload_authorization_typed_data_message: "invalid_exact_evm_payload_authorization_typed_data_message";
1385
+ readonly invalid_exact_evm_payload_authorization_from_address_kyt: "invalid_exact_evm_payload_authorization_from_address_kyt";
1386
+ readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
1387
+ readonly invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address";
1388
+ };
1389
+
1390
+ export declare type X402SettleResponseResponse = {
1391
+ success: boolean;
1392
+ errorReason?: X402SettleErrorReason;
1393
+ payer: string;
1394
+ transaction: string;
1395
+ network: string;
1396
+ };
1397
+
1398
+ export declare interface X402SupportedPaymentKind {
1399
+ x402Version: X402SupportedPaymentKindX402Version;
1400
+ scheme: X402SupportedPaymentKindScheme;
1401
+ network: X402SupportedPaymentKindNetwork;
1402
+ }
1403
+
1404
+ export declare type X402SupportedPaymentKindNetwork = (typeof X402SupportedPaymentKindNetwork)[keyof typeof X402SupportedPaymentKindNetwork];
1405
+
1406
+ export declare const X402SupportedPaymentKindNetwork: {
1407
+ readonly "base-sepolia": "base-sepolia";
1408
+ readonly base: "base";
1409
+ };
1410
+
1411
+ export declare type X402SupportedPaymentKindScheme = (typeof X402SupportedPaymentKindScheme)[keyof typeof X402SupportedPaymentKindScheme];
1412
+
1413
+ export declare const X402SupportedPaymentKindScheme: {
1414
+ readonly exact: "exact";
1415
+ };
1416
+
1417
+ export declare type X402SupportedPaymentKindsResponseResponse = {
1418
+ kinds: X402SupportedPaymentKind[];
1419
+ };
1420
+
1421
+ export declare type X402SupportedPaymentKindX402Version = (typeof X402SupportedPaymentKindX402Version)[keyof typeof X402SupportedPaymentKindX402Version];
1422
+
1423
+ export declare const X402SupportedPaymentKindX402Version: {
1424
+ readonly NUMBER_1: 1;
1425
+ };
1426
+
1427
+ export declare type X402VerifyInvalidReason = (typeof X402VerifyInvalidReason)[keyof typeof X402VerifyInvalidReason];
1428
+
1429
+ export declare const X402VerifyInvalidReason: {
1430
+ readonly insufficient_funds: "insufficient_funds";
1431
+ readonly invalid_scheme: "invalid_scheme";
1432
+ readonly invalid_network: "invalid_network";
1433
+ readonly invalid_x402_version: "invalid_x402_version";
1434
+ readonly invalid_payment_requirements: "invalid_payment_requirements";
1435
+ readonly invalid_payload: "invalid_payload";
1436
+ readonly invalid_exact_evm_payload_authorization_value: "invalid_exact_evm_payload_authorization_value";
1437
+ readonly invalid_exact_evm_payload_authorization_valid_after: "invalid_exact_evm_payload_authorization_valid_after";
1438
+ readonly invalid_exact_evm_payload_authorization_valid_before: "invalid_exact_evm_payload_authorization_valid_before";
1439
+ readonly invalid_exact_evm_payload_authorization_typed_data_message: "invalid_exact_evm_payload_authorization_typed_data_message";
1440
+ readonly invalid_exact_evm_payload_authorization_from_address_kyt: "invalid_exact_evm_payload_authorization_from_address_kyt";
1441
+ readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
1442
+ readonly invalid_exact_evm_payload_signature: "invalid_exact_evm_payload_signature";
1443
+ readonly invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address";
1444
+ };
1445
+
1446
+ export declare type X402VerifyResponseResponse = {
1447
+ isValid: boolean;
1448
+ invalidReason?: X402VerifyInvalidReason;
1449
+ payer: string;
1450
+ };
1451
+
1452
+ export declare type XDeveloperAuthParameter = string;
1453
+
1454
+ export declare type XWalletAuthOptionalParameter = string;
1455
+
1456
+ export declare type XWalletAuthParameter = string;
1457
+
1458
+ export { }