@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,513 +1,84 @@
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
6
  import { UnknownStackitError } from "../errors.js";
7
7
  import { StackitProtocol } from "../protocol.js";
8
8
  import * as Retry from "../retry.js";
9
9
  import * as T from "../traits.js";
10
- export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
11
- /*@__PURE__*/ S.TaggedError()("BadRequest", {
12
- code: S.Number,
13
- message: S.String,
14
- }).pipe(C.withBadRequestError), [{ status: 400 }]) {
15
- }
16
- export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
17
- /*@__PURE__*/ S.TaggedError()("Conflict", {
18
- code: S.Number,
19
- message: S.String,
20
- }).pipe(C.withConflictError), [{ status: 409 }]) {
21
- }
22
- export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
23
- /*@__PURE__*/ S.TaggedError()("Forbidden", {
24
- code: S.Number,
25
- message: S.String,
26
- }).pipe(C.withAuthError), [{ status: 403 }]) {
27
- }
28
- export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
29
- /*@__PURE__*/ S.TaggedError()("NotFound", {
30
- code: S.Number,
31
- message: S.String,
32
- }).pipe(C.withBadRequestError), [{ status: 404 }]) {
33
- }
34
- export const CreateCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
35
- projectId: S.String.pipe(T.Label()),
36
- region: S.String.pipe(T.Label()),
37
- displayName: S.optional(S.String),
38
- password: S.optional(S.String.pipe(T.SensitiveValue({}))),
39
- username: S.optional(S.String),
40
- }).pipe(T.Http({
41
- method: "POST",
42
- uri: "/v2/projects/{projectId}/regions/{region}/credentials",
43
- code: 200,
44
- baseUrl: "https://alb.api.stackit.cloud",
45
- }))).annotate({ identifier: "CreateCredentialsRequest" });
46
- export const CredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
47
- credentialsRef: S.optional(S.String),
48
- displayName: S.optional(S.String),
49
- region: S.optional(S.String),
50
- username: S.optional(S.String),
51
- })).annotate({ identifier: "CredentialsResponse" });
52
- export const CreateCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
53
- credential: S.optional(CredentialsResponse),
54
- })).annotate({
55
- identifier: "CreateCredentialsResponse",
56
- });
57
- export const CreateLoadBalancerRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
58
- export const CookiePersistence = /*@__PURE__*/ S.suspend(() => S.Struct({
59
- name: S.optional(S.String),
60
- ttl: S.optional(S.String),
61
- })).annotate({ identifier: "CookiePersistence" });
62
- export const HttpHeader = /*@__PURE__*/ S.suspend(() => S.Struct({
63
- exactMatch: S.optional(S.String),
64
- name: S.optional(S.String),
65
- })).annotate({ identifier: "HttpHeader" });
66
- export const RuleHeadersList = /*@__PURE__*/ S.Array(HttpHeader);
67
- export const Path = /*@__PURE__*/ S.suspend(() => S.Struct({
68
- exactMatch: S.optional(S.String),
69
- prefix: S.optional(S.String),
70
- })).annotate({ identifier: "Path" });
71
- export const QueryParameter = /*@__PURE__*/ S.suspend(() => S.Struct({
72
- exactMatch: S.optional(S.String),
73
- name: S.optional(S.String),
74
- })).annotate({ identifier: "QueryParameter" });
75
- export const RuleQueryParametersList = /*@__PURE__*/ S.Array(QueryParameter);
76
- export const Rule = /*@__PURE__*/ S.suspend(() => S.Struct({
77
- cookiePersistence: S.optional(CookiePersistence),
78
- headers: S.optional(RuleHeadersList),
79
- path: S.optional(Path),
80
- queryParameters: S.optional(RuleQueryParametersList),
81
- targetPool: S.optional(S.String),
82
- webSocket: S.optional(S.Boolean),
83
- })).annotate({ identifier: "Rule" });
84
- export const HostConfigRulesList = /*@__PURE__*/ S.Array(Rule);
85
- export const HostConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
86
- host: S.optional(S.String),
87
- rules: S.optional(HostConfigRulesList),
88
- })).annotate({ identifier: "HostConfig" });
89
- export const ProtocolOptionsHTTPHostsList = /*@__PURE__*/ S.Array(HostConfig);
90
- export const ProtocolOptionsHTTP = /*@__PURE__*/ S.suspend(() => S.Struct({
91
- hosts: S.optional(ProtocolOptionsHTTPHostsList),
92
- })).annotate({ identifier: "ProtocolOptionsHTTP" });
93
- export const CertificateConfigCertificateIdsList = /*@__PURE__*/ S.Array(S.String);
94
- export const CertificateConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
95
- certificateIds: S.optional(CertificateConfigCertificateIdsList),
96
- })).annotate({ identifier: "CertificateConfig" });
97
- export const ProtocolOptionsHTTPS = /*@__PURE__*/ S.suspend(() => S.Struct({
98
- certificateConfig: S.optional(CertificateConfig),
99
- })).annotate({ identifier: "ProtocolOptionsHTTPS" });
100
- export const ListenerProtocol = S.String;
101
- export const Listener = /*@__PURE__*/ S.suspend(() => S.Struct({
102
- http: S.optional(ProtocolOptionsHTTP),
103
- https: S.optional(ProtocolOptionsHTTPS),
104
- name: S.optional(S.String),
105
- port: S.optional(S.Number),
106
- protocol: S.optional(ListenerProtocol),
107
- wafConfigName: S.optional(S.String),
108
- })).annotate({ identifier: "Listener" });
109
- export const CreateLoadBalancerRequestListenersList = /*@__PURE__*/ S.Array(Listener);
110
- export const NetworkRole = S.String;
111
- export const Network = /*@__PURE__*/ S.suspend(() => S.Struct({
112
- networkId: S.optional(S.String),
113
- role: S.optional(NetworkRole),
114
- })).annotate({ identifier: "Network" });
115
- export const CreateLoadBalancerRequestNetworksList = /*@__PURE__*/ S.Array(Network);
116
- export const LoadbalancerOptionAccessControlAllowedSourceRangesList = /*@__PURE__*/ S.Array(S.String);
117
- export const LoadbalancerOptionAccessControl = /*@__PURE__*/ S.suspend(() => S.Struct({
118
- allowedSourceRanges: S.optional(LoadbalancerOptionAccessControlAllowedSourceRangesList),
119
- ipBlockListName: S.optional(S.String),
120
- })).annotate({
121
- identifier: "LoadbalancerOptionAccessControl",
122
- });
123
- export const LoadbalancerOptionLogs = /*@__PURE__*/ S.suspend(() => S.Struct({
124
- credentialsRef: S.optional(S.String),
125
- pushUrl: S.optional(S.String),
126
- })).annotate({ identifier: "LoadbalancerOptionLogs" });
127
- export const LoadbalancerOptionMetrics = /*@__PURE__*/ S.suspend(() => S.Struct({
128
- credentialsRef: S.optional(S.String),
129
- pushUrl: S.optional(S.String),
130
- })).annotate({
131
- identifier: "LoadbalancerOptionMetrics",
132
- });
133
- export const LoadbalancerOptionObservability = /*@__PURE__*/ S.suspend(() => S.Struct({
134
- logs: S.optional(LoadbalancerOptionLogs),
135
- metrics: S.optional(LoadbalancerOptionMetrics),
136
- })).annotate({
137
- identifier: "LoadbalancerOptionObservability",
138
- });
139
- export const LoadBalancerOptions = /*@__PURE__*/ S.suspend(() => S.Struct({
140
- accessControl: S.optional(LoadbalancerOptionAccessControl),
141
- ephemeralAddress: S.optional(S.Boolean),
142
- observability: S.optional(LoadbalancerOptionObservability),
143
- privateNetworkOnly: S.optional(S.Boolean),
144
- })).annotate({ identifier: "LoadBalancerOptions" });
145
- export const HttpHealthChecksOkStatusesList = /*@__PURE__*/ S.Array(S.String);
146
- export const TlsConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
147
- customCa: S.optional(S.String),
148
- enabled: S.optional(S.Boolean),
149
- skipCertificateValidation: S.optional(S.Boolean),
150
- })).annotate({ identifier: "TlsConfig" });
151
- export const HttpHealthChecks = /*@__PURE__*/ S.suspend(() => S.Struct({
152
- okStatuses: S.optional(HttpHealthChecksOkStatusesList),
153
- path: S.optional(S.String),
154
- tls: S.optional(TlsConfig),
155
- })).annotate({ identifier: "HttpHealthChecks" });
156
- export const ActiveHealthCheck = /*@__PURE__*/ S.suspend(() => S.Struct({
157
- altPort: S.optional(S.Number),
158
- healthyThreshold: S.optional(S.Number),
159
- httpHealthChecks: S.optional(HttpHealthChecks),
160
- interval: S.optional(S.String),
161
- intervalJitter: S.optional(S.String),
162
- timeout: S.optional(S.String),
163
- unhealthyThreshold: S.optional(S.Number),
164
- })).annotate({ identifier: "ActiveHealthCheck" });
165
- export const Target = /*@__PURE__*/ S.suspend(() => S.Struct({
166
- displayName: S.optional(S.String),
167
- ip: S.optional(S.String),
168
- })).annotate({ identifier: "Target" });
169
- export const TargetPoolTargetsList = /*@__PURE__*/ S.Array(Target);
170
- export const TargetPool = /*@__PURE__*/ S.suspend(() => S.Struct({
171
- activeHealthCheck: S.optional(ActiveHealthCheck),
172
- name: S.optional(S.String),
173
- targetPort: S.optional(S.Number),
174
- targets: S.optional(TargetPoolTargetsList),
175
- tlsConfig: S.optional(TlsConfig),
176
- })).annotate({ identifier: "TargetPool" });
177
- export const CreateLoadBalancerRequestTargetPoolsList = /*@__PURE__*/ S.Array(TargetPool);
178
- export const CreateLoadBalancerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
179
- projectId: S.String.pipe(T.Label()),
180
- region: S.String.pipe(T.Label()),
181
- disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
182
- externalAddress: S.optional(S.String),
183
- labels: S.optional(CreateLoadBalancerRequestLabelsMap),
184
- listeners: S.optional(CreateLoadBalancerRequestListenersList),
185
- name: S.optional(S.String),
186
- networks: S.optional(CreateLoadBalancerRequestNetworksList),
187
- options: S.optional(LoadBalancerOptions),
188
- planId: S.optional(S.String),
189
- targetPools: S.optional(CreateLoadBalancerRequestTargetPoolsList),
190
- }).pipe(T.Http({
191
- method: "POST",
192
- uri: "/v2/projects/{projectId}/regions/{region}/load-balancers",
193
- code: 200,
194
- baseUrl: "https://alb.api.stackit.cloud",
195
- }))).annotate({
196
- identifier: "CreateLoadBalancerRequest",
10
+ const __0 = __L.at;
11
+ const __1 = T.Http;
12
+ const __2 = T.Label;
13
+ const __3 = S.String;
14
+ const __4 = S.Struct;
15
+ const __5 = S.suspend;
16
+ const __6 = S.Number;
17
+ const __7 = S.optional;
18
+ const __8 = S.Array;
19
+ const __9 = T.Query;
20
+ const __10 = T.SensitiveValue;
21
+ const __11 = S.Boolean;
22
+ const __12 = S.Record;
23
+ const __13 = T.RawResponseRoot;
24
+ const __14 = S.Unknown;
25
+ const __15 = S.TaggedError;
26
+ const __16 = T.applyErrorMatchers;
27
+ export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
28
+ return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __6, __3, __15, __16]]);
197
29
  });
198
- export const LoadBalancerErrorType = S.String;
199
- export const LoadBalancerError = /*@__PURE__*/ S.suspend(() => S.Struct({
200
- description: S.optional(S.String),
201
- type: S.optional(LoadBalancerErrorType),
202
- })).annotate({ identifier: "LoadBalancerError" });
203
- export const LoadBalancerErrorsList = /*@__PURE__*/ S.Array(LoadBalancerError);
204
- export const LoadBalancerLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
205
- export const LoadBalancerListenersList = /*@__PURE__*/ S.Array(Listener);
206
- export const SecurityGroup = /*@__PURE__*/ S.suspend(() => S.Struct({
207
- id: S.optional(S.String),
208
- name: S.optional(S.String),
209
- })).annotate({ identifier: "SecurityGroup" });
210
- export const LoadBalancerNetworksList = /*@__PURE__*/ S.Array(Network);
211
- export const LoadBalancerStatus = S.String;
212
- export const LoadBalancerTargetPoolsList = /*@__PURE__*/ S.Array(TargetPool);
213
- export const LoadBalancer = /*@__PURE__*/ S.suspend(() => S.Struct({
214
- disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
215
- errors: S.optional(LoadBalancerErrorsList),
216
- externalAddress: S.optional(S.String),
217
- labels: S.optional(LoadBalancerLabelsMap),
218
- listeners: S.optional(LoadBalancerListenersList),
219
- loadBalancerSecurityGroup: S.optional(SecurityGroup),
220
- name: S.optional(S.String),
221
- networks: S.optional(LoadBalancerNetworksList),
222
- options: S.optional(LoadBalancerOptions),
223
- planId: S.optional(S.String),
224
- privateAddress: S.optional(S.String),
225
- region: S.optional(S.String),
226
- status: S.optional(LoadBalancerStatus),
227
- targetPools: S.optional(LoadBalancerTargetPoolsList),
228
- targetSecurityGroup: S.optional(SecurityGroup),
229
- version: S.optional(S.String),
230
- })).annotate({ identifier: "LoadBalancer" });
231
- export const DeleteCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
232
- projectId: S.String.pipe(T.Label()),
233
- region: S.String.pipe(T.Label()),
234
- credentialsRef: S.String.pipe(T.Label()),
235
- }).pipe(T.Http({
236
- method: "DELETE",
237
- uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
238
- code: 200,
239
- baseUrl: "https://alb.api.stackit.cloud",
240
- }))).annotate({ identifier: "DeleteCredentialsRequest" });
241
- export const DeleteCredentialsResponse2 = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
242
- identifier: "DeleteCredentialsResponse2",
30
+ export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
31
+ return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __6, __3, __15, __16]]);
243
32
  });
244
- export const DeleteLoadBalancerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
245
- projectId: S.String.pipe(T.Label()),
246
- region: S.String.pipe(T.Label()),
247
- name: S.String.pipe(T.Label()),
248
- }).pipe(T.Http({
249
- method: "DELETE",
250
- uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
251
- code: 200,
252
- baseUrl: "https://alb.api.stackit.cloud",
253
- }))).annotate({
254
- identifier: "DeleteLoadBalancerRequest",
33
+ export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
34
+ return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __6, __3, __15, __16]]);
255
35
  });
256
- export const DeleteLoadBalancerResponse2 = /*@__PURE__*/ S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
257
- identifier: "DeleteLoadBalancerResponse2",
36
+ export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
37
+ return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __6, __3, __15, __16]]);
258
38
  });
259
- export const GetCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
260
- projectId: S.String.pipe(T.Label()),
261
- region: S.String.pipe(T.Label()),
262
- credentialsRef: S.String.pipe(T.Label()),
263
- }).pipe(T.Http({
264
- method: "GET",
265
- uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
266
- code: 200,
267
- baseUrl: "https://alb.api.stackit.cloud",
268
- }))).annotate({ identifier: "GetCredentialsRequest" });
269
- export const GetCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
270
- credential: S.optional(CredentialsResponse),
271
- })).annotate({ identifier: "GetCredentialsResponse" });
272
- export const GetLoadBalancerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
273
- projectId: S.String.pipe(T.Label()),
274
- region: S.String.pipe(T.Label()),
275
- name: S.String.pipe(T.Label()),
276
- }).pipe(T.Http({
277
- method: "GET",
278
- uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
279
- code: 200,
280
- baseUrl: "https://alb.api.stackit.cloud",
281
- }))).annotate({ identifier: "GetLoadBalancerRequest" });
282
- export const GetQuotaRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
283
- projectId: S.String.pipe(T.Label()),
284
- region: S.String.pipe(T.Label()),
285
- }).pipe(T.Http({
286
- method: "GET",
287
- uri: "/v2/projects/{projectId}/regions/{region}/quota",
288
- code: 200,
289
- baseUrl: "https://alb.api.stackit.cloud",
290
- }))).annotate({ identifier: "GetQuotaRequest" });
291
- export const GetQuotaResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
292
- maxCredentials: S.optional(S.Number),
293
- maxLoadBalancers: S.optional(S.Number),
294
- projectId: S.optional(S.String),
295
- region: S.optional(S.String),
296
- usedCredentials: S.optional(S.Number),
297
- usedLoadBalancers: S.optional(S.Number),
298
- })).annotate({ identifier: "GetQuotaResponse" });
299
- export const ListCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
300
- projectId: S.String.pipe(T.Label()),
301
- region: S.String.pipe(T.Label()),
302
- }).pipe(T.Http({
303
- method: "GET",
304
- uri: "/v2/projects/{projectId}/regions/{region}/credentials",
305
- code: 200,
306
- baseUrl: "https://alb.api.stackit.cloud",
307
- }))).annotate({ identifier: "ListCredentialsRequest" });
308
- export const ListCredentialsResponseCredentialsList = /*@__PURE__*/ S.Array(CredentialsResponse);
309
- export const ListCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
310
- credentials: S.optional(ListCredentialsResponseCredentialsList),
311
- })).annotate({ identifier: "ListCredentialsResponse" });
312
- export const ListLoadBalancersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
313
- projectId: S.String.pipe(T.Label()),
314
- region: S.String.pipe(T.Label()),
315
- pageSize: S.optional(S.String.pipe(T.Query())),
316
- pageId: S.optional(S.String.pipe(T.Query())),
317
- }).pipe(T.Http({
318
- method: "GET",
319
- uri: "/v2/projects/{projectId}/regions/{region}/load-balancers",
320
- code: 200,
321
- baseUrl: "https://alb.api.stackit.cloud",
322
- }))).annotate({ identifier: "ListLoadBalancersRequest" });
323
- export const ListLoadBalancersResponseLoadBalancersList = /*@__PURE__*/ S.Array(LoadBalancer);
324
- export const ListLoadBalancersResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
325
- loadBalancers: S.optional(ListLoadBalancersResponseLoadBalancersList),
326
- nextPageId: S.optional(S.String),
327
- })).annotate({
328
- identifier: "ListLoadBalancersResponse",
329
- });
330
- export const ListPlansRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
331
- region: S.String.pipe(T.Label()),
332
- }).pipe(T.Http({
333
- method: "GET",
334
- uri: "/v2/regions/{region}/plans",
335
- code: 200,
336
- baseUrl: "https://alb.api.stackit.cloud",
337
- }))).annotate({ identifier: "ListPlansRequest" });
338
- export const PlanDetails = /*@__PURE__*/ S.suspend(() => S.Struct({
339
- description: S.optional(S.String),
340
- flavorName: S.optional(S.String),
341
- maxConnections: S.optional(S.Number),
342
- name: S.optional(S.String),
343
- planId: S.optional(S.String),
344
- region: S.optional(S.String),
345
- })).annotate({ identifier: "PlanDetails" });
346
- export const ListPlansResponseValidPlansList = /*@__PURE__*/ S.Array(PlanDetails);
347
- export const ListPlansResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
348
- validPlans: S.optional(ListPlansResponseValidPlansList),
349
- })).annotate({ identifier: "ListPlansResponse" });
350
- export const UpdateCredentialsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
351
- projectId: S.String.pipe(T.Label()),
352
- region: S.String.pipe(T.Label()),
353
- credentialsRef: S.String.pipe(T.Label()),
354
- displayName: S.optional(S.String),
355
- password: S.optional(S.String.pipe(T.SensitiveValue({}))),
356
- username: S.optional(S.String),
357
- }).pipe(T.Http({
358
- method: "PUT",
359
- uri: "/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",
360
- code: 200,
361
- baseUrl: "https://alb.api.stackit.cloud",
362
- }))).annotate({ identifier: "UpdateCredentialsRequest" });
363
- export const UpdateCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
364
- credential: S.optional(CredentialsResponse),
365
- })).annotate({
366
- identifier: "UpdateCredentialsResponse",
367
- });
368
- export const UpdateLoadBalancerRequestLabelsMap = /*@__PURE__*/ S.Record(S.String, S.String);
369
- export const UpdateLoadBalancerRequestListenersList = /*@__PURE__*/ S.Array(Listener);
370
- export const UpdateLoadBalancerRequestNetworksList = /*@__PURE__*/ S.Array(Network);
371
- export const UpdateLoadBalancerRequestTargetPoolsList = /*@__PURE__*/ S.Array(TargetPool);
372
- export const UpdateLoadBalancerRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
373
- projectId: S.String.pipe(T.Label()),
374
- region: S.String.pipe(T.Label()),
375
- name: S.String.pipe(T.Label()),
376
- disableTargetSecurityGroupAssignment: S.optional(S.Boolean),
377
- externalAddress: S.optional(S.String),
378
- labels: S.optional(UpdateLoadBalancerRequestLabelsMap),
379
- listeners: S.optional(UpdateLoadBalancerRequestListenersList),
380
- networks: S.optional(UpdateLoadBalancerRequestNetworksList),
381
- options: S.optional(LoadBalancerOptions),
382
- planId: S.optional(S.String),
383
- targetPools: S.optional(UpdateLoadBalancerRequestTargetPoolsList),
384
- version: S.optional(S.String),
385
- }).pipe(T.Http({
386
- method: "PUT",
387
- uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",
388
- code: 200,
389
- baseUrl: "https://alb.api.stackit.cloud",
390
- }))).annotate({
391
- identifier: "UpdateLoadBalancerRequest",
392
- });
393
- export const UpdateTargetPoolRequestTargetsList = /*@__PURE__*/ S.Array(Target);
394
- export const UpdateTargetPoolRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
395
- projectId: S.String.pipe(T.Label()),
396
- region: S.String.pipe(T.Label()),
397
- name: S.String.pipe(T.Label()),
398
- targetPoolName: S.String.pipe(T.Label()),
399
- activeHealthCheck: S.optional(ActiveHealthCheck),
400
- targetPort: S.optional(S.Number),
401
- targets: S.optional(UpdateTargetPoolRequestTargetsList),
402
- tlsConfig: S.optional(TlsConfig),
403
- }).pipe(T.Http({
404
- method: "PUT",
405
- uri: "/v2/projects/{projectId}/regions/{region}/load-balancers/{name}/target-pools/{targetPoolName}",
406
- code: 200,
407
- baseUrl: "https://alb.api.stackit.cloud",
408
- }))).annotate({ identifier: "UpdateTargetPoolRequest" });
409
- /** 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. */
410
- export const createCredentials = /*@__PURE__*/ API.make(() => ({
411
- input: CreateCredentialsRequest,
412
- output: CreateCredentialsResponse,
413
- errors: [BadRequest, Forbidden, UnknownStackitError],
414
- protocol: StackitProtocol,
415
- retry: Retry.Retry,
416
- }));
417
- /** 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. */
418
- export const createLoadBalancer = /*@__PURE__*/ API.make(() => ({
419
- input: CreateLoadBalancerRequest,
420
- output: LoadBalancer,
421
- errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
422
- protocol: StackitProtocol,
423
- retry: Retry.Retry,
424
- }));
425
- /** Delete a single credential in a project. Deletes the stored Observability credentials. */
426
- export const deleteCredentials = /*@__PURE__*/ API.make(() => ({
427
- input: DeleteCredentialsRequest,
428
- output: DeleteCredentialsResponse2,
429
- errors: [BadRequest, Forbidden, UnknownStackitError],
430
- protocol: StackitProtocol,
431
- retry: Retry.Retry,
432
- }));
433
- /** Delete a given load balancer in a project. Deletes the specified Application Load Balancer. */
434
- export const deleteLoadBalancer = /*@__PURE__*/ API.make(() => ({
435
- input: DeleteLoadBalancerRequest,
436
- output: DeleteLoadBalancerResponse2,
437
- errors: [BadRequest, Forbidden, UnknownStackitError],
438
- protocol: StackitProtocol,
439
- retry: Retry.Retry,
440
- }));
441
- /** Get a single credential reference in a project. Gets the stored Observability credentials. */
442
- export const getCredentials = /*@__PURE__*/ API.make(() => ({
443
- input: GetCredentialsRequest,
444
- output: GetCredentialsResponse,
445
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
446
- protocol: StackitProtocol,
447
- retry: Retry.Retry,
448
- }));
449
- /** 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. */
450
- export const getLoadBalancer = /*@__PURE__*/ API.make(() => ({
451
- input: GetLoadBalancerRequest,
452
- output: LoadBalancer,
453
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
454
- protocol: StackitProtocol,
455
- retry: Retry.Retry,
456
- }));
457
- /** Get the quota of Application Load Balancers in a project. Retrieves the configured Application Load Balancer quota for the project. Limit can be changed via service request. */
458
- export const getQuota = /*@__PURE__*/ API.make(() => ({
459
- input: GetQuotaRequest,
460
- output: GetQuotaResponse,
461
- errors: [BadRequest, Forbidden, UnknownStackitError],
462
- protocol: StackitProtocol,
463
- retry: Retry.Retry,
464
- }));
465
- /** List all credentials in a project. Lists the stored Observability credentials. */
466
- export const listCredentials = /*@__PURE__*/ API.make(() => ({
467
- input: ListCredentialsRequest,
468
- output: ListCredentialsResponse,
469
- errors: [BadRequest, Forbidden, UnknownStackitError],
470
- protocol: StackitProtocol,
471
- retry: Retry.Retry,
472
- }));
473
- /** List Application Load Balancers in a project. Lists all Application Load Balancers in a project. Includes details from creation or updates, along with their status and any error descriptions. */
474
- export const listLoadBalancers = /*@__PURE__*/ API.make(() => ({
475
- input: ListLoadBalancersRequest,
476
- output: ListLoadBalancersResponse,
477
- errors: [BadRequest, Forbidden, UnknownStackitError],
478
- protocol: StackitProtocol,
479
- retry: Retry.Retry,
480
- }));
481
- /** List available service plans. Lists the configured service plans for a project. */
482
- export const listPlans = /*@__PURE__*/ API.make(() => ({
483
- input: ListPlansRequest,
484
- output: ListPlansResponse,
485
- errors: [BadRequest, Forbidden, UnknownStackitError],
486
- protocol: StackitProtocol,
487
- retry: Retry.Retry,
488
- }));
489
- /** Update credentials for observability in a project. Updates the stored Observability credentials. */
490
- export const updateCredentials = /*@__PURE__*/ API.make(() => ({
491
- input: UpdateCredentialsRequest,
492
- output: UpdateCredentialsResponse,
493
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
494
- protocol: StackitProtocol,
495
- retry: Retry.Retry,
496
- }));
497
- /** 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. */
498
- export const updateLoadBalancer = /*@__PURE__*/ API.make(() => ({
499
- input: UpdateLoadBalancerRequest,
500
- output: LoadBalancer,
501
- errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
502
- protocol: StackitProtocol,
503
- retry: Retry.Retry,
504
- }));
505
- /** Update a single target pool of a load balancer in a project. Replaces the content of a specific target pool in the Application Load Balancer (useful for adding or removing target servers). Only updates the specified target pool, leaving others unchanged. Cannot be used to create or rename target pools. */
506
- export const updateTargetPool = /*@__PURE__*/ API.make(() => ({
507
- input: UpdateTargetPoolRequest,
508
- output: TargetPool,
509
- errors: [BadRequest, Forbidden, UnknownStackitError],
510
- protocol: StackitProtocol,
511
- retry: Retry.Retry,
512
- }));
513
- //# sourceMappingURL=alb.js.map
39
+
40
+ export const createCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>2)@"CreateCredentialsRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),displayName:$4($3),password:$4($3.pipe($5({}))),username:$4($3)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/credentials",code:200,baseUrl:"https://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __10, __4, __5, __d1, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createCredentials, i));
41
+
42
+ export const createLoadBalancer = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:24,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"CreateLoadBalancerRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),disableTargetSecurityGroupAssignment:$5($4),externalAddress:$5($3),labels:$5(#6:0),listeners:$5(#6:13),name:$5($3),networks:$5(#6:15),options:$5(#6:19),planId:$5($3),targetPools:$5(#6:20)}).pipe($1({method:"POST",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers",code:200,baseUrl:"https://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __11, __7, __d2, __4, __5, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createLoadBalancer, i));
43
+
44
+ export const deleteCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteCredentialsRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),credentialsRef:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",code:200,baseUrl:"https://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteCredentials, i));
45
+
46
+ export const deleteLoadBalancer = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteLoadBalancerRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",code:200,baseUrl:"https://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteLoadBalancer, i));
47
+
48
+ export const getCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetCredentialsRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),credentialsRef:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",code:200,baseUrl:"https://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getCredentials, i));
49
+
50
+ export const getLoadBalancer = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:24,errors:[$7,$8,$9,$10],protocol:$11,retry:$12};$5(>2)@"GetLoadBalancerRequest";$4({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",code:200,baseUrl:"https://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d2, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getLoadBalancer, i));
51
+
52
+ export const getQuota = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$5(>3)@"GetQuotaRequest";$5(>4)@"GetQuotaResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/quota",code:200,baseUrl:"https://alb.api.stackit.cloud"}));$4({maxCredentials:$7($6),maxLoadBalancers:$7($6),projectId:$7($3),region:$7($3),usedCredentials:$7($6),usedLoadBalancers:$7($6)})', [__0, __1, __2, __3, __4, __5, __6, __7, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getQuota, i));
53
+
54
+ export const listCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>4)@"ListCredentialsRequest";$7(#6:0);$5(>5)@"ListCredentialsResponse";$4({projectId:$3.pipe($2()),region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/credentials",code:200,baseUrl:"https://alb.api.stackit.cloud"}));$4({credentials:$8(#2)})', [__0, __1, __2, __3, __4, __5, __d0, __8, __7, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listCredentials, i));
55
+
56
+ export const listLoadBalancers = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$10,$11,$12],protocol:$13,retry:$14};$7(>4)@"ListLoadBalancersRequest";$9(#8:24);$7(>5)@"ListLoadBalancersResponse";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),pageSize:$5($3.pipe($4())),pageId:$5($3.pipe($4()))}).pipe($1({method:"GET",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers",code:200,baseUrl:"https://alb.api.stackit.cloud"}));$6({loadBalancers:$5(#2),nextPageId:$5($3)})', [__0, __1, __2, __3, __9, __7, __4, __5, __d2, __8, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listLoadBalancers, i));
57
+
58
+ export const listPlans = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$9,$10,$11],protocol:$12,retry:$13};$5(>5)@"ListPlansRequest";$5(>6)@"PlanDetails";$8(#2);$5(>7)@"ListPlansResponse";$4({region:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v2/regions/{region}/plans",code:200,baseUrl:"https://alb.api.stackit.cloud"}));$4({description:$6($3),flavorName:$6($3),maxConnections:$6($7),name:$6($3),planId:$6($3),region:$6($3)});$4({validPlans:$6(#3)})', [__0, __1, __2, __3, __4, __5, __7, __6, __8, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listPlans, i));
59
+
60
+ export const updateCredentials = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"UpdateCredentialsRequest";$6({projectId:$3.pipe($2()),region:$3.pipe($2()),credentialsRef:$3.pipe($2()),displayName:$4($3),password:$4($3.pipe($5({}))),username:$4($3)}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/credentials/{credentialsRef}",code:200,baseUrl:"https://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __10, __4, __5, __d1, BadRequest, Forbidden, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateCredentials, i));
61
+
62
+ export const updateLoadBalancer = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:24,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"UpdateLoadBalancerRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2()),disableTargetSecurityGroupAssignment:$5($4),externalAddress:$5($3),labels:$5(#6:0),listeners:$5(#6:13),networks:$5(#6:15),options:$5(#6:19),planId:$5($3),targetPools:$5(#6:20),version:$5($3)}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers/{name}",code:200,baseUrl:"https://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __11, __7, __d2, __4, __5, BadRequest, Forbidden, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateLoadBalancer, i));
63
+
64
+ export const updateTargetPool = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4:6,errors:[$9,$10,$11],protocol:$12,retry:$13};$8(>2)@"UpdateTargetPoolRequest";$7({projectId:$3.pipe($2()),region:$3.pipe($2()),name:$3.pipe($2()),targetPoolName:$3.pipe($2()),activeHealthCheck:$5(#4:3),targetPort:$5($6),targets:$5(#4:5),tlsConfig:$5(#4:1)}).pipe($1({method:"PUT",uri:"/v2/projects/{projectId}/regions/{region}/load-balancers/{name}/target-pools/{targetPoolName}",code:200,baseUrl:"https://alb.api.stackit.cloud"}))', [__0, __1, __2, __3, __d3, __7, __6, __4, __5, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateTargetPool, i));
65
+ // Schema builders: each runs one schema initializer, on that schema's first use.
66
+ // Schema table: entry i is schema j of builder f, made on first reach.
67
+
68
+
69
+ // Shared schema data (see `op` in core/api).
70
+ function __d0() {
71
+ return ['$4(>1)@"CredentialsResponse";$3({credentialsRef:$2($1),displayName:$2($1),region:$2($1),username:$2($1)})', [__0, __3, __7, __4, __5]];
72
+ }
73
+ function __d1() {
74
+ return ['$4(>1)@"CreateCredentialsResponse";$3({credential:$2(#1:0)})', [__0, __d0, __7, __4, __5]];
75
+ }
76
+ function __d2() {
77
+ return ['$2($1,$1);$5(>25)@"CookiePersistence";$5(>26)@"HttpHeader";$6(#2);$5(>27)@"Path";$5(>28)@"Rule";$6(#5);$5(>29)@"HostConfig";$6(#7);$5(>30)@"ProtocolOptionsHTTP";$5(>31)@"CertificateConfig";$5(>32)@"ProtocolOptionsHTTPS";$5(>33)@"Listener";$6(#12);$5(>34)@"Network";$6(#14);$5(>35)@"LoadbalancerOptionAccessControl";$5(>36)@"LoadbalancerOptionLogs";$5(>37)@"LoadbalancerOptionObservability";$5(>38)@"LoadBalancerOptions";$6(#8:6);$5(>39)@"LoadBalancerError";$6(#21);$5(>40)@"SecurityGroup";$5(>41)@"LoadBalancer";$4({name:$3($1),ttl:$3($1)});$4({exactMatch:$3($1),name:$3($1)});$4({exactMatch:$3($1),prefix:$3($1)});$4({cookiePersistence:$3(#1),headers:$3(#3),path:$3(#4),queryParameters:$3(#3),targetPool:$3($1),webSocket:$3($7)});$4({host:$3($1),rules:$3(#6)});$4({hosts:$3(#8)});$4({certificateIds:$3(#8:0)});$4({certificateConfig:$3(#10)});$4({http:$3(#9),https:$3(#11),name:$3($1),port:$3($9),protocol:$3($1),wafConfigName:$3($1)});$4({networkId:$3($1),role:$3($1)});$4({allowedSourceRanges:$3(#8:0),ipBlockListName:$3($1)});$4({credentialsRef:$3($1),pushUrl:$3($1)});$4({logs:$3(#17),metrics:$3(#17)});$4({accessControl:$3(#16),ephemeralAddress:$3($7),observability:$3(#18),privateNetworkOnly:$3($7)});$4({description:$3($1),type:$3($1)});$4({id:$3($1),name:$3($1)});$4({disableTargetSecurityGroupAssignment:$3($7),errors:$3(#22),externalAddress:$3($1),labels:$3(#0),listeners:$3(#13),loadBalancerSecurityGroup:$3(#23),name:$3($1),networks:$3(#15),options:$3(#19),planId:$3($1),privateAddress:$3($1),region:$3($1),status:$3($1),targetPools:$3(#20),targetSecurityGroup:$3(#23),version:$3($1)})', [__0, __3, __12, __7, __4, __5, __8, __11, __d3, __6]];
78
+ }
79
+ function __d3() {
80
+ return ['$2($1);$6(>7)@"TlsConfig";$6(>8)@"HttpHealthChecks";$6(>9)@"ActiveHealthCheck";$6(>10)@"Target";$2(#4);$6(>11)@"TargetPool";$5({customCa:$3($1),enabled:$3($4),skipCertificateValidation:$3($4)});$5({okStatuses:$3(#0),path:$3($1),tls:$3(#1)});$5({altPort:$3($7),healthyThreshold:$3($7),httpHealthChecks:$3(#2),interval:$3($1),intervalJitter:$3($1),timeout:$3($1),unhealthyThreshold:$3($7)});$5({displayName:$3($1),ip:$3($1)});$5({activeHealthCheck:$3(#3),name:$3($1),targetPort:$3($7),targets:$3(#5),tlsConfig:$3(#1)})', [__0, __3, __8, __7, __11, __4, __5, __6]];
81
+ }
82
+ function __d4() {
83
+ return ['$3(>1)@"DeleteCredentialsResponse2";$2.pipe($1())', [__0, __13, __14, __5]];
84
+ }