@dynamic-labs/sdk-api 0.0.820 → 0.0.822
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 +2 -2
- package/src/apis/SDKApi.js +2 -2
- package/src/apis/WaasApi.cjs +47 -0
- package/src/apis/WaasApi.d.ts +16 -1
- package/src/apis/WaasApi.js +47 -0
- package/src/index.cjs +8 -4
- package/src/index.js +2 -1
- package/src/models/BackupKeySharesToLocationsRequest.cjs +3 -3
- package/src/models/BackupKeySharesToLocationsRequest.d.ts +3 -3
- package/src/models/BackupKeySharesToLocationsRequest.js +3 -3
- package/src/models/BackupKeySharesToLocationsWithUserIdRequest.cjs +35 -0
- package/src/models/BackupKeySharesToLocationsWithUserIdRequest.d.ts +34 -0
- package/src/models/BackupKeySharesToLocationsWithUserIdRequest.js +29 -0
- package/src/models/{BackupKeySharesToLocationsRequestLocations.cjs → BackupKeySharesToLocationsWithUserIdRequestLocations.cjs} +7 -7
- package/src/models/BackupKeySharesToLocationsWithUserIdRequestLocations.d.ts +47 -0
- package/src/models/{BackupKeySharesToLocationsRequestLocations.js → BackupKeySharesToLocationsWithUserIdRequestLocations.js} +5 -5
- package/src/models/OauthResultRequest.cjs +2 -0
- package/src/models/OauthResultRequest.d.ts +6 -0
- package/src/models/OauthResultRequest.js +2 -0
- package/src/models/index.d.ts +2 -1
- package/src/models/BackupKeySharesToLocationsRequestLocations.d.ts +0 -47
package/package.json
CHANGED
package/src/apis/SDKApi.cjs
CHANGED
|
@@ -19,9 +19,9 @@ require('../models/AuthenticatorTransportProtocol.cjs');
|
|
|
19
19
|
var BackupKeySharesToLocationRequest = require('../models/BackupKeySharesToLocationRequest.cjs');
|
|
20
20
|
var BackupKeySharesToLocationResponse = require('../models/BackupKeySharesToLocationResponse.cjs');
|
|
21
21
|
var BackupKeySharesToLocationsRequest = require('../models/BackupKeySharesToLocationsRequest.cjs');
|
|
22
|
-
require('../models/ThresholdSignatureScheme.cjs');
|
|
23
|
-
require('../models/WaasBackupOptionsEnum.cjs');
|
|
24
22
|
var BackupKeySharesToLocationsResponse = require('../models/BackupKeySharesToLocationsResponse.cjs');
|
|
23
|
+
require('../models/WaasBackupOptionsEnum.cjs');
|
|
24
|
+
require('../models/ThresholdSignatureScheme.cjs');
|
|
25
25
|
var BackupMultipleClientKeySharesRequest = require('../models/BackupMultipleClientKeySharesRequest.cjs');
|
|
26
26
|
var BackupMultipleClientKeySharesResponse = require('../models/BackupMultipleClientKeySharesResponse.cjs');
|
|
27
27
|
require('../models/JwtVerifiedCredentialFormatEnum.cjs');
|
package/src/apis/SDKApi.js
CHANGED
|
@@ -15,9 +15,9 @@ import '../models/AuthenticatorTransportProtocol.js';
|
|
|
15
15
|
import { BackupKeySharesToLocationRequestToJSON } from '../models/BackupKeySharesToLocationRequest.js';
|
|
16
16
|
import { BackupKeySharesToLocationResponseFromJSON } from '../models/BackupKeySharesToLocationResponse.js';
|
|
17
17
|
import { BackupKeySharesToLocationsRequestToJSON } from '../models/BackupKeySharesToLocationsRequest.js';
|
|
18
|
-
import '../models/ThresholdSignatureScheme.js';
|
|
19
|
-
import '../models/WaasBackupOptionsEnum.js';
|
|
20
18
|
import { BackupKeySharesToLocationsResponseFromJSON } from '../models/BackupKeySharesToLocationsResponse.js';
|
|
19
|
+
import '../models/WaasBackupOptionsEnum.js';
|
|
20
|
+
import '../models/ThresholdSignatureScheme.js';
|
|
21
21
|
import { BackupMultipleClientKeySharesRequestToJSON } from '../models/BackupMultipleClientKeySharesRequest.js';
|
|
22
22
|
import { BackupMultipleClientKeySharesResponseFromJSON } from '../models/BackupMultipleClientKeySharesResponse.js';
|
|
23
23
|
import '../models/JwtVerifiedCredentialFormatEnum.js';
|
package/src/apis/WaasApi.cjs
CHANGED
|
@@ -18,6 +18,8 @@ require('../models/UserVerificationRequirement.cjs');
|
|
|
18
18
|
require('../models/AuthenticatorTransportProtocol.cjs');
|
|
19
19
|
require('../models/WaasBackupOptionsEnum.cjs');
|
|
20
20
|
require('../models/ThresholdSignatureScheme.cjs');
|
|
21
|
+
var BackupKeySharesToLocationsResponse = require('../models/BackupKeySharesToLocationsResponse.cjs');
|
|
22
|
+
var BackupKeySharesToLocationsWithUserIdRequest = require('../models/BackupKeySharesToLocationsWithUserIdRequest.cjs');
|
|
21
23
|
require('../models/JwtVerifiedCredentialFormatEnum.cjs');
|
|
22
24
|
require('../models/ProviderEnum.cjs');
|
|
23
25
|
require('../models/WalletAddressType.cjs');
|
|
@@ -145,6 +147,51 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
145
147
|
return yield response.value();
|
|
146
148
|
});
|
|
147
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Creates backup locations for wallet key shares. Requires API token authentication. Validates that the user belongs to the environment and that no client key shares exist for the wallet. This endpoint is intended for server-side integrations that need to backup key shares on behalf of users.
|
|
152
|
+
* Create backup action for key shares using API token authentication
|
|
153
|
+
*/
|
|
154
|
+
backupKeySharesToLocationsForPregenRaw(requestParameters, initOverrides) {
|
|
155
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
156
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
157
|
+
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocationsForPregen.');
|
|
158
|
+
}
|
|
159
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
160
|
+
throw new runtime.RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocationsForPregen.');
|
|
161
|
+
}
|
|
162
|
+
if (requestParameters.backupKeySharesToLocationsWithUserIdRequest === null || requestParameters.backupKeySharesToLocationsWithUserIdRequest === undefined) {
|
|
163
|
+
throw new runtime.RequiredError('backupKeySharesToLocationsWithUserIdRequest', 'Required parameter requestParameters.backupKeySharesToLocationsWithUserIdRequest was null or undefined when calling backupKeySharesToLocationsForPregen.');
|
|
164
|
+
}
|
|
165
|
+
const queryParameters = {};
|
|
166
|
+
const headerParameters = {};
|
|
167
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
168
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
169
|
+
const token = this.configuration.accessToken;
|
|
170
|
+
const tokenString = yield token("bearerAuth", []);
|
|
171
|
+
if (tokenString) {
|
|
172
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
const response = yield this.request({
|
|
176
|
+
path: `/environments/{environmentId}/waas/{walletId}/keyShares/backup/locations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
177
|
+
method: 'POST',
|
|
178
|
+
headers: headerParameters,
|
|
179
|
+
query: queryParameters,
|
|
180
|
+
body: BackupKeySharesToLocationsWithUserIdRequest.BackupKeySharesToLocationsWithUserIdRequestToJSON(requestParameters.backupKeySharesToLocationsWithUserIdRequest),
|
|
181
|
+
}, initOverrides);
|
|
182
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => BackupKeySharesToLocationsResponse.BackupKeySharesToLocationsResponseFromJSON(jsonValue));
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Creates backup locations for wallet key shares. Requires API token authentication. Validates that the user belongs to the environment and that no client key shares exist for the wallet. This endpoint is intended for server-side integrations that need to backup key shares on behalf of users.
|
|
187
|
+
* Create backup action for key shares using API token authentication
|
|
188
|
+
*/
|
|
189
|
+
backupKeySharesToLocationsForPregen(requestParameters, initOverrides) {
|
|
190
|
+
return _tslib.__awaiter(this, void 0, void 0, function* () {
|
|
191
|
+
const response = yield this.backupKeySharesToLocationsForPregenRaw(requestParameters, initOverrides);
|
|
192
|
+
return yield response.value();
|
|
193
|
+
});
|
|
194
|
+
}
|
|
148
195
|
/**
|
|
149
196
|
* Create credentials for waas wallet delegation
|
|
150
197
|
*/
|
package/src/apis/WaasApi.d.ts
CHANGED
|
@@ -10,10 +10,15 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { CreateUserWaasWalletsRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedAccessEncryptionPublicKeysUnifiedResponse, OpenRoomResponse, RevokeDelegatedAccessRequest, RevokeDelegatedAccessResponse, UserResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasDelegationCredentialsRequest, WaasDelegationCredentialsResponse, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest, WaasVerifyApiKeyResponse, WaasWalletResponse } from '../models';
|
|
13
|
+
import { BackupKeySharesToLocationsResponse, BackupKeySharesToLocationsWithUserIdRequest, CreateUserWaasWalletsRequest, DelegatedAccessEncryptionPublicKeyResponse, DelegatedAccessEncryptionPublicKeysUnifiedResponse, OpenRoomResponse, RevokeDelegatedAccessRequest, RevokeDelegatedAccessResponse, UserResponse, WaasAuthenticateResponse, WaasDelegateSignMessageRequest, WaasDelegationCredentialsRequest, WaasDelegationCredentialsResponse, WaasPolicyCreateRequest, WaasPolicyDeleteRequest, WaasPolicyResponse, WaasPolicyUpdateRequest, WaasVerifyApiKeyResponse, WaasWalletResponse } from '../models';
|
|
14
14
|
export interface AuthenticateWaasRequest {
|
|
15
15
|
environmentId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface BackupKeySharesToLocationsForPregenRequest {
|
|
18
|
+
environmentId: string;
|
|
19
|
+
walletId: string;
|
|
20
|
+
backupKeySharesToLocationsWithUserIdRequest: BackupKeySharesToLocationsWithUserIdRequest;
|
|
21
|
+
}
|
|
17
22
|
export interface CreateDelegatedCredentialsRequest {
|
|
18
23
|
environmentId: string;
|
|
19
24
|
waasDelegationCredentialsRequest: WaasDelegationCredentialsRequest;
|
|
@@ -83,6 +88,16 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
83
88
|
* Authenticate for WAAS using api key
|
|
84
89
|
*/
|
|
85
90
|
authenticateWaas(requestParameters: AuthenticateWaasRequest, initOverrides?: RequestInit): Promise<WaasAuthenticateResponse>;
|
|
91
|
+
/**
|
|
92
|
+
* Creates backup locations for wallet key shares. Requires API token authentication. Validates that the user belongs to the environment and that no client key shares exist for the wallet. This endpoint is intended for server-side integrations that need to backup key shares on behalf of users.
|
|
93
|
+
* Create backup action for key shares using API token authentication
|
|
94
|
+
*/
|
|
95
|
+
backupKeySharesToLocationsForPregenRaw(requestParameters: BackupKeySharesToLocationsForPregenRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<BackupKeySharesToLocationsResponse>>;
|
|
96
|
+
/**
|
|
97
|
+
* Creates backup locations for wallet key shares. Requires API token authentication. Validates that the user belongs to the environment and that no client key shares exist for the wallet. This endpoint is intended for server-side integrations that need to backup key shares on behalf of users.
|
|
98
|
+
* Create backup action for key shares using API token authentication
|
|
99
|
+
*/
|
|
100
|
+
backupKeySharesToLocationsForPregen(requestParameters: BackupKeySharesToLocationsForPregenRequest, initOverrides?: RequestInit): Promise<BackupKeySharesToLocationsResponse>;
|
|
86
101
|
/**
|
|
87
102
|
* Create credentials for waas wallet delegation
|
|
88
103
|
*/
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -14,6 +14,8 @@ import '../models/UserVerificationRequirement.js';
|
|
|
14
14
|
import '../models/AuthenticatorTransportProtocol.js';
|
|
15
15
|
import '../models/WaasBackupOptionsEnum.js';
|
|
16
16
|
import '../models/ThresholdSignatureScheme.js';
|
|
17
|
+
import { BackupKeySharesToLocationsResponseFromJSON } from '../models/BackupKeySharesToLocationsResponse.js';
|
|
18
|
+
import { BackupKeySharesToLocationsWithUserIdRequestToJSON } from '../models/BackupKeySharesToLocationsWithUserIdRequest.js';
|
|
17
19
|
import '../models/JwtVerifiedCredentialFormatEnum.js';
|
|
18
20
|
import '../models/ProviderEnum.js';
|
|
19
21
|
import '../models/WalletAddressType.js';
|
|
@@ -141,6 +143,51 @@ class WaasApi extends BaseAPI {
|
|
|
141
143
|
return yield response.value();
|
|
142
144
|
});
|
|
143
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Creates backup locations for wallet key shares. Requires API token authentication. Validates that the user belongs to the environment and that no client key shares exist for the wallet. This endpoint is intended for server-side integrations that need to backup key shares on behalf of users.
|
|
148
|
+
* Create backup action for key shares using API token authentication
|
|
149
|
+
*/
|
|
150
|
+
backupKeySharesToLocationsForPregenRaw(requestParameters, initOverrides) {
|
|
151
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
152
|
+
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
153
|
+
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling backupKeySharesToLocationsForPregen.');
|
|
154
|
+
}
|
|
155
|
+
if (requestParameters.walletId === null || requestParameters.walletId === undefined) {
|
|
156
|
+
throw new RequiredError('walletId', 'Required parameter requestParameters.walletId was null or undefined when calling backupKeySharesToLocationsForPregen.');
|
|
157
|
+
}
|
|
158
|
+
if (requestParameters.backupKeySharesToLocationsWithUserIdRequest === null || requestParameters.backupKeySharesToLocationsWithUserIdRequest === undefined) {
|
|
159
|
+
throw new RequiredError('backupKeySharesToLocationsWithUserIdRequest', 'Required parameter requestParameters.backupKeySharesToLocationsWithUserIdRequest was null or undefined when calling backupKeySharesToLocationsForPregen.');
|
|
160
|
+
}
|
|
161
|
+
const queryParameters = {};
|
|
162
|
+
const headerParameters = {};
|
|
163
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
164
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
165
|
+
const token = this.configuration.accessToken;
|
|
166
|
+
const tokenString = yield token("bearerAuth", []);
|
|
167
|
+
if (tokenString) {
|
|
168
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
const response = yield this.request({
|
|
172
|
+
path: `/environments/{environmentId}/waas/{walletId}/keyShares/backup/locations`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"walletId"}}`, encodeURIComponent(String(requestParameters.walletId))),
|
|
173
|
+
method: 'POST',
|
|
174
|
+
headers: headerParameters,
|
|
175
|
+
query: queryParameters,
|
|
176
|
+
body: BackupKeySharesToLocationsWithUserIdRequestToJSON(requestParameters.backupKeySharesToLocationsWithUserIdRequest),
|
|
177
|
+
}, initOverrides);
|
|
178
|
+
return new JSONApiResponse(response, (jsonValue) => BackupKeySharesToLocationsResponseFromJSON(jsonValue));
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Creates backup locations for wallet key shares. Requires API token authentication. Validates that the user belongs to the environment and that no client key shares exist for the wallet. This endpoint is intended for server-side integrations that need to backup key shares on behalf of users.
|
|
183
|
+
* Create backup action for key shares using API token authentication
|
|
184
|
+
*/
|
|
185
|
+
backupKeySharesToLocationsForPregen(requestParameters, initOverrides) {
|
|
186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
187
|
+
const response = yield this.backupKeySharesToLocationsForPregenRaw(requestParameters, initOverrides);
|
|
188
|
+
return yield response.value();
|
|
189
|
+
});
|
|
190
|
+
}
|
|
144
191
|
/**
|
|
145
192
|
* Create credentials for waas wallet delegation
|
|
146
193
|
*/
|
package/src/index.cjs
CHANGED
|
@@ -88,9 +88,10 @@ var AuthenticatorTransportProtocol = require('./models/AuthenticatorTransportPro
|
|
|
88
88
|
var BackupKeySharesToLocationRequest = require('./models/BackupKeySharesToLocationRequest.cjs');
|
|
89
89
|
var BackupKeySharesToLocationResponse = require('./models/BackupKeySharesToLocationResponse.cjs');
|
|
90
90
|
var BackupKeySharesToLocationsRequest = require('./models/BackupKeySharesToLocationsRequest.cjs');
|
|
91
|
-
var BackupKeySharesToLocationsRequestLocations = require('./models/BackupKeySharesToLocationsRequestLocations.cjs');
|
|
92
91
|
var BackupKeySharesToLocationsResponse = require('./models/BackupKeySharesToLocationsResponse.cjs');
|
|
93
92
|
var BackupKeySharesToLocationsResponseLocationsWithKeyShares = require('./models/BackupKeySharesToLocationsResponseLocationsWithKeyShares.cjs');
|
|
93
|
+
var BackupKeySharesToLocationsWithUserIdRequest = require('./models/BackupKeySharesToLocationsWithUserIdRequest.cjs');
|
|
94
|
+
var BackupKeySharesToLocationsWithUserIdRequestLocations = require('./models/BackupKeySharesToLocationsWithUserIdRequestLocations.cjs');
|
|
94
95
|
var BackupMultipleClientKeySharesRequest = require('./models/BackupMultipleClientKeySharesRequest.cjs');
|
|
95
96
|
var BackupMultipleClientKeySharesResponse = require('./models/BackupMultipleClientKeySharesResponse.cjs');
|
|
96
97
|
var BadGateway = require('./models/BadGateway.cjs');
|
|
@@ -830,15 +831,18 @@ exports.BackupKeySharesToLocationResponseToJSON = BackupKeySharesToLocationRespo
|
|
|
830
831
|
exports.BackupKeySharesToLocationsRequestFromJSON = BackupKeySharesToLocationsRequest.BackupKeySharesToLocationsRequestFromJSON;
|
|
831
832
|
exports.BackupKeySharesToLocationsRequestFromJSONTyped = BackupKeySharesToLocationsRequest.BackupKeySharesToLocationsRequestFromJSONTyped;
|
|
832
833
|
exports.BackupKeySharesToLocationsRequestToJSON = BackupKeySharesToLocationsRequest.BackupKeySharesToLocationsRequestToJSON;
|
|
833
|
-
exports.BackupKeySharesToLocationsRequestLocationsFromJSON = BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsFromJSON;
|
|
834
|
-
exports.BackupKeySharesToLocationsRequestLocationsFromJSONTyped = BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsFromJSONTyped;
|
|
835
|
-
exports.BackupKeySharesToLocationsRequestLocationsToJSON = BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsToJSON;
|
|
836
834
|
exports.BackupKeySharesToLocationsResponseFromJSON = BackupKeySharesToLocationsResponse.BackupKeySharesToLocationsResponseFromJSON;
|
|
837
835
|
exports.BackupKeySharesToLocationsResponseFromJSONTyped = BackupKeySharesToLocationsResponse.BackupKeySharesToLocationsResponseFromJSONTyped;
|
|
838
836
|
exports.BackupKeySharesToLocationsResponseToJSON = BackupKeySharesToLocationsResponse.BackupKeySharesToLocationsResponseToJSON;
|
|
839
837
|
exports.BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON = BackupKeySharesToLocationsResponseLocationsWithKeyShares.BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON;
|
|
840
838
|
exports.BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped = BackupKeySharesToLocationsResponseLocationsWithKeyShares.BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped;
|
|
841
839
|
exports.BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON = BackupKeySharesToLocationsResponseLocationsWithKeyShares.BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON;
|
|
840
|
+
exports.BackupKeySharesToLocationsWithUserIdRequestFromJSON = BackupKeySharesToLocationsWithUserIdRequest.BackupKeySharesToLocationsWithUserIdRequestFromJSON;
|
|
841
|
+
exports.BackupKeySharesToLocationsWithUserIdRequestFromJSONTyped = BackupKeySharesToLocationsWithUserIdRequest.BackupKeySharesToLocationsWithUserIdRequestFromJSONTyped;
|
|
842
|
+
exports.BackupKeySharesToLocationsWithUserIdRequestToJSON = BackupKeySharesToLocationsWithUserIdRequest.BackupKeySharesToLocationsWithUserIdRequestToJSON;
|
|
843
|
+
exports.BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON = BackupKeySharesToLocationsWithUserIdRequestLocations.BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON;
|
|
844
|
+
exports.BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped = BackupKeySharesToLocationsWithUserIdRequestLocations.BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped;
|
|
845
|
+
exports.BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON = BackupKeySharesToLocationsWithUserIdRequestLocations.BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON;
|
|
842
846
|
exports.BackupMultipleClientKeySharesRequestFromJSON = BackupMultipleClientKeySharesRequest.BackupMultipleClientKeySharesRequestFromJSON;
|
|
843
847
|
exports.BackupMultipleClientKeySharesRequestFromJSONTyped = BackupMultipleClientKeySharesRequest.BackupMultipleClientKeySharesRequestFromJSONTyped;
|
|
844
848
|
exports.BackupMultipleClientKeySharesRequestToJSON = BackupMultipleClientKeySharesRequest.BackupMultipleClientKeySharesRequestToJSON;
|
package/src/index.js
CHANGED
|
@@ -84,9 +84,10 @@ export { AuthenticatorTransportProtocol, AuthenticatorTransportProtocolFromJSON,
|
|
|
84
84
|
export { BackupKeySharesToLocationRequestFromJSON, BackupKeySharesToLocationRequestFromJSONTyped, BackupKeySharesToLocationRequestToJSON } from './models/BackupKeySharesToLocationRequest.js';
|
|
85
85
|
export { BackupKeySharesToLocationResponseFromJSON, BackupKeySharesToLocationResponseFromJSONTyped, BackupKeySharesToLocationResponseToJSON } from './models/BackupKeySharesToLocationResponse.js';
|
|
86
86
|
export { BackupKeySharesToLocationsRequestFromJSON, BackupKeySharesToLocationsRequestFromJSONTyped, BackupKeySharesToLocationsRequestToJSON } from './models/BackupKeySharesToLocationsRequest.js';
|
|
87
|
-
export { BackupKeySharesToLocationsRequestLocationsFromJSON, BackupKeySharesToLocationsRequestLocationsFromJSONTyped, BackupKeySharesToLocationsRequestLocationsToJSON } from './models/BackupKeySharesToLocationsRequestLocations.js';
|
|
88
87
|
export { BackupKeySharesToLocationsResponseFromJSON, BackupKeySharesToLocationsResponseFromJSONTyped, BackupKeySharesToLocationsResponseToJSON } from './models/BackupKeySharesToLocationsResponse.js';
|
|
89
88
|
export { BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSON, BackupKeySharesToLocationsResponseLocationsWithKeySharesFromJSONTyped, BackupKeySharesToLocationsResponseLocationsWithKeySharesToJSON } from './models/BackupKeySharesToLocationsResponseLocationsWithKeyShares.js';
|
|
89
|
+
export { BackupKeySharesToLocationsWithUserIdRequestFromJSON, BackupKeySharesToLocationsWithUserIdRequestFromJSONTyped, BackupKeySharesToLocationsWithUserIdRequestToJSON } from './models/BackupKeySharesToLocationsWithUserIdRequest.js';
|
|
90
|
+
export { BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON, BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped, BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON } from './models/BackupKeySharesToLocationsWithUserIdRequestLocations.js';
|
|
90
91
|
export { BackupMultipleClientKeySharesRequestFromJSON, BackupMultipleClientKeySharesRequestFromJSONTyped, BackupMultipleClientKeySharesRequestToJSON } from './models/BackupMultipleClientKeySharesRequest.js';
|
|
91
92
|
export { BackupMultipleClientKeySharesResponseFromJSON, BackupMultipleClientKeySharesResponseFromJSONTyped, BackupMultipleClientKeySharesResponseToJSON } from './models/BackupMultipleClientKeySharesResponse.js';
|
|
92
93
|
export { BadGatewayFromJSON, BadGatewayFromJSONTyped, BadGatewayToJSON } from './models/BadGateway.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var BackupKeySharesToLocationsWithUserIdRequestLocations = require('./BackupKeySharesToLocationsWithUserIdRequestLocations.cjs');
|
|
6
6
|
|
|
7
7
|
/* tslint:disable */
|
|
8
8
|
function BackupKeySharesToLocationsRequestFromJSON(json) {
|
|
@@ -13,7 +13,7 @@ function BackupKeySharesToLocationsRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
13
13
|
return json;
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
|
-
'locations': (json['locations'].map(
|
|
16
|
+
'locations': (json['locations'].map(BackupKeySharesToLocationsWithUserIdRequestLocations.BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON)),
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
function BackupKeySharesToLocationsRequestToJSON(value) {
|
|
@@ -24,7 +24,7 @@ function BackupKeySharesToLocationsRequestToJSON(value) {
|
|
|
24
24
|
return null;
|
|
25
25
|
}
|
|
26
26
|
return {
|
|
27
|
-
'locations': (value.locations.map(
|
|
27
|
+
'locations': (value.locations.map(BackupKeySharesToLocationsWithUserIdRequestLocations.BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON)),
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { BackupKeySharesToLocationsWithUserIdRequestLocations } from './BackupKeySharesToLocationsWithUserIdRequestLocations';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -18,10 +18,10 @@ import { BackupKeySharesToLocationsRequestLocations } from './BackupKeySharesToL
|
|
|
18
18
|
export interface BackupKeySharesToLocationsRequest {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @type {Array<
|
|
21
|
+
* @type {Array<BackupKeySharesToLocationsWithUserIdRequestLocations>}
|
|
22
22
|
* @memberof BackupKeySharesToLocationsRequest
|
|
23
23
|
*/
|
|
24
|
-
locations: Array<
|
|
24
|
+
locations: Array<BackupKeySharesToLocationsWithUserIdRequestLocations>;
|
|
25
25
|
}
|
|
26
26
|
export declare function BackupKeySharesToLocationsRequestFromJSON(json: any): BackupKeySharesToLocationsRequest;
|
|
27
27
|
export declare function BackupKeySharesToLocationsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupKeySharesToLocationsRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON, BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON } from './BackupKeySharesToLocationsWithUserIdRequestLocations.js';
|
|
2
2
|
|
|
3
3
|
/* tslint:disable */
|
|
4
4
|
function BackupKeySharesToLocationsRequestFromJSON(json) {
|
|
@@ -9,7 +9,7 @@ function BackupKeySharesToLocationsRequestFromJSONTyped(json, ignoreDiscriminato
|
|
|
9
9
|
return json;
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
|
-
'locations': (json['locations'].map(
|
|
12
|
+
'locations': (json['locations'].map(BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON)),
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
function BackupKeySharesToLocationsRequestToJSON(value) {
|
|
@@ -20,7 +20,7 @@ function BackupKeySharesToLocationsRequestToJSON(value) {
|
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
|
-
'locations': (value.locations.map(
|
|
23
|
+
'locations': (value.locations.map(BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON)),
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var BackupKeySharesToLocationsWithUserIdRequestLocations = require('./BackupKeySharesToLocationsWithUserIdRequestLocations.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function BackupKeySharesToLocationsWithUserIdRequestFromJSON(json) {
|
|
9
|
+
return BackupKeySharesToLocationsWithUserIdRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function BackupKeySharesToLocationsWithUserIdRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'userId': json['userId'],
|
|
17
|
+
'locations': (json['locations'].map(BackupKeySharesToLocationsWithUserIdRequestLocations.BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON)),
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function BackupKeySharesToLocationsWithUserIdRequestToJSON(value) {
|
|
21
|
+
if (value === undefined) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (value === null) {
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'userId': value.userId,
|
|
29
|
+
'locations': (value.locations.map(BackupKeySharesToLocationsWithUserIdRequestLocations.BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.BackupKeySharesToLocationsWithUserIdRequestFromJSON = BackupKeySharesToLocationsWithUserIdRequestFromJSON;
|
|
34
|
+
exports.BackupKeySharesToLocationsWithUserIdRequestFromJSONTyped = BackupKeySharesToLocationsWithUserIdRequestFromJSONTyped;
|
|
35
|
+
exports.BackupKeySharesToLocationsWithUserIdRequestToJSON = BackupKeySharesToLocationsWithUserIdRequestToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { BackupKeySharesToLocationsWithUserIdRequestLocations } from './BackupKeySharesToLocationsWithUserIdRequestLocations';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface BackupKeySharesToLocationsWithUserIdRequest
|
|
17
|
+
*/
|
|
18
|
+
export interface BackupKeySharesToLocationsWithUserIdRequest {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the user who owns the wallet
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof BackupKeySharesToLocationsWithUserIdRequest
|
|
23
|
+
*/
|
|
24
|
+
userId: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {Array<BackupKeySharesToLocationsWithUserIdRequestLocations>}
|
|
28
|
+
* @memberof BackupKeySharesToLocationsWithUserIdRequest
|
|
29
|
+
*/
|
|
30
|
+
locations: Array<BackupKeySharesToLocationsWithUserIdRequestLocations>;
|
|
31
|
+
}
|
|
32
|
+
export declare function BackupKeySharesToLocationsWithUserIdRequestFromJSON(json: any): BackupKeySharesToLocationsWithUserIdRequest;
|
|
33
|
+
export declare function BackupKeySharesToLocationsWithUserIdRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupKeySharesToLocationsWithUserIdRequest;
|
|
34
|
+
export declare function BackupKeySharesToLocationsWithUserIdRequestToJSON(value?: BackupKeySharesToLocationsWithUserIdRequest | null): any;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON, BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON } from './BackupKeySharesToLocationsWithUserIdRequestLocations.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function BackupKeySharesToLocationsWithUserIdRequestFromJSON(json) {
|
|
5
|
+
return BackupKeySharesToLocationsWithUserIdRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function BackupKeySharesToLocationsWithUserIdRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'userId': json['userId'],
|
|
13
|
+
'locations': (json['locations'].map(BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON)),
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function BackupKeySharesToLocationsWithUserIdRequestToJSON(value) {
|
|
17
|
+
if (value === undefined) {
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (value === null) {
|
|
21
|
+
return null;
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
'userId': value.userId,
|
|
25
|
+
'locations': (value.locations.map(BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON)),
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export { BackupKeySharesToLocationsWithUserIdRequestFromJSON, BackupKeySharesToLocationsWithUserIdRequestFromJSONTyped, BackupKeySharesToLocationsWithUserIdRequestToJSON };
|
|
@@ -7,10 +7,10 @@ var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
|
|
|
7
7
|
var WaasBackupOptionsEnum = require('./WaasBackupOptionsEnum.cjs');
|
|
8
8
|
|
|
9
9
|
/* tslint:disable */
|
|
10
|
-
function
|
|
11
|
-
return
|
|
10
|
+
function BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON(json) {
|
|
11
|
+
return BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped(json);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped(json, ignoreDiscriminator) {
|
|
14
14
|
if ((json === undefined) || (json === null)) {
|
|
15
15
|
return json;
|
|
16
16
|
}
|
|
@@ -21,7 +21,7 @@ function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json, ignoreDis
|
|
|
21
21
|
'externalKeyShareId': !runtime.exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
function
|
|
24
|
+
function BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON(value) {
|
|
25
25
|
if (value === undefined) {
|
|
26
26
|
return undefined;
|
|
27
27
|
}
|
|
@@ -36,6 +36,6 @@ function BackupKeySharesToLocationsRequestLocationsToJSON(value) {
|
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
39
|
+
exports.BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON = BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON;
|
|
40
|
+
exports.BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped = BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped;
|
|
41
|
+
exports.BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON = BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
|
|
13
|
+
import { WaasBackupOptionsEnum } from './WaasBackupOptionsEnum';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface BackupKeySharesToLocationsWithUserIdRequestLocations
|
|
18
|
+
*/
|
|
19
|
+
export interface BackupKeySharesToLocationsWithUserIdRequestLocations {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {WaasBackupOptionsEnum}
|
|
23
|
+
* @memberof BackupKeySharesToLocationsWithUserIdRequestLocations
|
|
24
|
+
*/
|
|
25
|
+
location: WaasBackupOptionsEnum;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof BackupKeySharesToLocationsWithUserIdRequestLocations
|
|
30
|
+
*/
|
|
31
|
+
keygenId?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {ThresholdSignatureScheme}
|
|
35
|
+
* @memberof BackupKeySharesToLocationsWithUserIdRequestLocations
|
|
36
|
+
*/
|
|
37
|
+
thresholdSignatureScheme?: ThresholdSignatureScheme;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof BackupKeySharesToLocationsWithUserIdRequestLocations
|
|
42
|
+
*/
|
|
43
|
+
externalKeyShareId?: string;
|
|
44
|
+
}
|
|
45
|
+
export declare function BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON(json: any): BackupKeySharesToLocationsWithUserIdRequestLocations;
|
|
46
|
+
export declare function BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupKeySharesToLocationsWithUserIdRequestLocations;
|
|
47
|
+
export declare function BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON(value?: BackupKeySharesToLocationsWithUserIdRequestLocations | null): any;
|
|
@@ -3,10 +3,10 @@ import { ThresholdSignatureSchemeFromJSON, ThresholdSignatureSchemeToJSON } from
|
|
|
3
3
|
import { WaasBackupOptionsEnumFromJSON, WaasBackupOptionsEnumToJSON } from './WaasBackupOptionsEnum.js';
|
|
4
4
|
|
|
5
5
|
/* tslint:disable */
|
|
6
|
-
function
|
|
7
|
-
return
|
|
6
|
+
function BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON(json) {
|
|
7
|
+
return BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped(json);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped(json, ignoreDiscriminator) {
|
|
10
10
|
if ((json === undefined) || (json === null)) {
|
|
11
11
|
return json;
|
|
12
12
|
}
|
|
@@ -17,7 +17,7 @@ function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json, ignoreDis
|
|
|
17
17
|
'externalKeyShareId': !exists(json, 'externalKeyShareId') ? undefined : json['externalKeyShareId'],
|
|
18
18
|
};
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON(value) {
|
|
21
21
|
if (value === undefined) {
|
|
22
22
|
return undefined;
|
|
23
23
|
}
|
|
@@ -32,4 +32,4 @@ function BackupKeySharesToLocationsRequestLocationsToJSON(value) {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export {
|
|
35
|
+
export { BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON, BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped, BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON };
|
|
@@ -18,6 +18,7 @@ function OauthResultRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
'forceCreateUser': !runtime.exists(json, 'forceCreateUser') ? undefined : json['forceCreateUser'],
|
|
19
19
|
'code': !runtime.exists(json, 'code') ? undefined : json['code'],
|
|
20
20
|
'sessionPublicKey': !runtime.exists(json, 'sessionPublicKey') ? undefined : json['sessionPublicKey'],
|
|
21
|
+
'captchaToken': !runtime.exists(json, 'captchaToken') ? undefined : json['captchaToken'],
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
24
|
function OauthResultRequestToJSON(value) {
|
|
@@ -33,6 +34,7 @@ function OauthResultRequestToJSON(value) {
|
|
|
33
34
|
'forceCreateUser': value.forceCreateUser,
|
|
34
35
|
'code': value.code,
|
|
35
36
|
'sessionPublicKey': value.sessionPublicKey,
|
|
37
|
+
'captchaToken': value.captchaToken,
|
|
36
38
|
};
|
|
37
39
|
}
|
|
38
40
|
|
|
@@ -45,6 +45,12 @@ export interface OauthResultRequest {
|
|
|
45
45
|
* @memberof OauthResultRequest
|
|
46
46
|
*/
|
|
47
47
|
sessionPublicKey?: string;
|
|
48
|
+
/**
|
|
49
|
+
* When provided, used to verify that a captcha is valid and get the success/failure result from the captcha provider server-side.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof OauthResultRequest
|
|
52
|
+
*/
|
|
53
|
+
captchaToken?: string;
|
|
48
54
|
}
|
|
49
55
|
export declare function OauthResultRequestFromJSON(json: any): OauthResultRequest;
|
|
50
56
|
export declare function OauthResultRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): OauthResultRequest;
|
|
@@ -14,6 +14,7 @@ function OauthResultRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
14
|
'forceCreateUser': !exists(json, 'forceCreateUser') ? undefined : json['forceCreateUser'],
|
|
15
15
|
'code': !exists(json, 'code') ? undefined : json['code'],
|
|
16
16
|
'sessionPublicKey': !exists(json, 'sessionPublicKey') ? undefined : json['sessionPublicKey'],
|
|
17
|
+
'captchaToken': !exists(json, 'captchaToken') ? undefined : json['captchaToken'],
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
function OauthResultRequestToJSON(value) {
|
|
@@ -29,6 +30,7 @@ function OauthResultRequestToJSON(value) {
|
|
|
29
30
|
'forceCreateUser': value.forceCreateUser,
|
|
30
31
|
'code': value.code,
|
|
31
32
|
'sessionPublicKey': value.sessionPublicKey,
|
|
33
|
+
'captchaToken': value.captchaToken,
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
|
package/src/models/index.d.ts
CHANGED
|
@@ -47,9 +47,10 @@ export * from './AuthenticatorTransportProtocol';
|
|
|
47
47
|
export * from './BackupKeySharesToLocationRequest';
|
|
48
48
|
export * from './BackupKeySharesToLocationResponse';
|
|
49
49
|
export * from './BackupKeySharesToLocationsRequest';
|
|
50
|
-
export * from './BackupKeySharesToLocationsRequestLocations';
|
|
51
50
|
export * from './BackupKeySharesToLocationsResponse';
|
|
52
51
|
export * from './BackupKeySharesToLocationsResponseLocationsWithKeyShares';
|
|
52
|
+
export * from './BackupKeySharesToLocationsWithUserIdRequest';
|
|
53
|
+
export * from './BackupKeySharesToLocationsWithUserIdRequestLocations';
|
|
53
54
|
export * from './BackupMultipleClientKeySharesRequest';
|
|
54
55
|
export * from './BackupMultipleClientKeySharesResponse';
|
|
55
56
|
export * from './BadGateway';
|
|
@@ -1,47 +0,0 @@
|
|
|
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 { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
|
|
13
|
-
import { WaasBackupOptionsEnum } from './WaasBackupOptionsEnum';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface BackupKeySharesToLocationsRequestLocations
|
|
18
|
-
*/
|
|
19
|
-
export interface BackupKeySharesToLocationsRequestLocations {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {WaasBackupOptionsEnum}
|
|
23
|
-
* @memberof BackupKeySharesToLocationsRequestLocations
|
|
24
|
-
*/
|
|
25
|
-
location: WaasBackupOptionsEnum;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {string}
|
|
29
|
-
* @memberof BackupKeySharesToLocationsRequestLocations
|
|
30
|
-
*/
|
|
31
|
-
keygenId?: string;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {ThresholdSignatureScheme}
|
|
35
|
-
* @memberof BackupKeySharesToLocationsRequestLocations
|
|
36
|
-
*/
|
|
37
|
-
thresholdSignatureScheme?: ThresholdSignatureScheme;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {string}
|
|
41
|
-
* @memberof BackupKeySharesToLocationsRequestLocations
|
|
42
|
-
*/
|
|
43
|
-
externalKeyShareId?: string;
|
|
44
|
-
}
|
|
45
|
-
export declare function BackupKeySharesToLocationsRequestLocationsFromJSON(json: any): BackupKeySharesToLocationsRequestLocations;
|
|
46
|
-
export declare function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json: any, ignoreDiscriminator: boolean): BackupKeySharesToLocationsRequestLocations;
|
|
47
|
-
export declare function BackupKeySharesToLocationsRequestLocationsToJSON(value?: BackupKeySharesToLocationsRequestLocations | null): any;
|