@dynamic-labs/sdk-api-core 0.0.598 → 0.0.599

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.598",
3
+ "version": "0.0.599",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -57,6 +57,7 @@ require('../models/ExternalWalletFundingDefaultChain.cjs');
57
57
  var FarcasterSignInRequest = require('../models/FarcasterSignInRequest.cjs');
58
58
  require('../models/OnrampProviders.cjs');
59
59
  var GetUserPasskeysResponse = require('../models/GetUserPasskeysResponse.cjs');
60
+ var GlobalWalletSettings = require('../models/GlobalWalletSettings.cjs');
60
61
  var HealthcheckResponse = require('../models/HealthcheckResponse.cjs');
61
62
  require('../models/HealthcheckStatus.cjs');
62
63
  var ImportWaasPrivateKeyRequest = require('../models/ImportWaasPrivateKeyRequest.cjs');
@@ -1987,6 +1988,34 @@ class SDKApi extends runtime.BaseAPI {
1987
1988
  return yield response.value();
1988
1989
  });
1989
1990
  }
1991
+ /**
1992
+ * Get the global wallet settings for the environment
1993
+ */
1994
+ getGlobalWalletsSettingsRaw(requestParameters, initOverrides) {
1995
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
1996
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1997
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getGlobalWalletsSettings.');
1998
+ }
1999
+ const queryParameters = {};
2000
+ const headerParameters = {};
2001
+ const response = yield this.request({
2002
+ path: `/sdk/{environmentId}/globalWallets/settings`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2003
+ method: 'GET',
2004
+ headers: headerParameters,
2005
+ query: queryParameters,
2006
+ }, initOverrides);
2007
+ return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletSettings.GlobalWalletSettingsFromJSON(jsonValue));
2008
+ });
2009
+ }
2010
+ /**
2011
+ * Get the global wallet settings for the environment
2012
+ */
2013
+ getGlobalWalletsSettings(requestParameters, initOverrides) {
2014
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2015
+ const response = yield this.getGlobalWalletsSettingsRaw(requestParameters, initOverrides);
2016
+ return yield response.value();
2017
+ });
2018
+ }
1990
2019
  /**
1991
2020
  * Health check endpoint to check for uptime of API.
1992
2021
  */
@@ -2448,6 +2477,33 @@ class SDKApi extends runtime.BaseAPI {
2448
2477
  return yield response.value();
2449
2478
  });
2450
2479
  }
2480
+ /**
2481
+ * Options call for this endpoint
2482
+ */
2483
+ globalWalletsSettingsOptionsRaw(requestParameters, initOverrides) {
2484
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2485
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2486
+ throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling globalWalletsSettingsOptions.');
2487
+ }
2488
+ const queryParameters = {};
2489
+ const headerParameters = {};
2490
+ const response = yield this.request({
2491
+ path: `/sdk/{environmentId}/globalWallets/settings`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2492
+ method: 'OPTIONS',
2493
+ headers: headerParameters,
2494
+ query: queryParameters,
2495
+ }, initOverrides);
2496
+ return new runtime.VoidApiResponse(response);
2497
+ });
2498
+ }
2499
+ /**
2500
+ * Options call for this endpoint
2501
+ */
2502
+ globalWalletsSettingsOptions(requestParameters, initOverrides) {
2503
+ return _tslib.__awaiter(this, void 0, void 0, function* () {
2504
+ yield this.globalWalletsSettingsOptionsRaw(requestParameters, initOverrides);
2505
+ });
2506
+ }
2451
2507
  /**
2452
2508
  * Import a private key to create a waas account
2453
2509
  * Import an existing private key to create a waas account
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import { BackupKeyshareRequest, BackupKeyshareResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateWaasAccountRequest, CreateWalletAccountRequest, DeleteEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GetUserPasskeysResponse, 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, OpenRoomResponseWithServerKeygenIds, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverKeyshareResponse, RefreshKeySharesRequest, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
13
+ import { BackupKeyshareRequest, BackupKeyshareResponse, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateWaasAccountRequest, CreateWalletAccountRequest, DeleteEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, 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, OpenRoomResponseWithServerKeygenIds, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, RecoverKeyshareResponse, RefreshKeySharesRequest, RegisterEmbeddedWalletSessionKeyResponse, RegisterSessionKeyRequest, ReshareRequest, ScanWebsiteUrlRequest, ScanWebsiteUrlResponse, SdkSettingsRequest, SdkUser, SignMessageWithWaasRequest, SimulateEVMTransactionRequest, SimulateSVMTransactionRequest, SimulateTransactionResponse, SimulateUserOpRequest, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SolanaTransactionOptimizationRequest, SolanaTransactionOptimizationResponse, SupportedOnrampsResponse, TelegramPostRequest, TokenBalance, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
14
14
  export interface AuthMfaPasskeyDeviceRequest {
15
15
  environmentId: string;
16
16
  mFAAuthPasskeyDevicePostRequest: MFAAuthPasskeyDevicePostRequest;
@@ -213,6 +213,9 @@ export interface GetEnvironmentSettingsRequest {
213
213
  environmentId: string;
214
214
  sdkVersion?: string;
215
215
  }
216
+ export interface GetGlobalWalletsSettingsRequest {
217
+ environmentId: string;
218
+ }
216
219
  export interface GetHealthcheckRequest {
217
220
  environmentId: string;
218
221
  }
@@ -263,6 +266,9 @@ export interface GetUserMfaDevicesRequest {
263
266
  export interface GetUserPasskeysRequest {
264
267
  environmentId: string;
265
268
  }
269
+ export interface GlobalWalletsSettingsOptionsRequest {
270
+ environmentId: string;
271
+ }
266
272
  export interface ImportPrivateKeyRequest {
267
273
  environmentId: string;
268
274
  walletId: string;
@@ -1144,6 +1150,14 @@ export declare class SDKApi extends runtime.BaseAPI {
1144
1150
  * Get the environment\'s settings
1145
1151
  */
1146
1152
  getEnvironmentSettings(requestParameters: GetEnvironmentSettingsRequest, initOverrides?: RequestInit): Promise<ProjectSettings>;
1153
+ /**
1154
+ * Get the global wallet settings for the environment
1155
+ */
1156
+ getGlobalWalletsSettingsRaw(requestParameters: GetGlobalWalletsSettingsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<GlobalWalletSettings>>;
1157
+ /**
1158
+ * Get the global wallet settings for the environment
1159
+ */
1160
+ getGlobalWalletsSettings(requestParameters: GetGlobalWalletsSettingsRequest, initOverrides?: RequestInit): Promise<GlobalWalletSettings>;
1147
1161
  /**
1148
1162
  * Health check endpoint to check for uptime of API.
1149
1163
  */
@@ -1260,6 +1274,14 @@ export declare class SDKApi extends runtime.BaseAPI {
1260
1274
  * Gets passkey data associated with a user
1261
1275
  */
1262
1276
  getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
1277
+ /**
1278
+ * Options call for this endpoint
1279
+ */
1280
+ globalWalletsSettingsOptionsRaw(requestParameters: GlobalWalletsSettingsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
1281
+ /**
1282
+ * Options call for this endpoint
1283
+ */
1284
+ globalWalletsSettingsOptions(requestParameters: GlobalWalletsSettingsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
1263
1285
  /**
1264
1286
  * Import a private key to create a waas account
1265
1287
  * Import an existing private key to create a waas account
@@ -53,6 +53,7 @@ import '../models/ExternalWalletFundingDefaultChain.js';
53
53
  import { FarcasterSignInRequestToJSON } from '../models/FarcasterSignInRequest.js';
54
54
  import '../models/OnrampProviders.js';
55
55
  import { GetUserPasskeysResponseFromJSON } from '../models/GetUserPasskeysResponse.js';
56
+ import { GlobalWalletSettingsFromJSON } from '../models/GlobalWalletSettings.js';
56
57
  import { HealthcheckResponseFromJSON } from '../models/HealthcheckResponse.js';
57
58
  import '../models/HealthcheckStatus.js';
58
59
  import { ImportWaasPrivateKeyRequestToJSON } from '../models/ImportWaasPrivateKeyRequest.js';
@@ -1983,6 +1984,34 @@ class SDKApi extends BaseAPI {
1983
1984
  return yield response.value();
1984
1985
  });
1985
1986
  }
1987
+ /**
1988
+ * Get the global wallet settings for the environment
1989
+ */
1990
+ getGlobalWalletsSettingsRaw(requestParameters, initOverrides) {
1991
+ return __awaiter(this, void 0, void 0, function* () {
1992
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
1993
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getGlobalWalletsSettings.');
1994
+ }
1995
+ const queryParameters = {};
1996
+ const headerParameters = {};
1997
+ const response = yield this.request({
1998
+ path: `/sdk/{environmentId}/globalWallets/settings`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
1999
+ method: 'GET',
2000
+ headers: headerParameters,
2001
+ query: queryParameters,
2002
+ }, initOverrides);
2003
+ return new JSONApiResponse(response, (jsonValue) => GlobalWalletSettingsFromJSON(jsonValue));
2004
+ });
2005
+ }
2006
+ /**
2007
+ * Get the global wallet settings for the environment
2008
+ */
2009
+ getGlobalWalletsSettings(requestParameters, initOverrides) {
2010
+ return __awaiter(this, void 0, void 0, function* () {
2011
+ const response = yield this.getGlobalWalletsSettingsRaw(requestParameters, initOverrides);
2012
+ return yield response.value();
2013
+ });
2014
+ }
1986
2015
  /**
1987
2016
  * Health check endpoint to check for uptime of API.
1988
2017
  */
@@ -2444,6 +2473,33 @@ class SDKApi extends BaseAPI {
2444
2473
  return yield response.value();
2445
2474
  });
2446
2475
  }
2476
+ /**
2477
+ * Options call for this endpoint
2478
+ */
2479
+ globalWalletsSettingsOptionsRaw(requestParameters, initOverrides) {
2480
+ return __awaiter(this, void 0, void 0, function* () {
2481
+ if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
2482
+ throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling globalWalletsSettingsOptions.');
2483
+ }
2484
+ const queryParameters = {};
2485
+ const headerParameters = {};
2486
+ const response = yield this.request({
2487
+ path: `/sdk/{environmentId}/globalWallets/settings`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
2488
+ method: 'OPTIONS',
2489
+ headers: headerParameters,
2490
+ query: queryParameters,
2491
+ }, initOverrides);
2492
+ return new VoidApiResponse(response);
2493
+ });
2494
+ }
2495
+ /**
2496
+ * Options call for this endpoint
2497
+ */
2498
+ globalWalletsSettingsOptions(requestParameters, initOverrides) {
2499
+ return __awaiter(this, void 0, void 0, function* () {
2500
+ yield this.globalWalletsSettingsOptionsRaw(requestParameters, initOverrides);
2501
+ });
2502
+ }
2447
2503
  /**
2448
2504
  * Import a private key to create a waas account
2449
2505
  * Import an existing private key to create a waas account
package/src/index.cjs CHANGED
@@ -78,6 +78,7 @@ var Funding = require('./models/Funding.cjs');
78
78
  var FundingExternalWallets = require('./models/FundingExternalWallets.cjs');
79
79
  var FundingExternalWalletsMinAmount = require('./models/FundingExternalWalletsMinAmount.cjs');
80
80
  var GetUserPasskeysResponse = require('./models/GetUserPasskeysResponse.cjs');
81
+ var GlobalWalletSettings = require('./models/GlobalWalletSettings.cjs');
81
82
  var HCaptchaSettings = require('./models/HCaptchaSettings.cjs');
82
83
  var HardwareWalletEnum = require('./models/HardwareWalletEnum.cjs');
83
84
  var HardwareWalletProperties = require('./models/HardwareWalletProperties.cjs');
@@ -579,6 +580,9 @@ exports.FundingExternalWalletsMinAmountToJSON = FundingExternalWalletsMinAmount.
579
580
  exports.GetUserPasskeysResponseFromJSON = GetUserPasskeysResponse.GetUserPasskeysResponseFromJSON;
580
581
  exports.GetUserPasskeysResponseFromJSONTyped = GetUserPasskeysResponse.GetUserPasskeysResponseFromJSONTyped;
581
582
  exports.GetUserPasskeysResponseToJSON = GetUserPasskeysResponse.GetUserPasskeysResponseToJSON;
583
+ exports.GlobalWalletSettingsFromJSON = GlobalWalletSettings.GlobalWalletSettingsFromJSON;
584
+ exports.GlobalWalletSettingsFromJSONTyped = GlobalWalletSettings.GlobalWalletSettingsFromJSONTyped;
585
+ exports.GlobalWalletSettingsToJSON = GlobalWalletSettings.GlobalWalletSettingsToJSON;
582
586
  exports.HCaptchaSettingsFromJSON = HCaptchaSettings.HCaptchaSettingsFromJSON;
583
587
  exports.HCaptchaSettingsFromJSONTyped = HCaptchaSettings.HCaptchaSettingsFromJSONTyped;
584
588
  exports.HCaptchaSettingsToJSON = HCaptchaSettings.HCaptchaSettingsToJSON;
package/src/index.js CHANGED
@@ -74,6 +74,7 @@ export { FundingFromJSON, FundingFromJSONTyped, FundingToJSON } from './models/F
74
74
  export { FundingExternalWalletsFromJSON, FundingExternalWalletsFromJSONTyped, FundingExternalWalletsToJSON } from './models/FundingExternalWallets.js';
75
75
  export { FundingExternalWalletsMinAmountFromJSON, FundingExternalWalletsMinAmountFromJSONTyped, FundingExternalWalletsMinAmountToJSON } from './models/FundingExternalWalletsMinAmount.js';
76
76
  export { GetUserPasskeysResponseFromJSON, GetUserPasskeysResponseFromJSONTyped, GetUserPasskeysResponseToJSON } from './models/GetUserPasskeysResponse.js';
77
+ export { GlobalWalletSettingsFromJSON, GlobalWalletSettingsFromJSONTyped, GlobalWalletSettingsToJSON } from './models/GlobalWalletSettings.js';
77
78
  export { HCaptchaSettingsFromJSON, HCaptchaSettingsFromJSONTyped, HCaptchaSettingsToJSON } from './models/HCaptchaSettings.js';
78
79
  export { HardwareWalletEnum, HardwareWalletEnumFromJSON, HardwareWalletEnumFromJSONTyped, HardwareWalletEnumToJSON } from './models/HardwareWalletEnum.js';
79
80
  export { HardwareWalletPropertiesFromJSON, HardwareWalletPropertiesFromJSONTyped, HardwareWalletPropertiesToJSON } from './models/HardwareWalletProperties.js';
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function GlobalWalletSettingsFromJSON(json) {
9
+ return GlobalWalletSettingsFromJSONTyped(json);
10
+ }
11
+ function GlobalWalletSettingsFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'id': json['id'],
17
+ 'walletName': json['walletName'],
18
+ 'popupPageTitle': !runtime.exists(json, 'popupPageTitle') ? undefined : json['popupPageTitle'],
19
+ 'walletIconUrl': !runtime.exists(json, 'walletIconUrl') ? undefined : json['walletIconUrl'],
20
+ 'customCssUrl': !runtime.exists(json, 'customCssUrl') ? undefined : json['customCssUrl'],
21
+ 'enabledAt': !runtime.exists(json, 'enabledAt') ? undefined : (json['enabledAt'] === null ? null : new Date(json['enabledAt'])),
22
+ };
23
+ }
24
+ function GlobalWalletSettingsToJSON(value) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ 'id': value.id,
33
+ 'walletName': value.walletName,
34
+ 'popupPageTitle': value.popupPageTitle,
35
+ 'walletIconUrl': value.walletIconUrl,
36
+ 'customCssUrl': value.customCssUrl,
37
+ 'enabledAt': value.enabledAt === undefined ? undefined : (value.enabledAt === null ? null : value.enabledAt.toISOString()),
38
+ };
39
+ }
40
+
41
+ exports.GlobalWalletSettingsFromJSON = GlobalWalletSettingsFromJSON;
42
+ exports.GlobalWalletSettingsFromJSONTyped = GlobalWalletSettingsFromJSONTyped;
43
+ exports.GlobalWalletSettingsToJSON = GlobalWalletSettingsToJSON;
@@ -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 GlobalWalletSettings
16
+ */
17
+ export interface GlobalWalletSettings {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GlobalWalletSettings
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof GlobalWalletSettings
28
+ */
29
+ walletName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof GlobalWalletSettings
34
+ */
35
+ popupPageTitle?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof GlobalWalletSettings
40
+ */
41
+ walletIconUrl?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof GlobalWalletSettings
46
+ */
47
+ customCssUrl?: string;
48
+ /**
49
+ * If global wallet is enabled, then this timestamp will be present.
50
+ * @type {Date}
51
+ * @memberof GlobalWalletSettings
52
+ */
53
+ enabledAt?: Date | null;
54
+ }
55
+ export declare function GlobalWalletSettingsFromJSON(json: any): GlobalWalletSettings;
56
+ export declare function GlobalWalletSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalWalletSettings;
57
+ export declare function GlobalWalletSettingsToJSON(value?: GlobalWalletSettings | null): any;
@@ -0,0 +1,37 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function GlobalWalletSettingsFromJSON(json) {
5
+ return GlobalWalletSettingsFromJSONTyped(json);
6
+ }
7
+ function GlobalWalletSettingsFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'id': json['id'],
13
+ 'walletName': json['walletName'],
14
+ 'popupPageTitle': !exists(json, 'popupPageTitle') ? undefined : json['popupPageTitle'],
15
+ 'walletIconUrl': !exists(json, 'walletIconUrl') ? undefined : json['walletIconUrl'],
16
+ 'customCssUrl': !exists(json, 'customCssUrl') ? undefined : json['customCssUrl'],
17
+ 'enabledAt': !exists(json, 'enabledAt') ? undefined : (json['enabledAt'] === null ? null : new Date(json['enabledAt'])),
18
+ };
19
+ }
20
+ function GlobalWalletSettingsToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'id': value.id,
29
+ 'walletName': value.walletName,
30
+ 'popupPageTitle': value.popupPageTitle,
31
+ 'walletIconUrl': value.walletIconUrl,
32
+ 'customCssUrl': value.customCssUrl,
33
+ 'enabledAt': value.enabledAt === undefined ? undefined : (value.enabledAt === null ? null : value.enabledAt.toISOString()),
34
+ };
35
+ }
36
+
37
+ export { GlobalWalletSettingsFromJSON, GlobalWalletSettingsFromJSONTyped, GlobalWalletSettingsToJSON };
@@ -72,6 +72,7 @@ export * from './Funding';
72
72
  export * from './FundingExternalWallets';
73
73
  export * from './FundingExternalWalletsMinAmount';
74
74
  export * from './GetUserPasskeysResponse';
75
+ export * from './GlobalWalletSettings';
75
76
  export * from './HCaptchaSettings';
76
77
  export * from './HardwareWalletEnum';
77
78
  export * from './HardwareWalletProperties';