@dynamic-labs/sdk-api-core 0.0.958 → 0.0.960
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 +75 -1
- package/src/apis/SDKApi.d.ts +32 -4
- package/src/apis/SDKApi.js +75 -1
- package/src/apis/WaasApi.cjs +1 -0
- package/src/apis/WaasApi.js +1 -0
- package/src/index.cjs +28 -0
- package/src/index.js +6 -0
- package/src/models/ExportWaasWalletPrivateKeyRequest.cjs +2 -0
- package/src/models/ExportWaasWalletPrivateKeyRequest.d.ts +8 -0
- package/src/models/ExportWaasWalletPrivateKeyRequest.js +2 -0
- package/src/models/InlineObject.cjs +33 -0
- package/src/models/InlineObject.d.ts +28 -0
- package/src/models/InlineObject.js +27 -0
- package/src/models/InlineResponse200.cjs +33 -0
- package/src/models/InlineResponse200.d.ts +27 -0
- package/src/models/InlineResponse200.js +27 -0
- package/src/models/RefreshKeySharesRequest.cjs +33 -0
- package/src/models/RefreshKeySharesRequest.d.ts +30 -0
- package/src/models/RefreshKeySharesRequest.js +27 -0
- package/src/models/RefreshKeySharesResponse.cjs +41 -0
- package/src/models/RefreshKeySharesResponse.d.ts +53 -0
- package/src/models/RefreshKeySharesResponse.js +35 -0
- package/src/models/RefreshKeySharesResponseAllOf.cjs +33 -0
- package/src/models/RefreshKeySharesResponseAllOf.d.ts +29 -0
- package/src/models/RefreshKeySharesResponseAllOf.js +27 -0
- package/src/models/ReshareRequest.cjs +2 -0
- package/src/models/ReshareRequest.d.ts +10 -0
- package/src/models/ReshareRequest.js +2 -0
- package/src/models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.cjs +57 -0
- package/src/models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.d.ts +48 -0
- package/src/models/SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses.js +51 -0
- package/src/models/SignMessageWithWaasRequest.cjs +2 -0
- package/src/models/SignMessageWithWaasRequest.d.ts +8 -0
- package/src/models/SignMessageWithWaasRequest.js +2 -0
- package/src/models/SignTransactionWithWaasRequest.cjs +4 -12
- package/src/models/SignTransactionWithWaasRequest.d.ts +8 -0
- package/src/models/SignTransactionWithWaasRequest.js +4 -12
- package/src/models/UpdateWaasWalletSettingsRequest.cjs +4 -12
- package/src/models/UpdateWaasWalletSettingsRequest.d.ts +8 -0
- package/src/models/UpdateWaasWalletSettingsRequest.js +4 -12
- package/src/models/index.d.ts +6 -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 InlineResponse200
|
|
16
|
+
*/
|
|
17
|
+
export interface InlineResponse200 {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof InlineResponse200
|
|
22
|
+
*/
|
|
23
|
+
success?: boolean;
|
|
24
|
+
}
|
|
25
|
+
export declare function InlineResponse200FromJSON(json: any): InlineResponse200;
|
|
26
|
+
export declare function InlineResponse200FromJSONTyped(json: any, ignoreDiscriminator: boolean): InlineResponse200;
|
|
27
|
+
export declare function InlineResponse200ToJSON(value?: InlineResponse200 | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function InlineResponse200FromJSON(json) {
|
|
5
|
+
return InlineResponse200FromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function InlineResponse200FromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'success': !exists(json, 'success') ? undefined : json['success'],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function InlineResponse200ToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'success': value.success,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { InlineResponse200FromJSON, InlineResponse200FromJSONTyped, InlineResponse200ToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function RefreshKeySharesRequestFromJSON(json) {
|
|
9
|
+
return RefreshKeySharesRequestFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function RefreshKeySharesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function RefreshKeySharesRequestToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'shareSetId': value.shareSetId,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.RefreshKeySharesRequestFromJSON = RefreshKeySharesRequestFromJSON;
|
|
32
|
+
exports.RefreshKeySharesRequestFromJSONTyped = RefreshKeySharesRequestFromJSONTyped;
|
|
33
|
+
exports.RefreshKeySharesRequestToJSON = RefreshKeySharesRequestToJSON;
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* Identifier of the active share set to refresh. Optional for backwards
|
|
20
|
+
* compatibility — when omitted, the active rootUser share set is
|
|
21
|
+
* resolved from walletId. SDKs that already receive shareSetId from
|
|
22
|
+
* getWallet() should pass it here to avoid the fallback lookup.
|
|
23
|
+
* @type {string}
|
|
24
|
+
* @memberof RefreshKeySharesRequest
|
|
25
|
+
*/
|
|
26
|
+
shareSetId?: string | null;
|
|
27
|
+
}
|
|
28
|
+
export declare function RefreshKeySharesRequestFromJSON(json: any): RefreshKeySharesRequest;
|
|
29
|
+
export declare function RefreshKeySharesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefreshKeySharesRequest;
|
|
30
|
+
export declare function RefreshKeySharesRequestToJSON(value?: RefreshKeySharesRequest | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function RefreshKeySharesRequestFromJSON(json) {
|
|
5
|
+
return RefreshKeySharesRequestFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function RefreshKeySharesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function RefreshKeySharesRequestToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'shareSetId': value.shareSetId,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { RefreshKeySharesRequestFromJSON, RefreshKeySharesRequestFromJSONTyped, RefreshKeySharesRequestToJSON };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function RefreshKeySharesResponseFromJSON(json) {
|
|
9
|
+
return RefreshKeySharesResponseFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function RefreshKeySharesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'roomId': json['roomId'],
|
|
17
|
+
'serverKeygenIds': json['serverKeygenIds'],
|
|
18
|
+
'newServerKeygenIds': !runtime.exists(json, 'newServerKeygenIds') ? undefined : json['newServerKeygenIds'],
|
|
19
|
+
'walletId': !runtime.exists(json, 'walletId') ? undefined : json['walletId'],
|
|
20
|
+
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
function RefreshKeySharesResponseToJSON(value) {
|
|
24
|
+
if (value === undefined) {
|
|
25
|
+
return undefined;
|
|
26
|
+
}
|
|
27
|
+
if (value === null) {
|
|
28
|
+
return null;
|
|
29
|
+
}
|
|
30
|
+
return {
|
|
31
|
+
'roomId': value.roomId,
|
|
32
|
+
'serverKeygenIds': value.serverKeygenIds,
|
|
33
|
+
'newServerKeygenIds': value.newServerKeygenIds,
|
|
34
|
+
'walletId': value.walletId,
|
|
35
|
+
'shareSetId': value.shareSetId,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
exports.RefreshKeySharesResponseFromJSON = RefreshKeySharesResponseFromJSON;
|
|
40
|
+
exports.RefreshKeySharesResponseFromJSONTyped = RefreshKeySharesResponseFromJSONTyped;
|
|
41
|
+
exports.RefreshKeySharesResponseToJSON = RefreshKeySharesResponseToJSON;
|
|
@@ -0,0 +1,53 @@
|
|
|
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 RefreshKeySharesResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface RefreshKeySharesResponse {
|
|
18
|
+
/**
|
|
19
|
+
* Unique identifier of the opened MPC room
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RefreshKeySharesResponse
|
|
22
|
+
*/
|
|
23
|
+
roomId: string;
|
|
24
|
+
/**
|
|
25
|
+
* List of existing server-side key generation identifiers
|
|
26
|
+
* @type {Array<string>}
|
|
27
|
+
* @memberof RefreshKeySharesResponse
|
|
28
|
+
*/
|
|
29
|
+
serverKeygenIds: Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* List of newly generated server-side key generation identifiers
|
|
32
|
+
* @type {Array<string>}
|
|
33
|
+
* @memberof RefreshKeySharesResponse
|
|
34
|
+
*/
|
|
35
|
+
newServerKeygenIds?: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof RefreshKeySharesResponse
|
|
40
|
+
*/
|
|
41
|
+
walletId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Identifier of the new pending share set produced by this refresh
|
|
44
|
+
* ceremony. The SDK must echo this value back on the follow-up
|
|
45
|
+
* backup call so the atomic swap targets the correct row.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof RefreshKeySharesResponse
|
|
48
|
+
*/
|
|
49
|
+
shareSetId?: string | null;
|
|
50
|
+
}
|
|
51
|
+
export declare function RefreshKeySharesResponseFromJSON(json: any): RefreshKeySharesResponse;
|
|
52
|
+
export declare function RefreshKeySharesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefreshKeySharesResponse;
|
|
53
|
+
export declare function RefreshKeySharesResponseToJSON(value?: RefreshKeySharesResponse | null): any;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function RefreshKeySharesResponseFromJSON(json) {
|
|
5
|
+
return RefreshKeySharesResponseFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function RefreshKeySharesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'roomId': json['roomId'],
|
|
13
|
+
'serverKeygenIds': json['serverKeygenIds'],
|
|
14
|
+
'newServerKeygenIds': !exists(json, 'newServerKeygenIds') ? undefined : json['newServerKeygenIds'],
|
|
15
|
+
'walletId': !exists(json, 'walletId') ? undefined : json['walletId'],
|
|
16
|
+
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function RefreshKeySharesResponseToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'roomId': value.roomId,
|
|
28
|
+
'serverKeygenIds': value.serverKeygenIds,
|
|
29
|
+
'newServerKeygenIds': value.newServerKeygenIds,
|
|
30
|
+
'walletId': value.walletId,
|
|
31
|
+
'shareSetId': value.shareSetId,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { RefreshKeySharesResponseFromJSON, RefreshKeySharesResponseFromJSONTyped, RefreshKeySharesResponseToJSON };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function RefreshKeySharesResponseAllOfFromJSON(json) {
|
|
9
|
+
return RefreshKeySharesResponseAllOfFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function RefreshKeySharesResponseAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
function RefreshKeySharesResponseAllOfToJSON(value) {
|
|
20
|
+
if (value === undefined) {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
if (value === null) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
return {
|
|
27
|
+
'shareSetId': value.shareSetId,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
exports.RefreshKeySharesResponseAllOfFromJSON = RefreshKeySharesResponseAllOfFromJSON;
|
|
32
|
+
exports.RefreshKeySharesResponseAllOfFromJSONTyped = RefreshKeySharesResponseAllOfFromJSONTyped;
|
|
33
|
+
exports.RefreshKeySharesResponseAllOfToJSON = RefreshKeySharesResponseAllOfToJSON;
|
|
@@ -0,0 +1,29 @@
|
|
|
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 RefreshKeySharesResponseAllOf
|
|
16
|
+
*/
|
|
17
|
+
export interface RefreshKeySharesResponseAllOf {
|
|
18
|
+
/**
|
|
19
|
+
* Identifier of the new pending share set produced by this refresh
|
|
20
|
+
* ceremony. The SDK must echo this value back on the follow-up
|
|
21
|
+
* backup call so the atomic swap targets the correct row.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof RefreshKeySharesResponseAllOf
|
|
24
|
+
*/
|
|
25
|
+
shareSetId?: string | null;
|
|
26
|
+
}
|
|
27
|
+
export declare function RefreshKeySharesResponseAllOfFromJSON(json: any): RefreshKeySharesResponseAllOf;
|
|
28
|
+
export declare function RefreshKeySharesResponseAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): RefreshKeySharesResponseAllOf;
|
|
29
|
+
export declare function RefreshKeySharesResponseAllOfToJSON(value?: RefreshKeySharesResponseAllOf | null): any;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function RefreshKeySharesResponseAllOfFromJSON(json) {
|
|
5
|
+
return RefreshKeySharesResponseAllOfFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function RefreshKeySharesResponseAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function RefreshKeySharesResponseAllOfToJSON(value) {
|
|
16
|
+
if (value === undefined) {
|
|
17
|
+
return undefined;
|
|
18
|
+
}
|
|
19
|
+
if (value === null) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
'shareSetId': value.shareSetId,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { RefreshKeySharesResponseAllOfFromJSON, RefreshKeySharesResponseAllOfFromJSONTyped, RefreshKeySharesResponseAllOfToJSON };
|
|
@@ -19,6 +19,7 @@ function ReshareRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19
19
|
'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
|
|
20
20
|
'delegateToProjectEnvironment': !runtime.exists(json, 'delegateToProjectEnvironment') ? undefined : json['delegateToProjectEnvironment'],
|
|
21
21
|
'revokeDelegation': !runtime.exists(json, 'revokeDelegation') ? undefined : json['revokeDelegation'],
|
|
22
|
+
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
22
23
|
};
|
|
23
24
|
}
|
|
24
25
|
function ReshareRequestToJSON(value) {
|
|
@@ -34,6 +35,7 @@ function ReshareRequestToJSON(value) {
|
|
|
34
35
|
'newThresholdSignatureScheme': ThresholdSignatureScheme.ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
|
|
35
36
|
'delegateToProjectEnvironment': value.delegateToProjectEnvironment,
|
|
36
37
|
'revokeDelegation': value.revokeDelegation,
|
|
38
|
+
'shareSetId': value.shareSetId,
|
|
37
39
|
};
|
|
38
40
|
}
|
|
39
41
|
|
|
@@ -46,6 +46,16 @@ export interface ReshareRequest {
|
|
|
46
46
|
* @memberof ReshareRequest
|
|
47
47
|
*/
|
|
48
48
|
revokeDelegation?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Identifier of the active share set this reshare ceremony runs against.
|
|
51
|
+
* Optional for backwards compatibility — when omitted, the active
|
|
52
|
+
* rootUser share set is resolved from walletId. SDKs that already
|
|
53
|
+
* receive shareSetId from getWallet() should pass it here to avoid the
|
|
54
|
+
* fallback lookup.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ReshareRequest
|
|
57
|
+
*/
|
|
58
|
+
shareSetId?: string | null;
|
|
49
59
|
}
|
|
50
60
|
export declare function ReshareRequestFromJSON(json: any): ReshareRequest;
|
|
51
61
|
export declare function ReshareRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReshareRequest;
|
|
@@ -15,6 +15,7 @@ function ReshareRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
15
15
|
'newThresholdSignatureScheme': ThresholdSignatureSchemeFromJSON(json['newThresholdSignatureScheme']),
|
|
16
16
|
'delegateToProjectEnvironment': !exists(json, 'delegateToProjectEnvironment') ? undefined : json['delegateToProjectEnvironment'],
|
|
17
17
|
'revokeDelegation': !exists(json, 'revokeDelegation') ? undefined : json['revokeDelegation'],
|
|
18
|
+
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
18
19
|
};
|
|
19
20
|
}
|
|
20
21
|
function ReshareRequestToJSON(value) {
|
|
@@ -30,6 +31,7 @@ function ReshareRequestToJSON(value) {
|
|
|
30
31
|
'newThresholdSignatureScheme': ThresholdSignatureSchemeToJSON(value.newThresholdSignatureScheme),
|
|
31
32
|
'delegateToProjectEnvironment': value.delegateToProjectEnvironment,
|
|
32
33
|
'revokeDelegation': value.revokeDelegation,
|
|
34
|
+
'shareSetId': value.shareSetId,
|
|
33
35
|
};
|
|
34
36
|
}
|
|
35
37
|
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
/* tslint:disable */
|
|
6
|
+
/* eslint-disable */
|
|
7
|
+
/**
|
|
8
|
+
* Dashboard API
|
|
9
|
+
* Dashboard API documentation
|
|
10
|
+
*
|
|
11
|
+
* The version of the OpenAPI document: 1.0.0
|
|
12
|
+
*
|
|
13
|
+
*
|
|
14
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
15
|
+
* https://openapi-generator.tech
|
|
16
|
+
* Do not edit the class manually.
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
exports.SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum = void 0;
|
|
23
|
+
(function (SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum) {
|
|
24
|
+
SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum["Shielded"] = "midnight_shielded";
|
|
25
|
+
SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum["Dust"] = "midnight_dust";
|
|
26
|
+
SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum["Unshielded"] = "midnight_unshielded";
|
|
27
|
+
})(exports.SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum || (exports.SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum = {}));
|
|
28
|
+
function SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSON(json) {
|
|
29
|
+
return SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSONTyped(json);
|
|
30
|
+
}
|
|
31
|
+
function SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'address': json['address'],
|
|
37
|
+
'publicKey': json['publicKey'],
|
|
38
|
+
'type': json['type'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'address': value.address,
|
|
50
|
+
'publicKey': value.publicKey,
|
|
51
|
+
'type': value.type,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
exports.SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSON = SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSON;
|
|
56
|
+
exports.SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSONTyped = SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSONTyped;
|
|
57
|
+
exports.SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesToJSON = SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesToJSON;
|
|
@@ -0,0 +1,48 @@
|
|
|
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 SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses
|
|
16
|
+
*/
|
|
17
|
+
export interface SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses
|
|
22
|
+
*/
|
|
23
|
+
address: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses
|
|
28
|
+
*/
|
|
29
|
+
publicKey: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses
|
|
34
|
+
*/
|
|
35
|
+
type: SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
* @enum {string}
|
|
40
|
+
*/
|
|
41
|
+
export declare enum SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum {
|
|
42
|
+
Shielded = "midnight_shielded",
|
|
43
|
+
Dust = "midnight_dust",
|
|
44
|
+
Unshielded = "midnight_unshielded"
|
|
45
|
+
}
|
|
46
|
+
export declare function SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSON(json: any): SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses;
|
|
47
|
+
export declare function SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSONTyped(json: any, ignoreDiscriminator: boolean): SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses;
|
|
48
|
+
export declare function SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesToJSON(value?: SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddresses | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Dashboard API
|
|
5
|
+
* Dashboard API documentation
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
* @enum {string}
|
|
17
|
+
*/
|
|
18
|
+
var SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum;
|
|
19
|
+
(function (SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum) {
|
|
20
|
+
SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum["Shielded"] = "midnight_shielded";
|
|
21
|
+
SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum["Dust"] = "midnight_dust";
|
|
22
|
+
SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum["Unshielded"] = "midnight_unshielded";
|
|
23
|
+
})(SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum || (SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum = {}));
|
|
24
|
+
function SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSON(json) {
|
|
25
|
+
return SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSONTyped(json);
|
|
26
|
+
}
|
|
27
|
+
function SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if ((json === undefined) || (json === null)) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'address': json['address'],
|
|
33
|
+
'publicKey': json['publicKey'],
|
|
34
|
+
'type': json['type'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesToJSON(value) {
|
|
38
|
+
if (value === undefined) {
|
|
39
|
+
return undefined;
|
|
40
|
+
}
|
|
41
|
+
if (value === null) {
|
|
42
|
+
return null;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'address': value.address,
|
|
46
|
+
'publicKey': value.publicKey,
|
|
47
|
+
'type': value.type,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSON, SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesFromJSONTyped, SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesToJSON, SdkEnvironmentIdWaasWalletIdAdditionalAddressesAdditionalAddressesTypeEnum };
|
|
@@ -20,6 +20,7 @@ function SignMessageWithWaasRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
20
20
|
'roomId': !runtime.exists(json, 'roomId') ? undefined : json['roomId'],
|
|
21
21
|
'context': !runtime.exists(json, 'context') ? undefined : SignMessageContext.SignMessageContextFromJSON(json['context']),
|
|
22
22
|
'bitcoinConfig': !runtime.exists(json, 'bitcoinConfig') ? undefined : WalletBitcoinConfig.WalletBitcoinConfigFromJSON(json['bitcoinConfig']),
|
|
23
|
+
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
function SignMessageWithWaasRequestToJSON(value) {
|
|
@@ -35,6 +36,7 @@ function SignMessageWithWaasRequestToJSON(value) {
|
|
|
35
36
|
'roomId': value.roomId,
|
|
36
37
|
'context': SignMessageContext.SignMessageContextToJSON(value.context),
|
|
37
38
|
'bitcoinConfig': WalletBitcoinConfig.WalletBitcoinConfigToJSON(value.bitcoinConfig),
|
|
39
|
+
'shareSetId': value.shareSetId,
|
|
38
40
|
};
|
|
39
41
|
}
|
|
40
42
|
|
|
@@ -47,6 +47,14 @@ export interface SignMessageWithWaasRequest {
|
|
|
47
47
|
* @memberof SignMessageWithWaasRequest
|
|
48
48
|
*/
|
|
49
49
|
bitcoinConfig?: WalletBitcoinConfig;
|
|
50
|
+
/**
|
|
51
|
+
* Optional identifier of the share set this operation targets. When
|
|
52
|
+
* omitted, the active rootUser share set for `walletId` is resolved
|
|
53
|
+
* server-side (backwards-compat fallback for older SDKs).
|
|
54
|
+
* @type {string}
|
|
55
|
+
* @memberof SignMessageWithWaasRequest
|
|
56
|
+
*/
|
|
57
|
+
shareSetId?: string | null;
|
|
50
58
|
}
|
|
51
59
|
export declare function SignMessageWithWaasRequestFromJSON(json: any): SignMessageWithWaasRequest;
|
|
52
60
|
export declare function SignMessageWithWaasRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageWithWaasRequest;
|
|
@@ -16,6 +16,7 @@ function SignMessageWithWaasRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
16
16
|
'roomId': !exists(json, 'roomId') ? undefined : json['roomId'],
|
|
17
17
|
'context': !exists(json, 'context') ? undefined : SignMessageContextFromJSON(json['context']),
|
|
18
18
|
'bitcoinConfig': !exists(json, 'bitcoinConfig') ? undefined : WalletBitcoinConfigFromJSON(json['bitcoinConfig']),
|
|
19
|
+
'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
19
20
|
};
|
|
20
21
|
}
|
|
21
22
|
function SignMessageWithWaasRequestToJSON(value) {
|
|
@@ -31,6 +32,7 @@ function SignMessageWithWaasRequestToJSON(value) {
|
|
|
31
32
|
'roomId': value.roomId,
|
|
32
33
|
'context': SignMessageContextToJSON(value.context),
|
|
33
34
|
'bitcoinConfig': WalletBitcoinConfigToJSON(value.bitcoinConfig),
|
|
35
|
+
'shareSetId': value.shareSetId,
|
|
34
36
|
};
|
|
35
37
|
}
|
|
36
38
|
|
|
@@ -2,19 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
5
7
|
/* 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
8
|
function SignTransactionWithWaasRequestFromJSON(json) {
|
|
19
9
|
return SignTransactionWithWaasRequestFromJSONTyped(json);
|
|
20
10
|
}
|
|
@@ -24,6 +14,7 @@ function SignTransactionWithWaasRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
24
14
|
}
|
|
25
15
|
return {
|
|
26
16
|
'transactionHash': json['transactionHash'],
|
|
17
|
+
'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
|
|
27
18
|
};
|
|
28
19
|
}
|
|
29
20
|
function SignTransactionWithWaasRequestToJSON(value) {
|
|
@@ -35,6 +26,7 @@ function SignTransactionWithWaasRequestToJSON(value) {
|
|
|
35
26
|
}
|
|
36
27
|
return {
|
|
37
28
|
'transactionHash': value.transactionHash,
|
|
29
|
+
'shareSetId': value.shareSetId,
|
|
38
30
|
};
|
|
39
31
|
}
|
|
40
32
|
|