@dynamic-labs/sdk-api-core 0.0.735 → 0.0.737
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 +1 -1
- package/src/apis/SDKApi.cjs +141 -0
- package/src/apis/SDKApi.d.ts +49 -1
- package/src/apis/SDKApi.js +141 -0
- package/src/index.cjs +16 -0
- package/src/index.js +3 -0
- package/src/models/GlobalWalletConnection.cjs +48 -0
- package/src/models/GlobalWalletConnection.d.ts +70 -0
- package/src/models/GlobalWalletConnection.js +42 -0
- package/src/models/GlobalWalletConnectionCreateRequest.cjs +45 -0
- package/src/models/GlobalWalletConnectionCreateRequest.d.ts +33 -0
- package/src/models/GlobalWalletConnectionCreateRequest.js +39 -0
- package/src/models/GlobalWalletConnectionStatusEnum.cjs +40 -0
- package/src/models/GlobalWalletConnectionStatusEnum.d.ts +23 -0
- package/src/models/GlobalWalletConnectionStatusEnum.js +34 -0
- package/src/models/MultichainAccountBalancesRequestBalanceRequests.cjs +3 -0
- package/src/models/MultichainAccountBalancesRequestBalanceRequests.d.ts +6 -0
- package/src/models/MultichainAccountBalancesRequestBalanceRequests.js +3 -0
- package/src/models/UnprocessableEntityErrorCode.cjs +1 -0
- package/src/models/UnprocessableEntityErrorCode.d.ts +2 -1
- package/src/models/UnprocessableEntityErrorCode.js +1 -0
- package/src/models/index.d.ts +3 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -74,6 +74,9 @@ var GetPasskeyAuthenticationOptionsResponse = require('../models/GetPasskeyAuthe
|
|
|
74
74
|
var GetPasskeyRegistrationOptionsResponse = require('../models/GetPasskeyRegistrationOptionsResponse.cjs');
|
|
75
75
|
var GetUserPasskeysResponse = require('../models/GetUserPasskeysResponse.cjs');
|
|
76
76
|
require('../models/GlobalWalletAccessControlTypeEnum.cjs');
|
|
77
|
+
var GlobalWalletConnection = require('../models/GlobalWalletConnection.cjs');
|
|
78
|
+
var GlobalWalletConnectionCreateRequest = require('../models/GlobalWalletConnectionCreateRequest.cjs');
|
|
79
|
+
require('../models/GlobalWalletConnectionStatusEnum.cjs');
|
|
77
80
|
var GlobalWalletSettings = require('../models/GlobalWalletSettings.cjs');
|
|
78
81
|
var HealthcheckResponse = require('../models/HealthcheckResponse.cjs');
|
|
79
82
|
require('../models/HealthcheckStatus.cjs');
|
|
@@ -1098,6 +1101,46 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
1098
1101
|
yield this.createEmbeddedWalletsOptionsRaw(requestParameters, initOverrides);
|
|
1099
1102
|
});
|
|
1100
1103
|
}
|
|
1104
|
+
/**
|
|
1105
|
+
* Track a global wallet connection
|
|
1106
|
+
*/
|
|
1107
|
+
createGlobalWalletConnectionRaw(requestParameters, initOverrides) {
|
|
1108
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1109
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1110
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createGlobalWalletConnection.');
|
|
1111
|
+
}
|
|
1112
|
+
if (requestParameters.globalWalletConnectionCreateRequest === null || requestParameters.globalWalletConnectionCreateRequest === undefined) {
|
|
1113
|
+
throw new runtime.RequiredError('globalWalletConnectionCreateRequest', 'Required parameter requestParameters.globalWalletConnectionCreateRequest was null or undefined when calling createGlobalWalletConnection.');
|
|
1114
|
+
}
|
|
1115
|
+
const queryParameters = {};
|
|
1116
|
+
const headerParameters = {};
|
|
1117
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1118
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1119
|
+
const token = this.configuration.accessToken;
|
|
1120
|
+
const tokenString = yield token("bearerAuth", []);
|
|
1121
|
+
if (tokenString) {
|
|
1122
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
const response = yield this.request({
|
|
1126
|
+
path: `/sdk/{environmentId}/globalWallets/connections`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1127
|
+
method: 'POST',
|
|
1128
|
+
headers: headerParameters,
|
|
1129
|
+
query: queryParameters,
|
|
1130
|
+
body: GlobalWalletConnectionCreateRequest.GlobalWalletConnectionCreateRequestToJSON(requestParameters.globalWalletConnectionCreateRequest),
|
|
1131
|
+
}, initOverrides);
|
|
1132
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletConnection.GlobalWalletConnectionFromJSON(jsonValue));
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1135
|
+
/**
|
|
1136
|
+
* Track a global wallet connection
|
|
1137
|
+
*/
|
|
1138
|
+
createGlobalWalletConnection(requestParameters, initOverrides) {
|
|
1139
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1140
|
+
const response = yield this.createGlobalWalletConnectionRaw(requestParameters, initOverrides);
|
|
1141
|
+
return yield response.value();
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1101
1144
|
/**
|
|
1102
1145
|
* Generate new recovery codes for user
|
|
1103
1146
|
*/
|
|
@@ -1419,6 +1462,74 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
1419
1462
|
yield this.deleteMfaDeviceRaw(requestParameters, initOverrides);
|
|
1420
1463
|
});
|
|
1421
1464
|
}
|
|
1465
|
+
/**
|
|
1466
|
+
* Set a global wallet connection as disconnected
|
|
1467
|
+
*/
|
|
1468
|
+
disconnectGlobalWalletConnectionRaw(requestParameters, initOverrides) {
|
|
1469
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1470
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1471
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling disconnectGlobalWalletConnection.');
|
|
1472
|
+
}
|
|
1473
|
+
if (requestParameters.globalWalletConnectionId === null || requestParameters.globalWalletConnectionId === undefined) {
|
|
1474
|
+
throw new runtime.RequiredError('globalWalletConnectionId', 'Required parameter requestParameters.globalWalletConnectionId was null or undefined when calling disconnectGlobalWalletConnection.');
|
|
1475
|
+
}
|
|
1476
|
+
const queryParameters = {};
|
|
1477
|
+
const headerParameters = {};
|
|
1478
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1479
|
+
const token = this.configuration.accessToken;
|
|
1480
|
+
const tokenString = yield token("bearerAuth", []);
|
|
1481
|
+
if (tokenString) {
|
|
1482
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
const response = yield this.request({
|
|
1486
|
+
path: `/sdk/{environmentId}/globalWallets/connections/{globalWalletConnectionId}/disconnect`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"globalWalletConnectionId"}}`, encodeURIComponent(String(requestParameters.globalWalletConnectionId))),
|
|
1487
|
+
method: 'PUT',
|
|
1488
|
+
headers: headerParameters,
|
|
1489
|
+
query: queryParameters,
|
|
1490
|
+
}, initOverrides);
|
|
1491
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GlobalWalletConnection.GlobalWalletConnectionFromJSON(jsonValue));
|
|
1492
|
+
});
|
|
1493
|
+
}
|
|
1494
|
+
/**
|
|
1495
|
+
* Set a global wallet connection as disconnected
|
|
1496
|
+
*/
|
|
1497
|
+
disconnectGlobalWalletConnection(requestParameters, initOverrides) {
|
|
1498
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1499
|
+
const response = yield this.disconnectGlobalWalletConnectionRaw(requestParameters, initOverrides);
|
|
1500
|
+
return yield response.value();
|
|
1501
|
+
});
|
|
1502
|
+
}
|
|
1503
|
+
/**
|
|
1504
|
+
* Options call for this endpoint
|
|
1505
|
+
*/
|
|
1506
|
+
disconnectGlobalWalletConnectionOptionsRaw(requestParameters, initOverrides) {
|
|
1507
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1508
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1509
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling disconnectGlobalWalletConnectionOptions.');
|
|
1510
|
+
}
|
|
1511
|
+
if (requestParameters.globalWalletConnectionId === null || requestParameters.globalWalletConnectionId === undefined) {
|
|
1512
|
+
throw new runtime.RequiredError('globalWalletConnectionId', 'Required parameter requestParameters.globalWalletConnectionId was null or undefined when calling disconnectGlobalWalletConnectionOptions.');
|
|
1513
|
+
}
|
|
1514
|
+
const queryParameters = {};
|
|
1515
|
+
const headerParameters = {};
|
|
1516
|
+
const response = yield this.request({
|
|
1517
|
+
path: `/sdk/{environmentId}/globalWallets/connections/{globalWalletConnectionId}/disconnect`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"globalWalletConnectionId"}}`, encodeURIComponent(String(requestParameters.globalWalletConnectionId))),
|
|
1518
|
+
method: 'OPTIONS',
|
|
1519
|
+
headers: headerParameters,
|
|
1520
|
+
query: queryParameters,
|
|
1521
|
+
}, initOverrides);
|
|
1522
|
+
return new runtime.VoidApiResponse(response);
|
|
1523
|
+
});
|
|
1524
|
+
}
|
|
1525
|
+
/**
|
|
1526
|
+
* Options call for this endpoint
|
|
1527
|
+
*/
|
|
1528
|
+
disconnectGlobalWalletConnectionOptions(requestParameters, initOverrides) {
|
|
1529
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1530
|
+
yield this.disconnectGlobalWalletConnectionOptionsRaw(requestParameters, initOverrides);
|
|
1531
|
+
});
|
|
1532
|
+
}
|
|
1422
1533
|
/**
|
|
1423
1534
|
* Options call for this endpoint
|
|
1424
1535
|
*/
|
|
@@ -1965,6 +2076,9 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
1965
2076
|
if (requestParameters.filterSpamTokens !== undefined) {
|
|
1966
2077
|
queryParameters['filterSpamTokens'] = requestParameters.filterSpamTokens;
|
|
1967
2078
|
}
|
|
2079
|
+
if (requestParameters.whitelistedContracts) {
|
|
2080
|
+
queryParameters['whitelistedContracts'] = requestParameters.whitelistedContracts;
|
|
2081
|
+
}
|
|
1968
2082
|
if (requestParameters.forceRefresh !== undefined) {
|
|
1969
2083
|
queryParameters['forceRefresh'] = requestParameters.forceRefresh;
|
|
1970
2084
|
}
|
|
@@ -3516,6 +3630,33 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
3516
3630
|
return yield response.value();
|
|
3517
3631
|
});
|
|
3518
3632
|
}
|
|
3633
|
+
/**
|
|
3634
|
+
* Options call for this endpoint
|
|
3635
|
+
*/
|
|
3636
|
+
globalWalletConnectionsOptionsRaw(requestParameters, initOverrides) {
|
|
3637
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3638
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3639
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling globalWalletConnectionsOptions.');
|
|
3640
|
+
}
|
|
3641
|
+
const queryParameters = {};
|
|
3642
|
+
const headerParameters = {};
|
|
3643
|
+
const response = yield this.request({
|
|
3644
|
+
path: `/sdk/{environmentId}/globalWallets/connections`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3645
|
+
method: 'OPTIONS',
|
|
3646
|
+
headers: headerParameters,
|
|
3647
|
+
query: queryParameters,
|
|
3648
|
+
}, initOverrides);
|
|
3649
|
+
return new runtime.VoidApiResponse(response);
|
|
3650
|
+
});
|
|
3651
|
+
}
|
|
3652
|
+
/**
|
|
3653
|
+
* Options call for this endpoint
|
|
3654
|
+
*/
|
|
3655
|
+
globalWalletConnectionsOptions(requestParameters, initOverrides) {
|
|
3656
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3657
|
+
yield this.globalWalletConnectionsOptionsRaw(requestParameters, initOverrides);
|
|
3658
|
+
});
|
|
3659
|
+
}
|
|
3519
3660
|
/**
|
|
3520
3661
|
* Options call for this endpoint
|
|
3521
3662
|
*/
|
package/src/apis/SDKApi.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { Account, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateWaasAccountRequest, CreateWalletAccountRequest, Currency, DeleteEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, 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, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
13
|
+
import { Account, BackupKeySharesToLocationRequest, BackupKeySharesToLocationResponse, BackupKeySharesToLocationsRequest, BackupKeySharesToLocationsResponse, BackupMultipleClientKeySharesRequest, BackupMultipleClientKeySharesResponse, ChainEnum, CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, CreateExchangeTransferRequest, CreateWaasAccountRequest, CreateWalletAccountRequest, Currency, DeleteEmbeddedWalletsRequest, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationMfaRequest, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletChainEnum, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExchangeKeyEnum, ExchangeTransaction, ExchangeTransferResponse, ExportEmbeddedWalletResponse, ExportWaasWalletPrivateKeyRequest, ExternalAuthSigninRequest, FarcasterSignInRequest, GetPasskeyAuthenticationOptionsResponse, GetPasskeyRegistrationOptionsResponse, GetUserPasskeysResponse, GlobalWalletConnection, GlobalWalletConnectionCreateRequest, GlobalWalletSettings, HealthcheckResponse, ImportWaasPrivateKeyRequest, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFAMethodsResponse, MFARegenRecoveryCodesResponse, MFARegisterPasskeyDeviceGetResponse, MFARegisterPasskeyDevicePostRequest, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, MultichainAccountBalanceResponse, MultichainAccountBalancesRequest, NetworkConfigurationResponse, NonceResponse, OauthInitAuthRequest, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, OpenRoomResponse, OpenRoomResponseForReshare, OpenRoomResponseWithServerKeygenIds, PasskeyAuthRequest, PasskeyRegisterRequest, 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, TransferDestinationResponse, TurnkeyCreateWalletAccountsRequestBody, TurnkeyDeleteEmbeddedWalletsRequestBody, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UpgradeEmbeddedWalletToV2Request, UserFields, UserFieldsCheckParams, UserFieldsCheckResponse, UserOauthAccessTokenResponse, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
14
14
|
export interface AuthMfaEmailDeviceOptionsRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
}
|
|
@@ -117,6 +117,10 @@ export interface CreateEmbeddedWalletsOperationRequest {
|
|
|
117
117
|
export interface CreateEmbeddedWalletsOptionsRequest {
|
|
118
118
|
environmentId: string;
|
|
119
119
|
}
|
|
120
|
+
export interface CreateGlobalWalletConnectionRequest {
|
|
121
|
+
environmentId: string;
|
|
122
|
+
globalWalletConnectionCreateRequest: GlobalWalletConnectionCreateRequest;
|
|
123
|
+
}
|
|
120
124
|
export interface CreateNewRecoveryCodesRequest {
|
|
121
125
|
environmentId: string;
|
|
122
126
|
}
|
|
@@ -151,6 +155,14 @@ export interface DeleteMfaDeviceRequest {
|
|
|
151
155
|
mfaDeviceId: string;
|
|
152
156
|
xMfaAuthToken: string;
|
|
153
157
|
}
|
|
158
|
+
export interface DisconnectGlobalWalletConnectionRequest {
|
|
159
|
+
environmentId: string;
|
|
160
|
+
globalWalletConnectionId: string;
|
|
161
|
+
}
|
|
162
|
+
export interface DisconnectGlobalWalletConnectionOptionsRequest {
|
|
163
|
+
environmentId: string;
|
|
164
|
+
globalWalletConnectionId: string;
|
|
165
|
+
}
|
|
154
166
|
export interface EmailAuthOptionsRequest {
|
|
155
167
|
environmentId: string;
|
|
156
168
|
}
|
|
@@ -219,6 +231,7 @@ export interface GetAccountBalancesRequest {
|
|
|
219
231
|
includePrices?: boolean;
|
|
220
232
|
includeNative?: boolean;
|
|
221
233
|
filterSpamTokens?: boolean;
|
|
234
|
+
whitelistedContracts?: Array<string>;
|
|
222
235
|
forceRefresh?: boolean;
|
|
223
236
|
}
|
|
224
237
|
export interface GetAccountBalancesOptionsRequest {
|
|
@@ -393,6 +406,9 @@ export interface GetUserMfaMethodsRequest {
|
|
|
393
406
|
export interface GetUserPasskeysRequest {
|
|
394
407
|
environmentId: string;
|
|
395
408
|
}
|
|
409
|
+
export interface GlobalWalletConnectionsOptionsRequest {
|
|
410
|
+
environmentId: string;
|
|
411
|
+
}
|
|
396
412
|
export interface GlobalWalletsSettingsOptionsRequest {
|
|
397
413
|
environmentId: string;
|
|
398
414
|
}
|
|
@@ -1100,6 +1116,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1100
1116
|
* Options call for this endpoint
|
|
1101
1117
|
*/
|
|
1102
1118
|
createEmbeddedWalletsOptions(requestParameters: CreateEmbeddedWalletsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Track a global wallet connection
|
|
1121
|
+
*/
|
|
1122
|
+
createGlobalWalletConnectionRaw(requestParameters: CreateGlobalWalletConnectionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<GlobalWalletConnection>>;
|
|
1123
|
+
/**
|
|
1124
|
+
* Track a global wallet connection
|
|
1125
|
+
*/
|
|
1126
|
+
createGlobalWalletConnection(requestParameters: CreateGlobalWalletConnectionRequest, initOverrides?: RequestInit): Promise<GlobalWalletConnection>;
|
|
1103
1127
|
/**
|
|
1104
1128
|
* Generate new recovery codes for user
|
|
1105
1129
|
*/
|
|
@@ -1180,6 +1204,22 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1180
1204
|
* Delete a device (if not default device)
|
|
1181
1205
|
*/
|
|
1182
1206
|
deleteMfaDevice(requestParameters: DeleteMfaDeviceRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1207
|
+
/**
|
|
1208
|
+
* Set a global wallet connection as disconnected
|
|
1209
|
+
*/
|
|
1210
|
+
disconnectGlobalWalletConnectionRaw(requestParameters: DisconnectGlobalWalletConnectionRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<GlobalWalletConnection>>;
|
|
1211
|
+
/**
|
|
1212
|
+
* Set a global wallet connection as disconnected
|
|
1213
|
+
*/
|
|
1214
|
+
disconnectGlobalWalletConnection(requestParameters: DisconnectGlobalWalletConnectionRequest, initOverrides?: RequestInit): Promise<GlobalWalletConnection>;
|
|
1215
|
+
/**
|
|
1216
|
+
* Options call for this endpoint
|
|
1217
|
+
*/
|
|
1218
|
+
disconnectGlobalWalletConnectionOptionsRaw(requestParameters: DisconnectGlobalWalletConnectionOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1219
|
+
/**
|
|
1220
|
+
* Options call for this endpoint
|
|
1221
|
+
*/
|
|
1222
|
+
disconnectGlobalWalletConnectionOptions(requestParameters: DisconnectGlobalWalletConnectionOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1183
1223
|
/**
|
|
1184
1224
|
* Options call for this endpoint
|
|
1185
1225
|
*/
|
|
@@ -1702,6 +1742,14 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1702
1742
|
* Gets passkey data associated with a user
|
|
1703
1743
|
*/
|
|
1704
1744
|
getUserPasskeys(requestParameters: GetUserPasskeysRequest, initOverrides?: RequestInit): Promise<GetUserPasskeysResponse>;
|
|
1745
|
+
/**
|
|
1746
|
+
* Options call for this endpoint
|
|
1747
|
+
*/
|
|
1748
|
+
globalWalletConnectionsOptionsRaw(requestParameters: GlobalWalletConnectionsOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1749
|
+
/**
|
|
1750
|
+
* Options call for this endpoint
|
|
1751
|
+
*/
|
|
1752
|
+
globalWalletConnectionsOptions(requestParameters: GlobalWalletConnectionsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1705
1753
|
/**
|
|
1706
1754
|
* Options call for this endpoint
|
|
1707
1755
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -70,6 +70,9 @@ import { GetPasskeyAuthenticationOptionsResponseFromJSON } from '../models/GetPa
|
|
|
70
70
|
import { GetPasskeyRegistrationOptionsResponseFromJSON } from '../models/GetPasskeyRegistrationOptionsResponse.js';
|
|
71
71
|
import { GetUserPasskeysResponseFromJSON } from '../models/GetUserPasskeysResponse.js';
|
|
72
72
|
import '../models/GlobalWalletAccessControlTypeEnum.js';
|
|
73
|
+
import { GlobalWalletConnectionFromJSON } from '../models/GlobalWalletConnection.js';
|
|
74
|
+
import { GlobalWalletConnectionCreateRequestToJSON } from '../models/GlobalWalletConnectionCreateRequest.js';
|
|
75
|
+
import '../models/GlobalWalletConnectionStatusEnum.js';
|
|
73
76
|
import { GlobalWalletSettingsFromJSON } from '../models/GlobalWalletSettings.js';
|
|
74
77
|
import { HealthcheckResponseFromJSON } from '../models/HealthcheckResponse.js';
|
|
75
78
|
import '../models/HealthcheckStatus.js';
|
|
@@ -1094,6 +1097,46 @@ class SDKApi extends BaseAPI {
|
|
|
1094
1097
|
yield this.createEmbeddedWalletsOptionsRaw(requestParameters, initOverrides);
|
|
1095
1098
|
});
|
|
1096
1099
|
}
|
|
1100
|
+
/**
|
|
1101
|
+
* Track a global wallet connection
|
|
1102
|
+
*/
|
|
1103
|
+
createGlobalWalletConnectionRaw(requestParameters, initOverrides) {
|
|
1104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1105
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1106
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling createGlobalWalletConnection.');
|
|
1107
|
+
}
|
|
1108
|
+
if (requestParameters.globalWalletConnectionCreateRequest === null || requestParameters.globalWalletConnectionCreateRequest === undefined) {
|
|
1109
|
+
throw new RequiredError('globalWalletConnectionCreateRequest', 'Required parameter requestParameters.globalWalletConnectionCreateRequest was null or undefined when calling createGlobalWalletConnection.');
|
|
1110
|
+
}
|
|
1111
|
+
const queryParameters = {};
|
|
1112
|
+
const headerParameters = {};
|
|
1113
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1114
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1115
|
+
const token = this.configuration.accessToken;
|
|
1116
|
+
const tokenString = yield token("bearerAuth", []);
|
|
1117
|
+
if (tokenString) {
|
|
1118
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
const response = yield this.request({
|
|
1122
|
+
path: `/sdk/{environmentId}/globalWallets/connections`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
1123
|
+
method: 'POST',
|
|
1124
|
+
headers: headerParameters,
|
|
1125
|
+
query: queryParameters,
|
|
1126
|
+
body: GlobalWalletConnectionCreateRequestToJSON(requestParameters.globalWalletConnectionCreateRequest),
|
|
1127
|
+
}, initOverrides);
|
|
1128
|
+
return new JSONApiResponse(response, (jsonValue) => GlobalWalletConnectionFromJSON(jsonValue));
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1131
|
+
/**
|
|
1132
|
+
* Track a global wallet connection
|
|
1133
|
+
*/
|
|
1134
|
+
createGlobalWalletConnection(requestParameters, initOverrides) {
|
|
1135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1136
|
+
const response = yield this.createGlobalWalletConnectionRaw(requestParameters, initOverrides);
|
|
1137
|
+
return yield response.value();
|
|
1138
|
+
});
|
|
1139
|
+
}
|
|
1097
1140
|
/**
|
|
1098
1141
|
* Generate new recovery codes for user
|
|
1099
1142
|
*/
|
|
@@ -1415,6 +1458,74 @@ class SDKApi extends BaseAPI {
|
|
|
1415
1458
|
yield this.deleteMfaDeviceRaw(requestParameters, initOverrides);
|
|
1416
1459
|
});
|
|
1417
1460
|
}
|
|
1461
|
+
/**
|
|
1462
|
+
* Set a global wallet connection as disconnected
|
|
1463
|
+
*/
|
|
1464
|
+
disconnectGlobalWalletConnectionRaw(requestParameters, initOverrides) {
|
|
1465
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1466
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1467
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling disconnectGlobalWalletConnection.');
|
|
1468
|
+
}
|
|
1469
|
+
if (requestParameters.globalWalletConnectionId === null || requestParameters.globalWalletConnectionId === undefined) {
|
|
1470
|
+
throw new RequiredError('globalWalletConnectionId', 'Required parameter requestParameters.globalWalletConnectionId was null or undefined when calling disconnectGlobalWalletConnection.');
|
|
1471
|
+
}
|
|
1472
|
+
const queryParameters = {};
|
|
1473
|
+
const headerParameters = {};
|
|
1474
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
1475
|
+
const token = this.configuration.accessToken;
|
|
1476
|
+
const tokenString = yield token("bearerAuth", []);
|
|
1477
|
+
if (tokenString) {
|
|
1478
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
const response = yield this.request({
|
|
1482
|
+
path: `/sdk/{environmentId}/globalWallets/connections/{globalWalletConnectionId}/disconnect`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"globalWalletConnectionId"}}`, encodeURIComponent(String(requestParameters.globalWalletConnectionId))),
|
|
1483
|
+
method: 'PUT',
|
|
1484
|
+
headers: headerParameters,
|
|
1485
|
+
query: queryParameters,
|
|
1486
|
+
}, initOverrides);
|
|
1487
|
+
return new JSONApiResponse(response, (jsonValue) => GlobalWalletConnectionFromJSON(jsonValue));
|
|
1488
|
+
});
|
|
1489
|
+
}
|
|
1490
|
+
/**
|
|
1491
|
+
* Set a global wallet connection as disconnected
|
|
1492
|
+
*/
|
|
1493
|
+
disconnectGlobalWalletConnection(requestParameters, initOverrides) {
|
|
1494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1495
|
+
const response = yield this.disconnectGlobalWalletConnectionRaw(requestParameters, initOverrides);
|
|
1496
|
+
return yield response.value();
|
|
1497
|
+
});
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* Options call for this endpoint
|
|
1501
|
+
*/
|
|
1502
|
+
disconnectGlobalWalletConnectionOptionsRaw(requestParameters, initOverrides) {
|
|
1503
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1504
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
1505
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling disconnectGlobalWalletConnectionOptions.');
|
|
1506
|
+
}
|
|
1507
|
+
if (requestParameters.globalWalletConnectionId === null || requestParameters.globalWalletConnectionId === undefined) {
|
|
1508
|
+
throw new RequiredError('globalWalletConnectionId', 'Required parameter requestParameters.globalWalletConnectionId was null or undefined when calling disconnectGlobalWalletConnectionOptions.');
|
|
1509
|
+
}
|
|
1510
|
+
const queryParameters = {};
|
|
1511
|
+
const headerParameters = {};
|
|
1512
|
+
const response = yield this.request({
|
|
1513
|
+
path: `/sdk/{environmentId}/globalWallets/connections/{globalWalletConnectionId}/disconnect`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"globalWalletConnectionId"}}`, encodeURIComponent(String(requestParameters.globalWalletConnectionId))),
|
|
1514
|
+
method: 'OPTIONS',
|
|
1515
|
+
headers: headerParameters,
|
|
1516
|
+
query: queryParameters,
|
|
1517
|
+
}, initOverrides);
|
|
1518
|
+
return new VoidApiResponse(response);
|
|
1519
|
+
});
|
|
1520
|
+
}
|
|
1521
|
+
/**
|
|
1522
|
+
* Options call for this endpoint
|
|
1523
|
+
*/
|
|
1524
|
+
disconnectGlobalWalletConnectionOptions(requestParameters, initOverrides) {
|
|
1525
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1526
|
+
yield this.disconnectGlobalWalletConnectionOptionsRaw(requestParameters, initOverrides);
|
|
1527
|
+
});
|
|
1528
|
+
}
|
|
1418
1529
|
/**
|
|
1419
1530
|
* Options call for this endpoint
|
|
1420
1531
|
*/
|
|
@@ -1961,6 +2072,9 @@ class SDKApi extends BaseAPI {
|
|
|
1961
2072
|
if (requestParameters.filterSpamTokens !== undefined) {
|
|
1962
2073
|
queryParameters['filterSpamTokens'] = requestParameters.filterSpamTokens;
|
|
1963
2074
|
}
|
|
2075
|
+
if (requestParameters.whitelistedContracts) {
|
|
2076
|
+
queryParameters['whitelistedContracts'] = requestParameters.whitelistedContracts;
|
|
2077
|
+
}
|
|
1964
2078
|
if (requestParameters.forceRefresh !== undefined) {
|
|
1965
2079
|
queryParameters['forceRefresh'] = requestParameters.forceRefresh;
|
|
1966
2080
|
}
|
|
@@ -3512,6 +3626,33 @@ class SDKApi extends BaseAPI {
|
|
|
3512
3626
|
return yield response.value();
|
|
3513
3627
|
});
|
|
3514
3628
|
}
|
|
3629
|
+
/**
|
|
3630
|
+
* Options call for this endpoint
|
|
3631
|
+
*/
|
|
3632
|
+
globalWalletConnectionsOptionsRaw(requestParameters, initOverrides) {
|
|
3633
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3634
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
3635
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling globalWalletConnectionsOptions.');
|
|
3636
|
+
}
|
|
3637
|
+
const queryParameters = {};
|
|
3638
|
+
const headerParameters = {};
|
|
3639
|
+
const response = yield this.request({
|
|
3640
|
+
path: `/sdk/{environmentId}/globalWallets/connections`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3641
|
+
method: 'OPTIONS',
|
|
3642
|
+
headers: headerParameters,
|
|
3643
|
+
query: queryParameters,
|
|
3644
|
+
}, initOverrides);
|
|
3645
|
+
return new VoidApiResponse(response);
|
|
3646
|
+
});
|
|
3647
|
+
}
|
|
3648
|
+
/**
|
|
3649
|
+
* Options call for this endpoint
|
|
3650
|
+
*/
|
|
3651
|
+
globalWalletConnectionsOptions(requestParameters, initOverrides) {
|
|
3652
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3653
|
+
yield this.globalWalletConnectionsOptionsRaw(requestParameters, initOverrides);
|
|
3654
|
+
});
|
|
3655
|
+
}
|
|
3515
3656
|
/**
|
|
3516
3657
|
* Options call for this endpoint
|
|
3517
3658
|
*/
|
package/src/index.cjs
CHANGED
|
@@ -103,6 +103,9 @@ var GetPasskeyAuthenticationOptionsResponse = require('./models/GetPasskeyAuthen
|
|
|
103
103
|
var GetPasskeyRegistrationOptionsResponse = require('./models/GetPasskeyRegistrationOptionsResponse.cjs');
|
|
104
104
|
var GetUserPasskeysResponse = require('./models/GetUserPasskeysResponse.cjs');
|
|
105
105
|
var GlobalWalletAccessControlTypeEnum = require('./models/GlobalWalletAccessControlTypeEnum.cjs');
|
|
106
|
+
var GlobalWalletConnection = require('./models/GlobalWalletConnection.cjs');
|
|
107
|
+
var GlobalWalletConnectionCreateRequest = require('./models/GlobalWalletConnectionCreateRequest.cjs');
|
|
108
|
+
var GlobalWalletConnectionStatusEnum = require('./models/GlobalWalletConnectionStatusEnum.cjs');
|
|
106
109
|
var GlobalWalletSettings = require('./models/GlobalWalletSettings.cjs');
|
|
107
110
|
var GlobalWalletSettingsCustomMenuLinks = require('./models/GlobalWalletSettingsCustomMenuLinks.cjs');
|
|
108
111
|
var HCaptchaSettings = require('./models/HCaptchaSettings.cjs');
|
|
@@ -716,6 +719,19 @@ Object.defineProperty(exports, 'GlobalWalletAccessControlTypeEnum', {
|
|
|
716
719
|
exports.GlobalWalletAccessControlTypeEnumFromJSON = GlobalWalletAccessControlTypeEnum.GlobalWalletAccessControlTypeEnumFromJSON;
|
|
717
720
|
exports.GlobalWalletAccessControlTypeEnumFromJSONTyped = GlobalWalletAccessControlTypeEnum.GlobalWalletAccessControlTypeEnumFromJSONTyped;
|
|
718
721
|
exports.GlobalWalletAccessControlTypeEnumToJSON = GlobalWalletAccessControlTypeEnum.GlobalWalletAccessControlTypeEnumToJSON;
|
|
722
|
+
exports.GlobalWalletConnectionFromJSON = GlobalWalletConnection.GlobalWalletConnectionFromJSON;
|
|
723
|
+
exports.GlobalWalletConnectionFromJSONTyped = GlobalWalletConnection.GlobalWalletConnectionFromJSONTyped;
|
|
724
|
+
exports.GlobalWalletConnectionToJSON = GlobalWalletConnection.GlobalWalletConnectionToJSON;
|
|
725
|
+
exports.GlobalWalletConnectionCreateRequestFromJSON = GlobalWalletConnectionCreateRequest.GlobalWalletConnectionCreateRequestFromJSON;
|
|
726
|
+
exports.GlobalWalletConnectionCreateRequestFromJSONTyped = GlobalWalletConnectionCreateRequest.GlobalWalletConnectionCreateRequestFromJSONTyped;
|
|
727
|
+
exports.GlobalWalletConnectionCreateRequestToJSON = GlobalWalletConnectionCreateRequest.GlobalWalletConnectionCreateRequestToJSON;
|
|
728
|
+
Object.defineProperty(exports, 'GlobalWalletConnectionStatusEnum', {
|
|
729
|
+
enumerable: true,
|
|
730
|
+
get: function () { return GlobalWalletConnectionStatusEnum.GlobalWalletConnectionStatusEnum; }
|
|
731
|
+
});
|
|
732
|
+
exports.GlobalWalletConnectionStatusEnumFromJSON = GlobalWalletConnectionStatusEnum.GlobalWalletConnectionStatusEnumFromJSON;
|
|
733
|
+
exports.GlobalWalletConnectionStatusEnumFromJSONTyped = GlobalWalletConnectionStatusEnum.GlobalWalletConnectionStatusEnumFromJSONTyped;
|
|
734
|
+
exports.GlobalWalletConnectionStatusEnumToJSON = GlobalWalletConnectionStatusEnum.GlobalWalletConnectionStatusEnumToJSON;
|
|
719
735
|
exports.GlobalWalletSettingsFromJSON = GlobalWalletSettings.GlobalWalletSettingsFromJSON;
|
|
720
736
|
exports.GlobalWalletSettingsFromJSONTyped = GlobalWalletSettings.GlobalWalletSettingsFromJSONTyped;
|
|
721
737
|
exports.GlobalWalletSettingsToJSON = GlobalWalletSettings.GlobalWalletSettingsToJSON;
|
package/src/index.js
CHANGED
|
@@ -99,6 +99,9 @@ export { GetPasskeyAuthenticationOptionsResponseFromJSON, GetPasskeyAuthenticati
|
|
|
99
99
|
export { GetPasskeyRegistrationOptionsResponseFromJSON, GetPasskeyRegistrationOptionsResponseFromJSONTyped, GetPasskeyRegistrationOptionsResponseToJSON } from './models/GetPasskeyRegistrationOptionsResponse.js';
|
|
100
100
|
export { GetUserPasskeysResponseFromJSON, GetUserPasskeysResponseFromJSONTyped, GetUserPasskeysResponseToJSON } from './models/GetUserPasskeysResponse.js';
|
|
101
101
|
export { GlobalWalletAccessControlTypeEnum, GlobalWalletAccessControlTypeEnumFromJSON, GlobalWalletAccessControlTypeEnumFromJSONTyped, GlobalWalletAccessControlTypeEnumToJSON } from './models/GlobalWalletAccessControlTypeEnum.js';
|
|
102
|
+
export { GlobalWalletConnectionFromJSON, GlobalWalletConnectionFromJSONTyped, GlobalWalletConnectionToJSON } from './models/GlobalWalletConnection.js';
|
|
103
|
+
export { GlobalWalletConnectionCreateRequestFromJSON, GlobalWalletConnectionCreateRequestFromJSONTyped, GlobalWalletConnectionCreateRequestToJSON } from './models/GlobalWalletConnectionCreateRequest.js';
|
|
104
|
+
export { GlobalWalletConnectionStatusEnum, GlobalWalletConnectionStatusEnumFromJSON, GlobalWalletConnectionStatusEnumFromJSONTyped, GlobalWalletConnectionStatusEnumToJSON } from './models/GlobalWalletConnectionStatusEnum.js';
|
|
102
105
|
export { GlobalWalletSettingsFromJSON, GlobalWalletSettingsFromJSONTyped, GlobalWalletSettingsToJSON } from './models/GlobalWalletSettings.js';
|
|
103
106
|
export { GlobalWalletSettingsCustomMenuLinksFromJSON, GlobalWalletSettingsCustomMenuLinksFromJSONTyped, GlobalWalletSettingsCustomMenuLinksToJSON } from './models/GlobalWalletSettingsCustomMenuLinks.js';
|
|
104
107
|
export { HCaptchaSettingsFromJSON, HCaptchaSettingsFromJSONTyped, HCaptchaSettingsToJSON } from './models/HCaptchaSettings.js';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
var GlobalWalletConnectionStatusEnum = require('./GlobalWalletConnectionStatusEnum.cjs');
|
|
7
|
+
|
|
8
|
+
/* tslint:disable */
|
|
9
|
+
function GlobalWalletConnectionFromJSON(json) {
|
|
10
|
+
return GlobalWalletConnectionFromJSONTyped(json);
|
|
11
|
+
}
|
|
12
|
+
function GlobalWalletConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
13
|
+
if ((json === undefined) || (json === null)) {
|
|
14
|
+
return json;
|
|
15
|
+
}
|
|
16
|
+
return {
|
|
17
|
+
'id': json['id'],
|
|
18
|
+
'userId': json['userId'],
|
|
19
|
+
'connectionId': json['connectionId'],
|
|
20
|
+
'appUrl': json['appUrl'],
|
|
21
|
+
'status': GlobalWalletConnectionStatusEnum.GlobalWalletConnectionStatusEnumFromJSON(json['status']),
|
|
22
|
+
'expiresAt': !runtime.exists(json, 'expiresAt') ? undefined : (json['expiresAt'] === null ? null : new Date(json['expiresAt'])),
|
|
23
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
24
|
+
'updatedAt': !runtime.exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function GlobalWalletConnectionToJSON(value) {
|
|
28
|
+
if (value === undefined) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
if (value === null) {
|
|
32
|
+
return null;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'id': value.id,
|
|
36
|
+
'userId': value.userId,
|
|
37
|
+
'connectionId': value.connectionId,
|
|
38
|
+
'appUrl': value.appUrl,
|
|
39
|
+
'status': GlobalWalletConnectionStatusEnum.GlobalWalletConnectionStatusEnumToJSON(value.status),
|
|
40
|
+
'expiresAt': value.expiresAt === undefined ? undefined : (value.expiresAt === null ? null : value.expiresAt.toISOString()),
|
|
41
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
42
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
exports.GlobalWalletConnectionFromJSON = GlobalWalletConnectionFromJSON;
|
|
47
|
+
exports.GlobalWalletConnectionFromJSONTyped = GlobalWalletConnectionFromJSONTyped;
|
|
48
|
+
exports.GlobalWalletConnectionToJSON = GlobalWalletConnectionToJSON;
|
|
@@ -0,0 +1,70 @@
|
|
|
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
|
+
import { GlobalWalletConnectionStatusEnum } from './GlobalWalletConnectionStatusEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface GlobalWalletConnection
|
|
17
|
+
*/
|
|
18
|
+
export interface GlobalWalletConnection {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof GlobalWalletConnection
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof GlobalWalletConnection
|
|
29
|
+
*/
|
|
30
|
+
userId: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof GlobalWalletConnection
|
|
35
|
+
*/
|
|
36
|
+
connectionId: string;
|
|
37
|
+
/**
|
|
38
|
+
* An [RFC 6454](https://www.rfc-editor.org/rfc/rfc6454) valid url. Must not include any paths. A single wildcard (*) can be used as the first subdomain.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof GlobalWalletConnection
|
|
41
|
+
*/
|
|
42
|
+
appUrl: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {GlobalWalletConnectionStatusEnum}
|
|
46
|
+
* @memberof GlobalWalletConnection
|
|
47
|
+
*/
|
|
48
|
+
status: GlobalWalletConnectionStatusEnum;
|
|
49
|
+
/**
|
|
50
|
+
* If global wallet connection status is connected, then this timestamp will be present.
|
|
51
|
+
* @type {Date}
|
|
52
|
+
* @memberof GlobalWalletConnection
|
|
53
|
+
*/
|
|
54
|
+
expiresAt?: Date | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {Date}
|
|
58
|
+
* @memberof GlobalWalletConnection
|
|
59
|
+
*/
|
|
60
|
+
createdAt: Date;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @type {Date}
|
|
64
|
+
* @memberof GlobalWalletConnection
|
|
65
|
+
*/
|
|
66
|
+
updatedAt?: Date;
|
|
67
|
+
}
|
|
68
|
+
export declare function GlobalWalletConnectionFromJSON(json: any): GlobalWalletConnection;
|
|
69
|
+
export declare function GlobalWalletConnectionFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalWalletConnection;
|
|
70
|
+
export declare function GlobalWalletConnectionToJSON(value?: GlobalWalletConnection | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
import { GlobalWalletConnectionStatusEnumFromJSON, GlobalWalletConnectionStatusEnumToJSON } from './GlobalWalletConnectionStatusEnum.js';
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
function GlobalWalletConnectionFromJSON(json) {
|
|
6
|
+
return GlobalWalletConnectionFromJSONTyped(json);
|
|
7
|
+
}
|
|
8
|
+
function GlobalWalletConnectionFromJSONTyped(json, ignoreDiscriminator) {
|
|
9
|
+
if ((json === undefined) || (json === null)) {
|
|
10
|
+
return json;
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
'id': json['id'],
|
|
14
|
+
'userId': json['userId'],
|
|
15
|
+
'connectionId': json['connectionId'],
|
|
16
|
+
'appUrl': json['appUrl'],
|
|
17
|
+
'status': GlobalWalletConnectionStatusEnumFromJSON(json['status']),
|
|
18
|
+
'expiresAt': !exists(json, 'expiresAt') ? undefined : (json['expiresAt'] === null ? null : new Date(json['expiresAt'])),
|
|
19
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
20
|
+
'updatedAt': !exists(json, 'updatedAt') ? undefined : (new Date(json['updatedAt'])),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function GlobalWalletConnectionToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'id': value.id,
|
|
32
|
+
'userId': value.userId,
|
|
33
|
+
'connectionId': value.connectionId,
|
|
34
|
+
'appUrl': value.appUrl,
|
|
35
|
+
'status': GlobalWalletConnectionStatusEnumToJSON(value.status),
|
|
36
|
+
'expiresAt': value.expiresAt === undefined ? undefined : (value.expiresAt === null ? null : value.expiresAt.toISOString()),
|
|
37
|
+
'createdAt': (value.createdAt.toISOString()),
|
|
38
|
+
'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt.toISOString()),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { GlobalWalletConnectionFromJSON, GlobalWalletConnectionFromJSONTyped, GlobalWalletConnectionToJSON };
|
|
@@ -0,0 +1,45 @@
|
|
|
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 GlobalWalletConnectionCreateRequestFromJSON(json) {
|
|
19
|
+
return GlobalWalletConnectionCreateRequestFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function GlobalWalletConnectionCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'connectionId': json['connectionId'],
|
|
27
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
function GlobalWalletConnectionCreateRequestToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'connectionId': value.connectionId,
|
|
39
|
+
'expiresAt': (value.expiresAt.toISOString()),
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
exports.GlobalWalletConnectionCreateRequestFromJSON = GlobalWalletConnectionCreateRequestFromJSON;
|
|
44
|
+
exports.GlobalWalletConnectionCreateRequestFromJSONTyped = GlobalWalletConnectionCreateRequestFromJSONTyped;
|
|
45
|
+
exports.GlobalWalletConnectionCreateRequestToJSON = GlobalWalletConnectionCreateRequestToJSON;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 GlobalWalletConnectionCreateRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface GlobalWalletConnectionCreateRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof GlobalWalletConnectionCreateRequest
|
|
22
|
+
*/
|
|
23
|
+
connectionId: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof GlobalWalletConnectionCreateRequest
|
|
28
|
+
*/
|
|
29
|
+
expiresAt: Date;
|
|
30
|
+
}
|
|
31
|
+
export declare function GlobalWalletConnectionCreateRequestFromJSON(json: any): GlobalWalletConnectionCreateRequest;
|
|
32
|
+
export declare function GlobalWalletConnectionCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalWalletConnectionCreateRequest;
|
|
33
|
+
export declare function GlobalWalletConnectionCreateRequestToJSON(value?: GlobalWalletConnectionCreateRequest | null): any;
|
|
@@ -0,0 +1,39 @@
|
|
|
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 GlobalWalletConnectionCreateRequestFromJSON(json) {
|
|
15
|
+
return GlobalWalletConnectionCreateRequestFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function GlobalWalletConnectionCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'connectionId': json['connectionId'],
|
|
23
|
+
'expiresAt': (new Date(json['expiresAt'])),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
function GlobalWalletConnectionCreateRequestToJSON(value) {
|
|
27
|
+
if (value === undefined) {
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
if (value === null) {
|
|
31
|
+
return null;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'connectionId': value.connectionId,
|
|
35
|
+
'expiresAt': (value.expiresAt.toISOString()),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export { GlobalWalletConnectionCreateRequestFromJSON, GlobalWalletConnectionCreateRequestFromJSONTyped, GlobalWalletConnectionCreateRequestToJSON };
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @enum {string}
|
|
22
|
+
*/
|
|
23
|
+
exports.GlobalWalletConnectionStatusEnum = void 0;
|
|
24
|
+
(function (GlobalWalletConnectionStatusEnum) {
|
|
25
|
+
GlobalWalletConnectionStatusEnum["Connected"] = "connected";
|
|
26
|
+
GlobalWalletConnectionStatusEnum["Disconnected"] = "disconnected";
|
|
27
|
+
})(exports.GlobalWalletConnectionStatusEnum || (exports.GlobalWalletConnectionStatusEnum = {}));
|
|
28
|
+
function GlobalWalletConnectionStatusEnumFromJSON(json) {
|
|
29
|
+
return GlobalWalletConnectionStatusEnumFromJSONTyped(json);
|
|
30
|
+
}
|
|
31
|
+
function GlobalWalletConnectionStatusEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
function GlobalWalletConnectionStatusEnumToJSON(value) {
|
|
35
|
+
return value;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.GlobalWalletConnectionStatusEnumFromJSON = GlobalWalletConnectionStatusEnumFromJSON;
|
|
39
|
+
exports.GlobalWalletConnectionStatusEnumFromJSONTyped = GlobalWalletConnectionStatusEnumFromJSONTyped;
|
|
40
|
+
exports.GlobalWalletConnectionStatusEnumToJSON = GlobalWalletConnectionStatusEnumToJSON;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum GlobalWalletConnectionStatusEnum {
|
|
18
|
+
Connected = "connected",
|
|
19
|
+
Disconnected = "disconnected"
|
|
20
|
+
}
|
|
21
|
+
export declare function GlobalWalletConnectionStatusEnumFromJSON(json: any): GlobalWalletConnectionStatusEnum;
|
|
22
|
+
export declare function GlobalWalletConnectionStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): GlobalWalletConnectionStatusEnum;
|
|
23
|
+
export declare function GlobalWalletConnectionStatusEnumToJSON(value?: GlobalWalletConnectionStatusEnum | null): any;
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @enum {string}
|
|
18
|
+
*/
|
|
19
|
+
var GlobalWalletConnectionStatusEnum;
|
|
20
|
+
(function (GlobalWalletConnectionStatusEnum) {
|
|
21
|
+
GlobalWalletConnectionStatusEnum["Connected"] = "connected";
|
|
22
|
+
GlobalWalletConnectionStatusEnum["Disconnected"] = "disconnected";
|
|
23
|
+
})(GlobalWalletConnectionStatusEnum || (GlobalWalletConnectionStatusEnum = {}));
|
|
24
|
+
function GlobalWalletConnectionStatusEnumFromJSON(json) {
|
|
25
|
+
return GlobalWalletConnectionStatusEnumFromJSONTyped(json);
|
|
26
|
+
}
|
|
27
|
+
function GlobalWalletConnectionStatusEnumFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
return json;
|
|
29
|
+
}
|
|
30
|
+
function GlobalWalletConnectionStatusEnumToJSON(value) {
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export { GlobalWalletConnectionStatusEnum, GlobalWalletConnectionStatusEnumFromJSON, GlobalWalletConnectionStatusEnumFromJSONTyped, GlobalWalletConnectionStatusEnumToJSON };
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
5
6
|
var ChainEnum = require('./ChainEnum.cjs');
|
|
6
7
|
|
|
7
8
|
/* tslint:disable */
|
|
@@ -16,6 +17,7 @@ function MultichainAccountBalancesRequestBalanceRequestsFromJSONTyped(json, igno
|
|
|
16
17
|
'address': json['address'],
|
|
17
18
|
'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
|
|
18
19
|
'networkIds': json['networkIds'],
|
|
20
|
+
'whitelistedContracts': !runtime.exists(json, 'whitelistedContracts') ? undefined : json['whitelistedContracts'],
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
23
|
function MultichainAccountBalancesRequestBalanceRequestsToJSON(value) {
|
|
@@ -29,6 +31,7 @@ function MultichainAccountBalancesRequestBalanceRequestsToJSON(value) {
|
|
|
29
31
|
'address': value.address,
|
|
30
32
|
'chain': ChainEnum.ChainEnumToJSON(value.chain),
|
|
31
33
|
'networkIds': value.networkIds,
|
|
34
|
+
'whitelistedContracts': value.whitelistedContracts,
|
|
32
35
|
};
|
|
33
36
|
}
|
|
34
37
|
|
|
@@ -34,6 +34,12 @@ export interface MultichainAccountBalancesRequestBalanceRequests {
|
|
|
34
34
|
* @memberof MultichainAccountBalancesRequestBalanceRequests
|
|
35
35
|
*/
|
|
36
36
|
networkIds: Array<number>;
|
|
37
|
+
/**
|
|
38
|
+
* Array of contract addresses to not filter out in the response
|
|
39
|
+
* @type {Array<string>}
|
|
40
|
+
* @memberof MultichainAccountBalancesRequestBalanceRequests
|
|
41
|
+
*/
|
|
42
|
+
whitelistedContracts?: Array<string>;
|
|
37
43
|
}
|
|
38
44
|
export declare function MultichainAccountBalancesRequestBalanceRequestsFromJSON(json: any): MultichainAccountBalancesRequestBalanceRequests;
|
|
39
45
|
export declare function MultichainAccountBalancesRequestBalanceRequestsFromJSONTyped(json: any, ignoreDiscriminator: boolean): MultichainAccountBalancesRequestBalanceRequests;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
1
2
|
import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
|
|
2
3
|
|
|
3
4
|
/* tslint:disable */
|
|
@@ -12,6 +13,7 @@ function MultichainAccountBalancesRequestBalanceRequestsFromJSONTyped(json, igno
|
|
|
12
13
|
'address': json['address'],
|
|
13
14
|
'chain': ChainEnumFromJSON(json['chain']),
|
|
14
15
|
'networkIds': json['networkIds'],
|
|
16
|
+
'whitelistedContracts': !exists(json, 'whitelistedContracts') ? undefined : json['whitelistedContracts'],
|
|
15
17
|
};
|
|
16
18
|
}
|
|
17
19
|
function MultichainAccountBalancesRequestBalanceRequestsToJSON(value) {
|
|
@@ -25,6 +27,7 @@ function MultichainAccountBalancesRequestBalanceRequestsToJSON(value) {
|
|
|
25
27
|
'address': value.address,
|
|
26
28
|
'chain': ChainEnumToJSON(value.chain),
|
|
27
29
|
'networkIds': value.networkIds,
|
|
30
|
+
'whitelistedContracts': value.whitelistedContracts,
|
|
28
31
|
};
|
|
29
32
|
}
|
|
30
33
|
|
|
@@ -134,6 +134,7 @@ exports.UnprocessableEntityErrorCode = void 0;
|
|
|
134
134
|
UnprocessableEntityErrorCode["KeyShareAlreadyBackedUp"] = "key_share_already_backed_up";
|
|
135
135
|
UnprocessableEntityErrorCode["InvalidKeySharesLength"] = "invalid_key_shares_length";
|
|
136
136
|
UnprocessableEntityErrorCode["WalletServiceConnectionError"] = "wallet_service_connection_error";
|
|
137
|
+
UnprocessableEntityErrorCode["NoGlobalWalletFound"] = "no_global_wallet_found";
|
|
137
138
|
})(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
|
|
138
139
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
139
140
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
|
@@ -126,7 +126,8 @@ export declare enum UnprocessableEntityErrorCode {
|
|
|
126
126
|
EmbeddedWalletAddressAlreadyLinked = "embedded_wallet_address_already_linked",
|
|
127
127
|
KeyShareAlreadyBackedUp = "key_share_already_backed_up",
|
|
128
128
|
InvalidKeySharesLength = "invalid_key_shares_length",
|
|
129
|
-
WalletServiceConnectionError = "wallet_service_connection_error"
|
|
129
|
+
WalletServiceConnectionError = "wallet_service_connection_error",
|
|
130
|
+
NoGlobalWalletFound = "no_global_wallet_found"
|
|
130
131
|
}
|
|
131
132
|
export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
|
|
132
133
|
export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
|
|
@@ -130,6 +130,7 @@ var UnprocessableEntityErrorCode;
|
|
|
130
130
|
UnprocessableEntityErrorCode["KeyShareAlreadyBackedUp"] = "key_share_already_backed_up";
|
|
131
131
|
UnprocessableEntityErrorCode["InvalidKeySharesLength"] = "invalid_key_shares_length";
|
|
132
132
|
UnprocessableEntityErrorCode["WalletServiceConnectionError"] = "wallet_service_connection_error";
|
|
133
|
+
UnprocessableEntityErrorCode["NoGlobalWalletFound"] = "no_global_wallet_found";
|
|
133
134
|
})(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
|
|
134
135
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
135
136
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
package/src/models/index.d.ts
CHANGED
|
@@ -97,6 +97,9 @@ export * from './GetPasskeyAuthenticationOptionsResponse';
|
|
|
97
97
|
export * from './GetPasskeyRegistrationOptionsResponse';
|
|
98
98
|
export * from './GetUserPasskeysResponse';
|
|
99
99
|
export * from './GlobalWalletAccessControlTypeEnum';
|
|
100
|
+
export * from './GlobalWalletConnection';
|
|
101
|
+
export * from './GlobalWalletConnectionCreateRequest';
|
|
102
|
+
export * from './GlobalWalletConnectionStatusEnum';
|
|
100
103
|
export * from './GlobalWalletSettings';
|
|
101
104
|
export * from './GlobalWalletSettingsCustomMenuLinks';
|
|
102
105
|
export * from './HCaptchaSettings';
|