@coinbase/cdp-api-client 0.0.33 → 0.0.35

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.
@@ -52,14 +52,49 @@ export declare const AbiStateMutability: {
52
52
  readonly payable: "payable";
53
53
  };
54
54
 
55
+ export declare interface AccountSource {
56
+ type: AccountSourceType;
57
+ accountID: string;
58
+ }
59
+
60
+ export declare type AccountSourceType = (typeof AccountSourceType)[keyof typeof AccountSourceType];
61
+
62
+ export declare const AccountSourceType: {
63
+ readonly account: "account";
64
+ };
65
+
55
66
  export declare interface AccountTokenAddressesResponse {
56
67
  accountAddress?: string;
57
68
  tokenAddresses?: string[];
58
69
  totalCount?: number;
59
70
  }
60
71
 
72
+ export declare interface AddressRisk {
73
+ riskLevel?: AddressRiskRiskLevel;
74
+ lastUpdated?: string;
75
+ }
76
+
77
+ export declare type AddressRiskNetwork = (typeof AddressRiskNetwork)[keyof typeof AddressRiskNetwork];
78
+
79
+ export declare const AddressRiskNetwork: {
80
+ readonly base: "base";
81
+ readonly ethereum: "ethereum";
82
+ };
83
+
84
+ export declare type AddressRiskRiskLevel = (typeof AddressRiskRiskLevel)[keyof typeof AddressRiskRiskLevel];
85
+
86
+ export declare const AddressRiskRiskLevel: {
87
+ readonly risk_indicated: "risk_indicated";
88
+ readonly no_risk_indicated: "no_risk_indicated";
89
+ };
90
+
61
91
  export declare type AlreadyExistsErrorResponse = Error_2;
62
92
 
93
+ export declare interface Amount {
94
+ value: string;
95
+ currency: string;
96
+ }
97
+
63
98
  export declare class APIError extends Error {
64
99
  statusCode: number;
65
100
  errorType: APIErrorType;
@@ -143,6 +178,20 @@ export declare type CommonSwapResponseIssuesBalance = {
143
178
 
144
179
  export declare const configureCdpApiClient: (options: CdpOptions) => void;
145
180
 
181
+ export declare interface CoolPaymentMethod {
182
+ id?: string;
183
+ type?: CoolPaymentMethodType;
184
+ name?: string;
185
+ currency?: string;
186
+ verified?: boolean;
187
+ allowDeposit?: boolean;
188
+ allowWithdraw?: boolean;
189
+ allowOutboundPayment?: boolean;
190
+ limits?: Limit[];
191
+ }
192
+
193
+ export declare type CoolPaymentMethodType = string;
194
+
146
195
  export declare const createEndUserEvmAccount: (projectId: string, userId: string, createEndUserEvmAccountBody: CreateEndUserEvmAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
147
196
 
148
197
  export declare type CreateEndUserEvmAccountBody = {
@@ -160,7 +209,16 @@ export declare type CreateEndUserEvmSmartAccountBody = {
160
209
 
161
210
  export declare type CreateEndUserEvmSmartAccountResult = NonNullable<Awaited<ReturnType<typeof createEndUserEvmSmartAccount>>>;
162
211
 
212
+ export declare const createEndUserSolanaAccount: (projectId: string, userId: string, createEndUserSolanaAccountBody: CreateEndUserSolanaAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
213
+
214
+ export declare type CreateEndUserSolanaAccountBody = {
215
+ walletSecretId: string;
216
+ };
217
+
218
+ export declare type CreateEndUserSolanaAccountResult = NonNullable<Awaited<ReturnType<typeof createEndUserSolanaAccount>>>;
219
+
163
220
  export declare interface CreateSpendPermissionRequest {
221
+ walletSecretId: string;
164
222
  network: SpendPermissionNetwork;
165
223
  spender: string;
166
224
  token: string;
@@ -170,9 +228,14 @@ export declare interface CreateSpendPermissionRequest {
170
228
  end: string;
171
229
  salt?: string;
172
230
  extraData?: string;
231
+ useCdpPaymaster: boolean;
173
232
  paymasterUrl?: string;
174
233
  }
175
234
 
235
+ export declare const createSpendPermissionWithEndUserAccount: (projectId: string, userId: string, address: string, createSpendPermissionRequest: CreateSpendPermissionRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
236
+
237
+ export declare type CreateSpendPermissionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof createSpendPermissionWithEndUserAccount>>>;
238
+
176
239
  export declare type CreateSwapQuoteResponse = CreateSwapQuoteResponseAllOf & CommonSwapResponse;
177
240
 
178
241
  export declare type CreateSwapQuoteResponseAllOf = {
@@ -195,6 +258,24 @@ export declare type CreateSwapQuoteResponseAllOfTransaction = {
195
258
 
196
259
  export declare type CreateSwapQuoteResponseWrapper = CreateSwapQuoteResponse | SwapUnavailableResponse;
197
260
 
261
+ export declare type CreateTransfer = TransferQuoteDetails | CreateTransferQuote;
262
+
263
+ export declare interface CreateTransferQuote {
264
+ paymentDirection: PaymentDirection;
265
+ requestedAmount: Amount;
266
+ requestedAmountType: CreateTransferQuoteRequestedAmountType;
267
+ source: Source;
268
+ target: Target;
269
+ note?: string;
270
+ }
271
+
272
+ export declare type CreateTransferQuoteRequestedAmountType = (typeof CreateTransferQuoteRequestedAmountType)[keyof typeof CreateTransferQuoteRequestedAmountType];
273
+
274
+ export declare const CreateTransferQuoteRequestedAmountType: {
275
+ readonly target_amount: "target_amount";
276
+ readonly source_amount: "source_amount";
277
+ };
278
+
198
279
  export declare interface CryptoRail {
199
280
  currency: string;
200
281
  name: string;
@@ -470,6 +551,25 @@ export declare interface EvmSmartAccount {
470
551
  updatedAt?: string;
471
552
  }
472
553
 
554
+ export declare interface EvmSpendPermissionsCreateSpendPermissionRequest {
555
+ network: SpendPermissionNetwork;
556
+ spender: string;
557
+ token: string;
558
+ allowance: string;
559
+ period: string;
560
+ start: string;
561
+ end: string;
562
+ salt?: string;
563
+ extraData?: string;
564
+ paymasterUrl?: string;
565
+ }
566
+
567
+ export declare interface EvmSpendPermissionsRevokeSpendPermissionRequest {
568
+ network: SpendPermissionNetwork;
569
+ permissionHash: string;
570
+ paymasterUrl?: string;
571
+ }
572
+
473
573
  export declare type EvmSwapsNetwork = (typeof EvmSwapsNetwork)[keyof typeof EvmSwapsNetwork];
474
574
 
475
575
  export declare const EvmSwapsNetwork: {
@@ -569,6 +669,19 @@ export declare interface Fee {
569
669
  description?: string;
570
670
  }
571
671
 
672
+ export declare interface FeeDetails {
673
+ type?: FeeDetailsType;
674
+ amount?: Amount;
675
+ }
676
+
677
+ export declare type FeeDetailsType = (typeof FeeDetailsType)[keyof typeof FeeDetailsType];
678
+
679
+ export declare const FeeDetailsType: {
680
+ readonly conversion: "conversion";
681
+ readonly settlement: "settlement";
682
+ readonly deposit: "deposit";
683
+ };
684
+
572
685
  export declare type FeeType = (typeof FeeType)[keyof typeof FeeType];
573
686
 
574
687
  export declare const FeeType: {
@@ -580,6 +693,20 @@ export declare type FromAmount = string;
580
693
 
581
694
  export declare type FromToken = string;
582
695
 
696
+ export declare interface FundTransfer {
697
+ id: string;
698
+ direction: PaymentDirection;
699
+ status: PaymentStatus;
700
+ sourceDetails: Source;
701
+ targetDetails: Target;
702
+ sourceAmount: SourceAmount;
703
+ targetAmount: TargetAmount;
704
+ fees: FeeDetails[];
705
+ createdAt: string;
706
+ updatedAt: string;
707
+ note?: string;
708
+ }
709
+
583
710
  export declare type GasPrice = string;
584
711
 
585
712
  export declare const getAuthenticatedEndUser: (projectId: string, userId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
@@ -614,15 +741,26 @@ export declare type IdempotencyErrorResponse = Error_2;
614
741
 
615
742
  export declare type IdempotencyKeyParameter = string;
616
743
 
744
+ export declare type IdempotencyKeyRequiredParameter = string;
745
+
617
746
  export declare interface Idl {
618
747
  address: string;
619
748
  instructions: IdlInstructionsItem[];
749
+ metadata?: IdlMetadata;
750
+ types?: IdlTypesItem[];
620
751
  }
621
752
 
622
753
  export declare type IdlInstructionsItem = {
623
754
  name: string;
624
755
  discriminator: number[];
625
756
  args: IdlInstructionsItemArgsItem[];
757
+ accounts?: IdlInstructionsItemAccountsItem[];
758
+ };
759
+
760
+ export declare type IdlInstructionsItemAccountsItem = {
761
+ name: string;
762
+ writable?: boolean;
763
+ signer?: boolean;
626
764
  };
627
765
 
628
766
  export declare type IdlInstructionsItemArgsItem = {
@@ -630,6 +768,16 @@ export declare type IdlInstructionsItemArgsItem = {
630
768
  type: string;
631
769
  };
632
770
 
771
+ export declare type IdlMetadata = {
772
+ name?: string;
773
+ version?: string;
774
+ spec?: string;
775
+ };
776
+
777
+ export declare type IdlTypesItem = {
778
+ [key: string]: unknown;
779
+ };
780
+
633
781
  export declare const initiateAuthentication: (projectId: string, initiateAuthenticationRequest: InitiateAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<InitiateAuthenticationResponseWrapper>;
634
782
 
635
783
  export declare type InitiateAuthenticationRequest = InitiateEmailAuthenticationRequest | InitiateSmsAuthenticationRequest;
@@ -716,6 +864,25 @@ export declare const KnownIdlType: {
716
864
  readonly AssociatedTokenProgram: "AssociatedTokenProgram";
717
865
  };
718
866
 
867
+ export declare interface Limit {
868
+ remaining?: Amount;
869
+ used?: Amount;
870
+ total?: Amount;
871
+ limitPeriod?: LimitPeriod;
872
+ description?: string;
873
+ usageResetInSeconds?: number;
874
+ }
875
+
876
+ export declare type LimitPeriod = (typeof LimitPeriod)[keyof typeof LimitPeriod];
877
+
878
+ export declare const LimitPeriod: {
879
+ readonly unknown: "unknown";
880
+ readonly daily: "daily";
881
+ readonly weekly: "weekly";
882
+ readonly monthly: "monthly";
883
+ readonly biweekly: "biweekly";
884
+ };
885
+
719
886
  export declare type ListEvmTokenBalancesNetwork = (typeof ListEvmTokenBalancesNetwork)[keyof typeof ListEvmTokenBalancesNetwork];
720
887
 
721
888
  export declare const ListEvmTokenBalancesNetwork: {
@@ -735,6 +902,21 @@ export declare const ListSolanaTokenBalancesNetwork: {
735
902
  readonly "solana-devnet": "solana-devnet";
736
903
  };
737
904
 
905
+ export declare const listSpendPermissionsWithEndUserAccount: (projectId: string, userId: string, address: string, params?: ListSpendPermissionsWithEndUserAccountParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<ListSpendPermissionsWithEndUserAccount200>;
906
+
907
+ export declare type ListSpendPermissionsWithEndUserAccount200 = ListSpendPermissionsWithEndUserAccount200AllOf & ListResponse;
908
+
909
+ export declare type ListSpendPermissionsWithEndUserAccount200AllOf = {
910
+ spendPermissions: SpendPermissionResponseObject[];
911
+ };
912
+
913
+ export declare type ListSpendPermissionsWithEndUserAccountParams = {
914
+ pageSize?: number;
915
+ pageToken?: string;
916
+ };
917
+
918
+ export declare type ListSpendPermissionsWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof listSpendPermissionsWithEndUserAccount>>>;
919
+
738
920
  export declare const logOutEndUser: (projectId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
739
921
 
740
922
  export declare type LogOutEndUserResult = NonNullable<Awaited<ReturnType<typeof logOutEndUser>>>;
@@ -780,6 +962,36 @@ export declare const NetUSDChangeCriterionType: {
780
962
  readonly netUSDChange: "netUSDChange";
781
963
  };
782
964
 
965
+ export declare type Network = (typeof Network)[keyof typeof Network];
966
+
967
+ export declare const Network: {
968
+ readonly base: "base";
969
+ readonly ethereum: "ethereum";
970
+ readonly algorand: "algorand";
971
+ readonly aptos: "aptos";
972
+ readonly arbitrum: "arbitrum";
973
+ readonly avacchain: "avacchain";
974
+ readonly noble: "noble";
975
+ readonly optimism: "optimism";
976
+ readonly polygon: "polygon";
977
+ readonly solana: "solana";
978
+ readonly stellar: "stellar";
979
+ readonly sui: "sui";
980
+ readonly unichain: "unichain";
981
+ };
982
+
983
+ export declare interface OffchainAddress {
984
+ email: string;
985
+ currency: string;
986
+ }
987
+
988
+ export declare interface OnchainAddress {
989
+ address: string;
990
+ network: Network;
991
+ destinationTag?: string;
992
+ currency: string;
993
+ }
994
+
783
995
  export declare interface OnchainDataColumnSchema {
784
996
  name?: string;
785
997
  type?: string;
@@ -858,7 +1070,7 @@ export declare interface OnrampOrder {
858
1070
  paymentTotal: string;
859
1071
  paymentSubtotal: string;
860
1072
  paymentCurrency: string;
861
- paymentMethod: OnrampPaymentMethodTypeId;
1073
+ paymentMethod: OnrampOrderPaymentMethodTypeId;
862
1074
  purchaseAmount: string;
863
1075
  purchaseCurrency: string;
864
1076
  fees: OnrampOrderFee[];
@@ -884,6 +1096,12 @@ export declare const OnrampOrderFeeType: {
884
1096
  readonly FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE";
885
1097
  };
886
1098
 
1099
+ export declare type OnrampOrderPaymentMethodTypeId = (typeof OnrampOrderPaymentMethodTypeId)[keyof typeof OnrampOrderPaymentMethodTypeId];
1100
+
1101
+ export declare const OnrampOrderPaymentMethodTypeId: {
1102
+ readonly GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY";
1103
+ };
1104
+
887
1105
  export declare type OnrampOrderStatus = (typeof OnrampOrderStatus)[keyof typeof OnrampOrderStatus];
888
1106
 
889
1107
  export declare const OnrampOrderStatus: {
@@ -905,10 +1123,40 @@ export declare const OnrampPaymentLinkType: {
905
1123
  readonly PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON: "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON";
906
1124
  };
907
1125
 
908
- export declare type OnrampPaymentMethodTypeId = (typeof OnrampPaymentMethodTypeId)[keyof typeof OnrampPaymentMethodTypeId];
1126
+ export declare interface OnrampQuote {
1127
+ paymentTotal: string;
1128
+ paymentSubtotal: string;
1129
+ paymentCurrency: string;
1130
+ purchaseAmount: string;
1131
+ purchaseCurrency: string;
1132
+ destinationNetwork: string;
1133
+ fees: OnrampOrderFee[];
1134
+ exchangeRate: string;
1135
+ }
909
1136
 
910
- export declare const OnrampPaymentMethodTypeId: {
911
- readonly GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY";
1137
+ export declare type OnrampQuotePaymentMethodTypeId = (typeof OnrampQuotePaymentMethodTypeId)[keyof typeof OnrampQuotePaymentMethodTypeId];
1138
+
1139
+ export declare const OnrampQuotePaymentMethodTypeId: {
1140
+ readonly CARD: "CARD";
1141
+ readonly ACH: "ACH";
1142
+ readonly APPLE_PAY: "APPLE_PAY";
1143
+ readonly PAYPAL: "PAYPAL";
1144
+ readonly FIAT_WALLET: "FIAT_WALLET";
1145
+ readonly CRYPTO_WALLET: "CRYPTO_WALLET";
1146
+ };
1147
+
1148
+ export declare interface OnrampSession {
1149
+ onrampUrl: string;
1150
+ }
1151
+
1152
+ export declare type PageSizeParameter = number;
1153
+
1154
+ export declare type PageTokenParameter = string;
1155
+
1156
+ export declare type PaymentDirection = (typeof PaymentDirection)[keyof typeof PaymentDirection];
1157
+
1158
+ export declare const PaymentDirection: {
1159
+ readonly outbound: "outbound";
912
1160
  };
913
1161
 
914
1162
  export declare interface PaymentMethod {
@@ -940,6 +1188,17 @@ export declare interface PaymentMethodRequest {
940
1188
 
941
1189
  export declare type PaymentMethodRequiredErrorResponse = Error_2;
942
1190
 
1191
+ export declare interface PaymentMethodSource {
1192
+ type: PaymentMethodSourceType;
1193
+ paymentMethodID: string;
1194
+ }
1195
+
1196
+ export declare type PaymentMethodSourceType = (typeof PaymentMethodSourceType)[keyof typeof PaymentMethodSourceType];
1197
+
1198
+ export declare const PaymentMethodSourceType: {
1199
+ readonly payment_method: "payment_method";
1200
+ };
1201
+
943
1202
  export declare type PaymentMethodType = (typeof PaymentMethodType)[keyof typeof PaymentMethodType];
944
1203
 
945
1204
  export declare const PaymentMethodType: {
@@ -954,6 +1213,15 @@ export declare const PaymentRailAction: {
954
1213
  readonly target: "target";
955
1214
  };
956
1215
 
1216
+ export declare type PaymentStatus = (typeof PaymentStatus)[keyof typeof PaymentStatus];
1217
+
1218
+ export declare const PaymentStatus: {
1219
+ readonly pending: "pending";
1220
+ readonly in_progress: "in_progress";
1221
+ readonly completed: "completed";
1222
+ readonly failed: "failed";
1223
+ };
1224
+
957
1225
  export declare interface Policy {
958
1226
  id: string;
959
1227
  description?: string;
@@ -972,7 +1240,7 @@ export declare const PolicyScope: {
972
1240
 
973
1241
  export declare type PrepareUserOperationCriteria = PrepareUserOperationCriteriaItem[];
974
1242
 
975
- export declare type PrepareUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion;
1243
+ export declare type PrepareUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion;
976
1244
 
977
1245
  export declare interface PrepareUserOperationRule {
978
1246
  action: PrepareUserOperationRuleAction;
@@ -993,6 +1261,25 @@ export declare const PrepareUserOperationRuleOperation: {
993
1261
  readonly prepareUserOperation: "prepareUserOperation";
994
1262
  };
995
1263
 
1264
+ export declare interface ProgramIdCriterion {
1265
+ type: ProgramIdCriterionType;
1266
+ programIds: string[];
1267
+ operator: ProgramIdCriterionOperator;
1268
+ }
1269
+
1270
+ export declare type ProgramIdCriterionOperator = (typeof ProgramIdCriterionOperator)[keyof typeof ProgramIdCriterionOperator];
1271
+
1272
+ export declare const ProgramIdCriterionOperator: {
1273
+ readonly in: "in";
1274
+ readonly not_in: "not in";
1275
+ };
1276
+
1277
+ export declare type ProgramIdCriterionType = (typeof ProgramIdCriterionType)[keyof typeof ProgramIdCriterionType];
1278
+
1279
+ export declare const ProgramIdCriterionType: {
1280
+ readonly programId: "programId";
1281
+ };
1282
+
996
1283
  export declare type RateLimitExceededResponse = Error_2;
997
1284
 
998
1285
  export declare const refreshAccessToken: (projectId: string, refreshAccessTokenBody: RefreshAccessTokenBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RefreshAccessToken200>;
@@ -1037,11 +1324,17 @@ export declare type RegisterTemporaryWalletSecretBody = {
1037
1324
  export declare type RegisterTemporaryWalletSecretResult = NonNullable<Awaited<ReturnType<typeof registerTemporaryWalletSecret>>>;
1038
1325
 
1039
1326
  export declare interface RevokeSpendPermissionRequest {
1327
+ walletSecretId: string;
1040
1328
  network: SpendPermissionNetwork;
1041
1329
  permissionHash: string;
1330
+ useCdpPaymaster: boolean;
1042
1331
  paymasterUrl?: string;
1043
1332
  }
1044
1333
 
1334
+ export declare const revokeSpendPermissionWithEndUserAccount: (projectId: string, userId: string, address: string, revokeSpendPermissionRequest: RevokeSpendPermissionRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmUserOperation>;
1335
+
1336
+ export declare type RevokeSpendPermissionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof revokeSpendPermissionWithEndUserAccount>>>;
1337
+
1045
1338
  export declare type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule;
1046
1339
 
1047
1340
  export declare type SecondFactorProofTokenParameter = string;
@@ -1099,9 +1392,31 @@ export declare const SendEvmTransactionWithEndUserAccountBodyNetwork: {
1099
1392
 
1100
1393
  export declare type SendEvmTransactionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendEvmTransactionWithEndUserAccount>>>;
1101
1394
 
1395
+ export declare const sendSolanaTransactionWithEndUserAccount: (projectId: string, userId: string, sendSolanaTransactionWithEndUserAccountBody: SendSolanaTransactionWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SendSolanaTransactionWithEndUserAccount200>;
1396
+
1397
+ export declare type SendSolanaTransactionWithEndUserAccount200 = {
1398
+ transactionSignature: string;
1399
+ };
1400
+
1401
+ export declare type SendSolanaTransactionWithEndUserAccountBody = {
1402
+ address: string;
1403
+ network: SendSolanaTransactionWithEndUserAccountBodyNetwork;
1404
+ walletSecretId: string;
1405
+ transaction: string;
1406
+ };
1407
+
1408
+ export declare type SendSolanaTransactionWithEndUserAccountBodyNetwork = (typeof SendSolanaTransactionWithEndUserAccountBodyNetwork)[keyof typeof SendSolanaTransactionWithEndUserAccountBodyNetwork];
1409
+
1410
+ export declare const SendSolanaTransactionWithEndUserAccountBodyNetwork: {
1411
+ readonly solana: "solana";
1412
+ readonly "solana-devnet": "solana-devnet";
1413
+ };
1414
+
1415
+ export declare type SendSolanaTransactionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendSolanaTransactionWithEndUserAccount>>>;
1416
+
1102
1417
  export declare type SendSolTransactionCriteria = SendSolTransactionCriteriaItem[];
1103
1418
 
1104
- export declare type SendSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion;
1419
+ export declare type SendSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion | ProgramIdCriterion | SolNetworkCriterion;
1105
1420
 
1106
1421
  export declare interface SendSolTransactionRule {
1107
1422
  action: SendSolTransactionRuleAction;
@@ -1124,7 +1439,7 @@ export declare const SendSolTransactionRuleOperation: {
1124
1439
 
1125
1440
  export declare type SendUserOperationCriteria = SendUserOperationCriteriaItem[];
1126
1441
 
1127
- export declare type SendUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion;
1442
+ export declare type SendUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion;
1128
1443
 
1129
1444
  export declare interface SendUserOperationRule {
1130
1445
  action: SendUserOperationRuleAction;
@@ -1365,6 +1680,20 @@ export declare type SignSolanaHashWithEndUserAccountBody = {
1365
1680
 
1366
1681
  export declare type SignSolanaHashWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signSolanaHashWithEndUserAccount>>>;
1367
1682
 
1683
+ export declare const signSolanaTransactionWithEndUserAccount: (projectId: string, userId: string, signSolanaTransactionWithEndUserAccountBody: SignSolanaTransactionWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SignSolanaTransactionWithEndUserAccount200>;
1684
+
1685
+ export declare type SignSolanaTransactionWithEndUserAccount200 = {
1686
+ signedTransaction: string;
1687
+ };
1688
+
1689
+ export declare type SignSolanaTransactionWithEndUserAccountBody = {
1690
+ address: string;
1691
+ transaction: string;
1692
+ walletSecretId: string;
1693
+ };
1694
+
1695
+ export declare type SignSolanaTransactionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signSolanaTransactionWithEndUserAccount>>>;
1696
+
1368
1697
  export declare type SignSolMessageCriteria = SolMessageCriterion[];
1369
1698
 
1370
1699
  export declare interface SignSolMessageRule {
@@ -1388,7 +1717,7 @@ export declare const SignSolMessageRuleOperation: {
1388
1717
 
1389
1718
  export declare type SignSolTransactionCriteria = SignSolTransactionCriteriaItem[];
1390
1719
 
1391
- export declare type SignSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion;
1720
+ export declare type SignSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion | ProgramIdCriterion;
1392
1721
 
1393
1722
  export declare interface SignSolTransactionRule {
1394
1723
  action: SignSolTransactionRuleAction;
@@ -1526,6 +1855,32 @@ export declare const SolMessageCriterionType: {
1526
1855
  readonly solMessage: "solMessage";
1527
1856
  };
1528
1857
 
1858
+ export declare interface SolNetworkCriterion {
1859
+ type: SolNetworkCriterionType;
1860
+ networks: SolNetworkCriterionNetworksItem[];
1861
+ operator: SolNetworkCriterionOperator;
1862
+ }
1863
+
1864
+ export declare type SolNetworkCriterionNetworksItem = (typeof SolNetworkCriterionNetworksItem)[keyof typeof SolNetworkCriterionNetworksItem];
1865
+
1866
+ export declare const SolNetworkCriterionNetworksItem: {
1867
+ readonly "solana-devnet": "solana-devnet";
1868
+ readonly solana: "solana";
1869
+ };
1870
+
1871
+ export declare type SolNetworkCriterionOperator = (typeof SolNetworkCriterionOperator)[keyof typeof SolNetworkCriterionOperator];
1872
+
1873
+ export declare const SolNetworkCriterionOperator: {
1874
+ readonly in: "in";
1875
+ readonly not_in: "not in";
1876
+ };
1877
+
1878
+ export declare type SolNetworkCriterionType = (typeof SolNetworkCriterionType)[keyof typeof SolNetworkCriterionType];
1879
+
1880
+ export declare const SolNetworkCriterionType: {
1881
+ readonly solNetwork: "solNetwork";
1882
+ };
1883
+
1529
1884
  export declare interface SolValueCriterion {
1530
1885
  type: SolValueCriterionType;
1531
1886
  solValue: string;
@@ -1548,6 +1903,20 @@ export declare const SolValueCriterionType: {
1548
1903
  readonly solValue: "solValue";
1549
1904
  };
1550
1905
 
1906
+ export declare type Source = AccountSource | PaymentMethodSource;
1907
+
1908
+ export declare interface SourceAmount {
1909
+ value: string;
1910
+ currency: string;
1911
+ }
1912
+
1913
+ export declare type SourceType = (typeof SourceType)[keyof typeof SourceType];
1914
+
1915
+ export declare const SourceType: {
1916
+ readonly account: "account";
1917
+ readonly payment_method: "payment_method";
1918
+ };
1919
+
1551
1920
  export declare interface SpendPermission {
1552
1921
  account: string;
1553
1922
  spender: string;
@@ -1629,6 +1998,13 @@ export declare interface SwapUnavailableResponse {
1629
1998
 
1630
1999
  export declare type Taker = string;
1631
2000
 
2001
+ export declare type Target = OnchainAddress | OffchainAddress;
2002
+
2003
+ export declare interface TargetAmount {
2004
+ value: string;
2005
+ currency: string;
2006
+ }
2007
+
1632
2008
  export declare type TimedOutErrorResponse = Error_2;
1633
2009
 
1634
2010
  export declare interface Token {
@@ -1674,6 +2050,23 @@ export declare interface Transfer {
1674
2050
  transactionHash?: string;
1675
2051
  }
1676
2052
 
2053
+ export declare interface TransferQuote {
2054
+ id: string;
2055
+ paymentStatus: PaymentStatus;
2056
+ paymentDirection: PaymentDirection;
2057
+ source: Source;
2058
+ target: Target;
2059
+ sourceAmount: SourceAmount;
2060
+ targetAmount: TargetAmount;
2061
+ fees: FeeDetails[];
2062
+ expiresAt: string;
2063
+ note?: string;
2064
+ }
2065
+
2066
+ export declare interface TransferQuoteDetails {
2067
+ quoteId: string;
2068
+ }
2069
+
1677
2070
  export declare type TransferSource = PaymentMethodRequest;
1678
2071
 
1679
2072
  export declare type TransferSourceType = (typeof TransferSourceType)[keyof typeof TransferSourceType];
@@ -1761,15 +2154,35 @@ export declare interface WalletSecretMetadata {
1761
2154
  updatedAt: string;
1762
2155
  }
1763
2156
 
1764
- export declare interface WebhookSubscriptionRequest {
2157
+ export declare type WebhookSubscriptionListResponse = WebhookSubscriptionListResponseAllOf & ListResponse;
2158
+
2159
+ export declare type WebhookSubscriptionListResponseAllOf = {
2160
+ subscriptions: WebhookSubscriptionResponse[];
2161
+ };
2162
+
2163
+ export declare type WebhookSubscriptionRequest = (unknown & {
1765
2164
  description?: string;
1766
- eventTypes: string[];
1767
- isEnabled: boolean;
1768
- labelKey: string;
1769
- labelValue: string;
2165
+ eventTypes?: string[];
2166
+ isEnabled?: boolean;
2167
+ target?: WebhookTarget;
1770
2168
  metadata?: WebhookSubscriptionRequestMetadata;
1771
- target: WebhookTarget;
1772
- }
2169
+ labelKey?: string;
2170
+ labelValue?: string;
2171
+ labels?: WebhookSubscriptionRequestLabels;
2172
+ }) | (unknown & {
2173
+ description?: string;
2174
+ eventTypes?: string[];
2175
+ isEnabled?: boolean;
2176
+ target?: WebhookTarget;
2177
+ metadata?: WebhookSubscriptionRequestMetadata;
2178
+ labelKey?: string;
2179
+ labelValue?: string;
2180
+ labels?: WebhookSubscriptionRequestLabels;
2181
+ });
2182
+
2183
+ export declare type WebhookSubscriptionRequestLabels = {
2184
+ [key: string]: string;
2185
+ };
1773
2186
 
1774
2187
  export declare type WebhookSubscriptionRequestMetadata = {
1775
2188
  [key: string]: unknown;
@@ -1780,26 +2193,45 @@ export declare interface WebhookSubscriptionResponse {
1780
2193
  description?: string;
1781
2194
  eventTypes: string[];
1782
2195
  isEnabled: boolean;
1783
- labelKey: string;
1784
- labelValue: string;
1785
2196
  metadata?: WebhookSubscriptionResponseMetadata;
1786
2197
  subscriptionId: string;
1787
2198
  target: WebhookTarget;
2199
+ labelKey?: string;
2200
+ labelValue?: string;
2201
+ labels?: WebhookSubscriptionResponseLabels;
1788
2202
  }
1789
2203
 
2204
+ export declare type WebhookSubscriptionResponseLabels = {
2205
+ [key: string]: string;
2206
+ };
2207
+
1790
2208
  export declare type WebhookSubscriptionResponseMetadata = {
1791
2209
  secret?: string;
1792
2210
  };
1793
2211
 
1794
- export declare interface WebhookSubscriptionUpdateRequest {
2212
+ export declare type WebhookSubscriptionUpdateRequest = (unknown & {
1795
2213
  description?: string;
1796
- eventTypes: string[];
1797
- isEnabled: boolean;
1798
- labelKey: string;
1799
- labelValue: string;
2214
+ eventTypes?: string[];
2215
+ isEnabled?: boolean;
2216
+ target?: WebhookTarget;
1800
2217
  metadata?: WebhookSubscriptionUpdateRequestMetadata;
1801
- target: WebhookTarget;
1802
- }
2218
+ labelKey?: string;
2219
+ labelValue?: string;
2220
+ labels?: WebhookSubscriptionUpdateRequestLabels;
2221
+ }) | (unknown & {
2222
+ description?: string;
2223
+ eventTypes?: string[];
2224
+ isEnabled?: boolean;
2225
+ target?: WebhookTarget;
2226
+ metadata?: WebhookSubscriptionUpdateRequestMetadata;
2227
+ labelKey?: string;
2228
+ labelValue?: string;
2229
+ labels?: WebhookSubscriptionUpdateRequestLabels;
2230
+ });
2231
+
2232
+ export declare type WebhookSubscriptionUpdateRequestLabels = {
2233
+ [key: string]: string;
2234
+ };
1803
2235
 
1804
2236
  export declare type WebhookSubscriptionUpdateRequestMetadata = {
1805
2237
  [key: string]: unknown;
@@ -1859,11 +2291,15 @@ export declare type X402ExactEvmPayloadAuthorization = {
1859
2291
  nonce: string;
1860
2292
  };
1861
2293
 
2294
+ export declare interface X402ExactSolanaPayload {
2295
+ transaction: string;
2296
+ }
2297
+
1862
2298
  export declare interface X402PaymentPayload {
1863
2299
  x402Version: X402Version;
1864
2300
  scheme: X402PaymentPayloadScheme;
1865
2301
  network: X402PaymentPayloadNetwork;
1866
- payload: X402ExactEvmPayload;
2302
+ payload: X402PaymentPayloadPayload;
1867
2303
  }
1868
2304
 
1869
2305
  export declare type X402PaymentPayloadNetwork = (typeof X402PaymentPayloadNetwork)[keyof typeof X402PaymentPayloadNetwork];
@@ -1871,8 +2307,12 @@ export declare type X402PaymentPayloadNetwork = (typeof X402PaymentPayloadNetwor
1871
2307
  export declare const X402PaymentPayloadNetwork: {
1872
2308
  readonly "base-sepolia": "base-sepolia";
1873
2309
  readonly base: "base";
2310
+ readonly "solana-devnet": "solana-devnet";
2311
+ readonly solana: "solana";
1874
2312
  };
1875
2313
 
2314
+ export declare type X402PaymentPayloadPayload = X402ExactEvmPayload | X402ExactSolanaPayload;
2315
+
1876
2316
  export declare type X402PaymentPayloadScheme = (typeof X402PaymentPayloadScheme)[keyof typeof X402PaymentPayloadScheme];
1877
2317
 
1878
2318
  export declare const X402PaymentPayloadScheme: {
@@ -1902,6 +2342,8 @@ export declare type X402PaymentRequirementsNetwork = (typeof X402PaymentRequirem
1902
2342
  export declare const X402PaymentRequirementsNetwork: {
1903
2343
  readonly "base-sepolia": "base-sepolia";
1904
2344
  readonly base: "base";
2345
+ readonly "solana-devnet": "solana-devnet";
2346
+ readonly solana: "solana";
1905
2347
  };
1906
2348
 
1907
2349
  export declare type X402PaymentRequirementsOutputSchema = {
@@ -1930,6 +2372,8 @@ export declare const X402SettleErrorReason: {
1930
2372
  readonly invalid_exact_evm_payload_authorization_from_address_kyt: "invalid_exact_evm_payload_authorization_from_address_kyt";
1931
2373
  readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
1932
2374
  readonly invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address";
2375
+ readonly settle_exact_svm_block_height_exceeded: "settle_exact_svm_block_height_exceeded";
2376
+ readonly settle_exact_svm_transaction_confirmation_timed_out: "settle_exact_svm_transaction_confirmation_timed_out";
1933
2377
  };
1934
2378
 
1935
2379
  export declare type X402SettleResponseResponse = {
@@ -1944,13 +2388,20 @@ export declare interface X402SupportedPaymentKind {
1944
2388
  x402Version: X402Version;
1945
2389
  scheme: X402SupportedPaymentKindScheme;
1946
2390
  network: X402SupportedPaymentKindNetwork;
2391
+ extra?: X402SupportedPaymentKindExtra;
1947
2392
  }
1948
2393
 
2394
+ export declare type X402SupportedPaymentKindExtra = {
2395
+ [key: string]: unknown;
2396
+ };
2397
+
1949
2398
  export declare type X402SupportedPaymentKindNetwork = (typeof X402SupportedPaymentKindNetwork)[keyof typeof X402SupportedPaymentKindNetwork];
1950
2399
 
1951
2400
  export declare const X402SupportedPaymentKindNetwork: {
1952
2401
  readonly "base-sepolia": "base-sepolia";
1953
2402
  readonly base: "base";
2403
+ readonly "solana-devnet": "solana-devnet";
2404
+ readonly solana: "solana";
1954
2405
  };
1955
2406
 
1956
2407
  export declare type X402SupportedPaymentKindScheme = (typeof X402SupportedPaymentKindScheme)[keyof typeof X402SupportedPaymentKindScheme];
@@ -1980,6 +2431,24 @@ export declare const X402VerifyInvalidReason: {
1980
2431
  readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
1981
2432
  readonly invalid_exact_evm_payload_signature: "invalid_exact_evm_payload_signature";
1982
2433
  readonly invalid_exact_evm_payload_signature_address: "invalid_exact_evm_payload_signature_address";
2434
+ readonly invalid_exact_svm_payload_transaction: "invalid_exact_svm_payload_transaction";
2435
+ readonly invalid_exact_svm_payload_transaction_amount_mismatch: "invalid_exact_svm_payload_transaction_amount_mismatch";
2436
+ readonly invalid_exact_svm_payload_transaction_create_ata_instruction: "invalid_exact_svm_payload_transaction_create_ata_instruction";
2437
+ readonly invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee: "invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_payee";
2438
+ readonly invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset: "invalid_exact_svm_payload_transaction_create_ata_instruction_incorrect_asset";
2439
+ readonly invalid_exact_svm_payload_transaction_instructions: "invalid_exact_svm_payload_transaction_instructions";
2440
+ readonly invalid_exact_svm_payload_transaction_instructions_length: "invalid_exact_svm_payload_transaction_instructions_length";
2441
+ readonly invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction: "invalid_exact_svm_payload_transaction_instructions_compute_limit_instruction";
2442
+ readonly invalid_exact_svm_payload_transaction_instructions_compute_price_instruction: "invalid_exact_svm_payload_transaction_instructions_compute_price_instruction";
2443
+ readonly invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high: "invalid_exact_svm_payload_transaction_instructions_compute_price_instruction_too_high";
2444
+ readonly invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked: "invalid_exact_svm_payload_transaction_instruction_not_spl_token_transfer_checked";
2445
+ readonly invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked: "invalid_exact_svm_payload_transaction_instruction_not_token_2022_transfer_checked";
2446
+ readonly invalid_exact_svm_payload_transaction_not_a_transfer_instruction: "invalid_exact_svm_payload_transaction_not_a_transfer_instruction";
2447
+ readonly invalid_exact_svm_payload_transaction_cannot_derive_receiver_ata: "invalid_exact_svm_payload_transaction_cannot_derive_receiver_ata";
2448
+ readonly invalid_exact_svm_payload_transaction_receiver_ata_not_found: "invalid_exact_svm_payload_transaction_receiver_ata_not_found";
2449
+ readonly invalid_exact_svm_payload_transaction_sender_ata_not_found: "invalid_exact_svm_payload_transaction_sender_ata_not_found";
2450
+ readonly invalid_exact_svm_payload_transaction_simulation_failed: "invalid_exact_svm_payload_transaction_simulation_failed";
2451
+ readonly invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata: "invalid_exact_svm_payload_transaction_transfer_to_incorrect_ata";
1983
2452
  };
1984
2453
 
1985
2454
  export declare type X402VerifyResponseResponse = {