@coinbase/cdp-api-client 0.0.93 → 0.0.95
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 +136 -121
- package/dist/esm/index4.js +1 -1
- package/dist/esm/index5.js +21 -22
- package/dist/esm/index6.js +288 -232
- package/dist/esm/index7.js +126 -115
- package/dist/types/index.d.ts +271 -46
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -85,6 +85,13 @@ export declare type AccountWithLinkStatusAllOf = {
|
|
|
85
85
|
linkStatus?: Status;
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
+
export declare interface AddAndroidMobileClientRequest {
|
|
89
|
+
identifier: string;
|
|
90
|
+
cloudProjectNumber: string;
|
|
91
|
+
serviceAccountCredentials: string;
|
|
92
|
+
serviceAccountCredentialsFileName: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
88
95
|
export declare interface AddMobileClientRequest {
|
|
89
96
|
platform: AddMobileClientRequestPlatform;
|
|
90
97
|
identifier: string;
|
|
@@ -94,7 +101,6 @@ export declare type AddMobileClientRequestPlatform = (typeof AddMobileClientRequ
|
|
|
94
101
|
|
|
95
102
|
export declare const AddMobileClientRequestPlatform: {
|
|
96
103
|
readonly ios: "ios";
|
|
97
|
-
readonly android: "android";
|
|
98
104
|
};
|
|
99
105
|
|
|
100
106
|
export declare interface AddMobileClientResponse {
|
|
@@ -131,8 +137,8 @@ export declare const AddressRiskRiskLevel: {
|
|
|
131
137
|
};
|
|
132
138
|
|
|
133
139
|
export declare interface AllowedMobileClients {
|
|
134
|
-
ios:
|
|
135
|
-
android:
|
|
140
|
+
ios: IOSMobileClientItem[];
|
|
141
|
+
android: AndroidMobileClientItem[];
|
|
136
142
|
}
|
|
137
143
|
|
|
138
144
|
export declare type AlreadyExistsErrorResponse = Error_2;
|
|
@@ -142,6 +148,19 @@ export declare interface AmountDetail {
|
|
|
142
148
|
total: string;
|
|
143
149
|
}
|
|
144
150
|
|
|
151
|
+
export declare interface AndroidAppAttestationConfig {
|
|
152
|
+
identifier?: string;
|
|
153
|
+
googleProjectNumber?: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export declare interface AndroidMobileClientItem {
|
|
157
|
+
id: string;
|
|
158
|
+
identifier: string;
|
|
159
|
+
cloudProjectNumber: string;
|
|
160
|
+
serviceAccountCredentialsFileName: string;
|
|
161
|
+
createdAt: string;
|
|
162
|
+
}
|
|
163
|
+
|
|
145
164
|
export declare class APIError extends Error {
|
|
146
165
|
statusCode: number;
|
|
147
166
|
errorType: APIErrorType;
|
|
@@ -161,6 +180,20 @@ export declare class APIError extends Error {
|
|
|
161
180
|
|
|
162
181
|
export declare type APIErrorType = ErrorType | HttpErrorType;
|
|
163
182
|
|
|
183
|
+
export declare interface AppAttestation {
|
|
184
|
+
appIdentifier?: string;
|
|
185
|
+
isEnabled(): boolean;
|
|
186
|
+
generateAssertion(clientData: string): Promise<{
|
|
187
|
+
assertion: string;
|
|
188
|
+
keyId?: string;
|
|
189
|
+
} | null>;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export declare interface AppAttestationProjectConfig {
|
|
193
|
+
android?: AndroidAppAttestationConfig[];
|
|
194
|
+
ios?: IOSAppAttestationConfig[];
|
|
195
|
+
}
|
|
196
|
+
|
|
164
197
|
export declare interface AppleConfig {
|
|
165
198
|
enabled?: boolean;
|
|
166
199
|
clientId?: string;
|
|
@@ -320,12 +353,12 @@ export declare type CdpOptions = {
|
|
|
320
353
|
debugging?: boolean;
|
|
321
354
|
basePath?: string;
|
|
322
355
|
refreshTokenStorage?: RefreshTokenStorage;
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
keyId?: string;
|
|
326
|
-
}>;
|
|
356
|
+
appAttestation?: AppAttestation;
|
|
357
|
+
platform?: string;
|
|
327
358
|
};
|
|
328
359
|
|
|
360
|
+
export declare type ClientClosedRequestErrorResponse = Error_2;
|
|
361
|
+
|
|
329
362
|
export declare interface CommonSwapResponse {
|
|
330
363
|
blockNumber: string;
|
|
331
364
|
toAmount: string;
|
|
@@ -416,6 +449,7 @@ export declare interface CreateDepositDestinationRequest {
|
|
|
416
449
|
accountId: AccountId;
|
|
417
450
|
type: CreateDepositDestinationRequestType;
|
|
418
451
|
network: Network;
|
|
452
|
+
target?: DepositDestinationTarget;
|
|
419
453
|
metadata?: Metadata;
|
|
420
454
|
}
|
|
421
455
|
|
|
@@ -465,7 +499,7 @@ export declare type CreateEndUserSolanaAccountResult = NonNullable<Awaited<Retur
|
|
|
465
499
|
export declare const createEvmEip7702DelegationWithEndUserAccount: (projectId: string, userId: string, createEvmEip7702DelegationWithEndUserAccountBody: CreateEvmEip7702DelegationWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<CreateEvmEip7702DelegationWithEndUserAccount201>;
|
|
466
500
|
|
|
467
501
|
export declare type CreateEvmEip7702DelegationWithEndUserAccount201 = {
|
|
468
|
-
|
|
502
|
+
delegationOperationId: string;
|
|
469
503
|
};
|
|
470
504
|
|
|
471
505
|
export declare type CreateEvmEip7702DelegationWithEndUserAccountBody = {
|
|
@@ -560,6 +594,7 @@ export declare interface CryptoDepositDestination {
|
|
|
560
594
|
type: CryptoDepositDestinationType;
|
|
561
595
|
address: BlockchainAddress;
|
|
562
596
|
network: Network;
|
|
597
|
+
target?: DepositDestinationTarget;
|
|
563
598
|
metadata?: Metadata;
|
|
564
599
|
createdAt: string;
|
|
565
600
|
updatedAt: string;
|
|
@@ -656,6 +691,13 @@ export declare interface DepositDestinationReference {
|
|
|
656
691
|
id: DepositDestinationId;
|
|
657
692
|
}
|
|
658
693
|
|
|
694
|
+
export declare type DepositDestinationTarget = DepositDestinationTargetAccount;
|
|
695
|
+
|
|
696
|
+
export declare interface DepositDestinationTargetAccount {
|
|
697
|
+
accountId?: AccountId;
|
|
698
|
+
asset: Asset;
|
|
699
|
+
}
|
|
700
|
+
|
|
659
701
|
export declare type DepositDestinationType = (typeof DepositDestinationType)[keyof typeof DepositDestinationType];
|
|
660
702
|
|
|
661
703
|
export declare const DepositDestinationType: {
|
|
@@ -838,6 +880,7 @@ export declare interface Entity {
|
|
|
838
880
|
name: string;
|
|
839
881
|
legalEntityId?: string | null;
|
|
840
882
|
type?: string;
|
|
883
|
+
productionEntityId?: EntityId;
|
|
841
884
|
capabilities: CapabilitiesMap;
|
|
842
885
|
createdAt: string;
|
|
843
886
|
otherInfo?: EntityOtherInfo;
|
|
@@ -862,6 +905,7 @@ export declare type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
|
|
|
862
905
|
export declare const ErrorType: {
|
|
863
906
|
readonly already_exists: "already_exists";
|
|
864
907
|
readonly bad_gateway: "bad_gateway";
|
|
908
|
+
readonly client_closed_request: "client_closed_request";
|
|
865
909
|
readonly faucet_limit_exceeded: "faucet_limit_exceeded";
|
|
866
910
|
readonly forbidden: "forbidden";
|
|
867
911
|
readonly idempotency_error: "idempotency_error";
|
|
@@ -916,6 +960,7 @@ export declare const ErrorType: {
|
|
|
916
960
|
readonly order_quote_expired: "order_quote_expired";
|
|
917
961
|
readonly order_already_filled: "order_already_filled";
|
|
918
962
|
readonly order_already_canceled: "order_already_canceled";
|
|
963
|
+
readonly account_not_ready: "account_not_ready";
|
|
919
964
|
};
|
|
920
965
|
|
|
921
966
|
export declare interface EthValueCriterion {
|
|
@@ -1036,19 +1081,22 @@ export declare const EvmEip7702DelegationNetwork: {
|
|
|
1036
1081
|
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
1037
1082
|
};
|
|
1038
1083
|
|
|
1039
|
-
export declare interface
|
|
1040
|
-
|
|
1041
|
-
|
|
1084
|
+
export declare interface EvmEip7702DelegationOperation {
|
|
1085
|
+
delegationOperationId: string;
|
|
1086
|
+
status: EvmEip7702DelegationOperationStatus;
|
|
1087
|
+
transactionHash?: string;
|
|
1042
1088
|
network: EvmEip7702DelegationNetwork;
|
|
1089
|
+
delegateAddress?: string;
|
|
1043
1090
|
}
|
|
1044
1091
|
|
|
1045
|
-
export declare type
|
|
1092
|
+
export declare type EvmEip7702DelegationOperationStatus = (typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
|
|
1046
1093
|
|
|
1047
|
-
export declare const
|
|
1048
|
-
readonly
|
|
1049
|
-
readonly
|
|
1050
|
-
readonly
|
|
1051
|
-
readonly
|
|
1094
|
+
export declare const EvmEip7702DelegationOperationStatus: {
|
|
1095
|
+
readonly UNSPECIFIED: "UNSPECIFIED";
|
|
1096
|
+
readonly PENDING: "PENDING";
|
|
1097
|
+
readonly SUBMITTED: "SUBMITTED";
|
|
1098
|
+
readonly COMPLETED: "COMPLETED";
|
|
1099
|
+
readonly FAILED: "FAILED";
|
|
1052
1100
|
};
|
|
1053
1101
|
|
|
1054
1102
|
export declare interface EvmMessageCriterion {
|
|
@@ -1295,14 +1343,9 @@ export declare const getAuthenticatedEndUser: (projectId: string, userId: string
|
|
|
1295
1343
|
|
|
1296
1344
|
export declare type GetAuthenticatedEndUserResult = NonNullable<Awaited<ReturnType<typeof getAuthenticatedEndUser>>>;
|
|
1297
1345
|
|
|
1298
|
-
export declare const
|
|
1346
|
+
export declare const getEvmEip7702DelegationOperationByIdWithEndUserAccount: (projectId: string, userId: string, delegationOperationId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmEip7702DelegationOperation>;
|
|
1299
1347
|
|
|
1300
|
-
export declare type
|
|
1301
|
-
address: string;
|
|
1302
|
-
network: EvmEip7702DelegationNetwork;
|
|
1303
|
-
};
|
|
1304
|
-
|
|
1305
|
-
export declare type GetEvmEip7702DelegationStatusWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof getEvmEip7702DelegationStatusWithEndUserAccount>>>;
|
|
1348
|
+
export declare type GetEvmEip7702DelegationOperationByIdWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof getEvmEip7702DelegationOperationByIdWithEndUserAccount>>>;
|
|
1306
1349
|
|
|
1307
1350
|
export declare const getMfaConfig: (projectId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<MfaConfig>;
|
|
1308
1351
|
|
|
@@ -1552,6 +1595,10 @@ export declare const InvitationStatus: {
|
|
|
1552
1595
|
readonly expired: "expired";
|
|
1553
1596
|
};
|
|
1554
1597
|
|
|
1598
|
+
export declare interface IOSAppAttestationConfig {
|
|
1599
|
+
identifier?: string;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1555
1602
|
export declare interface IosAttestationChallenge {
|
|
1556
1603
|
challenge: string;
|
|
1557
1604
|
expiresAt: string;
|
|
@@ -1581,6 +1628,12 @@ export declare const IosAttestationRegistrationResponsePlatform: {
|
|
|
1581
1628
|
readonly ios: "ios";
|
|
1582
1629
|
};
|
|
1583
1630
|
|
|
1631
|
+
export declare interface IOSMobileClientItem {
|
|
1632
|
+
id: string;
|
|
1633
|
+
identifier: string;
|
|
1634
|
+
createdAt: string;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1584
1637
|
export declare function isOpenAPIError(obj: unknown): obj is Error_2;
|
|
1585
1638
|
|
|
1586
1639
|
export declare type KnownAbiType = (typeof KnownAbiType)[keyof typeof KnownAbiType];
|
|
@@ -1741,12 +1794,6 @@ export declare const MintAddressCriterionType: {
|
|
|
1741
1794
|
readonly mintAddress: "mintAddress";
|
|
1742
1795
|
};
|
|
1743
1796
|
|
|
1744
|
-
export declare interface MobileClientItem {
|
|
1745
|
-
id: string;
|
|
1746
|
-
identifier: string;
|
|
1747
|
-
createdAt: string;
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
1797
|
export declare interface NetUSDChangeCriterion {
|
|
1751
1798
|
type: NetUSDChangeCriterionType;
|
|
1752
1799
|
changeCents: number;
|
|
@@ -1972,6 +2019,7 @@ export declare type OnrampOrderPaymentMethodTypeId = (typeof OnrampOrderPaymentM
|
|
|
1972
2019
|
|
|
1973
2020
|
export declare const OnrampOrderPaymentMethodTypeId: {
|
|
1974
2021
|
readonly GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY";
|
|
2022
|
+
readonly GUEST_CHECKOUT_GOOGLE_PAY: "GUEST_CHECKOUT_GOOGLE_PAY";
|
|
1975
2023
|
};
|
|
1976
2024
|
|
|
1977
2025
|
export declare type OnrampOrderStatus = (typeof OnrampOrderStatus)[keyof typeof OnrampOrderStatus];
|
|
@@ -2035,12 +2083,12 @@ export declare interface OnrampUserLimit {
|
|
|
2035
2083
|
}
|
|
2036
2084
|
|
|
2037
2085
|
export declare interface Order {
|
|
2038
|
-
orderId
|
|
2086
|
+
orderId?: OrderId;
|
|
2039
2087
|
accountId: string;
|
|
2040
2088
|
productId: string;
|
|
2041
2089
|
side: OrderSide;
|
|
2042
2090
|
type: OrderType;
|
|
2043
|
-
status
|
|
2091
|
+
status?: OrderStatus;
|
|
2044
2092
|
baseQuantity?: string;
|
|
2045
2093
|
quoteValue?: string;
|
|
2046
2094
|
limitPrice?: string;
|
|
@@ -2050,14 +2098,17 @@ export declare interface Order {
|
|
|
2050
2098
|
filledValue?: string;
|
|
2051
2099
|
averageFilledPrice?: string;
|
|
2052
2100
|
fees?: OrderFees;
|
|
2053
|
-
|
|
2101
|
+
slippage?: string;
|
|
2102
|
+
bestBid?: string;
|
|
2103
|
+
bestAsk?: string;
|
|
2104
|
+
orderTotal?: string;
|
|
2054
2105
|
executedAt?: string;
|
|
2055
2106
|
completedAt?: string;
|
|
2056
2107
|
canceledAt?: string;
|
|
2057
2108
|
failureCode?: OrderFailureCode;
|
|
2058
2109
|
failureMessage?: string;
|
|
2059
|
-
createdAt
|
|
2060
|
-
updatedAt
|
|
2110
|
+
createdAt?: string;
|
|
2111
|
+
updatedAt?: string;
|
|
2061
2112
|
}
|
|
2062
2113
|
|
|
2063
2114
|
export declare type OrderFailureCode = (typeof OrderFailureCode)[keyof typeof OrderFailureCode];
|
|
@@ -2080,11 +2131,11 @@ export declare type OrderFees = OrderFee[];
|
|
|
2080
2131
|
export declare type OrderFeeType = (typeof OrderFeeType)[keyof typeof OrderFeeType];
|
|
2081
2132
|
|
|
2082
2133
|
export declare const OrderFeeType: {
|
|
2083
|
-
readonly
|
|
2084
|
-
readonly network: "network";
|
|
2085
|
-
readonly other: "other";
|
|
2134
|
+
readonly commission: "commission";
|
|
2086
2135
|
};
|
|
2087
2136
|
|
|
2137
|
+
export declare type OrderId = string;
|
|
2138
|
+
|
|
2088
2139
|
export declare interface OrderRequest {
|
|
2089
2140
|
accountId: string;
|
|
2090
2141
|
productId: string;
|
|
@@ -2095,7 +2146,7 @@ export declare interface OrderRequest {
|
|
|
2095
2146
|
limitPrice?: string;
|
|
2096
2147
|
timeInForce?: TimeInForce;
|
|
2097
2148
|
expiryTime?: string;
|
|
2098
|
-
|
|
2149
|
+
validateOnly?: boolean;
|
|
2099
2150
|
}
|
|
2100
2151
|
|
|
2101
2152
|
export declare type OrderSide = (typeof OrderSide)[keyof typeof OrderSide];
|
|
@@ -2108,7 +2159,6 @@ export declare const OrderSide: {
|
|
|
2108
2159
|
export declare type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus];
|
|
2109
2160
|
|
|
2110
2161
|
export declare const OrderStatus: {
|
|
2111
|
-
readonly quoted: "quoted";
|
|
2112
2162
|
readonly pending: "pending";
|
|
2113
2163
|
readonly open: "open";
|
|
2114
2164
|
readonly filled: "filled";
|
|
@@ -2250,7 +2300,7 @@ export declare const PolicyScope: {
|
|
|
2250
2300
|
|
|
2251
2301
|
export declare type PrepareUserOperationCriteria = PrepareUserOperationCriteriaItem[];
|
|
2252
2302
|
|
|
2253
|
-
export declare type PrepareUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
2303
|
+
export declare type PrepareUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
2254
2304
|
|
|
2255
2305
|
export declare interface PrepareUserOperationRule {
|
|
2256
2306
|
action: PrepareUserOperationRuleAction;
|
|
@@ -2305,12 +2355,26 @@ export declare interface ProjectConfig {
|
|
|
2305
2355
|
name?: string;
|
|
2306
2356
|
createdAt: string;
|
|
2307
2357
|
updatedAt: string;
|
|
2358
|
+
appAttestation?: AppAttestationProjectConfig;
|
|
2308
2359
|
}
|
|
2309
2360
|
|
|
2310
2361
|
export declare type ProjectId = string;
|
|
2311
2362
|
|
|
2312
2363
|
export declare type RateLimitExceededResponse = Error_2;
|
|
2313
2364
|
|
|
2365
|
+
export declare interface RateLimitingCriterion {
|
|
2366
|
+
type: RateLimitingCriterionType;
|
|
2367
|
+
window: string;
|
|
2368
|
+
maxCount?: number;
|
|
2369
|
+
maxValueCents?: number;
|
|
2370
|
+
}
|
|
2371
|
+
|
|
2372
|
+
export declare type RateLimitingCriterionType = (typeof RateLimitingCriterionType)[keyof typeof RateLimitingCriterionType];
|
|
2373
|
+
|
|
2374
|
+
export declare const RateLimitingCriterionType: {
|
|
2375
|
+
readonly rateLimiting: "rateLimiting";
|
|
2376
|
+
};
|
|
2377
|
+
|
|
2314
2378
|
export declare const recordMfaEnrollmentPrompted: (projectId: string, userId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<RecordMfaEnrollmentPrompted200>;
|
|
2315
2379
|
|
|
2316
2380
|
export declare type RecordMfaEnrollmentPrompted200 = {
|
|
@@ -2478,7 +2542,7 @@ export declare interface Role {
|
|
|
2478
2542
|
|
|
2479
2543
|
export declare type RoleId = "role_entity_admin" | "role_entity_viewer" | string;
|
|
2480
2544
|
|
|
2481
|
-
export declare type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule;
|
|
2545
|
+
export declare type Rule = SignEvmTransactionRule | SendEvmTransactionRule | SignEvmMessageRule | SignEvmTypedDataRule | SignSolTransactionRule | SendSolTransactionRule | SignSolMessageRule | SignEvmHashRule | PrepareUserOperationRule | SendUserOperationRule | SignEndUserEvmTransactionRule | SendEndUserEvmTransactionRule | SignEndUserEvmMessageRule | SignEndUserEvmTypedDataRule | SignEndUserSolTransactionRule | SendEndUserSolTransactionRule | SignEndUserSolMessageRule;
|
|
2482
2546
|
|
|
2483
2547
|
export declare interface Schedule {
|
|
2484
2548
|
scheduleId: string;
|
|
@@ -2512,6 +2576,52 @@ export declare type SecondFactorProofTokenParameter = string;
|
|
|
2512
2576
|
|
|
2513
2577
|
declare type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
2514
2578
|
|
|
2579
|
+
export declare type SendEndUserEvmTransactionCriteria = SendEndUserEvmTransactionCriteriaItem[];
|
|
2580
|
+
|
|
2581
|
+
export declare type SendEndUserEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
2582
|
+
|
|
2583
|
+
export declare interface SendEndUserEvmTransactionRule {
|
|
2584
|
+
action: SendEndUserEvmTransactionRuleAction;
|
|
2585
|
+
operation: SendEndUserEvmTransactionRuleOperation;
|
|
2586
|
+
criteria: SendEndUserEvmTransactionCriteria;
|
|
2587
|
+
}
|
|
2588
|
+
|
|
2589
|
+
export declare type SendEndUserEvmTransactionRuleAction = (typeof SendEndUserEvmTransactionRuleAction)[keyof typeof SendEndUserEvmTransactionRuleAction];
|
|
2590
|
+
|
|
2591
|
+
export declare const SendEndUserEvmTransactionRuleAction: {
|
|
2592
|
+
readonly reject: "reject";
|
|
2593
|
+
readonly accept: "accept";
|
|
2594
|
+
};
|
|
2595
|
+
|
|
2596
|
+
export declare type SendEndUserEvmTransactionRuleOperation = (typeof SendEndUserEvmTransactionRuleOperation)[keyof typeof SendEndUserEvmTransactionRuleOperation];
|
|
2597
|
+
|
|
2598
|
+
export declare const SendEndUserEvmTransactionRuleOperation: {
|
|
2599
|
+
readonly sendEndUserEvmTransaction: "sendEndUserEvmTransaction";
|
|
2600
|
+
};
|
|
2601
|
+
|
|
2602
|
+
export declare type SendEndUserSolTransactionCriteria = SendEndUserSolTransactionCriteriaItem[];
|
|
2603
|
+
|
|
2604
|
+
export declare type SendEndUserSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion | ProgramIdCriterion | SolNetworkCriterion | RateLimitingCriterion;
|
|
2605
|
+
|
|
2606
|
+
export declare interface SendEndUserSolTransactionRule {
|
|
2607
|
+
action: SendEndUserSolTransactionRuleAction;
|
|
2608
|
+
operation: SendEndUserSolTransactionRuleOperation;
|
|
2609
|
+
criteria: SendEndUserSolTransactionCriteria;
|
|
2610
|
+
}
|
|
2611
|
+
|
|
2612
|
+
export declare type SendEndUserSolTransactionRuleAction = (typeof SendEndUserSolTransactionRuleAction)[keyof typeof SendEndUserSolTransactionRuleAction];
|
|
2613
|
+
|
|
2614
|
+
export declare const SendEndUserSolTransactionRuleAction: {
|
|
2615
|
+
readonly reject: "reject";
|
|
2616
|
+
readonly accept: "accept";
|
|
2617
|
+
};
|
|
2618
|
+
|
|
2619
|
+
export declare type SendEndUserSolTransactionRuleOperation = (typeof SendEndUserSolTransactionRuleOperation)[keyof typeof SendEndUserSolTransactionRuleOperation];
|
|
2620
|
+
|
|
2621
|
+
export declare const SendEndUserSolTransactionRuleOperation: {
|
|
2622
|
+
readonly sendEndUserSolTransaction: "sendEndUserSolTransaction";
|
|
2623
|
+
};
|
|
2624
|
+
|
|
2515
2625
|
export declare const sendEvmAssetWithEndUserAccount: (projectId: string, userId: string, address: BlockchainAddress, asset: "usdc", sendEvmAssetWithEndUserAccountBody: SendEvmAssetWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SendEvmAssetWithEndUserAccount200>;
|
|
2516
2626
|
|
|
2517
2627
|
export declare type SendEvmAssetWithEndUserAccount200 = {
|
|
@@ -2545,7 +2655,7 @@ export declare type SendEvmAssetWithEndUserAccountResult = NonNullable<Awaited<R
|
|
|
2545
2655
|
|
|
2546
2656
|
export declare type SendEvmTransactionCriteria = SendEvmTransactionCriteriaItem[];
|
|
2547
2657
|
|
|
2548
|
-
export declare type SendEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
2658
|
+
export declare type SendEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
2549
2659
|
|
|
2550
2660
|
export declare interface SendEvmTransactionRule {
|
|
2551
2661
|
action: SendEvmTransactionRuleAction;
|
|
@@ -2664,7 +2774,7 @@ export declare const SendSolTransactionRuleOperation: {
|
|
|
2664
2774
|
|
|
2665
2775
|
export declare type SendUserOperationCriteria = SendUserOperationCriteriaItem[];
|
|
2666
2776
|
|
|
2667
|
-
export declare type SendUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
2777
|
+
export declare type SendUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
2668
2778
|
|
|
2669
2779
|
export declare interface SendUserOperationRule {
|
|
2670
2780
|
action: SendUserOperationRuleAction;
|
|
@@ -2707,8 +2817,120 @@ export declare interface SFTPConfig {
|
|
|
2707
2817
|
port?: number;
|
|
2708
2818
|
username: string;
|
|
2709
2819
|
remotePath: string;
|
|
2820
|
+
disableWritingRename?: boolean;
|
|
2821
|
+
}
|
|
2822
|
+
|
|
2823
|
+
export declare type SignEndUserEvmMessageCriteria = EvmMessageCriterion[];
|
|
2824
|
+
|
|
2825
|
+
export declare interface SignEndUserEvmMessageRule {
|
|
2826
|
+
action: SignEndUserEvmMessageRuleAction;
|
|
2827
|
+
operation: SignEndUserEvmMessageRuleOperation;
|
|
2828
|
+
criteria: SignEndUserEvmMessageCriteria;
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
export declare type SignEndUserEvmMessageRuleAction = (typeof SignEndUserEvmMessageRuleAction)[keyof typeof SignEndUserEvmMessageRuleAction];
|
|
2832
|
+
|
|
2833
|
+
export declare const SignEndUserEvmMessageRuleAction: {
|
|
2834
|
+
readonly reject: "reject";
|
|
2835
|
+
readonly accept: "accept";
|
|
2836
|
+
};
|
|
2837
|
+
|
|
2838
|
+
export declare type SignEndUserEvmMessageRuleOperation = (typeof SignEndUserEvmMessageRuleOperation)[keyof typeof SignEndUserEvmMessageRuleOperation];
|
|
2839
|
+
|
|
2840
|
+
export declare const SignEndUserEvmMessageRuleOperation: {
|
|
2841
|
+
readonly signEndUserEvmMessage: "signEndUserEvmMessage";
|
|
2842
|
+
};
|
|
2843
|
+
|
|
2844
|
+
export declare type SignEndUserEvmTransactionCriteria = SignEndUserEvmTransactionCriteriaItem[];
|
|
2845
|
+
|
|
2846
|
+
export declare type SignEndUserEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
2847
|
+
|
|
2848
|
+
export declare interface SignEndUserEvmTransactionRule {
|
|
2849
|
+
action: SignEndUserEvmTransactionRuleAction;
|
|
2850
|
+
operation: SignEndUserEvmTransactionRuleOperation;
|
|
2851
|
+
criteria: SignEndUserEvmTransactionCriteria;
|
|
2852
|
+
}
|
|
2853
|
+
|
|
2854
|
+
export declare type SignEndUserEvmTransactionRuleAction = (typeof SignEndUserEvmTransactionRuleAction)[keyof typeof SignEndUserEvmTransactionRuleAction];
|
|
2855
|
+
|
|
2856
|
+
export declare const SignEndUserEvmTransactionRuleAction: {
|
|
2857
|
+
readonly reject: "reject";
|
|
2858
|
+
readonly accept: "accept";
|
|
2859
|
+
};
|
|
2860
|
+
|
|
2861
|
+
export declare type SignEndUserEvmTransactionRuleOperation = (typeof SignEndUserEvmTransactionRuleOperation)[keyof typeof SignEndUserEvmTransactionRuleOperation];
|
|
2862
|
+
|
|
2863
|
+
export declare const SignEndUserEvmTransactionRuleOperation: {
|
|
2864
|
+
readonly signEndUserEvmTransaction: "signEndUserEvmTransaction";
|
|
2865
|
+
};
|
|
2866
|
+
|
|
2867
|
+
export declare type SignEndUserEvmTypedDataCriteria = SignEndUserEvmTypedDataCriteriaItem[];
|
|
2868
|
+
|
|
2869
|
+
export declare type SignEndUserEvmTypedDataCriteriaItem = SignEvmTypedDataFieldCriterion | SignEvmTypedDataVerifyingContractCriterion;
|
|
2870
|
+
|
|
2871
|
+
export declare interface SignEndUserEvmTypedDataRule {
|
|
2872
|
+
action: SignEndUserEvmTypedDataRuleAction;
|
|
2873
|
+
operation: SignEndUserEvmTypedDataRuleOperation;
|
|
2874
|
+
criteria: SignEndUserEvmTypedDataCriteria;
|
|
2710
2875
|
}
|
|
2711
2876
|
|
|
2877
|
+
export declare type SignEndUserEvmTypedDataRuleAction = (typeof SignEndUserEvmTypedDataRuleAction)[keyof typeof SignEndUserEvmTypedDataRuleAction];
|
|
2878
|
+
|
|
2879
|
+
export declare const SignEndUserEvmTypedDataRuleAction: {
|
|
2880
|
+
readonly reject: "reject";
|
|
2881
|
+
readonly accept: "accept";
|
|
2882
|
+
};
|
|
2883
|
+
|
|
2884
|
+
export declare type SignEndUserEvmTypedDataRuleOperation = (typeof SignEndUserEvmTypedDataRuleOperation)[keyof typeof SignEndUserEvmTypedDataRuleOperation];
|
|
2885
|
+
|
|
2886
|
+
export declare const SignEndUserEvmTypedDataRuleOperation: {
|
|
2887
|
+
readonly signEndUserEvmTypedData: "signEndUserEvmTypedData";
|
|
2888
|
+
};
|
|
2889
|
+
|
|
2890
|
+
export declare type SignEndUserSolMessageCriteria = SolMessageCriterion[];
|
|
2891
|
+
|
|
2892
|
+
export declare interface SignEndUserSolMessageRule {
|
|
2893
|
+
action: SignEndUserSolMessageRuleAction;
|
|
2894
|
+
operation: SignEndUserSolMessageRuleOperation;
|
|
2895
|
+
criteria: SignEndUserSolMessageCriteria;
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
export declare type SignEndUserSolMessageRuleAction = (typeof SignEndUserSolMessageRuleAction)[keyof typeof SignEndUserSolMessageRuleAction];
|
|
2899
|
+
|
|
2900
|
+
export declare const SignEndUserSolMessageRuleAction: {
|
|
2901
|
+
readonly reject: "reject";
|
|
2902
|
+
readonly accept: "accept";
|
|
2903
|
+
};
|
|
2904
|
+
|
|
2905
|
+
export declare type SignEndUserSolMessageRuleOperation = (typeof SignEndUserSolMessageRuleOperation)[keyof typeof SignEndUserSolMessageRuleOperation];
|
|
2906
|
+
|
|
2907
|
+
export declare const SignEndUserSolMessageRuleOperation: {
|
|
2908
|
+
readonly signEndUserSolMessage: "signEndUserSolMessage";
|
|
2909
|
+
};
|
|
2910
|
+
|
|
2911
|
+
export declare type SignEndUserSolTransactionCriteria = SignEndUserSolTransactionCriteriaItem[];
|
|
2912
|
+
|
|
2913
|
+
export declare type SignEndUserSolTransactionCriteriaItem = SolAddressCriterion | SolValueCriterion | SplAddressCriterion | SplValueCriterion | MintAddressCriterion | SolDataCriterion | ProgramIdCriterion | RateLimitingCriterion;
|
|
2914
|
+
|
|
2915
|
+
export declare interface SignEndUserSolTransactionRule {
|
|
2916
|
+
action: SignEndUserSolTransactionRuleAction;
|
|
2917
|
+
operation: SignEndUserSolTransactionRuleOperation;
|
|
2918
|
+
criteria: SignEndUserSolTransactionCriteria;
|
|
2919
|
+
}
|
|
2920
|
+
|
|
2921
|
+
export declare type SignEndUserSolTransactionRuleAction = (typeof SignEndUserSolTransactionRuleAction)[keyof typeof SignEndUserSolTransactionRuleAction];
|
|
2922
|
+
|
|
2923
|
+
export declare const SignEndUserSolTransactionRuleAction: {
|
|
2924
|
+
readonly reject: "reject";
|
|
2925
|
+
readonly accept: "accept";
|
|
2926
|
+
};
|
|
2927
|
+
|
|
2928
|
+
export declare type SignEndUserSolTransactionRuleOperation = (typeof SignEndUserSolTransactionRuleOperation)[keyof typeof SignEndUserSolTransactionRuleOperation];
|
|
2929
|
+
|
|
2930
|
+
export declare const SignEndUserSolTransactionRuleOperation: {
|
|
2931
|
+
readonly signEndUserSolTransaction: "signEndUserSolTransaction";
|
|
2932
|
+
};
|
|
2933
|
+
|
|
2712
2934
|
export declare type SignerAddress = string;
|
|
2713
2935
|
|
|
2714
2936
|
export declare interface SignEvmHashRule {
|
|
@@ -2780,7 +3002,7 @@ export declare type SignEvmMessageWithEndUserAccountResult = NonNullable<Awaited
|
|
|
2780
3002
|
|
|
2781
3003
|
export declare type SignEvmTransactionCriteria = SignEvmTransactionCriteriaItem[];
|
|
2782
3004
|
|
|
2783
|
-
export declare type SignEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
3005
|
+
export declare type SignEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
2784
3006
|
|
|
2785
3007
|
export declare interface SignEvmTransactionRule {
|
|
2786
3008
|
action: SignEvmTransactionRuleAction;
|
|
@@ -3391,7 +3613,6 @@ export declare interface Transfer {
|
|
|
3391
3613
|
executedAt?: string;
|
|
3392
3614
|
createdAt?: string;
|
|
3393
3615
|
updatedAt?: string;
|
|
3394
|
-
validateOnly?: boolean;
|
|
3395
3616
|
metadata?: Metadata;
|
|
3396
3617
|
travelRule?: TravelRule;
|
|
3397
3618
|
details?: TransferDetails;
|
|
@@ -4043,8 +4264,10 @@ export declare const X402SupportedPaymentKindNetwork: {
|
|
|
4043
4264
|
readonly base: "base";
|
|
4044
4265
|
readonly "solana-devnet": "solana-devnet";
|
|
4045
4266
|
readonly solana: "solana";
|
|
4267
|
+
readonly polygon: "polygon";
|
|
4046
4268
|
readonly "eip155:8453": "eip155:8453";
|
|
4047
4269
|
readonly "eip155:84532": "eip155:84532";
|
|
4270
|
+
readonly "eip155:137": "eip155:137";
|
|
4048
4271
|
readonly "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
4049
4272
|
readonly "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
4050
4273
|
};
|
|
@@ -4079,6 +4302,7 @@ export declare const X402V1PaymentPayloadNetwork: {
|
|
|
4079
4302
|
readonly base: "base";
|
|
4080
4303
|
readonly "solana-devnet": "solana-devnet";
|
|
4081
4304
|
readonly solana: "solana";
|
|
4305
|
+
readonly polygon: "polygon";
|
|
4082
4306
|
};
|
|
4083
4307
|
|
|
4084
4308
|
export declare type X402V1PaymentPayloadPayload = X402ExactEvmPayload | X402ExactEvmPermit2Payload | X402ExactSolanaPayload;
|
|
@@ -4114,6 +4338,7 @@ export declare const X402V1PaymentRequirementsNetwork: {
|
|
|
4114
4338
|
readonly base: "base";
|
|
4115
4339
|
readonly "solana-devnet": "solana-devnet";
|
|
4116
4340
|
readonly solana: "solana";
|
|
4341
|
+
readonly polygon: "polygon";
|
|
4117
4342
|
};
|
|
4118
4343
|
|
|
4119
4344
|
export declare type X402V1PaymentRequirementsOutputSchema = {
|