@dynamic-labs/sdk-api-core 0.0.594 → 0.0.595

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.
Files changed (46) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +595 -0
  3. package/src/apis/SDKApi.d.ts +204 -1
  4. package/src/apis/SDKApi.js +595 -0
  5. package/src/index.cjs +56 -0
  6. package/src/index.js +13 -0
  7. package/src/models/BackupKeyshareRequest.cjs +43 -0
  8. package/src/models/BackupKeyshareRequest.d.ts +27 -0
  9. package/src/models/BackupKeyshareRequest.js +37 -0
  10. package/src/models/BackupKeyshareResponse.cjs +43 -0
  11. package/src/models/BackupKeyshareResponse.d.ts +27 -0
  12. package/src/models/BackupKeyshareResponse.js +37 -0
  13. package/src/models/CreateWaasAccountRequest.cjs +39 -0
  14. package/src/models/CreateWaasAccountRequest.d.ts +41 -0
  15. package/src/models/CreateWaasAccountRequest.js +33 -0
  16. package/src/models/ExportWaasWalletPrivateKeyRequest.cjs +43 -0
  17. package/src/models/ExportWaasWalletPrivateKeyRequest.d.ts +27 -0
  18. package/src/models/ExportWaasWalletPrivateKeyRequest.js +37 -0
  19. package/src/models/ImportWaasPrivateKeyRequest.cjs +35 -0
  20. package/src/models/ImportWaasPrivateKeyRequest.d.ts +34 -0
  21. package/src/models/ImportWaasPrivateKeyRequest.js +29 -0
  22. package/src/models/OpenRoomResponse.cjs +35 -0
  23. package/src/models/OpenRoomResponse.d.ts +33 -0
  24. package/src/models/OpenRoomResponse.js +29 -0
  25. package/src/models/OpenRoomResponseWithServerKeygenIds.cjs +45 -0
  26. package/src/models/OpenRoomResponseWithServerKeygenIds.d.ts +33 -0
  27. package/src/models/OpenRoomResponseWithServerKeygenIds.js +39 -0
  28. package/src/models/RecoverKeyshareResponse.cjs +43 -0
  29. package/src/models/RecoverKeyshareResponse.d.ts +27 -0
  30. package/src/models/RecoverKeyshareResponse.js +37 -0
  31. package/src/models/RefreshKeySharesRequest.cjs +43 -0
  32. package/src/models/RefreshKeySharesRequest.d.ts +27 -0
  33. package/src/models/RefreshKeySharesRequest.js +37 -0
  34. package/src/models/ReshareRequest.cjs +36 -0
  35. package/src/models/ReshareRequest.d.ts +34 -0
  36. package/src/models/ReshareRequest.js +30 -0
  37. package/src/models/SignMessageWithWaasRequest.cjs +43 -0
  38. package/src/models/SignMessageWithWaasRequest.d.ts +27 -0
  39. package/src/models/SignMessageWithWaasRequest.js +37 -0
  40. package/src/models/SignTransactionWithWaasRequest.cjs +43 -0
  41. package/src/models/SignTransactionWithWaasRequest.d.ts +27 -0
  42. package/src/models/SignTransactionWithWaasRequest.js +37 -0
  43. package/src/models/ThresholdSignatureScheme.cjs +41 -0
  44. package/src/models/ThresholdSignatureScheme.d.ts +24 -0
  45. package/src/models/ThresholdSignatureScheme.js +35 -0
  46. package/src/models/index.d.ts +13 -0
@@ -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 ExportWaasWalletPrivateKeyRequest
16
+ */
17
+ export interface ExportWaasWalletPrivateKeyRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ExportWaasWalletPrivateKeyRequest
22
+ */
23
+ exportId: string;
24
+ }
25
+ export declare function ExportWaasWalletPrivateKeyRequestFromJSON(json: any): ExportWaasWalletPrivateKeyRequest;
26
+ export declare function ExportWaasWalletPrivateKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExportWaasWalletPrivateKeyRequest;
27
+ export declare function ExportWaasWalletPrivateKeyRequestToJSON(value?: ExportWaasWalletPrivateKeyRequest | 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 ExportWaasWalletPrivateKeyRequestFromJSON(json) {
15
+ return ExportWaasWalletPrivateKeyRequestFromJSONTyped(json);
16
+ }
17
+ function ExportWaasWalletPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'exportId': json['exportId'],
23
+ };
24
+ }
25
+ function ExportWaasWalletPrivateKeyRequestToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'exportId': value.exportId,
34
+ };
35
+ }
36
+
37
+ export { ExportWaasWalletPrivateKeyRequestFromJSON, ExportWaasWalletPrivateKeyRequestFromJSONTyped, ExportWaasWalletPrivateKeyRequestToJSON };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var ChainEnum = require('./ChainEnum.cjs');
6
+
7
+ /* tslint:disable */
8
+ function ImportWaasPrivateKeyRequestFromJSON(json) {
9
+ return ImportWaasPrivateKeyRequestFromJSONTyped(json);
10
+ }
11
+ function ImportWaasPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
17
+ 'clientKeygenIds': json['clientKeygenIds'],
18
+ };
19
+ }
20
+ function ImportWaasPrivateKeyRequestToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'chain': ChainEnum.ChainEnumToJSON(value.chain),
29
+ 'clientKeygenIds': value.clientKeygenIds,
30
+ };
31
+ }
32
+
33
+ exports.ImportWaasPrivateKeyRequestFromJSON = ImportWaasPrivateKeyRequestFromJSON;
34
+ exports.ImportWaasPrivateKeyRequestFromJSONTyped = ImportWaasPrivateKeyRequestFromJSONTyped;
35
+ exports.ImportWaasPrivateKeyRequestToJSON = ImportWaasPrivateKeyRequestToJSON;
@@ -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 { ChainEnum } from './ChainEnum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ImportWaasPrivateKeyRequest
17
+ */
18
+ export interface ImportWaasPrivateKeyRequest {
19
+ /**
20
+ *
21
+ * @type {ChainEnum}
22
+ * @memberof ImportWaasPrivateKeyRequest
23
+ */
24
+ chain: ChainEnum;
25
+ /**
26
+ *
27
+ * @type {Array<string>}
28
+ * @memberof ImportWaasPrivateKeyRequest
29
+ */
30
+ clientKeygenIds: Array<string>;
31
+ }
32
+ export declare function ImportWaasPrivateKeyRequestFromJSON(json: any): ImportWaasPrivateKeyRequest;
33
+ export declare function ImportWaasPrivateKeyRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImportWaasPrivateKeyRequest;
34
+ export declare function ImportWaasPrivateKeyRequestToJSON(value?: ImportWaasPrivateKeyRequest | null): any;
@@ -0,0 +1,29 @@
1
+ import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
2
+
3
+ /* tslint:disable */
4
+ function ImportWaasPrivateKeyRequestFromJSON(json) {
5
+ return ImportWaasPrivateKeyRequestFromJSONTyped(json);
6
+ }
7
+ function ImportWaasPrivateKeyRequestFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'chain': ChainEnumFromJSON(json['chain']),
13
+ 'clientKeygenIds': json['clientKeygenIds'],
14
+ };
15
+ }
16
+ function ImportWaasPrivateKeyRequestToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'chain': ChainEnumToJSON(value.chain),
25
+ 'clientKeygenIds': value.clientKeygenIds,
26
+ };
27
+ }
28
+
29
+ export { ImportWaasPrivateKeyRequestFromJSON, ImportWaasPrivateKeyRequestFromJSONTyped, ImportWaasPrivateKeyRequestToJSON };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function OpenRoomResponseFromJSON(json) {
9
+ return OpenRoomResponseFromJSONTyped(json);
10
+ }
11
+ function OpenRoomResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'roomId': json['roomId'],
17
+ 'serverKeygenIds': !runtime.exists(json, 'serverKeygenIds') ? undefined : json['serverKeygenIds'],
18
+ };
19
+ }
20
+ function OpenRoomResponseToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'roomId': value.roomId,
29
+ 'serverKeygenIds': value.serverKeygenIds,
30
+ };
31
+ }
32
+
33
+ exports.OpenRoomResponseFromJSON = OpenRoomResponseFromJSON;
34
+ exports.OpenRoomResponseFromJSONTyped = OpenRoomResponseFromJSONTyped;
35
+ exports.OpenRoomResponseToJSON = OpenRoomResponseToJSON;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface OpenRoomResponse
16
+ */
17
+ export interface OpenRoomResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OpenRoomResponse
22
+ */
23
+ roomId: string;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof OpenRoomResponse
28
+ */
29
+ serverKeygenIds?: Array<string>;
30
+ }
31
+ export declare function OpenRoomResponseFromJSON(json: any): OpenRoomResponse;
32
+ export declare function OpenRoomResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenRoomResponse;
33
+ export declare function OpenRoomResponseToJSON(value?: OpenRoomResponse | null): any;
@@ -0,0 +1,29 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function OpenRoomResponseFromJSON(json) {
5
+ return OpenRoomResponseFromJSONTyped(json);
6
+ }
7
+ function OpenRoomResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'roomId': json['roomId'],
13
+ 'serverKeygenIds': !exists(json, 'serverKeygenIds') ? undefined : json['serverKeygenIds'],
14
+ };
15
+ }
16
+ function OpenRoomResponseToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'roomId': value.roomId,
25
+ 'serverKeygenIds': value.serverKeygenIds,
26
+ };
27
+ }
28
+
29
+ export { OpenRoomResponseFromJSON, OpenRoomResponseFromJSONTyped, OpenRoomResponseToJSON };
@@ -0,0 +1,45 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ function OpenRoomResponseWithServerKeygenIdsFromJSON(json) {
19
+ return OpenRoomResponseWithServerKeygenIdsFromJSONTyped(json);
20
+ }
21
+ function OpenRoomResponseWithServerKeygenIdsFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'roomId': json['roomId'],
27
+ 'serverKeygenIds': json['serverKeygenIds'],
28
+ };
29
+ }
30
+ function OpenRoomResponseWithServerKeygenIdsToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'roomId': value.roomId,
39
+ 'serverKeygenIds': value.serverKeygenIds,
40
+ };
41
+ }
42
+
43
+ exports.OpenRoomResponseWithServerKeygenIdsFromJSON = OpenRoomResponseWithServerKeygenIdsFromJSON;
44
+ exports.OpenRoomResponseWithServerKeygenIdsFromJSONTyped = OpenRoomResponseWithServerKeygenIdsFromJSONTyped;
45
+ exports.OpenRoomResponseWithServerKeygenIdsToJSON = OpenRoomResponseWithServerKeygenIdsToJSON;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface OpenRoomResponseWithServerKeygenIds
16
+ */
17
+ export interface OpenRoomResponseWithServerKeygenIds {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof OpenRoomResponseWithServerKeygenIds
22
+ */
23
+ roomId: string;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof OpenRoomResponseWithServerKeygenIds
28
+ */
29
+ serverKeygenIds: Array<string>;
30
+ }
31
+ export declare function OpenRoomResponseWithServerKeygenIdsFromJSON(json: any): OpenRoomResponseWithServerKeygenIds;
32
+ export declare function OpenRoomResponseWithServerKeygenIdsFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenRoomResponseWithServerKeygenIds;
33
+ export declare function OpenRoomResponseWithServerKeygenIdsToJSON(value?: OpenRoomResponseWithServerKeygenIds | null): any;
@@ -0,0 +1,39 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ function OpenRoomResponseWithServerKeygenIdsFromJSON(json) {
15
+ return OpenRoomResponseWithServerKeygenIdsFromJSONTyped(json);
16
+ }
17
+ function OpenRoomResponseWithServerKeygenIdsFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'roomId': json['roomId'],
23
+ 'serverKeygenIds': json['serverKeygenIds'],
24
+ };
25
+ }
26
+ function OpenRoomResponseWithServerKeygenIdsToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'roomId': value.roomId,
35
+ 'serverKeygenIds': value.serverKeygenIds,
36
+ };
37
+ }
38
+
39
+ export { OpenRoomResponseWithServerKeygenIdsFromJSON, OpenRoomResponseWithServerKeygenIdsFromJSONTyped, OpenRoomResponseWithServerKeygenIdsToJSON };
@@ -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 RecoverKeyshareResponseFromJSON(json) {
19
+ return RecoverKeyshareResponseFromJSONTyped(json);
20
+ }
21
+ function RecoverKeyshareResponseFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'encryptedKeyShare': json['encryptedKeyShare'],
27
+ };
28
+ }
29
+ function RecoverKeyshareResponseToJSON(value) {
30
+ if (value === undefined) {
31
+ return undefined;
32
+ }
33
+ if (value === null) {
34
+ return null;
35
+ }
36
+ return {
37
+ 'encryptedKeyShare': value.encryptedKeyShare,
38
+ };
39
+ }
40
+
41
+ exports.RecoverKeyshareResponseFromJSON = RecoverKeyshareResponseFromJSON;
42
+ exports.RecoverKeyshareResponseFromJSONTyped = RecoverKeyshareResponseFromJSONTyped;
43
+ exports.RecoverKeyshareResponseToJSON = RecoverKeyshareResponseToJSON;
@@ -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 RecoverKeyshareResponse
16
+ */
17
+ export interface RecoverKeyshareResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof RecoverKeyshareResponse
22
+ */
23
+ encryptedKeyShare: string;
24
+ }
25
+ export declare function RecoverKeyshareResponseFromJSON(json: any): RecoverKeyshareResponse;
26
+ export declare function RecoverKeyshareResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecoverKeyshareResponse;
27
+ export declare function RecoverKeyshareResponseToJSON(value?: RecoverKeyshareResponse | 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 RecoverKeyshareResponseFromJSON(json) {
15
+ return RecoverKeyshareResponseFromJSONTyped(json);
16
+ }
17
+ function RecoverKeyshareResponseFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'encryptedKeyShare': json['encryptedKeyShare'],
23
+ };
24
+ }
25
+ function RecoverKeyshareResponseToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'encryptedKeyShare': value.encryptedKeyShare,
34
+ };
35
+ }
36
+
37
+ export { RecoverKeyshareResponseFromJSON, RecoverKeyshareResponseFromJSONTyped, RecoverKeyshareResponseToJSON };
@@ -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 RefreshKeySharesRequestFromJSON(json) {
19
+ return RefreshKeySharesRequestFromJSONTyped(json);
20
+ }
21
+ function RefreshKeySharesRequestFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'clientKeygenIds': json['clientKeygenIds'],
27
+ };
28
+ }
29
+ function RefreshKeySharesRequestToJSON(value) {
30
+ if (value === undefined) {
31
+ return undefined;
32
+ }
33
+ if (value === null) {
34
+ return null;
35
+ }
36
+ return {
37
+ 'clientKeygenIds': value.clientKeygenIds,
38
+ };
39
+ }
40
+
41
+ exports.RefreshKeySharesRequestFromJSON = RefreshKeySharesRequestFromJSON;
42
+ exports.RefreshKeySharesRequestFromJSONTyped = RefreshKeySharesRequestFromJSONTyped;
43
+ exports.RefreshKeySharesRequestToJSON = RefreshKeySharesRequestToJSON;
@@ -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 RefreshKeySharesRequest
16
+ */
17
+ export interface RefreshKeySharesRequest {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof RefreshKeySharesRequest
22
+ */
23
+ clientKeygenIds: Array<string>;
24
+ }
25
+ export declare function RefreshKeySharesRequestFromJSON(json: any): RefreshKeySharesRequest;
26
+ export declare function RefreshKeySharesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefreshKeySharesRequest;
27
+ export declare function RefreshKeySharesRequestToJSON(value?: RefreshKeySharesRequest | 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 RefreshKeySharesRequestFromJSON(json) {
15
+ return RefreshKeySharesRequestFromJSONTyped(json);
16
+ }
17
+ function RefreshKeySharesRequestFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'clientKeygenIds': json['clientKeygenIds'],
23
+ };
24
+ }
25
+ function RefreshKeySharesRequestToJSON(value) {
26
+ if (value === undefined) {
27
+ return undefined;
28
+ }
29
+ if (value === null) {
30
+ return null;
31
+ }
32
+ return {
33
+ 'clientKeygenIds': value.clientKeygenIds,
34
+ };
35
+ }
36
+
37
+ export { RefreshKeySharesRequestFromJSON, RefreshKeySharesRequestFromJSONTyped, RefreshKeySharesRequestToJSON };
@@ -0,0 +1,36 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var ThresholdSignatureScheme = require('./ThresholdSignatureScheme.cjs');
7
+
8
+ /* tslint:disable */
9
+ function ReshareRequestFromJSON(json) {
10
+ return ReshareRequestFromJSONTyped(json);
11
+ }
12
+ function ReshareRequestFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'clientKeygenIds': json['clientKeygenIds'],
18
+ 'thresholdSignatureScheme': !runtime.exists(json, 'thresholdSignatureScheme') ? undefined : ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['thresholdSignatureScheme']),
19
+ };
20
+ }
21
+ function ReshareRequestToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'clientKeygenIds': value.clientKeygenIds,
30
+ 'thresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.thresholdSignatureScheme),
31
+ };
32
+ }
33
+
34
+ exports.ReshareRequestFromJSON = ReshareRequestFromJSON;
35
+ exports.ReshareRequestFromJSONTyped = ReshareRequestFromJSONTyped;
36
+ exports.ReshareRequestToJSON = ReshareRequestToJSON;
@@ -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 { ThresholdSignatureScheme } from './ThresholdSignatureScheme';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ReshareRequest
17
+ */
18
+ export interface ReshareRequest {
19
+ /**
20
+ *
21
+ * @type {Array<string>}
22
+ * @memberof ReshareRequest
23
+ */
24
+ clientKeygenIds: Array<string>;
25
+ /**
26
+ *
27
+ * @type {ThresholdSignatureScheme}
28
+ * @memberof ReshareRequest
29
+ */
30
+ thresholdSignatureScheme?: ThresholdSignatureScheme;
31
+ }
32
+ export declare function ReshareRequestFromJSON(json: any): ReshareRequest;
33
+ export declare function ReshareRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReshareRequest;
34
+ export declare function ReshareRequestToJSON(value?: ReshareRequest | null): any;