@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.17

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 (346) hide show
  1. package/lib/.lazy.json +1 -0
  2. package/lib/_bundle/lazy.js +4 -0
  3. package/lib/_bundle/sdk.js +2 -0
  4. package/lib/_bundle/sdk.js.map +1 -0
  5. package/lib/credentials.d.ts +2 -2
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/credentials.js +1 -49
  8. package/lib/errors.d.ts +13 -13
  9. package/lib/errors.d.ts.map +1 -1
  10. package/lib/errors.js +1 -26
  11. package/lib/index.d.ts +2 -2
  12. package/lib/index.js +1 -24
  13. package/lib/index.lazy.js +7 -0
  14. package/lib/pagination.d.ts +1 -1
  15. package/lib/pagination.js +1 -45
  16. package/lib/protocol.d.ts +3 -3
  17. package/lib/protocol.d.ts.map +1 -1
  18. package/lib/protocol.js +1 -147
  19. package/lib/retry.d.ts +1 -1
  20. package/lib/retry.d.ts.map +1 -1
  21. package/lib/retry.js +1 -31
  22. package/lib/services/alb.d.ts +10 -87
  23. package/lib/services/alb.d.ts.map +1 -1
  24. package/lib/services/alb.js +28 -512
  25. package/lib/services/alb.js.map +1 -1
  26. package/lib/services/alb_waf.d.ts +9 -82
  27. package/lib/services/alb_waf.d.ts.map +1 -1
  28. package/lib/services/alb_waf.js +33 -520
  29. package/lib/services/alb_waf.js.map +1 -1
  30. package/lib/services/authorization.d.ts +5 -47
  31. package/lib/services/authorization.d.ts.map +1 -1
  32. package/lib/services/authorization.js +1 -322
  33. package/lib/services/authorization.js.map +1 -1
  34. package/lib/services/automation.d.ts +7 -47
  35. package/lib/services/automation.d.ts.map +1 -1
  36. package/lib/services/automation.js +1 -362
  37. package/lib/services/automation.js.map +1 -1
  38. package/lib/services/cdn.d.ts +8 -220
  39. package/lib/services/cdn.d.ts.map +1 -1
  40. package/lib/services/cdn.js +31 -905
  41. package/lib/services/cdn.js.map +1 -1
  42. package/lib/services/certificates.d.ts +8 -27
  43. package/lib/services/certificates.d.ts.map +1 -1
  44. package/lib/services/certificates.js +1 -178
  45. package/lib/services/certificates.js.map +1 -1
  46. package/lib/services/cost.d.ts +10 -37
  47. package/lib/services/cost.d.ts.map +1 -1
  48. package/lib/services/cost.js +1 -176
  49. package/lib/services/cost.js.map +1 -1
  50. package/lib/services/dns.d.ts +9 -104
  51. package/lib/services/dns.d.ts.map +1 -1
  52. package/lib/services/dns.js +40 -725
  53. package/lib/services/dns.js.map +1 -1
  54. package/lib/services/dremio.d.ts +8 -50
  55. package/lib/services/dremio.d.ts.map +1 -1
  56. package/lib/services/dremio.js +1 -316
  57. package/lib/services/dremio.js.map +1 -1
  58. package/lib/services/edge.d.ts +7 -40
  59. package/lib/services/edge.d.ts.map +1 -1
  60. package/lib/services/edge.js +1 -356
  61. package/lib/services/edge.js.map +1 -1
  62. package/lib/services/functions.d.ts +1 -48
  63. package/lib/services/functions.d.ts.map +1 -1
  64. package/lib/services/functions.js +1 -398
  65. package/lib/services/functions.js.map +1 -1
  66. package/lib/services/git.d.ts +8 -61
  67. package/lib/services/git.d.ts.map +1 -1
  68. package/lib/services/git.js +35 -519
  69. package/lib/services/git.js.map +1 -1
  70. package/lib/services/iaas.d.ts +9 -337
  71. package/lib/services/iaas.d.ts.map +1 -1
  72. package/lib/services/iaas.js +181 -3542
  73. package/lib/services/iaas.js.map +1 -1
  74. package/lib/services/index.js +0 -2
  75. package/lib/services/intake.d.ts +8 -75
  76. package/lib/services/intake.d.ts.map +1 -1
  77. package/lib/services/intake.js +29 -474
  78. package/lib/services/intake.js.map +1 -1
  79. package/lib/services/kms.d.ts +9 -92
  80. package/lib/services/kms.d.ts.map +1 -1
  81. package/lib/services/kms.js +41 -662
  82. package/lib/services/kms.js.map +1 -1
  83. package/lib/services/lb_ip_lists.d.ts +9 -25
  84. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  85. package/lib/services/lb_ip_lists.js +1 -153
  86. package/lib/services/lb_ip_lists.js.map +1 -1
  87. package/lib/services/load_balancer.d.ts +10 -81
  88. package/lib/services/load_balancer.d.ts.map +1 -1
  89. package/lib/services/load_balancer.js +29 -496
  90. package/lib/services/load_balancer.js.map +1 -1
  91. package/lib/services/logme.d.ts +8 -69
  92. package/lib/services/logme.d.ts.map +1 -1
  93. package/lib/services/logme.js +33 -573
  94. package/lib/services/logme.js.map +1 -1
  95. package/lib/services/logs.d.ts +8 -64
  96. package/lib/services/logs.d.ts.map +1 -1
  97. package/lib/services/logs.js +34 -474
  98. package/lib/services/logs.js.map +1 -1
  99. package/lib/services/mariadb.d.ts +8 -65
  100. package/lib/services/mariadb.d.ts.map +1 -1
  101. package/lib/services/mariadb.js +34 -550
  102. package/lib/services/mariadb.js.map +1 -1
  103. package/lib/services/model_experiments.d.ts +9 -48
  104. package/lib/services/model_experiments.d.ts.map +1 -1
  105. package/lib/services/model_experiments.js +1 -335
  106. package/lib/services/model_experiments.js.map +1 -1
  107. package/lib/services/model_serving.d.ts +7 -47
  108. package/lib/services/model_serving.d.ts.map +1 -1
  109. package/lib/services/model_serving.js +1 -286
  110. package/lib/services/model_serving.js.map +1 -1
  111. package/lib/services/mongodb_flex.d.ts +8 -137
  112. package/lib/services/mongodb_flex.d.ts.map +1 -1
  113. package/lib/services/mongodb_flex.js +42 -802
  114. package/lib/services/mongodb_flex.js.map +1 -1
  115. package/lib/services/object_storage.d.ts +12 -59
  116. package/lib/services/object_storage.d.ts.map +1 -1
  117. package/lib/services/object_storage.js +38 -539
  118. package/lib/services/object_storage.js.map +1 -1
  119. package/lib/services/observability.d.ts +8 -407
  120. package/lib/services/observability.d.ts.map +1 -1
  121. package/lib/services/observability.js +159 -3157
  122. package/lib/services/observability.js.map +1 -1
  123. package/lib/services/opensearch.d.ts +8 -71
  124. package/lib/services/opensearch.d.ts.map +1 -1
  125. package/lib/services/opensearch.js +34 -562
  126. package/lib/services/opensearch.js.map +1 -1
  127. package/lib/services/pim.d.ts +12 -108
  128. package/lib/services/pim.d.ts.map +1 -1
  129. package/lib/services/pim.js +31 -735
  130. package/lib/services/pim.js.map +1 -1
  131. package/lib/services/postgres_flex.d.ts +14 -136
  132. package/lib/services/postgres_flex.d.ts.map +1 -1
  133. package/lib/services/postgres_flex.js +47 -852
  134. package/lib/services/postgres_flex.js.map +1 -1
  135. package/lib/services/pubsub.d.ts +11 -73
  136. package/lib/services/pubsub.d.ts.map +1 -1
  137. package/lib/services/pubsub.js +37 -518
  138. package/lib/services/pubsub.js.map +1 -1
  139. package/lib/services/rabbitmq.d.ts +8 -76
  140. package/lib/services/rabbitmq.d.ts.map +1 -1
  141. package/lib/services/rabbitmq.js +35 -573
  142. package/lib/services/rabbitmq.js.map +1 -1
  143. package/lib/services/registry.d.ts +10 -28
  144. package/lib/services/registry.d.ts.map +1 -1
  145. package/lib/services/registry.js +1 -197
  146. package/lib/services/registry.js.map +1 -1
  147. package/lib/services/resource_manager.d.ts +9 -61
  148. package/lib/services/resource_manager.d.ts.map +1 -1
  149. package/lib/services/resource_manager.js +36 -472
  150. package/lib/services/resource_manager.js.map +1 -1
  151. package/lib/services/run_command.d.ts +5 -28
  152. package/lib/services/run_command.d.ts.map +1 -1
  153. package/lib/services/run_command.js +1 -184
  154. package/lib/services/run_command.js.map +1 -1
  155. package/lib/services/sca.d.ts +8 -79
  156. package/lib/services/sca.d.ts.map +1 -1
  157. package/lib/services/sca.js +25 -444
  158. package/lib/services/sca.js.map +1 -1
  159. package/lib/services/scf.d.ts +8 -64
  160. package/lib/services/scf.d.ts.map +1 -1
  161. package/lib/services/scf.js +40 -669
  162. package/lib/services/scf.js.map +1 -1
  163. package/lib/services/secrets_manager.d.ts +8 -61
  164. package/lib/services/secrets_manager.d.ts.map +1 -1
  165. package/lib/services/secrets_manager.js +42 -612
  166. package/lib/services/secrets_manager.js.map +1 -1
  167. package/lib/services/server_backup.d.ts +7 -50
  168. package/lib/services/server_backup.d.ts.map +1 -1
  169. package/lib/services/server_backup.js +29 -453
  170. package/lib/services/server_backup.js.map +1 -1
  171. package/lib/services/server_update.d.ts +7 -35
  172. package/lib/services/server_update.d.ts.map +1 -1
  173. package/lib/services/server_update.js +1 -351
  174. package/lib/services/server_update.js.map +1 -1
  175. package/lib/services/service_account.d.ts +10 -68
  176. package/lib/services/service_account.d.ts.map +1 -1
  177. package/lib/services/service_account.js +30 -505
  178. package/lib/services/service_account.js.map +1 -1
  179. package/lib/services/service_enablement.d.ts +7 -29
  180. package/lib/services/service_enablement.d.ts.map +1 -1
  181. package/lib/services/service_enablement.js +1 -156
  182. package/lib/services/service_enablement.js.map +1 -1
  183. package/lib/services/sfs.d.ts +4 -96
  184. package/lib/services/sfs.d.ts.map +1 -1
  185. package/lib/services/sfs.js +46 -789
  186. package/lib/services/sfs.js.map +1 -1
  187. package/lib/services/ske.d.ts +9 -108
  188. package/lib/services/ske.d.ts.map +1 -1
  189. package/lib/services/ske.js +26 -557
  190. package/lib/services/ske.js.map +1 -1
  191. package/lib/services/sqlserverflex.d.ts +11 -152
  192. package/lib/services/sqlserverflex.d.ts.map +1 -1
  193. package/lib/services/sqlserverflex.js +46 -935
  194. package/lib/services/sqlserverflex.js.map +1 -1
  195. package/lib/services/stackit_marketplace.d.ts +9 -38
  196. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  197. package/lib/services/stackit_marketplace.js +26 -378
  198. package/lib/services/stackit_marketplace.js.map +1 -1
  199. package/lib/services/telemetry_link.d.ts +8 -61
  200. package/lib/services/telemetry_link.d.ts.map +1 -1
  201. package/lib/services/telemetry_link.js +34 -531
  202. package/lib/services/telemetry_link.js.map +1 -1
  203. package/lib/services/telemetry_router.d.ts +8 -72
  204. package/lib/services/telemetry_router.d.ts.map +1 -1
  205. package/lib/services/telemetry_router.js +29 -483
  206. package/lib/services/telemetry_router.js.map +1 -1
  207. package/lib/services/ufw.d.ts +7 -42
  208. package/lib/services/ufw.d.ts.map +1 -1
  209. package/lib/services/ufw.js +1 -278
  210. package/lib/services/ufw.js.map +1 -1
  211. package/lib/services/valkey.d.ts +8 -68
  212. package/lib/services/valkey.d.ts.map +1 -1
  213. package/lib/services/valkey.js +34 -566
  214. package/lib/services/valkey.js.map +1 -1
  215. package/lib/services/vpn.d.ts +21 -186
  216. package/lib/services/vpn.d.ts.map +1 -1
  217. package/lib/services/vpn.js +43 -930
  218. package/lib/services/vpn.js.map +1 -1
  219. package/lib/services/workflows.d.ts +15 -84
  220. package/lib/services/workflows.d.ts.map +1 -1
  221. package/lib/services/workflows.js +27 -507
  222. package/lib/services/workflows.js.map +1 -1
  223. package/lib/services.lazy/alb.js +4 -0
  224. package/lib/services.lazy/alb_waf.js +4 -0
  225. package/lib/services.lazy/authorization.js +1 -0
  226. package/lib/services.lazy/automation.js +1 -0
  227. package/lib/services.lazy/cdn.js +4 -0
  228. package/lib/services.lazy/certificates.js +1 -0
  229. package/lib/services.lazy/cost.js +1 -0
  230. package/lib/services.lazy/dns.js +4 -0
  231. package/lib/services.lazy/dremio.js +1 -0
  232. package/lib/services.lazy/edge.js +1 -0
  233. package/lib/services.lazy/functions.js +1 -0
  234. package/lib/services.lazy/git.js +4 -0
  235. package/lib/services.lazy/iaas.js +4 -0
  236. package/lib/services.lazy/index.js +3 -0
  237. package/lib/services.lazy/intake.js +4 -0
  238. package/lib/services.lazy/kms.js +4 -0
  239. package/lib/services.lazy/lb_ip_lists.js +1 -0
  240. package/lib/services.lazy/load_balancer.js +4 -0
  241. package/lib/services.lazy/logme.js +4 -0
  242. package/lib/services.lazy/logs.js +4 -0
  243. package/lib/services.lazy/mariadb.js +4 -0
  244. package/lib/services.lazy/model_experiments.js +1 -0
  245. package/lib/services.lazy/model_serving.js +1 -0
  246. package/lib/services.lazy/mongodb_flex.js +4 -0
  247. package/lib/services.lazy/object_storage.js +4 -0
  248. package/lib/services.lazy/observability.js +4 -0
  249. package/lib/services.lazy/opensearch.js +4 -0
  250. package/lib/services.lazy/pim.js +4 -0
  251. package/lib/services.lazy/postgres_flex.js +4 -0
  252. package/lib/services.lazy/pubsub.js +4 -0
  253. package/lib/services.lazy/rabbitmq.js +4 -0
  254. package/lib/services.lazy/registry.js +1 -0
  255. package/lib/services.lazy/resource_manager.js +4 -0
  256. package/lib/services.lazy/run_command.js +1 -0
  257. package/lib/services.lazy/sca.js +4 -0
  258. package/lib/services.lazy/scf.js +4 -0
  259. package/lib/services.lazy/secrets_manager.js +4 -0
  260. package/lib/services.lazy/server_backup.js +4 -0
  261. package/lib/services.lazy/server_update.js +1 -0
  262. package/lib/services.lazy/service_account.js +4 -0
  263. package/lib/services.lazy/service_enablement.js +1 -0
  264. package/lib/services.lazy/sfs.js +4 -0
  265. package/lib/services.lazy/ske.js +4 -0
  266. package/lib/services.lazy/sqlserverflex.js +4 -0
  267. package/lib/services.lazy/stackit_marketplace.js +4 -0
  268. package/lib/services.lazy/telemetry_link.js +4 -0
  269. package/lib/services.lazy/telemetry_router.js +4 -0
  270. package/lib/services.lazy/ufw.js +1 -0
  271. package/lib/services.lazy/valkey.js +4 -0
  272. package/lib/services.lazy/vpn.js +4 -0
  273. package/lib/services.lazy/workflows.js +4 -0
  274. package/lib/traits.d.ts +1 -1
  275. package/lib/traits.js +1 -15
  276. package/package.json +9 -7
  277. package/src/credentials.ts +21 -18
  278. package/src/errors.ts +10 -14
  279. package/src/index.ts +2 -2
  280. package/src/pagination.ts +2 -2
  281. package/src/protocol.ts +12 -9
  282. package/src/retry.ts +6 -4
  283. package/src/services/alb.ts +599 -655
  284. package/src/services/alb_waf.ts +597 -637
  285. package/src/services/authorization.ts +400 -383
  286. package/src/services/automation.ts +422 -405
  287. package/src/services/cdn.ts +817 -1375
  288. package/src/services/certificates.ts +209 -190
  289. package/src/services/cost.ts +100 -207
  290. package/src/services/dns.ts +793 -833
  291. package/src/services/dremio.ts +356 -349
  292. package/src/services/edge.ts +406 -366
  293. package/src/services/functions.ts +465 -463
  294. package/src/services/git.ts +602 -547
  295. package/src/services/iaas.ts +3931 -3821
  296. package/src/services/intake.ts +521 -549
  297. package/src/services/kms.ts +715 -692
  298. package/src/services/lb_ip_lists.ts +173 -152
  299. package/src/services/load_balancer.ts +576 -619
  300. package/src/services/logme.ts +696 -641
  301. package/src/services/logs.ts +510 -493
  302. package/src/services/mariadb.ts +671 -604
  303. package/src/services/model_experiments.ts +343 -356
  304. package/src/services/model_serving.ts +337 -328
  305. package/src/services/mongodb_flex.ts +955 -1007
  306. package/src/services/object_storage.ts +614 -557
  307. package/src/services/observability.ts +3469 -3866
  308. package/src/services/opensearch.ts +679 -628
  309. package/src/services/pim.ts +672 -909
  310. package/src/services/postgres_flex.ts +966 -986
  311. package/src/services/pubsub.ts +524 -546
  312. package/src/services/rabbitmq.ts +693 -654
  313. package/src/services/registry.ts +227 -194
  314. package/src/services/resource_manager.ts +520 -517
  315. package/src/services/run_command.ts +219 -211
  316. package/src/services/sca.ts +543 -570
  317. package/src/services/scf.ts +790 -716
  318. package/src/services/secrets_manager.ts +707 -622
  319. package/src/services/server_backup.ts +490 -475
  320. package/src/services/server_update.ts +353 -356
  321. package/src/services/service_account.ts +515 -553
  322. package/src/services/service_enablement.ts +162 -166
  323. package/src/services/sfs.ts +879 -958
  324. package/src/services/ske.ts +694 -769
  325. package/src/services/sqlserverflex.ts +1042 -1117
  326. package/src/services/stackit_marketplace.ts +377 -372
  327. package/src/services/telemetry_link.ts +530 -531
  328. package/src/services/telemetry_router.ts +509 -534
  329. package/src/services/ufw.ts +305 -307
  330. package/src/services/valkey.ts +684 -629
  331. package/src/services/vpn.ts +935 -1195
  332. package/src/services/workflows.ts +426 -586
  333. package/src/traits.ts +1 -1
  334. package/lib/credentials.js.map +0 -1
  335. package/lib/errors.js.map +0 -1
  336. package/lib/pagination.js.map +0 -1
  337. package/lib/protocol.js.map +0 -1
  338. package/lib/protocol.test.d.ts +0 -2
  339. package/lib/protocol.test.d.ts.map +0 -1
  340. package/lib/protocol.test.js +0 -181
  341. package/lib/protocol.test.js.map +0 -1
  342. package/lib/retry.js.map +0 -1
  343. package/lib/services/index.js.map +0 -1
  344. package/lib/traits.js.map +0 -1
  345. package/src/protocol.test.ts +0 -304
  346. /package/lib/{index.js.map → index.lazy.js.map} +0 -0
@@ -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
 
@@ -39,23 +42,13 @@ export class NotFound
39
42
 
40
43
  /** Container argument override. */
41
44
  export type ContainerArgsList = Array<string>;
42
- export const ContainerArgsList = /*@__PURE__*/ S.Array(
43
- S.String,
44
- ) as any as S.Schema<ContainerArgsList>;
45
-
46
45
  /** Container command override. */
47
46
  export type ContainerCommandList = Array<string>;
48
- export const ContainerCommandList = /*@__PURE__*/ S.Array(
49
- S.String,
50
- ) as any as S.Schema<ContainerCommandList>;
51
-
52
47
  /** EnvVarType identifies the origin of an environment variable. - ENV_FROM_SOURCE_TYPE_UNSPECIFIED: Used as zero value. - ENV_FROM_SOURCE_TYPE_MANUAL: Environment source from a literal value. - ENV_FROM_SOURCE_TYPE_SECRET: Environment source from a secret. */
53
48
  export type EnvVarType =
54
49
  | "ENV_FROM_SOURCE_TYPE_UNSPECIFIED"
55
50
  | "ENV_FROM_SOURCE_TYPE_MANUAL"
56
51
  | "ENV_FROM_SOURCE_TYPE_SECRET";
57
- export const EnvVarType = S.String;
58
-
59
52
  /** EnvVar defines a single environment variable. */
60
53
  export interface EnvVar {
61
54
  /** Environment variable key. */
@@ -64,20 +57,8 @@ export interface EnvVar {
64
57
  /** Environment variable value. */
65
58
  value: string;
66
59
  }
67
- export const EnvVar = /*@__PURE__*/ S.suspend(() =>
68
- S.Struct({
69
- key: S.String,
70
- origin: S.optional(EnvVarType),
71
- value: S.String,
72
- }),
73
- ).annotate({ identifier: "EnvVar" }) as any as S.Schema<EnvVar>;
74
-
75
60
  /** Environment variables exposed to the container. */
76
61
  export type ContainerEnvironmentVariablesList = Array<EnvVar>;
77
- export const ContainerEnvironmentVariablesList = /*@__PURE__*/ S.Array(
78
- EnvVar,
79
- ) as any as S.Schema<ContainerEnvironmentVariablesList>;
80
-
81
62
  /** Container describes a simplified container configuration for the application. */
82
63
  export interface Container {
83
64
  /** Container argument override. */
@@ -95,30 +76,10 @@ export interface Container {
95
76
  /** Container name. */
96
77
  name: string;
97
78
  }
98
- export const Container = /*@__PURE__*/ S.suspend(() =>
99
- S.Struct({
100
- args: S.optional(ContainerArgsList),
101
- command: S.optional(ContainerCommandList),
102
- cpu: S.optional(S.Number),
103
- environmentVariables: S.optional(ContainerEnvironmentVariablesList),
104
- image: S.String,
105
- memory: S.optional(S.Number),
106
- name: S.String,
107
- }),
108
- ).annotate({ identifier: "Container" }) as any as S.Schema<Container>;
109
-
110
79
  /** Containers to deploy for the application. */
111
80
  export type CreateApplicationRequestContainersList = Array<Container>;
112
- export const CreateApplicationRequestContainersList = /*@__PURE__*/ S.Array(
113
- Container,
114
- ) as any as S.Schema<CreateApplicationRequestContainersList>;
115
-
116
81
  /** Allowed destination CIDRs for Ingress traffic. */
117
82
  export type NetworkIngressAclList = Array<string>;
118
- export const NetworkIngressAclList = /*@__PURE__*/ S.Array(
119
- S.String,
120
- ) as any as S.Schema<NetworkIngressAclList>;
121
-
122
83
  /** Network configuration for an application. */
123
84
  export interface Network {
124
85
  /** Allowed destination CIDRs for Ingress traffic. */
@@ -130,51 +91,19 @@ export interface Network {
130
91
  /** Whether the application should be accessible from the internet. */
131
92
  publicIngress?: boolean;
132
93
  }
133
- export const Network = /*@__PURE__*/ S.suspend(() =>
134
- S.Struct({
135
- ingressAcl: S.optional(NetworkIngressAclList),
136
- internalPort: S.optional(S.Number),
137
- port: S.optional(S.Number),
138
- publicIngress: S.optional(S.Boolean),
139
- }),
140
- ).annotate({ identifier: "Network" }) as any as S.Schema<Network>;
141
-
142
94
  export interface ApplicationRegistryCredentialsAuth {
143
95
  /** Password to authenticate to the registry. Omit or set to null to indicate deletion in updates. */
144
96
  password?: string | Redacted.Redacted<string>;
145
97
  url: string;
146
98
  user: string;
147
99
  }
148
- export const ApplicationRegistryCredentialsAuth = /*@__PURE__*/ S.suspend(() =>
149
- S.Struct({
150
- password: S.optional(S.String.pipe(T.SensitiveValue({}))),
151
- url: S.String,
152
- user: S.String,
153
- }),
154
- ).annotate({
155
- identifier: "ApplicationRegistryCredentialsAuth",
156
- }) as any as S.Schema<ApplicationRegistryCredentialsAuth>;
157
-
158
100
  export type ApplicationRegistryAuthType = "AUTH_TYPE_NONE" | "AUTH_TYPE_CREDENTIALS";
159
- export const ApplicationRegistryAuthType = S.String;
160
-
161
101
  export interface ApplicationRegistry {
162
102
  credentials?: ApplicationRegistryCredentialsAuth;
163
103
  type: ApplicationRegistryAuthType | (string & {});
164
104
  }
165
- export const ApplicationRegistry = /*@__PURE__*/ S.suspend(() =>
166
- S.Struct({
167
- credentials: S.optional(ApplicationRegistryCredentialsAuth),
168
- type: ApplicationRegistryAuthType,
169
- }),
170
- ).annotate({ identifier: "ApplicationRegistry" }) as any as S.Schema<ApplicationRegistry>;
171
-
172
105
  /** Image registry configuration for the application. */
173
106
  export type CreateApplicationRequestRegistryList = Array<ApplicationRegistry>;
174
- export const CreateApplicationRequestRegistryList = /*@__PURE__*/ S.Array(
175
- ApplicationRegistry,
176
- ) as any as S.Schema<CreateApplicationRequestRegistryList>;
177
-
178
107
  /** - CURRENT_STATUS_UNSPECIFIED: Used as zero value. - CURRENT_STATUS_PROGRESSING: Applications replicas are being created. - CURRENT_STATUS_RUNNING: Application is ready and has the desired replicas running. - CURRENT_STATUS_FAILED: Application is not available and has some error. - CURRENT_STATUS_IDLE: Application is ready but is scaled to 0 replicas. - CURRENT_STATUS_NONE: Application is stopped. */
179
108
  export type CurrentStatus =
180
109
  | "CURRENT_STATUS_UNSPECIFIED"
@@ -183,35 +112,16 @@ export type CurrentStatus =
183
112
  | "CURRENT_STATUS_FAILED"
184
113
  | "CURRENT_STATUS_IDLE"
185
114
  | "CURRENT_STATUS_NONE";
186
- export const CurrentStatus = S.String;
187
-
188
115
  export interface RuntimeStatusInput {
189
116
  currentStatus?: CurrentStatus | (string & {});
190
117
  }
191
- export const RuntimeStatusInput = /*@__PURE__*/ S.suspend(() =>
192
- S.Struct({
193
- currentStatus: S.optional(CurrentStatus),
194
- }),
195
- ).annotate({ identifier: "RuntimeStatusInput" }) as any as S.Schema<RuntimeStatusInput>;
196
-
197
118
  /** CustomRuleParameter defines a single scaler parameter. */
198
119
  export interface CustomRuleParameter {
199
120
  name: string;
200
121
  value: string;
201
122
  }
202
- export const CustomRuleParameter = /*@__PURE__*/ S.suspend(() =>
203
- S.Struct({
204
- name: S.String,
205
- value: S.String,
206
- }),
207
- ).annotate({ identifier: "CustomRuleParameter" }) as any as S.Schema<CustomRuleParameter>;
208
-
209
123
  /** Scaler parameters. */
210
124
  export type CustomScaleRuleParametersList = Array<CustomRuleParameter>;
211
- export const CustomScaleRuleParametersList = /*@__PURE__*/ S.Array(
212
- CustomRuleParameter,
213
- ) as any as S.Schema<CustomScaleRuleParametersList>;
214
-
215
125
  /** CustomRuleSecretMapping maps a scaler parameter to an environment secret. */
216
126
  export interface CustomRuleSecretMapping {
217
127
  /** Secret parameter name. */
@@ -219,19 +129,8 @@ export interface CustomRuleSecretMapping {
219
129
  /** Environment secret name. */
220
130
  secret: string | Redacted.Redacted<string>;
221
131
  }
222
- export const CustomRuleSecretMapping = /*@__PURE__*/ S.suspend(() =>
223
- S.Struct({
224
- parameter: S.String,
225
- secret: S.String.pipe(T.SensitiveValue({})),
226
- }),
227
- ).annotate({ identifier: "CustomRuleSecretMapping" }) as any as S.Schema<CustomRuleSecretMapping>;
228
-
229
132
  /** Secret mappings for the scaler. */
230
133
  export type CustomScaleRuleSecretsMappingList = Array<CustomRuleSecretMapping>;
231
- export const CustomScaleRuleSecretsMappingList = /*@__PURE__*/ S.Array(
232
- CustomRuleSecretMapping,
233
- ) as any as S.Schema<CustomScaleRuleSecretsMappingList>;
234
-
235
134
  /** CustomScaleRule defines parameters for custom scalers (e.g., KEDA). */
236
135
  export interface CustomScaleRule {
237
136
  /** Scaler parameters. */
@@ -241,14 +140,6 @@ export interface CustomScaleRule {
241
140
  /** Scaler type. */
242
141
  type: string;
243
142
  }
244
- export const CustomScaleRule = /*@__PURE__*/ S.suspend(() =>
245
- S.Struct({
246
- parameters: S.optional(CustomScaleRuleParametersList),
247
- secretsMapping: S.optional(CustomScaleRuleSecretsMappingList),
248
- type: S.String,
249
- }),
250
- ).annotate({ identifier: "CustomScaleRule" }) as any as S.Schema<CustomScaleRule>;
251
-
252
143
  /** HttpScaleRule defines parameters for HTTP-based scaling. */
253
144
  export interface HttpScaleRule {
254
145
  /** Target concurrency per instance. */
@@ -256,17 +147,8 @@ export interface HttpScaleRule {
256
147
  /** Target requests per second per instance. */
257
148
  rps?: number;
258
149
  }
259
- export const HttpScaleRule = /*@__PURE__*/ S.suspend(() =>
260
- S.Struct({
261
- concurrency: S.optional(S.Number),
262
- rps: S.optional(S.Number),
263
- }),
264
- ).annotate({ identifier: "HttpScaleRule" }) as any as S.Schema<HttpScaleRule>;
265
-
266
150
  /** - RULE_TYPE_UNSPECIFIED: Used as zero value. - RULE_TYPE_HTTP: HTTP scaling rule. - RULE_TYPE_CUSTOM: Custom scaling rule (e.g. KEDA). */
267
151
  export type RuleType = "RULE_TYPE_UNSPECIFIED" | "RULE_TYPE_HTTP" | "RULE_TYPE_CUSTOM";
268
- export const RuleType = S.String;
269
-
270
152
  /** ScaleRule defines one autoscaling trigger. */
271
153
  export interface ScaleRule {
272
154
  customRule?: CustomScaleRule;
@@ -275,21 +157,8 @@ export interface ScaleRule {
275
157
  name: string;
276
158
  type: RuleType | (string & {});
277
159
  }
278
- export const ScaleRule = /*@__PURE__*/ S.suspend(() =>
279
- S.Struct({
280
- customRule: S.optional(CustomScaleRule),
281
- httpRule: S.optional(HttpScaleRule),
282
- name: S.String,
283
- type: RuleType,
284
- }),
285
- ).annotate({ identifier: "ScaleRule" }) as any as S.Schema<ScaleRule>;
286
-
287
160
  /** Scaling rules. */
288
161
  export type AutoScalingRulesList = Array<ScaleRule>;
289
- export const AutoScalingRulesList = /*@__PURE__*/ S.Array(
290
- ScaleRule,
291
- ) as any as S.Schema<AutoScalingRulesList>;
292
-
293
162
  /** AutoScaling configuration. */
294
163
  export interface AutoScaling {
295
164
  /** Allow automatically scale to zero. */
@@ -301,44 +170,19 @@ export interface AutoScaling {
301
170
  /** Scaling rules. */
302
171
  rules: AutoScalingRulesList;
303
172
  }
304
- export const AutoScaling = /*@__PURE__*/ S.suspend(() =>
305
- S.Struct({
306
- allowScaleToZero: S.optional(S.Boolean),
307
- maxInstances: S.Number,
308
- minInstances: S.Number,
309
- rules: AutoScalingRulesList,
310
- }),
311
- ).annotate({ identifier: "AutoScaling" }) as any as S.Schema<AutoScaling>;
312
-
313
173
  /** ManualScaling configuration. */
314
174
  export interface ManualScaling {
315
175
  /** Number of instances to run. */
316
176
  instances: number;
317
177
  }
318
- export const ManualScaling = /*@__PURE__*/ S.suspend(() =>
319
- S.Struct({
320
- instances: S.Number,
321
- }),
322
- ).annotate({ identifier: "ManualScaling" }) as any as S.Schema<ManualScaling>;
323
-
324
178
  /** - SCALING_TYPE_UNSPECIFIED: Used as zero value. - SCALING_TYPE_AUTO: Auto scaling based on rules. - SCALING_TYPE_MANUAL: Manual scaling with fixed number of instances. */
325
179
  export type ScalingType = "SCALING_TYPE_UNSPECIFIED" | "SCALING_TYPE_AUTO" | "SCALING_TYPE_MANUAL";
326
- export const ScalingType = S.String;
327
-
328
180
  /** Scaling configuration for the application. */
329
181
  export interface Scaling {
330
182
  autoScaling?: AutoScaling;
331
183
  manualScaling?: ManualScaling;
332
184
  type: ScalingType | (string & {});
333
185
  }
334
- export const Scaling = /*@__PURE__*/ S.suspend(() =>
335
- S.Struct({
336
- autoScaling: S.optional(AutoScaling),
337
- manualScaling: S.optional(ManualScaling),
338
- type: ScalingType,
339
- }),
340
- ).annotate({ identifier: "Scaling" }) as any as S.Schema<Scaling>;
341
-
342
186
  /** ApplicationSecret defines a single secret key-value pair. */
343
187
  export interface ApplicationSecret {
344
188
  /** Secret key. */
@@ -346,19 +190,8 @@ export interface ApplicationSecret {
346
190
  /** Secret value. Omit or set to null to keep the existing value unchanged. */
347
191
  value?: string;
348
192
  }
349
- export const ApplicationSecret = /*@__PURE__*/ S.suspend(() =>
350
- S.Struct({
351
- key: S.String,
352
- value: S.optional(S.String),
353
- }),
354
- ).annotate({ identifier: "ApplicationSecret" }) as any as S.Schema<ApplicationSecret>;
355
-
356
193
  /** Secrets associated with the application. */
357
194
  export type CreateApplicationRequestSecretsList = Array<ApplicationSecret>;
358
- export const CreateApplicationRequestSecretsList = /*@__PURE__*/ S.Array(
359
- ApplicationSecret,
360
- ) as any as S.Schema<CreateApplicationRequestSecretsList>;
361
-
362
195
  export interface CreateApplicationRequest {
363
196
  /** Project to create the application in. */
364
197
  projectId: string;
@@ -378,77 +211,26 @@ export interface CreateApplicationRequest {
378
211
  /** Indicates if the application resources are stopped. */
379
212
  stopped?: boolean;
380
213
  }
381
- export const CreateApplicationRequest = /*@__PURE__*/ S.suspend(() =>
382
- S.Struct({
383
- projectId: S.String.pipe(T.Label()),
384
- environmentId: S.String.pipe(T.Label()),
385
- containers: CreateApplicationRequestContainersList,
386
- displayName: S.String,
387
- network: S.optional(Network),
388
- registry: S.optional(CreateApplicationRequestRegistryList),
389
- runtimeStatus: S.optional(RuntimeStatusInput),
390
- scaling: Scaling,
391
- secrets: S.optional(CreateApplicationRequestSecretsList),
392
- stopped: S.optional(S.Boolean),
393
- }).pipe(
394
- T.Http({
395
- method: "POST",
396
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications",
397
- code: 200,
398
- baseUrl: "https://sca.api.{region}stackit.cloud",
399
- }),
400
- ),
401
- ).annotate({ identifier: "CreateApplicationRequest" }) as any as S.Schema<CreateApplicationRequest>;
402
-
403
214
  /** Containers to deploy for the application. */
404
215
  export type ApplicationContainersList = Array<Container>;
405
- export const ApplicationContainersList = /*@__PURE__*/ S.Array(
406
- Container,
407
- ) as any as S.Schema<ApplicationContainersList>;
408
-
409
216
  /** Image registry configuration for the application. */
410
217
  export type ApplicationRegistryList = Array<ApplicationRegistry>;
411
- export const ApplicationRegistryList = /*@__PURE__*/ S.Array(
412
- ApplicationRegistry,
413
- ) as any as S.Schema<ApplicationRegistryList>;
414
-
415
218
  /** Failure reasons collected from workload conditions. */
416
219
  export type RuntimeStatusFailureReasonsList = Array<string>;
417
- export const RuntimeStatusFailureReasonsList = /*@__PURE__*/ S.Array(
418
- S.String,
419
- ) as any as S.Schema<RuntimeStatusFailureReasonsList>;
420
-
421
220
  /** - INSTANCE_STATUS_PROGRESSING: Instance is being created. - INSTANCE_STATUS_RUNNING: Instance is available and running. - INSTANCE_STATUS_FAILED: Instance is not available and has some error. */
422
221
  export type InstanceStatus =
423
222
  | "INSTANCE_STATUS_PROGRESSING"
424
223
  | "INSTANCE_STATUS_RUNNING"
425
224
  | "INSTANCE_STATUS_FAILED";
426
- export const InstanceStatus = S.String;
427
-
428
225
  /** Application instance summary. */
429
226
  export interface Instance {
430
227
  /** Instance's name. */
431
228
  name?: string;
432
229
  status?: InstanceStatus;
433
230
  }
434
- export const Instance = /*@__PURE__*/ S.suspend(() =>
435
- S.Struct({
436
- name: S.optional(S.String),
437
- status: S.optional(InstanceStatus),
438
- }),
439
- ).annotate({ identifier: "Instance" }) as any as S.Schema<Instance>;
440
-
441
231
  export type RuntimeStatusInstancesList = Array<Instance>;
442
- export const RuntimeStatusInstancesList = /*@__PURE__*/ S.Array(
443
- Instance,
444
- ) as any as S.Schema<RuntimeStatusInstancesList>;
445
-
446
232
  /** Known URLs for the running application. */
447
233
  export type RuntimeStatusUrlsList = Array<string>;
448
- export const RuntimeStatusUrlsList = /*@__PURE__*/ S.Array(
449
- S.String,
450
- ) as any as S.Schema<RuntimeStatusUrlsList>;
451
-
452
234
  export interface RuntimeStatus {
453
235
  currentStatus?: CurrentStatus;
454
236
  /** Failure reasons collected from workload conditions. */
@@ -461,23 +243,8 @@ export interface RuntimeStatus {
461
243
  /** Known URLs for the running application. */
462
244
  urls?: RuntimeStatusUrlsList;
463
245
  }
464
- export const RuntimeStatus = /*@__PURE__*/ S.suspend(() =>
465
- S.Struct({
466
- currentStatus: S.optional(CurrentStatus),
467
- failureReasons: S.optional(RuntimeStatusFailureReasonsList),
468
- instances: S.optional(RuntimeStatusInstancesList),
469
- internalUrl: S.optional(S.String),
470
- lastDeployment: S.optional(S.String),
471
- urls: S.optional(RuntimeStatusUrlsList),
472
- }),
473
- ).annotate({ identifier: "RuntimeStatus" }) as any as S.Schema<RuntimeStatus>;
474
-
475
246
  /** Secrets associated with the application. */
476
247
  export type ApplicationSecretsList = Array<ApplicationSecret>;
477
- export const ApplicationSecretsList = /*@__PURE__*/ S.Array(
478
- ApplicationSecret,
479
- ) as any as S.Schema<ApplicationSecretsList>;
480
-
481
248
  /** Application describes a deployable multi-container workload instance. */
482
249
  export interface Application {
483
250
  /** Containers to deploy for the application. */
@@ -500,29 +267,11 @@ export interface Application {
500
267
  /** Indicates if the application resources are stopped. */
501
268
  stopped?: boolean;
502
269
  }
503
- export const Application = /*@__PURE__*/ S.suspend(() =>
504
- S.Struct({
505
- containers: ApplicationContainersList,
506
- displayName: S.String,
507
- environmentId: S.optional(S.String),
508
- environmentName: S.optional(S.String),
509
- id: S.optional(S.String),
510
- network: S.optional(Network),
511
- registry: S.optional(ApplicationRegistryList),
512
- runtimeStatus: S.optional(RuntimeStatus),
513
- scaling: Scaling,
514
- secrets: S.optional(ApplicationSecretsList),
515
- stopped: S.optional(S.Boolean),
516
- }),
517
- ).annotate({ identifier: "Application" }) as any as S.Schema<Application>;
518
-
519
270
  /** - ENVIRONMENT_STATUS_UNSPECIFIED: Used as zero value. - ENVIRONMENT_STATUS_PROGRESSING: Environment is being created. - ENVIRONMENT_STATUS_CREATED: Environment is successfully created. */
520
271
  export type EnvironmentStatus =
521
272
  | "ENVIRONMENT_STATUS_UNSPECIFIED"
522
273
  | "ENVIRONMENT_STATUS_PROGRESSING"
523
274
  | "ENVIRONMENT_STATUS_CREATED";
524
- export const EnvironmentStatus = S.String;
525
-
526
275
  export interface CreateEnvironmentRequest {
527
276
  /** Parent project resource name to create under */
528
277
  projectId: string;
@@ -530,21 +279,6 @@ export interface CreateEnvironmentRequest {
530
279
  displayName: string;
531
280
  status?: EnvironmentStatus | (string & {});
532
281
  }
533
- export const CreateEnvironmentRequest = /*@__PURE__*/ S.suspend(() =>
534
- S.Struct({
535
- projectId: S.String.pipe(T.Label()),
536
- displayName: S.String,
537
- status: S.optional(EnvironmentStatus),
538
- }).pipe(
539
- T.Http({
540
- method: "POST",
541
- uri: "/v1alpha/projects/{projectId}/environments",
542
- code: 200,
543
- baseUrl: "https://sca.api.{region}stackit.cloud",
544
- }),
545
- ),
546
- ).annotate({ identifier: "CreateEnvironmentRequest" }) as any as S.Schema<CreateEnvironmentRequest>;
547
-
548
282
  /** Environment describes an isolated container scope within a project. */
549
283
  export interface Environment {
550
284
  /** Creation date in RFC3339 format. */
@@ -557,16 +291,6 @@ export interface Environment {
557
291
  id?: string;
558
292
  status?: EnvironmentStatus;
559
293
  }
560
- export const Environment = /*@__PURE__*/ S.suspend(() =>
561
- S.Struct({
562
- createdAt: S.optional(S.String),
563
- default: S.optional(S.Boolean),
564
- displayName: S.String,
565
- id: S.optional(S.String),
566
- status: S.optional(EnvironmentStatus),
567
- }),
568
- ).annotate({ identifier: "Environment" }) as any as S.Schema<Environment>;
569
-
570
294
  export interface DeleteApplicationRequest {
571
295
  /** Project to delete the application in. */
572
296
  projectId: string;
@@ -575,21 +299,6 @@ export interface DeleteApplicationRequest {
575
299
  /** Application id to delete. */
576
300
  applicationId: string;
577
301
  }
578
- export const DeleteApplicationRequest = /*@__PURE__*/ S.suspend(() =>
579
- S.Struct({
580
- projectId: S.String.pipe(T.Label()),
581
- environmentId: S.String.pipe(T.Label()),
582
- applicationId: S.String.pipe(T.Label()),
583
- }).pipe(
584
- T.Http({
585
- method: "DELETE",
586
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",
587
- code: 200,
588
- baseUrl: "https://sca.api.{region}stackit.cloud",
589
- }),
590
- ),
591
- ).annotate({ identifier: "DeleteApplicationRequest" }) as any as S.Schema<DeleteApplicationRequest>;
592
-
593
302
  export interface GetApplicationRequest {
594
303
  /** Project to fetch the application from. */
595
304
  projectId: string;
@@ -598,21 +307,6 @@ export interface GetApplicationRequest {
598
307
  /** Application id to fetch. */
599
308
  applicationId: string;
600
309
  }
601
- export const GetApplicationRequest = /*@__PURE__*/ S.suspend(() =>
602
- S.Struct({
603
- projectId: S.String.pipe(T.Label()),
604
- environmentId: S.String.pipe(T.Label()),
605
- applicationId: S.String.pipe(T.Label()),
606
- }).pipe(
607
- T.Http({
608
- method: "GET",
609
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",
610
- code: 200,
611
- baseUrl: "https://sca.api.{region}stackit.cloud",
612
- }),
613
- ),
614
- ).annotate({ identifier: "GetApplicationRequest" }) as any as S.Schema<GetApplicationRequest>;
615
-
616
310
  export interface GetApplicationEventsRequest {
617
311
  /** Project to fetch the application from. */
618
312
  projectId: string;
@@ -621,53 +315,18 @@ export interface GetApplicationEventsRequest {
621
315
  /** Application id to fetch. */
622
316
  applicationId: string;
623
317
  }
624
- export const GetApplicationEventsRequest = /*@__PURE__*/ S.suspend(() =>
625
- S.Struct({
626
- projectId: S.String.pipe(T.Label()),
627
- environmentId: S.String.pipe(T.Label()),
628
- applicationId: S.String.pipe(T.Label()),
629
- }).pipe(
630
- T.Http({
631
- method: "GET",
632
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}/events",
633
- code: 200,
634
- baseUrl: "https://sca.api.{region}stackit.cloud",
635
- }),
636
- ),
637
- ).annotate({
638
- identifier: "GetApplicationEventsRequest",
639
- }) as any as S.Schema<GetApplicationEventsRequest>;
640
-
641
318
  /** Event defines an event line. */
642
319
  export interface Event {
643
320
  /** Event message. */
644
321
  message?: string;
645
322
  }
646
- export const Event = /*@__PURE__*/ S.suspend(() =>
647
- S.Struct({
648
- message: S.optional(S.String),
649
- }),
650
- ).annotate({ identifier: "Event" }) as any as S.Schema<Event>;
651
-
652
323
  /** Events list. */
653
324
  export type GetApplicationEventsResponseEventsList = Array<Event>;
654
- export const GetApplicationEventsResponseEventsList = /*@__PURE__*/ S.Array(
655
- Event,
656
- ) as any as S.Schema<GetApplicationEventsResponseEventsList>;
657
-
658
325
  /** GetApplicationEventsResponse contains an application's events list. */
659
326
  export interface GetApplicationEventsResponse {
660
327
  /** Events list. */
661
328
  events?: GetApplicationEventsResponseEventsList;
662
329
  }
663
- export const GetApplicationEventsResponse = /*@__PURE__*/ S.suspend(() =>
664
- S.Struct({
665
- events: S.optional(GetApplicationEventsResponseEventsList),
666
- }),
667
- ).annotate({
668
- identifier: "GetApplicationEventsResponse",
669
- }) as any as S.Schema<GetApplicationEventsResponse>;
670
-
671
330
  export interface GetApplicationLogsRequest {
672
331
  /** Project to fetch the application from. */
673
332
  projectId: string;
@@ -682,93 +341,28 @@ export interface GetApplicationLogsRequest {
682
341
  /** Get previous failed execution of the container. */
683
342
  previous?: boolean;
684
343
  }
685
- export const GetApplicationLogsRequest = /*@__PURE__*/ S.suspend(() =>
686
- S.Struct({
687
- projectId: S.String.pipe(T.Label()),
688
- environmentId: S.String.pipe(T.Label()),
689
- applicationId: S.String.pipe(T.Label()),
690
- instance: S.String.pipe(T.Query()),
691
- container: S.String.pipe(T.Query()),
692
- previous: S.optional(S.Boolean.pipe(T.Query())),
693
- }).pipe(
694
- T.Http({
695
- method: "GET",
696
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}/logs",
697
- code: 200,
698
- baseUrl: "https://sca.api.{region}stackit.cloud",
699
- }),
700
- ),
701
- ).annotate({
702
- identifier: "GetApplicationLogsRequest",
703
- }) as any as S.Schema<GetApplicationLogsRequest>;
704
-
705
344
  /** Log defines a log line. */
706
345
  export interface Log {
707
346
  /** Log message. */
708
347
  message?: string;
709
348
  }
710
- export const Log = /*@__PURE__*/ S.suspend(() =>
711
- S.Struct({
712
- message: S.optional(S.String),
713
- }),
714
- ).annotate({ identifier: "Log" }) as any as S.Schema<Log>;
715
-
716
349
  /** Logs list. */
717
350
  export type GetApplicationLogsResponseLogsList = Array<Log>;
718
- export const GetApplicationLogsResponseLogsList = /*@__PURE__*/ S.Array(
719
- Log,
720
- ) as any as S.Schema<GetApplicationLogsResponseLogsList>;
721
-
722
351
  /** GetApplicationLogsResponse contains an application's logs list. */
723
352
  export interface GetApplicationLogsResponse {
724
353
  /** Logs list. */
725
354
  logs?: GetApplicationLogsResponseLogsList;
726
355
  }
727
- export const GetApplicationLogsResponse = /*@__PURE__*/ S.suspend(() =>
728
- S.Struct({
729
- logs: S.optional(GetApplicationLogsResponseLogsList),
730
- }),
731
- ).annotate({
732
- identifier: "GetApplicationLogsResponse",
733
- }) as any as S.Schema<GetApplicationLogsResponse>;
734
-
735
356
  export interface GetEnvironmentRequest {
736
357
  /** Parent project resource name to fetch under. */
737
358
  projectId: string;
738
359
  /** Environment identifier, for example: default. */
739
360
  environmentId: string;
740
361
  }
741
- export const GetEnvironmentRequest = /*@__PURE__*/ S.suspend(() =>
742
- S.Struct({
743
- projectId: S.String.pipe(T.Label()),
744
- environmentId: S.String.pipe(T.Label()),
745
- }).pipe(
746
- T.Http({
747
- method: "GET",
748
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}",
749
- code: 200,
750
- baseUrl: "https://sca.api.{region}stackit.cloud",
751
- }),
752
- ),
753
- ).annotate({ identifier: "GetEnvironmentRequest" }) as any as S.Schema<GetEnvironmentRequest>;
754
-
755
362
  export interface GetOverviewRequest {
756
363
  /** Parent project resource name to list under. */
757
364
  projectId: string;
758
365
  }
759
- export const GetOverviewRequest = /*@__PURE__*/ S.suspend(() =>
760
- S.Struct({
761
- projectId: S.String.pipe(T.Label()),
762
- }).pipe(
763
- T.Http({
764
- method: "GET",
765
- uri: "/v1alpha/projects/{projectId}/overview",
766
- code: 200,
767
- baseUrl: "https://sca.api.{region}stackit.cloud",
768
- }),
769
- ),
770
- ).annotate({ identifier: "GetOverviewRequest" }) as any as S.Schema<GetOverviewRequest>;
771
-
772
366
  /** Summary describes the current status of a project. */
773
367
  export interface Summary {
774
368
  /** Number of applications running in a project. */
@@ -776,43 +370,16 @@ export interface Summary {
776
370
  /** Number of applications created in a project. */
777
371
  applicationsTotal?: number;
778
372
  }
779
- export const Summary = /*@__PURE__*/ S.suspend(() =>
780
- S.Struct({
781
- applicationsRunning: S.optional(S.Number),
782
- applicationsTotal: S.optional(S.Number),
783
- }),
784
- ).annotate({ identifier: "Summary" }) as any as S.Schema<Summary>;
785
-
786
373
  /** GetOverviewResponse contains a summary of the current state of the project's application. */
787
374
  export interface GetOverviewResponse {
788
375
  summary: Summary;
789
376
  }
790
- export const GetOverviewResponse = /*@__PURE__*/ S.suspend(() =>
791
- S.Struct({
792
- summary: Summary,
793
- }),
794
- ).annotate({ identifier: "GetOverviewResponse" }) as any as S.Schema<GetOverviewResponse>;
795
-
796
377
  export interface ListApplicationsRequest {
797
378
  /** Project to list the applications in. */
798
379
  projectId: string;
799
380
  /** environment to list the applications in. */
800
381
  environmentId: string;
801
382
  }
802
- export const ListApplicationsRequest = /*@__PURE__*/ S.suspend(() =>
803
- S.Struct({
804
- projectId: S.String.pipe(T.Label()),
805
- environmentId: S.String.pipe(T.Label()),
806
- }).pipe(
807
- T.Http({
808
- method: "GET",
809
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications",
810
- code: 200,
811
- baseUrl: "https://sca.api.{region}stackit.cloud",
812
- }),
813
- ),
814
- ).annotate({ identifier: "ListApplicationsRequest" }) as any as S.Schema<ListApplicationsRequest>;
815
-
816
383
  /** ApplicationSummary describes a summary of an application. */
817
384
  export interface ApplicationSummary {
818
385
  /** Number of containers. */
@@ -839,57 +406,17 @@ export interface ApplicationSummary {
839
406
  /** Application's published URL. */
840
407
  url?: string;
841
408
  }
842
- export const ApplicationSummary = /*@__PURE__*/ S.suspend(() =>
843
- S.Struct({
844
- containers: S.optional(S.Number),
845
- createdAt: S.optional(S.String),
846
- displayName: S.optional(S.String),
847
- environmentId: S.optional(S.String),
848
- environmentName: S.optional(S.String),
849
- id: S.optional(S.String),
850
- instances: S.optional(S.Number),
851
- internalUrl: S.optional(S.String),
852
- lastDeployment: S.optional(S.String),
853
- status: S.optional(CurrentStatus),
854
- stopped: S.optional(S.Boolean),
855
- url: S.optional(S.String),
856
- }),
857
- ).annotate({ identifier: "ApplicationSummary" }) as any as S.Schema<ApplicationSummary>;
858
-
859
409
  /** Applications under the requested parent. */
860
410
  export type ListApplicationsResponseItemsList = Array<ApplicationSummary>;
861
- export const ListApplicationsResponseItemsList = /*@__PURE__*/ S.Array(
862
- ApplicationSummary,
863
- ) as any as S.Schema<ListApplicationsResponseItemsList>;
864
-
865
411
  /** ListApplicationsResponse contains applications and pagination metadata. */
866
412
  export interface ListApplicationsResponse {
867
413
  /** Applications under the requested parent. */
868
414
  items?: ListApplicationsResponseItemsList;
869
415
  }
870
- export const ListApplicationsResponse = /*@__PURE__*/ S.suspend(() =>
871
- S.Struct({
872
- items: S.optional(ListApplicationsResponseItemsList),
873
- }),
874
- ).annotate({ identifier: "ListApplicationsResponse" }) as any as S.Schema<ListApplicationsResponse>;
875
-
876
416
  export interface ListEnvironmentsRequest {
877
417
  /** Parent project resource name to list under. */
878
418
  projectId: string;
879
419
  }
880
- export const ListEnvironmentsRequest = /*@__PURE__*/ S.suspend(() =>
881
- S.Struct({
882
- projectId: S.String.pipe(T.Label()),
883
- }).pipe(
884
- T.Http({
885
- method: "GET",
886
- uri: "/v1alpha/projects/{projectId}/environments",
887
- code: 200,
888
- baseUrl: "https://sca.api.{region}stackit.cloud",
889
- }),
890
- ),
891
- ).annotate({ identifier: "ListEnvironmentsRequest" }) as any as S.Schema<ListEnvironmentsRequest>;
892
-
893
420
  /** Environment summary. */
894
421
  export interface EnvironmentSummary {
895
422
  /** Amount of applications in the environment. */
@@ -903,70 +430,23 @@ export interface EnvironmentSummary {
903
430
  /** Environment identifier, for example: default. */
904
431
  id?: string;
905
432
  }
906
- export const EnvironmentSummary = /*@__PURE__*/ S.suspend(() =>
907
- S.Struct({
908
- applicationsNumber: S.optional(S.Number),
909
- createdAt: S.optional(S.String),
910
- default: S.optional(S.Boolean),
911
- displayName: S.optional(S.String),
912
- id: S.optional(S.String),
913
- }),
914
- ).annotate({ identifier: "EnvironmentSummary" }) as any as S.Schema<EnvironmentSummary>;
915
-
916
433
  /** Environments under the requested parent. */
917
434
  export type ListEnvironmentsResponseItemsList = Array<EnvironmentSummary>;
918
- export const ListEnvironmentsResponseItemsList = /*@__PURE__*/ S.Array(
919
- EnvironmentSummary,
920
- ) as any as S.Schema<ListEnvironmentsResponseItemsList>;
921
-
922
435
  /** ListEnvironmentsResponse contains environments and pagination metadata. */
923
436
  export interface ListEnvironmentsResponse {
924
437
  /** Environments under the requested parent. */
925
438
  items?: ListEnvironmentsResponseItemsList;
926
439
  }
927
- export const ListEnvironmentsResponse = /*@__PURE__*/ S.suspend(() =>
928
- S.Struct({
929
- items: S.optional(ListEnvironmentsResponseItemsList),
930
- }),
931
- ).annotate({ identifier: "ListEnvironmentsResponse" }) as any as S.Schema<ListEnvironmentsResponse>;
932
-
933
440
  export interface ListProjectApplicationsRequest {
934
441
  /** Project to list the applications in. */
935
442
  projectId: string;
936
443
  }
937
- export const ListProjectApplicationsRequest = /*@__PURE__*/ S.suspend(() =>
938
- S.Struct({
939
- projectId: S.String.pipe(T.Label()),
940
- }).pipe(
941
- T.Http({
942
- method: "GET",
943
- uri: "/v1alpha/projects/{projectId}/applications",
944
- code: 200,
945
- baseUrl: "https://sca.api.{region}stackit.cloud",
946
- }),
947
- ),
948
- ).annotate({
949
- identifier: "ListProjectApplicationsRequest",
950
- }) as any as S.Schema<ListProjectApplicationsRequest>;
951
-
952
444
  /** Containers to deploy for the application. */
953
445
  export type UpdateApplicationRequestContainersList = Array<Container>;
954
- export const UpdateApplicationRequestContainersList = /*@__PURE__*/ S.Array(
955
- Container,
956
- ) as any as S.Schema<UpdateApplicationRequestContainersList>;
957
-
958
446
  /** Image registry configuration for the application. */
959
447
  export type UpdateApplicationRequestRegistryList = Array<ApplicationRegistry>;
960
- export const UpdateApplicationRequestRegistryList = /*@__PURE__*/ S.Array(
961
- ApplicationRegistry,
962
- ) as any as S.Schema<UpdateApplicationRequestRegistryList>;
963
-
964
448
  /** Secrets associated with the application. */
965
449
  export type UpdateApplicationRequestSecretsList = Array<ApplicationSecret>;
966
- export const UpdateApplicationRequestSecretsList = /*@__PURE__*/ S.Array(
967
- ApplicationSecret,
968
- ) as any as S.Schema<UpdateApplicationRequestSecretsList>;
969
-
970
450
  export interface UpdateApplicationRequest {
971
451
  /** Project to update the application in. */
972
452
  projectId: string;
@@ -985,27 +465,6 @@ export interface UpdateApplicationRequest {
985
465
  /** Indicates if the application resources are stopped. */
986
466
  stopped?: boolean;
987
467
  }
988
- export const UpdateApplicationRequest = /*@__PURE__*/ S.suspend(() =>
989
- S.Struct({
990
- projectId: S.String.pipe(T.Label()),
991
- environmentId: S.String.pipe(T.Label()),
992
- applicationId: S.String.pipe(T.Label()),
993
- containers: S.optional(UpdateApplicationRequestContainersList),
994
- network: S.optional(Network),
995
- registry: S.optional(UpdateApplicationRequestRegistryList),
996
- scaling: S.optional(Scaling),
997
- secrets: S.optional(UpdateApplicationRequestSecretsList),
998
- stopped: S.optional(S.Boolean),
999
- }).pipe(
1000
- T.Http({
1001
- method: "PATCH",
1002
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",
1003
- code: 200,
1004
- baseUrl: "https://sca.api.{region}stackit.cloud",
1005
- }),
1006
- ),
1007
- ).annotate({ identifier: "UpdateApplicationRequest" }) as any as S.Schema<UpdateApplicationRequest>;
1008
-
1009
468
  export type CreateApplicationError = BadRequest | Conflict | StackitOpError;
1010
469
  /** Creates a new application within a environment. */
1011
470
  export const createApplication: API.OperationMethod<
@@ -1014,8 +473,8 @@ export const createApplication: API.OperationMethod<
1014
473
  CreateApplicationError,
1015
474
  StackitOpContext
1016
475
  > = /*@__PURE__*/ API.make(() => ({
1017
- input: CreateApplicationRequest,
1018
- output: Application,
476
+ input: __S(193, __c6, 1) as any as S.Schema<CreateApplicationRequest>,
477
+ output: __S(249, __c7, 25) as any as S.Schema<Application>,
1019
478
  errors: [BadRequest, Conflict, UnknownStackitError],
1020
479
  protocol: StackitProtocol,
1021
480
  retry: Retry.Retry,
@@ -1029,8 +488,8 @@ export const createEnvironment: API.OperationMethod<
1029
488
  CreateEnvironmentError,
1030
489
  StackitOpContext
1031
490
  > = /*@__PURE__*/ API.make(() => ({
1032
- input: CreateEnvironmentRequest,
1033
- output: Environment,
491
+ input: __S(256, __c8, 0) as any as S.Schema<CreateEnvironmentRequest>,
492
+ output: __S(288, __c9, 0) as any as S.Schema<Environment>,
1034
493
  errors: [BadRequest, Conflict, UnknownStackitError],
1035
494
  protocol: StackitProtocol,
1036
495
  retry: Retry.Retry,
@@ -1044,8 +503,8 @@ export const deleteApplication: API.OperationMethod<
1044
503
  DeleteApplicationError,
1045
504
  StackitOpContext
1046
505
  > = /*@__PURE__*/ API.make(() => ({
1047
- input: DeleteApplicationRequest,
1048
- output: Application,
506
+ input: __S(320, __c10, 0) as any as S.Schema<DeleteApplicationRequest>,
507
+ output: __S(249, __c7, 25) as any as S.Schema<Application>,
1049
508
  errors: [NotFound, UnknownStackitError],
1050
509
  protocol: StackitProtocol,
1051
510
  retry: Retry.Retry,
@@ -1059,8 +518,8 @@ export const getApplication: API.OperationMethod<
1059
518
  GetApplicationError,
1060
519
  StackitOpContext
1061
520
  > = /*@__PURE__*/ API.make(() => ({
1062
- input: GetApplicationRequest,
1063
- output: Application,
521
+ input: __S(352, __c11, 0) as any as S.Schema<GetApplicationRequest>,
522
+ output: __S(249, __c7, 25) as any as S.Schema<Application>,
1064
523
  errors: [NotFound, UnknownStackitError],
1065
524
  protocol: StackitProtocol,
1066
525
  retry: Retry.Retry,
@@ -1074,8 +533,8 @@ export const getApplicationEvents: API.OperationMethod<
1074
533
  GetApplicationEventsError,
1075
534
  StackitOpContext
1076
535
  > = /*@__PURE__*/ API.make(() => ({
1077
- input: GetApplicationEventsRequest,
1078
- output: GetApplicationEventsResponse,
536
+ input: __S(384, __c12, 0) as any as S.Schema<GetApplicationEventsRequest>,
537
+ output: __S(385, __c12, 1) as any as S.Schema<GetApplicationEventsResponse>,
1079
538
  errors: [NotFound, UnknownStackitError],
1080
539
  protocol: StackitProtocol,
1081
540
  retry: Retry.Retry,
@@ -1089,8 +548,8 @@ export const getApplicationLogs: API.OperationMethod<
1089
548
  GetApplicationLogsError,
1090
549
  StackitOpContext
1091
550
  > = /*@__PURE__*/ API.make(() => ({
1092
- input: GetApplicationLogsRequest,
1093
- output: GetApplicationLogsResponse,
551
+ input: __S(448, __c14, 0) as any as S.Schema<GetApplicationLogsRequest>,
552
+ output: __S(449, __c14, 1) as any as S.Schema<GetApplicationLogsResponse>,
1094
553
  errors: [BadRequest, NotFound, UnknownStackitError],
1095
554
  protocol: StackitProtocol,
1096
555
  retry: Retry.Retry,
@@ -1104,8 +563,8 @@ export const getEnvironment: API.OperationMethod<
1104
563
  GetEnvironmentError,
1105
564
  StackitOpContext
1106
565
  > = /*@__PURE__*/ API.make(() => ({
1107
- input: GetEnvironmentRequest,
1108
- output: Environment,
566
+ input: __S(480, __c15, 0) as any as S.Schema<GetEnvironmentRequest>,
567
+ output: __S(288, __c9, 0) as any as S.Schema<Environment>,
1109
568
  errors: [NotFound, UnknownStackitError],
1110
569
  protocol: StackitProtocol,
1111
570
  retry: Retry.Retry,
@@ -1119,8 +578,8 @@ export const getOverview: API.OperationMethod<
1119
578
  GetOverviewError,
1120
579
  StackitOpContext
1121
580
  > = /*@__PURE__*/ API.make(() => ({
1122
- input: GetOverviewRequest,
1123
- output: GetOverviewResponse,
581
+ input: __S(0, __c0, 0) as any as S.Schema<GetOverviewRequest>,
582
+ output: __S(2, __c0, 2) as any as S.Schema<GetOverviewResponse>,
1124
583
  errors: [UnknownStackitError],
1125
584
  protocol: StackitProtocol,
1126
585
  retry: Retry.Retry,
@@ -1134,8 +593,8 @@ export const listApplications: API.OperationMethod<
1134
593
  ListApplicationsError,
1135
594
  StackitOpContext
1136
595
  > = /*@__PURE__*/ API.make(() => ({
1137
- input: ListApplicationsRequest,
1138
- output: ListApplicationsResponse,
596
+ input: __S(32, __c1, 0) as any as S.Schema<ListApplicationsRequest>,
597
+ output: __S(66, __c2, 2) as any as S.Schema<ListApplicationsResponse>,
1139
598
  errors: [BadRequest, UnknownStackitError],
1140
599
  protocol: StackitProtocol,
1141
600
  retry: Retry.Retry,
@@ -1149,8 +608,8 @@ export const listEnvironments: API.OperationMethod<
1149
608
  ListEnvironmentsError,
1150
609
  StackitOpContext
1151
610
  > = /*@__PURE__*/ API.make(() => ({
1152
- input: ListEnvironmentsRequest,
1153
- output: ListEnvironmentsResponse,
611
+ input: __S(96, __c3, 0) as any as S.Schema<ListEnvironmentsRequest>,
612
+ output: __S(99, __c3, 3) as any as S.Schema<ListEnvironmentsResponse>,
1154
613
  errors: [BadRequest, UnknownStackitError],
1155
614
  protocol: StackitProtocol,
1156
615
  retry: Retry.Retry,
@@ -1164,8 +623,8 @@ export const listProjectApplications: API.OperationMethod<
1164
623
  ListProjectApplicationsError,
1165
624
  StackitOpContext
1166
625
  > = /*@__PURE__*/ API.make(() => ({
1167
- input: ListProjectApplicationsRequest,
1168
- output: ListApplicationsResponse,
626
+ input: __S(128, __c4, 0) as any as S.Schema<ListProjectApplicationsRequest>,
627
+ output: __S(66, __c2, 2) as any as S.Schema<ListApplicationsResponse>,
1169
628
  errors: [BadRequest, UnknownStackitError],
1170
629
  protocol: StackitProtocol,
1171
630
  retry: Retry.Retry,
@@ -1179,9 +638,523 @@ export const updateApplication: API.OperationMethod<
1179
638
  UpdateApplicationError,
1180
639
  StackitOpContext
1181
640
  > = /*@__PURE__*/ API.make(() => ({
1182
- input: UpdateApplicationRequest,
1183
- output: Application,
641
+ input: __S(160, __c5, 0) as any as S.Schema<UpdateApplicationRequest>,
642
+ output: __S(249, __c7, 25) as any as S.Schema<Application>,
1184
643
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1185
644
  protocol: StackitProtocol,
1186
645
  retry: Retry.Retry,
1187
646
  }));
647
+
648
+ // Schema builders: each runs one schema initializer, on that schema's first use.
649
+ function __c0(j: number): any {
650
+ switch (j) {
651
+ case 0:
652
+ return S.suspend(() =>
653
+ S.Struct({
654
+ projectId: S.String.pipe(T.Label()),
655
+ }).pipe(
656
+ T.Http({
657
+ method: "GET",
658
+ uri: "/v1alpha/projects/{projectId}/overview",
659
+ code: 200,
660
+ baseUrl: "https://sca.api.{region}stackit.cloud",
661
+ }),
662
+ ),
663
+ ).annotate({ identifier: "GetOverviewRequest" });
664
+ case 1:
665
+ return S.suspend(() =>
666
+ S.Struct({
667
+ applicationsRunning: S.optional(S.Number),
668
+ applicationsTotal: S.optional(S.Number),
669
+ }),
670
+ ).annotate({ identifier: "Summary" });
671
+ case 2:
672
+ return S.suspend(() =>
673
+ S.Struct({
674
+ summary: __S(1, __c0, 1),
675
+ }),
676
+ ).annotate({ identifier: "GetOverviewResponse" });
677
+ }
678
+ }
679
+ function __c1(j: number): any {
680
+ switch (j) {
681
+ case 0:
682
+ return S.suspend(() =>
683
+ S.Struct({
684
+ projectId: S.String.pipe(T.Label()),
685
+ environmentId: S.String.pipe(T.Label()),
686
+ }).pipe(
687
+ T.Http({
688
+ method: "GET",
689
+ uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications",
690
+ code: 200,
691
+ baseUrl: "https://sca.api.{region}stackit.cloud",
692
+ }),
693
+ ),
694
+ ).annotate({ identifier: "ListApplicationsRequest" });
695
+ }
696
+ }
697
+ function __c2(j: number): any {
698
+ switch (j) {
699
+ case 0:
700
+ return S.suspend(() =>
701
+ S.Struct({
702
+ containers: S.optional(S.Number),
703
+ createdAt: S.optional(S.String),
704
+ displayName: S.optional(S.String),
705
+ environmentId: S.optional(S.String),
706
+ environmentName: S.optional(S.String),
707
+ id: S.optional(S.String),
708
+ instances: S.optional(S.Number),
709
+ internalUrl: S.optional(S.String),
710
+ lastDeployment: S.optional(S.String),
711
+ status: S.optional(S.String),
712
+ stopped: S.optional(S.Boolean),
713
+ url: S.optional(S.String),
714
+ }),
715
+ ).annotate({ identifier: "ApplicationSummary" });
716
+ case 1:
717
+ return S.Array(__S(64, __c2, 0));
718
+ case 2:
719
+ return S.suspend(() =>
720
+ S.Struct({
721
+ items: S.optional(__S(65, __c2, 1)),
722
+ }),
723
+ ).annotate({ identifier: "ListApplicationsResponse" });
724
+ }
725
+ }
726
+ function __c3(j: number): any {
727
+ switch (j) {
728
+ case 0:
729
+ return S.suspend(() =>
730
+ S.Struct({
731
+ projectId: S.String.pipe(T.Label()),
732
+ }).pipe(
733
+ T.Http({
734
+ method: "GET",
735
+ uri: "/v1alpha/projects/{projectId}/environments",
736
+ code: 200,
737
+ baseUrl: "https://sca.api.{region}stackit.cloud",
738
+ }),
739
+ ),
740
+ ).annotate({ identifier: "ListEnvironmentsRequest" });
741
+ case 1:
742
+ return S.suspend(() =>
743
+ S.Struct({
744
+ applicationsNumber: S.optional(S.Number),
745
+ createdAt: S.optional(S.String),
746
+ default: S.optional(S.Boolean),
747
+ displayName: S.optional(S.String),
748
+ id: S.optional(S.String),
749
+ }),
750
+ ).annotate({ identifier: "EnvironmentSummary" });
751
+ case 2:
752
+ return S.Array(__S(97, __c3, 1));
753
+ case 3:
754
+ return S.suspend(() =>
755
+ S.Struct({
756
+ items: S.optional(__S(98, __c3, 2)),
757
+ }),
758
+ ).annotate({ identifier: "ListEnvironmentsResponse" });
759
+ }
760
+ }
761
+ function __c4(j: number): any {
762
+ switch (j) {
763
+ case 0:
764
+ return S.suspend(() =>
765
+ S.Struct({
766
+ projectId: S.String.pipe(T.Label()),
767
+ }).pipe(
768
+ T.Http({
769
+ method: "GET",
770
+ uri: "/v1alpha/projects/{projectId}/applications",
771
+ code: 200,
772
+ baseUrl: "https://sca.api.{region}stackit.cloud",
773
+ }),
774
+ ),
775
+ ).annotate({ identifier: "ListProjectApplicationsRequest" });
776
+ }
777
+ }
778
+ function __c5(j: number): any {
779
+ switch (j) {
780
+ case 0:
781
+ return S.suspend(() =>
782
+ S.Struct({
783
+ projectId: S.String.pipe(T.Label()),
784
+ environmentId: S.String.pipe(T.Label()),
785
+ applicationId: S.String.pipe(T.Label()),
786
+ containers: S.optional(__S(228, __c7, 4)),
787
+ network: S.optional(__S(229, __c7, 5)),
788
+ registry: S.optional(__S(232, __c7, 8)),
789
+ scaling: S.optional(__S(243, __c7, 19)),
790
+ secrets: S.optional(__S(245, __c7, 21)),
791
+ stopped: S.optional(S.Boolean),
792
+ }).pipe(
793
+ T.Http({
794
+ method: "PATCH",
795
+ uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",
796
+ code: 200,
797
+ baseUrl: "https://sca.api.{region}stackit.cloud",
798
+ }),
799
+ ),
800
+ ).annotate({ identifier: "UpdateApplicationRequest" });
801
+ }
802
+ }
803
+ function __c6(j: number): any {
804
+ switch (j) {
805
+ case 0:
806
+ return S.suspend(() =>
807
+ S.Struct({
808
+ currentStatus: S.optional(S.String),
809
+ }),
810
+ ).annotate({ identifier: "RuntimeStatusInput" });
811
+ case 1:
812
+ return S.suspend(() =>
813
+ S.Struct({
814
+ projectId: S.String.pipe(T.Label()),
815
+ environmentId: S.String.pipe(T.Label()),
816
+ containers: __S(228, __c7, 4),
817
+ displayName: S.String,
818
+ network: S.optional(__S(229, __c7, 5)),
819
+ registry: S.optional(__S(232, __c7, 8)),
820
+ runtimeStatus: S.optional(__S(192, __c6, 0)),
821
+ scaling: __S(243, __c7, 19),
822
+ secrets: S.optional(__S(245, __c7, 21)),
823
+ stopped: S.optional(S.Boolean),
824
+ }).pipe(
825
+ T.Http({
826
+ method: "POST",
827
+ uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications",
828
+ code: 200,
829
+ baseUrl: "https://sca.api.{region}stackit.cloud",
830
+ }),
831
+ ),
832
+ ).annotate({ identifier: "CreateApplicationRequest" });
833
+ }
834
+ }
835
+ function __c7(j: number): any {
836
+ switch (j) {
837
+ case 0:
838
+ return S.Array(S.String);
839
+ case 1:
840
+ return S.suspend(() =>
841
+ S.Struct({
842
+ key: S.String,
843
+ origin: S.optional(S.String),
844
+ value: S.String,
845
+ }),
846
+ ).annotate({ identifier: "EnvVar" });
847
+ case 2:
848
+ return S.Array(__S(225, __c7, 1));
849
+ case 3:
850
+ return S.suspend(() =>
851
+ S.Struct({
852
+ args: S.optional(__S(224, __c7, 0)),
853
+ command: S.optional(__S(224, __c7, 0)),
854
+ cpu: S.optional(S.Number),
855
+ environmentVariables: S.optional(__S(226, __c7, 2)),
856
+ image: S.String,
857
+ memory: S.optional(S.Number),
858
+ name: S.String,
859
+ }),
860
+ ).annotate({ identifier: "Container" });
861
+ case 4:
862
+ return S.Array(__S(227, __c7, 3));
863
+ case 5:
864
+ return S.suspend(() =>
865
+ S.Struct({
866
+ ingressAcl: S.optional(__S(224, __c7, 0)),
867
+ internalPort: S.optional(S.Number),
868
+ port: S.optional(S.Number),
869
+ publicIngress: S.optional(S.Boolean),
870
+ }),
871
+ ).annotate({ identifier: "Network" });
872
+ case 6:
873
+ return S.suspend(() =>
874
+ S.Struct({
875
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
876
+ url: S.String,
877
+ user: S.String,
878
+ }),
879
+ ).annotate({ identifier: "ApplicationRegistryCredentialsAuth" });
880
+ case 7:
881
+ return S.suspend(() =>
882
+ S.Struct({
883
+ credentials: S.optional(__S(230, __c7, 6)),
884
+ type: S.String,
885
+ }),
886
+ ).annotate({ identifier: "ApplicationRegistry" });
887
+ case 8:
888
+ return S.Array(__S(231, __c7, 7));
889
+ case 9:
890
+ return S.suspend(() =>
891
+ S.Struct({
892
+ name: S.String,
893
+ value: S.String,
894
+ }),
895
+ ).annotate({ identifier: "CustomRuleParameter" });
896
+ case 10:
897
+ return S.Array(__S(233, __c7, 9));
898
+ case 11:
899
+ return S.suspend(() =>
900
+ S.Struct({
901
+ parameter: S.String,
902
+ secret: S.String.pipe(T.SensitiveValue({})),
903
+ }),
904
+ ).annotate({ identifier: "CustomRuleSecretMapping" });
905
+ case 12:
906
+ return S.Array(__S(235, __c7, 11));
907
+ case 13:
908
+ return S.suspend(() =>
909
+ S.Struct({
910
+ parameters: S.optional(__S(234, __c7, 10)),
911
+ secretsMapping: S.optional(__S(236, __c7, 12)),
912
+ type: S.String,
913
+ }),
914
+ ).annotate({ identifier: "CustomScaleRule" });
915
+ case 14:
916
+ return S.suspend(() =>
917
+ S.Struct({
918
+ concurrency: S.optional(S.Number),
919
+ rps: S.optional(S.Number),
920
+ }),
921
+ ).annotate({ identifier: "HttpScaleRule" });
922
+ case 15:
923
+ return S.suspend(() =>
924
+ S.Struct({
925
+ customRule: S.optional(__S(237, __c7, 13)),
926
+ httpRule: S.optional(__S(238, __c7, 14)),
927
+ name: S.String,
928
+ type: S.String,
929
+ }),
930
+ ).annotate({ identifier: "ScaleRule" });
931
+ case 16:
932
+ return S.Array(__S(239, __c7, 15));
933
+ case 17:
934
+ return S.suspend(() =>
935
+ S.Struct({
936
+ allowScaleToZero: S.optional(S.Boolean),
937
+ maxInstances: S.Number,
938
+ minInstances: S.Number,
939
+ rules: __S(240, __c7, 16),
940
+ }),
941
+ ).annotate({ identifier: "AutoScaling" });
942
+ case 18:
943
+ return S.suspend(() =>
944
+ S.Struct({
945
+ instances: S.Number,
946
+ }),
947
+ ).annotate({ identifier: "ManualScaling" });
948
+ case 19:
949
+ return S.suspend(() =>
950
+ S.Struct({
951
+ autoScaling: S.optional(__S(241, __c7, 17)),
952
+ manualScaling: S.optional(__S(242, __c7, 18)),
953
+ type: S.String,
954
+ }),
955
+ ).annotate({ identifier: "Scaling" });
956
+ case 20:
957
+ return S.suspend(() =>
958
+ S.Struct({
959
+ key: S.String,
960
+ value: S.optional(S.String),
961
+ }),
962
+ ).annotate({ identifier: "ApplicationSecret" });
963
+ case 21:
964
+ return S.Array(__S(244, __c7, 20));
965
+ case 22:
966
+ return S.suspend(() =>
967
+ S.Struct({
968
+ name: S.optional(S.String),
969
+ status: S.optional(S.String),
970
+ }),
971
+ ).annotate({ identifier: "Instance" });
972
+ case 23:
973
+ return S.Array(__S(246, __c7, 22));
974
+ case 24:
975
+ return S.suspend(() =>
976
+ S.Struct({
977
+ currentStatus: S.optional(S.String),
978
+ failureReasons: S.optional(__S(224, __c7, 0)),
979
+ instances: S.optional(__S(247, __c7, 23)),
980
+ internalUrl: S.optional(S.String),
981
+ lastDeployment: S.optional(S.String),
982
+ urls: S.optional(__S(224, __c7, 0)),
983
+ }),
984
+ ).annotate({ identifier: "RuntimeStatus" });
985
+ case 25:
986
+ return S.suspend(() =>
987
+ S.Struct({
988
+ containers: __S(228, __c7, 4),
989
+ displayName: S.String,
990
+ environmentId: S.optional(S.String),
991
+ environmentName: S.optional(S.String),
992
+ id: S.optional(S.String),
993
+ network: S.optional(__S(229, __c7, 5)),
994
+ registry: S.optional(__S(232, __c7, 8)),
995
+ runtimeStatus: S.optional(__S(248, __c7, 24)),
996
+ scaling: __S(243, __c7, 19),
997
+ secrets: S.optional(__S(245, __c7, 21)),
998
+ stopped: S.optional(S.Boolean),
999
+ }),
1000
+ ).annotate({ identifier: "Application" });
1001
+ }
1002
+ }
1003
+ function __c8(j: number): any {
1004
+ switch (j) {
1005
+ case 0:
1006
+ return S.suspend(() =>
1007
+ S.Struct({
1008
+ projectId: S.String.pipe(T.Label()),
1009
+ displayName: S.String,
1010
+ status: S.optional(S.String),
1011
+ }).pipe(
1012
+ T.Http({
1013
+ method: "POST",
1014
+ uri: "/v1alpha/projects/{projectId}/environments",
1015
+ code: 200,
1016
+ baseUrl: "https://sca.api.{region}stackit.cloud",
1017
+ }),
1018
+ ),
1019
+ ).annotate({ identifier: "CreateEnvironmentRequest" });
1020
+ }
1021
+ }
1022
+ function __c9(j: number): any {
1023
+ switch (j) {
1024
+ case 0:
1025
+ return S.suspend(() =>
1026
+ S.Struct({
1027
+ createdAt: S.optional(S.String),
1028
+ default: S.optional(S.Boolean),
1029
+ displayName: S.String,
1030
+ id: S.optional(S.String),
1031
+ status: S.optional(S.String),
1032
+ }),
1033
+ ).annotate({ identifier: "Environment" });
1034
+ }
1035
+ }
1036
+ function __c10(j: number): any {
1037
+ switch (j) {
1038
+ case 0:
1039
+ return S.suspend(() =>
1040
+ S.Struct({
1041
+ projectId: S.String.pipe(T.Label()),
1042
+ environmentId: S.String.pipe(T.Label()),
1043
+ applicationId: S.String.pipe(T.Label()),
1044
+ }).pipe(
1045
+ T.Http({
1046
+ method: "DELETE",
1047
+ uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",
1048
+ code: 200,
1049
+ baseUrl: "https://sca.api.{region}stackit.cloud",
1050
+ }),
1051
+ ),
1052
+ ).annotate({ identifier: "DeleteApplicationRequest" });
1053
+ }
1054
+ }
1055
+ function __c11(j: number): any {
1056
+ switch (j) {
1057
+ case 0:
1058
+ return S.suspend(() =>
1059
+ S.Struct({
1060
+ projectId: S.String.pipe(T.Label()),
1061
+ environmentId: S.String.pipe(T.Label()),
1062
+ applicationId: S.String.pipe(T.Label()),
1063
+ }).pipe(
1064
+ T.Http({
1065
+ method: "GET",
1066
+ uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",
1067
+ code: 200,
1068
+ baseUrl: "https://sca.api.{region}stackit.cloud",
1069
+ }),
1070
+ ),
1071
+ ).annotate({ identifier: "GetApplicationRequest" });
1072
+ }
1073
+ }
1074
+ function __c12(j: number): any {
1075
+ switch (j) {
1076
+ case 0:
1077
+ return S.suspend(() =>
1078
+ S.Struct({
1079
+ projectId: S.String.pipe(T.Label()),
1080
+ environmentId: S.String.pipe(T.Label()),
1081
+ applicationId: S.String.pipe(T.Label()),
1082
+ }).pipe(
1083
+ T.Http({
1084
+ method: "GET",
1085
+ uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}/events",
1086
+ code: 200,
1087
+ baseUrl: "https://sca.api.{region}stackit.cloud",
1088
+ }),
1089
+ ),
1090
+ ).annotate({ identifier: "GetApplicationEventsRequest" });
1091
+ case 1:
1092
+ return S.suspend(() =>
1093
+ S.Struct({
1094
+ events: S.optional(__S(417, __c13, 1)),
1095
+ }),
1096
+ ).annotate({ identifier: "GetApplicationEventsResponse" });
1097
+ }
1098
+ }
1099
+ function __c13(j: number): any {
1100
+ switch (j) {
1101
+ case 0:
1102
+ return S.suspend(() =>
1103
+ S.Struct({
1104
+ message: S.optional(S.String),
1105
+ }),
1106
+ ).annotate({ identifier: "Event" });
1107
+ case 1:
1108
+ return S.Array(__S(416, __c13, 0));
1109
+ }
1110
+ }
1111
+ function __c14(j: number): any {
1112
+ switch (j) {
1113
+ case 0:
1114
+ return S.suspend(() =>
1115
+ S.Struct({
1116
+ projectId: S.String.pipe(T.Label()),
1117
+ environmentId: S.String.pipe(T.Label()),
1118
+ applicationId: S.String.pipe(T.Label()),
1119
+ instance: S.String.pipe(T.Query()),
1120
+ container: S.String.pipe(T.Query()),
1121
+ previous: S.optional(S.Boolean.pipe(T.Query())),
1122
+ }).pipe(
1123
+ T.Http({
1124
+ method: "GET",
1125
+ uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}/logs",
1126
+ code: 200,
1127
+ baseUrl: "https://sca.api.{region}stackit.cloud",
1128
+ }),
1129
+ ),
1130
+ ).annotate({ identifier: "GetApplicationLogsRequest" });
1131
+ case 1:
1132
+ return S.suspend(() =>
1133
+ S.Struct({
1134
+ logs: S.optional(__S(417, __c13, 1)),
1135
+ }),
1136
+ ).annotate({ identifier: "GetApplicationLogsResponse" });
1137
+ }
1138
+ }
1139
+ function __c15(j: number): any {
1140
+ switch (j) {
1141
+ case 0:
1142
+ return S.suspend(() =>
1143
+ S.Struct({
1144
+ projectId: S.String.pipe(T.Label()),
1145
+ environmentId: S.String.pipe(T.Label()),
1146
+ }).pipe(
1147
+ T.Http({
1148
+ method: "GET",
1149
+ uri: "/v1alpha/projects/{projectId}/environments/{environmentId}",
1150
+ code: 200,
1151
+ baseUrl: "https://sca.api.{region}stackit.cloud",
1152
+ }),
1153
+ ),
1154
+ ).annotate({ identifier: "GetEnvironmentRequest" });
1155
+ }
1156
+ }
1157
+ // Schema table: entry i is schema j of builder f, made on first reach.
1158
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1159
+ return (__s[i] ??= __L.at(f, j));
1160
+ }