@dynamic-labs/sdk-api-core 0.0.1110 → 0.0.1112

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 (85) hide show
  1. package/package.json +1 -1
  2. package/src/apis/SDKApi.cjs +68 -4
  3. package/src/apis/SDKApi.cjs.map +1 -1
  4. package/src/apis/SDKApi.d.ts +30 -5
  5. package/src/apis/SDKApi.js +68 -4
  6. package/src/apis/SDKApi.js.map +1 -1
  7. package/src/apis/WaasApi.cjs +2 -0
  8. package/src/apis/WaasApi.cjs.map +1 -1
  9. package/src/apis/WaasApi.js +2 -0
  10. package/src/apis/WaasApi.js.map +1 -1
  11. package/src/index.cjs +52 -0
  12. package/src/index.cjs.map +1 -1
  13. package/src/index.js +11 -0
  14. package/src/index.js.map +1 -1
  15. package/src/models/ScreenTransactionRequest.cjs +41 -0
  16. package/src/models/ScreenTransactionRequest.cjs.map +1 -0
  17. package/src/models/ScreenTransactionRequest.d.ts +47 -0
  18. package/src/models/ScreenTransactionRequest.js +35 -0
  19. package/src/models/ScreenTransactionRequest.js.map +1 -0
  20. package/src/models/ScreenTransactionRequestContext.cjs +49 -0
  21. package/src/models/ScreenTransactionRequestContext.cjs.map +1 -0
  22. package/src/models/ScreenTransactionRequestContext.d.ts +63 -0
  23. package/src/models/ScreenTransactionRequestContext.js +43 -0
  24. package/src/models/ScreenTransactionRequestContext.js.map +1 -0
  25. package/src/models/ScreenTransactionRequestContextBtcTransaction.cjs +37 -0
  26. package/src/models/ScreenTransactionRequestContextBtcTransaction.cjs.map +1 -0
  27. package/src/models/ScreenTransactionRequestContextBtcTransaction.d.ts +39 -0
  28. package/src/models/ScreenTransactionRequestContextBtcTransaction.js +31 -0
  29. package/src/models/ScreenTransactionRequestContextBtcTransaction.js.map +1 -0
  30. package/src/models/ScreenTransactionRequestContextEvmTransaction.cjs +33 -0
  31. package/src/models/ScreenTransactionRequestContextEvmTransaction.cjs.map +1 -0
  32. package/src/models/ScreenTransactionRequestContextEvmTransaction.d.ts +27 -0
  33. package/src/models/ScreenTransactionRequestContextEvmTransaction.js +27 -0
  34. package/src/models/ScreenTransactionRequestContextEvmTransaction.js.map +1 -0
  35. package/src/models/ScreenTransactionRequestContextStellarTransaction.cjs +43 -0
  36. package/src/models/ScreenTransactionRequestContextStellarTransaction.cjs.map +1 -0
  37. package/src/models/ScreenTransactionRequestContextStellarTransaction.d.ts +27 -0
  38. package/src/models/ScreenTransactionRequestContextStellarTransaction.js +37 -0
  39. package/src/models/ScreenTransactionRequestContextStellarTransaction.js.map +1 -0
  40. package/src/models/ScreenTransactionRequestContextSuiTransaction.cjs +43 -0
  41. package/src/models/ScreenTransactionRequestContextSuiTransaction.cjs.map +1 -0
  42. package/src/models/ScreenTransactionRequestContextSuiTransaction.d.ts +27 -0
  43. package/src/models/ScreenTransactionRequestContextSuiTransaction.js +37 -0
  44. package/src/models/ScreenTransactionRequestContextSuiTransaction.js.map +1 -0
  45. package/src/models/ScreenTransactionRequestContextSvmTransaction.cjs +43 -0
  46. package/src/models/ScreenTransactionRequestContextSvmTransaction.cjs.map +1 -0
  47. package/src/models/ScreenTransactionRequestContextSvmTransaction.d.ts +27 -0
  48. package/src/models/ScreenTransactionRequestContextSvmTransaction.js +37 -0
  49. package/src/models/ScreenTransactionRequestContextSvmTransaction.js.map +1 -0
  50. package/src/models/ScreenTransactionRequestContextTronTransaction.cjs +43 -0
  51. package/src/models/ScreenTransactionRequestContextTronTransaction.cjs.map +1 -0
  52. package/src/models/ScreenTransactionRequestContextTronTransaction.d.ts +27 -0
  53. package/src/models/ScreenTransactionRequestContextTronTransaction.js +37 -0
  54. package/src/models/ScreenTransactionRequestContextTronTransaction.js.map +1 -0
  55. package/src/models/ScreenTransactionResponse.cjs +46 -0
  56. package/src/models/ScreenTransactionResponse.cjs.map +1 -0
  57. package/src/models/ScreenTransactionResponse.d.ts +47 -0
  58. package/src/models/ScreenTransactionResponse.js +40 -0
  59. package/src/models/ScreenTransactionResponse.js.map +1 -0
  60. package/src/models/WaasPolicyLayerResponseLayerContent.cjs +3 -3
  61. package/src/models/WaasPolicyLayerResponseLayerContent.cjs.map +1 -1
  62. package/src/models/WaasPolicyLayerResponseLayerContent.d.ts +3 -3
  63. package/src/models/WaasPolicyLayerResponseLayerContent.js +3 -3
  64. package/src/models/WaasPolicyLayerResponseLayerContent.js.map +1 -1
  65. package/src/models/WaasPolicyLayerResponseRule.cjs +66 -0
  66. package/src/models/WaasPolicyLayerResponseRule.cjs.map +1 -0
  67. package/src/models/WaasPolicyLayerResponseRule.d.ts +116 -0
  68. package/src/models/WaasPolicyLayerResponseRule.js +60 -0
  69. package/src/models/WaasPolicyLayerResponseRule.js.map +1 -0
  70. package/src/models/WaasPolicyLayerRuleOperation.cjs +47 -0
  71. package/src/models/WaasPolicyLayerRuleOperation.cjs.map +1 -0
  72. package/src/models/WaasPolicyLayerRuleOperation.d.ts +48 -0
  73. package/src/models/WaasPolicyLayerRuleOperation.js +41 -0
  74. package/src/models/WaasPolicyLayerRuleOperation.js.map +1 -0
  75. package/src/models/WaasPolicyLayerUpdateRequest.cjs +4 -0
  76. package/src/models/WaasPolicyLayerUpdateRequest.cjs.map +1 -1
  77. package/src/models/WaasPolicyLayerUpdateRequest.d.ts +10 -2
  78. package/src/models/WaasPolicyLayerUpdateRequest.js +4 -0
  79. package/src/models/WaasPolicyLayerUpdateRequest.js.map +1 -1
  80. package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs +4 -0
  81. package/src/models/WaasSignerPolicyLayerUpdateRequest.cjs.map +1 -1
  82. package/src/models/WaasSignerPolicyLayerUpdateRequest.d.ts +10 -2
  83. package/src/models/WaasSignerPolicyLayerUpdateRequest.js +4 -0
  84. package/src/models/WaasSignerPolicyLayerUpdateRequest.js.map +1 -1
  85. package/src/models/index.d.ts +11 -0
@@ -0,0 +1,47 @@
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
+ * Allow/block screening verdict; undecodable payloads and provider errors fail open to allow.
14
+ * @export
15
+ * @interface ScreenTransactionResponse
16
+ */
17
+ export interface ScreenTransactionResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ScreenTransactionResponse
22
+ */
23
+ decision: ScreenTransactionResponseDecisionEnum;
24
+ /**
25
+ * The sanctioned addresses that caused a block verdict.
26
+ * @type {Array<string>}
27
+ * @memberof ScreenTransactionResponse
28
+ */
29
+ blockedAddresses?: Array<string>;
30
+ /**
31
+ * Identifier of the persisted sanction check backing a block verdict.
32
+ * @type {string}
33
+ * @memberof ScreenTransactionResponse
34
+ */
35
+ sanctionCheckId?: string;
36
+ }
37
+ /**
38
+ * @export
39
+ * @enum {string}
40
+ */
41
+ export declare enum ScreenTransactionResponseDecisionEnum {
42
+ Allow = "allow",
43
+ Block = "block"
44
+ }
45
+ export declare function ScreenTransactionResponseFromJSON(json: any): ScreenTransactionResponse;
46
+ export declare function ScreenTransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScreenTransactionResponse;
47
+ export declare function ScreenTransactionResponseToJSON(value?: ScreenTransactionResponse | null): any;
@@ -0,0 +1,40 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ /**
5
+ * @export
6
+ * @enum {string}
7
+ */
8
+ var ScreenTransactionResponseDecisionEnum;
9
+ (function (ScreenTransactionResponseDecisionEnum) {
10
+ ScreenTransactionResponseDecisionEnum["Allow"] = "allow";
11
+ ScreenTransactionResponseDecisionEnum["Block"] = "block";
12
+ })(ScreenTransactionResponseDecisionEnum || (ScreenTransactionResponseDecisionEnum = {}));
13
+ function ScreenTransactionResponseFromJSON(json) {
14
+ return ScreenTransactionResponseFromJSONTyped(json);
15
+ }
16
+ function ScreenTransactionResponseFromJSONTyped(json, ignoreDiscriminator) {
17
+ if ((json === undefined) || (json === null)) {
18
+ return json;
19
+ }
20
+ return {
21
+ 'decision': json['decision'],
22
+ 'blockedAddresses': !exists(json, 'blockedAddresses') ? undefined : json['blockedAddresses'],
23
+ 'sanctionCheckId': !exists(json, 'sanctionCheckId') ? undefined : json['sanctionCheckId'],
24
+ };
25
+ }
26
+ function ScreenTransactionResponseToJSON(value) {
27
+ if (value === undefined) {
28
+ return undefined;
29
+ }
30
+ if (value === null) {
31
+ return null;
32
+ }
33
+ return {
34
+ 'decision': value.decision,
35
+ 'blockedAddresses': value.blockedAddresses,
36
+ 'sanctionCheckId': value.sanctionCheckId,
37
+ };
38
+ }
39
+
40
+ export { ScreenTransactionResponseDecisionEnum, ScreenTransactionResponseFromJSON, ScreenTransactionResponseFromJSONTyped, ScreenTransactionResponseToJSON };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ScreenTransactionResponse.js","sources":["../../../../../libs/sdk-api-core/src/models/ScreenTransactionResponse.ts"],"sourcesContent":null,"names":[],"mappings":";;AAAA;AAyCA;;;AAGE;IACU,sCAGX;AAHD,CAAA,UAAY,qCAAqC,EAAA;AAC7C,IAAA,qCAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACf,IAAA,qCAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACnB,CAAC,EAHW,qCAAqC,KAArC,qCAAqC,GAGhD,EAAA,CAAA,CAAA,CAAA;AAEK,SAAU,iCAAiC,CAAC,IAAS,EAAA;AACvD,IAAA,OAAO,sCAAsC,CAAC,IAAW,CAAC,CAAC;AAC/D,CAAC;AAEe,SAAA,sCAAsC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC1F,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;AAC5B,QAAA,kBAAkB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,kBAAkB,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,kBAAkB,CAAC;AAC5F,QAAA,iBAAiB,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,iBAAiB,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,iBAAiB,CAAC;KAC5F,CAAC;AACN,CAAC;AAEK,SAAU,+BAA+B,CAAC,KAAwC,EAAA;AACpF,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,kBAAkB,EAAE,KAAK,CAAC,gBAAgB;QAC1C,iBAAiB,EAAE,KAAK,CAAC,eAAe;KAC3C,CAAC;AACN;;;;"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
- var WaasPolicyRule = require('./WaasPolicyRule.cjs');
6
+ var WaasPolicyLayerResponseRule = require('./WaasPolicyLayerResponseRule.cjs');
7
7
 
8
8
  /* tslint:disable */
9
9
  function WaasPolicyLayerResponseLayerContentFromJSON(json) {
@@ -14,7 +14,7 @@ function WaasPolicyLayerResponseLayerContentFromJSONTyped(json, ignoreDiscrimina
14
14
  return json;
15
15
  }
16
16
  return {
17
- 'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
17
+ 'rules': !runtime.exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerResponseRule.WaasPolicyLayerResponseRuleFromJSON)),
18
18
  };
19
19
  }
20
20
  function WaasPolicyLayerResponseLayerContentToJSON(value) {
@@ -25,7 +25,7 @@ function WaasPolicyLayerResponseLayerContentToJSON(value) {
25
25
  return null;
26
26
  }
27
27
  return {
28
- 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
28
+ 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerResponseRule.WaasPolicyLayerResponseRuleToJSON)),
29
29
  };
30
30
  }
31
31
 
@@ -1 +1 @@
1
- {"version":3,"file":"WaasPolicyLayerResponseLayerContent.cjs","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerResponseLayerContent.ts"],"sourcesContent":null,"names":["exists","WaasPolicyRuleFromJSON","WaasPolicyRuleToJSON"],"mappings":";;;;;;;AAAA;AAoCM,SAAU,2CAA2C,CAAC,IAAS,EAAA;AACjE,IAAA,OAAO,gDAAgD,CAAC,IAAW,CAAC,CAAC;AACzE,CAAC;AAEe,SAAA,gDAAgD,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACpG,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,CAACA,cAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,SAAS,IAAK,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAACC,qCAAsB,CAAC,CAAC;KAC5G,CAAC;AACN,CAAC;AAEK,SAAU,yCAAyC,CAAC,KAAkD,EAAA;AACxG,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK,KAAK,SAAS,GAAG,SAAS,IAAK,KAAK,CAAC,KAAoB,CAAC,GAAG,CAACC,mCAAoB,CAAC,CAAC;KAC3G,CAAC;AACN;;;;;;"}
1
+ {"version":3,"file":"WaasPolicyLayerResponseLayerContent.cjs","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerResponseLayerContent.ts"],"sourcesContent":null,"names":["exists","WaasPolicyLayerResponseRuleFromJSON","WaasPolicyLayerResponseRuleToJSON"],"mappings":";;;;;;;AAAA;AAoCM,SAAU,2CAA2C,CAAC,IAAS,EAAA;AACjE,IAAA,OAAO,gDAAgD,CAAC,IAAW,CAAC,CAAC;AACzE,CAAC;AAEe,SAAA,gDAAgD,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACpG,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,CAACA,cAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,SAAS,IAAK,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAACC,+DAAmC,CAAC,CAAC;KACzH,CAAC;AACN,CAAC;AAEK,SAAU,yCAAyC,CAAC,KAAkD,EAAA;AACxG,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK,KAAK,SAAS,GAAG,SAAS,IAAK,KAAK,CAAC,KAAoB,CAAC,GAAG,CAACC,6DAAiC,CAAC,CAAC;KACxH,CAAC;AACN;;;;;;"}
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import { WaasPolicyRule } from './WaasPolicyRule';
12
+ import { WaasPolicyLayerResponseRule } from './WaasPolicyLayerResponseRule';
13
13
  /**
14
14
  * The decrypted, mutated wallet-Layer document
15
15
  * @export
@@ -18,10 +18,10 @@ import { WaasPolicyRule } from './WaasPolicyRule';
18
18
  export interface WaasPolicyLayerResponseLayerContent {
19
19
  /**
20
20
  *
21
- * @type {Array<WaasPolicyRule>}
21
+ * @type {Array<WaasPolicyLayerResponseRule>}
22
22
  * @memberof WaasPolicyLayerResponseLayerContent
23
23
  */
24
- rules?: Array<WaasPolicyRule>;
24
+ rules?: Array<WaasPolicyLayerResponseRule>;
25
25
  }
26
26
  export declare function WaasPolicyLayerResponseLayerContentFromJSON(json: any): WaasPolicyLayerResponseLayerContent;
27
27
  export declare function WaasPolicyLayerResponseLayerContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyLayerResponseLayerContent;
@@ -1,5 +1,5 @@
1
1
  import { exists } from '../runtime.js';
2
- import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
2
+ import { WaasPolicyLayerResponseRuleFromJSON, WaasPolicyLayerResponseRuleToJSON } from './WaasPolicyLayerResponseRule.js';
3
3
 
4
4
  /* tslint:disable */
5
5
  function WaasPolicyLayerResponseLayerContentFromJSON(json) {
@@ -10,7 +10,7 @@ function WaasPolicyLayerResponseLayerContentFromJSONTyped(json, ignoreDiscrimina
10
10
  return json;
11
11
  }
12
12
  return {
13
- 'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyRuleFromJSON)),
13
+ 'rules': !exists(json, 'rules') ? undefined : (json['rules'].map(WaasPolicyLayerResponseRuleFromJSON)),
14
14
  };
15
15
  }
16
16
  function WaasPolicyLayerResponseLayerContentToJSON(value) {
@@ -21,7 +21,7 @@ function WaasPolicyLayerResponseLayerContentToJSON(value) {
21
21
  return null;
22
22
  }
23
23
  return {
24
- 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyRuleToJSON)),
24
+ 'rules': value.rules === undefined ? undefined : (value.rules.map(WaasPolicyLayerResponseRuleToJSON)),
25
25
  };
26
26
  }
27
27
 
@@ -1 +1 @@
1
- {"version":3,"file":"WaasPolicyLayerResponseLayerContent.js","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerResponseLayerContent.ts"],"sourcesContent":null,"names":[],"mappings":";;;AAAA;AAoCM,SAAU,2CAA2C,CAAC,IAAS,EAAA;AACjE,IAAA,OAAO,gDAAgD,CAAC,IAAW,CAAC,CAAC;AACzE,CAAC;AAEe,SAAA,gDAAgD,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACpG,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,SAAS,IAAK,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,sBAAsB,CAAC,CAAC;KAC5G,CAAC;AACN,CAAC;AAEK,SAAU,yCAAyC,CAAC,KAAkD,EAAA;AACxG,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK,KAAK,SAAS,GAAG,SAAS,IAAK,KAAK,CAAC,KAAoB,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;KAC3G,CAAC;AACN;;;;"}
1
+ {"version":3,"file":"WaasPolicyLayerResponseLayerContent.js","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerResponseLayerContent.ts"],"sourcesContent":null,"names":[],"mappings":";;;AAAA;AAoCM,SAAU,2CAA2C,CAAC,IAAS,EAAA;AACjE,IAAA,OAAO,gDAAgD,CAAC,IAAW,CAAC,CAAC;AACzE,CAAC;AAEe,SAAA,gDAAgD,CAAC,IAAS,EAAE,mBAA4B,EAAA;AACpG,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,SAAS,IAAK,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;KACzH,CAAC;AACN,CAAC;AAEK,SAAU,yCAAyC,CAAC,KAAkD,EAAA;AACxG,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,KAAK,KAAK,SAAS,GAAG,SAAS,IAAK,KAAK,CAAC,KAAoB,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;KACxH,CAAC;AACN;;;;"}
@@ -0,0 +1,66 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WaasChainEnum = require('./WaasChainEnum.cjs');
7
+ var WaasPolicyArgumentConstraint = require('./WaasPolicyArgumentConstraint.cjs');
8
+ var WaasPolicyRuleOperationRestrictions = require('./WaasPolicyRuleOperationRestrictions.cjs');
9
+ var WaasPolicyRuleType = require('./WaasPolicyRuleType.cjs');
10
+ var WaasPolicyRuleValueLimit = require('./WaasPolicyRuleValueLimit.cjs');
11
+
12
+ /* tslint:disable */
13
+ function WaasPolicyLayerResponseRuleFromJSON(json) {
14
+ return WaasPolicyLayerResponseRuleFromJSONTyped(json);
15
+ }
16
+ function WaasPolicyLayerResponseRuleFromJSONTyped(json, ignoreDiscriminator) {
17
+ if ((json === undefined) || (json === null)) {
18
+ return json;
19
+ }
20
+ return {
21
+ 'ruleId': json['ruleId'],
22
+ 'name': json['name'],
23
+ 'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeFromJSON(json['ruleType']),
24
+ 'address': !runtime.exists(json, 'address') ? undefined : json['address'],
25
+ 'addresses': !runtime.exists(json, 'addresses') ? undefined : json['addresses'],
26
+ 'chain': WaasChainEnum.WaasChainEnumFromJSON(json['chain']),
27
+ 'chainId': !runtime.exists(json, 'chainId') ? undefined : json['chainId'],
28
+ 'chainIds': !runtime.exists(json, 'chainIds') ? undefined : json['chainIds'],
29
+ 'contractAbi': !runtime.exists(json, 'contractAbi') ? undefined : json['contractAbi'],
30
+ 'functionName': !runtime.exists(json, 'functionName') ? undefined : json['functionName'],
31
+ 'argumentConstraints': !runtime.exists(json, 'argumentConstraints') ? undefined : (json['argumentConstraints'].map(WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintFromJSON)),
32
+ 'valueLimit': !runtime.exists(json, 'valueLimit') ? undefined : WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitFromJSON(json['valueLimit']),
33
+ 'operationRestrictions': !runtime.exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
34
+ 'disableBlockaidSecurityChecks': !runtime.exists(json, 'disableBlockaidSecurityChecks') ? undefined : json['disableBlockaidSecurityChecks'],
35
+ 'modifiableBySigner': !runtime.exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
36
+ };
37
+ }
38
+ function WaasPolicyLayerResponseRuleToJSON(value) {
39
+ if (value === undefined) {
40
+ return undefined;
41
+ }
42
+ if (value === null) {
43
+ return null;
44
+ }
45
+ return {
46
+ 'ruleId': value.ruleId,
47
+ 'name': value.name,
48
+ 'ruleType': WaasPolicyRuleType.WaasPolicyRuleTypeToJSON(value.ruleType),
49
+ 'address': value.address,
50
+ 'addresses': value.addresses,
51
+ 'chain': WaasChainEnum.WaasChainEnumToJSON(value.chain),
52
+ 'chainId': value.chainId,
53
+ 'chainIds': value.chainIds,
54
+ 'contractAbi': value.contractAbi,
55
+ 'functionName': value.functionName,
56
+ 'argumentConstraints': value.argumentConstraints === undefined ? undefined : (value.argumentConstraints.map(WaasPolicyArgumentConstraint.WaasPolicyArgumentConstraintToJSON)),
57
+ 'valueLimit': WaasPolicyRuleValueLimit.WaasPolicyRuleValueLimitToJSON(value.valueLimit),
58
+ 'operationRestrictions': WaasPolicyRuleOperationRestrictions.WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
59
+ 'disableBlockaidSecurityChecks': value.disableBlockaidSecurityChecks,
60
+ 'modifiableBySigner': value.modifiableBySigner,
61
+ };
62
+ }
63
+
64
+ exports.WaasPolicyLayerResponseRuleFromJSON = WaasPolicyLayerResponseRuleFromJSON;
65
+ exports.WaasPolicyLayerResponseRuleFromJSONTyped = WaasPolicyLayerResponseRuleFromJSONTyped;
66
+ exports.WaasPolicyLayerResponseRuleToJSON = WaasPolicyLayerResponseRuleToJSON;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WaasPolicyLayerResponseRule.cjs","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerResponseRule.ts"],"sourcesContent":null,"names":["WaasPolicyRuleTypeFromJSON","exists","WaasChainEnumFromJSON","WaasPolicyArgumentConstraintFromJSON","WaasPolicyRuleValueLimitFromJSON","WaasPolicyRuleOperationRestrictionsFromJSON","WaasPolicyRuleTypeToJSON","WaasChainEnumToJSON","WaasPolicyArgumentConstraintToJSON","WaasPolicyRuleValueLimitToJSON","WaasPolicyRuleOperationRestrictionsToJSON"],"mappings":";;;;;;;;;;;AAAA;AAsJM,SAAU,mCAAmC,CAAC,IAAS,EAAA;AACzD,IAAA,OAAO,wCAAwC,CAAC,IAAW,CAAC,CAAC;AACjE,CAAC;AAEe,SAAA,wCAAwC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC5F,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;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C,kBAAkB;KACjD,CAAC;AACN;;;;;;"}
@@ -0,0 +1,116 @@
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 { WaasChainEnum } from './WaasChainEnum';
13
+ import { WaasPolicyArgumentConstraint } from './WaasPolicyArgumentConstraint';
14
+ import { WaasPolicyRuleOperationRestrictions } from './WaasPolicyRuleOperationRestrictions';
15
+ import { WaasPolicyRuleType } from './WaasPolicyRuleType';
16
+ import { WaasPolicyRuleValueLimit } from './WaasPolicyRuleValueLimit';
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface WaasPolicyLayerResponseRule
21
+ */
22
+ export interface WaasPolicyLayerResponseRule {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof WaasPolicyLayerResponseRule
27
+ */
28
+ ruleId: string;
29
+ /**
30
+ * Human-readable name for the rule
31
+ * @type {string}
32
+ * @memberof WaasPolicyLayerResponseRule
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ * @type {WaasPolicyRuleType}
38
+ * @memberof WaasPolicyLayerResponseRule
39
+ */
40
+ ruleType: WaasPolicyRuleType;
41
+ /**
42
+ * Target address EVM or SVM (legacy field)
43
+ * @type {string}
44
+ * @memberof WaasPolicyLayerResponseRule
45
+ */
46
+ address?: string | null;
47
+ /**
48
+ * Target address(es) EVM or SVM
49
+ * @type {Array<string>}
50
+ * @memberof WaasPolicyLayerResponseRule
51
+ */
52
+ addresses?: Array<string>;
53
+ /**
54
+ *
55
+ * @type {WaasChainEnum}
56
+ * @memberof WaasPolicyLayerResponseRule
57
+ */
58
+ chain: WaasChainEnum;
59
+ /**
60
+ * Chain ID for the policy rule (legacy field)
61
+ * @type {number}
62
+ * @memberof WaasPolicyLayerResponseRule
63
+ */
64
+ chainId?: number;
65
+ /**
66
+ * Chain IDs for the policy rule
67
+ * @type {Array<number>}
68
+ * @memberof WaasPolicyLayerResponseRule
69
+ */
70
+ chainIds?: Array<number>;
71
+ /**
72
+ * Contract ABI interface
73
+ * @type {Array<object>}
74
+ * @memberof WaasPolicyLayerResponseRule
75
+ */
76
+ contractAbi?: Array<object>;
77
+ /**
78
+ * Specific function name to permit/deny
79
+ * @type {string}
80
+ * @memberof WaasPolicyLayerResponseRule
81
+ */
82
+ functionName?: string;
83
+ /**
84
+ * Validation rules for function arguments
85
+ * @type {Array<WaasPolicyArgumentConstraint>}
86
+ * @memberof WaasPolicyLayerResponseRule
87
+ */
88
+ argumentConstraints?: Array<WaasPolicyArgumentConstraint>;
89
+ /**
90
+ *
91
+ * @type {WaasPolicyRuleValueLimit}
92
+ * @memberof WaasPolicyLayerResponseRule
93
+ */
94
+ valueLimit?: WaasPolicyRuleValueLimit;
95
+ /**
96
+ *
97
+ * @type {WaasPolicyRuleOperationRestrictions}
98
+ * @memberof WaasPolicyLayerResponseRule
99
+ */
100
+ operationRestrictions?: WaasPolicyRuleOperationRestrictions;
101
+ /**
102
+ * When true, disables Blockaid security enforcement for this rule. Blockaid simulation will still run for policy evaluation, but security verdicts (e.g., malicious transactions) will not block execution. Transaction approval will be determined solely by customer-defined policy rules. Use with caution as this bypasses automated security protections.
103
+ * @type {boolean}
104
+ * @memberof WaasPolicyLayerResponseRule
105
+ */
106
+ disableBlockaidSecurityChecks?: boolean;
107
+ /**
108
+ * When true, a Signer is permitted to modify this Rule. Cannot be combined with operationRestrictions or disableBlockaidSecurityChecks on the same Rule.
109
+ * @type {boolean}
110
+ * @memberof WaasPolicyLayerResponseRule
111
+ */
112
+ modifiableBySigner?: boolean;
113
+ }
114
+ export declare function WaasPolicyLayerResponseRuleFromJSON(json: any): WaasPolicyLayerResponseRule;
115
+ export declare function WaasPolicyLayerResponseRuleFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyLayerResponseRule;
116
+ export declare function WaasPolicyLayerResponseRuleToJSON(value?: WaasPolicyLayerResponseRule | null): any;
@@ -0,0 +1,60 @@
1
+ import { exists } from '../runtime.js';
2
+ import { WaasChainEnumFromJSON, WaasChainEnumToJSON } from './WaasChainEnum.js';
3
+ import { WaasPolicyArgumentConstraintFromJSON, WaasPolicyArgumentConstraintToJSON } from './WaasPolicyArgumentConstraint.js';
4
+ import { WaasPolicyRuleOperationRestrictionsFromJSON, WaasPolicyRuleOperationRestrictionsToJSON } from './WaasPolicyRuleOperationRestrictions.js';
5
+ import { WaasPolicyRuleTypeFromJSON, WaasPolicyRuleTypeToJSON } from './WaasPolicyRuleType.js';
6
+ import { WaasPolicyRuleValueLimitFromJSON, WaasPolicyRuleValueLimitToJSON } from './WaasPolicyRuleValueLimit.js';
7
+
8
+ /* tslint:disable */
9
+ function WaasPolicyLayerResponseRuleFromJSON(json) {
10
+ return WaasPolicyLayerResponseRuleFromJSONTyped(json);
11
+ }
12
+ function WaasPolicyLayerResponseRuleFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'ruleId': json['ruleId'],
18
+ 'name': json['name'],
19
+ 'ruleType': WaasPolicyRuleTypeFromJSON(json['ruleType']),
20
+ 'address': !exists(json, 'address') ? undefined : json['address'],
21
+ 'addresses': !exists(json, 'addresses') ? undefined : json['addresses'],
22
+ 'chain': WaasChainEnumFromJSON(json['chain']),
23
+ 'chainId': !exists(json, 'chainId') ? undefined : json['chainId'],
24
+ 'chainIds': !exists(json, 'chainIds') ? undefined : json['chainIds'],
25
+ 'contractAbi': !exists(json, 'contractAbi') ? undefined : json['contractAbi'],
26
+ 'functionName': !exists(json, 'functionName') ? undefined : json['functionName'],
27
+ 'argumentConstraints': !exists(json, 'argumentConstraints') ? undefined : (json['argumentConstraints'].map(WaasPolicyArgumentConstraintFromJSON)),
28
+ 'valueLimit': !exists(json, 'valueLimit') ? undefined : WaasPolicyRuleValueLimitFromJSON(json['valueLimit']),
29
+ 'operationRestrictions': !exists(json, 'operationRestrictions') ? undefined : WaasPolicyRuleOperationRestrictionsFromJSON(json['operationRestrictions']),
30
+ 'disableBlockaidSecurityChecks': !exists(json, 'disableBlockaidSecurityChecks') ? undefined : json['disableBlockaidSecurityChecks'],
31
+ 'modifiableBySigner': !exists(json, 'modifiableBySigner') ? undefined : json['modifiableBySigner'],
32
+ };
33
+ }
34
+ function WaasPolicyLayerResponseRuleToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'ruleId': value.ruleId,
43
+ 'name': value.name,
44
+ 'ruleType': WaasPolicyRuleTypeToJSON(value.ruleType),
45
+ 'address': value.address,
46
+ 'addresses': value.addresses,
47
+ 'chain': WaasChainEnumToJSON(value.chain),
48
+ 'chainId': value.chainId,
49
+ 'chainIds': value.chainIds,
50
+ 'contractAbi': value.contractAbi,
51
+ 'functionName': value.functionName,
52
+ 'argumentConstraints': value.argumentConstraints === undefined ? undefined : (value.argumentConstraints.map(WaasPolicyArgumentConstraintToJSON)),
53
+ 'valueLimit': WaasPolicyRuleValueLimitToJSON(value.valueLimit),
54
+ 'operationRestrictions': WaasPolicyRuleOperationRestrictionsToJSON(value.operationRestrictions),
55
+ 'disableBlockaidSecurityChecks': value.disableBlockaidSecurityChecks,
56
+ 'modifiableBySigner': value.modifiableBySigner,
57
+ };
58
+ }
59
+
60
+ export { WaasPolicyLayerResponseRuleFromJSON, WaasPolicyLayerResponseRuleFromJSONTyped, WaasPolicyLayerResponseRuleToJSON };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WaasPolicyLayerResponseRule.js","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerResponseRule.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;AAAA;AAsJM,SAAU,mCAAmC,CAAC,IAAS,EAAA;AACzD,IAAA,OAAO,wCAAwC,CAAC,IAAW,CAAC,CAAC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,CAAC,kCAAkC,CAAC,CAAC;AAChK,QAAA,YAAY,EAAE,8BAA8B,CAAC,KAAK,CAAC,UAAU,CAAC;AAC9D,QAAA,uBAAuB,EAAE,yCAAyC,CAAC,KAAK,CAAC,qBAAqB,CAAC;QAC/F,+BAA+B,EAAE,KAAK,CAAC,6BAA6B;QACpE,oBAAoB,EAAE,KAAK,CAAC,kBAAkB;KACjD,CAAC;AACN;;;;"}
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+ var WaasPolicyRule = require('./WaasPolicyRule.cjs');
7
+
8
+ /* tslint:disable */
9
+ /**
10
+ * @export
11
+ * @enum {string}
12
+ */
13
+ exports.WaasPolicyLayerRuleOperationOpEnum = void 0;
14
+ (function (WaasPolicyLayerRuleOperationOpEnum) {
15
+ WaasPolicyLayerRuleOperationOpEnum["Upsert"] = "upsert";
16
+ WaasPolicyLayerRuleOperationOpEnum["Remove"] = "remove";
17
+ })(exports.WaasPolicyLayerRuleOperationOpEnum || (exports.WaasPolicyLayerRuleOperationOpEnum = {}));
18
+ function WaasPolicyLayerRuleOperationFromJSON(json) {
19
+ return WaasPolicyLayerRuleOperationFromJSONTyped(json);
20
+ }
21
+ function WaasPolicyLayerRuleOperationFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'op': json['op'],
27
+ 'rule': !runtime.exists(json, 'rule') ? undefined : WaasPolicyRule.WaasPolicyRuleFromJSON(json['rule']),
28
+ 'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
29
+ };
30
+ }
31
+ function WaasPolicyLayerRuleOperationToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'op': value.op,
40
+ 'rule': WaasPolicyRule.WaasPolicyRuleToJSON(value.rule),
41
+ 'ruleId': value.ruleId,
42
+ };
43
+ }
44
+
45
+ exports.WaasPolicyLayerRuleOperationFromJSON = WaasPolicyLayerRuleOperationFromJSON;
46
+ exports.WaasPolicyLayerRuleOperationFromJSONTyped = WaasPolicyLayerRuleOperationFromJSONTyped;
47
+ exports.WaasPolicyLayerRuleOperationToJSON = WaasPolicyLayerRuleOperationToJSON;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WaasPolicyLayerRuleOperation.cjs","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerRuleOperation.ts"],"sourcesContent":null,"names":["WaasPolicyLayerRuleOperationOpEnum","exists","WaasPolicyRuleFromJSON","WaasPolicyRuleToJSON"],"mappings":";;;;;;;AAAA;AAgDA;;;AAGE;AACUA,oDAGX;AAHD,CAAA,UAAY,kCAAkC,EAAA;AAC1C,IAAA,kCAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,kCAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACrB,CAAC,EAHWA,0CAAkC,KAAlCA,0CAAkC,GAG7C,EAAA,CAAA,CAAA,CAAA;AAEK,SAAU,oCAAoC,CAAC,IAAS,EAAA;AAC1D,IAAA,OAAO,yCAAyC,CAAC,IAAW,CAAC,CAAC;AAClE,CAAC;AAEe,SAAA,yCAAyC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC7F,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,CAACC,cAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,SAAS,GAAGC,qCAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAChF,QAAA,QAAQ,EAAE,CAACD,cAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC;KACjE,CAAC;AACN,CAAC;AAEK,SAAU,kCAAkC,CAAC,KAA2C,EAAA;AAC1F,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,EAAE;AACd,QAAA,MAAM,EAAEE,mCAAoB,CAAC,KAAK,CAAC,IAAI,CAAC;QACxC,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN;;;;;;"}
@@ -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 { WaasPolicyRule } from './WaasPolicyRule';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WaasPolicyLayerRuleOperation
17
+ */
18
+ export interface WaasPolicyLayerRuleOperation {
19
+ /**
20
+ * The per-Rule operation to apply within a batch
21
+ * @type {string}
22
+ * @memberof WaasPolicyLayerRuleOperation
23
+ */
24
+ op: WaasPolicyLayerRuleOperationOpEnum;
25
+ /**
26
+ *
27
+ * @type {WaasPolicyRule}
28
+ * @memberof WaasPolicyLayerRuleOperation
29
+ */
30
+ rule?: WaasPolicyRule;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof WaasPolicyLayerRuleOperation
35
+ */
36
+ ruleId?: string;
37
+ }
38
+ /**
39
+ * @export
40
+ * @enum {string}
41
+ */
42
+ export declare enum WaasPolicyLayerRuleOperationOpEnum {
43
+ Upsert = "upsert",
44
+ Remove = "remove"
45
+ }
46
+ export declare function WaasPolicyLayerRuleOperationFromJSON(json: any): WaasPolicyLayerRuleOperation;
47
+ export declare function WaasPolicyLayerRuleOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyLayerRuleOperation;
48
+ export declare function WaasPolicyLayerRuleOperationToJSON(value?: WaasPolicyLayerRuleOperation | null): any;
@@ -0,0 +1,41 @@
1
+ import { exists } from '../runtime.js';
2
+ import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
3
+
4
+ /* tslint:disable */
5
+ /**
6
+ * @export
7
+ * @enum {string}
8
+ */
9
+ var WaasPolicyLayerRuleOperationOpEnum;
10
+ (function (WaasPolicyLayerRuleOperationOpEnum) {
11
+ WaasPolicyLayerRuleOperationOpEnum["Upsert"] = "upsert";
12
+ WaasPolicyLayerRuleOperationOpEnum["Remove"] = "remove";
13
+ })(WaasPolicyLayerRuleOperationOpEnum || (WaasPolicyLayerRuleOperationOpEnum = {}));
14
+ function WaasPolicyLayerRuleOperationFromJSON(json) {
15
+ return WaasPolicyLayerRuleOperationFromJSONTyped(json);
16
+ }
17
+ function WaasPolicyLayerRuleOperationFromJSONTyped(json, ignoreDiscriminator) {
18
+ if ((json === undefined) || (json === null)) {
19
+ return json;
20
+ }
21
+ return {
22
+ 'op': json['op'],
23
+ 'rule': !exists(json, 'rule') ? undefined : WaasPolicyRuleFromJSON(json['rule']),
24
+ 'ruleId': !exists(json, 'ruleId') ? undefined : json['ruleId'],
25
+ };
26
+ }
27
+ function WaasPolicyLayerRuleOperationToJSON(value) {
28
+ if (value === undefined) {
29
+ return undefined;
30
+ }
31
+ if (value === null) {
32
+ return null;
33
+ }
34
+ return {
35
+ 'op': value.op,
36
+ 'rule': WaasPolicyRuleToJSON(value.rule),
37
+ 'ruleId': value.ruleId,
38
+ };
39
+ }
40
+
41
+ export { WaasPolicyLayerRuleOperationFromJSON, WaasPolicyLayerRuleOperationFromJSONTyped, WaasPolicyLayerRuleOperationOpEnum, WaasPolicyLayerRuleOperationToJSON };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WaasPolicyLayerRuleOperation.js","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerRuleOperation.ts"],"sourcesContent":null,"names":[],"mappings":";;;AAAA;AAgDA;;;AAGE;IACU,mCAGX;AAHD,CAAA,UAAY,kCAAkC,EAAA;AAC1C,IAAA,kCAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,kCAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACrB,CAAC,EAHW,kCAAkC,KAAlC,kCAAkC,GAG7C,EAAA,CAAA,CAAA,CAAA;AAEK,SAAU,oCAAoC,CAAC,IAAS,EAAA;AAC1D,IAAA,OAAO,yCAAyC,CAAC,IAAW,CAAC,CAAC;AAClE,CAAC;AAEe,SAAA,yCAAyC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC7F,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,SAAS,GAAG,sBAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAChF,QAAA,QAAQ,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC;KACjE,CAAC;AACN,CAAC;AAEK,SAAU,kCAAkC,CAAC,KAA2C,EAAA;AAC1F,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,EAAE;AACd,QAAA,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,IAAI,CAAC;QACxC,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN;;;;"}
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var runtime = require('../runtime.cjs');
6
+ var WaasPolicyLayerRuleOperation = require('./WaasPolicyLayerRuleOperation.cjs');
6
7
  var WaasPolicyRule = require('./WaasPolicyRule.cjs');
7
8
 
8
9
  /* tslint:disable */
@@ -14,6 +15,7 @@ exports.WaasPolicyLayerUpdateRequestOpEnum = void 0;
14
15
  (function (WaasPolicyLayerUpdateRequestOpEnum) {
15
16
  WaasPolicyLayerUpdateRequestOpEnum["Upsert"] = "upsert";
16
17
  WaasPolicyLayerUpdateRequestOpEnum["Remove"] = "remove";
18
+ WaasPolicyLayerUpdateRequestOpEnum["Batch"] = "batch";
17
19
  })(exports.WaasPolicyLayerUpdateRequestOpEnum || (exports.WaasPolicyLayerUpdateRequestOpEnum = {}));
18
20
  function WaasPolicyLayerUpdateRequestFromJSON(json) {
19
21
  return WaasPolicyLayerUpdateRequestFromJSONTyped(json);
@@ -26,6 +28,7 @@ function WaasPolicyLayerUpdateRequestFromJSONTyped(json, ignoreDiscriminator) {
26
28
  'op': json['op'],
27
29
  'rule': !runtime.exists(json, 'rule') ? undefined : WaasPolicyRule.WaasPolicyRuleFromJSON(json['rule']),
28
30
  'ruleId': !runtime.exists(json, 'ruleId') ? undefined : json['ruleId'],
31
+ 'operations': !runtime.exists(json, 'operations') ? undefined : (json['operations'].map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationFromJSON)),
29
32
  };
30
33
  }
31
34
  function WaasPolicyLayerUpdateRequestToJSON(value) {
@@ -39,6 +42,7 @@ function WaasPolicyLayerUpdateRequestToJSON(value) {
39
42
  'op': value.op,
40
43
  'rule': WaasPolicyRule.WaasPolicyRuleToJSON(value.rule),
41
44
  'ruleId': value.ruleId,
45
+ 'operations': value.operations === undefined ? undefined : (value.operations.map(WaasPolicyLayerRuleOperation.WaasPolicyLayerRuleOperationToJSON)),
42
46
  };
43
47
  }
44
48
 
@@ -1 +1 @@
1
- {"version":3,"file":"WaasPolicyLayerUpdateRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerUpdateRequest.ts"],"sourcesContent":null,"names":["WaasPolicyLayerUpdateRequestOpEnum","exists","WaasPolicyRuleFromJSON","WaasPolicyRuleToJSON"],"mappings":";;;;;;;AAAA;AAgDA;;;AAGE;AACUA,oDAGX;AAHD,CAAA,UAAY,kCAAkC,EAAA;AAC1C,IAAA,kCAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,kCAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACrB,CAAC,EAHWA,0CAAkC,KAAlCA,0CAAkC,GAG7C,EAAA,CAAA,CAAA,CAAA;AAEK,SAAU,oCAAoC,CAAC,IAAS,EAAA;AAC1D,IAAA,OAAO,yCAAyC,CAAC,IAAW,CAAC,CAAC;AAClE,CAAC;AAEe,SAAA,yCAAyC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC7F,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,CAACC,cAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GAAG,SAAS,GAAGC,qCAAsB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAChF,QAAA,QAAQ,EAAE,CAACD,cAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC;KACjE,CAAC;AACN,CAAC;AAEK,SAAU,kCAAkC,CAAC,KAA2C,EAAA;AAC1F,IAAA,IAAI,KAAK,KAAK,SAAS,EAAE;AACrB,QAAA,OAAO,SAAS,CAAC;KACpB;AACD,IAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAChB,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,EAAE;AACd,QAAA,MAAM,EAAEE,mCAAoB,CAAC,KAAK,CAAC,IAAI,CAAC;QACxC,QAAQ,EAAE,KAAK,CAAC,MAAM;KACzB,CAAC;AACN;;;;;;"}
1
+ {"version":3,"file":"WaasPolicyLayerUpdateRequest.cjs","sources":["../../../../../libs/sdk-api-core/src/models/WaasPolicyLayerUpdateRequest.ts"],"sourcesContent":null,"names":["WaasPolicyLayerUpdateRequestOpEnum","exists","WaasPolicyRuleFromJSON","WaasPolicyLayerRuleOperationFromJSON","WaasPolicyRuleToJSON","WaasPolicyLayerRuleOperationToJSON"],"mappings":";;;;;;;;AAAA;AA4DA;;;AAGE;AACUA,oDAIX;AAJD,CAAA,UAAY,kCAAkC,EAAA;AAC1C,IAAA,kCAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,kCAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,kCAAA,CAAA,OAAA,CAAA,GAAA,OAAe,CAAA;AACnB,CAAC,EAJWA,0CAAkC,KAAlCA,0CAAkC,GAI7C,EAAA,CAAA,CAAA,CAAA;AAEK,SAAU,oCAAoC,CAAC,IAAS,EAAA;AAC1D,IAAA,OAAO,yCAAyC,CAAC,IAAW,CAAC,CAAC;AAClE,CAAC;AAEe,SAAA,yCAAyC,CAAC,IAAS,EAAE,mBAA4B,EAAA;AAC7F,IAAA,IAAI,CAAC,IAAI,KAAK,SAAS,MAAM,IAAI,KAAK,IAAI,CAAC,EAAE;AACzC,QAAA,OAAO,IAAI,CAAC;KACf;IACD,OAAO;AAEH,QAAA,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,MAAM,EAAE,CAACC,cAAM,CAAC,IAAI,EAAE,MAAM,CA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