@dynamic-labs/sdk-api 0.0.844 → 0.0.846
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/index.cjs +4 -0
- package/src/index.js +1 -0
- package/src/models/EmbeddedWalletChainEnum.cjs +1 -0
- package/src/models/EmbeddedWalletChainEnum.d.ts +2 -1
- package/src/models/EmbeddedWalletChainEnum.js +1 -0
- package/src/models/WaasChainEnum.cjs +1 -0
- package/src/models/WaasChainEnum.d.ts +2 -1
- package/src/models/WaasChainEnum.js +1 -0
- package/src/models/WaasPolicyRule.cjs +3 -0
- package/src/models/WaasPolicyRule.d.ts +7 -0
- package/src/models/WaasPolicyRule.js +3 -0
- package/src/models/WaasPolicyRuleOperationRestrictions.cjs +37 -0
- package/src/models/WaasPolicyRuleOperationRestrictions.d.ts +39 -0
- package/src/models/WaasPolicyRuleOperationRestrictions.js +31 -0
- package/src/models/index.d.ts +1 -0
package/package.json
CHANGED
package/src/index.cjs
CHANGED
|
@@ -589,6 +589,7 @@ var WaasPolicyCreateRequest = require('./models/WaasPolicyCreateRequest.cjs');
|
|
|
589
589
|
var WaasPolicyDeleteRequest = require('./models/WaasPolicyDeleteRequest.cjs');
|
|
590
590
|
var WaasPolicyResponse = require('./models/WaasPolicyResponse.cjs');
|
|
591
591
|
var WaasPolicyRule = require('./models/WaasPolicyRule.cjs');
|
|
592
|
+
var WaasPolicyRuleOperationRestrictions = require('./models/WaasPolicyRuleOperationRestrictions.cjs');
|
|
592
593
|
var WaasPolicyRuleType = require('./models/WaasPolicyRuleType.cjs');
|
|
593
594
|
var WaasPolicyRuleValueLimit = require('./models/WaasPolicyRuleValueLimit.cjs');
|
|
594
595
|
var WaasPolicyUpdateRequest = require('./models/WaasPolicyUpdateRequest.cjs');
|
|
@@ -2680,6 +2681,9 @@ exports.WaasPolicyResponseToJSON = WaasPolicyResponse.WaasPolicyResponseToJSON;
|
|
|
2680
2681
|
exports.WaasPolicyRuleFromJSON = WaasPolicyRule.WaasPolicyRuleFromJSON;
|
|
2681
2682
|
exports.WaasPolicyRuleFromJSONTyped = WaasPolicyRule.WaasPolicyRuleFromJSONTyped;
|
|
2682
2683
|
exports.WaasPolicyRuleToJSON = WaasPolicyRule.WaasPolicyRuleToJSON;
|
|
2684
|
+
exports.WaasPolicyRuleOperationRestrictionsFromJSON = WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsFromJSON;
|
|
2685
|
+
exports.WaasPolicyRuleOperationRestrictionsFromJSONTyped = WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsFromJSONTyped;
|
|
2686
|
+
exports.WaasPolicyRuleOperationRestrictionsToJSON = WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsToJSON;
|
|
2683
2687
|
Object.defineProperty(exports, 'WaasPolicyRuleType', {
|
|
2684
2688
|
enumerable: true,
|
|
2685
2689
|
get: function () { return WaasPolicyRuleType.WaasPolicyRuleType; }
|
package/src/index.js
CHANGED
|
@@ -585,6 +585,7 @@ export { WaasPolicyCreateRequestFromJSON, WaasPolicyCreateRequestFromJSONTyped,
|
|
|
585
585
|
export { WaasPolicyDeleteRequestFromJSON, WaasPolicyDeleteRequestFromJSONTyped, WaasPolicyDeleteRequestToJSON } from './models/WaasPolicyDeleteRequest.js';
|
|
586
586
|
export { WaasPolicyResponseFromJSON, WaasPolicyResponseFromJSONTyped, WaasPolicyResponseToJSON } from './models/WaasPolicyResponse.js';
|
|
587
587
|
export { WaasPolicyRuleFromJSON, WaasPolicyRuleFromJSONTyped, WaasPolicyRuleToJSON } from './models/WaasPolicyRule.js';
|
|
588
|
+
export { WaasPolicyRuleOperationRestrictionsFromJSON, WaasPolicyRuleOperationRestrictionsFromJSONTyped, WaasPolicyRuleOperationRestrictionsToJSON } from './models/WaasPolicyRuleOperationRestrictions.js';
|
|
588
589
|
export { WaasPolicyRuleType, WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeFromJSONTyped, WaasPolicyRuleTypeToJSON } from './models/WaasPolicyRuleType.js';
|
|
589
590
|
export { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitFromJSONTyped, WaasPolicyRuleValueLimitToJSON } from './models/WaasPolicyRuleValueLimit.js';
|
|
590
591
|
export { WaasPolicyUpdateRequestFromJSON, WaasPolicyUpdateRequestFromJSONTyped, WaasPolicyUpdateRequestToJSON } from './models/WaasPolicyUpdateRequest.js';
|
|
@@ -26,6 +26,7 @@ exports.EmbeddedWalletChainEnum = void 0;
|
|
|
26
26
|
EmbeddedWalletChainEnum["Sol"] = "SOL";
|
|
27
27
|
EmbeddedWalletChainEnum["Sui"] = "SUI";
|
|
28
28
|
EmbeddedWalletChainEnum["Btc"] = "BTC";
|
|
29
|
+
EmbeddedWalletChainEnum["Ton"] = "TON";
|
|
29
30
|
})(exports.EmbeddedWalletChainEnum || (exports.EmbeddedWalletChainEnum = {}));
|
|
30
31
|
function EmbeddedWalletChainEnumFromJSON(json) {
|
|
31
32
|
return EmbeddedWalletChainEnumFromJSONTyped(json);
|
|
@@ -18,7 +18,8 @@ export declare enum EmbeddedWalletChainEnum {
|
|
|
18
18
|
Evm = "EVM",
|
|
19
19
|
Sol = "SOL",
|
|
20
20
|
Sui = "SUI",
|
|
21
|
-
Btc = "BTC"
|
|
21
|
+
Btc = "BTC",
|
|
22
|
+
Ton = "TON"
|
|
22
23
|
}
|
|
23
24
|
export declare function EmbeddedWalletChainEnumFromJSON(json: any): EmbeddedWalletChainEnum;
|
|
24
25
|
export declare function EmbeddedWalletChainEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmbeddedWalletChainEnum;
|
|
@@ -22,6 +22,7 @@ var EmbeddedWalletChainEnum;
|
|
|
22
22
|
EmbeddedWalletChainEnum["Sol"] = "SOL";
|
|
23
23
|
EmbeddedWalletChainEnum["Sui"] = "SUI";
|
|
24
24
|
EmbeddedWalletChainEnum["Btc"] = "BTC";
|
|
25
|
+
EmbeddedWalletChainEnum["Ton"] = "TON";
|
|
25
26
|
})(EmbeddedWalletChainEnum || (EmbeddedWalletChainEnum = {}));
|
|
26
27
|
function EmbeddedWalletChainEnumFromJSON(json) {
|
|
27
28
|
return EmbeddedWalletChainEnumFromJSONTyped(json);
|
|
@@ -26,6 +26,7 @@ exports.WaasChainEnum = void 0;
|
|
|
26
26
|
WaasChainEnum["Svm"] = "SVM";
|
|
27
27
|
WaasChainEnum["Sui"] = "SUI";
|
|
28
28
|
WaasChainEnum["Btc"] = "BTC";
|
|
29
|
+
WaasChainEnum["Ton"] = "TON";
|
|
29
30
|
})(exports.WaasChainEnum || (exports.WaasChainEnum = {}));
|
|
30
31
|
function WaasChainEnumFromJSON(json) {
|
|
31
32
|
return WaasChainEnumFromJSONTyped(json);
|
|
@@ -18,7 +18,8 @@ export declare enum WaasChainEnum {
|
|
|
18
18
|
Evm = "EVM",
|
|
19
19
|
Svm = "SVM",
|
|
20
20
|
Sui = "SUI",
|
|
21
|
-
Btc = "BTC"
|
|
21
|
+
Btc = "BTC",
|
|
22
|
+
Ton = "TON"
|
|
22
23
|
}
|
|
23
24
|
export declare function WaasChainEnumFromJSON(json: any): WaasChainEnum;
|
|
24
25
|
export declare function WaasChainEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasChainEnum;
|
|
@@ -22,6 +22,7 @@ var WaasChainEnum;
|
|
|
22
22
|
WaasChainEnum["Svm"] = "SVM";
|
|
23
23
|
WaasChainEnum["Sui"] = "SUI";
|
|
24
24
|
WaasChainEnum["Btc"] = "BTC";
|
|
25
|
+
WaasChainEnum["Ton"] = "TON";
|
|
25
26
|
})(WaasChainEnum || (WaasChainEnum = {}));
|
|
26
27
|
function WaasChainEnumFromJSON(json) {
|
|
27
28
|
return WaasChainEnumFromJSONTyped(json);
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var runtime = require('../runtime.cjs');
|
|
6
6
|
var WaasChainEnum = require('./WaasChainEnum.cjs');
|
|
7
7
|
var WaasPolicyArgumentConstraint = require('./WaasPolicyArgumentConstraint.cjs');
|
|
8
|
+
var WaasPolicyRuleOperationRestrictions = require('./WaasPolicyRuleOperationRestrictions.cjs');
|
|
8
9
|
var WaasPolicyRuleType = require('./WaasPolicyRuleType.cjs');
|
|
9
10
|
var WaasPolicyRuleValueLimit = require('./WaasPolicyRuleValueLimit.cjs');
|
|
10
11
|
|
|
@@ -29,6 +30,7 @@ function WaasPolicyRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
29
30
|
'functionName': !runtime.exists(json, 'functionName') ? undefined : json['functionName'],
|
|
30
31
|
'argumentConstraints': !runtime.exists(json, 'argumentConstraints') ? undefined : (json['argumentConstraints'].map(WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintFromJSON)),
|
|
31
32
|
'valueLimit': !runtime.exists(json, 'valueLimit') ? undefined : WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitFromJSON(json['valueLimit']),
|
|
33
|
+
'operationRestrictions': !runtime.exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
function WaasPolicyRuleToJSON(value) {
|
|
@@ -51,6 +53,7 @@ function WaasPolicyRuleToJSON(value) {
|
|
|
51
53
|
'functionName': value.functionName,
|
|
52
54
|
'argumentConstraints': value.argumentConstraints === undefined ? undefined : (value.argumentConstraints.map(WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintToJSON)),
|
|
53
55
|
'valueLimit': WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitToJSON(value.valueLimit),
|
|
56
|
+
'operationRestrictions': WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
|
|
54
57
|
};
|
|
55
58
|
}
|
|
56
59
|
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { WaasChainEnum } from './WaasChainEnum';
|
|
13
13
|
import { WaasPolicyArgumentConstraint } from './WaasPolicyArgumentConstraint';
|
|
14
|
+
import { WaasPolicyRuleOperationRestrictions } from './WaasPolicyRuleOperationRestrictions';
|
|
14
15
|
import { WaasPolicyRuleType } from './WaasPolicyRuleType';
|
|
15
16
|
import { WaasPolicyRuleValueLimit } from './WaasPolicyRuleValueLimit';
|
|
16
17
|
/**
|
|
@@ -91,6 +92,12 @@ export interface WaasPolicyRule {
|
|
|
91
92
|
* @memberof WaasPolicyRule
|
|
92
93
|
*/
|
|
93
94
|
valueLimit?: WaasPolicyRuleValueLimit;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {WaasPolicyRuleOperationRestrictions}
|
|
98
|
+
* @memberof WaasPolicyRule
|
|
99
|
+
*/
|
|
100
|
+
operationRestrictions?: WaasPolicyRuleOperationRestrictions;
|
|
94
101
|
}
|
|
95
102
|
export declare function WaasPolicyRuleFromJSON(json: any): WaasPolicyRule;
|
|
96
103
|
export declare function WaasPolicyRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyRule;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { exists } from '../runtime.js';
|
|
2
2
|
import { WaasChainEnumFromJSON, WaasChainEnumToJSON } from './WaasChainEnum.js';
|
|
3
3
|
import { WaasPolicyArgumentConstraintFromJSON, WaasPolicyArgumentConstraintToJSON } from './WaasPolicyArgumentConstraint.js';
|
|
4
|
+
import { WaasPolicyRuleOperationRestrictionsFromJSON, WaasPolicyRuleOperationRestrictionsToJSON } from './WaasPolicyRuleOperationRestrictions.js';
|
|
4
5
|
import { WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeToJSON } from './WaasPolicyRuleType.js';
|
|
5
6
|
import { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitToJSON } from './WaasPolicyRuleValueLimit.js';
|
|
6
7
|
|
|
@@ -25,6 +26,7 @@ function WaasPolicyRuleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
26
|
'functionName': !exists(json, 'functionName') ? undefined : json['functionName'],
|
|
26
27
|
'argumentConstraints': !exists(json, 'argumentConstraints') ? undefined : (json['argumentConstraints'].map(WaasPolicyArgumentConstraintFromJSON)),
|
|
27
28
|
'valueLimit': !exists(json, 'valueLimit') ? undefined : WaasPolicyRuleValueLimitFromJSON(json['valueLimit']),
|
|
29
|
+
'operationRestrictions': !exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
|
|
28
30
|
};
|
|
29
31
|
}
|
|
30
32
|
function WaasPolicyRuleToJSON(value) {
|
|
@@ -47,6 +49,7 @@ function WaasPolicyRuleToJSON(value) {
|
|
|
47
49
|
'functionName': value.functionName,
|
|
48
50
|
'argumentConstraints': value.argumentConstraints === undefined ? undefined : (value.argumentConstraints.map(WaasPolicyArgumentConstraintToJSON)),
|
|
49
51
|
'valueLimit': WaasPolicyRuleValueLimitToJSON(value.valueLimit),
|
|
52
|
+
'operationRestrictions': WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
|
|
50
53
|
};
|
|
51
54
|
}
|
|
52
55
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('../runtime.cjs');
|
|
6
|
+
|
|
7
|
+
/* tslint:disable */
|
|
8
|
+
function WaasPolicyRuleOperationRestrictionsFromJSON(json) {
|
|
9
|
+
return WaasPolicyRuleOperationRestrictionsFromJSONTyped(json);
|
|
10
|
+
}
|
|
11
|
+
function WaasPolicyRuleOperationRestrictionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
12
|
+
if ((json === undefined) || (json === null)) {
|
|
13
|
+
return json;
|
|
14
|
+
}
|
|
15
|
+
return {
|
|
16
|
+
'blockExport': !runtime.exists(json, 'blockExport') ? undefined : json['blockExport'],
|
|
17
|
+
'blockRevocation': !runtime.exists(json, 'blockRevocation') ? undefined : json['blockRevocation'],
|
|
18
|
+
'blockClientSigning': !runtime.exists(json, 'blockClientSigning') ? undefined : json['blockClientSigning'],
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
function WaasPolicyRuleOperationRestrictionsToJSON(value) {
|
|
22
|
+
if (value === undefined) {
|
|
23
|
+
return undefined;
|
|
24
|
+
}
|
|
25
|
+
if (value === null) {
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'blockExport': value.blockExport,
|
|
30
|
+
'blockRevocation': value.blockRevocation,
|
|
31
|
+
'blockClientSigning': value.blockClientSigning,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
exports.WaasPolicyRuleOperationRestrictionsFromJSON = WaasPolicyRuleOperationRestrictionsFromJSON;
|
|
36
|
+
exports.WaasPolicyRuleOperationRestrictionsFromJSONTyped = WaasPolicyRuleOperationRestrictionsFromJSONTyped;
|
|
37
|
+
exports.WaasPolicyRuleOperationRestrictionsToJSON = WaasPolicyRuleOperationRestrictionsToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
* Operation-level restrictions for the wallet
|
|
14
|
+
* @export
|
|
15
|
+
* @interface WaasPolicyRuleOperationRestrictions
|
|
16
|
+
*/
|
|
17
|
+
export interface WaasPolicyRuleOperationRestrictions {
|
|
18
|
+
/**
|
|
19
|
+
* Block private key export
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof WaasPolicyRuleOperationRestrictions
|
|
22
|
+
*/
|
|
23
|
+
blockExport?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Block end-user revocation of delegated access
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof WaasPolicyRuleOperationRestrictions
|
|
28
|
+
*/
|
|
29
|
+
blockRevocation?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Block all end-user signing (not delegated)
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof WaasPolicyRuleOperationRestrictions
|
|
34
|
+
*/
|
|
35
|
+
blockClientSigning?: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare function WaasPolicyRuleOperationRestrictionsFromJSON(json: any): WaasPolicyRuleOperationRestrictions;
|
|
38
|
+
export declare function WaasPolicyRuleOperationRestrictionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyRuleOperationRestrictions;
|
|
39
|
+
export declare function WaasPolicyRuleOperationRestrictionsToJSON(value?: WaasPolicyRuleOperationRestrictions | null): any;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { exists } from '../runtime.js';
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
function WaasPolicyRuleOperationRestrictionsFromJSON(json) {
|
|
5
|
+
return WaasPolicyRuleOperationRestrictionsFromJSONTyped(json);
|
|
6
|
+
}
|
|
7
|
+
function WaasPolicyRuleOperationRestrictionsFromJSONTyped(json, ignoreDiscriminator) {
|
|
8
|
+
if ((json === undefined) || (json === null)) {
|
|
9
|
+
return json;
|
|
10
|
+
}
|
|
11
|
+
return {
|
|
12
|
+
'blockExport': !exists(json, 'blockExport') ? undefined : json['blockExport'],
|
|
13
|
+
'blockRevocation': !exists(json, 'blockRevocation') ? undefined : json['blockRevocation'],
|
|
14
|
+
'blockClientSigning': !exists(json, 'blockClientSigning') ? undefined : json['blockClientSigning'],
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function WaasPolicyRuleOperationRestrictionsToJSON(value) {
|
|
18
|
+
if (value === undefined) {
|
|
19
|
+
return undefined;
|
|
20
|
+
}
|
|
21
|
+
if (value === null) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
'blockExport': value.blockExport,
|
|
26
|
+
'blockRevocation': value.blockRevocation,
|
|
27
|
+
'blockClientSigning': value.blockClientSigning,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { WaasPolicyRuleOperationRestrictionsFromJSON, WaasPolicyRuleOperationRestrictionsFromJSONTyped, WaasPolicyRuleOperationRestrictionsToJSON };
|
package/src/models/index.d.ts
CHANGED
|
@@ -548,6 +548,7 @@ export * from './WaasPolicyCreateRequest';
|
|
|
548
548
|
export * from './WaasPolicyDeleteRequest';
|
|
549
549
|
export * from './WaasPolicyResponse';
|
|
550
550
|
export * from './WaasPolicyRule';
|
|
551
|
+
export * from './WaasPolicyRuleOperationRestrictions';
|
|
551
552
|
export * from './WaasPolicyRuleType';
|
|
552
553
|
export * from './WaasPolicyRuleValueLimit';
|
|
553
554
|
export * from './WaasPolicyUpdateRequest';
|