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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +32 -28
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +13 -13
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +16 -16
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +22 -22
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +15 -15
  13. package/lib/protocol.d.ts +3 -3
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +31 -29
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +24 -23
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/alb.d.ts +10 -87
  22. package/lib/services/alb.d.ts.map +1 -1
  23. package/lib/services/alb.js +73 -502
  24. package/lib/services/alb_waf.d.ts +9 -82
  25. package/lib/services/alb_waf.d.ts.map +1 -1
  26. package/lib/services/alb_waf.js +84 -510
  27. package/lib/services/authorization.d.ts +5 -47
  28. package/lib/services/authorization.d.ts.map +1 -1
  29. package/lib/services/authorization.js +67 -314
  30. package/lib/services/automation.d.ts +7 -47
  31. package/lib/services/automation.d.ts.map +1 -1
  32. package/lib/services/automation.js +58 -353
  33. package/lib/services/cdn.d.ts +8 -220
  34. package/lib/services/cdn.d.ts.map +1 -1
  35. package/lib/services/cdn.js +81 -896
  36. package/lib/services/certificates.d.ts +8 -27
  37. package/lib/services/certificates.d.ts.map +1 -1
  38. package/lib/services/certificates.js +45 -171
  39. package/lib/services/cost.d.ts +10 -37
  40. package/lib/services/cost.d.ts.map +1 -1
  41. package/lib/services/cost.js +39 -169
  42. package/lib/services/dns.d.ts +9 -104
  43. package/lib/services/dns.d.ts.map +1 -1
  44. package/lib/services/dns.js +98 -714
  45. package/lib/services/dremio.d.ts +8 -50
  46. package/lib/services/dremio.d.ts.map +1 -1
  47. package/lib/services/dremio.js +56 -307
  48. package/lib/services/edge.d.ts +7 -40
  49. package/lib/services/edge.d.ts.map +1 -1
  50. package/lib/services/edge.js +66 -347
  51. package/lib/services/functions.d.ts +1 -48
  52. package/lib/services/functions.d.ts.map +1 -1
  53. package/lib/services/functions.js +64 -393
  54. package/lib/services/git.d.ts +8 -61
  55. package/lib/services/git.d.ts.map +1 -1
  56. package/lib/services/git.js +87 -510
  57. package/lib/services/iaas.d.ts +9 -337
  58. package/lib/services/iaas.d.ts.map +1 -1
  59. package/lib/services/iaas.js +409 -3532
  60. package/lib/services/intake.d.ts +8 -75
  61. package/lib/services/intake.d.ts.map +1 -1
  62. package/lib/services/intake.js +74 -465
  63. package/lib/services/kms.d.ts +9 -92
  64. package/lib/services/kms.d.ts.map +1 -1
  65. package/lib/services/kms.js +95 -650
  66. package/lib/services/lb_ip_lists.d.ts +9 -25
  67. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  68. package/lib/services/lb_ip_lists.js +45 -146
  69. package/lib/services/load_balancer.d.ts +10 -81
  70. package/lib/services/load_balancer.d.ts.map +1 -1
  71. package/lib/services/load_balancer.js +76 -486
  72. package/lib/services/logme.d.ts +8 -69
  73. package/lib/services/logme.d.ts.map +1 -1
  74. package/lib/services/logme.js +82 -564
  75. package/lib/services/logs.d.ts +8 -64
  76. package/lib/services/logs.d.ts.map +1 -1
  77. package/lib/services/logs.js +84 -465
  78. package/lib/services/mariadb.d.ts +8 -65
  79. package/lib/services/mariadb.d.ts.map +1 -1
  80. package/lib/services/mariadb.js +84 -541
  81. package/lib/services/model_experiments.d.ts +9 -48
  82. package/lib/services/model_experiments.d.ts.map +1 -1
  83. package/lib/services/model_experiments.js +66 -325
  84. package/lib/services/model_serving.d.ts +7 -47
  85. package/lib/services/model_serving.d.ts.map +1 -1
  86. package/lib/services/model_serving.js +55 -277
  87. package/lib/services/mongodb_flex.d.ts +8 -137
  88. package/lib/services/mongodb_flex.d.ts.map +1 -1
  89. package/lib/services/mongodb_flex.js +102 -793
  90. package/lib/services/object_storage.d.ts +12 -59
  91. package/lib/services/object_storage.d.ts.map +1 -1
  92. package/lib/services/object_storage.js +93 -528
  93. package/lib/services/observability.d.ts +8 -407
  94. package/lib/services/observability.d.ts.map +1 -1
  95. package/lib/services/observability.js +375 -3148
  96. package/lib/services/opensearch.d.ts +8 -71
  97. package/lib/services/opensearch.d.ts.map +1 -1
  98. package/lib/services/opensearch.js +85 -553
  99. package/lib/services/pim.d.ts +12 -108
  100. package/lib/services/pim.d.ts.map +1 -1
  101. package/lib/services/pim.js +81 -726
  102. package/lib/services/postgres_flex.d.ts +14 -136
  103. package/lib/services/postgres_flex.d.ts.map +1 -1
  104. package/lib/services/postgres_flex.js +114 -841
  105. package/lib/services/pubsub.d.ts +11 -73
  106. package/lib/services/pubsub.d.ts.map +1 -1
  107. package/lib/services/pubsub.js +92 -507
  108. package/lib/services/rabbitmq.d.ts +8 -76
  109. package/lib/services/rabbitmq.d.ts.map +1 -1
  110. package/lib/services/rabbitmq.js +88 -564
  111. package/lib/services/registry.d.ts +10 -28
  112. package/lib/services/registry.d.ts.map +1 -1
  113. package/lib/services/registry.js +49 -189
  114. package/lib/services/resource_manager.d.ts +9 -61
  115. package/lib/services/resource_manager.d.ts.map +1 -1
  116. package/lib/services/resource_manager.js +92 -462
  117. package/lib/services/run_command.d.ts +5 -28
  118. package/lib/services/run_command.d.ts.map +1 -1
  119. package/lib/services/run_command.js +38 -176
  120. package/lib/services/sca.d.ts +8 -79
  121. package/lib/services/sca.d.ts.map +1 -1
  122. package/lib/services/sca.js +63 -435
  123. package/lib/services/scf.d.ts +8 -64
  124. package/lib/services/scf.d.ts.map +1 -1
  125. package/lib/services/scf.js +99 -660
  126. package/lib/services/secrets_manager.d.ts +8 -61
  127. package/lib/services/secrets_manager.d.ts.map +1 -1
  128. package/lib/services/secrets_manager.js +99 -601
  129. package/lib/services/server_backup.d.ts +7 -50
  130. package/lib/services/server_backup.d.ts.map +1 -1
  131. package/lib/services/server_backup.js +70 -444
  132. package/lib/services/server_update.d.ts +7 -35
  133. package/lib/services/server_update.d.ts.map +1 -1
  134. package/lib/services/server_update.js +58 -342
  135. package/lib/services/service_account.d.ts +10 -68
  136. package/lib/services/service_account.d.ts.map +1 -1
  137. package/lib/services/service_account.js +75 -495
  138. package/lib/services/service_enablement.d.ts +7 -29
  139. package/lib/services/service_enablement.d.ts.map +1 -1
  140. package/lib/services/service_enablement.js +40 -147
  141. package/lib/services/sfs.d.ts +4 -96
  142. package/lib/services/sfs.d.ts.map +1 -1
  143. package/lib/services/sfs.js +117 -782
  144. package/lib/services/ske.d.ts +9 -108
  145. package/lib/services/ske.d.ts.map +1 -1
  146. package/lib/services/ske.js +67 -549
  147. package/lib/services/sqlserverflex.d.ts +11 -152
  148. package/lib/services/sqlserverflex.d.ts.map +1 -1
  149. package/lib/services/sqlserverflex.js +112 -925
  150. package/lib/services/stackit_marketplace.d.ts +9 -38
  151. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  152. package/lib/services/stackit_marketplace.js +64 -369
  153. package/lib/services/telemetry_link.d.ts +8 -61
  154. package/lib/services/telemetry_link.d.ts.map +1 -1
  155. package/lib/services/telemetry_link.js +81 -522
  156. package/lib/services/telemetry_router.d.ts +8 -72
  157. package/lib/services/telemetry_router.d.ts.map +1 -1
  158. package/lib/services/telemetry_router.js +73 -474
  159. package/lib/services/ufw.d.ts +7 -42
  160. package/lib/services/ufw.d.ts.map +1 -1
  161. package/lib/services/ufw.js +55 -269
  162. package/lib/services/valkey.d.ts +8 -68
  163. package/lib/services/valkey.d.ts.map +1 -1
  164. package/lib/services/valkey.js +85 -557
  165. package/lib/services/vpn.d.ts +21 -186
  166. package/lib/services/vpn.d.ts.map +1 -1
  167. package/lib/services/vpn.js +105 -920
  168. package/lib/services/workflows.d.ts +15 -84
  169. package/lib/services/workflows.d.ts.map +1 -1
  170. package/lib/services/workflows.js +67 -497
  171. package/lib/traits.d.ts +1 -1
  172. package/lib/traits.js +10 -10
  173. package/package.json +13 -9
  174. package/src/credentials.ts +21 -18
  175. package/src/errors.ts +10 -14
  176. package/src/index.ts +2 -2
  177. package/src/pagination.ts +2 -2
  178. package/src/protocol.ts +12 -9
  179. package/src/retry.ts +6 -4
  180. package/src/services/alb.ts +599 -655
  181. package/src/services/alb_waf.ts +597 -637
  182. package/src/services/authorization.ts +400 -383
  183. package/src/services/automation.ts +422 -405
  184. package/src/services/cdn.ts +817 -1375
  185. package/src/services/certificates.ts +209 -190
  186. package/src/services/cost.ts +100 -207
  187. package/src/services/dns.ts +793 -833
  188. package/src/services/dremio.ts +356 -349
  189. package/src/services/edge.ts +406 -366
  190. package/src/services/functions.ts +465 -463
  191. package/src/services/git.ts +602 -547
  192. package/src/services/iaas.ts +3931 -3821
  193. package/src/services/intake.ts +521 -549
  194. package/src/services/kms.ts +715 -692
  195. package/src/services/lb_ip_lists.ts +173 -152
  196. package/src/services/load_balancer.ts +576 -619
  197. package/src/services/logme.ts +696 -641
  198. package/src/services/logs.ts +510 -493
  199. package/src/services/mariadb.ts +671 -604
  200. package/src/services/model_experiments.ts +343 -356
  201. package/src/services/model_serving.ts +337 -328
  202. package/src/services/mongodb_flex.ts +955 -1007
  203. package/src/services/object_storage.ts +614 -557
  204. package/src/services/observability.ts +3469 -3866
  205. package/src/services/opensearch.ts +679 -628
  206. package/src/services/pim.ts +672 -909
  207. package/src/services/postgres_flex.ts +966 -986
  208. package/src/services/pubsub.ts +524 -546
  209. package/src/services/rabbitmq.ts +693 -654
  210. package/src/services/registry.ts +227 -194
  211. package/src/services/resource_manager.ts +520 -517
  212. package/src/services/run_command.ts +219 -211
  213. package/src/services/sca.ts +543 -570
  214. package/src/services/scf.ts +790 -716
  215. package/src/services/secrets_manager.ts +707 -622
  216. package/src/services/server_backup.ts +490 -475
  217. package/src/services/server_update.ts +353 -356
  218. package/src/services/service_account.ts +515 -553
  219. package/src/services/service_enablement.ts +162 -166
  220. package/src/services/sfs.ts +879 -958
  221. package/src/services/ske.ts +694 -769
  222. package/src/services/sqlserverflex.ts +1042 -1117
  223. package/src/services/stackit_marketplace.ts +377 -372
  224. package/src/services/telemetry_link.ts +530 -531
  225. package/src/services/telemetry_router.ts +509 -534
  226. package/src/services/ufw.ts +305 -307
  227. package/src/services/valkey.ts +684 -629
  228. package/src/services/vpn.ts +935 -1195
  229. package/src/services/workflows.ts +426 -586
  230. package/src/traits.ts +1 -1
  231. package/lib/protocol.test.d.ts +0 -2
  232. package/lib/protocol.test.d.ts.map +0 -1
  233. package/lib/protocol.test.js +0 -181
  234. package/lib/protocol.test.js.map +0 -1
  235. package/lib/services/alb.js.map +0 -1
  236. package/lib/services/alb_waf.js.map +0 -1
  237. package/lib/services/authorization.js.map +0 -1
  238. package/lib/services/automation.js.map +0 -1
  239. package/lib/services/cdn.js.map +0 -1
  240. package/lib/services/certificates.js.map +0 -1
  241. package/lib/services/cost.js.map +0 -1
  242. package/lib/services/dns.js.map +0 -1
  243. package/lib/services/dremio.js.map +0 -1
  244. package/lib/services/edge.js.map +0 -1
  245. package/lib/services/functions.js.map +0 -1
  246. package/lib/services/git.js.map +0 -1
  247. package/lib/services/iaas.js.map +0 -1
  248. package/lib/services/intake.js.map +0 -1
  249. package/lib/services/kms.js.map +0 -1
  250. package/lib/services/lb_ip_lists.js.map +0 -1
  251. package/lib/services/load_balancer.js.map +0 -1
  252. package/lib/services/logme.js.map +0 -1
  253. package/lib/services/logs.js.map +0 -1
  254. package/lib/services/mariadb.js.map +0 -1
  255. package/lib/services/model_experiments.js.map +0 -1
  256. package/lib/services/model_serving.js.map +0 -1
  257. package/lib/services/mongodb_flex.js.map +0 -1
  258. package/lib/services/object_storage.js.map +0 -1
  259. package/lib/services/observability.js.map +0 -1
  260. package/lib/services/opensearch.js.map +0 -1
  261. package/lib/services/pim.js.map +0 -1
  262. package/lib/services/postgres_flex.js.map +0 -1
  263. package/lib/services/pubsub.js.map +0 -1
  264. package/lib/services/rabbitmq.js.map +0 -1
  265. package/lib/services/registry.js.map +0 -1
  266. package/lib/services/resource_manager.js.map +0 -1
  267. package/lib/services/run_command.js.map +0 -1
  268. package/lib/services/sca.js.map +0 -1
  269. package/lib/services/scf.js.map +0 -1
  270. package/lib/services/secrets_manager.js.map +0 -1
  271. package/lib/services/server_backup.js.map +0 -1
  272. package/lib/services/server_update.js.map +0 -1
  273. package/lib/services/service_account.js.map +0 -1
  274. package/lib/services/service_enablement.js.map +0 -1
  275. package/lib/services/sfs.js.map +0 -1
  276. package/lib/services/ske.js.map +0 -1
  277. package/lib/services/sqlserverflex.js.map +0 -1
  278. package/lib/services/stackit_marketplace.js.map +0 -1
  279. package/lib/services/telemetry_link.js.map +0 -1
  280. package/lib/services/telemetry_router.js.map +0 -1
  281. package/lib/services/ufw.js.map +0 -1
  282. package/lib/services/valkey.js.map +0 -1
  283. package/lib/services/vpn.js.map +0 -1
  284. package/lib/services/workflows.js.map +0 -1
  285. package/src/protocol.test.ts +0 -304
@@ -1,12 +1,15 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
4
- import * as S from "@distilled.cloud/core/schema";
5
- import * as Redacted from "effect/Redacted";
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
6
+ import type * as Redacted from "effect/Redacted";
6
7
  import { UnknownStackitError } from "../errors.ts";
7
8
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
8
9
  import * as Retry from "../retry.ts";
9
10
  import * as T from "../traits.ts";
11
+ // Schema table, filled on first reach (see __S at the end).
12
+ const __s: any[] = [];
10
13
 
11
14
  export type { StackitOpError, StackitOpContext };
12
15
 
@@ -56,23 +59,6 @@ export interface CreateCredentialsRequest {
56
59
  /** A valid username used for an existing STACKIT Observability instance, which is used during basic auth. */
57
60
  username?: string;
58
61
  }
59
- export const CreateCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
60
- S.Struct({
61
- projectId: S.String.pipe(T.Label()),
62
- region: S.String.pipe(T.Label()),
63
- displayName: S.optional(S.String),
64
- password: S.optional(S.String.pipe(T.SensitiveValue({}))),
65
- username: S.optional(S.String),
66
- }).pipe(
67
- T.Http({
68
- method: "POST",
69
- uri: "/v2/projects/{projectId}/regions/{region}/credentials",
70
- code: 200,
71
- baseUrl: "https://alb.api.stackit.cloud",
72
- }),
73
- ),
74
- ).annotate({ identifier: "CreateCredentialsRequest" }) as any as S.Schema<CreateCredentialsRequest>;
75
-
76
62
  export interface CredentialsResponse {
77
63
  /** The credentials reference can be used for observability of the Application Load Balancer. */
78
64
  credentialsRef?: string;
@@ -83,33 +69,11 @@ export interface CredentialsResponse {
83
69
  /** The username used for the STACKIT Observability instance */
84
70
  username?: string;
85
71
  }
86
- export const CredentialsResponse = /*@__PURE__*/ S.suspend(() =>
87
- S.Struct({
88
- credentialsRef: S.optional(S.String),
89
- displayName: S.optional(S.String),
90
- region: S.optional(S.String),
91
- username: S.optional(S.String),
92
- }),
93
- ).annotate({ identifier: "CredentialsResponse" }) as any as S.Schema<CredentialsResponse>;
94
-
95
72
  export interface CreateCredentialsResponse {
96
73
  credential?: CredentialsResponse;
97
74
  }
98
- export const CreateCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
99
- S.Struct({
100
- credential: S.optional(CredentialsResponse),
101
- }),
102
- ).annotate({
103
- identifier: "CreateCredentialsResponse",
104
- }) as any as S.Schema<CreateCredentialsResponse>;
105
-
106
75
  /** 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. */
107
76
  export type CreateLoadBalancerRequestLabelsMap = { [key: string]: string | undefined };
108
- export const CreateLoadBalancerRequestLabelsMap = /*@__PURE__*/ S.Record(
109
- S.String,
110
- S.String,
111
- ) as any as S.Schema<CreateLoadBalancerRequestLabelsMap>;
112
-
113
77
  /** CookiePersistence contains the cookie-based session persistence configuration. */
114
78
  export interface CookiePersistence {
115
79
  /** Cookie is the name of the cookie to use. */
@@ -117,32 +81,14 @@ export interface CookiePersistence {
117
81
  /** TTL specifies the time-to-live for the cookie. The default value is 0s, and it acts as a session cookie, expiring when the client session ends. */
118
82
  ttl?: string;
119
83
  }
120
- export const CookiePersistence = /*@__PURE__*/ S.suspend(() =>
121
- S.Struct({
122
- name: S.optional(S.String),
123
- ttl: S.optional(S.String),
124
- }),
125
- ).annotate({ identifier: "CookiePersistence" }) as any as S.Schema<CookiePersistence>;
126
-
127
84
  export interface HttpHeader {
128
85
  /** Exact match for the header value. */
129
86
  exactMatch?: string;
130
87
  /** Header name. */
131
88
  name?: string;
132
89
  }
133
- export const HttpHeader = /*@__PURE__*/ S.suspend(() =>
134
- S.Struct({
135
- exactMatch: S.optional(S.String),
136
- name: S.optional(S.String),
137
- }),
138
- ).annotate({ identifier: "HttpHeader" }) as any as S.Schema<HttpHeader>;
139
-
140
90
  /** Headers for the rule. */
141
91
  export type RuleHeadersList = Array<HttpHeader>;
142
- export const RuleHeadersList = /*@__PURE__*/ S.Array(
143
- HttpHeader,
144
- ) as any as S.Schema<RuleHeadersList>;
145
-
146
92
  /** Path match. Optional. Contains either an exact or prefix match. If not set, defaults to root path '/' of prefix type. Cannot be set if 'path_prefix' is used. Prefer using this field over 'path_prefix'. */
147
93
  export interface Path {
148
94
  /** Exact path match. Only a request path exactly equal to the value will match, e.g. '/foo' matches only '/foo', not '/foo/bar' or '/foobar'. */
@@ -150,32 +96,14 @@ export interface Path {
150
96
  /** Prefix path match. Only matches on full segment boundaries, e.g. '/foo' matches '/foo' and '/foo/bar' but NOT '/foobar'. */
151
97
  prefix?: string;
152
98
  }
153
- export const Path = /*@__PURE__*/ S.suspend(() =>
154
- S.Struct({
155
- exactMatch: S.optional(S.String),
156
- prefix: S.optional(S.String),
157
- }),
158
- ).annotate({ identifier: "Path" }) as any as S.Schema<Path>;
159
-
160
99
  export interface QueryParameter {
161
100
  /** Exact match for the parameter value. */
162
101
  exactMatch?: string;
163
102
  /** Parameter name. */
164
103
  name?: string;
165
104
  }
166
- export const QueryParameter = /*@__PURE__*/ S.suspend(() =>
167
- S.Struct({
168
- exactMatch: S.optional(S.String),
169
- name: S.optional(S.String),
170
- }),
171
- ).annotate({ identifier: "QueryParameter" }) as any as S.Schema<QueryParameter>;
172
-
173
105
  /** Query parameters for the rule. */
174
106
  export type RuleQueryParametersList = Array<QueryParameter>;
175
- export const RuleQueryParametersList = /*@__PURE__*/ S.Array(
176
- QueryParameter,
177
- ) as any as S.Schema<RuleQueryParametersList>;
178
-
179
107
  export interface Rule {
180
108
  cookiePersistence?: CookiePersistence;
181
109
  /** Headers for the rule. */
@@ -188,84 +116,34 @@ export interface Rule {
188
116
  /** If enabled, when client sends an HTTP request with and Upgrade header, indicating the desire to establish a Websocket connection, if backend server supports WebSocket, it responds with HTTP 101 status code, switching protocols from HTTP to WebSocket. Hence the client and the server can exchange data in real-time using one long-lived TCP connection. */
189
117
  webSocket?: boolean;
190
118
  }
191
- export const Rule = /*@__PURE__*/ S.suspend(() =>
192
- S.Struct({
193
- cookiePersistence: S.optional(CookiePersistence),
194
- headers: S.optional(RuleHeadersList),
195
- path: S.optional(Path),
196
- queryParameters: S.optional(RuleQueryParametersList),
197
- targetPool: S.optional(S.String),
198
- webSocket: S.optional(S.Boolean),
199
- }),
200
- ).annotate({ identifier: "Rule" }) as any as S.Schema<Rule>;
201
-
202
119
  /** Routing rules under the specified host, matched by path prefix. */
203
120
  export type HostConfigRulesList = Array<Rule>;
204
- export const HostConfigRulesList = /*@__PURE__*/ S.Array(
205
- Rule,
206
- ) as any as S.Schema<HostConfigRulesList>;
207
-
208
121
  export interface HostConfig {
209
122
  /** Hostname to match. Supports wildcards (e.g. *.example.com). */
210
123
  host?: string;
211
124
  /** Routing rules under the specified host, matched by path prefix. */
212
125
  rules?: HostConfigRulesList;
213
126
  }
214
- export const HostConfig = /*@__PURE__*/ S.suspend(() =>
215
- S.Struct({
216
- host: S.optional(S.String),
217
- rules: S.optional(HostConfigRulesList),
218
- }),
219
- ).annotate({ identifier: "HostConfig" }) as any as S.Schema<HostConfig>;
220
-
221
127
  /** Defines routing rules grouped by hostname. */
222
128
  export type ProtocolOptionsHTTPHostsList = Array<HostConfig>;
223
- export const ProtocolOptionsHTTPHostsList = /*@__PURE__*/ S.Array(
224
- HostConfig,
225
- ) as any as S.Schema<ProtocolOptionsHTTPHostsList>;
226
-
227
129
  /** Configuration for handling HTTP traffic on this listener. */
228
130
  export interface ProtocolOptionsHTTP {
229
131
  /** Defines routing rules grouped by hostname. */
230
132
  hosts?: ProtocolOptionsHTTPHostsList;
231
133
  }
232
- export const ProtocolOptionsHTTP = /*@__PURE__*/ S.suspend(() =>
233
- S.Struct({
234
- hosts: S.optional(ProtocolOptionsHTTPHostsList),
235
- }),
236
- ).annotate({ identifier: "ProtocolOptionsHTTP" }) as any as S.Schema<ProtocolOptionsHTTP>;
237
-
238
134
  /** Certificate IDs for TLS termination. */
239
135
  export type CertificateConfigCertificateIdsList = Array<string>;
240
- export const CertificateConfigCertificateIdsList = /*@__PURE__*/ S.Array(
241
- S.String,
242
- ) as any as S.Schema<CertificateConfigCertificateIdsList>;
243
-
244
136
  /** TLS termination certificate configuration. */
245
137
  export interface CertificateConfig {
246
138
  /** Certificate IDs for TLS termination. */
247
139
  certificateIds?: CertificateConfigCertificateIdsList;
248
140
  }
249
- export const CertificateConfig = /*@__PURE__*/ S.suspend(() =>
250
- S.Struct({
251
- certificateIds: S.optional(CertificateConfigCertificateIdsList),
252
- }),
253
- ).annotate({ identifier: "CertificateConfig" }) as any as S.Schema<CertificateConfig>;
254
-
255
141
  /** Configuration for handling HTTPS traffic on this listener. */
256
142
  export interface ProtocolOptionsHTTPS {
257
143
  certificateConfig?: CertificateConfig;
258
144
  }
259
- export const ProtocolOptionsHTTPS = /*@__PURE__*/ S.suspend(() =>
260
- S.Struct({
261
- certificateConfig: S.optional(CertificateConfig),
262
- }),
263
- ).annotate({ identifier: "ProtocolOptionsHTTPS" }) as any as S.Schema<ProtocolOptionsHTTPS>;
264
-
265
145
  /** Protocol is the highest network protocol we understand to load balance. Currently PROTOCOL_HTTP and PROTOCOL_HTTPS are supported. */
266
146
  export type ListenerProtocol = "PROTOCOL_UNSPECIFIED" | "PROTOCOL_HTTP" | "PROTOCOL_HTTPS";
267
- export const ListenerProtocol = S.String;
268
-
269
147
  export interface Listener {
270
148
  http?: ProtocolOptionsHTTP;
271
149
  https?: ProtocolOptionsHTTPS;
@@ -278,56 +156,24 @@ export interface Listener {
278
156
  /** Enable Web Application Firewall (WAF), referenced by name. See "Application Load Balancer - Web Application Firewall API" for more information. */
279
157
  wafConfigName?: string;
280
158
  }
281
- export const Listener = /*@__PURE__*/ S.suspend(() =>
282
- S.Struct({
283
- http: S.optional(ProtocolOptionsHTTP),
284
- https: S.optional(ProtocolOptionsHTTPS),
285
- name: S.optional(S.String),
286
- port: S.optional(S.Number),
287
- protocol: S.optional(ListenerProtocol),
288
- wafConfigName: S.optional(S.String),
289
- }),
290
- ).annotate({ identifier: "Listener" }) as any as S.Schema<Listener>;
291
-
292
159
  /** There is a maximum listener count of 20. */
293
160
  export type CreateLoadBalancerRequestListenersList = Array<Listener>;
294
- export const CreateLoadBalancerRequestListenersList = /*@__PURE__*/ S.Array(
295
- Listener,
296
- ) as any as S.Schema<CreateLoadBalancerRequestListenersList>;
297
-
298
161
  /** The role defines how the Application Load Balancer is using the network. Currently only ROLE_LISTENERS_AND_TARGETS is supported. */
299
162
  export type NetworkRole =
300
163
  | "ROLE_UNSPECIFIED"
301
164
  | "ROLE_LISTENERS_AND_TARGETS"
302
165
  | "ROLE_LISTENERS"
303
166
  | "ROLE_TARGETS";
304
- export const NetworkRole = S.String;
305
-
306
167
  export interface Network {
307
168
  /** STACKIT network ID the Application Load Balancer and/or targets are in. */
308
169
  networkId?: string;
309
170
  /** The role defines how the Application Load Balancer is using the network. Currently only ROLE_LISTENERS_AND_TARGETS is supported. */
310
171
  role?: NetworkRole | (string & {});
311
172
  }
312
- export const Network = /*@__PURE__*/ S.suspend(() =>
313
- S.Struct({
314
- networkId: S.optional(S.String),
315
- role: S.optional(NetworkRole),
316
- }),
317
- ).annotate({ identifier: "Network" }) as any as S.Schema<Network>;
318
-
319
173
  /** List of networks that listeners and targets reside in. Currently limited to one. Not changeable after creation. */
320
174
  export type CreateLoadBalancerRequestNetworksList = Array<Network>;
321
- export const CreateLoadBalancerRequestNetworksList = /*@__PURE__*/ S.Array(
322
- Network,
323
- ) as any as S.Schema<CreateLoadBalancerRequestNetworksList>;
324
-
325
175
  /** Application Load Balancer is accessible only from an IP address in this range. May be combined with `ipBlockListName`; `allowedSourceRanges` is evaluated first, then `ipBlockListName`. */
326
176
  export type LoadbalancerOptionAccessControlAllowedSourceRangesList = Array<string>;
327
- export const LoadbalancerOptionAccessControlAllowedSourceRangesList = /*@__PURE__*/ S.Array(
328
- S.String,
329
- ) as any as S.Schema<LoadbalancerOptionAccessControlAllowedSourceRangesList>;
330
-
331
177
  /** 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. */
332
178
  export interface LoadbalancerOptionAccessControl {
333
179
  /** Application Load Balancer is accessible only from an IP address in this range. May be combined with `ipBlockListName`; `allowedSourceRanges` is evaluated first, then `ipBlockListName`. */
@@ -335,15 +181,6 @@ export interface LoadbalancerOptionAccessControl {
335
181
  /** Reference to an IP block list by name. Traffic originating from any IP in the referenced list is denied access to the Application Load Balancer. See "IP Lists API" for how to manage IP block lists. May be combined with `allowedSourceRanges`; `allowedSourceRanges` is evaluated first, then `ipBlockListName`. */
336
182
  ipBlockListName?: string;
337
183
  }
338
- export const LoadbalancerOptionAccessControl = /*@__PURE__*/ S.suspend(() =>
339
- S.Struct({
340
- allowedSourceRanges: S.optional(LoadbalancerOptionAccessControlAllowedSourceRangesList),
341
- ipBlockListName: S.optional(S.String),
342
- }),
343
- ).annotate({
344
- identifier: "LoadbalancerOptionAccessControl",
345
- }) as any as S.Schema<LoadbalancerOptionAccessControl>;
346
-
347
184
  /** Observability logs configuration. */
348
185
  export interface LoadbalancerOptionLogs {
349
186
  /** Credentials reference for logging. This reference is created via the observability create endpoint and the credential needs to contain the basic auth username and password for the logging solution the push URL points to. Then this enables monitoring via remote write for the Application Load Balancer. */
@@ -351,13 +188,6 @@ export interface LoadbalancerOptionLogs {
351
188
  /** The Observability(Logs)/Loki remote write Push URL you want the logs to be shipped to. */
352
189
  pushUrl?: string;
353
190
  }
354
- export const LoadbalancerOptionLogs = /*@__PURE__*/ S.suspend(() =>
355
- S.Struct({
356
- credentialsRef: S.optional(S.String),
357
- pushUrl: S.optional(S.String),
358
- }),
359
- ).annotate({ identifier: "LoadbalancerOptionLogs" }) as any as S.Schema<LoadbalancerOptionLogs>;
360
-
361
191
  /** Observability metrics configuration. */
362
192
  export interface LoadbalancerOptionMetrics {
363
193
  /** Credentials reference for metrics. This reference is created via the observability create endpoint and the credential needs to contain the basic auth username and password for the metrics solution the push URL points to. Then this enables monitoring via remote write for the Application Load Balancer. */
@@ -365,29 +195,11 @@ export interface LoadbalancerOptionMetrics {
365
195
  /** The Observability(Metrics)/Prometheus remote write push URL you want the metrics to be shipped to. */
366
196
  pushUrl?: string;
367
197
  }
368
- export const LoadbalancerOptionMetrics = /*@__PURE__*/ S.suspend(() =>
369
- S.Struct({
370
- credentialsRef: S.optional(S.String),
371
- pushUrl: S.optional(S.String),
372
- }),
373
- ).annotate({
374
- identifier: "LoadbalancerOptionMetrics",
375
- }) as any as S.Schema<LoadbalancerOptionMetrics>;
376
-
377
198
  /** We offer Load Balancer observability via STACKIT Observability or external solutions. */
378
199
  export interface LoadbalancerOptionObservability {
379
200
  logs?: LoadbalancerOptionLogs;
380
201
  metrics?: LoadbalancerOptionMetrics;
381
202
  }
382
- export const LoadbalancerOptionObservability = /*@__PURE__*/ S.suspend(() =>
383
- S.Struct({
384
- logs: S.optional(LoadbalancerOptionLogs),
385
- metrics: S.optional(LoadbalancerOptionMetrics),
386
- }),
387
- ).annotate({
388
- identifier: "LoadbalancerOptionObservability",
389
- }) as any as S.Schema<LoadbalancerOptionObservability>;
390
-
391
203
  /** Defines any optional functionality you want to have enabled on your Application Load Balancer. */
392
204
  export interface LoadBalancerOptions {
393
205
  accessControl?: LoadbalancerOptionAccessControl;
@@ -397,21 +209,8 @@ export interface LoadBalancerOptions {
397
209
  /** Application Load Balancer is accessible only via a private network ip address. Not changeable after creation. */
398
210
  privateNetworkOnly?: boolean;
399
211
  }
400
- export const LoadBalancerOptions = /*@__PURE__*/ S.suspend(() =>
401
- S.Struct({
402
- accessControl: S.optional(LoadbalancerOptionAccessControl),
403
- ephemeralAddress: S.optional(S.Boolean),
404
- observability: S.optional(LoadbalancerOptionObservability),
405
- privateNetworkOnly: S.optional(S.Boolean),
406
- }),
407
- ).annotate({ identifier: "LoadBalancerOptions" }) as any as S.Schema<LoadBalancerOptions>;
408
-
409
212
  /** List of HTTP status codes that indicate a healthy response */
410
213
  export type HttpHealthChecksOkStatusesList = Array<string>;
411
- export const HttpHealthChecksOkStatusesList = /*@__PURE__*/ S.Array(
412
- S.String,
413
- ) as any as S.Schema<HttpHealthChecksOkStatusesList>;
414
-
415
214
  /** Set this to configure TLS settings. */
416
215
  export interface TlsConfig {
417
216
  /** Specifies a custom Certificate Authority (CA). When provided, the target pool will trust certificates signed by this CA, in addition to any system-trusted CAs. This is useful for scenarios where the target pool needs to communicate with servers using self-signed or internally-issued certificates. Enabled needs to be set to true and skip validation to false for this option. */
@@ -421,14 +220,6 @@ export interface TlsConfig {
421
220
  /** Bypass certificate validation for TLS bridging in this target pool. This option is insecure and can only be used with public CAs by setting enabled true. Meant to be used for testing purposes only! */
422
221
  skipCertificateValidation?: boolean;
423
222
  }
424
- export const TlsConfig = /*@__PURE__*/ S.suspend(() =>
425
- S.Struct({
426
- customCa: S.optional(S.String),
427
- enabled: S.optional(S.Boolean),
428
- skipCertificateValidation: S.optional(S.Boolean),
429
- }),
430
- ).annotate({ identifier: "TlsConfig" }) as any as S.Schema<TlsConfig>;
431
-
432
223
  /** Options for the HTTP health checking. */
433
224
  export interface HttpHealthChecks {
434
225
  /** List of HTTP status codes that indicate a healthy response */
@@ -437,14 +228,6 @@ export interface HttpHealthChecks {
437
228
  path?: string;
438
229
  tls?: TlsConfig;
439
230
  }
440
- export const HttpHealthChecks = /*@__PURE__*/ S.suspend(() =>
441
- S.Struct({
442
- okStatuses: S.optional(HttpHealthChecksOkStatusesList),
443
- path: S.optional(S.String),
444
- tls: S.optional(TlsConfig),
445
- }),
446
- ).annotate({ identifier: "HttpHealthChecks" }) as any as S.Schema<HttpHealthChecks>;
447
-
448
231
  /** Set this to customize active health checks for targets in this pool. */
449
232
  export interface ActiveHealthCheck {
450
233
  /** Overrides the default port used for health check probes. */
@@ -461,37 +244,14 @@ export interface ActiveHealthCheck {
461
244
  /** Unhealthy threshold of the health checking */
462
245
  unhealthyThreshold?: number;
463
246
  }
464
- export const ActiveHealthCheck = /*@__PURE__*/ S.suspend(() =>
465
- S.Struct({
466
- altPort: S.optional(S.Number),
467
- healthyThreshold: S.optional(S.Number),
468
- httpHealthChecks: S.optional(HttpHealthChecks),
469
- interval: S.optional(S.String),
470
- intervalJitter: S.optional(S.String),
471
- timeout: S.optional(S.String),
472
- unhealthyThreshold: S.optional(S.Number),
473
- }),
474
- ).annotate({ identifier: "ActiveHealthCheck" }) as any as S.Schema<ActiveHealthCheck>;
475
-
476
247
  export interface Target {
477
248
  /** Target display name. */
478
249
  displayName?: string;
479
250
  /** Private target IP, which must by unique within a target pool. */
480
251
  ip?: string;
481
252
  }
482
- export const Target = /*@__PURE__*/ S.suspend(() =>
483
- S.Struct({
484
- displayName: S.optional(S.String),
485
- ip: S.optional(S.String),
486
- }),
487
- ).annotate({ identifier: "Target" }) as any as S.Schema<Target>;
488
-
489
253
  /** List of all targets which will be used in the pool. Limited to 250. */
490
254
  export type TargetPoolTargetsList = Array<Target>;
491
- export const TargetPoolTargetsList = /*@__PURE__*/ S.Array(
492
- Target,
493
- ) as any as S.Schema<TargetPoolTargetsList>;
494
-
495
255
  export interface TargetPool {
496
256
  activeHealthCheck?: ActiveHealthCheck;
497
257
  /** Target pool name */
@@ -502,22 +262,8 @@ export interface TargetPool {
502
262
  targets?: TargetPoolTargetsList;
503
263
  tlsConfig?: TlsConfig;
504
264
  }
505
- export const TargetPool = /*@__PURE__*/ S.suspend(() =>
506
- S.Struct({
507
- activeHealthCheck: S.optional(ActiveHealthCheck),
508
- name: S.optional(S.String),
509
- targetPort: S.optional(S.Number),
510
- targets: S.optional(TargetPoolTargetsList),
511
- tlsConfig: S.optional(TlsConfig),
512
- }),
513
- ).annotate({ identifier: "TargetPool" }) as any as S.Schema<TargetPool>;
514
-
515
265
  /** List of all target pools which will be used in the Application Load Balancer. Limited to 20. */
516
266
  export type CreateLoadBalancerRequestTargetPoolsList = Array<TargetPool>;
517
- export const CreateLoadBalancerRequestTargetPoolsList = /*@__PURE__*/ S.Array(
518
- TargetPool,
519
- ) as any as S.Schema<CreateLoadBalancerRequestTargetPoolsList>;
520
-
521
267
  export interface CreateLoadBalancerRequest {
522
268
  projectId: string;
523
269
  region: string;
@@ -539,31 +285,6 @@ export interface CreateLoadBalancerRequest {
539
285
  /** List of all target pools which will be used in the Application Load Balancer. Limited to 20. */
540
286
  targetPools?: CreateLoadBalancerRequestTargetPoolsList;
541
287
  }
542
- export const CreateLoadBalancerRequest = /*@__PURE__*/ S.suspend(() =>
543
- S.Struct({
544
- projectId: S.String.pipe(T.Label()),
545
- region: S.String.pipe(T.Label()),
546
- disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
547
- externalAddress: S.optional(S.String),
548
- labels: S.optional(CreateLoadBalancerRequestLabelsMap),
549
- listeners: S.optional(CreateLoadBalancerRequestListenersList),
550
- name: S.optional(S.String),
551
- networks: S.optional(CreateLoadBalancerRequestNetworksList),
552
- options: S.optional(LoadBalancerOptions),
553
- planId: S.optional(S.String),
554
- targetPools: S.optional(CreateLoadBalancerRequestTargetPoolsList),
555
- }).pipe(
556
- T.Http({
557
- method: "POST",
558
- uri: "/v2/projects/{projectId}/regions/{region}/load-balancers",
559
- code: 200,
560
- baseUrl: "https://alb.api.stackit.cloud",
561
- }),
562
- ),
563
- ).annotate({
564
- identifier: "CreateLoadBalancerRequest",
565
- }) as any as S.Schema<CreateLoadBalancerRequest>;
566
-
567
288
  /** The error type specifies which part of the Application Load Balancer encountered the error. I.e. the API will not check if a provided public IP is actually available in the project. Instead the Application Load Balancer with try to use the provided IP and if not available reports TYPE_FIP_NOT_CONFIGURED error. */
568
289
  export type LoadBalancerErrorType =
569
290
  | "TYPE_UNSPECIFIED"
@@ -579,73 +300,34 @@ export type LoadBalancerErrorType =
579
300
  | "TYPE_IP_EXHAUSTED"
580
301
  | "TYPE_DNS_NOT_CONFIGURED"
581
302
  | "TYPE_VM_PORT_NOT_CONFIGURED";
582
- export const LoadBalancerErrorType = S.String;
583
-
584
303
  export interface LoadBalancerError {
585
304
  /** 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. */
586
305
  description?: string;
587
306
  /** The error type specifies which part of the Application Load Balancer encountered the error. I.e. the API will not check if a provided public IP is actually available in the project. Instead the Application Load Balancer with try to use the provided IP and if not available reports TYPE_FIP_NOT_CONFIGURED error. */
588
307
  type?: LoadBalancerErrorType;
589
308
  }
590
- export const LoadBalancerError = /*@__PURE__*/ S.suspend(() =>
591
- S.Struct({
592
- description: S.optional(S.String),
593
- type: S.optional(LoadBalancerErrorType),
594
- }),
595
- ).annotate({ identifier: "LoadBalancerError" }) as any as S.Schema<LoadBalancerError>;
596
-
597
309
  /** Reports all errors a Application Load Balancer has. */
598
310
  export type LoadBalancerErrorsList = Array<LoadBalancerError>;
599
- export const LoadBalancerErrorsList = /*@__PURE__*/ S.Array(
600
- LoadBalancerError,
601
- ) as any as S.Schema<LoadBalancerErrorsList>;
602
-
603
311
  /** 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. */
604
312
  export type LoadBalancerLabelsMap = { [key: string]: string | undefined };
605
- export const LoadBalancerLabelsMap = /*@__PURE__*/ S.Record(
606
- S.String,
607
- S.String,
608
- ) as any as S.Schema<LoadBalancerLabelsMap>;
609
-
610
313
  /** There is a maximum listener count of 20. */
611
314
  export type LoadBalancerListenersList = Array<Listener>;
612
- export const LoadBalancerListenersList = /*@__PURE__*/ S.Array(
613
- Listener,
614
- ) as any as S.Schema<LoadBalancerListenersList>;
615
-
616
315
  export interface SecurityGroup {
617
316
  /** ID of the security Group */
618
317
  id?: string;
619
318
  /** Name of the security Group */
620
319
  name?: string;
621
320
  }
622
- export const SecurityGroup = /*@__PURE__*/ S.suspend(() =>
623
- S.Struct({
624
- id: S.optional(S.String),
625
- name: S.optional(S.String),
626
- }),
627
- ).annotate({ identifier: "SecurityGroup" }) as any as S.Schema<SecurityGroup>;
628
-
629
321
  /** List of networks that listeners and targets reside in. Currently limited to one. Not changeable after creation. */
630
322
  export type LoadBalancerNetworksList = Array<Network>;
631
- export const LoadBalancerNetworksList = /*@__PURE__*/ S.Array(
632
- Network,
633
- ) as any as S.Schema<LoadBalancerNetworksList>;
634
-
635
323
  export type LoadBalancerStatus =
636
324
  | "STATUS_UNSPECIFIED"
637
325
  | "STATUS_PENDING"
638
326
  | "STATUS_READY"
639
327
  | "STATUS_ERROR"
640
328
  | "STATUS_TERMINATING";
641
- export const LoadBalancerStatus = S.String;
642
-
643
329
  /** List of all target pools which will be used in the Application Load Balancer. Limited to 20. */
644
330
  export type LoadBalancerTargetPoolsList = Array<TargetPool>;
645
- export const LoadBalancerTargetPoolsList = /*@__PURE__*/ S.Array(
646
- TargetPool,
647
- ) as any as S.Schema<LoadBalancerTargetPoolsList>;
648
-
649
331
  export interface LoadBalancer {
650
332
  /** Disable target security group assignemt to allow targets outside of the given network. Connectivity to targets need to be ensured by the customer, including routing and Security Groups (targetSecurityGroup can be assigned). Not changeable after creation. */
651
333
  disableTargetSecurityGroupAssignment?: boolean;
@@ -678,150 +360,35 @@ export interface LoadBalancer {
678
360
  /** Application Load Balancer resource version. Must be empty or unset for creating Application Load Balancers, non-empty for updating. Semantics: While retrieving, this is the current version of this Application Load Balancer resource that changes during updates. On updates this field specified the Application Load Balancer version you calculated your update for instead of the future version to enable concurrency safe updates. Update calls will then report the new version in their result as you would see with a Application Load Balancer retrieval call later. There exist no total order of the version, so you can only compare it for equality, but not for less/greater than another version. Since the creation of Application Load Balancer is always intended to create the first version of it, there should be no existing version. That's why this field must by empty of not present in that case. */
679
361
  version?: string;
680
362
  }
681
- export const LoadBalancer = /*@__PURE__*/ S.suspend(() =>
682
- S.Struct({
683
- disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
684
- errors: S.optional(LoadBalancerErrorsList),
685
- externalAddress: S.optional(S.String),
686
- labels: S.optional(LoadBalancerLabelsMap),
687
- listeners: S.optional(LoadBalancerListenersList),
688
- loadBalancerSecurityGroup: S.optional(SecurityGroup),
689
- name: S.optional(S.String),
690
- networks: S.optional(LoadBalancerNetworksList),
691
- options: S.optional(LoadBalancerOptions),
692
- planId: S.optional(S.String),
693
- privateAddress: S.optional(S.String),
694
- region: S.optional(S.String),
695
- status: S.optional(LoadBalancerStatus),
696
- targetPools: S.optional(LoadBalancerTargetPoolsList),
697
- targetSecurityGroup: S.optional(SecurityGroup),
698
- version: S.optional(S.String),
699
- }),
700
- ).annotate({ identifier: "LoadBalancer" }) as any as S.Schema<LoadBalancer>;
701
-
702
363
  export interface DeleteCredentialsRequest {
703
364
  projectId: string;
704
365
  region: string;
705
366
  credentialsRef: string;
706
367
  }
707
- export const DeleteCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
708
- S.Struct({
709
- projectId: S.String.pipe(T.Label()),
710
- region: S.String.pipe(T.Label()),
711
- credentialsRef: S.String.pipe(T.Label()),
712
- }).pipe(
713
- T.Http({
714
- method: "DELETE",
715
- uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
716
- code: 200,
717
- baseUrl: "https://alb.api.stackit.cloud",
718
- }),
719
- ),
720
- ).annotate({ identifier: "DeleteCredentialsRequest" }) as any as S.Schema<DeleteCredentialsRequest>;
721
-
722
368
  export type DeleteCredentialsResponse2 = unknown;
723
- export const DeleteCredentialsResponse2 = /*@__PURE__*/ S.suspend(() =>
724
- S.Unknown.pipe(T.RawResponseRoot()),
725
- ).annotate({
726
- identifier: "DeleteCredentialsResponse2",
727
- }) as any as S.Schema<DeleteCredentialsResponse2>;
728
-
729
369
  export interface DeleteLoadBalancerRequest {
730
370
  projectId: string;
731
371
  region: string;
732
372
  name: string;
733
373
  }
734
- export const DeleteLoadBalancerRequest = /*@__PURE__*/ S.suspend(() =>
735
- S.Struct({
736
- projectId: S.String.pipe(T.Label()),
737
- region: S.String.pipe(T.Label()),
738
- name: S.String.pipe(T.Label()),
739
- }).pipe(
740
- T.Http({
741
- method: "DELETE",
742
- uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
743
- code: 200,
744
- baseUrl: "https://alb.api.stackit.cloud",
745
- }),
746
- ),
747
- ).annotate({
748
- identifier: "DeleteLoadBalancerRequest",
749
- }) as any as S.Schema<DeleteLoadBalancerRequest>;
750
-
751
374
  export type DeleteLoadBalancerResponse2 = unknown;
752
- export const DeleteLoadBalancerResponse2 = /*@__PURE__*/ S.suspend(() =>
753
- S.Unknown.pipe(T.RawResponseRoot()),
754
- ).annotate({
755
- identifier: "DeleteLoadBalancerResponse2",
756
- }) as any as S.Schema<DeleteLoadBalancerResponse2>;
757
-
758
375
  export interface GetCredentialsRequest {
759
376
  projectId: string;
760
377
  region: string;
761
378
  credentialsRef: string;
762
379
  }
763
- export const GetCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
764
- S.Struct({
765
- projectId: S.String.pipe(T.Label()),
766
- region: S.String.pipe(T.Label()),
767
- credentialsRef: S.String.pipe(T.Label()),
768
- }).pipe(
769
- T.Http({
770
- method: "GET",
771
- uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
772
- code: 200,
773
- baseUrl: "https://alb.api.stackit.cloud",
774
- }),
775
- ),
776
- ).annotate({ identifier: "GetCredentialsRequest" }) as any as S.Schema<GetCredentialsRequest>;
777
-
778
380
  export interface GetCredentialsResponse {
779
381
  credential?: CredentialsResponse;
780
382
  }
781
- export const GetCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
782
- S.Struct({
783
- credential: S.optional(CredentialsResponse),
784
- }),
785
- ).annotate({ identifier: "GetCredentialsResponse" }) as any as S.Schema<GetCredentialsResponse>;
786
-
787
383
  export interface GetLoadBalancerRequest {
788
384
  projectId: string;
789
385
  region: string;
790
386
  name: string;
791
387
  }
792
- export const GetLoadBalancerRequest = /*@__PURE__*/ S.suspend(() =>
793
- S.Struct({
794
- projectId: S.String.pipe(T.Label()),
795
- region: S.String.pipe(T.Label()),
796
- name: S.String.pipe(T.Label()),
797
- }).pipe(
798
- T.Http({
799
- method: "GET",
800
- uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
801
- code: 200,
802
- baseUrl: "https://alb.api.stackit.cloud",
803
- }),
804
- ),
805
- ).annotate({ identifier: "GetLoadBalancerRequest" }) as any as S.Schema<GetLoadBalancerRequest>;
806
-
807
388
  export interface GetQuotaRequest {
808
389
  projectId: string;
809
390
  region: string;
810
391
  }
811
- export const GetQuotaRequest = /*@__PURE__*/ S.suspend(() =>
812
- S.Struct({
813
- projectId: S.String.pipe(T.Label()),
814
- region: S.String.pipe(T.Label()),
815
- }).pipe(
816
- T.Http({
817
- method: "GET",
818
- uri: "/v2/projects/{projectId}/regions/{region}/quota",
819
- code: 200,
820
- baseUrl: "https://alb.api.stackit.cloud",
821
- }),
822
- ),
823
- ).annotate({ identifier: "GetQuotaRequest" }) as any as S.Schema<GetQuotaRequest>;
824
-
825
392
  export interface GetQuotaResponse {
826
393
  /** The maximum number of observability credentials that can be stored in this project. */
827
394
  maxCredentials?: number;
@@ -836,49 +403,14 @@ export interface GetQuotaResponse {
836
403
  /** The number of load balancing servers that are currently existing in this project. */
837
404
  usedLoadBalancers?: number;
838
405
  }
839
- export const GetQuotaResponse = /*@__PURE__*/ S.suspend(() =>
840
- S.Struct({
841
- maxCredentials: S.optional(S.Number),
842
- maxLoadBalancers: S.optional(S.Number),
843
- projectId: S.optional(S.String),
844
- region: S.optional(S.String),
845
- usedCredentials: S.optional(S.Number),
846
- usedLoadBalancers: S.optional(S.Number),
847
- }),
848
- ).annotate({ identifier: "GetQuotaResponse" }) as any as S.Schema<GetQuotaResponse>;
849
-
850
406
  export interface ListCredentialsRequest {
851
407
  projectId: string;
852
408
  region: string;
853
409
  }
854
- export const ListCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
855
- S.Struct({
856
- projectId: S.String.pipe(T.Label()),
857
- region: S.String.pipe(T.Label()),
858
- }).pipe(
859
- T.Http({
860
- method: "GET",
861
- uri: "/v2/projects/{projectId}/regions/{region}/credentials",
862
- code: 200,
863
- baseUrl: "https://alb.api.stackit.cloud",
864
- }),
865
- ),
866
- ).annotate({ identifier: "ListCredentialsRequest" }) as any as S.Schema<ListCredentialsRequest>;
867
-
868
410
  export type ListCredentialsResponseCredentialsList = Array<CredentialsResponse>;
869
- export const ListCredentialsResponseCredentialsList = /*@__PURE__*/ S.Array(
870
- CredentialsResponse,
871
- ) as any as S.Schema<ListCredentialsResponseCredentialsList>;
872
-
873
411
  export interface ListCredentialsResponse {
874
412
  credentials?: ListCredentialsResponseCredentialsList;
875
413
  }
876
- export const ListCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
877
- S.Struct({
878
- credentials: S.optional(ListCredentialsResponseCredentialsList),
879
- }),
880
- ).annotate({ identifier: "ListCredentialsResponse" }) as any as S.Schema<ListCredentialsResponse>;
881
-
882
414
  export interface ListLoadBalancersRequest {
883
415
  projectId: string;
884
416
  region: string;
@@ -887,57 +419,15 @@ export interface ListLoadBalancersRequest {
887
419
  /** page_id is a page identifier returned by the previous response and is used to request the next page */
888
420
  pageId?: string;
889
421
  }
890
- export const ListLoadBalancersRequest = /*@__PURE__*/ S.suspend(() =>
891
- S.Struct({
892
- projectId: S.String.pipe(T.Label()),
893
- region: S.String.pipe(T.Label()),
894
- pageSize: S.optional(S.String.pipe(T.Query())),
895
- pageId: S.optional(S.String.pipe(T.Query())),
896
- }).pipe(
897
- T.Http({
898
- method: "GET",
899
- uri: "/v2/projects/{projectId}/regions/{region}/load-balancers",
900
- code: 200,
901
- baseUrl: "https://alb.api.stackit.cloud",
902
- }),
903
- ),
904
- ).annotate({ identifier: "ListLoadBalancersRequest" }) as any as S.Schema<ListLoadBalancersRequest>;
905
-
906
422
  export type ListLoadBalancersResponseLoadBalancersList = Array<LoadBalancer>;
907
- export const ListLoadBalancersResponseLoadBalancersList = /*@__PURE__*/ S.Array(
908
- LoadBalancer,
909
- ) as any as S.Schema<ListLoadBalancersResponseLoadBalancersList>;
910
-
911
423
  export interface ListLoadBalancersResponse {
912
424
  loadBalancers?: ListLoadBalancersResponseLoadBalancersList;
913
425
  /** Continue token from the ListLoadBalancerResponse with Limit option */
914
426
  nextPageId?: string;
915
427
  }
916
- export const ListLoadBalancersResponse = /*@__PURE__*/ S.suspend(() =>
917
- S.Struct({
918
- loadBalancers: S.optional(ListLoadBalancersResponseLoadBalancersList),
919
- nextPageId: S.optional(S.String),
920
- }),
921
- ).annotate({
922
- identifier: "ListLoadBalancersResponse",
923
- }) as any as S.Schema<ListLoadBalancersResponse>;
924
-
925
428
  export interface ListPlansRequest {
926
429
  region: string;
927
430
  }
928
- export const ListPlansRequest = /*@__PURE__*/ S.suspend(() =>
929
- S.Struct({
930
- region: S.String.pipe(T.Label()),
931
- }).pipe(
932
- T.Http({
933
- method: "GET",
934
- uri: "/v2/regions/{region}/plans",
935
- code: 200,
936
- baseUrl: "https://alb.api.stackit.cloud",
937
- }),
938
- ),
939
- ).annotate({ identifier: "ListPlansRequest" }) as any as S.Schema<ListPlansRequest>;
940
-
941
431
  export interface PlanDetails {
942
432
  /** Description */
943
433
  description?: string;
@@ -952,33 +442,12 @@ export interface PlanDetails {
952
442
  /** Region this Plan is available in */
953
443
  region?: string;
954
444
  }
955
- export const PlanDetails = /*@__PURE__*/ S.suspend(() =>
956
- S.Struct({
957
- description: S.optional(S.String),
958
- flavorName: S.optional(S.String),
959
- maxConnections: S.optional(S.Number),
960
- name: S.optional(S.String),
961
- planId: S.optional(S.String),
962
- region: S.optional(S.String),
963
- }),
964
- ).annotate({ identifier: "PlanDetails" }) as any as S.Schema<PlanDetails>;
965
-
966
445
  /** List of available service plans. */
967
446
  export type ListPlansResponseValidPlansList = Array<PlanDetails>;
968
- export const ListPlansResponseValidPlansList = /*@__PURE__*/ S.Array(
969
- PlanDetails,
970
- ) as any as S.Schema<ListPlansResponseValidPlansList>;
971
-
972
447
  export interface ListPlansResponse {
973
448
  /** List of available service plans. */
974
449
  validPlans?: ListPlansResponseValidPlansList;
975
450
  }
976
- export const ListPlansResponse = /*@__PURE__*/ S.suspend(() =>
977
- S.Struct({
978
- validPlans: S.optional(ListPlansResponseValidPlansList),
979
- }),
980
- ).annotate({ identifier: "ListPlansResponse" }) as any as S.Schema<ListPlansResponse>;
981
-
982
451
  export interface UpdateCredentialsRequest {
983
452
  projectId: string;
984
453
  region: string;
@@ -990,60 +459,17 @@ export interface UpdateCredentialsRequest {
990
459
  /** A valid username used for an existing STACKIT Observability instance, which is used during basic auth. */
991
460
  username?: string;
992
461
  }
993
- export const UpdateCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
994
- S.Struct({
995
- projectId: S.String.pipe(T.Label()),
996
- region: S.String.pipe(T.Label()),
997
- credentialsRef: S.String.pipe(T.Label()),
998
- displayName: S.optional(S.String),
999
- password: S.optional(S.String.pipe(T.SensitiveValue({}))),
1000
- username: S.optional(S.String),
1001
- }).pipe(
1002
- T.Http({
1003
- method: "PUT",
1004
- uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
1005
- code: 200,
1006
- baseUrl: "https://alb.api.stackit.cloud",
1007
- }),
1008
- ),
1009
- ).annotate({ identifier: "UpdateCredentialsRequest" }) as any as S.Schema<UpdateCredentialsRequest>;
1010
-
1011
462
  export interface UpdateCredentialsResponse {
1012
463
  credential?: CredentialsResponse;
1013
464
  }
1014
- export const UpdateCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
1015
- S.Struct({
1016
- credential: S.optional(CredentialsResponse),
1017
- }),
1018
- ).annotate({
1019
- identifier: "UpdateCredentialsResponse",
1020
- }) as any as S.Schema<UpdateCredentialsResponse>;
1021
-
1022
465
  /** 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. */
1023
466
  export type UpdateLoadBalancerRequestLabelsMap = { [key: string]: string | undefined };
1024
- export const UpdateLoadBalancerRequestLabelsMap = /*@__PURE__*/ S.Record(
1025
- S.String,
1026
- S.String,
1027
- ) as any as S.Schema<UpdateLoadBalancerRequestLabelsMap>;
1028
-
1029
467
  /** There is a maximum listener count of 20. */
1030
468
  export type UpdateLoadBalancerRequestListenersList = Array<Listener>;
1031
- export const UpdateLoadBalancerRequestListenersList = /*@__PURE__*/ S.Array(
1032
- Listener,
1033
- ) as any as S.Schema<UpdateLoadBalancerRequestListenersList>;
1034
-
1035
469
  /** List of networks that listeners and targets reside in. Currently limited to one. Not changeable after creation. */
1036
470
  export type UpdateLoadBalancerRequestNetworksList = Array<Network>;
1037
- export const UpdateLoadBalancerRequestNetworksList = /*@__PURE__*/ S.Array(
1038
- Network,
1039
- ) as any as S.Schema<UpdateLoadBalancerRequestNetworksList>;
1040
-
1041
471
  /** List of all target pools which will be used in the Application Load Balancer. Limited to 20. */
1042
472
  export type UpdateLoadBalancerRequestTargetPoolsList = Array<TargetPool>;
1043
- export const UpdateLoadBalancerRequestTargetPoolsList = /*@__PURE__*/ S.Array(
1044
- TargetPool,
1045
- ) as any as S.Schema<UpdateLoadBalancerRequestTargetPoolsList>;
1046
-
1047
473
  export interface UpdateLoadBalancerRequest {
1048
474
  projectId: string;
1049
475
  region: string;
@@ -1066,38 +492,8 @@ export interface UpdateLoadBalancerRequest {
1066
492
  /** Application Load Balancer resource version. Must be empty or unset for creating Application Load Balancers, non-empty for updating. Semantics: While retrieving, this is the current version of this Application Load Balancer resource that changes during updates. On updates this field specified the Application Load Balancer version you calculated your update for instead of the future version to enable concurrency safe updates. Update calls will then report the new version in their result as you would see with a Application Load Balancer retrieval call later. There exist no total order of the version, so you can only compare it for equality, but not for less/greater than another version. Since the creation of Application Load Balancer is always intended to create the first version of it, there should be no existing version. That's why this field must by empty of not present in that case. */
1067
493
  version?: string;
1068
494
  }
1069
- export const UpdateLoadBalancerRequest = /*@__PURE__*/ S.suspend(() =>
1070
- S.Struct({
1071
- projectId: S.String.pipe(T.Label()),
1072
- region: S.String.pipe(T.Label()),
1073
- name: S.String.pipe(T.Label()),
1074
- disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
1075
- externalAddress: S.optional(S.String),
1076
- labels: S.optional(UpdateLoadBalancerRequestLabelsMap),
1077
- listeners: S.optional(UpdateLoadBalancerRequestListenersList),
1078
- networks: S.optional(UpdateLoadBalancerRequestNetworksList),
1079
- options: S.optional(LoadBalancerOptions),
1080
- planId: S.optional(S.String),
1081
- targetPools: S.optional(UpdateLoadBalancerRequestTargetPoolsList),
1082
- version: S.optional(S.String),
1083
- }).pipe(
1084
- T.Http({
1085
- method: "PUT",
1086
- uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
1087
- code: 200,
1088
- baseUrl: "https://alb.api.stackit.cloud",
1089
- }),
1090
- ),
1091
- ).annotate({
1092
- identifier: "UpdateLoadBalancerRequest",
1093
- }) as any as S.Schema<UpdateLoadBalancerRequest>;
1094
-
1095
495
  /** List of all targets which will be used in the pool. Limited to 250. */
1096
496
  export type UpdateTargetPoolRequestTargetsList = Array<Target>;
1097
- export const UpdateTargetPoolRequestTargetsList = /*@__PURE__*/ S.Array(
1098
- Target,
1099
- ) as any as S.Schema<UpdateTargetPoolRequestTargetsList>;
1100
-
1101
497
  export interface UpdateTargetPoolRequest {
1102
498
  projectId: string;
1103
499
  region: string;
@@ -1110,26 +506,6 @@ export interface UpdateTargetPoolRequest {
1110
506
  targets?: UpdateTargetPoolRequestTargetsList;
1111
507
  tlsConfig?: TlsConfig;
1112
508
  }
1113
- export const UpdateTargetPoolRequest = /*@__PURE__*/ S.suspend(() =>
1114
- S.Struct({
1115
- projectId: S.String.pipe(T.Label()),
1116
- region: S.String.pipe(T.Label()),
1117
- name: S.String.pipe(T.Label()),
1118
- targetPoolName: S.String.pipe(T.Label()),
1119
- activeHealthCheck: S.optional(ActiveHealthCheck),
1120
- targetPort: S.optional(S.Number),
1121
- targets: S.optional(UpdateTargetPoolRequestTargetsList),
1122
- tlsConfig: S.optional(TlsConfig),
1123
- }).pipe(
1124
- T.Http({
1125
- method: "PUT",
1126
- uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}/target-pools/{targetPoolName}",
1127
- code: 200,
1128
- baseUrl: "https://alb.api.stackit.cloud",
1129
- }),
1130
- ),
1131
- ).annotate({ identifier: "UpdateTargetPoolRequest" }) as any as S.Schema<UpdateTargetPoolRequest>;
1132
-
1133
509
  export type CreateCredentialsError = BadRequest | Forbidden | StackitOpError;
1134
510
  /** 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. */
1135
511
  export const createCredentials: API.OperationMethod<
@@ -1138,8 +514,8 @@ export const createCredentials: API.OperationMethod<
1138
514
  CreateCredentialsError,
1139
515
  StackitOpContext
1140
516
  > = /*@__PURE__*/ API.make(() => ({
1141
- input: CreateCredentialsRequest,
1142
- output: CreateCredentialsResponse,
517
+ input: __S(224, __c7, 0) as any as S.Schema<CreateCredentialsRequest>,
518
+ output: __S(288, __c9, 0) as any as S.Schema<CreateCredentialsResponse>,
1143
519
  errors: [BadRequest, Forbidden, UnknownStackitError],
1144
520
  protocol: StackitProtocol,
1145
521
  retry: Retry.Retry,
@@ -1153,8 +529,8 @@ export const createLoadBalancer: API.OperationMethod<
1153
529
  CreateLoadBalancerError,
1154
530
  StackitOpContext
1155
531
  > = /*@__PURE__*/ API.make(() => ({
1156
- input: CreateLoadBalancerRequest,
1157
- output: LoadBalancer,
532
+ input: __S(320, __c10, 0) as any as S.Schema<CreateLoadBalancerRequest>,
533
+ output: __S(376, __c11, 24) as any as S.Schema<LoadBalancer>,
1158
534
  errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
1159
535
  protocol: StackitProtocol,
1160
536
  retry: Retry.Retry,
@@ -1168,8 +544,8 @@ export const deleteCredentials: API.OperationMethod<
1168
544
  DeleteCredentialsError,
1169
545
  StackitOpContext
1170
546
  > = /*@__PURE__*/ API.make(() => ({
1171
- input: DeleteCredentialsRequest,
1172
- output: DeleteCredentialsResponse2,
547
+ input: __S(416, __c13, 0) as any as S.Schema<DeleteCredentialsRequest>,
548
+ output: __S(448, __c14, 0) as any as S.Schema<DeleteCredentialsResponse2>,
1173
549
  errors: [BadRequest, Forbidden, UnknownStackitError],
1174
550
  protocol: StackitProtocol,
1175
551
  retry: Retry.Retry,
@@ -1183,8 +559,8 @@ export const deleteLoadBalancer: API.OperationMethod<
1183
559
  DeleteLoadBalancerError,
1184
560
  StackitOpContext
1185
561
  > = /*@__PURE__*/ API.make(() => ({
1186
- input: DeleteLoadBalancerRequest,
1187
- output: DeleteLoadBalancerResponse2,
562
+ input: __S(480, __c15, 0) as any as S.Schema<DeleteLoadBalancerRequest>,
563
+ output: __S(448, __c14, 0) as any as S.Schema<DeleteLoadBalancerResponse2>,
1188
564
  errors: [BadRequest, Forbidden, UnknownStackitError],
1189
565
  protocol: StackitProtocol,
1190
566
  retry: Retry.Retry,
@@ -1198,8 +574,8 @@ export const getCredentials: API.OperationMethod<
1198
574
  GetCredentialsError,
1199
575
  StackitOpContext
1200
576
  > = /*@__PURE__*/ API.make(() => ({
1201
- input: GetCredentialsRequest,
1202
- output: GetCredentialsResponse,
577
+ input: __S(512, __c16, 0) as any as S.Schema<GetCredentialsRequest>,
578
+ output: __S(288, __c9, 0) as any as S.Schema<GetCredentialsResponse>,
1203
579
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1204
580
  protocol: StackitProtocol,
1205
581
  retry: Retry.Retry,
@@ -1213,8 +589,8 @@ export const getLoadBalancer: API.OperationMethod<
1213
589
  GetLoadBalancerError,
1214
590
  StackitOpContext
1215
591
  > = /*@__PURE__*/ API.make(() => ({
1216
- input: GetLoadBalancerRequest,
1217
- output: LoadBalancer,
592
+ input: __S(544, __c17, 0) as any as S.Schema<GetLoadBalancerRequest>,
593
+ output: __S(376, __c11, 24) as any as S.Schema<LoadBalancer>,
1218
594
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1219
595
  protocol: StackitProtocol,
1220
596
  retry: Retry.Retry,
@@ -1228,8 +604,8 @@ export const getQuota: API.OperationMethod<
1228
604
  GetQuotaError,
1229
605
  StackitOpContext
1230
606
  > = /*@__PURE__*/ API.make(() => ({
1231
- input: GetQuotaRequest,
1232
- output: GetQuotaResponse,
607
+ input: __S(0, __c0, 0) as any as S.Schema<GetQuotaRequest>,
608
+ output: __S(1, __c0, 1) as any as S.Schema<GetQuotaResponse>,
1233
609
  errors: [BadRequest, Forbidden, UnknownStackitError],
1234
610
  protocol: StackitProtocol,
1235
611
  retry: Retry.Retry,
@@ -1243,8 +619,8 @@ export const listCredentials: API.OperationMethod<
1243
619
  ListCredentialsError,
1244
620
  StackitOpContext
1245
621
  > = /*@__PURE__*/ API.make(() => ({
1246
- input: ListCredentialsRequest,
1247
- output: ListCredentialsResponse,
622
+ input: __S(32, __c1, 0) as any as S.Schema<ListCredentialsRequest>,
623
+ output: __S(34, __c1, 2) as any as S.Schema<ListCredentialsResponse>,
1248
624
  errors: [BadRequest, Forbidden, UnknownStackitError],
1249
625
  protocol: StackitProtocol,
1250
626
  retry: Retry.Retry,
@@ -1258,8 +634,8 @@ export const listLoadBalancers: API.OperationMethod<
1258
634
  ListLoadBalancersError,
1259
635
  StackitOpContext
1260
636
  > = /*@__PURE__*/ API.make(() => ({
1261
- input: ListLoadBalancersRequest,
1262
- output: ListLoadBalancersResponse,
637
+ input: __S(64, __c2, 0) as any as S.Schema<ListLoadBalancersRequest>,
638
+ output: __S(66, __c2, 2) as any as S.Schema<ListLoadBalancersResponse>,
1263
639
  errors: [BadRequest, Forbidden, UnknownStackitError],
1264
640
  protocol: StackitProtocol,
1265
641
  retry: Retry.Retry,
@@ -1273,8 +649,8 @@ export const listPlans: API.OperationMethod<
1273
649
  ListPlansError,
1274
650
  StackitOpContext
1275
651
  > = /*@__PURE__*/ API.make(() => ({
1276
- input: ListPlansRequest,
1277
- output: ListPlansResponse,
652
+ input: __S(96, __c3, 0) as any as S.Schema<ListPlansRequest>,
653
+ output: __S(99, __c3, 3) as any as S.Schema<ListPlansResponse>,
1278
654
  errors: [BadRequest, Forbidden, UnknownStackitError],
1279
655
  protocol: StackitProtocol,
1280
656
  retry: Retry.Retry,
@@ -1288,8 +664,8 @@ export const updateCredentials: API.OperationMethod<
1288
664
  UpdateCredentialsError,
1289
665
  StackitOpContext
1290
666
  > = /*@__PURE__*/ API.make(() => ({
1291
- input: UpdateCredentialsRequest,
1292
- output: UpdateCredentialsResponse,
667
+ input: __S(128, __c4, 0) as any as S.Schema<UpdateCredentialsRequest>,
668
+ output: __S(288, __c9, 0) as any as S.Schema<UpdateCredentialsResponse>,
1293
669
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1294
670
  protocol: StackitProtocol,
1295
671
  retry: Retry.Retry,
@@ -1303,8 +679,8 @@ export const updateLoadBalancer: API.OperationMethod<
1303
679
  UpdateLoadBalancerError,
1304
680
  StackitOpContext
1305
681
  > = /*@__PURE__*/ API.make(() => ({
1306
- input: UpdateLoadBalancerRequest,
1307
- output: LoadBalancer,
682
+ input: __S(160, __c5, 0) as any as S.Schema<UpdateLoadBalancerRequest>,
683
+ output: __S(376, __c11, 24) as any as S.Schema<LoadBalancer>,
1308
684
  errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
1309
685
  protocol: StackitProtocol,
1310
686
  retry: Retry.Retry,
@@ -1318,9 +694,577 @@ export const updateTargetPool: API.OperationMethod<
1318
694
  UpdateTargetPoolError,
1319
695
  StackitOpContext
1320
696
  > = /*@__PURE__*/ API.make(() => ({
1321
- input: UpdateTargetPoolRequest,
1322
- output: TargetPool,
697
+ input: __S(192, __c6, 0) as any as S.Schema<UpdateTargetPoolRequest>,
698
+ output: __S(390, __c12, 6) as any as S.Schema<TargetPool>,
1323
699
  errors: [BadRequest, Forbidden, UnknownStackitError],
1324
700
  protocol: StackitProtocol,
1325
701
  retry: Retry.Retry,
1326
702
  }));
703
+
704
+ // Schema builders: each runs one schema initializer, on that schema's first use.
705
+ function __c0(j: number): any {
706
+ switch (j) {
707
+ case 0:
708
+ return S.suspend(() =>
709
+ S.Struct({
710
+ projectId: S.String.pipe(T.Label()),
711
+ region: S.String.pipe(T.Label()),
712
+ }).pipe(
713
+ T.Http({
714
+ method: "GET",
715
+ uri: "/v2/projects/{projectId}/regions/{region}/quota",
716
+ code: 200,
717
+ baseUrl: "https://alb.api.stackit.cloud",
718
+ }),
719
+ ),
720
+ ).annotate({ identifier: "GetQuotaRequest" });
721
+ case 1:
722
+ return S.suspend(() =>
723
+ S.Struct({
724
+ maxCredentials: S.optional(S.Number),
725
+ maxLoadBalancers: S.optional(S.Number),
726
+ projectId: S.optional(S.String),
727
+ region: S.optional(S.String),
728
+ usedCredentials: S.optional(S.Number),
729
+ usedLoadBalancers: S.optional(S.Number),
730
+ }),
731
+ ).annotate({ identifier: "GetQuotaResponse" });
732
+ }
733
+ }
734
+ function __c1(j: number): any {
735
+ switch (j) {
736
+ case 0:
737
+ return S.suspend(() =>
738
+ S.Struct({
739
+ projectId: S.String.pipe(T.Label()),
740
+ region: S.String.pipe(T.Label()),
741
+ }).pipe(
742
+ T.Http({
743
+ method: "GET",
744
+ uri: "/v2/projects/{projectId}/regions/{region}/credentials",
745
+ code: 200,
746
+ baseUrl: "https://alb.api.stackit.cloud",
747
+ }),
748
+ ),
749
+ ).annotate({ identifier: "ListCredentialsRequest" });
750
+ case 1:
751
+ return S.Array(__S(256, __c8, 0));
752
+ case 2:
753
+ return S.suspend(() =>
754
+ S.Struct({
755
+ credentials: S.optional(__S(33, __c1, 1)),
756
+ }),
757
+ ).annotate({ identifier: "ListCredentialsResponse" });
758
+ }
759
+ }
760
+ function __c2(j: number): any {
761
+ switch (j) {
762
+ case 0:
763
+ return S.suspend(() =>
764
+ S.Struct({
765
+ projectId: S.String.pipe(T.Label()),
766
+ region: S.String.pipe(T.Label()),
767
+ pageSize: S.optional(S.String.pipe(T.Query())),
768
+ pageId: S.optional(S.String.pipe(T.Query())),
769
+ }).pipe(
770
+ T.Http({
771
+ method: "GET",
772
+ uri: "/v2/projects/{projectId}/regions/{region}/load-balancers",
773
+ code: 200,
774
+ baseUrl: "https://alb.api.stackit.cloud",
775
+ }),
776
+ ),
777
+ ).annotate({ identifier: "ListLoadBalancersRequest" });
778
+ case 1:
779
+ return S.Array(__S(376, __c11, 24));
780
+ case 2:
781
+ return S.suspend(() =>
782
+ S.Struct({
783
+ loadBalancers: S.optional(__S(65, __c2, 1)),
784
+ nextPageId: S.optional(S.String),
785
+ }),
786
+ ).annotate({ identifier: "ListLoadBalancersResponse" });
787
+ }
788
+ }
789
+ function __c3(j: number): any {
790
+ switch (j) {
791
+ case 0:
792
+ return S.suspend(() =>
793
+ S.Struct({
794
+ region: S.String.pipe(T.Label()),
795
+ }).pipe(
796
+ T.Http({
797
+ method: "GET",
798
+ uri: "/v2/regions/{region}/plans",
799
+ code: 200,
800
+ baseUrl: "https://alb.api.stackit.cloud",
801
+ }),
802
+ ),
803
+ ).annotate({ identifier: "ListPlansRequest" });
804
+ case 1:
805
+ return S.suspend(() =>
806
+ S.Struct({
807
+ description: S.optional(S.String),
808
+ flavorName: S.optional(S.String),
809
+ maxConnections: S.optional(S.Number),
810
+ name: S.optional(S.String),
811
+ planId: S.optional(S.String),
812
+ region: S.optional(S.String),
813
+ }),
814
+ ).annotate({ identifier: "PlanDetails" });
815
+ case 2:
816
+ return S.Array(__S(97, __c3, 1));
817
+ case 3:
818
+ return S.suspend(() =>
819
+ S.Struct({
820
+ validPlans: S.optional(__S(98, __c3, 2)),
821
+ }),
822
+ ).annotate({ identifier: "ListPlansResponse" });
823
+ }
824
+ }
825
+ function __c4(j: number): any {
826
+ switch (j) {
827
+ case 0:
828
+ return S.suspend(() =>
829
+ S.Struct({
830
+ projectId: S.String.pipe(T.Label()),
831
+ region: S.String.pipe(T.Label()),
832
+ credentialsRef: S.String.pipe(T.Label()),
833
+ displayName: S.optional(S.String),
834
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
835
+ username: S.optional(S.String),
836
+ }).pipe(
837
+ T.Http({
838
+ method: "PUT",
839
+ uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
840
+ code: 200,
841
+ baseUrl: "https://alb.api.stackit.cloud",
842
+ }),
843
+ ),
844
+ ).annotate({ identifier: "UpdateCredentialsRequest" });
845
+ }
846
+ }
847
+ function __c5(j: number): any {
848
+ switch (j) {
849
+ case 0:
850
+ return S.suspend(() =>
851
+ S.Struct({
852
+ projectId: S.String.pipe(T.Label()),
853
+ region: S.String.pipe(T.Label()),
854
+ name: S.String.pipe(T.Label()),
855
+ disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
856
+ externalAddress: S.optional(S.String),
857
+ labels: S.optional(__S(352, __c11, 0)),
858
+ listeners: S.optional(__S(365, __c11, 13)),
859
+ networks: S.optional(__S(367, __c11, 15)),
860
+ options: S.optional(__S(371, __c11, 19)),
861
+ planId: S.optional(S.String),
862
+ targetPools: S.optional(__S(372, __c11, 20)),
863
+ version: S.optional(S.String),
864
+ }).pipe(
865
+ T.Http({
866
+ method: "PUT",
867
+ uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
868
+ code: 200,
869
+ baseUrl: "https://alb.api.stackit.cloud",
870
+ }),
871
+ ),
872
+ ).annotate({ identifier: "UpdateLoadBalancerRequest" });
873
+ }
874
+ }
875
+ function __c6(j: number): any {
876
+ switch (j) {
877
+ case 0:
878
+ return S.suspend(() =>
879
+ S.Struct({
880
+ projectId: S.String.pipe(T.Label()),
881
+ region: S.String.pipe(T.Label()),
882
+ name: S.String.pipe(T.Label()),
883
+ targetPoolName: S.String.pipe(T.Label()),
884
+ activeHealthCheck: S.optional(__S(387, __c12, 3)),
885
+ targetPort: S.optional(S.Number),
886
+ targets: S.optional(__S(389, __c12, 5)),
887
+ tlsConfig: S.optional(__S(385, __c12, 1)),
888
+ }).pipe(
889
+ T.Http({
890
+ method: "PUT",
891
+ uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}/target-pools/{targetPoolName}",
892
+ code: 200,
893
+ baseUrl: "https://alb.api.stackit.cloud",
894
+ }),
895
+ ),
896
+ ).annotate({ identifier: "UpdateTargetPoolRequest" });
897
+ }
898
+ }
899
+ function __c7(j: number): any {
900
+ switch (j) {
901
+ case 0:
902
+ return S.suspend(() =>
903
+ S.Struct({
904
+ projectId: S.String.pipe(T.Label()),
905
+ region: S.String.pipe(T.Label()),
906
+ displayName: S.optional(S.String),
907
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
908
+ username: S.optional(S.String),
909
+ }).pipe(
910
+ T.Http({
911
+ method: "POST",
912
+ uri: "/v2/projects/{projectId}/regions/{region}/credentials",
913
+ code: 200,
914
+ baseUrl: "https://alb.api.stackit.cloud",
915
+ }),
916
+ ),
917
+ ).annotate({ identifier: "CreateCredentialsRequest" });
918
+ }
919
+ }
920
+ function __c8(j: number): any {
921
+ switch (j) {
922
+ case 0:
923
+ return S.suspend(() =>
924
+ S.Struct({
925
+ credentialsRef: S.optional(S.String),
926
+ displayName: S.optional(S.String),
927
+ region: S.optional(S.String),
928
+ username: S.optional(S.String),
929
+ }),
930
+ ).annotate({ identifier: "CredentialsResponse" });
931
+ }
932
+ }
933
+ function __c9(j: number): any {
934
+ switch (j) {
935
+ case 0:
936
+ return S.suspend(() =>
937
+ S.Struct({
938
+ credential: S.optional(__S(256, __c8, 0)),
939
+ }),
940
+ ).annotate({ identifier: "CreateCredentialsResponse" });
941
+ }
942
+ }
943
+ function __c10(j: number): any {
944
+ switch (j) {
945
+ case 0:
946
+ return S.suspend(() =>
947
+ S.Struct({
948
+ projectId: S.String.pipe(T.Label()),
949
+ region: S.String.pipe(T.Label()),
950
+ disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
951
+ externalAddress: S.optional(S.String),
952
+ labels: S.optional(__S(352, __c11, 0)),
953
+ listeners: S.optional(__S(365, __c11, 13)),
954
+ name: S.optional(S.String),
955
+ networks: S.optional(__S(367, __c11, 15)),
956
+ options: S.optional(__S(371, __c11, 19)),
957
+ planId: S.optional(S.String),
958
+ targetPools: S.optional(__S(372, __c11, 20)),
959
+ }).pipe(
960
+ T.Http({
961
+ method: "POST",
962
+ uri: "/v2/projects/{projectId}/regions/{region}/load-balancers",
963
+ code: 200,
964
+ baseUrl: "https://alb.api.stackit.cloud",
965
+ }),
966
+ ),
967
+ ).annotate({ identifier: "CreateLoadBalancerRequest" });
968
+ }
969
+ }
970
+ function __c11(j: number): any {
971
+ switch (j) {
972
+ case 0:
973
+ return S.Record(S.String, S.String);
974
+ case 1:
975
+ return S.suspend(() =>
976
+ S.Struct({
977
+ name: S.optional(S.String),
978
+ ttl: S.optional(S.String),
979
+ }),
980
+ ).annotate({ identifier: "CookiePersistence" });
981
+ case 2:
982
+ return S.suspend(() =>
983
+ S.Struct({
984
+ exactMatch: S.optional(S.String),
985
+ name: S.optional(S.String),
986
+ }),
987
+ ).annotate({ identifier: "HttpHeader" });
988
+ case 3:
989
+ return S.Array(__S(354, __c11, 2));
990
+ case 4:
991
+ return S.suspend(() =>
992
+ S.Struct({
993
+ exactMatch: S.optional(S.String),
994
+ prefix: S.optional(S.String),
995
+ }),
996
+ ).annotate({ identifier: "Path" });
997
+ case 5:
998
+ return S.suspend(() =>
999
+ S.Struct({
1000
+ cookiePersistence: S.optional(__S(353, __c11, 1)),
1001
+ headers: S.optional(__S(355, __c11, 3)),
1002
+ path: S.optional(__S(356, __c11, 4)),
1003
+ queryParameters: S.optional(__S(355, __c11, 3)),
1004
+ targetPool: S.optional(S.String),
1005
+ webSocket: S.optional(S.Boolean),
1006
+ }),
1007
+ ).annotate({ identifier: "Rule" });
1008
+ case 6:
1009
+ return S.Array(__S(357, __c11, 5));
1010
+ case 7:
1011
+ return S.suspend(() =>
1012
+ S.Struct({
1013
+ host: S.optional(S.String),
1014
+ rules: S.optional(__S(358, __c11, 6)),
1015
+ }),
1016
+ ).annotate({ identifier: "HostConfig" });
1017
+ case 8:
1018
+ return S.Array(__S(359, __c11, 7));
1019
+ case 9:
1020
+ return S.suspend(() =>
1021
+ S.Struct({
1022
+ hosts: S.optional(__S(360, __c11, 8)),
1023
+ }),
1024
+ ).annotate({ identifier: "ProtocolOptionsHTTP" });
1025
+ case 10:
1026
+ return S.suspend(() =>
1027
+ S.Struct({
1028
+ certificateIds: S.optional(__S(384, __c12, 0)),
1029
+ }),
1030
+ ).annotate({ identifier: "CertificateConfig" });
1031
+ case 11:
1032
+ return S.suspend(() =>
1033
+ S.Struct({
1034
+ certificateConfig: S.optional(__S(362, __c11, 10)),
1035
+ }),
1036
+ ).annotate({ identifier: "ProtocolOptionsHTTPS" });
1037
+ case 12:
1038
+ return S.suspend(() =>
1039
+ S.Struct({
1040
+ http: S.optional(__S(361, __c11, 9)),
1041
+ https: S.optional(__S(363, __c11, 11)),
1042
+ name: S.optional(S.String),
1043
+ port: S.optional(S.Number),
1044
+ protocol: S.optional(S.String),
1045
+ wafConfigName: S.optional(S.String),
1046
+ }),
1047
+ ).annotate({ identifier: "Listener" });
1048
+ case 13:
1049
+ return S.Array(__S(364, __c11, 12));
1050
+ case 14:
1051
+ return S.suspend(() =>
1052
+ S.Struct({
1053
+ networkId: S.optional(S.String),
1054
+ role: S.optional(S.String),
1055
+ }),
1056
+ ).annotate({ identifier: "Network" });
1057
+ case 15:
1058
+ return S.Array(__S(366, __c11, 14));
1059
+ case 16:
1060
+ return S.suspend(() =>
1061
+ S.Struct({
1062
+ allowedSourceRanges: S.optional(__S(384, __c12, 0)),
1063
+ ipBlockListName: S.optional(S.String),
1064
+ }),
1065
+ ).annotate({ identifier: "LoadbalancerOptionAccessControl" });
1066
+ case 17:
1067
+ return S.suspend(() =>
1068
+ S.Struct({
1069
+ credentialsRef: S.optional(S.String),
1070
+ pushUrl: S.optional(S.String),
1071
+ }),
1072
+ ).annotate({ identifier: "LoadbalancerOptionLogs" });
1073
+ case 18:
1074
+ return S.suspend(() =>
1075
+ S.Struct({
1076
+ logs: S.optional(__S(369, __c11, 17)),
1077
+ metrics: S.optional(__S(369, __c11, 17)),
1078
+ }),
1079
+ ).annotate({ identifier: "LoadbalancerOptionObservability" });
1080
+ case 19:
1081
+ return S.suspend(() =>
1082
+ S.Struct({
1083
+ accessControl: S.optional(__S(368, __c11, 16)),
1084
+ ephemeralAddress: S.optional(S.Boolean),
1085
+ observability: S.optional(__S(370, __c11, 18)),
1086
+ privateNetworkOnly: S.optional(S.Boolean),
1087
+ }),
1088
+ ).annotate({ identifier: "LoadBalancerOptions" });
1089
+ case 20:
1090
+ return S.Array(__S(390, __c12, 6));
1091
+ case 21:
1092
+ return S.suspend(() =>
1093
+ S.Struct({
1094
+ description: S.optional(S.String),
1095
+ type: S.optional(S.String),
1096
+ }),
1097
+ ).annotate({ identifier: "LoadBalancerError" });
1098
+ case 22:
1099
+ return S.Array(__S(373, __c11, 21));
1100
+ case 23:
1101
+ return S.suspend(() =>
1102
+ S.Struct({
1103
+ id: S.optional(S.String),
1104
+ name: S.optional(S.String),
1105
+ }),
1106
+ ).annotate({ identifier: "SecurityGroup" });
1107
+ case 24:
1108
+ return S.suspend(() =>
1109
+ S.Struct({
1110
+ disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
1111
+ errors: S.optional(__S(374, __c11, 22)),
1112
+ externalAddress: S.optional(S.String),
1113
+ labels: S.optional(__S(352, __c11, 0)),
1114
+ listeners: S.optional(__S(365, __c11, 13)),
1115
+ loadBalancerSecurityGroup: S.optional(__S(375, __c11, 23)),
1116
+ name: S.optional(S.String),
1117
+ networks: S.optional(__S(367, __c11, 15)),
1118
+ options: S.optional(__S(371, __c11, 19)),
1119
+ planId: S.optional(S.String),
1120
+ privateAddress: S.optional(S.String),
1121
+ region: S.optional(S.String),
1122
+ status: S.optional(S.String),
1123
+ targetPools: S.optional(__S(372, __c11, 20)),
1124
+ targetSecurityGroup: S.optional(__S(375, __c11, 23)),
1125
+ version: S.optional(S.String),
1126
+ }),
1127
+ ).annotate({ identifier: "LoadBalancer" });
1128
+ }
1129
+ }
1130
+ function __c12(j: number): any {
1131
+ switch (j) {
1132
+ case 0:
1133
+ return S.Array(S.String);
1134
+ case 1:
1135
+ return S.suspend(() =>
1136
+ S.Struct({
1137
+ customCa: S.optional(S.String),
1138
+ enabled: S.optional(S.Boolean),
1139
+ skipCertificateValidation: S.optional(S.Boolean),
1140
+ }),
1141
+ ).annotate({ identifier: "TlsConfig" });
1142
+ case 2:
1143
+ return S.suspend(() =>
1144
+ S.Struct({
1145
+ okStatuses: S.optional(__S(384, __c12, 0)),
1146
+ path: S.optional(S.String),
1147
+ tls: S.optional(__S(385, __c12, 1)),
1148
+ }),
1149
+ ).annotate({ identifier: "HttpHealthChecks" });
1150
+ case 3:
1151
+ return S.suspend(() =>
1152
+ S.Struct({
1153
+ altPort: S.optional(S.Number),
1154
+ healthyThreshold: S.optional(S.Number),
1155
+ httpHealthChecks: S.optional(__S(386, __c12, 2)),
1156
+ interval: S.optional(S.String),
1157
+ intervalJitter: S.optional(S.String),
1158
+ timeout: S.optional(S.String),
1159
+ unhealthyThreshold: S.optional(S.Number),
1160
+ }),
1161
+ ).annotate({ identifier: "ActiveHealthCheck" });
1162
+ case 4:
1163
+ return S.suspend(() =>
1164
+ S.Struct({
1165
+ displayName: S.optional(S.String),
1166
+ ip: S.optional(S.String),
1167
+ }),
1168
+ ).annotate({ identifier: "Target" });
1169
+ case 5:
1170
+ return S.Array(__S(388, __c12, 4));
1171
+ case 6:
1172
+ return S.suspend(() =>
1173
+ S.Struct({
1174
+ activeHealthCheck: S.optional(__S(387, __c12, 3)),
1175
+ name: S.optional(S.String),
1176
+ targetPort: S.optional(S.Number),
1177
+ targets: S.optional(__S(389, __c12, 5)),
1178
+ tlsConfig: S.optional(__S(385, __c12, 1)),
1179
+ }),
1180
+ ).annotate({ identifier: "TargetPool" });
1181
+ }
1182
+ }
1183
+ function __c13(j: number): any {
1184
+ switch (j) {
1185
+ case 0:
1186
+ return S.suspend(() =>
1187
+ S.Struct({
1188
+ projectId: S.String.pipe(T.Label()),
1189
+ region: S.String.pipe(T.Label()),
1190
+ credentialsRef: S.String.pipe(T.Label()),
1191
+ }).pipe(
1192
+ T.Http({
1193
+ method: "DELETE",
1194
+ uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
1195
+ code: 200,
1196
+ baseUrl: "https://alb.api.stackit.cloud",
1197
+ }),
1198
+ ),
1199
+ ).annotate({ identifier: "DeleteCredentialsRequest" });
1200
+ }
1201
+ }
1202
+ function __c14(j: number): any {
1203
+ switch (j) {
1204
+ case 0:
1205
+ return S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
1206
+ identifier: "DeleteCredentialsResponse2",
1207
+ });
1208
+ }
1209
+ }
1210
+ function __c15(j: number): any {
1211
+ switch (j) {
1212
+ case 0:
1213
+ return S.suspend(() =>
1214
+ S.Struct({
1215
+ projectId: S.String.pipe(T.Label()),
1216
+ region: S.String.pipe(T.Label()),
1217
+ name: S.String.pipe(T.Label()),
1218
+ }).pipe(
1219
+ T.Http({
1220
+ method: "DELETE",
1221
+ uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
1222
+ code: 200,
1223
+ baseUrl: "https://alb.api.stackit.cloud",
1224
+ }),
1225
+ ),
1226
+ ).annotate({ identifier: "DeleteLoadBalancerRequest" });
1227
+ }
1228
+ }
1229
+ function __c16(j: number): any {
1230
+ switch (j) {
1231
+ case 0:
1232
+ return S.suspend(() =>
1233
+ S.Struct({
1234
+ projectId: S.String.pipe(T.Label()),
1235
+ region: S.String.pipe(T.Label()),
1236
+ credentialsRef: S.String.pipe(T.Label()),
1237
+ }).pipe(
1238
+ T.Http({
1239
+ method: "GET",
1240
+ uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
1241
+ code: 200,
1242
+ baseUrl: "https://alb.api.stackit.cloud",
1243
+ }),
1244
+ ),
1245
+ ).annotate({ identifier: "GetCredentialsRequest" });
1246
+ }
1247
+ }
1248
+ function __c17(j: number): any {
1249
+ switch (j) {
1250
+ case 0:
1251
+ return S.suspend(() =>
1252
+ S.Struct({
1253
+ projectId: S.String.pipe(T.Label()),
1254
+ region: S.String.pipe(T.Label()),
1255
+ name: S.String.pipe(T.Label()),
1256
+ }).pipe(
1257
+ T.Http({
1258
+ method: "GET",
1259
+ uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
1260
+ code: 200,
1261
+ baseUrl: "https://alb.api.stackit.cloud",
1262
+ }),
1263
+ ),
1264
+ ).annotate({ identifier: "GetLoadBalancerRequest" });
1265
+ }
1266
+ }
1267
+ // Schema table: entry i is schema j of builder f, made on first reach.
1268
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1269
+ return (__s[i] ??= __L.at(f, j));
1270
+ }