@coinbase/cdp-api-client 0.0.32 → 0.0.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +146 -122
- package/dist/esm/index2.js +89 -36
- package/dist/esm/index3.js +261 -147
- package/dist/esm/index4.js +90 -55
- package/dist/types/index.d.ts +501 -25
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -100,6 +135,7 @@ declare const cdpApiClient: <T>(config: AxiosRequestConfig, idempotencyKey?: str
|
|
|
100
135
|
export declare type CdpOptions = {
|
|
101
136
|
debugging?: boolean;
|
|
102
137
|
basePath?: string;
|
|
138
|
+
refreshTokenStorage?: RefreshTokenStorage;
|
|
103
139
|
};
|
|
104
140
|
|
|
105
141
|
export declare interface CommonSwapResponse {
|
|
@@ -142,6 +178,20 @@ export declare type CommonSwapResponseIssuesBalance = {
|
|
|
142
178
|
|
|
143
179
|
export declare const configureCdpApiClient: (options: CdpOptions) => void;
|
|
144
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
|
+
|
|
145
195
|
export declare const createEndUserEvmAccount: (projectId: string, userId: string, createEndUserEvmAccountBody: CreateEndUserEvmAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
|
|
146
196
|
|
|
147
197
|
export declare type CreateEndUserEvmAccountBody = {
|
|
@@ -159,7 +209,16 @@ export declare type CreateEndUserEvmSmartAccountBody = {
|
|
|
159
209
|
|
|
160
210
|
export declare type CreateEndUserEvmSmartAccountResult = NonNullable<Awaited<ReturnType<typeof createEndUserEvmSmartAccount>>>;
|
|
161
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
|
+
|
|
162
220
|
export declare interface CreateSpendPermissionRequest {
|
|
221
|
+
walletSecretId: string;
|
|
163
222
|
network: SpendPermissionNetwork;
|
|
164
223
|
spender: string;
|
|
165
224
|
token: string;
|
|
@@ -169,9 +228,14 @@ export declare interface CreateSpendPermissionRequest {
|
|
|
169
228
|
end: string;
|
|
170
229
|
salt?: string;
|
|
171
230
|
extraData?: string;
|
|
231
|
+
useCdpPaymaster: boolean;
|
|
172
232
|
paymasterUrl?: string;
|
|
173
233
|
}
|
|
174
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
|
+
|
|
175
239
|
export declare type CreateSwapQuoteResponse = CreateSwapQuoteResponseAllOf & CommonSwapResponse;
|
|
176
240
|
|
|
177
241
|
export declare type CreateSwapQuoteResponseAllOf = {
|
|
@@ -194,6 +258,24 @@ export declare type CreateSwapQuoteResponseAllOfTransaction = {
|
|
|
194
258
|
|
|
195
259
|
export declare type CreateSwapQuoteResponseWrapper = CreateSwapQuoteResponse | SwapUnavailableResponse;
|
|
196
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
|
+
|
|
197
279
|
export declare interface CryptoRail {
|
|
198
280
|
currency: string;
|
|
199
281
|
name: string;
|
|
@@ -469,6 +551,25 @@ export declare interface EvmSmartAccount {
|
|
|
469
551
|
updatedAt?: string;
|
|
470
552
|
}
|
|
471
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
|
+
|
|
472
573
|
export declare type EvmSwapsNetwork = (typeof EvmSwapsNetwork)[keyof typeof EvmSwapsNetwork];
|
|
473
574
|
|
|
474
575
|
export declare const EvmSwapsNetwork: {
|
|
@@ -568,6 +669,19 @@ export declare interface Fee {
|
|
|
568
669
|
description?: string;
|
|
569
670
|
}
|
|
570
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
|
+
|
|
571
685
|
export declare type FeeType = (typeof FeeType)[keyof typeof FeeType];
|
|
572
686
|
|
|
573
687
|
export declare const FeeType: {
|
|
@@ -579,6 +693,20 @@ export declare type FromAmount = string;
|
|
|
579
693
|
|
|
580
694
|
export declare type FromToken = string;
|
|
581
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
|
+
|
|
582
710
|
export declare type GasPrice = string;
|
|
583
711
|
|
|
584
712
|
export declare const getAuthenticatedEndUser: (projectId: string, userId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EndUser>;
|
|
@@ -613,15 +741,26 @@ export declare type IdempotencyErrorResponse = Error_2;
|
|
|
613
741
|
|
|
614
742
|
export declare type IdempotencyKeyParameter = string;
|
|
615
743
|
|
|
744
|
+
export declare type IdempotencyKeyRequiredParameter = string;
|
|
745
|
+
|
|
616
746
|
export declare interface Idl {
|
|
617
747
|
address: string;
|
|
618
748
|
instructions: IdlInstructionsItem[];
|
|
749
|
+
metadata?: IdlMetadata;
|
|
750
|
+
types?: IdlTypesItem[];
|
|
619
751
|
}
|
|
620
752
|
|
|
621
753
|
export declare type IdlInstructionsItem = {
|
|
622
754
|
name: string;
|
|
623
755
|
discriminator: number[];
|
|
624
756
|
args: IdlInstructionsItemArgsItem[];
|
|
757
|
+
accounts?: IdlInstructionsItemAccountsItem[];
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
export declare type IdlInstructionsItemAccountsItem = {
|
|
761
|
+
name: string;
|
|
762
|
+
writable?: boolean;
|
|
763
|
+
signer?: boolean;
|
|
625
764
|
};
|
|
626
765
|
|
|
627
766
|
export declare type IdlInstructionsItemArgsItem = {
|
|
@@ -629,6 +768,16 @@ export declare type IdlInstructionsItemArgsItem = {
|
|
|
629
768
|
type: string;
|
|
630
769
|
};
|
|
631
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
|
+
|
|
632
781
|
export declare const initiateAuthentication: (projectId: string, initiateAuthenticationRequest: InitiateAuthenticationRequest, options?: SecondParameter<typeof cdpApiClient>) => Promise<InitiateAuthenticationResponseWrapper>;
|
|
633
782
|
|
|
634
783
|
export declare type InitiateAuthenticationRequest = InitiateEmailAuthenticationRequest | InitiateSmsAuthenticationRequest;
|
|
@@ -715,6 +864,25 @@ export declare const KnownIdlType: {
|
|
|
715
864
|
readonly AssociatedTokenProgram: "AssociatedTokenProgram";
|
|
716
865
|
};
|
|
717
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
|
+
|
|
718
886
|
export declare type ListEvmTokenBalancesNetwork = (typeof ListEvmTokenBalancesNetwork)[keyof typeof ListEvmTokenBalancesNetwork];
|
|
719
887
|
|
|
720
888
|
export declare const ListEvmTokenBalancesNetwork: {
|
|
@@ -734,6 +902,21 @@ export declare const ListSolanaTokenBalancesNetwork: {
|
|
|
734
902
|
readonly "solana-devnet": "solana-devnet";
|
|
735
903
|
};
|
|
736
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
|
+
|
|
737
920
|
export declare const logOutEndUser: (projectId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<void>;
|
|
738
921
|
|
|
739
922
|
export declare type LogOutEndUserResult = NonNullable<Awaited<ReturnType<typeof logOutEndUser>>>;
|
|
@@ -779,6 +962,36 @@ export declare const NetUSDChangeCriterionType: {
|
|
|
779
962
|
readonly netUSDChange: "netUSDChange";
|
|
780
963
|
};
|
|
781
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
|
+
|
|
782
995
|
export declare interface OnchainDataColumnSchema {
|
|
783
996
|
name?: string;
|
|
784
997
|
type?: string;
|
|
@@ -857,7 +1070,7 @@ export declare interface OnrampOrder {
|
|
|
857
1070
|
paymentTotal: string;
|
|
858
1071
|
paymentSubtotal: string;
|
|
859
1072
|
paymentCurrency: string;
|
|
860
|
-
paymentMethod:
|
|
1073
|
+
paymentMethod: OnrampOrderPaymentMethodTypeId;
|
|
861
1074
|
purchaseAmount: string;
|
|
862
1075
|
purchaseCurrency: string;
|
|
863
1076
|
fees: OnrampOrderFee[];
|
|
@@ -883,6 +1096,12 @@ export declare const OnrampOrderFeeType: {
|
|
|
883
1096
|
readonly FEE_TYPE_EXCHANGE: "FEE_TYPE_EXCHANGE";
|
|
884
1097
|
};
|
|
885
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
|
+
|
|
886
1105
|
export declare type OnrampOrderStatus = (typeof OnrampOrderStatus)[keyof typeof OnrampOrderStatus];
|
|
887
1106
|
|
|
888
1107
|
export declare const OnrampOrderStatus: {
|
|
@@ -904,10 +1123,40 @@ export declare const OnrampPaymentLinkType: {
|
|
|
904
1123
|
readonly PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON: "PAYMENT_LINK_TYPE_APPLE_PAY_BUTTON";
|
|
905
1124
|
};
|
|
906
1125
|
|
|
907
|
-
export declare
|
|
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
|
+
}
|
|
1136
|
+
|
|
1137
|
+
export declare type OnrampQuotePaymentMethodTypeId = (typeof OnrampQuotePaymentMethodTypeId)[keyof typeof OnrampQuotePaymentMethodTypeId];
|
|
908
1138
|
|
|
909
|
-
export declare const
|
|
910
|
-
readonly
|
|
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";
|
|
911
1160
|
};
|
|
912
1161
|
|
|
913
1162
|
export declare interface PaymentMethod {
|
|
@@ -939,6 +1188,17 @@ export declare interface PaymentMethodRequest {
|
|
|
939
1188
|
|
|
940
1189
|
export declare type PaymentMethodRequiredErrorResponse = Error_2;
|
|
941
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
|
+
|
|
942
1202
|
export declare type PaymentMethodType = (typeof PaymentMethodType)[keyof typeof PaymentMethodType];
|
|
943
1203
|
|
|
944
1204
|
export declare const PaymentMethodType: {
|
|
@@ -953,6 +1213,15 @@ export declare const PaymentRailAction: {
|
|
|
953
1213
|
readonly target: "target";
|
|
954
1214
|
};
|
|
955
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
|
+
|
|
956
1225
|
export declare interface Policy {
|
|
957
1226
|
id: string;
|
|
958
1227
|
description?: string;
|
|
@@ -971,7 +1240,7 @@ export declare const PolicyScope: {
|
|
|
971
1240
|
|
|
972
1241
|
export declare type PrepareUserOperationCriteria = PrepareUserOperationCriteriaItem[];
|
|
973
1242
|
|
|
974
|
-
export declare type PrepareUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion;
|
|
1243
|
+
export declare type PrepareUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
975
1244
|
|
|
976
1245
|
export declare interface PrepareUserOperationRule {
|
|
977
1246
|
action: PrepareUserOperationRuleAction;
|
|
@@ -992,6 +1261,25 @@ export declare const PrepareUserOperationRuleOperation: {
|
|
|
992
1261
|
readonly prepareUserOperation: "prepareUserOperation";
|
|
993
1262
|
};
|
|
994
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
|
+
|
|
995
1283
|
export declare type RateLimitExceededResponse = Error_2;
|
|
996
1284
|
|
|
997
1285
|
export declare const refreshAccessToken: (projectId: string, refreshAccessTokenBody: RefreshAccessTokenBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RefreshAccessToken200>;
|
|
@@ -1014,6 +1302,12 @@ export declare const RefreshAccessTokenBodyGrantType: {
|
|
|
1014
1302
|
|
|
1015
1303
|
export declare type RefreshAccessTokenResult = NonNullable<Awaited<ReturnType<typeof refreshAccessToken>>>;
|
|
1016
1304
|
|
|
1305
|
+
export declare interface RefreshTokenStorage {
|
|
1306
|
+
getRefreshToken(): Promise<string | null>;
|
|
1307
|
+
setRefreshToken(token: string): Promise<void>;
|
|
1308
|
+
removeRefreshToken(): Promise<void>;
|
|
1309
|
+
}
|
|
1310
|
+
|
|
1017
1311
|
export declare const registerTemporaryWalletSecret: (projectId: string, userId: string, registerTemporaryWalletSecretBody: RegisterTemporaryWalletSecretBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RegisterTemporaryWalletSecret200>;
|
|
1018
1312
|
|
|
1019
1313
|
export declare type RegisterTemporaryWalletSecret200 = {
|
|
@@ -1030,11 +1324,17 @@ export declare type RegisterTemporaryWalletSecretBody = {
|
|
|
1030
1324
|
export declare type RegisterTemporaryWalletSecretResult = NonNullable<Awaited<ReturnType<typeof registerTemporaryWalletSecret>>>;
|
|
1031
1325
|
|
|
1032
1326
|
export declare interface RevokeSpendPermissionRequest {
|
|
1327
|
+
walletSecretId: string;
|
|
1033
1328
|
network: SpendPermissionNetwork;
|
|
1034
1329
|
permissionHash: string;
|
|
1330
|
+
useCdpPaymaster: boolean;
|
|
1035
1331
|
paymasterUrl?: string;
|
|
1036
1332
|
}
|
|
1037
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
|
+
|
|
1038
1338
|
export declare type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule;
|
|
1039
1339
|
|
|
1040
1340
|
export declare type SecondFactorProofTokenParameter = string;
|
|
@@ -1092,9 +1392,31 @@ export declare const SendEvmTransactionWithEndUserAccountBodyNetwork: {
|
|
|
1092
1392
|
|
|
1093
1393
|
export declare type SendEvmTransactionWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendEvmTransactionWithEndUserAccount>>>;
|
|
1094
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
|
+
|
|
1095
1417
|
export declare type SendSolTransactionCriteria = SendSolTransactionCriteriaItem[];
|
|
1096
1418
|
|
|
1097
|
-
export declare type SendSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion;
|
|
1419
|
+
export declare type SendSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion | ProgramIdCriterion | SolNetworkCriterion;
|
|
1098
1420
|
|
|
1099
1421
|
export declare interface SendSolTransactionRule {
|
|
1100
1422
|
action: SendSolTransactionRuleAction;
|
|
@@ -1117,7 +1439,7 @@ export declare const SendSolTransactionRuleOperation: {
|
|
|
1117
1439
|
|
|
1118
1440
|
export declare type SendUserOperationCriteria = SendUserOperationCriteriaItem[];
|
|
1119
1441
|
|
|
1120
|
-
export declare type SendUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion;
|
|
1442
|
+
export declare type SendUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
1121
1443
|
|
|
1122
1444
|
export declare interface SendUserOperationRule {
|
|
1123
1445
|
action: SendUserOperationRuleAction;
|
|
@@ -1358,6 +1680,20 @@ export declare type SignSolanaHashWithEndUserAccountBody = {
|
|
|
1358
1680
|
|
|
1359
1681
|
export declare type SignSolanaHashWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof signSolanaHashWithEndUserAccount>>>;
|
|
1360
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
|
+
|
|
1361
1697
|
export declare type SignSolMessageCriteria = SolMessageCriterion[];
|
|
1362
1698
|
|
|
1363
1699
|
export declare interface SignSolMessageRule {
|
|
@@ -1381,7 +1717,7 @@ export declare const SignSolMessageRuleOperation: {
|
|
|
1381
1717
|
|
|
1382
1718
|
export declare type SignSolTransactionCriteria = SignSolTransactionCriteriaItem[];
|
|
1383
1719
|
|
|
1384
|
-
export declare type SignSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion;
|
|
1720
|
+
export declare type SignSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion | ProgramIdCriterion;
|
|
1385
1721
|
|
|
1386
1722
|
export declare interface SignSolTransactionRule {
|
|
1387
1723
|
action: SignSolTransactionRuleAction;
|
|
@@ -1519,6 +1855,32 @@ export declare const SolMessageCriterionType: {
|
|
|
1519
1855
|
readonly solMessage: "solMessage";
|
|
1520
1856
|
};
|
|
1521
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
|
+
|
|
1522
1884
|
export declare interface SolValueCriterion {
|
|
1523
1885
|
type: SolValueCriterionType;
|
|
1524
1886
|
solValue: string;
|
|
@@ -1541,6 +1903,20 @@ export declare const SolValueCriterionType: {
|
|
|
1541
1903
|
readonly solValue: "solValue";
|
|
1542
1904
|
};
|
|
1543
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
|
+
|
|
1544
1920
|
export declare interface SpendPermission {
|
|
1545
1921
|
account: string;
|
|
1546
1922
|
spender: string;
|
|
@@ -1622,6 +1998,13 @@ export declare interface SwapUnavailableResponse {
|
|
|
1622
1998
|
|
|
1623
1999
|
export declare type Taker = string;
|
|
1624
2000
|
|
|
2001
|
+
export declare type Target = OnchainAddress | OffchainAddress;
|
|
2002
|
+
|
|
2003
|
+
export declare interface TargetAmount {
|
|
2004
|
+
value: string;
|
|
2005
|
+
currency: string;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
1625
2008
|
export declare type TimedOutErrorResponse = Error_2;
|
|
1626
2009
|
|
|
1627
2010
|
export declare interface Token {
|
|
@@ -1667,6 +2050,23 @@ export declare interface Transfer {
|
|
|
1667
2050
|
transactionHash?: string;
|
|
1668
2051
|
}
|
|
1669
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
|
+
|
|
1670
2070
|
export declare type TransferSource = PaymentMethodRequest;
|
|
1671
2071
|
|
|
1672
2072
|
export declare type TransferSourceType = (typeof TransferSourceType)[keyof typeof TransferSourceType];
|
|
@@ -1754,15 +2154,35 @@ export declare interface WalletSecretMetadata {
|
|
|
1754
2154
|
updatedAt: string;
|
|
1755
2155
|
}
|
|
1756
2156
|
|
|
1757
|
-
export declare
|
|
2157
|
+
export declare type WebhookSubscriptionListResponse = WebhookSubscriptionListResponseAllOf & ListResponse;
|
|
2158
|
+
|
|
2159
|
+
export declare type WebhookSubscriptionListResponseAllOf = {
|
|
2160
|
+
subscriptions: WebhookSubscriptionResponse[];
|
|
2161
|
+
};
|
|
2162
|
+
|
|
2163
|
+
export declare type WebhookSubscriptionRequest = (unknown & {
|
|
1758
2164
|
description?: string;
|
|
1759
|
-
eventTypes
|
|
1760
|
-
isEnabled
|
|
1761
|
-
|
|
1762
|
-
labelValue: string;
|
|
2165
|
+
eventTypes?: string[];
|
|
2166
|
+
isEnabled?: boolean;
|
|
2167
|
+
target?: WebhookTarget;
|
|
1763
2168
|
metadata?: WebhookSubscriptionRequestMetadata;
|
|
1764
|
-
|
|
1765
|
-
|
|
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
|
+
};
|
|
1766
2186
|
|
|
1767
2187
|
export declare type WebhookSubscriptionRequestMetadata = {
|
|
1768
2188
|
[key: string]: unknown;
|
|
@@ -1773,26 +2193,45 @@ export declare interface WebhookSubscriptionResponse {
|
|
|
1773
2193
|
description?: string;
|
|
1774
2194
|
eventTypes: string[];
|
|
1775
2195
|
isEnabled: boolean;
|
|
1776
|
-
labelKey: string;
|
|
1777
|
-
labelValue: string;
|
|
1778
2196
|
metadata?: WebhookSubscriptionResponseMetadata;
|
|
1779
2197
|
subscriptionId: string;
|
|
1780
2198
|
target: WebhookTarget;
|
|
2199
|
+
labelKey?: string;
|
|
2200
|
+
labelValue?: string;
|
|
2201
|
+
labels?: WebhookSubscriptionResponseLabels;
|
|
1781
2202
|
}
|
|
1782
2203
|
|
|
2204
|
+
export declare type WebhookSubscriptionResponseLabels = {
|
|
2205
|
+
[key: string]: string;
|
|
2206
|
+
};
|
|
2207
|
+
|
|
1783
2208
|
export declare type WebhookSubscriptionResponseMetadata = {
|
|
1784
2209
|
secret?: string;
|
|
1785
2210
|
};
|
|
1786
2211
|
|
|
1787
|
-
export declare
|
|
2212
|
+
export declare type WebhookSubscriptionUpdateRequest = (unknown & {
|
|
1788
2213
|
description?: string;
|
|
1789
|
-
eventTypes
|
|
1790
|
-
isEnabled
|
|
1791
|
-
|
|
1792
|
-
labelValue: string;
|
|
2214
|
+
eventTypes?: string[];
|
|
2215
|
+
isEnabled?: boolean;
|
|
2216
|
+
target?: WebhookTarget;
|
|
1793
2217
|
metadata?: WebhookSubscriptionUpdateRequestMetadata;
|
|
1794
|
-
|
|
1795
|
-
|
|
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
|
+
};
|
|
1796
2235
|
|
|
1797
2236
|
export declare type WebhookSubscriptionUpdateRequestMetadata = {
|
|
1798
2237
|
[key: string]: unknown;
|
|
@@ -1852,11 +2291,15 @@ export declare type X402ExactEvmPayloadAuthorization = {
|
|
|
1852
2291
|
nonce: string;
|
|
1853
2292
|
};
|
|
1854
2293
|
|
|
2294
|
+
export declare interface X402ExactSolanaPayload {
|
|
2295
|
+
transaction: string;
|
|
2296
|
+
}
|
|
2297
|
+
|
|
1855
2298
|
export declare interface X402PaymentPayload {
|
|
1856
2299
|
x402Version: X402Version;
|
|
1857
2300
|
scheme: X402PaymentPayloadScheme;
|
|
1858
2301
|
network: X402PaymentPayloadNetwork;
|
|
1859
|
-
payload:
|
|
2302
|
+
payload: X402PaymentPayloadPayload;
|
|
1860
2303
|
}
|
|
1861
2304
|
|
|
1862
2305
|
export declare type X402PaymentPayloadNetwork = (typeof X402PaymentPayloadNetwork)[keyof typeof X402PaymentPayloadNetwork];
|
|
@@ -1864,8 +2307,12 @@ export declare type X402PaymentPayloadNetwork = (typeof X402PaymentPayloadNetwor
|
|
|
1864
2307
|
export declare const X402PaymentPayloadNetwork: {
|
|
1865
2308
|
readonly "base-sepolia": "base-sepolia";
|
|
1866
2309
|
readonly base: "base";
|
|
2310
|
+
readonly "solana-devnet": "solana-devnet";
|
|
2311
|
+
readonly solana: "solana";
|
|
1867
2312
|
};
|
|
1868
2313
|
|
|
2314
|
+
export declare type X402PaymentPayloadPayload = X402ExactEvmPayload | X402ExactSolanaPayload;
|
|
2315
|
+
|
|
1869
2316
|
export declare type X402PaymentPayloadScheme = (typeof X402PaymentPayloadScheme)[keyof typeof X402PaymentPayloadScheme];
|
|
1870
2317
|
|
|
1871
2318
|
export declare const X402PaymentPayloadScheme: {
|
|
@@ -1895,6 +2342,8 @@ export declare type X402PaymentRequirementsNetwork = (typeof X402PaymentRequirem
|
|
|
1895
2342
|
export declare const X402PaymentRequirementsNetwork: {
|
|
1896
2343
|
readonly "base-sepolia": "base-sepolia";
|
|
1897
2344
|
readonly base: "base";
|
|
2345
|
+
readonly "solana-devnet": "solana-devnet";
|
|
2346
|
+
readonly solana: "solana";
|
|
1898
2347
|
};
|
|
1899
2348
|
|
|
1900
2349
|
export declare type X402PaymentRequirementsOutputSchema = {
|
|
@@ -1923,6 +2372,8 @@ export declare const X402SettleErrorReason: {
|
|
|
1923
2372
|
readonly invalid_exact_evm_payload_authorization_from_address_kyt: "invalid_exact_evm_payload_authorization_from_address_kyt";
|
|
1924
2373
|
readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
|
|
1925
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";
|
|
1926
2377
|
};
|
|
1927
2378
|
|
|
1928
2379
|
export declare type X402SettleResponseResponse = {
|
|
@@ -1937,13 +2388,20 @@ export declare interface X402SupportedPaymentKind {
|
|
|
1937
2388
|
x402Version: X402Version;
|
|
1938
2389
|
scheme: X402SupportedPaymentKindScheme;
|
|
1939
2390
|
network: X402SupportedPaymentKindNetwork;
|
|
2391
|
+
extra?: X402SupportedPaymentKindExtra;
|
|
1940
2392
|
}
|
|
1941
2393
|
|
|
2394
|
+
export declare type X402SupportedPaymentKindExtra = {
|
|
2395
|
+
[key: string]: unknown;
|
|
2396
|
+
};
|
|
2397
|
+
|
|
1942
2398
|
export declare type X402SupportedPaymentKindNetwork = (typeof X402SupportedPaymentKindNetwork)[keyof typeof X402SupportedPaymentKindNetwork];
|
|
1943
2399
|
|
|
1944
2400
|
export declare const X402SupportedPaymentKindNetwork: {
|
|
1945
2401
|
readonly "base-sepolia": "base-sepolia";
|
|
1946
2402
|
readonly base: "base";
|
|
2403
|
+
readonly "solana-devnet": "solana-devnet";
|
|
2404
|
+
readonly solana: "solana";
|
|
1947
2405
|
};
|
|
1948
2406
|
|
|
1949
2407
|
export declare type X402SupportedPaymentKindScheme = (typeof X402SupportedPaymentKindScheme)[keyof typeof X402SupportedPaymentKindScheme];
|
|
@@ -1973,6 +2431,24 @@ export declare const X402VerifyInvalidReason: {
|
|
|
1973
2431
|
readonly invalid_exact_evm_payload_authorization_to_address_kyt: "invalid_exact_evm_payload_authorization_to_address_kyt";
|
|
1974
2432
|
readonly invalid_exact_evm_payload_signature: "invalid_exact_evm_payload_signature";
|
|
1975
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";
|
|
1976
2452
|
};
|
|
1977
2453
|
|
|
1978
2454
|
export declare type X402VerifyResponseResponse = {
|