@coinbase/cdp-api-client 0.0.71 → 0.0.73

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.
@@ -1,4 +1,4 @@
1
- var r = {};
1
+ var r = { exports: {} };
2
2
  export {
3
- r as __exports
3
+ r as __module
4
4
  };
@@ -1,4 +1,4 @@
1
- var e = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- e as __module
3
+ r as __exports
4
4
  };
@@ -1,4 +1,4 @@
1
- var r = { exports: {} };
1
+ var e = { exports: {} };
2
2
  export {
3
- r as __module
3
+ e as __module
4
4
  };
@@ -1,2 +1,2 @@
1
- import { __require as r } from "./index12.js";
1
+ import { __require as r } from "./index17.js";
2
2
  r();
@@ -1,4 +1,4 @@
1
- const o = "0.0.71";
1
+ const o = "0.0.73";
2
2
  export {
3
3
  o as VERSION
4
4
  };
@@ -15,7 +15,7 @@ const d = (e, t, n) => s(
15
15
  data: t
16
16
  },
17
17
  n
18
- ), c = (e, t, n) => s(
18
+ ), p = (e, t, n) => s(
19
19
  {
20
20
  url: `/v2/embedded-wallet-api/projects/${e}/auth/verify/sms`,
21
21
  method: "POST",
@@ -23,7 +23,7 @@ const d = (e, t, n) => s(
23
23
  data: t
24
24
  },
25
25
  n
26
- ), p = (e, t, n, a) => s(
26
+ ), c = (e, t, n, a) => s(
27
27
  {
28
28
  url: `/v2/embedded-wallet-api/projects/${e}/auth/verify/oauth/${t}`,
29
29
  method: "POST",
@@ -96,7 +96,7 @@ const d = (e, t, n) => s(
96
96
  data: n
97
97
  },
98
98
  a
99
- ), y = (e, t, n, a) => s(
99
+ ), b = (e, t, n, a) => s(
100
100
  {
101
101
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign/message`,
102
102
  method: "POST",
@@ -104,7 +104,7 @@ const d = (e, t, n) => s(
104
104
  data: n
105
105
  },
106
106
  a
107
- ), b = (e, t, n, a) => s(
107
+ ), y = (e, t, n, a) => s(
108
108
  {
109
109
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/sign/typed-data`,
110
110
  method: "POST",
@@ -128,13 +128,13 @@ const d = (e, t, n) => s(
128
128
  data: n
129
129
  },
130
130
  a
131
- ), O = (e, t, n, a, r) => s(
131
+ ), P = (e, t, n, a, r) => s(
132
132
  {
133
133
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/user-operations/${a}`,
134
134
  method: "GET"
135
135
  },
136
136
  r
137
- ), P = (e, t, n, a, r) => s(
137
+ ), O = (e, t, n, a, r) => s(
138
138
  {
139
139
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/evm/smart-accounts/${n}/send`,
140
140
  method: "POST",
@@ -165,7 +165,7 @@ const d = (e, t, n) => s(
165
165
  data: a
166
166
  },
167
167
  r
168
- ), g = (e, t, n, a) => s(
168
+ ), f = (e, t, n, a) => s(
169
169
  {
170
170
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana`,
171
171
  method: "POST",
@@ -173,7 +173,7 @@ const d = (e, t, n) => s(
173
173
  data: n
174
174
  },
175
175
  a
176
- ), f = (e, t, n, a) => s(
176
+ ), g = (e, t, n, a) => s(
177
177
  {
178
178
  url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/solana/export`,
179
179
  method: "POST",
@@ -241,38 +241,45 @@ const d = (e, t, n) => s(
241
241
  data: a
242
242
  },
243
243
  r
244
+ ), q = (e, t, n) => s(
245
+ {
246
+ url: `/v2/embedded-wallet-api/projects/${e}/end-users/${t}/mfa/prompt`,
247
+ method: "PUT"
248
+ },
249
+ n
244
250
  );
245
251
  export {
246
252
  m as authenticateUserWithCustomAuth,
247
253
  T as createEndUserEvmAccount,
248
254
  w as createEndUserEvmSmartAccount,
249
- g as createEndUserSolanaAccount,
255
+ f as createEndUserSolanaAccount,
250
256
  C as createSpendPermissionWithEndUserAccount,
251
257
  E as exportEndUserEvmAccount,
252
- f as exportEndUserSolanaAccount,
258
+ g as exportEndUserSolanaAccount,
253
259
  h as getAuthenticatedEndUser,
254
- O as getUserOperationWithEndUserAccount,
260
+ P as getUserOperationWithEndUserAccount,
255
261
  d as initiateAuthentication,
256
262
  G as initiateMfaEnrollment,
257
263
  V as initiateMfaVerification,
258
264
  A as listSpendPermissionsWithEndUserAccount,
259
265
  u as logOutEndUser,
266
+ q as recordMfaEnrollmentPrompted,
260
267
  l as refreshAccessToken,
261
268
  $ as registerTemporaryWalletSecret,
262
269
  U as revokeSpendPermissionWithEndUserAccount,
263
270
  S as sendEvmTransactionWithEndUserAccount,
264
271
  k as sendSolanaTransactionWithEndUserAccount,
265
- P as sendUserOperationWithEndUserAccount,
272
+ O as sendUserOperationWithEndUserAccount,
266
273
  v as signEvmHashWithEndUserAccount,
267
- y as signEvmMessageWithEndUserAccount,
274
+ b as signEvmMessageWithEndUserAccount,
268
275
  j as signEvmTransactionWithEndUserAccount,
269
- b as signEvmTypedDataWithEndUserAccount,
276
+ y as signEvmTypedDataWithEndUserAccount,
270
277
  W as signSolanaHashWithEndUserAccount,
271
278
  M as signSolanaMessageWithEndUserAccount,
272
279
  x as signSolanaTransactionWithEndUserAccount,
273
280
  H as submitMfaEnrollment,
274
281
  D as submitMfaVerification,
275
282
  i as verifyEmailAuthentication,
276
- p as verifyOAuthCode,
277
- c as verifySmsAuthentication
283
+ c as verifyOAuthCode,
284
+ p as verifySmsAuthentication
278
285
  };
@@ -92,11 +92,10 @@ const e = {
92
92
  expired: "expired",
93
93
  reversed: "reversed"
94
94
  }, m = {
95
- network_fee: "network_fee",
96
- processing_fee: "processing_fee",
97
- wire_fee: "wire_fee",
98
- exchange_fee: "exchange_fee",
99
- spread_fee: "spread_fee"
95
+ bank: "bank",
96
+ conversion: "conversion",
97
+ network: "network",
98
+ other: "other"
100
99
  }, v = {
101
100
  user_requested: "user_requested",
102
101
  compliance_reversal: "compliance_reversal",
@@ -116,11 +115,11 @@ const e = {
116
115
  source: "source"
117
116
  }, T = {
118
117
  email: "email"
119
- }, f = {
118
+ }, h = {
120
119
  sms: "sms"
121
- }, g = {
120
+ }, f = {
122
121
  jwt: "jwt"
123
- }, h = {
122
+ }, g = {
124
123
  google: "google",
125
124
  apple: "apple",
126
125
  x: "x"
@@ -332,12 +331,12 @@ const e = {
332
331
  "==": "=="
333
332
  }, Te = {
334
333
  splAddress: "splAddress"
335
- }, fe = {
334
+ }, he = {
336
335
  in: "in",
337
336
  not_in: "not in"
338
- }, ge = {
337
+ }, fe = {
339
338
  splValue: "splValue"
340
- }, he = {
339
+ }, ge = {
341
340
  ">": ">",
342
341
  ">=": ">=",
343
342
  "<": "<",
@@ -558,7 +557,7 @@ const e = {
558
557
  transferstatus_changed: "transfer.status_changed"
559
558
  }, Ta = {
560
559
  refresh_token: "refresh_token"
561
- }, fa = {
560
+ }, ha = {
562
561
  base: "base",
563
562
  "base-sepolia": "base-sepolia",
564
563
  ethereum: "ethereum",
@@ -567,7 +566,7 @@ const e = {
567
566
  polygon: "polygon",
568
567
  optimism: "optimism",
569
568
  arbitrum: "arbitrum"
570
- }, ga = {
569
+ }, fa = {
571
570
  solana: "solana",
572
571
  "solana-devnet": "solana-devnet"
573
572
  };
@@ -588,7 +587,7 @@ export {
588
587
  d as CryptoDepositDestinationType,
589
588
  i as CustomerType,
590
589
  s as DepositDestinationType,
591
- g as DeveloperJWTAuthenticationType,
590
+ f as DeveloperJWTAuthenticationType,
592
591
  T as EmailAuthenticationType,
593
592
  a as ErrorType,
594
593
  q as EthValueCriterionOperator,
@@ -626,7 +625,7 @@ export {
626
625
  W as NetUSDChangeCriterionOperator,
627
626
  K as NetUSDChangeCriterionType,
628
627
  c as Network,
629
- h as OAuth2ProviderType,
628
+ g as OAuth2ProviderType,
630
629
  Ge as OnchainDataResultSchemaColumnsItemType,
631
630
  oa as OnrampOrderFeeType,
632
631
  ia as OnrampOrderPaymentMethodTypeId,
@@ -646,10 +645,10 @@ export {
646
645
  _ as RequirementField,
647
646
  ae as SendEvmTransactionRuleAction,
648
647
  te as SendEvmTransactionRuleOperation,
649
- fa as SendEvmTransactionWithEndUserAccountBodyNetwork,
648
+ ha as SendEvmTransactionWithEndUserAccountBodyNetwork,
650
649
  Ie as SendSolTransactionRuleAction,
651
650
  Ue as SendSolTransactionRuleOperation,
652
- ga as SendSolanaTransactionWithEndUserAccountBodyNetwork,
651
+ fa as SendSolanaTransactionWithEndUserAccountBodyNetwork,
653
652
  Ve as SendUserOperationRuleAction,
654
653
  Be as SendUserOperationRuleOperation,
655
654
  ze as SignEvmHashRuleAction,
@@ -667,7 +666,7 @@ export {
667
666
  qe as SignSolMessageRuleOperation,
668
667
  Re as SignSolTransactionRuleAction,
669
668
  Ce as SignSolTransactionRuleOperation,
670
- f as SmsAuthenticationType,
669
+ h as SmsAuthenticationType,
671
670
  ve as SolAddressCriterionOperator,
672
671
  me as SolAddressCriterionType,
673
672
  ke as SolDataCriterionType,
@@ -680,12 +679,12 @@ export {
680
679
  ye as SolValueCriterionOperator,
681
680
  ue as SolValueCriterionType,
682
681
  w as SpendPermissionNetwork,
683
- fe as SplAddressCriterionOperator,
682
+ he as SplAddressCriterionOperator,
684
683
  Te as SplAddressCriterionType,
685
- he as SplValueCriterionOperator,
686
- ge as SplValueCriterionType,
684
+ ge as SplValueCriterionOperator,
685
+ fe as SplValueCriterionType,
687
686
  u as TransferCancellationReason,
688
- m as TransferFeeName,
687
+ m as TransferFeeType,
689
688
  y as TransferRequestAmountType,
690
689
  v as TransferReversalReason,
691
690
  p as TransferStatus,
@@ -1314,6 +1314,14 @@ export declare interface Metadata {
1314
1314
 
1315
1315
  export declare type MfaAlreadyEnrolledErrorResponse = Error_2;
1316
1316
 
1317
+ export declare interface MfaConfig {
1318
+ projectId: string;
1319
+ enabled: boolean;
1320
+ totpConfig: TotpConfig;
1321
+ createdAt: string;
1322
+ updatedAt: string;
1323
+ }
1324
+
1317
1325
  export declare type MfaFlowExpiredErrorResponse = Error_2;
1318
1326
 
1319
1327
  export declare type MfaInvalidCodeErrorResponse = Error_2;
@@ -1325,6 +1333,7 @@ export declare const MfaMethod: {
1325
1333
  };
1326
1334
 
1327
1335
  export declare interface MFAMethods {
1336
+ enrollmentPromptedAt?: string;
1328
1337
  totp?: MFAMethodsTotp;
1329
1338
  }
1330
1339
 
@@ -1744,6 +1753,14 @@ export declare type ProjectId = string;
1744
1753
 
1745
1754
  export declare type RateLimitExceededResponse = Error_2;
1746
1755
 
1756
+ export declare const recordMfaEnrollmentPrompted: (projectId: string, userId: string, options?: SecondParameter<typeof cdpApiClient>) => Promise<RecordMfaEnrollmentPrompted200>;
1757
+
1758
+ export declare type RecordMfaEnrollmentPrompted200 = {
1759
+ enrollmentPromptedAt: string;
1760
+ };
1761
+
1762
+ export declare type RecordMfaEnrollmentPromptedResult = NonNullable<Awaited<ReturnType<typeof recordMfaEnrollmentPrompted>>>;
1763
+
1747
1764
  export declare const refreshAccessToken: (projectId: string, refreshAccessTokenBody: RefreshAccessTokenBody, options?: SecondParameter<typeof cdpApiClient>) => Promise<RefreshAccessToken200>;
1748
1765
 
1749
1766
  export declare type RefreshAccessToken200 = {
@@ -1981,6 +1998,7 @@ export declare type SendUserOperationWithEndUserAccountBody = {
1981
1998
  useCdpPaymaster: boolean;
1982
1999
  paymasterUrl?: Url;
1983
2000
  walletSecretId: string;
2001
+ dataSuffix?: string;
1984
2002
  };
1985
2003
 
1986
2004
  export declare type SendUserOperationWithEndUserAccountResult = NonNullable<Awaited<ReturnType<typeof sendUserOperationWithEndUserAccount>>>;
@@ -2569,6 +2587,10 @@ export declare interface TokenFee {
2569
2587
 
2570
2588
  export declare type ToToken = string;
2571
2589
 
2590
+ export declare interface TotpConfig {
2591
+ enabled?: boolean;
2592
+ }
2593
+
2572
2594
  export declare interface Transfer {
2573
2595
  transferId: string;
2574
2596
  status: TransferStatus;
@@ -2613,22 +2635,21 @@ export declare type TransferExchangeRate = {
2613
2635
  };
2614
2636
 
2615
2637
  export declare interface TransferFee {
2616
- name: TransferFeeName;
2638
+ type: TransferFeeType;
2617
2639
  amount: string;
2618
2640
  asset: string;
2619
2641
  }
2620
2642
 
2621
- export declare type TransferFeeName = (typeof TransferFeeName)[keyof typeof TransferFeeName];
2643
+ export declare type TransferFees = TransferFee[];
2622
2644
 
2623
- export declare const TransferFeeName: {
2624
- readonly network_fee: "network_fee";
2625
- readonly processing_fee: "processing_fee";
2626
- readonly wire_fee: "wire_fee";
2627
- readonly exchange_fee: "exchange_fee";
2628
- readonly spread_fee: "spread_fee";
2629
- };
2645
+ export declare type TransferFeeType = (typeof TransferFeeType)[keyof typeof TransferFeeType];
2630
2646
 
2631
- export declare type TransferFees = TransferFee[];
2647
+ export declare const TransferFeeType: {
2648
+ readonly bank: "bank";
2649
+ readonly conversion: "conversion";
2650
+ readonly network: "network";
2651
+ readonly other: "other";
2652
+ };
2632
2653
 
2633
2654
  export declare type TransferLastError = {
2634
2655
  code?: string;
@@ -2747,6 +2768,11 @@ export declare interface UpdateCustomAuthConfigRequest {
2747
2768
  audience?: string;
2748
2769
  }
2749
2770
 
2771
+ export declare interface UpdateMfaConfigRequest {
2772
+ enabled?: boolean;
2773
+ totpConfig?: TotpConfig;
2774
+ }
2775
+
2750
2776
  export declare type Uri = string;
2751
2777
 
2752
2778
  export declare type Url = string;
@@ -2862,6 +2888,7 @@ export declare interface WebhookSubscriptionResponse {
2862
2888
  eventTypes: string[];
2863
2889
  isEnabled: boolean;
2864
2890
  metadata?: WebhookSubscriptionResponseMetadata;
2891
+ secret: string;
2865
2892
  subscriptionId: string;
2866
2893
  target: WebhookTarget;
2867
2894
  labelKey?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase/cdp-api-client",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/**",