@dynamic-labs/sdk-api 0.0.730 → 0.0.732

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 (106) hide show
  1. package/package.json +1 -1
  2. package/src/apis/AllowlistsApi.cjs +2 -0
  3. package/src/apis/AllowlistsApi.js +2 -0
  4. package/src/apis/AnalyticsApi.cjs +2 -0
  5. package/src/apis/AnalyticsApi.js +2 -0
  6. package/src/apis/ChainalysisApi.cjs +2 -0
  7. package/src/apis/ChainalysisApi.js +2 -0
  8. package/src/apis/ChainsApi.cjs +2 -0
  9. package/src/apis/ChainsApi.js +2 -0
  10. package/src/apis/CustomFieldsApi.cjs +2 -0
  11. package/src/apis/CustomFieldsApi.js +2 -0
  12. package/src/apis/CustomHostnamesApi.cjs +2 -0
  13. package/src/apis/CustomHostnamesApi.js +2 -0
  14. package/src/apis/CustomNetworksApi.cjs +2 -0
  15. package/src/apis/CustomNetworksApi.js +2 -0
  16. package/src/apis/DeeplinkUrlsApi.cjs +2 -0
  17. package/src/apis/DeeplinkUrlsApi.js +2 -0
  18. package/src/apis/EnvironmentsApi.cjs +2 -0
  19. package/src/apis/EnvironmentsApi.js +2 -0
  20. package/src/apis/EventsApi.cjs +2 -0
  21. package/src/apis/EventsApi.js +2 -0
  22. package/src/apis/ExportsApi.cjs +2 -0
  23. package/src/apis/ExportsApi.js +2 -0
  24. package/src/apis/ExternalJwtApi.cjs +2 -0
  25. package/src/apis/ExternalJwtApi.js +2 -0
  26. package/src/apis/GatesApi.cjs +2 -0
  27. package/src/apis/GatesApi.js +2 -0
  28. package/src/apis/GlobalWalletAccessControlApi.cjs +2 -0
  29. package/src/apis/GlobalWalletAccessControlApi.js +2 -0
  30. package/src/apis/GlobalWalletsApi.cjs +2 -0
  31. package/src/apis/GlobalWalletsApi.js +2 -0
  32. package/src/apis/InvitesApi.cjs +2 -0
  33. package/src/apis/InvitesApi.js +2 -0
  34. package/src/apis/MembersApi.cjs +2 -0
  35. package/src/apis/MembersApi.js +2 -0
  36. package/src/apis/MfaSettingsApi.cjs +2 -0
  37. package/src/apis/MfaSettingsApi.js +2 -0
  38. package/src/apis/NameServicesApi.cjs +2 -0
  39. package/src/apis/NameServicesApi.js +2 -0
  40. package/src/apis/OrganizationsApi.cjs +2 -0
  41. package/src/apis/OrganizationsApi.js +2 -0
  42. package/src/apis/OriginsApi.cjs +2 -0
  43. package/src/apis/OriginsApi.js +2 -0
  44. package/src/apis/ProjectsApi.cjs +2 -0
  45. package/src/apis/ProjectsApi.js +2 -0
  46. package/src/apis/SDKApi.cjs +2 -0
  47. package/src/apis/SDKApi.js +2 -0
  48. package/src/apis/SDKViewsApi.cjs +2 -0
  49. package/src/apis/SDKViewsApi.js +2 -0
  50. package/src/apis/SessionsApi.cjs +2 -0
  51. package/src/apis/SessionsApi.js +2 -0
  52. package/src/apis/SettingsApi.cjs +2 -0
  53. package/src/apis/SettingsApi.js +2 -0
  54. package/src/apis/TestAccountApi.cjs +2 -0
  55. package/src/apis/TestAccountApi.js +2 -0
  56. package/src/apis/TokensApi.cjs +2 -0
  57. package/src/apis/TokensApi.js +2 -0
  58. package/src/apis/UserApiTokensApi.cjs +2 -0
  59. package/src/apis/UserApiTokensApi.js +2 -0
  60. package/src/apis/UsersApi.cjs +2 -0
  61. package/src/apis/UsersApi.js +2 -0
  62. package/src/apis/VisitsApi.cjs +2 -0
  63. package/src/apis/VisitsApi.js +2 -0
  64. package/src/apis/WaasApi.cjs +37 -0
  65. package/src/apis/WaasApi.d.ts +13 -1
  66. package/src/apis/WaasApi.js +37 -0
  67. package/src/apis/WalletsApi.cjs +2 -0
  68. package/src/apis/WalletsApi.js +2 -0
  69. package/src/apis/WebhooksApi.cjs +2 -0
  70. package/src/apis/WebhooksApi.js +2 -0
  71. package/src/index.cjs +48 -0
  72. package/src/index.js +10 -0
  73. package/src/models/SignMessageWithWaasRequest.cjs +3 -0
  74. package/src/models/SignMessageWithWaasRequest.d.ts +7 -0
  75. package/src/models/SignMessageWithWaasRequest.js +3 -0
  76. package/src/models/SignMessageWithWaasRequestContext.cjs +37 -0
  77. package/src/models/SignMessageWithWaasRequestContext.d.ts +35 -0
  78. package/src/models/SignMessageWithWaasRequestContext.js +31 -0
  79. package/src/models/SignMessageWithWaasRequestContextTransaction.cjs +49 -0
  80. package/src/models/SignMessageWithWaasRequestContextTransaction.d.ts +75 -0
  81. package/src/models/SignMessageWithWaasRequestContextTransaction.js +43 -0
  82. package/src/models/SignMessageWithWaasRequestContextUserOperation.cjs +63 -0
  83. package/src/models/SignMessageWithWaasRequestContextUserOperation.d.ts +117 -0
  84. package/src/models/SignMessageWithWaasRequestContextUserOperation.js +57 -0
  85. package/src/models/WaasPolicyArgumentConstraint.cjs +37 -0
  86. package/src/models/WaasPolicyArgumentConstraint.d.ts +40 -0
  87. package/src/models/WaasPolicyArgumentConstraint.js +31 -0
  88. package/src/models/WaasPolicyConstraintCondition.cjs +44 -0
  89. package/src/models/WaasPolicyConstraintCondition.d.ts +27 -0
  90. package/src/models/WaasPolicyConstraintCondition.js +38 -0
  91. package/src/models/WaasPolicyCreateRequest.cjs +38 -0
  92. package/src/models/WaasPolicyCreateRequest.d.ts +41 -0
  93. package/src/models/WaasPolicyCreateRequest.js +32 -0
  94. package/src/models/WaasPolicyResponse.cjs +33 -0
  95. package/src/models/WaasPolicyResponse.d.ts +27 -0
  96. package/src/models/WaasPolicyResponse.js +27 -0
  97. package/src/models/WaasPolicyRule.cjs +46 -0
  98. package/src/models/WaasPolicyRule.d.ts +60 -0
  99. package/src/models/WaasPolicyRule.js +40 -0
  100. package/src/models/WaasPolicyRuleType.cjs +40 -0
  101. package/src/models/WaasPolicyRuleType.d.ts +23 -0
  102. package/src/models/WaasPolicyRuleType.js +34 -0
  103. package/src/models/WaasPolicyRuleValueLimit.cjs +37 -0
  104. package/src/models/WaasPolicyRuleValueLimit.d.ts +39 -0
  105. package/src/models/WaasPolicyRuleValueLimit.js +31 -0
  106. package/src/models/index.d.ts +10 -0
@@ -0,0 +1,63 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function SignMessageWithWaasRequestContextUserOperationFromJSON(json) {
9
+ return SignMessageWithWaasRequestContextUserOperationFromJSONTyped(json);
10
+ }
11
+ function SignMessageWithWaasRequestContextUserOperationFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'authorization': !runtime.exists(json, 'authorization') ? undefined : json['authorization'],
17
+ 'callData': !runtime.exists(json, 'callData') ? undefined : json['callData'],
18
+ 'callGasLimit': !runtime.exists(json, 'callGasLimit') ? undefined : json['callGasLimit'],
19
+ 'factory': !runtime.exists(json, 'factory') ? undefined : json['factory'],
20
+ 'factoryData': !runtime.exists(json, 'factoryData') ? undefined : json['factoryData'],
21
+ 'maxFeePerGas': !runtime.exists(json, 'maxFeePerGas') ? undefined : json['maxFeePerGas'],
22
+ 'maxPriorityFeePerGas': !runtime.exists(json, 'maxPriorityFeePerGas') ? undefined : json['maxPriorityFeePerGas'],
23
+ 'nonce': !runtime.exists(json, 'nonce') ? undefined : json['nonce'],
24
+ 'paymaster': !runtime.exists(json, 'paymaster') ? undefined : json['paymaster'],
25
+ 'paymasterData': !runtime.exists(json, 'paymasterData') ? undefined : json['paymasterData'],
26
+ 'paymasterPostOpGasLimit': !runtime.exists(json, 'paymasterPostOpGasLimit') ? undefined : json['paymasterPostOpGasLimit'],
27
+ 'paymasterVerificationGasLimit': !runtime.exists(json, 'paymasterVerificationGasLimit') ? undefined : json['paymasterVerificationGasLimit'],
28
+ 'preVerificationGas': !runtime.exists(json, 'preVerificationGas') ? undefined : json['preVerificationGas'],
29
+ 'sender': !runtime.exists(json, 'sender') ? undefined : json['sender'],
30
+ 'signature': !runtime.exists(json, 'signature') ? undefined : json['signature'],
31
+ 'verificationGasLimit': !runtime.exists(json, 'verificationGasLimit') ? undefined : json['verificationGasLimit'],
32
+ };
33
+ }
34
+ function SignMessageWithWaasRequestContextUserOperationToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'authorization': value.authorization,
43
+ 'callData': value.callData,
44
+ 'callGasLimit': value.callGasLimit,
45
+ 'factory': value.factory,
46
+ 'factoryData': value.factoryData,
47
+ 'maxFeePerGas': value.maxFeePerGas,
48
+ 'maxPriorityFeePerGas': value.maxPriorityFeePerGas,
49
+ 'nonce': value.nonce,
50
+ 'paymaster': value.paymaster,
51
+ 'paymasterData': value.paymasterData,
52
+ 'paymasterPostOpGasLimit': value.paymasterPostOpGasLimit,
53
+ 'paymasterVerificationGasLimit': value.paymasterVerificationGasLimit,
54
+ 'preVerificationGas': value.preVerificationGas,
55
+ 'sender': value.sender,
56
+ 'signature': value.signature,
57
+ 'verificationGasLimit': value.verificationGasLimit,
58
+ };
59
+ }
60
+
61
+ exports.SignMessageWithWaasRequestContextUserOperationFromJSON = SignMessageWithWaasRequestContextUserOperationFromJSON;
62
+ exports.SignMessageWithWaasRequestContextUserOperationFromJSONTyped = SignMessageWithWaasRequestContextUserOperationFromJSONTyped;
63
+ exports.SignMessageWithWaasRequestContextUserOperationToJSON = SignMessageWithWaasRequestContextUserOperationToJSON;
@@ -0,0 +1,117 @@
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 SignMessageWithWaasRequestContextUserOperation
16
+ */
17
+ export interface SignMessageWithWaasRequestContextUserOperation {
18
+ /**
19
+ * Authorization data (optional)
20
+ * @type {string}
21
+ * @memberof SignMessageWithWaasRequestContextUserOperation
22
+ */
23
+ authorization?: string;
24
+ /**
25
+ * The data to pass to the sender during the main execution call
26
+ * @type {string}
27
+ * @memberof SignMessageWithWaasRequestContextUserOperation
28
+ */
29
+ callData?: string;
30
+ /**
31
+ * The amount of gas to allocate the main execution call
32
+ * @type {string}
33
+ * @memberof SignMessageWithWaasRequestContextUserOperation
34
+ */
35
+ callGasLimit?: string;
36
+ /**
37
+ * Account factory address (optional, only for new accounts)
38
+ * @type {string}
39
+ * @memberof SignMessageWithWaasRequestContextUserOperation
40
+ */
41
+ factory?: string;
42
+ /**
43
+ * Data for account factory (optional)
44
+ * @type {string}
45
+ * @memberof SignMessageWithWaasRequestContextUserOperation
46
+ */
47
+ factoryData?: string;
48
+ /**
49
+ * Maximum fee per gas
50
+ * @type {string}
51
+ * @memberof SignMessageWithWaasRequestContextUserOperation
52
+ */
53
+ maxFeePerGas?: string;
54
+ /**
55
+ * Maximum priority fee per gas
56
+ * @type {string}
57
+ * @memberof SignMessageWithWaasRequestContextUserOperation
58
+ */
59
+ maxPriorityFeePerGas?: string;
60
+ /**
61
+ * Anti-replay parameter
62
+ * @type {string}
63
+ * @memberof SignMessageWithWaasRequestContextUserOperation
64
+ */
65
+ nonce?: string;
66
+ /**
67
+ * Address of paymaster contract (optional)
68
+ * @type {string}
69
+ * @memberof SignMessageWithWaasRequestContextUserOperation
70
+ */
71
+ paymaster?: string;
72
+ /**
73
+ * Data for paymaster (optional)
74
+ * @type {string}
75
+ * @memberof SignMessageWithWaasRequestContextUserOperation
76
+ */
77
+ paymasterData?: string;
78
+ /**
79
+ * The amount of gas to allocate for the paymaster post-operation code (optional)
80
+ * @type {string}
81
+ * @memberof SignMessageWithWaasRequestContextUserOperation
82
+ */
83
+ paymasterPostOpGasLimit?: string;
84
+ /**
85
+ * The amount of gas to allocate for the paymaster validation code (optional)
86
+ * @type {string}
87
+ * @memberof SignMessageWithWaasRequestContextUserOperation
88
+ */
89
+ paymasterVerificationGasLimit?: string;
90
+ /**
91
+ * Extra gas to pay the Bundler
92
+ * @type {string}
93
+ * @memberof SignMessageWithWaasRequestContextUserOperation
94
+ */
95
+ preVerificationGas?: string;
96
+ /**
97
+ * The account making the operation
98
+ * @type {string}
99
+ * @memberof SignMessageWithWaasRequestContextUserOperation
100
+ */
101
+ sender?: string;
102
+ /**
103
+ * Data passed into the account to verify authorization
104
+ * @type {string}
105
+ * @memberof SignMessageWithWaasRequestContextUserOperation
106
+ */
107
+ signature?: string;
108
+ /**
109
+ * The amount of gas to allocate for the verification step
110
+ * @type {string}
111
+ * @memberof SignMessageWithWaasRequestContextUserOperation
112
+ */
113
+ verificationGasLimit?: string;
114
+ }
115
+ export declare function SignMessageWithWaasRequestContextUserOperationFromJSON(json: any): SignMessageWithWaasRequestContextUserOperation;
116
+ export declare function SignMessageWithWaasRequestContextUserOperationFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignMessageWithWaasRequestContextUserOperation;
117
+ export declare function SignMessageWithWaasRequestContextUserOperationToJSON(value?: SignMessageWithWaasRequestContextUserOperation | null): any;
@@ -0,0 +1,57 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function SignMessageWithWaasRequestContextUserOperationFromJSON(json) {
5
+ return SignMessageWithWaasRequestContextUserOperationFromJSONTyped(json);
6
+ }
7
+ function SignMessageWithWaasRequestContextUserOperationFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'authorization': !exists(json, 'authorization') ? undefined : json['authorization'],
13
+ 'callData': !exists(json, 'callData') ? undefined : json['callData'],
14
+ 'callGasLimit': !exists(json, 'callGasLimit') ? undefined : json['callGasLimit'],
15
+ 'factory': !exists(json, 'factory') ? undefined : json['factory'],
16
+ 'factoryData': !exists(json, 'factoryData') ? undefined : json['factoryData'],
17
+ 'maxFeePerGas': !exists(json, 'maxFeePerGas') ? undefined : json['maxFeePerGas'],
18
+ 'maxPriorityFeePerGas': !exists(json, 'maxPriorityFeePerGas') ? undefined : json['maxPriorityFeePerGas'],
19
+ 'nonce': !exists(json, 'nonce') ? undefined : json['nonce'],
20
+ 'paymaster': !exists(json, 'paymaster') ? undefined : json['paymaster'],
21
+ 'paymasterData': !exists(json, 'paymasterData') ? undefined : json['paymasterData'],
22
+ 'paymasterPostOpGasLimit': !exists(json, 'paymasterPostOpGasLimit') ? undefined : json['paymasterPostOpGasLimit'],
23
+ 'paymasterVerificationGasLimit': !exists(json, 'paymasterVerificationGasLimit') ? undefined : json['paymasterVerificationGasLimit'],
24
+ 'preVerificationGas': !exists(json, 'preVerificationGas') ? undefined : json['preVerificationGas'],
25
+ 'sender': !exists(json, 'sender') ? undefined : json['sender'],
26
+ 'signature': !exists(json, 'signature') ? undefined : json['signature'],
27
+ 'verificationGasLimit': !exists(json, 'verificationGasLimit') ? undefined : json['verificationGasLimit'],
28
+ };
29
+ }
30
+ function SignMessageWithWaasRequestContextUserOperationToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'authorization': value.authorization,
39
+ 'callData': value.callData,
40
+ 'callGasLimit': value.callGasLimit,
41
+ 'factory': value.factory,
42
+ 'factoryData': value.factoryData,
43
+ 'maxFeePerGas': value.maxFeePerGas,
44
+ 'maxPriorityFeePerGas': value.maxPriorityFeePerGas,
45
+ 'nonce': value.nonce,
46
+ 'paymaster': value.paymaster,
47
+ 'paymasterData': value.paymasterData,
48
+ 'paymasterPostOpGasLimit': value.paymasterPostOpGasLimit,
49
+ 'paymasterVerificationGasLimit': value.paymasterVerificationGasLimit,
50
+ 'preVerificationGas': value.preVerificationGas,
51
+ 'sender': value.sender,
52
+ 'signature': value.signature,
53
+ 'verificationGasLimit': value.verificationGasLimit,
54
+ };
55
+ }
56
+
57
+ export { SignMessageWithWaasRequestContextUserOperationFromJSON, SignMessageWithWaasRequestContextUserOperationFromJSONTyped, SignMessageWithWaasRequestContextUserOperationToJSON };
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var WaasPolicyConstraintCondition = require('./WaasPolicyConstraintCondition.cjs');
6
+
7
+ /* tslint:disable */
8
+ function WaasPolicyArgumentConstraintFromJSON(json) {
9
+ return WaasPolicyArgumentConstraintFromJSONTyped(json);
10
+ }
11
+ function WaasPolicyArgumentConstraintFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'operator': WaasPolicyConstraintCondition.WaasPolicyConstraintConditionFromJSON(json['operator']),
17
+ 'value': json['value'],
18
+ 'index': json['index'],
19
+ };
20
+ }
21
+ function WaasPolicyArgumentConstraintToJSON(value) {
22
+ if (value === undefined) {
23
+ return undefined;
24
+ }
25
+ if (value === null) {
26
+ return null;
27
+ }
28
+ return {
29
+ 'operator': WaasPolicyConstraintCondition.WaasPolicyConstraintConditionToJSON(value.operator),
30
+ 'value': value.value,
31
+ 'index': value.index,
32
+ };
33
+ }
34
+
35
+ exports.WaasPolicyArgumentConstraintFromJSON = WaasPolicyArgumentConstraintFromJSON;
36
+ exports.WaasPolicyArgumentConstraintFromJSONTyped = WaasPolicyArgumentConstraintFromJSONTyped;
37
+ exports.WaasPolicyArgumentConstraintToJSON = WaasPolicyArgumentConstraintToJSON;
@@ -0,0 +1,40 @@
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 { WaasPolicyConstraintCondition } from './WaasPolicyConstraintCondition';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WaasPolicyArgumentConstraint
17
+ */
18
+ export interface WaasPolicyArgumentConstraint {
19
+ /**
20
+ *
21
+ * @type {WaasPolicyConstraintCondition}
22
+ * @memberof WaasPolicyArgumentConstraint
23
+ */
24
+ operator: WaasPolicyConstraintCondition;
25
+ /**
26
+ * Reference value for comparison
27
+ * @type {any}
28
+ * @memberof WaasPolicyArgumentConstraint
29
+ */
30
+ value: any | null;
31
+ /**
32
+ * Index of the function argument to validate
33
+ * @type {number}
34
+ * @memberof WaasPolicyArgumentConstraint
35
+ */
36
+ index: number;
37
+ }
38
+ export declare function WaasPolicyArgumentConstraintFromJSON(json: any): WaasPolicyArgumentConstraint;
39
+ export declare function WaasPolicyArgumentConstraintFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyArgumentConstraint;
40
+ export declare function WaasPolicyArgumentConstraintToJSON(value?: WaasPolicyArgumentConstraint | null): any;
@@ -0,0 +1,31 @@
1
+ import { WaasPolicyConstraintConditionFromJSON, WaasPolicyConstraintConditionToJSON } from './WaasPolicyConstraintCondition.js';
2
+
3
+ /* tslint:disable */
4
+ function WaasPolicyArgumentConstraintFromJSON(json) {
5
+ return WaasPolicyArgumentConstraintFromJSONTyped(json);
6
+ }
7
+ function WaasPolicyArgumentConstraintFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'operator': WaasPolicyConstraintConditionFromJSON(json['operator']),
13
+ 'value': json['value'],
14
+ 'index': json['index'],
15
+ };
16
+ }
17
+ function WaasPolicyArgumentConstraintToJSON(value) {
18
+ if (value === undefined) {
19
+ return undefined;
20
+ }
21
+ if (value === null) {
22
+ return null;
23
+ }
24
+ return {
25
+ 'operator': WaasPolicyConstraintConditionToJSON(value.operator),
26
+ 'value': value.value,
27
+ 'index': value.index,
28
+ };
29
+ }
30
+
31
+ export { WaasPolicyArgumentConstraintFromJSON, WaasPolicyArgumentConstraintFromJSONTyped, WaasPolicyArgumentConstraintToJSON };
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ /**
8
+ * Dashboard API
9
+ * Dashboard API documentation
10
+ *
11
+ * The version of the OpenAPI document: 1.0.0
12
+ *
13
+ *
14
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15
+ * https://openapi-generator.tech
16
+ * Do not edit the class manually.
17
+ */
18
+ /**
19
+ * Comparison operator for argument validation
20
+ * @export
21
+ * @enum {string}
22
+ */
23
+ exports.WaasPolicyConstraintCondition = void 0;
24
+ (function (WaasPolicyConstraintCondition) {
25
+ WaasPolicyConstraintCondition["Equal"] = "equal";
26
+ WaasPolicyConstraintCondition["Greater"] = "greater";
27
+ WaasPolicyConstraintCondition["Less"] = "less";
28
+ WaasPolicyConstraintCondition["GreaterEqual"] = "greaterEqual";
29
+ WaasPolicyConstraintCondition["LessEqual"] = "lessEqual";
30
+ WaasPolicyConstraintCondition["NotEqual"] = "notEqual";
31
+ })(exports.WaasPolicyConstraintCondition || (exports.WaasPolicyConstraintCondition = {}));
32
+ function WaasPolicyConstraintConditionFromJSON(json) {
33
+ return WaasPolicyConstraintConditionFromJSONTyped(json);
34
+ }
35
+ function WaasPolicyConstraintConditionFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ function WaasPolicyConstraintConditionToJSON(value) {
39
+ return value;
40
+ }
41
+
42
+ exports.WaasPolicyConstraintConditionFromJSON = WaasPolicyConstraintConditionFromJSON;
43
+ exports.WaasPolicyConstraintConditionFromJSONTyped = WaasPolicyConstraintConditionFromJSONTyped;
44
+ exports.WaasPolicyConstraintConditionToJSON = WaasPolicyConstraintConditionToJSON;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Comparison operator for argument validation
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum WaasPolicyConstraintCondition {
18
+ Equal = "equal",
19
+ Greater = "greater",
20
+ Less = "less",
21
+ GreaterEqual = "greaterEqual",
22
+ LessEqual = "lessEqual",
23
+ NotEqual = "notEqual"
24
+ }
25
+ export declare function WaasPolicyConstraintConditionFromJSON(json: any): WaasPolicyConstraintCondition;
26
+ export declare function WaasPolicyConstraintConditionFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyConstraintCondition;
27
+ export declare function WaasPolicyConstraintConditionToJSON(value?: WaasPolicyConstraintCondition | null): any;
@@ -0,0 +1,38 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Dashboard API
5
+ * Dashboard API documentation
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ * Comparison operator for argument validation
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ var WaasPolicyConstraintCondition;
20
+ (function (WaasPolicyConstraintCondition) {
21
+ WaasPolicyConstraintCondition["Equal"] = "equal";
22
+ WaasPolicyConstraintCondition["Greater"] = "greater";
23
+ WaasPolicyConstraintCondition["Less"] = "less";
24
+ WaasPolicyConstraintCondition["GreaterEqual"] = "greaterEqual";
25
+ WaasPolicyConstraintCondition["LessEqual"] = "lessEqual";
26
+ WaasPolicyConstraintCondition["NotEqual"] = "notEqual";
27
+ })(WaasPolicyConstraintCondition || (WaasPolicyConstraintCondition = {}));
28
+ function WaasPolicyConstraintConditionFromJSON(json) {
29
+ return WaasPolicyConstraintConditionFromJSONTyped(json);
30
+ }
31
+ function WaasPolicyConstraintConditionFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ function WaasPolicyConstraintConditionToJSON(value) {
35
+ return value;
36
+ }
37
+
38
+ export { WaasPolicyConstraintCondition, WaasPolicyConstraintConditionFromJSON, WaasPolicyConstraintConditionFromJSONTyped, WaasPolicyConstraintConditionToJSON };
@@ -0,0 +1,38 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var ChainEnum = require('./ChainEnum.cjs');
6
+ var WaasPolicyRule = require('./WaasPolicyRule.cjs');
7
+
8
+ /* tslint:disable */
9
+ function WaasPolicyCreateRequestFromJSON(json) {
10
+ return WaasPolicyCreateRequestFromJSONTyped(json);
11
+ }
12
+ function WaasPolicyCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
13
+ if ((json === undefined) || (json === null)) {
14
+ return json;
15
+ }
16
+ return {
17
+ 'policyName': json['policyName'],
18
+ 'chain': ChainEnum.ChainEnumFromJSON(json['chain']),
19
+ 'policyContent': (json['policyContent'].map(WaasPolicyRule.WaasPolicyRuleFromJSON)),
20
+ };
21
+ }
22
+ function WaasPolicyCreateRequestToJSON(value) {
23
+ if (value === undefined) {
24
+ return undefined;
25
+ }
26
+ if (value === null) {
27
+ return null;
28
+ }
29
+ return {
30
+ 'policyName': value.policyName,
31
+ 'chain': ChainEnum.ChainEnumToJSON(value.chain),
32
+ 'policyContent': (value.policyContent.map(WaasPolicyRule.WaasPolicyRuleToJSON)),
33
+ };
34
+ }
35
+
36
+ exports.WaasPolicyCreateRequestFromJSON = WaasPolicyCreateRequestFromJSON;
37
+ exports.WaasPolicyCreateRequestFromJSONTyped = WaasPolicyCreateRequestFromJSONTyped;
38
+ exports.WaasPolicyCreateRequestToJSON = WaasPolicyCreateRequestToJSON;
@@ -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 { ChainEnum } from './ChainEnum';
13
+ import { WaasPolicyRule } from './WaasPolicyRule';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface WaasPolicyCreateRequest
18
+ */
19
+ export interface WaasPolicyCreateRequest {
20
+ /**
21
+ * Human-readable name for the policy
22
+ * @type {string}
23
+ * @memberof WaasPolicyCreateRequest
24
+ */
25
+ policyName: string;
26
+ /**
27
+ *
28
+ * @type {ChainEnum}
29
+ * @memberof WaasPolicyCreateRequest
30
+ */
31
+ chain: ChainEnum;
32
+ /**
33
+ * Array of rules defining the policy permissions
34
+ * @type {Array<WaasPolicyRule>}
35
+ * @memberof WaasPolicyCreateRequest
36
+ */
37
+ policyContent: Array<WaasPolicyRule>;
38
+ }
39
+ export declare function WaasPolicyCreateRequestFromJSON(json: any): WaasPolicyCreateRequest;
40
+ export declare function WaasPolicyCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyCreateRequest;
41
+ export declare function WaasPolicyCreateRequestToJSON(value?: WaasPolicyCreateRequest | null): any;
@@ -0,0 +1,32 @@
1
+ import { ChainEnumFromJSON, ChainEnumToJSON } from './ChainEnum.js';
2
+ import { WaasPolicyRuleFromJSON, WaasPolicyRuleToJSON } from './WaasPolicyRule.js';
3
+
4
+ /* tslint:disable */
5
+ function WaasPolicyCreateRequestFromJSON(json) {
6
+ return WaasPolicyCreateRequestFromJSONTyped(json);
7
+ }
8
+ function WaasPolicyCreateRequestFromJSONTyped(json, ignoreDiscriminator) {
9
+ if ((json === undefined) || (json === null)) {
10
+ return json;
11
+ }
12
+ return {
13
+ 'policyName': json['policyName'],
14
+ 'chain': ChainEnumFromJSON(json['chain']),
15
+ 'policyContent': (json['policyContent'].map(WaasPolicyRuleFromJSON)),
16
+ };
17
+ }
18
+ function WaasPolicyCreateRequestToJSON(value) {
19
+ if (value === undefined) {
20
+ return undefined;
21
+ }
22
+ if (value === null) {
23
+ return null;
24
+ }
25
+ return {
26
+ 'policyName': value.policyName,
27
+ 'chain': ChainEnumToJSON(value.chain),
28
+ 'policyContent': (value.policyContent.map(WaasPolicyRuleToJSON)),
29
+ };
30
+ }
31
+
32
+ export { WaasPolicyCreateRequestFromJSON, WaasPolicyCreateRequestFromJSONTyped, WaasPolicyCreateRequestToJSON };
@@ -0,0 +1,33 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var runtime = require('../runtime.cjs');
6
+
7
+ /* tslint:disable */
8
+ function WaasPolicyResponseFromJSON(json) {
9
+ return WaasPolicyResponseFromJSONTyped(json);
10
+ }
11
+ function WaasPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
12
+ if ((json === undefined) || (json === null)) {
13
+ return json;
14
+ }
15
+ return {
16
+ 'policyId': !runtime.exists(json, 'policyId') ? undefined : json['policyId'],
17
+ };
18
+ }
19
+ function WaasPolicyResponseToJSON(value) {
20
+ if (value === undefined) {
21
+ return undefined;
22
+ }
23
+ if (value === null) {
24
+ return null;
25
+ }
26
+ return {
27
+ 'policyId': value.policyId,
28
+ };
29
+ }
30
+
31
+ exports.WaasPolicyResponseFromJSON = WaasPolicyResponseFromJSON;
32
+ exports.WaasPolicyResponseFromJSONTyped = WaasPolicyResponseFromJSONTyped;
33
+ exports.WaasPolicyResponseToJSON = WaasPolicyResponseToJSON;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Dashboard API
3
+ * Dashboard API documentation
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface WaasPolicyResponse
16
+ */
17
+ export interface WaasPolicyResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WaasPolicyResponse
22
+ */
23
+ policyId?: string;
24
+ }
25
+ export declare function WaasPolicyResponseFromJSON(json: any): WaasPolicyResponse;
26
+ export declare function WaasPolicyResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WaasPolicyResponse;
27
+ export declare function WaasPolicyResponseToJSON(value?: WaasPolicyResponse | null): any;
@@ -0,0 +1,27 @@
1
+ import { exists } from '../runtime.js';
2
+
3
+ /* tslint:disable */
4
+ function WaasPolicyResponseFromJSON(json) {
5
+ return WaasPolicyResponseFromJSONTyped(json);
6
+ }
7
+ function WaasPolicyResponseFromJSONTyped(json, ignoreDiscriminator) {
8
+ if ((json === undefined) || (json === null)) {
9
+ return json;
10
+ }
11
+ return {
12
+ 'policyId': !exists(json, 'policyId') ? undefined : json['policyId'],
13
+ };
14
+ }
15
+ function WaasPolicyResponseToJSON(value) {
16
+ if (value === undefined) {
17
+ return undefined;
18
+ }
19
+ if (value === null) {
20
+ return null;
21
+ }
22
+ return {
23
+ 'policyId': value.policyId,
24
+ };
25
+ }
26
+
27
+ export { WaasPolicyResponseFromJSON, WaasPolicyResponseFromJSONTyped, WaasPolicyResponseToJSON };