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

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