@distilled.cloud/stackit 1.0.0-rc.13 → 1.0.0-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +3 -3
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +1 -1
- package/lib/errors.js.map +1 -1
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.d.ts.map +1 -1
- package/lib/pagination.js +2 -5
- package/lib/pagination.js.map +1 -1
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +9 -10
- package/lib/protocol.js.map +1 -1
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +181 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +1 -1
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +1 -1
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +33 -82
- package/lib/services/alb.js.map +1 -1
- package/lib/services/alb_waf.d.ts +1 -1
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +23 -47
- package/lib/services/alb_waf.js.map +1 -1
- package/lib/services/authorization.d.ts +1 -1
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +19 -49
- package/lib/services/authorization.js.map +1 -1
- package/lib/services/automation.d.ts +21 -58
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +49 -112
- package/lib/services/automation.js.map +1 -1
- package/lib/services/cdn.d.ts +2 -2
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +91 -177
- package/lib/services/cdn.js.map +1 -1
- package/lib/services/certificates.d.ts +1 -1
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +13 -31
- package/lib/services/certificates.js.map +1 -1
- package/lib/services/cost.d.ts +1 -1
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +17 -28
- package/lib/services/cost.js.map +1 -1
- package/lib/services/dns.d.ts +22 -55
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +72 -200
- package/lib/services/dns.js.map +1 -1
- package/lib/services/dremio.d.ts +1 -1
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +28 -50
- package/lib/services/dremio.js.map +1 -1
- package/lib/services/edge.d.ts +1 -1
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +14 -32
- package/lib/services/edge.js.map +1 -1
- package/lib/services/functions.d.ts +1 -1
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +19 -43
- package/lib/services/functions.js.map +1 -1
- package/lib/services/git.d.ts +1 -1
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +25 -57
- package/lib/services/git.js.map +1 -1
- package/lib/services/iaas.d.ts +31 -10
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +151 -376
- package/lib/services/iaas.js.map +1 -1
- package/lib/services/intake.d.ts +1 -1
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +45 -83
- package/lib/services/intake.js.map +1 -1
- package/lib/services/kms.d.ts +1 -1
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +63 -103
- package/lib/services/kms.js.map +1 -1
- package/lib/services/lb_ip_lists.d.ts +1 -3
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +18 -37
- package/lib/services/lb_ip_lists.js.map +1 -1
- package/lib/services/load_balancer.d.ts +1 -1
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +32 -77
- package/lib/services/load_balancer.js.map +1 -1
- package/lib/services/logme.d.ts +1 -1
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +39 -101
- package/lib/services/logme.js.map +1 -1
- package/lib/services/logs.d.ts +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +36 -59
- package/lib/services/logs.js.map +1 -1
- package/lib/services/mariadb.d.ts +1 -1
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +37 -97
- package/lib/services/mariadb.js.map +1 -1
- package/lib/services/model_experiments.d.ts +2 -2
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +27 -47
- package/lib/services/model_experiments.js.map +1 -1
- package/lib/services/model_serving.d.ts +2 -2
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +29 -61
- package/lib/services/model_serving.js.map +1 -1
- package/lib/services/mongodb_flex.d.ts +1 -1
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +76 -162
- package/lib/services/mongodb_flex.js.map +1 -1
- package/lib/services/object_storage.d.ts +25 -1
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +52 -89
- package/lib/services/object_storage.js.map +1 -1
- package/lib/services/observability.d.ts +5 -5
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +170 -419
- package/lib/services/observability.js.map +1 -1
- package/lib/services/opensearch.d.ts +1 -1
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +40 -100
- package/lib/services/opensearch.js.map +1 -1
- package/lib/services/pim.d.ts +1 -1
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +45 -98
- package/lib/services/pim.js.map +1 -1
- package/lib/services/postgres_flex.d.ts +2 -2
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +96 -261
- package/lib/services/postgres_flex.js.map +1 -1
- package/lib/services/pubsub.d.ts +2 -2
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +53 -148
- package/lib/services/pubsub.js.map +1 -1
- package/lib/services/rabbitmq.d.ts +2 -2
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +41 -103
- package/lib/services/rabbitmq.js.map +1 -1
- package/lib/services/registry.d.ts +1 -1
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +16 -39
- package/lib/services/registry.js.map +1 -1
- package/lib/services/resource_manager.d.ts +5 -5
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +23 -53
- package/lib/services/resource_manager.js.map +1 -1
- package/lib/services/run_command.d.ts +1 -1
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +15 -33
- package/lib/services/run_command.js.map +1 -1
- package/lib/services/sca.d.ts +18 -6
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +42 -75
- package/lib/services/sca.js.map +1 -1
- package/lib/services/scf.d.ts +1 -1
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +30 -78
- package/lib/services/scf.js.map +1 -1
- package/lib/services/secrets_manager.d.ts +1 -1
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +32 -78
- package/lib/services/secrets_manager.js.map +1 -1
- package/lib/services/server_backup.d.ts +1 -1
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +16 -36
- package/lib/services/server_backup.js.map +1 -1
- package/lib/services/server_update.d.ts +1 -1
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +10 -22
- package/lib/services/server_update.js.map +1 -1
- package/lib/services/service_account.d.ts +1 -1
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +32 -49
- package/lib/services/service_account.js.map +1 -1
- package/lib/services/service_enablement.d.ts +1 -1
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +11 -13
- package/lib/services/service_enablement.js.map +1 -1
- package/lib/services/sfs.d.ts +17 -17
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +34 -89
- package/lib/services/sfs.js.map +1 -1
- package/lib/services/ske.d.ts +27 -1
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +49 -89
- package/lib/services/ske.js.map +1 -1
- package/lib/services/sqlserverflex.d.ts +2 -2
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +104 -255
- package/lib/services/sqlserverflex.js.map +1 -1
- package/lib/services/stackit_marketplace.d.ts +4 -4
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +17 -31
- package/lib/services/stackit_marketplace.js.map +1 -1
- package/lib/services/telemetry_link.d.ts +1 -1
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +34 -52
- package/lib/services/telemetry_link.js.map +1 -1
- package/lib/services/telemetry_router.d.ts +1 -1
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +49 -88
- package/lib/services/telemetry_router.js.map +1 -1
- package/lib/services/ufw.d.ts +1 -1
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +25 -47
- package/lib/services/ufw.js.map +1 -1
- package/lib/services/valkey.d.ts +2 -2
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +40 -100
- package/lib/services/valkey.js.map +1 -1
- package/lib/services/vpn.d.ts +1 -1
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +98 -180
- package/lib/services/vpn.js.map +1 -1
- package/lib/services/workflows.d.ts +1 -1
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +40 -88
- package/lib/services/workflows.js.map +1 -1
- package/lib/traits.d.ts.map +1 -1
- package/lib/traits.js +1 -1
- package/lib/traits.js.map +1 -1
- package/package.json +13 -11
- package/src/credentials.ts +10 -16
- package/src/errors.ts +1 -1
- package/src/pagination.ts +6 -22
- package/src/protocol.test.ts +304 -0
- package/src/protocol.ts +29 -47
- package/src/retry.ts +2 -8
- package/src/services/alb.ts +45 -128
- package/src/services/alb_waf.ts +35 -94
- package/src/services/authorization.ts +20 -56
- package/src/services/automation.ts +92 -262
- package/src/services/cdn.ts +191 -351
- package/src/services/certificates.ts +17 -49
- package/src/services/cost.ts +29 -64
- package/src/services/dns.ts +160 -495
- package/src/services/dremio.ts +35 -85
- package/src/services/edge.ts +37 -96
- package/src/services/functions.ts +31 -84
- package/src/services/git.ts +41 -122
- package/src/services/iaas.ts +392 -1184
- package/src/services/intake.ts +57 -124
- package/src/services/kms.ts +91 -192
- package/src/services/lb_ip_lists.ts +21 -56
- package/src/services/load_balancer.ts +43 -119
- package/src/services/logme.ts +55 -150
- package/src/services/logs.ts +57 -158
- package/src/services/mariadb.ts +45 -126
- package/src/services/model_experiments.ts +36 -92
- package/src/services/model_serving.ts +33 -76
- package/src/services/mongodb_flex.ts +113 -259
- package/src/services/object_storage.ts +101 -154
- package/src/services/observability.ts +635 -1127
- package/src/services/opensearch.ts +52 -141
- package/src/services/pim.ts +78 -183
- package/src/services/postgres_flex.ts +120 -366
- package/src/services/pubsub.ts +134 -277
- package/src/services/rabbitmq.ts +53 -145
- package/src/services/registry.ts +24 -72
- package/src/services/resource_manager.ts +46 -129
- package/src/services/run_command.ts +17 -45
- package/src/services/sca.ts +63 -98
- package/src/services/scf.ts +54 -195
- package/src/services/secrets_manager.ts +54 -136
- package/src/services/server_backup.ts +26 -75
- package/src/services/server_update.ts +15 -44
- package/src/services/service_account.ts +185 -272
- package/src/services/service_enablement.ts +18 -47
- package/src/services/sfs.ts +84 -166
- package/src/services/ske.ts +91 -113
- package/src/services/sqlserverflex.ts +147 -383
- package/src/services/stackit_marketplace.ts +184 -250
- package/src/services/telemetry_link.ts +199 -278
- package/src/services/telemetry_router.ts +73 -168
- package/src/services/ufw.ts +32 -82
- package/src/services/valkey.ts +54 -145
- package/src/services/vpn.ts +215 -404
- package/src/services/workflows.ts +57 -169
- package/src/traits.ts +2 -7
- package/lib/response-validation.test.d.ts +0 -4
- package/lib/response-validation.test.d.ts.map +0 -1
- package/lib/response-validation.test.js +0 -31
- package/lib/response-validation.test.js.map +0 -1
- package/src/response-validation.test.ts +0 -45
package/src/protocol.ts
CHANGED
|
@@ -1,25 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* StackitProtocol — the shared bearer-REST protocol instantiated for STACKIT.
|
|
3
|
-
*
|
|
4
|
-
* STACKIT speaks plain JSON with no success envelope. FAILURES are
|
|
5
|
-
* `{ "message": "...", "error": "..." }` (the `ErrorMessage` schema most
|
|
6
|
-
* product specs share). Each product has its own host, baked into the
|
|
7
|
-
* generated operation's `T.Http({ baseUrl })` from the OpenAPI `servers`
|
|
8
|
-
* entry; this protocol reads that URL and rewrites it for the configured
|
|
9
|
-
* region (`eu01` by default).
|
|
10
|
-
*
|
|
11
|
-
* Auth is `Authorization: Bearer <token>`. The API version is a PATH
|
|
12
|
-
* segment (`/v1`, `/v2`, …), so the generated operations carry versioned
|
|
13
|
-
* routes against a version-less host.
|
|
14
|
-
*/
|
|
15
|
-
import * as Effect from "effect/Effect";
|
|
16
|
-
import * as Layer from "effect/Layer";
|
|
17
|
-
import * as Redacted from "effect/Redacted";
|
|
18
|
-
import type * as AST from "effect/SchemaAST";
|
|
19
|
-
import type * as HttpClient from "effect/http/HttpClient";
|
|
20
|
-
import type * as HttpClientError from "effect/http/HttpClientError";
|
|
21
|
-
import type * as HttpClientRequest from "effect/http/HttpClientRequest";
|
|
22
|
-
import type * as HttpClientResponse from "effect/http/HttpClientResponse";
|
|
23
1
|
import * as API from "@distilled.cloud/core/api";
|
|
24
2
|
import {
|
|
25
3
|
HTTP_STATUS_MAP,
|
|
@@ -40,6 +18,28 @@ import {
|
|
|
40
18
|
import { validateResponse } from "@distilled.cloud/core/response-validation";
|
|
41
19
|
import { parseRetryAfterForStatus } from "@distilled.cloud/core/retry-after";
|
|
42
20
|
import { httpSymbol } from "@distilled.cloud/core/trait";
|
|
21
|
+
/**
|
|
22
|
+
* StackitProtocol — the shared bearer-REST protocol instantiated for STACKIT.
|
|
23
|
+
*
|
|
24
|
+
* STACKIT speaks plain JSON with no success envelope. FAILURES are
|
|
25
|
+
* `{ "message": "...", "error": "..." }` (the `ErrorMessage` schema most
|
|
26
|
+
* product specs share). Each product has its own host, baked into the
|
|
27
|
+
* generated operation's `T.Http({ baseUrl })` from the OpenAPI `servers`
|
|
28
|
+
* entry; this protocol reads that URL and rewrites it for the configured
|
|
29
|
+
* region (`eu01` by default).
|
|
30
|
+
*
|
|
31
|
+
* Auth is `Authorization: Bearer <token>`. The API version is a PATH
|
|
32
|
+
* segment (`/v1`, `/v2`, …), so the generated operations carry versioned
|
|
33
|
+
* routes against a version-less host.
|
|
34
|
+
*/
|
|
35
|
+
import * as Effect from "effect/Effect";
|
|
36
|
+
import type * as HttpClient from "effect/http/HttpClient";
|
|
37
|
+
import type * as HttpClientError from "effect/http/HttpClientError";
|
|
38
|
+
import type * as HttpClientRequest from "effect/http/HttpClientRequest";
|
|
39
|
+
import type * as HttpClientResponse from "effect/http/HttpClientResponse";
|
|
40
|
+
import * as Layer from "effect/Layer";
|
|
41
|
+
import * as Redacted from "effect/Redacted";
|
|
42
|
+
import type * as AST from "effect/SchemaAST";
|
|
43
43
|
import { Credentials, type Config } from "./credentials.ts";
|
|
44
44
|
import { StackitParseError, UnknownStackitError } from "./errors.ts";
|
|
45
45
|
import type { DefaultErrors } from "./errors.ts";
|
|
@@ -101,8 +101,7 @@ const errorEnvelope = (body: unknown): RestErrorEnvelope | undefined => {
|
|
|
101
101
|
return { code, message };
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
const fail = (e: unknown): Effect.Effect<never> =>
|
|
105
|
-
Effect.fail(e) as Effect.Effect<never>;
|
|
104
|
+
const fail = (e: unknown): Effect.Effect<never> => Effect.fail(e) as Effect.Effect<never>;
|
|
106
105
|
|
|
107
106
|
const baseUrlFor = (creds: Config, inputAst: AST.AST): string => {
|
|
108
107
|
if (creds.apiBaseUrl !== undefined && creds.apiBaseUrl !== "") {
|
|
@@ -111,9 +110,7 @@ const baseUrlFor = (creds: Config, inputAst: AST.AST): string => {
|
|
|
111
110
|
const http = getAnn(inputAst, httpSymbol) as StackitHttpTrait | undefined;
|
|
112
111
|
const specUrl = http?.baseUrl;
|
|
113
112
|
if (typeof specUrl !== "string" || specUrl === "") {
|
|
114
|
-
throw new Error(
|
|
115
|
-
"STACKIT operation is missing T.Http({ baseUrl }) — regenerate from convert",
|
|
116
|
-
);
|
|
113
|
+
throw new Error("STACKIT operation is missing T.Http({ baseUrl }) — regenerate from convert");
|
|
117
114
|
}
|
|
118
115
|
return applyRegion(specUrl, creds.region);
|
|
119
116
|
};
|
|
@@ -121,13 +118,7 @@ const baseUrlFor = (creds: Config, inputAst: AST.AST): string => {
|
|
|
121
118
|
export const StackitProtocol: Layer.Layer<API.Protocol> = Layer.succeed(
|
|
122
119
|
API.Protocol,
|
|
123
120
|
API.Protocol.of({
|
|
124
|
-
encode: ({
|
|
125
|
-
input,
|
|
126
|
-
inputAst,
|
|
127
|
-
}: {
|
|
128
|
-
readonly input: unknown;
|
|
129
|
-
readonly inputAst: AST.AST;
|
|
130
|
-
}) =>
|
|
121
|
+
encode: ({ input, inputAst }: { readonly input: unknown; readonly inputAst: AST.AST }) =>
|
|
131
122
|
Effect.gen(function* () {
|
|
132
123
|
const resolve = yield* Credentials;
|
|
133
124
|
const creds = yield* resolve;
|
|
@@ -152,9 +143,7 @@ export const StackitProtocol: Layer.Layer<API.Protocol> = Layer.succeed(
|
|
|
152
143
|
Effect.gen(function* () {
|
|
153
144
|
const text = (yield* response.text.pipe(Effect.orDie)) ?? "";
|
|
154
145
|
if (process.env.DISTILLED_DEBUG_HTTP) {
|
|
155
|
-
console.error(
|
|
156
|
-
`[distilled] <- ${response.status} ${text.slice(0, 400)}`,
|
|
157
|
-
);
|
|
146
|
+
console.error(`[distilled] <- ${response.status} ${text.slice(0, 400)}`);
|
|
158
147
|
}
|
|
159
148
|
let json: unknown;
|
|
160
149
|
let nonJson = false;
|
|
@@ -170,9 +159,7 @@ export const StackitProtocol: Layer.Layer<API.Protocol> = Layer.succeed(
|
|
|
170
159
|
|
|
171
160
|
if (status >= 400) {
|
|
172
161
|
const env = (nonJson ? undefined : errorEnvelope(json)) ?? {};
|
|
173
|
-
const message =
|
|
174
|
-
env.message ??
|
|
175
|
-
(nonJson && text.trim() ? text.trim() : `HTTP ${status}`);
|
|
162
|
+
const message = env.message ?? (nonJson && text.trim() ? text.trim() : `HTTP ${status}`);
|
|
176
163
|
|
|
177
164
|
const typed = matchTypedError(
|
|
178
165
|
errorClasses,
|
|
@@ -190,11 +177,7 @@ export const StackitProtocol: Layer.Layer<API.Protocol> = Layer.succeed(
|
|
|
190
177
|
const StatusErrorClass = (
|
|
191
178
|
HTTP_STATUS_MAP as Record<
|
|
192
179
|
number,
|
|
193
|
-
|
|
194
|
-
message: string;
|
|
195
|
-
retryAfter?: unknown;
|
|
196
|
-
}) => unknown)
|
|
197
|
-
| undefined
|
|
180
|
+
(new (args: { message: string; retryAfter?: unknown }) => unknown) | undefined
|
|
198
181
|
>
|
|
199
182
|
)[status];
|
|
200
183
|
if (StatusErrorClass) {
|
|
@@ -234,8 +217,7 @@ export const StackitProtocol: Layer.Layer<API.Protocol> = Layer.succeed(
|
|
|
234
217
|
const mapped = yield* validateResponse(
|
|
235
218
|
outputAst,
|
|
236
219
|
mapKeys(outputAst, body, "decode"),
|
|
237
|
-
(cause) =>
|
|
238
|
-
new StackitParseError({ body: nonJson ? text : json, cause }),
|
|
220
|
+
(cause) => new StackitParseError({ body: nonJson ? text : json, cause }),
|
|
239
221
|
).pipe(Effect.catch(fail));
|
|
240
222
|
return wrapSensitive(outputAst, mapped);
|
|
241
223
|
}),
|
package/src/retry.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type Policy, throttlingFactory, transientFactory } from "@distilled.cloud/core/retry";
|
|
1
2
|
/**
|
|
2
3
|
* STACKIT retry configuration.
|
|
3
4
|
*
|
|
@@ -15,11 +16,6 @@
|
|
|
15
16
|
import * as Context from "effect/Context";
|
|
16
17
|
import * as Effect from "effect/Effect";
|
|
17
18
|
import * as Layer from "effect/Layer";
|
|
18
|
-
import {
|
|
19
|
-
type Policy,
|
|
20
|
-
throttlingFactory,
|
|
21
|
-
transientFactory,
|
|
22
|
-
} from "@distilled.cloud/core/retry";
|
|
23
19
|
|
|
24
20
|
export {
|
|
25
21
|
type Options,
|
|
@@ -42,9 +38,7 @@ export const policy = (optionsOrFactory: Policy) =>
|
|
|
42
38
|
Effect.provide(Layer.succeed(Retry, optionsOrFactory));
|
|
43
39
|
|
|
44
40
|
/** Disables all automatic retries. */
|
|
45
|
-
export const none = Effect.provide(
|
|
46
|
-
Layer.succeed(Retry, { while: () => false }),
|
|
47
|
-
);
|
|
41
|
+
export const none = Effect.provide(Layer.succeed(Retry, { while: () => false }));
|
|
48
42
|
|
|
49
43
|
/** Apply the throttling retry policy (retries throttling errors indefinitely). */
|
|
50
44
|
export const throttling = policy(throttlingFactory);
|
package/src/services/alb.ts
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
1
3
|
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
2
4
|
import * as S from "@distilled.cloud/core/schema";
|
|
3
5
|
import * as Redacted from "effect/Redacted";
|
|
4
|
-
import * as API from "@distilled.cloud/core/api";
|
|
5
|
-
import * as C from "@distilled.cloud/core/category";
|
|
6
|
-
import * as T from "../traits.ts";
|
|
7
|
-
import {
|
|
8
|
-
StackitProtocol,
|
|
9
|
-
type StackitOpError,
|
|
10
|
-
type StackitOpContext,
|
|
11
|
-
} from "../protocol.ts";
|
|
12
6
|
import { UnknownStackitError } from "../errors.ts";
|
|
7
|
+
import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
|
|
13
8
|
import * as Retry from "../retry.ts";
|
|
9
|
+
import * as T from "../traits.ts";
|
|
14
10
|
|
|
15
11
|
export type { StackitOpError, StackitOpContext };
|
|
16
12
|
|
|
@@ -75,9 +71,7 @@ export const CreateCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
75
71
|
baseUrl: "https://alb.api.stackit.cloud",
|
|
76
72
|
}),
|
|
77
73
|
),
|
|
78
|
-
).annotate({
|
|
79
|
-
identifier: "CreateCredentialsRequest",
|
|
80
|
-
}) as any as S.Schema<CreateCredentialsRequest>;
|
|
74
|
+
).annotate({ identifier: "CreateCredentialsRequest" }) as any as S.Schema<CreateCredentialsRequest>;
|
|
81
75
|
|
|
82
76
|
export interface CredentialsResponse {
|
|
83
77
|
/** The credentials reference can be used for observability of the Application Load Balancer. */
|
|
@@ -96,9 +90,7 @@ export const CredentialsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
96
90
|
region: S.optional(S.String),
|
|
97
91
|
username: S.optional(S.String),
|
|
98
92
|
}),
|
|
99
|
-
).annotate({
|
|
100
|
-
identifier: "CredentialsResponse",
|
|
101
|
-
}) as any as S.Schema<CredentialsResponse>;
|
|
93
|
+
).annotate({ identifier: "CredentialsResponse" }) as any as S.Schema<CredentialsResponse>;
|
|
102
94
|
|
|
103
95
|
export interface CreateCredentialsResponse {
|
|
104
96
|
credential?: CredentialsResponse;
|
|
@@ -112,9 +104,7 @@ export const CreateCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
112
104
|
}) as any as S.Schema<CreateCredentialsResponse>;
|
|
113
105
|
|
|
114
106
|
/** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per ALB. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */
|
|
115
|
-
export type CreateLoadBalancerRequestLabelsMap = {
|
|
116
|
-
[key: string]: string | undefined;
|
|
117
|
-
};
|
|
107
|
+
export type CreateLoadBalancerRequestLabelsMap = { [key: string]: string | undefined };
|
|
118
108
|
export const CreateLoadBalancerRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
119
109
|
S.String,
|
|
120
110
|
S.String,
|
|
@@ -132,9 +122,7 @@ export const CookiePersistence = /*@__PURE__*/ S.suspend(() =>
|
|
|
132
122
|
name: S.optional(S.String),
|
|
133
123
|
ttl: S.optional(S.String),
|
|
134
124
|
}),
|
|
135
|
-
).annotate({
|
|
136
|
-
identifier: "CookiePersistence",
|
|
137
|
-
}) as any as S.Schema<CookiePersistence>;
|
|
125
|
+
).annotate({ identifier: "CookiePersistence" }) as any as S.Schema<CookiePersistence>;
|
|
138
126
|
|
|
139
127
|
export interface HttpHeader {
|
|
140
128
|
/** Exact match for the header value. */
|
|
@@ -245,9 +233,7 @@ export const ProtocolOptionsHTTP = /*@__PURE__*/ S.suspend(() =>
|
|
|
245
233
|
S.Struct({
|
|
246
234
|
hosts: S.optional(ProtocolOptionsHTTPHostsList),
|
|
247
235
|
}),
|
|
248
|
-
).annotate({
|
|
249
|
-
identifier: "ProtocolOptionsHTTP",
|
|
250
|
-
}) as any as S.Schema<ProtocolOptionsHTTP>;
|
|
236
|
+
).annotate({ identifier: "ProtocolOptionsHTTP" }) as any as S.Schema<ProtocolOptionsHTTP>;
|
|
251
237
|
|
|
252
238
|
/** Certificate IDs for TLS termination. */
|
|
253
239
|
export type CertificateConfigCertificateIdsList = Array<string>;
|
|
@@ -264,9 +250,7 @@ export const CertificateConfig = /*@__PURE__*/ S.suspend(() =>
|
|
|
264
250
|
S.Struct({
|
|
265
251
|
certificateIds: S.optional(CertificateConfigCertificateIdsList),
|
|
266
252
|
}),
|
|
267
|
-
).annotate({
|
|
268
|
-
identifier: "CertificateConfig",
|
|
269
|
-
}) as any as S.Schema<CertificateConfig>;
|
|
253
|
+
).annotate({ identifier: "CertificateConfig" }) as any as S.Schema<CertificateConfig>;
|
|
270
254
|
|
|
271
255
|
/** Configuration for handling HTTPS traffic on this listener. */
|
|
272
256
|
export interface ProtocolOptionsHTTPS {
|
|
@@ -276,16 +260,11 @@ export const ProtocolOptionsHTTPS = /*@__PURE__*/ S.suspend(() =>
|
|
|
276
260
|
S.Struct({
|
|
277
261
|
certificateConfig: S.optional(CertificateConfig),
|
|
278
262
|
}),
|
|
279
|
-
).annotate({
|
|
280
|
-
identifier: "ProtocolOptionsHTTPS",
|
|
281
|
-
}) as any as S.Schema<ProtocolOptionsHTTPS>;
|
|
263
|
+
).annotate({ identifier: "ProtocolOptionsHTTPS" }) as any as S.Schema<ProtocolOptionsHTTPS>;
|
|
282
264
|
|
|
283
265
|
/** Protocol is the highest network protocol we understand to load balance. Currently PROTOCOL_HTTP and PROTOCOL_HTTPS are supported. */
|
|
284
|
-
export type ListenerProtocol =
|
|
285
|
-
|
|
286
|
-
| "PROTOCOL_HTTP"
|
|
287
|
-
| "PROTOCOL_HTTPS";
|
|
288
|
-
export const ListenerProtocol = /*@__PURE__*/ S.String;
|
|
266
|
+
export type ListenerProtocol = "PROTOCOL_UNSPECIFIED" | "PROTOCOL_HTTP" | "PROTOCOL_HTTPS";
|
|
267
|
+
export const ListenerProtocol = S.String;
|
|
289
268
|
|
|
290
269
|
export interface Listener {
|
|
291
270
|
http?: ProtocolOptionsHTTP;
|
|
@@ -322,7 +301,7 @@ export type NetworkRole =
|
|
|
322
301
|
| "ROLE_LISTENERS_AND_TARGETS"
|
|
323
302
|
| "ROLE_LISTENERS"
|
|
324
303
|
| "ROLE_TARGETS";
|
|
325
|
-
export const NetworkRole =
|
|
304
|
+
export const NetworkRole = S.String;
|
|
326
305
|
|
|
327
306
|
export interface Network {
|
|
328
307
|
/** STACKIT network ID the Application Load Balancer and/or targets are in. */
|
|
@@ -344,12 +323,10 @@ export const CreateLoadBalancerRequestNetworksList = /*@__PURE__*/ S.Array(
|
|
|
344
323
|
) as any as S.Schema<CreateLoadBalancerRequestNetworksList>;
|
|
345
324
|
|
|
346
325
|
/** Application Load Balancer is accessible only from an IP address in this range. May be combined with `ipBlockListName`; `allowedSourceRanges` is evaluated first, then `ipBlockListName`. */
|
|
347
|
-
export type LoadbalancerOptionAccessControlAllowedSourceRangesList =
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
S.String,
|
|
352
|
-
) as any as S.Schema<LoadbalancerOptionAccessControlAllowedSourceRangesList>;
|
|
326
|
+
export type LoadbalancerOptionAccessControlAllowedSourceRangesList = Array<string>;
|
|
327
|
+
export const LoadbalancerOptionAccessControlAllowedSourceRangesList = /*@__PURE__*/ S.Array(
|
|
328
|
+
S.String,
|
|
329
|
+
) as any as S.Schema<LoadbalancerOptionAccessControlAllowedSourceRangesList>;
|
|
353
330
|
|
|
354
331
|
/** Use this option to limit the IP ranges that can use the Application Load Balancer. `allowed_source_ranges` and `ip_block_list_name` may be set together. When both are set, `allowed_source_ranges` is evaluated first, then `ip_block_list_name` is evaluated. */
|
|
355
332
|
export interface LoadbalancerOptionAccessControl {
|
|
@@ -360,9 +337,7 @@ export interface LoadbalancerOptionAccessControl {
|
|
|
360
337
|
}
|
|
361
338
|
export const LoadbalancerOptionAccessControl = /*@__PURE__*/ S.suspend(() =>
|
|
362
339
|
S.Struct({
|
|
363
|
-
allowedSourceRanges: S.optional(
|
|
364
|
-
LoadbalancerOptionAccessControlAllowedSourceRangesList,
|
|
365
|
-
),
|
|
340
|
+
allowedSourceRanges: S.optional(LoadbalancerOptionAccessControlAllowedSourceRangesList),
|
|
366
341
|
ipBlockListName: S.optional(S.String),
|
|
367
342
|
}),
|
|
368
343
|
).annotate({
|
|
@@ -381,9 +356,7 @@ export const LoadbalancerOptionLogs = /*@__PURE__*/ S.suspend(() =>
|
|
|
381
356
|
credentialsRef: S.optional(S.String),
|
|
382
357
|
pushUrl: S.optional(S.String),
|
|
383
358
|
}),
|
|
384
|
-
).annotate({
|
|
385
|
-
identifier: "LoadbalancerOptionLogs",
|
|
386
|
-
}) as any as S.Schema<LoadbalancerOptionLogs>;
|
|
359
|
+
).annotate({ identifier: "LoadbalancerOptionLogs" }) as any as S.Schema<LoadbalancerOptionLogs>;
|
|
387
360
|
|
|
388
361
|
/** Observability metrics configuration. */
|
|
389
362
|
export interface LoadbalancerOptionMetrics {
|
|
@@ -431,9 +404,7 @@ export const LoadBalancerOptions = /*@__PURE__*/ S.suspend(() =>
|
|
|
431
404
|
observability: S.optional(LoadbalancerOptionObservability),
|
|
432
405
|
privateNetworkOnly: S.optional(S.Boolean),
|
|
433
406
|
}),
|
|
434
|
-
).annotate({
|
|
435
|
-
identifier: "LoadBalancerOptions",
|
|
436
|
-
}) as any as S.Schema<LoadBalancerOptions>;
|
|
407
|
+
).annotate({ identifier: "LoadBalancerOptions" }) as any as S.Schema<LoadBalancerOptions>;
|
|
437
408
|
|
|
438
409
|
/** List of HTTP status codes that indicate a healthy response */
|
|
439
410
|
export type HttpHealthChecksOkStatusesList = Array<string>;
|
|
@@ -472,9 +443,7 @@ export const HttpHealthChecks = /*@__PURE__*/ S.suspend(() =>
|
|
|
472
443
|
path: S.optional(S.String),
|
|
473
444
|
tls: S.optional(TlsConfig),
|
|
474
445
|
}),
|
|
475
|
-
).annotate({
|
|
476
|
-
identifier: "HttpHealthChecks",
|
|
477
|
-
}) as any as S.Schema<HttpHealthChecks>;
|
|
446
|
+
).annotate({ identifier: "HttpHealthChecks" }) as any as S.Schema<HttpHealthChecks>;
|
|
478
447
|
|
|
479
448
|
/** Set this to customize active health checks for targets in this pool. */
|
|
480
449
|
export interface ActiveHealthCheck {
|
|
@@ -502,9 +471,7 @@ export const ActiveHealthCheck = /*@__PURE__*/ S.suspend(() =>
|
|
|
502
471
|
timeout: S.optional(S.String),
|
|
503
472
|
unhealthyThreshold: S.optional(S.Number),
|
|
504
473
|
}),
|
|
505
|
-
).annotate({
|
|
506
|
-
identifier: "ActiveHealthCheck",
|
|
507
|
-
}) as any as S.Schema<ActiveHealthCheck>;
|
|
474
|
+
).annotate({ identifier: "ActiveHealthCheck" }) as any as S.Schema<ActiveHealthCheck>;
|
|
508
475
|
|
|
509
476
|
export interface Target {
|
|
510
477
|
/** Target display name. */
|
|
@@ -612,7 +579,7 @@ export type LoadBalancerErrorType =
|
|
|
612
579
|
| "TYPE_IP_EXHAUSTED"
|
|
613
580
|
| "TYPE_DNS_NOT_CONFIGURED"
|
|
614
581
|
| "TYPE_VM_PORT_NOT_CONFIGURED";
|
|
615
|
-
export const LoadBalancerErrorType =
|
|
582
|
+
export const LoadBalancerErrorType = S.String;
|
|
616
583
|
|
|
617
584
|
export interface LoadBalancerError {
|
|
618
585
|
/** The error description contains additional helpful user information to fix the error state of the Application Load Balancer. For example the IP 45.135.247.139 does not exist in the project, then the description will report: Floating IP "45.135.247.139" could not be found. */
|
|
@@ -625,9 +592,7 @@ export const LoadBalancerError = /*@__PURE__*/ S.suspend(() =>
|
|
|
625
592
|
description: S.optional(S.String),
|
|
626
593
|
type: S.optional(LoadBalancerErrorType),
|
|
627
594
|
}),
|
|
628
|
-
).annotate({
|
|
629
|
-
identifier: "LoadBalancerError",
|
|
630
|
-
}) as any as S.Schema<LoadBalancerError>;
|
|
595
|
+
).annotate({ identifier: "LoadBalancerError" }) as any as S.Schema<LoadBalancerError>;
|
|
631
596
|
|
|
632
597
|
/** Reports all errors a Application Load Balancer has. */
|
|
633
598
|
export type LoadBalancerErrorsList = Array<LoadBalancerError>;
|
|
@@ -673,7 +638,7 @@ export type LoadBalancerStatus =
|
|
|
673
638
|
| "STATUS_READY"
|
|
674
639
|
| "STATUS_ERROR"
|
|
675
640
|
| "STATUS_TERMINATING";
|
|
676
|
-
export const LoadBalancerStatus =
|
|
641
|
+
export const LoadBalancerStatus = S.String;
|
|
677
642
|
|
|
678
643
|
/** List of all target pools which will be used in the Application Load Balancer. Limited to 20. */
|
|
679
644
|
export type LoadBalancerTargetPoolsList = Array<TargetPool>;
|
|
@@ -752,9 +717,7 @@ export const DeleteCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
752
717
|
baseUrl: "https://alb.api.stackit.cloud",
|
|
753
718
|
}),
|
|
754
719
|
),
|
|
755
|
-
).annotate({
|
|
756
|
-
identifier: "DeleteCredentialsRequest",
|
|
757
|
-
}) as any as S.Schema<DeleteCredentialsRequest>;
|
|
720
|
+
).annotate({ identifier: "DeleteCredentialsRequest" }) as any as S.Schema<DeleteCredentialsRequest>;
|
|
758
721
|
|
|
759
722
|
export type DeleteCredentialsResponse2 = unknown;
|
|
760
723
|
export const DeleteCredentialsResponse2 = /*@__PURE__*/ S.suspend(() =>
|
|
@@ -810,9 +773,7 @@ export const GetCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
810
773
|
baseUrl: "https://alb.api.stackit.cloud",
|
|
811
774
|
}),
|
|
812
775
|
),
|
|
813
|
-
).annotate({
|
|
814
|
-
identifier: "GetCredentialsRequest",
|
|
815
|
-
}) as any as S.Schema<GetCredentialsRequest>;
|
|
776
|
+
).annotate({ identifier: "GetCredentialsRequest" }) as any as S.Schema<GetCredentialsRequest>;
|
|
816
777
|
|
|
817
778
|
export interface GetCredentialsResponse {
|
|
818
779
|
credential?: CredentialsResponse;
|
|
@@ -821,9 +782,7 @@ export const GetCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
821
782
|
S.Struct({
|
|
822
783
|
credential: S.optional(CredentialsResponse),
|
|
823
784
|
}),
|
|
824
|
-
).annotate({
|
|
825
|
-
identifier: "GetCredentialsResponse",
|
|
826
|
-
}) as any as S.Schema<GetCredentialsResponse>;
|
|
785
|
+
).annotate({ identifier: "GetCredentialsResponse" }) as any as S.Schema<GetCredentialsResponse>;
|
|
827
786
|
|
|
828
787
|
export interface GetLoadBalancerRequest {
|
|
829
788
|
projectId: string;
|
|
@@ -843,9 +802,7 @@ export const GetLoadBalancerRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
843
802
|
baseUrl: "https://alb.api.stackit.cloud",
|
|
844
803
|
}),
|
|
845
804
|
),
|
|
846
|
-
).annotate({
|
|
847
|
-
identifier: "GetLoadBalancerRequest",
|
|
848
|
-
}) as any as S.Schema<GetLoadBalancerRequest>;
|
|
805
|
+
).annotate({ identifier: "GetLoadBalancerRequest" }) as any as S.Schema<GetLoadBalancerRequest>;
|
|
849
806
|
|
|
850
807
|
export interface GetQuotaRequest {
|
|
851
808
|
projectId: string;
|
|
@@ -863,9 +820,7 @@ export const GetQuotaRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
863
820
|
baseUrl: "https://alb.api.stackit.cloud",
|
|
864
821
|
}),
|
|
865
822
|
),
|
|
866
|
-
).annotate({
|
|
867
|
-
identifier: "GetQuotaRequest",
|
|
868
|
-
}) as any as S.Schema<GetQuotaRequest>;
|
|
823
|
+
).annotate({ identifier: "GetQuotaRequest" }) as any as S.Schema<GetQuotaRequest>;
|
|
869
824
|
|
|
870
825
|
export interface GetQuotaResponse {
|
|
871
826
|
/** The maximum number of observability credentials that can be stored in this project. */
|
|
@@ -890,9 +845,7 @@ export const GetQuotaResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
890
845
|
usedCredentials: S.optional(S.Number),
|
|
891
846
|
usedLoadBalancers: S.optional(S.Number),
|
|
892
847
|
}),
|
|
893
|
-
).annotate({
|
|
894
|
-
identifier: "GetQuotaResponse",
|
|
895
|
-
}) as any as S.Schema<GetQuotaResponse>;
|
|
848
|
+
).annotate({ identifier: "GetQuotaResponse" }) as any as S.Schema<GetQuotaResponse>;
|
|
896
849
|
|
|
897
850
|
export interface ListCredentialsRequest {
|
|
898
851
|
projectId: string;
|
|
@@ -910,9 +863,7 @@ export const ListCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
910
863
|
baseUrl: "https://alb.api.stackit.cloud",
|
|
911
864
|
}),
|
|
912
865
|
),
|
|
913
|
-
).annotate({
|
|
914
|
-
identifier: "ListCredentialsRequest",
|
|
915
|
-
}) as any as S.Schema<ListCredentialsRequest>;
|
|
866
|
+
).annotate({ identifier: "ListCredentialsRequest" }) as any as S.Schema<ListCredentialsRequest>;
|
|
916
867
|
|
|
917
868
|
export type ListCredentialsResponseCredentialsList = Array<CredentialsResponse>;
|
|
918
869
|
export const ListCredentialsResponseCredentialsList = /*@__PURE__*/ S.Array(
|
|
@@ -926,9 +877,7 @@ export const ListCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
926
877
|
S.Struct({
|
|
927
878
|
credentials: S.optional(ListCredentialsResponseCredentialsList),
|
|
928
879
|
}),
|
|
929
|
-
).annotate({
|
|
930
|
-
identifier: "ListCredentialsResponse",
|
|
931
|
-
}) as any as S.Schema<ListCredentialsResponse>;
|
|
880
|
+
).annotate({ identifier: "ListCredentialsResponse" }) as any as S.Schema<ListCredentialsResponse>;
|
|
932
881
|
|
|
933
882
|
export interface ListLoadBalancersRequest {
|
|
934
883
|
projectId: string;
|
|
@@ -952,9 +901,7 @@ export const ListLoadBalancersRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
952
901
|
baseUrl: "https://alb.api.stackit.cloud",
|
|
953
902
|
}),
|
|
954
903
|
),
|
|
955
|
-
).annotate({
|
|
956
|
-
identifier: "ListLoadBalancersRequest",
|
|
957
|
-
}) as any as S.Schema<ListLoadBalancersRequest>;
|
|
904
|
+
).annotate({ identifier: "ListLoadBalancersRequest" }) as any as S.Schema<ListLoadBalancersRequest>;
|
|
958
905
|
|
|
959
906
|
export type ListLoadBalancersResponseLoadBalancersList = Array<LoadBalancer>;
|
|
960
907
|
export const ListLoadBalancersResponseLoadBalancersList = /*@__PURE__*/ S.Array(
|
|
@@ -989,9 +936,7 @@ export const ListPlansRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
989
936
|
baseUrl: "https://alb.api.stackit.cloud",
|
|
990
937
|
}),
|
|
991
938
|
),
|
|
992
|
-
).annotate({
|
|
993
|
-
identifier: "ListPlansRequest",
|
|
994
|
-
}) as any as S.Schema<ListPlansRequest>;
|
|
939
|
+
).annotate({ identifier: "ListPlansRequest" }) as any as S.Schema<ListPlansRequest>;
|
|
995
940
|
|
|
996
941
|
export interface PlanDetails {
|
|
997
942
|
/** Description */
|
|
@@ -1032,9 +977,7 @@ export const ListPlansResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1032
977
|
S.Struct({
|
|
1033
978
|
validPlans: S.optional(ListPlansResponseValidPlansList),
|
|
1034
979
|
}),
|
|
1035
|
-
).annotate({
|
|
1036
|
-
identifier: "ListPlansResponse",
|
|
1037
|
-
}) as any as S.Schema<ListPlansResponse>;
|
|
980
|
+
).annotate({ identifier: "ListPlansResponse" }) as any as S.Schema<ListPlansResponse>;
|
|
1038
981
|
|
|
1039
982
|
export interface UpdateCredentialsRequest {
|
|
1040
983
|
projectId: string;
|
|
@@ -1063,9 +1006,7 @@ export const UpdateCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1063
1006
|
baseUrl: "https://alb.api.stackit.cloud",
|
|
1064
1007
|
}),
|
|
1065
1008
|
),
|
|
1066
|
-
).annotate({
|
|
1067
|
-
identifier: "UpdateCredentialsRequest",
|
|
1068
|
-
}) as any as S.Schema<UpdateCredentialsRequest>;
|
|
1009
|
+
).annotate({ identifier: "UpdateCredentialsRequest" }) as any as S.Schema<UpdateCredentialsRequest>;
|
|
1069
1010
|
|
|
1070
1011
|
export interface UpdateCredentialsResponse {
|
|
1071
1012
|
credential?: CredentialsResponse;
|
|
@@ -1079,9 +1020,7 @@ export const UpdateCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
|
|
|
1079
1020
|
}) as any as S.Schema<UpdateCredentialsResponse>;
|
|
1080
1021
|
|
|
1081
1022
|
/** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per ALB. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */
|
|
1082
|
-
export type UpdateLoadBalancerRequestLabelsMap = {
|
|
1083
|
-
[key: string]: string | undefined;
|
|
1084
|
-
};
|
|
1023
|
+
export type UpdateLoadBalancerRequestLabelsMap = { [key: string]: string | undefined };
|
|
1085
1024
|
export const UpdateLoadBalancerRequestLabelsMap = /*@__PURE__*/ S.Record(
|
|
1086
1025
|
S.String,
|
|
1087
1026
|
S.String,
|
|
@@ -1189,9 +1128,7 @@ export const UpdateTargetPoolRequest = /*@__PURE__*/ S.suspend(() =>
|
|
|
1189
1128
|
baseUrl: "https://alb.api.stackit.cloud",
|
|
1190
1129
|
}),
|
|
1191
1130
|
),
|
|
1192
|
-
).annotate({
|
|
1193
|
-
identifier: "UpdateTargetPoolRequest",
|
|
1194
|
-
}) as any as S.Schema<UpdateTargetPoolRequest>;
|
|
1131
|
+
).annotate({ identifier: "UpdateTargetPoolRequest" }) as any as S.Schema<UpdateTargetPoolRequest>;
|
|
1195
1132
|
|
|
1196
1133
|
export type CreateCredentialsError = BadRequest | Forbidden | StackitOpError;
|
|
1197
1134
|
/** Create credentials for observability of the Application Load Balancer Created credentials can be stored and used for the load balancer observability. For example, when using STACKIT Observability, credentials first must be created for that STACKIT Observability instance (by using their API or the STACKIT Portal) and then can be provided to the load balancer by storing them with this endpoint. */
|
|
@@ -1208,11 +1145,7 @@ export const createCredentials: API.OperationMethod<
|
|
|
1208
1145
|
retry: Retry.Retry,
|
|
1209
1146
|
}));
|
|
1210
1147
|
|
|
1211
|
-
export type CreateLoadBalancerError =
|
|
1212
|
-
| BadRequest
|
|
1213
|
-
| Forbidden
|
|
1214
|
-
| Conflict
|
|
1215
|
-
| StackitOpError;
|
|
1148
|
+
export type CreateLoadBalancerError = BadRequest | Forbidden | Conflict | StackitOpError;
|
|
1216
1149
|
/** Create an Application Load Balancer in a project Creates an Application Load Balancer. The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. */
|
|
1217
1150
|
export const createLoadBalancer: API.OperationMethod<
|
|
1218
1151
|
CreateLoadBalancerRequest,
|
|
@@ -1257,11 +1190,7 @@ export const deleteLoadBalancer: API.OperationMethod<
|
|
|
1257
1190
|
retry: Retry.Retry,
|
|
1258
1191
|
}));
|
|
1259
1192
|
|
|
1260
|
-
export type GetCredentialsError =
|
|
1261
|
-
| BadRequest
|
|
1262
|
-
| Forbidden
|
|
1263
|
-
| NotFound
|
|
1264
|
-
| StackitOpError;
|
|
1193
|
+
export type GetCredentialsError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1265
1194
|
/** Get a single credential reference in a project. Gets the stored Observability credentials. */
|
|
1266
1195
|
export const getCredentials: API.OperationMethod<
|
|
1267
1196
|
GetCredentialsRequest,
|
|
@@ -1276,11 +1205,7 @@ export const getCredentials: API.OperationMethod<
|
|
|
1276
1205
|
retry: Retry.Retry,
|
|
1277
1206
|
}));
|
|
1278
1207
|
|
|
1279
|
-
export type GetLoadBalancerError =
|
|
1280
|
-
| BadRequest
|
|
1281
|
-
| Forbidden
|
|
1282
|
-
| NotFound
|
|
1283
|
-
| StackitOpError;
|
|
1208
|
+
export type GetLoadBalancerError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1284
1209
|
/** Get a single Application Load Balancer in a project. Retrieves details of a specific Application Load Balancer in a project. Includes creation and update information, current status, and any error descriptions. */
|
|
1285
1210
|
export const getLoadBalancer: API.OperationMethod<
|
|
1286
1211
|
GetLoadBalancerRequest,
|
|
@@ -1355,11 +1280,7 @@ export const listPlans: API.OperationMethod<
|
|
|
1355
1280
|
retry: Retry.Retry,
|
|
1356
1281
|
}));
|
|
1357
1282
|
|
|
1358
|
-
export type UpdateCredentialsError =
|
|
1359
|
-
| BadRequest
|
|
1360
|
-
| Forbidden
|
|
1361
|
-
| NotFound
|
|
1362
|
-
| StackitOpError;
|
|
1283
|
+
export type UpdateCredentialsError = BadRequest | Forbidden | NotFound | StackitOpError;
|
|
1363
1284
|
/** Update credentials for observability in a project. Updates the stored Observability credentials. */
|
|
1364
1285
|
export const updateCredentials: API.OperationMethod<
|
|
1365
1286
|
UpdateCredentialsRequest,
|
|
@@ -1374,11 +1295,7 @@ export const updateCredentials: API.OperationMethod<
|
|
|
1374
1295
|
retry: Retry.Retry,
|
|
1375
1296
|
}));
|
|
1376
1297
|
|
|
1377
|
-
export type UpdateLoadBalancerError =
|
|
1378
|
-
| BadRequest
|
|
1379
|
-
| Forbidden
|
|
1380
|
-
| Conflict
|
|
1381
|
-
| StackitOpError;
|
|
1298
|
+
export type UpdateLoadBalancerError = BadRequest | Forbidden | Conflict | StackitOpError;
|
|
1382
1299
|
/** Update a load balancer in a project. Updates an existing Application Load Balancer by modifying its listeners and target pools. Ensure the resource version is current to maintain concurrency safety. The default load balancing algorithm is Maglev, and selecting a different algorithm is currently not supported. */
|
|
1383
1300
|
export const updateLoadBalancer: API.OperationMethod<
|
|
1384
1301
|
UpdateLoadBalancerRequest,
|