@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16
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/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
package/src/services/alb_waf.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
2
|
import * as C from "@distilled.cloud/core/category";
|
|
3
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
5
|
+
import * as __L from "@distilled.cloud/core/schema-lite";
|
|
5
6
|
import { UnknownStackitError } from "../errors.ts";
|
|
6
7
|
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
7
8
|
import * as Retry from "../retry.ts";
|
|
8
9
|
import * as T from "../traits.ts";
|
|
10
|
+
// Schema table, filled on first reach (see __S at the end).
|
|
11
|
+
const __s: any[] = [];
|
|
9
12
|
|
|
10
13
|
export type { StackitOpError, StackitOpContext };
|
|
11
14
|
|
|
@@ -47,8 +50,6 @@ export class NotFound
|
|
|
47
50
|
|
|
48
51
|
/** The protective stance action. ACTION_DENY forces a 403 status response code. */
|
|
49
52
|
export type Action = "ACTION_DENY" | "ACTION_PASS" | "ACTION_ALLOW";
|
|
50
|
-
export const Action = S.String;
|
|
51
|
-
|
|
52
53
|
export interface Behavior {
|
|
53
54
|
action: Action | (string & {});
|
|
54
55
|
/** Determines whether an entry should be generated in the security ledger upon a rule hit. */
|
|
@@ -56,14 +57,6 @@ export interface Behavior {
|
|
|
56
57
|
/** Custom notification message string mapped to underlying logdata contexts. */
|
|
57
58
|
logMsg?: string;
|
|
58
59
|
}
|
|
59
|
-
export const Behavior = /*@__PURE__*/ S.suspend(() =>
|
|
60
|
-
S.Struct({
|
|
61
|
-
action: Action,
|
|
62
|
-
log: S.optional(S.Boolean),
|
|
63
|
-
logMsg: S.optional(S.String),
|
|
64
|
-
}),
|
|
65
|
-
).annotate({ identifier: "Behavior" }) as any as S.Schema<Behavior>;
|
|
66
|
-
|
|
67
60
|
/** The operational evaluation type definition macro. */
|
|
68
61
|
export type Operator =
|
|
69
62
|
| "OPERATOR_BEGINS_WITH"
|
|
@@ -82,20 +75,11 @@ export type Operator =
|
|
|
82
75
|
| "OPERATOR_VALIDATE_URL_ENCODING"
|
|
83
76
|
| "OPERATOR_VALIDATE_UTF8_ENCODING"
|
|
84
77
|
| "OPERATOR_WITHIN";
|
|
85
|
-
export const Operator = S.String;
|
|
86
|
-
|
|
87
78
|
export interface ConditionOperator {
|
|
88
79
|
type: Operator | (string & {});
|
|
89
80
|
/** The text or rule regex pattern arguments applied inside the operator execution loop. */
|
|
90
81
|
value?: string;
|
|
91
82
|
}
|
|
92
|
-
export const ConditionOperator = /*@__PURE__*/ S.suspend(() =>
|
|
93
|
-
S.Struct({
|
|
94
|
-
type: Operator,
|
|
95
|
-
value: S.optional(S.String),
|
|
96
|
-
}),
|
|
97
|
-
).annotate({ identifier: "ConditionOperator" }) as any as S.Schema<ConditionOperator>;
|
|
98
|
-
|
|
99
83
|
export type Transformation =
|
|
100
84
|
| "TRANSFORMATION_LENGTH"
|
|
101
85
|
| "TRANSFORMATION_LOWERCASE"
|
|
@@ -103,14 +87,8 @@ export type Transformation =
|
|
|
103
87
|
| "TRANSFORMATION_TRIM"
|
|
104
88
|
| "TRANSFORMATION_UPPERCASE"
|
|
105
89
|
| "TRANSFORMATION_UTF8_TO_UNICODE";
|
|
106
|
-
export const Transformation = S.String;
|
|
107
|
-
|
|
108
90
|
/** [HINT] Ordered processing adjustments applied to clean inputs before match checking. */
|
|
109
91
|
export type ConditionTransformationsList = Array<Transformation | (string & {})>;
|
|
110
|
-
export const ConditionTransformationsList = /*@__PURE__*/ S.Array(
|
|
111
|
-
Transformation,
|
|
112
|
-
) as any as S.Schema<ConditionTransformationsList>;
|
|
113
|
-
|
|
114
92
|
/** The targeted validation engine variable macro. */
|
|
115
93
|
export type Variable =
|
|
116
94
|
| "VARIABLE_ARGS_GET"
|
|
@@ -135,40 +113,19 @@ export type Variable =
|
|
|
135
113
|
| "VARIABLE_RESPONSE_HEADERS_NAMES"
|
|
136
114
|
| "VARIABLE_RESPONSE_PROTOCOL"
|
|
137
115
|
| "VARIABLE_RESPONSE_STATUS";
|
|
138
|
-
export const Variable = S.String;
|
|
139
|
-
|
|
140
116
|
export interface ConditionVariable {
|
|
141
117
|
type: Variable | (string & {});
|
|
142
118
|
/** Optional key element context for map variables (e.g., matching a 'Host' header key). */
|
|
143
119
|
value?: string;
|
|
144
120
|
}
|
|
145
|
-
export const ConditionVariable = /*@__PURE__*/ S.suspend(() =>
|
|
146
|
-
S.Struct({
|
|
147
|
-
type: Variable,
|
|
148
|
-
value: S.optional(S.String),
|
|
149
|
-
}),
|
|
150
|
-
).annotate({ identifier: "ConditionVariable" }) as any as S.Schema<ConditionVariable>;
|
|
151
|
-
|
|
152
121
|
export interface Condition {
|
|
153
122
|
operator: ConditionOperator;
|
|
154
123
|
/** [HINT] Ordered processing adjustments applied to clean inputs before match checking. */
|
|
155
124
|
transformations?: ConditionTransformationsList;
|
|
156
125
|
variable: ConditionVariable;
|
|
157
126
|
}
|
|
158
|
-
export const Condition = /*@__PURE__*/ S.suspend(() =>
|
|
159
|
-
S.Struct({
|
|
160
|
-
operator: ConditionOperator,
|
|
161
|
-
transformations: S.optional(ConditionTransformationsList),
|
|
162
|
-
variable: ConditionVariable,
|
|
163
|
-
}),
|
|
164
|
-
).annotate({ identifier: "Condition" }) as any as S.Schema<Condition>;
|
|
165
|
-
|
|
166
127
|
/** [HINT] Order matters! First condition match triggers execution. */
|
|
167
128
|
export type CreateCustomRuleConditionsList = Array<Condition>;
|
|
168
|
-
export const CreateCustomRuleConditionsList = /*@__PURE__*/ S.Array(
|
|
169
|
-
Condition,
|
|
170
|
-
) as any as S.Schema<CreateCustomRuleConditionsList>;
|
|
171
|
-
|
|
172
129
|
export interface CreateCustomRule {
|
|
173
130
|
behavior: Behavior;
|
|
174
131
|
/** [HINT] Order matters! First condition match triggers execution. */
|
|
@@ -176,20 +133,8 @@ export interface CreateCustomRule {
|
|
|
176
133
|
/** A clear description explaining the threat vector or criteria addressed by this rule. */
|
|
177
134
|
description?: string;
|
|
178
135
|
}
|
|
179
|
-
export const CreateCustomRule = /*@__PURE__*/ S.suspend(() =>
|
|
180
|
-
S.Struct({
|
|
181
|
-
behavior: Behavior,
|
|
182
|
-
conditions: CreateCustomRuleConditionsList,
|
|
183
|
-
description: S.optional(S.String),
|
|
184
|
-
}),
|
|
185
|
-
).annotate({ identifier: "CreateCustomRule" }) as any as S.Schema<CreateCustomRule>;
|
|
186
|
-
|
|
187
136
|
/** The collection of custom rule group SecLang parameters forming this execution group. */
|
|
188
137
|
export type CreateCustomRuleGroupRequestRulesList = Array<CreateCustomRule>;
|
|
189
|
-
export const CreateCustomRuleGroupRequestRulesList = /*@__PURE__*/ S.Array(
|
|
190
|
-
CreateCustomRule,
|
|
191
|
-
) as any as S.Schema<CreateCustomRuleGroupRequestRulesList>;
|
|
192
|
-
|
|
193
138
|
export interface CreateCustomRuleGroupRequest {
|
|
194
139
|
projectId: string;
|
|
195
140
|
region: string;
|
|
@@ -198,24 +143,6 @@ export interface CreateCustomRuleGroupRequest {
|
|
|
198
143
|
/** The collection of custom rule group SecLang parameters forming this execution group. */
|
|
199
144
|
rules: CreateCustomRuleGroupRequestRulesList;
|
|
200
145
|
}
|
|
201
|
-
export const CreateCustomRuleGroupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
202
|
-
S.Struct({
|
|
203
|
-
projectId: S.String.pipe(T.Label()),
|
|
204
|
-
region: S.String.pipe(T.Label()),
|
|
205
|
-
name: S.String,
|
|
206
|
-
rules: CreateCustomRuleGroupRequestRulesList,
|
|
207
|
-
}).pipe(
|
|
208
|
-
T.Http({
|
|
209
|
-
method: "POST",
|
|
210
|
-
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups",
|
|
211
|
-
code: 200,
|
|
212
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
213
|
-
}),
|
|
214
|
-
),
|
|
215
|
-
).annotate({
|
|
216
|
-
identifier: "CreateCustomRuleGroupRequest",
|
|
217
|
-
}) as any as S.Schema<CreateCustomRuleGroupRequest>;
|
|
218
|
-
|
|
219
146
|
/** Severity classification metric used by internal analytics graphs. */
|
|
220
147
|
export type Severity =
|
|
221
148
|
| "SEVERITY_EMERGENCY"
|
|
@@ -226,8 +153,6 @@ export type Severity =
|
|
|
226
153
|
| "SEVERITY_NOTICE"
|
|
227
154
|
| "SEVERITY_INFO"
|
|
228
155
|
| "SEVERITY_DEBUG";
|
|
229
|
-
export const Severity = S.String;
|
|
230
|
-
|
|
231
156
|
export interface GetBehavior {
|
|
232
157
|
action: Action;
|
|
233
158
|
/** Determines whether an entry should be generated in the security ledger upon a rule hit. */
|
|
@@ -236,21 +161,8 @@ export interface GetBehavior {
|
|
|
236
161
|
logMsg?: string;
|
|
237
162
|
severity: Severity;
|
|
238
163
|
}
|
|
239
|
-
export const GetBehavior = /*@__PURE__*/ S.suspend(() =>
|
|
240
|
-
S.Struct({
|
|
241
|
-
action: Action,
|
|
242
|
-
log: S.Boolean,
|
|
243
|
-
logMsg: S.optional(S.String),
|
|
244
|
-
severity: Severity,
|
|
245
|
-
}),
|
|
246
|
-
).annotate({ identifier: "GetBehavior" }) as any as S.Schema<GetBehavior>;
|
|
247
|
-
|
|
248
164
|
/** [HINT] Order matters! First condition match triggers execution. */
|
|
249
165
|
export type GetCustomRuleConditionsList = Array<Condition>;
|
|
250
|
-
export const GetCustomRuleConditionsList = /*@__PURE__*/ S.Array(
|
|
251
|
-
Condition,
|
|
252
|
-
) as any as S.Schema<GetCustomRuleConditionsList>;
|
|
253
|
-
|
|
254
166
|
export interface GetCustomRule {
|
|
255
167
|
behavior: GetBehavior;
|
|
256
168
|
/** [HINT] Order matters! First condition match triggers execution. */
|
|
@@ -260,27 +172,10 @@ export interface GetCustomRule {
|
|
|
260
172
|
/** Backend auto-allocated unique rule ID within the valid 1-99999 threshold. */
|
|
261
173
|
id: number;
|
|
262
174
|
}
|
|
263
|
-
export const GetCustomRule = /*@__PURE__*/ S.suspend(() =>
|
|
264
|
-
S.Struct({
|
|
265
|
-
behavior: GetBehavior,
|
|
266
|
-
conditions: GetCustomRuleConditionsList,
|
|
267
|
-
description: S.optional(S.String),
|
|
268
|
-
id: S.Number,
|
|
269
|
-
}),
|
|
270
|
-
).annotate({ identifier: "GetCustomRule" }) as any as S.Schema<GetCustomRule>;
|
|
271
|
-
|
|
272
175
|
/** Enriched rules containing auto-generated IDs and computed severity values. */
|
|
273
176
|
export type GetCustomRuleGroupResponseRulesList = Array<GetCustomRule>;
|
|
274
|
-
export const GetCustomRuleGroupResponseRulesList = /*@__PURE__*/ S.Array(
|
|
275
|
-
GetCustomRule,
|
|
276
|
-
) as any as S.Schema<GetCustomRuleGroupResponseRulesList>;
|
|
277
|
-
|
|
278
177
|
/** List of individual WAF configuration names that bind this rule group. */
|
|
279
178
|
export type CRGUsageItemsList = Array<string>;
|
|
280
|
-
export const CRGUsageItemsList = /*@__PURE__*/ S.Array(
|
|
281
|
-
S.String,
|
|
282
|
-
) as any as S.Schema<CRGUsageItemsList>;
|
|
283
|
-
|
|
284
179
|
/** Tracking metrics for CRG resource utilization */
|
|
285
180
|
export interface CRGUsage {
|
|
286
181
|
/** Number of WAF configurations actively using this rule group. */
|
|
@@ -288,13 +183,6 @@ export interface CRGUsage {
|
|
|
288
183
|
/** List of individual WAF configuration names that bind this rule group. */
|
|
289
184
|
items?: CRGUsageItemsList;
|
|
290
185
|
}
|
|
291
|
-
export const CRGUsage = /*@__PURE__*/ S.suspend(() =>
|
|
292
|
-
S.Struct({
|
|
293
|
-
count: S.optional(S.Number),
|
|
294
|
-
items: S.optional(CRGUsageItemsList),
|
|
295
|
-
}),
|
|
296
|
-
).annotate({ identifier: "CRGUsage" }) as any as S.Schema<CRGUsage>;
|
|
297
|
-
|
|
298
186
|
/** Response payload delivering the detailed CRG configuration name and it's rule content. */
|
|
299
187
|
export interface GetCustomRuleGroupResponse {
|
|
300
188
|
/** Custom rule group configuration name. */
|
|
@@ -303,20 +191,8 @@ export interface GetCustomRuleGroupResponse {
|
|
|
303
191
|
rules: GetCustomRuleGroupResponseRulesList;
|
|
304
192
|
usage?: CRGUsage;
|
|
305
193
|
}
|
|
306
|
-
export const GetCustomRuleGroupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
307
|
-
S.Struct({
|
|
308
|
-
name: S.String,
|
|
309
|
-
rules: GetCustomRuleGroupResponseRulesList,
|
|
310
|
-
usage: S.optional(CRGUsage),
|
|
311
|
-
}),
|
|
312
|
-
).annotate({
|
|
313
|
-
identifier: "GetCustomRuleGroupResponse",
|
|
314
|
-
}) as any as S.Schema<GetCustomRuleGroupResponse>;
|
|
315
|
-
|
|
316
194
|
/** Set the managed rule set type. */
|
|
317
195
|
export type Type = "TYPE_OWASP_CRS";
|
|
318
|
-
export const Type = S.String;
|
|
319
|
-
|
|
320
196
|
export interface CreateManagedRuleSetRequest {
|
|
321
197
|
projectId: string;
|
|
322
198
|
region: string;
|
|
@@ -324,28 +200,8 @@ export interface CreateManagedRuleSetRequest {
|
|
|
324
200
|
name: string;
|
|
325
201
|
type: Type | (string & {});
|
|
326
202
|
}
|
|
327
|
-
export const CreateManagedRuleSetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
328
|
-
S.Struct({
|
|
329
|
-
projectId: S.String.pipe(T.Label()),
|
|
330
|
-
region: S.String.pipe(T.Label()),
|
|
331
|
-
name: S.String,
|
|
332
|
-
type: Type,
|
|
333
|
-
}).pipe(
|
|
334
|
-
T.Http({
|
|
335
|
-
method: "POST",
|
|
336
|
-
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets",
|
|
337
|
-
code: 200,
|
|
338
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
339
|
-
}),
|
|
340
|
-
),
|
|
341
|
-
).annotate({
|
|
342
|
-
identifier: "CreateManagedRuleSetRequest",
|
|
343
|
-
}) as any as S.Schema<CreateManagedRuleSetRequest>;
|
|
344
|
-
|
|
345
203
|
/** The current mode of the rule. */
|
|
346
204
|
export type Mode = "MODE_ENABLED" | "MODE_DISABLED" | "MODE_LOG_ONLY";
|
|
347
|
-
export const Mode = S.String;
|
|
348
|
-
|
|
349
205
|
/** Rule represents an individual security or validation rule. */
|
|
350
206
|
export interface MRSRule {
|
|
351
207
|
/** A description of what this rule covers. */
|
|
@@ -354,20 +210,7 @@ export interface MRSRule {
|
|
|
354
210
|
/** Impact level. */
|
|
355
211
|
severity: string;
|
|
356
212
|
}
|
|
357
|
-
export const MRSRule = /*@__PURE__*/ S.suspend(() =>
|
|
358
|
-
S.Struct({
|
|
359
|
-
description: S.String,
|
|
360
|
-
mode: Mode,
|
|
361
|
-
severity: S.String,
|
|
362
|
-
}),
|
|
363
|
-
).annotate({ identifier: "MRSRule" }) as any as S.Schema<MRSRule>;
|
|
364
|
-
|
|
365
213
|
export type MRSRuleGroupRulesMap = { [key: string]: MRSRule | undefined };
|
|
366
|
-
export const MRSRuleGroupRulesMap = /*@__PURE__*/ S.Record(
|
|
367
|
-
S.String,
|
|
368
|
-
MRSRule,
|
|
369
|
-
) as any as S.Schema<MRSRuleGroupRulesMap>;
|
|
370
|
-
|
|
371
214
|
/** RuleGroup represents a collection of rules associated with a specific group. */
|
|
372
215
|
export interface MRSRuleGroup {
|
|
373
216
|
/** A description of what this group covers. */
|
|
@@ -376,40 +219,16 @@ export interface MRSRuleGroup {
|
|
|
376
219
|
groupName: string;
|
|
377
220
|
rules?: MRSRuleGroupRulesMap;
|
|
378
221
|
}
|
|
379
|
-
export const MRSRuleGroup = /*@__PURE__*/ S.suspend(() =>
|
|
380
|
-
S.Struct({
|
|
381
|
-
description: S.String,
|
|
382
|
-
groupName: S.String,
|
|
383
|
-
rules: S.optional(MRSRuleGroupRulesMap),
|
|
384
|
-
}),
|
|
385
|
-
).annotate({ identifier: "MRSRuleGroup" }) as any as S.Schema<MRSRuleGroup>;
|
|
386
|
-
|
|
387
222
|
/** Inventory of all available Managed Rule Set groups and their current configuration. The key is the unique Group ID. */
|
|
388
223
|
export type GetManagedRuleSetResponseGroupsMap = { [key: string]: MRSRuleGroup | undefined };
|
|
389
|
-
export const GetManagedRuleSetResponseGroupsMap = /*@__PURE__*/ S.Record(
|
|
390
|
-
S.String,
|
|
391
|
-
MRSRuleGroup,
|
|
392
|
-
) as any as S.Schema<GetManagedRuleSetResponseGroupsMap>;
|
|
393
|
-
|
|
394
224
|
/** List of WAFs that use this Managed Rule Set. */
|
|
395
225
|
export type MRSUsageItemsList = Array<string>;
|
|
396
|
-
export const MRSUsageItemsList = /*@__PURE__*/ S.Array(
|
|
397
|
-
S.String,
|
|
398
|
-
) as any as S.Schema<MRSUsageItemsList>;
|
|
399
|
-
|
|
400
226
|
export interface MRSUsage {
|
|
401
227
|
/** Number of WAFs using this Managed Rule Set. */
|
|
402
228
|
count?: number;
|
|
403
229
|
/** List of WAFs that use this Managed Rule Set. */
|
|
404
230
|
items?: MRSUsageItemsList;
|
|
405
231
|
}
|
|
406
|
-
export const MRSUsage = /*@__PURE__*/ S.suspend(() =>
|
|
407
|
-
S.Struct({
|
|
408
|
-
count: S.optional(S.Number),
|
|
409
|
-
items: S.optional(MRSUsageItemsList),
|
|
410
|
-
}),
|
|
411
|
-
).annotate({ identifier: "MRSUsage" }) as any as S.Schema<MRSUsage>;
|
|
412
|
-
|
|
413
232
|
/** GetManagedRuleSetResponse returns rule configuration name and it's rules. */
|
|
414
233
|
export interface GetManagedRuleSetResponse {
|
|
415
234
|
/** Inventory of all available Managed Rule Set groups and their current configuration. The key is the unique Group ID. */
|
|
@@ -421,25 +240,8 @@ export interface GetManagedRuleSetResponse {
|
|
|
421
240
|
/** Managed rule set version. */
|
|
422
241
|
version: string;
|
|
423
242
|
}
|
|
424
|
-
export const GetManagedRuleSetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
425
|
-
S.Struct({
|
|
426
|
-
groups: S.optional(GetManagedRuleSetResponseGroupsMap),
|
|
427
|
-
name: S.String,
|
|
428
|
-
type: Type,
|
|
429
|
-
usage: S.optional(MRSUsage),
|
|
430
|
-
version: S.String,
|
|
431
|
-
}),
|
|
432
|
-
).annotate({
|
|
433
|
-
identifier: "GetManagedRuleSetResponse",
|
|
434
|
-
}) as any as S.Schema<GetManagedRuleSetResponse>;
|
|
435
|
-
|
|
436
243
|
/** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per WAF. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */
|
|
437
244
|
export type CreateWAFRequestLabelsMap = { [key: string]: string | undefined };
|
|
438
|
-
export const CreateWAFRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
439
|
-
S.String,
|
|
440
|
-
S.String,
|
|
441
|
-
) as any as S.Schema<CreateWAFRequestLabelsMap>;
|
|
442
|
-
|
|
443
245
|
export interface CreateWAFRequest {
|
|
444
246
|
projectId: string;
|
|
445
247
|
region: string;
|
|
@@ -452,69 +254,24 @@ export interface CreateWAFRequest {
|
|
|
452
254
|
/** WAF name */
|
|
453
255
|
name: string;
|
|
454
256
|
}
|
|
455
|
-
export const CreateWAFRequest = /*@__PURE__*/ S.suspend(() =>
|
|
456
|
-
S.Struct({
|
|
457
|
-
projectId: S.String.pipe(T.Label()),
|
|
458
|
-
region: S.String.pipe(T.Label()),
|
|
459
|
-
customRuleGroupName: S.optional(S.String),
|
|
460
|
-
labels: S.optional(CreateWAFRequestLabelsMap),
|
|
461
|
-
managedRuleSetName: S.optional(S.String),
|
|
462
|
-
name: S.String,
|
|
463
|
-
}).pipe(
|
|
464
|
-
T.Http({
|
|
465
|
-
method: "POST",
|
|
466
|
-
uri: "/v1/projects/{projectId}/regions/{region}/wafs",
|
|
467
|
-
code: 200,
|
|
468
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
469
|
-
}),
|
|
470
|
-
),
|
|
471
|
-
).annotate({ identifier: "CreateWAFRequest" }) as any as S.Schema<CreateWAFRequest>;
|
|
472
|
-
|
|
473
257
|
/** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per WAF. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */
|
|
474
258
|
export type GetWAFResponseLabelsMap = { [key: string]: string | undefined };
|
|
475
|
-
export const GetWAFResponseLabelsMap = /*@__PURE__*/ S.Record(
|
|
476
|
-
S.String,
|
|
477
|
-
S.String,
|
|
478
|
-
) as any as S.Schema<GetWAFResponseLabelsMap>;
|
|
479
|
-
|
|
480
259
|
/** The list of listener names in this Load Balancer, that are using the WAF. */
|
|
481
260
|
export type WAFUsageItemListenerNamesList = Array<string>;
|
|
482
|
-
export const WAFUsageItemListenerNamesList = /*@__PURE__*/ S.Array(
|
|
483
|
-
S.String,
|
|
484
|
-
) as any as S.Schema<WAFUsageItemListenerNamesList>;
|
|
485
|
-
|
|
486
261
|
export interface WAFUsageItem {
|
|
487
262
|
/** The list of listener names in this Load Balancer, that are using the WAF. */
|
|
488
263
|
listenerNames?: WAFUsageItemListenerNamesList;
|
|
489
264
|
/** The display name of the Load Balancer. */
|
|
490
265
|
loadBalancerName: string;
|
|
491
266
|
}
|
|
492
|
-
export const WAFUsageItem = /*@__PURE__*/ S.suspend(() =>
|
|
493
|
-
S.Struct({
|
|
494
|
-
listenerNames: S.optional(WAFUsageItemListenerNamesList),
|
|
495
|
-
loadBalancerName: S.String,
|
|
496
|
-
}),
|
|
497
|
-
).annotate({ identifier: "WAFUsageItem" }) as any as S.Schema<WAFUsageItem>;
|
|
498
|
-
|
|
499
267
|
/** List of Application Load Balancers with their associated listeners that use this WAF configuration. */
|
|
500
268
|
export type WAFUsageItemsList = Array<WAFUsageItem>;
|
|
501
|
-
export const WAFUsageItemsList = /*@__PURE__*/ S.Array(
|
|
502
|
-
WAFUsageItem,
|
|
503
|
-
) as any as S.Schema<WAFUsageItemsList>;
|
|
504
|
-
|
|
505
269
|
export interface WAFUsage {
|
|
506
270
|
/** Number of listeners using this WAF configuration. */
|
|
507
271
|
count?: number;
|
|
508
272
|
/** List of Application Load Balancers with their associated listeners that use this WAF configuration. */
|
|
509
273
|
items?: WAFUsageItemsList;
|
|
510
274
|
}
|
|
511
|
-
export const WAFUsage = /*@__PURE__*/ S.suspend(() =>
|
|
512
|
-
S.Struct({
|
|
513
|
-
count: S.optional(S.Number),
|
|
514
|
-
items: S.optional(WAFUsageItemsList),
|
|
515
|
-
}),
|
|
516
|
-
).annotate({ identifier: "WAFUsage" }) as any as S.Schema<WAFUsage>;
|
|
517
|
-
|
|
518
275
|
/** GetWAFResponse returns detailed information about the WAF, which includes the identifying name, references to MRS/CRG and usage. */
|
|
519
276
|
export interface GetWAFResponse {
|
|
520
277
|
/** Name of the CRG configuration for that WAF. */
|
|
@@ -527,159 +284,38 @@ export interface GetWAFResponse {
|
|
|
527
284
|
name: string;
|
|
528
285
|
usage?: WAFUsage;
|
|
529
286
|
}
|
|
530
|
-
export const GetWAFResponse = /*@__PURE__*/ S.suspend(() =>
|
|
531
|
-
S.Struct({
|
|
532
|
-
customRuleGroupName: S.optional(S.String),
|
|
533
|
-
labels: S.optional(GetWAFResponseLabelsMap),
|
|
534
|
-
managedRuleSetName: S.optional(S.String),
|
|
535
|
-
name: S.String,
|
|
536
|
-
usage: S.optional(WAFUsage),
|
|
537
|
-
}),
|
|
538
|
-
).annotate({ identifier: "GetWAFResponse" }) as any as S.Schema<GetWAFResponse>;
|
|
539
|
-
|
|
540
287
|
export interface DeleteCustomRuleGroupRequest {
|
|
541
288
|
projectId: string;
|
|
542
289
|
region: string;
|
|
543
290
|
name: string;
|
|
544
291
|
}
|
|
545
|
-
export const DeleteCustomRuleGroupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
546
|
-
S.Struct({
|
|
547
|
-
projectId: S.String.pipe(T.Label()),
|
|
548
|
-
region: S.String.pipe(T.Label()),
|
|
549
|
-
name: S.String.pipe(T.Label()),
|
|
550
|
-
}).pipe(
|
|
551
|
-
T.Http({
|
|
552
|
-
method: "DELETE",
|
|
553
|
-
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups/{name}",
|
|
554
|
-
code: 200,
|
|
555
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
556
|
-
}),
|
|
557
|
-
),
|
|
558
|
-
).annotate({
|
|
559
|
-
identifier: "DeleteCustomRuleGroupRequest",
|
|
560
|
-
}) as any as S.Schema<DeleteCustomRuleGroupRequest>;
|
|
561
|
-
|
|
562
292
|
export type DeleteCustomRuleGroupResponse2 = unknown;
|
|
563
|
-
export const DeleteCustomRuleGroupResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
564
|
-
S.Unknown.pipe(T.RawResponseRoot()),
|
|
565
|
-
).annotate({
|
|
566
|
-
identifier: "DeleteCustomRuleGroupResponse2",
|
|
567
|
-
}) as any as S.Schema<DeleteCustomRuleGroupResponse2>;
|
|
568
|
-
|
|
569
293
|
export interface DeleteManagedRuleSetRequest {
|
|
570
294
|
projectId: string;
|
|
571
295
|
region: string;
|
|
572
296
|
name: string;
|
|
573
297
|
}
|
|
574
|
-
export const DeleteManagedRuleSetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
575
|
-
S.Struct({
|
|
576
|
-
projectId: S.String.pipe(T.Label()),
|
|
577
|
-
region: S.String.pipe(T.Label()),
|
|
578
|
-
name: S.String.pipe(T.Label()),
|
|
579
|
-
}).pipe(
|
|
580
|
-
T.Http({
|
|
581
|
-
method: "DELETE",
|
|
582
|
-
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets/{name}",
|
|
583
|
-
code: 200,
|
|
584
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
585
|
-
}),
|
|
586
|
-
),
|
|
587
|
-
).annotate({
|
|
588
|
-
identifier: "DeleteManagedRuleSetRequest",
|
|
589
|
-
}) as any as S.Schema<DeleteManagedRuleSetRequest>;
|
|
590
|
-
|
|
591
298
|
export type DeleteManagedRuleSetResponse2 = unknown;
|
|
592
|
-
export const DeleteManagedRuleSetResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
593
|
-
S.Unknown.pipe(T.RawResponseRoot()),
|
|
594
|
-
).annotate({
|
|
595
|
-
identifier: "DeleteManagedRuleSetResponse2",
|
|
596
|
-
}) as any as S.Schema<DeleteManagedRuleSetResponse2>;
|
|
597
|
-
|
|
598
299
|
export interface DeleteWAFRequest {
|
|
599
300
|
projectId: string;
|
|
600
301
|
region: string;
|
|
601
302
|
name: string;
|
|
602
303
|
}
|
|
603
|
-
export const DeleteWAFRequest = /*@__PURE__*/ S.suspend(() =>
|
|
604
|
-
S.Struct({
|
|
605
|
-
projectId: S.String.pipe(T.Label()),
|
|
606
|
-
region: S.String.pipe(T.Label()),
|
|
607
|
-
name: S.String.pipe(T.Label()),
|
|
608
|
-
}).pipe(
|
|
609
|
-
T.Http({
|
|
610
|
-
method: "DELETE",
|
|
611
|
-
uri: "/v1/projects/{projectId}/regions/{region}/wafs/{name}",
|
|
612
|
-
code: 200,
|
|
613
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
614
|
-
}),
|
|
615
|
-
),
|
|
616
|
-
).annotate({ identifier: "DeleteWAFRequest" }) as any as S.Schema<DeleteWAFRequest>;
|
|
617
|
-
|
|
618
304
|
export type DeleteWAFResponse2 = unknown;
|
|
619
|
-
export const DeleteWAFResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
620
|
-
S.Unknown.pipe(T.RawResponseRoot()),
|
|
621
|
-
).annotate({ identifier: "DeleteWAFResponse2" }) as any as S.Schema<DeleteWAFResponse2>;
|
|
622
|
-
|
|
623
305
|
export interface GetCustomRuleGroupRequest {
|
|
624
306
|
projectId: string;
|
|
625
307
|
region: string;
|
|
626
308
|
name: string;
|
|
627
309
|
}
|
|
628
|
-
export const GetCustomRuleGroupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
629
|
-
S.Struct({
|
|
630
|
-
projectId: S.String.pipe(T.Label()),
|
|
631
|
-
region: S.String.pipe(T.Label()),
|
|
632
|
-
name: S.String.pipe(T.Label()),
|
|
633
|
-
}).pipe(
|
|
634
|
-
T.Http({
|
|
635
|
-
method: "GET",
|
|
636
|
-
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups/{name}",
|
|
637
|
-
code: 200,
|
|
638
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
639
|
-
}),
|
|
640
|
-
),
|
|
641
|
-
).annotate({
|
|
642
|
-
identifier: "GetCustomRuleGroupRequest",
|
|
643
|
-
}) as any as S.Schema<GetCustomRuleGroupRequest>;
|
|
644
|
-
|
|
645
310
|
export interface GetManagedRuleSetRequest {
|
|
646
311
|
projectId: string;
|
|
647
312
|
region: string;
|
|
648
313
|
name: string;
|
|
649
314
|
}
|
|
650
|
-
export const GetManagedRuleSetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
651
|
-
S.Struct({
|
|
652
|
-
projectId: S.String.pipe(T.Label()),
|
|
653
|
-
region: S.String.pipe(T.Label()),
|
|
654
|
-
name: S.String.pipe(T.Label()),
|
|
655
|
-
}).pipe(
|
|
656
|
-
T.Http({
|
|
657
|
-
method: "GET",
|
|
658
|
-
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets/{name}",
|
|
659
|
-
code: 200,
|
|
660
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
661
|
-
}),
|
|
662
|
-
),
|
|
663
|
-
).annotate({ identifier: "GetManagedRuleSetRequest" }) as any as S.Schema<GetManagedRuleSetRequest>;
|
|
664
|
-
|
|
665
315
|
export interface GetQuotaRequest {
|
|
666
316
|
projectId: string;
|
|
667
317
|
region: string;
|
|
668
318
|
}
|
|
669
|
-
export const GetQuotaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
670
|
-
S.Struct({
|
|
671
|
-
projectId: S.String.pipe(T.Label()),
|
|
672
|
-
region: S.String.pipe(T.Label()),
|
|
673
|
-
}).pipe(
|
|
674
|
-
T.Http({
|
|
675
|
-
method: "GET",
|
|
676
|
-
uri: "/v1/projects/{projectId}/regions/{region}/quotas",
|
|
677
|
-
code: 200,
|
|
678
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
679
|
-
}),
|
|
680
|
-
),
|
|
681
|
-
).annotate({ identifier: "GetQuotaRequest" }) as any as S.Schema<GetQuotaRequest>;
|
|
682
|
-
|
|
683
319
|
/** CRG quotas holds the limit and usage for CRG resources */
|
|
684
320
|
export interface CRGConfigQuota {
|
|
685
321
|
/** The maximum number of custom rule groups in this project. */
|
|
@@ -687,13 +323,6 @@ export interface CRGConfigQuota {
|
|
|
687
323
|
/** The number of custom rule groups that are currently existing in this project. */
|
|
688
324
|
usage?: number;
|
|
689
325
|
}
|
|
690
|
-
export const CRGConfigQuota = /*@__PURE__*/ S.suspend(() =>
|
|
691
|
-
S.Struct({
|
|
692
|
-
limit: S.optional(S.Number),
|
|
693
|
-
usage: S.optional(S.Number),
|
|
694
|
-
}),
|
|
695
|
-
).annotate({ identifier: "CRGConfigQuota" }) as any as S.Schema<CRGConfigQuota>;
|
|
696
|
-
|
|
697
326
|
/** MRS Config quota holds the limit and usage for Managed Rule Set configuration resources */
|
|
698
327
|
export interface MRSConfigQuota {
|
|
699
328
|
/** The maximum number of Managed Rule Set configurations in this project. */
|
|
@@ -701,13 +330,6 @@ export interface MRSConfigQuota {
|
|
|
701
330
|
/** The number of Managed Rule Set configurations that are currently existing in this project. */
|
|
702
331
|
usage?: number;
|
|
703
332
|
}
|
|
704
|
-
export const MRSConfigQuota = /*@__PURE__*/ S.suspend(() =>
|
|
705
|
-
S.Struct({
|
|
706
|
-
limit: S.optional(S.Number),
|
|
707
|
-
usage: S.optional(S.Number),
|
|
708
|
-
}),
|
|
709
|
-
).annotate({ identifier: "MRSConfigQuota" }) as any as S.Schema<MRSConfigQuota>;
|
|
710
|
-
|
|
711
333
|
/** WAF Config quota holds the limit and usage for Web Application Firewall configuration resources */
|
|
712
334
|
export interface WAFConfigQuota {
|
|
713
335
|
/** The maximum number of Web Application Firewall configurations in this project. */
|
|
@@ -715,27 +337,12 @@ export interface WAFConfigQuota {
|
|
|
715
337
|
/** The number of Web Application Firewall configurations that are currently existing in this project. */
|
|
716
338
|
usage?: number;
|
|
717
339
|
}
|
|
718
|
-
export const WAFConfigQuota = /*@__PURE__*/ S.suspend(() =>
|
|
719
|
-
S.Struct({
|
|
720
|
-
limit: S.optional(S.Number),
|
|
721
|
-
usage: S.optional(S.Number),
|
|
722
|
-
}),
|
|
723
|
-
).annotate({ identifier: "WAFConfigQuota" }) as any as S.Schema<WAFConfigQuota>;
|
|
724
|
-
|
|
725
340
|
/** Quotas holds the specific quota elements for different resources */
|
|
726
341
|
export interface Quotas {
|
|
727
342
|
customRuleGroup: CRGConfigQuota;
|
|
728
343
|
managedRuleSet: MRSConfigQuota;
|
|
729
344
|
webApplicationFirewall: WAFConfigQuota;
|
|
730
345
|
}
|
|
731
|
-
export const Quotas = /*@__PURE__*/ S.suspend(() =>
|
|
732
|
-
S.Struct({
|
|
733
|
-
customRuleGroup: CRGConfigQuota,
|
|
734
|
-
managedRuleSet: MRSConfigQuota,
|
|
735
|
-
webApplicationFirewall: WAFConfigQuota,
|
|
736
|
-
}),
|
|
737
|
-
).annotate({ identifier: "Quotas" }) as any as S.Schema<Quotas>;
|
|
738
|
-
|
|
739
346
|
export interface GetQuotaResponse {
|
|
740
347
|
/** Project identifier */
|
|
741
348
|
projectId?: string;
|
|
@@ -743,34 +350,11 @@ export interface GetQuotaResponse {
|
|
|
743
350
|
/** Region */
|
|
744
351
|
region?: string;
|
|
745
352
|
}
|
|
746
|
-
export const GetQuotaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
747
|
-
S.Struct({
|
|
748
|
-
projectId: S.optional(S.String),
|
|
749
|
-
quotas: Quotas,
|
|
750
|
-
region: S.optional(S.String),
|
|
751
|
-
}),
|
|
752
|
-
).annotate({ identifier: "GetQuotaResponse" }) as any as S.Schema<GetQuotaResponse>;
|
|
753
|
-
|
|
754
353
|
export interface GetWAFRequest {
|
|
755
354
|
projectId: string;
|
|
756
355
|
region: string;
|
|
757
356
|
name: string;
|
|
758
357
|
}
|
|
759
|
-
export const GetWAFRequest = /*@__PURE__*/ S.suspend(() =>
|
|
760
|
-
S.Struct({
|
|
761
|
-
projectId: S.String.pipe(T.Label()),
|
|
762
|
-
region: S.String.pipe(T.Label()),
|
|
763
|
-
name: S.String.pipe(T.Label()),
|
|
764
|
-
}).pipe(
|
|
765
|
-
T.Http({
|
|
766
|
-
method: "GET",
|
|
767
|
-
uri: "/v1/projects/{projectId}/regions/{region}/wafs/{name}",
|
|
768
|
-
code: 200,
|
|
769
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
770
|
-
}),
|
|
771
|
-
),
|
|
772
|
-
).annotate({ identifier: "GetWAFRequest" }) as any as S.Schema<GetWAFRequest>;
|
|
773
|
-
|
|
774
358
|
export interface ListCustomRuleGroupRequest {
|
|
775
359
|
projectId: string;
|
|
776
360
|
region: string;
|
|
@@ -779,44 +363,13 @@ export interface ListCustomRuleGroupRequest {
|
|
|
779
363
|
/** page_id is a page identifier returned by the previous response and is used to request the next page */
|
|
780
364
|
pageId?: string;
|
|
781
365
|
}
|
|
782
|
-
export const ListCustomRuleGroupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
783
|
-
S.Struct({
|
|
784
|
-
projectId: S.String.pipe(T.Label()),
|
|
785
|
-
region: S.String.pipe(T.Label()),
|
|
786
|
-
pageSize: S.optional(S.String.pipe(T.Query())),
|
|
787
|
-
pageId: S.optional(S.String.pipe(T.Query())),
|
|
788
|
-
}).pipe(
|
|
789
|
-
T.Http({
|
|
790
|
-
method: "GET",
|
|
791
|
-
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups",
|
|
792
|
-
code: 200,
|
|
793
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
794
|
-
}),
|
|
795
|
-
),
|
|
796
|
-
).annotate({
|
|
797
|
-
identifier: "ListCustomRuleGroupRequest",
|
|
798
|
-
}) as any as S.Schema<ListCustomRuleGroupRequest>;
|
|
799
|
-
|
|
800
366
|
export type ListCustomRuleGroupResponseItemsList = Array<GetCustomRuleGroupResponse>;
|
|
801
|
-
export const ListCustomRuleGroupResponseItemsList = /*@__PURE__*/ S.Array(
|
|
802
|
-
GetCustomRuleGroupResponse,
|
|
803
|
-
) as any as S.Schema<ListCustomRuleGroupResponseItemsList>;
|
|
804
|
-
|
|
805
367
|
/** ListCustomRuleGroupResponse returns a list of Custom Rule Group responses. */
|
|
806
368
|
export interface ListCustomRuleGroupResponse {
|
|
807
369
|
items?: ListCustomRuleGroupResponseItemsList;
|
|
808
370
|
/** Continue token from the ListCustomRuleGroupResponse with Limit option */
|
|
809
371
|
nextPageId?: string;
|
|
810
372
|
}
|
|
811
|
-
export const ListCustomRuleGroupResponse = /*@__PURE__*/ S.suspend(() =>
|
|
812
|
-
S.Struct({
|
|
813
|
-
items: S.optional(ListCustomRuleGroupResponseItemsList),
|
|
814
|
-
nextPageId: S.optional(S.String),
|
|
815
|
-
}),
|
|
816
|
-
).annotate({
|
|
817
|
-
identifier: "ListCustomRuleGroupResponse",
|
|
818
|
-
}) as any as S.Schema<ListCustomRuleGroupResponse>;
|
|
819
|
-
|
|
820
373
|
export interface ListManagedRuleSetsRequest {
|
|
821
374
|
projectId: string;
|
|
822
375
|
region: string;
|
|
@@ -825,24 +378,6 @@ export interface ListManagedRuleSetsRequest {
|
|
|
825
378
|
/** page_id is a page identifier returned by the previous response and is used to request the next page */
|
|
826
379
|
pageId?: string;
|
|
827
380
|
}
|
|
828
|
-
export const ListManagedRuleSetsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
829
|
-
S.Struct({
|
|
830
|
-
projectId: S.String.pipe(T.Label()),
|
|
831
|
-
region: S.String.pipe(T.Label()),
|
|
832
|
-
pageSize: S.optional(S.String.pipe(T.Query())),
|
|
833
|
-
pageId: S.optional(S.String.pipe(T.Query())),
|
|
834
|
-
}).pipe(
|
|
835
|
-
T.Http({
|
|
836
|
-
method: "GET",
|
|
837
|
-
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets",
|
|
838
|
-
code: 200,
|
|
839
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
840
|
-
}),
|
|
841
|
-
),
|
|
842
|
-
).annotate({
|
|
843
|
-
identifier: "ListManagedRuleSetsRequest",
|
|
844
|
-
}) as any as S.Schema<ListManagedRuleSetsRequest>;
|
|
845
|
-
|
|
846
381
|
export interface GetLimitedManagedRuleSetResponse {
|
|
847
382
|
/** Managed rule set configuration name. */
|
|
848
383
|
name: string;
|
|
@@ -851,37 +386,13 @@ export interface GetLimitedManagedRuleSetResponse {
|
|
|
851
386
|
/** Managed rule set version. */
|
|
852
387
|
version: string;
|
|
853
388
|
}
|
|
854
|
-
export const GetLimitedManagedRuleSetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
855
|
-
S.Struct({
|
|
856
|
-
name: S.String,
|
|
857
|
-
type: Type,
|
|
858
|
-
usage: S.optional(MRSUsage),
|
|
859
|
-
version: S.String,
|
|
860
|
-
}),
|
|
861
|
-
).annotate({
|
|
862
|
-
identifier: "GetLimitedManagedRuleSetResponse",
|
|
863
|
-
}) as any as S.Schema<GetLimitedManagedRuleSetResponse>;
|
|
864
|
-
|
|
865
389
|
export type ListManagedRuleSetResponseItemsList = Array<GetLimitedManagedRuleSetResponse>;
|
|
866
|
-
export const ListManagedRuleSetResponseItemsList = /*@__PURE__*/ S.Array(
|
|
867
|
-
GetLimitedManagedRuleSetResponse,
|
|
868
|
-
) as any as S.Schema<ListManagedRuleSetResponseItemsList>;
|
|
869
|
-
|
|
870
390
|
/** ListManagedRuleSetResponse returns a list of rule configuration responses. */
|
|
871
391
|
export interface ListManagedRuleSetResponse {
|
|
872
392
|
items?: ListManagedRuleSetResponseItemsList;
|
|
873
393
|
/** Continue token from the ListManagedRuleSetResponse with Limit option */
|
|
874
394
|
nextPageId?: string;
|
|
875
395
|
}
|
|
876
|
-
export const ListManagedRuleSetResponse = /*@__PURE__*/ S.suspend(() =>
|
|
877
|
-
S.Struct({
|
|
878
|
-
items: S.optional(ListManagedRuleSetResponseItemsList),
|
|
879
|
-
nextPageId: S.optional(S.String),
|
|
880
|
-
}),
|
|
881
|
-
).annotate({
|
|
882
|
-
identifier: "ListManagedRuleSetResponse",
|
|
883
|
-
}) as any as S.Schema<ListManagedRuleSetResponse>;
|
|
884
|
-
|
|
885
396
|
export interface ListWAFRequest {
|
|
886
397
|
projectId: string;
|
|
887
398
|
region: string;
|
|
@@ -890,71 +401,22 @@ export interface ListWAFRequest {
|
|
|
890
401
|
/** page_id is a page identifier returned by the previous response and is used to request the next page */
|
|
891
402
|
pageId?: string;
|
|
892
403
|
}
|
|
893
|
-
export const ListWAFRequest = /*@__PURE__*/ S.suspend(() =>
|
|
894
|
-
S.Struct({
|
|
895
|
-
projectId: S.String.pipe(T.Label()),
|
|
896
|
-
region: S.String.pipe(T.Label()),
|
|
897
|
-
pageSize: S.optional(S.String.pipe(T.Query())),
|
|
898
|
-
pageId: S.optional(S.String.pipe(T.Query())),
|
|
899
|
-
}).pipe(
|
|
900
|
-
T.Http({
|
|
901
|
-
method: "GET",
|
|
902
|
-
uri: "/v1/projects/{projectId}/regions/{region}/wafs",
|
|
903
|
-
code: 200,
|
|
904
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
905
|
-
}),
|
|
906
|
-
),
|
|
907
|
-
).annotate({ identifier: "ListWAFRequest" }) as any as S.Schema<ListWAFRequest>;
|
|
908
|
-
|
|
909
404
|
export type ListWAFResponseItemsList = Array<GetWAFResponse>;
|
|
910
|
-
export const ListWAFResponseItemsList = /*@__PURE__*/ S.Array(
|
|
911
|
-
GetWAFResponse,
|
|
912
|
-
) as any as S.Schema<ListWAFResponseItemsList>;
|
|
913
|
-
|
|
914
405
|
/** ListWAFResponse returns a list of WAF responses. */
|
|
915
406
|
export interface ListWAFResponse {
|
|
916
407
|
items?: ListWAFResponseItemsList;
|
|
917
408
|
/** Continue token from the ListWAFResponse with Limit option */
|
|
918
409
|
nextPageId?: string;
|
|
919
410
|
}
|
|
920
|
-
export const ListWAFResponse = /*@__PURE__*/ S.suspend(() =>
|
|
921
|
-
S.Struct({
|
|
922
|
-
items: S.optional(ListWAFResponseItemsList),
|
|
923
|
-
nextPageId: S.optional(S.String),
|
|
924
|
-
}),
|
|
925
|
-
).annotate({ identifier: "ListWAFResponse" }) as any as S.Schema<ListWAFResponse>;
|
|
926
|
-
|
|
927
411
|
export interface PatchMRSRule {
|
|
928
412
|
mode?: Mode | (string & {});
|
|
929
413
|
}
|
|
930
|
-
export const PatchMRSRule = /*@__PURE__*/ S.suspend(() =>
|
|
931
|
-
S.Struct({
|
|
932
|
-
mode: S.optional(Mode),
|
|
933
|
-
}),
|
|
934
|
-
).annotate({ identifier: "PatchMRSRule" }) as any as S.Schema<PatchMRSRule>;
|
|
935
|
-
|
|
936
414
|
export type PatchMRSRuleGroupRulesMap = { [key: string]: PatchMRSRule | undefined };
|
|
937
|
-
export const PatchMRSRuleGroupRulesMap = /*@__PURE__*/ S.Record(
|
|
938
|
-
S.String,
|
|
939
|
-
PatchMRSRule,
|
|
940
|
-
) as any as S.Schema<PatchMRSRuleGroupRulesMap>;
|
|
941
|
-
|
|
942
415
|
export interface PatchMRSRuleGroup {
|
|
943
416
|
rules: PatchMRSRuleGroupRulesMap;
|
|
944
417
|
}
|
|
945
|
-
export const PatchMRSRuleGroup = /*@__PURE__*/ S.suspend(() =>
|
|
946
|
-
S.Struct({
|
|
947
|
-
rules: PatchMRSRuleGroupRulesMap,
|
|
948
|
-
}),
|
|
949
|
-
).annotate({ identifier: "PatchMRSRuleGroup" }) as any as S.Schema<PatchMRSRuleGroup>;
|
|
950
|
-
|
|
951
418
|
/** Map of Managed Rule Set groups to be patched. The key is the Group ID (e.g., 942 for SQL Injection). Only provided rules within the group will be updated; others remain unchanged. */
|
|
952
419
|
export type PatchManagedRuleSetRequestGroupsMap = { [key: string]: PatchMRSRuleGroup | undefined };
|
|
953
|
-
export const PatchManagedRuleSetRequestGroupsMap = /*@__PURE__*/ S.Record(
|
|
954
|
-
S.String,
|
|
955
|
-
PatchMRSRuleGroup,
|
|
956
|
-
) as any as S.Schema<PatchManagedRuleSetRequestGroupsMap>;
|
|
957
|
-
|
|
958
420
|
export interface PatchManagedRuleSetRequest {
|
|
959
421
|
projectId: string;
|
|
960
422
|
region: string;
|
|
@@ -962,30 +424,8 @@ export interface PatchManagedRuleSetRequest {
|
|
|
962
424
|
/** Map of Managed Rule Set groups to be patched. The key is the Group ID (e.g., 942 for SQL Injection). Only provided rules within the group will be updated; others remain unchanged. */
|
|
963
425
|
groups: PatchManagedRuleSetRequestGroupsMap;
|
|
964
426
|
}
|
|
965
|
-
export const PatchManagedRuleSetRequest = /*@__PURE__*/ S.suspend(() =>
|
|
966
|
-
S.Struct({
|
|
967
|
-
projectId: S.String.pipe(T.Label()),
|
|
968
|
-
region: S.String.pipe(T.Label()),
|
|
969
|
-
name: S.String.pipe(T.Label()),
|
|
970
|
-
groups: PatchManagedRuleSetRequestGroupsMap,
|
|
971
|
-
}).pipe(
|
|
972
|
-
T.Http({
|
|
973
|
-
method: "PATCH",
|
|
974
|
-
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets/{name}",
|
|
975
|
-
code: 200,
|
|
976
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
977
|
-
}),
|
|
978
|
-
),
|
|
979
|
-
).annotate({
|
|
980
|
-
identifier: "PatchManagedRuleSetRequest",
|
|
981
|
-
}) as any as S.Schema<PatchManagedRuleSetRequest>;
|
|
982
|
-
|
|
983
427
|
/** The collection of custom rule group SecLang parameters forming this execution group. Replaces the existing rules atomically. */
|
|
984
428
|
export type UpdateCustomRuleGroupRequestRulesList = Array<CreateCustomRule>;
|
|
985
|
-
export const UpdateCustomRuleGroupRequestRulesList = /*@__PURE__*/ S.Array(
|
|
986
|
-
CreateCustomRule,
|
|
987
|
-
) as any as S.Schema<UpdateCustomRuleGroupRequestRulesList>;
|
|
988
|
-
|
|
989
429
|
export interface UpdateCustomRuleGroupRequest {
|
|
990
430
|
projectId: string;
|
|
991
431
|
region: string;
|
|
@@ -993,31 +433,8 @@ export interface UpdateCustomRuleGroupRequest {
|
|
|
993
433
|
/** The collection of custom rule group SecLang parameters forming this execution group. Replaces the existing rules atomically. */
|
|
994
434
|
rules: UpdateCustomRuleGroupRequestRulesList;
|
|
995
435
|
}
|
|
996
|
-
export const UpdateCustomRuleGroupRequest = /*@__PURE__*/ S.suspend(() =>
|
|
997
|
-
S.Struct({
|
|
998
|
-
projectId: S.String.pipe(T.Label()),
|
|
999
|
-
region: S.String.pipe(T.Label()),
|
|
1000
|
-
name: S.String.pipe(T.Label()),
|
|
1001
|
-
rules: UpdateCustomRuleGroupRequestRulesList,
|
|
1002
|
-
}).pipe(
|
|
1003
|
-
T.Http({
|
|
1004
|
-
method: "PUT",
|
|
1005
|
-
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups/{name}",
|
|
1006
|
-
code: 200,
|
|
1007
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
1008
|
-
}),
|
|
1009
|
-
),
|
|
1010
|
-
).annotate({
|
|
1011
|
-
identifier: "UpdateCustomRuleGroupRequest",
|
|
1012
|
-
}) as any as S.Schema<UpdateCustomRuleGroupRequest>;
|
|
1013
|
-
|
|
1014
436
|
/** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per WAF. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */
|
|
1015
437
|
export type UpdateWAFRequestLabelsMap = { [key: string]: string | undefined };
|
|
1016
|
-
export const UpdateWAFRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
1017
|
-
S.String,
|
|
1018
|
-
S.String,
|
|
1019
|
-
) as any as S.Schema<UpdateWAFRequestLabelsMap>;
|
|
1020
|
-
|
|
1021
438
|
export interface UpdateWAFRequest {
|
|
1022
439
|
projectId: string;
|
|
1023
440
|
region: string;
|
|
@@ -1029,24 +446,6 @@ export interface UpdateWAFRequest {
|
|
|
1029
446
|
/** Name of the managed rule set configuration for that WAF. */
|
|
1030
447
|
managedRuleSetName?: string;
|
|
1031
448
|
}
|
|
1032
|
-
export const UpdateWAFRequest = /*@__PURE__*/ S.suspend(() =>
|
|
1033
|
-
S.Struct({
|
|
1034
|
-
projectId: S.String.pipe(T.Label()),
|
|
1035
|
-
region: S.String.pipe(T.Label()),
|
|
1036
|
-
name: S.String.pipe(T.Label()),
|
|
1037
|
-
customRuleGroupName: S.optional(S.String),
|
|
1038
|
-
labels: S.optional(UpdateWAFRequestLabelsMap),
|
|
1039
|
-
managedRuleSetName: S.optional(S.String),
|
|
1040
|
-
}).pipe(
|
|
1041
|
-
T.Http({
|
|
1042
|
-
method: "PUT",
|
|
1043
|
-
uri: "/v1/projects/{projectId}/regions/{region}/wafs/{name}",
|
|
1044
|
-
code: 200,
|
|
1045
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
1046
|
-
}),
|
|
1047
|
-
),
|
|
1048
|
-
).annotate({ identifier: "UpdateWAFRequest" }) as any as S.Schema<UpdateWAFRequest>;
|
|
1049
|
-
|
|
1050
449
|
export type CreateCustomRuleGroupError = BadRequest | Forbidden | StackitOpError;
|
|
1051
450
|
/** Create a CRG configuration Creates a structured rule configuration using the abstract CRG. It can be referenced by any number of WAF configurations in the same project. */
|
|
1052
451
|
export const createCustomRuleGroup: API.OperationMethod<
|
|
@@ -1055,8 +454,8 @@ export const createCustomRuleGroup: API.OperationMethod<
|
|
|
1055
454
|
CreateCustomRuleGroupError,
|
|
1056
455
|
StackitOpContext
|
|
1057
456
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1058
|
-
input: CreateCustomRuleGroupRequest
|
|
1059
|
-
output: GetCustomRuleGroupResponse
|
|
457
|
+
input: __S(80, __c10, 0) as any as S.Schema<CreateCustomRuleGroupRequest>,
|
|
458
|
+
output: __S(95, __c11, 7) as any as S.Schema<GetCustomRuleGroupResponse>,
|
|
1060
459
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1061
460
|
protocol: StackitProtocol,
|
|
1062
461
|
retry: Retry.Retry,
|
|
@@ -1070,8 +469,8 @@ export const createManagedRuleSet: API.OperationMethod<
|
|
|
1070
469
|
CreateManagedRuleSetError,
|
|
1071
470
|
StackitOpContext
|
|
1072
471
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1073
|
-
input: CreateManagedRuleSetRequest
|
|
1074
|
-
output: GetManagedRuleSetResponse
|
|
472
|
+
input: __S(120, __c15, 0) as any as S.Schema<CreateManagedRuleSetRequest>,
|
|
473
|
+
output: __S(132, __c16, 4) as any as S.Schema<GetManagedRuleSetResponse>,
|
|
1075
474
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1076
475
|
protocol: StackitProtocol,
|
|
1077
476
|
retry: Retry.Retry,
|
|
@@ -1085,8 +484,8 @@ export const createWAF: API.OperationMethod<
|
|
|
1085
484
|
CreateWAFError,
|
|
1086
485
|
StackitOpContext
|
|
1087
486
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1088
|
-
input: CreateWAFRequest
|
|
1089
|
-
output: GetWAFResponse
|
|
487
|
+
input: __S(136, __c17, 0) as any as S.Schema<CreateWAFRequest>,
|
|
488
|
+
output: __S(148, __c18, 4) as any as S.Schema<GetWAFResponse>,
|
|
1090
489
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1091
490
|
protocol: StackitProtocol,
|
|
1092
491
|
retry: Retry.Retry,
|
|
@@ -1100,8 +499,8 @@ export const deleteCustomRuleGroup: API.OperationMethod<
|
|
|
1100
499
|
DeleteCustomRuleGroupError,
|
|
1101
500
|
StackitOpContext
|
|
1102
501
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1103
|
-
input: DeleteCustomRuleGroupRequest
|
|
1104
|
-
output: DeleteCustomRuleGroupResponse2
|
|
502
|
+
input: __S(152, __c19, 0) as any as S.Schema<DeleteCustomRuleGroupRequest>,
|
|
503
|
+
output: __S(160, __c20, 0) as any as S.Schema<DeleteCustomRuleGroupResponse2>,
|
|
1105
504
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1106
505
|
protocol: StackitProtocol,
|
|
1107
506
|
retry: Retry.Retry,
|
|
@@ -1115,8 +514,8 @@ export const deleteManagedRuleSet: API.OperationMethod<
|
|
|
1115
514
|
DeleteManagedRuleSetError,
|
|
1116
515
|
StackitOpContext
|
|
1117
516
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1118
|
-
input: DeleteManagedRuleSetRequest
|
|
1119
|
-
output: DeleteManagedRuleSetResponse2
|
|
517
|
+
input: __S(168, __c21, 0) as any as S.Schema<DeleteManagedRuleSetRequest>,
|
|
518
|
+
output: __S(160, __c20, 0) as any as S.Schema<DeleteManagedRuleSetResponse2>,
|
|
1120
519
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1121
520
|
protocol: StackitProtocol,
|
|
1122
521
|
retry: Retry.Retry,
|
|
@@ -1130,8 +529,8 @@ export const deleteWAF: API.OperationMethod<
|
|
|
1130
529
|
DeleteWAFError,
|
|
1131
530
|
StackitOpContext
|
|
1132
531
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1133
|
-
input: DeleteWAFRequest
|
|
1134
|
-
output: DeleteWAFResponse2
|
|
532
|
+
input: __S(176, __c22, 0) as any as S.Schema<DeleteWAFRequest>,
|
|
533
|
+
output: __S(160, __c20, 0) as any as S.Schema<DeleteWAFResponse2>,
|
|
1135
534
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1136
535
|
protocol: StackitProtocol,
|
|
1137
536
|
retry: Retry.Retry,
|
|
@@ -1145,8 +544,8 @@ export const getCustomRuleGroup: API.OperationMethod<
|
|
|
1145
544
|
GetCustomRuleGroupError,
|
|
1146
545
|
StackitOpContext
|
|
1147
546
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1148
|
-
input: GetCustomRuleGroupRequest
|
|
1149
|
-
output: GetCustomRuleGroupResponse
|
|
547
|
+
input: __S(0, __c0, 0) as any as S.Schema<GetCustomRuleGroupRequest>,
|
|
548
|
+
output: __S(95, __c11, 7) as any as S.Schema<GetCustomRuleGroupResponse>,
|
|
1150
549
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1151
550
|
protocol: StackitProtocol,
|
|
1152
551
|
retry: Retry.Retry,
|
|
@@ -1160,8 +559,8 @@ export const getManagedRuleSet: API.OperationMethod<
|
|
|
1160
559
|
GetManagedRuleSetError,
|
|
1161
560
|
StackitOpContext
|
|
1162
561
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1163
|
-
input: GetManagedRuleSetRequest
|
|
1164
|
-
output: GetManagedRuleSetResponse
|
|
562
|
+
input: __S(8, __c1, 0) as any as S.Schema<GetManagedRuleSetRequest>,
|
|
563
|
+
output: __S(132, __c16, 4) as any as S.Schema<GetManagedRuleSetResponse>,
|
|
1165
564
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1166
565
|
protocol: StackitProtocol,
|
|
1167
566
|
retry: Retry.Retry,
|
|
@@ -1175,8 +574,8 @@ export const getQuota: API.OperationMethod<
|
|
|
1175
574
|
GetQuotaError,
|
|
1176
575
|
StackitOpContext
|
|
1177
576
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1178
|
-
input: GetQuotaRequest
|
|
1179
|
-
output: GetQuotaResponse
|
|
577
|
+
input: __S(16, __c2, 0) as any as S.Schema<GetQuotaRequest>,
|
|
578
|
+
output: __S(19, __c2, 3) as any as S.Schema<GetQuotaResponse>,
|
|
1180
579
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1181
580
|
protocol: StackitProtocol,
|
|
1182
581
|
retry: Retry.Retry,
|
|
@@ -1190,8 +589,8 @@ export const getWAF: API.OperationMethod<
|
|
|
1190
589
|
GetWAFError,
|
|
1191
590
|
StackitOpContext
|
|
1192
591
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1193
|
-
input: GetWAFRequest
|
|
1194
|
-
output: GetWAFResponse
|
|
592
|
+
input: __S(24, __c3, 0) as any as S.Schema<GetWAFRequest>,
|
|
593
|
+
output: __S(148, __c18, 4) as any as S.Schema<GetWAFResponse>,
|
|
1195
594
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1196
595
|
protocol: StackitProtocol,
|
|
1197
596
|
retry: Retry.Retry,
|
|
@@ -1205,8 +604,8 @@ export const listCustomRuleGroup: API.OperationMethod<
|
|
|
1205
604
|
ListCustomRuleGroupError,
|
|
1206
605
|
StackitOpContext
|
|
1207
606
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1208
|
-
input: ListCustomRuleGroupRequest
|
|
1209
|
-
output: ListCustomRuleGroupResponse
|
|
607
|
+
input: __S(32, __c4, 0) as any as S.Schema<ListCustomRuleGroupRequest>,
|
|
608
|
+
output: __S(34, __c4, 2) as any as S.Schema<ListCustomRuleGroupResponse>,
|
|
1210
609
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1211
610
|
protocol: StackitProtocol,
|
|
1212
611
|
retry: Retry.Retry,
|
|
@@ -1220,8 +619,8 @@ export const listManagedRuleSets: API.OperationMethod<
|
|
|
1220
619
|
ListManagedRuleSetsError,
|
|
1221
620
|
StackitOpContext
|
|
1222
621
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1223
|
-
input: ListManagedRuleSetsRequest
|
|
1224
|
-
output: ListManagedRuleSetResponse
|
|
622
|
+
input: __S(40, __c5, 0) as any as S.Schema<ListManagedRuleSetsRequest>,
|
|
623
|
+
output: __S(43, __c5, 3) as any as S.Schema<ListManagedRuleSetResponse>,
|
|
1225
624
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1226
625
|
protocol: StackitProtocol,
|
|
1227
626
|
retry: Retry.Retry,
|
|
@@ -1235,8 +634,8 @@ export const listWAF: API.OperationMethod<
|
|
|
1235
634
|
ListWAFError,
|
|
1236
635
|
StackitOpContext
|
|
1237
636
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1238
|
-
input: ListWAFRequest
|
|
1239
|
-
output: ListWAFResponse
|
|
637
|
+
input: __S(48, __c6, 0) as any as S.Schema<ListWAFRequest>,
|
|
638
|
+
output: __S(50, __c6, 2) as any as S.Schema<ListWAFResponse>,
|
|
1240
639
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1241
640
|
protocol: StackitProtocol,
|
|
1242
641
|
retry: Retry.Retry,
|
|
@@ -1250,8 +649,8 @@ export const patchManagedRuleSet: API.OperationMethod<
|
|
|
1250
649
|
PatchManagedRuleSetError,
|
|
1251
650
|
StackitOpContext
|
|
1252
651
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1253
|
-
input: PatchManagedRuleSetRequest
|
|
1254
|
-
output: GetManagedRuleSetResponse
|
|
652
|
+
input: __S(60, __c7, 4) as any as S.Schema<PatchManagedRuleSetRequest>,
|
|
653
|
+
output: __S(132, __c16, 4) as any as S.Schema<GetManagedRuleSetResponse>,
|
|
1255
654
|
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
1256
655
|
protocol: StackitProtocol,
|
|
1257
656
|
retry: Retry.Retry,
|
|
@@ -1265,8 +664,8 @@ export const updateCustomRuleGroup: API.OperationMethod<
|
|
|
1265
664
|
UpdateCustomRuleGroupError,
|
|
1266
665
|
StackitOpContext
|
|
1267
666
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1268
|
-
input: UpdateCustomRuleGroupRequest
|
|
1269
|
-
output: GetCustomRuleGroupResponse
|
|
667
|
+
input: __S(64, __c8, 0) as any as S.Schema<UpdateCustomRuleGroupRequest>,
|
|
668
|
+
output: __S(95, __c11, 7) as any as S.Schema<GetCustomRuleGroupResponse>,
|
|
1270
669
|
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
1271
670
|
protocol: StackitProtocol,
|
|
1272
671
|
retry: Retry.Retry,
|
|
@@ -1280,9 +679,570 @@ export const updateWAF: API.OperationMethod<
|
|
|
1280
679
|
UpdateWAFError,
|
|
1281
680
|
StackitOpContext
|
|
1282
681
|
> = /*@__PURE__*/ API.make(() => ({
|
|
1283
|
-
input: UpdateWAFRequest
|
|
1284
|
-
output: GetWAFResponse
|
|
682
|
+
input: __S(72, __c9, 0) as any as S.Schema<UpdateWAFRequest>,
|
|
683
|
+
output: __S(148, __c18, 4) as any as S.Schema<GetWAFResponse>,
|
|
1285
684
|
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
1286
685
|
protocol: StackitProtocol,
|
|
1287
686
|
retry: Retry.Retry,
|
|
1288
687
|
}));
|
|
688
|
+
|
|
689
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
690
|
+
function __c0(j: number): any {
|
|
691
|
+
switch (j) {
|
|
692
|
+
case 0:
|
|
693
|
+
return S.suspend(() =>
|
|
694
|
+
S.Struct({
|
|
695
|
+
projectId: S.String.pipe(T.Label()),
|
|
696
|
+
region: S.String.pipe(T.Label()),
|
|
697
|
+
name: S.String.pipe(T.Label()),
|
|
698
|
+
}).pipe(
|
|
699
|
+
T.Http({
|
|
700
|
+
method: "GET",
|
|
701
|
+
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups/{name}",
|
|
702
|
+
code: 200,
|
|
703
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
704
|
+
}),
|
|
705
|
+
),
|
|
706
|
+
).annotate({ identifier: "GetCustomRuleGroupRequest" });
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
function __c1(j: number): any {
|
|
710
|
+
switch (j) {
|
|
711
|
+
case 0:
|
|
712
|
+
return S.suspend(() =>
|
|
713
|
+
S.Struct({
|
|
714
|
+
projectId: S.String.pipe(T.Label()),
|
|
715
|
+
region: S.String.pipe(T.Label()),
|
|
716
|
+
name: S.String.pipe(T.Label()),
|
|
717
|
+
}).pipe(
|
|
718
|
+
T.Http({
|
|
719
|
+
method: "GET",
|
|
720
|
+
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets/{name}",
|
|
721
|
+
code: 200,
|
|
722
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
723
|
+
}),
|
|
724
|
+
),
|
|
725
|
+
).annotate({ identifier: "GetManagedRuleSetRequest" });
|
|
726
|
+
}
|
|
727
|
+
}
|
|
728
|
+
function __c2(j: number): any {
|
|
729
|
+
switch (j) {
|
|
730
|
+
case 0:
|
|
731
|
+
return S.suspend(() =>
|
|
732
|
+
S.Struct({
|
|
733
|
+
projectId: S.String.pipe(T.Label()),
|
|
734
|
+
region: S.String.pipe(T.Label()),
|
|
735
|
+
}).pipe(
|
|
736
|
+
T.Http({
|
|
737
|
+
method: "GET",
|
|
738
|
+
uri: "/v1/projects/{projectId}/regions/{region}/quotas",
|
|
739
|
+
code: 200,
|
|
740
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
741
|
+
}),
|
|
742
|
+
),
|
|
743
|
+
).annotate({ identifier: "GetQuotaRequest" });
|
|
744
|
+
case 1:
|
|
745
|
+
return S.suspend(() =>
|
|
746
|
+
S.Struct({
|
|
747
|
+
limit: S.optional(S.Number),
|
|
748
|
+
usage: S.optional(S.Number),
|
|
749
|
+
}),
|
|
750
|
+
).annotate({ identifier: "CRGConfigQuota" });
|
|
751
|
+
case 2:
|
|
752
|
+
return S.suspend(() =>
|
|
753
|
+
S.Struct({
|
|
754
|
+
customRuleGroup: __S(17, __c2, 1),
|
|
755
|
+
managedRuleSet: __S(17, __c2, 1),
|
|
756
|
+
webApplicationFirewall: __S(17, __c2, 1),
|
|
757
|
+
}),
|
|
758
|
+
).annotate({ identifier: "Quotas" });
|
|
759
|
+
case 3:
|
|
760
|
+
return S.suspend(() =>
|
|
761
|
+
S.Struct({
|
|
762
|
+
projectId: S.optional(S.String),
|
|
763
|
+
quotas: __S(18, __c2, 2),
|
|
764
|
+
region: S.optional(S.String),
|
|
765
|
+
}),
|
|
766
|
+
).annotate({ identifier: "GetQuotaResponse" });
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
function __c3(j: number): any {
|
|
770
|
+
switch (j) {
|
|
771
|
+
case 0:
|
|
772
|
+
return S.suspend(() =>
|
|
773
|
+
S.Struct({
|
|
774
|
+
projectId: S.String.pipe(T.Label()),
|
|
775
|
+
region: S.String.pipe(T.Label()),
|
|
776
|
+
name: S.String.pipe(T.Label()),
|
|
777
|
+
}).pipe(
|
|
778
|
+
T.Http({
|
|
779
|
+
method: "GET",
|
|
780
|
+
uri: "/v1/projects/{projectId}/regions/{region}/wafs/{name}",
|
|
781
|
+
code: 200,
|
|
782
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
783
|
+
}),
|
|
784
|
+
),
|
|
785
|
+
).annotate({ identifier: "GetWAFRequest" });
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
function __c4(j: number): any {
|
|
789
|
+
switch (j) {
|
|
790
|
+
case 0:
|
|
791
|
+
return S.suspend(() =>
|
|
792
|
+
S.Struct({
|
|
793
|
+
projectId: S.String.pipe(T.Label()),
|
|
794
|
+
region: S.String.pipe(T.Label()),
|
|
795
|
+
pageSize: S.optional(S.String.pipe(T.Query())),
|
|
796
|
+
pageId: S.optional(S.String.pipe(T.Query())),
|
|
797
|
+
}).pipe(
|
|
798
|
+
T.Http({
|
|
799
|
+
method: "GET",
|
|
800
|
+
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups",
|
|
801
|
+
code: 200,
|
|
802
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
803
|
+
}),
|
|
804
|
+
),
|
|
805
|
+
).annotate({ identifier: "ListCustomRuleGroupRequest" });
|
|
806
|
+
case 1:
|
|
807
|
+
return S.Array(__S(95, __c11, 7));
|
|
808
|
+
case 2:
|
|
809
|
+
return S.suspend(() =>
|
|
810
|
+
S.Struct({
|
|
811
|
+
items: S.optional(__S(33, __c4, 1)),
|
|
812
|
+
nextPageId: S.optional(S.String),
|
|
813
|
+
}),
|
|
814
|
+
).annotate({ identifier: "ListCustomRuleGroupResponse" });
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
function __c5(j: number): any {
|
|
818
|
+
switch (j) {
|
|
819
|
+
case 0:
|
|
820
|
+
return S.suspend(() =>
|
|
821
|
+
S.Struct({
|
|
822
|
+
projectId: S.String.pipe(T.Label()),
|
|
823
|
+
region: S.String.pipe(T.Label()),
|
|
824
|
+
pageSize: S.optional(S.String.pipe(T.Query())),
|
|
825
|
+
pageId: S.optional(S.String.pipe(T.Query())),
|
|
826
|
+
}).pipe(
|
|
827
|
+
T.Http({
|
|
828
|
+
method: "GET",
|
|
829
|
+
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets",
|
|
830
|
+
code: 200,
|
|
831
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
832
|
+
}),
|
|
833
|
+
),
|
|
834
|
+
).annotate({ identifier: "ListManagedRuleSetsRequest" });
|
|
835
|
+
case 1:
|
|
836
|
+
return S.suspend(() =>
|
|
837
|
+
S.Struct({
|
|
838
|
+
name: S.String,
|
|
839
|
+
type: S.String,
|
|
840
|
+
usage: S.optional(__S(104, __c13, 0)),
|
|
841
|
+
version: S.String,
|
|
842
|
+
}),
|
|
843
|
+
).annotate({ identifier: "GetLimitedManagedRuleSetResponse" });
|
|
844
|
+
case 2:
|
|
845
|
+
return S.Array(__S(41, __c5, 1));
|
|
846
|
+
case 3:
|
|
847
|
+
return S.suspend(() =>
|
|
848
|
+
S.Struct({
|
|
849
|
+
items: S.optional(__S(42, __c5, 2)),
|
|
850
|
+
nextPageId: S.optional(S.String),
|
|
851
|
+
}),
|
|
852
|
+
).annotate({ identifier: "ListManagedRuleSetResponse" });
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
function __c6(j: number): any {
|
|
856
|
+
switch (j) {
|
|
857
|
+
case 0:
|
|
858
|
+
return S.suspend(() =>
|
|
859
|
+
S.Struct({
|
|
860
|
+
projectId: S.String.pipe(T.Label()),
|
|
861
|
+
region: S.String.pipe(T.Label()),
|
|
862
|
+
pageSize: S.optional(S.String.pipe(T.Query())),
|
|
863
|
+
pageId: S.optional(S.String.pipe(T.Query())),
|
|
864
|
+
}).pipe(
|
|
865
|
+
T.Http({
|
|
866
|
+
method: "GET",
|
|
867
|
+
uri: "/v1/projects/{projectId}/regions/{region}/wafs",
|
|
868
|
+
code: 200,
|
|
869
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
870
|
+
}),
|
|
871
|
+
),
|
|
872
|
+
).annotate({ identifier: "ListWAFRequest" });
|
|
873
|
+
case 1:
|
|
874
|
+
return S.Array(__S(148, __c18, 4));
|
|
875
|
+
case 2:
|
|
876
|
+
return S.suspend(() =>
|
|
877
|
+
S.Struct({
|
|
878
|
+
items: S.optional(__S(49, __c6, 1)),
|
|
879
|
+
nextPageId: S.optional(S.String),
|
|
880
|
+
}),
|
|
881
|
+
).annotate({ identifier: "ListWAFResponse" });
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
function __c7(j: number): any {
|
|
885
|
+
switch (j) {
|
|
886
|
+
case 0:
|
|
887
|
+
return S.suspend(() =>
|
|
888
|
+
S.Struct({
|
|
889
|
+
mode: S.optional(S.String),
|
|
890
|
+
}),
|
|
891
|
+
).annotate({ identifier: "PatchMRSRule" });
|
|
892
|
+
case 1:
|
|
893
|
+
return S.Record(S.String, __S(56, __c7, 0));
|
|
894
|
+
case 2:
|
|
895
|
+
return S.suspend(() =>
|
|
896
|
+
S.Struct({
|
|
897
|
+
rules: __S(57, __c7, 1),
|
|
898
|
+
}),
|
|
899
|
+
).annotate({ identifier: "PatchMRSRuleGroup" });
|
|
900
|
+
case 3:
|
|
901
|
+
return S.Record(S.String, __S(58, __c7, 2));
|
|
902
|
+
case 4:
|
|
903
|
+
return S.suspend(() =>
|
|
904
|
+
S.Struct({
|
|
905
|
+
projectId: S.String.pipe(T.Label()),
|
|
906
|
+
region: S.String.pipe(T.Label()),
|
|
907
|
+
name: S.String.pipe(T.Label()),
|
|
908
|
+
groups: __S(59, __c7, 3),
|
|
909
|
+
}).pipe(
|
|
910
|
+
T.Http({
|
|
911
|
+
method: "PATCH",
|
|
912
|
+
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets/{name}",
|
|
913
|
+
code: 200,
|
|
914
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
915
|
+
}),
|
|
916
|
+
),
|
|
917
|
+
).annotate({ identifier: "PatchManagedRuleSetRequest" });
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
function __c8(j: number): any {
|
|
921
|
+
switch (j) {
|
|
922
|
+
case 0:
|
|
923
|
+
return S.suspend(() =>
|
|
924
|
+
S.Struct({
|
|
925
|
+
projectId: S.String.pipe(T.Label()),
|
|
926
|
+
region: S.String.pipe(T.Label()),
|
|
927
|
+
name: S.String.pipe(T.Label()),
|
|
928
|
+
rules: __S(98, __c12, 2),
|
|
929
|
+
}).pipe(
|
|
930
|
+
T.Http({
|
|
931
|
+
method: "PUT",
|
|
932
|
+
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups/{name}",
|
|
933
|
+
code: 200,
|
|
934
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
935
|
+
}),
|
|
936
|
+
),
|
|
937
|
+
).annotate({ identifier: "UpdateCustomRuleGroupRequest" });
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
function __c9(j: number): any {
|
|
941
|
+
switch (j) {
|
|
942
|
+
case 0:
|
|
943
|
+
return S.suspend(() =>
|
|
944
|
+
S.Struct({
|
|
945
|
+
projectId: S.String.pipe(T.Label()),
|
|
946
|
+
region: S.String.pipe(T.Label()),
|
|
947
|
+
name: S.String.pipe(T.Label()),
|
|
948
|
+
customRuleGroupName: S.optional(S.String),
|
|
949
|
+
labels: S.optional(__S(144, __c18, 0)),
|
|
950
|
+
managedRuleSetName: S.optional(S.String),
|
|
951
|
+
}).pipe(
|
|
952
|
+
T.Http({
|
|
953
|
+
method: "PUT",
|
|
954
|
+
uri: "/v1/projects/{projectId}/regions/{region}/wafs/{name}",
|
|
955
|
+
code: 200,
|
|
956
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
957
|
+
}),
|
|
958
|
+
),
|
|
959
|
+
).annotate({ identifier: "UpdateWAFRequest" });
|
|
960
|
+
}
|
|
961
|
+
}
|
|
962
|
+
function __c10(j: number): any {
|
|
963
|
+
switch (j) {
|
|
964
|
+
case 0:
|
|
965
|
+
return S.suspend(() =>
|
|
966
|
+
S.Struct({
|
|
967
|
+
projectId: S.String.pipe(T.Label()),
|
|
968
|
+
region: S.String.pipe(T.Label()),
|
|
969
|
+
name: S.String,
|
|
970
|
+
rules: __S(98, __c12, 2),
|
|
971
|
+
}).pipe(
|
|
972
|
+
T.Http({
|
|
973
|
+
method: "POST",
|
|
974
|
+
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups",
|
|
975
|
+
code: 200,
|
|
976
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
977
|
+
}),
|
|
978
|
+
),
|
|
979
|
+
).annotate({ identifier: "CreateCustomRuleGroupRequest" });
|
|
980
|
+
}
|
|
981
|
+
}
|
|
982
|
+
function __c11(j: number): any {
|
|
983
|
+
switch (j) {
|
|
984
|
+
case 0:
|
|
985
|
+
return S.suspend(() =>
|
|
986
|
+
S.Struct({
|
|
987
|
+
type: S.String,
|
|
988
|
+
value: S.optional(S.String),
|
|
989
|
+
}),
|
|
990
|
+
).annotate({ identifier: "ConditionOperator" });
|
|
991
|
+
case 1:
|
|
992
|
+
return S.Array(S.String);
|
|
993
|
+
case 2:
|
|
994
|
+
return S.suspend(() =>
|
|
995
|
+
S.Struct({
|
|
996
|
+
operator: __S(88, __c11, 0),
|
|
997
|
+
transformations: S.optional(__S(89, __c11, 1)),
|
|
998
|
+
variable: __S(88, __c11, 0),
|
|
999
|
+
}),
|
|
1000
|
+
).annotate({ identifier: "Condition" });
|
|
1001
|
+
case 3:
|
|
1002
|
+
return S.Array(__S(90, __c11, 2));
|
|
1003
|
+
case 4:
|
|
1004
|
+
return S.suspend(() =>
|
|
1005
|
+
S.Struct({
|
|
1006
|
+
action: S.String,
|
|
1007
|
+
log: S.Boolean,
|
|
1008
|
+
logMsg: S.optional(S.String),
|
|
1009
|
+
severity: S.String,
|
|
1010
|
+
}),
|
|
1011
|
+
).annotate({ identifier: "GetBehavior" });
|
|
1012
|
+
case 5:
|
|
1013
|
+
return S.suspend(() =>
|
|
1014
|
+
S.Struct({
|
|
1015
|
+
behavior: __S(92, __c11, 4),
|
|
1016
|
+
conditions: __S(91, __c11, 3),
|
|
1017
|
+
description: S.optional(S.String),
|
|
1018
|
+
id: S.Number,
|
|
1019
|
+
}),
|
|
1020
|
+
).annotate({ identifier: "GetCustomRule" });
|
|
1021
|
+
case 6:
|
|
1022
|
+
return S.Array(__S(93, __c11, 5));
|
|
1023
|
+
case 7:
|
|
1024
|
+
return S.suspend(() =>
|
|
1025
|
+
S.Struct({
|
|
1026
|
+
name: S.String,
|
|
1027
|
+
rules: __S(94, __c11, 6),
|
|
1028
|
+
usage: S.optional(__S(104, __c13, 0)),
|
|
1029
|
+
}),
|
|
1030
|
+
).annotate({ identifier: "GetCustomRuleGroupResponse" });
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
function __c12(j: number): any {
|
|
1034
|
+
switch (j) {
|
|
1035
|
+
case 0:
|
|
1036
|
+
return S.suspend(() =>
|
|
1037
|
+
S.Struct({
|
|
1038
|
+
action: S.String,
|
|
1039
|
+
log: S.optional(S.Boolean),
|
|
1040
|
+
logMsg: S.optional(S.String),
|
|
1041
|
+
}),
|
|
1042
|
+
).annotate({ identifier: "Behavior" });
|
|
1043
|
+
case 1:
|
|
1044
|
+
return S.suspend(() =>
|
|
1045
|
+
S.Struct({
|
|
1046
|
+
behavior: __S(96, __c12, 0),
|
|
1047
|
+
conditions: __S(91, __c11, 3),
|
|
1048
|
+
description: S.optional(S.String),
|
|
1049
|
+
}),
|
|
1050
|
+
).annotate({ identifier: "CreateCustomRule" });
|
|
1051
|
+
case 2:
|
|
1052
|
+
return S.Array(__S(97, __c12, 1));
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
function __c13(j: number): any {
|
|
1056
|
+
switch (j) {
|
|
1057
|
+
case 0:
|
|
1058
|
+
return S.suspend(() =>
|
|
1059
|
+
S.Struct({
|
|
1060
|
+
count: S.optional(S.Number),
|
|
1061
|
+
items: S.optional(__S(112, __c14, 0)),
|
|
1062
|
+
}),
|
|
1063
|
+
).annotate({ identifier: "CRGUsage" });
|
|
1064
|
+
}
|
|
1065
|
+
}
|
|
1066
|
+
function __c14(j: number): any {
|
|
1067
|
+
switch (j) {
|
|
1068
|
+
case 0:
|
|
1069
|
+
return S.Array(S.String);
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
function __c15(j: number): any {
|
|
1073
|
+
switch (j) {
|
|
1074
|
+
case 0:
|
|
1075
|
+
return S.suspend(() =>
|
|
1076
|
+
S.Struct({
|
|
1077
|
+
projectId: S.String.pipe(T.Label()),
|
|
1078
|
+
region: S.String.pipe(T.Label()),
|
|
1079
|
+
name: S.String,
|
|
1080
|
+
type: S.String,
|
|
1081
|
+
}).pipe(
|
|
1082
|
+
T.Http({
|
|
1083
|
+
method: "POST",
|
|
1084
|
+
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets",
|
|
1085
|
+
code: 200,
|
|
1086
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
1087
|
+
}),
|
|
1088
|
+
),
|
|
1089
|
+
).annotate({ identifier: "CreateManagedRuleSetRequest" });
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
function __c16(j: number): any {
|
|
1093
|
+
switch (j) {
|
|
1094
|
+
case 0:
|
|
1095
|
+
return S.suspend(() =>
|
|
1096
|
+
S.Struct({
|
|
1097
|
+
description: S.String,
|
|
1098
|
+
mode: S.String,
|
|
1099
|
+
severity: S.String,
|
|
1100
|
+
}),
|
|
1101
|
+
).annotate({ identifier: "MRSRule" });
|
|
1102
|
+
case 1:
|
|
1103
|
+
return S.Record(S.String, __S(128, __c16, 0));
|
|
1104
|
+
case 2:
|
|
1105
|
+
return S.suspend(() =>
|
|
1106
|
+
S.Struct({
|
|
1107
|
+
description: S.String,
|
|
1108
|
+
groupName: S.String,
|
|
1109
|
+
rules: S.optional(__S(129, __c16, 1)),
|
|
1110
|
+
}),
|
|
1111
|
+
).annotate({ identifier: "MRSRuleGroup" });
|
|
1112
|
+
case 3:
|
|
1113
|
+
return S.Record(S.String, __S(130, __c16, 2));
|
|
1114
|
+
case 4:
|
|
1115
|
+
return S.suspend(() =>
|
|
1116
|
+
S.Struct({
|
|
1117
|
+
groups: S.optional(__S(131, __c16, 3)),
|
|
1118
|
+
name: S.String,
|
|
1119
|
+
type: S.String,
|
|
1120
|
+
usage: S.optional(__S(104, __c13, 0)),
|
|
1121
|
+
version: S.String,
|
|
1122
|
+
}),
|
|
1123
|
+
).annotate({ identifier: "GetManagedRuleSetResponse" });
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
function __c17(j: number): any {
|
|
1127
|
+
switch (j) {
|
|
1128
|
+
case 0:
|
|
1129
|
+
return S.suspend(() =>
|
|
1130
|
+
S.Struct({
|
|
1131
|
+
projectId: S.String.pipe(T.Label()),
|
|
1132
|
+
region: S.String.pipe(T.Label()),
|
|
1133
|
+
customRuleGroupName: S.optional(S.String),
|
|
1134
|
+
labels: S.optional(__S(144, __c18, 0)),
|
|
1135
|
+
managedRuleSetName: S.optional(S.String),
|
|
1136
|
+
name: S.String,
|
|
1137
|
+
}).pipe(
|
|
1138
|
+
T.Http({
|
|
1139
|
+
method: "POST",
|
|
1140
|
+
uri: "/v1/projects/{projectId}/regions/{region}/wafs",
|
|
1141
|
+
code: 200,
|
|
1142
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
1143
|
+
}),
|
|
1144
|
+
),
|
|
1145
|
+
).annotate({ identifier: "CreateWAFRequest" });
|
|
1146
|
+
}
|
|
1147
|
+
}
|
|
1148
|
+
function __c18(j: number): any {
|
|
1149
|
+
switch (j) {
|
|
1150
|
+
case 0:
|
|
1151
|
+
return S.Record(S.String, S.String);
|
|
1152
|
+
case 1:
|
|
1153
|
+
return S.suspend(() =>
|
|
1154
|
+
S.Struct({
|
|
1155
|
+
listenerNames: S.optional(__S(112, __c14, 0)),
|
|
1156
|
+
loadBalancerName: S.String,
|
|
1157
|
+
}),
|
|
1158
|
+
).annotate({ identifier: "WAFUsageItem" });
|
|
1159
|
+
case 2:
|
|
1160
|
+
return S.Array(__S(145, __c18, 1));
|
|
1161
|
+
case 3:
|
|
1162
|
+
return S.suspend(() =>
|
|
1163
|
+
S.Struct({
|
|
1164
|
+
count: S.optional(S.Number),
|
|
1165
|
+
items: S.optional(__S(146, __c18, 2)),
|
|
1166
|
+
}),
|
|
1167
|
+
).annotate({ identifier: "WAFUsage" });
|
|
1168
|
+
case 4:
|
|
1169
|
+
return S.suspend(() =>
|
|
1170
|
+
S.Struct({
|
|
1171
|
+
customRuleGroupName: S.optional(S.String),
|
|
1172
|
+
labels: S.optional(__S(144, __c18, 0)),
|
|
1173
|
+
managedRuleSetName: S.optional(S.String),
|
|
1174
|
+
name: S.String,
|
|
1175
|
+
usage: S.optional(__S(147, __c18, 3)),
|
|
1176
|
+
}),
|
|
1177
|
+
).annotate({ identifier: "GetWAFResponse" });
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
function __c19(j: number): any {
|
|
1181
|
+
switch (j) {
|
|
1182
|
+
case 0:
|
|
1183
|
+
return S.suspend(() =>
|
|
1184
|
+
S.Struct({
|
|
1185
|
+
projectId: S.String.pipe(T.Label()),
|
|
1186
|
+
region: S.String.pipe(T.Label()),
|
|
1187
|
+
name: S.String.pipe(T.Label()),
|
|
1188
|
+
}).pipe(
|
|
1189
|
+
T.Http({
|
|
1190
|
+
method: "DELETE",
|
|
1191
|
+
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups/{name}",
|
|
1192
|
+
code: 200,
|
|
1193
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
1194
|
+
}),
|
|
1195
|
+
),
|
|
1196
|
+
).annotate({ identifier: "DeleteCustomRuleGroupRequest" });
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
function __c20(j: number): any {
|
|
1200
|
+
switch (j) {
|
|
1201
|
+
case 0:
|
|
1202
|
+
return S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
1203
|
+
identifier: "DeleteCustomRuleGroupResponse2",
|
|
1204
|
+
});
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
function __c21(j: number): any {
|
|
1208
|
+
switch (j) {
|
|
1209
|
+
case 0:
|
|
1210
|
+
return S.suspend(() =>
|
|
1211
|
+
S.Struct({
|
|
1212
|
+
projectId: S.String.pipe(T.Label()),
|
|
1213
|
+
region: S.String.pipe(T.Label()),
|
|
1214
|
+
name: S.String.pipe(T.Label()),
|
|
1215
|
+
}).pipe(
|
|
1216
|
+
T.Http({
|
|
1217
|
+
method: "DELETE",
|
|
1218
|
+
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets/{name}",
|
|
1219
|
+
code: 200,
|
|
1220
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
1221
|
+
}),
|
|
1222
|
+
),
|
|
1223
|
+
).annotate({ identifier: "DeleteManagedRuleSetRequest" });
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
function __c22(j: number): any {
|
|
1227
|
+
switch (j) {
|
|
1228
|
+
case 0:
|
|
1229
|
+
return S.suspend(() =>
|
|
1230
|
+
S.Struct({
|
|
1231
|
+
projectId: S.String.pipe(T.Label()),
|
|
1232
|
+
region: S.String.pipe(T.Label()),
|
|
1233
|
+
name: S.String.pipe(T.Label()),
|
|
1234
|
+
}).pipe(
|
|
1235
|
+
T.Http({
|
|
1236
|
+
method: "DELETE",
|
|
1237
|
+
uri: "/v1/projects/{projectId}/regions/{region}/wafs/{name}",
|
|
1238
|
+
code: 200,
|
|
1239
|
+
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
1240
|
+
}),
|
|
1241
|
+
),
|
|
1242
|
+
).annotate({ identifier: "DeleteWAFRequest" });
|
|
1243
|
+
}
|
|
1244
|
+
}
|
|
1245
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
1246
|
+
function __S(i: number, f: (j: number) => unknown, j: number): any {
|
|
1247
|
+
return (__s[i] ??= __L.at(f, j));
|
|
1248
|
+
}
|