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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +32 -28
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +13 -13
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +16 -16
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +22 -22
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +15 -15
  13. package/lib/protocol.d.ts +3 -3
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +31 -29
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +24 -23
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/alb.d.ts +10 -87
  22. package/lib/services/alb.d.ts.map +1 -1
  23. package/lib/services/alb.js +73 -502
  24. package/lib/services/alb_waf.d.ts +9 -82
  25. package/lib/services/alb_waf.d.ts.map +1 -1
  26. package/lib/services/alb_waf.js +84 -510
  27. package/lib/services/authorization.d.ts +5 -47
  28. package/lib/services/authorization.d.ts.map +1 -1
  29. package/lib/services/authorization.js +67 -314
  30. package/lib/services/automation.d.ts +7 -47
  31. package/lib/services/automation.d.ts.map +1 -1
  32. package/lib/services/automation.js +58 -353
  33. package/lib/services/cdn.d.ts +8 -220
  34. package/lib/services/cdn.d.ts.map +1 -1
  35. package/lib/services/cdn.js +81 -896
  36. package/lib/services/certificates.d.ts +8 -27
  37. package/lib/services/certificates.d.ts.map +1 -1
  38. package/lib/services/certificates.js +45 -171
  39. package/lib/services/cost.d.ts +10 -37
  40. package/lib/services/cost.d.ts.map +1 -1
  41. package/lib/services/cost.js +39 -169
  42. package/lib/services/dns.d.ts +9 -104
  43. package/lib/services/dns.d.ts.map +1 -1
  44. package/lib/services/dns.js +98 -714
  45. package/lib/services/dremio.d.ts +8 -50
  46. package/lib/services/dremio.d.ts.map +1 -1
  47. package/lib/services/dremio.js +56 -307
  48. package/lib/services/edge.d.ts +7 -40
  49. package/lib/services/edge.d.ts.map +1 -1
  50. package/lib/services/edge.js +66 -347
  51. package/lib/services/functions.d.ts +1 -48
  52. package/lib/services/functions.d.ts.map +1 -1
  53. package/lib/services/functions.js +64 -393
  54. package/lib/services/git.d.ts +8 -61
  55. package/lib/services/git.d.ts.map +1 -1
  56. package/lib/services/git.js +87 -510
  57. package/lib/services/iaas.d.ts +9 -337
  58. package/lib/services/iaas.d.ts.map +1 -1
  59. package/lib/services/iaas.js +409 -3532
  60. package/lib/services/intake.d.ts +8 -75
  61. package/lib/services/intake.d.ts.map +1 -1
  62. package/lib/services/intake.js +74 -465
  63. package/lib/services/kms.d.ts +9 -92
  64. package/lib/services/kms.d.ts.map +1 -1
  65. package/lib/services/kms.js +95 -650
  66. package/lib/services/lb_ip_lists.d.ts +9 -25
  67. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  68. package/lib/services/lb_ip_lists.js +45 -146
  69. package/lib/services/load_balancer.d.ts +10 -81
  70. package/lib/services/load_balancer.d.ts.map +1 -1
  71. package/lib/services/load_balancer.js +76 -486
  72. package/lib/services/logme.d.ts +8 -69
  73. package/lib/services/logme.d.ts.map +1 -1
  74. package/lib/services/logme.js +82 -564
  75. package/lib/services/logs.d.ts +8 -64
  76. package/lib/services/logs.d.ts.map +1 -1
  77. package/lib/services/logs.js +84 -465
  78. package/lib/services/mariadb.d.ts +8 -65
  79. package/lib/services/mariadb.d.ts.map +1 -1
  80. package/lib/services/mariadb.js +84 -541
  81. package/lib/services/model_experiments.d.ts +9 -48
  82. package/lib/services/model_experiments.d.ts.map +1 -1
  83. package/lib/services/model_experiments.js +66 -325
  84. package/lib/services/model_serving.d.ts +7 -47
  85. package/lib/services/model_serving.d.ts.map +1 -1
  86. package/lib/services/model_serving.js +55 -277
  87. package/lib/services/mongodb_flex.d.ts +8 -137
  88. package/lib/services/mongodb_flex.d.ts.map +1 -1
  89. package/lib/services/mongodb_flex.js +102 -793
  90. package/lib/services/object_storage.d.ts +12 -59
  91. package/lib/services/object_storage.d.ts.map +1 -1
  92. package/lib/services/object_storage.js +93 -528
  93. package/lib/services/observability.d.ts +8 -407
  94. package/lib/services/observability.d.ts.map +1 -1
  95. package/lib/services/observability.js +375 -3148
  96. package/lib/services/opensearch.d.ts +8 -71
  97. package/lib/services/opensearch.d.ts.map +1 -1
  98. package/lib/services/opensearch.js +85 -553
  99. package/lib/services/pim.d.ts +12 -108
  100. package/lib/services/pim.d.ts.map +1 -1
  101. package/lib/services/pim.js +81 -726
  102. package/lib/services/postgres_flex.d.ts +14 -136
  103. package/lib/services/postgres_flex.d.ts.map +1 -1
  104. package/lib/services/postgres_flex.js +114 -841
  105. package/lib/services/pubsub.d.ts +11 -73
  106. package/lib/services/pubsub.d.ts.map +1 -1
  107. package/lib/services/pubsub.js +92 -507
  108. package/lib/services/rabbitmq.d.ts +8 -76
  109. package/lib/services/rabbitmq.d.ts.map +1 -1
  110. package/lib/services/rabbitmq.js +88 -564
  111. package/lib/services/registry.d.ts +10 -28
  112. package/lib/services/registry.d.ts.map +1 -1
  113. package/lib/services/registry.js +49 -189
  114. package/lib/services/resource_manager.d.ts +9 -61
  115. package/lib/services/resource_manager.d.ts.map +1 -1
  116. package/lib/services/resource_manager.js +92 -462
  117. package/lib/services/run_command.d.ts +5 -28
  118. package/lib/services/run_command.d.ts.map +1 -1
  119. package/lib/services/run_command.js +38 -176
  120. package/lib/services/sca.d.ts +8 -79
  121. package/lib/services/sca.d.ts.map +1 -1
  122. package/lib/services/sca.js +63 -435
  123. package/lib/services/scf.d.ts +8 -64
  124. package/lib/services/scf.d.ts.map +1 -1
  125. package/lib/services/scf.js +99 -660
  126. package/lib/services/secrets_manager.d.ts +8 -61
  127. package/lib/services/secrets_manager.d.ts.map +1 -1
  128. package/lib/services/secrets_manager.js +99 -601
  129. package/lib/services/server_backup.d.ts +7 -50
  130. package/lib/services/server_backup.d.ts.map +1 -1
  131. package/lib/services/server_backup.js +70 -444
  132. package/lib/services/server_update.d.ts +7 -35
  133. package/lib/services/server_update.d.ts.map +1 -1
  134. package/lib/services/server_update.js +58 -342
  135. package/lib/services/service_account.d.ts +10 -68
  136. package/lib/services/service_account.d.ts.map +1 -1
  137. package/lib/services/service_account.js +75 -495
  138. package/lib/services/service_enablement.d.ts +7 -29
  139. package/lib/services/service_enablement.d.ts.map +1 -1
  140. package/lib/services/service_enablement.js +40 -147
  141. package/lib/services/sfs.d.ts +4 -96
  142. package/lib/services/sfs.d.ts.map +1 -1
  143. package/lib/services/sfs.js +117 -782
  144. package/lib/services/ske.d.ts +9 -108
  145. package/lib/services/ske.d.ts.map +1 -1
  146. package/lib/services/ske.js +67 -549
  147. package/lib/services/sqlserverflex.d.ts +11 -152
  148. package/lib/services/sqlserverflex.d.ts.map +1 -1
  149. package/lib/services/sqlserverflex.js +112 -925
  150. package/lib/services/stackit_marketplace.d.ts +9 -38
  151. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  152. package/lib/services/stackit_marketplace.js +64 -369
  153. package/lib/services/telemetry_link.d.ts +8 -61
  154. package/lib/services/telemetry_link.d.ts.map +1 -1
  155. package/lib/services/telemetry_link.js +81 -522
  156. package/lib/services/telemetry_router.d.ts +8 -72
  157. package/lib/services/telemetry_router.d.ts.map +1 -1
  158. package/lib/services/telemetry_router.js +73 -474
  159. package/lib/services/ufw.d.ts +7 -42
  160. package/lib/services/ufw.d.ts.map +1 -1
  161. package/lib/services/ufw.js +55 -269
  162. package/lib/services/valkey.d.ts +8 -68
  163. package/lib/services/valkey.d.ts.map +1 -1
  164. package/lib/services/valkey.js +85 -557
  165. package/lib/services/vpn.d.ts +21 -186
  166. package/lib/services/vpn.d.ts.map +1 -1
  167. package/lib/services/vpn.js +105 -920
  168. package/lib/services/workflows.d.ts +15 -84
  169. package/lib/services/workflows.d.ts.map +1 -1
  170. package/lib/services/workflows.js +67 -497
  171. package/lib/traits.d.ts +1 -1
  172. package/lib/traits.js +10 -10
  173. package/package.json +13 -9
  174. package/src/credentials.ts +21 -18
  175. package/src/errors.ts +10 -14
  176. package/src/index.ts +2 -2
  177. package/src/pagination.ts +2 -2
  178. package/src/protocol.ts +12 -9
  179. package/src/retry.ts +6 -4
  180. package/src/services/alb.ts +599 -655
  181. package/src/services/alb_waf.ts +597 -637
  182. package/src/services/authorization.ts +400 -383
  183. package/src/services/automation.ts +422 -405
  184. package/src/services/cdn.ts +817 -1375
  185. package/src/services/certificates.ts +209 -190
  186. package/src/services/cost.ts +100 -207
  187. package/src/services/dns.ts +793 -833
  188. package/src/services/dremio.ts +356 -349
  189. package/src/services/edge.ts +406 -366
  190. package/src/services/functions.ts +465 -463
  191. package/src/services/git.ts +602 -547
  192. package/src/services/iaas.ts +3931 -3821
  193. package/src/services/intake.ts +521 -549
  194. package/src/services/kms.ts +715 -692
  195. package/src/services/lb_ip_lists.ts +173 -152
  196. package/src/services/load_balancer.ts +576 -619
  197. package/src/services/logme.ts +696 -641
  198. package/src/services/logs.ts +510 -493
  199. package/src/services/mariadb.ts +671 -604
  200. package/src/services/model_experiments.ts +343 -356
  201. package/src/services/model_serving.ts +337 -328
  202. package/src/services/mongodb_flex.ts +955 -1007
  203. package/src/services/object_storage.ts +614 -557
  204. package/src/services/observability.ts +3469 -3866
  205. package/src/services/opensearch.ts +679 -628
  206. package/src/services/pim.ts +672 -909
  207. package/src/services/postgres_flex.ts +966 -986
  208. package/src/services/pubsub.ts +524 -546
  209. package/src/services/rabbitmq.ts +693 -654
  210. package/src/services/registry.ts +227 -194
  211. package/src/services/resource_manager.ts +520 -517
  212. package/src/services/run_command.ts +219 -211
  213. package/src/services/sca.ts +543 -570
  214. package/src/services/scf.ts +790 -716
  215. package/src/services/secrets_manager.ts +707 -622
  216. package/src/services/server_backup.ts +490 -475
  217. package/src/services/server_update.ts +353 -356
  218. package/src/services/service_account.ts +515 -553
  219. package/src/services/service_enablement.ts +162 -166
  220. package/src/services/sfs.ts +879 -958
  221. package/src/services/ske.ts +694 -769
  222. package/src/services/sqlserverflex.ts +1042 -1117
  223. package/src/services/stackit_marketplace.ts +377 -372
  224. package/src/services/telemetry_link.ts +530 -531
  225. package/src/services/telemetry_router.ts +509 -534
  226. package/src/services/ufw.ts +305 -307
  227. package/src/services/valkey.ts +684 -629
  228. package/src/services/vpn.ts +935 -1195
  229. package/src/services/workflows.ts +426 -586
  230. package/src/traits.ts +1 -1
  231. package/lib/protocol.test.d.ts +0 -2
  232. package/lib/protocol.test.d.ts.map +0 -1
  233. package/lib/protocol.test.js +0 -181
  234. package/lib/protocol.test.js.map +0 -1
  235. package/lib/services/alb.js.map +0 -1
  236. package/lib/services/alb_waf.js.map +0 -1
  237. package/lib/services/authorization.js.map +0 -1
  238. package/lib/services/automation.js.map +0 -1
  239. package/lib/services/cdn.js.map +0 -1
  240. package/lib/services/certificates.js.map +0 -1
  241. package/lib/services/cost.js.map +0 -1
  242. package/lib/services/dns.js.map +0 -1
  243. package/lib/services/dremio.js.map +0 -1
  244. package/lib/services/edge.js.map +0 -1
  245. package/lib/services/functions.js.map +0 -1
  246. package/lib/services/git.js.map +0 -1
  247. package/lib/services/iaas.js.map +0 -1
  248. package/lib/services/intake.js.map +0 -1
  249. package/lib/services/kms.js.map +0 -1
  250. package/lib/services/lb_ip_lists.js.map +0 -1
  251. package/lib/services/load_balancer.js.map +0 -1
  252. package/lib/services/logme.js.map +0 -1
  253. package/lib/services/logs.js.map +0 -1
  254. package/lib/services/mariadb.js.map +0 -1
  255. package/lib/services/model_experiments.js.map +0 -1
  256. package/lib/services/model_serving.js.map +0 -1
  257. package/lib/services/mongodb_flex.js.map +0 -1
  258. package/lib/services/object_storage.js.map +0 -1
  259. package/lib/services/observability.js.map +0 -1
  260. package/lib/services/opensearch.js.map +0 -1
  261. package/lib/services/pim.js.map +0 -1
  262. package/lib/services/postgres_flex.js.map +0 -1
  263. package/lib/services/pubsub.js.map +0 -1
  264. package/lib/services/rabbitmq.js.map +0 -1
  265. package/lib/services/registry.js.map +0 -1
  266. package/lib/services/resource_manager.js.map +0 -1
  267. package/lib/services/run_command.js.map +0 -1
  268. package/lib/services/sca.js.map +0 -1
  269. package/lib/services/scf.js.map +0 -1
  270. package/lib/services/secrets_manager.js.map +0 -1
  271. package/lib/services/server_backup.js.map +0 -1
  272. package/lib/services/server_update.js.map +0 -1
  273. package/lib/services/service_account.js.map +0 -1
  274. package/lib/services/service_enablement.js.map +0 -1
  275. package/lib/services/sfs.js.map +0 -1
  276. package/lib/services/ske.js.map +0 -1
  277. package/lib/services/sqlserverflex.js.map +0 -1
  278. package/lib/services/stackit_marketplace.js.map +0 -1
  279. package/lib/services/telemetry_link.js.map +0 -1
  280. package/lib/services/telemetry_router.js.map +0 -1
  281. package/lib/services/ufw.js.map +0 -1
  282. package/lib/services/valkey.js.map +0 -1
  283. package/lib/services/vpn.js.map +0 -1
  284. package/lib/services/workflows.js.map +0 -1
  285. package/src/protocol.test.ts +0 -304
@@ -1,445 +1,73 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
4
- import * as S from "@distilled.cloud/core/schema";
5
- import * as Redacted from "effect/Redacted";
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
6
6
  import { UnknownStackitError } from "../errors.js";
7
7
  import { StackitProtocol } from "../protocol.js";
8
8
  import * as Retry from "../retry.js";
9
9
  import * as T from "../traits.js";
10
- export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
11
- /*@__PURE__*/ S.TaggedError()("BadRequest", {
12
- code: S.Number,
13
- message: S.String,
14
- }).pipe(C.withBadRequestError), [{ status: 400 }]) {
15
- }
16
- export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
17
- /*@__PURE__*/ S.TaggedError()("Conflict", {
18
- code: S.Number,
19
- message: S.String,
20
- }).pipe(C.withConflictError), [{ status: 409 }]) {
21
- }
22
- export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
23
- /*@__PURE__*/ S.TaggedError()("NotFound", {
24
- code: S.Number,
25
- message: S.String,
26
- }).pipe(C.withBadRequestError), [{ status: 404 }]) {
27
- }
28
- export const ContainerArgsList = /*@__PURE__*/ S.Array(S.String);
29
- export const ContainerCommandList = /*@__PURE__*/ S.Array(S.String);
30
- export const EnvVarType = S.String;
31
- export const EnvVar = /*@__PURE__*/ S.suspend(() => S.Struct({
32
- key: S.String,
33
- origin: S.optional(EnvVarType),
34
- value: S.String,
35
- })).annotate({ identifier: "EnvVar" });
36
- export const ContainerEnvironmentVariablesList = /*@__PURE__*/ S.Array(EnvVar);
37
- export const Container = /*@__PURE__*/ S.suspend(() => S.Struct({
38
- args: S.optional(ContainerArgsList),
39
- command: S.optional(ContainerCommandList),
40
- cpu: S.optional(S.Number),
41
- environmentVariables: S.optional(ContainerEnvironmentVariablesList),
42
- image: S.String,
43
- memory: S.optional(S.Number),
44
- name: S.String,
45
- })).annotate({ identifier: "Container" });
46
- export const CreateApplicationRequestContainersList = /*@__PURE__*/ S.Array(Container);
47
- export const NetworkIngressAclList = /*@__PURE__*/ S.Array(S.String);
48
- export const Network = /*@__PURE__*/ S.suspend(() => S.Struct({
49
- ingressAcl: S.optional(NetworkIngressAclList),
50
- internalPort: S.optional(S.Number),
51
- port: S.optional(S.Number),
52
- publicIngress: S.optional(S.Boolean),
53
- })).annotate({ identifier: "Network" });
54
- export const ApplicationRegistryCredentialsAuth = /*@__PURE__*/ S.suspend(() => S.Struct({
55
- password: S.optional(S.String.pipe(T.SensitiveValue({}))),
56
- url: S.String,
57
- user: S.String,
58
- })).annotate({
59
- identifier: "ApplicationRegistryCredentialsAuth",
60
- });
61
- export const ApplicationRegistryAuthType = S.String;
62
- export const ApplicationRegistry = /*@__PURE__*/ S.suspend(() => S.Struct({
63
- credentials: S.optional(ApplicationRegistryCredentialsAuth),
64
- type: ApplicationRegistryAuthType,
65
- })).annotate({ identifier: "ApplicationRegistry" });
66
- export const CreateApplicationRequestRegistryList = /*@__PURE__*/ S.Array(ApplicationRegistry);
67
- export const CurrentStatus = S.String;
68
- export const RuntimeStatusInput = /*@__PURE__*/ S.suspend(() => S.Struct({
69
- currentStatus: S.optional(CurrentStatus),
70
- })).annotate({ identifier: "RuntimeStatusInput" });
71
- export const CustomRuleParameter = /*@__PURE__*/ S.suspend(() => S.Struct({
72
- name: S.String,
73
- value: S.String,
74
- })).annotate({ identifier: "CustomRuleParameter" });
75
- export const CustomScaleRuleParametersList = /*@__PURE__*/ S.Array(CustomRuleParameter);
76
- export const CustomRuleSecretMapping = /*@__PURE__*/ S.suspend(() => S.Struct({
77
- parameter: S.String,
78
- secret: S.String.pipe(T.SensitiveValue({})),
79
- })).annotate({ identifier: "CustomRuleSecretMapping" });
80
- export const CustomScaleRuleSecretsMappingList = /*@__PURE__*/ S.Array(CustomRuleSecretMapping);
81
- export const CustomScaleRule = /*@__PURE__*/ S.suspend(() => S.Struct({
82
- parameters: S.optional(CustomScaleRuleParametersList),
83
- secretsMapping: S.optional(CustomScaleRuleSecretsMappingList),
84
- type: S.String,
85
- })).annotate({ identifier: "CustomScaleRule" });
86
- export const HttpScaleRule = /*@__PURE__*/ S.suspend(() => S.Struct({
87
- concurrency: S.optional(S.Number),
88
- rps: S.optional(S.Number),
89
- })).annotate({ identifier: "HttpScaleRule" });
90
- export const RuleType = S.String;
91
- export const ScaleRule = /*@__PURE__*/ S.suspend(() => S.Struct({
92
- customRule: S.optional(CustomScaleRule),
93
- httpRule: S.optional(HttpScaleRule),
94
- name: S.String,
95
- type: RuleType,
96
- })).annotate({ identifier: "ScaleRule" });
97
- export const AutoScalingRulesList = /*@__PURE__*/ S.Array(ScaleRule);
98
- export const AutoScaling = /*@__PURE__*/ S.suspend(() => S.Struct({
99
- allowScaleToZero: S.optional(S.Boolean),
100
- maxInstances: S.Number,
101
- minInstances: S.Number,
102
- rules: AutoScalingRulesList,
103
- })).annotate({ identifier: "AutoScaling" });
104
- export const ManualScaling = /*@__PURE__*/ S.suspend(() => S.Struct({
105
- instances: S.Number,
106
- })).annotate({ identifier: "ManualScaling" });
107
- export const ScalingType = S.String;
108
- export const Scaling = /*@__PURE__*/ S.suspend(() => S.Struct({
109
- autoScaling: S.optional(AutoScaling),
110
- manualScaling: S.optional(ManualScaling),
111
- type: ScalingType,
112
- })).annotate({ identifier: "Scaling" });
113
- export const ApplicationSecret = /*@__PURE__*/ S.suspend(() => S.Struct({
114
- key: S.String,
115
- value: S.optional(S.String),
116
- })).annotate({ identifier: "ApplicationSecret" });
117
- export const CreateApplicationRequestSecretsList = /*@__PURE__*/ S.Array(ApplicationSecret);
118
- export const CreateApplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
119
- projectId: S.String.pipe(T.Label()),
120
- environmentId: S.String.pipe(T.Label()),
121
- containers: CreateApplicationRequestContainersList,
122
- displayName: S.String,
123
- network: S.optional(Network),
124
- registry: S.optional(CreateApplicationRequestRegistryList),
125
- runtimeStatus: S.optional(RuntimeStatusInput),
126
- scaling: Scaling,
127
- secrets: S.optional(CreateApplicationRequestSecretsList),
128
- stopped: S.optional(S.Boolean),
129
- }).pipe(T.Http({
130
- method: "POST",
131
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications",
132
- code: 200,
133
- baseUrl: "https://sca.api.{region}stackit.cloud",
134
- }))).annotate({ identifier: "CreateApplicationRequest" });
135
- export const ApplicationContainersList = /*@__PURE__*/ S.Array(Container);
136
- export const ApplicationRegistryList = /*@__PURE__*/ S.Array(ApplicationRegistry);
137
- export const RuntimeStatusFailureReasonsList = /*@__PURE__*/ S.Array(S.String);
138
- export const InstanceStatus = S.String;
139
- export const Instance = /*@__PURE__*/ S.suspend(() => S.Struct({
140
- name: S.optional(S.String),
141
- status: S.optional(InstanceStatus),
142
- })).annotate({ identifier: "Instance" });
143
- export const RuntimeStatusInstancesList = /*@__PURE__*/ S.Array(Instance);
144
- export const RuntimeStatusUrlsList = /*@__PURE__*/ S.Array(S.String);
145
- export const RuntimeStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
146
- currentStatus: S.optional(CurrentStatus),
147
- failureReasons: S.optional(RuntimeStatusFailureReasonsList),
148
- instances: S.optional(RuntimeStatusInstancesList),
149
- internalUrl: S.optional(S.String),
150
- lastDeployment: S.optional(S.String),
151
- urls: S.optional(RuntimeStatusUrlsList),
152
- })).annotate({ identifier: "RuntimeStatus" });
153
- export const ApplicationSecretsList = /*@__PURE__*/ S.Array(ApplicationSecret);
154
- export const Application = /*@__PURE__*/ S.suspend(() => S.Struct({
155
- containers: ApplicationContainersList,
156
- displayName: S.String,
157
- environmentId: S.optional(S.String),
158
- environmentName: S.optional(S.String),
159
- id: S.optional(S.String),
160
- network: S.optional(Network),
161
- registry: S.optional(ApplicationRegistryList),
162
- runtimeStatus: S.optional(RuntimeStatus),
163
- scaling: Scaling,
164
- secrets: S.optional(ApplicationSecretsList),
165
- stopped: S.optional(S.Boolean),
166
- })).annotate({ identifier: "Application" });
167
- export const EnvironmentStatus = S.String;
168
- export const CreateEnvironmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
169
- projectId: S.String.pipe(T.Label()),
170
- displayName: S.String,
171
- status: S.optional(EnvironmentStatus),
172
- }).pipe(T.Http({
173
- method: "POST",
174
- uri: "/v1alpha/projects/{projectId}/environments",
175
- code: 200,
176
- baseUrl: "https://sca.api.{region}stackit.cloud",
177
- }))).annotate({ identifier: "CreateEnvironmentRequest" });
178
- export const Environment = /*@__PURE__*/ S.suspend(() => S.Struct({
179
- createdAt: S.optional(S.String),
180
- default: S.optional(S.Boolean),
181
- displayName: S.String,
182
- id: S.optional(S.String),
183
- status: S.optional(EnvironmentStatus),
184
- })).annotate({ identifier: "Environment" });
185
- export const DeleteApplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
186
- projectId: S.String.pipe(T.Label()),
187
- environmentId: S.String.pipe(T.Label()),
188
- applicationId: S.String.pipe(T.Label()),
189
- }).pipe(T.Http({
190
- method: "DELETE",
191
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",
192
- code: 200,
193
- baseUrl: "https://sca.api.{region}stackit.cloud",
194
- }))).annotate({ identifier: "DeleteApplicationRequest" });
195
- export const GetApplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
196
- projectId: S.String.pipe(T.Label()),
197
- environmentId: S.String.pipe(T.Label()),
198
- applicationId: S.String.pipe(T.Label()),
199
- }).pipe(T.Http({
200
- method: "GET",
201
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",
202
- code: 200,
203
- baseUrl: "https://sca.api.{region}stackit.cloud",
204
- }))).annotate({ identifier: "GetApplicationRequest" });
205
- export const GetApplicationEventsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
206
- projectId: S.String.pipe(T.Label()),
207
- environmentId: S.String.pipe(T.Label()),
208
- applicationId: S.String.pipe(T.Label()),
209
- }).pipe(T.Http({
210
- method: "GET",
211
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}/events",
212
- code: 200,
213
- baseUrl: "https://sca.api.{region}stackit.cloud",
214
- }))).annotate({
215
- identifier: "GetApplicationEventsRequest",
216
- });
217
- export const Event = /*@__PURE__*/ S.suspend(() => S.Struct({
218
- message: S.optional(S.String),
219
- })).annotate({ identifier: "Event" });
220
- export const GetApplicationEventsResponseEventsList = /*@__PURE__*/ S.Array(Event);
221
- export const GetApplicationEventsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
222
- events: S.optional(GetApplicationEventsResponseEventsList),
223
- })).annotate({
224
- identifier: "GetApplicationEventsResponse",
10
+ const __0 = __L.at;
11
+ const __1 = T.Http;
12
+ const __2 = T.Label;
13
+ const __3 = S.String;
14
+ const __4 = S.Struct;
15
+ const __5 = S.suspend;
16
+ const __6 = S.Number;
17
+ const __7 = S.optional;
18
+ const __8 = S.Boolean;
19
+ const __9 = S.Array;
20
+ const __10 = T.SensitiveValue;
21
+ const __11 = T.Query;
22
+ const __12 = S.TaggedError;
23
+ const __13 = T.applyErrorMatchers;
24
+ export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
25
+ return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __6, __3, __12, __13]]);
225
26
  });
226
- export const GetApplicationLogsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
227
- projectId: S.String.pipe(T.Label()),
228
- environmentId: S.String.pipe(T.Label()),
229
- applicationId: S.String.pipe(T.Label()),
230
- instance: S.String.pipe(T.Query()),
231
- container: S.String.pipe(T.Query()),
232
- previous: S.optional(S.Boolean.pipe(T.Query())),
233
- }).pipe(T.Http({
234
- method: "GET",
235
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}/logs",
236
- code: 200,
237
- baseUrl: "https://sca.api.{region}stackit.cloud",
238
- }))).annotate({
239
- identifier: "GetApplicationLogsRequest",
27
+ export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
28
+ return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __6, __3, __12, __13]]);
240
29
  });
241
- export const Log = /*@__PURE__*/ S.suspend(() => S.Struct({
242
- message: S.optional(S.String),
243
- })).annotate({ identifier: "Log" });
244
- export const GetApplicationLogsResponseLogsList = /*@__PURE__*/ S.Array(Log);
245
- export const GetApplicationLogsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
246
- logs: S.optional(GetApplicationLogsResponseLogsList),
247
- })).annotate({
248
- identifier: "GetApplicationLogsResponse",
30
+ export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
31
+ return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __6, __3, __12, __13]]);
249
32
  });
250
- export const GetEnvironmentRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
251
- projectId: S.String.pipe(T.Label()),
252
- environmentId: S.String.pipe(T.Label()),
253
- }).pipe(T.Http({
254
- method: "GET",
255
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}",
256
- code: 200,
257
- baseUrl: "https://sca.api.{region}stackit.cloud",
258
- }))).annotate({ identifier: "GetEnvironmentRequest" });
259
- export const GetOverviewRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
260
- projectId: S.String.pipe(T.Label()),
261
- }).pipe(T.Http({
262
- method: "GET",
263
- uri: "/v1alpha/projects/{projectId}/overview",
264
- code: 200,
265
- baseUrl: "https://sca.api.{region}stackit.cloud",
266
- }))).annotate({ identifier: "GetOverviewRequest" });
267
- export const Summary = /*@__PURE__*/ S.suspend(() => S.Struct({
268
- applicationsRunning: S.optional(S.Number),
269
- applicationsTotal: S.optional(S.Number),
270
- })).annotate({ identifier: "Summary" });
271
- export const GetOverviewResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
272
- summary: Summary,
273
- })).annotate({ identifier: "GetOverviewResponse" });
274
- export const ListApplicationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
275
- projectId: S.String.pipe(T.Label()),
276
- environmentId: S.String.pipe(T.Label()),
277
- }).pipe(T.Http({
278
- method: "GET",
279
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications",
280
- code: 200,
281
- baseUrl: "https://sca.api.{region}stackit.cloud",
282
- }))).annotate({ identifier: "ListApplicationsRequest" });
283
- export const ApplicationSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
284
- containers: S.optional(S.Number),
285
- createdAt: S.optional(S.String),
286
- displayName: S.optional(S.String),
287
- environmentId: S.optional(S.String),
288
- environmentName: S.optional(S.String),
289
- id: S.optional(S.String),
290
- instances: S.optional(S.Number),
291
- internalUrl: S.optional(S.String),
292
- lastDeployment: S.optional(S.String),
293
- status: S.optional(CurrentStatus),
294
- stopped: S.optional(S.Boolean),
295
- url: S.optional(S.String),
296
- })).annotate({ identifier: "ApplicationSummary" });
297
- export const ListApplicationsResponseItemsList = /*@__PURE__*/ S.Array(ApplicationSummary);
298
- export const ListApplicationsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
299
- items: S.optional(ListApplicationsResponseItemsList),
300
- })).annotate({ identifier: "ListApplicationsResponse" });
301
- export const ListEnvironmentsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
302
- projectId: S.String.pipe(T.Label()),
303
- }).pipe(T.Http({
304
- method: "GET",
305
- uri: "/v1alpha/projects/{projectId}/environments",
306
- code: 200,
307
- baseUrl: "https://sca.api.{region}stackit.cloud",
308
- }))).annotate({ identifier: "ListEnvironmentsRequest" });
309
- export const EnvironmentSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
310
- applicationsNumber: S.optional(S.Number),
311
- createdAt: S.optional(S.String),
312
- default: S.optional(S.Boolean),
313
- displayName: S.optional(S.String),
314
- id: S.optional(S.String),
315
- })).annotate({ identifier: "EnvironmentSummary" });
316
- export const ListEnvironmentsResponseItemsList = /*@__PURE__*/ S.Array(EnvironmentSummary);
317
- export const ListEnvironmentsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
318
- items: S.optional(ListEnvironmentsResponseItemsList),
319
- })).annotate({ identifier: "ListEnvironmentsResponse" });
320
- export const ListProjectApplicationsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
321
- projectId: S.String.pipe(T.Label()),
322
- }).pipe(T.Http({
323
- method: "GET",
324
- uri: "/v1alpha/projects/{projectId}/applications",
325
- code: 200,
326
- baseUrl: "https://sca.api.{region}stackit.cloud",
327
- }))).annotate({
328
- identifier: "ListProjectApplicationsRequest",
329
- });
330
- export const UpdateApplicationRequestContainersList = /*@__PURE__*/ S.Array(Container);
331
- export const UpdateApplicationRequestRegistryList = /*@__PURE__*/ S.Array(ApplicationRegistry);
332
- export const UpdateApplicationRequestSecretsList = /*@__PURE__*/ S.Array(ApplicationSecret);
333
- export const UpdateApplicationRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
334
- projectId: S.String.pipe(T.Label()),
335
- environmentId: S.String.pipe(T.Label()),
336
- applicationId: S.String.pipe(T.Label()),
337
- containers: S.optional(UpdateApplicationRequestContainersList),
338
- network: S.optional(Network),
339
- registry: S.optional(UpdateApplicationRequestRegistryList),
340
- scaling: S.optional(Scaling),
341
- secrets: S.optional(UpdateApplicationRequestSecretsList),
342
- stopped: S.optional(S.Boolean),
343
- }).pipe(T.Http({
344
- method: "PATCH",
345
- uri: "/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",
346
- code: 200,
347
- baseUrl: "https://sca.api.{region}stackit.cloud",
348
- }))).annotate({ identifier: "UpdateApplicationRequest" });
349
- /** Creates a new application within a environment. */
350
- export const createApplication = /*@__PURE__*/ API.make(() => ({
351
- input: CreateApplicationRequest,
352
- output: Application,
353
- errors: [BadRequest, Conflict, UnknownStackitError],
354
- protocol: StackitProtocol,
355
- retry: Retry.Retry,
356
- }));
357
- /** Creates a new environment within a project. */
358
- export const createEnvironment = /*@__PURE__*/ API.make(() => ({
359
- input: CreateEnvironmentRequest,
360
- output: Environment,
361
- errors: [BadRequest, Conflict, UnknownStackitError],
362
- protocol: StackitProtocol,
363
- retry: Retry.Retry,
364
- }));
365
- /** Deletes an application by resource name. */
366
- export const deleteApplication = /*@__PURE__*/ API.make(() => ({
367
- input: DeleteApplicationRequest,
368
- output: Application,
369
- errors: [NotFound, UnknownStackitError],
370
- protocol: StackitProtocol,
371
- retry: Retry.Retry,
372
- }));
373
- /** Retrieves a application by resource name. */
374
- export const getApplication = /*@__PURE__*/ API.make(() => ({
375
- input: GetApplicationRequest,
376
- output: Application,
377
- errors: [NotFound, UnknownStackitError],
378
- protocol: StackitProtocol,
379
- retry: Retry.Retry,
380
- }));
381
- /** Retrieves events of an application. */
382
- export const getApplicationEvents = /*@__PURE__*/ API.make(() => ({
383
- input: GetApplicationEventsRequest,
384
- output: GetApplicationEventsResponse,
385
- errors: [NotFound, UnknownStackitError],
386
- protocol: StackitProtocol,
387
- retry: Retry.Retry,
388
- }));
389
- /** Retrieves logs of an application. */
390
- export const getApplicationLogs = /*@__PURE__*/ API.make(() => ({
391
- input: GetApplicationLogsRequest,
392
- output: GetApplicationLogsResponse,
393
- errors: [BadRequest, NotFound, UnknownStackitError],
394
- protocol: StackitProtocol,
395
- retry: Retry.Retry,
396
- }));
397
- /** Retrieves an environment by resource name. */
398
- export const getEnvironment = /*@__PURE__*/ API.make(() => ({
399
- input: GetEnvironmentRequest,
400
- output: Environment,
401
- errors: [NotFound, UnknownStackitError],
402
- protocol: StackitProtocol,
403
- retry: Retry.Retry,
404
- }));
405
- /** Retrieves the overview for an environment. */
406
- export const getOverview = /*@__PURE__*/ API.make(() => ({
407
- input: GetOverviewRequest,
408
- output: GetOverviewResponse,
409
- errors: [UnknownStackitError],
410
- protocol: StackitProtocol,
411
- retry: Retry.Retry,
412
- }));
413
- /** Lists applications within an environment. */
414
- export const listApplications = /*@__PURE__*/ API.make(() => ({
415
- input: ListApplicationsRequest,
416
- output: ListApplicationsResponse,
417
- errors: [BadRequest, UnknownStackitError],
418
- protocol: StackitProtocol,
419
- retry: Retry.Retry,
420
- }));
421
- /** Lists environments within a project. */
422
- export const listEnvironments = /*@__PURE__*/ API.make(() => ({
423
- input: ListEnvironmentsRequest,
424
- output: ListEnvironmentsResponse,
425
- errors: [BadRequest, UnknownStackitError],
426
- protocol: StackitProtocol,
427
- retry: Retry.Retry,
428
- }));
429
- /** Lists applications within a project. */
430
- export const listProjectApplications = /*@__PURE__*/ API.make(() => ({
431
- input: ListProjectApplicationsRequest,
432
- output: ListApplicationsResponse,
433
- errors: [BadRequest, UnknownStackitError],
434
- protocol: StackitProtocol,
435
- retry: Retry.Retry,
436
- }));
437
- /** Updates an existing application. */
438
- export const updateApplication = /*@__PURE__*/ API.make(() => ({
439
- input: UpdateApplicationRequest,
440
- output: Application,
441
- errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
442
- protocol: StackitProtocol,
443
- retry: Retry.Retry,
444
- }));
445
- //# sourceMappingURL=sca.js.map
33
+
34
+ export const createApplication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#2,output:#7:25,errors:[$9,$10,$11],protocol:$12,retry:$13};$4(>3)@"RuntimeStatusInput";$4(>4)@"CreateApplicationRequest";$3({currentStatus:$2($1)});$3({projectId:$1.pipe($6()),environmentId:$1.pipe($6()),containers:#7:4,displayName:$1,network:$2(#7:5),registry:$2(#7:8),runtimeStatus:$2(#1),scaling:#7:19,secrets:$2(#7:21),stopped:$2($8)}).pipe($5({method:"POST",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __3, __7, __4, __5, __1, __2, __d1, __8, BadRequest, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createApplication, i));
35
+
36
+ export const createEnvironment = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"CreateEnvironmentRequest";$5({projectId:$3.pipe($2()),displayName:$3,status:$4($3)}).pipe($1({method:"POST",uri:"/v1alpha/projects/{projectId}/environments",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __7, __4, __5, __d2, BadRequest, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createEnvironment, i));
37
+
38
+ export const deleteApplication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:25,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"DeleteApplicationRequest";$4({projectId:$3.pipe($2()),environmentId:$3.pipe($2()),applicationId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteApplication, i));
39
+
40
+ export const getApplication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:25,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetApplicationRequest";$4({projectId:$3.pipe($2()),environmentId:$3.pipe($2()),applicationId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d1, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getApplication, i));
41
+
42
+ export const getApplicationEvents = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9],protocol:$10,retry:$11};$5(>3)@"GetApplicationEventsRequest";$5(>4)@"GetApplicationEventsResponse";$4({projectId:$3.pipe($2()),environmentId:$3.pipe($2()),applicationId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}/events",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}));$4({events:$7(#6:1)})', [__0, __1, __2, __3, __4, __5, __d3, __7, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getApplicationEvents, i));
43
+
44
+ export const getApplicationLogs = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>3)@"GetApplicationLogsRequest";$8(>4)@"GetApplicationLogsResponse";$7({projectId:$3.pipe($2()),environmentId:$3.pipe($2()),applicationId:$3.pipe($2()),instance:$3.pipe($4()),container:$3.pipe($4()),previous:$6($5.pipe($4()))}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}/logs",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}));$7({logs:$6(#9:1)})', [__0, __1, __2, __3, __11, __8, __7, __4, __5, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getApplicationLogs, i));
45
+
46
+ export const getEnvironment = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetEnvironmentRequest";$4({projectId:$3.pipe($2()),environmentId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d2, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getEnvironment, i));
47
+
48
+ export const getOverview = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$8],protocol:$9,retry:$10};$5(>4)@"GetOverviewRequest";$5(>5)@"Summary";$5(>6)@"GetOverviewResponse";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/overview",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}));$4({applicationsRunning:$7($6),applicationsTotal:$7($6)});$4({summary:#2})', [__0, __1, __2, __3, __4, __5, __6, __7, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getOverview, i));
49
+
50
+ export const listApplications = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:2,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"ListApplicationsRequest";$4({projectId:$3.pipe($2()),environmentId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listApplications, i));
51
+
52
+ export const listEnvironments = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4,errors:[$10,$11],protocol:$12,retry:$13};$5(>5)@"ListEnvironmentsRequest";$5(>6)@"EnvironmentSummary";$9(#2);$5(>7)@"ListEnvironmentsResponse";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/environments",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}));$4({applicationsNumber:$7($6),createdAt:$7($3),default:$7($8),displayName:$7($3),id:$7($3)});$4({items:$7(#3)})', [__0, __1, __2, __3, __4, __5, __6, __7, __8, __9, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listEnvironments, i));
53
+
54
+ export const listProjectApplications = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:2,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"ListProjectApplicationsRequest";$4({projectId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1alpha/projects/{projectId}/applications",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d0, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(listProjectApplications, i));
55
+
56
+ export const updateApplication = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#4:25,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"UpdateApplicationRequest";$7({projectId:$3.pipe($2()),environmentId:$3.pipe($2()),applicationId:$3.pipe($2()),containers:$5(#4:4),network:$5(#4:5),registry:$5(#4:8),scaling:$5(#4:19),secrets:$5(#4:21),stopped:$5($6)}).pipe($1({method:"PATCH",uri:"/v1alpha/projects/{projectId}/environments/{environmentId}/applications/{applicationId}",code:200,baseUrl:"https://sca.api.{region}stackit.cloud"}))', [__0, __1, __2, __3, __d1, __7, __8, __4, __5, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(updateApplication, i));
57
+ // Schema builders: each runs one schema initializer, on that schema's first use.
58
+ // Schema table: entry i is schema j of builder f, made on first reach.
59
+
60
+
61
+ // Shared schema data (see `op` in core/api).
62
+ function __d0() {
63
+ return ['$6(>3)@"ApplicationSummary";$7(#0);$6(>4)@"ListApplicationsResponse";$5({containers:$2($1),createdAt:$2($3),displayName:$2($3),environmentId:$2($3),environmentName:$2($3),id:$2($3),instances:$2($1),internalUrl:$2($3),lastDeployment:$2($3),status:$2($3),stopped:$2($4),url:$2($3)});$5({items:$2(#1)})', [__0, __6, __7, __3, __8, __4, __5, __9]];
64
+ }
65
+ function __d1() {
66
+ return ['$2($1);$5(>26)@"EnvVar";$2(#1);$5(>27)@"Container";$2(#3);$5(>28)@"Network";$5(>29)@"ApplicationRegistryCredentialsAuth";$5(>30)@"ApplicationRegistry";$2(#7);$5(>31)@"CustomRuleParameter";$2(#9);$5(>32)@"CustomRuleSecretMapping";$2(#11);$5(>33)@"CustomScaleRule";$5(>34)@"HttpScaleRule";$5(>35)@"ScaleRule";$2(#15);$5(>36)@"AutoScaling";$5(>37)@"ManualScaling";$5(>38)@"Scaling";$5(>39)@"ApplicationSecret";$2(#20);$5(>40)@"Instance";$2(#22);$5(>41)@"RuntimeStatus";$5(>42)@"Application";$4({key:$1,origin:$3($1),value:$1});$4({args:$3(#0),command:$3(#0),cpu:$3($6),environmentVariables:$3(#2),image:$1,memory:$3($6),name:$1});$4({ingressAcl:$3(#0),internalPort:$3($6),port:$3($6),publicIngress:$3($7)});$4({password:$3($1.pipe($8({}))),url:$1,user:$1});$4({credentials:$3(#6),type:$1});$4({name:$1,value:$1});$4({parameter:$1,secret:$1.pipe($8({}))});$4({parameters:$3(#10),secretsMapping:$3(#12),type:$1});$4({concurrency:$3($6),rps:$3($6)});$4({customRule:$3(#13),httpRule:$3(#14),name:$1,type:$1});$4({allowScaleToZero:$3($7),maxInstances:$6,minInstances:$6,rules:#16});$4({instances:$6});$4({autoScaling:$3(#17),manualScaling:$3(#18),type:$1});$4({key:$1,value:$3($1)});$4({name:$3($1),status:$3($1)});$4({currentStatus:$3($1),failureReasons:$3(#0),instances:$3(#23),internalUrl:$3($1),lastDeployment:$3($1),urls:$3(#0)});$4({containers:#4,displayName:$1,environmentId:$3($1),environmentName:$3($1),id:$3($1),network:$3(#5),registry:$3(#8),runtimeStatus:$3(#24),scaling:#19,secrets:$3(#21),stopped:$3($7)})', [__0, __3, __9, __7, __4, __5, __6, __8, __10]];
67
+ }
68
+ function __d2() {
69
+ return ['$5(>1)@"Environment";$4({createdAt:$2($1),default:$2($3),displayName:$1,id:$2($1),status:$2($1)})', [__0, __3, __7, __8, __4, __5]];
70
+ }
71
+ function __d3() {
72
+ return ['$4(>2)@"Event";$5(#0);$3({message:$2($1)})', [__0, __3, __7, __4, __5, __9]];
73
+ }