@dynamic-labs/sdk-api 0.0.675 → 0.0.677

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",
3
- "version": "0.0.675",
3
+ "version": "0.0.677",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -39,6 +39,7 @@ var ConnectRequest = require('../models/ConnectRequest.cjs');
39
39
  require('../models/EmbeddedWalletChainEnum.cjs');
40
40
  require('../models/EmbeddedWalletProviderEnum.cjs');
41
41
  var CreateEmbeddedWalletsRequest = require('../models/CreateEmbeddedWalletsRequest.cjs');
42
+ var CreateExchangeTransferRequest = require('../models/CreateExchangeTransferRequest.cjs');
42
43
  require('../models/UserIdentifierTypeEnum.cjs');
43
44
  var CreateWaasAccountRequest = require('../models/CreateWaasAccountRequest.cjs');
44
45
  var CreateWalletAccountRequest = require('../models/CreateWalletAccountRequest.cjs');
@@ -64,6 +65,7 @@ require('../models/EmbeddedWalletSecurityMethod.cjs');
64
65
  require('../models/EnvironmentEnum.cjs');
65
66
  var ProjectSettings = require('../models/ProjectSettings.cjs');
66
67
  require('../models/ExchangeKeyEnum.cjs');
68
+ var ExchangeTransferResponse = require('../models/ExchangeTransferResponse.cjs');
67
69
  require('../models/UserFilterableFieldsEnum.cjs');
68
70
  require('../models/ExportFormatEnum.cjs');
69
71
  require('../models/ExportModelEnum.cjs');
@@ -1947,74 +1949,6 @@ class SDKApi extends runtime.BaseAPI {
1947
1949
  return yield response.value();
1948
1950
  });
1949
1951
  }
1950
- /**
1951
- * Get the coinbase accounts for a given dynamic user
1952
- */
1953
- getCoinbaseUserAccountsRaw(requestParameters, initOverrides) {
1954
- return _tslib.__awaiter(this, void 0, void 0, function* () {
1955
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1956
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCoinbaseUserAccounts.');
1957
- }
1958
- if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
1959
- throw new runtime.RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getCoinbaseUserAccounts.');
1960
- }
1961
- const queryParameters = {};
1962
- const headerParameters = {};
1963
- if (this.configuration && this.configuration.accessToken) {
1964
- const token = this.configuration.accessToken;
1965
- const tokenString = yield token("bearerAuth", []);
1966
- if (tokenString) {
1967
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1968
- }
1969
- }
1970
- const response = yield this.request({
1971
- path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
1972
- method: 'GET',
1973
- headers: headerParameters,
1974
- query: queryParameters,
1975
- }, initOverrides);
1976
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(Account.AccountFromJSON));
1977
- });
1978
- }
1979
- /**
1980
- * Get the coinbase accounts for a given dynamic user
1981
- */
1982
- getCoinbaseUserAccounts(requestParameters, initOverrides) {
1983
- return _tslib.__awaiter(this, void 0, void 0, function* () {
1984
- const response = yield this.getCoinbaseUserAccountsRaw(requestParameters, initOverrides);
1985
- return yield response.value();
1986
- });
1987
- }
1988
- /**
1989
- * Options call for this endpoint
1990
- */
1991
- getCoinbaseUserAccountsOptionsRaw(requestParameters, initOverrides) {
1992
- return _tslib.__awaiter(this, void 0, void 0, function* () {
1993
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1994
- throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCoinbaseUserAccountsOptions.');
1995
- }
1996
- if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
1997
- throw new runtime.RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getCoinbaseUserAccountsOptions.');
1998
- }
1999
- const queryParameters = {};
2000
- const headerParameters = {};
2001
- const response = yield this.request({
2002
- path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
2003
- method: 'OPTIONS',
2004
- headers: headerParameters,
2005
- query: queryParameters,
2006
- }, initOverrides);
2007
- return new runtime.VoidApiResponse(response);
2008
- });
2009
- }
2010
- /**
2011
- * Options call for this endpoint
2012
- */
2013
- getCoinbaseUserAccountsOptions(requestParameters, initOverrides) {
2014
- return _tslib.__awaiter(this, void 0, void 0, function* () {
2015
- yield this.getCoinbaseUserAccountsOptionsRaw(requestParameters, initOverrides);
2016
- });
2017
- }
2018
1952
  /**
2019
1953
  * Generates the turnkey request body for a user\'s create wallet account request
2020
1954
  * Generates the turnkey request body for a user\'s create wallet account request
@@ -2882,6 +2816,74 @@ class SDKApi extends runtime.BaseAPI {
2882
2816
  return yield response.value();
2883
2817
  });
2884
2818
  }
2819
+ /**
2820
+ * Get the exchange accounts for a given dynamic user
2821
+ */
2822
+ getUserAccountsRaw(requestParameters, initOverrides) {
2823
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2824
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2825
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserAccounts.');
2826
+ }
2827
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
2828
+ throw new runtime.RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getUserAccounts.');
2829
+ }
2830
+ const queryParameters = {};
2831
+ const headerParameters = {};
2832
+ if (this.configuration && this.configuration.accessToken) {
2833
+ const token = this.configuration.accessToken;
2834
+ const tokenString = yield token("bearerAuth", []);
2835
+ if (tokenString) {
2836
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2837
+ }
2838
+ }
2839
+ const response = yield this.request({
2840
+ path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
2841
+ method: 'GET',
2842
+ headers: headerParameters,
2843
+ query: queryParameters,
2844
+ }, initOverrides);
2845
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(Account.AccountFromJSON));
2846
+ });
2847
+ }
2848
+ /**
2849
+ * Get the exchange accounts for a given dynamic user
2850
+ */
2851
+ getUserAccounts(requestParameters, initOverrides) {
2852
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2853
+ const response = yield this.getUserAccountsRaw(requestParameters, initOverrides);
2854
+ return yield response.value();
2855
+ });
2856
+ }
2857
+ /**
2858
+ * Options call for this endpoint
2859
+ */
2860
+ getUserAccountsOptionsRaw(requestParameters, initOverrides) {
2861
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2862
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2863
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserAccountsOptions.');
2864
+ }
2865
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
2866
+ throw new runtime.RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getUserAccountsOptions.');
2867
+ }
2868
+ const queryParameters = {};
2869
+ const headerParameters = {};
2870
+ const response = yield this.request({
2871
+ path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
2872
+ method: 'OPTIONS',
2873
+ headers: headerParameters,
2874
+ query: queryParameters,
2875
+ }, initOverrides);
2876
+ return new runtime.VoidApiResponse(response);
2877
+ });
2878
+ }
2879
+ /**
2880
+ * Options call for this endpoint
2881
+ */
2882
+ getUserAccountsOptions(requestParameters, initOverrides) {
2883
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2884
+ yield this.getUserAccountsOptionsRaw(requestParameters, initOverrides);
2885
+ });
2886
+ }
2885
2887
  /**
2886
2888
  * 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.
2887
2889
  * Check user field uniqueness
@@ -4293,6 +4295,85 @@ class SDKApi extends runtime.BaseAPI {
4293
4295
  yield this.passkeyRecoveryOptionsRaw(requestParameters, initOverrides);
4294
4296
  });
4295
4297
  }
4298
+ /**
4299
+ * Transfer funds from an exchange account to an external address or another Coinbase account
4300
+ */
4301
+ postExchangeAccountTransferRaw(requestParameters, initOverrides) {
4302
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
4303
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4304
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling postExchangeAccountTransfer.');
4305
+ }
4306
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
4307
+ throw new runtime.RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling postExchangeAccountTransfer.');
4308
+ }
4309
+ if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
4310
+ throw new runtime.RequiredError('accountId', 'Required parameter requestParameters.accountId was null or undefined when calling postExchangeAccountTransfer.');
4311
+ }
4312
+ if (requestParameters.createExchangeTransferRequest === null || requestParameters.createExchangeTransferRequest === undefined) {
4313
+ throw new runtime.RequiredError('createExchangeTransferRequest', 'Required parameter requestParameters.createExchangeTransferRequest was null or undefined when calling postExchangeAccountTransfer.');
4314
+ }
4315
+ const queryParameters = {};
4316
+ const headerParameters = {};
4317
+ headerParameters['Content-Type'] = 'application/json';
4318
+ if (this.configuration && this.configuration.accessToken) {
4319
+ const token = this.configuration.accessToken;
4320
+ const tokenString = yield token("bearerAuth", []);
4321
+ if (tokenString) {
4322
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4323
+ }
4324
+ }
4325
+ const response = yield this.request({
4326
+ 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))),
4327
+ method: 'POST',
4328
+ headers: headerParameters,
4329
+ query: queryParameters,
4330
+ body: CreateExchangeTransferRequest.CreateExchangeTransferRequestToJSON(requestParameters.createExchangeTransferRequest),
4331
+ }, initOverrides);
4332
+ return new runtime.JSONApiResponse(response, (jsonValue) => ExchangeTransferResponse.ExchangeTransferResponseFromJSON(jsonValue));
4333
+ });
4334
+ }
4335
+ /**
4336
+ * Transfer funds from an exchange account to an external address or another Coinbase account
4337
+ */
4338
+ postExchangeAccountTransfer(requestParameters, initOverrides) {
4339
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
4340
+ const response = yield this.postExchangeAccountTransferRaw(requestParameters, initOverrides);
4341
+ return yield response.value();
4342
+ });
4343
+ }
4344
+ /**
4345
+ * Options call for this endpoint
4346
+ */
4347
+ postExchangeAccountTransferOptionsRaw(requestParameters, initOverrides) {
4348
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
4349
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4350
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling postExchangeAccountTransferOptions.');
4351
+ }
4352
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
4353
+ throw new runtime.RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling postExchangeAccountTransferOptions.');
4354
+ }
4355
+ if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
4356
+ throw new runtime.RequiredError('accountId', 'Required parameter requestParameters.accountId was null or undefined when calling postExchangeAccountTransferOptions.');
4357
+ }
4358
+ const queryParameters = {};
4359
+ const headerParameters = {};
4360
+ const response = yield this.request({
4361
+ 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))),
4362
+ method: 'OPTIONS',
4363
+ headers: headerParameters,
4364
+ query: queryParameters,
4365
+ }, initOverrides);
4366
+ return new runtime.VoidApiResponse(response);
4367
+ });
4368
+ }
4369
+ /**
4370
+ * Options call for this endpoint
4371
+ */
4372
+ postExchangeAccountTransferOptions(requestParameters, initOverrides) {
4373
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
4374
+ yield this.postExchangeAccountTransferOptionsRaw(requestParameters, initOverrides);
4375
+ });
4376
+ }
4296
4377
  /**
4297
4378
  * Handle Telegram authentication
4298
4379
  */
@@ -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
@@ -1442,6 +1437,22 @@ export declare class SDKApi extends runtime.BaseAPI {
1442
1437
  * Get HTML with rendered Telegram login widget
1443
1438
  */
1444
1439
  getTelegramAuth(requestParameters: GetTelegramAuthRequest, initOverrides?: RequestInit): Promise<string>;
1440
+ /**
1441
+ * Get the exchange accounts for a given dynamic user
1442
+ */
1443
+ getUserAccountsRaw(requestParameters: GetUserAccountsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<Account>>>;
1444
+ /**
1445
+ * Get the exchange accounts for a given dynamic user
1446
+ */
1447
+ getUserAccounts(requestParameters: GetUserAccountsRequest, initOverrides?: RequestInit): Promise<Array<Account>>;
1448
+ /**
1449
+ * Options call for this endpoint
1450
+ */
1451
+ getUserAccountsOptionsRaw(requestParameters: GetUserAccountsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1452
+ /**
1453
+ * Options call for this endpoint
1454
+ */
1455
+ getUserAccountsOptions(requestParameters: GetUserAccountsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1445
1456
  /**
1446
1457
  * 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.
1447
1458
  * Check user field uniqueness
@@ -1812,6 +1823,22 @@ export declare class SDKApi extends runtime.BaseAPI {
1812
1823
  * Options call for this endpoint
1813
1824
  */
1814
1825
  passkeyRecoveryOptions(requestParameters: PasskeyRecoveryOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1826
+ /**
1827
+ * Transfer funds from an exchange account to an external address or another Coinbase account
1828
+ */
1829
+ postExchangeAccountTransferRaw(requestParameters: PostExchangeAccountTransferRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ExchangeTransferResponse>>;
1830
+ /**
1831
+ * Transfer funds from an exchange account to an external address or another Coinbase account
1832
+ */
1833
+ postExchangeAccountTransfer(requestParameters: PostExchangeAccountTransferRequest, initOverrides?: RequestInit): Promise<ExchangeTransferResponse>;
1834
+ /**
1835
+ * Options call for this endpoint
1836
+ */
1837
+ postExchangeAccountTransferOptionsRaw(requestParameters: PostExchangeAccountTransferOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1838
+ /**
1839
+ * Options call for this endpoint
1840
+ */
1841
+ postExchangeAccountTransferOptions(requestParameters: PostExchangeAccountTransferOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1815
1842
  /**
1816
1843
  * Handle Telegram authentication
1817
1844
  */
@@ -35,6 +35,7 @@ import { ConnectRequestToJSON } from '../models/ConnectRequest.js';
35
35
  import '../models/EmbeddedWalletChainEnum.js';
36
36
  import '../models/EmbeddedWalletProviderEnum.js';
37
37
  import { CreateEmbeddedWalletsRequestToJSON } from '../models/CreateEmbeddedWalletsRequest.js';
38
+ import { CreateExchangeTransferRequestToJSON } from '../models/CreateExchangeTransferRequest.js';
38
39
  import '../models/UserIdentifierTypeEnum.js';
39
40
  import { CreateWaasAccountRequestToJSON } from '../models/CreateWaasAccountRequest.js';
40
41
  import { CreateWalletAccountRequestToJSON } from '../models/CreateWalletAccountRequest.js';
@@ -60,6 +61,7 @@ import '../models/EmbeddedWalletSecurityMethod.js';
60
61
  import '../models/EnvironmentEnum.js';
61
62
  import { ProjectSettingsFromJSON } from '../models/ProjectSettings.js';
62
63
  import '../models/ExchangeKeyEnum.js';
64
+ import { ExchangeTransferResponseFromJSON } from '../models/ExchangeTransferResponse.js';
63
65
  import '../models/UserFilterableFieldsEnum.js';
64
66
  import '../models/ExportFormatEnum.js';
65
67
  import '../models/ExportModelEnum.js';
@@ -1943,74 +1945,6 @@ class SDKApi extends BaseAPI {
1943
1945
  return yield response.value();
1944
1946
  });
1945
1947
  }
1946
- /**
1947
- * Get the coinbase accounts for a given dynamic user
1948
- */
1949
- getCoinbaseUserAccountsRaw(requestParameters, initOverrides) {
1950
- return __awaiter(this, void 0, void 0, function* () {
1951
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1952
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCoinbaseUserAccounts.');
1953
- }
1954
- if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
1955
- throw new RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getCoinbaseUserAccounts.');
1956
- }
1957
- const queryParameters = {};
1958
- const headerParameters = {};
1959
- if (this.configuration && this.configuration.accessToken) {
1960
- const token = this.configuration.accessToken;
1961
- const tokenString = yield token("bearerAuth", []);
1962
- if (tokenString) {
1963
- headerParameters["Authorization"] = `Bearer ${tokenString}`;
1964
- }
1965
- }
1966
- const response = yield this.request({
1967
- path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
1968
- method: 'GET',
1969
- headers: headerParameters,
1970
- query: queryParameters,
1971
- }, initOverrides);
1972
- return new JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountFromJSON));
1973
- });
1974
- }
1975
- /**
1976
- * Get the coinbase accounts for a given dynamic user
1977
- */
1978
- getCoinbaseUserAccounts(requestParameters, initOverrides) {
1979
- return __awaiter(this, void 0, void 0, function* () {
1980
- const response = yield this.getCoinbaseUserAccountsRaw(requestParameters, initOverrides);
1981
- return yield response.value();
1982
- });
1983
- }
1984
- /**
1985
- * Options call for this endpoint
1986
- */
1987
- getCoinbaseUserAccountsOptionsRaw(requestParameters, initOverrides) {
1988
- return __awaiter(this, void 0, void 0, function* () {
1989
- if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1990
- throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getCoinbaseUserAccountsOptions.');
1991
- }
1992
- if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
1993
- throw new RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getCoinbaseUserAccountsOptions.');
1994
- }
1995
- const queryParameters = {};
1996
- const headerParameters = {};
1997
- const response = yield this.request({
1998
- path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
1999
- method: 'OPTIONS',
2000
- headers: headerParameters,
2001
- query: queryParameters,
2002
- }, initOverrides);
2003
- return new VoidApiResponse(response);
2004
- });
2005
- }
2006
- /**
2007
- * Options call for this endpoint
2008
- */
2009
- getCoinbaseUserAccountsOptions(requestParameters, initOverrides) {
2010
- return __awaiter(this, void 0, void 0, function* () {
2011
- yield this.getCoinbaseUserAccountsOptionsRaw(requestParameters, initOverrides);
2012
- });
2013
- }
2014
1948
  /**
2015
1949
  * Generates the turnkey request body for a user\'s create wallet account request
2016
1950
  * Generates the turnkey request body for a user\'s create wallet account request
@@ -2878,6 +2812,74 @@ class SDKApi extends BaseAPI {
2878
2812
  return yield response.value();
2879
2813
  });
2880
2814
  }
2815
+ /**
2816
+ * Get the exchange accounts for a given dynamic user
2817
+ */
2818
+ getUserAccountsRaw(requestParameters, initOverrides) {
2819
+ return __awaiter(this, void 0, void 0, function* () {
2820
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2821
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserAccounts.');
2822
+ }
2823
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
2824
+ throw new RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getUserAccounts.');
2825
+ }
2826
+ const queryParameters = {};
2827
+ const headerParameters = {};
2828
+ if (this.configuration && this.configuration.accessToken) {
2829
+ const token = this.configuration.accessToken;
2830
+ const tokenString = yield token("bearerAuth", []);
2831
+ if (tokenString) {
2832
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
2833
+ }
2834
+ }
2835
+ const response = yield this.request({
2836
+ path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
2837
+ method: 'GET',
2838
+ headers: headerParameters,
2839
+ query: queryParameters,
2840
+ }, initOverrides);
2841
+ return new JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountFromJSON));
2842
+ });
2843
+ }
2844
+ /**
2845
+ * Get the exchange accounts for a given dynamic user
2846
+ */
2847
+ getUserAccounts(requestParameters, initOverrides) {
2848
+ return __awaiter(this, void 0, void 0, function* () {
2849
+ const response = yield this.getUserAccountsRaw(requestParameters, initOverrides);
2850
+ return yield response.value();
2851
+ });
2852
+ }
2853
+ /**
2854
+ * Options call for this endpoint
2855
+ */
2856
+ getUserAccountsOptionsRaw(requestParameters, initOverrides) {
2857
+ return __awaiter(this, void 0, void 0, function* () {
2858
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2859
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getUserAccountsOptions.');
2860
+ }
2861
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
2862
+ throw new RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling getUserAccountsOptions.');
2863
+ }
2864
+ const queryParameters = {};
2865
+ const headerParameters = {};
2866
+ const response = yield this.request({
2867
+ path: `/sdk/{environmentId}/exchange/{exchangeKey}/accounts`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"exchangeKey"}}`, encodeURIComponent(String(requestParameters.exchangeKey))),
2868
+ method: 'OPTIONS',
2869
+ headers: headerParameters,
2870
+ query: queryParameters,
2871
+ }, initOverrides);
2872
+ return new VoidApiResponse(response);
2873
+ });
2874
+ }
2875
+ /**
2876
+ * Options call for this endpoint
2877
+ */
2878
+ getUserAccountsOptions(requestParameters, initOverrides) {
2879
+ return __awaiter(this, void 0, void 0, function* () {
2880
+ yield this.getUserAccountsOptionsRaw(requestParameters, initOverrides);
2881
+ });
2882
+ }
2881
2883
  /**
2882
2884
  * 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.
2883
2885
  * Check user field uniqueness
@@ -4289,6 +4291,85 @@ class SDKApi extends BaseAPI {
4289
4291
  yield this.passkeyRecoveryOptionsRaw(requestParameters, initOverrides);
4290
4292
  });
4291
4293
  }
4294
+ /**
4295
+ * Transfer funds from an exchange account to an external address or another Coinbase account
4296
+ */
4297
+ postExchangeAccountTransferRaw(requestParameters, initOverrides) {
4298
+ return __awaiter(this, void 0, void 0, function* () {
4299
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4300
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling postExchangeAccountTransfer.');
4301
+ }
4302
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
4303
+ throw new RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling postExchangeAccountTransfer.');
4304
+ }
4305
+ if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
4306
+ throw new RequiredError('accountId', 'Required parameter requestParameters.accountId was null or undefined when calling postExchangeAccountTransfer.');
4307
+ }
4308
+ if (requestParameters.createExchangeTransferRequest === null || requestParameters.createExchangeTransferRequest === undefined) {
4309
+ throw new RequiredError('createExchangeTransferRequest', 'Required parameter requestParameters.createExchangeTransferRequest was null or undefined when calling postExchangeAccountTransfer.');
4310
+ }
4311
+ const queryParameters = {};
4312
+ const headerParameters = {};
4313
+ headerParameters['Content-Type'] = 'application/json';
4314
+ if (this.configuration && this.configuration.accessToken) {
4315
+ const token = this.configuration.accessToken;
4316
+ const tokenString = yield token("bearerAuth", []);
4317
+ if (tokenString) {
4318
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
4319
+ }
4320
+ }
4321
+ const response = yield this.request({
4322
+ 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))),
4323
+ method: 'POST',
4324
+ headers: headerParameters,
4325
+ query: queryParameters,
4326
+ body: CreateExchangeTransferRequestToJSON(requestParameters.createExchangeTransferRequest),
4327
+ }, initOverrides);
4328
+ return new JSONApiResponse(response, (jsonValue) => ExchangeTransferResponseFromJSON(jsonValue));
4329
+ });
4330
+ }
4331
+ /**
4332
+ * Transfer funds from an exchange account to an external address or another Coinbase account
4333
+ */
4334
+ postExchangeAccountTransfer(requestParameters, initOverrides) {
4335
+ return __awaiter(this, void 0, void 0, function* () {
4336
+ const response = yield this.postExchangeAccountTransferRaw(requestParameters, initOverrides);
4337
+ return yield response.value();
4338
+ });
4339
+ }
4340
+ /**
4341
+ * Options call for this endpoint
4342
+ */
4343
+ postExchangeAccountTransferOptionsRaw(requestParameters, initOverrides) {
4344
+ return __awaiter(this, void 0, void 0, function* () {
4345
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
4346
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling postExchangeAccountTransferOptions.');
4347
+ }
4348
+ if (requestParameters.exchangeKey === null || requestParameters.exchangeKey === undefined) {
4349
+ throw new RequiredError('exchangeKey', 'Required parameter requestParameters.exchangeKey was null or undefined when calling postExchangeAccountTransferOptions.');
4350
+ }
4351
+ if (requestParameters.accountId === null || requestParameters.accountId === undefined) {
4352
+ throw new RequiredError('accountId', 'Required parameter requestParameters.accountId was null or undefined when calling postExchangeAccountTransferOptions.');
4353
+ }
4354
+ const queryParameters = {};
4355
+ const headerParameters = {};
4356
+ const response = yield this.request({
4357
+ 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))),
4358
+ method: 'OPTIONS',
4359
+ headers: headerParameters,
4360
+ query: queryParameters,
4361
+ }, initOverrides);
4362
+ return new VoidApiResponse(response);
4363
+ });
4364
+ }
4365
+ /**
4366
+ * Options call for this endpoint
4367
+ */
4368
+ postExchangeAccountTransferOptions(requestParameters, initOverrides) {
4369
+ return __awaiter(this, void 0, void 0, function* () {
4370
+ yield this.postExchangeAccountTransferOptionsRaw(requestParameters, initOverrides);
4371
+ });
4372
+ }
4292
4373
  /**
4293
4374
  * Handle Telegram authentication
4294
4375
  */
package/src/index.cjs CHANGED
@@ -100,6 +100,7 @@ var ConnectRequest = require('./models/ConnectRequest.cjs');
100
100
  var CreateEmbeddedWalletParams = require('./models/CreateEmbeddedWalletParams.cjs');
101
101
  var CreateEmbeddedWalletSpecificOpts = require('./models/CreateEmbeddedWalletSpecificOpts.cjs');
102
102
  var CreateEmbeddedWalletsRequest = require('./models/CreateEmbeddedWalletsRequest.cjs');
103
+ var CreateExchangeTransferRequest = require('./models/CreateExchangeTransferRequest.cjs');
103
104
  var CreateMfaToken = require('./models/CreateMfaToken.cjs');
104
105
  var CreateProjectResponse = require('./models/CreateProjectResponse.cjs');
105
106
  var CreateProjectResponseProject = require('./models/CreateProjectResponseProject.cjs');
@@ -160,6 +161,7 @@ var ErrorMessageWithCode = require('./models/ErrorMessageWithCode.cjs');
160
161
  var Event = require('./models/Event.cjs');
161
162
  var EventType = require('./models/EventType.cjs');
162
163
  var ExchangeKeyEnum = require('./models/ExchangeKeyEnum.cjs');
164
+ var ExchangeTransferResponse = require('./models/ExchangeTransferResponse.cjs');
163
165
  var Export = require('./models/Export.cjs');
164
166
  var ExportCreateRequest = require('./models/ExportCreateRequest.cjs');
165
167
  var ExportCreateRequestFilter = require('./models/ExportCreateRequestFilter.cjs');
@@ -763,6 +765,9 @@ exports.CreateEmbeddedWalletSpecificOptsToJSON = CreateEmbeddedWalletSpecificOpt
763
765
  exports.CreateEmbeddedWalletsRequestFromJSON = CreateEmbeddedWalletsRequest.CreateEmbeddedWalletsRequestFromJSON;
764
766
  exports.CreateEmbeddedWalletsRequestFromJSONTyped = CreateEmbeddedWalletsRequest.CreateEmbeddedWalletsRequestFromJSONTyped;
765
767
  exports.CreateEmbeddedWalletsRequestToJSON = CreateEmbeddedWalletsRequest.CreateEmbeddedWalletsRequestToJSON;
768
+ exports.CreateExchangeTransferRequestFromJSON = CreateExchangeTransferRequest.CreateExchangeTransferRequestFromJSON;
769
+ exports.CreateExchangeTransferRequestFromJSONTyped = CreateExchangeTransferRequest.CreateExchangeTransferRequestFromJSONTyped;
770
+ exports.CreateExchangeTransferRequestToJSON = CreateExchangeTransferRequest.CreateExchangeTransferRequestToJSON;
766
771
  exports.CreateMfaTokenFromJSON = CreateMfaToken.CreateMfaTokenFromJSON;
767
772
  exports.CreateMfaTokenFromJSONTyped = CreateMfaToken.CreateMfaTokenFromJSONTyped;
768
773
  exports.CreateMfaTokenToJSON = CreateMfaToken.CreateMfaTokenToJSON;
@@ -999,6 +1004,9 @@ Object.defineProperty(exports, 'ExchangeKeyEnum', {
999
1004
  exports.ExchangeKeyEnumFromJSON = ExchangeKeyEnum.ExchangeKeyEnumFromJSON;
1000
1005
  exports.ExchangeKeyEnumFromJSONTyped = ExchangeKeyEnum.ExchangeKeyEnumFromJSONTyped;
1001
1006
  exports.ExchangeKeyEnumToJSON = ExchangeKeyEnum.ExchangeKeyEnumToJSON;
1007
+ exports.ExchangeTransferResponseFromJSON = ExchangeTransferResponse.ExchangeTransferResponseFromJSON;
1008
+ exports.ExchangeTransferResponseFromJSONTyped = ExchangeTransferResponse.ExchangeTransferResponseFromJSONTyped;
1009
+ exports.ExchangeTransferResponseToJSON = ExchangeTransferResponse.ExchangeTransferResponseToJSON;
1002
1010
  exports.ExportFromJSON = Export.ExportFromJSON;
1003
1011
  exports.ExportFromJSONTyped = Export.ExportFromJSONTyped;
1004
1012
  exports.ExportToJSON = Export.ExportToJSON;
package/src/index.js CHANGED
@@ -96,6 +96,7 @@ export { ConnectRequestFromJSON, ConnectRequestFromJSONTyped, ConnectRequestToJS
96
96
  export { CreateEmbeddedWalletParamsFromJSON, CreateEmbeddedWalletParamsFromJSONTyped, CreateEmbeddedWalletParamsToJSON } from './models/CreateEmbeddedWalletParams.js';
97
97
  export { CreateEmbeddedWalletSpecificOptsFromJSON, CreateEmbeddedWalletSpecificOptsFromJSONTyped, CreateEmbeddedWalletSpecificOptsToJSON } from './models/CreateEmbeddedWalletSpecificOpts.js';
98
98
  export { CreateEmbeddedWalletsRequestFromJSON, CreateEmbeddedWalletsRequestFromJSONTyped, CreateEmbeddedWalletsRequestToJSON } from './models/CreateEmbeddedWalletsRequest.js';
99
+ export { CreateExchangeTransferRequestFromJSON, CreateExchangeTransferRequestFromJSONTyped, CreateExchangeTransferRequestToJSON } from './models/CreateExchangeTransferRequest.js';
99
100
  export { CreateMfaTokenFromJSON, CreateMfaTokenFromJSONTyped, CreateMfaTokenToJSON } from './models/CreateMfaToken.js';
100
101
  export { CreateProjectResponseFromJSON, CreateProjectResponseFromJSONTyped, CreateProjectResponseToJSON } from './models/CreateProjectResponse.js';
101
102
  export { CreateProjectResponseProjectFromJSON, CreateProjectResponseProjectFromJSONTyped, CreateProjectResponseProjectToJSON } from './models/CreateProjectResponseProject.js';
@@ -156,6 +157,7 @@ export { ErrorMessageWithCodeFromJSON, ErrorMessageWithCodeFromJSONTyped, ErrorM
156
157
  export { EventFromJSON, EventFromJSONTyped, EventToJSON } from './models/Event.js';
157
158
  export { EventTypeFromJSON, EventTypeFromJSONTyped, EventTypeToJSON } from './models/EventType.js';
158
159
  export { ExchangeKeyEnum, ExchangeKeyEnumFromJSON, ExchangeKeyEnumFromJSONTyped, ExchangeKeyEnumToJSON } from './models/ExchangeKeyEnum.js';
160
+ export { ExchangeTransferResponseFromJSON, ExchangeTransferResponseFromJSONTyped, ExchangeTransferResponseToJSON } from './models/ExchangeTransferResponse.js';
159
161
  export { ExportFromJSON, ExportFromJSONTyped, ExportToJSON } from './models/Export.js';
160
162
  export { ExportCreateRequestFromJSON, ExportCreateRequestFromJSONTyped, ExportCreateRequestToJSON } from './models/ExportCreateRequest.js';
161
163
  export { ExportCreateRequestFilterFromJSON, ExportCreateRequestFilterFromJSONTyped, ExportCreateRequestFilterToJSON } from './models/ExportCreateRequestFilter.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 };
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface UserWalletSelectionRequest {
18
18
  /**
19
- *
19
+ * UUID v4 with an optional suffix (e.g., uuid-zerodev)
20
20
  * @type {string}
21
21
  * @memberof UserWalletSelectionRequest
22
22
  */
@@ -60,6 +60,7 @@ export * from './ConnectRequest';
60
60
  export * from './CreateEmbeddedWalletParams';
61
61
  export * from './CreateEmbeddedWalletSpecificOpts';
62
62
  export * from './CreateEmbeddedWalletsRequest';
63
+ export * from './CreateExchangeTransferRequest';
63
64
  export * from './CreateMfaToken';
64
65
  export * from './CreateProjectResponse';
65
66
  export * from './CreateProjectResponseProject';
@@ -120,6 +121,7 @@ export * from './ErrorMessageWithCode';
120
121
  export * from './Event';
121
122
  export * from './EventType';
122
123
  export * from './ExchangeKeyEnum';
124
+ export * from './ExchangeTransferResponse';
123
125
  export * from './Export';
124
126
  export * from './ExportCreateRequest';
125
127
  export * from './ExportCreateRequestFilter';