@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,839 @@
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 API from "@distilled.cloud/core/api";
4
+ import * as C from "@distilled.cloud/core/category";
5
+ import * as T from "../traits.ts";
6
+ import {
7
+ StackitProtocol,
8
+ type StackitOpError,
9
+ type StackitOpContext,
10
+ } from "../protocol.ts";
11
+ import { UnknownStackitError } from "../errors.ts";
12
+ import * as Retry from "../retry.ts";
13
+
14
+ export type { StackitOpError, StackitOpContext };
15
+
16
+ export class BadRequest
17
+ extends /*@__PURE__*/ T.applyErrorMatchers(
18
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
19
+ code: S.Number,
20
+ message: S.String,
21
+ }).pipe(C.withBadRequestError),
22
+ [{ status: 400 }],
23
+ ) {}
24
+
25
+ export class Conflict
26
+ extends /*@__PURE__*/ T.applyErrorMatchers(
27
+ /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
28
+ code: S.Number,
29
+ message: S.String,
30
+ }).pipe(C.withConflictError),
31
+ [{ status: 409 }],
32
+ ) {}
33
+
34
+ export class NotFound
35
+ extends /*@__PURE__*/ T.applyErrorMatchers(
36
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
37
+ code: S.Number,
38
+ message: S.String,
39
+ }).pipe(C.withBadRequestError),
40
+ [{ status: 404 }],
41
+ ) {}
42
+
43
+ export interface CreateInstanceRequest {
44
+ /** The STACKIT portal project UUID the instance is part of. */
45
+ projectId: string;
46
+ /** The STACKIT region the instance is part of. */
47
+ regionId: string;
48
+ /** A user chosen description to distinguish multiple instances. */
49
+ description?: string;
50
+ /** The displayed name to distinguish multiple instances. */
51
+ displayName: string;
52
+ /** Service Plan configures the size of the Instance. */
53
+ planId: string;
54
+ }
55
+ export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
56
+ S.Struct({
57
+ projectId: S.String.pipe(T.Label()),
58
+ regionId: S.String.pipe(T.Label()),
59
+ description: S.optional(S.String),
60
+ displayName: S.String,
61
+ planId: S.String,
62
+ }).pipe(
63
+ T.Http({
64
+ method: "POST",
65
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/instances",
66
+ code: 200,
67
+ baseUrl: "https://edge.api.stackit.cloud",
68
+ }),
69
+ ),
70
+ ).annotate({
71
+ identifier: "CreateInstanceRequest",
72
+ }) as any as S.Schema<CreateInstanceRequest>;
73
+
74
+ export interface IpAllowListEntry {
75
+ /** ISO-8601 timestamp of when the entry was created. */
76
+ createdAt?: string;
77
+ /** Some description of the entry. */
78
+ description?: string;
79
+ /** The IP CIDR range for the ACL entry. */
80
+ ipRange: string;
81
+ /** ISO-8601 timestamp of when the entry was last updated. */
82
+ updatedAt?: string;
83
+ /** The unique identifier for the ipAllowListEntry entry. This value is immutable, used to identify entries for updates, and cannot be changed after creation. */
84
+ uuid: string;
85
+ }
86
+ export const IpAllowListEntry = /*@__PURE__*/ S.suspend(() =>
87
+ S.Struct({
88
+ createdAt: S.optional(S.String),
89
+ description: S.optional(S.String),
90
+ ipRange: S.String,
91
+ updatedAt: S.optional(S.String),
92
+ uuid: S.String,
93
+ }),
94
+ ).annotate({
95
+ identifier: "IpAllowListEntry",
96
+ }) as any as S.Schema<IpAllowListEntry>;
97
+
98
+ export type AclIpAllowListList = Array<IpAllowListEntry>;
99
+ export const AclIpAllowListList = /*@__PURE__*/ S.Array(
100
+ IpAllowListEntry,
101
+ ) as any as S.Schema<AclIpAllowListList>;
102
+
103
+ /** The ACL config for the instances API. */
104
+ export interface Acl {
105
+ ipAllowList?: AclIpAllowListList;
106
+ }
107
+ export const Acl = /*@__PURE__*/ S.suspend(() =>
108
+ S.Struct({
109
+ ipAllowList: S.optional(AclIpAllowListList),
110
+ }),
111
+ ).annotate({ identifier: "Acl" }) as any as S.Schema<Acl>;
112
+
113
+ /** The current status of the instance. */
114
+ export type InstanceStatus = "error" | "reconciling" | "active" | "deleting";
115
+ export const InstanceStatus = /*@__PURE__*/ S.String;
116
+
117
+ export interface Instance {
118
+ acl?: Acl;
119
+ /** The date and time the creation of the instance was triggered. */
120
+ created: string;
121
+ /** A user chosen description to distinguish multiple instances. */
122
+ description?: string;
123
+ /** The displayed name of the instance. */
124
+ displayName: string;
125
+ /** URL to the Management UI of the Instance. */
126
+ frontendUrl: string;
127
+ /** A auto generated unique id which identifies the instance. */
128
+ id: string;
129
+ /** Service Plan configures the size of the Instance. */
130
+ planId: string;
131
+ /** The current status of the instance. */
132
+ status: InstanceStatus;
133
+ }
134
+ export const Instance = /*@__PURE__*/ S.suspend(() =>
135
+ S.Struct({
136
+ acl: S.optional(Acl),
137
+ created: S.String,
138
+ description: S.optional(S.String),
139
+ displayName: S.String,
140
+ frontendUrl: S.String,
141
+ id: S.String,
142
+ planId: S.String,
143
+ status: InstanceStatus,
144
+ }),
145
+ ).annotate({ identifier: "Instance" }) as any as S.Schema<Instance>;
146
+
147
+ export interface DeleteInstanceRequest {
148
+ /** The STACKIT portal project UUID the instance is part of. */
149
+ projectId: string;
150
+ /** The STACKIT region the instance is part of. */
151
+ regionId: string;
152
+ /** The full ID of the instance, <display_name>-<project_hash>. */
153
+ instanceId: string;
154
+ }
155
+ export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
156
+ S.Struct({
157
+ projectId: S.String.pipe(T.Label()),
158
+ regionId: S.String.pipe(T.Label()),
159
+ instanceId: S.String.pipe(T.Label()),
160
+ }).pipe(
161
+ T.Http({
162
+ method: "DELETE",
163
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
164
+ code: 200,
165
+ baseUrl: "https://edge.api.stackit.cloud",
166
+ }),
167
+ ),
168
+ ).annotate({
169
+ identifier: "DeleteInstanceRequest",
170
+ }) as any as S.Schema<DeleteInstanceRequest>;
171
+
172
+ export interface DeleteInstanceResponse {}
173
+ export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() =>
174
+ S.Struct({}),
175
+ ).annotate({
176
+ identifier: "DeleteInstanceResponse",
177
+ }) as any as S.Schema<DeleteInstanceResponse>;
178
+
179
+ export interface DeleteInstanceByNameRequest {
180
+ /** The STACKIT portal project UUID the instance is part of. */
181
+ projectId: string;
182
+ /** The STACKIT region the instance is part of. */
183
+ regionId: string;
184
+ /** The instance display name. */
185
+ displayName: string;
186
+ }
187
+ export const DeleteInstanceByNameRequest = /*@__PURE__*/ S.suspend(() =>
188
+ S.Struct({
189
+ projectId: S.String.pipe(T.Label()),
190
+ regionId: S.String.pipe(T.Label()),
191
+ displayName: S.String.pipe(T.Label()),
192
+ }).pipe(
193
+ T.Http({
194
+ method: "DELETE",
195
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/instancesbyname/{displayName}",
196
+ code: 200,
197
+ baseUrl: "https://edge.api.stackit.cloud",
198
+ }),
199
+ ),
200
+ ).annotate({
201
+ identifier: "DeleteInstanceByNameRequest",
202
+ }) as any as S.Schema<DeleteInstanceByNameRequest>;
203
+
204
+ export interface DeleteInstanceByNameResponse {}
205
+ export const DeleteInstanceByNameResponse = /*@__PURE__*/ S.suspend(() =>
206
+ S.Struct({}),
207
+ ).annotate({
208
+ identifier: "DeleteInstanceByNameResponse",
209
+ }) as any as S.Schema<DeleteInstanceByNameResponse>;
210
+
211
+ export interface GetInstanceRequest {
212
+ /** The STACKIT portal project UUID the instance is part of. */
213
+ projectId: string;
214
+ /** The STACKIT region the instance is part of. */
215
+ regionId: string;
216
+ /** The full ID of the instance, <display_name>-<project_hash>. */
217
+ instanceId: string;
218
+ }
219
+ export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
220
+ S.Struct({
221
+ projectId: S.String.pipe(T.Label()),
222
+ regionId: S.String.pipe(T.Label()),
223
+ instanceId: S.String.pipe(T.Label()),
224
+ }).pipe(
225
+ T.Http({
226
+ method: "GET",
227
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
228
+ code: 200,
229
+ baseUrl: "https://edge.api.stackit.cloud",
230
+ }),
231
+ ),
232
+ ).annotate({
233
+ identifier: "GetInstanceRequest",
234
+ }) as any as S.Schema<GetInstanceRequest>;
235
+
236
+ export interface GetInstanceByNameRequest {
237
+ /** The STACKIT portal project UUID the instance is part of. */
238
+ projectId: string;
239
+ /** The STACKIT region the instance is part of. */
240
+ regionId: string;
241
+ /** The instance display name. */
242
+ displayName: string;
243
+ }
244
+ export const GetInstanceByNameRequest = /*@__PURE__*/ S.suspend(() =>
245
+ S.Struct({
246
+ projectId: S.String.pipe(T.Label()),
247
+ regionId: S.String.pipe(T.Label()),
248
+ displayName: S.String.pipe(T.Label()),
249
+ }).pipe(
250
+ T.Http({
251
+ method: "GET",
252
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/instancesbyname/{displayName}",
253
+ code: 200,
254
+ baseUrl: "https://edge.api.stackit.cloud",
255
+ }),
256
+ ),
257
+ ).annotate({
258
+ identifier: "GetInstanceByNameRequest",
259
+ }) as any as S.Schema<GetInstanceByNameRequest>;
260
+
261
+ export interface GetKubeconfigByInstanceIdRequest {
262
+ /** The STACKIT portal project UUID the instance is part of. */
263
+ projectId: string;
264
+ /** The STACKIT region the instance is part of. */
265
+ regionId: string;
266
+ /** The full ID of the instance, <display_name>-<project_hash>. */
267
+ instanceId: string;
268
+ /** Expiration of the included token in seconds */
269
+ expirationSeconds?: number;
270
+ }
271
+ export const GetKubeconfigByInstanceIdRequest = /*@__PURE__*/ S.suspend(() =>
272
+ S.Struct({
273
+ projectId: S.String.pipe(T.Label()),
274
+ regionId: S.String.pipe(T.Label()),
275
+ instanceId: S.String.pipe(T.Label()),
276
+ expirationSeconds: S.optional(S.Number.pipe(T.Query())),
277
+ }).pipe(
278
+ T.Http({
279
+ method: "GET",
280
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/kubeconfig",
281
+ code: 200,
282
+ baseUrl: "https://edge.api.stackit.cloud",
283
+ }),
284
+ ),
285
+ ).annotate({
286
+ identifier: "GetKubeconfigByInstanceIdRequest",
287
+ }) as any as S.Schema<GetKubeconfigByInstanceIdRequest>;
288
+
289
+ /** The kubeconfig for the instance. */
290
+ export type KubeconfigRaw = { [key: string]: unknown | undefined };
291
+ export const KubeconfigRaw = /*@__PURE__*/ S.Record(
292
+ S.String,
293
+ S.Unknown,
294
+ ) as any as S.Schema<KubeconfigRaw>;
295
+
296
+ export interface Kubeconfig {
297
+ kubeconfig: KubeconfigRaw;
298
+ }
299
+ export const Kubeconfig = /*@__PURE__*/ S.suspend(() =>
300
+ S.Struct({
301
+ kubeconfig: KubeconfigRaw,
302
+ }),
303
+ ).annotate({ identifier: "Kubeconfig" }) as any as S.Schema<Kubeconfig>;
304
+
305
+ export interface GetKubeconfigByInstanceNameRequest {
306
+ /** The STACKIT portal project UUID the instance is part of. */
307
+ projectId: string;
308
+ /** The STACKIT region the instance is part of. */
309
+ regionId: string;
310
+ /** The instance display name. */
311
+ displayName: string;
312
+ /** Expiration of the included token in seconds */
313
+ expirationSeconds?: number;
314
+ }
315
+ export const GetKubeconfigByInstanceNameRequest = /*@__PURE__*/ S.suspend(() =>
316
+ S.Struct({
317
+ projectId: S.String.pipe(T.Label()),
318
+ regionId: S.String.pipe(T.Label()),
319
+ displayName: S.String.pipe(T.Label()),
320
+ expirationSeconds: S.optional(S.Number.pipe(T.Query())),
321
+ }).pipe(
322
+ T.Http({
323
+ method: "GET",
324
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/instancesbyname/{displayName}/kubeconfig",
325
+ code: 200,
326
+ baseUrl: "https://edge.api.stackit.cloud",
327
+ }),
328
+ ),
329
+ ).annotate({
330
+ identifier: "GetKubeconfigByInstanceNameRequest",
331
+ }) as any as S.Schema<GetKubeconfigByInstanceNameRequest>;
332
+
333
+ export interface GetTokenByInstanceIdRequest {
334
+ /** The STACKIT portal project UUID the instance is part of. */
335
+ projectId: string;
336
+ /** The STACKIT region the instance is part of. */
337
+ regionId: string;
338
+ /** The instance UUID. */
339
+ instanceId: string;
340
+ /** Expiration of the token in seconds */
341
+ expirationSeconds?: number;
342
+ }
343
+ export const GetTokenByInstanceIdRequest = /*@__PURE__*/ S.suspend(() =>
344
+ S.Struct({
345
+ projectId: S.String.pipe(T.Label()),
346
+ regionId: S.String.pipe(T.Label()),
347
+ instanceId: S.String.pipe(T.Label()),
348
+ expirationSeconds: S.optional(S.Number.pipe(T.Query())),
349
+ }).pipe(
350
+ T.Http({
351
+ method: "GET",
352
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/token",
353
+ code: 200,
354
+ baseUrl: "https://edge.api.stackit.cloud",
355
+ }),
356
+ ),
357
+ ).annotate({
358
+ identifier: "GetTokenByInstanceIdRequest",
359
+ }) as any as S.Schema<GetTokenByInstanceIdRequest>;
360
+
361
+ export interface Token {
362
+ token: string;
363
+ }
364
+ export const Token = /*@__PURE__*/ S.suspend(() =>
365
+ S.Struct({
366
+ token: S.String,
367
+ }),
368
+ ).annotate({ identifier: "Token" }) as any as S.Schema<Token>;
369
+
370
+ export interface GetTokenByInstanceNameRequest {
371
+ /** The STACKIT portal project UUID the instance is part of. */
372
+ projectId: string;
373
+ /** The STACKIT region the instance is part of. */
374
+ regionId: string;
375
+ /** The instance display name. */
376
+ displayName: string;
377
+ /** Expiration of the included token in seconds */
378
+ expirationSeconds?: number;
379
+ }
380
+ export const GetTokenByInstanceNameRequest = /*@__PURE__*/ S.suspend(() =>
381
+ S.Struct({
382
+ projectId: S.String.pipe(T.Label()),
383
+ regionId: S.String.pipe(T.Label()),
384
+ displayName: S.String.pipe(T.Label()),
385
+ expirationSeconds: S.optional(S.Number.pipe(T.Query())),
386
+ }).pipe(
387
+ T.Http({
388
+ method: "GET",
389
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/instancesbyname/{displayName}/token",
390
+ code: 200,
391
+ baseUrl: "https://edge.api.stackit.cloud",
392
+ }),
393
+ ),
394
+ ).annotate({
395
+ identifier: "GetTokenByInstanceNameRequest",
396
+ }) as any as S.Schema<GetTokenByInstanceNameRequest>;
397
+
398
+ export interface ListCompatibleKubernetesReleasesRequest {
399
+ /** The name of the Talos release. */
400
+ talosVersion: string;
401
+ }
402
+ export const ListCompatibleKubernetesReleasesRequest = /*@__PURE__*/ S.suspend(
403
+ () =>
404
+ S.Struct({
405
+ talosVersion: S.String.pipe(T.Query()),
406
+ }).pipe(
407
+ T.Http({
408
+ method: "GET",
409
+ uri: "/v1beta1/listcompatiblekubernetesreleases",
410
+ code: 200,
411
+ baseUrl: "https://edge.api.stackit.cloud",
412
+ }),
413
+ ),
414
+ ).annotate({
415
+ identifier: "ListCompatibleKubernetesReleasesRequest",
416
+ }) as any as S.Schema<ListCompatibleKubernetesReleasesRequest>;
417
+
418
+ /** Array of Kubernetes version strings. */
419
+ export type KubernetesReleaseListK8sReleasesList = Array<string>;
420
+ export const KubernetesReleaseListK8sReleasesList = /*@__PURE__*/ S.Array(
421
+ S.String,
422
+ ) as any as S.Schema<KubernetesReleaseListK8sReleasesList>;
423
+
424
+ /** A list of compatible Kubernetes releases. */
425
+ export interface KubernetesReleaseList {
426
+ /** Array of Kubernetes version strings. */
427
+ k8s_releases: KubernetesReleaseListK8sReleasesList;
428
+ }
429
+ export const KubernetesReleaseList = /*@__PURE__*/ S.suspend(() =>
430
+ S.Struct({
431
+ k8s_releases: KubernetesReleaseListK8sReleasesList,
432
+ }),
433
+ ).annotate({
434
+ identifier: "KubernetesReleaseList",
435
+ }) as any as S.Schema<KubernetesReleaseList>;
436
+
437
+ export interface ListInstancesRequest {
438
+ /** The STACKIT portal project UUID the instance is part of. */
439
+ projectId: string;
440
+ /** The STACKIT region the instance is part of. */
441
+ regionId: string;
442
+ }
443
+ export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
444
+ S.Struct({
445
+ projectId: S.String.pipe(T.Label()),
446
+ regionId: S.String.pipe(T.Label()),
447
+ }).pipe(
448
+ T.Http({
449
+ method: "GET",
450
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/instances",
451
+ code: 200,
452
+ baseUrl: "https://edge.api.stackit.cloud",
453
+ }),
454
+ ),
455
+ ).annotate({
456
+ identifier: "ListInstancesRequest",
457
+ }) as any as S.Schema<ListInstancesRequest>;
458
+
459
+ export type InstanceListInstancesList = Array<Instance>;
460
+ export const InstanceListInstancesList = /*@__PURE__*/ S.Array(
461
+ Instance,
462
+ ) as any as S.Schema<InstanceListInstancesList>;
463
+
464
+ export interface InstanceList {
465
+ instances: InstanceListInstancesList;
466
+ }
467
+ export const InstanceList = /*@__PURE__*/ S.suspend(() =>
468
+ S.Struct({
469
+ instances: InstanceListInstancesList,
470
+ }),
471
+ ).annotate({ identifier: "InstanceList" }) as any as S.Schema<InstanceList>;
472
+
473
+ export interface ListPlansProjectRequest {
474
+ /** The STACKIT portal project UUID the plan is part of. */
475
+ projectId: string;
476
+ }
477
+ export const ListPlansProjectRequest = /*@__PURE__*/ S.suspend(() =>
478
+ S.Struct({
479
+ projectId: S.String.pipe(T.Label()),
480
+ }).pipe(
481
+ T.Http({
482
+ method: "GET",
483
+ uri: "/v1beta1/projects/{projectId}/plans",
484
+ code: 200,
485
+ baseUrl: "https://edge.api.stackit.cloud",
486
+ }),
487
+ ),
488
+ ).annotate({
489
+ identifier: "ListPlansProjectRequest",
490
+ }) as any as S.Schema<ListPlansProjectRequest>;
491
+
492
+ export interface Plan {
493
+ /** Description */
494
+ description?: string;
495
+ /** Service Plan Identifier */
496
+ id?: string;
497
+ /** Maximum number of EdgeHosts */
498
+ maxEdgeHosts?: number;
499
+ /** Minimum number of EdgeHosts charged */
500
+ minEdgeHosts?: number;
501
+ /** Service Plan Name */
502
+ name?: string;
503
+ }
504
+ export const Plan = /*@__PURE__*/ S.suspend(() =>
505
+ S.Struct({
506
+ description: S.optional(S.String),
507
+ id: S.optional(S.String),
508
+ maxEdgeHosts: S.optional(S.Number),
509
+ minEdgeHosts: S.optional(S.Number),
510
+ name: S.optional(S.String),
511
+ }),
512
+ ).annotate({ identifier: "Plan" }) as any as S.Schema<Plan>;
513
+
514
+ export type PlanListValidPlansList = Array<Plan>;
515
+ export const PlanListValidPlansList = /*@__PURE__*/ S.Array(
516
+ Plan,
517
+ ) as any as S.Schema<PlanListValidPlansList>;
518
+
519
+ export interface PlanList {
520
+ validPlans?: PlanListValidPlansList;
521
+ }
522
+ export const PlanList = /*@__PURE__*/ S.suspend(() =>
523
+ S.Struct({
524
+ validPlans: S.optional(PlanListValidPlansList),
525
+ }),
526
+ ).annotate({ identifier: "PlanList" }) as any as S.Schema<PlanList>;
527
+
528
+ export interface UpdateInstanceRequest {
529
+ /** The STACKIT portal project UUID the instance is part of. */
530
+ projectId: string;
531
+ /** The STACKIT region the instance is part of. */
532
+ regionId: string;
533
+ /** The full ID of the instance, <display_name>-<project_hash>. */
534
+ instanceId: string;
535
+ /** A user chosen description to distinguish multiple instances. */
536
+ description?: string;
537
+ /** Service Plan configures the size of the Instance. */
538
+ planId?: string;
539
+ }
540
+ export const UpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
541
+ S.Struct({
542
+ projectId: S.String.pipe(T.Label()),
543
+ regionId: S.String.pipe(T.Label()),
544
+ instanceId: S.String.pipe(T.Label()),
545
+ description: S.optional(S.String),
546
+ planId: S.optional(S.String),
547
+ }).pipe(
548
+ T.Http({
549
+ method: "PUT",
550
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
551
+ code: 200,
552
+ baseUrl: "https://edge.api.stackit.cloud",
553
+ }),
554
+ ),
555
+ ).annotate({
556
+ identifier: "UpdateInstanceRequest",
557
+ }) as any as S.Schema<UpdateInstanceRequest>;
558
+
559
+ export interface UpdateInstanceResponse {}
560
+ export const UpdateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
561
+ S.Struct({}),
562
+ ).annotate({
563
+ identifier: "UpdateInstanceResponse",
564
+ }) as any as S.Schema<UpdateInstanceResponse>;
565
+
566
+ export interface UpdateInstanceByNameRequest {
567
+ /** The STACKIT portal project UUID the instance is part of. */
568
+ projectId: string;
569
+ /** The STACKIT region the instance is part of. */
570
+ regionId: string;
571
+ /** The instance display name. */
572
+ displayName: string;
573
+ /** A user chosen description to distinguish multiple instances. */
574
+ description?: string;
575
+ /** Service Plan configures the size of the Instance. */
576
+ planId?: string;
577
+ }
578
+ export const UpdateInstanceByNameRequest = /*@__PURE__*/ S.suspend(() =>
579
+ S.Struct({
580
+ projectId: S.String.pipe(T.Label()),
581
+ regionId: S.String.pipe(T.Label()),
582
+ displayName: S.String.pipe(T.Label()),
583
+ description: S.optional(S.String),
584
+ planId: S.optional(S.String),
585
+ }).pipe(
586
+ T.Http({
587
+ method: "PUT",
588
+ uri: "/v1beta1/projects/{projectId}/regions/{regionId}/instancesbyname/{displayName}",
589
+ code: 200,
590
+ baseUrl: "https://edge.api.stackit.cloud",
591
+ }),
592
+ ),
593
+ ).annotate({
594
+ identifier: "UpdateInstanceByNameRequest",
595
+ }) as any as S.Schema<UpdateInstanceByNameRequest>;
596
+
597
+ export interface UpdateInstanceByNameResponse {}
598
+ export const UpdateInstanceByNameResponse = /*@__PURE__*/ S.suspend(() =>
599
+ S.Struct({}),
600
+ ).annotate({
601
+ identifier: "UpdateInstanceByNameResponse",
602
+ }) as any as S.Schema<UpdateInstanceByNameResponse>;
603
+
604
+ export type CreateInstanceError = BadRequest | Conflict | StackitOpError;
605
+ /** Creates a new instance within the project. */
606
+ export const createInstance: API.OperationMethod<
607
+ CreateInstanceRequest,
608
+ Instance,
609
+ CreateInstanceError,
610
+ StackitOpContext
611
+ > = /*@__PURE__*/ API.make(() => ({
612
+ input: CreateInstanceRequest,
613
+ output: Instance,
614
+ errors: [BadRequest, Conflict, UnknownStackitError],
615
+ protocol: StackitProtocol,
616
+ retry: Retry.Retry,
617
+ }));
618
+
619
+ export type DeleteInstanceError =
620
+ | BadRequest
621
+ | NotFound
622
+ | Conflict
623
+ | StackitOpError;
624
+ /** Deletes the given instance. */
625
+ export const deleteInstance: API.OperationMethod<
626
+ DeleteInstanceRequest,
627
+ DeleteInstanceResponse,
628
+ DeleteInstanceError,
629
+ StackitOpContext
630
+ > = /*@__PURE__*/ API.make(() => ({
631
+ input: DeleteInstanceRequest,
632
+ output: DeleteInstanceResponse,
633
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
634
+ protocol: StackitProtocol,
635
+ retry: Retry.Retry,
636
+ }));
637
+
638
+ export type DeleteInstanceByNameError =
639
+ | BadRequest
640
+ | NotFound
641
+ | Conflict
642
+ | StackitOpError;
643
+ /** Deletes the given instance by name. */
644
+ export const deleteInstanceByName: API.OperationMethod<
645
+ DeleteInstanceByNameRequest,
646
+ DeleteInstanceByNameResponse,
647
+ DeleteInstanceByNameError,
648
+ StackitOpContext
649
+ > = /*@__PURE__*/ API.make(() => ({
650
+ input: DeleteInstanceByNameRequest,
651
+ output: DeleteInstanceByNameResponse,
652
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
653
+ protocol: StackitProtocol,
654
+ retry: Retry.Retry,
655
+ }));
656
+
657
+ export type GetInstanceError = BadRequest | NotFound | StackitOpError;
658
+ /** Returns the details for the given instance. */
659
+ export const getInstance: API.OperationMethod<
660
+ GetInstanceRequest,
661
+ Instance,
662
+ GetInstanceError,
663
+ StackitOpContext
664
+ > = /*@__PURE__*/ API.make(() => ({
665
+ input: GetInstanceRequest,
666
+ output: Instance,
667
+ errors: [BadRequest, NotFound, UnknownStackitError],
668
+ protocol: StackitProtocol,
669
+ retry: Retry.Retry,
670
+ }));
671
+
672
+ export type GetInstanceByNameError = BadRequest | NotFound | StackitOpError;
673
+ /** Returns the details for the given instance by name. */
674
+ export const getInstanceByName: API.OperationMethod<
675
+ GetInstanceByNameRequest,
676
+ Instance,
677
+ GetInstanceByNameError,
678
+ StackitOpContext
679
+ > = /*@__PURE__*/ API.make(() => ({
680
+ input: GetInstanceByNameRequest,
681
+ output: Instance,
682
+ errors: [BadRequest, NotFound, UnknownStackitError],
683
+ protocol: StackitProtocol,
684
+ retry: Retry.Retry,
685
+ }));
686
+
687
+ export type GetKubeconfigByInstanceIdError =
688
+ | BadRequest
689
+ | NotFound
690
+ | StackitOpError;
691
+ /** Returns the kubeconfig for the given instance. */
692
+ export const getKubeconfigByInstanceId: API.OperationMethod<
693
+ GetKubeconfigByInstanceIdRequest,
694
+ Kubeconfig,
695
+ GetKubeconfigByInstanceIdError,
696
+ StackitOpContext
697
+ > = /*@__PURE__*/ API.make(() => ({
698
+ input: GetKubeconfigByInstanceIdRequest,
699
+ output: Kubeconfig,
700
+ errors: [BadRequest, NotFound, UnknownStackitError],
701
+ protocol: StackitProtocol,
702
+ retry: Retry.Retry,
703
+ }));
704
+
705
+ export type GetKubeconfigByInstanceNameError =
706
+ | BadRequest
707
+ | NotFound
708
+ | StackitOpError;
709
+ /** Returns the kubeconfig for the given instance. */
710
+ export const getKubeconfigByInstanceName: API.OperationMethod<
711
+ GetKubeconfigByInstanceNameRequest,
712
+ Kubeconfig,
713
+ GetKubeconfigByInstanceNameError,
714
+ StackitOpContext
715
+ > = /*@__PURE__*/ API.make(() => ({
716
+ input: GetKubeconfigByInstanceNameRequest,
717
+ output: Kubeconfig,
718
+ errors: [BadRequest, NotFound, UnknownStackitError],
719
+ protocol: StackitProtocol,
720
+ retry: Retry.Retry,
721
+ }));
722
+
723
+ export type GetTokenByInstanceIdError = BadRequest | NotFound | StackitOpError;
724
+ /** Returns an ServiceAccount token. */
725
+ export const getTokenByInstanceId: API.OperationMethod<
726
+ GetTokenByInstanceIdRequest,
727
+ Token,
728
+ GetTokenByInstanceIdError,
729
+ StackitOpContext
730
+ > = /*@__PURE__*/ API.make(() => ({
731
+ input: GetTokenByInstanceIdRequest,
732
+ output: Token,
733
+ errors: [BadRequest, NotFound, UnknownStackitError],
734
+ protocol: StackitProtocol,
735
+ retry: Retry.Retry,
736
+ }));
737
+
738
+ export type GetTokenByInstanceNameError =
739
+ | BadRequest
740
+ | NotFound
741
+ | StackitOpError;
742
+ /** Returns an ServiceAccount token. */
743
+ export const getTokenByInstanceName: API.OperationMethod<
744
+ GetTokenByInstanceNameRequest,
745
+ Token,
746
+ GetTokenByInstanceNameError,
747
+ StackitOpContext
748
+ > = /*@__PURE__*/ API.make(() => ({
749
+ input: GetTokenByInstanceNameRequest,
750
+ output: Token,
751
+ errors: [BadRequest, NotFound, UnknownStackitError],
752
+ protocol: StackitProtocol,
753
+ retry: Retry.Retry,
754
+ }));
755
+
756
+ export type ListCompatibleKubernetesReleasesError =
757
+ | BadRequest
758
+ | NotFound
759
+ | StackitOpError;
760
+ export const listCompatibleKubernetesReleases: API.OperationMethod<
761
+ ListCompatibleKubernetesReleasesRequest,
762
+ KubernetesReleaseList,
763
+ ListCompatibleKubernetesReleasesError,
764
+ StackitOpContext
765
+ > = /*@__PURE__*/ API.make(() => ({
766
+ input: ListCompatibleKubernetesReleasesRequest,
767
+ output: KubernetesReleaseList,
768
+ errors: [BadRequest, NotFound, UnknownStackitError],
769
+ protocol: StackitProtocol,
770
+ retry: Retry.Retry,
771
+ }));
772
+
773
+ export type ListInstancesError = BadRequest | StackitOpError;
774
+ /** Returns a list of all instances within the project. */
775
+ export const listInstances: API.OperationMethod<
776
+ ListInstancesRequest,
777
+ InstanceList,
778
+ ListInstancesError,
779
+ StackitOpContext
780
+ > = /*@__PURE__*/ API.make(() => ({
781
+ input: ListInstancesRequest,
782
+ output: InstanceList,
783
+ errors: [BadRequest, UnknownStackitError],
784
+ protocol: StackitProtocol,
785
+ retry: Retry.Retry,
786
+ }));
787
+
788
+ export type ListPlansProjectError = BadRequest | StackitOpError;
789
+ /** List all possible plans for the project. */
790
+ export const listPlansProject: API.OperationMethod<
791
+ ListPlansProjectRequest,
792
+ PlanList,
793
+ ListPlansProjectError,
794
+ StackitOpContext
795
+ > = /*@__PURE__*/ API.make(() => ({
796
+ input: ListPlansProjectRequest,
797
+ output: PlanList,
798
+ errors: [BadRequest, UnknownStackitError],
799
+ protocol: StackitProtocol,
800
+ retry: Retry.Retry,
801
+ }));
802
+
803
+ export type UpdateInstanceError =
804
+ | BadRequest
805
+ | NotFound
806
+ | Conflict
807
+ | StackitOpError;
808
+ /** Updates the given instance. */
809
+ export const updateInstance: API.OperationMethod<
810
+ UpdateInstanceRequest,
811
+ UpdateInstanceResponse,
812
+ UpdateInstanceError,
813
+ StackitOpContext
814
+ > = /*@__PURE__*/ API.make(() => ({
815
+ input: UpdateInstanceRequest,
816
+ output: UpdateInstanceResponse,
817
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
818
+ protocol: StackitProtocol,
819
+ retry: Retry.Retry,
820
+ }));
821
+
822
+ export type UpdateInstanceByNameError =
823
+ | BadRequest
824
+ | NotFound
825
+ | Conflict
826
+ | StackitOpError;
827
+ /** Updates the given instance. */
828
+ export const updateInstanceByName: API.OperationMethod<
829
+ UpdateInstanceByNameRequest,
830
+ UpdateInstanceByNameResponse,
831
+ UpdateInstanceByNameError,
832
+ StackitOpContext
833
+ > = /*@__PURE__*/ API.make(() => ({
834
+ input: UpdateInstanceByNameRequest,
835
+ output: UpdateInstanceByNameResponse,
836
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
837
+ protocol: StackitProtocol,
838
+ retry: Retry.Retry,
839
+ }));