@distilled.cloud/stackit 1.0.0-rc.13 → 1.0.0-rc.14

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.
Files changed (289) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +3 -3
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts.map +1 -1
  6. package/lib/errors.js +1 -1
  7. package/lib/errors.js.map +1 -1
  8. package/lib/pagination.d.ts +1 -1
  9. package/lib/pagination.d.ts.map +1 -1
  10. package/lib/pagination.js +2 -5
  11. package/lib/pagination.js.map +1 -1
  12. package/lib/protocol.d.ts +3 -3
  13. package/lib/protocol.d.ts.map +1 -1
  14. package/lib/protocol.js +9 -10
  15. package/lib/protocol.js.map +1 -1
  16. package/lib/protocol.test.d.ts +2 -0
  17. package/lib/protocol.test.d.ts.map +1 -0
  18. package/lib/protocol.test.js +181 -0
  19. package/lib/protocol.test.js.map +1 -0
  20. package/lib/retry.d.ts +1 -1
  21. package/lib/retry.d.ts.map +1 -1
  22. package/lib/retry.js +1 -1
  23. package/lib/retry.js.map +1 -1
  24. package/lib/services/alb.d.ts +1 -1
  25. package/lib/services/alb.d.ts.map +1 -1
  26. package/lib/services/alb.js +33 -82
  27. package/lib/services/alb.js.map +1 -1
  28. package/lib/services/alb_waf.d.ts +1 -1
  29. package/lib/services/alb_waf.d.ts.map +1 -1
  30. package/lib/services/alb_waf.js +23 -47
  31. package/lib/services/alb_waf.js.map +1 -1
  32. package/lib/services/authorization.d.ts +1 -1
  33. package/lib/services/authorization.d.ts.map +1 -1
  34. package/lib/services/authorization.js +19 -49
  35. package/lib/services/authorization.js.map +1 -1
  36. package/lib/services/automation.d.ts +21 -58
  37. package/lib/services/automation.d.ts.map +1 -1
  38. package/lib/services/automation.js +49 -112
  39. package/lib/services/automation.js.map +1 -1
  40. package/lib/services/cdn.d.ts +2 -2
  41. package/lib/services/cdn.d.ts.map +1 -1
  42. package/lib/services/cdn.js +91 -177
  43. package/lib/services/cdn.js.map +1 -1
  44. package/lib/services/certificates.d.ts +1 -1
  45. package/lib/services/certificates.d.ts.map +1 -1
  46. package/lib/services/certificates.js +13 -31
  47. package/lib/services/certificates.js.map +1 -1
  48. package/lib/services/cost.d.ts +1 -1
  49. package/lib/services/cost.d.ts.map +1 -1
  50. package/lib/services/cost.js +17 -28
  51. package/lib/services/cost.js.map +1 -1
  52. package/lib/services/dns.d.ts +22 -55
  53. package/lib/services/dns.d.ts.map +1 -1
  54. package/lib/services/dns.js +72 -200
  55. package/lib/services/dns.js.map +1 -1
  56. package/lib/services/dremio.d.ts +1 -1
  57. package/lib/services/dremio.d.ts.map +1 -1
  58. package/lib/services/dremio.js +28 -50
  59. package/lib/services/dremio.js.map +1 -1
  60. package/lib/services/edge.d.ts +1 -1
  61. package/lib/services/edge.d.ts.map +1 -1
  62. package/lib/services/edge.js +14 -32
  63. package/lib/services/edge.js.map +1 -1
  64. package/lib/services/functions.d.ts +1 -1
  65. package/lib/services/functions.d.ts.map +1 -1
  66. package/lib/services/functions.js +19 -43
  67. package/lib/services/functions.js.map +1 -1
  68. package/lib/services/git.d.ts +1 -1
  69. package/lib/services/git.d.ts.map +1 -1
  70. package/lib/services/git.js +25 -57
  71. package/lib/services/git.js.map +1 -1
  72. package/lib/services/iaas.d.ts +31 -10
  73. package/lib/services/iaas.d.ts.map +1 -1
  74. package/lib/services/iaas.js +151 -376
  75. package/lib/services/iaas.js.map +1 -1
  76. package/lib/services/intake.d.ts +1 -1
  77. package/lib/services/intake.d.ts.map +1 -1
  78. package/lib/services/intake.js +45 -83
  79. package/lib/services/intake.js.map +1 -1
  80. package/lib/services/kms.d.ts +1 -1
  81. package/lib/services/kms.d.ts.map +1 -1
  82. package/lib/services/kms.js +63 -103
  83. package/lib/services/kms.js.map +1 -1
  84. package/lib/services/lb_ip_lists.d.ts +1 -3
  85. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  86. package/lib/services/lb_ip_lists.js +18 -37
  87. package/lib/services/lb_ip_lists.js.map +1 -1
  88. package/lib/services/load_balancer.d.ts +1 -1
  89. package/lib/services/load_balancer.d.ts.map +1 -1
  90. package/lib/services/load_balancer.js +32 -77
  91. package/lib/services/load_balancer.js.map +1 -1
  92. package/lib/services/logme.d.ts +1 -1
  93. package/lib/services/logme.d.ts.map +1 -1
  94. package/lib/services/logme.js +39 -101
  95. package/lib/services/logme.js.map +1 -1
  96. package/lib/services/logs.d.ts +1 -1
  97. package/lib/services/logs.d.ts.map +1 -1
  98. package/lib/services/logs.js +36 -59
  99. package/lib/services/logs.js.map +1 -1
  100. package/lib/services/mariadb.d.ts +1 -1
  101. package/lib/services/mariadb.d.ts.map +1 -1
  102. package/lib/services/mariadb.js +37 -97
  103. package/lib/services/mariadb.js.map +1 -1
  104. package/lib/services/model_experiments.d.ts +2 -2
  105. package/lib/services/model_experiments.d.ts.map +1 -1
  106. package/lib/services/model_experiments.js +27 -47
  107. package/lib/services/model_experiments.js.map +1 -1
  108. package/lib/services/model_serving.d.ts +2 -2
  109. package/lib/services/model_serving.d.ts.map +1 -1
  110. package/lib/services/model_serving.js +29 -61
  111. package/lib/services/model_serving.js.map +1 -1
  112. package/lib/services/mongodb_flex.d.ts +1 -1
  113. package/lib/services/mongodb_flex.d.ts.map +1 -1
  114. package/lib/services/mongodb_flex.js +76 -162
  115. package/lib/services/mongodb_flex.js.map +1 -1
  116. package/lib/services/object_storage.d.ts +25 -1
  117. package/lib/services/object_storage.d.ts.map +1 -1
  118. package/lib/services/object_storage.js +52 -89
  119. package/lib/services/object_storage.js.map +1 -1
  120. package/lib/services/observability.d.ts +5 -5
  121. package/lib/services/observability.d.ts.map +1 -1
  122. package/lib/services/observability.js +170 -419
  123. package/lib/services/observability.js.map +1 -1
  124. package/lib/services/opensearch.d.ts +1 -1
  125. package/lib/services/opensearch.d.ts.map +1 -1
  126. package/lib/services/opensearch.js +40 -100
  127. package/lib/services/opensearch.js.map +1 -1
  128. package/lib/services/pim.d.ts +1 -1
  129. package/lib/services/pim.d.ts.map +1 -1
  130. package/lib/services/pim.js +45 -98
  131. package/lib/services/pim.js.map +1 -1
  132. package/lib/services/postgres_flex.d.ts +2 -2
  133. package/lib/services/postgres_flex.d.ts.map +1 -1
  134. package/lib/services/postgres_flex.js +96 -261
  135. package/lib/services/postgres_flex.js.map +1 -1
  136. package/lib/services/pubsub.d.ts +2 -2
  137. package/lib/services/pubsub.d.ts.map +1 -1
  138. package/lib/services/pubsub.js +53 -148
  139. package/lib/services/pubsub.js.map +1 -1
  140. package/lib/services/rabbitmq.d.ts +2 -2
  141. package/lib/services/rabbitmq.d.ts.map +1 -1
  142. package/lib/services/rabbitmq.js +41 -103
  143. package/lib/services/rabbitmq.js.map +1 -1
  144. package/lib/services/registry.d.ts +1 -1
  145. package/lib/services/registry.d.ts.map +1 -1
  146. package/lib/services/registry.js +16 -39
  147. package/lib/services/registry.js.map +1 -1
  148. package/lib/services/resource_manager.d.ts +5 -5
  149. package/lib/services/resource_manager.d.ts.map +1 -1
  150. package/lib/services/resource_manager.js +23 -53
  151. package/lib/services/resource_manager.js.map +1 -1
  152. package/lib/services/run_command.d.ts +1 -1
  153. package/lib/services/run_command.d.ts.map +1 -1
  154. package/lib/services/run_command.js +15 -33
  155. package/lib/services/run_command.js.map +1 -1
  156. package/lib/services/sca.d.ts +18 -6
  157. package/lib/services/sca.d.ts.map +1 -1
  158. package/lib/services/sca.js +42 -75
  159. package/lib/services/sca.js.map +1 -1
  160. package/lib/services/scf.d.ts +1 -1
  161. package/lib/services/scf.d.ts.map +1 -1
  162. package/lib/services/scf.js +30 -78
  163. package/lib/services/scf.js.map +1 -1
  164. package/lib/services/secrets_manager.d.ts +1 -1
  165. package/lib/services/secrets_manager.d.ts.map +1 -1
  166. package/lib/services/secrets_manager.js +32 -78
  167. package/lib/services/secrets_manager.js.map +1 -1
  168. package/lib/services/server_backup.d.ts +1 -1
  169. package/lib/services/server_backup.d.ts.map +1 -1
  170. package/lib/services/server_backup.js +16 -36
  171. package/lib/services/server_backup.js.map +1 -1
  172. package/lib/services/server_update.d.ts +1 -1
  173. package/lib/services/server_update.d.ts.map +1 -1
  174. package/lib/services/server_update.js +10 -22
  175. package/lib/services/server_update.js.map +1 -1
  176. package/lib/services/service_account.d.ts +1 -1
  177. package/lib/services/service_account.d.ts.map +1 -1
  178. package/lib/services/service_account.js +32 -49
  179. package/lib/services/service_account.js.map +1 -1
  180. package/lib/services/service_enablement.d.ts +1 -1
  181. package/lib/services/service_enablement.d.ts.map +1 -1
  182. package/lib/services/service_enablement.js +11 -13
  183. package/lib/services/service_enablement.js.map +1 -1
  184. package/lib/services/sfs.d.ts +17 -17
  185. package/lib/services/sfs.d.ts.map +1 -1
  186. package/lib/services/sfs.js +34 -89
  187. package/lib/services/sfs.js.map +1 -1
  188. package/lib/services/ske.d.ts +27 -1
  189. package/lib/services/ske.d.ts.map +1 -1
  190. package/lib/services/ske.js +49 -89
  191. package/lib/services/ske.js.map +1 -1
  192. package/lib/services/sqlserverflex.d.ts +2 -2
  193. package/lib/services/sqlserverflex.d.ts.map +1 -1
  194. package/lib/services/sqlserverflex.js +104 -255
  195. package/lib/services/sqlserverflex.js.map +1 -1
  196. package/lib/services/stackit_marketplace.d.ts +4 -4
  197. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  198. package/lib/services/stackit_marketplace.js +17 -31
  199. package/lib/services/stackit_marketplace.js.map +1 -1
  200. package/lib/services/telemetry_link.d.ts +1 -1
  201. package/lib/services/telemetry_link.d.ts.map +1 -1
  202. package/lib/services/telemetry_link.js +34 -52
  203. package/lib/services/telemetry_link.js.map +1 -1
  204. package/lib/services/telemetry_router.d.ts +1 -1
  205. package/lib/services/telemetry_router.d.ts.map +1 -1
  206. package/lib/services/telemetry_router.js +49 -88
  207. package/lib/services/telemetry_router.js.map +1 -1
  208. package/lib/services/ufw.d.ts +1 -1
  209. package/lib/services/ufw.d.ts.map +1 -1
  210. package/lib/services/ufw.js +25 -47
  211. package/lib/services/ufw.js.map +1 -1
  212. package/lib/services/valkey.d.ts +2 -2
  213. package/lib/services/valkey.d.ts.map +1 -1
  214. package/lib/services/valkey.js +40 -100
  215. package/lib/services/valkey.js.map +1 -1
  216. package/lib/services/vpn.d.ts +1 -1
  217. package/lib/services/vpn.d.ts.map +1 -1
  218. package/lib/services/vpn.js +98 -180
  219. package/lib/services/vpn.js.map +1 -1
  220. package/lib/services/workflows.d.ts +1 -1
  221. package/lib/services/workflows.d.ts.map +1 -1
  222. package/lib/services/workflows.js +40 -88
  223. package/lib/services/workflows.js.map +1 -1
  224. package/lib/traits.d.ts.map +1 -1
  225. package/lib/traits.js +1 -1
  226. package/lib/traits.js.map +1 -1
  227. package/package.json +13 -11
  228. package/src/credentials.ts +10 -16
  229. package/src/errors.ts +1 -1
  230. package/src/pagination.ts +6 -22
  231. package/src/protocol.test.ts +304 -0
  232. package/src/protocol.ts +29 -47
  233. package/src/retry.ts +2 -8
  234. package/src/services/alb.ts +45 -128
  235. package/src/services/alb_waf.ts +35 -94
  236. package/src/services/authorization.ts +20 -56
  237. package/src/services/automation.ts +92 -262
  238. package/src/services/cdn.ts +191 -351
  239. package/src/services/certificates.ts +17 -49
  240. package/src/services/cost.ts +29 -64
  241. package/src/services/dns.ts +160 -495
  242. package/src/services/dremio.ts +35 -85
  243. package/src/services/edge.ts +37 -96
  244. package/src/services/functions.ts +31 -84
  245. package/src/services/git.ts +41 -122
  246. package/src/services/iaas.ts +392 -1184
  247. package/src/services/intake.ts +57 -124
  248. package/src/services/kms.ts +91 -192
  249. package/src/services/lb_ip_lists.ts +21 -56
  250. package/src/services/load_balancer.ts +43 -119
  251. package/src/services/logme.ts +55 -150
  252. package/src/services/logs.ts +57 -158
  253. package/src/services/mariadb.ts +45 -126
  254. package/src/services/model_experiments.ts +36 -92
  255. package/src/services/model_serving.ts +33 -76
  256. package/src/services/mongodb_flex.ts +113 -259
  257. package/src/services/object_storage.ts +101 -154
  258. package/src/services/observability.ts +635 -1127
  259. package/src/services/opensearch.ts +52 -141
  260. package/src/services/pim.ts +78 -183
  261. package/src/services/postgres_flex.ts +120 -366
  262. package/src/services/pubsub.ts +134 -277
  263. package/src/services/rabbitmq.ts +53 -145
  264. package/src/services/registry.ts +24 -72
  265. package/src/services/resource_manager.ts +46 -129
  266. package/src/services/run_command.ts +17 -45
  267. package/src/services/sca.ts +63 -98
  268. package/src/services/scf.ts +54 -195
  269. package/src/services/secrets_manager.ts +54 -136
  270. package/src/services/server_backup.ts +26 -75
  271. package/src/services/server_update.ts +15 -44
  272. package/src/services/service_account.ts +185 -272
  273. package/src/services/service_enablement.ts +18 -47
  274. package/src/services/sfs.ts +84 -166
  275. package/src/services/ske.ts +91 -113
  276. package/src/services/sqlserverflex.ts +147 -383
  277. package/src/services/stackit_marketplace.ts +184 -250
  278. package/src/services/telemetry_link.ts +199 -278
  279. package/src/services/telemetry_router.ts +73 -168
  280. package/src/services/ufw.ts +32 -82
  281. package/src/services/valkey.ts +54 -145
  282. package/src/services/vpn.ts +215 -404
  283. package/src/services/workflows.ts +57 -169
  284. package/src/traits.ts +2 -7
  285. package/lib/response-validation.test.d.ts +0 -4
  286. package/lib/response-validation.test.d.ts.map +0 -1
  287. package/lib/response-validation.test.js +0 -31
  288. package/lib/response-validation.test.js.map +0 -1
  289. 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
- | (new (args: {
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);
@@ -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
- | "PROTOCOL_UNSPECIFIED"
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 = /*@__PURE__*/ S.String;
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
- Array<string>;
349
- export const LoadbalancerOptionAccessControlAllowedSourceRangesList =
350
- /*@__PURE__*/ S.Array(
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 = /*@__PURE__*/ S.String;
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 = /*@__PURE__*/ S.String;
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,