@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.13

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