@coinbase/cdp-api-client 0.0.92 → 0.0.94
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 +114 -77
- package/dist/types/index.d.ts +271 -42
- 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,8 +353,12 @@ export declare type CdpOptions = {
|
|
|
320
353
|
debugging?: boolean;
|
|
321
354
|
basePath?: string;
|
|
322
355
|
refreshTokenStorage?: RefreshTokenStorage;
|
|
356
|
+
appAttestation?: AppAttestation;
|
|
357
|
+
platform?: string;
|
|
323
358
|
};
|
|
324
359
|
|
|
360
|
+
export declare type ClientClosedRequestErrorResponse = Error_2;
|
|
361
|
+
|
|
325
362
|
export declare interface CommonSwapResponse {
|
|
326
363
|
blockNumber: string;
|
|
327
364
|
toAmount: string;
|
|
@@ -412,6 +449,7 @@ export declare interface CreateDepositDestinationRequest {
|
|
|
412
449
|
accountId: AccountId;
|
|
413
450
|
type: CreateDepositDestinationRequestType;
|
|
414
451
|
network: Network;
|
|
452
|
+
target?: DepositDestinationTarget;
|
|
415
453
|
metadata?: Metadata;
|
|
416
454
|
}
|
|
417
455
|
|
|
@@ -461,7 +499,7 @@ export declare type CreateEndUserSolanaAccountResult = NonNullable<Awaited<Retur
|
|
|
461
499
|
export declare const createEvmEip7702DelegationWithEndUserAccount: (projectId: string, userId: string, createEvmEip7702DelegationWithEndUserAccountBody: CreateEvmEip7702DelegationWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<CreateEvmEip7702DelegationWithEndUserAccount201>;
|
|
462
500
|
|
|
463
501
|
export declare type CreateEvmEip7702DelegationWithEndUserAccount201 = {
|
|
464
|
-
|
|
502
|
+
delegationOperationId: string;
|
|
465
503
|
};
|
|
466
504
|
|
|
467
505
|
export declare type CreateEvmEip7702DelegationWithEndUserAccountBody = {
|
|
@@ -556,6 +594,7 @@ export declare interface CryptoDepositDestination {
|
|
|
556
594
|
type: CryptoDepositDestinationType;
|
|
557
595
|
address: BlockchainAddress;
|
|
558
596
|
network: Network;
|
|
597
|
+
target?: DepositDestinationTarget;
|
|
559
598
|
metadata?: Metadata;
|
|
560
599
|
createdAt: string;
|
|
561
600
|
updatedAt: string;
|
|
@@ -652,6 +691,13 @@ export declare interface DepositDestinationReference {
|
|
|
652
691
|
id: DepositDestinationId;
|
|
653
692
|
}
|
|
654
693
|
|
|
694
|
+
export declare type DepositDestinationTarget = DepositDestinationTargetAccount;
|
|
695
|
+
|
|
696
|
+
export declare interface DepositDestinationTargetAccount {
|
|
697
|
+
accountId?: AccountId;
|
|
698
|
+
asset: Asset;
|
|
699
|
+
}
|
|
700
|
+
|
|
655
701
|
export declare type DepositDestinationType = (typeof DepositDestinationType)[keyof typeof DepositDestinationType];
|
|
656
702
|
|
|
657
703
|
export declare const DepositDestinationType: {
|
|
@@ -834,6 +880,7 @@ export declare interface Entity {
|
|
|
834
880
|
name: string;
|
|
835
881
|
legalEntityId?: string | null;
|
|
836
882
|
type?: string;
|
|
883
|
+
productionEntityId?: EntityId;
|
|
837
884
|
capabilities: CapabilitiesMap;
|
|
838
885
|
createdAt: string;
|
|
839
886
|
otherInfo?: EntityOtherInfo;
|
|
@@ -858,6 +905,7 @@ export declare type ErrorType = (typeof ErrorType)[keyof typeof ErrorType];
|
|
|
858
905
|
export declare const ErrorType: {
|
|
859
906
|
readonly already_exists: "already_exists";
|
|
860
907
|
readonly bad_gateway: "bad_gateway";
|
|
908
|
+
readonly client_closed_request: "client_closed_request";
|
|
861
909
|
readonly faucet_limit_exceeded: "faucet_limit_exceeded";
|
|
862
910
|
readonly forbidden: "forbidden";
|
|
863
911
|
readonly idempotency_error: "idempotency_error";
|
|
@@ -912,6 +960,7 @@ export declare const ErrorType: {
|
|
|
912
960
|
readonly order_quote_expired: "order_quote_expired";
|
|
913
961
|
readonly order_already_filled: "order_already_filled";
|
|
914
962
|
readonly order_already_canceled: "order_already_canceled";
|
|
963
|
+
readonly account_not_ready: "account_not_ready";
|
|
915
964
|
};
|
|
916
965
|
|
|
917
966
|
export declare interface EthValueCriterion {
|
|
@@ -1032,19 +1081,22 @@ export declare const EvmEip7702DelegationNetwork: {
|
|
|
1032
1081
|
readonly "ethereum-sepolia": "ethereum-sepolia";
|
|
1033
1082
|
};
|
|
1034
1083
|
|
|
1035
|
-
export declare interface
|
|
1036
|
-
|
|
1037
|
-
|
|
1084
|
+
export declare interface EvmEip7702DelegationOperation {
|
|
1085
|
+
delegationOperationId: string;
|
|
1086
|
+
status: EvmEip7702DelegationOperationStatus;
|
|
1087
|
+
transactionHash?: string;
|
|
1038
1088
|
network: EvmEip7702DelegationNetwork;
|
|
1089
|
+
delegateAddress?: string;
|
|
1039
1090
|
}
|
|
1040
1091
|
|
|
1041
|
-
export declare type
|
|
1092
|
+
export declare type EvmEip7702DelegationOperationStatus = (typeof EvmEip7702DelegationOperationStatus)[keyof typeof EvmEip7702DelegationOperationStatus];
|
|
1042
1093
|
|
|
1043
|
-
export declare const
|
|
1044
|
-
readonly
|
|
1045
|
-
readonly
|
|
1046
|
-
readonly
|
|
1047
|
-
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";
|
|
1048
1100
|
};
|
|
1049
1101
|
|
|
1050
1102
|
export declare interface EvmMessageCriterion {
|
|
@@ -1291,14 +1343,9 @@ export declare const getAuthenticatedEndUser: (projectId: string, userId: string
|
|
|
1291
1343
|
|
|
1292
1344
|
export declare type GetAuthenticatedEndUserResult = NonNullable<Awaited<ReturnType<typeof getAuthenticatedEndUser>>>;
|
|
1293
1345
|
|
|
1294
|
-
export declare const
|
|
1295
|
-
|
|
1296
|
-
export declare type GetEvmEip7702DelegationStatusWithEndUserAccountParams = {
|
|
1297
|
-
address: string;
|
|
1298
|
-
network: EvmEip7702DelegationNetwork;
|
|
1299
|
-
};
|
|
1346
|
+
export declare const getEvmEip7702DelegationOperationByIdWithEndUserAccount: (projectId: string, userId: string, delegationOperationId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmEip7702DelegationOperation>;
|
|
1300
1347
|
|
|
1301
|
-
export declare type
|
|
1348
|
+
export declare type GetEvmEip7702DelegationOperationByIdWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof getEvmEip7702DelegationOperationByIdWithEndUserAccount>>>;
|
|
1302
1349
|
|
|
1303
1350
|
export declare const getMfaConfig: (projectId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<MfaConfig>;
|
|
1304
1351
|
|
|
@@ -1548,6 +1595,10 @@ export declare const InvitationStatus: {
|
|
|
1548
1595
|
readonly expired: "expired";
|
|
1549
1596
|
};
|
|
1550
1597
|
|
|
1598
|
+
export declare interface IOSAppAttestationConfig {
|
|
1599
|
+
identifier?: string;
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1551
1602
|
export declare interface IosAttestationChallenge {
|
|
1552
1603
|
challenge: string;
|
|
1553
1604
|
expiresAt: string;
|
|
@@ -1577,6 +1628,12 @@ export declare const IosAttestationRegistrationResponsePlatform: {
|
|
|
1577
1628
|
readonly ios: "ios";
|
|
1578
1629
|
};
|
|
1579
1630
|
|
|
1631
|
+
export declare interface IOSMobileClientItem {
|
|
1632
|
+
id: string;
|
|
1633
|
+
identifier: string;
|
|
1634
|
+
createdAt: string;
|
|
1635
|
+
}
|
|
1636
|
+
|
|
1580
1637
|
export declare function isOpenAPIError(obj: unknown): obj is Error_2;
|
|
1581
1638
|
|
|
1582
1639
|
export declare type KnownAbiType = (typeof KnownAbiType)[keyof typeof KnownAbiType];
|
|
@@ -1737,12 +1794,6 @@ export declare const MintAddressCriterionType: {
|
|
|
1737
1794
|
readonly mintAddress: "mintAddress";
|
|
1738
1795
|
};
|
|
1739
1796
|
|
|
1740
|
-
export declare interface MobileClientItem {
|
|
1741
|
-
id: string;
|
|
1742
|
-
identifier: string;
|
|
1743
|
-
createdAt: string;
|
|
1744
|
-
}
|
|
1745
|
-
|
|
1746
1797
|
export declare interface NetUSDChangeCriterion {
|
|
1747
1798
|
type: NetUSDChangeCriterionType;
|
|
1748
1799
|
changeCents: number;
|
|
@@ -1968,6 +2019,7 @@ export declare type OnrampOrderPaymentMethodTypeId = (typeof OnrampOrderPaymentM
|
|
|
1968
2019
|
|
|
1969
2020
|
export declare const OnrampOrderPaymentMethodTypeId: {
|
|
1970
2021
|
readonly GUEST_CHECKOUT_APPLE_PAY: "GUEST_CHECKOUT_APPLE_PAY";
|
|
2022
|
+
readonly GUEST_CHECKOUT_GOOGLE_PAY: "GUEST_CHECKOUT_GOOGLE_PAY";
|
|
1971
2023
|
};
|
|
1972
2024
|
|
|
1973
2025
|
export declare type OnrampOrderStatus = (typeof OnrampOrderStatus)[keyof typeof OnrampOrderStatus];
|
|
@@ -2031,12 +2083,12 @@ export declare interface OnrampUserLimit {
|
|
|
2031
2083
|
}
|
|
2032
2084
|
|
|
2033
2085
|
export declare interface Order {
|
|
2034
|
-
orderId
|
|
2086
|
+
orderId?: OrderId;
|
|
2035
2087
|
accountId: string;
|
|
2036
2088
|
productId: string;
|
|
2037
2089
|
side: OrderSide;
|
|
2038
2090
|
type: OrderType;
|
|
2039
|
-
status
|
|
2091
|
+
status?: OrderStatus;
|
|
2040
2092
|
baseQuantity?: string;
|
|
2041
2093
|
quoteValue?: string;
|
|
2042
2094
|
limitPrice?: string;
|
|
@@ -2046,14 +2098,17 @@ export declare interface Order {
|
|
|
2046
2098
|
filledValue?: string;
|
|
2047
2099
|
averageFilledPrice?: string;
|
|
2048
2100
|
fees?: OrderFees;
|
|
2049
|
-
|
|
2101
|
+
slippage?: string;
|
|
2102
|
+
bestBid?: string;
|
|
2103
|
+
bestAsk?: string;
|
|
2104
|
+
orderTotal?: string;
|
|
2050
2105
|
executedAt?: string;
|
|
2051
2106
|
completedAt?: string;
|
|
2052
2107
|
canceledAt?: string;
|
|
2053
2108
|
failureCode?: OrderFailureCode;
|
|
2054
2109
|
failureMessage?: string;
|
|
2055
|
-
createdAt
|
|
2056
|
-
updatedAt
|
|
2110
|
+
createdAt?: string;
|
|
2111
|
+
updatedAt?: string;
|
|
2057
2112
|
}
|
|
2058
2113
|
|
|
2059
2114
|
export declare type OrderFailureCode = (typeof OrderFailureCode)[keyof typeof OrderFailureCode];
|
|
@@ -2076,11 +2131,11 @@ export declare type OrderFees = OrderFee[];
|
|
|
2076
2131
|
export declare type OrderFeeType = (typeof OrderFeeType)[keyof typeof OrderFeeType];
|
|
2077
2132
|
|
|
2078
2133
|
export declare const OrderFeeType: {
|
|
2079
|
-
readonly
|
|
2080
|
-
readonly network: "network";
|
|
2081
|
-
readonly other: "other";
|
|
2134
|
+
readonly commission: "commission";
|
|
2082
2135
|
};
|
|
2083
2136
|
|
|
2137
|
+
export declare type OrderId = string;
|
|
2138
|
+
|
|
2084
2139
|
export declare interface OrderRequest {
|
|
2085
2140
|
accountId: string;
|
|
2086
2141
|
productId: string;
|
|
@@ -2091,7 +2146,7 @@ export declare interface OrderRequest {
|
|
|
2091
2146
|
limitPrice?: string;
|
|
2092
2147
|
timeInForce?: TimeInForce;
|
|
2093
2148
|
expiryTime?: string;
|
|
2094
|
-
|
|
2149
|
+
validateOnly?: boolean;
|
|
2095
2150
|
}
|
|
2096
2151
|
|
|
2097
2152
|
export declare type OrderSide = (typeof OrderSide)[keyof typeof OrderSide];
|
|
@@ -2104,7 +2159,6 @@ export declare const OrderSide: {
|
|
|
2104
2159
|
export declare type OrderStatus = (typeof OrderStatus)[keyof typeof OrderStatus];
|
|
2105
2160
|
|
|
2106
2161
|
export declare const OrderStatus: {
|
|
2107
|
-
readonly quoted: "quoted";
|
|
2108
2162
|
readonly pending: "pending";
|
|
2109
2163
|
readonly open: "open";
|
|
2110
2164
|
readonly filled: "filled";
|
|
@@ -2246,7 +2300,7 @@ export declare const PolicyScope: {
|
|
|
2246
2300
|
|
|
2247
2301
|
export declare type PrepareUserOperationCriteria = PrepareUserOperationCriteriaItem[];
|
|
2248
2302
|
|
|
2249
|
-
export declare type PrepareUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
2303
|
+
export declare type PrepareUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
2250
2304
|
|
|
2251
2305
|
export declare interface PrepareUserOperationRule {
|
|
2252
2306
|
action: PrepareUserOperationRuleAction;
|
|
@@ -2301,12 +2355,26 @@ export declare interface ProjectConfig {
|
|
|
2301
2355
|
name?: string;
|
|
2302
2356
|
createdAt: string;
|
|
2303
2357
|
updatedAt: string;
|
|
2358
|
+
appAttestation?: AppAttestationProjectConfig;
|
|
2304
2359
|
}
|
|
2305
2360
|
|
|
2306
2361
|
export declare type ProjectId = string;
|
|
2307
2362
|
|
|
2308
2363
|
export declare type RateLimitExceededResponse = Error_2;
|
|
2309
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
|
+
|
|
2310
2378
|
export declare const recordMfaEnrollmentPrompted: (projectId: string, userId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<RecordMfaEnrollmentPrompted200>;
|
|
2311
2379
|
|
|
2312
2380
|
export declare type RecordMfaEnrollmentPrompted200 = {
|
|
@@ -2474,7 +2542,7 @@ export declare interface Role {
|
|
|
2474
2542
|
|
|
2475
2543
|
export declare type RoleId = "role_entity_admin" | "role_entity_viewer" | string;
|
|
2476
2544
|
|
|
2477
|
-
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;
|
|
2478
2546
|
|
|
2479
2547
|
export declare interface Schedule {
|
|
2480
2548
|
scheduleId: string;
|
|
@@ -2508,6 +2576,52 @@ export declare type SecondFactorProofTokenParameter = string;
|
|
|
2508
2576
|
|
|
2509
2577
|
declare type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
2510
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
|
+
|
|
2511
2625
|
export declare const sendEvmAssetWithEndUserAccount: (projectId: string, userId: string, address: BlockchainAddress, asset: "usdc", sendEvmAssetWithEndUserAccountBody: SendEvmAssetWithEndUserAccountBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<SendEvmAssetWithEndUserAccount200>;
|
|
2512
2626
|
|
|
2513
2627
|
export declare type SendEvmAssetWithEndUserAccount200 = {
|
|
@@ -2541,7 +2655,7 @@ export declare type SendEvmAssetWithEndUserAccountResult = NonNullable<Awaited<R
|
|
|
2541
2655
|
|
|
2542
2656
|
export declare type SendEvmTransactionCriteria = SendEvmTransactionCriteriaItem[];
|
|
2543
2657
|
|
|
2544
|
-
export declare type SendEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
2658
|
+
export declare type SendEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmNetworkCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
2545
2659
|
|
|
2546
2660
|
export declare interface SendEvmTransactionRule {
|
|
2547
2661
|
action: SendEvmTransactionRuleAction;
|
|
@@ -2660,7 +2774,7 @@ export declare const SendSolTransactionRuleOperation: {
|
|
|
2660
2774
|
|
|
2661
2775
|
export declare type SendUserOperationCriteria = SendUserOperationCriteriaItem[];
|
|
2662
2776
|
|
|
2663
|
-
export declare type SendUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
2777
|
+
export declare type SendUserOperationCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
2664
2778
|
|
|
2665
2779
|
export declare interface SendUserOperationRule {
|
|
2666
2780
|
action: SendUserOperationRuleAction;
|
|
@@ -2703,8 +2817,120 @@ export declare interface SFTPConfig {
|
|
|
2703
2817
|
port?: number;
|
|
2704
2818
|
username: string;
|
|
2705
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;
|
|
2875
|
+
}
|
|
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;
|
|
2706
2919
|
}
|
|
2707
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
|
+
|
|
2708
2934
|
export declare type SignerAddress = string;
|
|
2709
2935
|
|
|
2710
2936
|
export declare interface SignEvmHashRule {
|
|
@@ -2776,7 +3002,7 @@ export declare type SignEvmMessageWithEndUserAccountResult = NonNullable<Awaited
|
|
|
2776
3002
|
|
|
2777
3003
|
export declare type SignEvmTransactionCriteria = SignEvmTransactionCriteriaItem[];
|
|
2778
3004
|
|
|
2779
|
-
export declare type SignEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion;
|
|
3005
|
+
export declare type SignEvmTransactionCriteriaItem = EthValueCriterion | EvmAddressCriterion | EvmDataCriterion | NetUSDChangeCriterion | RateLimitingCriterion;
|
|
2780
3006
|
|
|
2781
3007
|
export declare interface SignEvmTransactionRule {
|
|
2782
3008
|
action: SignEvmTransactionRuleAction;
|
|
@@ -3387,7 +3613,6 @@ export declare interface Transfer {
|
|
|
3387
3613
|
executedAt?: string;
|
|
3388
3614
|
createdAt?: string;
|
|
3389
3615
|
updatedAt?: string;
|
|
3390
|
-
validateOnly?: boolean;
|
|
3391
3616
|
metadata?: Metadata;
|
|
3392
3617
|
travelRule?: TravelRule;
|
|
3393
3618
|
details?: TransferDetails;
|
|
@@ -4039,8 +4264,10 @@ export declare const X402SupportedPaymentKindNetwork: {
|
|
|
4039
4264
|
readonly base: "base";
|
|
4040
4265
|
readonly "solana-devnet": "solana-devnet";
|
|
4041
4266
|
readonly solana: "solana";
|
|
4267
|
+
readonly polygon: "polygon";
|
|
4042
4268
|
readonly "eip155:8453": "eip155:8453";
|
|
4043
4269
|
readonly "eip155:84532": "eip155:84532";
|
|
4270
|
+
readonly "eip155:137": "eip155:137";
|
|
4044
4271
|
readonly "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";
|
|
4045
4272
|
readonly "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1": "solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1";
|
|
4046
4273
|
};
|
|
@@ -4075,6 +4302,7 @@ export declare const X402V1PaymentPayloadNetwork: {
|
|
|
4075
4302
|
readonly base: "base";
|
|
4076
4303
|
readonly "solana-devnet": "solana-devnet";
|
|
4077
4304
|
readonly solana: "solana";
|
|
4305
|
+
readonly polygon: "polygon";
|
|
4078
4306
|
};
|
|
4079
4307
|
|
|
4080
4308
|
export declare type X402V1PaymentPayloadPayload = X402ExactEvmPayload | X402ExactEvmPermit2Payload | X402ExactSolanaPayload;
|
|
@@ -4110,6 +4338,7 @@ export declare const X402V1PaymentRequirementsNetwork: {
|
|
|
4110
4338
|
readonly base: "base";
|
|
4111
4339
|
readonly "solana-devnet": "solana-devnet";
|
|
4112
4340
|
readonly solana: "solana";
|
|
4341
|
+
readonly polygon: "polygon";
|
|
4113
4342
|
};
|
|
4114
4343
|
|
|
4115
4344
|
export declare type X402V1PaymentRequirementsOutputSchema = {
|