@distilled.cloud/stackit 1.0.0-rc.15 → 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/lib/services/alb_waf.js
CHANGED
|
@@ -1,521 +1,95 @@
|
|
|
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.js";
|
|
6
7
|
import { StackitProtocol } from "../protocol.js";
|
|
7
8
|
import * as Retry from "../retry.js";
|
|
8
9
|
import * as T from "../traits.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
const __0 = __L.at;
|
|
11
|
+
const __1 = T.Http;
|
|
12
|
+
const __2 = T.Label;
|
|
13
|
+
const __3 = S.String;
|
|
14
|
+
const __4 = S.Struct;
|
|
15
|
+
const __5 = S.suspend;
|
|
16
|
+
const __6 = S.Number;
|
|
17
|
+
const __7 = S.optional;
|
|
18
|
+
const __8 = T.Query;
|
|
19
|
+
const __9 = S.Array;
|
|
20
|
+
const __10 = S.Record;
|
|
21
|
+
const __11 = S.Boolean;
|
|
22
|
+
const __12 = T.RawResponseRoot;
|
|
23
|
+
const __13 = S.Unknown;
|
|
24
|
+
const __14 = S.TaggedError;
|
|
25
|
+
const __15 = T.applyErrorMatchers;
|
|
26
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
27
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __6, __3, __14, __15]]);
|
|
28
|
+
});
|
|
29
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
30
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __6, __3, __14, __15]]);
|
|
31
|
+
});
|
|
32
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
33
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __6, __3, __14, __15]]);
|
|
34
|
+
});
|
|
35
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
36
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __6, __3, __14, __15]]);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export const createCustomRuleGroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:7,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"CreateCustomRuleGroupRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3,rules:#4:2}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/regions/{region}/custom-rule-groups",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}))', [__0, __1, __2, __3, __d1, __4, __5, __d0, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createCustomRuleGroup, i));
|
|
40
|
+
|
|
41
|
+
export const createManagedRuleSet = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:4,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"CreateManagedRuleSetRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3,type:$3}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/regions/{region}/managed-rule-sets",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createManagedRuleSet, i));
|
|
42
|
+
|
|
43
|
+
export const createWAF = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:4,errors:[$8,$9,$10],protocol:$11,retry:$12};$7(>2)@"CreateWAFRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),customRuleGroupName:$4($3),labels:$4(#5:0),managedRuleSetName:$4($3),name:$3}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/regions/{region}/wafs",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __d5, __4, __5, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createWAF, i));
|
|
44
|
+
|
|
45
|
+
export const deleteCustomRuleGroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteCustomRuleGroupRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{region}/custom-rule-groups/{name}",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d6, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteCustomRuleGroup, i));
|
|
46
|
+
|
|
47
|
+
export const deleteManagedRuleSet = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteManagedRuleSetRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{region}/managed-rule-sets/{name}",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d6, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteManagedRuleSet, i));
|
|
48
|
+
|
|
49
|
+
export const deleteWAF = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteWAFRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/regions/{region}/wafs/{name}",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d6, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteWAF, i));
|
|
50
|
+
|
|
51
|
+
export const getCustomRuleGroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:7,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetCustomRuleGroupRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/custom-rule-groups/{name}",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getCustomRuleGroup, i));
|
|
52
|
+
|
|
53
|
+
export const getManagedRuleSet = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:4,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetManagedRuleSetRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/managed-rule-sets/{name}",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getManagedRuleSet, i));
|
|
54
|
+
|
|
55
|
+
export const getQuota = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>5)@"GetQuotaRequest";$5(>6)@"CRGConfigQuota";$5(>7)@"Quotas";$5(>8)@"GetQuotaResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/quotas",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}));$4({limit:$7($6),usage:$7($6)});$4({customRuleGroup:#2,managedRuleSet:#2,webApplicationFirewall:#2});$4({projectId:$7($3),quotas:#3,region:$7($3)})', [__0, __1, __2, __3, __4, __5, __6, __7, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getQuota, i));
|
|
56
|
+
|
|
57
|
+
export const getWAF = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:4,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetWAFRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/wafs/{name}",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d5, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getWAF, i));
|
|
58
|
+
|
|
59
|
+
export const listCustomRuleGroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$10,$11,$12],protocol:$13,retry:$14};$7(>4)@"ListCustomRuleGroupRequest";$9(#8:7);$7(>5)@"ListCustomRuleGroupResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),pageSize:$5($3.pipe($4())),pageId:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/custom-rule-groups",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}));$6({items:$5(#2),nextPageId:$5($3)})', [__0, __1, __2, __3, __8, __7, __4, __5, __d0, __9, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listCustomRuleGroup, i));
|
|
60
|
+
|
|
61
|
+
export const listManagedRuleSets = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$10,$11,$12],protocol:$13,retry:$14};$7(>5)@"ListManagedRuleSetsRequest";$7(>6)@"GetLimitedManagedRuleSetResponse";$9(#2);$7(>7)@"ListManagedRuleSetResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),pageSize:$5($3.pipe($4())),pageId:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/managed-rule-sets",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}));$6({name:$3,type:$3,usage:$5(#8:0),version:$3});$6({items:$5(#3),nextPageId:$5($3)})', [__0, __1, __2, __3, __8, __7, __4, __5, __d2, __9, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listManagedRuleSets, i));
|
|
62
|
+
|
|
63
|
+
export const listWAF = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$10,$11,$12],protocol:$13,retry:$14};$7(>4)@"ListWAFRequest";$9(#8:4);$7(>5)@"ListWAFResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),pageSize:$5($3.pipe($4())),pageId:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/regions/{region}/wafs",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}));$6({items:$5(#2),nextPageId:$5($3)})', [__0, __1, __2, __3, __8, __7, __4, __5, __d5, __9, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listWAF, i));
|
|
64
|
+
|
|
65
|
+
export const patchManagedRuleSet = /*@__PURE__*/ API.op((i) => i === API.D ? API.named("PatchMRSRule", '{input:#5,output:#8:4,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$4(>6)@"%";$5($1,#1);$4(>7)@"%Group";$5($1,#3);$4(>8)@"PatchManagedRuleSetRequest";$3({mode:$2($1)});$3({rules:#2});$3({projectId:$1.pipe($7()),region:$1.pipe($7()),name:$1.pipe($7()),groups:#4}).pipe($6({method:"PATCH",uri:"/v1/projects/{projectId}/regions/{region}/managed-rule-sets/{name}",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}))', [__0, __3, __7, __4, __5, __10, __1, __2, __d4, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]) : API.call(patchManagedRuleSet, i));
|
|
66
|
+
|
|
67
|
+
export const updateCustomRuleGroup = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:7,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"UpdateCustomRuleGroupRequest";$5({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2()),rules:#4:2}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/regions/{region}/custom-rule-groups/{name}",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}))', [__0, __1, __2, __3, __d1, __4, __5, __d0, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateCustomRuleGroup, i));
|
|
68
|
+
|
|
69
|
+
export const updateWAF = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#5:4,errors:[$8,$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"UpdateWAFRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2()),customRuleGroupName:$4($3),labels:$4(#5:0),managedRuleSetName:$4($3)}).pipe($1({method:"PUT",uri:"/v1/projects/{projectId}/regions/{region}/wafs/{name}",code:200,baseUrl:"https://alb-waf.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __d5, __4, __5, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateWAF, i));
|
|
70
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
71
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
// Shared schema data (see `op` in core/api).
|
|
75
|
+
function __d0() {
|
|
76
|
+
return ['$4(>8)@"ConditionOperator";$5($1);$4(>9)@"Condition";$5(#2);$4(>10)@"GetBehavior";$4(>11)@"GetCustomRule";$5(#5);$4(>12)@"GetCustomRuleGroupResponse";$3({type:$1,value:$2($1)});$3({operator:#0,transformations:$2(#1),variable:#0});$3({action:$1,log:$6,logMsg:$2($1),severity:$1});$3({behavior:#4,conditions:#3,description:$2($1),id:$7});$3({name:$1,rules:#6,usage:$2(#8:0)})', [__0, __3, __7, __4, __5, __9, __11, __6, __d2]];
|
|
14
77
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
code: S.Number,
|
|
18
|
-
message: S.String,
|
|
19
|
-
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
78
|
+
function __d1() {
|
|
79
|
+
return ['$5(>3)@"Behavior";$5(>4)@"CreateCustomRule";$7(#1);$4({action:$1,log:$3($2),logMsg:$3($1)});$4({behavior:#0,conditions:#6:3,description:$3($1)})', [__0, __3, __11, __7, __4, __5, __d0, __9]];
|
|
20
80
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
code: S.Number,
|
|
24
|
-
message: S.String,
|
|
25
|
-
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
81
|
+
function __d2() {
|
|
82
|
+
return ['$5(>1)@"CRGUsage";$4({count:$2($1),items:$2(#3:0)})', [__0, __6, __7, __d3, __4, __5]];
|
|
26
83
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
})
|
|
84
|
+
function __d3() {
|
|
85
|
+
return ['$2($1)', [__0, __3, __9]];
|
|
86
|
+
}
|
|
87
|
+
function __d4() {
|
|
88
|
+
return ['$3(>5)@"MRSRule";$4($1,#0);$3(>6)@"MRSRuleGroup";$4($1,#2);$3(>7)@"GetManagedRuleSetResponse";$2({description:$1,mode:$1,severity:$1});$2({description:$1,groupName:$1,rules:$5(#1)});$2({groups:$5(#3),name:$1,type:$1,usage:$5(#6:0),version:$1})', [__0, __3, __4, __5, __10, __7, __d2]];
|
|
89
|
+
}
|
|
90
|
+
function __d5() {
|
|
91
|
+
return ['$2($1,$1);$6(>5)@"WAFUsageItem";$7(#1);$6(>6)@"WAFUsage";$6(>7)@"GetWAFResponse";$5({listenerNames:$4(#3:0),loadBalancerName:$1});$5({count:$4($8),items:$4(#2)});$5({customRuleGroupName:$4($1),labels:$4(#0),managedRuleSetName:$4($1),name:$1,usage:$4(#3)})', [__0, __3, __10, __d3, __7, __4, __5, __9, __6]];
|
|
92
|
+
}
|
|
93
|
+
function __d6() {
|
|
94
|
+
return ['$3(>1)@"DeleteCustomRuleGroupResponse2";$2.pipe($1())', [__0, __12, __13, __5]];
|
|
32
95
|
}
|
|
33
|
-
export const Action = S.String;
|
|
34
|
-
export const Behavior = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
35
|
-
action: Action,
|
|
36
|
-
log: S.optional(S.Boolean),
|
|
37
|
-
logMsg: S.optional(S.String),
|
|
38
|
-
})).annotate({ identifier: "Behavior" });
|
|
39
|
-
export const Operator = S.String;
|
|
40
|
-
export const ConditionOperator = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
41
|
-
type: Operator,
|
|
42
|
-
value: S.optional(S.String),
|
|
43
|
-
})).annotate({ identifier: "ConditionOperator" });
|
|
44
|
-
export const Transformation = S.String;
|
|
45
|
-
export const ConditionTransformationsList = /*@__PURE__*/ S.Array(Transformation);
|
|
46
|
-
export const Variable = S.String;
|
|
47
|
-
export const ConditionVariable = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
48
|
-
type: Variable,
|
|
49
|
-
value: S.optional(S.String),
|
|
50
|
-
})).annotate({ identifier: "ConditionVariable" });
|
|
51
|
-
export const Condition = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
52
|
-
operator: ConditionOperator,
|
|
53
|
-
transformations: S.optional(ConditionTransformationsList),
|
|
54
|
-
variable: ConditionVariable,
|
|
55
|
-
})).annotate({ identifier: "Condition" });
|
|
56
|
-
export const CreateCustomRuleConditionsList = /*@__PURE__*/ S.Array(Condition);
|
|
57
|
-
export const CreateCustomRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
|
-
behavior: Behavior,
|
|
59
|
-
conditions: CreateCustomRuleConditionsList,
|
|
60
|
-
description: S.optional(S.String),
|
|
61
|
-
})).annotate({ identifier: "CreateCustomRule" });
|
|
62
|
-
export const CreateCustomRuleGroupRequestRulesList = /*@__PURE__*/ S.Array(CreateCustomRule);
|
|
63
|
-
export const CreateCustomRuleGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
64
|
-
projectId: S.String.pipe(T.Label()),
|
|
65
|
-
region: S.String.pipe(T.Label()),
|
|
66
|
-
name: S.String,
|
|
67
|
-
rules: CreateCustomRuleGroupRequestRulesList,
|
|
68
|
-
}).pipe(T.Http({
|
|
69
|
-
method: "POST",
|
|
70
|
-
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups",
|
|
71
|
-
code: 200,
|
|
72
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
73
|
-
}))).annotate({
|
|
74
|
-
identifier: "CreateCustomRuleGroupRequest",
|
|
75
|
-
});
|
|
76
|
-
export const Severity = S.String;
|
|
77
|
-
export const GetBehavior = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
78
|
-
action: Action,
|
|
79
|
-
log: S.Boolean,
|
|
80
|
-
logMsg: S.optional(S.String),
|
|
81
|
-
severity: Severity,
|
|
82
|
-
})).annotate({ identifier: "GetBehavior" });
|
|
83
|
-
export const GetCustomRuleConditionsList = /*@__PURE__*/ S.Array(Condition);
|
|
84
|
-
export const GetCustomRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
85
|
-
behavior: GetBehavior,
|
|
86
|
-
conditions: GetCustomRuleConditionsList,
|
|
87
|
-
description: S.optional(S.String),
|
|
88
|
-
id: S.Number,
|
|
89
|
-
})).annotate({ identifier: "GetCustomRule" });
|
|
90
|
-
export const GetCustomRuleGroupResponseRulesList = /*@__PURE__*/ S.Array(GetCustomRule);
|
|
91
|
-
export const CRGUsageItemsList = /*@__PURE__*/ S.Array(S.String);
|
|
92
|
-
export const CRGUsage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
93
|
-
count: S.optional(S.Number),
|
|
94
|
-
items: S.optional(CRGUsageItemsList),
|
|
95
|
-
})).annotate({ identifier: "CRGUsage" });
|
|
96
|
-
export const GetCustomRuleGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
97
|
-
name: S.String,
|
|
98
|
-
rules: GetCustomRuleGroupResponseRulesList,
|
|
99
|
-
usage: S.optional(CRGUsage),
|
|
100
|
-
})).annotate({
|
|
101
|
-
identifier: "GetCustomRuleGroupResponse",
|
|
102
|
-
});
|
|
103
|
-
export const Type = S.String;
|
|
104
|
-
export const CreateManagedRuleSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
105
|
-
projectId: S.String.pipe(T.Label()),
|
|
106
|
-
region: S.String.pipe(T.Label()),
|
|
107
|
-
name: S.String,
|
|
108
|
-
type: Type,
|
|
109
|
-
}).pipe(T.Http({
|
|
110
|
-
method: "POST",
|
|
111
|
-
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets",
|
|
112
|
-
code: 200,
|
|
113
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
114
|
-
}))).annotate({
|
|
115
|
-
identifier: "CreateManagedRuleSetRequest",
|
|
116
|
-
});
|
|
117
|
-
export const Mode = S.String;
|
|
118
|
-
export const MRSRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
119
|
-
description: S.String,
|
|
120
|
-
mode: Mode,
|
|
121
|
-
severity: S.String,
|
|
122
|
-
})).annotate({ identifier: "MRSRule" });
|
|
123
|
-
export const MRSRuleGroupRulesMap = /*@__PURE__*/ S.Record(S.String, MRSRule);
|
|
124
|
-
export const MRSRuleGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
125
|
-
description: S.String,
|
|
126
|
-
groupName: S.String,
|
|
127
|
-
rules: S.optional(MRSRuleGroupRulesMap),
|
|
128
|
-
})).annotate({ identifier: "MRSRuleGroup" });
|
|
129
|
-
export const GetManagedRuleSetResponseGroupsMap = /*@__PURE__*/ S.Record(S.String, MRSRuleGroup);
|
|
130
|
-
export const MRSUsageItemsList = /*@__PURE__*/ S.Array(S.String);
|
|
131
|
-
export const MRSUsage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
132
|
-
count: S.optional(S.Number),
|
|
133
|
-
items: S.optional(MRSUsageItemsList),
|
|
134
|
-
})).annotate({ identifier: "MRSUsage" });
|
|
135
|
-
export const GetManagedRuleSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
136
|
-
groups: S.optional(GetManagedRuleSetResponseGroupsMap),
|
|
137
|
-
name: S.String,
|
|
138
|
-
type: Type,
|
|
139
|
-
usage: S.optional(MRSUsage),
|
|
140
|
-
version: S.String,
|
|
141
|
-
})).annotate({
|
|
142
|
-
identifier: "GetManagedRuleSetResponse",
|
|
143
|
-
});
|
|
144
|
-
export const CreateWAFRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
145
|
-
export const CreateWAFRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
146
|
-
projectId: S.String.pipe(T.Label()),
|
|
147
|
-
region: S.String.pipe(T.Label()),
|
|
148
|
-
customRuleGroupName: S.optional(S.String),
|
|
149
|
-
labels: S.optional(CreateWAFRequestLabelsMap),
|
|
150
|
-
managedRuleSetName: S.optional(S.String),
|
|
151
|
-
name: S.String,
|
|
152
|
-
}).pipe(T.Http({
|
|
153
|
-
method: "POST",
|
|
154
|
-
uri: "/v1/projects/{projectId}/regions/{region}/wafs",
|
|
155
|
-
code: 200,
|
|
156
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
157
|
-
}))).annotate({ identifier: "CreateWAFRequest" });
|
|
158
|
-
export const GetWAFResponseLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
159
|
-
export const WAFUsageItemListenerNamesList = /*@__PURE__*/ S.Array(S.String);
|
|
160
|
-
export const WAFUsageItem = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
161
|
-
listenerNames: S.optional(WAFUsageItemListenerNamesList),
|
|
162
|
-
loadBalancerName: S.String,
|
|
163
|
-
})).annotate({ identifier: "WAFUsageItem" });
|
|
164
|
-
export const WAFUsageItemsList = /*@__PURE__*/ S.Array(WAFUsageItem);
|
|
165
|
-
export const WAFUsage = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
166
|
-
count: S.optional(S.Number),
|
|
167
|
-
items: S.optional(WAFUsageItemsList),
|
|
168
|
-
})).annotate({ identifier: "WAFUsage" });
|
|
169
|
-
export const GetWAFResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
170
|
-
customRuleGroupName: S.optional(S.String),
|
|
171
|
-
labels: S.optional(GetWAFResponseLabelsMap),
|
|
172
|
-
managedRuleSetName: S.optional(S.String),
|
|
173
|
-
name: S.String,
|
|
174
|
-
usage: S.optional(WAFUsage),
|
|
175
|
-
})).annotate({ identifier: "GetWAFResponse" });
|
|
176
|
-
export const DeleteCustomRuleGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
177
|
-
projectId: S.String.pipe(T.Label()),
|
|
178
|
-
region: S.String.pipe(T.Label()),
|
|
179
|
-
name: S.String.pipe(T.Label()),
|
|
180
|
-
}).pipe(T.Http({
|
|
181
|
-
method: "DELETE",
|
|
182
|
-
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups/{name}",
|
|
183
|
-
code: 200,
|
|
184
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
185
|
-
}))).annotate({
|
|
186
|
-
identifier: "DeleteCustomRuleGroupRequest",
|
|
187
|
-
});
|
|
188
|
-
export const DeleteCustomRuleGroupResponse2 = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
189
|
-
identifier: "DeleteCustomRuleGroupResponse2",
|
|
190
|
-
});
|
|
191
|
-
export const DeleteManagedRuleSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
192
|
-
projectId: S.String.pipe(T.Label()),
|
|
193
|
-
region: S.String.pipe(T.Label()),
|
|
194
|
-
name: S.String.pipe(T.Label()),
|
|
195
|
-
}).pipe(T.Http({
|
|
196
|
-
method: "DELETE",
|
|
197
|
-
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets/{name}",
|
|
198
|
-
code: 200,
|
|
199
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
200
|
-
}))).annotate({
|
|
201
|
-
identifier: "DeleteManagedRuleSetRequest",
|
|
202
|
-
});
|
|
203
|
-
export const DeleteManagedRuleSetResponse2 = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
|
|
204
|
-
identifier: "DeleteManagedRuleSetResponse2",
|
|
205
|
-
});
|
|
206
|
-
export const DeleteWAFRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
207
|
-
projectId: S.String.pipe(T.Label()),
|
|
208
|
-
region: S.String.pipe(T.Label()),
|
|
209
|
-
name: S.String.pipe(T.Label()),
|
|
210
|
-
}).pipe(T.Http({
|
|
211
|
-
method: "DELETE",
|
|
212
|
-
uri: "/v1/projects/{projectId}/regions/{region}/wafs/{name}",
|
|
213
|
-
code: 200,
|
|
214
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
215
|
-
}))).annotate({ identifier: "DeleteWAFRequest" });
|
|
216
|
-
export const DeleteWAFResponse2 = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({ identifier: "DeleteWAFResponse2" });
|
|
217
|
-
export const GetCustomRuleGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
218
|
-
projectId: S.String.pipe(T.Label()),
|
|
219
|
-
region: S.String.pipe(T.Label()),
|
|
220
|
-
name: S.String.pipe(T.Label()),
|
|
221
|
-
}).pipe(T.Http({
|
|
222
|
-
method: "GET",
|
|
223
|
-
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups/{name}",
|
|
224
|
-
code: 200,
|
|
225
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
226
|
-
}))).annotate({
|
|
227
|
-
identifier: "GetCustomRuleGroupRequest",
|
|
228
|
-
});
|
|
229
|
-
export const GetManagedRuleSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
230
|
-
projectId: S.String.pipe(T.Label()),
|
|
231
|
-
region: S.String.pipe(T.Label()),
|
|
232
|
-
name: S.String.pipe(T.Label()),
|
|
233
|
-
}).pipe(T.Http({
|
|
234
|
-
method: "GET",
|
|
235
|
-
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets/{name}",
|
|
236
|
-
code: 200,
|
|
237
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
238
|
-
}))).annotate({ identifier: "GetManagedRuleSetRequest" });
|
|
239
|
-
export const GetQuotaRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
240
|
-
projectId: S.String.pipe(T.Label()),
|
|
241
|
-
region: S.String.pipe(T.Label()),
|
|
242
|
-
}).pipe(T.Http({
|
|
243
|
-
method: "GET",
|
|
244
|
-
uri: "/v1/projects/{projectId}/regions/{region}/quotas",
|
|
245
|
-
code: 200,
|
|
246
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
247
|
-
}))).annotate({ identifier: "GetQuotaRequest" });
|
|
248
|
-
export const CRGConfigQuota = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
249
|
-
limit: S.optional(S.Number),
|
|
250
|
-
usage: S.optional(S.Number),
|
|
251
|
-
})).annotate({ identifier: "CRGConfigQuota" });
|
|
252
|
-
export const MRSConfigQuota = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
253
|
-
limit: S.optional(S.Number),
|
|
254
|
-
usage: S.optional(S.Number),
|
|
255
|
-
})).annotate({ identifier: "MRSConfigQuota" });
|
|
256
|
-
export const WAFConfigQuota = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
257
|
-
limit: S.optional(S.Number),
|
|
258
|
-
usage: S.optional(S.Number),
|
|
259
|
-
})).annotate({ identifier: "WAFConfigQuota" });
|
|
260
|
-
export const Quotas = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
261
|
-
customRuleGroup: CRGConfigQuota,
|
|
262
|
-
managedRuleSet: MRSConfigQuota,
|
|
263
|
-
webApplicationFirewall: WAFConfigQuota,
|
|
264
|
-
})).annotate({ identifier: "Quotas" });
|
|
265
|
-
export const GetQuotaResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
266
|
-
projectId: S.optional(S.String),
|
|
267
|
-
quotas: Quotas,
|
|
268
|
-
region: S.optional(S.String),
|
|
269
|
-
})).annotate({ identifier: "GetQuotaResponse" });
|
|
270
|
-
export const GetWAFRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
271
|
-
projectId: S.String.pipe(T.Label()),
|
|
272
|
-
region: S.String.pipe(T.Label()),
|
|
273
|
-
name: S.String.pipe(T.Label()),
|
|
274
|
-
}).pipe(T.Http({
|
|
275
|
-
method: "GET",
|
|
276
|
-
uri: "/v1/projects/{projectId}/regions/{region}/wafs/{name}",
|
|
277
|
-
code: 200,
|
|
278
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
279
|
-
}))).annotate({ identifier: "GetWAFRequest" });
|
|
280
|
-
export const ListCustomRuleGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
281
|
-
projectId: S.String.pipe(T.Label()),
|
|
282
|
-
region: S.String.pipe(T.Label()),
|
|
283
|
-
pageSize: S.optional(S.String.pipe(T.Query())),
|
|
284
|
-
pageId: S.optional(S.String.pipe(T.Query())),
|
|
285
|
-
}).pipe(T.Http({
|
|
286
|
-
method: "GET",
|
|
287
|
-
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups",
|
|
288
|
-
code: 200,
|
|
289
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
290
|
-
}))).annotate({
|
|
291
|
-
identifier: "ListCustomRuleGroupRequest",
|
|
292
|
-
});
|
|
293
|
-
export const ListCustomRuleGroupResponseItemsList = /*@__PURE__*/ S.Array(GetCustomRuleGroupResponse);
|
|
294
|
-
export const ListCustomRuleGroupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
295
|
-
items: S.optional(ListCustomRuleGroupResponseItemsList),
|
|
296
|
-
nextPageId: S.optional(S.String),
|
|
297
|
-
})).annotate({
|
|
298
|
-
identifier: "ListCustomRuleGroupResponse",
|
|
299
|
-
});
|
|
300
|
-
export const ListManagedRuleSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
301
|
-
projectId: S.String.pipe(T.Label()),
|
|
302
|
-
region: S.String.pipe(T.Label()),
|
|
303
|
-
pageSize: S.optional(S.String.pipe(T.Query())),
|
|
304
|
-
pageId: S.optional(S.String.pipe(T.Query())),
|
|
305
|
-
}).pipe(T.Http({
|
|
306
|
-
method: "GET",
|
|
307
|
-
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets",
|
|
308
|
-
code: 200,
|
|
309
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
310
|
-
}))).annotate({
|
|
311
|
-
identifier: "ListManagedRuleSetsRequest",
|
|
312
|
-
});
|
|
313
|
-
export const GetLimitedManagedRuleSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
314
|
-
name: S.String,
|
|
315
|
-
type: Type,
|
|
316
|
-
usage: S.optional(MRSUsage),
|
|
317
|
-
version: S.String,
|
|
318
|
-
})).annotate({
|
|
319
|
-
identifier: "GetLimitedManagedRuleSetResponse",
|
|
320
|
-
});
|
|
321
|
-
export const ListManagedRuleSetResponseItemsList = /*@__PURE__*/ S.Array(GetLimitedManagedRuleSetResponse);
|
|
322
|
-
export const ListManagedRuleSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
323
|
-
items: S.optional(ListManagedRuleSetResponseItemsList),
|
|
324
|
-
nextPageId: S.optional(S.String),
|
|
325
|
-
})).annotate({
|
|
326
|
-
identifier: "ListManagedRuleSetResponse",
|
|
327
|
-
});
|
|
328
|
-
export const ListWAFRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
329
|
-
projectId: S.String.pipe(T.Label()),
|
|
330
|
-
region: S.String.pipe(T.Label()),
|
|
331
|
-
pageSize: S.optional(S.String.pipe(T.Query())),
|
|
332
|
-
pageId: S.optional(S.String.pipe(T.Query())),
|
|
333
|
-
}).pipe(T.Http({
|
|
334
|
-
method: "GET",
|
|
335
|
-
uri: "/v1/projects/{projectId}/regions/{region}/wafs",
|
|
336
|
-
code: 200,
|
|
337
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
338
|
-
}))).annotate({ identifier: "ListWAFRequest" });
|
|
339
|
-
export const ListWAFResponseItemsList = /*@__PURE__*/ S.Array(GetWAFResponse);
|
|
340
|
-
export const ListWAFResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
341
|
-
items: S.optional(ListWAFResponseItemsList),
|
|
342
|
-
nextPageId: S.optional(S.String),
|
|
343
|
-
})).annotate({ identifier: "ListWAFResponse" });
|
|
344
|
-
export const PatchMRSRule = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
345
|
-
mode: S.optional(Mode),
|
|
346
|
-
})).annotate({ identifier: "PatchMRSRule" });
|
|
347
|
-
export const PatchMRSRuleGroupRulesMap = /*@__PURE__*/ S.Record(S.String, PatchMRSRule);
|
|
348
|
-
export const PatchMRSRuleGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
349
|
-
rules: PatchMRSRuleGroupRulesMap,
|
|
350
|
-
})).annotate({ identifier: "PatchMRSRuleGroup" });
|
|
351
|
-
export const PatchManagedRuleSetRequestGroupsMap = /*@__PURE__*/ S.Record(S.String, PatchMRSRuleGroup);
|
|
352
|
-
export const PatchManagedRuleSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
353
|
-
projectId: S.String.pipe(T.Label()),
|
|
354
|
-
region: S.String.pipe(T.Label()),
|
|
355
|
-
name: S.String.pipe(T.Label()),
|
|
356
|
-
groups: PatchManagedRuleSetRequestGroupsMap,
|
|
357
|
-
}).pipe(T.Http({
|
|
358
|
-
method: "PATCH",
|
|
359
|
-
uri: "/v1/projects/{projectId}/regions/{region}/managed-rule-sets/{name}",
|
|
360
|
-
code: 200,
|
|
361
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
362
|
-
}))).annotate({
|
|
363
|
-
identifier: "PatchManagedRuleSetRequest",
|
|
364
|
-
});
|
|
365
|
-
export const UpdateCustomRuleGroupRequestRulesList = /*@__PURE__*/ S.Array(CreateCustomRule);
|
|
366
|
-
export const UpdateCustomRuleGroupRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
367
|
-
projectId: S.String.pipe(T.Label()),
|
|
368
|
-
region: S.String.pipe(T.Label()),
|
|
369
|
-
name: S.String.pipe(T.Label()),
|
|
370
|
-
rules: UpdateCustomRuleGroupRequestRulesList,
|
|
371
|
-
}).pipe(T.Http({
|
|
372
|
-
method: "PUT",
|
|
373
|
-
uri: "/v1/projects/{projectId}/regions/{region}/custom-rule-groups/{name}",
|
|
374
|
-
code: 200,
|
|
375
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
376
|
-
}))).annotate({
|
|
377
|
-
identifier: "UpdateCustomRuleGroupRequest",
|
|
378
|
-
});
|
|
379
|
-
export const UpdateWAFRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
380
|
-
export const UpdateWAFRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
381
|
-
projectId: S.String.pipe(T.Label()),
|
|
382
|
-
region: S.String.pipe(T.Label()),
|
|
383
|
-
name: S.String.pipe(T.Label()),
|
|
384
|
-
customRuleGroupName: S.optional(S.String),
|
|
385
|
-
labels: S.optional(UpdateWAFRequestLabelsMap),
|
|
386
|
-
managedRuleSetName: S.optional(S.String),
|
|
387
|
-
}).pipe(T.Http({
|
|
388
|
-
method: "PUT",
|
|
389
|
-
uri: "/v1/projects/{projectId}/regions/{region}/wafs/{name}",
|
|
390
|
-
code: 200,
|
|
391
|
-
baseUrl: "https://alb-waf.api.stackit.cloud",
|
|
392
|
-
}))).annotate({ identifier: "UpdateWAFRequest" });
|
|
393
|
-
/** 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. */
|
|
394
|
-
export const createCustomRuleGroup = /*@__PURE__*/ API.make(() => ({
|
|
395
|
-
input: CreateCustomRuleGroupRequest,
|
|
396
|
-
output: GetCustomRuleGroupResponse,
|
|
397
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
398
|
-
protocol: StackitProtocol,
|
|
399
|
-
retry: Retry.Retry,
|
|
400
|
-
}));
|
|
401
|
-
/** Create a MRS configuration With this endpoint a managed rule set (MRS) configuration is created and stored in this project. Currently it is only possible to enable it. This rule configuration is supposed to be referenced by a WAF configuration. It can be referenced by any number of WAF configurations in the same project. */
|
|
402
|
-
export const createManagedRuleSet = /*@__PURE__*/ API.make(() => ({
|
|
403
|
-
input: CreateManagedRuleSetRequest,
|
|
404
|
-
output: GetManagedRuleSetResponse,
|
|
405
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
406
|
-
protocol: StackitProtocol,
|
|
407
|
-
retry: Retry.Retry,
|
|
408
|
-
}));
|
|
409
|
-
/** Create a WAF configuration This endpoint will create and store a WAF configuration in a project. The name of this WAF configuration is supposed to be used in the listener of an Application Load Balancer, which will activate this configuration and in addition it is possible to enable the managed rule set. This WAF configuration can be used by any number of Application Load Balancers in the same project. The configuration has a reference to a rule configuration. This rule configuration has to exist when trying to create a WAF configuration. Later other configuration references will be added to this object. */
|
|
410
|
-
export const createWAF = /*@__PURE__*/ API.make(() => ({
|
|
411
|
-
input: CreateWAFRequest,
|
|
412
|
-
output: GetWAFResponse,
|
|
413
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
414
|
-
protocol: StackitProtocol,
|
|
415
|
-
retry: Retry.Retry,
|
|
416
|
-
}));
|
|
417
|
-
/** Delete a CRG configuration To delete a custom rule group configuration this endpoint is used, but it is only possible to delete it if no WAF configuration is referencing it. */
|
|
418
|
-
export const deleteCustomRuleGroup = /*@__PURE__*/ API.make(() => ({
|
|
419
|
-
input: DeleteCustomRuleGroupRequest,
|
|
420
|
-
output: DeleteCustomRuleGroupResponse2,
|
|
421
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
422
|
-
protocol: StackitProtocol,
|
|
423
|
-
retry: Retry.Retry,
|
|
424
|
-
}));
|
|
425
|
-
/** Delete a MRS configuration To delete a managed rule set (MRS) configuration this endpoint is used, but it is only possible to delete it if no WAF configuration is referencing it. */
|
|
426
|
-
export const deleteManagedRuleSet = /*@__PURE__*/ API.make(() => ({
|
|
427
|
-
input: DeleteManagedRuleSetRequest,
|
|
428
|
-
output: DeleteManagedRuleSetResponse2,
|
|
429
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
430
|
-
protocol: StackitProtocol,
|
|
431
|
-
retry: Retry.Retry,
|
|
432
|
-
}));
|
|
433
|
-
/** Delete a WAF configuration This will delete the specified WAF configuration, but only if it is not used by any Application Load Balancer in the project. */
|
|
434
|
-
export const deleteWAF = /*@__PURE__*/ API.make(() => ({
|
|
435
|
-
input: DeleteWAFRequest,
|
|
436
|
-
output: DeleteWAFResponse2,
|
|
437
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
438
|
-
protocol: StackitProtocol,
|
|
439
|
-
retry: Retry.Retry,
|
|
440
|
-
}));
|
|
441
|
-
/** Retrieve a CRG configuration Retrieves the specified SecLang custom rule configuration (CRG) structure. */
|
|
442
|
-
export const getCustomRuleGroup = /*@__PURE__*/ API.make(() => ({
|
|
443
|
-
input: GetCustomRuleGroupRequest,
|
|
444
|
-
output: GetCustomRuleGroupResponse,
|
|
445
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
446
|
-
protocol: StackitProtocol,
|
|
447
|
-
retry: Retry.Retry,
|
|
448
|
-
}));
|
|
449
|
-
/** Retrieve a MRS configuration To retrieve an existing managed rule set (MRS) configuration this endpoint can be used. */
|
|
450
|
-
export const getManagedRuleSet = /*@__PURE__*/ API.make(() => ({
|
|
451
|
-
input: GetManagedRuleSetRequest,
|
|
452
|
-
output: GetManagedRuleSetResponse,
|
|
453
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
454
|
-
protocol: StackitProtocol,
|
|
455
|
-
retry: Retry.Retry,
|
|
456
|
-
}));
|
|
457
|
-
/** Get the quota for WAF resources in a project. Retrieves the configured WAF resource quotas for the project. Limit can be changed via service request. */
|
|
458
|
-
export const getQuota = /*@__PURE__*/ API.make(() => ({
|
|
459
|
-
input: GetQuotaRequest,
|
|
460
|
-
output: GetQuotaResponse,
|
|
461
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
462
|
-
protocol: StackitProtocol,
|
|
463
|
-
retry: Retry.Retry,
|
|
464
|
-
}));
|
|
465
|
-
/** Retrieve a WAF configuration This endpoint will return the specified WAF configuration. */
|
|
466
|
-
export const getWAF = /*@__PURE__*/ API.make(() => ({
|
|
467
|
-
input: GetWAFRequest,
|
|
468
|
-
output: GetWAFResponse,
|
|
469
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
470
|
-
protocol: StackitProtocol,
|
|
471
|
-
retry: Retry.Retry,
|
|
472
|
-
}));
|
|
473
|
-
/** List of CRG configurations List all existing Custom Rule Groups that are stored in the project. */
|
|
474
|
-
export const listCustomRuleGroup = /*@__PURE__*/ API.make(() => ({
|
|
475
|
-
input: ListCustomRuleGroupRequest,
|
|
476
|
-
output: ListCustomRuleGroupResponse,
|
|
477
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
478
|
-
protocol: StackitProtocol,
|
|
479
|
-
retry: Retry.Retry,
|
|
480
|
-
}));
|
|
481
|
-
/** List of MRS configurations List all existing managed rule set (MRS) configurations that are stored in the project. */
|
|
482
|
-
export const listManagedRuleSets = /*@__PURE__*/ API.make(() => ({
|
|
483
|
-
input: ListManagedRuleSetsRequest,
|
|
484
|
-
output: ListManagedRuleSetResponse,
|
|
485
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
486
|
-
protocol: StackitProtocol,
|
|
487
|
-
retry: Retry.Retry,
|
|
488
|
-
}));
|
|
489
|
-
/** List of WAF configurations To list all WAF configurations stored in a project, use this endpoint. */
|
|
490
|
-
export const listWAF = /*@__PURE__*/ API.make(() => ({
|
|
491
|
-
input: ListWAFRequest,
|
|
492
|
-
output: ListWAFResponse,
|
|
493
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
494
|
-
protocol: StackitProtocol,
|
|
495
|
-
retry: Retry.Retry,
|
|
496
|
-
}));
|
|
497
|
-
/** Granularly update a MRS configuration Accepts the same structure as the GET response. Only fields provided with values will be updated. */
|
|
498
|
-
export const patchManagedRuleSet = /*@__PURE__*/ API.make(() => ({
|
|
499
|
-
input: PatchManagedRuleSetRequest,
|
|
500
|
-
output: GetManagedRuleSetResponse,
|
|
501
|
-
errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
|
|
502
|
-
protocol: StackitProtocol,
|
|
503
|
-
retry: Retry.Retry,
|
|
504
|
-
}));
|
|
505
|
-
/** Update a CRG configuration Replaces the rules array of an existing CRG. The CRG name is immutable and used as the resource key. Send the complete desired rule set; per-rule partial merge is not supported. */
|
|
506
|
-
export const updateCustomRuleGroup = /*@__PURE__*/ API.make(() => ({
|
|
507
|
-
input: UpdateCustomRuleGroupRequest,
|
|
508
|
-
output: GetCustomRuleGroupResponse,
|
|
509
|
-
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
510
|
-
protocol: StackitProtocol,
|
|
511
|
-
retry: Retry.Retry,
|
|
512
|
-
}));
|
|
513
|
-
/** Update a WAF configuration The update endpoint will update a stored WAF configuration in project and also for all the Load Balancers that have it referenced. */
|
|
514
|
-
export const updateWAF = /*@__PURE__*/ API.make(() => ({
|
|
515
|
-
input: UpdateWAFRequest,
|
|
516
|
-
output: GetWAFResponse,
|
|
517
|
-
errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
|
|
518
|
-
protocol: StackitProtocol,
|
|
519
|
-
retry: Retry.Retry,
|
|
520
|
-
}));
|
|
521
|
-
//# sourceMappingURL=alb_waf.js.map
|