@dynamic-labs/sdk-api 0.42.0 → 0.43.0

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 (34) hide show
  1. package/package.json +1 -1
  2. package/src/index.cjs +28 -0
  3. package/src/index.js +7 -0
  4. package/src/models/SignMessageApprovalQuorum.cjs +41 -0
  5. package/src/models/SignMessageApprovalQuorum.d.ts +48 -0
  6. package/src/models/SignMessageApprovalQuorum.js +35 -0
  7. package/src/models/SignMessageApprovalQuorumApproval.cjs +45 -0
  8. package/src/models/SignMessageApprovalQuorumApproval.d.ts +33 -0
  9. package/src/models/SignMessageApprovalQuorumApproval.js +39 -0
  10. package/src/models/SignMessageApprovalQuorumIntent.cjs +55 -0
  11. package/src/models/SignMessageApprovalQuorumIntent.d.ts +63 -0
  12. package/src/models/SignMessageApprovalQuorumIntent.js +49 -0
  13. package/src/models/SignMessageWithWaasRequest.cjs +3 -0
  14. package/src/models/SignMessageWithWaasRequest.d.ts +7 -0
  15. package/src/models/SignMessageWithWaasRequest.js +3 -0
  16. package/src/models/WaasPolicyLayerResponseRule.cjs +3 -0
  17. package/src/models/WaasPolicyLayerResponseRule.d.ts +7 -0
  18. package/src/models/WaasPolicyLayerResponseRule.js +3 -0
  19. package/src/models/WaasPolicyRule.cjs +3 -0
  20. package/src/models/WaasPolicyRule.d.ts +7 -0
  21. package/src/models/WaasPolicyRule.js +3 -0
  22. package/src/models/WaasPolicyRuleApprovalRequirements.cjs +46 -0
  23. package/src/models/WaasPolicyRuleApprovalRequirements.d.ts +64 -0
  24. package/src/models/WaasPolicyRuleApprovalRequirements.js +40 -0
  25. package/src/models/WaasPolicyRuleWhen.cjs +39 -0
  26. package/src/models/WaasPolicyRuleWhen.d.ts +41 -0
  27. package/src/models/WaasPolicyRuleWhen.js +33 -0
  28. package/src/models/WaasPolicyRuleWhenInitiatorRole.cjs +35 -0
  29. package/src/models/WaasPolicyRuleWhenInitiatorRole.d.ts +33 -0
  30. package/src/models/WaasPolicyRuleWhenInitiatorRole.js +29 -0
  31. package/src/models/WaasPolicyRuleWhenMinValue.cjs +35 -0
  32. package/src/models/WaasPolicyRuleWhenMinValue.d.ts +33 -0
  33. package/src/models/WaasPolicyRuleWhenMinValue.js +29 -0
  34. package/src/models/index.d.ts +7 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.42.0",
3
+ "version": "0.43.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
package/src/index.cjs CHANGED
@@ -751,6 +751,9 @@ var SettlementConfigInput = require('./models/SettlementConfigInput.cjs');
751
751
  var SettlementStrategyEnum = require('./models/SettlementStrategyEnum.cjs');
752
752
  var SignAleoRequestWithWaasRequest = require('./models/SignAleoRequestWithWaasRequest.cjs');
753
753
  var SignInProviderEnum = require('./models/SignInProviderEnum.cjs');
754
+ var SignMessageApprovalQuorum = require('./models/SignMessageApprovalQuorum.cjs');
755
+ var SignMessageApprovalQuorumApproval = require('./models/SignMessageApprovalQuorumApproval.cjs');
756
+ var SignMessageApprovalQuorumIntent = require('./models/SignMessageApprovalQuorumIntent.cjs');
754
757
  var SignMessageAuthorizationSignature = require('./models/SignMessageAuthorizationSignature.cjs');
755
758
  var SignMessageBtcTransaction = require('./models/SignMessageBtcTransaction.cjs');
756
759
  var SignMessageContext = require('./models/SignMessageContext.cjs');
@@ -917,9 +920,13 @@ var WaasPolicyLayerRuleOperation = require('./models/WaasPolicyLayerRuleOperatio
917
920
  var WaasPolicyLayerUpdateRequest = require('./models/WaasPolicyLayerUpdateRequest.cjs');
918
921
  var WaasPolicyResponse = require('./models/WaasPolicyResponse.cjs');
919
922
  var WaasPolicyRule = require('./models/WaasPolicyRule.cjs');
923
+ var WaasPolicyRuleApprovalRequirements = require('./models/WaasPolicyRuleApprovalRequirements.cjs');
920
924
  var WaasPolicyRuleOperationRestrictions = require('./models/WaasPolicyRuleOperationRestrictions.cjs');
921
925
  var WaasPolicyRuleType = require('./models/WaasPolicyRuleType.cjs');
922
926
  var WaasPolicyRuleValueLimit = require('./models/WaasPolicyRuleValueLimit.cjs');
927
+ var WaasPolicyRuleWhen = require('./models/WaasPolicyRuleWhen.cjs');
928
+ var WaasPolicyRuleWhenInitiatorRole = require('./models/WaasPolicyRuleWhenInitiatorRole.cjs');
929
+ var WaasPolicyRuleWhenMinValue = require('./models/WaasPolicyRuleWhenMinValue.cjs');
923
930
  var WaasPolicyUpdateRequest = require('./models/WaasPolicyUpdateRequest.cjs');
924
931
  var WaasShareSet = require('./models/WaasShareSet.cjs');
925
932
  var WaasSignerPolicyLayerUpdateRequest = require('./models/WaasSignerPolicyLayerUpdateRequest.cjs');
@@ -3744,6 +3751,15 @@ Object.defineProperty(exports, 'SignInProviderEnum', {
3744
3751
  exports.SignInProviderEnumFromJSON = SignInProviderEnum.SignInProviderEnumFromJSON;
3745
3752
  exports.SignInProviderEnumFromJSONTyped = SignInProviderEnum.SignInProviderEnumFromJSONTyped;
3746
3753
  exports.SignInProviderEnumToJSON = SignInProviderEnum.SignInProviderEnumToJSON;
3754
+ exports.SignMessageApprovalQuorumFromJSON = SignMessageApprovalQuorum.SignMessageApprovalQuorumFromJSON;
3755
+ exports.SignMessageApprovalQuorumFromJSONTyped = SignMessageApprovalQuorum.SignMessageApprovalQuorumFromJSONTyped;
3756
+ exports.SignMessageApprovalQuorumToJSON = SignMessageApprovalQuorum.SignMessageApprovalQuorumToJSON;
3757
+ exports.SignMessageApprovalQuorumApprovalFromJSON = SignMessageApprovalQuorumApproval.SignMessageApprovalQuorumApprovalFromJSON;
3758
+ exports.SignMessageApprovalQuorumApprovalFromJSONTyped = SignMessageApprovalQuorumApproval.SignMessageApprovalQuorumApprovalFromJSONTyped;
3759
+ exports.SignMessageApprovalQuorumApprovalToJSON = SignMessageApprovalQuorumApproval.SignMessageApprovalQuorumApprovalToJSON;
3760
+ exports.SignMessageApprovalQuorumIntentFromJSON = SignMessageApprovalQuorumIntent.SignMessageApprovalQuorumIntentFromJSON;
3761
+ exports.SignMessageApprovalQuorumIntentFromJSONTyped = SignMessageApprovalQuorumIntent.SignMessageApprovalQuorumIntentFromJSONTyped;
3762
+ exports.SignMessageApprovalQuorumIntentToJSON = SignMessageApprovalQuorumIntent.SignMessageApprovalQuorumIntentToJSON;
3747
3763
  exports.SignMessageAuthorizationSignatureFromJSON = SignMessageAuthorizationSignature.SignMessageAuthorizationSignatureFromJSON;
3748
3764
  exports.SignMessageAuthorizationSignatureFromJSONTyped = SignMessageAuthorizationSignature.SignMessageAuthorizationSignatureFromJSONTyped;
3749
3765
  exports.SignMessageAuthorizationSignatureToJSON = SignMessageAuthorizationSignature.SignMessageAuthorizationSignatureToJSON;
@@ -4362,6 +4378,9 @@ exports.WaasPolicyResponseToJSON = WaasPolicyResponse.WaasPolicyResponseToJSON;
4362
4378
  exports.WaasPolicyRuleFromJSON = WaasPolicyRule.WaasPolicyRuleFromJSON;
4363
4379
  exports.WaasPolicyRuleFromJSONTyped = WaasPolicyRule.WaasPolicyRuleFromJSONTyped;
4364
4380
  exports.WaasPolicyRuleToJSON = WaasPolicyRule.WaasPolicyRuleToJSON;
4381
+ exports.WaasPolicyRuleApprovalRequirementsFromJSON = WaasPolicyRuleApprovalRequirements.WaasPolicyRuleApprovalRequirementsFromJSON;
4382
+ exports.WaasPolicyRuleApprovalRequirementsFromJSONTyped = WaasPolicyRuleApprovalRequirements.WaasPolicyRuleApprovalRequirementsFromJSONTyped;
4383
+ exports.WaasPolicyRuleApprovalRequirementsToJSON = WaasPolicyRuleApprovalRequirements.WaasPolicyRuleApprovalRequirementsToJSON;
4365
4384
  exports.WaasPolicyRuleOperationRestrictionsFromJSON = WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsFromJSON;
4366
4385
  exports.WaasPolicyRuleOperationRestrictionsFromJSONTyped = WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsFromJSONTyped;
4367
4386
  exports.WaasPolicyRuleOperationRestrictionsToJSON = WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsToJSON;
@@ -4375,6 +4394,15 @@ exports.WaasPolicyRuleTypeToJSON = WaasPolicyRuleType.WaasPolicyRuleTypeToJSON;
4375
4394
  exports.WaasPolicyRuleValueLimitFromJSON = WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitFromJSON;
4376
4395
  exports.WaasPolicyRuleValueLimitFromJSONTyped = WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitFromJSONTyped;
4377
4396
  exports.WaasPolicyRuleValueLimitToJSON = WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitToJSON;
4397
+ exports.WaasPolicyRuleWhenFromJSON = WaasPolicyRuleWhen.WaasPolicyRuleWhenFromJSON;
4398
+ exports.WaasPolicyRuleWhenFromJSONTyped = WaasPolicyRuleWhen.WaasPolicyRuleWhenFromJSONTyped;
4399
+ exports.WaasPolicyRuleWhenToJSON = WaasPolicyRuleWhen.WaasPolicyRuleWhenToJSON;
4400
+ exports.WaasPolicyRuleWhenInitiatorRoleFromJSON = WaasPolicyRuleWhenInitiatorRole.WaasPolicyRuleWhenInitiatorRoleFromJSON;
4401
+ exports.WaasPolicyRuleWhenInitiatorRoleFromJSONTyped = WaasPolicyRuleWhenInitiatorRole.WaasPolicyRuleWhenInitiatorRoleFromJSONTyped;
4402
+ exports.WaasPolicyRuleWhenInitiatorRoleToJSON = WaasPolicyRuleWhenInitiatorRole.WaasPolicyRuleWhenInitiatorRoleToJSON;
4403
+ exports.WaasPolicyRuleWhenMinValueFromJSON = WaasPolicyRuleWhenMinValue.WaasPolicyRuleWhenMinValueFromJSON;
4404
+ exports.WaasPolicyRuleWhenMinValueFromJSONTyped = WaasPolicyRuleWhenMinValue.WaasPolicyRuleWhenMinValueFromJSONTyped;
4405
+ exports.WaasPolicyRuleWhenMinValueToJSON = WaasPolicyRuleWhenMinValue.WaasPolicyRuleWhenMinValueToJSON;
4378
4406
  exports.WaasPolicyUpdateRequestFromJSON = WaasPolicyUpdateRequest.WaasPolicyUpdateRequestFromJSON;
4379
4407
  exports.WaasPolicyUpdateRequestFromJSONTyped = WaasPolicyUpdateRequest.WaasPolicyUpdateRequestFromJSONTyped;
4380
4408
  exports.WaasPolicyUpdateRequestToJSON = WaasPolicyUpdateRequest.WaasPolicyUpdateRequestToJSON;
package/src/index.js CHANGED
@@ -747,6 +747,9 @@ export { SettlementConfigInputFromJSON, SettlementConfigInputFromJSONTyped, Sett
747
747
  export { SettlementStrategyEnum, SettlementStrategyEnumFromJSON, SettlementStrategyEnumFromJSONTyped, SettlementStrategyEnumToJSON } from './models/SettlementStrategyEnum.js';
748
748
  export { SignAleoRequestWithWaasRequestFromJSON, SignAleoRequestWithWaasRequestFromJSONTyped, SignAleoRequestWithWaasRequestToJSON } from './models/SignAleoRequestWithWaasRequest.js';
749
749
  export { SignInProviderEnum, SignInProviderEnumFromJSON, SignInProviderEnumFromJSONTyped, SignInProviderEnumToJSON } from './models/SignInProviderEnum.js';
750
+ export { SignMessageApprovalQuorumFromJSON, SignMessageApprovalQuorumFromJSONTyped, SignMessageApprovalQuorumToJSON } from './models/SignMessageApprovalQuorum.js';
751
+ export { SignMessageApprovalQuorumApprovalFromJSON, SignMessageApprovalQuorumApprovalFromJSONTyped, SignMessageApprovalQuorumApprovalToJSON } from './models/SignMessageApprovalQuorumApproval.js';
752
+ export { SignMessageApprovalQuorumIntentFromJSON, SignMessageApprovalQuorumIntentFromJSONTyped, SignMessageApprovalQuorumIntentToJSON } from './models/SignMessageApprovalQuorumIntent.js';
750
753
  export { SignMessageAuthorizationSignatureFromJSON, SignMessageAuthorizationSignatureFromJSONTyped, SignMessageAuthorizationSignatureToJSON } from './models/SignMessageAuthorizationSignature.js';
751
754
  export { SignMessageBtcTransactionFromJSON, SignMessageBtcTransactionFromJSONTyped, SignMessageBtcTransactionToJSON } from './models/SignMessageBtcTransaction.js';
752
755
  export { SignMessageContextFromJSON, SignMessageContextFromJSONTyped, SignMessageContextToJSON } from './models/SignMessageContext.js';
@@ -913,9 +916,13 @@ export { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationFromJ
913
916
  export { WaasPolicyLayerUpdateRequestFromJSON, WaasPolicyLayerUpdateRequestFromJSONTyped, WaasPolicyLayerUpdateRequestOpEnum, WaasPolicyLayerUpdateRequestToJSON } from './models/WaasPolicyLayerUpdateRequest.js';
914
917
  export { WaasPolicyResponseFromJSON, WaasPolicyResponseFromJSONTyped, WaasPolicyResponseToJSON } from './models/WaasPolicyResponse.js';
915
918
  export { WaasPolicyRuleFromJSON, WaasPolicyRuleFromJSONTyped, WaasPolicyRuleToJSON } from './models/WaasPolicyRule.js';
919
+ export { WaasPolicyRuleApprovalRequirementsFromJSON, WaasPolicyRuleApprovalRequirementsFromJSONTyped, WaasPolicyRuleApprovalRequirementsToJSON } from './models/WaasPolicyRuleApprovalRequirements.js';
916
920
  export { WaasPolicyRuleOperationRestrictionsFromJSON, WaasPolicyRuleOperationRestrictionsFromJSONTyped, WaasPolicyRuleOperationRestrictionsToJSON } from './models/WaasPolicyRuleOperationRestrictions.js';
917
921
  export { WaasPolicyRuleType, WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeFromJSONTyped, WaasPolicyRuleTypeToJSON } from './models/WaasPolicyRuleType.js';
918
922
  export { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitFromJSONTyped, WaasPolicyRuleValueLimitToJSON } from './models/WaasPolicyRuleValueLimit.js';
923
+ export { WaasPolicyRuleWhenFromJSON, WaasPolicyRuleWhenFromJSONTyped, WaasPolicyRuleWhenToJSON } from './models/WaasPolicyRuleWhen.js';
924
+ export { WaasPolicyRuleWhenInitiatorRoleFromJSON, WaasPolicyRuleWhenInitiatorRoleFromJSONTyped, WaasPolicyRuleWhenInitiatorRoleToJSON } from './models/WaasPolicyRuleWhenInitiatorRole.js';
925
+ export { WaasPolicyRuleWhenMinValueFromJSON, WaasPolicyRuleWhenMinValueFromJSONTyped, WaasPolicyRuleWhenMinValueToJSON } from './models/WaasPolicyRuleWhenMinValue.js';
919
926
  export { WaasPolicyUpdateRequestFromJSON, WaasPolicyUpdateRequestFromJSONTyped, WaasPolicyUpdateRequestToJSON } from './models/WaasPolicyUpdateRequest.js';
920
927
  export { WaasShareSetFromJSON, WaasShareSetFromJSONTyped, WaasShareSetToJSON } from './models/WaasShareSet.js';
921
928
  export { WaasSignerPolicyLayerUpdateRequestFromJSON, WaasSignerPolicyLayerUpdateRequestFromJSONTyped, WaasSignerPolicyLayerUpdateRequestOpEnum, WaasSignerPolicyLayerUpdateRequestToJSON } from './models/WaasSignerPolicyLayerUpdateRequest.js';
@@ -0,0 +1,41 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var SignMessageApprovalQuorumApproval = require('./SignMessageApprovalQuorumApproval.cjs');
7
+ var SignMessageApprovalQuorumIntent = require('./SignMessageApprovalQuorumIntent.cjs');
8
+
9
+ /* tslint:disable */
10
+ function SignMessageApprovalQuorumFromJSON(json) {
11
+ return SignMessageApprovalQuorumFromJSONTyped(json);
12
+ }
13
+ function SignMessageApprovalQuorumFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'intent': SignMessageApprovalQuorumIntent.SignMessageApprovalQuorumIntentFromJSON(json['intent']),
19
+ 'intentSignature': json['intentSignature'],
20
+ 'initiatorProof': !runtime.exists(json, 'initiatorProof') ? undefined : json['initiatorProof'],
21
+ 'approvals': (json['approvals'].map(SignMessageApprovalQuorumApproval.SignMessageApprovalQuorumApprovalFromJSON)),
22
+ };
23
+ }
24
+ function SignMessageApprovalQuorumToJSON(value) {
25
+ if (value === undefined) {
26
+ return undefined;
27
+ }
28
+ if (value === null) {
29
+ return null;
30
+ }
31
+ return {
32
+ 'intent': SignMessageApprovalQuorumIntent.SignMessageApprovalQuorumIntentToJSON(value.intent),
33
+ 'intentSignature': value.intentSignature,
34
+ 'initiatorProof': value.initiatorProof,
35
+ 'approvals': (value.approvals.map(SignMessageApprovalQuorumApproval.SignMessageApprovalQuorumApprovalToJSON)),
36
+ };
37
+ }
38
+
39
+ exports.SignMessageApprovalQuorumFromJSON = SignMessageApprovalQuorumFromJSON;
40
+ exports.SignMessageApprovalQuorumFromJSONTyped = SignMessageApprovalQuorumFromJSONTyped;
41
+ exports.SignMessageApprovalQuorumToJSON = SignMessageApprovalQuorumToJSON;
@@ -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
+ import { SignMessageApprovalQuorumApproval } from './SignMessageApprovalQuorumApproval';
13
+ import { SignMessageApprovalQuorumIntent } from './SignMessageApprovalQuorumIntent';
14
+ /**
15
+ * Signing-quorum consent evidence for a business-account-governed sign. A top-level sibling of `context`, never nested under it — `context` describes only the operation being signed. Absent when a Rule requires approvals means zero approvals: the sign is denied.
16
+ * @export
17
+ * @interface SignMessageApprovalQuorum
18
+ */
19
+ export interface SignMessageApprovalQuorum {
20
+ /**
21
+ *
22
+ * @type {SignMessageApprovalQuorumIntent}
23
+ * @memberof SignMessageApprovalQuorum
24
+ */
25
+ intent: SignMessageApprovalQuorumIntent;
26
+ /**
27
+ * Hex-encoded ECDSA P-256 signature over the canonicalized payload, produced by the signer's session key — which never leaves their device, so consent cannot be given on their behalf.
28
+ * Exactly 128 hex characters. WebCrypto emits the raw r‖s form with both halves padded to 32 bytes, so unlike DER the length never varies. Constrained here so a malformed value is a 400 at the edge rather than an enclave round trip that returns INTENT_SIGNATURE_INVALID, and so an unbounded string cannot be persisted against a proposal.
29
+ * @type {string}
30
+ * @memberof SignMessageApprovalQuorum
31
+ */
32
+ intentSignature: string;
33
+ /**
34
+ * Present when the request redeeming this Intent is not the Initiator's own live session. Absent means the request's own bearer token stands for the Initiator instead.
35
+ * @type {string}
36
+ * @memberof SignMessageApprovalQuorum
37
+ */
38
+ initiatorProof?: string | null;
39
+ /**
40
+ * One entry per approver. Never counts the Initiator; duplicates and self-approval are rejected.
41
+ * @type {Array<SignMessageApprovalQuorumApproval>}
42
+ * @memberof SignMessageApprovalQuorum
43
+ */
44
+ approvals: Array<SignMessageApprovalQuorumApproval>;
45
+ }
46
+ export declare function SignMessageApprovalQuorumFromJSON(json: any): SignMessageApprovalQuorum;
47
+ export declare function SignMessageApprovalQuorumFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageApprovalQuorum;
48
+ export declare function SignMessageApprovalQuorumToJSON(value?: SignMessageApprovalQuorum | null): any;
@@ -0,0 +1,35 @@
1
+ import { exists } from '../runtime.js';
2
+ import { SignMessageApprovalQuorumApprovalFromJSON, SignMessageApprovalQuorumApprovalToJSON } from './SignMessageApprovalQuorumApproval.js';
3
+ import { SignMessageApprovalQuorumIntentFromJSON, SignMessageApprovalQuorumIntentToJSON } from './SignMessageApprovalQuorumIntent.js';
4
+
5
+ /* tslint:disable */
6
+ function SignMessageApprovalQuorumFromJSON(json) {
7
+ return SignMessageApprovalQuorumFromJSONTyped(json);
8
+ }
9
+ function SignMessageApprovalQuorumFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'intent': SignMessageApprovalQuorumIntentFromJSON(json['intent']),
15
+ 'intentSignature': json['intentSignature'],
16
+ 'initiatorProof': !exists(json, 'initiatorProof') ? undefined : json['initiatorProof'],
17
+ 'approvals': (json['approvals'].map(SignMessageApprovalQuorumApprovalFromJSON)),
18
+ };
19
+ }
20
+ function SignMessageApprovalQuorumToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'intent': SignMessageApprovalQuorumIntentToJSON(value.intent),
29
+ 'intentSignature': value.intentSignature,
30
+ 'initiatorProof': value.initiatorProof,
31
+ 'approvals': (value.approvals.map(SignMessageApprovalQuorumApprovalToJSON)),
32
+ };
33
+ }
34
+
35
+ export { SignMessageApprovalQuorumFromJSON, SignMessageApprovalQuorumFromJSONTyped, SignMessageApprovalQuorumToJSON };
@@ -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 SignMessageApprovalQuorumApprovalFromJSON(json) {
19
+ return SignMessageApprovalQuorumApprovalFromJSONTyped(json);
20
+ }
21
+ function SignMessageApprovalQuorumApprovalFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'proof': json['proof'],
27
+ 'signature': json['signature'],
28
+ };
29
+ }
30
+ function SignMessageApprovalQuorumApprovalToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'proof': value.proof,
39
+ 'signature': value.signature,
40
+ };
41
+ }
42
+
43
+ exports.SignMessageApprovalQuorumApprovalFromJSON = SignMessageApprovalQuorumApprovalFromJSON;
44
+ exports.SignMessageApprovalQuorumApprovalFromJSONTyped = SignMessageApprovalQuorumApprovalFromJSONTyped;
45
+ exports.SignMessageApprovalQuorumApprovalToJSON = SignMessageApprovalQuorumApprovalToJSON;
@@ -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 SignMessageApprovalQuorumApproval
16
+ */
17
+ export interface SignMessageApprovalQuorumApproval {
18
+ /**
19
+ * An opaque consent proof for this approver, minted while their own session was still live.
20
+ * @type {string}
21
+ * @memberof SignMessageApprovalQuorumApproval
22
+ */
23
+ proof: string | null;
24
+ /**
25
+ * Signature over the canonical `{ approvedAt, intent }` (the same Intent the Initiator signed, plus this approver's own timestamp), made with this approver's own session key.
26
+ * @type {string}
27
+ * @memberof SignMessageApprovalQuorumApproval
28
+ */
29
+ signature: string | null;
30
+ }
31
+ export declare function SignMessageApprovalQuorumApprovalFromJSON(json: any): SignMessageApprovalQuorumApproval;
32
+ export declare function SignMessageApprovalQuorumApprovalFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageApprovalQuorumApproval;
33
+ export declare function SignMessageApprovalQuorumApprovalToJSON(value?: SignMessageApprovalQuorumApproval | 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 SignMessageApprovalQuorumApprovalFromJSON(json) {
15
+ return SignMessageApprovalQuorumApprovalFromJSONTyped(json);
16
+ }
17
+ function SignMessageApprovalQuorumApprovalFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'proof': json['proof'],
23
+ 'signature': json['signature'],
24
+ };
25
+ }
26
+ function SignMessageApprovalQuorumApprovalToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'proof': value.proof,
35
+ 'signature': value.signature,
36
+ };
37
+ }
38
+
39
+ export { SignMessageApprovalQuorumApprovalFromJSON, SignMessageApprovalQuorumApprovalFromJSONTyped, SignMessageApprovalQuorumApprovalToJSON };
@@ -0,0 +1,55 @@
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 SignMessageApprovalQuorumIntentFromJSON(json) {
19
+ return SignMessageApprovalQuorumIntentFromJSONTyped(json);
20
+ }
21
+ function SignMessageApprovalQuorumIntentFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'intentId': json['intentId'],
27
+ 'businessAccountId': json['businessAccountId'],
28
+ 'accountAddress': json['accountAddress'],
29
+ 'actionType': json['actionType'],
30
+ 'initiatorUserId': json['initiatorUserId'],
31
+ 'createdAt': (new Date(json['createdAt'])),
32
+ 'payloadDigest': json['payloadDigest'],
33
+ };
34
+ }
35
+ function SignMessageApprovalQuorumIntentToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'intentId': value.intentId,
44
+ 'businessAccountId': value.businessAccountId,
45
+ 'accountAddress': value.accountAddress,
46
+ 'actionType': value.actionType,
47
+ 'initiatorUserId': value.initiatorUserId,
48
+ 'createdAt': (value.createdAt.toISOString()),
49
+ 'payloadDigest': value.payloadDigest,
50
+ };
51
+ }
52
+
53
+ exports.SignMessageApprovalQuorumIntentFromJSON = SignMessageApprovalQuorumIntentFromJSON;
54
+ exports.SignMessageApprovalQuorumIntentFromJSONTyped = SignMessageApprovalQuorumIntentFromJSONTyped;
55
+ exports.SignMessageApprovalQuorumIntentToJSON = SignMessageApprovalQuorumIntentToJSON;
@@ -0,0 +1,63 @@
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
+ * The signed Intent, as returned by a prior needsIntent outcome. Opaque on the wire — enclave-verified against the request's own businessAccountId, accountAddress and payload digest, not trusted as-is.
14
+ * @export
15
+ * @interface SignMessageApprovalQuorumIntent
16
+ */
17
+ export interface SignMessageApprovalQuorumIntent {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SignMessageApprovalQuorumIntent
22
+ */
23
+ intentId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof SignMessageApprovalQuorumIntent
28
+ */
29
+ businessAccountId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof SignMessageApprovalQuorumIntent
34
+ */
35
+ accountAddress: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof SignMessageApprovalQuorumIntent
40
+ */
41
+ actionType: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof SignMessageApprovalQuorumIntent
46
+ */
47
+ initiatorUserId: string;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof SignMessageApprovalQuorumIntent
52
+ */
53
+ createdAt: Date;
54
+ /**
55
+ * NOT a hash — checked verbatim against the request's own `message` field. Kept as the literal message so a client can verify what it is about to sign by exact string comparison.
56
+ * @type {string}
57
+ * @memberof SignMessageApprovalQuorumIntent
58
+ */
59
+ payloadDigest: string | null;
60
+ }
61
+ export declare function SignMessageApprovalQuorumIntentFromJSON(json: any): SignMessageApprovalQuorumIntent;
62
+ export declare function SignMessageApprovalQuorumIntentFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageApprovalQuorumIntent;
63
+ export declare function SignMessageApprovalQuorumIntentToJSON(value?: SignMessageApprovalQuorumIntent | null): any;
@@ -0,0 +1,49 @@
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 SignMessageApprovalQuorumIntentFromJSON(json) {
15
+ return SignMessageApprovalQuorumIntentFromJSONTyped(json);
16
+ }
17
+ function SignMessageApprovalQuorumIntentFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'intentId': json['intentId'],
23
+ 'businessAccountId': json['businessAccountId'],
24
+ 'accountAddress': json['accountAddress'],
25
+ 'actionType': json['actionType'],
26
+ 'initiatorUserId': json['initiatorUserId'],
27
+ 'createdAt': (new Date(json['createdAt'])),
28
+ 'payloadDigest': json['payloadDigest'],
29
+ };
30
+ }
31
+ function SignMessageApprovalQuorumIntentToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'intentId': value.intentId,
40
+ 'businessAccountId': value.businessAccountId,
41
+ 'accountAddress': value.accountAddress,
42
+ 'actionType': value.actionType,
43
+ 'initiatorUserId': value.initiatorUserId,
44
+ 'createdAt': (value.createdAt.toISOString()),
45
+ 'payloadDigest': value.payloadDigest,
46
+ };
47
+ }
48
+
49
+ export { SignMessageApprovalQuorumIntentFromJSON, SignMessageApprovalQuorumIntentFromJSONTyped, SignMessageApprovalQuorumIntentToJSON };
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var SignMessageApprovalQuorum = require('./SignMessageApprovalQuorum.cjs');
6
7
  var SignMessageContext = require('./SignMessageContext.cjs');
7
8
  var WalletBitcoinConfig = require('./WalletBitcoinConfig.cjs');
8
9
 
@@ -20,6 +21,7 @@ function SignMessageWithWaasRequestFromJSONTyped(json, ignoreDiscriminator) {
20
21
  'roomId': !runtime.exists(json, 'roomId') ? undefined : json['roomId'],
21
22
  'context': !runtime.exists(json, 'context') ? undefined : SignMessageContext.SignMessageContextFromJSON(json['context']),
22
23
  'bitcoinConfig': !runtime.exists(json, 'bitcoinConfig') ? undefined : WalletBitcoinConfig.WalletBitcoinConfigFromJSON(json['bitcoinConfig']),
24
+ 'approvalQuorum': !runtime.exists(json, 'approvalQuorum') ? undefined : SignMessageApprovalQuorum.SignMessageApprovalQuorumFromJSON(json['approvalQuorum']),
23
25
  'shareSetId': !runtime.exists(json, 'shareSetId') ? undefined : json['shareSetId'],
24
26
  };
25
27
  }
@@ -36,6 +38,7 @@ function SignMessageWithWaasRequestToJSON(value) {
36
38
  'roomId': value.roomId,
37
39
  'context': SignMessageContext.SignMessageContextToJSON(value.context),
38
40
  'bitcoinConfig': WalletBitcoinConfig.WalletBitcoinConfigToJSON(value.bitcoinConfig),
41
+ 'approvalQuorum': SignMessageApprovalQuorum.SignMessageApprovalQuorumToJSON(value.approvalQuorum),
39
42
  'shareSetId': value.shareSetId,
40
43
  };
41
44
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { SignMessageApprovalQuorum } from './SignMessageApprovalQuorum';
12
13
  import { SignMessageContext } from './SignMessageContext';
13
14
  import { WalletBitcoinConfig } from './WalletBitcoinConfig';
14
15
  /**
@@ -47,6 +48,12 @@ export interface SignMessageWithWaasRequest {
47
48
  * @memberof SignMessageWithWaasRequest
48
49
  */
49
50
  bitcoinConfig?: WalletBitcoinConfig;
51
+ /**
52
+ *
53
+ * @type {SignMessageApprovalQuorum}
54
+ * @memberof SignMessageWithWaasRequest
55
+ */
56
+ approvalQuorum?: SignMessageApprovalQuorum;
50
57
  /**
51
58
  * Optional identifier of the share set this operation targets. When
52
59
  * omitted, the active rootUser share set for `walletId` is resolved
@@ -1,4 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
+ import { SignMessageApprovalQuorumFromJSON, SignMessageApprovalQuorumToJSON } from './SignMessageApprovalQuorum.js';
2
3
  import { SignMessageContextFromJSON, SignMessageContextToJSON } from './SignMessageContext.js';
3
4
  import { WalletBitcoinConfigFromJSON, WalletBitcoinConfigToJSON } from './WalletBitcoinConfig.js';
4
5
 
@@ -16,6 +17,7 @@ function SignMessageWithWaasRequestFromJSONTyped(json, ignoreDiscriminator) {
16
17
  'roomId': !exists(json, 'roomId') ? undefined : json['roomId'],
17
18
  'context': !exists(json, 'context') ? undefined : SignMessageContextFromJSON(json['context']),
18
19
  'bitcoinConfig': !exists(json, 'bitcoinConfig') ? undefined : WalletBitcoinConfigFromJSON(json['bitcoinConfig']),
20
+ 'approvalQuorum': !exists(json, 'approvalQuorum') ? undefined : SignMessageApprovalQuorumFromJSON(json['approvalQuorum']),
19
21
  'shareSetId': !exists(json, 'shareSetId') ? undefined : json['shareSetId'],
20
22
  };
21
23
  }
@@ -32,6 +34,7 @@ function SignMessageWithWaasRequestToJSON(value) {
32
34
  'roomId': value.roomId,
33
35
  'context': SignMessageContextToJSON(value.context),
34
36
  'bitcoinConfig': WalletBitcoinConfigToJSON(value.bitcoinConfig),
37
+ 'approvalQuorum': SignMessageApprovalQuorumToJSON(value.approvalQuorum),
35
38
  'shareSetId': value.shareSetId,
36
39
  };
37
40
  }
@@ -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 WaasPolicyRuleApprovalRequirements = require('./WaasPolicyRuleApprovalRequirements.cjs');
8
9
  var WaasPolicyRuleOperationRestrictions = require('./WaasPolicyRuleOperationRestrictions.cjs');
9
10
  var WaasPolicyRuleType = require('./WaasPolicyRuleType.cjs');
10
11
  var WaasPolicyRuleValueLimit = require('./WaasPolicyRuleValueLimit.cjs');
@@ -33,6 +34,7 @@ function WaasPolicyLayerResponseRuleFromJSONTyped(json, ignoreDiscriminator) {
33
34
  'operationRestrictions': !runtime.exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
34
35
  'disableBlockaidSecurityChecks': !runtime.exists(json, 'disableBlockaidSecurityChecks') ? undefined : json['disableBlockaidSecurityChecks'],
35
36
  'modifiableBySigner': !runtime.exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
37
+ 'approvalRequirements': !runtime.exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyRuleApprovalRequirements.WaasPolicyRuleApprovalRequirementsFromJSON)),
36
38
  };
37
39
  }
38
40
  function WaasPolicyLayerResponseRuleToJSON(value) {
@@ -58,6 +60,7 @@ function WaasPolicyLayerResponseRuleToJSON(value) {
58
60
  'operationRestrictions': WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
59
61
  'disableBlockaidSecurityChecks': value.disableBlockaidSecurityChecks,
60
62
  'modifiableBySigner': value.modifiableBySigner,
63
+ 'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyRuleApprovalRequirements.WaasPolicyRuleApprovalRequirementsToJSON)),
61
64
  };
62
65
  }
63
66
 
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import { WaasChainEnum } from './WaasChainEnum';
13
13
  import { WaasPolicyArgumentConstraint } from './WaasPolicyArgumentConstraint';
14
+ import { WaasPolicyRuleApprovalRequirements } from './WaasPolicyRuleApprovalRequirements';
14
15
  import { WaasPolicyRuleOperationRestrictions } from './WaasPolicyRuleOperationRestrictions';
15
16
  import { WaasPolicyRuleType } from './WaasPolicyRuleType';
16
17
  import { WaasPolicyRuleValueLimit } from './WaasPolicyRuleValueLimit';
@@ -110,6 +111,12 @@ export interface WaasPolicyLayerResponseRule {
110
111
  * @memberof WaasPolicyLayerResponseRule
111
112
  */
112
113
  modifiableBySigner?: boolean;
114
+ /**
115
+ * Multi-party approval requirements for this Rule. Enforced only for accounts that support them; ignored for other accounts. when.initiatorRole and when.actionTypes are not yet resolved — until they are, a requirement that sets either field applies to all approvers, not just the named role.
116
+ * @type {Array<WaasPolicyRuleApprovalRequirements>}
117
+ * @memberof WaasPolicyLayerResponseRule
118
+ */
119
+ approvalRequirements?: Array<WaasPolicyRuleApprovalRequirements>;
113
120
  }
114
121
  export declare function WaasPolicyLayerResponseRuleFromJSON(json: any): WaasPolicyLayerResponseRule;
115
122
  export declare function WaasPolicyLayerResponseRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyLayerResponseRule;
@@ -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 { WaasPolicyRuleApprovalRequirementsFromJSON, WaasPolicyRuleApprovalRequirementsToJSON } from './WaasPolicyRuleApprovalRequirements.js';
4
5
  import { WaasPolicyRuleOperationRestrictionsFromJSON, WaasPolicyRuleOperationRestrictionsToJSON } from './WaasPolicyRuleOperationRestrictions.js';
5
6
  import { WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeToJSON } from './WaasPolicyRuleType.js';
6
7
  import { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitToJSON } from './WaasPolicyRuleValueLimit.js';
@@ -29,6 +30,7 @@ function WaasPolicyLayerResponseRuleFromJSONTyped(json, ignoreDiscriminator) {
29
30
  'operationRestrictions': !exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
30
31
  'disableBlockaidSecurityChecks': !exists(json, 'disableBlockaidSecurityChecks') ? undefined : json['disableBlockaidSecurityChecks'],
31
32
  'modifiableBySigner': !exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
33
+ 'approvalRequirements': !exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyRuleApprovalRequirementsFromJSON)),
32
34
  };
33
35
  }
34
36
  function WaasPolicyLayerResponseRuleToJSON(value) {
@@ -54,6 +56,7 @@ function WaasPolicyLayerResponseRuleToJSON(value) {
54
56
  'operationRestrictions': WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
55
57
  'disableBlockaidSecurityChecks': value.disableBlockaidSecurityChecks,
56
58
  'modifiableBySigner': value.modifiableBySigner,
59
+ 'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyRuleApprovalRequirementsToJSON)),
57
60
  };
58
61
  }
59
62
 
@@ -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 WaasPolicyRuleApprovalRequirements = require('./WaasPolicyRuleApprovalRequirements.cjs');
8
9
  var WaasPolicyRuleOperationRestrictions = require('./WaasPolicyRuleOperationRestrictions.cjs');
9
10
  var WaasPolicyRuleType = require('./WaasPolicyRuleType.cjs');
10
11
  var WaasPolicyRuleValueLimit = require('./WaasPolicyRuleValueLimit.cjs');
@@ -33,6 +34,7 @@ function WaasPolicyRuleFromJSONTyped(json, ignoreDiscriminator) {
33
34
  'operationRestrictions': !runtime.exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
34
35
  'disableBlockaidSecurityChecks': !runtime.exists(json, 'disableBlockaidSecurityChecks') ? undefined : json['disableBlockaidSecurityChecks'],
35
36
  'modifiableBySigner': !runtime.exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
37
+ 'approvalRequirements': !runtime.exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyRuleApprovalRequirements.WaasPolicyRuleApprovalRequirementsFromJSON)),
36
38
  };
37
39
  }
38
40
  function WaasPolicyRuleToJSON(value) {
@@ -58,6 +60,7 @@ function WaasPolicyRuleToJSON(value) {
58
60
  'operationRestrictions': WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
59
61
  'disableBlockaidSecurityChecks': value.disableBlockaidSecurityChecks,
60
62
  'modifiableBySigner': value.modifiableBySigner,
63
+ 'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyRuleApprovalRequirements.WaasPolicyRuleApprovalRequirementsToJSON)),
61
64
  };
62
65
  }
63
66
 
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import { WaasChainEnum } from './WaasChainEnum';
13
13
  import { WaasPolicyArgumentConstraint } from './WaasPolicyArgumentConstraint';
14
+ import { WaasPolicyRuleApprovalRequirements } from './WaasPolicyRuleApprovalRequirements';
14
15
  import { WaasPolicyRuleOperationRestrictions } from './WaasPolicyRuleOperationRestrictions';
15
16
  import { WaasPolicyRuleType } from './WaasPolicyRuleType';
16
17
  import { WaasPolicyRuleValueLimit } from './WaasPolicyRuleValueLimit';
@@ -110,6 +111,12 @@ export interface WaasPolicyRule {
110
111
  * @memberof WaasPolicyRule
111
112
  */
112
113
  modifiableBySigner?: boolean;
114
+ /**
115
+ * Multi-party approval requirements for this Rule. Enforced only for accounts that support them; ignored for other accounts. when.initiatorRole and when.actionTypes are not yet resolved — until they are, a requirement that sets either field applies to all approvers, not just the named role.
116
+ * @type {Array<WaasPolicyRuleApprovalRequirements>}
117
+ * @memberof WaasPolicyRule
118
+ */
119
+ approvalRequirements?: Array<WaasPolicyRuleApprovalRequirements>;
113
120
  }
114
121
  export declare function WaasPolicyRuleFromJSON(json: any): WaasPolicyRule;
115
122
  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 { WaasPolicyRuleApprovalRequirementsFromJSON, WaasPolicyRuleApprovalRequirementsToJSON } from './WaasPolicyRuleApprovalRequirements.js';
4
5
  import { WaasPolicyRuleOperationRestrictionsFromJSON, WaasPolicyRuleOperationRestrictionsToJSON } from './WaasPolicyRuleOperationRestrictions.js';
5
6
  import { WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeToJSON } from './WaasPolicyRuleType.js';
6
7
  import { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitToJSON } from './WaasPolicyRuleValueLimit.js';
@@ -29,6 +30,7 @@ function WaasPolicyRuleFromJSONTyped(json, ignoreDiscriminator) {
29
30
  'operationRestrictions': !exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
30
31
  'disableBlockaidSecurityChecks': !exists(json, 'disableBlockaidSecurityChecks') ? undefined : json['disableBlockaidSecurityChecks'],
31
32
  'modifiableBySigner': !exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
33
+ 'approvalRequirements': !exists(json, 'approvalRequirements') ? undefined : (json['approvalRequirements'].map(WaasPolicyRuleApprovalRequirementsFromJSON)),
32
34
  };
33
35
  }
34
36
  function WaasPolicyRuleToJSON(value) {
@@ -54,6 +56,7 @@ function WaasPolicyRuleToJSON(value) {
54
56
  'operationRestrictions': WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
55
57
  'disableBlockaidSecurityChecks': value.disableBlockaidSecurityChecks,
56
58
  'modifiableBySigner': value.modifiableBySigner,
59
+ 'approvalRequirements': value.approvalRequirements === undefined ? undefined : (value.approvalRequirements.map(WaasPolicyRuleApprovalRequirementsToJSON)),
57
60
  };
58
61
  }
59
62
 
@@ -0,0 +1,46 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WaasPolicyRuleWhen = require('./WaasPolicyRuleWhen.cjs');
7
+
8
+ /* tslint:disable */
9
+ function WaasPolicyRuleApprovalRequirementsFromJSON(json) {
10
+ return WaasPolicyRuleApprovalRequirementsFromJSONTyped(json);
11
+ }
12
+ function WaasPolicyRuleApprovalRequirementsFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'v': json['v'],
18
+ 'id': json['id'],
19
+ 'when': !runtime.exists(json, 'when') ? undefined : WaasPolicyRuleWhen.WaasPolicyRuleWhenFromJSON(json['when']),
20
+ 'eligibleApproverRole': !runtime.exists(json, 'eligibleApproverRole') ? undefined : json['eligibleApproverRole'],
21
+ 'mandatoryApproverRole': !runtime.exists(json, 'mandatoryApproverRole') ? undefined : json['mandatoryApproverRole'],
22
+ 'requiredApprovals': json['requiredApprovals'],
23
+ 'completeWithinSeconds': !runtime.exists(json, 'completeWithinSeconds') ? undefined : json['completeWithinSeconds'],
24
+ };
25
+ }
26
+ function WaasPolicyRuleApprovalRequirementsToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'v': value.v,
35
+ 'id': value.id,
36
+ 'when': WaasPolicyRuleWhen.WaasPolicyRuleWhenToJSON(value.when),
37
+ 'eligibleApproverRole': value.eligibleApproverRole,
38
+ 'mandatoryApproverRole': value.mandatoryApproverRole,
39
+ 'requiredApprovals': value.requiredApprovals,
40
+ 'completeWithinSeconds': value.completeWithinSeconds,
41
+ };
42
+ }
43
+
44
+ exports.WaasPolicyRuleApprovalRequirementsFromJSON = WaasPolicyRuleApprovalRequirementsFromJSON;
45
+ exports.WaasPolicyRuleApprovalRequirementsFromJSONTyped = WaasPolicyRuleApprovalRequirementsFromJSONTyped;
46
+ exports.WaasPolicyRuleApprovalRequirementsToJSON = WaasPolicyRuleApprovalRequirementsToJSON;
@@ -0,0 +1,64 @@
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 { WaasPolicyRuleWhen } from './WaasPolicyRuleWhen';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WaasPolicyRuleApprovalRequirements
17
+ */
18
+ export interface WaasPolicyRuleApprovalRequirements {
19
+ /**
20
+ * Schema version for this requirement. An unknown value rejects the Composition.
21
+ * @type {number}
22
+ * @memberof WaasPolicyRuleApprovalRequirements
23
+ */
24
+ v: number;
25
+ /**
26
+ * Stable handle for this requirement, carried as requirementId in the deny reason.
27
+ * @type {string}
28
+ * @memberof WaasPolicyRuleApprovalRequirements
29
+ */
30
+ id: string;
31
+ /**
32
+ *
33
+ * @type {WaasPolicyRuleWhen}
34
+ * @memberof WaasPolicyRuleApprovalRequirements
35
+ */
36
+ when?: WaasPolicyRuleWhen;
37
+ /**
38
+ * Name of the role whose holders may satisfy this requirement.
39
+ * @type {string}
40
+ * @memberof WaasPolicyRuleApprovalRequirements
41
+ */
42
+ eligibleApproverRole?: string;
43
+ /**
44
+ * Name of the role whose holders must approve, regardless of eligibleApproverRole.
45
+ * @type {string}
46
+ * @memberof WaasPolicyRuleApprovalRequirements
47
+ */
48
+ mandatoryApproverRole?: string;
49
+ /**
50
+ * Total approvals required. Never counts the Initiator.
51
+ * @type {number}
52
+ * @memberof WaasPolicyRuleApprovalRequirements
53
+ */
54
+ requiredApprovals: number;
55
+ /**
56
+ * How long a collected-approvals proposal remains valid.
57
+ * @type {number}
58
+ * @memberof WaasPolicyRuleApprovalRequirements
59
+ */
60
+ completeWithinSeconds?: number;
61
+ }
62
+ export declare function WaasPolicyRuleApprovalRequirementsFromJSON(json: any): WaasPolicyRuleApprovalRequirements;
63
+ export declare function WaasPolicyRuleApprovalRequirementsFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyRuleApprovalRequirements;
64
+ export declare function WaasPolicyRuleApprovalRequirementsToJSON(value?: WaasPolicyRuleApprovalRequirements | null): any;
@@ -0,0 +1,40 @@
1
+ import { exists } from '../runtime.js';
2
+ import { WaasPolicyRuleWhenFromJSON, WaasPolicyRuleWhenToJSON } from './WaasPolicyRuleWhen.js';
3
+
4
+ /* tslint:disable */
5
+ function WaasPolicyRuleApprovalRequirementsFromJSON(json) {
6
+ return WaasPolicyRuleApprovalRequirementsFromJSONTyped(json);
7
+ }
8
+ function WaasPolicyRuleApprovalRequirementsFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'v': json['v'],
14
+ 'id': json['id'],
15
+ 'when': !exists(json, 'when') ? undefined : WaasPolicyRuleWhenFromJSON(json['when']),
16
+ 'eligibleApproverRole': !exists(json, 'eligibleApproverRole') ? undefined : json['eligibleApproverRole'],
17
+ 'mandatoryApproverRole': !exists(json, 'mandatoryApproverRole') ? undefined : json['mandatoryApproverRole'],
18
+ 'requiredApprovals': json['requiredApprovals'],
19
+ 'completeWithinSeconds': !exists(json, 'completeWithinSeconds') ? undefined : json['completeWithinSeconds'],
20
+ };
21
+ }
22
+ function WaasPolicyRuleApprovalRequirementsToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'v': value.v,
31
+ 'id': value.id,
32
+ 'when': WaasPolicyRuleWhenToJSON(value.when),
33
+ 'eligibleApproverRole': value.eligibleApproverRole,
34
+ 'mandatoryApproverRole': value.mandatoryApproverRole,
35
+ 'requiredApprovals': value.requiredApprovals,
36
+ 'completeWithinSeconds': value.completeWithinSeconds,
37
+ };
38
+ }
39
+
40
+ export { WaasPolicyRuleApprovalRequirementsFromJSON, WaasPolicyRuleApprovalRequirementsFromJSONTyped, WaasPolicyRuleApprovalRequirementsToJSON };
@@ -0,0 +1,39 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WaasPolicyRuleWhenInitiatorRole = require('./WaasPolicyRuleWhenInitiatorRole.cjs');
7
+ var WaasPolicyRuleWhenMinValue = require('./WaasPolicyRuleWhenMinValue.cjs');
8
+
9
+ /* tslint:disable */
10
+ function WaasPolicyRuleWhenFromJSON(json) {
11
+ return WaasPolicyRuleWhenFromJSONTyped(json);
12
+ }
13
+ function WaasPolicyRuleWhenFromJSONTyped(json, ignoreDiscriminator) {
14
+ if ((json === undefined) || (json === null)) {
15
+ return json;
16
+ }
17
+ return {
18
+ 'minValue': !runtime.exists(json, 'minValue') ? undefined : WaasPolicyRuleWhenMinValue.WaasPolicyRuleWhenMinValueFromJSON(json['minValue']),
19
+ 'initiatorRole': !runtime.exists(json, 'initiatorRole') ? undefined : WaasPolicyRuleWhenInitiatorRole.WaasPolicyRuleWhenInitiatorRoleFromJSON(json['initiatorRole']),
20
+ 'actionTypes': !runtime.exists(json, 'actionTypes') ? undefined : json['actionTypes'],
21
+ };
22
+ }
23
+ function WaasPolicyRuleWhenToJSON(value) {
24
+ if (value === undefined) {
25
+ return undefined;
26
+ }
27
+ if (value === null) {
28
+ return null;
29
+ }
30
+ return {
31
+ 'minValue': WaasPolicyRuleWhenMinValue.WaasPolicyRuleWhenMinValueToJSON(value.minValue),
32
+ 'initiatorRole': WaasPolicyRuleWhenInitiatorRole.WaasPolicyRuleWhenInitiatorRoleToJSON(value.initiatorRole),
33
+ 'actionTypes': value.actionTypes,
34
+ };
35
+ }
36
+
37
+ exports.WaasPolicyRuleWhenFromJSON = WaasPolicyRuleWhenFromJSON;
38
+ exports.WaasPolicyRuleWhenFromJSONTyped = WaasPolicyRuleWhenFromJSONTyped;
39
+ exports.WaasPolicyRuleWhenToJSON = WaasPolicyRuleWhenToJSON;
@@ -0,0 +1,41 @@
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 { WaasPolicyRuleWhenInitiatorRole } from './WaasPolicyRuleWhenInitiatorRole';
13
+ import { WaasPolicyRuleWhenMinValue } from './WaasPolicyRuleWhenMinValue';
14
+ /**
15
+ * All present conditions AND together. Omit for an unconditional requirement.
16
+ * @export
17
+ * @interface WaasPolicyRuleWhen
18
+ */
19
+ export interface WaasPolicyRuleWhen {
20
+ /**
21
+ *
22
+ * @type {WaasPolicyRuleWhenMinValue}
23
+ * @memberof WaasPolicyRuleWhen
24
+ */
25
+ minValue?: WaasPolicyRuleWhenMinValue;
26
+ /**
27
+ *
28
+ * @type {WaasPolicyRuleWhenInitiatorRole}
29
+ * @memberof WaasPolicyRuleWhen
30
+ */
31
+ initiatorRole?: WaasPolicyRuleWhenInitiatorRole;
32
+ /**
33
+ * Matches on the operation type. Not yet resolved — until it is, a requirement that sets this field applies to all operation types.
34
+ * @type {Array<string>}
35
+ * @memberof WaasPolicyRuleWhen
36
+ */
37
+ actionTypes?: Array<string>;
38
+ }
39
+ export declare function WaasPolicyRuleWhenFromJSON(json: any): WaasPolicyRuleWhen;
40
+ export declare function WaasPolicyRuleWhenFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyRuleWhen;
41
+ export declare function WaasPolicyRuleWhenToJSON(value?: WaasPolicyRuleWhen | null): any;
@@ -0,0 +1,33 @@
1
+ import { exists } from '../runtime.js';
2
+ import { WaasPolicyRuleWhenInitiatorRoleFromJSON, WaasPolicyRuleWhenInitiatorRoleToJSON } from './WaasPolicyRuleWhenInitiatorRole.js';
3
+ import { WaasPolicyRuleWhenMinValueFromJSON, WaasPolicyRuleWhenMinValueToJSON } from './WaasPolicyRuleWhenMinValue.js';
4
+
5
+ /* tslint:disable */
6
+ function WaasPolicyRuleWhenFromJSON(json) {
7
+ return WaasPolicyRuleWhenFromJSONTyped(json);
8
+ }
9
+ function WaasPolicyRuleWhenFromJSONTyped(json, ignoreDiscriminator) {
10
+ if ((json === undefined) || (json === null)) {
11
+ return json;
12
+ }
13
+ return {
14
+ 'minValue': !exists(json, 'minValue') ? undefined : WaasPolicyRuleWhenMinValueFromJSON(json['minValue']),
15
+ 'initiatorRole': !exists(json, 'initiatorRole') ? undefined : WaasPolicyRuleWhenInitiatorRoleFromJSON(json['initiatorRole']),
16
+ 'actionTypes': !exists(json, 'actionTypes') ? undefined : json['actionTypes'],
17
+ };
18
+ }
19
+ function WaasPolicyRuleWhenToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'minValue': WaasPolicyRuleWhenMinValueToJSON(value.minValue),
28
+ 'initiatorRole': WaasPolicyRuleWhenInitiatorRoleToJSON(value.initiatorRole),
29
+ 'actionTypes': value.actionTypes,
30
+ };
31
+ }
32
+
33
+ export { WaasPolicyRuleWhenFromJSON, WaasPolicyRuleWhenFromJSONTyped, WaasPolicyRuleWhenToJSON };
@@ -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 WaasPolicyRuleWhenInitiatorRoleFromJSON(json) {
9
+ return WaasPolicyRuleWhenInitiatorRoleFromJSONTyped(json);
10
+ }
11
+ function WaasPolicyRuleWhenInitiatorRoleFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'roles': !runtime.exists(json, 'roles') ? undefined : json['roles'],
17
+ 'userIds': !runtime.exists(json, 'userIds') ? undefined : json['userIds'],
18
+ };
19
+ }
20
+ function WaasPolicyRuleWhenInitiatorRoleToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'roles': value.roles,
29
+ 'userIds': value.userIds,
30
+ };
31
+ }
32
+
33
+ exports.WaasPolicyRuleWhenInitiatorRoleFromJSON = WaasPolicyRuleWhenInitiatorRoleFromJSON;
34
+ exports.WaasPolicyRuleWhenInitiatorRoleFromJSONTyped = WaasPolicyRuleWhenInitiatorRoleFromJSONTyped;
35
+ exports.WaasPolicyRuleWhenInitiatorRoleToJSON = WaasPolicyRuleWhenInitiatorRoleToJSON;
@@ -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
+ * Matches on the user who starts the action. Not yet resolved — until it is, a requirement that sets this field applies to all initiators.
14
+ * @export
15
+ * @interface WaasPolicyRuleWhenInitiatorRole
16
+ */
17
+ export interface WaasPolicyRuleWhenInitiatorRole {
18
+ /**
19
+ *
20
+ * @type {Array<string>}
21
+ * @memberof WaasPolicyRuleWhenInitiatorRole
22
+ */
23
+ roles?: Array<string>;
24
+ /**
25
+ *
26
+ * @type {Array<string>}
27
+ * @memberof WaasPolicyRuleWhenInitiatorRole
28
+ */
29
+ userIds?: Array<string>;
30
+ }
31
+ export declare function WaasPolicyRuleWhenInitiatorRoleFromJSON(json: any): WaasPolicyRuleWhenInitiatorRole;
32
+ export declare function WaasPolicyRuleWhenInitiatorRoleFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyRuleWhenInitiatorRole;
33
+ export declare function WaasPolicyRuleWhenInitiatorRoleToJSON(value?: WaasPolicyRuleWhenInitiatorRole | null): any;
@@ -0,0 +1,29 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function WaasPolicyRuleWhenInitiatorRoleFromJSON(json) {
5
+ return WaasPolicyRuleWhenInitiatorRoleFromJSONTyped(json);
6
+ }
7
+ function WaasPolicyRuleWhenInitiatorRoleFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'roles': !exists(json, 'roles') ? undefined : json['roles'],
13
+ 'userIds': !exists(json, 'userIds') ? undefined : json['userIds'],
14
+ };
15
+ }
16
+ function WaasPolicyRuleWhenInitiatorRoleToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'roles': value.roles,
25
+ 'userIds': value.userIds,
26
+ };
27
+ }
28
+
29
+ export { WaasPolicyRuleWhenInitiatorRoleFromJSON, WaasPolicyRuleWhenInitiatorRoleFromJSONTyped, WaasPolicyRuleWhenInitiatorRoleToJSON };
@@ -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 WaasPolicyRuleWhenMinValueFromJSON(json) {
9
+ return WaasPolicyRuleWhenMinValueFromJSONTyped(json);
10
+ }
11
+ function WaasPolicyRuleWhenMinValueFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'asset': !runtime.exists(json, 'asset') ? undefined : json['asset'],
17
+ 'amount': !runtime.exists(json, 'amount') ? undefined : json['amount'],
18
+ };
19
+ }
20
+ function WaasPolicyRuleWhenMinValueToJSON(value) {
21
+ if (value === undefined) {
22
+ return undefined;
23
+ }
24
+ if (value === null) {
25
+ return null;
26
+ }
27
+ return {
28
+ 'asset': value.asset,
29
+ 'amount': value.amount,
30
+ };
31
+ }
32
+
33
+ exports.WaasPolicyRuleWhenMinValueFromJSON = WaasPolicyRuleWhenMinValueFromJSON;
34
+ exports.WaasPolicyRuleWhenMinValueFromJSONTyped = WaasPolicyRuleWhenMinValueFromJSONTyped;
35
+ exports.WaasPolicyRuleWhenMinValueToJSON = WaasPolicyRuleWhenMinValueToJSON;
@@ -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
+ * The amount at which this requirement starts to apply.
14
+ * @export
15
+ * @interface WaasPolicyRuleWhenMinValue
16
+ */
17
+ export interface WaasPolicyRuleWhenMinValue {
18
+ /**
19
+ * Target asset address. If undefined, refers to native token (e.g., ETH)
20
+ * @type {string}
21
+ * @memberof WaasPolicyRuleWhenMinValue
22
+ */
23
+ asset?: string | null;
24
+ /**
25
+ * Threshold amount (as string to handle bigint)
26
+ * @type {string}
27
+ * @memberof WaasPolicyRuleWhenMinValue
28
+ */
29
+ amount?: string;
30
+ }
31
+ export declare function WaasPolicyRuleWhenMinValueFromJSON(json: any): WaasPolicyRuleWhenMinValue;
32
+ export declare function WaasPolicyRuleWhenMinValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyRuleWhenMinValue;
33
+ export declare function WaasPolicyRuleWhenMinValueToJSON(value?: WaasPolicyRuleWhenMinValue | null): any;
@@ -0,0 +1,29 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function WaasPolicyRuleWhenMinValueFromJSON(json) {
5
+ return WaasPolicyRuleWhenMinValueFromJSONTyped(json);
6
+ }
7
+ function WaasPolicyRuleWhenMinValueFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'asset': !exists(json, 'asset') ? undefined : json['asset'],
13
+ 'amount': !exists(json, 'amount') ? undefined : json['amount'],
14
+ };
15
+ }
16
+ function WaasPolicyRuleWhenMinValueToJSON(value) {
17
+ if (value === undefined) {
18
+ return undefined;
19
+ }
20
+ if (value === null) {
21
+ return null;
22
+ }
23
+ return {
24
+ 'asset': value.asset,
25
+ 'amount': value.amount,
26
+ };
27
+ }
28
+
29
+ export { WaasPolicyRuleWhenMinValueFromJSON, WaasPolicyRuleWhenMinValueFromJSONTyped, WaasPolicyRuleWhenMinValueToJSON };
@@ -694,6 +694,9 @@ export * from './SettlementConfigInput';
694
694
  export * from './SettlementStrategyEnum';
695
695
  export * from './SignAleoRequestWithWaasRequest';
696
696
  export * from './SignInProviderEnum';
697
+ export * from './SignMessageApprovalQuorum';
698
+ export * from './SignMessageApprovalQuorumApproval';
699
+ export * from './SignMessageApprovalQuorumIntent';
697
700
  export * from './SignMessageAuthorizationSignature';
698
701
  export * from './SignMessageBtcTransaction';
699
702
  export * from './SignMessageContext';
@@ -860,9 +863,13 @@ export * from './WaasPolicyLayerRuleOperation';
860
863
  export * from './WaasPolicyLayerUpdateRequest';
861
864
  export * from './WaasPolicyResponse';
862
865
  export * from './WaasPolicyRule';
866
+ export * from './WaasPolicyRuleApprovalRequirements';
863
867
  export * from './WaasPolicyRuleOperationRestrictions';
864
868
  export * from './WaasPolicyRuleType';
865
869
  export * from './WaasPolicyRuleValueLimit';
870
+ export * from './WaasPolicyRuleWhen';
871
+ export * from './WaasPolicyRuleWhenInitiatorRole';
872
+ export * from './WaasPolicyRuleWhenMinValue';
866
873
  export * from './WaasPolicyUpdateRequest';
867
874
  export * from './WaasShareSet';
868
875
  export * from './WaasSignerPolicyLayerUpdateRequest';