@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
 
@@ -47,27 +50,14 @@ export class NotFound
47
50
 
48
51
  /** Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (""). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.* */
49
52
  export type Labels = { [key: string]: string | undefined };
50
- export const Labels = /*@__PURE__*/ S.Record(S.String, S.String) as any as S.Schema<Labels>;
51
-
52
53
  export interface Member {
53
54
  /** A valid role defined for the resource. */
54
55
  role: string;
55
56
  /** Unique identifier of the user, service account or client. */
56
57
  subject: string;
57
58
  }
58
- export const Member = /*@__PURE__*/ S.suspend(() =>
59
- S.Struct({
60
- role: S.String,
61
- subject: S.String,
62
- }),
63
- ).annotate({ identifier: "Member" }) as any as S.Schema<Member>;
64
-
65
59
  /** The initial members assigned to the project. At least one subject needs to be a user, and not a client or service account. */
66
60
  export type CreateFolderRequestMembersList = Array<Member>;
67
- export const CreateFolderRequestMembersList = /*@__PURE__*/ S.Array(
68
- Member,
69
- ) as any as S.Schema<CreateFolderRequestMembersList>;
70
-
71
61
  export interface CreateFolderRequest {
72
62
  /** Identifier of the parent resource container - containerId as well as UUID identifier is supported. */
73
63
  containerParentId: string;
@@ -77,26 +67,8 @@ export interface CreateFolderRequest {
77
67
  /** The name of the folder matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. */
78
68
  name: string;
79
69
  }
80
- export const CreateFolderRequest = /*@__PURE__*/ S.suspend(() =>
81
- S.Struct({
82
- containerParentId: S.String,
83
- labels: S.optional(Labels),
84
- members: S.optional(CreateFolderRequestMembersList),
85
- name: S.String,
86
- }).pipe(
87
- T.Http({
88
- method: "POST",
89
- uri: "/v2/folders",
90
- code: 200,
91
- baseUrl: "https://resource-manager.api.stackit.cloud",
92
- }),
93
- ),
94
- ).annotate({ identifier: "CreateFolderRequest" }) as any as S.Schema<CreateFolderRequest>;
95
-
96
70
  /** Container type of parent container. */
97
71
  export type ParentType = "ORGANIZATION" | "FOLDER";
98
- export const ParentType = S.String;
99
-
100
72
  /** Parent container. */
101
73
  export interface Parent {
102
74
  /** User-friendly identifier of either organization or folder (will replace id). */
@@ -106,14 +78,6 @@ export interface Parent {
106
78
  /** Container type of parent container. */
107
79
  type: ParentType;
108
80
  }
109
- export const Parent = /*@__PURE__*/ S.suspend(() =>
110
- S.Struct({
111
- containerId: S.String,
112
- id: S.String,
113
- type: ParentType,
114
- }),
115
- ).annotate({ identifier: "Parent" }) as any as S.Schema<Parent>;
116
-
117
81
  export interface FolderResponse {
118
82
  /** Globally unique, user-friendly identifier. */
119
83
  containerId: string;
@@ -128,31 +92,10 @@ export interface FolderResponse {
128
92
  /** Timestamp at which the folder was last modified. */
129
93
  updateTime: string;
130
94
  }
131
- export const FolderResponse = /*@__PURE__*/ S.suspend(() =>
132
- S.Struct({
133
- containerId: S.String,
134
- creationTime: S.String,
135
- folderId: S.String,
136
- labels: S.optional(Labels),
137
- name: S.String,
138
- parent: Parent,
139
- updateTime: S.String,
140
- }),
141
- ).annotate({ identifier: "FolderResponse" }) as any as S.Schema<FolderResponse>;
142
-
143
95
  /** Key-value string pairs attached to a resource container during creation. Certain labels may be enforced via organizational policies. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (""). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). * Either a `"scope": "PUBLIC"` label or a valid `networkArea` label must be provided for project creation. * To create a project within a STACKIT Network Area, you must set the label `"networkArea": "<networkAreaID>"`. > **Important:** The `networkArea` label is immutable and **cannot be changed** after project creation. */
144
96
  export type CreateProjectLabels = { [key: string]: string | undefined };
145
- export const CreateProjectLabels = /*@__PURE__*/ S.Record(
146
- S.String,
147
- S.String,
148
- ) as any as S.Schema<CreateProjectLabels>;
149
-
150
97
  /** The initial members assigned to the project. At least one subject needs to be a user, and not a client or service account. */
151
98
  export type CreateProjectRequestMembersList = Array<Member>;
152
- export const CreateProjectRequestMembersList = /*@__PURE__*/ S.Array(
153
- Member,
154
- ) as any as S.Schema<CreateProjectRequestMembersList>;
155
-
156
99
  export interface CreateProjectRequest {
157
100
  /** Identifier of the parent resource container - containerId as well as UUID identifier is supported. */
158
101
  containerParentId: string;
@@ -162,26 +105,8 @@ export interface CreateProjectRequest {
162
105
  /** Project name matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. */
163
106
  name: string;
164
107
  }
165
- export const CreateProjectRequest = /*@__PURE__*/ S.suspend(() =>
166
- S.Struct({
167
- containerParentId: S.String,
168
- labels: S.optional(CreateProjectLabels),
169
- members: CreateProjectRequestMembersList,
170
- name: S.String,
171
- }).pipe(
172
- T.Http({
173
- method: "POST",
174
- uri: "/v2/projects",
175
- code: 200,
176
- baseUrl: "https://resource-manager.api.stackit.cloud",
177
- }),
178
- ),
179
- ).annotate({ identifier: "CreateProjectRequest" }) as any as S.Schema<CreateProjectRequest>;
180
-
181
108
  /** Lifecycle state of the resource container. | LIFECYCLE STATE | DESCRIPTION | |----------|--------------------| | CREATING | The creation process has been triggered. The state remains until resource manager gets notified about successful process completion. | | ACTIVE | Resource container can be fully used. | | INACTIVE | Resource container usage has been disabled. | | DELETING | The deletion process has been triggered. The state remains until resource manager gets notified about successful process completion. Afterwards, the record will be deleted. | */
182
109
  export type LifecycleState = "CREATING" | "ACTIVE" | "DELETING" | "INACTIVE";
183
- export const LifecycleState = S.String;
184
-
185
110
  export interface Project {
186
111
  /** Globally unique, user-friendly identifier. */
187
112
  containerId: string;
@@ -197,187 +122,49 @@ export interface Project {
197
122
  /** Timestamp at which the project was last modified. */
198
123
  updateTime: string;
199
124
  }
200
- export const Project = /*@__PURE__*/ S.suspend(() =>
201
- S.Struct({
202
- containerId: S.String,
203
- creationTime: S.String,
204
- labels: S.optional(Labels),
205
- lifecycleState: LifecycleState,
206
- name: S.String,
207
- parent: Parent,
208
- projectId: S.String,
209
- updateTime: S.String,
210
- }),
211
- ).annotate({ identifier: "Project" }) as any as S.Schema<Project>;
212
-
213
125
  export interface DeleteFolderRequest {
214
126
  /** Folder identifier - containerId as well as UUID identifier is supported. */
215
127
  containerId: string;
216
128
  /** If true, all nested, empty folders are deleted recursively - if no project is attached! */
217
129
  force?: boolean;
218
130
  }
219
- export const DeleteFolderRequest = /*@__PURE__*/ S.suspend(() =>
220
- S.Struct({
221
- containerId: S.String.pipe(T.Label()),
222
- force: S.optional(S.Boolean.pipe(T.Query())),
223
- }).pipe(
224
- T.Http({
225
- method: "DELETE",
226
- uri: "/v2/folders/{containerId}",
227
- code: 200,
228
- baseUrl: "https://resource-manager.api.stackit.cloud",
229
- }),
230
- ),
231
- ).annotate({ identifier: "DeleteFolderRequest" }) as any as S.Schema<DeleteFolderRequest>;
232
-
233
131
  export interface DeleteFolderResponse {}
234
- export const DeleteFolderResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
235
- identifier: "DeleteFolderResponse",
236
- }) as any as S.Schema<DeleteFolderResponse>;
237
-
238
132
  export type DeleteFolderLabelsRequestKeysList = Array<string>;
239
- export const DeleteFolderLabelsRequestKeysList = /*@__PURE__*/ S.Array(
240
- S.String,
241
- ) as any as S.Schema<DeleteFolderLabelsRequestKeysList>;
242
-
243
133
  export interface DeleteFolderLabelsRequest {
244
134
  /** Folder identifier - containerId as well as UUID identifier is supported. */
245
135
  containerId: string;
246
136
  /** Label name. */
247
137
  keys?: DeleteFolderLabelsRequestKeysList;
248
138
  }
249
- export const DeleteFolderLabelsRequest = /*@__PURE__*/ S.suspend(() =>
250
- S.Struct({
251
- containerId: S.String.pipe(T.Label()),
252
- keys: S.optional(DeleteFolderLabelsRequestKeysList.pipe(T.Query())),
253
- }).pipe(
254
- T.Http({
255
- method: "DELETE",
256
- uri: "/v2/folders/{containerId}/labels",
257
- code: 200,
258
- baseUrl: "https://resource-manager.api.stackit.cloud",
259
- }),
260
- ),
261
- ).annotate({
262
- identifier: "DeleteFolderLabelsRequest",
263
- }) as any as S.Schema<DeleteFolderLabelsRequest>;
264
-
265
139
  export interface DeleteFolderLabelsResponse {}
266
- export const DeleteFolderLabelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
267
- identifier: "DeleteFolderLabelsResponse",
268
- }) as any as S.Schema<DeleteFolderLabelsResponse>;
269
-
270
140
  export type DeleteOrganizationLabelsRequestKeysList = Array<string>;
271
- export const DeleteOrganizationLabelsRequestKeysList = /*@__PURE__*/ S.Array(
272
- S.String,
273
- ) as any as S.Schema<DeleteOrganizationLabelsRequestKeysList>;
274
-
275
141
  export interface DeleteOrganizationLabelsRequest {
276
142
  /** Organization identifier - containerId as well as UUID identifier is supported. */
277
143
  containerId: string;
278
144
  /** Label name. */
279
145
  keys?: DeleteOrganizationLabelsRequestKeysList;
280
146
  }
281
- export const DeleteOrganizationLabelsRequest = /*@__PURE__*/ S.suspend(() =>
282
- S.Struct({
283
- containerId: S.String.pipe(T.Label()),
284
- keys: S.optional(DeleteOrganizationLabelsRequestKeysList.pipe(T.Query())),
285
- }).pipe(
286
- T.Http({
287
- method: "DELETE",
288
- uri: "/v2/organizations/{containerId}/labels",
289
- code: 200,
290
- baseUrl: "https://resource-manager.api.stackit.cloud",
291
- }),
292
- ),
293
- ).annotate({
294
- identifier: "DeleteOrganizationLabelsRequest",
295
- }) as any as S.Schema<DeleteOrganizationLabelsRequest>;
296
-
297
147
  export interface DeleteOrganizationLabelsResponse {}
298
- export const DeleteOrganizationLabelsResponse = /*@__PURE__*/ S.suspend(() =>
299
- S.Struct({}),
300
- ).annotate({
301
- identifier: "DeleteOrganizationLabelsResponse",
302
- }) as any as S.Schema<DeleteOrganizationLabelsResponse>;
303
-
304
148
  export interface DeleteProjectRequest {
305
149
  /** Project identifier - containerId as well as UUID identifier is supported. */
306
150
  id: string;
307
151
  }
308
- export const DeleteProjectRequest = /*@__PURE__*/ S.suspend(() =>
309
- S.Struct({
310
- id: S.String.pipe(T.Label()),
311
- }).pipe(
312
- T.Http({
313
- method: "DELETE",
314
- uri: "/v2/projects/{id}",
315
- code: 200,
316
- baseUrl: "https://resource-manager.api.stackit.cloud",
317
- }),
318
- ),
319
- ).annotate({ identifier: "DeleteProjectRequest" }) as any as S.Schema<DeleteProjectRequest>;
320
-
321
152
  export interface DeleteProjectResponse {}
322
- export const DeleteProjectResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
323
- identifier: "DeleteProjectResponse",
324
- }) as any as S.Schema<DeleteProjectResponse>;
325
-
326
153
  export type DeleteProjectLabelsRequestKeysList = Array<string>;
327
- export const DeleteProjectLabelsRequestKeysList = /*@__PURE__*/ S.Array(
328
- S.String,
329
- ) as any as S.Schema<DeleteProjectLabelsRequestKeysList>;
330
-
331
154
  export interface DeleteProjectLabelsRequest {
332
155
  /** Project identifier - containerId as well as UUID identifier is supported. */
333
156
  containerId: string;
334
157
  /** Label name. */
335
158
  keys?: DeleteProjectLabelsRequestKeysList;
336
159
  }
337
- export const DeleteProjectLabelsRequest = /*@__PURE__*/ S.suspend(() =>
338
- S.Struct({
339
- containerId: S.String.pipe(T.Label()),
340
- keys: S.optional(DeleteProjectLabelsRequestKeysList.pipe(T.Query())),
341
- }).pipe(
342
- T.Http({
343
- method: "DELETE",
344
- uri: "/v2/projects/{containerId}/labels",
345
- code: 200,
346
- baseUrl: "https://resource-manager.api.stackit.cloud",
347
- }),
348
- ),
349
- ).annotate({
350
- identifier: "DeleteProjectLabelsRequest",
351
- }) as any as S.Schema<DeleteProjectLabelsRequest>;
352
-
353
160
  export interface DeleteProjectLabelsResponse {}
354
- export const DeleteProjectLabelsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
355
- identifier: "DeleteProjectLabelsResponse",
356
- }) as any as S.Schema<DeleteProjectLabelsResponse>;
357
-
358
161
  export interface GetFolderDetailsRequest {
359
162
  /** Folder identifier - containerId as well as UUID identifier is supported. */
360
163
  containerId: string;
361
164
  includeParents?: boolean;
362
165
  }
363
- export const GetFolderDetailsRequest = /*@__PURE__*/ S.suspend(() =>
364
- S.Struct({
365
- containerId: S.String.pipe(T.Label()),
366
- includeParents: S.optional(S.Boolean.pipe(T.Query())),
367
- }).pipe(
368
- T.Http({
369
- method: "GET",
370
- uri: "/v2/folders/{containerId}",
371
- code: 200,
372
- baseUrl: "https://resource-manager.api.stackit.cloud",
373
- }),
374
- ),
375
- ).annotate({ identifier: "GetFolderDetailsRequest" }) as any as S.Schema<GetFolderDetailsRequest>;
376
-
377
166
  /** Parent container type. */
378
167
  export type ParentListItemType = "FOLDER" | "ORGANIZATION";
379
- export const ParentListItemType = S.String;
380
-
381
168
  export interface ParentListItem {
382
169
  /** User-friendly identifier of either organization or folder (will replace id). */
383
170
  containerId: string;
@@ -392,20 +179,7 @@ export interface ParentListItem {
392
179
  /** Parent container type. */
393
180
  type: ParentListItemType;
394
181
  }
395
- export const ParentListItem = /*@__PURE__*/ S.suspend(() =>
396
- S.Struct({
397
- containerId: S.String,
398
- containerParentId: S.optional(S.String),
399
- id: S.String,
400
- name: S.String,
401
- parentId: S.optional(S.String),
402
- type: ParentListItemType,
403
- }),
404
- ).annotate({ identifier: "ParentListItem" }) as any as S.Schema<ParentListItem>;
405
-
406
182
  export type ParentList = Array<ParentListItem>;
407
- export const ParentList = /*@__PURE__*/ S.Array(ParentListItem) as any as S.Schema<ParentList>;
408
-
409
183
  export interface GetFolderDetailsResponse {
410
184
  /** Globally unique user-friendly identifier. */
411
185
  containerId: string;
@@ -421,36 +195,10 @@ export interface GetFolderDetailsResponse {
421
195
  /** Timestamp at which the folder was last modified. */
422
196
  updateTime: string;
423
197
  }
424
- export const GetFolderDetailsResponse = /*@__PURE__*/ S.suspend(() =>
425
- S.Struct({
426
- containerId: S.String,
427
- creationTime: S.String,
428
- folderId: S.String,
429
- labels: S.optional(Labels),
430
- name: S.String,
431
- parent: Parent,
432
- parents: S.optional(ParentList),
433
- updateTime: S.String,
434
- }),
435
- ).annotate({ identifier: "GetFolderDetailsResponse" }) as any as S.Schema<GetFolderDetailsResponse>;
436
-
437
198
  export interface GetOrganizationRequest {
438
199
  /** Organization identifier - containerId as well as UUID identifier is supported. */
439
200
  id: string;
440
201
  }
441
- export const GetOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
442
- S.Struct({
443
- id: S.String.pipe(T.Label()),
444
- }).pipe(
445
- T.Http({
446
- method: "GET",
447
- uri: "/v2/organizations/{id}",
448
- code: 200,
449
- baseUrl: "https://resource-manager.api.stackit.cloud",
450
- }),
451
- ),
452
- ).annotate({ identifier: "GetOrganizationRequest" }) as any as S.Schema<GetOrganizationRequest>;
453
-
454
202
  export interface OrganizationResponse {
455
203
  /** Globally unique, user-friendly identifier. */
456
204
  containerId: string;
@@ -465,37 +213,11 @@ export interface OrganizationResponse {
465
213
  /** Timestamp at which the organization was last modified. */
466
214
  updateTime: string;
467
215
  }
468
- export const OrganizationResponse = /*@__PURE__*/ S.suspend(() =>
469
- S.Struct({
470
- containerId: S.String,
471
- creationTime: S.String,
472
- labels: S.optional(Labels),
473
- lifecycleState: LifecycleState,
474
- name: S.String,
475
- organizationId: S.String,
476
- updateTime: S.String,
477
- }),
478
- ).annotate({ identifier: "OrganizationResponse" }) as any as S.Schema<OrganizationResponse>;
479
-
480
216
  export interface GetProjectRequest {
481
217
  /** Project identifier - containerId as well as UUID identifier is supported. */
482
218
  id: string;
483
219
  includeParents?: boolean;
484
220
  }
485
- export const GetProjectRequest = /*@__PURE__*/ S.suspend(() =>
486
- S.Struct({
487
- id: S.String.pipe(T.Label()),
488
- includeParents: S.optional(S.Boolean.pipe(T.Query())),
489
- }).pipe(
490
- T.Http({
491
- method: "GET",
492
- uri: "/v2/projects/{id}",
493
- code: 200,
494
- baseUrl: "https://resource-manager.api.stackit.cloud",
495
- }),
496
- ),
497
- ).annotate({ identifier: "GetProjectRequest" }) as any as S.Schema<GetProjectRequest>;
498
-
499
221
  export interface GetProjectResponse {
500
222
  /** Globally unique identifier. */
501
223
  containerId: string;
@@ -512,25 +234,7 @@ export interface GetProjectResponse {
512
234
  /** Timestamp at which the project was last modified. */
513
235
  updateTime: string;
514
236
  }
515
- export const GetProjectResponse = /*@__PURE__*/ S.suspend(() =>
516
- S.Struct({
517
- containerId: S.String,
518
- creationTime: S.String,
519
- labels: S.optional(Labels),
520
- lifecycleState: LifecycleState,
521
- name: S.String,
522
- parent: Parent,
523
- parents: S.optional(ParentList),
524
- projectId: S.String,
525
- updateTime: S.String,
526
- }),
527
- ).annotate({ identifier: "GetProjectResponse" }) as any as S.Schema<GetProjectResponse>;
528
-
529
237
  export type ListFoldersRequestContainerIdsList = Array<string>;
530
- export const ListFoldersRequestContainerIdsList = /*@__PURE__*/ S.Array(
531
- S.String,
532
- ) as any as S.Schema<ListFoldersRequestContainerIdsList>;
533
-
534
238
  export interface ListFoldersRequest {
535
239
  /** Identifier of the parent resource container - containerId as well as UUID identifier is supported. */
536
240
  containerParentId?: string;
@@ -545,24 +249,6 @@ export interface ListFoldersRequest {
545
249
  /** A timestamp to specify the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time. */
546
250
  creation_time_start?: string;
547
251
  }
548
- export const ListFoldersRequest = /*@__PURE__*/ S.suspend(() =>
549
- S.Struct({
550
- containerParentId: S.optional(S.String.pipe(T.Query())),
551
- containerIds: S.optional(ListFoldersRequestContainerIdsList.pipe(T.Query())),
552
- member: S.optional(S.String.pipe(T.Query())),
553
- limit: S.optional(S.Number.pipe(T.Query())),
554
- offset: S.optional(S.Number.pipe(T.Query())),
555
- creation_time_start: S.optional(S.String.pipe(T.Query("creation-time-start"))),
556
- }).pipe(
557
- T.Http({
558
- method: "GET",
559
- uri: "/v2/folders",
560
- code: 200,
561
- baseUrl: "https://resource-manager.api.stackit.cloud",
562
- }),
563
- ),
564
- ).annotate({ identifier: "ListFoldersRequest" }) as any as S.Schema<ListFoldersRequest>;
565
-
566
252
  export interface ListFoldersResponseItemsItem {
567
253
  /** Globally unique folder identifier. */
568
254
  containerId: string;
@@ -577,43 +263,13 @@ export interface ListFoldersResponseItemsItem {
577
263
  /** Timestamp at which the folder was created. */
578
264
  updateTime: string;
579
265
  }
580
- export const ListFoldersResponseItemsItem = /*@__PURE__*/ S.suspend(() =>
581
- S.Struct({
582
- containerId: S.String,
583
- creationTime: S.String,
584
- folderId: S.String,
585
- labels: S.optional(Labels),
586
- name: S.String,
587
- parent: Parent,
588
- updateTime: S.String,
589
- }),
590
- ).annotate({
591
- identifier: "ListFoldersResponseItemsItem",
592
- }) as any as S.Schema<ListFoldersResponseItemsItem>;
593
-
594
266
  export type ListFoldersResponseItemsList = Array<ListFoldersResponseItemsItem>;
595
- export const ListFoldersResponseItemsList = /*@__PURE__*/ S.Array(
596
- ListFoldersResponseItemsItem,
597
- ) as any as S.Schema<ListFoldersResponseItemsList>;
598
-
599
267
  export interface ListFoldersResponse {
600
268
  items: ListFoldersResponseItemsList;
601
269
  limit: number;
602
270
  offset: number;
603
271
  }
604
- export const ListFoldersResponse = /*@__PURE__*/ S.suspend(() =>
605
- S.Struct({
606
- items: ListFoldersResponseItemsList,
607
- limit: S.Number,
608
- offset: S.Number,
609
- }),
610
- ).annotate({ identifier: "ListFoldersResponse" }) as any as S.Schema<ListFoldersResponse>;
611
-
612
272
  export type ListOrganizationsRequestContainerIdsList = Array<string>;
613
- export const ListOrganizationsRequestContainerIdsList = /*@__PURE__*/ S.Array(
614
- S.String,
615
- ) as any as S.Schema<ListOrganizationsRequestContainerIdsList>;
616
-
617
273
  export interface ListOrganizationsRequest {
618
274
  /** Organization identifiers - containerId as well as UUID identifier is supported. A combination of both is not allowed. */
619
275
  containerIds?: ListOrganizationsRequestContainerIdsList;
@@ -626,23 +282,6 @@ export interface ListOrganizationsRequest {
626
282
  /** A timestamp to specify the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time. */
627
283
  creation_time_start?: string;
628
284
  }
629
- export const ListOrganizationsRequest = /*@__PURE__*/ S.suspend(() =>
630
- S.Struct({
631
- containerIds: S.optional(ListOrganizationsRequestContainerIdsList.pipe(T.Query())),
632
- member: S.optional(S.String.pipe(T.Query())),
633
- limit: S.optional(S.Number.pipe(T.Query())),
634
- offset: S.optional(S.Number.pipe(T.Query())),
635
- creation_time_start: S.optional(S.String.pipe(T.Query("creation-time-start"))),
636
- }).pipe(
637
- T.Http({
638
- method: "GET",
639
- uri: "/v2/organizations",
640
- code: 200,
641
- baseUrl: "https://resource-manager.api.stackit.cloud",
642
- }),
643
- ),
644
- ).annotate({ identifier: "ListOrganizationsRequest" }) as any as S.Schema<ListOrganizationsRequest>;
645
-
646
285
  export interface ListOrganizationsResponseItemsItem {
647
286
  /** Globally unique, user-friendly identifier. */
648
287
  containerId: string;
@@ -657,45 +296,13 @@ export interface ListOrganizationsResponseItemsItem {
657
296
  /** Timestamp at which the organization was last modified. */
658
297
  updateTime: string;
659
298
  }
660
- export const ListOrganizationsResponseItemsItem = /*@__PURE__*/ S.suspend(() =>
661
- S.Struct({
662
- containerId: S.String,
663
- creationTime: S.String,
664
- labels: S.optional(Labels),
665
- lifecycleState: LifecycleState,
666
- name: S.String,
667
- organizationId: S.String,
668
- updateTime: S.String,
669
- }),
670
- ).annotate({
671
- identifier: "ListOrganizationsResponseItemsItem",
672
- }) as any as S.Schema<ListOrganizationsResponseItemsItem>;
673
-
674
299
  export type ListOrganizationsResponseItemsList = Array<ListOrganizationsResponseItemsItem>;
675
- export const ListOrganizationsResponseItemsList = /*@__PURE__*/ S.Array(
676
- ListOrganizationsResponseItemsItem,
677
- ) as any as S.Schema<ListOrganizationsResponseItemsList>;
678
-
679
300
  export interface ListOrganizationsResponse {
680
301
  items: ListOrganizationsResponseItemsList;
681
302
  limit: number;
682
303
  offset: number;
683
304
  }
684
- export const ListOrganizationsResponse = /*@__PURE__*/ S.suspend(() =>
685
- S.Struct({
686
- items: ListOrganizationsResponseItemsList,
687
- limit: S.Number,
688
- offset: S.Number,
689
- }),
690
- ).annotate({
691
- identifier: "ListOrganizationsResponse",
692
- }) as any as S.Schema<ListOrganizationsResponse>;
693
-
694
305
  export type ListProjectsRequestContainerIdsList = Array<string>;
695
- export const ListProjectsRequestContainerIdsList = /*@__PURE__*/ S.Array(
696
- S.String,
697
- ) as any as S.Schema<ListProjectsRequestContainerIdsList>;
698
-
699
306
  export interface ListProjectsRequest {
700
307
  /** Identifier of the parent resource container - containerId as well as UUID identifier is supported. */
701
308
  containerParentId?: string;
@@ -710,49 +317,14 @@ export interface ListProjectsRequest {
710
317
  /** A timestamp to specify the beginning of the creationTime from which entries should be returned. If not given, defaults to the beginning of time. */
711
318
  creation_time_start?: string;
712
319
  }
713
- export const ListProjectsRequest = /*@__PURE__*/ S.suspend(() =>
714
- S.Struct({
715
- containerParentId: S.optional(S.String.pipe(T.Query())),
716
- containerIds: S.optional(ListProjectsRequestContainerIdsList.pipe(T.Query())),
717
- member: S.optional(S.String.pipe(T.Query())),
718
- offset: S.optional(S.Number.pipe(T.Query())),
719
- limit: S.optional(S.Number.pipe(T.Query())),
720
- creation_time_start: S.optional(S.String.pipe(T.Query("creation-time-start"))),
721
- }).pipe(
722
- T.Http({
723
- method: "GET",
724
- uri: "/v2/projects",
725
- code: 200,
726
- baseUrl: "https://resource-manager.api.stackit.cloud",
727
- }),
728
- ),
729
- ).annotate({ identifier: "ListProjectsRequest" }) as any as S.Schema<ListProjectsRequest>;
730
-
731
320
  export type ListProjectsResponseItemsList = Array<Project>;
732
- export const ListProjectsResponseItemsList = /*@__PURE__*/ S.Array(
733
- Project,
734
- ) as any as S.Schema<ListProjectsResponseItemsList>;
735
-
736
321
  export interface ListProjectsResponse {
737
322
  items: ListProjectsResponseItemsList;
738
323
  limit: number;
739
324
  offset: number;
740
325
  }
741
- export const ListProjectsResponse = /*@__PURE__*/ S.suspend(() =>
742
- S.Struct({
743
- items: ListProjectsResponseItemsList,
744
- limit: S.Number,
745
- offset: S.Number,
746
- }),
747
- ).annotate({ identifier: "ListProjectsResponse" }) as any as S.Schema<ListProjectsResponse>;
748
-
749
326
  /** Key-value string pairs attached to an existing resource container. Certain labels may be enforced via organizational policies. Setting an individual label's value to `null` removes/deletes that label from the resource. * **Key:** Must be between 1 and 63 characters long (excluding an optional domain prefix). Must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). May include an optional domain prefix up to 250 characters (a lowercase DNS subdomain containing `[a-z0-9]`, `-`, and `.`) followed by a slash (/). Total maximum key length is 314 characters. * **Value:** Must be 63 characters or less. May be empty (""). If non-empty, must start and end with an alphanumeric character `[a-zA-Z0-9]` and can contain alphanumerics, dashes (-), underscores (_), and dots (.). > Note: Additional naming restrictions may apply depending on your specific organization.* */
750
327
  export type UpdateLabels = { [key: string]: string | null | undefined };
751
- export const UpdateLabels = /*@__PURE__*/ S.Record(
752
- S.String,
753
- S.NullOr(S.String),
754
- ) as any as S.Schema<UpdateLabels>;
755
-
756
328
  export interface PartialUpdateFolderRequest {
757
329
  /** Folder identifier - containerId as well as UUID identifier is supported. */
758
330
  containerId: string;
@@ -762,24 +334,6 @@ export interface PartialUpdateFolderRequest {
762
334
  /** New name for the resource container matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. */
763
335
  name?: string;
764
336
  }
765
- export const PartialUpdateFolderRequest = /*@__PURE__*/ S.suspend(() =>
766
- S.Struct({
767
- containerId: S.String.pipe(T.Label()),
768
- containerParentId: S.optional(S.String),
769
- labels: S.optional(UpdateLabels),
770
- name: S.optional(S.String),
771
- }).pipe(
772
- T.Http({
773
- method: "PATCH",
774
- uri: "/v2/folders/{containerId}",
775
- code: 200,
776
- baseUrl: "https://resource-manager.api.stackit.cloud",
777
- }),
778
- ),
779
- ).annotate({
780
- identifier: "PartialUpdateFolderRequest",
781
- }) as any as S.Schema<PartialUpdateFolderRequest>;
782
-
783
337
  export interface PartialUpdateOrganizationRequest {
784
338
  /** Organization identifier - containerId as well as UUID identifier is supported. */
785
339
  id: string;
@@ -787,23 +341,6 @@ export interface PartialUpdateOrganizationRequest {
787
341
  /** The new name of the organization matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. */
788
342
  name?: string;
789
343
  }
790
- export const PartialUpdateOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
791
- S.Struct({
792
- id: S.String.pipe(T.Label()),
793
- labels: S.optional(UpdateLabels),
794
- name: S.optional(S.String),
795
- }).pipe(
796
- T.Http({
797
- method: "PATCH",
798
- uri: "/v2/organizations/{id}",
799
- code: 200,
800
- baseUrl: "https://resource-manager.api.stackit.cloud",
801
- }),
802
- ),
803
- ).annotate({
804
- identifier: "PartialUpdateOrganizationRequest",
805
- }) as any as S.Schema<PartialUpdateOrganizationRequest>;
806
-
807
344
  export interface PartialUpdateProjectRequest {
808
345
  /** Project identifier - containerId as well as UUID identifier is supported. */
809
346
  id: string;
@@ -813,24 +350,6 @@ export interface PartialUpdateProjectRequest {
813
350
  /** New name for the resource container matching the regex `^[a-zA-ZäüöÄÜÖ0-9]( ?[a-zA-ZäüöÄÜÖß0-9_+&-]){0,39}$`. */
814
351
  name?: string;
815
352
  }
816
- export const PartialUpdateProjectRequest = /*@__PURE__*/ S.suspend(() =>
817
- S.Struct({
818
- id: S.String.pipe(T.Label()),
819
- containerParentId: S.optional(S.String),
820
- labels: S.optional(UpdateLabels),
821
- name: S.optional(S.String),
822
- }).pipe(
823
- T.Http({
824
- method: "PATCH",
825
- uri: "/v2/projects/{id}",
826
- code: 200,
827
- baseUrl: "https://resource-manager.api.stackit.cloud",
828
- }),
829
- ),
830
- ).annotate({
831
- identifier: "PartialUpdateProjectRequest",
832
- }) as any as S.Schema<PartialUpdateProjectRequest>;
833
-
834
353
  export type CreateFolderError = BadRequest | Forbidden | Conflict | StackitOpError;
835
354
  /** Create Folder Creates a new folder within a parent organization or folder. Authorization & Permissions: - Evaluated on Target Parent Container: resource-manager.folder.create (required permission on the target parent organization or folder to create a folder). */
836
355
  export const createFolder: API.OperationMethod<
@@ -839,8 +358,8 @@ export const createFolder: API.OperationMethod<
839
358
  CreateFolderError,
840
359
  StackitOpContext
841
360
  > = /*@__PURE__*/ API.make(() => ({
842
- input: CreateFolderRequest,
843
- output: FolderResponse,
361
+ input: __S(52, __c13, 0) as any as S.Schema<CreateFolderRequest>,
362
+ output: __S(56, __c14, 0) as any as S.Schema<FolderResponse>,
844
363
  errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
845
364
  protocol: StackitProtocol,
846
365
  retry: Retry.Retry,
@@ -854,8 +373,8 @@ export const createProject: API.OperationMethod<
854
373
  CreateProjectError,
855
374
  StackitOpContext
856
375
  > = /*@__PURE__*/ API.make(() => ({
857
- input: CreateProjectRequest,
858
- output: Project,
376
+ input: __S(72, __c18, 0) as any as S.Schema<CreateProjectRequest>,
377
+ output: __S(76, __c19, 0) as any as S.Schema<Project>,
859
378
  errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
860
379
  protocol: StackitProtocol,
861
380
  retry: Retry.Retry,
@@ -869,8 +388,8 @@ export const deleteFolder: API.OperationMethod<
869
388
  DeleteFolderError,
870
389
  StackitOpContext
871
390
  > = /*@__PURE__*/ API.make(() => ({
872
- input: DeleteFolderRequest,
873
- output: DeleteFolderResponse,
391
+ input: __S(80, __c20, 0) as any as S.Schema<DeleteFolderRequest>,
392
+ output: __S(84, __c21, 0) as any as S.Schema<DeleteFolderResponse>,
874
393
  errors: [NotFound, Conflict, UnknownStackitError],
875
394
  protocol: StackitProtocol,
876
395
  retry: Retry.Retry,
@@ -884,8 +403,8 @@ export const deleteFolderLabels: API.OperationMethod<
884
403
  DeleteFolderLabelsError,
885
404
  StackitOpContext
886
405
  > = /*@__PURE__*/ API.make(() => ({
887
- input: DeleteFolderLabelsRequest,
888
- output: DeleteFolderLabelsResponse,
406
+ input: __S(88, __c22, 0) as any as S.Schema<DeleteFolderLabelsRequest>,
407
+ output: __S(84, __c21, 0) as any as S.Schema<DeleteFolderLabelsResponse>,
889
408
  errors: [Conflict, UnknownStackitError],
890
409
  protocol: StackitProtocol,
891
410
  retry: Retry.Retry,
@@ -899,8 +418,8 @@ export const deleteOrganizationLabels: API.OperationMethod<
899
418
  DeleteOrganizationLabelsError,
900
419
  StackitOpContext
901
420
  > = /*@__PURE__*/ API.make(() => ({
902
- input: DeleteOrganizationLabelsRequest,
903
- output: DeleteOrganizationLabelsResponse,
421
+ input: __S(96, __c24, 0) as any as S.Schema<DeleteOrganizationLabelsRequest>,
422
+ output: __S(84, __c21, 0) as any as S.Schema<DeleteOrganizationLabelsResponse>,
904
423
  errors: [Conflict, UnknownStackitError],
905
424
  protocol: StackitProtocol,
906
425
  retry: Retry.Retry,
@@ -914,8 +433,8 @@ export const deleteProject: API.OperationMethod<
914
433
  DeleteProjectError,
915
434
  StackitOpContext
916
435
  > = /*@__PURE__*/ API.make(() => ({
917
- input: DeleteProjectRequest,
918
- output: DeleteProjectResponse,
436
+ input: __S(100, __c25, 0) as any as S.Schema<DeleteProjectRequest>,
437
+ output: __S(84, __c21, 0) as any as S.Schema<DeleteProjectResponse>,
919
438
  errors: [Conflict, UnknownStackitError],
920
439
  protocol: StackitProtocol,
921
440
  retry: Retry.Retry,
@@ -929,8 +448,8 @@ export const deleteProjectLabels: API.OperationMethod<
929
448
  DeleteProjectLabelsError,
930
449
  StackitOpContext
931
450
  > = /*@__PURE__*/ API.make(() => ({
932
- input: DeleteProjectLabelsRequest,
933
- output: DeleteProjectLabelsResponse,
451
+ input: __S(0, __c0, 0) as any as S.Schema<DeleteProjectLabelsRequest>,
452
+ output: __S(84, __c21, 0) as any as S.Schema<DeleteProjectLabelsResponse>,
934
453
  errors: [Conflict, UnknownStackitError],
935
454
  protocol: StackitProtocol,
936
455
  retry: Retry.Retry,
@@ -944,8 +463,8 @@ export const getFolderDetails: API.OperationMethod<
944
463
  GetFolderDetailsError,
945
464
  StackitOpContext
946
465
  > = /*@__PURE__*/ API.make(() => ({
947
- input: GetFolderDetailsRequest,
948
- output: GetFolderDetailsResponse,
466
+ input: __S(4, __c1, 0) as any as S.Schema<GetFolderDetailsRequest>,
467
+ output: __S(5, __c1, 1) as any as S.Schema<GetFolderDetailsResponse>,
949
468
  errors: [Forbidden, NotFound, UnknownStackitError],
950
469
  protocol: StackitProtocol,
951
470
  retry: Retry.Retry,
@@ -959,8 +478,8 @@ export const getOrganization: API.OperationMethod<
959
478
  GetOrganizationError,
960
479
  StackitOpContext
961
480
  > = /*@__PURE__*/ API.make(() => ({
962
- input: GetOrganizationRequest,
963
- output: OrganizationResponse,
481
+ input: __S(12, __c3, 0) as any as S.Schema<GetOrganizationRequest>,
482
+ output: __S(16, __c4, 0) as any as S.Schema<OrganizationResponse>,
964
483
  errors: [NotFound, UnknownStackitError],
965
484
  protocol: StackitProtocol,
966
485
  retry: Retry.Retry,
@@ -974,8 +493,8 @@ export const getProject: API.OperationMethod<
974
493
  GetProjectError,
975
494
  StackitOpContext
976
495
  > = /*@__PURE__*/ API.make(() => ({
977
- input: GetProjectRequest,
978
- output: GetProjectResponse,
496
+ input: __S(20, __c5, 0) as any as S.Schema<GetProjectRequest>,
497
+ output: __S(21, __c5, 1) as any as S.Schema<GetProjectResponse>,
979
498
  errors: [Forbidden, NotFound, UnknownStackitError],
980
499
  protocol: StackitProtocol,
981
500
  retry: Retry.Retry,
@@ -989,8 +508,8 @@ export const listFolders: API.OperationMethod<
989
508
  ListFoldersError,
990
509
  StackitOpContext
991
510
  > = /*@__PURE__*/ API.make(() => ({
992
- input: ListFoldersRequest,
993
- output: ListFoldersResponse,
511
+ input: __S(24, __c6, 0) as any as S.Schema<ListFoldersRequest>,
512
+ output: __S(26, __c6, 2) as any as S.Schema<ListFoldersResponse>,
994
513
  errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
995
514
  protocol: StackitProtocol,
996
515
  retry: Retry.Retry,
@@ -1004,8 +523,8 @@ export const listOrganizations: API.OperationMethod<
1004
523
  ListOrganizationsError,
1005
524
  StackitOpContext
1006
525
  > = /*@__PURE__*/ API.make(() => ({
1007
- input: ListOrganizationsRequest,
1008
- output: ListOrganizationsResponse,
526
+ input: __S(28, __c7, 0) as any as S.Schema<ListOrganizationsRequest>,
527
+ output: __S(30, __c7, 2) as any as S.Schema<ListOrganizationsResponse>,
1009
528
  errors: [BadRequest, Forbidden, UnknownStackitError],
1010
529
  protocol: StackitProtocol,
1011
530
  retry: Retry.Retry,
@@ -1019,8 +538,8 @@ export const listProjects: API.OperationMethod<
1019
538
  ListProjectsError,
1020
539
  StackitOpContext
1021
540
  > = /*@__PURE__*/ API.make(() => ({
1022
- input: ListProjectsRequest,
1023
- output: ListProjectsResponse,
541
+ input: __S(32, __c8, 0) as any as S.Schema<ListProjectsRequest>,
542
+ output: __S(34, __c8, 2) as any as S.Schema<ListProjectsResponse>,
1024
543
  errors: [BadRequest, Forbidden, UnknownStackitError],
1025
544
  protocol: StackitProtocol,
1026
545
  retry: Retry.Retry,
@@ -1034,8 +553,8 @@ export const partialUpdateFolder: API.OperationMethod<
1034
553
  PartialUpdateFolderError,
1035
554
  StackitOpContext
1036
555
  > = /*@__PURE__*/ API.make(() => ({
1037
- input: PartialUpdateFolderRequest,
1038
- output: FolderResponse,
556
+ input: __S(36, __c9, 0) as any as S.Schema<PartialUpdateFolderRequest>,
557
+ output: __S(56, __c14, 0) as any as S.Schema<FolderResponse>,
1039
558
  errors: [Forbidden, NotFound, Conflict, UnknownStackitError],
1040
559
  protocol: StackitProtocol,
1041
560
  retry: Retry.Retry,
@@ -1049,8 +568,8 @@ export const partialUpdateOrganization: API.OperationMethod<
1049
568
  PartialUpdateOrganizationError,
1050
569
  StackitOpContext
1051
570
  > = /*@__PURE__*/ API.make(() => ({
1052
- input: PartialUpdateOrganizationRequest,
1053
- output: OrganizationResponse,
571
+ input: __S(44, __c11, 0) as any as S.Schema<PartialUpdateOrganizationRequest>,
572
+ output: __S(16, __c4, 0) as any as S.Schema<OrganizationResponse>,
1054
573
  errors: [NotFound, Conflict, UnknownStackitError],
1055
574
  protocol: StackitProtocol,
1056
575
  retry: Retry.Retry,
@@ -1064,9 +583,493 @@ export const partialUpdateProject: API.OperationMethod<
1064
583
  PartialUpdateProjectError,
1065
584
  StackitOpContext
1066
585
  > = /*@__PURE__*/ API.make(() => ({
1067
- input: PartialUpdateProjectRequest,
1068
- output: Project,
586
+ input: __S(48, __c12, 0) as any as S.Schema<PartialUpdateProjectRequest>,
587
+ output: __S(76, __c19, 0) as any as S.Schema<Project>,
1069
588
  errors: [Forbidden, NotFound, Conflict, UnknownStackitError],
1070
589
  protocol: StackitProtocol,
1071
590
  retry: Retry.Retry,
1072
591
  }));
592
+
593
+ // Schema builders: each runs one schema initializer, on that schema's first use.
594
+ function __c0(j: number): any {
595
+ switch (j) {
596
+ case 0:
597
+ return S.suspend(() =>
598
+ S.Struct({
599
+ containerId: S.String.pipe(T.Label()),
600
+ keys: S.optional(__S(92, __c23, 0).pipe(T.Query())),
601
+ }).pipe(
602
+ T.Http({
603
+ method: "DELETE",
604
+ uri: "/v2/projects/{containerId}/labels",
605
+ code: 200,
606
+ baseUrl: "https://resource-manager.api.stackit.cloud",
607
+ }),
608
+ ),
609
+ ).annotate({ identifier: "DeleteProjectLabelsRequest" });
610
+ }
611
+ }
612
+ function __c1(j: number): any {
613
+ switch (j) {
614
+ case 0:
615
+ return S.suspend(() =>
616
+ S.Struct({
617
+ containerId: S.String.pipe(T.Label()),
618
+ includeParents: S.optional(S.Boolean.pipe(T.Query())),
619
+ }).pipe(
620
+ T.Http({
621
+ method: "GET",
622
+ uri: "/v2/folders/{containerId}",
623
+ code: 200,
624
+ baseUrl: "https://resource-manager.api.stackit.cloud",
625
+ }),
626
+ ),
627
+ ).annotate({ identifier: "GetFolderDetailsRequest" });
628
+ case 1:
629
+ return S.suspend(() =>
630
+ S.Struct({
631
+ containerId: S.String,
632
+ creationTime: S.String,
633
+ folderId: S.String,
634
+ labels: S.optional(__S(64, __c16, 0)),
635
+ name: S.String,
636
+ parent: __S(68, __c17, 0),
637
+ parents: S.optional(__S(9, __c2, 1)),
638
+ updateTime: S.String,
639
+ }),
640
+ ).annotate({ identifier: "GetFolderDetailsResponse" });
641
+ }
642
+ }
643
+ function __c2(j: number): any {
644
+ switch (j) {
645
+ case 0:
646
+ return S.suspend(() =>
647
+ S.Struct({
648
+ containerId: S.String,
649
+ containerParentId: S.optional(S.String),
650
+ id: S.String,
651
+ name: S.String,
652
+ parentId: S.optional(S.String),
653
+ type: S.String,
654
+ }),
655
+ ).annotate({ identifier: "ParentListItem" });
656
+ case 1:
657
+ return S.Array(__S(8, __c2, 0));
658
+ }
659
+ }
660
+ function __c3(j: number): any {
661
+ switch (j) {
662
+ case 0:
663
+ return S.suspend(() =>
664
+ S.Struct({
665
+ id: S.String.pipe(T.Label()),
666
+ }).pipe(
667
+ T.Http({
668
+ method: "GET",
669
+ uri: "/v2/organizations/{id}",
670
+ code: 200,
671
+ baseUrl: "https://resource-manager.api.stackit.cloud",
672
+ }),
673
+ ),
674
+ ).annotate({ identifier: "GetOrganizationRequest" });
675
+ }
676
+ }
677
+ function __c4(j: number): any {
678
+ switch (j) {
679
+ case 0:
680
+ return S.suspend(() =>
681
+ S.Struct({
682
+ containerId: S.String,
683
+ creationTime: S.String,
684
+ labels: S.optional(__S(64, __c16, 0)),
685
+ lifecycleState: S.String,
686
+ name: S.String,
687
+ organizationId: S.String,
688
+ updateTime: S.String,
689
+ }),
690
+ ).annotate({ identifier: "OrganizationResponse" });
691
+ }
692
+ }
693
+ function __c5(j: number): any {
694
+ switch (j) {
695
+ case 0:
696
+ return S.suspend(() =>
697
+ S.Struct({
698
+ id: S.String.pipe(T.Label()),
699
+ includeParents: S.optional(S.Boolean.pipe(T.Query())),
700
+ }).pipe(
701
+ T.Http({
702
+ method: "GET",
703
+ uri: "/v2/projects/{id}",
704
+ code: 200,
705
+ baseUrl: "https://resource-manager.api.stackit.cloud",
706
+ }),
707
+ ),
708
+ ).annotate({ identifier: "GetProjectRequest" });
709
+ case 1:
710
+ return S.suspend(() =>
711
+ S.Struct({
712
+ containerId: S.String,
713
+ creationTime: S.String,
714
+ labels: S.optional(__S(64, __c16, 0)),
715
+ lifecycleState: S.String,
716
+ name: S.String,
717
+ parent: __S(68, __c17, 0),
718
+ parents: S.optional(__S(9, __c2, 1)),
719
+ projectId: S.String,
720
+ updateTime: S.String,
721
+ }),
722
+ ).annotate({ identifier: "GetProjectResponse" });
723
+ }
724
+ }
725
+ function __c6(j: number): any {
726
+ switch (j) {
727
+ case 0:
728
+ return S.suspend(() =>
729
+ S.Struct({
730
+ containerParentId: S.optional(S.String.pipe(T.Query())),
731
+ containerIds: S.optional(__S(92, __c23, 0).pipe(T.Query())),
732
+ member: S.optional(S.String.pipe(T.Query())),
733
+ limit: S.optional(S.Number.pipe(T.Query())),
734
+ offset: S.optional(S.Number.pipe(T.Query())),
735
+ creation_time_start: S.optional(S.String.pipe(T.Query("creation-time-start"))),
736
+ }).pipe(
737
+ T.Http({
738
+ method: "GET",
739
+ uri: "/v2/folders",
740
+ code: 200,
741
+ baseUrl: "https://resource-manager.api.stackit.cloud",
742
+ }),
743
+ ),
744
+ ).annotate({ identifier: "ListFoldersRequest" });
745
+ case 1:
746
+ return S.Array(__S(56, __c14, 0));
747
+ case 2:
748
+ return S.suspend(() =>
749
+ S.Struct({
750
+ items: __S(25, __c6, 1),
751
+ limit: S.Number,
752
+ offset: S.Number,
753
+ }),
754
+ ).annotate({ identifier: "ListFoldersResponse" });
755
+ }
756
+ }
757
+ function __c7(j: number): any {
758
+ switch (j) {
759
+ case 0:
760
+ return S.suspend(() =>
761
+ S.Struct({
762
+ containerIds: S.optional(__S(92, __c23, 0).pipe(T.Query())),
763
+ member: S.optional(S.String.pipe(T.Query())),
764
+ limit: S.optional(S.Number.pipe(T.Query())),
765
+ offset: S.optional(S.Number.pipe(T.Query())),
766
+ creation_time_start: S.optional(S.String.pipe(T.Query("creation-time-start"))),
767
+ }).pipe(
768
+ T.Http({
769
+ method: "GET",
770
+ uri: "/v2/organizations",
771
+ code: 200,
772
+ baseUrl: "https://resource-manager.api.stackit.cloud",
773
+ }),
774
+ ),
775
+ ).annotate({ identifier: "ListOrganizationsRequest" });
776
+ case 1:
777
+ return S.Array(__S(16, __c4, 0));
778
+ case 2:
779
+ return S.suspend(() =>
780
+ S.Struct({
781
+ items: __S(29, __c7, 1),
782
+ limit: S.Number,
783
+ offset: S.Number,
784
+ }),
785
+ ).annotate({ identifier: "ListOrganizationsResponse" });
786
+ }
787
+ }
788
+ function __c8(j: number): any {
789
+ switch (j) {
790
+ case 0:
791
+ return S.suspend(() =>
792
+ S.Struct({
793
+ containerParentId: S.optional(S.String.pipe(T.Query())),
794
+ containerIds: S.optional(__S(92, __c23, 0).pipe(T.Query())),
795
+ member: S.optional(S.String.pipe(T.Query())),
796
+ offset: S.optional(S.Number.pipe(T.Query())),
797
+ limit: S.optional(S.Number.pipe(T.Query())),
798
+ creation_time_start: S.optional(S.String.pipe(T.Query("creation-time-start"))),
799
+ }).pipe(
800
+ T.Http({
801
+ method: "GET",
802
+ uri: "/v2/projects",
803
+ code: 200,
804
+ baseUrl: "https://resource-manager.api.stackit.cloud",
805
+ }),
806
+ ),
807
+ ).annotate({ identifier: "ListProjectsRequest" });
808
+ case 1:
809
+ return S.Array(__S(76, __c19, 0));
810
+ case 2:
811
+ return S.suspend(() =>
812
+ S.Struct({
813
+ items: __S(33, __c8, 1),
814
+ limit: S.Number,
815
+ offset: S.Number,
816
+ }),
817
+ ).annotate({ identifier: "ListProjectsResponse" });
818
+ }
819
+ }
820
+ function __c9(j: number): any {
821
+ switch (j) {
822
+ case 0:
823
+ return S.suspend(() =>
824
+ S.Struct({
825
+ containerId: S.String.pipe(T.Label()),
826
+ containerParentId: S.optional(S.String),
827
+ labels: S.optional(__S(40, __c10, 0)),
828
+ name: S.optional(S.String),
829
+ }).pipe(
830
+ T.Http({
831
+ method: "PATCH",
832
+ uri: "/v2/folders/{containerId}",
833
+ code: 200,
834
+ baseUrl: "https://resource-manager.api.stackit.cloud",
835
+ }),
836
+ ),
837
+ ).annotate({ identifier: "PartialUpdateFolderRequest" });
838
+ }
839
+ }
840
+ function __c10(j: number): any {
841
+ switch (j) {
842
+ case 0:
843
+ return S.Record(S.String, /*@__PURE__*/ S.NullOr(S.String));
844
+ }
845
+ }
846
+ function __c11(j: number): any {
847
+ switch (j) {
848
+ case 0:
849
+ return S.suspend(() =>
850
+ S.Struct({
851
+ id: S.String.pipe(T.Label()),
852
+ labels: S.optional(__S(40, __c10, 0)),
853
+ name: S.optional(S.String),
854
+ }).pipe(
855
+ T.Http({
856
+ method: "PATCH",
857
+ uri: "/v2/organizations/{id}",
858
+ code: 200,
859
+ baseUrl: "https://resource-manager.api.stackit.cloud",
860
+ }),
861
+ ),
862
+ ).annotate({ identifier: "PartialUpdateOrganizationRequest" });
863
+ }
864
+ }
865
+ function __c12(j: number): any {
866
+ switch (j) {
867
+ case 0:
868
+ return S.suspend(() =>
869
+ S.Struct({
870
+ id: S.String.pipe(T.Label()),
871
+ containerParentId: S.optional(S.String),
872
+ labels: S.optional(__S(40, __c10, 0)),
873
+ name: S.optional(S.String),
874
+ }).pipe(
875
+ T.Http({
876
+ method: "PATCH",
877
+ uri: "/v2/projects/{id}",
878
+ code: 200,
879
+ baseUrl: "https://resource-manager.api.stackit.cloud",
880
+ }),
881
+ ),
882
+ ).annotate({ identifier: "PartialUpdateProjectRequest" });
883
+ }
884
+ }
885
+ function __c13(j: number): any {
886
+ switch (j) {
887
+ case 0:
888
+ return S.suspend(() =>
889
+ S.Struct({
890
+ containerParentId: S.String,
891
+ labels: S.optional(__S(64, __c16, 0)),
892
+ members: S.optional(__S(61, __c15, 1)),
893
+ name: S.String,
894
+ }).pipe(
895
+ T.Http({
896
+ method: "POST",
897
+ uri: "/v2/folders",
898
+ code: 200,
899
+ baseUrl: "https://resource-manager.api.stackit.cloud",
900
+ }),
901
+ ),
902
+ ).annotate({ identifier: "CreateFolderRequest" });
903
+ }
904
+ }
905
+ function __c14(j: number): any {
906
+ switch (j) {
907
+ case 0:
908
+ return S.suspend(() =>
909
+ S.Struct({
910
+ containerId: S.String,
911
+ creationTime: S.String,
912
+ folderId: S.String,
913
+ labels: S.optional(__S(64, __c16, 0)),
914
+ name: S.String,
915
+ parent: __S(68, __c17, 0),
916
+ updateTime: S.String,
917
+ }),
918
+ ).annotate({ identifier: "FolderResponse" });
919
+ }
920
+ }
921
+ function __c15(j: number): any {
922
+ switch (j) {
923
+ case 0:
924
+ return S.suspend(() =>
925
+ S.Struct({
926
+ role: S.String,
927
+ subject: S.String,
928
+ }),
929
+ ).annotate({ identifier: "Member" });
930
+ case 1:
931
+ return S.Array(__S(60, __c15, 0));
932
+ }
933
+ }
934
+ function __c16(j: number): any {
935
+ switch (j) {
936
+ case 0:
937
+ return S.Record(S.String, S.String);
938
+ }
939
+ }
940
+ function __c17(j: number): any {
941
+ switch (j) {
942
+ case 0:
943
+ return S.suspend(() =>
944
+ S.Struct({
945
+ containerId: S.String,
946
+ id: S.String,
947
+ type: S.String,
948
+ }),
949
+ ).annotate({ identifier: "Parent" });
950
+ }
951
+ }
952
+ function __c18(j: number): any {
953
+ switch (j) {
954
+ case 0:
955
+ return S.suspend(() =>
956
+ S.Struct({
957
+ containerParentId: S.String,
958
+ labels: S.optional(__S(64, __c16, 0)),
959
+ members: __S(61, __c15, 1),
960
+ name: S.String,
961
+ }).pipe(
962
+ T.Http({
963
+ method: "POST",
964
+ uri: "/v2/projects",
965
+ code: 200,
966
+ baseUrl: "https://resource-manager.api.stackit.cloud",
967
+ }),
968
+ ),
969
+ ).annotate({ identifier: "CreateProjectRequest" });
970
+ }
971
+ }
972
+ function __c19(j: number): any {
973
+ switch (j) {
974
+ case 0:
975
+ return S.suspend(() =>
976
+ S.Struct({
977
+ containerId: S.String,
978
+ creationTime: S.String,
979
+ labels: S.optional(__S(64, __c16, 0)),
980
+ lifecycleState: S.String,
981
+ name: S.String,
982
+ parent: __S(68, __c17, 0),
983
+ projectId: S.String,
984
+ updateTime: S.String,
985
+ }),
986
+ ).annotate({ identifier: "Project" });
987
+ }
988
+ }
989
+ function __c20(j: number): any {
990
+ switch (j) {
991
+ case 0:
992
+ return S.suspend(() =>
993
+ S.Struct({
994
+ containerId: S.String.pipe(T.Label()),
995
+ force: S.optional(S.Boolean.pipe(T.Query())),
996
+ }).pipe(
997
+ T.Http({
998
+ method: "DELETE",
999
+ uri: "/v2/folders/{containerId}",
1000
+ code: 200,
1001
+ baseUrl: "https://resource-manager.api.stackit.cloud",
1002
+ }),
1003
+ ),
1004
+ ).annotate({ identifier: "DeleteFolderRequest" });
1005
+ }
1006
+ }
1007
+ function __c21(j: number): any {
1008
+ switch (j) {
1009
+ case 0:
1010
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteFolderResponse" });
1011
+ }
1012
+ }
1013
+ function __c22(j: number): any {
1014
+ switch (j) {
1015
+ case 0:
1016
+ return S.suspend(() =>
1017
+ S.Struct({
1018
+ containerId: S.String.pipe(T.Label()),
1019
+ keys: S.optional(__S(92, __c23, 0).pipe(T.Query())),
1020
+ }).pipe(
1021
+ T.Http({
1022
+ method: "DELETE",
1023
+ uri: "/v2/folders/{containerId}/labels",
1024
+ code: 200,
1025
+ baseUrl: "https://resource-manager.api.stackit.cloud",
1026
+ }),
1027
+ ),
1028
+ ).annotate({ identifier: "DeleteFolderLabelsRequest" });
1029
+ }
1030
+ }
1031
+ function __c23(j: number): any {
1032
+ switch (j) {
1033
+ case 0:
1034
+ return S.Array(S.String);
1035
+ }
1036
+ }
1037
+ function __c24(j: number): any {
1038
+ switch (j) {
1039
+ case 0:
1040
+ return S.suspend(() =>
1041
+ S.Struct({
1042
+ containerId: S.String.pipe(T.Label()),
1043
+ keys: S.optional(__S(92, __c23, 0).pipe(T.Query())),
1044
+ }).pipe(
1045
+ T.Http({
1046
+ method: "DELETE",
1047
+ uri: "/v2/organizations/{containerId}/labels",
1048
+ code: 200,
1049
+ baseUrl: "https://resource-manager.api.stackit.cloud",
1050
+ }),
1051
+ ),
1052
+ ).annotate({ identifier: "DeleteOrganizationLabelsRequest" });
1053
+ }
1054
+ }
1055
+ function __c25(j: number): any {
1056
+ switch (j) {
1057
+ case 0:
1058
+ return S.suspend(() =>
1059
+ S.Struct({
1060
+ id: S.String.pipe(T.Label()),
1061
+ }).pipe(
1062
+ T.Http({
1063
+ method: "DELETE",
1064
+ uri: "/v2/projects/{id}",
1065
+ code: 200,
1066
+ baseUrl: "https://resource-manager.api.stackit.cloud",
1067
+ }),
1068
+ ),
1069
+ ).annotate({ identifier: "DeleteProjectRequest" });
1070
+ }
1071
+ }
1072
+ // Schema table: entry i is schema j of builder f, made on first reach.
1073
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1074
+ return (__s[i] ??= __L.at(f, j));
1075
+ }