@dynamic-labs/sdk-api-core 0.0.674 → 0.0.676

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api-core",
3
- "version": "0.0.674",
3
+ "version": "0.0.676",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -34,6 +34,7 @@ var ConnectRequest = require('../models/ConnectRequest.cjs');
34
34
  require('../models/EmbeddedWalletChainEnum.cjs');
35
35
  require('../models/EmbeddedWalletProviderEnum.cjs');
36
36
  var CreateEmbeddedWalletsRequest = require('../models/CreateEmbeddedWalletsRequest.cjs');
37
+ var CreateExchangeTransferRequest = require('../models/CreateExchangeTransferRequest.cjs');
37
38
  require('../models/UserIdentifierTypeEnum.cjs');
38
39
  var CreateWaasAccountRequest = require('../models/CreateWaasAccountRequest.cjs');
39
40
  var CreateWalletAccountRequest = require('../models/CreateWalletAccountRequest.cjs');
@@ -54,6 +55,7 @@ var SdkUser = require('../models/SdkUser.cjs');
54
55
  require('../models/EmbeddedWalletSecurityMethod.cjs');
55
56
  require('../models/EnvironmentEnum.cjs');
56
57
  require('../models/ExchangeKeyEnum.cjs');
58
+ var ExchangeTransferResponse = require('../models/ExchangeTransferResponse.cjs');
57
59
  var ExportEmbeddedWalletResponse = require('../models/ExportEmbeddedWalletResponse.cjs');
58
60
  var ExportWaasWalletPrivateKeyRequest = require('../models/ExportWaasWalletPrivateKeyRequest.cjs');
59
61
  var ExternalAuthSigninRequest = require('../models/ExternalAuthSigninRequest.cjs');
@@ -1929,74 +1931,6 @@ class SDKApi extends runtime.BaseAPI {
1929
1931
  return yield response.value();
1930
1932
  });
1931
1933
  }
1932
- /**
1933
- * Get the coinbase accounts for a given dynamic user
1934
- */
1935
- getCoinbaseUserAccountsRaw(requestParameters, initOverrides) {
1936
- return _tslib.__awaiter(this, void 0, void 0, function* () {
1937
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1938
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCoinbaseUserAccounts.');
1939
- }
1940
- if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
1941
- throw new runtime.RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getCoinbaseUserAccounts.');
1942
- }
1943
- const queryParameters = {};
1944
- const headerParameters = {};
1945
- if (this.configuration && this.configuration.accessToken) {
1946
- const token = this.configuration.accessToken;
1947
- const tokenString = yield token("bearerAuth", []);
1948
- if (tokenString) {
1949
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1950
- }
1951
- }
1952
- const response = yield this.request({
1953
- path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
1954
- method: 'GET',
1955
- headers: headerParameters,
1956
- query: queryParameters,
1957
- }, initOverrides);
1958
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(Account.AccountFromJSON));
1959
- });
1960
- }
1961
- /**
1962
- * Get the coinbase accounts for a given dynamic user
1963
- */
1964
- getCoinbaseUserAccounts(requestParameters, initOverrides) {
1965
- return _tslib.__awaiter(this, void 0, void 0, function* () {
1966
- const response = yield this.getCoinbaseUserAccountsRaw(requestParameters, initOverrides);
1967
- return yield response.value();
1968
- });
1969
- }
1970
- /**
1971
- * Options call for this endpoint
1972
- */
1973
- getCoinbaseUserAccountsOptionsRaw(requestParameters, initOverrides) {
1974
- return _tslib.__awaiter(this, void 0, void 0, function* () {
1975
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1976
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCoinbaseUserAccountsOptions.');
1977
- }
1978
- if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
1979
- throw new runtime.RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getCoinbaseUserAccountsOptions.');
1980
- }
1981
- const queryParameters = {};
1982
- const headerParameters = {};
1983
- const response = yield this.request({
1984
- path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
1985
- method: 'OPTIONS',
1986
- headers: headerParameters,
1987
- query: queryParameters,
1988
- }, initOverrides);
1989
- return new runtime.VoidApiResponse(response);
1990
- });
1991
- }
1992
- /**
1993
- * Options call for this endpoint
1994
- */
1995
- getCoinbaseUserAccountsOptions(requestParameters, initOverrides) {
1996
- return _tslib.__awaiter(this, void 0, void 0, function* () {
1997
- yield this.getCoinbaseUserAccountsOptionsRaw(requestParameters, initOverrides);
1998
- });
1999
- }
2000
1934
  /**
2001
1935
  * Generates the turnkey request body for a user\'s create wallet account request
2002
1936
  * Generates the turnkey request body for a user\'s create wallet account request
@@ -2815,6 +2749,74 @@ class SDKApi extends runtime.BaseAPI {
2815
2749
  return yield response.value();
2816
2750
  });
2817
2751
  }
2752
+ /**
2753
+ * Get the exchange accounts for a given dynamic user
2754
+ */
2755
+ getUserAccountsRaw(requestParameters, initOverrides) {
2756
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2757
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2758
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserAccounts.');
2759
+ }
2760
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
2761
+ throw new runtime.RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getUserAccounts.');
2762
+ }
2763
+ const queryParameters = {};
2764
+ const headerParameters = {};
2765
+ if (this.configuration && this.configuration.accessToken) {
2766
+ const token = this.configuration.accessToken;
2767
+ const tokenString = yield token("bearerAuth", []);
2768
+ if (tokenString) {
2769
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2770
+ }
2771
+ }
2772
+ const response = yield this.request({
2773
+ path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
2774
+ method: 'GET',
2775
+ headers: headerParameters,
2776
+ query: queryParameters,
2777
+ }, initOverrides);
2778
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(Account.AccountFromJSON));
2779
+ });
2780
+ }
2781
+ /**
2782
+ * Get the exchange accounts for a given dynamic user
2783
+ */
2784
+ getUserAccounts(requestParameters, initOverrides) {
2785
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2786
+ const response = yield this.getUserAccountsRaw(requestParameters, initOverrides);
2787
+ return yield response.value();
2788
+ });
2789
+ }
2790
+ /**
2791
+ * Options call for this endpoint
2792
+ */
2793
+ getUserAccountsOptionsRaw(requestParameters, initOverrides) {
2794
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2795
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2796
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserAccountsOptions.');
2797
+ }
2798
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
2799
+ throw new runtime.RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getUserAccountsOptions.');
2800
+ }
2801
+ const queryParameters = {};
2802
+ const headerParameters = {};
2803
+ const response = yield this.request({
2804
+ path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
2805
+ method: 'OPTIONS',
2806
+ headers: headerParameters,
2807
+ query: queryParameters,
2808
+ }, initOverrides);
2809
+ return new runtime.VoidApiResponse(response);
2810
+ });
2811
+ }
2812
+ /**
2813
+ * Options call for this endpoint
2814
+ */
2815
+ getUserAccountsOptions(requestParameters, initOverrides) {
2816
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2817
+ yield this.getUserAccountsOptionsRaw(requestParameters, initOverrides);
2818
+ });
2819
+ }
2818
2820
  /**
2819
2821
  * Check if the unique field value is already taken. For example, an enabled unique username or unique email. This also works with enabled unique custom fields.
2820
2822
  * Check user field uniqueness
@@ -4226,6 +4228,85 @@ class SDKApi extends runtime.BaseAPI {
4226
4228
  yield this.passkeyRecoveryOptionsRaw(requestParameters, initOverrides);
4227
4229
  });
4228
4230
  }
4231
+ /**
4232
+ * Transfer funds from an exchange account to an external address or another Coinbase account
4233
+ */
4234
+ postExchangeAccountTransferRaw(requestParameters, initOverrides) {
4235
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
4236
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4237
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling postExchangeAccountTransfer.');
4238
+ }
4239
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
4240
+ throw new runtime.RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling postExchangeAccountTransfer.');
4241
+ }
4242
+ if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
4243
+ throw new runtime.RequiredError('accountId', 'Required parameter requestParameters.accountId was null or undefined when calling postExchangeAccountTransfer.');
4244
+ }
4245
+ if (requestParameters.createExchangeTransferRequest === null || requestParameters.createExchangeTransferRequest === undefined) {
4246
+ throw new runtime.RequiredError('createExchangeTransferRequest', 'Required parameter requestParameters.createExchangeTransferRequest was null or undefined when calling postExchangeAccountTransfer.');
4247
+ }
4248
+ const queryParameters = {};
4249
+ const headerParameters = {};
4250
+ headerParameters['Content-Type'] = 'application/json';
4251
+ if (this.configuration && this.configuration.accessToken) {
4252
+ const token = this.configuration.accessToken;
4253
+ const tokenString = yield token("bearerAuth", []);
4254
+ if (tokenString) {
4255
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4256
+ }
4257
+ }
4258
+ const response = yield this.request({
4259
+ path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts/{accountId}/transfer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))).replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters.accountId))),
4260
+ method: 'POST',
4261
+ headers: headerParameters,
4262
+ query: queryParameters,
4263
+ body: CreateExchangeTransferRequest.CreateExchangeTransferRequestToJSON(requestParameters.createExchangeTransferRequest),
4264
+ }, initOverrides);
4265
+ return new runtime.JSONApiResponse(response, (jsonValue) => ExchangeTransferResponse.ExchangeTransferResponseFromJSON(jsonValue));
4266
+ });
4267
+ }
4268
+ /**
4269
+ * Transfer funds from an exchange account to an external address or another Coinbase account
4270
+ */
4271
+ postExchangeAccountTransfer(requestParameters, initOverrides) {
4272
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
4273
+ const response = yield this.postExchangeAccountTransferRaw(requestParameters, initOverrides);
4274
+ return yield response.value();
4275
+ });
4276
+ }
4277
+ /**
4278
+ * Options call for this endpoint
4279
+ */
4280
+ postExchangeAccountTransferOptionsRaw(requestParameters, initOverrides) {
4281
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
4282
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4283
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling postExchangeAccountTransferOptions.');
4284
+ }
4285
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
4286
+ throw new runtime.RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling postExchangeAccountTransferOptions.');
4287
+ }
4288
+ if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
4289
+ throw new runtime.RequiredError('accountId', 'Required parameter requestParameters.accountId was null or undefined when calling postExchangeAccountTransferOptions.');
4290
+ }
4291
+ const queryParameters = {};
4292
+ const headerParameters = {};
4293
+ const response = yield this.request({
4294
+ path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts/{accountId}/transfer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))).replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters.accountId))),
4295
+ method: 'OPTIONS',
4296
+ headers: headerParameters,
4297
+ query: queryParameters,
4298
+ }, initOverrides);
4299
+ return new runtime.VoidApiResponse(response);
4300
+ });
4301
+ }
4302
+ /**
4303
+ * Options call for this endpoint
4304
+ */
4305
+ postExchangeAccountTransferOptions(requestParameters, initOverrides) {
4306
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
4307
+ yield this.postExchangeAccountTransferOptionsRaw(requestParameters, initOverrides);
4308
+ });
4309
+ }
4229
4310
  /**
4230
4311
  * Handle Telegram authentication
4231
4312
  */
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { Account, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateWaasAccountRequest, CreateWalletAccountRequest, Currency, DeleteEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GetUserPasskeysResponse, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthPasskeyDeviceGetResponse, MFAAuthPasskeyDevicePostRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
13
+ import { Account, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateWaasAccountRequest, CreateWalletAccountRequest, Currency, DeleteEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GetUserPasskeysResponse, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthPasskeyDeviceGetResponse, MFAAuthPasskeyDevicePostRequest, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverMultipleClientKeySharesRequest, RecoverMultipleClientKeySharesResponse, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SupportedOfframpsResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
14
14
  export interface AuthMfaPasskeyDeviceRequest {
15
15
  environmentId: string;
16
16
  mFAAuthPasskeyDevicePostRequest: MFAAuthPasskeyDevicePostRequest;
@@ -213,14 +213,6 @@ export interface GetAuthenticatedUserRequest {
213
213
  export interface GetCoinbaseSupportedNetworksRequest {
214
214
  environmentId: string;
215
215
  }
216
- export interface GetCoinbaseUserAccountsRequest {
217
- environmentId: string;
218
- exchangeKey: ExchangeKeyEnum;
219
- }
220
- export interface GetCoinbaseUserAccountsOptionsRequest {
221
- environmentId: string;
222
- exchangeKey: ExchangeKeyEnum;
223
- }
224
216
  export interface GetCreateWalletAccountRequestRequest {
225
217
  environmentId: string;
226
218
  chain: EmbeddedWalletChainEnum;
@@ -313,6 +305,14 @@ export interface GetTelegramAuthRequest {
313
305
  environmentId: string;
314
306
  state: string;
315
307
  }
308
+ export interface GetUserAccountsRequest {
309
+ environmentId: string;
310
+ exchangeKey: ExchangeKeyEnum;
311
+ }
312
+ export interface GetUserAccountsOptionsRequest {
313
+ environmentId: string;
314
+ exchangeKey: ExchangeKeyEnum;
315
+ }
316
316
  export interface GetUserFieldsCheckRequest {
317
317
  environmentId: string;
318
318
  filter?: UserFieldsCheckParams;
@@ -481,6 +481,17 @@ export interface OptionsConnectRequest {
481
481
  export interface PasskeyRecoveryOptionsRequest {
482
482
  environmentId: string;
483
483
  }
484
+ export interface PostExchangeAccountTransferRequest {
485
+ environmentId: string;
486
+ exchangeKey: ExchangeKeyEnum;
487
+ accountId: string;
488
+ createExchangeTransferRequest: CreateExchangeTransferRequest;
489
+ }
490
+ export interface PostExchangeAccountTransferOptionsRequest {
491
+ environmentId: string;
492
+ exchangeKey: ExchangeKeyEnum;
493
+ accountId: string;
494
+ }
484
495
  export interface PostTelegramAuthRequest {
485
496
  environmentId: string;
486
497
  telegramPostRequest: TelegramPostRequest;
@@ -1200,22 +1211,6 @@ export declare class SDKApi extends runtime.BaseAPI {
1200
1211
  * Get Coinbase supported networks
1201
1212
  */
1202
1213
  getCoinbaseSupportedNetworks(requestParameters: GetCoinbaseSupportedNetworksRequest, initOverrides?: RequestInit): Promise<Array<string>>;
1203
- /**
1204
- * Get the coinbase accounts for a given dynamic user
1205
- */
1206
- getCoinbaseUserAccountsRaw(requestParameters: GetCoinbaseUserAccountsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<Account>>>;
1207
- /**
1208
- * Get the coinbase accounts for a given dynamic user
1209
- */
1210
- getCoinbaseUserAccounts(requestParameters: GetCoinbaseUserAccountsRequest, initOverrides?: RequestInit): Promise<Array<Account>>;
1211
- /**
1212
- * Options call for this endpoint
1213
- */
1214
- getCoinbaseUserAccountsOptionsRaw(requestParameters: GetCoinbaseUserAccountsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1215
- /**
1216
- * Options call for this endpoint
1217
- */
1218
- getCoinbaseUserAccountsOptions(requestParameters: GetCoinbaseUserAccountsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1219
1214
  /**
1220
1215
  * Generates the turnkey request body for a user\'s create wallet account request
1221
1216
  * Generates the turnkey request body for a user\'s create wallet account request
@@ -1426,6 +1421,22 @@ export declare class SDKApi extends runtime.BaseAPI {
1426
1421
  * Get HTML with rendered Telegram login widget
1427
1422
  */
1428
1423
  getTelegramAuth(requestParameters: GetTelegramAuthRequest, initOverrides?: RequestInit): Promise<string>;
1424
+ /**
1425
+ * Get the exchange accounts for a given dynamic user
1426
+ */
1427
+ getUserAccountsRaw(requestParameters: GetUserAccountsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<Account>>>;
1428
+ /**
1429
+ * Get the exchange accounts for a given dynamic user
1430
+ */
1431
+ getUserAccounts(requestParameters: GetUserAccountsRequest, initOverrides?: RequestInit): Promise<Array<Account>>;
1432
+ /**
1433
+ * Options call for this endpoint
1434
+ */
1435
+ getUserAccountsOptionsRaw(requestParameters: GetUserAccountsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1436
+ /**
1437
+ * Options call for this endpoint
1438
+ */
1439
+ getUserAccountsOptions(requestParameters: GetUserAccountsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1429
1440
  /**
1430
1441
  * Check if the unique field value is already taken. For example, an enabled unique username or unique email. This also works with enabled unique custom fields.
1431
1442
  * Check user field uniqueness
@@ -1796,6 +1807,22 @@ export declare class SDKApi extends runtime.BaseAPI {
1796
1807
  * Options call for this endpoint
1797
1808
  */
1798
1809
  passkeyRecoveryOptions(requestParameters: PasskeyRecoveryOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1810
+ /**
1811
+ * Transfer funds from an exchange account to an external address or another Coinbase account
1812
+ */
1813
+ postExchangeAccountTransferRaw(requestParameters: PostExchangeAccountTransferRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ExchangeTransferResponse>>;
1814
+ /**
1815
+ * Transfer funds from an exchange account to an external address or another Coinbase account
1816
+ */
1817
+ postExchangeAccountTransfer(requestParameters: PostExchangeAccountTransferRequest, initOverrides?: RequestInit): Promise<ExchangeTransferResponse>;
1818
+ /**
1819
+ * Options call for this endpoint
1820
+ */
1821
+ postExchangeAccountTransferOptionsRaw(requestParameters: PostExchangeAccountTransferOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1822
+ /**
1823
+ * Options call for this endpoint
1824
+ */
1825
+ postExchangeAccountTransferOptions(requestParameters: PostExchangeAccountTransferOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1799
1826
  /**
1800
1827
  * Handle Telegram authentication
1801
1828
  */
@@ -30,6 +30,7 @@ import { ConnectRequestToJSON } from '../models/ConnectRequest.js';
30
30
  import '../models/EmbeddedWalletChainEnum.js';
31
31
  import '../models/EmbeddedWalletProviderEnum.js';
32
32
  import { CreateEmbeddedWalletsRequestToJSON } from '../models/CreateEmbeddedWalletsRequest.js';
33
+ import { CreateExchangeTransferRequestToJSON } from '../models/CreateExchangeTransferRequest.js';
33
34
  import '../models/UserIdentifierTypeEnum.js';
34
35
  import { CreateWaasAccountRequestToJSON } from '../models/CreateWaasAccountRequest.js';
35
36
  import { CreateWalletAccountRequestToJSON } from '../models/CreateWalletAccountRequest.js';
@@ -50,6 +51,7 @@ import { SdkUserFromJSON } from '../models/SdkUser.js';
50
51
  import '../models/EmbeddedWalletSecurityMethod.js';
51
52
  import '../models/EnvironmentEnum.js';
52
53
  import '../models/ExchangeKeyEnum.js';
54
+ import { ExchangeTransferResponseFromJSON } from '../models/ExchangeTransferResponse.js';
53
55
  import { ExportEmbeddedWalletResponseFromJSON } from '../models/ExportEmbeddedWalletResponse.js';
54
56
  import { ExportWaasWalletPrivateKeyRequestToJSON } from '../models/ExportWaasWalletPrivateKeyRequest.js';
55
57
  import { ExternalAuthSigninRequestToJSON } from '../models/ExternalAuthSigninRequest.js';
@@ -1925,74 +1927,6 @@ class SDKApi extends BaseAPI {
1925
1927
  return yield response.value();
1926
1928
  });
1927
1929
  }
1928
- /**
1929
- * Get the coinbase accounts for a given dynamic user
1930
- */
1931
- getCoinbaseUserAccountsRaw(requestParameters, initOverrides) {
1932
- return __awaiter(this, void 0, void 0, function* () {
1933
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1934
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCoinbaseUserAccounts.');
1935
- }
1936
- if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
1937
- throw new RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getCoinbaseUserAccounts.');
1938
- }
1939
- const queryParameters = {};
1940
- const headerParameters = {};
1941
- if (this.configuration && this.configuration.accessToken) {
1942
- const token = this.configuration.accessToken;
1943
- const tokenString = yield token("bearerAuth", []);
1944
- if (tokenString) {
1945
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1946
- }
1947
- }
1948
- const response = yield this.request({
1949
- path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
1950
- method: 'GET',
1951
- headers: headerParameters,
1952
- query: queryParameters,
1953
- }, initOverrides);
1954
- return new JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountFromJSON));
1955
- });
1956
- }
1957
- /**
1958
- * Get the coinbase accounts for a given dynamic user
1959
- */
1960
- getCoinbaseUserAccounts(requestParameters, initOverrides) {
1961
- return __awaiter(this, void 0, void 0, function* () {
1962
- const response = yield this.getCoinbaseUserAccountsRaw(requestParameters, initOverrides);
1963
- return yield response.value();
1964
- });
1965
- }
1966
- /**
1967
- * Options call for this endpoint
1968
- */
1969
- getCoinbaseUserAccountsOptionsRaw(requestParameters, initOverrides) {
1970
- return __awaiter(this, void 0, void 0, function* () {
1971
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1972
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCoinbaseUserAccountsOptions.');
1973
- }
1974
- if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
1975
- throw new RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getCoinbaseUserAccountsOptions.');
1976
- }
1977
- const queryParameters = {};
1978
- const headerParameters = {};
1979
- const response = yield this.request({
1980
- path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
1981
- method: 'OPTIONS',
1982
- headers: headerParameters,
1983
- query: queryParameters,
1984
- }, initOverrides);
1985
- return new VoidApiResponse(response);
1986
- });
1987
- }
1988
- /**
1989
- * Options call for this endpoint
1990
- */
1991
- getCoinbaseUserAccountsOptions(requestParameters, initOverrides) {
1992
- return __awaiter(this, void 0, void 0, function* () {
1993
- yield this.getCoinbaseUserAccountsOptionsRaw(requestParameters, initOverrides);
1994
- });
1995
- }
1996
1930
  /**
1997
1931
  * Generates the turnkey request body for a user\'s create wallet account request
1998
1932
  * Generates the turnkey request body for a user\'s create wallet account request
@@ -2811,6 +2745,74 @@ class SDKApi extends BaseAPI {
2811
2745
  return yield response.value();
2812
2746
  });
2813
2747
  }
2748
+ /**
2749
+ * Get the exchange accounts for a given dynamic user
2750
+ */
2751
+ getUserAccountsRaw(requestParameters, initOverrides) {
2752
+ return __awaiter(this, void 0, void 0, function* () {
2753
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2754
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserAccounts.');
2755
+ }
2756
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
2757
+ throw new RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getUserAccounts.');
2758
+ }
2759
+ const queryParameters = {};
2760
+ const headerParameters = {};
2761
+ if (this.configuration && this.configuration.accessToken) {
2762
+ const token = this.configuration.accessToken;
2763
+ const tokenString = yield token("bearerAuth", []);
2764
+ if (tokenString) {
2765
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2766
+ }
2767
+ }
2768
+ const response = yield this.request({
2769
+ path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
2770
+ method: 'GET',
2771
+ headers: headerParameters,
2772
+ query: queryParameters,
2773
+ }, initOverrides);
2774
+ return new JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountFromJSON));
2775
+ });
2776
+ }
2777
+ /**
2778
+ * Get the exchange accounts for a given dynamic user
2779
+ */
2780
+ getUserAccounts(requestParameters, initOverrides) {
2781
+ return __awaiter(this, void 0, void 0, function* () {
2782
+ const response = yield this.getUserAccountsRaw(requestParameters, initOverrides);
2783
+ return yield response.value();
2784
+ });
2785
+ }
2786
+ /**
2787
+ * Options call for this endpoint
2788
+ */
2789
+ getUserAccountsOptionsRaw(requestParameters, initOverrides) {
2790
+ return __awaiter(this, void 0, void 0, function* () {
2791
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2792
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserAccountsOptions.');
2793
+ }
2794
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
2795
+ throw new RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getUserAccountsOptions.');
2796
+ }
2797
+ const queryParameters = {};
2798
+ const headerParameters = {};
2799
+ const response = yield this.request({
2800
+ path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
2801
+ method: 'OPTIONS',
2802
+ headers: headerParameters,
2803
+ query: queryParameters,
2804
+ }, initOverrides);
2805
+ return new VoidApiResponse(response);
2806
+ });
2807
+ }
2808
+ /**
2809
+ * Options call for this endpoint
2810
+ */
2811
+ getUserAccountsOptions(requestParameters, initOverrides) {
2812
+ return __awaiter(this, void 0, void 0, function* () {
2813
+ yield this.getUserAccountsOptionsRaw(requestParameters, initOverrides);
2814
+ });
2815
+ }
2814
2816
  /**
2815
2817
  * Check if the unique field value is already taken. For example, an enabled unique username or unique email. This also works with enabled unique custom fields.
2816
2818
  * Check user field uniqueness
@@ -4222,6 +4224,85 @@ class SDKApi extends BaseAPI {
4222
4224
  yield this.passkeyRecoveryOptionsRaw(requestParameters, initOverrides);
4223
4225
  });
4224
4226
  }
4227
+ /**
4228
+ * Transfer funds from an exchange account to an external address or another Coinbase account
4229
+ */
4230
+ postExchangeAccountTransferRaw(requestParameters, initOverrides) {
4231
+ return __awaiter(this, void 0, void 0, function* () {
4232
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4233
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling postExchangeAccountTransfer.');
4234
+ }
4235
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
4236
+ throw new RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling postExchangeAccountTransfer.');
4237
+ }
4238
+ if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
4239
+ throw new RequiredError('accountId', 'Required parameter requestParameters.accountId was null or undefined when calling postExchangeAccountTransfer.');
4240
+ }
4241
+ if (requestParameters.createExchangeTransferRequest === null || requestParameters.createExchangeTransferRequest === undefined) {
4242
+ throw new RequiredError('createExchangeTransferRequest', 'Required parameter requestParameters.createExchangeTransferRequest was null or undefined when calling postExchangeAccountTransfer.');
4243
+ }
4244
+ const queryParameters = {};
4245
+ const headerParameters = {};
4246
+ headerParameters['Content-Type'] = 'application/json';
4247
+ if (this.configuration && this.configuration.accessToken) {
4248
+ const token = this.configuration.accessToken;
4249
+ const tokenString = yield token("bearerAuth", []);
4250
+ if (tokenString) {
4251
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4252
+ }
4253
+ }
4254
+ const response = yield this.request({
4255
+ path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts/{accountId}/transfer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))).replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters.accountId))),
4256
+ method: 'POST',
4257
+ headers: headerParameters,
4258
+ query: queryParameters,
4259
+ body: CreateExchangeTransferRequestToJSON(requestParameters.createExchangeTransferRequest),
4260
+ }, initOverrides);
4261
+ return new JSONApiResponse(response, (jsonValue) => ExchangeTransferResponseFromJSON(jsonValue));
4262
+ });
4263
+ }
4264
+ /**
4265
+ * Transfer funds from an exchange account to an external address or another Coinbase account
4266
+ */
4267
+ postExchangeAccountTransfer(requestParameters, initOverrides) {
4268
+ return __awaiter(this, void 0, void 0, function* () {
4269
+ const response = yield this.postExchangeAccountTransferRaw(requestParameters, initOverrides);
4270
+ return yield response.value();
4271
+ });
4272
+ }
4273
+ /**
4274
+ * Options call for this endpoint
4275
+ */
4276
+ postExchangeAccountTransferOptionsRaw(requestParameters, initOverrides) {
4277
+ return __awaiter(this, void 0, void 0, function* () {
4278
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4279
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling postExchangeAccountTransferOptions.');
4280
+ }
4281
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
4282
+ throw new RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling postExchangeAccountTransferOptions.');
4283
+ }
4284
+ if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
4285
+ throw new RequiredError('accountId', 'Required parameter requestParameters.accountId was null or undefined when calling postExchangeAccountTransferOptions.');
4286
+ }
4287
+ const queryParameters = {};
4288
+ const headerParameters = {};
4289
+ const response = yield this.request({
4290
+ path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts/{accountId}/transfer`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))).replace(`{${"accountId"}}`, encodeURIComponent(String(requestParameters.accountId))),
4291
+ method: 'OPTIONS',
4292
+ headers: headerParameters,
4293
+ query: queryParameters,
4294
+ }, initOverrides);
4295
+ return new VoidApiResponse(response);
4296
+ });
4297
+ }
4298
+ /**
4299
+ * Options call for this endpoint
4300
+ */
4301
+ postExchangeAccountTransferOptions(requestParameters, initOverrides) {
4302
+ return __awaiter(this, void 0, void 0, function* () {
4303
+ yield this.postExchangeAccountTransferOptionsRaw(requestParameters, initOverrides);
4304
+ });
4305
+ }
4225
4306
  /**
4226
4307
  * Handle Telegram authentication
4227
4308
  */
package/src/index.cjs CHANGED
@@ -36,6 +36,7 @@ var ConnectRequest = require('./models/ConnectRequest.cjs');
36
36
  var CreateEmbeddedWalletParams = require('./models/CreateEmbeddedWalletParams.cjs');
37
37
  var CreateEmbeddedWalletSpecificOpts = require('./models/CreateEmbeddedWalletSpecificOpts.cjs');
38
38
  var CreateEmbeddedWalletsRequest = require('./models/CreateEmbeddedWalletsRequest.cjs');
39
+ var CreateExchangeTransferRequest = require('./models/CreateExchangeTransferRequest.cjs');
39
40
  var CreateMfaToken = require('./models/CreateMfaToken.cjs');
40
41
  var CreateTurnkeyEmbeddedWalletSpecificOpts = require('./models/CreateTurnkeyEmbeddedWalletSpecificOpts.cjs');
41
42
  var CreateUserEmbeddedWalletsFromFarcasterRequest = require('./models/CreateUserEmbeddedWalletsFromFarcasterRequest.cjs');
@@ -69,6 +70,7 @@ var EmbeddedWalletVersionEnum = require('./models/EmbeddedWalletVersionEnum.cjs'
69
70
  var EnvironmentEnum = require('./models/EnvironmentEnum.cjs');
70
71
  var ErrorMessageWithCode = require('./models/ErrorMessageWithCode.cjs');
71
72
  var ExchangeKeyEnum = require('./models/ExchangeKeyEnum.cjs');
73
+ var ExchangeTransferResponse = require('./models/ExchangeTransferResponse.cjs');
72
74
  var ExportEmbeddedWalletResponse = require('./models/ExportEmbeddedWalletResponse.cjs');
73
75
  var ExportWaasWalletPrivateKeyRequest = require('./models/ExportWaasWalletPrivateKeyRequest.cjs');
74
76
  var ExternalAuth = require('./models/ExternalAuth.cjs');
@@ -423,6 +425,9 @@ exports.CreateEmbeddedWalletSpecificOptsToJSON = CreateEmbeddedWalletSpecificOpt
423
425
  exports.CreateEmbeddedWalletsRequestFromJSON = CreateEmbeddedWalletsRequest.CreateEmbeddedWalletsRequestFromJSON;
424
426
  exports.CreateEmbeddedWalletsRequestFromJSONTyped = CreateEmbeddedWalletsRequest.CreateEmbeddedWalletsRequestFromJSONTyped;
425
427
  exports.CreateEmbeddedWalletsRequestToJSON = CreateEmbeddedWalletsRequest.CreateEmbeddedWalletsRequestToJSON;
428
+ exports.CreateExchangeTransferRequestFromJSON = CreateExchangeTransferRequest.CreateExchangeTransferRequestFromJSON;
429
+ exports.CreateExchangeTransferRequestFromJSONTyped = CreateExchangeTransferRequest.CreateExchangeTransferRequestFromJSONTyped;
430
+ exports.CreateExchangeTransferRequestToJSON = CreateExchangeTransferRequest.CreateExchangeTransferRequestToJSON;
426
431
  exports.CreateMfaTokenFromJSON = CreateMfaToken.CreateMfaTokenFromJSON;
427
432
  exports.CreateMfaTokenFromJSONTyped = CreateMfaToken.CreateMfaTokenFromJSONTyped;
428
433
  exports.CreateMfaTokenToJSON = CreateMfaToken.CreateMfaTokenToJSON;
@@ -562,6 +567,9 @@ Object.defineProperty(exports, 'ExchangeKeyEnum', {
562
567
  exports.ExchangeKeyEnumFromJSON = ExchangeKeyEnum.ExchangeKeyEnumFromJSON;
563
568
  exports.ExchangeKeyEnumFromJSONTyped = ExchangeKeyEnum.ExchangeKeyEnumFromJSONTyped;
564
569
  exports.ExchangeKeyEnumToJSON = ExchangeKeyEnum.ExchangeKeyEnumToJSON;
570
+ exports.ExchangeTransferResponseFromJSON = ExchangeTransferResponse.ExchangeTransferResponseFromJSON;
571
+ exports.ExchangeTransferResponseFromJSONTyped = ExchangeTransferResponse.ExchangeTransferResponseFromJSONTyped;
572
+ exports.ExchangeTransferResponseToJSON = ExchangeTransferResponse.ExchangeTransferResponseToJSON;
565
573
  exports.ExportEmbeddedWalletResponseFromJSON = ExportEmbeddedWalletResponse.ExportEmbeddedWalletResponseFromJSON;
566
574
  exports.ExportEmbeddedWalletResponseFromJSONTyped = ExportEmbeddedWalletResponse.ExportEmbeddedWalletResponseFromJSONTyped;
567
575
  exports.ExportEmbeddedWalletResponseToJSON = ExportEmbeddedWalletResponse.ExportEmbeddedWalletResponseToJSON;
package/src/index.js CHANGED
@@ -32,6 +32,7 @@ export { ConnectRequestFromJSON, ConnectRequestFromJSONTyped, ConnectRequestToJS
32
32
  export { CreateEmbeddedWalletParamsFromJSON, CreateEmbeddedWalletParamsFromJSONTyped, CreateEmbeddedWalletParamsToJSON } from './models/CreateEmbeddedWalletParams.js';
33
33
  export { CreateEmbeddedWalletSpecificOptsFromJSON, CreateEmbeddedWalletSpecificOptsFromJSONTyped, CreateEmbeddedWalletSpecificOptsToJSON } from './models/CreateEmbeddedWalletSpecificOpts.js';
34
34
  export { CreateEmbeddedWalletsRequestFromJSON, CreateEmbeddedWalletsRequestFromJSONTyped, CreateEmbeddedWalletsRequestToJSON } from './models/CreateEmbeddedWalletsRequest.js';
35
+ export { CreateExchangeTransferRequestFromJSON, CreateExchangeTransferRequestFromJSONTyped, CreateExchangeTransferRequestToJSON } from './models/CreateExchangeTransferRequest.js';
35
36
  export { CreateMfaTokenFromJSON, CreateMfaTokenFromJSONTyped, CreateMfaTokenToJSON } from './models/CreateMfaToken.js';
36
37
  export { CreateTurnkeyEmbeddedWalletSpecificOptsFromJSON, CreateTurnkeyEmbeddedWalletSpecificOptsFromJSONTyped, CreateTurnkeyEmbeddedWalletSpecificOptsToJSON } from './models/CreateTurnkeyEmbeddedWalletSpecificOpts.js';
37
38
  export { CreateUserEmbeddedWalletsFromFarcasterRequestFromJSON, CreateUserEmbeddedWalletsFromFarcasterRequestFromJSONTyped, CreateUserEmbeddedWalletsFromFarcasterRequestToJSON } from './models/CreateUserEmbeddedWalletsFromFarcasterRequest.js';
@@ -65,6 +66,7 @@ export { EmbeddedWalletVersionEnum, EmbeddedWalletVersionEnumFromJSON, EmbeddedW
65
66
  export { EnvironmentEnum, EnvironmentEnumFromJSON, EnvironmentEnumFromJSONTyped, EnvironmentEnumToJSON } from './models/EnvironmentEnum.js';
66
67
  export { ErrorMessageWithCodeFromJSON, ErrorMessageWithCodeFromJSONTyped, ErrorMessageWithCodeToJSON } from './models/ErrorMessageWithCode.js';
67
68
  export { ExchangeKeyEnum, ExchangeKeyEnumFromJSON, ExchangeKeyEnumFromJSONTyped, ExchangeKeyEnumToJSON } from './models/ExchangeKeyEnum.js';
69
+ export { ExchangeTransferResponseFromJSON, ExchangeTransferResponseFromJSONTyped, ExchangeTransferResponseToJSON } from './models/ExchangeTransferResponse.js';
68
70
  export { ExportEmbeddedWalletResponseFromJSON, ExportEmbeddedWalletResponseFromJSONTyped, ExportEmbeddedWalletResponseToJSON } from './models/ExportEmbeddedWalletResponse.js';
69
71
  export { ExportWaasWalletPrivateKeyRequestFromJSON, ExportWaasWalletPrivateKeyRequestFromJSONTyped, ExportWaasWalletPrivateKeyRequestToJSON } from './models/ExportWaasWalletPrivateKeyRequest.js';
70
72
  export { ExternalAuthFromJSON, ExternalAuthFromJSONTyped, ExternalAuthToJSON } from './models/ExternalAuth.js';
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function CreateExchangeTransferRequestFromJSON(json) {
9
+ return CreateExchangeTransferRequestFromJSONTyped(json);
10
+ }
11
+ function CreateExchangeTransferRequestFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'to': json['to'],
17
+ 'amount': json['amount'],
18
+ 'currency': json['currency'],
19
+ 'network': !runtime.exists(json, 'network') ? undefined : json['network'],
20
+ 'id': !runtime.exists(json, 'id') ? undefined : json['id'],
21
+ 'description': !runtime.exists(json, 'description') ? undefined : json['description'],
22
+ 'mfaCode': !runtime.exists(json, 'mfaCode') ? undefined : json['mfaCode'],
23
+ };
24
+ }
25
+ function CreateExchangeTransferRequestToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'to': value.to,
34
+ 'amount': value.amount,
35
+ 'currency': value.currency,
36
+ 'network': value.network,
37
+ 'id': value.id,
38
+ 'description': value.description,
39
+ 'mfaCode': value.mfaCode,
40
+ };
41
+ }
42
+
43
+ exports.CreateExchangeTransferRequestFromJSON = CreateExchangeTransferRequestFromJSON;
44
+ exports.CreateExchangeTransferRequestFromJSONTyped = CreateExchangeTransferRequestFromJSONTyped;
45
+ exports.CreateExchangeTransferRequestToJSON = CreateExchangeTransferRequestToJSON;
@@ -0,0 +1,63 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface CreateExchangeTransferRequest
16
+ */
17
+ export interface CreateExchangeTransferRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CreateExchangeTransferRequest
22
+ */
23
+ to: string;
24
+ /**
25
+ * the amount to transfer
26
+ * @type {number}
27
+ * @memberof CreateExchangeTransferRequest
28
+ */
29
+ amount: number;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CreateExchangeTransferRequest
34
+ */
35
+ currency: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CreateExchangeTransferRequest
40
+ */
41
+ network?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CreateExchangeTransferRequest
46
+ */
47
+ id?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CreateExchangeTransferRequest
52
+ */
53
+ description?: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof CreateExchangeTransferRequest
58
+ */
59
+ mfaCode?: string;
60
+ }
61
+ export declare function CreateExchangeTransferRequestFromJSON(json: any): CreateExchangeTransferRequest;
62
+ export declare function CreateExchangeTransferRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateExchangeTransferRequest;
63
+ export declare function CreateExchangeTransferRequestToJSON(value?: CreateExchangeTransferRequest | null): any;
@@ -0,0 +1,39 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function CreateExchangeTransferRequestFromJSON(json) {
5
+ return CreateExchangeTransferRequestFromJSONTyped(json);
6
+ }
7
+ function CreateExchangeTransferRequestFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'to': json['to'],
13
+ 'amount': json['amount'],
14
+ 'currency': json['currency'],
15
+ 'network': !exists(json, 'network') ? undefined : json['network'],
16
+ 'id': !exists(json, 'id') ? undefined : json['id'],
17
+ 'description': !exists(json, 'description') ? undefined : json['description'],
18
+ 'mfaCode': !exists(json, 'mfaCode') ? undefined : json['mfaCode'],
19
+ };
20
+ }
21
+ function CreateExchangeTransferRequestToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'to': value.to,
30
+ 'amount': value.amount,
31
+ 'currency': value.currency,
32
+ 'network': value.network,
33
+ 'id': value.id,
34
+ 'description': value.description,
35
+ 'mfaCode': value.mfaCode,
36
+ };
37
+ }
38
+
39
+ export { CreateExchangeTransferRequestFromJSON, CreateExchangeTransferRequestFromJSONTyped, CreateExchangeTransferRequestToJSON };
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ function ExchangeTransferResponseFromJSON(json) {
19
+ return ExchangeTransferResponseFromJSONTyped(json);
20
+ }
21
+ function ExchangeTransferResponseFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'id': json['id'],
27
+ 'exchangeAccountId': json['exchangeAccountId'],
28
+ 'status': json['status'],
29
+ 'amount': json['amount'],
30
+ 'currency': json['currency'],
31
+ 'createdAt': (new Date(json['createdAt'])),
32
+ };
33
+ }
34
+ function ExchangeTransferResponseToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'id': value.id,
43
+ 'exchangeAccountId': value.exchangeAccountId,
44
+ 'status': value.status,
45
+ 'amount': value.amount,
46
+ 'currency': value.currency,
47
+ 'createdAt': (value.createdAt.toISOString()),
48
+ };
49
+ }
50
+
51
+ exports.ExchangeTransferResponseFromJSON = ExchangeTransferResponseFromJSON;
52
+ exports.ExchangeTransferResponseFromJSONTyped = ExchangeTransferResponseFromJSONTyped;
53
+ exports.ExchangeTransferResponseToJSON = ExchangeTransferResponseToJSON;
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ExchangeTransferResponse
16
+ */
17
+ export interface ExchangeTransferResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ExchangeTransferResponse
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ExchangeTransferResponse
28
+ */
29
+ exchangeAccountId: string;
30
+ /**
31
+ * Current status of the transaction
32
+ * @type {string}
33
+ * @memberof ExchangeTransferResponse
34
+ */
35
+ status: string;
36
+ /**
37
+ * the amount to transfer
38
+ * @type {number}
39
+ * @memberof ExchangeTransferResponse
40
+ */
41
+ amount: number;
42
+ /**
43
+ * Chain symbol that funds are to be transferred in.
44
+ * @type {string}
45
+ * @memberof ExchangeTransferResponse
46
+ */
47
+ currency: string;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof ExchangeTransferResponse
52
+ */
53
+ createdAt: Date;
54
+ }
55
+ export declare function ExchangeTransferResponseFromJSON(json: any): ExchangeTransferResponse;
56
+ export declare function ExchangeTransferResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExchangeTransferResponse;
57
+ export declare function ExchangeTransferResponseToJSON(value?: ExchangeTransferResponse | null): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ function ExchangeTransferResponseFromJSON(json) {
15
+ return ExchangeTransferResponseFromJSONTyped(json);
16
+ }
17
+ function ExchangeTransferResponseFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'id': json['id'],
23
+ 'exchangeAccountId': json['exchangeAccountId'],
24
+ 'status': json['status'],
25
+ 'amount': json['amount'],
26
+ 'currency': json['currency'],
27
+ 'createdAt': (new Date(json['createdAt'])),
28
+ };
29
+ }
30
+ function ExchangeTransferResponseToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'id': value.id,
39
+ 'exchangeAccountId': value.exchangeAccountId,
40
+ 'status': value.status,
41
+ 'amount': value.amount,
42
+ 'currency': value.currency,
43
+ 'createdAt': (value.createdAt.toISOString()),
44
+ };
45
+ }
46
+
47
+ export { ExchangeTransferResponseFromJSON, ExchangeTransferResponseFromJSONTyped, ExchangeTransferResponseToJSON };
@@ -30,6 +30,7 @@ export * from './ConnectRequest';
30
30
  export * from './CreateEmbeddedWalletParams';
31
31
  export * from './CreateEmbeddedWalletSpecificOpts';
32
32
  export * from './CreateEmbeddedWalletsRequest';
33
+ export * from './CreateExchangeTransferRequest';
33
34
  export * from './CreateMfaToken';
34
35
  export * from './CreateTurnkeyEmbeddedWalletSpecificOpts';
35
36
  export * from './CreateUserEmbeddedWalletsFromFarcasterRequest';
@@ -63,6 +64,7 @@ export * from './EmbeddedWalletVersionEnum';
63
64
  export * from './EnvironmentEnum';
64
65
  export * from './ErrorMessageWithCode';
65
66
  export * from './ExchangeKeyEnum';
67
+ export * from './ExchangeTransferResponse';
66
68
  export * from './ExportEmbeddedWalletResponse';
67
69
  export * from './ExportWaasWalletPrivateKeyRequest';
68
70
  export * from './ExternalAuth';