@dynamic-labs/sdk-api 0.70.0 → 0.72.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamic-labs/sdk-api",
3
- "version": "0.70.0",
3
+ "version": "0.72.0",
4
4
  "author": "Dynamic Labs",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {
@@ -16,13 +16,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
16
16
  * Do not edit the class manually.
17
17
  */
18
18
  /**
19
- * Fiat currency the flow amount is denominated in. Only USD is supported.
19
+ * Currency the flow amount is denominated in. USD prices the amount against each settlement token. SETTLEMENT_TOKEN denominates the amount directly in the settlement token itself (e.g. "0.5" for 0.5 ETH, not wei); only valid for flows using `payment` mode AND with exactly one settlement token in the settlement config.
20
20
  * @export
21
21
  * @enum {string}
22
22
  */
23
23
  exports.FlowCurrencyEnum = void 0;
24
24
  (function (FlowCurrencyEnum) {
25
25
  FlowCurrencyEnum["Usd"] = "USD";
26
+ FlowCurrencyEnum["SettlementToken"] = "SETTLEMENT_TOKEN";
26
27
  })(exports.FlowCurrencyEnum || (exports.FlowCurrencyEnum = {}));
27
28
  function FlowCurrencyEnumFromJSON(json) {
28
29
  return FlowCurrencyEnumFromJSONTyped(json);
@@ -10,12 +10,13 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Fiat currency the flow amount is denominated in. Only USD is supported.
13
+ * Currency the flow amount is denominated in. USD prices the amount against each settlement token. SETTLEMENT_TOKEN denominates the amount directly in the settlement token itself (e.g. "0.5" for 0.5 ETH, not wei); only valid for flows using `payment` mode AND with exactly one settlement token in the settlement config.
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum FlowCurrencyEnum {
18
- Usd = "USD"
18
+ Usd = "USD",
19
+ SettlementToken = "SETTLEMENT_TOKEN"
19
20
  }
20
21
  export declare function FlowCurrencyEnumFromJSON(json: any): FlowCurrencyEnum;
21
22
  export declare function FlowCurrencyEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): FlowCurrencyEnum;
@@ -12,13 +12,14 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  /**
15
- * Fiat currency the flow amount is denominated in. Only USD is supported.
15
+ * Currency the flow amount is denominated in. USD prices the amount against each settlement token. SETTLEMENT_TOKEN denominates the amount directly in the settlement token itself (e.g. "0.5" for 0.5 ETH, not wei); only valid for flows using `payment` mode AND with exactly one settlement token in the settlement config.
16
16
  * @export
17
17
  * @enum {string}
18
18
  */
19
19
  var FlowCurrencyEnum;
20
20
  (function (FlowCurrencyEnum) {
21
21
  FlowCurrencyEnum["Usd"] = "USD";
22
+ FlowCurrencyEnum["SettlementToken"] = "SETTLEMENT_TOKEN";
22
23
  })(FlowCurrencyEnum || (FlowCurrencyEnum = {}));
23
24
  function FlowCurrencyEnumFromJSON(json) {
24
25
  return FlowCurrencyEnumFromJSONTyped(json);
@@ -17,6 +17,8 @@ function WaasPolicyRuleApprovalRequirementsFromJSONTyped(json, ignoreDiscriminat
17
17
  'v': json['v'],
18
18
  'id': json['id'],
19
19
  'when': !runtime.exists(json, 'when') ? undefined : WaasPolicyRuleWhen.WaasPolicyRuleWhenFromJSON(json['when']),
20
+ 'eligibleApproverRoles': !runtime.exists(json, 'eligibleApproverRoles') ? undefined : json['eligibleApproverRoles'],
21
+ 'mandatoryApproverRoles': !runtime.exists(json, 'mandatoryApproverRoles') ? undefined : json['mandatoryApproverRoles'],
20
22
  'eligibleApproverRole': !runtime.exists(json, 'eligibleApproverRole') ? undefined : json['eligibleApproverRole'],
21
23
  'mandatoryApproverRole': !runtime.exists(json, 'mandatoryApproverRole') ? undefined : json['mandatoryApproverRole'],
22
24
  'requiredApprovals': json['requiredApprovals'],
@@ -34,6 +36,8 @@ function WaasPolicyRuleApprovalRequirementsToJSON(value) {
34
36
  'v': value.v,
35
37
  'id': value.id,
36
38
  'when': WaasPolicyRuleWhen.WaasPolicyRuleWhenToJSON(value.when),
39
+ 'eligibleApproverRoles': value.eligibleApproverRoles,
40
+ 'mandatoryApproverRoles': value.mandatoryApproverRoles,
37
41
  'eligibleApproverRole': value.eligibleApproverRole,
38
42
  'mandatoryApproverRole': value.mandatoryApproverRole,
39
43
  'requiredApprovals': value.requiredApprovals,
@@ -35,13 +35,25 @@ export interface WaasPolicyRuleApprovalRequirements {
35
35
  */
36
36
  when?: WaasPolicyRuleWhen;
37
37
  /**
38
- * Name of the role whose holders may satisfy this requirement.
38
+ * Names of the roles whose holders may satisfy this requirement. A holder of any listed role may approve. An empty array means no restriction.
39
+ * @type {Array<string>}
40
+ * @memberof WaasPolicyRuleApprovalRequirements
41
+ */
42
+ eligibleApproverRoles?: Array<string>;
43
+ /**
44
+ * Names of the roles that must each be represented among the approvers, regardless of eligibleApproverRoles. An empty array means none.
45
+ * @type {Array<string>}
46
+ * @memberof WaasPolicyRuleApprovalRequirements
47
+ */
48
+ mandatoryApproverRoles?: Array<string>;
49
+ /**
50
+ * Deprecated. Use eligibleApproverRoles. Do not send both.
39
51
  * @type {string}
40
52
  * @memberof WaasPolicyRuleApprovalRequirements
41
53
  */
42
54
  eligibleApproverRole?: string;
43
55
  /**
44
- * Name of the role whose holders must approve, regardless of eligibleApproverRole.
56
+ * Deprecated. Use mandatoryApproverRoles. Do not send both.
45
57
  * @type {string}
46
58
  * @memberof WaasPolicyRuleApprovalRequirements
47
59
  */
@@ -13,6 +13,8 @@ function WaasPolicyRuleApprovalRequirementsFromJSONTyped(json, ignoreDiscriminat
13
13
  'v': json['v'],
14
14
  'id': json['id'],
15
15
  'when': !exists(json, 'when') ? undefined : WaasPolicyRuleWhenFromJSON(json['when']),
16
+ 'eligibleApproverRoles': !exists(json, 'eligibleApproverRoles') ? undefined : json['eligibleApproverRoles'],
17
+ 'mandatoryApproverRoles': !exists(json, 'mandatoryApproverRoles') ? undefined : json['mandatoryApproverRoles'],
16
18
  'eligibleApproverRole': !exists(json, 'eligibleApproverRole') ? undefined : json['eligibleApproverRole'],
17
19
  'mandatoryApproverRole': !exists(json, 'mandatoryApproverRole') ? undefined : json['mandatoryApproverRole'],
18
20
  'requiredApprovals': json['requiredApprovals'],
@@ -30,6 +32,8 @@ function WaasPolicyRuleApprovalRequirementsToJSON(value) {
30
32
  'v': value.v,
31
33
  'id': value.id,
32
34
  'when': WaasPolicyRuleWhenToJSON(value.when),
35
+ 'eligibleApproverRoles': value.eligibleApproverRoles,
36
+ 'mandatoryApproverRoles': value.mandatoryApproverRoles,
33
37
  'eligibleApproverRole': value.eligibleApproverRole,
34
38
  'mandatoryApproverRole': value.mandatoryApproverRole,
35
39
  'requiredApprovals': value.requiredApprovals,