@coinbase/cdp-api-client 0.0.17 → 0.0.19

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.
@@ -79,7 +79,7 @@ export declare class APIError extends Error {
79
79
 
80
80
  export declare type APIErrorType = ErrorType | HttpErrorType;
81
81
 
82
- export declare type AuthenticationMethod = EmailAuthentication | DeveloperJWTAuthentication;
82
+ export declare type AuthenticationMethod = EmailAuthentication | SmsAuthentication | DeveloperJWTAuthentication;
83
83
 
84
84
  export declare type AuthenticationMethods = AuthenticationMethod[];
85
85
 
@@ -145,11 +145,32 @@ export declare const configureCdpApiClient: (options: CdpOptions) => void;
145
145
  export declare const createEndUserEvmAccount: (projectId: string, userId: string, createEndUserEvmAccountBody: CreateEndUserEvmAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
146
146
 
147
147
  export declare type CreateEndUserEvmAccountBody = {
148
- walletSecretId?: string;
148
+ walletSecretId: string;
149
149
  };
150
150
 
151
151
  export declare type CreateEndUserEvmAccountResult = NonNullable<Awaited<ReturnType<typeof createEndUserEvmAccount>>>;
152
152
 
153
+ export declare const createEndUserEvmSmartAccount: (projectId: string, userId: string, createEndUserEvmSmartAccountBody: CreateEndUserEvmSmartAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
154
+
155
+ export declare type CreateEndUserEvmSmartAccountBody = {
156
+ owner: string;
157
+ };
158
+
159
+ export declare type CreateEndUserEvmSmartAccountResult = NonNullable<Awaited<ReturnType<typeof createEndUserEvmSmartAccount>>>;
160
+
161
+ export declare interface CreateSpendPermissionRequest {
162
+ network: string;
163
+ spender: string;
164
+ token: string;
165
+ allowance: string;
166
+ period: string;
167
+ start: string;
168
+ end: string;
169
+ salt?: string;
170
+ extraData?: string;
171
+ paymasterUrl?: string;
172
+ }
173
+
153
174
  export declare type CreateSwapQuoteResponse = CreateSwapQuoteResponseAllOf & CommonSwapResponse;
154
175
 
155
176
  export declare type CreateSwapQuoteResponseAllOf = {
@@ -240,7 +261,9 @@ export declare const EmailAuthenticationType: {
240
261
  export declare interface EndUser {
241
262
  userId: string;
242
263
  authenticationMethods: AuthenticationMethods;
243
- evmAccounts?: string[];
264
+ evmAccounts: string[];
265
+ evmSmartAccounts: string[];
266
+ solanaAccounts: string[];
244
267
  }
245
268
 
246
269
  declare interface Error_2 {
@@ -261,6 +284,7 @@ export declare const ErrorType: {
261
284
  readonly idempotency_error: "idempotency_error";
262
285
  readonly internal_server_error: "internal_server_error";
263
286
  readonly invalid_request: "invalid_request";
287
+ readonly invalid_sql_query: "invalid_sql_query";
264
288
  readonly invalid_signature: "invalid_signature";
265
289
  readonly malformed_transaction: "malformed_transaction";
266
290
  readonly not_found: "not_found";
@@ -278,7 +302,7 @@ export declare const ErrorType: {
278
302
  readonly guest_region_forbidden: "guest_region_forbidden";
279
303
  readonly guest_transaction_limit: "guest_transaction_limit";
280
304
  readonly guest_transaction_count: "guest_transaction_count";
281
- readonly guest_phone_number_verification_expired: "guest_phone_number_verification_expired";
305
+ readonly phone_number_verification_expired: "phone_number_verification_expired";
282
306
  };
283
307
 
284
308
  export declare interface EthValueCriterion {
@@ -408,6 +432,14 @@ export declare type EvmNetworkCriterionNetworksItem = (typeof EvmNetworkCriterio
408
432
  export declare const EvmNetworkCriterionNetworksItem: {
409
433
  readonly "base-sepolia": "base-sepolia";
410
434
  readonly base: "base";
435
+ readonly ethereum: "ethereum";
436
+ readonly "ethereum-sepolia": "ethereum-sepolia";
437
+ readonly avalanche: "avalanche";
438
+ readonly polygon: "polygon";
439
+ readonly optimism: "optimism";
440
+ readonly arbitrum: "arbitrum";
441
+ readonly zora: "zora";
442
+ readonly bnb: "bnb";
411
443
  };
412
444
 
413
445
  export declare type EvmNetworkCriterionOperator = (typeof EvmNetworkCriterionOperator)[keyof typeof EvmNetworkCriterionOperator];
@@ -437,6 +469,8 @@ export declare type EvmSwapsNetwork = (typeof EvmSwapsNetwork)[keyof typeof EvmS
437
469
  export declare const EvmSwapsNetwork: {
438
470
  readonly base: "base";
439
471
  readonly ethereum: "ethereum";
472
+ readonly arbitrum: "arbitrum";
473
+ readonly optimism: "optimism";
440
474
  };
441
475
 
442
476
  export declare interface EvmTypedAddressCondition {
@@ -487,6 +521,14 @@ export declare type EvmUserOperationNetwork = (typeof EvmUserOperationNetwork)[k
487
521
  export declare const EvmUserOperationNetwork: {
488
522
  readonly "base-sepolia": "base-sepolia";
489
523
  readonly base: "base";
524
+ readonly arbitrum: "arbitrum";
525
+ readonly optimism: "optimism";
526
+ readonly zora: "zora";
527
+ readonly polygon: "polygon";
528
+ readonly bnb: "bnb";
529
+ readonly avalanche: "avalanche";
530
+ readonly ethereum: "ethereum";
531
+ readonly "ethereum-sepolia": "ethereum-sepolia";
490
532
  };
491
533
 
492
534
  export declare type EvmUserOperationStatus = (typeof EvmUserOperationStatus)[keyof typeof EvmUserOperationStatus];
@@ -547,6 +589,10 @@ export declare type GetSwapPriceResponseAllOf = {
547
589
 
548
590
  export declare type GetSwapPriceResponseWrapper = GetSwapPriceResponse | SwapUnavailableResponse;
549
591
 
592
+ export declare const getUserOperationWithEndUserAccount: (projectId: string, userId: string, address: string, userOpHash: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
593
+
594
+ export declare type GetUserOperationWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof getUserOperationWithEndUserAccount>>>;
595
+
550
596
  export declare const HttpErrorType: {
551
597
  readonly unexpected_error: "unexpected_error";
552
598
  readonly unauthorized: "unauthorized";
@@ -562,9 +608,11 @@ export declare type IdempotencyErrorResponse = Error_2;
562
608
 
563
609
  export declare type IdempotencyKeyParameter = string;
564
610
 
565
- export declare const initiateAuthentication: (projectId: string, initiateAuthenticationRequest: InitiateAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<InitiateEmailAuthenticationResponse>;
611
+ export declare const initiateAuthentication: (projectId: string, initiateAuthenticationRequest: InitiateAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<InitiateAuthenticationResponseWrapper>;
566
612
 
567
- export declare type InitiateAuthenticationRequest = InitiateEmailAuthenticationRequest;
613
+ export declare type InitiateAuthenticationRequest = InitiateEmailAuthenticationRequest | InitiateSmsAuthenticationRequest;
614
+
615
+ export declare type InitiateAuthenticationResponseWrapper = InitiateEmailAuthenticationResponse | InitiateSmsAuthenticationResponse;
568
616
 
569
617
  export declare type InitiateAuthenticationResult = NonNullable<Awaited<ReturnType<typeof initiateAuthentication>>>;
570
618
 
@@ -596,8 +644,38 @@ export declare interface InitiateEmailAuthenticationResponse {
596
644
  nextStep: InitiateEmailAuthenticationNextStep;
597
645
  }
598
646
 
647
+ export declare interface InitiateSmsAuthenticationNextStep {
648
+ type: InitiateSmsAuthenticationNextStepType;
649
+ url: string;
650
+ }
651
+
652
+ export declare type InitiateSmsAuthenticationNextStepType = (typeof InitiateSmsAuthenticationNextStepType)[keyof typeof InitiateSmsAuthenticationNextStepType];
653
+
654
+ export declare const InitiateSmsAuthenticationNextStepType: {
655
+ readonly "verify-otp": "verify-otp";
656
+ };
657
+
658
+ export declare interface InitiateSmsAuthenticationRequest {
659
+ type: InitiateSmsAuthenticationRequestType;
660
+ phoneNumber: string;
661
+ }
662
+
663
+ export declare type InitiateSmsAuthenticationRequestType = (typeof InitiateSmsAuthenticationRequestType)[keyof typeof InitiateSmsAuthenticationRequestType];
664
+
665
+ export declare const InitiateSmsAuthenticationRequestType: {
666
+ readonly sms: "sms";
667
+ };
668
+
669
+ export declare interface InitiateSmsAuthenticationResponse {
670
+ message: string;
671
+ flowId: string;
672
+ nextStep: InitiateSmsAuthenticationNextStep;
673
+ }
674
+
599
675
  export declare type InternalServerErrorResponse = Error_2;
600
676
 
677
+ export declare type InvalidSQLQueryErrorResponse = Error_2;
678
+
601
679
  export declare function isOpenAPIError(obj: unknown): obj is Error_2;
602
680
 
603
681
  export declare type KnownAbiType = (typeof KnownAbiType)[keyof typeof KnownAbiType];
@@ -631,28 +709,142 @@ export declare const logOutEndUser: (projectId: string, options?: SecondParamete
631
709
 
632
710
  export declare type LogOutEndUserResult = NonNullable<Awaited<ReturnType<typeof logOutEndUser>>>;
633
711
 
712
+ export declare interface MintAddressCriterion {
713
+ type: MintAddressCriterionType;
714
+ addresses: string[];
715
+ operator: MintAddressCriterionOperator;
716
+ }
717
+
718
+ export declare type MintAddressCriterionOperator = (typeof MintAddressCriterionOperator)[keyof typeof MintAddressCriterionOperator];
719
+
720
+ export declare const MintAddressCriterionOperator: {
721
+ readonly in: "in";
722
+ readonly not_in: "not in";
723
+ };
724
+
725
+ export declare type MintAddressCriterionType = (typeof MintAddressCriterionType)[keyof typeof MintAddressCriterionType];
726
+
727
+ export declare const MintAddressCriterionType: {
728
+ readonly mintAddress: "mintAddress";
729
+ };
730
+
731
+ export declare interface NetUSDChangeCriterion {
732
+ type: NetUSDChangeCriterionType;
733
+ changeCents: number;
734
+ operator: NetUSDChangeCriterionOperator;
735
+ }
736
+
737
+ export declare type NetUSDChangeCriterionOperator = (typeof NetUSDChangeCriterionOperator)[keyof typeof NetUSDChangeCriterionOperator];
738
+
739
+ export declare const NetUSDChangeCriterionOperator: {
740
+ readonly ">": ">";
741
+ readonly ">=": ">=";
742
+ readonly "<": "<";
743
+ readonly "<=": "<=";
744
+ readonly "==": "==";
745
+ };
746
+
747
+ export declare type NetUSDChangeCriterionType = (typeof NetUSDChangeCriterionType)[keyof typeof NetUSDChangeCriterionType];
748
+
749
+ export declare const NetUSDChangeCriterionType: {
750
+ readonly netUSDChange: "netUSDChange";
751
+ };
752
+
753
+ export declare interface OnchainDataColumnSchema {
754
+ name?: string;
755
+ type?: string;
756
+ nullable?: boolean;
757
+ description?: string;
758
+ indexOrder?: number;
759
+ sample?: string;
760
+ }
761
+
762
+ export declare interface OnchainDataQuery {
763
+ sql: string;
764
+ }
765
+
766
+ export declare interface OnchainDataResult {
767
+ result?: OnchainDataResultResultItem[];
768
+ schema?: OnchainDataResultSchema;
769
+ metadata?: OnchainDataResultMetadata;
770
+ }
771
+
772
+ export declare type OnchainDataResultMetadata = {
773
+ cached?: boolean;
774
+ executionTimeMs?: number;
775
+ rowCount?: number;
776
+ };
777
+
778
+ export declare type OnchainDataResultResultItem = {
779
+ [key: string]: unknown;
780
+ };
781
+
782
+ export declare type OnchainDataResultSchema = {
783
+ columns?: OnchainDataResultSchemaColumnsItem[];
784
+ };
785
+
786
+ export declare type OnchainDataResultSchemaColumnsItem = {
787
+ name?: string;
788
+ type?: OnchainDataResultSchemaColumnsItemType;
789
+ };
790
+
791
+ export declare type OnchainDataResultSchemaColumnsItemType = (typeof OnchainDataResultSchemaColumnsItemType)[keyof typeof OnchainDataResultSchemaColumnsItemType];
792
+
793
+ export declare const OnchainDataResultSchemaColumnsItemType: {
794
+ readonly String: "String";
795
+ readonly UInt8: "UInt8";
796
+ readonly UInt16: "UInt16";
797
+ readonly UInt32: "UInt32";
798
+ readonly UInt64: "UInt64";
799
+ readonly UInt128: "UInt128";
800
+ readonly UInt256: "UInt256";
801
+ readonly Int8: "Int8";
802
+ readonly Int16: "Int16";
803
+ readonly Int32: "Int32";
804
+ readonly Int64: "Int64";
805
+ readonly Int128: "Int128";
806
+ readonly Int256: "Int256";
807
+ readonly Float32: "Float32";
808
+ readonly Float64: "Float64";
809
+ readonly Bool: "Bool";
810
+ readonly Date: "Date";
811
+ readonly DateTime: "DateTime";
812
+ readonly DateTime64: "DateTime64";
813
+ readonly UUID: "UUID";
814
+ };
815
+
816
+ export declare interface OnchainDataSchemaResponse {
817
+ tables?: OnchainDataTableSchema[];
818
+ }
819
+
820
+ export declare interface OnchainDataTableSchema {
821
+ name?: string;
822
+ description?: string;
823
+ columns?: OnchainDataColumnSchema[];
824
+ }
825
+
634
826
  export declare interface OnrampOrder {
635
- orderId?: string;
636
- paymentTotal?: string;
637
- paymentSubtotal?: unknown;
638
- paymentCurrency?: string;
639
- paymentMethod?: OnrampPaymentMethodTypeId;
640
- purchaseAmount?: string;
641
- purchaseCurrency?: string;
642
- fees?: OnrampOrderFee[];
643
- exchangeRate?: string;
644
- destinationAddress?: string;
645
- destinationNetwork?: string;
646
- status?: OnrampOrderStatus;
827
+ orderId: string;
828
+ paymentTotal: string;
829
+ paymentSubtotal: string;
830
+ paymentCurrency: string;
831
+ paymentMethod: OnrampPaymentMethodTypeId;
832
+ purchaseAmount: string;
833
+ purchaseCurrency: string;
834
+ fees: OnrampOrderFee[];
835
+ exchangeRate: string;
836
+ destinationAddress: string;
837
+ destinationNetwork: string;
838
+ status: OnrampOrderStatus;
647
839
  txHash?: string;
648
- createdAt?: string;
649
- updatedAt?: string;
840
+ createdAt: string;
841
+ updatedAt: string;
650
842
  }
651
843
 
652
844
  export declare interface OnrampOrderFee {
653
- type?: OnrampOrderFeeType;
654
- amount?: string;
655
- currency?: string;
845
+ type: OnrampOrderFeeType;
846
+ amount: string;
847
+ currency: string;
656
848
  }
657
849
 
658
850
  export declare type OnrampOrderFeeType = (typeof OnrampOrderFeeType)[keyof typeof OnrampOrderFeeType];
@@ -673,8 +865,8 @@ export declare const OnrampOrderStatus: {
673
865
  };
674
866
 
675
867
  export declare interface OnrampPaymentLink {
676
- url?: string;
677
- paymentLinkType?: OnrampPaymentLinkType;
868
+ url: string;
869
+ paymentLinkType: OnrampPaymentLinkType;
678
870
  }
679
871
 
680
872
  export declare type OnrampPaymentLinkType = (typeof OnrampPaymentLinkType)[keyof typeof OnrampPaymentLinkType];
@@ -748,26 +940,6 @@ export declare const PolicyScope: {
748
940
  readonly account: "account";
749
941
  };
750
942
 
751
- export declare interface PrepareRevokeSpendPermissionRequest {
752
- network: string;
753
- permissionHash: string;
754
- paymasterUrl?: string;
755
- }
756
-
757
- export declare interface PrepareSpendPermissionRequest {
758
- network: string;
759
- account: string;
760
- spender: string;
761
- token: string;
762
- allowance: string;
763
- period: string;
764
- start: string;
765
- end: string;
766
- salt?: string;
767
- extraData?: string;
768
- paymasterUrl?: string;
769
- }
770
-
771
943
  export declare type PrepareUserOperationCriteria = PrepareUserOperationCriteriaItem[];
772
944
 
773
945
  export declare type PrepareUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion;
@@ -791,55 +963,6 @@ export declare const PrepareUserOperationRuleOperation: {
791
963
  readonly prepareUserOperation: "prepareUserOperation";
792
964
  };
793
965
 
794
- export declare interface QueryRequest {
795
- sql: string;
796
- }
797
-
798
- export declare interface QueryResult {
799
- result?: QueryResultResultItem[];
800
- schema?: QueryResultSchema;
801
- }
802
-
803
- export declare type QueryResultResultItem = {
804
- [key: string]: unknown;
805
- };
806
-
807
- export declare type QueryResultSchema = {
808
- columns?: QueryResultSchemaColumnsItem[];
809
- };
810
-
811
- export declare type QueryResultSchemaColumnsItem = {
812
- name?: string;
813
- type?: QueryResultSchemaColumnsItemType;
814
- };
815
-
816
- export declare type QueryResultSchemaColumnsItemType = (typeof QueryResultSchemaColumnsItemType)[keyof typeof QueryResultSchemaColumnsItemType];
817
-
818
- export declare const QueryResultSchemaColumnsItemType: {
819
- readonly String: "String";
820
- readonly UInt8: "UInt8";
821
- readonly UInt16: "UInt16";
822
- readonly UInt32: "UInt32";
823
- readonly UInt64: "UInt64";
824
- readonly UInt128: "UInt128";
825
- readonly UInt256: "UInt256";
826
- readonly Int8: "Int8";
827
- readonly Int16: "Int16";
828
- readonly Int32: "Int32";
829
- readonly Int64: "Int64";
830
- readonly Int128: "Int128";
831
- readonly Int256: "Int256";
832
- readonly Float32: "Float32";
833
- readonly Float64: "Float64";
834
- readonly Bool: "Bool";
835
- readonly Date: "Date";
836
- readonly DateTime: "DateTime";
837
- readonly DateTime64: "DateTime64";
838
- readonly UUID: "UUID";
839
- readonly IPv4: "IPv4";
840
- readonly IPv6: "IPv6";
841
- };
842
-
843
966
  export declare type RateLimitExceededResponse = Error_2;
844
967
 
845
968
  export declare const refreshAccessToken: (projectId: string, refreshAccessTokenBody: RefreshAccessTokenBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RefreshAccessToken200>;
@@ -877,7 +1000,13 @@ export declare type RegisterTemporaryWalletSecretBody = {
877
1000
 
878
1001
  export declare type RegisterTemporaryWalletSecretResult = NonNullable<Awaited<ReturnType<typeof registerTemporaryWalletSecret>>>;
879
1002
 
880
- export declare type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule;
1003
+ export declare interface RevokeSpendPermissionRequest {
1004
+ network: string;
1005
+ permissionHash: string;
1006
+ paymasterUrl?: string;
1007
+ }
1008
+
1009
+ export declare type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule;
881
1010
 
882
1011
  export declare type SecondFactorProofTokenParameter = string;
883
1012
 
@@ -885,7 +1014,7 @@ declare type SecondParameter<T extends (...args: never) => unknown> = Parameters
885
1014
 
886
1015
  export declare type SendEvmTransactionCriteria = SendEvmTransactionCriteriaItem[];
887
1016
 
888
- export declare type SendEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion;
1017
+ export declare type SendEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion;
889
1018
 
890
1019
  export declare interface SendEvmTransactionRule {
891
1020
  action: SendEvmTransactionRuleAction;
@@ -928,14 +1057,29 @@ export declare const SendEvmTransactionWithEndUserAccountBodyNetwork: {
928
1057
 
929
1058
  export declare type SendEvmTransactionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendEvmTransactionWithEndUserAccount>>>;
930
1059
 
931
- export declare interface SendRevokeSpendPermissionRequest {
932
- signature: string;
933
- }
1060
+ export declare type SendSolTransactionCriteria = SendSolTransactionCriteriaItem[];
934
1061
 
935
- export declare interface SendSpendPermissionRequest {
936
- signature: string;
1062
+ export declare type SendSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion;
1063
+
1064
+ export declare interface SendSolTransactionRule {
1065
+ action: SendSolTransactionRuleAction;
1066
+ operation: SendSolTransactionRuleOperation;
1067
+ criteria: SendSolTransactionCriteria;
937
1068
  }
938
1069
 
1070
+ export declare type SendSolTransactionRuleAction = (typeof SendSolTransactionRuleAction)[keyof typeof SendSolTransactionRuleAction];
1071
+
1072
+ export declare const SendSolTransactionRuleAction: {
1073
+ readonly reject: "reject";
1074
+ readonly accept: "accept";
1075
+ };
1076
+
1077
+ export declare type SendSolTransactionRuleOperation = (typeof SendSolTransactionRuleOperation)[keyof typeof SendSolTransactionRuleOperation];
1078
+
1079
+ export declare const SendSolTransactionRuleOperation: {
1080
+ readonly sendSolTransaction: "sendSolTransaction";
1081
+ };
1082
+
939
1083
  export declare type SendUserOperationCriteria = SendUserOperationCriteriaItem[];
940
1084
 
941
1085
  export declare type SendUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion;
@@ -959,6 +1103,17 @@ export declare const SendUserOperationRuleOperation: {
959
1103
  readonly sendUserOperation: "sendUserOperation";
960
1104
  };
961
1105
 
1106
+ export declare const sendUserOperationWithEndUserAccount: (projectId: string, userId: string, address: string, sendUserOperationWithEndUserAccountBody: SendUserOperationWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
1107
+
1108
+ export declare type SendUserOperationWithEndUserAccountBody = {
1109
+ network: EvmUserOperationNetwork;
1110
+ calls: EvmCall[];
1111
+ paymasterUrl?: string;
1112
+ walletSecretId: string;
1113
+ };
1114
+
1115
+ export declare type SendUserOperationWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendUserOperationWithEndUserAccount>>>;
1116
+
962
1117
  export declare type ServiceUnavailableErrorResponse = Error_2;
963
1118
 
964
1119
  export declare const setAuthManager: (manager: AuthManager) => void;
@@ -1034,7 +1189,7 @@ export declare type SignEvmMessageWithEndUserAccountResult = NonNullable<Awaited
1034
1189
 
1035
1190
  export declare type SignEvmTransactionCriteria = SignEvmTransactionCriteriaItem[];
1036
1191
 
1037
- export declare type SignEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion;
1192
+ export declare type SignEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion;
1038
1193
 
1039
1194
  export declare interface SignEvmTransactionRule {
1040
1195
  action: SignEvmTransactionRuleAction;
@@ -1153,7 +1308,44 @@ export declare type SignEvmTypedDataWithEndUserAccountBody = {
1153
1308
 
1154
1309
  export declare type SignEvmTypedDataWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signEvmTypedDataWithEndUserAccount>>>;
1155
1310
 
1156
- export declare type SignSolTransactionCriteria = SolAddressCriterion[];
1311
+ export declare const signSolanaHashWithEndUserAccount: (projectId: string, userId: string, signSolanaHashWithEndUserAccountBody: SignSolanaHashWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignSolanaHashWithEndUserAccount200>;
1312
+
1313
+ export declare type SignSolanaHashWithEndUserAccount200 = {
1314
+ signature: string;
1315
+ };
1316
+
1317
+ export declare type SignSolanaHashWithEndUserAccountBody = {
1318
+ hash: string;
1319
+ address: string;
1320
+ walletSecretId: string;
1321
+ };
1322
+
1323
+ export declare type SignSolanaHashWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signSolanaHashWithEndUserAccount>>>;
1324
+
1325
+ export declare type SignSolMessageCriteria = SolMessageCriterion[];
1326
+
1327
+ export declare interface SignSolMessageRule {
1328
+ action: SignSolMessageRuleAction;
1329
+ operation: SignSolMessageRuleOperation;
1330
+ criteria: SignSolMessageCriteria;
1331
+ }
1332
+
1333
+ export declare type SignSolMessageRuleAction = (typeof SignSolMessageRuleAction)[keyof typeof SignSolMessageRuleAction];
1334
+
1335
+ export declare const SignSolMessageRuleAction: {
1336
+ readonly reject: "reject";
1337
+ readonly accept: "accept";
1338
+ };
1339
+
1340
+ export declare type SignSolMessageRuleOperation = (typeof SignSolMessageRuleOperation)[keyof typeof SignSolMessageRuleOperation];
1341
+
1342
+ export declare const SignSolMessageRuleOperation: {
1343
+ readonly signSolMessage: "signSolMessage";
1344
+ };
1345
+
1346
+ export declare type SignSolTransactionCriteria = SignSolTransactionCriteriaItem[];
1347
+
1348
+ export declare type SignSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion;
1157
1349
 
1158
1350
  export declare interface SignSolTransactionRule {
1159
1351
  action: SignSolTransactionRuleAction;
@@ -1176,6 +1368,17 @@ export declare const SignSolTransactionRuleOperation: {
1176
1368
 
1177
1369
  export declare type SlippageBps = number;
1178
1370
 
1371
+ export declare interface SmsAuthentication {
1372
+ type: SmsAuthenticationType;
1373
+ phoneNumber: string;
1374
+ }
1375
+
1376
+ export declare type SmsAuthenticationType = (typeof SmsAuthenticationType)[keyof typeof SmsAuthenticationType];
1377
+
1378
+ export declare const SmsAuthenticationType: {
1379
+ readonly sms: "sms";
1380
+ };
1381
+
1179
1382
  export declare interface SolAddressCriterion {
1180
1383
  type: SolAddressCriterionType;
1181
1384
  addresses: string[];
@@ -1219,12 +1422,108 @@ export declare interface SolanaTokenBalance {
1219
1422
  token: SolanaToken;
1220
1423
  }
1221
1424
 
1425
+ export declare interface SolMessageCriterion {
1426
+ type: SolMessageCriterionType;
1427
+ match: string;
1428
+ }
1429
+
1430
+ export declare type SolMessageCriterionType = (typeof SolMessageCriterionType)[keyof typeof SolMessageCriterionType];
1431
+
1432
+ export declare const SolMessageCriterionType: {
1433
+ readonly solMessage: "solMessage";
1434
+ };
1435
+
1436
+ export declare interface SolValueCriterion {
1437
+ type: SolValueCriterionType;
1438
+ solValue: string;
1439
+ operator: SolValueCriterionOperator;
1440
+ }
1441
+
1442
+ export declare type SolValueCriterionOperator = (typeof SolValueCriterionOperator)[keyof typeof SolValueCriterionOperator];
1443
+
1444
+ export declare const SolValueCriterionOperator: {
1445
+ readonly ">": ">";
1446
+ readonly ">=": ">=";
1447
+ readonly "<": "<";
1448
+ readonly "<=": "<=";
1449
+ readonly "==": "==";
1450
+ };
1451
+
1452
+ export declare type SolValueCriterionType = (typeof SolValueCriterionType)[keyof typeof SolValueCriterionType];
1453
+
1454
+ export declare const SolValueCriterionType: {
1455
+ readonly solValue: "solValue";
1456
+ };
1457
+
1458
+ export declare interface SpendPermission {
1459
+ account: string;
1460
+ spender: string;
1461
+ token: string;
1462
+ allowance: string;
1463
+ period: string;
1464
+ start: string;
1465
+ end: string;
1466
+ salt: string;
1467
+ extraData: string;
1468
+ }
1469
+
1470
+ export declare interface SpendPermissionResponseObject {
1471
+ permission: SpendPermission;
1472
+ permissionHash: string;
1473
+ revoked: boolean;
1474
+ revokedAt?: string;
1475
+ createdAt: string;
1476
+ }
1477
+
1478
+ export declare interface SplAddressCriterion {
1479
+ type: SplAddressCriterionType;
1480
+ addresses: string[];
1481
+ operator: SplAddressCriterionOperator;
1482
+ }
1483
+
1484
+ export declare type SplAddressCriterionOperator = (typeof SplAddressCriterionOperator)[keyof typeof SplAddressCriterionOperator];
1485
+
1486
+ export declare const SplAddressCriterionOperator: {
1487
+ readonly in: "in";
1488
+ readonly not_in: "not in";
1489
+ };
1490
+
1491
+ export declare type SplAddressCriterionType = (typeof SplAddressCriterionType)[keyof typeof SplAddressCriterionType];
1492
+
1493
+ export declare const SplAddressCriterionType: {
1494
+ readonly splAddress: "splAddress";
1495
+ };
1496
+
1497
+ export declare interface SplValueCriterion {
1498
+ type: SplValueCriterionType;
1499
+ splValue: string;
1500
+ operator: SplValueCriterionOperator;
1501
+ }
1502
+
1503
+ export declare type SplValueCriterionOperator = (typeof SplValueCriterionOperator)[keyof typeof SplValueCriterionOperator];
1504
+
1505
+ export declare const SplValueCriterionOperator: {
1506
+ readonly ">": ">";
1507
+ readonly ">=": ">=";
1508
+ readonly "<": "<";
1509
+ readonly "<=": "<=";
1510
+ readonly "==": "==";
1511
+ };
1512
+
1513
+ export declare type SplValueCriterionType = (typeof SplValueCriterionType)[keyof typeof SplValueCriterionType];
1514
+
1515
+ export declare const SplValueCriterionType: {
1516
+ readonly splValue: "splValue";
1517
+ };
1518
+
1222
1519
  export declare interface SwapUnavailableResponse {
1223
1520
  liquidityAvailable: boolean;
1224
1521
  }
1225
1522
 
1226
1523
  export declare type Taker = string;
1227
1524
 
1525
+ export declare type TimedOutErrorResponse = Error_2;
1526
+
1228
1527
  export declare interface Token {
1229
1528
  network: ListEvmTokenBalancesNetwork;
1230
1529
  symbol?: string;
@@ -1306,12 +1605,16 @@ export declare class UnknownError extends Error {
1306
1605
 
1307
1606
  export declare interface UserOperationReceipt {
1308
1607
  revert?: UserOperationReceiptRevert;
1608
+ transactionHash?: string;
1609
+ blockHash?: string;
1610
+ blockNumber?: number;
1611
+ gasUsed?: string;
1309
1612
  }
1310
1613
 
1311
- export declare type UserOperationReceiptRevert = {
1312
- data?: string;
1313
- message?: string;
1314
- };
1614
+ export declare interface UserOperationReceiptRevert {
1615
+ data: string;
1616
+ message: string;
1617
+ }
1315
1618
 
1316
1619
  export declare const verifyEmailAuthentication: (projectId: string, verifyEmailAuthenticationRequest: VerifyEmailAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifyEmailAuthentication200>;
1317
1620
 
@@ -1330,10 +1633,111 @@ export declare interface VerifyEmailAuthenticationRequest {
1330
1633
 
1331
1634
  export declare type VerifyEmailAuthenticationResult = NonNullable<Awaited<ReturnType<typeof verifyEmailAuthentication>>>;
1332
1635
 
1636
+ export declare const verifySmsAuthentication: (projectId: string, verifySmsAuthenticationRequest: VerifySmsAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<VerifySmsAuthentication200>;
1637
+
1638
+ export declare type VerifySmsAuthentication200 = {
1639
+ endUser: EndUser;
1640
+ isNewEndUser: boolean;
1641
+ message: string;
1642
+ accessToken: string;
1643
+ validUntil: string;
1644
+ };
1645
+
1646
+ export declare interface VerifySmsAuthenticationRequest {
1647
+ flowId: string;
1648
+ otp: string;
1649
+ }
1650
+
1651
+ export declare type VerifySmsAuthenticationResult = NonNullable<Awaited<ReturnType<typeof verifySmsAuthentication>>>;
1652
+
1333
1653
  export declare interface WalletSecretMetadata {
1334
1654
  updatedAt: string;
1335
1655
  }
1336
1656
 
1657
+ export declare interface WebhookSubscriptionRequest {
1658
+ description?: string;
1659
+ eventTypes: string[];
1660
+ isEnabled: boolean;
1661
+ labelKey: string;
1662
+ labelValue: string;
1663
+ metadata?: WebhookSubscriptionRequestMetadata;
1664
+ target: WebhookTarget;
1665
+ }
1666
+
1667
+ export declare type WebhookSubscriptionRequestMetadata = {
1668
+ [key: string]: unknown;
1669
+ };
1670
+
1671
+ export declare interface WebhookSubscriptionResponse {
1672
+ createdAt: string;
1673
+ description?: string;
1674
+ eventTypes: string[];
1675
+ isEnabled: boolean;
1676
+ labelKey: string;
1677
+ labelValue: string;
1678
+ metadata?: WebhookSubscriptionResponseMetadata;
1679
+ subscriptionId: string;
1680
+ target: WebhookTarget;
1681
+ }
1682
+
1683
+ export declare type WebhookSubscriptionResponseMetadata = {
1684
+ secret?: string;
1685
+ };
1686
+
1687
+ export declare interface WebhookSubscriptionUpdateRequest {
1688
+ description?: string;
1689
+ eventTypes: string[];
1690
+ isEnabled: boolean;
1691
+ labelKey: string;
1692
+ labelValue: string;
1693
+ metadata?: WebhookSubscriptionUpdateRequestMetadata;
1694
+ target: WebhookTarget;
1695
+ }
1696
+
1697
+ export declare type WebhookSubscriptionUpdateRequestMetadata = {
1698
+ [key: string]: unknown;
1699
+ };
1700
+
1701
+ export declare interface WebhookTarget {
1702
+ url: string;
1703
+ headers?: WebhookTargetHeaders;
1704
+ }
1705
+
1706
+ export declare type WebhookTargetHeaders = {
1707
+ [key: string]: string;
1708
+ };
1709
+
1710
+ export declare interface X402DiscoveryResource {
1711
+ resource: string;
1712
+ type: X402DiscoveryResourceType;
1713
+ x402Version: X402Version;
1714
+ accepts?: X402PaymentRequirements[];
1715
+ lastUpdated: string;
1716
+ metadata?: X402DiscoveryResourceMetadata;
1717
+ }
1718
+
1719
+ export declare type X402DiscoveryResourceMetadata = {
1720
+ [key: string]: unknown;
1721
+ };
1722
+
1723
+ export declare interface X402DiscoveryResourcesResponse {
1724
+ x402Version: X402Version;
1725
+ items: X402DiscoveryResource[];
1726
+ pagination: X402DiscoveryResourcesResponsePagination;
1727
+ }
1728
+
1729
+ export declare type X402DiscoveryResourcesResponsePagination = {
1730
+ limit?: number;
1731
+ offset?: number;
1732
+ total?: number;
1733
+ };
1734
+
1735
+ export declare type X402DiscoveryResourceType = (typeof X402DiscoveryResourceType)[keyof typeof X402DiscoveryResourceType];
1736
+
1737
+ export declare const X402DiscoveryResourceType: {
1738
+ readonly http: "http";
1739
+ };
1740
+
1337
1741
  export declare interface X402ExactEvmPayload {
1338
1742
  signature: string;
1339
1743
  authorization: X402ExactEvmPayloadAuthorization;
@@ -1349,7 +1753,7 @@ export declare type X402ExactEvmPayloadAuthorization = {
1349
1753
  };
1350
1754
 
1351
1755
  export declare interface X402PaymentPayload {
1352
- x402Version: X402PaymentPayloadX402Version;
1756
+ x402Version: X402Version;
1353
1757
  scheme: X402PaymentPayloadScheme;
1354
1758
  network: X402PaymentPayloadNetwork;
1355
1759
  payload: X402ExactEvmPayload;
@@ -1368,12 +1772,6 @@ export declare const X402PaymentPayloadScheme: {
1368
1772
  readonly exact: "exact";
1369
1773
  };
1370
1774
 
1371
- export declare type X402PaymentPayloadX402Version = (typeof X402PaymentPayloadX402Version)[keyof typeof X402PaymentPayloadX402Version];
1372
-
1373
- export declare const X402PaymentPayloadX402Version: {
1374
- readonly NUMBER_1: 1;
1375
- };
1376
-
1377
1775
  export declare interface X402PaymentRequirements {
1378
1776
  scheme: X402PaymentRequirementsScheme;
1379
1777
  network: X402PaymentRequirementsNetwork;
@@ -1436,7 +1834,7 @@ export declare type X402SettleResponseResponse = {
1436
1834
  };
1437
1835
 
1438
1836
  export declare interface X402SupportedPaymentKind {
1439
- x402Version: X402SupportedPaymentKindX402Version;
1837
+ x402Version: X402Version;
1440
1838
  scheme: X402SupportedPaymentKindScheme;
1441
1839
  network: X402SupportedPaymentKindNetwork;
1442
1840
  }
@@ -1458,12 +1856,6 @@ export declare type X402SupportedPaymentKindsResponseResponse = {
1458
1856
  kinds: X402SupportedPaymentKind[];
1459
1857
  };
1460
1858
 
1461
- export declare type X402SupportedPaymentKindX402Version = (typeof X402SupportedPaymentKindX402Version)[keyof typeof X402SupportedPaymentKindX402Version];
1462
-
1463
- export declare const X402SupportedPaymentKindX402Version: {
1464
- readonly NUMBER_1: 1;
1465
- };
1466
-
1467
1859
  export declare type X402VerifyInvalidReason = (typeof X402VerifyInvalidReason)[keyof typeof X402VerifyInvalidReason];
1468
1860
 
1469
1861
  export declare const X402VerifyInvalidReason: {
@@ -1489,9 +1881,13 @@ export declare type X402VerifyResponseResponse = {
1489
1881
  payer: string;
1490
1882
  };
1491
1883
 
1492
- export declare type XDeveloperAuthParameter = string;
1884
+ export declare type X402Version = (typeof X402Version)[keyof typeof X402Version];
1493
1885
 
1494
- export declare type XWalletAuthOptionalParameter = string;
1886
+ export declare const X402Version: {
1887
+ readonly NUMBER_1: 1;
1888
+ };
1889
+
1890
+ export declare type XDeveloperAuthParameter = string;
1495
1891
 
1496
1892
  export declare type XWalletAuthParameter = string;
1497
1893