@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.17
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/.lazy.json +1 -0
- package/lib/_bundle/lazy.js +4 -0
- package/lib/_bundle/sdk.js +2 -0
- package/lib/_bundle/sdk.js.map +1 -0
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +1 -49
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -26
- package/lib/index.d.ts +2 -2
- package/lib/index.js +1 -24
- package/lib/index.lazy.js +7 -0
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +1 -45
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +1 -147
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -31
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +28 -512
- package/lib/services/alb.js.map +1 -1
- 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 +33 -520
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +1 -322
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +1 -362
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +31 -905
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +1 -178
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +1 -176
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +40 -725
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +1 -316
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +1 -356
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +1 -398
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +35 -519
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +181 -3542
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/index.js +0 -2
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +29 -474
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +41 -662
- package/lib/services/kms.js.map +1 -1
- 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 +1 -153
- package/lib/services/lb_ip_lists.js.map +1 -1
- 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 +29 -496
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +33 -573
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +34 -474
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +34 -550
- package/lib/services/mariadb.js.map +1 -1
- 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 +1 -335
- package/lib/services/model_experiments.js.map +1 -1
- 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 +1 -286
- package/lib/services/model_serving.js.map +1 -1
- 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 +42 -802
- package/lib/services/mongodb_flex.js.map +1 -1
- 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 +38 -539
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +159 -3157
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +34 -562
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +31 -735
- package/lib/services/pim.js.map +1 -1
- 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 +47 -852
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +37 -518
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +35 -573
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +1 -197
- package/lib/services/registry.js.map +1 -1
- 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 +36 -472
- package/lib/services/resource_manager.js.map +1 -1
- 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 +1 -184
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +25 -444
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +40 -669
- package/lib/services/scf.js.map +1 -1
- 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 +42 -612
- package/lib/services/secrets_manager.js.map +1 -1
- 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 +29 -453
- package/lib/services/server_backup.js.map +1 -1
- 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 +1 -351
- package/lib/services/server_update.js.map +1 -1
- 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 +30 -505
- package/lib/services/service_account.js.map +1 -1
- 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 +1 -156
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +46 -789
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +26 -557
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +46 -935
- package/lib/services/sqlserverflex.js.map +1 -1
- 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 +26 -378
- package/lib/services/stackit_marketplace.js.map +1 -1
- 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 +34 -531
- package/lib/services/telemetry_link.js.map +1 -1
- 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 +29 -483
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +1 -278
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +34 -566
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +43 -930
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +27 -507
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/alb.js +4 -0
- package/lib/services.lazy/alb_waf.js +4 -0
- package/lib/services.lazy/authorization.js +1 -0
- package/lib/services.lazy/automation.js +1 -0
- package/lib/services.lazy/cdn.js +4 -0
- package/lib/services.lazy/certificates.js +1 -0
- package/lib/services.lazy/cost.js +1 -0
- package/lib/services.lazy/dns.js +4 -0
- package/lib/services.lazy/dremio.js +1 -0
- package/lib/services.lazy/edge.js +1 -0
- package/lib/services.lazy/functions.js +1 -0
- package/lib/services.lazy/git.js +4 -0
- package/lib/services.lazy/iaas.js +4 -0
- package/lib/services.lazy/index.js +3 -0
- package/lib/services.lazy/intake.js +4 -0
- package/lib/services.lazy/kms.js +4 -0
- package/lib/services.lazy/lb_ip_lists.js +1 -0
- package/lib/services.lazy/load_balancer.js +4 -0
- package/lib/services.lazy/logme.js +4 -0
- package/lib/services.lazy/logs.js +4 -0
- package/lib/services.lazy/mariadb.js +4 -0
- package/lib/services.lazy/model_experiments.js +1 -0
- package/lib/services.lazy/model_serving.js +1 -0
- package/lib/services.lazy/mongodb_flex.js +4 -0
- package/lib/services.lazy/object_storage.js +4 -0
- package/lib/services.lazy/observability.js +4 -0
- package/lib/services.lazy/opensearch.js +4 -0
- package/lib/services.lazy/pim.js +4 -0
- package/lib/services.lazy/postgres_flex.js +4 -0
- package/lib/services.lazy/pubsub.js +4 -0
- package/lib/services.lazy/rabbitmq.js +4 -0
- package/lib/services.lazy/registry.js +1 -0
- package/lib/services.lazy/resource_manager.js +4 -0
- package/lib/services.lazy/run_command.js +1 -0
- package/lib/services.lazy/sca.js +4 -0
- package/lib/services.lazy/scf.js +4 -0
- package/lib/services.lazy/secrets_manager.js +4 -0
- package/lib/services.lazy/server_backup.js +4 -0
- package/lib/services.lazy/server_update.js +1 -0
- package/lib/services.lazy/service_account.js +4 -0
- package/lib/services.lazy/service_enablement.js +1 -0
- package/lib/services.lazy/sfs.js +4 -0
- package/lib/services.lazy/ske.js +4 -0
- package/lib/services.lazy/sqlserverflex.js +4 -0
- package/lib/services.lazy/stackit_marketplace.js +4 -0
- package/lib/services.lazy/telemetry_link.js +4 -0
- package/lib/services.lazy/telemetry_router.js +4 -0
- package/lib/services.lazy/ufw.js +1 -0
- package/lib/services.lazy/valkey.js +4 -0
- package/lib/services.lazy/vpn.js +4 -0
- package/lib/services.lazy/workflows.js +4 -0
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +1 -15
- package/package.json +9 -7
- 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/credentials.js.map +0 -1
- package/lib/errors.js.map +0 -1
- package/lib/pagination.js.map +0 -1
- package/lib/protocol.js.map +0 -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/retry.js.map +0 -1
- package/lib/services/index.js.map +0 -1
- package/lib/traits.js.map +0 -1
- package/src/protocol.test.ts +0 -304
- /package/lib/{index.js.map → index.lazy.js.map} +0 -0
package/lib/services/cdn.d.ts
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import * as API from "@distilled.cloud/core/api";
|
|
2
|
-
import * as S from "@distilled.cloud/core/schema";
|
|
3
|
-
import * as Redacted from "effect/Redacted";
|
|
2
|
+
import * as S from "@distilled.cloud/core/schema-lite";
|
|
3
|
+
import type * as Redacted from "effect/Redacted";
|
|
4
4
|
import { type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
5
5
|
export type { StackitOpError, StackitOpContext };
|
|
6
|
-
declare const BadRequest_base: S.
|
|
6
|
+
declare const BadRequest_base: S.TaggedErrorClass<"BadRequest", {
|
|
7
7
|
readonly code: any;
|
|
8
8
|
readonly message: any;
|
|
9
|
-
}
|
|
9
|
+
}> & (new (...args: any[]) => {
|
|
10
10
|
"@distilled.cloud/error/categories": {
|
|
11
11
|
BadRequestError: true;
|
|
12
12
|
};
|
|
13
13
|
});
|
|
14
14
|
export declare class BadRequest extends /*@__PURE__*/ BadRequest_base {
|
|
15
15
|
}
|
|
16
|
-
declare const NotFound_base: S.
|
|
16
|
+
declare const NotFound_base: S.TaggedErrorClass<"NotFound", {
|
|
17
17
|
readonly code: any;
|
|
18
18
|
readonly message: any;
|
|
19
|
-
}
|
|
19
|
+
}> & (new (...args: any[]) => {
|
|
20
20
|
"@distilled.cloud/error/categories": {
|
|
21
21
|
BadRequestError: true;
|
|
22
22
|
};
|
|
23
23
|
});
|
|
24
24
|
export declare class NotFound extends /*@__PURE__*/ NotFound_base {
|
|
25
25
|
}
|
|
26
|
-
declare const UnprocessableEntity_base: S.
|
|
26
|
+
declare const UnprocessableEntity_base: S.TaggedErrorClass<"UnprocessableEntity", {
|
|
27
27
|
readonly code: any;
|
|
28
28
|
readonly message: any;
|
|
29
|
-
}
|
|
29
|
+
}> & (new (...args: any[]) => {
|
|
30
30
|
"@distilled.cloud/error/categories": {
|
|
31
31
|
BadRequestError: true;
|
|
32
32
|
};
|
|
@@ -34,20 +34,16 @@ declare const UnprocessableEntity_base: S.Class<UnprocessableEntity, S.TaggedStr
|
|
|
34
34
|
export declare class UnprocessableEntity extends /*@__PURE__*/ UnprocessableEntity_base {
|
|
35
35
|
}
|
|
36
36
|
export type HttpBackendCreateGeofencingValueList = Array<string>;
|
|
37
|
-
export declare const HttpBackendCreateGeofencingValueList: S.Schema<HttpBackendCreateGeofencingValueList>;
|
|
38
37
|
/** An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. */
|
|
39
38
|
export type HttpBackendCreateGeofencingMap = {
|
|
40
39
|
[key: string]: HttpBackendCreateGeofencingValueList | undefined;
|
|
41
40
|
};
|
|
42
|
-
export declare const HttpBackendCreateGeofencingMap: S.Schema<HttpBackendCreateGeofencingMap>;
|
|
43
41
|
/** Headers that will be sent with every request to the configured origin. **WARNING**: Do not store sensitive values in the headers. The configuration is stored as plain text. */
|
|
44
42
|
export type HttpBackendCreateOriginRequestHeadersMap = {
|
|
45
43
|
[key: string]: string | undefined;
|
|
46
44
|
};
|
|
47
|
-
export declare const HttpBackendCreateOriginRequestHeadersMap: S.Schema<HttpBackendCreateOriginRequestHeadersMap>;
|
|
48
45
|
/** Defines the type of content origin. For this schema, it must be set to `http`. */
|
|
49
46
|
export type HttpBackendCreateType = "http";
|
|
50
|
-
export declare const HttpBackendCreateType: any;
|
|
51
47
|
export interface HttpBackendCreate {
|
|
52
48
|
/** An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. */
|
|
53
49
|
geofencing?: HttpBackendCreateGeofencingMap;
|
|
@@ -58,15 +54,12 @@ export interface HttpBackendCreate {
|
|
|
58
54
|
/** Defines the type of content origin. For this schema, it must be set to `http`. */
|
|
59
55
|
type: HttpBackendCreateType;
|
|
60
56
|
}
|
|
61
|
-
export declare const HttpBackendCreate: S.Schema<HttpBackendCreate>;
|
|
62
57
|
export interface BucketCredentials {
|
|
63
58
|
accessKeyId: string | Redacted.Redacted<string>;
|
|
64
59
|
secretAccessKey: string | Redacted.Redacted<string>;
|
|
65
60
|
}
|
|
66
|
-
export declare const BucketCredentials: S.Schema<BucketCredentials>;
|
|
67
61
|
/** Defines the type of content origin. For this schema, it must be set to `bucket`. */
|
|
68
62
|
export type BucketBackendCreateType = "bucket";
|
|
69
|
-
export declare const BucketBackendCreateType: any;
|
|
70
63
|
export interface BucketBackendCreate {
|
|
71
64
|
/** The fully qualified URL of your cloud storage bucket (for example, `https://s3.eu-central-1.amazonaws.com/my-bucket`). */
|
|
72
65
|
bucketUrl: string;
|
|
@@ -76,22 +69,16 @@ export interface BucketBackendCreate {
|
|
|
76
69
|
/** Defines the type of content origin. For this schema, it must be set to `bucket`. */
|
|
77
70
|
type: BucketBackendCreateType;
|
|
78
71
|
}
|
|
79
|
-
export declare const BucketBackendCreate: S.Schema<BucketBackendCreate>;
|
|
80
72
|
/** Configuration for the content origin backend. */
|
|
81
73
|
export type CreateDistributionRequestBackend = HttpBackendCreate | BucketBackendCreate;
|
|
82
|
-
export declare const CreateDistributionRequestBackend: S.Schema<CreateDistributionRequestBackend>;
|
|
83
74
|
/** Restricts access to your content based on country. We use the ISO 3166-1 alpha-2 standard for country codes (e.g., DE, ES, GB). This setting blocks users from the specified countries. */
|
|
84
75
|
export type CreateDistributionRequestBlockedCountriesList = Array<string>;
|
|
85
|
-
export declare const CreateDistributionRequestBlockedCountriesList: S.Schema<CreateDistributionRequestBlockedCountriesList>;
|
|
86
76
|
/** Restricts access to your content by specifying a list of blocked IPv4 addresses. This feature enhances security and privacy by preventing these addresses from accessing your distribution. */
|
|
87
77
|
export type CreateDistributionRequestBlockedIpsList = Array<string>;
|
|
88
|
-
export declare const CreateDistributionRequestBlockedIpsList: S.Schema<CreateDistributionRequestBlockedIpsList>;
|
|
89
78
|
/** HTTP request header names whose values participate in the cache key. Each entry multiplies the number of cache variants by the number of distinct values observed for that header. */
|
|
90
79
|
export type CacheConfigCreateCacheKeyHeadersList = Array<string>;
|
|
91
|
-
export declare const CacheConfigCreateCacheKeyHeadersList: S.Schema<CacheConfigCreateCacheKeyHeadersList>;
|
|
92
80
|
/** Allowlist of query-string parameter names that participate in the cache key when `queryStringVaryEnabled` is true. Ignored while `queryStringVaryEnabled` is false, but still stored so it can be re-activated without losing the list. */
|
|
93
81
|
export type CacheConfigCreateQueryStringVaryParametersList = Array<string>;
|
|
94
|
-
export declare const CacheConfigCreateQueryStringVaryParametersList: S.Schema<CacheConfigCreateQueryStringVaryParametersList>;
|
|
95
82
|
/** Groups the cache options that influence how the CDN builds its cache key on distribution creation. **Cache cardinality warning:** enabling query-string vary produces one cache entry per unique query-string combination (**unbounded** when `queryStringVaryParameters` is empty). Each entry in `cacheKeyHeaders` multiplies the number of cache variants by the number of distinct values observed for that header. Use these settings sparingly. `queryStringVaryParameters` is stored independently of `queryStringVaryEnabled` so that this feature can be toggled on and off without losing the configured allowlist. Only `queryStringVaryEnabled` gates whether the parameter allowlist actually varies the cache. **Optimizer interaction:** when the Optimizer is enabled, the CDN automatically enables query-string vary for image responses regardless of this setting. */
|
|
96
83
|
export interface CacheConfigCreate {
|
|
97
84
|
/** HTTP request header names whose values participate in the cache key. Each entry multiplies the number of cache variants by the number of distinct values observed for that header. */
|
|
@@ -101,12 +88,10 @@ export interface CacheConfigCreate {
|
|
|
101
88
|
/** Allowlist of query-string parameter names that participate in the cache key when `queryStringVaryEnabled` is true. Ignored while `queryStringVaryEnabled` is false, but still stored so it can be re-activated without losing the list. */
|
|
102
89
|
queryStringVaryParameters?: CacheConfigCreateQueryStringVaryParametersList;
|
|
103
90
|
}
|
|
104
|
-
export declare const CacheConfigCreate: S.Schema<CacheConfigCreate>;
|
|
105
91
|
/** Labels are key-value string pairs that can be attached to a distribution. */
|
|
106
92
|
export type CreateDistributionRequestLabelsMap = {
|
|
107
93
|
[key: string]: string | undefined;
|
|
108
94
|
};
|
|
109
|
-
export declare const CreateDistributionRequestLabelsMap: S.Schema<CreateDistributionRequestLabelsMap>;
|
|
110
95
|
/** The authentication credentials required for the CDN to push logs to your Loki instance. */
|
|
111
96
|
export interface LokiLogSinkCredentials {
|
|
112
97
|
/** The password corresponding to your username. */
|
|
@@ -114,10 +99,8 @@ export interface LokiLogSinkCredentials {
|
|
|
114
99
|
/** The username used to authenticate against your Loki instance. */
|
|
115
100
|
username: string;
|
|
116
101
|
}
|
|
117
|
-
export declare const LokiLogSinkCredentials: S.Schema<LokiLogSinkCredentials>;
|
|
118
102
|
/** Defines the type of the log sink. For Grafana Loki, this must be set to `loki`. */
|
|
119
103
|
export type LokiLogSinkCreateType = "loki";
|
|
120
|
-
export declare const LokiLogSinkCreateType: any;
|
|
121
104
|
export interface LokiLogSinkCreate {
|
|
122
105
|
credentials: LokiLogSinkCredentials;
|
|
123
106
|
/** The fully qualified URL where the CDN should push logs to your Loki instance (for example, `https://loki.example.com/loki/api/v1/push`). */
|
|
@@ -125,10 +108,8 @@ export interface LokiLogSinkCreate {
|
|
|
125
108
|
/** Defines the type of the log sink. For Grafana Loki, this must be set to `loki`. */
|
|
126
109
|
type: LokiLogSinkCreateType;
|
|
127
110
|
}
|
|
128
|
-
export declare const LokiLogSinkCreate: S.Schema<LokiLogSinkCreate>;
|
|
129
111
|
/** Defines bearer token authentication. */
|
|
130
112
|
export type OtlpLogSinkBearerCredentialsType = "bearer";
|
|
131
|
-
export declare const OtlpLogSinkBearerCredentialsType: any;
|
|
132
113
|
/** Bearer token authentication credentials for OTLP. */
|
|
133
114
|
export interface OtlpLogSinkBearerCredentials {
|
|
134
115
|
/** The bearer token used to authenticate against your OTLP endpoint. */
|
|
@@ -136,10 +117,8 @@ export interface OtlpLogSinkBearerCredentials {
|
|
|
136
117
|
/** Defines bearer token authentication. */
|
|
137
118
|
type: OtlpLogSinkBearerCredentialsType;
|
|
138
119
|
}
|
|
139
|
-
export declare const OtlpLogSinkBearerCredentials: S.Schema<OtlpLogSinkBearerCredentials>;
|
|
140
120
|
/** Defines basic authentication. */
|
|
141
121
|
export type OtlpLogSinkBasicCredentialsType = "basic";
|
|
142
|
-
export declare const OtlpLogSinkBasicCredentialsType: any;
|
|
143
122
|
/** Basic authentication credentials for OTLP. */
|
|
144
123
|
export interface OtlpLogSinkBasicCredentials {
|
|
145
124
|
/** The password corresponding to your username. */
|
|
@@ -149,13 +128,10 @@ export interface OtlpLogSinkBasicCredentials {
|
|
|
149
128
|
/** The username used to authenticate against your OTLP endpoint. */
|
|
150
129
|
username: string;
|
|
151
130
|
}
|
|
152
|
-
export declare const OtlpLogSinkBasicCredentials: S.Schema<OtlpLogSinkBasicCredentials>;
|
|
153
131
|
/** The authentication credentials required for the CDN to push logs to your OTLP endpoint. */
|
|
154
132
|
export type OtlpLogSinkCreateCredentials = OtlpLogSinkBearerCredentials | OtlpLogSinkBasicCredentials;
|
|
155
|
-
export declare const OtlpLogSinkCreateCredentials: S.Schema<OtlpLogSinkCreateCredentials>;
|
|
156
133
|
/** Defines the type of the log sink. */
|
|
157
134
|
export type OtlpLogSinkCreateType = "otlp";
|
|
158
|
-
export declare const OtlpLogSinkCreateType: any;
|
|
159
135
|
export interface OtlpLogSinkCreate {
|
|
160
136
|
/** The authentication credentials required for the CDN to push logs to your OTLP endpoint. */
|
|
161
137
|
credentials: OtlpLogSinkCreateCredentials;
|
|
@@ -164,34 +140,26 @@ export interface OtlpLogSinkCreate {
|
|
|
164
140
|
/** Defines the type of the log sink. */
|
|
165
141
|
type: OtlpLogSinkCreateType;
|
|
166
142
|
}
|
|
167
|
-
export declare const OtlpLogSinkCreate: S.Schema<OtlpLogSinkCreate>;
|
|
168
143
|
export type CreateDistributionRequestLogSink = LokiLogSinkCreate | OtlpLogSinkCreate;
|
|
169
|
-
export declare const CreateDistributionRequestLogSink: S.Schema<CreateDistributionRequestLogSink>;
|
|
170
144
|
/** Optimizer is paid feature, a real-time on the fly image manipulation and optimization service that automatically optimizes your images for faster image delivery. */
|
|
171
145
|
export interface Optimizer {
|
|
172
146
|
/** Determines if the optimizer should be enabled for this distribution and incurs a monthly fee */
|
|
173
147
|
enabled: boolean;
|
|
174
148
|
}
|
|
175
|
-
export declare const Optimizer: S.Schema<Optimizer>;
|
|
176
149
|
/** Defines how multiple matchers within this rule are combined (ALL, ANY, NONE). Defaults to ANY. */
|
|
177
150
|
export type MatchCondition = "ANY" | "ALL" | "NONE";
|
|
178
|
-
export declare const MatchCondition: any;
|
|
179
151
|
/** A list of glob patterns to match against the request path. At least one value is required. Examples: "/shop/*" or "*\/img/*" */
|
|
180
152
|
export type MatcherValuesList = Array<string>;
|
|
181
|
-
export declare const MatcherValuesList: S.Schema<MatcherValuesList>;
|
|
182
153
|
/** A matcher containing a list of string values to compare against the request path. */
|
|
183
154
|
export interface Matcher {
|
|
184
155
|
valueMatchCondition?: MatchCondition | (string & {});
|
|
185
156
|
/** A list of glob patterns to match against the request path. At least one value is required. Examples: "/shop/*" or "*\/img/*" */
|
|
186
157
|
values: MatcherValuesList;
|
|
187
158
|
}
|
|
188
|
-
export declare const Matcher: S.Schema<Matcher>;
|
|
189
159
|
/** A list of matchers that define when this rule should apply. At least one matcher is required. */
|
|
190
160
|
export type RedirectRuleMatchersList = Array<Matcher>;
|
|
191
|
-
export declare const RedirectRuleMatchersList: S.Schema<RedirectRuleMatchersList>;
|
|
192
161
|
/** The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308. */
|
|
193
162
|
export type RedirectRuleStatusCode = 301 | 302 | 303 | 307 | 308;
|
|
194
|
-
export declare const RedirectRuleStatusCode: any;
|
|
195
163
|
/** A single redirect rule defining a source pattern and a target URL. */
|
|
196
164
|
export interface RedirectRule {
|
|
197
165
|
/** An optional description for the redirect rule. */
|
|
@@ -206,22 +174,17 @@ export interface RedirectRule {
|
|
|
206
174
|
/** The target URL to redirect to. Must be a valid URI. */
|
|
207
175
|
targetUrl: string;
|
|
208
176
|
}
|
|
209
|
-
export declare const RedirectRule: S.Schema<RedirectRule>;
|
|
210
177
|
/** A list of redirect rules. The order of rules matters for evaluation. */
|
|
211
178
|
export type RedirectConfigRulesList = Array<RedirectRule>;
|
|
212
|
-
export declare const RedirectConfigRulesList: S.Schema<RedirectConfigRulesList>;
|
|
213
179
|
/** A wrapper for a list of redirect rules that allows for redirect settings on a distribution. */
|
|
214
180
|
export interface RedirectConfig {
|
|
215
181
|
/** A list of redirect rules. The order of rules matters for evaluation. */
|
|
216
182
|
rules?: RedirectConfigRulesList;
|
|
217
183
|
}
|
|
218
|
-
export declare const RedirectConfig: S.Schema<RedirectConfig>;
|
|
219
184
|
/** The following regions exist: - `EU` - Europe - `US` - United States / North America - `AF` - Africa - `SA` - South America - `ASIA` - Asia and Oceania */
|
|
220
185
|
export type Region = "EU" | "US" | "AF" | "SA" | "ASIA";
|
|
221
|
-
export declare const Region: any;
|
|
222
186
|
/** Define in which regions you would like your content to be cached. */
|
|
223
187
|
export type CreateDistributionRequestRegionsList = Array<Region | (string & {})>;
|
|
224
|
-
export declare const CreateDistributionRequestRegionsList: S.Schema<CreateDistributionRequestRegionsList>;
|
|
225
188
|
/** Configuration for TLS protocol versions. Note: Enabling older TLS versions (1.0, 1.1) is generally discouraged for security reasons. */
|
|
226
189
|
export interface TlsConfig {
|
|
227
190
|
/** If set to true, the distribution will accept connections using TLS 1.0. */
|
|
@@ -229,51 +192,35 @@ export interface TlsConfig {
|
|
|
229
192
|
/** If set to true, the distribution will accept connections using TLS 1.1. */
|
|
230
193
|
enableTls11: boolean;
|
|
231
194
|
}
|
|
232
|
-
export declare const TlsConfig: S.Schema<TlsConfig>;
|
|
233
195
|
/** This whitelist restricts which HTTP methods the distribution accepts. Requests using non-whitelisted methods are blocked by the WAF before reaching the origin. Common methods: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `OPTIONS`, `CONNECT`, `TRACE` Validation ensures: 1. At least one method is allowed 2. No duplicate methods (e.g., `GET` appearing twice) 3. Each method is valid per HTTP standards */
|
|
234
196
|
export type WafConfigAllowedHttpMethodsList = Array<string>;
|
|
235
|
-
export declare const WafConfigAllowedHttpMethodsList: S.Schema<WafConfigAllowedHttpMethodsList>;
|
|
236
197
|
export type WafConfigAllowedHttpVersionsList = Array<string>;
|
|
237
|
-
export declare const WafConfigAllowedHttpVersionsList: S.Schema<WafConfigAllowedHttpVersionsList>;
|
|
238
198
|
/** This allow list restricts which Content-Type headers are accepted in request bodies. Format: Must be `type/subtype` with no spaces. Common content types: - `application/json` - `application/x-www-form-urlencoded` - `multipart/form-data` - `text/html` - `text/plain` - `application/xml` */
|
|
239
199
|
export type WafConfigAllowedRequestContentTypesList = Array<string>;
|
|
240
|
-
export declare const WafConfigAllowedRequestContentTypesList: S.Schema<WafConfigAllowedRequestContentTypesList>;
|
|
241
200
|
/** Ids of WAF Collections to mark as disabled */
|
|
242
201
|
export type WafConfigDisabledRuleCollectionIdsList = Array<string>;
|
|
243
|
-
export declare const WafConfigDisabledRuleCollectionIdsList: S.Schema<WafConfigDisabledRuleCollectionIdsList>;
|
|
244
202
|
/** Ids of WAF Rule Groups to mark as disabled */
|
|
245
203
|
export type WafConfigDisabledRuleGroupIdsList = Array<string>;
|
|
246
|
-
export declare const WafConfigDisabledRuleGroupIdsList: S.Schema<WafConfigDisabledRuleGroupIdsList>;
|
|
247
204
|
/** Ids of WAF Rules that are **explicitly** disabled for this distribution. */
|
|
248
205
|
export type WafConfigDisabledRuleIdsList = Array<string>;
|
|
249
|
-
export declare const WafConfigDisabledRuleIdsList: S.Schema<WafConfigDisabledRuleIdsList>;
|
|
250
206
|
/** Ids of WAF Collections to mark as enabled */
|
|
251
207
|
export type WafConfigEnabledRuleCollectionIdsList = Array<string>;
|
|
252
|
-
export declare const WafConfigEnabledRuleCollectionIdsList: S.Schema<WafConfigEnabledRuleCollectionIdsList>;
|
|
253
208
|
/** Ids of WAF Rule Groups to mark as enabled */
|
|
254
209
|
export type WafConfigEnabledRuleGroupIdsList = Array<string>;
|
|
255
|
-
export declare const WafConfigEnabledRuleGroupIdsList: S.Schema<WafConfigEnabledRuleGroupIdsList>;
|
|
256
210
|
/** Ids of the WAF rules that are **explicitly** enabled for this distribution. If this rule is in a disabled / log Only RuleGroup or Collection, it will be enabled regardless as `enabledRuleIds` overrides those in specificity. Do note that rules can also be enabled because a Rulegroup or Collection is enabled. **DO NOT** use this property to find all active rules. Instead, pass `?withWafStatus=true` as a query parameter to `GetDistribution` or `ListDistributions`. This will expose the `waf` Property on distribution Level. From there you can `$.waf.enabledRules.map(e => e.id)` to get a list of all enabled rules. */
|
|
257
211
|
export type WafConfigEnabledRuleIdsList = Array<string>;
|
|
258
|
-
export declare const WafConfigEnabledRuleIdsList: S.Schema<WafConfigEnabledRuleIdsList>;
|
|
259
212
|
/** Ids of WAF Collections to mark as log Only. */
|
|
260
213
|
export type WafConfigLogOnlyRuleCollectionIdsList = Array<string>;
|
|
261
|
-
export declare const WafConfigLogOnlyRuleCollectionIdsList: S.Schema<WafConfigLogOnlyRuleCollectionIdsList>;
|
|
262
214
|
/** Ids of WAF Rule Groups to mark as log Only. */
|
|
263
215
|
export type WafConfigLogOnlyRuleGroupIdsList = Array<string>;
|
|
264
|
-
export declare const WafConfigLogOnlyRuleGroupIdsList: S.Schema<WafConfigLogOnlyRuleGroupIdsList>;
|
|
265
216
|
/** Ids of WAF Rules that are **explicitly** marked as Log Only for this distribution. */
|
|
266
217
|
export type WafConfigLogOnlyRuleIdsList = Array<string>;
|
|
267
|
-
export declare const WafConfigLogOnlyRuleIdsList: S.Schema<WafConfigLogOnlyRuleIdsList>;
|
|
268
218
|
/** - `ENABLED`: The WAF actively inspects and blocks malicious requests. - `DISABLED`: The WAF is completely off. No inspection occurs. - `LOG_ONLY`: The WAF inspects requests and logs matches but never blocks. */
|
|
269
219
|
export type WafMode = "DISABLED" | "ENABLED" | "LOG_ONLY";
|
|
270
|
-
export declare const WafMode: any;
|
|
271
220
|
/** The paranoia level defines how aggressively the WAF should action on requests. It ranges from `L1` (least strict, lowest chance of false positives) to `L4` (most strict, highest chance of false positives). A higher paranoia level is more effective at catching attacks but can also block legitimate traffic. */
|
|
272
221
|
export type WafParanoiaLevel = "L1" | "L2" | "L3" | "L4";
|
|
273
|
-
export declare const WafParanoiaLevel: any;
|
|
274
222
|
/** Enable or disable the Premium WAF. Do note that enabling the Premium WAF will cause additional fees. Some features are gated behind the Premium WAF, like additional, **premium-only rules** and the ability to create **custom rules** (not yet implemented) */
|
|
275
223
|
export type WafType = "FREE" | "PREMIUM";
|
|
276
|
-
export declare const WafType: any;
|
|
277
224
|
/** Configuration of the WAF of a distribution A WAF Config always contains a WAF Mode and Type. If a WAF was never enabled, most of the properties are not present. To **enable** the WAF for your Distribution, you must set the `mode` to `ENABLED` or `LOG_ONLY`. This causes the other properties to be populated. ## Rules There are 9 properties used to control which Rules are enabled, disabled or set to Log-Only. These properties can be grouped in 3 groups of 3. Each of these groups varies in specificity: Rules are more specific than Rule Groups, which in turn are more specific than Collections. More specific definitions override more generic definitions. ### Collections - `enabledRuleCollectionIds` - `disabledRuleCollectionIds` - `logOnlyRuleCollectionIds` These are the least specific selectors. As of 2025, only two collections exist: - `@builtin/crs/response`, containing all Rules regarding Responses - `@builtin/crs/request`, containing all Rules regarding Requests More collections may be added in the future ### Rule Groups - `enabledRuleGroupIds` - `disabledRuleGroupIds` - `logOnlyRuleGroupIds` These are more specific than Collections and will override their selector. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### Rules - `enabledRuleIds` - `disabledRuleIds` - `logOnlyRuleGds` Being the most specific selectors, these will override both Collection and Rule Group selectors. You can find all available Rule Groups by calling the `ListWafCollections` Operation. ### TIP: Review resolved config If you call `GetDistribution` with `?withWafStatus=true`, you get back a resolved WAF Rules Config which contains a `waf` property which you can inspect to see why a Rule is either enabled, disabled or logOnly. */
|
|
278
225
|
export interface WafConfig {
|
|
279
226
|
/** This whitelist restricts which HTTP methods the distribution accepts. Requests using non-whitelisted methods are blocked by the WAF before reaching the origin. Common methods: `GET`, `POST`, `PUT`, `DELETE`, `PATCH`, `HEAD`, `OPTIONS`, `CONNECT`, `TRACE` Validation ensures: 1. At least one method is allowed 2. No duplicate methods (e.g., `GET` appearing twice) 3. Each method is valid per HTTP standards */
|
|
@@ -303,7 +250,6 @@ export interface WafConfig {
|
|
|
303
250
|
paranoiaLevel?: WafParanoiaLevel | (string & {});
|
|
304
251
|
type: WafType | (string & {});
|
|
305
252
|
}
|
|
306
|
-
export declare const WafConfig: S.Schema<WafConfig>;
|
|
307
253
|
export interface CreateDistributionRequest {
|
|
308
254
|
/** Your STACKIT Project Id */
|
|
309
255
|
projectId: string;
|
|
@@ -334,22 +280,17 @@ export interface CreateDistributionRequest {
|
|
|
334
280
|
tls?: TlsConfig;
|
|
335
281
|
waf?: WafConfig;
|
|
336
282
|
}
|
|
337
|
-
export declare const CreateDistributionRequest: S.Schema<CreateDistributionRequest>;
|
|
338
283
|
export type HttpBackendGeofencingValueList = Array<string>;
|
|
339
|
-
export declare const HttpBackendGeofencingValueList: S.Schema<HttpBackendGeofencingValueList>;
|
|
340
284
|
/** An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. */
|
|
341
285
|
export type HttpBackendGeofencingMap = {
|
|
342
286
|
[key: string]: HttpBackendGeofencingValueList | undefined;
|
|
343
287
|
};
|
|
344
|
-
export declare const HttpBackendGeofencingMap: S.Schema<HttpBackendGeofencingMap>;
|
|
345
288
|
/** Headers that will be sent with every request to the configured origin. **WARNING**: Do not store sensitive values in the headers. The configuration is stored as plain text. */
|
|
346
289
|
export type HttpBackendOriginRequestHeadersMap = {
|
|
347
290
|
[key: string]: string | undefined;
|
|
348
291
|
};
|
|
349
|
-
export declare const HttpBackendOriginRequestHeadersMap: S.Schema<HttpBackendOriginRequestHeadersMap>;
|
|
350
292
|
/** Defines the type of content origin. For this schema, it must be set to `http`. */
|
|
351
293
|
export type HttpBackendType = "http";
|
|
352
|
-
export declare const HttpBackendType: any;
|
|
353
294
|
export interface HttpBackend {
|
|
354
295
|
/** An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. */
|
|
355
296
|
geofencing: HttpBackendGeofencingMap;
|
|
@@ -360,10 +301,8 @@ export interface HttpBackend {
|
|
|
360
301
|
/** Defines the type of content origin. For this schema, it must be set to `http`. */
|
|
361
302
|
type: HttpBackendType;
|
|
362
303
|
}
|
|
363
|
-
export declare const HttpBackend: S.Schema<HttpBackend>;
|
|
364
304
|
/** Defines the type of content origin. For this schema, it must be set to `bucket`. */
|
|
365
305
|
export type BucketBackendType = "bucket";
|
|
366
|
-
export declare const BucketBackendType: any;
|
|
367
306
|
export interface BucketBackend {
|
|
368
307
|
/** The fully qualified URL of your cloud storage bucket (for example, `https://s3.eu-central-1.amazonaws.com/my-bucket`). */
|
|
369
308
|
bucketUrl: string;
|
|
@@ -372,21 +311,15 @@ export interface BucketBackend {
|
|
|
372
311
|
/** Defines the type of content origin. For this schema, it must be set to `bucket`. */
|
|
373
312
|
type: BucketBackendType;
|
|
374
313
|
}
|
|
375
|
-
export declare const BucketBackend: S.Schema<BucketBackend>;
|
|
376
314
|
export type ConfigBackend = HttpBackend | BucketBackend;
|
|
377
|
-
export declare const ConfigBackend: S.Schema<ConfigBackend>;
|
|
378
315
|
/** Restricts access to your content based on country. We use the ISO 3166-1 alpha-2 standard for country codes (e.g. DE, ES, GB). This setting blocks users from the specified countries. */
|
|
379
316
|
export type ConfigBlockedCountriesList = Array<string>;
|
|
380
|
-
export declare const ConfigBlockedCountriesList: S.Schema<ConfigBlockedCountriesList>;
|
|
381
317
|
/** Restricts access to your content by specifying a list of blocked IPv4 addresses. This feature enhances security and privacy by preventing these addresses from accessing your distribution. */
|
|
382
318
|
export type ConfigBlockedIpsList = Array<string>;
|
|
383
|
-
export declare const ConfigBlockedIpsList: S.Schema<ConfigBlockedIpsList>;
|
|
384
319
|
/** HTTP request header names whose values participate in the cache key. Each entry multiplies the number of cache variants by the number of distinct values observed for that header. */
|
|
385
320
|
export type CacheConfigCacheKeyHeadersList = Array<string>;
|
|
386
|
-
export declare const CacheConfigCacheKeyHeadersList: S.Schema<CacheConfigCacheKeyHeadersList>;
|
|
387
321
|
/** Allowlist of query-string parameter names that participate in the cache key when `queryStringVaryEnabled` is true. Ignored while `queryStringVaryEnabled` is false, but still stored so it can be re-activated without losing the list. */
|
|
388
322
|
export type CacheConfigQueryStringVaryParametersList = Array<string>;
|
|
389
|
-
export declare const CacheConfigQueryStringVaryParametersList: S.Schema<CacheConfigQueryStringVaryParametersList>;
|
|
390
323
|
/** Groups the cache options that influence how the CDN builds its cache key. **Cache cardinality warning:** enabling query-string vary produces one cache entry per unique query-string combination (**unbounded** when `queryStringVaryParameters` is empty). Each entry in `cacheKeyHeaders` multiplies the number of cache variants by the number of distinct values observed for that header. Use these settings sparingly. `queryStringVaryParameters` is stored independently of `queryStringVaryEnabled` so that this feature can be toggled on and off without losing the configured allowlist. Only `queryStringVaryEnabled` gates whether the parameter allowlist actually varies the cache. **Optimizer interaction:** when the Optimizer is enabled, the CDN automatically enables query-string vary for image responses regardless of this setting. */
|
|
391
324
|
export interface CacheConfig {
|
|
392
325
|
/** HTTP request header names whose values participate in the cache key. Each entry multiplies the number of cache variants by the number of distinct values observed for that header. */
|
|
@@ -396,36 +329,28 @@ export interface CacheConfig {
|
|
|
396
329
|
/** Allowlist of query-string parameter names that participate in the cache key when `queryStringVaryEnabled` is true. Ignored while `queryStringVaryEnabled` is false, but still stored so it can be re-activated without losing the list. */
|
|
397
330
|
queryStringVaryParameters: CacheConfigQueryStringVaryParametersList;
|
|
398
331
|
}
|
|
399
|
-
export declare const CacheConfig: S.Schema<CacheConfig>;
|
|
400
332
|
/** Labels are key-value string pairs that can be attached to a distribution. */
|
|
401
333
|
export type ConfigLabelsMap = {
|
|
402
334
|
[key: string]: string | undefined;
|
|
403
335
|
};
|
|
404
|
-
export declare const ConfigLabelsMap: S.Schema<ConfigLabelsMap>;
|
|
405
336
|
/** Defines the type of the log sink. */
|
|
406
337
|
export type LokiLogSinkType = "loki";
|
|
407
|
-
export declare const LokiLogSinkType: any;
|
|
408
338
|
export interface LokiLogSink {
|
|
409
339
|
/** The fully qualified URL where the CDN should push logs to your Loki instance (for example, `https://loki.example.com/loki/api/v1/push`). */
|
|
410
340
|
pushUrl: string;
|
|
411
341
|
/** Defines the type of the log sink. */
|
|
412
342
|
type: LokiLogSinkType;
|
|
413
343
|
}
|
|
414
|
-
export declare const LokiLogSink: S.Schema<LokiLogSink>;
|
|
415
344
|
/** Defines the type of the log sink. */
|
|
416
345
|
export type OtlpLogSinkType = "otlp";
|
|
417
|
-
export declare const OtlpLogSinkType: any;
|
|
418
346
|
export interface OtlpLogSink {
|
|
419
347
|
/** The fully qualified URL where the CDN should push logs to your OTLP endpoint (for example, `https://otlp.example.com/otlp/v1/logs`). */
|
|
420
348
|
pushUrl: string;
|
|
421
349
|
/** Defines the type of the log sink. */
|
|
422
350
|
type: OtlpLogSinkType;
|
|
423
351
|
}
|
|
424
|
-
export declare const OtlpLogSink: S.Schema<OtlpLogSink>;
|
|
425
352
|
export type ConfigLogSink = LokiLogSink | OtlpLogSink;
|
|
426
|
-
export declare const ConfigLogSink: S.Schema<ConfigLogSink>;
|
|
427
353
|
export type ConfigRegionsList = Array<Region>;
|
|
428
|
-
export declare const ConfigRegionsList: S.Schema<ConfigRegionsList>;
|
|
429
354
|
export interface Config {
|
|
430
355
|
backend: ConfigBackend;
|
|
431
356
|
/** Restricts access to your content based on country. We use the ISO 3166-1 alpha-2 standard for country codes (e.g. DE, ES, GB). This setting blocks users from the specified countries. */
|
|
@@ -450,12 +375,9 @@ export interface Config {
|
|
|
450
375
|
tls: TlsConfig;
|
|
451
376
|
waf: WafConfig;
|
|
452
377
|
}
|
|
453
|
-
export declare const Config: S.Schema<Config>;
|
|
454
378
|
export type DomainCertificateType = "managed" | "custom";
|
|
455
|
-
export declare const DomainCertificateType: any;
|
|
456
379
|
/** An enum value that describes a Status Error. */
|
|
457
380
|
export type StatusErrorKey = "UNKNOWN" | "CUSTOM_DOMAIN_CNAME_MISSING" | "CUSTOM_DOMAIN_ALREADY_IN_USE" | "PUBLIC_BETA_QUOTA_REACHED" | "LOG_SINK_INSTANCE_UNAVAILABLE" | "EXTERNAL_QUOTA_REACHED";
|
|
458
|
-
export declare const StatusErrorKey: any;
|
|
459
381
|
export interface StatusError {
|
|
460
382
|
/** A german translation string corresponding to the error key. Note that we do not guarantee german translations are present. */
|
|
461
383
|
de?: string;
|
|
@@ -464,16 +386,12 @@ export interface StatusError {
|
|
|
464
386
|
/** An enum value that describes a Status Error. */
|
|
465
387
|
key: StatusErrorKey;
|
|
466
388
|
}
|
|
467
|
-
export declare const StatusError: S.Schema<StatusError>;
|
|
468
389
|
/** This object is present if the custom domain has errors. */
|
|
469
390
|
export type DomainErrorsList = Array<StatusError>;
|
|
470
|
-
export declare const DomainErrorsList: S.Schema<DomainErrorsList>;
|
|
471
391
|
/** The status of the domain: CREATING indicates that the custom domain is being set up. UPDATING means that requested changes are being applied to the custom domain. ACTIVE means the custom domain is currently configured and active. DELETING means that the domain is in the process of being removed from the distribution. In case the domain has the ERROR state, more information will be available in the errors list. */
|
|
472
392
|
export type DomainStatus = "CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "ERROR";
|
|
473
|
-
export declare const DomainStatus: any;
|
|
474
393
|
/** Specifies the type of this Domain. Custom Domain can be further queries using the GetCustomDomain Endpoint */
|
|
475
394
|
export type DomainType = "managed" | "custom";
|
|
476
|
-
export declare const DomainType: any;
|
|
477
395
|
/** Definition of a custom or managed domain without any certificates or keys */
|
|
478
396
|
export interface Domain {
|
|
479
397
|
certificateType: DomainCertificateType;
|
|
@@ -485,72 +403,56 @@ export interface Domain {
|
|
|
485
403
|
/** Specifies the type of this Domain. Custom Domain can be further queries using the GetCustomDomain Endpoint */
|
|
486
404
|
type: DomainType;
|
|
487
405
|
}
|
|
488
|
-
export declare const Domain: S.Schema<Domain>;
|
|
489
406
|
export type DistributionDomainsList = Array<Domain>;
|
|
490
|
-
export declare const DistributionDomainsList: S.Schema<DistributionDomainsList>;
|
|
491
407
|
/** This object may be present if, and only if the distribution has encountered an error state. */
|
|
492
408
|
export type DistributionErrorsList = Array<StatusError>;
|
|
493
|
-
export declare const DistributionErrorsList: S.Schema<DistributionErrorsList>;
|
|
494
409
|
/** - `CREATING`: The distribution was just created. All the relevant resources are created in the background. Once fully reconciled, this switches to `ACTIVE`. If there are any issues, the status changes to `ERROR`. You can look at the `errors` array to get more infos. - `ACTIVE`: The usual state. The desired configuration is synced, there are no errors - `UPDATING`: The state when there is a discrepancy between the desired and actual configuration state. This occurs right after an update. Will switch to `ACTIVE` or `ERROR`, depending on if synchronizing succeeds or not. - `DELETING`: The state right after a delete request was received. The distribution will stay in this status until all resources have been successfully removed, or until we encounter an `ERROR` state. **NOTE:** You can keep fetching the distribution while it is deleting. After successful deletion, trying to get a distribution will return a 404 Not Found response - `ERROR`: The error state. Look at the `errors` array for more info. */
|
|
495
410
|
export type DistributionStatus = "CREATING" | "ACTIVE" | "UPDATING" | "DELETING" | "ERROR";
|
|
496
|
-
export declare const DistributionStatus: any;
|
|
497
411
|
/** This object only ever shows up in the disabled rules section. If rules are never defined (e.g. no collection, rule group, or the rule itself is ever mentioned), they are implicitly disabled */
|
|
498
412
|
export interface WafStatusRuleBlockReasonNeverDefined {
|
|
499
413
|
/** This is always `neverDefined` */
|
|
500
414
|
type: string;
|
|
501
415
|
}
|
|
502
|
-
export declare const WafStatusRuleBlockReasonNeverDefined: S.Schema<WafStatusRuleBlockReasonNeverDefined>;
|
|
503
416
|
export interface WafStatusRuleBlockReasonDirectlyDefined {
|
|
504
417
|
/** This is always `directlyDefined` */
|
|
505
418
|
type: string;
|
|
506
419
|
}
|
|
507
|
-
export declare const WafStatusRuleBlockReasonDirectlyDefined: S.Schema<WafStatusRuleBlockReasonDirectlyDefined>;
|
|
508
420
|
/** A list containing all WAF Types which can use this Rule. You must patch you WAF to one of these WAF Types to make use of this rule. Rules show up with this state if they would have been enabled or logOnly otherwise. */
|
|
509
421
|
export type WafStatusRuleBlockReasonInvalidWafTypeAllowedWafTypesList = Array<WafType>;
|
|
510
|
-
export declare const WafStatusRuleBlockReasonInvalidWafTypeAllowedWafTypesList: S.Schema<WafStatusRuleBlockReasonInvalidWafTypeAllowedWafTypesList>;
|
|
511
422
|
export interface WafStatusRuleBlockReasonInvalidWafType {
|
|
512
423
|
/** A list containing all WAF Types which can use this Rule. You must patch you WAF to one of these WAF Types to make use of this rule. Rules show up with this state if they would have been enabled or logOnly otherwise. */
|
|
513
424
|
allowedWafTypes: WafStatusRuleBlockReasonInvalidWafTypeAllowedWafTypesList;
|
|
514
425
|
/** This is always `invalidWafType` */
|
|
515
426
|
type: string;
|
|
516
427
|
}
|
|
517
|
-
export declare const WafStatusRuleBlockReasonInvalidWafType: S.Schema<WafStatusRuleBlockReasonInvalidWafType>;
|
|
518
428
|
export interface WafStatusRuleBlockReasonInheritedFromCollection {
|
|
519
429
|
/** The Collection that caused this rule to be in its current state. */
|
|
520
430
|
collectionId: string;
|
|
521
431
|
/** This is always `inheritedFromCollection` */
|
|
522
432
|
type: string;
|
|
523
433
|
}
|
|
524
|
-
export declare const WafStatusRuleBlockReasonInheritedFromCollection: S.Schema<WafStatusRuleBlockReasonInheritedFromCollection>;
|
|
525
434
|
export interface WafStatusRuleBlockReasonInheritedFromGroup {
|
|
526
435
|
/** The Group that caused this rule to be in its current state. */
|
|
527
436
|
groupId: string;
|
|
528
437
|
/** This is always `inheritedFromGroup` */
|
|
529
438
|
type: string;
|
|
530
439
|
}
|
|
531
|
-
export declare const WafStatusRuleBlockReasonInheritedFromGroup: S.Schema<WafStatusRuleBlockReasonInheritedFromGroup>;
|
|
532
440
|
/** Defines the Reason why a Rule is in the specified state (set to be enabled, disabled or logOnly). */
|
|
533
441
|
export type WafStatusRuleBlockReason = WafStatusRuleBlockReasonNeverDefined | WafStatusRuleBlockReasonDirectlyDefined | WafStatusRuleBlockReasonInvalidWafType | WafStatusRuleBlockReasonInheritedFromCollection | WafStatusRuleBlockReasonInheritedFromGroup;
|
|
534
|
-
export declare const WafStatusRuleBlockReason: S.Schema<WafStatusRuleBlockReason>;
|
|
535
442
|
export interface WafStatusRuleBlock {
|
|
536
443
|
/** Specifies the Id of the Rule. */
|
|
537
444
|
id: string;
|
|
538
445
|
reason: WafStatusRuleBlockReason;
|
|
539
446
|
}
|
|
540
|
-
export declare const WafStatusRuleBlock: S.Schema<WafStatusRuleBlock>;
|
|
541
447
|
export type DistributionWafDisabledRulesList = Array<WafStatusRuleBlock>;
|
|
542
|
-
export declare const DistributionWafDisabledRulesList: S.Schema<DistributionWafDisabledRulesList>;
|
|
543
448
|
export type DistributionWafEnabledRulesList = Array<WafStatusRuleBlock>;
|
|
544
|
-
export declare const DistributionWafEnabledRulesList: S.Schema<DistributionWafEnabledRulesList>;
|
|
545
449
|
export type DistributionWafLogOnlyRulesList = Array<WafStatusRuleBlock>;
|
|
546
|
-
export declare const DistributionWafLogOnlyRulesList: S.Schema<DistributionWafLogOnlyRulesList>;
|
|
547
450
|
/** For this property to be present two pre-conditions must be met: - the WAF was enabled at least once - the query parameter ?withWafStatus is truthy This property contains the waf Status. At this point in time, this contains all resolved rules. Rules are split into 3 groups: - enabledRules - logOnlyRules - disabledRules **Do note that the global waf mode (Disabled, LogOnly, Enabled) is *NOT* reflected in this list!** */
|
|
548
451
|
export interface DistributionWaf {
|
|
549
452
|
disabledRules: DistributionWafDisabledRulesList;
|
|
550
453
|
enabledRules: DistributionWafEnabledRulesList;
|
|
551
454
|
logOnlyRules: DistributionWafLogOnlyRulesList;
|
|
552
455
|
}
|
|
553
|
-
export declare const DistributionWaf: S.Schema<DistributionWaf>;
|
|
554
456
|
export interface Distribution {
|
|
555
457
|
config: Config;
|
|
556
458
|
/** RFC3339 string defining when the distribution was created */
|
|
@@ -567,11 +469,9 @@ export interface Distribution {
|
|
|
567
469
|
/** For this property to be present two pre-conditions must be met: - the WAF was enabled at least once - the query parameter ?withWafStatus is truthy This property contains the waf Status. At this point in time, this contains all resolved rules. Rules are split into 3 groups: - enabledRules - logOnlyRules - disabledRules **Do note that the global waf mode (Disabled, LogOnly, Enabled) is *NOT* reflected in this list!** */
|
|
568
470
|
waf?: DistributionWaf;
|
|
569
471
|
}
|
|
570
|
-
export declare const Distribution: S.Schema<Distribution>;
|
|
571
472
|
export interface CreateDistributionResponse {
|
|
572
473
|
distribution: Distribution;
|
|
573
474
|
}
|
|
574
|
-
export declare const CreateDistributionResponse: S.Schema<CreateDistributionResponse>;
|
|
575
475
|
export interface DeleteCustomDomainRequest {
|
|
576
476
|
/** Your STACKIT Project Id */
|
|
577
477
|
projectId: string;
|
|
@@ -579,10 +479,8 @@ export interface DeleteCustomDomainRequest {
|
|
|
579
479
|
domain: string;
|
|
580
480
|
intentId?: string;
|
|
581
481
|
}
|
|
582
|
-
export declare const DeleteCustomDomainRequest: S.Schema<DeleteCustomDomainRequest>;
|
|
583
482
|
/** This object is present if the custom domain has errors. */
|
|
584
483
|
export type CustomDomainErrorsList = Array<StatusError>;
|
|
585
|
-
export declare const CustomDomainErrorsList: S.Schema<CustomDomainErrorsList>;
|
|
586
484
|
/** Definition of a custom domain */
|
|
587
485
|
export interface CustomDomain {
|
|
588
486
|
/** This object is present if the custom domain has errors. */
|
|
@@ -591,12 +489,10 @@ export interface CustomDomain {
|
|
|
591
489
|
name: string;
|
|
592
490
|
status: DomainStatus;
|
|
593
491
|
}
|
|
594
|
-
export declare const CustomDomain: S.Schema<CustomDomain>;
|
|
595
492
|
/** Returns the custom domain that was deleted while the deletion has not completed yet. After the deletion was successful the response will be empty. */
|
|
596
493
|
export interface DeleteCustomDomainResponse {
|
|
597
494
|
customDomain?: CustomDomain;
|
|
598
495
|
}
|
|
599
|
-
export declare const DeleteCustomDomainResponse: S.Schema<DeleteCustomDomainResponse>;
|
|
600
496
|
export interface DeleteDistributionRequest {
|
|
601
497
|
/** Your STACKIT Project Id */
|
|
602
498
|
projectId: string;
|
|
@@ -604,11 +500,9 @@ export interface DeleteDistributionRequest {
|
|
|
604
500
|
/** While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple DELETE-Requests with the same `intentId` are received, all but the first request are dropped. */
|
|
605
501
|
intentId?: string;
|
|
606
502
|
}
|
|
607
|
-
export declare const DeleteDistributionRequest: S.Schema<DeleteDistributionRequest>;
|
|
608
503
|
export interface DeleteDistributionResponse {
|
|
609
504
|
distribution?: Distribution;
|
|
610
505
|
}
|
|
611
|
-
export declare const DeleteDistributionResponse: S.Schema<DeleteDistributionResponse>;
|
|
612
506
|
export interface FindCachePathsRequest {
|
|
613
507
|
/** Your STACKIT Project Id */
|
|
614
508
|
projectId: string;
|
|
@@ -616,52 +510,41 @@ export interface FindCachePathsRequest {
|
|
|
616
510
|
/** A substring of the search query. */
|
|
617
511
|
path: string;
|
|
618
512
|
}
|
|
619
|
-
export declare const FindCachePathsRequest: S.Schema<FindCachePathsRequest>;
|
|
620
513
|
export interface FindCachePathsResponseEntry {
|
|
621
514
|
/** Defines one path that was previously used as part of a granular purge */
|
|
622
515
|
path: string;
|
|
623
516
|
}
|
|
624
|
-
export declare const FindCachePathsResponseEntry: S.Schema<FindCachePathsResponseEntry>;
|
|
625
517
|
export type FindCachePathsResponseResponseList = Array<FindCachePathsResponseEntry>;
|
|
626
|
-
export declare const FindCachePathsResponseResponseList: S.Schema<FindCachePathsResponseResponseList>;
|
|
627
518
|
export interface FindCachePathsResponse {
|
|
628
519
|
response: FindCachePathsResponseResponseList;
|
|
629
520
|
}
|
|
630
|
-
export declare const FindCachePathsResponse: S.Schema<FindCachePathsResponse>;
|
|
631
521
|
export interface GetCacheInfoRequest {
|
|
632
522
|
/** Your STACKIT Project Id */
|
|
633
523
|
projectId: string;
|
|
634
524
|
distributionId: string;
|
|
635
525
|
purgePath?: string;
|
|
636
526
|
}
|
|
637
|
-
export declare const GetCacheInfoRequest: S.Schema<GetCacheInfoRequest>;
|
|
638
527
|
export type GetCacheInfoResponseHistoryEntryType = "full" | "granular";
|
|
639
|
-
export declare const GetCacheInfoResponseHistoryEntryType: any;
|
|
640
528
|
export interface GetCacheInfoResponseHistoryEntry {
|
|
641
529
|
occurredAt: string;
|
|
642
530
|
type: GetCacheInfoResponseHistoryEntryType;
|
|
643
531
|
}
|
|
644
|
-
export declare const GetCacheInfoResponseHistoryEntry: S.Schema<GetCacheInfoResponseHistoryEntry>;
|
|
645
532
|
export type GetCacheInfoResponseHistoryList = Array<GetCacheInfoResponseHistoryEntry>;
|
|
646
|
-
export declare const GetCacheInfoResponseHistoryList: S.Schema<GetCacheInfoResponseHistoryList>;
|
|
647
533
|
export interface GetCacheInfoResponse {
|
|
648
534
|
history: GetCacheInfoResponseHistoryList;
|
|
649
535
|
/** Returns the last time the cache was purged by calling the PurgeCache endpoint. Time represented as RFC3339 compliant string. If the cache was never purged, this returns `null` */
|
|
650
536
|
lastPurgeTime: string | null;
|
|
651
537
|
}
|
|
652
|
-
export declare const GetCacheInfoResponse: S.Schema<GetCacheInfoResponse>;
|
|
653
538
|
export interface GetCustomDomainRequest {
|
|
654
539
|
/** Your STACKIT Project Id */
|
|
655
540
|
projectId: string;
|
|
656
541
|
distributionId: string;
|
|
657
542
|
domain: string;
|
|
658
543
|
}
|
|
659
|
-
export declare const GetCustomDomainRequest: S.Schema<GetCustomDomainRequest>;
|
|
660
544
|
/** This is returned when no custom certificate is used. We provision and manage a Let's Encrypt Certificate for you */
|
|
661
545
|
export interface GetCustomDomainManagedCertificate {
|
|
662
546
|
type: string;
|
|
663
547
|
}
|
|
664
|
-
export declare const GetCustomDomainManagedCertificate: S.Schema<GetCustomDomainManagedCertificate>;
|
|
665
548
|
/** Returned if a custom certificate is used. Response does not contain the certificate or key. */
|
|
666
549
|
export interface GetCustomDomainCustomCertificate {
|
|
667
550
|
/** Returns if the CNAME Check has been disabled for this Custom Domain. This is usually set for migrations to allow for no downtime. */
|
|
@@ -670,14 +553,11 @@ export interface GetCustomDomainCustomCertificate {
|
|
|
670
553
|
/** Whenever a new custom certificate is added the version is increased by 1. */
|
|
671
554
|
version: number;
|
|
672
555
|
}
|
|
673
|
-
export declare const GetCustomDomainCustomCertificate: S.Schema<GetCustomDomainCustomCertificate>;
|
|
674
556
|
export type GetCustomDomainResponseCertificate = GetCustomDomainManagedCertificate | GetCustomDomainCustomCertificate;
|
|
675
|
-
export declare const GetCustomDomainResponseCertificate: S.Schema<GetCustomDomainResponseCertificate>;
|
|
676
557
|
export interface GetCustomDomainResponse {
|
|
677
558
|
certificate: GetCustomDomainResponseCertificate;
|
|
678
559
|
customDomain: CustomDomain;
|
|
679
560
|
}
|
|
680
|
-
export declare const GetCustomDomainResponse: S.Schema<GetCustomDomainResponse>;
|
|
681
561
|
export interface GetDistributionRequest {
|
|
682
562
|
/** Your STACKIT Project Id */
|
|
683
563
|
projectId: string;
|
|
@@ -685,18 +565,13 @@ export interface GetDistributionRequest {
|
|
|
685
565
|
/** If set, the top level of a distribution contains a `waf` property, which defines the status of the waf. This includes a list of all resolved rules. */
|
|
686
566
|
withWafStatus?: boolean;
|
|
687
567
|
}
|
|
688
|
-
export declare const GetDistributionRequest: S.Schema<GetDistributionRequest>;
|
|
689
568
|
export interface GetDistributionResponse {
|
|
690
569
|
distribution: Distribution;
|
|
691
570
|
}
|
|
692
|
-
export declare const GetDistributionResponse: S.Schema<GetDistributionResponse>;
|
|
693
571
|
export type GetLogsRequestSortBy = "timestamp" | "dataCenterRegion" | "requestCountryCode" | "statusCode" | "cacheHit" | "size" | "path" | "host";
|
|
694
|
-
export declare const GetLogsRequestSortBy: any;
|
|
695
572
|
export type GetLogsRequestSortOrder = "ascending" | "descending";
|
|
696
|
-
export declare const GetLogsRequestSortOrder: any;
|
|
697
573
|
/** The action a WAF rule can take based on a request */
|
|
698
574
|
export type WAFRuleAction = "BLOCKED" | "LOGGED" | "ALLOWED";
|
|
699
|
-
export declare const WAFRuleAction: any;
|
|
700
575
|
export interface GetLogsRequest {
|
|
701
576
|
/** Your STACKIT Project Id */
|
|
702
577
|
projectId: string;
|
|
@@ -724,11 +599,9 @@ export interface GetLogsRequest {
|
|
|
724
599
|
/** Filters based on whether the request was served from the CDN cache. Can be combined with other filters */
|
|
725
600
|
cacheHit?: boolean;
|
|
726
601
|
}
|
|
727
|
-
export declare const GetLogsRequest: S.Schema<GetLogsRequest>;
|
|
728
602
|
export type WAFViolationRequestHeadersMap = {
|
|
729
603
|
[key: string]: string | undefined;
|
|
730
604
|
};
|
|
731
|
-
export declare const WAFViolationRequestHeadersMap: S.Schema<WAFViolationRequestHeadersMap>;
|
|
732
605
|
/** Information about a violated WAF rule in case the WAF is enabled and a rule was triggered (either in BLOCK or LOG_ONLY mode) */
|
|
733
606
|
export interface WAFViolation {
|
|
734
607
|
action: WAFRuleAction;
|
|
@@ -742,7 +615,6 @@ export interface WAFViolation {
|
|
|
742
615
|
/** ID of the WAF rule that was triggered */
|
|
743
616
|
ruleId: string;
|
|
744
617
|
}
|
|
745
|
-
export declare const WAFViolation: S.Schema<WAFViolation>;
|
|
746
618
|
export interface DistributionLogsRecord {
|
|
747
619
|
cacheHit: boolean;
|
|
748
620
|
dataCenterRegion: string;
|
|
@@ -756,14 +628,11 @@ export interface DistributionLogsRecord {
|
|
|
756
628
|
timestamp: string;
|
|
757
629
|
wafViolation?: WAFViolation;
|
|
758
630
|
}
|
|
759
|
-
export declare const DistributionLogsRecord: S.Schema<DistributionLogsRecord>;
|
|
760
631
|
export type GetLogsResponseLogsList = Array<DistributionLogsRecord>;
|
|
761
|
-
export declare const GetLogsResponseLogsList: S.Schema<GetLogsResponseLogsList>;
|
|
762
632
|
export interface GetLogsResponse {
|
|
763
633
|
logs: GetLogsResponseLogsList;
|
|
764
634
|
nextPageIdentifier?: string;
|
|
765
635
|
}
|
|
766
|
-
export declare const GetLogsResponse: S.Schema<GetLogsResponse>;
|
|
767
636
|
export interface GetLogsSearchFiltersRequest {
|
|
768
637
|
/** Your STACKIT Project ID. */
|
|
769
638
|
projectId: string;
|
|
@@ -772,27 +641,18 @@ export interface GetLogsSearchFiltersRequest {
|
|
|
772
641
|
/** Optional search string. Will search the **values** for the text input. */
|
|
773
642
|
filter?: string;
|
|
774
643
|
}
|
|
775
|
-
export declare const GetLogsSearchFiltersRequest: S.Schema<GetLogsSearchFiltersRequest>;
|
|
776
644
|
export type GetLogsSearchFiltersResponseCacheItem = "HIT" | "MISS";
|
|
777
|
-
export declare const GetLogsSearchFiltersResponseCacheItem: any;
|
|
778
645
|
export type GetLogsSearchFiltersResponseCacheList = Array<GetLogsSearchFiltersResponseCacheItem>;
|
|
779
|
-
export declare const GetLogsSearchFiltersResponseCacheList: S.Schema<GetLogsSearchFiltersResponseCacheList>;
|
|
780
646
|
/** A datacenter. The `id` defines the key needed to filter against the logs endpoint, while the `displayName` defines a human-readable Name. */
|
|
781
647
|
export interface GetLogsSearchFiltersResponseDatacenterBlockItem {
|
|
782
648
|
displayName: string;
|
|
783
649
|
id: string;
|
|
784
650
|
}
|
|
785
|
-
export declare const GetLogsSearchFiltersResponseDatacenterBlockItem: S.Schema<GetLogsSearchFiltersResponseDatacenterBlockItem>;
|
|
786
651
|
export type GetLogsSearchFiltersResponseDatacenterBlockAFList = Array<GetLogsSearchFiltersResponseDatacenterBlockItem>;
|
|
787
|
-
export declare const GetLogsSearchFiltersResponseDatacenterBlockAFList: S.Schema<GetLogsSearchFiltersResponseDatacenterBlockAFList>;
|
|
788
652
|
export type GetLogsSearchFiltersResponseDatacenterBlockASIAList = Array<GetLogsSearchFiltersResponseDatacenterBlockItem>;
|
|
789
|
-
export declare const GetLogsSearchFiltersResponseDatacenterBlockASIAList: S.Schema<GetLogsSearchFiltersResponseDatacenterBlockASIAList>;
|
|
790
653
|
export type GetLogsSearchFiltersResponseDatacenterBlockEUList = Array<GetLogsSearchFiltersResponseDatacenterBlockItem>;
|
|
791
|
-
export declare const GetLogsSearchFiltersResponseDatacenterBlockEUList: S.Schema<GetLogsSearchFiltersResponseDatacenterBlockEUList>;
|
|
792
654
|
export type GetLogsSearchFiltersResponseDatacenterBlockNAList = Array<GetLogsSearchFiltersResponseDatacenterBlockItem>;
|
|
793
|
-
export declare const GetLogsSearchFiltersResponseDatacenterBlockNAList: S.Schema<GetLogsSearchFiltersResponseDatacenterBlockNAList>;
|
|
794
655
|
export type GetLogsSearchFiltersResponseDatacenterBlockSAList = Array<GetLogsSearchFiltersResponseDatacenterBlockItem>;
|
|
795
|
-
export declare const GetLogsSearchFiltersResponseDatacenterBlockSAList: S.Schema<GetLogsSearchFiltersResponseDatacenterBlockSAList>;
|
|
796
656
|
/** Object containing Datacenters to filter for. Each datacenter is grouped to the respective region. */
|
|
797
657
|
export interface GetLogsSearchFiltersResponseDatacenterBlock {
|
|
798
658
|
AF: GetLogsSearchFiltersResponseDatacenterBlockAFList;
|
|
@@ -801,13 +661,10 @@ export interface GetLogsSearchFiltersResponseDatacenterBlock {
|
|
|
801
661
|
NA: GetLogsSearchFiltersResponseDatacenterBlockNAList;
|
|
802
662
|
SA: GetLogsSearchFiltersResponseDatacenterBlockSAList;
|
|
803
663
|
}
|
|
804
|
-
export declare const GetLogsSearchFiltersResponseDatacenterBlock: S.Schema<GetLogsSearchFiltersResponseDatacenterBlock>;
|
|
805
664
|
/** List of ISO-3166 Alpha2 Country Codes matching the input filter. Response is ordered in ascending order. For more Info about the country codes, see https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 */
|
|
806
665
|
export type GetLogsSearchFiltersResponseRemoteCountryList = Array<string>;
|
|
807
|
-
export declare const GetLogsSearchFiltersResponseRemoteCountryList: S.Schema<GetLogsSearchFiltersResponseRemoteCountryList>;
|
|
808
666
|
/** List of Status Codes matching the input filter. Response is ordered in ascending order. */
|
|
809
667
|
export type GetLogsSearchFiltersResponseStatusList = Array<number>;
|
|
810
|
-
export declare const GetLogsSearchFiltersResponseStatusList: S.Schema<GetLogsSearchFiltersResponseStatusList>;
|
|
811
668
|
export interface GetLogsSearchFiltersResponse {
|
|
812
669
|
cache: GetLogsSearchFiltersResponseCacheList;
|
|
813
670
|
dataCenter: GetLogsSearchFiltersResponseDatacenterBlock;
|
|
@@ -816,9 +673,7 @@ export interface GetLogsSearchFiltersResponse {
|
|
|
816
673
|
/** List of Status Codes matching the input filter. Response is ordered in ascending order. */
|
|
817
674
|
status: GetLogsSearchFiltersResponseStatusList;
|
|
818
675
|
}
|
|
819
|
-
export declare const GetLogsSearchFiltersResponse: S.Schema<GetLogsSearchFiltersResponse>;
|
|
820
676
|
export type GetStatisticsRequestInterval = "hourly" | "daily" | "monthly" | "yearly";
|
|
821
|
-
export declare const GetStatisticsRequestInterval: any;
|
|
822
677
|
export interface GetStatisticsRequest {
|
|
823
678
|
/** Your STACKIT Project Id */
|
|
824
679
|
projectId: string;
|
|
@@ -830,7 +685,6 @@ export interface GetStatisticsRequest {
|
|
|
830
685
|
/** Over which interval should statistics be aggregated? defaults to hourly resolution **NOTE**: Intervals are grouped in buckets that start and end based on a day in UTC+0 time. So for the `daily` interval, the group starts (inclusive) and ends (exclusive) at `00:00Z` */
|
|
831
686
|
interval?: GetStatisticsRequestInterval | (string & {});
|
|
832
687
|
}
|
|
833
|
-
export declare const GetStatisticsRequest: S.Schema<GetStatisticsRequest>;
|
|
834
688
|
export interface DistributionStatisticsRecordEntry {
|
|
835
689
|
/** Number of cached requests that were served */
|
|
836
690
|
cachedRequests: number;
|
|
@@ -839,7 +693,6 @@ export interface DistributionStatisticsRecordEntry {
|
|
|
839
693
|
/** Total traffic in bytes that occurred during the time interval */
|
|
840
694
|
totalTrafficBytes: number;
|
|
841
695
|
}
|
|
842
|
-
export declare const DistributionStatisticsRecordEntry: S.Schema<DistributionStatisticsRecordEntry>;
|
|
843
696
|
/** Mapping of regions to the metrics for this region for the defined time interval All regions are always present. If no traffic was reported for a region, it will still contain 0-filled properties */
|
|
844
697
|
export interface DistributionStatisticsRecordRegions {
|
|
845
698
|
AF: DistributionStatisticsRecordEntry;
|
|
@@ -848,7 +701,6 @@ export interface DistributionStatisticsRecordRegions {
|
|
|
848
701
|
SA: DistributionStatisticsRecordEntry;
|
|
849
702
|
US: DistributionStatisticsRecordEntry;
|
|
850
703
|
}
|
|
851
|
-
export declare const DistributionStatisticsRecordRegions: S.Schema<DistributionStatisticsRecordRegions>;
|
|
852
704
|
/** Aggregated statistics of a distribution during a time interval */
|
|
853
705
|
export interface DistributionStatisticsRecord {
|
|
854
706
|
/** Number of cached requests that were served */
|
|
@@ -863,17 +715,12 @@ export interface DistributionStatisticsRecord {
|
|
|
863
715
|
/** Start of the time interval the statistics refer to */
|
|
864
716
|
start: string;
|
|
865
717
|
}
|
|
866
|
-
export declare const DistributionStatisticsRecord: S.Schema<DistributionStatisticsRecord>;
|
|
867
718
|
export type GetStatisticsResponseRecordsList = Array<DistributionStatisticsRecord>;
|
|
868
|
-
export declare const GetStatisticsResponseRecordsList: S.Schema<GetStatisticsResponseRecordsList>;
|
|
869
719
|
export interface GetStatisticsResponse {
|
|
870
720
|
records: GetStatisticsResponseRecordsList;
|
|
871
721
|
}
|
|
872
|
-
export declare const GetStatisticsResponse: S.Schema<GetStatisticsResponse>;
|
|
873
722
|
export type ListDistributionsRequestSortBy = "id" | "updatedAt" | "createdAt" | "originUrl" | "status" | "originUrlRelated";
|
|
874
|
-
export declare const ListDistributionsRequestSortBy: any;
|
|
875
723
|
export type ListDistributionsRequestSortOrder = "ascending" | "descending";
|
|
876
|
-
export declare const ListDistributionsRequestSortOrder: any;
|
|
877
724
|
export interface ListDistributionsRequest {
|
|
878
725
|
/** Your STACKIT Project Id */
|
|
879
726
|
projectId: string;
|
|
@@ -887,68 +734,52 @@ export interface ListDistributionsRequest {
|
|
|
887
734
|
sortBy?: ListDistributionsRequestSortBy | (string & {});
|
|
888
735
|
sortOrder?: ListDistributionsRequestSortOrder | (string & {});
|
|
889
736
|
}
|
|
890
|
-
export declare const ListDistributionsRequest: S.Schema<ListDistributionsRequest>;
|
|
891
737
|
export type ListDistributionsResponseDistributionsList = Array<Distribution>;
|
|
892
|
-
export declare const ListDistributionsResponseDistributionsList: S.Schema<ListDistributionsResponseDistributionsList>;
|
|
893
738
|
export interface ListDistributionsResponse {
|
|
894
739
|
distributions: ListDistributionsResponseDistributionsList;
|
|
895
740
|
nextPageIdentifier?: string;
|
|
896
741
|
}
|
|
897
|
-
export declare const ListDistributionsResponse: S.Schema<ListDistributionsResponse>;
|
|
898
742
|
export interface ListWafCollectionsRequest {
|
|
899
743
|
/** Your STACKIT Project Id */
|
|
900
744
|
projectId: string;
|
|
901
745
|
}
|
|
902
|
-
export declare const ListWafCollectionsRequest: S.Schema<ListWafCollectionsRequest>;
|
|
903
746
|
/** LocalizedString is a map from language to string value */
|
|
904
747
|
export type LocalizedString = {
|
|
905
748
|
[key: string]: string | undefined;
|
|
906
749
|
};
|
|
907
|
-
export declare const LocalizedString: S.Schema<LocalizedString>;
|
|
908
750
|
export interface WafRule {
|
|
909
751
|
/** Optional CoreRuleSet rule Id in case this is a CRS rule */
|
|
910
752
|
code?: string;
|
|
911
753
|
description: LocalizedString;
|
|
912
754
|
id: string;
|
|
913
755
|
}
|
|
914
|
-
export declare const WafRule: S.Schema<WafRule>;
|
|
915
756
|
export type WafRuleGroupRulesList = Array<WafRule>;
|
|
916
|
-
export declare const WafRuleGroupRulesList: S.Schema<WafRuleGroupRulesList>;
|
|
917
757
|
export interface WafRuleGroup {
|
|
918
758
|
description: LocalizedString;
|
|
919
759
|
name: LocalizedString;
|
|
920
760
|
rules: WafRuleGroupRulesList;
|
|
921
761
|
}
|
|
922
|
-
export declare const WafRuleGroup: S.Schema<WafRuleGroup>;
|
|
923
762
|
export type WafRuleCollectionGroupsList = Array<WafRuleGroup>;
|
|
924
|
-
export declare const WafRuleCollectionGroupsList: S.Schema<WafRuleCollectionGroupsList>;
|
|
925
763
|
export interface WafRuleCollection {
|
|
926
764
|
groups: WafRuleCollectionGroupsList;
|
|
927
765
|
id: string;
|
|
928
766
|
name: LocalizedString;
|
|
929
767
|
}
|
|
930
|
-
export declare const WafRuleCollection: S.Schema<WafRuleCollection>;
|
|
931
768
|
export type ListWafCollectionsResponseCollectionsList = Array<WafRuleCollection>;
|
|
932
|
-
export declare const ListWafCollectionsResponseCollectionsList: S.Schema<ListWafCollectionsResponseCollectionsList>;
|
|
933
769
|
export interface ListWafCollectionsResponse {
|
|
934
770
|
collections: ListWafCollectionsResponseCollectionsList;
|
|
935
771
|
}
|
|
936
|
-
export declare const ListWafCollectionsResponse: S.Schema<ListWafCollectionsResponse>;
|
|
937
772
|
export type HttpBackendPatchGeofencingValueList = Array<string>;
|
|
938
|
-
export declare const HttpBackendPatchGeofencingValueList: S.Schema<HttpBackendPatchGeofencingValueList>;
|
|
939
773
|
/** An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. */
|
|
940
774
|
export type HttpBackendPatchGeofencingMap = {
|
|
941
775
|
[key: string]: HttpBackendPatchGeofencingValueList | undefined;
|
|
942
776
|
};
|
|
943
|
-
export declare const HttpBackendPatchGeofencingMap: S.Schema<HttpBackendPatchGeofencingMap>;
|
|
944
777
|
/** Headers that will be sent with every request to the configured origin. **WARNING**: Do not store sensitive values in the headers. The configuration is stored as plain text. */
|
|
945
778
|
export type HttpBackendPatchOriginRequestHeadersMap = {
|
|
946
779
|
[key: string]: string | undefined;
|
|
947
780
|
};
|
|
948
|
-
export declare const HttpBackendPatchOriginRequestHeadersMap: S.Schema<HttpBackendPatchOriginRequestHeadersMap>;
|
|
949
781
|
/** Defines the type of content origin. For this schema, it must be set to `http`. */
|
|
950
782
|
export type HttpBackendPatchType = "http";
|
|
951
|
-
export declare const HttpBackendPatchType: any;
|
|
952
783
|
/** A partial HTTP Backend */
|
|
953
784
|
export interface HttpBackendPatch {
|
|
954
785
|
/** An object mapping multiple alternative origins to country codes. Any request from one of those country codes will route to the alternative origin. Do note that country codes may only be used once. You cannot have a country be assigned to multiple alternative origins. */
|
|
@@ -960,10 +791,8 @@ export interface HttpBackendPatch {
|
|
|
960
791
|
/** Defines the type of content origin. For this schema, it must be set to `http`. */
|
|
961
792
|
type: HttpBackendPatchType;
|
|
962
793
|
}
|
|
963
|
-
export declare const HttpBackendPatch: S.Schema<HttpBackendPatch>;
|
|
964
794
|
/** Defines the type of content origin. For this schema, it must be set to `bucket`. */
|
|
965
795
|
export type BucketBackendPatchType = "bucket";
|
|
966
|
-
export declare const BucketBackendPatchType: any;
|
|
967
796
|
export interface BucketBackendPatch {
|
|
968
797
|
/** The fully qualified URL of your cloud storage bucket (for example, `https://s3.eu-central-1.amazonaws.com/my-bucket`). */
|
|
969
798
|
bucketUrl?: string;
|
|
@@ -973,21 +802,15 @@ export interface BucketBackendPatch {
|
|
|
973
802
|
/** Defines the type of content origin. For this schema, it must be set to `bucket`. */
|
|
974
803
|
type: BucketBackendPatchType;
|
|
975
804
|
}
|
|
976
|
-
export declare const BucketBackendPatch: S.Schema<BucketBackendPatch>;
|
|
977
805
|
export type ConfigPatchBackend = HttpBackendPatch | BucketBackendPatch;
|
|
978
|
-
export declare const ConfigPatchBackend: S.Schema<ConfigPatchBackend>;
|
|
979
806
|
/** Restricts access to your content based on country. We use the ISO 3166-1 alpha-2 standard for country codes (e.g., DE, ES, GB). This setting blocks users from the specified countries. */
|
|
980
807
|
export type ConfigPatchBlockedCountriesList = Array<string>;
|
|
981
|
-
export declare const ConfigPatchBlockedCountriesList: S.Schema<ConfigPatchBlockedCountriesList>;
|
|
982
808
|
/** Restricts access to your content by specifying a list of blocked IPv4 addresses. This feature enhances security and privacy by preventing these addresses from accessing your distribution. */
|
|
983
809
|
export type ConfigPatchBlockedIpsList = Array<string>;
|
|
984
|
-
export declare const ConfigPatchBlockedIpsList: S.Schema<ConfigPatchBlockedIpsList>;
|
|
985
810
|
/** HTTP request header names that participate in the cache key. Omit to leave unchanged; send `[]` to clear. */
|
|
986
811
|
export type CacheConfigPatchCacheKeyHeadersList = Array<string>;
|
|
987
|
-
export declare const CacheConfigPatchCacheKeyHeadersList: S.Schema<CacheConfigPatchCacheKeyHeadersList>;
|
|
988
812
|
/** Allowlist of query-string parameter names. Omit to leave unchanged; send `[]` to clear. */
|
|
989
813
|
export type CacheConfigPatchQueryStringVaryParametersList = Array<string>;
|
|
990
|
-
export declare const CacheConfigPatchQueryStringVaryParametersList: S.Schema<CacheConfigPatchQueryStringVaryParametersList>;
|
|
991
814
|
/** PATCH variant of `CacheConfig`. Follows the standard PATCH conventions for this API: - Field omitted from the request: current value is left unchanged. - Array field sent as `[]`: current list is cleared. - `queryStringVaryEnabled` is a plain boolean (non-nullable); omit it to leave unchanged. `queryStringVaryParameters` is stored independently of `queryStringVaryEnabled`. Sending a non-empty `queryStringVaryParameters` together with `queryStringVaryEnabled=false` is accepted: the list is persisted for later re-activation but does not affect the cache while the flag is false. */
|
|
992
815
|
export interface CacheConfigPatch {
|
|
993
816
|
/** HTTP request header names that participate in the cache key. Omit to leave unchanged; send `[]` to clear. */
|
|
@@ -997,15 +820,12 @@ export interface CacheConfigPatch {
|
|
|
997
820
|
/** Allowlist of query-string parameter names. Omit to leave unchanged; send `[]` to clear. */
|
|
998
821
|
queryStringVaryParameters?: CacheConfigPatchQueryStringVaryParametersList;
|
|
999
822
|
}
|
|
1000
|
-
export declare const CacheConfigPatch: S.Schema<CacheConfigPatch>;
|
|
1001
823
|
/** Labels are key-value string pairs that can be attached to a distribution. JSON Merge Patch is supported, meaning setting a key to null will remove it. */
|
|
1002
824
|
export type ConfigPatchLabelsMap = {
|
|
1003
825
|
[key: string]: string | null | undefined;
|
|
1004
826
|
};
|
|
1005
|
-
export declare const ConfigPatchLabelsMap: S.Schema<ConfigPatchLabelsMap>;
|
|
1006
827
|
/** Defines the type of the log sink. For Grafana Loki, this must be set to `loki`. */
|
|
1007
828
|
export type LokiLogSinkPatchType = "loki";
|
|
1008
|
-
export declare const LokiLogSinkPatchType: any;
|
|
1009
829
|
export interface LokiLogSinkPatch {
|
|
1010
830
|
credentials?: LokiLogSinkCredentials;
|
|
1011
831
|
/** The fully qualified URL where the CDN should push logs to your Loki instance (for example, `https://loki.example.com/loki/api/v1/push`). */
|
|
@@ -1013,13 +833,10 @@ export interface LokiLogSinkPatch {
|
|
|
1013
833
|
/** Defines the type of the log sink. For Grafana Loki, this must be set to `loki`. */
|
|
1014
834
|
type: LokiLogSinkPatchType;
|
|
1015
835
|
}
|
|
1016
|
-
export declare const LokiLogSinkPatch: S.Schema<LokiLogSinkPatch>;
|
|
1017
836
|
/** The authentication credentials required for the CDN to push logs to your OTLP endpoint. */
|
|
1018
837
|
export type OtlpLogSinkPatchCredentials = OtlpLogSinkBearerCredentials | OtlpLogSinkBasicCredentials;
|
|
1019
|
-
export declare const OtlpLogSinkPatchCredentials: S.Schema<OtlpLogSinkPatchCredentials>;
|
|
1020
838
|
/** Defines the type of the log sink. */
|
|
1021
839
|
export type OtlpLogSinkPatchType = "otlp";
|
|
1022
|
-
export declare const OtlpLogSinkPatchType: any;
|
|
1023
840
|
export interface OtlpLogSinkPatch {
|
|
1024
841
|
/** The authentication credentials required for the CDN to push logs to your OTLP endpoint. */
|
|
1025
842
|
credentials?: OtlpLogSinkPatchCredentials;
|
|
@@ -1028,15 +845,11 @@ export interface OtlpLogSinkPatch {
|
|
|
1028
845
|
/** Defines the type of the log sink. */
|
|
1029
846
|
type: OtlpLogSinkPatchType;
|
|
1030
847
|
}
|
|
1031
|
-
export declare const OtlpLogSinkPatch: S.Schema<OtlpLogSinkPatch>;
|
|
1032
848
|
export type ConfigPatchLogSink = LokiLogSinkPatch | OtlpLogSinkPatch;
|
|
1033
|
-
export declare const ConfigPatchLogSink: S.Schema<ConfigPatchLogSink>;
|
|
1034
849
|
export interface OptimizerPatch {
|
|
1035
850
|
enabled?: boolean;
|
|
1036
851
|
}
|
|
1037
|
-
export declare const OptimizerPatch: S.Schema<OptimizerPatch>;
|
|
1038
852
|
export type ConfigPatchRegionsList = Array<Region | (string & {})>;
|
|
1039
|
-
export declare const ConfigPatchRegionsList: S.Schema<ConfigPatchRegionsList>;
|
|
1040
853
|
/** Configuration for TLS protocol versions. Note: Enabling older TLS versions (1.0, 1.1) is generally discouraged for security reasons. */
|
|
1041
854
|
export interface TlsConfigPatch {
|
|
1042
855
|
/** If set to true, the distribution will accept connections using TLS 1.0. */
|
|
@@ -1044,40 +857,27 @@ export interface TlsConfigPatch {
|
|
|
1044
857
|
/** If set to true, the distribution will accept connections using TLS 1.1. */
|
|
1045
858
|
enableTls11?: boolean;
|
|
1046
859
|
}
|
|
1047
|
-
export declare const TlsConfigPatch: S.Schema<TlsConfigPatch>;
|
|
1048
860
|
export type WafConfigPatchAllowedHttpMethodsList = Array<string>;
|
|
1049
|
-
export declare const WafConfigPatchAllowedHttpMethodsList: S.Schema<WafConfigPatchAllowedHttpMethodsList>;
|
|
1050
861
|
export type WafConfigPatchAllowedHttpVersionsList = Array<string>;
|
|
1051
|
-
export declare const WafConfigPatchAllowedHttpVersionsList: S.Schema<WafConfigPatchAllowedHttpVersionsList>;
|
|
1052
862
|
export type WafConfigPatchAllowedRequestContentTypesList = Array<string>;
|
|
1053
|
-
export declare const WafConfigPatchAllowedRequestContentTypesList: S.Schema<WafConfigPatchAllowedRequestContentTypesList>;
|
|
1054
863
|
/** Ids of WAF Collections to mark as disabled */
|
|
1055
864
|
export type WafConfigPatchDisabledRuleCollectionIdsList = Array<string>;
|
|
1056
|
-
export declare const WafConfigPatchDisabledRuleCollectionIdsList: S.Schema<WafConfigPatchDisabledRuleCollectionIdsList>;
|
|
1057
865
|
/** Ids of WAF Rule Groups to mark as disabled */
|
|
1058
866
|
export type WafConfigPatchDisabledRuleGroupIdsList = Array<string>;
|
|
1059
|
-
export declare const WafConfigPatchDisabledRuleGroupIdsList: S.Schema<WafConfigPatchDisabledRuleGroupIdsList>;
|
|
1060
867
|
/** Ids of WAF Rules that are **explicitly** disabled for this distribution. */
|
|
1061
868
|
export type WafConfigPatchDisabledRuleIdsList = Array<string>;
|
|
1062
|
-
export declare const WafConfigPatchDisabledRuleIdsList: S.Schema<WafConfigPatchDisabledRuleIdsList>;
|
|
1063
869
|
/** Ids of WAF Collections to mark as enabled */
|
|
1064
870
|
export type WafConfigPatchEnabledRuleCollectionIdsList = Array<string>;
|
|
1065
|
-
export declare const WafConfigPatchEnabledRuleCollectionIdsList: S.Schema<WafConfigPatchEnabledRuleCollectionIdsList>;
|
|
1066
871
|
/** Ids of WAF Rule Groups to mark as enabled */
|
|
1067
872
|
export type WafConfigPatchEnabledRuleGroupIdsList = Array<string>;
|
|
1068
|
-
export declare const WafConfigPatchEnabledRuleGroupIdsList: S.Schema<WafConfigPatchEnabledRuleGroupIdsList>;
|
|
1069
873
|
/** Ids of WAF Rules that are **explicitly** enabled for this distribution. */
|
|
1070
874
|
export type WafConfigPatchEnabledRuleIdsList = Array<string>;
|
|
1071
|
-
export declare const WafConfigPatchEnabledRuleIdsList: S.Schema<WafConfigPatchEnabledRuleIdsList>;
|
|
1072
875
|
/** Ids of WAF Collections to mark as log Only. */
|
|
1073
876
|
export type WafConfigPatchLogOnlyRuleCollectionIdsList = Array<string>;
|
|
1074
|
-
export declare const WafConfigPatchLogOnlyRuleCollectionIdsList: S.Schema<WafConfigPatchLogOnlyRuleCollectionIdsList>;
|
|
1075
877
|
/** Ids of WAF Rule Groups to mark as log Only. */
|
|
1076
878
|
export type WafConfigPatchLogOnlyRuleGroupIdsList = Array<string>;
|
|
1077
|
-
export declare const WafConfigPatchLogOnlyRuleGroupIdsList: S.Schema<WafConfigPatchLogOnlyRuleGroupIdsList>;
|
|
1078
879
|
/** Ids of WAF Rules that are **explicitly** marked as Log Only for this distribution. */
|
|
1079
880
|
export type WafConfigPatchLogOnlyRuleIdsList = Array<string>;
|
|
1080
|
-
export declare const WafConfigPatchLogOnlyRuleIdsList: S.Schema<WafConfigPatchLogOnlyRuleIdsList>;
|
|
1081
881
|
/** Modify the WAF Configuration ## WAF Rules You can modify the set of enabled, disabled and log-only Rules by modifying these 9 properties: - enabledRuleIds - disabledRuleIds - logOnlyRuleIds - enabledRuleGroupIds - disabledRuleGroupIds - logOnlyRuleGroupIds - enabledRuleCollectionIds - disabledRuleCollectionIds - logOnlyRuleCollectionIds Please inquire the `WafConfig` Description on how the effective configuration is determined. For patching, if an ID is already used in one of the properties, it will be removed (and effectively moved) to the new property. If patching multiple properties with the same ID (e.g. writing `@builtin/crs/response` to `logOnlyRuleCollectionIds` and `enabledRuleCollectionIds`), the request will be rejected with a 400. */
|
|
1082
882
|
export interface WafConfigPatch {
|
|
1083
883
|
allowedHttpMethods?: WafConfigPatchAllowedHttpMethodsList;
|
|
@@ -1105,7 +905,6 @@ export interface WafConfigPatch {
|
|
|
1105
905
|
paranoiaLevel?: WafParanoiaLevel | (string & {});
|
|
1106
906
|
type?: WafType | (string & {});
|
|
1107
907
|
}
|
|
1108
|
-
export declare const WafConfigPatch: S.Schema<WafConfigPatch>;
|
|
1109
908
|
export interface ConfigPatch {
|
|
1110
909
|
backend?: ConfigPatchBackend;
|
|
1111
910
|
/** Restricts access to your content based on country. We use the ISO 3166-1 alpha-2 standard for country codes (e.g., DE, ES, GB). This setting blocks users from the specified countries. */
|
|
@@ -1130,7 +929,6 @@ export interface ConfigPatch {
|
|
|
1130
929
|
tls?: TlsConfigPatch;
|
|
1131
930
|
waf?: WafConfigPatch;
|
|
1132
931
|
}
|
|
1133
|
-
export declare const ConfigPatch: S.Schema<ConfigPatch>;
|
|
1134
932
|
export interface PatchDistributionRequest {
|
|
1135
933
|
/** Your STACKIT Project Id */
|
|
1136
934
|
projectId: string;
|
|
@@ -1139,11 +937,9 @@ export interface PatchDistributionRequest {
|
|
|
1139
937
|
/** While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. */
|
|
1140
938
|
intentId?: string;
|
|
1141
939
|
}
|
|
1142
|
-
export declare const PatchDistributionRequest: S.Schema<PatchDistributionRequest>;
|
|
1143
940
|
export interface PatchDistributionResponse {
|
|
1144
941
|
distribution: Distribution;
|
|
1145
942
|
}
|
|
1146
|
-
export declare const PatchDistributionResponse: S.Schema<PatchDistributionResponse>;
|
|
1147
943
|
export interface PurgeCacheRequest {
|
|
1148
944
|
/** Your STACKIT Project Id */
|
|
1149
945
|
projectId: string;
|
|
@@ -1151,12 +947,9 @@ export interface PurgeCacheRequest {
|
|
|
1151
947
|
/** Defines an optional path. If this is set, a granular purge is done. If missing, the entire cache is invalidated. During a granular cache purge, only the provided path is purged. Please do not that for example `/some/path` and `/some/path.txt` are considered different paths. */
|
|
1152
948
|
path?: string;
|
|
1153
949
|
}
|
|
1154
|
-
export declare const PurgeCacheRequest: S.Schema<PurgeCacheRequest>;
|
|
1155
950
|
export type PurgeCacheResponse2 = unknown;
|
|
1156
|
-
export declare const PurgeCacheResponse2: S.Schema<PurgeCacheResponse2>;
|
|
1157
951
|
/** This is returned when no custom certificate is used. We provision and manage a Let's Encrypt Certificate for you */
|
|
1158
952
|
export type PutCustomDomainManagedCertificate = GetCustomDomainManagedCertificate;
|
|
1159
|
-
export declare const PutCustomDomainManagedCertificate: S.Schema<GetCustomDomainManagedCertificate>;
|
|
1160
953
|
/** Returned if a custom certificate is used. Response does not contain the certificate or key. */
|
|
1161
954
|
export interface PutCustomDomainCustomCertificate {
|
|
1162
955
|
/** base64-encoded PEM-encoded certificate */
|
|
@@ -1167,10 +960,8 @@ export interface PutCustomDomainCustomCertificate {
|
|
|
1167
960
|
skipDnsCheck?: boolean;
|
|
1168
961
|
type: string;
|
|
1169
962
|
}
|
|
1170
|
-
export declare const PutCustomDomainCustomCertificate: S.Schema<PutCustomDomainCustomCertificate>;
|
|
1171
963
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
1172
964
|
export type PutCustomDomainRequestCertificate = GetCustomDomainManagedCertificate | PutCustomDomainCustomCertificate;
|
|
1173
|
-
export declare const PutCustomDomainRequestCertificate: S.Schema<PutCustomDomainRequestCertificate>;
|
|
1174
965
|
export interface PutCustomDomainRequest {
|
|
1175
966
|
/** Your STACKIT Project Id */
|
|
1176
967
|
projectId: string;
|
|
@@ -1181,16 +972,13 @@ export interface PutCustomDomainRequest {
|
|
|
1181
972
|
/** While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple modifying Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. */
|
|
1182
973
|
intentId?: string;
|
|
1183
974
|
}
|
|
1184
|
-
export declare const PutCustomDomainRequest: S.Schema<PutCustomDomainRequest>;
|
|
1185
975
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
1186
976
|
export type PutCustomDomainResponseCertificate = GetCustomDomainManagedCertificate | GetCustomDomainCustomCertificate;
|
|
1187
|
-
export declare const PutCustomDomainResponseCertificate: S.Schema<PutCustomDomainResponseCertificate>;
|
|
1188
977
|
export interface PutCustomDomainResponse {
|
|
1189
978
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
1190
979
|
certificate?: PutCustomDomainResponseCertificate;
|
|
1191
980
|
customDomain: CustomDomain;
|
|
1192
981
|
}
|
|
1193
|
-
export declare const PutCustomDomainResponse: S.Schema<PutCustomDomainResponse>;
|
|
1194
982
|
export type CreateDistributionError = BadRequest | UnprocessableEntity | StackitOpError;
|
|
1195
983
|
/** Create new distribution CreateDistribution will create a new CDN distribution */
|
|
1196
984
|
export declare const createDistribution: API.OperationMethod<CreateDistributionRequest, CreateDistributionResponse, CreateDistributionError, StackitOpContext>;
|