@dynamic-labs/sdk-api 0.0.821 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.0.821",
3
+ "version": "0.0.822",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -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');
@@ -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';
@@ -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
  */
@@ -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
  */
@@ -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 BackupKeySharesToLocationsRequestLocations = require('./BackupKeySharesToLocationsRequestLocations.cjs');
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(BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsFromJSON)),
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(BackupKeySharesToLocationsRequestLocations.BackupKeySharesToLocationsRequestLocationsToJSON)),
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 { BackupKeySharesToLocationsRequestLocations } from './BackupKeySharesToLocationsRequestLocations';
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<BackupKeySharesToLocationsRequestLocations>}
21
+ * @type {Array<BackupKeySharesToLocationsWithUserIdRequestLocations>}
22
22
  * @memberof BackupKeySharesToLocationsRequest
23
23
  */
24
- locations: Array<BackupKeySharesToLocationsRequestLocations>;
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 { BackupKeySharesToLocationsRequestLocationsFromJSON, BackupKeySharesToLocationsRequestLocationsToJSON } from './BackupKeySharesToLocationsRequestLocations.js';
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(BackupKeySharesToLocationsRequestLocationsFromJSON)),
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(BackupKeySharesToLocationsRequestLocationsToJSON)),
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 BackupKeySharesToLocationsRequestLocationsFromJSON(json) {
11
- return BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json);
10
+ function BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON(json) {
11
+ return BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped(json);
12
12
  }
13
- function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json, ignoreDiscriminator) {
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 BackupKeySharesToLocationsRequestLocationsToJSON(value) {
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.BackupKeySharesToLocationsRequestLocationsFromJSON = BackupKeySharesToLocationsRequestLocationsFromJSON;
40
- exports.BackupKeySharesToLocationsRequestLocationsFromJSONTyped = BackupKeySharesToLocationsRequestLocationsFromJSONTyped;
41
- exports.BackupKeySharesToLocationsRequestLocationsToJSON = BackupKeySharesToLocationsRequestLocationsToJSON;
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 BackupKeySharesToLocationsRequestLocationsFromJSON(json) {
7
- return BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json);
6
+ function BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON(json) {
7
+ return BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped(json);
8
8
  }
9
- function BackupKeySharesToLocationsRequestLocationsFromJSONTyped(json, ignoreDiscriminator) {
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 BackupKeySharesToLocationsRequestLocationsToJSON(value) {
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 { BackupKeySharesToLocationsRequestLocationsFromJSON, BackupKeySharesToLocationsRequestLocationsFromJSONTyped, BackupKeySharesToLocationsRequestLocationsToJSON };
35
+ export { BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSON, BackupKeySharesToLocationsWithUserIdRequestLocationsFromJSONTyped, BackupKeySharesToLocationsWithUserIdRequestLocationsToJSON };
@@ -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;