@dynamic-labs/sdk-api 0.0.428 → 0.0.429
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 +68 -0
- package/src/apis/SDKApi.d.ts +24 -1
- package/src/apis/SDKApi.js +68 -0
- package/src/index.cjs +4 -0
- package/src/index.js +1 -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/UserWalletSelectionRequest.cjs +43 -0
- package/src/models/UserWalletSelectionRequest.d.ts +27 -0
- package/src/models/UserWalletSelectionRequest.js +37 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -100,6 +100,7 @@ var UpdateSelfResponse = require('../models/UpdateSelfResponse.cjs');
|
|
|
100
100
|
var UpdateUserPasskeyRequest = require('../models/UpdateUserPasskeyRequest.cjs');
|
|
101
101
|
var UserFields = require('../models/UserFields.cjs');
|
|
102
102
|
var UserPasskey = require('../models/UserPasskey.cjs');
|
|
103
|
+
var UserWalletSelectionRequest = require('../models/UserWalletSelectionRequest.cjs');
|
|
103
104
|
var VerifyRequest = require('../models/VerifyRequest.cjs');
|
|
104
105
|
var VerifyResponse = require('../models/VerifyResponse.cjs');
|
|
105
106
|
var VerifyUnlinkRequest = require('../models/VerifyUnlinkRequest.cjs');
|
|
@@ -2949,6 +2950,73 @@ class SDKApi extends runtime.BaseAPI {
|
|
|
2949
2950
|
yield this.sdkSettingsOptionsRaw(requestParameters, initOverrides);
|
|
2950
2951
|
});
|
|
2951
2952
|
}
|
|
2953
|
+
/**
|
|
2954
|
+
* When a user selects a wallet to be the primary wallet in a multi-wallet enabled environment, this endpoint is called to record this on the backend.
|
|
2955
|
+
*/
|
|
2956
|
+
selectUserWalletRaw(requestParameters, initOverrides) {
|
|
2957
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2958
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2959
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling selectUserWallet.');
|
|
2960
|
+
}
|
|
2961
|
+
if (requestParameters.userWalletSelectionRequest === null || requestParameters.userWalletSelectionRequest === undefined) {
|
|
2962
|
+
throw new runtime.RequiredError('userWalletSelectionRequest', 'Required parameter requestParameters.userWalletSelectionRequest was null or undefined when calling selectUserWallet.');
|
|
2963
|
+
}
|
|
2964
|
+
const queryParameters = {};
|
|
2965
|
+
const headerParameters = {};
|
|
2966
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2967
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2968
|
+
const token = this.configuration.accessToken;
|
|
2969
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2970
|
+
if (tokenString) {
|
|
2971
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2972
|
+
}
|
|
2973
|
+
}
|
|
2974
|
+
const response = yield this.request({
|
|
2975
|
+
path: `/sdk/{environmentId}/users/wallets/selection`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2976
|
+
method: 'PUT',
|
|
2977
|
+
headers: headerParameters,
|
|
2978
|
+
query: queryParameters,
|
|
2979
|
+
body: UserWalletSelectionRequest.UserWalletSelectionRequestToJSON(requestParameters.userWalletSelectionRequest),
|
|
2980
|
+
}, initOverrides);
|
|
2981
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => VerifyResponse.VerifyResponseFromJSON(jsonValue));
|
|
2982
|
+
});
|
|
2983
|
+
}
|
|
2984
|
+
/**
|
|
2985
|
+
* When a user selects a wallet to be the primary wallet in a multi-wallet enabled environment, this endpoint is called to record this on the backend.
|
|
2986
|
+
*/
|
|
2987
|
+
selectUserWallet(requestParameters, initOverrides) {
|
|
2988
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2989
|
+
const response = yield this.selectUserWalletRaw(requestParameters, initOverrides);
|
|
2990
|
+
return yield response.value();
|
|
2991
|
+
});
|
|
2992
|
+
}
|
|
2993
|
+
/**
|
|
2994
|
+
* Options call for this endpoint
|
|
2995
|
+
*/
|
|
2996
|
+
selectUserWalletOptionsRaw(requestParameters, initOverrides) {
|
|
2997
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2998
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2999
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling selectUserWalletOptions.');
|
|
3000
|
+
}
|
|
3001
|
+
const queryParameters = {};
|
|
3002
|
+
const headerParameters = {};
|
|
3003
|
+
const response = yield this.request({
|
|
3004
|
+
path: `/sdk/{environmentId}/users/wallets/selection`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3005
|
+
method: 'OPTIONS',
|
|
3006
|
+
headers: headerParameters,
|
|
3007
|
+
query: queryParameters,
|
|
3008
|
+
}, initOverrides);
|
|
3009
|
+
return new runtime.VoidApiResponse(response);
|
|
3010
|
+
});
|
|
3011
|
+
}
|
|
3012
|
+
/**
|
|
3013
|
+
* Options call for this endpoint
|
|
3014
|
+
*/
|
|
3015
|
+
selectUserWalletOptions(requestParameters, initOverrides) {
|
|
3016
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3017
|
+
yield this.selectUserWalletOptionsRaw(requestParameters, initOverrides);
|
|
3018
|
+
});
|
|
3019
|
+
}
|
|
2952
3020
|
/**
|
|
2953
3021
|
* Options call for this endpoint
|
|
2954
3022
|
*/
|
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 { CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, Currency, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExportEmbeddedWalletResponse, FarcasterSignInRequest, FarcasterSignInResponse, GetUserPasskeysResponse, HealthcheckResponse, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthResponse, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFARegenRecoveryCodesResponse, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, NetworkConfigurationResponse, NonceResponse, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, SdkSettingsRequest, SdkUser, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SupportedOnrampsResponse, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UserFields, UserPasskey, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
13
|
+
import { CompletePasskeyRecoveryRequest, ConnectRequest, CreateEmbeddedWalletsRequest, Currency, EmailProviderResponse, EmailVerificationCreateRequest, EmailVerificationCreateResponse, EmailVerificationRetryRequest, EmailVerificationVerifyRequest, EmbeddedWalletAuthToken, EmbeddedWalletAuthType, EmbeddedWalletPasscodeClaimRequest, EmbeddedWalletSecret, ExportEmbeddedWalletResponse, FarcasterSignInRequest, FarcasterSignInResponse, GetUserPasskeysResponse, HealthcheckResponse, InitEmailAuthRequest, InitEmailAuthResponse, InitPasskeyRecoveryRequest, InitPasskeyRecoveryResponse, JwksResponse, MFAAuthRecoveryDevicePostRequest, MFAAuthResponse, MFAAuthTotpDevicePostRequest, MFADevice, MFAGetRecoveryCodesResponse, MFAListDevicesResponse, MFARegenRecoveryCodesResponse, MFARegisterTotpDeviceGetResponse, MFARegisterTotpDevicePostRequest, MFAUpdateDeviceRequest, MergeUserConflictResolutions, NetworkConfigurationResponse, NonceResponse, OauthProviderLoginUrl, OauthRequest, OauthResultRequest, OauthResultResponse, PrefetchRequest, ProjectSettings, ProviderEnum, PublishEvents, SdkSettingsRequest, SdkUser, SmsVerificationCreateRequest, SmsVerificationCreateResponse, SmsVerificationRetryRequest, SmsVerificationVerifyRequest, SupportedOnrampsResponse, UpdateRecoveryEmailRequest, UpdateSelfResponse, UpdateUserPasskeyRequest, UserFields, UserPasskey, UserWalletSelectionRequest, VerifyRequest, VerifyResponse, VerifyUnlinkRequest } from '../models';
|
|
14
14
|
export interface AuthMfaRecoveryRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
mFAAuthRecoveryDevicePostRequest: MFAAuthRecoveryDevicePostRequest;
|
|
@@ -330,6 +330,13 @@ export interface RevokeSessionOptionRequest {
|
|
|
330
330
|
export interface SdkSettingsOptionsRequest {
|
|
331
331
|
environmentId: string;
|
|
332
332
|
}
|
|
333
|
+
export interface SelectUserWalletRequest {
|
|
334
|
+
environmentId: string;
|
|
335
|
+
userWalletSelectionRequest: UserWalletSelectionRequest;
|
|
336
|
+
}
|
|
337
|
+
export interface SelectUserWalletOptionsRequest {
|
|
338
|
+
environmentId: string;
|
|
339
|
+
}
|
|
333
340
|
export interface SettingsOptionsRequest {
|
|
334
341
|
environmentId: string;
|
|
335
342
|
}
|
|
@@ -1158,6 +1165,22 @@ export declare class SDKApi extends runtime.BaseAPI {
|
|
|
1158
1165
|
/**
|
|
1159
1166
|
*/
|
|
1160
1167
|
sdkSettingsOptions(requestParameters: SdkSettingsOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1168
|
+
/**
|
|
1169
|
+
* When a user selects a wallet to be the primary wallet in a multi-wallet enabled environment, this endpoint is called to record this on the backend.
|
|
1170
|
+
*/
|
|
1171
|
+
selectUserWalletRaw(requestParameters: SelectUserWalletRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<VerifyResponse>>;
|
|
1172
|
+
/**
|
|
1173
|
+
* When a user selects a wallet to be the primary wallet in a multi-wallet enabled environment, this endpoint is called to record this on the backend.
|
|
1174
|
+
*/
|
|
1175
|
+
selectUserWallet(requestParameters: SelectUserWalletRequest, initOverrides?: RequestInit): Promise<VerifyResponse>;
|
|
1176
|
+
/**
|
|
1177
|
+
* Options call for this endpoint
|
|
1178
|
+
*/
|
|
1179
|
+
selectUserWalletOptionsRaw(requestParameters: SelectUserWalletOptionsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Options call for this endpoint
|
|
1182
|
+
*/
|
|
1183
|
+
selectUserWalletOptions(requestParameters: SelectUserWalletOptionsRequest, initOverrides?: RequestInit): Promise<void>;
|
|
1161
1184
|
/**
|
|
1162
1185
|
* Options call for this endpoint
|
|
1163
1186
|
*/
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -96,6 +96,7 @@ import { UpdateSelfResponseFromJSON } from '../models/UpdateSelfResponse.js';
|
|
|
96
96
|
import { UpdateUserPasskeyRequestToJSON } from '../models/UpdateUserPasskeyRequest.js';
|
|
97
97
|
import { UserFieldsToJSON } from '../models/UserFields.js';
|
|
98
98
|
import { UserPasskeyFromJSON } from '../models/UserPasskey.js';
|
|
99
|
+
import { UserWalletSelectionRequestToJSON } from '../models/UserWalletSelectionRequest.js';
|
|
99
100
|
import { VerifyRequestToJSON } from '../models/VerifyRequest.js';
|
|
100
101
|
import { VerifyResponseFromJSON } from '../models/VerifyResponse.js';
|
|
101
102
|
import { VerifyUnlinkRequestToJSON } from '../models/VerifyUnlinkRequest.js';
|
|
@@ -2945,6 +2946,73 @@ class SDKApi extends BaseAPI {
|
|
|
2945
2946
|
yield this.sdkSettingsOptionsRaw(requestParameters, initOverrides);
|
|
2946
2947
|
});
|
|
2947
2948
|
}
|
|
2949
|
+
/**
|
|
2950
|
+
* When a user selects a wallet to be the primary wallet in a multi-wallet enabled environment, this endpoint is called to record this on the backend.
|
|
2951
|
+
*/
|
|
2952
|
+
selectUserWalletRaw(requestParameters, initOverrides) {
|
|
2953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2954
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2955
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling selectUserWallet.');
|
|
2956
|
+
}
|
|
2957
|
+
if (requestParameters.userWalletSelectionRequest === null || requestParameters.userWalletSelectionRequest === undefined) {
|
|
2958
|
+
throw new RequiredError('userWalletSelectionRequest', 'Required parameter requestParameters.userWalletSelectionRequest was null or undefined when calling selectUserWallet.');
|
|
2959
|
+
}
|
|
2960
|
+
const queryParameters = {};
|
|
2961
|
+
const headerParameters = {};
|
|
2962
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2963
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
2964
|
+
const token = this.configuration.accessToken;
|
|
2965
|
+
const tokenString = yield token("bearerAuth", []);
|
|
2966
|
+
if (tokenString) {
|
|
2967
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
2968
|
+
}
|
|
2969
|
+
}
|
|
2970
|
+
const response = yield this.request({
|
|
2971
|
+
path: `/sdk/{environmentId}/users/wallets/selection`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
2972
|
+
method: 'PUT',
|
|
2973
|
+
headers: headerParameters,
|
|
2974
|
+
query: queryParameters,
|
|
2975
|
+
body: UserWalletSelectionRequestToJSON(requestParameters.userWalletSelectionRequest),
|
|
2976
|
+
}, initOverrides);
|
|
2977
|
+
return new JSONApiResponse(response, (jsonValue) => VerifyResponseFromJSON(jsonValue));
|
|
2978
|
+
});
|
|
2979
|
+
}
|
|
2980
|
+
/**
|
|
2981
|
+
* When a user selects a wallet to be the primary wallet in a multi-wallet enabled environment, this endpoint is called to record this on the backend.
|
|
2982
|
+
*/
|
|
2983
|
+
selectUserWallet(requestParameters, initOverrides) {
|
|
2984
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2985
|
+
const response = yield this.selectUserWalletRaw(requestParameters, initOverrides);
|
|
2986
|
+
return yield response.value();
|
|
2987
|
+
});
|
|
2988
|
+
}
|
|
2989
|
+
/**
|
|
2990
|
+
* Options call for this endpoint
|
|
2991
|
+
*/
|
|
2992
|
+
selectUserWalletOptionsRaw(requestParameters, initOverrides) {
|
|
2993
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2994
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
2995
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling selectUserWalletOptions.');
|
|
2996
|
+
}
|
|
2997
|
+
const queryParameters = {};
|
|
2998
|
+
const headerParameters = {};
|
|
2999
|
+
const response = yield this.request({
|
|
3000
|
+
path: `/sdk/{environmentId}/users/wallets/selection`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
3001
|
+
method: 'OPTIONS',
|
|
3002
|
+
headers: headerParameters,
|
|
3003
|
+
query: queryParameters,
|
|
3004
|
+
}, initOverrides);
|
|
3005
|
+
return new VoidApiResponse(response);
|
|
3006
|
+
});
|
|
3007
|
+
}
|
|
3008
|
+
/**
|
|
3009
|
+
* Options call for this endpoint
|
|
3010
|
+
*/
|
|
3011
|
+
selectUserWalletOptions(requestParameters, initOverrides) {
|
|
3012
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3013
|
+
yield this.selectUserWalletOptionsRaw(requestParameters, initOverrides);
|
|
3014
|
+
});
|
|
3015
|
+
}
|
|
2948
3016
|
/**
|
|
2949
3017
|
* Options call for this endpoint
|
|
2950
3018
|
*/
|
package/src/index.cjs
CHANGED
|
@@ -282,6 +282,7 @@ var UserOauthAccessTokenResponse = require('./models/UserOauthAccessTokenRespons
|
|
|
282
282
|
var UserPasskey = require('./models/UserPasskey.cjs');
|
|
283
283
|
var UserResponse = require('./models/UserResponse.cjs');
|
|
284
284
|
var UserSearchFilterParams = require('./models/UserSearchFilterParams.cjs');
|
|
285
|
+
var UserWalletSelectionRequest = require('./models/UserWalletSelectionRequest.cjs');
|
|
285
286
|
var UserWalletsResponse = require('./models/UserWalletsResponse.cjs');
|
|
286
287
|
var UsersResponse = require('./models/UsersResponse.cjs');
|
|
287
288
|
var VerifyRequest = require('./models/VerifyRequest.cjs');
|
|
@@ -1267,6 +1268,9 @@ exports.UserResponseToJSON = UserResponse.UserResponseToJSON;
|
|
|
1267
1268
|
exports.UserSearchFilterParamsFromJSON = UserSearchFilterParams.UserSearchFilterParamsFromJSON;
|
|
1268
1269
|
exports.UserSearchFilterParamsFromJSONTyped = UserSearchFilterParams.UserSearchFilterParamsFromJSONTyped;
|
|
1269
1270
|
exports.UserSearchFilterParamsToJSON = UserSearchFilterParams.UserSearchFilterParamsToJSON;
|
|
1271
|
+
exports.UserWalletSelectionRequestFromJSON = UserWalletSelectionRequest.UserWalletSelectionRequestFromJSON;
|
|
1272
|
+
exports.UserWalletSelectionRequestFromJSONTyped = UserWalletSelectionRequest.UserWalletSelectionRequestFromJSONTyped;
|
|
1273
|
+
exports.UserWalletSelectionRequestToJSON = UserWalletSelectionRequest.UserWalletSelectionRequestToJSON;
|
|
1270
1274
|
exports.UserWalletsResponseFromJSON = UserWalletsResponse.UserWalletsResponseFromJSON;
|
|
1271
1275
|
exports.UserWalletsResponseFromJSONTyped = UserWalletsResponse.UserWalletsResponseFromJSONTyped;
|
|
1272
1276
|
exports.UserWalletsResponseToJSON = UserWalletsResponse.UserWalletsResponseToJSON;
|
package/src/index.js
CHANGED
|
@@ -278,6 +278,7 @@ export { UserOauthAccessTokenResponseFromJSON, UserOauthAccessTokenResponseFromJ
|
|
|
278
278
|
export { UserPasskeyFromJSON, UserPasskeyFromJSONTyped, UserPasskeyToJSON } from './models/UserPasskey.js';
|
|
279
279
|
export { UserResponseFromJSON, UserResponseFromJSONTyped, UserResponseToJSON } from './models/UserResponse.js';
|
|
280
280
|
export { UserSearchFilterParamsFromJSON, UserSearchFilterParamsFromJSONTyped, UserSearchFilterParamsToJSON } from './models/UserSearchFilterParams.js';
|
|
281
|
+
export { UserWalletSelectionRequestFromJSON, UserWalletSelectionRequestFromJSONTyped, UserWalletSelectionRequestToJSON } from './models/UserWalletSelectionRequest.js';
|
|
281
282
|
export { UserWalletsResponseFromJSON, UserWalletsResponseFromJSONTyped, UserWalletsResponseToJSON } from './models/UserWalletsResponse.js';
|
|
282
283
|
export { UsersResponseFromJSON, UsersResponseFromJSONTyped, UsersResponseToJSON } from './models/UsersResponse.js';
|
|
283
284
|
export { VerifyRequestFromJSON, VerifyRequestFromJSONTyped, VerifyRequestToJSON } from './models/VerifyRequest.js';
|
|
@@ -92,6 +92,7 @@ exports.UnprocessableEntityErrorCode = void 0;
|
|
|
92
92
|
UnprocessableEntityErrorCode["InvalidEmbeddedWalletChainsConfiguration"] = "invalid_embedded_wallet_chains_configuration";
|
|
93
93
|
UnprocessableEntityErrorCode["MergeAccountsConfirmation"] = "merge_accounts_confirmation";
|
|
94
94
|
UnprocessableEntityErrorCode["MergeAccountsInvalid"] = "merge_accounts_invalid";
|
|
95
|
+
UnprocessableEntityErrorCode["InvalidWalletId"] = "invalid_wallet_id";
|
|
95
96
|
})(exports.UnprocessableEntityErrorCode || (exports.UnprocessableEntityErrorCode = {}));
|
|
96
97
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
97
98
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
|
@@ -84,7 +84,8 @@ export declare enum UnprocessableEntityErrorCode {
|
|
|
84
84
|
GateExists = "gate_exists",
|
|
85
85
|
InvalidEmbeddedWalletChainsConfiguration = "invalid_embedded_wallet_chains_configuration",
|
|
86
86
|
MergeAccountsConfirmation = "merge_accounts_confirmation",
|
|
87
|
-
MergeAccountsInvalid = "merge_accounts_invalid"
|
|
87
|
+
MergeAccountsInvalid = "merge_accounts_invalid",
|
|
88
|
+
InvalidWalletId = "invalid_wallet_id"
|
|
88
89
|
}
|
|
89
90
|
export declare function UnprocessableEntityErrorCodeFromJSON(json: any): UnprocessableEntityErrorCode;
|
|
90
91
|
export declare function UnprocessableEntityErrorCodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnprocessableEntityErrorCode;
|
|
@@ -88,6 +88,7 @@ var UnprocessableEntityErrorCode;
|
|
|
88
88
|
UnprocessableEntityErrorCode["InvalidEmbeddedWalletChainsConfiguration"] = "invalid_embedded_wallet_chains_configuration";
|
|
89
89
|
UnprocessableEntityErrorCode["MergeAccountsConfirmation"] = "merge_accounts_confirmation";
|
|
90
90
|
UnprocessableEntityErrorCode["MergeAccountsInvalid"] = "merge_accounts_invalid";
|
|
91
|
+
UnprocessableEntityErrorCode["InvalidWalletId"] = "invalid_wallet_id";
|
|
91
92
|
})(UnprocessableEntityErrorCode || (UnprocessableEntityErrorCode = {}));
|
|
92
93
|
function UnprocessableEntityErrorCodeFromJSON(json) {
|
|
93
94
|
return UnprocessableEntityErrorCodeFromJSONTyped(json);
|
|
@@ -0,0 +1,43 @@
|
|
|
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 UserWalletSelectionRequestFromJSON(json) {
|
|
19
|
+
return UserWalletSelectionRequestFromJSONTyped(json);
|
|
20
|
+
}
|
|
21
|
+
function UserWalletSelectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'walletId': json['walletId'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function UserWalletSelectionRequestToJSON(value) {
|
|
30
|
+
if (value === undefined) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (value === null) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'walletId': value.walletId,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
exports.UserWalletSelectionRequestFromJSON = UserWalletSelectionRequestFromJSON;
|
|
42
|
+
exports.UserWalletSelectionRequestFromJSONTyped = UserWalletSelectionRequestFromJSONTyped;
|
|
43
|
+
exports.UserWalletSelectionRequestToJSON = UserWalletSelectionRequestToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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 UserWalletSelectionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface UserWalletSelectionRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UserWalletSelectionRequest
|
|
22
|
+
*/
|
|
23
|
+
walletId: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function UserWalletSelectionRequestFromJSON(json: any): UserWalletSelectionRequest;
|
|
26
|
+
export declare function UserWalletSelectionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserWalletSelectionRequest;
|
|
27
|
+
export declare function UserWalletSelectionRequestToJSON(value?: UserWalletSelectionRequest | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
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 UserWalletSelectionRequestFromJSON(json) {
|
|
15
|
+
return UserWalletSelectionRequestFromJSONTyped(json);
|
|
16
|
+
}
|
|
17
|
+
function UserWalletSelectionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if ((json === undefined) || (json === null)) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
'walletId': json['walletId'],
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function UserWalletSelectionRequestToJSON(value) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'walletId': value.walletId,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export { UserWalletSelectionRequestFromJSON, UserWalletSelectionRequestFromJSONTyped, UserWalletSelectionRequestToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -254,6 +254,7 @@ export * from './UserOauthAccessTokenResponse';
|
|
|
254
254
|
export * from './UserPasskey';
|
|
255
255
|
export * from './UserResponse';
|
|
256
256
|
export * from './UserSearchFilterParams';
|
|
257
|
+
export * from './UserWalletSelectionRequest';
|
|
257
258
|
export * from './UserWalletsResponse';
|
|
258
259
|
export * from './UsersResponse';
|
|
259
260
|
export * from './VerifyRequest';
|