@coinbase/cdp-api-client 0.0.89 → 0.0.90

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.
@@ -868,6 +868,8 @@ export declare const ErrorType: {
868
868
  readonly malformed_transaction: "malformed_transaction";
869
869
  readonly not_found: "not_found";
870
870
  readonly payment_method_required: "payment_method_required";
871
+ readonly payment_required: "payment_required";
872
+ readonly settlement_failed: "settlement_failed";
871
873
  readonly rate_limit_exceeded: "rate_limit_exceeded";
872
874
  readonly request_canceled: "request_canceled";
873
875
  readonly service_unavailable: "service_unavailable";
@@ -1030,6 +1032,21 @@ export declare const EvmEip7702DelegationNetwork: {
1030
1032
  readonly "ethereum-sepolia": "ethereum-sepolia";
1031
1033
  };
1032
1034
 
1035
+ export declare interface EvmEip7702DelegationStatus {
1036
+ status: EvmEip7702DelegationStatusStatus;
1037
+ delegateAddress?: string;
1038
+ network: EvmEip7702DelegationNetwork;
1039
+ }
1040
+
1041
+ export declare type EvmEip7702DelegationStatusStatus = (typeof EvmEip7702DelegationStatusStatus)[keyof typeof EvmEip7702DelegationStatusStatus];
1042
+
1043
+ export declare const EvmEip7702DelegationStatusStatus: {
1044
+ readonly CURRENT: "CURRENT";
1045
+ readonly NOT_DELEGATED: "NOT_DELEGATED";
1046
+ readonly WRONG_PROXY: "WRONG_PROXY";
1047
+ readonly NOT_INITIALIZED: "NOT_INITIALIZED";
1048
+ };
1049
+
1033
1050
  export declare interface EvmMessageCriterion {
1034
1051
  type: EvmMessageCriterionType;
1035
1052
  match: string;
@@ -1110,6 +1127,7 @@ export declare const EvmSwapsNetwork: {
1110
1127
  readonly ethereum: "ethereum";
1111
1128
  readonly arbitrum: "arbitrum";
1112
1129
  readonly optimism: "optimism";
1130
+ readonly polygon: "polygon";
1113
1131
  };
1114
1132
 
1115
1133
  export declare interface EvmTypedAddressCondition {
@@ -1273,6 +1291,15 @@ export declare const getAuthenticatedEndUser: (projectId: string, userId: string
1273
1291
 
1274
1292
  export declare type GetAuthenticatedEndUserResult = NonNullable<Awaited<ReturnType<typeof getAuthenticatedEndUser>>>;
1275
1293
 
1294
+ export declare const getEvmEip7702DelegationStatusWithEndUserAccount: (projectId: string, userId: string, params: GetEvmEip7702DelegationStatusWithEndUserAccountParams, options?: SecondParameter<typeof cdpApiClient>) => Promise<EvmEip7702DelegationStatus>;
1295
+
1296
+ export declare type GetEvmEip7702DelegationStatusWithEndUserAccountParams = {
1297
+ address: string;
1298
+ network: EvmEip7702DelegationNetwork;
1299
+ };
1300
+
1301
+ export declare type GetEvmEip7702DelegationStatusWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof getEvmEip7702DelegationStatusWithEndUserAccount>>>;
1302
+
1276
1303
  export declare const getMfaConfig: (projectId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<MfaConfig>;
1277
1304
 
1278
1305
  export declare type GetMfaConfigResult = NonNullable<Awaited<ReturnType<typeof getMfaConfig>>>;
@@ -2023,11 +2050,21 @@ export declare interface Order {
2023
2050
  executedAt?: string;
2024
2051
  completedAt?: string;
2025
2052
  canceledAt?: string;
2026
- failureReason?: string;
2053
+ failureCode?: OrderFailureCode;
2054
+ failureMessage?: string;
2027
2055
  createdAt: string;
2028
2056
  updatedAt: string;
2029
2057
  }
2030
2058
 
2059
+ export declare type OrderFailureCode = (typeof OrderFailureCode)[keyof typeof OrderFailureCode];
2060
+
2061
+ export declare const OrderFailureCode: {
2062
+ readonly insufficient_balance: "insufficient_balance";
2063
+ readonly no_liquidity: "no_liquidity";
2064
+ readonly market_unavailable: "market_unavailable";
2065
+ readonly internal_error: "internal_error";
2066
+ };
2067
+
2031
2068
  export declare interface OrderFee {
2032
2069
  type: OrderFeeType;
2033
2070
  amount: string;
@@ -3346,7 +3383,6 @@ export declare interface Transfer {
3346
3383
  fees?: TransferFees;
3347
3384
  completedAt?: string;
3348
3385
  failureReason?: string;
3349
- lastError?: TransferLastError;
3350
3386
  expiresAt?: string;
3351
3387
  executedAt?: string;
3352
3388
  createdAt?: string;
@@ -3446,19 +3482,6 @@ export declare interface TransferFilters {
3446
3482
  destinationAmountMax?: string;
3447
3483
  }
3448
3484
 
3449
- export declare type TransferLastError = {
3450
- code?: string;
3451
- message?: string;
3452
- param?: string;
3453
- details?: TransferLastErrorDetails;
3454
- };
3455
-
3456
- export declare type TransferLastErrorDetails = {
3457
- availableBalance?: string;
3458
- requiredAmount?: string;
3459
- retryAfter?: number;
3460
- };
3461
-
3462
3485
  export declare interface TransferRequest {
3463
3486
  source: CreateTransferSource;
3464
3487
  target: TransferTarget;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cdp-api-client",
3
- "version": "0.0.89",
3
+ "version": "0.0.90",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/**",