@distilled.cloud/stackit 1.0.0-rc.18 → 1.0.0-rc.19
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/_bundle/sdk.js +1 -1
- package/lib/_bundle/sdk.js.map +1 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/protocol.d.ts +2 -1
- package/lib/protocol.d.ts.map +1 -1
- package/lib/services/alb.d.ts +134 -132
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +24 -24
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +51 -51
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +29 -29
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +15 -15
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +1 -1
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +47 -46
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +22 -22
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +129 -129
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +22 -22
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +40 -40
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +1 -1
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +15 -15
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +1 -1
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +218 -161
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +40 -39
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +49 -34
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +1 -1
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +21 -21
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +23 -23
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +104 -101
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +24 -24
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +120 -29
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +37 -33
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +430 -415
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +179 -179
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/identity.d.ts +204 -0
- package/lib/services/identity.d.ts.map +1 -0
- package/lib/services/identity.js +2 -0
- package/lib/services/identity.js.map +1 -0
- package/lib/services/index.d.ts +2 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/index.js +2 -0
- package/lib/services/intake.d.ts +58 -58
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +25 -25
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +13 -13
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +37 -37
- package/lib/services/kms.js.map +1 -1
- package/lib/services/lb_ip_lists.d.ts +14 -14
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +1 -1
- package/lib/services/lb_ip_lists.js.map +1 -1
- package/lib/services/load_balancer.d.ts +128 -126
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +25 -25
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +96 -45
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +34 -31
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +78 -24
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +34 -33
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mailout.d.ts +476 -0
- package/lib/services/mailout.d.ts.map +1 -0
- package/lib/services/mailout.js +33 -0
- package/lib/services/mailout.js.map +1 -0
- package/lib/services/mariadb.d.ts +81 -30
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +35 -32
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +33 -33
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +1 -1
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +25 -25
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +1 -1
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +142 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +38 -38
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +6 -6
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +34 -34
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +362 -362
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +147 -147
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +87 -36
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +35 -32
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +334 -278
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +24 -24
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +59 -55
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +47 -46
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +36 -36
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +33 -33
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +92 -41
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +36 -33
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +26 -22
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +1 -1
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +56 -56
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +32 -32
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +42 -42
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +1 -1
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +349 -213
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +31 -23
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +24 -24
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +33 -33
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +21 -21
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +39 -39
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +31 -31
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +25 -25
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +17 -17
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +1 -1
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +30 -30
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +26 -26
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +22 -21
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +1 -1
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +151 -141
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +46 -45
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +121 -110
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +21 -21
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +47 -47
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +36 -36
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +39 -39
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +22 -22
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +80 -38
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +34 -33
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +116 -41
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +31 -28
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +55 -54
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +1 -1
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +94 -43
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +35 -32
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +150 -142
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +40 -40
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +65 -65
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +23 -23
- package/lib/services/workflows.js.map +1 -1
- package/lib/services.lazy/alb.js +1 -1
- package/lib/services.lazy/automation.js +1 -1
- package/lib/services.lazy/dns.js +2 -2
- package/lib/services.lazy/functions.js +2 -2
- package/lib/services.lazy/git.js +2 -2
- package/lib/services.lazy/iaas.js +1 -1
- package/lib/services.lazy/identity.js +1 -0
- package/lib/services.lazy/index.js +2 -2
- package/lib/services.lazy/load_balancer.js +1 -1
- package/lib/services.lazy/logme.js +2 -2
- package/lib/services.lazy/logs.js +1 -1
- package/lib/services.lazy/mailout.js +4 -0
- package/lib/services.lazy/mariadb.js +2 -2
- package/lib/services.lazy/opensearch.js +2 -2
- package/lib/services.lazy/pim.js +1 -1
- package/lib/services.lazy/postgres_flex.js +1 -1
- package/lib/services.lazy/rabbitmq.js +2 -2
- package/lib/services.lazy/resource_manager.js +1 -1
- package/lib/services.lazy/sca.js +2 -2
- package/lib/services.lazy/secrets_manager.js +1 -1
- package/lib/services.lazy/sfs.js +2 -2
- package/lib/services.lazy/ske.js +1 -1
- package/lib/services.lazy/telemetry_link.js +1 -1
- package/lib/services.lazy/telemetry_router.js +2 -2
- package/lib/services.lazy/valkey.js +2 -2
- package/lib/services.lazy/vpn.js +1 -1
- package/package.json +5 -5
- package/src/pagination.ts +7 -3
- package/src/protocol.ts +10 -10
- package/src/services/alb.ts +135 -132
- package/src/services/alb_waf.ts +51 -51
- package/src/services/authorization.ts +15 -15
- package/src/services/automation.ts +53 -49
- package/src/services/cdn.ts +129 -129
- package/src/services/certificates.ts +40 -40
- package/src/services/cost.ts +15 -15
- package/src/services/dns.ts +497 -269
- package/src/services/dremio.ts +156 -118
- package/src/services/edge.ts +21 -21
- package/src/services/functions.ts +176 -172
- package/src/services/git.ts +354 -108
- package/src/services/iaas.ts +438 -415
- package/src/services/identity.ts +625 -0
- package/src/services/index.ts +2 -0
- package/src/services/intake.ts +58 -58
- package/src/services/kms.ts +13 -13
- package/src/services/lb_ip_lists.ts +14 -14
- package/src/services/load_balancer.ts +129 -126
- package/src/services/logme.ts +294 -122
- package/src/services/logs.ts +123 -72
- package/src/services/mailout.ts +1277 -0
- package/src/services/mariadb.ts +277 -105
- package/src/services/model_experiments.ts +33 -33
- package/src/services/model_serving.ts +25 -25
- package/src/services/mongodb_flex.ts +142 -137
- package/src/services/object_storage.ts +6 -6
- package/src/services/observability.ts +369 -362
- package/src/services/opensearch.ts +286 -114
- package/src/services/pim.ts +362 -278
- package/src/services/postgres_flex.ts +191 -179
- package/src/services/pubsub.ts +36 -36
- package/src/services/rabbitmq.ts +297 -125
- package/src/services/registry.ts +30 -26
- package/src/services/resource_manager.ts +57 -57
- package/src/services/run_command.ts +42 -42
- package/src/services/sca.ts +732 -371
- package/src/services/scf.ts +24 -24
- package/src/services/secrets_manager.ts +22 -22
- package/src/services/server_backup.ts +31 -31
- package/src/services/server_update.ts +17 -17
- package/src/services/service_account.ts +32 -30
- package/src/services/service_enablement.ts +28 -24
- package/src/services/sfs.ts +404 -395
- package/src/services/ske.ts +258 -228
- package/src/services/sqlserverflex.ts +47 -47
- package/src/services/stackit_marketplace.ts +39 -39
- package/src/services/telemetry_link.ts +136 -81
- package/src/services/telemetry_router.ts +283 -94
- package/src/services/ufw.ts +56 -54
- package/src/services/valkey.ts +290 -118
- package/src/services/vpn.ts +152 -142
- package/src/services/workflows.ts +65 -65
package/src/services/cdn.ts
CHANGED
|
@@ -64,9 +64,9 @@ export type HttpBackendCreateOriginRequestHeadersMap = { [key: string]: string |
|
|
|
64
64
|
export type HttpBackendCreateType = "http";
|
|
65
65
|
export interface HttpBackendCreate {
|
|
66
66
|
/** 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. */
|
|
67
|
-
geofencing?: HttpBackendCreateGeofencingMap;
|
|
67
|
+
geofencing?: HttpBackendCreateGeofencingMap | undefined;
|
|
68
68
|
/** 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. */
|
|
69
|
-
originRequestHeaders?: HttpBackendCreateOriginRequestHeadersMap;
|
|
69
|
+
originRequestHeaders?: HttpBackendCreateOriginRequestHeadersMap | undefined;
|
|
70
70
|
/** The origin of the content that should be made available through the CDN. Note that the path and query parameters are ignored. Ports are allowed. If no protocol is provided, `https` is assumed. So `www.example.com:1234/somePath?q=123` is normalized to `https://www.example.com:1234` */
|
|
71
71
|
originUrl: string;
|
|
72
72
|
/** Defines the type of content origin. For this schema, it must be set to `http`. */
|
|
@@ -100,11 +100,11 @@ export type CacheConfigCreateQueryStringVaryParametersList = Array<string>;
|
|
|
100
100
|
/** 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. */
|
|
101
101
|
export interface CacheConfigCreate {
|
|
102
102
|
/** 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. */
|
|
103
|
-
cacheKeyHeaders?: CacheConfigCreateCacheKeyHeadersList;
|
|
103
|
+
cacheKeyHeaders?: CacheConfigCreateCacheKeyHeadersList | undefined;
|
|
104
104
|
/** When true, the CDN varies its cache by the request query string. If `queryStringVaryParameters` is empty, every unique query-string combination produces its own cache entry; if non-empty, only the listed parameters influence the cache key. */
|
|
105
|
-
queryStringVaryEnabled?: boolean;
|
|
105
|
+
queryStringVaryEnabled?: boolean | undefined;
|
|
106
106
|
/** 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. */
|
|
107
|
-
queryStringVaryParameters?: CacheConfigCreateQueryStringVaryParametersList;
|
|
107
|
+
queryStringVaryParameters?: CacheConfigCreateQueryStringVaryParametersList | undefined;
|
|
108
108
|
}
|
|
109
109
|
/** Labels are key-value string pairs that can be attached to a distribution. */
|
|
110
110
|
export type CreateDistributionRequestLabelsMap = { [key: string]: string | undefined };
|
|
@@ -170,7 +170,7 @@ export type MatchCondition = "ANY" | "ALL" | "NONE";
|
|
|
170
170
|
export type MatcherValuesList = Array<string>;
|
|
171
171
|
/** A matcher containing a list of string values to compare against the request path. */
|
|
172
172
|
export interface Matcher {
|
|
173
|
-
valueMatchCondition?: MatchCondition | (string & {});
|
|
173
|
+
valueMatchCondition?: MatchCondition | (string & {}) | undefined;
|
|
174
174
|
/** A list of glob patterns to match against the request path. At least one value is required. Examples: "/shop/*" or "*\/img/*" */
|
|
175
175
|
values: MatcherValuesList;
|
|
176
176
|
}
|
|
@@ -181,12 +181,12 @@ export type RedirectRuleStatusCode = 301 | 302 | 303 | 307 | 308;
|
|
|
181
181
|
/** A single redirect rule defining a source pattern and a target URL. */
|
|
182
182
|
export interface RedirectRule {
|
|
183
183
|
/** An optional description for the redirect rule. */
|
|
184
|
-
description?: string;
|
|
184
|
+
description?: string | undefined;
|
|
185
185
|
/** A toggle to enable or disable the redirect rule. */
|
|
186
|
-
enabled?: boolean;
|
|
186
|
+
enabled?: boolean | undefined;
|
|
187
187
|
/** A list of matchers that define when this rule should apply. At least one matcher is required. */
|
|
188
188
|
matchers: RedirectRuleMatchersList;
|
|
189
|
-
ruleMatchCondition?: MatchCondition | (string & {});
|
|
189
|
+
ruleMatchCondition?: MatchCondition | (string & {}) | undefined;
|
|
190
190
|
/** The HTTP status code for the redirect. Must be one of 301, 302, 303, 307, or 308. */
|
|
191
191
|
statusCode: RedirectRuleStatusCode | (number & {});
|
|
192
192
|
/** The target URL to redirect to. Must be a valid URI. */
|
|
@@ -197,7 +197,7 @@ export type RedirectConfigRulesList = Array<RedirectRule>;
|
|
|
197
197
|
/** A wrapper for a list of redirect rules that allows for redirect settings on a distribution. */
|
|
198
198
|
export interface RedirectConfig {
|
|
199
199
|
/** A list of redirect rules. The order of rules matters for evaluation. */
|
|
200
|
-
rules?: RedirectConfigRulesList;
|
|
200
|
+
rules?: RedirectConfigRulesList | undefined;
|
|
201
201
|
}
|
|
202
202
|
/** The following regions exist: - `EU` - Europe - `US` - United States / North America - `AF` - Africa - `SA` - South America - `ASIA` - Asia and Oceania */
|
|
203
203
|
export type Region = "EU" | "US" | "AF" | "SA" | "ASIA";
|
|
@@ -242,30 +242,30 @@ export type WafType = "FREE" | "PREMIUM";
|
|
|
242
242
|
/** 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. */
|
|
243
243
|
export interface WafConfig {
|
|
244
244
|
/** 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 */
|
|
245
|
-
allowedHttpMethods?: WafConfigAllowedHttpMethodsList;
|
|
246
|
-
allowedHttpVersions?: WafConfigAllowedHttpVersionsList;
|
|
245
|
+
allowedHttpMethods?: WafConfigAllowedHttpMethodsList | undefined;
|
|
246
|
+
allowedHttpVersions?: WafConfigAllowedHttpVersionsList | undefined;
|
|
247
247
|
/** 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` */
|
|
248
|
-
allowedRequestContentTypes?: WafConfigAllowedRequestContentTypesList;
|
|
248
|
+
allowedRequestContentTypes?: WafConfigAllowedRequestContentTypesList | undefined;
|
|
249
249
|
/** Ids of WAF Collections to mark as disabled */
|
|
250
|
-
disabledRuleCollectionIds?: WafConfigDisabledRuleCollectionIdsList;
|
|
250
|
+
disabledRuleCollectionIds?: WafConfigDisabledRuleCollectionIdsList | undefined;
|
|
251
251
|
/** Ids of WAF Rule Groups to mark as disabled */
|
|
252
|
-
disabledRuleGroupIds?: WafConfigDisabledRuleGroupIdsList;
|
|
252
|
+
disabledRuleGroupIds?: WafConfigDisabledRuleGroupIdsList | undefined;
|
|
253
253
|
/** Ids of WAF Rules that are **explicitly** disabled for this distribution. */
|
|
254
|
-
disabledRuleIds?: WafConfigDisabledRuleIdsList;
|
|
254
|
+
disabledRuleIds?: WafConfigDisabledRuleIdsList | undefined;
|
|
255
255
|
/** Ids of WAF Collections to mark as enabled */
|
|
256
|
-
enabledRuleCollectionIds?: WafConfigEnabledRuleCollectionIdsList;
|
|
256
|
+
enabledRuleCollectionIds?: WafConfigEnabledRuleCollectionIdsList | undefined;
|
|
257
257
|
/** Ids of WAF Rule Groups to mark as enabled */
|
|
258
|
-
enabledRuleGroupIds?: WafConfigEnabledRuleGroupIdsList;
|
|
258
|
+
enabledRuleGroupIds?: WafConfigEnabledRuleGroupIdsList | undefined;
|
|
259
259
|
/** 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. */
|
|
260
260
|
enabledRuleIds: WafConfigEnabledRuleIdsList;
|
|
261
261
|
/** Ids of WAF Collections to mark as log Only. */
|
|
262
|
-
logOnlyRuleCollectionIds?: WafConfigLogOnlyRuleCollectionIdsList;
|
|
262
|
+
logOnlyRuleCollectionIds?: WafConfigLogOnlyRuleCollectionIdsList | undefined;
|
|
263
263
|
/** Ids of WAF Rule Groups to mark as log Only. */
|
|
264
|
-
logOnlyRuleGroupIds?: WafConfigLogOnlyRuleGroupIdsList;
|
|
264
|
+
logOnlyRuleGroupIds?: WafConfigLogOnlyRuleGroupIdsList | undefined;
|
|
265
265
|
/** Ids of WAF Rules that are **explicitly** marked as Log Only for this distribution. */
|
|
266
|
-
logOnlyRuleIds?: WafConfigLogOnlyRuleIdsList;
|
|
266
|
+
logOnlyRuleIds?: WafConfigLogOnlyRuleIdsList | undefined;
|
|
267
267
|
mode: WafMode | (string & {});
|
|
268
|
-
paranoiaLevel?: WafParanoiaLevel | (string & {});
|
|
268
|
+
paranoiaLevel?: WafParanoiaLevel | (string & {}) | undefined;
|
|
269
269
|
type: WafType | (string & {});
|
|
270
270
|
}
|
|
271
271
|
export interface CreateDistributionRequest {
|
|
@@ -274,29 +274,29 @@ export interface CreateDistributionRequest {
|
|
|
274
274
|
/** Configuration for the content origin backend. */
|
|
275
275
|
backend: CreateDistributionRequestBackend;
|
|
276
276
|
/** 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. */
|
|
277
|
-
blockedCountries?: CreateDistributionRequestBlockedCountriesList;
|
|
277
|
+
blockedCountries?: CreateDistributionRequestBlockedCountriesList | undefined;
|
|
278
278
|
/** 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. */
|
|
279
|
-
blockedIps?: CreateDistributionRequestBlockedIpsList;
|
|
280
|
-
cacheConfig?: CacheConfigCreate;
|
|
279
|
+
blockedIps?: CreateDistributionRequestBlockedIpsList | undefined;
|
|
280
|
+
cacheConfig?: CacheConfigCreate | undefined;
|
|
281
281
|
/** Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) */
|
|
282
|
-
defaultCacheDuration?: string;
|
|
282
|
+
defaultCacheDuration?: string | undefined;
|
|
283
283
|
/** Enabling this allows the 'Host' header to be passed through to the origin. */
|
|
284
|
-
forwardHostHeader?: boolean;
|
|
284
|
+
forwardHostHeader?: boolean | undefined;
|
|
285
285
|
/** While optional, it is greatly encouraged to provide an `intentId`. This is used to deduplicate requests. If multiple POST-Requests with the same `intentId` for a given `projectId` are received, all but the first request are dropped. */
|
|
286
|
-
intentId?: string;
|
|
286
|
+
intentId?: string | undefined;
|
|
287
287
|
/** Labels are key-value string pairs that can be attached to a distribution. */
|
|
288
|
-
labels?: CreateDistributionRequestLabelsMap;
|
|
289
|
-
logSink?: CreateDistributionRequestLogSink;
|
|
288
|
+
labels?: CreateDistributionRequestLabelsMap | undefined;
|
|
289
|
+
logSink?: CreateDistributionRequestLogSink | undefined;
|
|
290
290
|
/** Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. */
|
|
291
|
-
monthlyLimitBytes?: number;
|
|
292
|
-
optimizer?: Optimizer;
|
|
293
|
-
redirects?: RedirectConfig;
|
|
291
|
+
monthlyLimitBytes?: number | undefined;
|
|
292
|
+
optimizer?: Optimizer | undefined;
|
|
293
|
+
redirects?: RedirectConfig | undefined;
|
|
294
294
|
/** Define in which regions you would like your content to be cached. */
|
|
295
295
|
regions: CreateDistributionRequestRegionsList;
|
|
296
296
|
/** Enable this to prevent origin-level cookies from being forwarded to the end user. */
|
|
297
|
-
stripResponseCookies?: boolean;
|
|
298
|
-
tls?: TlsConfig;
|
|
299
|
-
waf?: WafConfig;
|
|
297
|
+
stripResponseCookies?: boolean | undefined;
|
|
298
|
+
tls?: TlsConfig | undefined;
|
|
299
|
+
waf?: WafConfig | undefined;
|
|
300
300
|
}
|
|
301
301
|
export type HttpBackendGeofencingValueList = Array<string>;
|
|
302
302
|
/** 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. */
|
|
@@ -373,16 +373,16 @@ export interface Config {
|
|
|
373
373
|
blockedIps: ConfigBlockedIpsList;
|
|
374
374
|
cacheConfig: CacheConfig;
|
|
375
375
|
/** Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) */
|
|
376
|
-
defaultCacheDuration?: string | null;
|
|
376
|
+
defaultCacheDuration?: string | null | undefined;
|
|
377
377
|
/** Enabling this allows the 'Host' header to be passed through to the origin. */
|
|
378
378
|
forwardHostHeader: boolean;
|
|
379
379
|
/** Labels are key-value string pairs that can be attached to a distribution. */
|
|
380
|
-
labels?: ConfigLabelsMap;
|
|
381
|
-
logSink?: ConfigLogSink;
|
|
380
|
+
labels?: ConfigLabelsMap | undefined;
|
|
381
|
+
logSink?: ConfigLogSink | undefined;
|
|
382
382
|
/** Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. */
|
|
383
|
-
monthlyLimitBytes?: number | null;
|
|
384
|
-
optimizer?: Optimizer;
|
|
385
|
-
redirects?: RedirectConfig;
|
|
383
|
+
monthlyLimitBytes?: number | null | undefined;
|
|
384
|
+
optimizer?: Optimizer | undefined;
|
|
385
|
+
redirects?: RedirectConfig | undefined;
|
|
386
386
|
regions: ConfigRegionsList;
|
|
387
387
|
/** Enable this to prevent origin-level cookies from being forwarded to the end user. */
|
|
388
388
|
stripResponseCookies: boolean;
|
|
@@ -400,7 +400,7 @@ export type StatusErrorKey =
|
|
|
400
400
|
| "EXTERNAL_QUOTA_REACHED";
|
|
401
401
|
export interface StatusError {
|
|
402
402
|
/** A german translation string corresponding to the error key. Note that we do not guarantee german translations are present. */
|
|
403
|
-
de?: string;
|
|
403
|
+
de?: string | undefined;
|
|
404
404
|
/** An english translation string corresponding to the error key. An english translation key is always present. */
|
|
405
405
|
en: string;
|
|
406
406
|
/** An enum value that describes a Status Error. */
|
|
@@ -416,7 +416,7 @@ export type DomainType = "managed" | "custom";
|
|
|
416
416
|
export interface Domain {
|
|
417
417
|
certificateType: DomainCertificateType;
|
|
418
418
|
/** This object is present if the custom domain has errors. */
|
|
419
|
-
errors?: DomainErrorsList;
|
|
419
|
+
errors?: DomainErrorsList | undefined;
|
|
420
420
|
/** The domain. If this is a custom domain, you can call the GetCustomDomain Endpoint */
|
|
421
421
|
name: string;
|
|
422
422
|
status: DomainStatus;
|
|
@@ -484,7 +484,7 @@ export interface Distribution {
|
|
|
484
484
|
createdAt: string;
|
|
485
485
|
domains: DistributionDomainsList;
|
|
486
486
|
/** This object may be present if, and only if the distribution has encountered an error state. */
|
|
487
|
-
errors?: DistributionErrorsList;
|
|
487
|
+
errors?: DistributionErrorsList | undefined;
|
|
488
488
|
id: string;
|
|
489
489
|
projectId: string;
|
|
490
490
|
/** - `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. */
|
|
@@ -492,7 +492,7 @@ export interface Distribution {
|
|
|
492
492
|
/** RFC3339 string which returns the last time the distribution configuration was modified. */
|
|
493
493
|
updatedAt: string;
|
|
494
494
|
/** 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!** */
|
|
495
|
-
waf?: DistributionWaf;
|
|
495
|
+
waf?: DistributionWaf | undefined;
|
|
496
496
|
}
|
|
497
497
|
export interface CreateDistributionResponse {
|
|
498
498
|
distribution: Distribution;
|
|
@@ -502,31 +502,31 @@ export interface DeleteCustomDomainRequest {
|
|
|
502
502
|
projectId: string;
|
|
503
503
|
distributionId: string;
|
|
504
504
|
domain: string;
|
|
505
|
-
intentId?: string;
|
|
505
|
+
intentId?: string | undefined;
|
|
506
506
|
}
|
|
507
507
|
/** This object is present if the custom domain has errors. */
|
|
508
508
|
export type CustomDomainErrorsList = Array<StatusError>;
|
|
509
509
|
/** Definition of a custom domain */
|
|
510
510
|
export interface CustomDomain {
|
|
511
511
|
/** This object is present if the custom domain has errors. */
|
|
512
|
-
errors?: CustomDomainErrorsList;
|
|
512
|
+
errors?: CustomDomainErrorsList | undefined;
|
|
513
513
|
/** The domain. Can be used as input for the GetCustomDomain endpoint */
|
|
514
514
|
name: string;
|
|
515
515
|
status: DomainStatus;
|
|
516
516
|
}
|
|
517
517
|
/** Returns the custom domain that was deleted while the deletion has not completed yet. After the deletion was successful the response will be empty. */
|
|
518
518
|
export interface DeleteCustomDomainResponse {
|
|
519
|
-
customDomain?: CustomDomain;
|
|
519
|
+
customDomain?: CustomDomain | undefined;
|
|
520
520
|
}
|
|
521
521
|
export interface DeleteDistributionRequest {
|
|
522
522
|
/** Your STACKIT Project Id */
|
|
523
523
|
projectId: string;
|
|
524
524
|
distributionId: string;
|
|
525
525
|
/** 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. */
|
|
526
|
-
intentId?: string;
|
|
526
|
+
intentId?: string | undefined;
|
|
527
527
|
}
|
|
528
528
|
export interface DeleteDistributionResponse {
|
|
529
|
-
distribution?: Distribution;
|
|
529
|
+
distribution?: Distribution | undefined;
|
|
530
530
|
}
|
|
531
531
|
export interface FindCachePathsRequest {
|
|
532
532
|
/** Your STACKIT Project Id */
|
|
@@ -547,7 +547,7 @@ export interface GetCacheInfoRequest {
|
|
|
547
547
|
/** Your STACKIT Project Id */
|
|
548
548
|
projectId: string;
|
|
549
549
|
distributionId: string;
|
|
550
|
-
purgePath?: string;
|
|
550
|
+
purgePath?: string | undefined;
|
|
551
551
|
}
|
|
552
552
|
export type GetCacheInfoResponseHistoryEntryType = "full" | "granular";
|
|
553
553
|
export interface GetCacheInfoResponseHistoryEntry {
|
|
@@ -590,7 +590,7 @@ export interface GetDistributionRequest {
|
|
|
590
590
|
projectId: string;
|
|
591
591
|
distributionId: string;
|
|
592
592
|
/** 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. */
|
|
593
|
-
withWafStatus?: boolean;
|
|
593
|
+
withWafStatus?: boolean | undefined;
|
|
594
594
|
}
|
|
595
595
|
export interface GetDistributionResponse {
|
|
596
596
|
distribution: Distribution;
|
|
@@ -613,26 +613,26 @@ export interface GetLogsRequest {
|
|
|
613
613
|
/** Your CDN distribution Id */
|
|
614
614
|
distributionId: string;
|
|
615
615
|
/** the start of the time range for which logs should be returned */
|
|
616
|
-
from?: string;
|
|
616
|
+
from?: string | undefined;
|
|
617
617
|
/** the end of the time range for which logs should be returned. If not specified, "now" is used. */
|
|
618
|
-
to?: string;
|
|
618
|
+
to?: string | undefined;
|
|
619
619
|
/** Quantifies how many log entries should be returned on this page. Must be a natural number between 1 and 1000 (inclusive) */
|
|
620
|
-
pageSize?: number;
|
|
620
|
+
pageSize?: number | undefined;
|
|
621
621
|
/** Identifier is returned by the previous response and is used to request the next page. As the `pageIdentifier` encodes an element, inserts during pagination will *not* shift the result. So a scenario like: - Start listing first page - Insert new element - Start listing second page will *never* result in an element from the first page to get "pushed" to the second page, like it could occur with basic limit + offset pagination. The identifier should be treated as an opaque string and never modified. Only pass values returned by the API. */
|
|
622
|
-
pageIdentifier?: string;
|
|
622
|
+
pageIdentifier?: string | undefined;
|
|
623
623
|
/** Sorts the log messages by a specific field. Defaults to `timestamp`. Supported sort options: - `timestamp` - `dataCenterRegion` - `requestCountryCode` - `statusCode` - `cacheHit` - `size` - `path` - `host` */
|
|
624
|
-
sortBy?: GetLogsRequestSortBy | (string & {});
|
|
625
|
-
sortOrder?: GetLogsRequestSortOrder | (string & {});
|
|
624
|
+
sortBy?: GetLogsRequestSortBy | (string & {}) | undefined;
|
|
625
|
+
sortOrder?: GetLogsRequestSortOrder | (string & {}) | undefined;
|
|
626
626
|
/** If this is set then only log entries with the chosen WAF rule action/outcome are returned. Specifically, if `ALLOWED` then all requests with no violation are returned. If `BLOCKED` then those where a WAF rule blocked a request and if `LOGGED` then only those requests where the WAF violation was only logged but the request not blocked */
|
|
627
|
-
wafAction?: WAFRuleAction | (string & {});
|
|
627
|
+
wafAction?: WAFRuleAction | (string & {}) | undefined;
|
|
628
628
|
/** Filters by the CDN data center region that served the request. Can be combined with other filters */
|
|
629
|
-
dataCenterRegion?: string;
|
|
629
|
+
dataCenterRegion?: string | undefined;
|
|
630
630
|
/** Filters by the originating country of the user request. Can be combined with other filters */
|
|
631
|
-
requestCountryCode?: string;
|
|
631
|
+
requestCountryCode?: string | undefined;
|
|
632
632
|
/** Filters by the HTTP status code returned to the client. Can be combined with other filters */
|
|
633
|
-
statusCode?: number;
|
|
633
|
+
statusCode?: number | undefined;
|
|
634
634
|
/** Filters based on whether the request was served from the CDN cache. Can be combined with other filters */
|
|
635
|
-
cacheHit?: boolean;
|
|
635
|
+
cacheHit?: boolean | undefined;
|
|
636
636
|
}
|
|
637
637
|
export type WAFViolationRequestHeadersMap = { [key: string]: string | undefined };
|
|
638
638
|
/** Information about a violated WAF rule in case the WAF is enabled and a rule was triggered (either in BLOCK or LOG_ONLY mode) */
|
|
@@ -659,12 +659,12 @@ export interface DistributionLogsRecord {
|
|
|
659
659
|
size: number;
|
|
660
660
|
statusCode: number;
|
|
661
661
|
timestamp: string;
|
|
662
|
-
wafViolation?: WAFViolation;
|
|
662
|
+
wafViolation?: WAFViolation | undefined;
|
|
663
663
|
}
|
|
664
664
|
export type GetLogsResponseLogsList = Array<DistributionLogsRecord>;
|
|
665
665
|
export interface GetLogsResponse {
|
|
666
666
|
logs: GetLogsResponseLogsList;
|
|
667
|
-
nextPageIdentifier?: string;
|
|
667
|
+
nextPageIdentifier?: string | undefined;
|
|
668
668
|
}
|
|
669
669
|
export interface GetLogsSearchFiltersRequest {
|
|
670
670
|
/** Your STACKIT Project ID. */
|
|
@@ -672,7 +672,7 @@ export interface GetLogsSearchFiltersRequest {
|
|
|
672
672
|
/** Your CDN distribution ID. */
|
|
673
673
|
distributionId: string;
|
|
674
674
|
/** Optional search string. Will search the **values** for the text input. */
|
|
675
|
-
filter?: string;
|
|
675
|
+
filter?: string | undefined;
|
|
676
676
|
}
|
|
677
677
|
export type GetLogsSearchFiltersResponseCacheItem = "HIT" | "MISS";
|
|
678
678
|
export type GetLogsSearchFiltersResponseCacheList = Array<GetLogsSearchFiltersResponseCacheItem>;
|
|
@@ -719,9 +719,9 @@ export interface GetStatisticsRequest {
|
|
|
719
719
|
/** the start of the time range for which statistics should be returned */
|
|
720
720
|
from: string;
|
|
721
721
|
/** the end of the time range for which statistics should be returned. If not specified, the end of the current time interval is used, e.g. next day for daily, next month for monthly, and so on. */
|
|
722
|
-
to?: string;
|
|
722
|
+
to?: string | undefined;
|
|
723
723
|
/** 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` */
|
|
724
|
-
interval?: GetStatisticsRequestInterval | (string & {});
|
|
724
|
+
interval?: GetStatisticsRequestInterval | (string & {}) | undefined;
|
|
725
725
|
}
|
|
726
726
|
export interface DistributionStatisticsRecordEntry {
|
|
727
727
|
/** Number of cached requests that were served */
|
|
@@ -769,19 +769,19 @@ export interface ListDistributionsRequest {
|
|
|
769
769
|
/** Your STACKIT Project Id */
|
|
770
770
|
projectId: string;
|
|
771
771
|
/** Quantifies how many distributions should be returned on this page. Must be a natural number between 1 and 100 (inclusive) */
|
|
772
|
-
pageSize?: number;
|
|
772
|
+
pageSize?: number | undefined;
|
|
773
773
|
/** 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. */
|
|
774
|
-
withWafStatus?: boolean;
|
|
774
|
+
withWafStatus?: boolean | undefined;
|
|
775
775
|
/** Identifier is returned by the previous response and is used to request the next page. As the `pageIdentifier` encodes an element, inserts during pagination will *not* shift the result. So a scenario like: - Start listing first page - Insert new element - Start listing second page will *never* result in an element from the first page to get "pushed" to the second page, like it could occur with basic limit + offset pagination. The identifier should be treated as an opaque string and never modified. Only pass values returned by the API. */
|
|
776
|
-
pageIdentifier?: string;
|
|
776
|
+
pageIdentifier?: string | undefined;
|
|
777
777
|
/** The following sort options exist. We default to `createdAt` - `id` - Sort by distribution Id using String comparison - `updatedAt` - Sort by when the distribution configuration was last modified, for example by changing the regions or response headers - `createdAt` - Sort by when the distribution was initially created. - `originUrl` - Sort by originUrl using String comparison - `status` - Sort by distribution status, using String comparison - `originUrlRelated` - The originUrl is segmented and reversed before sorting. E.g. `www.example.com` is converted to `com.example.www` for sorting. This way, distributions pointing to the same domain trees are grouped next to each other. */
|
|
778
|
-
sortBy?: ListDistributionsRequestSortBy | (string & {});
|
|
779
|
-
sortOrder?: ListDistributionsRequestSortOrder | (string & {});
|
|
778
|
+
sortBy?: ListDistributionsRequestSortBy | (string & {}) | undefined;
|
|
779
|
+
sortOrder?: ListDistributionsRequestSortOrder | (string & {}) | undefined;
|
|
780
780
|
}
|
|
781
781
|
export type ListDistributionsResponseDistributionsList = Array<Distribution>;
|
|
782
782
|
export interface ListDistributionsResponse {
|
|
783
783
|
distributions: ListDistributionsResponseDistributionsList;
|
|
784
|
-
nextPageIdentifier?: string;
|
|
784
|
+
nextPageIdentifier?: string | undefined;
|
|
785
785
|
}
|
|
786
786
|
export interface ListWafCollectionsRequest {
|
|
787
787
|
/** Your STACKIT Project Id */
|
|
@@ -791,7 +791,7 @@ export interface ListWafCollectionsRequest {
|
|
|
791
791
|
export type LocalizedString = { [key: string]: string | undefined };
|
|
792
792
|
export interface WafRule {
|
|
793
793
|
/** Optional CoreRuleSet rule Id in case this is a CRS rule */
|
|
794
|
-
code?: string;
|
|
794
|
+
code?: string | undefined;
|
|
795
795
|
description: LocalizedString;
|
|
796
796
|
id: string;
|
|
797
797
|
}
|
|
@@ -823,11 +823,11 @@ export type HttpBackendPatchType = "http";
|
|
|
823
823
|
/** A partial HTTP Backend */
|
|
824
824
|
export interface HttpBackendPatch {
|
|
825
825
|
/** 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. */
|
|
826
|
-
geofencing?: HttpBackendPatchGeofencingMap;
|
|
826
|
+
geofencing?: HttpBackendPatchGeofencingMap | undefined;
|
|
827
827
|
/** 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. */
|
|
828
|
-
originRequestHeaders?: HttpBackendPatchOriginRequestHeadersMap;
|
|
828
|
+
originRequestHeaders?: HttpBackendPatchOriginRequestHeadersMap | undefined;
|
|
829
829
|
/** The origin of the content that should be made available through the CDN. Note that the path and query parameters are ignored. Ports are allowed. If no protocol is provided, `https` is assumed. So `www.example.com:1234/somePath?q=123` is normalized to `https://www.example.com:1234` */
|
|
830
|
-
originUrl?: string;
|
|
830
|
+
originUrl?: string | undefined;
|
|
831
831
|
/** Defines the type of content origin. For this schema, it must be set to `http`. */
|
|
832
832
|
type: HttpBackendPatchType;
|
|
833
833
|
}
|
|
@@ -835,10 +835,10 @@ export interface HttpBackendPatch {
|
|
|
835
835
|
export type BucketBackendPatchType = "bucket";
|
|
836
836
|
export interface BucketBackendPatch {
|
|
837
837
|
/** The fully qualified URL of your cloud storage bucket (for example, `https://s3.eu-central-1.amazonaws.com/my-bucket`). */
|
|
838
|
-
bucketUrl?: string;
|
|
839
|
-
credentials?: BucketCredentials;
|
|
838
|
+
bucketUrl?: string | undefined;
|
|
839
|
+
credentials?: BucketCredentials | undefined;
|
|
840
840
|
/** The cloud provider region where your storage bucket is located (for example, `us-west-1` for AWS or `eu01` for STACKIT). */
|
|
841
|
-
region?: string;
|
|
841
|
+
region?: string | undefined;
|
|
842
842
|
/** Defines the type of content origin. For this schema, it must be set to `bucket`. */
|
|
843
843
|
type: BucketBackendPatchType;
|
|
844
844
|
}
|
|
@@ -854,20 +854,20 @@ export type CacheConfigPatchQueryStringVaryParametersList = Array<string>;
|
|
|
854
854
|
/** 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. */
|
|
855
855
|
export interface CacheConfigPatch {
|
|
856
856
|
/** HTTP request header names that participate in the cache key. Omit to leave unchanged; send `[]` to clear. */
|
|
857
|
-
cacheKeyHeaders?: CacheConfigPatchCacheKeyHeadersList;
|
|
857
|
+
cacheKeyHeaders?: CacheConfigPatchCacheKeyHeadersList | undefined;
|
|
858
858
|
/** When true, the CDN varies its cache by the request query string. Omit to leave unchanged. */
|
|
859
|
-
queryStringVaryEnabled?: boolean;
|
|
859
|
+
queryStringVaryEnabled?: boolean | undefined;
|
|
860
860
|
/** Allowlist of query-string parameter names. Omit to leave unchanged; send `[]` to clear. */
|
|
861
|
-
queryStringVaryParameters?: CacheConfigPatchQueryStringVaryParametersList;
|
|
861
|
+
queryStringVaryParameters?: CacheConfigPatchQueryStringVaryParametersList | undefined;
|
|
862
862
|
}
|
|
863
863
|
/** 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. */
|
|
864
864
|
export type ConfigPatchLabelsMap = { [key: string]: string | null | undefined };
|
|
865
865
|
/** Defines the type of the log sink. For Grafana Loki, this must be set to `loki`. */
|
|
866
866
|
export type LokiLogSinkPatchType = "loki";
|
|
867
867
|
export interface LokiLogSinkPatch {
|
|
868
|
-
credentials?: LokiLogSinkCredentials;
|
|
868
|
+
credentials?: LokiLogSinkCredentials | undefined;
|
|
869
869
|
/** The fully qualified URL where the CDN should push logs to your Loki instance (for example, `https://loki.example.com/loki/api/v1/push`). */
|
|
870
|
-
pushUrl?: string;
|
|
870
|
+
pushUrl?: string | undefined;
|
|
871
871
|
/** Defines the type of the log sink. For Grafana Loki, this must be set to `loki`. */
|
|
872
872
|
type: LokiLogSinkPatchType;
|
|
873
873
|
}
|
|
@@ -879,23 +879,23 @@ export type OtlpLogSinkPatchCredentials =
|
|
|
879
879
|
export type OtlpLogSinkPatchType = "otlp";
|
|
880
880
|
export interface OtlpLogSinkPatch {
|
|
881
881
|
/** The authentication credentials required for the CDN to push logs to your OTLP endpoint. */
|
|
882
|
-
credentials?: OtlpLogSinkPatchCredentials;
|
|
882
|
+
credentials?: OtlpLogSinkPatchCredentials | undefined;
|
|
883
883
|
/** The fully qualified URL where the CDN should push logs to your OTLP endpoint (for example, `https://otlp.example.com/otlp/v1/logs`). */
|
|
884
|
-
pushUrl?: string;
|
|
884
|
+
pushUrl?: string | undefined;
|
|
885
885
|
/** Defines the type of the log sink. */
|
|
886
886
|
type: OtlpLogSinkPatchType;
|
|
887
887
|
}
|
|
888
888
|
export type ConfigPatchLogSink = LokiLogSinkPatch | OtlpLogSinkPatch;
|
|
889
889
|
export interface OptimizerPatch {
|
|
890
|
-
enabled?: boolean;
|
|
890
|
+
enabled?: boolean | undefined;
|
|
891
891
|
}
|
|
892
892
|
export type ConfigPatchRegionsList = Array<Region | (string & {})>;
|
|
893
893
|
/** Configuration for TLS protocol versions. Note: Enabling older TLS versions (1.0, 1.1) is generally discouraged for security reasons. */
|
|
894
894
|
export interface TlsConfigPatch {
|
|
895
895
|
/** If set to true, the distribution will accept connections using TLS 1.0. */
|
|
896
|
-
enableTls10?: boolean;
|
|
896
|
+
enableTls10?: boolean | undefined;
|
|
897
897
|
/** If set to true, the distribution will accept connections using TLS 1.1. */
|
|
898
|
-
enableTls11?: boolean;
|
|
898
|
+
enableTls11?: boolean | undefined;
|
|
899
899
|
}
|
|
900
900
|
export type WafConfigPatchAllowedHttpMethodsList = Array<string>;
|
|
901
901
|
export type WafConfigPatchAllowedHttpVersionsList = Array<string>;
|
|
@@ -920,62 +920,62 @@ export type WafConfigPatchLogOnlyRuleGroupIdsList = Array<string>;
|
|
|
920
920
|
export type WafConfigPatchLogOnlyRuleIdsList = Array<string>;
|
|
921
921
|
/** 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. */
|
|
922
922
|
export interface WafConfigPatch {
|
|
923
|
-
allowedHttpMethods?: WafConfigPatchAllowedHttpMethodsList;
|
|
924
|
-
allowedHttpVersions?: WafConfigPatchAllowedHttpVersionsList;
|
|
925
|
-
allowedRequestContentTypes?: WafConfigPatchAllowedRequestContentTypesList;
|
|
923
|
+
allowedHttpMethods?: WafConfigPatchAllowedHttpMethodsList | undefined;
|
|
924
|
+
allowedHttpVersions?: WafConfigPatchAllowedHttpVersionsList | undefined;
|
|
925
|
+
allowedRequestContentTypes?: WafConfigPatchAllowedRequestContentTypesList | undefined;
|
|
926
926
|
/** Ids of WAF Collections to mark as disabled */
|
|
927
|
-
disabledRuleCollectionIds?: WafConfigPatchDisabledRuleCollectionIdsList;
|
|
927
|
+
disabledRuleCollectionIds?: WafConfigPatchDisabledRuleCollectionIdsList | undefined;
|
|
928
928
|
/** Ids of WAF Rule Groups to mark as disabled */
|
|
929
|
-
disabledRuleGroupIds?: WafConfigPatchDisabledRuleGroupIdsList;
|
|
929
|
+
disabledRuleGroupIds?: WafConfigPatchDisabledRuleGroupIdsList | undefined;
|
|
930
930
|
/** Ids of WAF Rules that are **explicitly** disabled for this distribution. */
|
|
931
|
-
disabledRuleIds?: WafConfigPatchDisabledRuleIdsList;
|
|
931
|
+
disabledRuleIds?: WafConfigPatchDisabledRuleIdsList | undefined;
|
|
932
932
|
/** Ids of WAF Collections to mark as enabled */
|
|
933
|
-
enabledRuleCollectionIds?: WafConfigPatchEnabledRuleCollectionIdsList;
|
|
933
|
+
enabledRuleCollectionIds?: WafConfigPatchEnabledRuleCollectionIdsList | undefined;
|
|
934
934
|
/** Ids of WAF Rule Groups to mark as enabled */
|
|
935
|
-
enabledRuleGroupIds?: WafConfigPatchEnabledRuleGroupIdsList;
|
|
935
|
+
enabledRuleGroupIds?: WafConfigPatchEnabledRuleGroupIdsList | undefined;
|
|
936
936
|
/** Ids of WAF Rules that are **explicitly** enabled for this distribution. */
|
|
937
|
-
enabledRuleIds?: WafConfigPatchEnabledRuleIdsList;
|
|
937
|
+
enabledRuleIds?: WafConfigPatchEnabledRuleIdsList | undefined;
|
|
938
938
|
/** Ids of WAF Collections to mark as log Only. */
|
|
939
|
-
logOnlyRuleCollectionIds?: WafConfigPatchLogOnlyRuleCollectionIdsList;
|
|
939
|
+
logOnlyRuleCollectionIds?: WafConfigPatchLogOnlyRuleCollectionIdsList | undefined;
|
|
940
940
|
/** Ids of WAF Rule Groups to mark as log Only. */
|
|
941
|
-
logOnlyRuleGroupIds?: WafConfigPatchLogOnlyRuleGroupIdsList;
|
|
941
|
+
logOnlyRuleGroupIds?: WafConfigPatchLogOnlyRuleGroupIdsList | undefined;
|
|
942
942
|
/** Ids of WAF Rules that are **explicitly** marked as Log Only for this distribution. */
|
|
943
|
-
logOnlyRuleIds?: WafConfigPatchLogOnlyRuleIdsList;
|
|
944
|
-
mode?: WafMode | (string & {});
|
|
945
|
-
paranoiaLevel?: WafParanoiaLevel | (string & {});
|
|
946
|
-
type?: WafType | (string & {});
|
|
943
|
+
logOnlyRuleIds?: WafConfigPatchLogOnlyRuleIdsList | undefined;
|
|
944
|
+
mode?: WafMode | (string & {}) | undefined;
|
|
945
|
+
paranoiaLevel?: WafParanoiaLevel | (string & {}) | undefined;
|
|
946
|
+
type?: WafType | (string & {}) | undefined;
|
|
947
947
|
}
|
|
948
948
|
export interface ConfigPatch {
|
|
949
|
-
backend?: ConfigPatchBackend;
|
|
949
|
+
backend?: ConfigPatchBackend | undefined;
|
|
950
950
|
/** 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. */
|
|
951
|
-
blockedCountries?: ConfigPatchBlockedCountriesList;
|
|
951
|
+
blockedCountries?: ConfigPatchBlockedCountriesList | undefined;
|
|
952
952
|
/** 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. */
|
|
953
|
-
blockedIps?: ConfigPatchBlockedIpsList;
|
|
954
|
-
cacheConfig?: CacheConfigPatch;
|
|
953
|
+
blockedIps?: ConfigPatchBlockedIpsList | undefined;
|
|
954
|
+
cacheConfig?: CacheConfigPatch | undefined;
|
|
955
955
|
/** Sets the default cache duration for the distribution. The default cache duration is applied when a 'Cache-Control' header is not presented in the origin's response. We use ISO8601 duration format for cache duration (e.g. P1DT2H30M) */
|
|
956
|
-
defaultCacheDuration?: string | null;
|
|
956
|
+
defaultCacheDuration?: string | null | undefined;
|
|
957
957
|
/** Enabling this allows the 'Host' header to be passed through to the origin. */
|
|
958
|
-
forwardHostHeader?: boolean;
|
|
958
|
+
forwardHostHeader?: boolean | undefined;
|
|
959
959
|
/** 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. */
|
|
960
|
-
labels?: ConfigPatchLabelsMap;
|
|
961
|
-
logSink?: ConfigPatchLogSink | null;
|
|
960
|
+
labels?: ConfigPatchLabelsMap | undefined;
|
|
961
|
+
logSink?: ConfigPatchLogSink | null | undefined;
|
|
962
962
|
/** Sets the monthly limit of bandwidth in bytes that the pullzone is allowed to use. */
|
|
963
|
-
monthlyLimitBytes?: number | null;
|
|
964
|
-
optimizer?: OptimizerPatch;
|
|
965
|
-
redirects?: RedirectConfig;
|
|
966
|
-
regions?: ConfigPatchRegionsList;
|
|
963
|
+
monthlyLimitBytes?: number | null | undefined;
|
|
964
|
+
optimizer?: OptimizerPatch | undefined;
|
|
965
|
+
redirects?: RedirectConfig | undefined;
|
|
966
|
+
regions?: ConfigPatchRegionsList | undefined;
|
|
967
967
|
/** Enable this to prevent origin-level cookies from being forwarded to the end user. */
|
|
968
|
-
stripResponseCookies?: boolean;
|
|
969
|
-
tls?: TlsConfigPatch;
|
|
970
|
-
waf?: WafConfigPatch;
|
|
968
|
+
stripResponseCookies?: boolean | undefined;
|
|
969
|
+
tls?: TlsConfigPatch | undefined;
|
|
970
|
+
waf?: WafConfigPatch | undefined;
|
|
971
971
|
}
|
|
972
972
|
export interface PatchDistributionRequest {
|
|
973
973
|
/** Your STACKIT Project Id */
|
|
974
974
|
projectId: string;
|
|
975
975
|
distributionId: string;
|
|
976
|
-
config?: ConfigPatch;
|
|
976
|
+
config?: ConfigPatch | undefined;
|
|
977
977
|
/** 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. */
|
|
978
|
-
intentId?: string;
|
|
978
|
+
intentId?: string | undefined;
|
|
979
979
|
}
|
|
980
980
|
export interface PatchDistributionResponse {
|
|
981
981
|
distribution: Distribution;
|
|
@@ -985,7 +985,7 @@ export interface PurgeCacheRequest {
|
|
|
985
985
|
projectId: string;
|
|
986
986
|
distributionId: string;
|
|
987
987
|
/** 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. */
|
|
988
|
-
path?: string;
|
|
988
|
+
path?: string | undefined;
|
|
989
989
|
}
|
|
990
990
|
export type PurgeCacheResponse2 = unknown;
|
|
991
991
|
/** This is returned when no custom certificate is used. We provision and manage a Let's Encrypt Certificate for you */
|
|
@@ -997,7 +997,7 @@ export interface PutCustomDomainCustomCertificate {
|
|
|
997
997
|
/** base64-encoded PEM encoded key */
|
|
998
998
|
key: string;
|
|
999
999
|
/** When adding a new custom domain, we do a check to verify that your Domain points to the managed domain via a CNAME or ALIAS. If this is not the case, the call would usually reject. This additional property is an escape hatch to this functionality. It's useful for when you are migrating onto STACKIT CDN. It allows you to migrate without downtime. By providing a custom certificate with `skipDnsCheck` set to `true`, we will not check the Record for correctness. Then, once the CDN is set up, you can change the CNAME Record on your DNS and update the Custom Domain entry to disable this check, or switch to a managed certificate. This field is optional. If not set, the check is **not** skipped. */
|
|
1000
|
-
skipDnsCheck?: boolean;
|
|
1000
|
+
skipDnsCheck?: boolean | undefined;
|
|
1001
1001
|
type: string;
|
|
1002
1002
|
}
|
|
1003
1003
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
@@ -1010,9 +1010,9 @@ export interface PutCustomDomainRequest {
|
|
|
1010
1010
|
distributionId: string;
|
|
1011
1011
|
domain: string;
|
|
1012
1012
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
1013
|
-
certificate?: PutCustomDomainRequestCertificate;
|
|
1013
|
+
certificate?: PutCustomDomainRequestCertificate | undefined;
|
|
1014
1014
|
/** 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. */
|
|
1015
|
-
intentId?: string;
|
|
1015
|
+
intentId?: string | undefined;
|
|
1016
1016
|
}
|
|
1017
1017
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
1018
1018
|
export type PutCustomDomainResponseCertificate =
|
|
@@ -1020,7 +1020,7 @@ export type PutCustomDomainResponseCertificate =
|
|
|
1020
1020
|
| GetCustomDomainCustomCertificate;
|
|
1021
1021
|
export interface PutCustomDomainResponse {
|
|
1022
1022
|
/** Pass a custom certificate to be served by the CDN when calling the custom domain. Will use a managed certificate when omitted */
|
|
1023
|
-
certificate?: PutCustomDomainResponseCertificate;
|
|
1023
|
+
certificate?: PutCustomDomainResponseCertificate | undefined;
|
|
1024
1024
|
customDomain: CustomDomain;
|
|
1025
1025
|
}
|
|
1026
1026
|
export type CreateDistributionError = BadRequest | UnprocessableEntity | StackitOpError;
|