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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (298) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +33 -2
  3. package/lib/credentials.d.ts +29 -0
  4. package/lib/credentials.d.ts.map +1 -0
  5. package/lib/credentials.js +49 -0
  6. package/lib/credentials.js.map +1 -0
  7. package/lib/errors.d.ts +36 -0
  8. package/lib/errors.d.ts.map +1 -0
  9. package/lib/errors.js +26 -0
  10. package/lib/errors.js.map +1 -0
  11. package/lib/index.d.ts +30 -0
  12. package/lib/index.d.ts.map +1 -0
  13. package/lib/index.js +30 -0
  14. package/lib/index.js.map +1 -0
  15. package/lib/pagination.d.ts +9 -0
  16. package/lib/pagination.d.ts.map +1 -0
  17. package/lib/pagination.js +48 -0
  18. package/lib/pagination.js.map +1 -0
  19. package/lib/protocol.d.ts +32 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +148 -0
  22. package/lib/protocol.js.map +1 -0
  23. package/lib/response-validation.test.d.ts +4 -0
  24. package/lib/response-validation.test.d.ts.map +1 -0
  25. package/lib/response-validation.test.js +31 -0
  26. package/lib/response-validation.test.js.map +1 -0
  27. package/lib/retry.d.ts +31 -0
  28. package/lib/retry.d.ts.map +1 -0
  29. package/lib/retry.js +31 -0
  30. package/lib/retry.js.map +1 -0
  31. package/lib/services/alb.d.ts +603 -0
  32. package/lib/services/alb.d.ts.map +1 -0
  33. package/lib/services/alb.js +562 -0
  34. package/lib/services/alb.js.map +1 -0
  35. package/lib/services/alb_waf.d.ts +526 -0
  36. package/lib/services/alb_waf.d.ts.map +1 -0
  37. package/lib/services/alb_waf.js +545 -0
  38. package/lib/services/alb_waf.js.map +1 -0
  39. package/lib/services/authorization.d.ts +251 -0
  40. package/lib/services/authorization.d.ts.map +1 -0
  41. package/lib/services/authorization.js +353 -0
  42. package/lib/services/authorization.js.map +1 -0
  43. package/lib/services/automation.d.ts +358 -0
  44. package/lib/services/automation.d.ts.map +1 -0
  45. package/lib/services/automation.js +426 -0
  46. package/lib/services/automation.js.map +1 -0
  47. package/lib/services/cdn.d.ts +1239 -0
  48. package/lib/services/cdn.d.ts.map +1 -0
  49. package/lib/services/cdn.js +992 -0
  50. package/lib/services/cdn.js.map +1 -0
  51. package/lib/services/certificates.d.ts +201 -0
  52. package/lib/services/certificates.d.ts.map +1 -0
  53. package/lib/services/certificates.js +197 -0
  54. package/lib/services/certificates.js.map +1 -0
  55. package/lib/services/cost.d.ts +222 -0
  56. package/lib/services/cost.d.ts.map +1 -0
  57. package/lib/services/cost.js +188 -0
  58. package/lib/services/cost.js.map +1 -0
  59. package/lib/services/dns.d.ts +875 -0
  60. package/lib/services/dns.d.ts.map +1 -0
  61. package/lib/services/dns.js +854 -0
  62. package/lib/services/dns.js.map +1 -0
  63. package/lib/services/dremio.d.ts +358 -0
  64. package/lib/services/dremio.d.ts.map +1 -0
  65. package/lib/services/dremio.js +339 -0
  66. package/lib/services/dremio.js.map +1 -0
  67. package/lib/services/edge.d.ts +312 -0
  68. package/lib/services/edge.d.ts.map +1 -0
  69. package/lib/services/edge.js +375 -0
  70. package/lib/services/edge.js.map +1 -0
  71. package/lib/services/functions.d.ts +409 -0
  72. package/lib/services/functions.d.ts.map +1 -0
  73. package/lib/services/functions.js +423 -0
  74. package/lib/services/functions.js.map +1 -0
  75. package/lib/services/git.d.ts +497 -0
  76. package/lib/services/git.d.ts.map +1 -0
  77. package/lib/services/git.js +552 -0
  78. package/lib/services/git.js.map +1 -0
  79. package/lib/services/iaas.d.ts +2965 -0
  80. package/lib/services/iaas.d.ts.map +1 -0
  81. package/lib/services/iaas.js +3768 -0
  82. package/lib/services/iaas.js.map +1 -0
  83. package/lib/services/index.d.ts +51 -0
  84. package/lib/services/index.d.ts.map +1 -0
  85. package/lib/services/index.js +52 -0
  86. package/lib/services/index.js.map +1 -0
  87. package/lib/services/intake.d.ts +555 -0
  88. package/lib/services/intake.d.ts.map +1 -0
  89. package/lib/services/intake.js +513 -0
  90. package/lib/services/intake.js.map +1 -0
  91. package/lib/services/kms.d.ts +654 -0
  92. package/lib/services/kms.d.ts.map +1 -0
  93. package/lib/services/kms.js +703 -0
  94. package/lib/services/kms.js.map +1 -0
  95. package/lib/services/lb_ip_lists.d.ts +162 -0
  96. package/lib/services/lb_ip_lists.d.ts.map +1 -0
  97. package/lib/services/lb_ip_lists.js +173 -0
  98. package/lib/services/lb_ip_lists.js.map +1 -0
  99. package/lib/services/load_balancer.d.ts +563 -0
  100. package/lib/services/load_balancer.d.ts.map +1 -0
  101. package/lib/services/load_balancer.js +542 -0
  102. package/lib/services/load_balancer.js.map +1 -0
  103. package/lib/services/logme.d.ts +516 -0
  104. package/lib/services/logme.d.ts.map +1 -0
  105. package/lib/services/logme.js +636 -0
  106. package/lib/services/logme.js.map +1 -0
  107. package/lib/services/logs.d.ts +436 -0
  108. package/lib/services/logs.d.ts.map +1 -0
  109. package/lib/services/logs.js +498 -0
  110. package/lib/services/logs.js.map +1 -0
  111. package/lib/services/mariadb.d.ts +479 -0
  112. package/lib/services/mariadb.d.ts.map +1 -0
  113. package/lib/services/mariadb.js +611 -0
  114. package/lib/services/mariadb.js.map +1 -0
  115. package/lib/services/model_experiments.d.ts +306 -0
  116. package/lib/services/model_experiments.d.ts.map +1 -0
  117. package/lib/services/model_experiments.js +356 -0
  118. package/lib/services/model_experiments.js.map +1 -0
  119. package/lib/services/model_serving.d.ts +289 -0
  120. package/lib/services/model_serving.d.ts.map +1 -0
  121. package/lib/services/model_serving.js +319 -0
  122. package/lib/services/model_serving.js.map +1 -0
  123. package/lib/services/mongodb_flex.d.ts +826 -0
  124. package/lib/services/mongodb_flex.d.ts.map +1 -0
  125. package/lib/services/mongodb_flex.js +889 -0
  126. package/lib/services/mongodb_flex.js.map +1 -0
  127. package/lib/services/object_storage.d.ts +446 -0
  128. package/lib/services/object_storage.d.ts.map +1 -0
  129. package/lib/services/object_storage.js +577 -0
  130. package/lib/services/object_storage.js.map +1 -0
  131. package/lib/services/observability.d.ts +2750 -0
  132. package/lib/services/observability.d.ts.map +1 -0
  133. package/lib/services/observability.js +3407 -0
  134. package/lib/services/observability.js.map +1 -0
  135. package/lib/services/opensearch.d.ts +505 -0
  136. package/lib/services/opensearch.d.ts.map +1 -0
  137. package/lib/services/opensearch.js +623 -0
  138. package/lib/services/opensearch.js.map +1 -0
  139. package/lib/services/pim.d.ts +997 -0
  140. package/lib/services/pim.d.ts.map +1 -0
  141. package/lib/services/pim.js +789 -0
  142. package/lib/services/pim.js.map +1 -0
  143. package/lib/services/postgres_flex.d.ts +854 -0
  144. package/lib/services/postgres_flex.d.ts.map +1 -0
  145. package/lib/services/postgres_flex.js +1018 -0
  146. package/lib/services/postgres_flex.js.map +1 -0
  147. package/lib/services/pubsub.d.ts +489 -0
  148. package/lib/services/pubsub.d.ts.map +1 -0
  149. package/lib/services/pubsub.js +614 -0
  150. package/lib/services/pubsub.js.map +1 -0
  151. package/lib/services/rabbitmq.d.ts +523 -0
  152. package/lib/services/rabbitmq.d.ts.map +1 -0
  153. package/lib/services/rabbitmq.js +636 -0
  154. package/lib/services/rabbitmq.js.map +1 -0
  155. package/lib/services/registry.d.ts +212 -0
  156. package/lib/services/registry.d.ts.map +1 -0
  157. package/lib/services/registry.js +221 -0
  158. package/lib/services/registry.js.map +1 -0
  159. package/lib/services/resource_manager.d.ts +458 -0
  160. package/lib/services/resource_manager.d.ts.map +1 -0
  161. package/lib/services/resource_manager.js +503 -0
  162. package/lib/services/resource_manager.js.map +1 -0
  163. package/lib/services/run_command.d.ts +175 -0
  164. package/lib/services/run_command.d.ts.map +1 -0
  165. package/lib/services/run_command.js +203 -0
  166. package/lib/services/run_command.js.map +1 -0
  167. package/lib/services/sca.d.ts +541 -0
  168. package/lib/services/sca.d.ts.map +1 -0
  169. package/lib/services/sca.js +478 -0
  170. package/lib/services/sca.js.map +1 -0
  171. package/lib/services/scf.d.ts +498 -0
  172. package/lib/services/scf.d.ts.map +1 -0
  173. package/lib/services/scf.js +718 -0
  174. package/lib/services/scf.js.map +1 -0
  175. package/lib/services/secrets_manager.d.ts +505 -0
  176. package/lib/services/secrets_manager.d.ts.map +1 -0
  177. package/lib/services/secrets_manager.js +659 -0
  178. package/lib/services/secrets_manager.js.map +1 -0
  179. package/lib/services/server_backup.d.ts +380 -0
  180. package/lib/services/server_backup.d.ts.map +1 -0
  181. package/lib/services/server_backup.js +474 -0
  182. package/lib/services/server_backup.js.map +1 -0
  183. package/lib/services/server_update.d.ts +292 -0
  184. package/lib/services/server_update.d.ts.map +1 -0
  185. package/lib/services/server_update.js +364 -0
  186. package/lib/services/server_update.js.map +1 -0
  187. package/lib/services/service_account.d.ts +465 -0
  188. package/lib/services/service_account.d.ts.map +1 -0
  189. package/lib/services/service_account.js +523 -0
  190. package/lib/services/service_account.js.map +1 -0
  191. package/lib/services/service_enablement.d.ts +149 -0
  192. package/lib/services/service_enablement.d.ts.map +1 -0
  193. package/lib/services/service_enablement.js +159 -0
  194. package/lib/services/service_enablement.js.map +1 -0
  195. package/lib/services/sfs.d.ts +721 -0
  196. package/lib/services/sfs.d.ts.map +1 -0
  197. package/lib/services/sfs.js +845 -0
  198. package/lib/services/sfs.js.map +1 -0
  199. package/lib/services/ske.d.ts +536 -0
  200. package/lib/services/ske.d.ts.map +1 -0
  201. package/lib/services/ske.js +598 -0
  202. package/lib/services/ske.js.map +1 -0
  203. package/lib/services/sqlserverflex.d.ts +956 -0
  204. package/lib/services/sqlserverflex.d.ts.map +1 -0
  205. package/lib/services/sqlserverflex.js +1087 -0
  206. package/lib/services/sqlserverflex.js.map +1 -0
  207. package/lib/services/stackit_marketplace.d.ts +288 -0
  208. package/lib/services/stackit_marketplace.d.ts.map +1 -0
  209. package/lib/services/stackit_marketplace.js +393 -0
  210. package/lib/services/stackit_marketplace.js.map +1 -0
  211. package/lib/services/telemetry_link.d.ts +443 -0
  212. package/lib/services/telemetry_link.d.ts.map +1 -0
  213. package/lib/services/telemetry_link.js +550 -0
  214. package/lib/services/telemetry_link.js.map +1 -0
  215. package/lib/services/telemetry_router.d.ts +493 -0
  216. package/lib/services/telemetry_router.d.ts.map +1 -0
  217. package/lib/services/telemetry_router.js +523 -0
  218. package/lib/services/telemetry_router.js.map +1 -0
  219. package/lib/services/ufw.d.ts +295 -0
  220. package/lib/services/ufw.d.ts.map +1 -0
  221. package/lib/services/ufw.js +301 -0
  222. package/lib/services/ufw.js.map +1 -0
  223. package/lib/services/valkey.d.ts +505 -0
  224. package/lib/services/valkey.d.ts.map +1 -0
  225. package/lib/services/valkey.js +627 -0
  226. package/lib/services/valkey.js.map +1 -0
  227. package/lib/services/vpn.d.ts +1024 -0
  228. package/lib/services/vpn.d.ts.map +1 -0
  229. package/lib/services/vpn.js +1013 -0
  230. package/lib/services/vpn.js.map +1 -0
  231. package/lib/services/workflows.d.ts +600 -0
  232. package/lib/services/workflows.d.ts.map +1 -0
  233. package/lib/services/workflows.js +556 -0
  234. package/lib/services/workflows.js.map +1 -0
  235. package/lib/traits.d.ts +24 -0
  236. package/lib/traits.d.ts.map +1 -0
  237. package/lib/traits.js +15 -0
  238. package/lib/traits.js.map +1 -0
  239. package/package.json +83 -3
  240. package/src/credentials.ts +90 -0
  241. package/src/errors.ts +50 -0
  242. package/src/index.ts +34 -0
  243. package/src/pagination.ts +73 -0
  244. package/src/protocol.ts +243 -0
  245. package/src/response-validation.test.ts +45 -0
  246. package/src/retry.ts +53 -0
  247. package/src/services/alb.ts +1409 -0
  248. package/src/services/alb_waf.ts +1347 -0
  249. package/src/services/authorization.ts +740 -0
  250. package/src/services/automation.ts +966 -0
  251. package/src/services/cdn.ts +2736 -0
  252. package/src/services/certificates.ts +450 -0
  253. package/src/services/cost.ts +484 -0
  254. package/src/services/dns.ts +2271 -0
  255. package/src/services/dremio.ts +803 -0
  256. package/src/services/edge.ts +839 -0
  257. package/src/services/functions.ts +1010 -0
  258. package/src/services/git.ts +1275 -0
  259. package/src/services/iaas.ts +8670 -0
  260. package/src/services/index.ts +51 -0
  261. package/src/services/intake.ts +1233 -0
  262. package/src/services/kms.ts +1638 -0
  263. package/src/services/lb_ip_lists.ts +377 -0
  264. package/src/services/load_balancer.ts +1342 -0
  265. package/src/services/logme.ts +1379 -0
  266. package/src/services/logs.ts +1150 -0
  267. package/src/services/mariadb.ts +1293 -0
  268. package/src/services/model_experiments.ts +797 -0
  269. package/src/services/model_serving.ts +697 -0
  270. package/src/services/mongodb_flex.ts +2078 -0
  271. package/src/services/object_storage.ts +1248 -0
  272. package/src/services/observability.ts +7856 -0
  273. package/src/services/opensearch.ts +1354 -0
  274. package/src/services/pim.ts +2090 -0
  275. package/src/services/postgres_flex.ts +2326 -0
  276. package/src/services/pubsub.ts +1336 -0
  277. package/src/services/rabbitmq.ts +1402 -0
  278. package/src/services/registry.ts +494 -0
  279. package/src/services/resource_manager.ts +1155 -0
  280. package/src/services/run_command.ts +441 -0
  281. package/src/services/sca.ts +1222 -0
  282. package/src/services/scf.ts +1537 -0
  283. package/src/services/secrets_manager.ts +1399 -0
  284. package/src/services/server_backup.ts +1032 -0
  285. package/src/services/server_update.ts +767 -0
  286. package/src/services/service_account.ts +1208 -0
  287. package/src/services/service_enablement.ts +359 -0
  288. package/src/services/sfs.ts +1913 -0
  289. package/src/services/ske.ts +1408 -0
  290. package/src/services/sqlserverflex.ts +2543 -0
  291. package/src/services/stackit_marketplace.ts +853 -0
  292. package/src/services/telemetry_link.ts +1245 -0
  293. package/src/services/telemetry_router.ts +1205 -0
  294. package/src/services/ufw.ts +704 -0
  295. package/src/services/valkey.ts +1357 -0
  296. package/src/services/vpn.ts +2554 -0
  297. package/src/services/workflows.ts +1361 -0
  298. package/src/traits.ts +65 -0
@@ -0,0 +1,1537 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as Redacted from "effect/Redacted";
4
+ import * as API from "@distilled.cloud/core/api";
5
+ import * as C from "@distilled.cloud/core/category";
6
+ import * as T from "../traits.ts";
7
+ import {
8
+ StackitProtocol,
9
+ type StackitOpError,
10
+ type StackitOpContext,
11
+ } from "../protocol.ts";
12
+ import { UnknownStackitError } from "../errors.ts";
13
+ import * as Retry from "../retry.ts";
14
+
15
+ export type { StackitOpError, StackitOpContext };
16
+
17
+ export class BadRequest
18
+ extends /*@__PURE__*/ T.applyErrorMatchers(
19
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
20
+ code: S.Number,
21
+ message: S.String,
22
+ }).pipe(C.withBadRequestError),
23
+ [{ status: 400 }],
24
+ ) {}
25
+
26
+ export class Forbidden
27
+ extends /*@__PURE__*/ T.applyErrorMatchers(
28
+ /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
29
+ code: S.Number,
30
+ message: S.String,
31
+ }).pipe(C.withAuthError),
32
+ [{ status: 403 }],
33
+ ) {}
34
+
35
+ export class NotFound
36
+ extends /*@__PURE__*/ T.applyErrorMatchers(
37
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
38
+ code: S.Number,
39
+ message: S.String,
40
+ }).pipe(C.withBadRequestError),
41
+ [{ status: 404 }],
42
+ ) {}
43
+
44
+ export interface ApplyOrganizationQuotaRequest {
45
+ projectId: string;
46
+ region: string;
47
+ organizationId: string;
48
+ quotaId: string;
49
+ }
50
+ export const ApplyOrganizationQuotaRequest = /*@__PURE__*/ S.suspend(() =>
51
+ S.Struct({
52
+ projectId: S.String.pipe(T.Label()),
53
+ region: S.String.pipe(T.Label()),
54
+ organizationId: S.String.pipe(T.Label()),
55
+ quotaId: S.String,
56
+ }).pipe(
57
+ T.Http({
58
+ method: "POST",
59
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/quota",
60
+ code: 200,
61
+ baseUrl: "https://scf.api.stackit.cloud",
62
+ }),
63
+ ),
64
+ ).annotate({
65
+ identifier: "ApplyOrganizationQuotaRequest",
66
+ }) as any as S.Schema<ApplyOrganizationQuotaRequest>;
67
+
68
+ export interface OrganizationQuota {
69
+ orgId: string;
70
+ platformId: string;
71
+ projectId: string;
72
+ quotaId: string;
73
+ region: string;
74
+ }
75
+ export const OrganizationQuota = /*@__PURE__*/ S.suspend(() =>
76
+ S.Struct({
77
+ orgId: S.String,
78
+ platformId: S.String,
79
+ projectId: S.String,
80
+ quotaId: S.String,
81
+ region: S.String,
82
+ }),
83
+ ).annotate({
84
+ identifier: "OrganizationQuota",
85
+ }) as any as S.Schema<OrganizationQuota>;
86
+
87
+ export interface CreateOrganizationRequest {
88
+ projectId: string;
89
+ region: string;
90
+ name: string;
91
+ platformId?: string;
92
+ }
93
+ export const CreateOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
94
+ S.Struct({
95
+ projectId: S.String.pipe(T.Label()),
96
+ region: S.String.pipe(T.Label()),
97
+ name: S.String,
98
+ platformId: S.optional(S.String),
99
+ }).pipe(
100
+ T.Http({
101
+ method: "POST",
102
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations",
103
+ code: 200,
104
+ baseUrl: "https://scf.api.stackit.cloud",
105
+ }),
106
+ ),
107
+ ).annotate({
108
+ identifier: "CreateOrganizationRequest",
109
+ }) as any as S.Schema<CreateOrganizationRequest>;
110
+
111
+ export interface OrganizationCreateResponse {
112
+ guid: string;
113
+ platformId: string;
114
+ projectId: string;
115
+ region: string;
116
+ }
117
+ export const OrganizationCreateResponse = /*@__PURE__*/ S.suspend(() =>
118
+ S.Struct({
119
+ guid: S.String,
120
+ platformId: S.String,
121
+ projectId: S.String,
122
+ region: S.String,
123
+ }),
124
+ ).annotate({
125
+ identifier: "OrganizationCreateResponse",
126
+ }) as any as S.Schema<OrganizationCreateResponse>;
127
+
128
+ export interface CreateOrgManagerRequest {
129
+ projectId: string;
130
+ region: string;
131
+ organizationId: string;
132
+ }
133
+ export const CreateOrgManagerRequest = /*@__PURE__*/ S.suspend(() =>
134
+ S.Struct({
135
+ projectId: S.String.pipe(T.Label()),
136
+ region: S.String.pipe(T.Label()),
137
+ organizationId: S.String.pipe(T.Label()),
138
+ }).pipe(
139
+ T.Http({
140
+ method: "POST",
141
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/organization_manager",
142
+ code: 200,
143
+ baseUrl: "https://scf.api.stackit.cloud",
144
+ }),
145
+ ),
146
+ ).annotate({
147
+ identifier: "CreateOrgManagerRequest",
148
+ }) as any as S.Schema<CreateOrgManagerRequest>;
149
+
150
+ export interface OrgManagerResponse {
151
+ createdAt: string;
152
+ guid: string;
153
+ orgId: string;
154
+ password: string | Redacted.Redacted<string>;
155
+ platformId: string;
156
+ projectId: string;
157
+ region: string;
158
+ updatedAt: string;
159
+ username: string;
160
+ }
161
+ export const OrgManagerResponse = /*@__PURE__*/ S.suspend(() =>
162
+ S.Struct({
163
+ createdAt: S.String,
164
+ guid: S.String,
165
+ orgId: S.String,
166
+ password: S.String.pipe(T.SensitiveValue({})),
167
+ platformId: S.String,
168
+ projectId: S.String,
169
+ region: S.String,
170
+ updatedAt: S.String,
171
+ username: S.String,
172
+ }),
173
+ ).annotate({
174
+ identifier: "OrgManagerResponse",
175
+ }) as any as S.Schema<OrgManagerResponse>;
176
+
177
+ export type OrgRoleType =
178
+ | "organization_user"
179
+ | "organization_auditor"
180
+ | "organization_manager"
181
+ | "organization_billing_manager";
182
+ export const OrgRoleType = /*@__PURE__*/ S.String;
183
+
184
+ export interface CreateOrgRoleRequest {
185
+ projectId: string;
186
+ region: string;
187
+ organizationId: string;
188
+ type: OrgRoleType | (string & {});
189
+ userGuid?: string;
190
+ userName?: string;
191
+ }
192
+ export const CreateOrgRoleRequest = /*@__PURE__*/ S.suspend(() =>
193
+ S.Struct({
194
+ projectId: S.String.pipe(T.Label()),
195
+ region: S.String.pipe(T.Label()),
196
+ organizationId: S.String.pipe(T.Label()),
197
+ type: OrgRoleType,
198
+ userGuid: S.optional(S.String),
199
+ userName: S.optional(S.String),
200
+ }).pipe(
201
+ T.Http({
202
+ method: "POST",
203
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/roles",
204
+ code: 200,
205
+ baseUrl: "https://scf.api.stackit.cloud",
206
+ }),
207
+ ),
208
+ ).annotate({
209
+ identifier: "CreateOrgRoleRequest",
210
+ }) as any as S.Schema<CreateOrgRoleRequest>;
211
+
212
+ export interface OrgRoleResponse {
213
+ guid: string;
214
+ orgId: string;
215
+ platformId: string;
216
+ projectId: string;
217
+ region: string;
218
+ type: OrgRoleType;
219
+ }
220
+ export const OrgRoleResponse = /*@__PURE__*/ S.suspend(() =>
221
+ S.Struct({
222
+ guid: S.String,
223
+ orgId: S.String,
224
+ platformId: S.String,
225
+ projectId: S.String,
226
+ region: S.String,
227
+ type: OrgRoleType,
228
+ }),
229
+ ).annotate({
230
+ identifier: "OrgRoleResponse",
231
+ }) as any as S.Schema<OrgRoleResponse>;
232
+
233
+ export interface CreateSpaceRequest {
234
+ projectId: string;
235
+ region: string;
236
+ organizationId: string;
237
+ name: string;
238
+ }
239
+ export const CreateSpaceRequest = /*@__PURE__*/ S.suspend(() =>
240
+ S.Struct({
241
+ projectId: S.String.pipe(T.Label()),
242
+ region: S.String.pipe(T.Label()),
243
+ organizationId: S.String.pipe(T.Label()),
244
+ name: S.String,
245
+ }).pipe(
246
+ T.Http({
247
+ method: "POST",
248
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces",
249
+ code: 200,
250
+ baseUrl: "https://scf.api.stackit.cloud",
251
+ }),
252
+ ),
253
+ ).annotate({
254
+ identifier: "CreateSpaceRequest",
255
+ }) as any as S.Schema<CreateSpaceRequest>;
256
+
257
+ export interface Space {
258
+ createdAt: string;
259
+ guid: string;
260
+ name: string;
261
+ orgId: string;
262
+ platformId: string;
263
+ projectId: string;
264
+ region: string;
265
+ updatedAt: string;
266
+ }
267
+ export const Space = /*@__PURE__*/ S.suspend(() =>
268
+ S.Struct({
269
+ createdAt: S.String,
270
+ guid: S.String,
271
+ name: S.String,
272
+ orgId: S.String,
273
+ platformId: S.String,
274
+ projectId: S.String,
275
+ region: S.String,
276
+ updatedAt: S.String,
277
+ }),
278
+ ).annotate({ identifier: "Space" }) as any as S.Schema<Space>;
279
+
280
+ export type SpaceRoleType =
281
+ | "space_auditor"
282
+ | "space_developer"
283
+ | "space_manager"
284
+ | "space_supporter";
285
+ export const SpaceRoleType = /*@__PURE__*/ S.String;
286
+
287
+ export interface CreateSpaceRoleRequest {
288
+ projectId: string;
289
+ region: string;
290
+ organizationId: string;
291
+ spaceId: string;
292
+ type: SpaceRoleType | (string & {});
293
+ userGuid?: string;
294
+ userName?: string;
295
+ }
296
+ export const CreateSpaceRoleRequest = /*@__PURE__*/ S.suspend(() =>
297
+ S.Struct({
298
+ projectId: S.String.pipe(T.Label()),
299
+ region: S.String.pipe(T.Label()),
300
+ organizationId: S.String.pipe(T.Label()),
301
+ spaceId: S.String.pipe(T.Label()),
302
+ type: SpaceRoleType,
303
+ userGuid: S.optional(S.String),
304
+ userName: S.optional(S.String),
305
+ }).pipe(
306
+ T.Http({
307
+ method: "POST",
308
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces/{spaceId}/roles",
309
+ code: 200,
310
+ baseUrl: "https://scf.api.stackit.cloud",
311
+ }),
312
+ ),
313
+ ).annotate({
314
+ identifier: "CreateSpaceRoleRequest",
315
+ }) as any as S.Schema<CreateSpaceRoleRequest>;
316
+
317
+ export interface SpaceRoleCreateResponse {
318
+ guid: string;
319
+ orgId: string;
320
+ platformId: string;
321
+ projectId: string;
322
+ region: string;
323
+ spaceId: string;
324
+ type: SpaceRoleType;
325
+ }
326
+ export const SpaceRoleCreateResponse = /*@__PURE__*/ S.suspend(() =>
327
+ S.Struct({
328
+ guid: S.String,
329
+ orgId: S.String,
330
+ platformId: S.String,
331
+ projectId: S.String,
332
+ region: S.String,
333
+ spaceId: S.String,
334
+ type: SpaceRoleType,
335
+ }),
336
+ ).annotate({
337
+ identifier: "SpaceRoleCreateResponse",
338
+ }) as any as S.Schema<SpaceRoleCreateResponse>;
339
+
340
+ export interface DeleteOrganizationRequest {
341
+ projectId: string;
342
+ region: string;
343
+ organizationId: string;
344
+ }
345
+ export const DeleteOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
346
+ S.Struct({
347
+ projectId: S.String.pipe(T.Label()),
348
+ region: S.String.pipe(T.Label()),
349
+ organizationId: S.String.pipe(T.Label()),
350
+ }).pipe(
351
+ T.Http({
352
+ method: "DELETE",
353
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}",
354
+ code: 200,
355
+ baseUrl: "https://scf.api.stackit.cloud",
356
+ }),
357
+ ),
358
+ ).annotate({
359
+ identifier: "DeleteOrganizationRequest",
360
+ }) as any as S.Schema<DeleteOrganizationRequest>;
361
+
362
+ export interface OrganizationDeleteResponse {
363
+ guid: string;
364
+ platformId: string;
365
+ projectId: string;
366
+ region: string;
367
+ }
368
+ export const OrganizationDeleteResponse = /*@__PURE__*/ S.suspend(() =>
369
+ S.Struct({
370
+ guid: S.String,
371
+ platformId: S.String,
372
+ projectId: S.String,
373
+ region: S.String,
374
+ }),
375
+ ).annotate({
376
+ identifier: "OrganizationDeleteResponse",
377
+ }) as any as S.Schema<OrganizationDeleteResponse>;
378
+
379
+ export interface DeleteOrgManagerRequest {
380
+ projectId: string;
381
+ region: string;
382
+ organizationId: string;
383
+ }
384
+ export const DeleteOrgManagerRequest = /*@__PURE__*/ S.suspend(() =>
385
+ S.Struct({
386
+ projectId: S.String.pipe(T.Label()),
387
+ region: S.String.pipe(T.Label()),
388
+ organizationId: S.String.pipe(T.Label()),
389
+ }).pipe(
390
+ T.Http({
391
+ method: "DELETE",
392
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/organization_manager",
393
+ code: 200,
394
+ baseUrl: "https://scf.api.stackit.cloud",
395
+ }),
396
+ ),
397
+ ).annotate({
398
+ identifier: "DeleteOrgManagerRequest",
399
+ }) as any as S.Schema<DeleteOrgManagerRequest>;
400
+
401
+ export interface OrgManagerDeleteResponse {
402
+ message: string;
403
+ }
404
+ export const OrgManagerDeleteResponse = /*@__PURE__*/ S.suspend(() =>
405
+ S.Struct({
406
+ message: S.String,
407
+ }),
408
+ ).annotate({
409
+ identifier: "OrgManagerDeleteResponse",
410
+ }) as any as S.Schema<OrgManagerDeleteResponse>;
411
+
412
+ export interface DeleteSpaceRequest {
413
+ projectId: string;
414
+ region: string;
415
+ organizationId: string;
416
+ spaceId: string;
417
+ }
418
+ export const DeleteSpaceRequest = /*@__PURE__*/ S.suspend(() =>
419
+ S.Struct({
420
+ projectId: S.String.pipe(T.Label()),
421
+ region: S.String.pipe(T.Label()),
422
+ organizationId: S.String.pipe(T.Label()),
423
+ spaceId: S.String.pipe(T.Label()),
424
+ }).pipe(
425
+ T.Http({
426
+ method: "DELETE",
427
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces/{spaceId}",
428
+ code: 200,
429
+ baseUrl: "https://scf.api.stackit.cloud",
430
+ }),
431
+ ),
432
+ ).annotate({
433
+ identifier: "DeleteSpaceRequest",
434
+ }) as any as S.Schema<DeleteSpaceRequest>;
435
+
436
+ export interface SpaceDeleteResponse {
437
+ message: string;
438
+ }
439
+ export const SpaceDeleteResponse = /*@__PURE__*/ S.suspend(() =>
440
+ S.Struct({
441
+ message: S.String,
442
+ }),
443
+ ).annotate({
444
+ identifier: "SpaceDeleteResponse",
445
+ }) as any as S.Schema<SpaceDeleteResponse>;
446
+
447
+ export interface GetOrganizationRequest {
448
+ projectId: string;
449
+ region: string;
450
+ organizationId: string;
451
+ }
452
+ export const GetOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
453
+ S.Struct({
454
+ projectId: S.String.pipe(T.Label()),
455
+ region: S.String.pipe(T.Label()),
456
+ organizationId: S.String.pipe(T.Label()),
457
+ }).pipe(
458
+ T.Http({
459
+ method: "GET",
460
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}",
461
+ code: 200,
462
+ baseUrl: "https://scf.api.stackit.cloud",
463
+ }),
464
+ ),
465
+ ).annotate({
466
+ identifier: "GetOrganizationRequest",
467
+ }) as any as S.Schema<GetOrganizationRequest>;
468
+
469
+ export interface Organization {
470
+ createdAt: string;
471
+ guid: string;
472
+ name: string;
473
+ platformId: string;
474
+ projectId: string;
475
+ quotaId: string;
476
+ region: string;
477
+ status: string;
478
+ suspended: boolean;
479
+ updatedAt: string;
480
+ }
481
+ export const Organization = /*@__PURE__*/ S.suspend(() =>
482
+ S.Struct({
483
+ createdAt: S.String,
484
+ guid: S.String,
485
+ name: S.String,
486
+ platformId: S.String,
487
+ projectId: S.String,
488
+ quotaId: S.String,
489
+ region: S.String,
490
+ status: S.String,
491
+ suspended: S.Boolean,
492
+ updatedAt: S.String,
493
+ }),
494
+ ).annotate({ identifier: "Organization" }) as any as S.Schema<Organization>;
495
+
496
+ export interface GetOrganizationQuotaRequest {
497
+ projectId: string;
498
+ region: string;
499
+ organizationId: string;
500
+ quotaId: string;
501
+ }
502
+ export const GetOrganizationQuotaRequest = /*@__PURE__*/ S.suspend(() =>
503
+ S.Struct({
504
+ projectId: S.String.pipe(T.Label()),
505
+ region: S.String.pipe(T.Label()),
506
+ organizationId: S.String.pipe(T.Label()),
507
+ quotaId: S.String.pipe(T.Label()),
508
+ }).pipe(
509
+ T.Http({
510
+ method: "GET",
511
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/quotas/{quotaId}",
512
+ code: 200,
513
+ baseUrl: "https://scf.api.stackit.cloud",
514
+ }),
515
+ ),
516
+ ).annotate({
517
+ identifier: "GetOrganizationQuotaRequest",
518
+ }) as any as S.Schema<GetOrganizationQuotaRequest>;
519
+
520
+ export interface QuotaApps {
521
+ /** The value `null` means `unlimited`. */
522
+ logRateLimitInBytesPerSecond: number | null;
523
+ /** The value `null` means `unlimited`. */
524
+ perAppTasks: number | null;
525
+ /** The value `null` means `unlimited`. */
526
+ perProcessMemoryInMb: number | null;
527
+ /** The value `null` means `unlimited`. */
528
+ totalInstances: number | null;
529
+ /** The value `null` means `unlimited`. */
530
+ totalMemoryInMb: number | null;
531
+ }
532
+ export const QuotaApps = /*@__PURE__*/ S.suspend(() =>
533
+ S.Struct({
534
+ logRateLimitInBytesPerSecond: S.NullOr(S.Number),
535
+ perAppTasks: S.NullOr(S.Number),
536
+ perProcessMemoryInMb: S.NullOr(S.Number),
537
+ totalInstances: S.NullOr(S.Number),
538
+ totalMemoryInMb: S.NullOr(S.Number),
539
+ }),
540
+ ).annotate({ identifier: "QuotaApps" }) as any as S.Schema<QuotaApps>;
541
+
542
+ export interface QuotaDomains {
543
+ /** The value `null` means `unlimited`. */
544
+ totalDomains: number | null;
545
+ }
546
+ export const QuotaDomains = /*@__PURE__*/ S.suspend(() =>
547
+ S.Struct({
548
+ totalDomains: S.NullOr(S.Number),
549
+ }),
550
+ ).annotate({ identifier: "QuotaDomains" }) as any as S.Schema<QuotaDomains>;
551
+
552
+ export interface QuotaRoutes {
553
+ /** The value `null` means `unlimited`. */
554
+ totalReservedPorts: number | null;
555
+ /** The value `null` means `unlimited`. */
556
+ totalRoutes: number | null;
557
+ }
558
+ export const QuotaRoutes = /*@__PURE__*/ S.suspend(() =>
559
+ S.Struct({
560
+ totalReservedPorts: S.NullOr(S.Number),
561
+ totalRoutes: S.NullOr(S.Number),
562
+ }),
563
+ ).annotate({ identifier: "QuotaRoutes" }) as any as S.Schema<QuotaRoutes>;
564
+
565
+ export interface QuotaServices {
566
+ paidServicesAllowed: boolean;
567
+ /** The value `null` means `unlimited`. */
568
+ totalServiceInstances: number | null;
569
+ /** The value `null` means `unlimited`. */
570
+ totalServiceKeys: number | null;
571
+ }
572
+ export const QuotaServices = /*@__PURE__*/ S.suspend(() =>
573
+ S.Struct({
574
+ paidServicesAllowed: S.Boolean,
575
+ totalServiceInstances: S.NullOr(S.Number),
576
+ totalServiceKeys: S.NullOr(S.Number),
577
+ }),
578
+ ).annotate({ identifier: "QuotaServices" }) as any as S.Schema<QuotaServices>;
579
+
580
+ export interface Quota {
581
+ apps: QuotaApps;
582
+ createdAt: string;
583
+ domains: QuotaDomains;
584
+ guid: string;
585
+ name: string;
586
+ orgId?: string;
587
+ platformId: string;
588
+ projectId: string;
589
+ region: string;
590
+ routes: QuotaRoutes;
591
+ services: QuotaServices;
592
+ updatedAt: string;
593
+ }
594
+ export const Quota = /*@__PURE__*/ S.suspend(() =>
595
+ S.Struct({
596
+ apps: QuotaApps,
597
+ createdAt: S.String,
598
+ domains: QuotaDomains,
599
+ guid: S.String,
600
+ name: S.String,
601
+ orgId: S.optional(S.String),
602
+ platformId: S.String,
603
+ projectId: S.String,
604
+ region: S.String,
605
+ routes: QuotaRoutes,
606
+ services: QuotaServices,
607
+ updatedAt: S.String,
608
+ }),
609
+ ).annotate({ identifier: "Quota" }) as any as S.Schema<Quota>;
610
+
611
+ export interface GetOrganizationUsageSummaryRequest {
612
+ projectId: string;
613
+ region: string;
614
+ organizationId: string;
615
+ }
616
+ export const GetOrganizationUsageSummaryRequest = /*@__PURE__*/ S.suspend(() =>
617
+ S.Struct({
618
+ projectId: S.String.pipe(T.Label()),
619
+ region: S.String.pipe(T.Label()),
620
+ organizationId: S.String.pipe(T.Label()),
621
+ }).pipe(
622
+ T.Http({
623
+ method: "GET",
624
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/usage_summary",
625
+ code: 200,
626
+ baseUrl: "https://scf.api.stackit.cloud",
627
+ }),
628
+ ),
629
+ ).annotate({
630
+ identifier: "GetOrganizationUsageSummaryRequest",
631
+ }) as any as S.Schema<GetOrganizationUsageSummaryRequest>;
632
+
633
+ export interface UsageSummary {
634
+ domains: number;
635
+ memoryInMb: number;
636
+ perAppTasks: number;
637
+ reservedPorts: number;
638
+ routes: number;
639
+ serviceInstances: number;
640
+ serviceKeys: number;
641
+ startedInstances: number;
642
+ }
643
+ export const UsageSummary = /*@__PURE__*/ S.suspend(() =>
644
+ S.Struct({
645
+ domains: S.Number,
646
+ memoryInMb: S.Number,
647
+ perAppTasks: S.Number,
648
+ reservedPorts: S.Number,
649
+ routes: S.Number,
650
+ serviceInstances: S.Number,
651
+ serviceKeys: S.Number,
652
+ startedInstances: S.Number,
653
+ }),
654
+ ).annotate({ identifier: "UsageSummary" }) as any as S.Schema<UsageSummary>;
655
+
656
+ export interface OrganizationUsageSummary {
657
+ orgId: string;
658
+ platformId: string;
659
+ projectId: string;
660
+ region: string;
661
+ usageSummary: UsageSummary;
662
+ }
663
+ export const OrganizationUsageSummary = /*@__PURE__*/ S.suspend(() =>
664
+ S.Struct({
665
+ orgId: S.String,
666
+ platformId: S.String,
667
+ projectId: S.String,
668
+ region: S.String,
669
+ usageSummary: UsageSummary,
670
+ }),
671
+ ).annotate({
672
+ identifier: "OrganizationUsageSummary",
673
+ }) as any as S.Schema<OrganizationUsageSummary>;
674
+
675
+ export interface GetOrgManagerRequest {
676
+ projectId: string;
677
+ region: string;
678
+ organizationId: string;
679
+ }
680
+ export const GetOrgManagerRequest = /*@__PURE__*/ S.suspend(() =>
681
+ S.Struct({
682
+ projectId: S.String.pipe(T.Label()),
683
+ region: S.String.pipe(T.Label()),
684
+ organizationId: S.String.pipe(T.Label()),
685
+ }).pipe(
686
+ T.Http({
687
+ method: "GET",
688
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/organization_manager",
689
+ code: 200,
690
+ baseUrl: "https://scf.api.stackit.cloud",
691
+ }),
692
+ ),
693
+ ).annotate({
694
+ identifier: "GetOrgManagerRequest",
695
+ }) as any as S.Schema<GetOrgManagerRequest>;
696
+
697
+ export interface OrgManager {
698
+ createdAt: string;
699
+ guid: string;
700
+ orgId: string;
701
+ platformId: string;
702
+ projectId: string;
703
+ region: string;
704
+ updatedAt: string;
705
+ username: string;
706
+ }
707
+ export const OrgManager = /*@__PURE__*/ S.suspend(() =>
708
+ S.Struct({
709
+ createdAt: S.String,
710
+ guid: S.String,
711
+ orgId: S.String,
712
+ platformId: S.String,
713
+ projectId: S.String,
714
+ region: S.String,
715
+ updatedAt: S.String,
716
+ username: S.String,
717
+ }),
718
+ ).annotate({ identifier: "OrgManager" }) as any as S.Schema<OrgManager>;
719
+
720
+ export interface GetPlatformRequest {
721
+ projectId: string;
722
+ region: string;
723
+ platformId: string;
724
+ }
725
+ export const GetPlatformRequest = /*@__PURE__*/ S.suspend(() =>
726
+ S.Struct({
727
+ projectId: S.String.pipe(T.Label()),
728
+ region: S.String.pipe(T.Label()),
729
+ platformId: S.String.pipe(T.Label()),
730
+ }).pipe(
731
+ T.Http({
732
+ method: "GET",
733
+ uri: "/v1/projects/{projectId}/regions/{region}/platforms/{platformId}",
734
+ code: 200,
735
+ baseUrl: "https://scf.api.stackit.cloud",
736
+ }),
737
+ ),
738
+ ).annotate({
739
+ identifier: "GetPlatformRequest",
740
+ }) as any as S.Schema<GetPlatformRequest>;
741
+
742
+ export interface Platforms {
743
+ apiUrl: string;
744
+ consoleUrl?: string;
745
+ displayName: string;
746
+ guid: string;
747
+ region: string;
748
+ systemId: string;
749
+ }
750
+ export const Platforms = /*@__PURE__*/ S.suspend(() =>
751
+ S.Struct({
752
+ apiUrl: S.String,
753
+ consoleUrl: S.optional(S.String),
754
+ displayName: S.String,
755
+ guid: S.String,
756
+ region: S.String,
757
+ systemId: S.String,
758
+ }),
759
+ ).annotate({ identifier: "Platforms" }) as any as S.Schema<Platforms>;
760
+
761
+ export interface GetPlatformQuotaRequest {
762
+ projectId: string;
763
+ region: string;
764
+ platformId: string;
765
+ quotaId: string;
766
+ }
767
+ export const GetPlatformQuotaRequest = /*@__PURE__*/ S.suspend(() =>
768
+ S.Struct({
769
+ projectId: S.String.pipe(T.Label()),
770
+ region: S.String.pipe(T.Label()),
771
+ platformId: S.String.pipe(T.Label()),
772
+ quotaId: S.String.pipe(T.Label()),
773
+ }).pipe(
774
+ T.Http({
775
+ method: "GET",
776
+ uri: "/v1/projects/{projectId}/regions/{region}/platforms/{platformId}/quotas/{quotaId}",
777
+ code: 200,
778
+ baseUrl: "https://scf.api.stackit.cloud",
779
+ }),
780
+ ),
781
+ ).annotate({
782
+ identifier: "GetPlatformQuotaRequest",
783
+ }) as any as S.Schema<GetPlatformQuotaRequest>;
784
+
785
+ export interface GetSpaceRequest {
786
+ projectId: string;
787
+ region: string;
788
+ organizationId: string;
789
+ spaceId: string;
790
+ }
791
+ export const GetSpaceRequest = /*@__PURE__*/ S.suspend(() =>
792
+ S.Struct({
793
+ projectId: S.String.pipe(T.Label()),
794
+ region: S.String.pipe(T.Label()),
795
+ organizationId: S.String.pipe(T.Label()),
796
+ spaceId: S.String.pipe(T.Label()),
797
+ }).pipe(
798
+ T.Http({
799
+ method: "GET",
800
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces/{spaceId}",
801
+ code: 200,
802
+ baseUrl: "https://scf.api.stackit.cloud",
803
+ }),
804
+ ),
805
+ ).annotate({
806
+ identifier: "GetSpaceRequest",
807
+ }) as any as S.Schema<GetSpaceRequest>;
808
+
809
+ export interface ListOrganizationQuotasRequest {
810
+ projectId: string;
811
+ region: string;
812
+ organizationId: string;
813
+ }
814
+ export const ListOrganizationQuotasRequest = /*@__PURE__*/ S.suspend(() =>
815
+ S.Struct({
816
+ projectId: S.String.pipe(T.Label()),
817
+ region: S.String.pipe(T.Label()),
818
+ organizationId: S.String.pipe(T.Label()),
819
+ }).pipe(
820
+ T.Http({
821
+ method: "GET",
822
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/quotas",
823
+ code: 200,
824
+ baseUrl: "https://scf.api.stackit.cloud",
825
+ }),
826
+ ),
827
+ ).annotate({
828
+ identifier: "ListOrganizationQuotasRequest",
829
+ }) as any as S.Schema<ListOrganizationQuotasRequest>;
830
+
831
+ export type ListOrganizationQuotasResponseBodyList = Array<Quota>;
832
+ export const ListOrganizationQuotasResponseBodyList = /*@__PURE__*/ S.Array(
833
+ Quota,
834
+ ) as any as S.Schema<ListOrganizationQuotasResponseBodyList>;
835
+
836
+ export type ListOrganizationQuotasResponse =
837
+ ListOrganizationQuotasResponseBodyList;
838
+ export const ListOrganizationQuotasResponse = /*@__PURE__*/ S.suspend(() =>
839
+ ListOrganizationQuotasResponseBodyList.pipe(T.RawResponseRoot()),
840
+ ).annotate({
841
+ identifier: "ListOrganizationQuotasResponse",
842
+ }) as any as S.Schema<ListOrganizationQuotasResponse>;
843
+
844
+ export interface ListOrganizationsRequest {
845
+ projectId: string;
846
+ region: string;
847
+ /** Adds the details to the response that can be queried from the Cloud Controller API */
848
+ withDetails?: boolean;
849
+ /** In case `withDetails` is enabled, the organization list can be sorted by `name`. In order to sort by `name`, you have to set the value `name`. The default sort ordering is ascending. To specify descending order for `name` field, you have to append ` desc` suffix; for example `name desc`. */
850
+ orderBy?: string;
851
+ /** Which page is returned */
852
+ page?: number;
853
+ /** Elements to be returned per page */
854
+ perPage?: number;
855
+ }
856
+ export const ListOrganizationsRequest = /*@__PURE__*/ S.suspend(() =>
857
+ S.Struct({
858
+ projectId: S.String.pipe(T.Label()),
859
+ region: S.String.pipe(T.Label()),
860
+ withDetails: S.optional(S.Boolean.pipe(T.Query())),
861
+ orderBy: S.optional(S.String.pipe(T.Query())),
862
+ page: S.optional(S.Number.pipe(T.Query())),
863
+ perPage: S.optional(S.Number.pipe(T.Query())),
864
+ }).pipe(
865
+ T.Http({
866
+ method: "GET",
867
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations",
868
+ code: 200,
869
+ baseUrl: "https://scf.api.stackit.cloud",
870
+ }),
871
+ ),
872
+ ).annotate({
873
+ identifier: "ListOrganizationsRequest",
874
+ }) as any as S.Schema<ListOrganizationsRequest>;
875
+
876
+ export interface Pagination {
877
+ totalPages?: number;
878
+ totalResults?: number;
879
+ }
880
+ export const Pagination = /*@__PURE__*/ S.suspend(() =>
881
+ S.Struct({
882
+ totalPages: S.optional(S.Number),
883
+ totalResults: S.optional(S.Number),
884
+ }),
885
+ ).annotate({ identifier: "Pagination" }) as any as S.Schema<Pagination>;
886
+
887
+ export interface OrganizationsListItem {
888
+ createdAt?: string;
889
+ guid: string;
890
+ name?: string;
891
+ platformId: string;
892
+ projectId: string;
893
+ quotaId?: string;
894
+ region: string;
895
+ status: string;
896
+ suspended?: boolean;
897
+ updatedAt?: string;
898
+ }
899
+ export const OrganizationsListItem = /*@__PURE__*/ S.suspend(() =>
900
+ S.Struct({
901
+ createdAt: S.optional(S.String),
902
+ guid: S.String,
903
+ name: S.optional(S.String),
904
+ platformId: S.String,
905
+ projectId: S.String,
906
+ quotaId: S.optional(S.String),
907
+ region: S.String,
908
+ status: S.String,
909
+ suspended: S.optional(S.Boolean),
910
+ updatedAt: S.optional(S.String),
911
+ }),
912
+ ).annotate({
913
+ identifier: "OrganizationsListItem",
914
+ }) as any as S.Schema<OrganizationsListItem>;
915
+
916
+ export type OrganizationsListResourcesList = Array<OrganizationsListItem>;
917
+ export const OrganizationsListResourcesList = /*@__PURE__*/ S.Array(
918
+ OrganizationsListItem,
919
+ ) as any as S.Schema<OrganizationsListResourcesList>;
920
+
921
+ export interface OrganizationsList {
922
+ pagination: Pagination;
923
+ resources: OrganizationsListResourcesList;
924
+ }
925
+ export const OrganizationsList = /*@__PURE__*/ S.suspend(() =>
926
+ S.Struct({
927
+ pagination: Pagination,
928
+ resources: OrganizationsListResourcesList,
929
+ }),
930
+ ).annotate({
931
+ identifier: "OrganizationsList",
932
+ }) as any as S.Schema<OrganizationsList>;
933
+
934
+ export interface ListPlatformQuotasRequest {
935
+ projectId: string;
936
+ region: string;
937
+ platformId: string;
938
+ }
939
+ export const ListPlatformQuotasRequest = /*@__PURE__*/ S.suspend(() =>
940
+ S.Struct({
941
+ projectId: S.String.pipe(T.Label()),
942
+ region: S.String.pipe(T.Label()),
943
+ platformId: S.String.pipe(T.Label()),
944
+ }).pipe(
945
+ T.Http({
946
+ method: "GET",
947
+ uri: "/v1/projects/{projectId}/regions/{region}/platforms/{platformId}/quotas",
948
+ code: 200,
949
+ baseUrl: "https://scf.api.stackit.cloud",
950
+ }),
951
+ ),
952
+ ).annotate({
953
+ identifier: "ListPlatformQuotasRequest",
954
+ }) as any as S.Schema<ListPlatformQuotasRequest>;
955
+
956
+ export type ListPlatformQuotasResponseBodyList = Array<Quota>;
957
+ export const ListPlatformQuotasResponseBodyList = /*@__PURE__*/ S.Array(
958
+ Quota,
959
+ ) as any as S.Schema<ListPlatformQuotasResponseBodyList>;
960
+
961
+ export type ListPlatformQuotasResponse = ListPlatformQuotasResponseBodyList;
962
+ export const ListPlatformQuotasResponse = /*@__PURE__*/ S.suspend(() =>
963
+ ListPlatformQuotasResponseBodyList.pipe(T.RawResponseRoot()),
964
+ ).annotate({
965
+ identifier: "ListPlatformQuotasResponse",
966
+ }) as any as S.Schema<ListPlatformQuotasResponse>;
967
+
968
+ export interface ListPlatformsRequest {
969
+ projectId: string;
970
+ region: string;
971
+ /** Which page is returned */
972
+ page?: number;
973
+ /** Elements to be returned per page */
974
+ perPage?: number;
975
+ }
976
+ export const ListPlatformsRequest = /*@__PURE__*/ S.suspend(() =>
977
+ S.Struct({
978
+ projectId: S.String.pipe(T.Label()),
979
+ region: S.String.pipe(T.Label()),
980
+ page: S.optional(S.Number.pipe(T.Query())),
981
+ perPage: S.optional(S.Number.pipe(T.Query())),
982
+ }).pipe(
983
+ T.Http({
984
+ method: "GET",
985
+ uri: "/v1/projects/{projectId}/regions/{region}/platforms",
986
+ code: 200,
987
+ baseUrl: "https://scf.api.stackit.cloud",
988
+ }),
989
+ ),
990
+ ).annotate({
991
+ identifier: "ListPlatformsRequest",
992
+ }) as any as S.Schema<ListPlatformsRequest>;
993
+
994
+ export type PlatformListResourcesList = Array<Platforms>;
995
+ export const PlatformListResourcesList = /*@__PURE__*/ S.Array(
996
+ Platforms,
997
+ ) as any as S.Schema<PlatformListResourcesList>;
998
+
999
+ export interface PlatformList {
1000
+ pagination: Pagination;
1001
+ resources: PlatformListResourcesList;
1002
+ }
1003
+ export const PlatformList = /*@__PURE__*/ S.suspend(() =>
1004
+ S.Struct({
1005
+ pagination: Pagination,
1006
+ resources: PlatformListResourcesList,
1007
+ }),
1008
+ ).annotate({ identifier: "PlatformList" }) as any as S.Schema<PlatformList>;
1009
+
1010
+ export interface ListSpacesRequest {
1011
+ projectId: string;
1012
+ region: string;
1013
+ organizationId: string;
1014
+ /** Which page is returned */
1015
+ page?: number;
1016
+ /** Elements to be returned per page */
1017
+ perPage?: number;
1018
+ }
1019
+ export const ListSpacesRequest = /*@__PURE__*/ S.suspend(() =>
1020
+ S.Struct({
1021
+ projectId: S.String.pipe(T.Label()),
1022
+ region: S.String.pipe(T.Label()),
1023
+ organizationId: S.String.pipe(T.Label()),
1024
+ page: S.optional(S.Number.pipe(T.Query())),
1025
+ perPage: S.optional(S.Number.pipe(T.Query())),
1026
+ }).pipe(
1027
+ T.Http({
1028
+ method: "GET",
1029
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces",
1030
+ code: 200,
1031
+ baseUrl: "https://scf.api.stackit.cloud",
1032
+ }),
1033
+ ),
1034
+ ).annotate({
1035
+ identifier: "ListSpacesRequest",
1036
+ }) as any as S.Schema<ListSpacesRequest>;
1037
+
1038
+ export type SpacesListResourcesList = Array<Space>;
1039
+ export const SpacesListResourcesList = /*@__PURE__*/ S.Array(
1040
+ Space,
1041
+ ) as any as S.Schema<SpacesListResourcesList>;
1042
+
1043
+ export interface SpacesList {
1044
+ pagination: Pagination;
1045
+ resources: SpacesListResourcesList;
1046
+ }
1047
+ export const SpacesList = /*@__PURE__*/ S.suspend(() =>
1048
+ S.Struct({
1049
+ pagination: Pagination,
1050
+ resources: SpacesListResourcesList,
1051
+ }),
1052
+ ).annotate({ identifier: "SpacesList" }) as any as S.Schema<SpacesList>;
1053
+
1054
+ export interface UpdateOrganizationRequest {
1055
+ projectId: string;
1056
+ region: string;
1057
+ organizationId: string;
1058
+ name?: string;
1059
+ suspended?: boolean;
1060
+ }
1061
+ export const UpdateOrganizationRequest = /*@__PURE__*/ S.suspend(() =>
1062
+ S.Struct({
1063
+ projectId: S.String.pipe(T.Label()),
1064
+ region: S.String.pipe(T.Label()),
1065
+ organizationId: S.String.pipe(T.Label()),
1066
+ name: S.optional(S.String),
1067
+ suspended: S.optional(S.Boolean),
1068
+ }).pipe(
1069
+ T.Http({
1070
+ method: "PATCH",
1071
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}",
1072
+ code: 200,
1073
+ baseUrl: "https://scf.api.stackit.cloud",
1074
+ }),
1075
+ ),
1076
+ ).annotate({
1077
+ identifier: "UpdateOrganizationRequest",
1078
+ }) as any as S.Schema<UpdateOrganizationRequest>;
1079
+
1080
+ export interface UpdateSpaceRequest {
1081
+ projectId: string;
1082
+ region: string;
1083
+ organizationId: string;
1084
+ spaceId: string;
1085
+ name: string;
1086
+ }
1087
+ export const UpdateSpaceRequest = /*@__PURE__*/ S.suspend(() =>
1088
+ S.Struct({
1089
+ projectId: S.String.pipe(T.Label()),
1090
+ region: S.String.pipe(T.Label()),
1091
+ organizationId: S.String.pipe(T.Label()),
1092
+ spaceId: S.String.pipe(T.Label()),
1093
+ name: S.String,
1094
+ }).pipe(
1095
+ T.Http({
1096
+ method: "PATCH",
1097
+ uri: "/v1/projects/{projectId}/regions/{region}/organizations/{organizationId}/spaces/{spaceId}",
1098
+ code: 200,
1099
+ baseUrl: "https://scf.api.stackit.cloud",
1100
+ }),
1101
+ ),
1102
+ ).annotate({
1103
+ identifier: "UpdateSpaceRequest",
1104
+ }) as any as S.Schema<UpdateSpaceRequest>;
1105
+
1106
+ export type ApplyOrganizationQuotaError =
1107
+ | BadRequest
1108
+ | Forbidden
1109
+ | NotFound
1110
+ | StackitOpError;
1111
+ /** Apply an organization quota Change the organization quota of an organization. */
1112
+ export const applyOrganizationQuota: API.OperationMethod<
1113
+ ApplyOrganizationQuotaRequest,
1114
+ OrganizationQuota,
1115
+ ApplyOrganizationQuotaError,
1116
+ StackitOpContext
1117
+ > = /*@__PURE__*/ API.make(() => ({
1118
+ input: ApplyOrganizationQuotaRequest,
1119
+ output: OrganizationQuota,
1120
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1121
+ protocol: StackitProtocol,
1122
+ retry: Retry.Retry,
1123
+ }));
1124
+
1125
+ export type CreateOrganizationError =
1126
+ | BadRequest
1127
+ | Forbidden
1128
+ | NotFound
1129
+ | StackitOpError;
1130
+ /** Create an organization Creates an organization without assigning any CF roles or creating a space. */
1131
+ export const createOrganization: API.OperationMethod<
1132
+ CreateOrganizationRequest,
1133
+ OrganizationCreateResponse,
1134
+ CreateOrganizationError,
1135
+ StackitOpContext
1136
+ > = /*@__PURE__*/ API.make(() => ({
1137
+ input: CreateOrganizationRequest,
1138
+ output: OrganizationCreateResponse,
1139
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1140
+ protocol: StackitProtocol,
1141
+ retry: Retry.Retry,
1142
+ }));
1143
+
1144
+ export type CreateOrgManagerError =
1145
+ | BadRequest
1146
+ | Forbidden
1147
+ | NotFound
1148
+ | StackitOpError;
1149
+ /** Create organization manager Creates organization manager within an organization. The organization manager will be backed by a CF user. There is only one organization manager per organization. The organization manager gets assigned the CF role Org Manager. This endpoint does synchronously several non-atomic steps behind the scenes. If any of those steps fail, the 'Delete Organization Manager' needs to be called first to clean up the failed creation attempt and afterwards the creation can be retried. The password needs to be stored by the API callee since it cannot be retrieved after creation. */
1150
+ export const createOrgManager: API.OperationMethod<
1151
+ CreateOrgManagerRequest,
1152
+ OrgManagerResponse,
1153
+ CreateOrgManagerError,
1154
+ StackitOpContext
1155
+ > = /*@__PURE__*/ API.make(() => ({
1156
+ input: CreateOrgManagerRequest,
1157
+ output: OrgManagerResponse,
1158
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1159
+ protocol: StackitProtocol,
1160
+ retry: Retry.Retry,
1161
+ }));
1162
+
1163
+ export type CreateOrgRoleError =
1164
+ | BadRequest
1165
+ | Forbidden
1166
+ | NotFound
1167
+ | StackitOpError;
1168
+ /** Assign organization role Assign organization role within an organization. If the role is already assigned, the existing role GUID gets returned. */
1169
+ export const createOrgRole: API.OperationMethod<
1170
+ CreateOrgRoleRequest,
1171
+ OrgRoleResponse,
1172
+ CreateOrgRoleError,
1173
+ StackitOpContext
1174
+ > = /*@__PURE__*/ API.make(() => ({
1175
+ input: CreateOrgRoleRequest,
1176
+ output: OrgRoleResponse,
1177
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1178
+ protocol: StackitProtocol,
1179
+ retry: Retry.Retry,
1180
+ }));
1181
+
1182
+ export type CreateSpaceError =
1183
+ | BadRequest
1184
+ | Forbidden
1185
+ | NotFound
1186
+ | StackitOpError;
1187
+ /** Create space Create space. */
1188
+ export const createSpace: API.OperationMethod<
1189
+ CreateSpaceRequest,
1190
+ Space,
1191
+ CreateSpaceError,
1192
+ StackitOpContext
1193
+ > = /*@__PURE__*/ API.make(() => ({
1194
+ input: CreateSpaceRequest,
1195
+ output: Space,
1196
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1197
+ protocol: StackitProtocol,
1198
+ retry: Retry.Retry,
1199
+ }));
1200
+
1201
+ export type CreateSpaceRoleError =
1202
+ | BadRequest
1203
+ | Forbidden
1204
+ | NotFound
1205
+ | StackitOpError;
1206
+ /** Assign space role Assign space role within an space. If the role is already assigned, the existing role GUID gets returned. */
1207
+ export const createSpaceRole: API.OperationMethod<
1208
+ CreateSpaceRoleRequest,
1209
+ SpaceRoleCreateResponse,
1210
+ CreateSpaceRoleError,
1211
+ StackitOpContext
1212
+ > = /*@__PURE__*/ API.make(() => ({
1213
+ input: CreateSpaceRoleRequest,
1214
+ output: SpaceRoleCreateResponse,
1215
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1216
+ protocol: StackitProtocol,
1217
+ retry: Retry.Retry,
1218
+ }));
1219
+
1220
+ export type DeleteOrganizationError =
1221
+ | BadRequest
1222
+ | Forbidden
1223
+ | NotFound
1224
+ | StackitOpError;
1225
+ /** Delete organization Delete an organization. */
1226
+ export const deleteOrganization: API.OperationMethod<
1227
+ DeleteOrganizationRequest,
1228
+ OrganizationDeleteResponse,
1229
+ DeleteOrganizationError,
1230
+ StackitOpContext
1231
+ > = /*@__PURE__*/ API.make(() => ({
1232
+ input: DeleteOrganizationRequest,
1233
+ output: OrganizationDeleteResponse,
1234
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1235
+ protocol: StackitProtocol,
1236
+ retry: Retry.Retry,
1237
+ }));
1238
+
1239
+ export type DeleteOrgManagerError =
1240
+ | BadRequest
1241
+ | Forbidden
1242
+ | NotFound
1243
+ | StackitOpError;
1244
+ /** Delete organization manager Delete the organization manager. */
1245
+ export const deleteOrgManager: API.OperationMethod<
1246
+ DeleteOrgManagerRequest,
1247
+ OrgManagerDeleteResponse,
1248
+ DeleteOrgManagerError,
1249
+ StackitOpContext
1250
+ > = /*@__PURE__*/ API.make(() => ({
1251
+ input: DeleteOrgManagerRequest,
1252
+ output: OrgManagerDeleteResponse,
1253
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1254
+ protocol: StackitProtocol,
1255
+ retry: Retry.Retry,
1256
+ }));
1257
+
1258
+ export type DeleteSpaceError =
1259
+ | BadRequest
1260
+ | Forbidden
1261
+ | NotFound
1262
+ | StackitOpError;
1263
+ /** Delete space Delete space. */
1264
+ export const deleteSpace: API.OperationMethod<
1265
+ DeleteSpaceRequest,
1266
+ SpaceDeleteResponse,
1267
+ DeleteSpaceError,
1268
+ StackitOpContext
1269
+ > = /*@__PURE__*/ API.make(() => ({
1270
+ input: DeleteSpaceRequest,
1271
+ output: SpaceDeleteResponse,
1272
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1273
+ protocol: StackitProtocol,
1274
+ retry: Retry.Retry,
1275
+ }));
1276
+
1277
+ export type GetOrganizationError =
1278
+ | BadRequest
1279
+ | Forbidden
1280
+ | NotFound
1281
+ | StackitOpError;
1282
+ /** Get an organization Returns an organization. */
1283
+ export const getOrganization: API.OperationMethod<
1284
+ GetOrganizationRequest,
1285
+ Organization,
1286
+ GetOrganizationError,
1287
+ StackitOpContext
1288
+ > = /*@__PURE__*/ API.make(() => ({
1289
+ input: GetOrganizationRequest,
1290
+ output: Organization,
1291
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1292
+ protocol: StackitProtocol,
1293
+ retry: Retry.Retry,
1294
+ }));
1295
+
1296
+ export type GetOrganizationQuotaError =
1297
+ | BadRequest
1298
+ | Forbidden
1299
+ | NotFound
1300
+ | StackitOpError;
1301
+ /** Get an organization quota Returns an organization quota. */
1302
+ export const getOrganizationQuota: API.OperationMethod<
1303
+ GetOrganizationQuotaRequest,
1304
+ Quota,
1305
+ GetOrganizationQuotaError,
1306
+ StackitOpContext
1307
+ > = /*@__PURE__*/ API.make(() => ({
1308
+ input: GetOrganizationQuotaRequest,
1309
+ output: Quota,
1310
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1311
+ protocol: StackitProtocol,
1312
+ retry: Retry.Retry,
1313
+ }));
1314
+
1315
+ export type GetOrganizationUsageSummaryError =
1316
+ | BadRequest
1317
+ | Forbidden
1318
+ | NotFound
1319
+ | StackitOpError;
1320
+ /** Get an organization usage summary Returns an organization usage summary. */
1321
+ export const getOrganizationUsageSummary: API.OperationMethod<
1322
+ GetOrganizationUsageSummaryRequest,
1323
+ OrganizationUsageSummary,
1324
+ GetOrganizationUsageSummaryError,
1325
+ StackitOpContext
1326
+ > = /*@__PURE__*/ API.make(() => ({
1327
+ input: GetOrganizationUsageSummaryRequest,
1328
+ output: OrganizationUsageSummary,
1329
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1330
+ protocol: StackitProtocol,
1331
+ retry: Retry.Retry,
1332
+ }));
1333
+
1334
+ export type GetOrgManagerError =
1335
+ | BadRequest
1336
+ | Forbidden
1337
+ | NotFound
1338
+ | StackitOpError;
1339
+ /** Get organization manager Returns the organization manager within an organization. */
1340
+ export const getOrgManager: API.OperationMethod<
1341
+ GetOrgManagerRequest,
1342
+ OrgManager,
1343
+ GetOrgManagerError,
1344
+ StackitOpContext
1345
+ > = /*@__PURE__*/ API.make(() => ({
1346
+ input: GetOrgManagerRequest,
1347
+ output: OrgManager,
1348
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1349
+ protocol: StackitProtocol,
1350
+ retry: Retry.Retry,
1351
+ }));
1352
+
1353
+ export type GetPlatformError =
1354
+ | BadRequest
1355
+ | Forbidden
1356
+ | NotFound
1357
+ | StackitOpError;
1358
+ /** Get platform Fetch a single platform */
1359
+ export const getPlatform: API.OperationMethod<
1360
+ GetPlatformRequest,
1361
+ Platforms,
1362
+ GetPlatformError,
1363
+ StackitOpContext
1364
+ > = /*@__PURE__*/ API.make(() => ({
1365
+ input: GetPlatformRequest,
1366
+ output: Platforms,
1367
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1368
+ protocol: StackitProtocol,
1369
+ retry: Retry.Retry,
1370
+ }));
1371
+
1372
+ export type GetPlatformQuotaError =
1373
+ | BadRequest
1374
+ | Forbidden
1375
+ | NotFound
1376
+ | StackitOpError;
1377
+ /** Get organization quota on a platform Returns an organization quota on a platform. */
1378
+ export const getPlatformQuota: API.OperationMethod<
1379
+ GetPlatformQuotaRequest,
1380
+ Quota,
1381
+ GetPlatformQuotaError,
1382
+ StackitOpContext
1383
+ > = /*@__PURE__*/ API.make(() => ({
1384
+ input: GetPlatformQuotaRequest,
1385
+ output: Quota,
1386
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1387
+ protocol: StackitProtocol,
1388
+ retry: Retry.Retry,
1389
+ }));
1390
+
1391
+ export type GetSpaceError = BadRequest | Forbidden | NotFound | StackitOpError;
1392
+ /** Get a space Returns a space. */
1393
+ export const getSpace: API.OperationMethod<
1394
+ GetSpaceRequest,
1395
+ Space,
1396
+ GetSpaceError,
1397
+ StackitOpContext
1398
+ > = /*@__PURE__*/ API.make(() => ({
1399
+ input: GetSpaceRequest,
1400
+ output: Space,
1401
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1402
+ protocol: StackitProtocol,
1403
+ retry: Retry.Retry,
1404
+ }));
1405
+
1406
+ export type ListOrganizationQuotasError =
1407
+ | BadRequest
1408
+ | Forbidden
1409
+ | NotFound
1410
+ | StackitOpError;
1411
+ /** List organization quotas Returns a list of organization quotas. */
1412
+ export const listOrganizationQuotas: API.OperationMethod<
1413
+ ListOrganizationQuotasRequest,
1414
+ ListOrganizationQuotasResponse,
1415
+ ListOrganizationQuotasError,
1416
+ StackitOpContext
1417
+ > = /*@__PURE__*/ API.make(() => ({
1418
+ input: ListOrganizationQuotasRequest,
1419
+ output: ListOrganizationQuotasResponse,
1420
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1421
+ protocol: StackitProtocol,
1422
+ retry: Retry.Retry,
1423
+ }));
1424
+
1425
+ export type ListOrganizationsError =
1426
+ | BadRequest
1427
+ | Forbidden
1428
+ | NotFound
1429
+ | StackitOpError;
1430
+ /** List organizations Returns a list of organizations for a specific STACKIT project. */
1431
+ export const listOrganizations: API.OperationMethod<
1432
+ ListOrganizationsRequest,
1433
+ OrganizationsList,
1434
+ ListOrganizationsError,
1435
+ StackitOpContext
1436
+ > = /*@__PURE__*/ API.make(() => ({
1437
+ input: ListOrganizationsRequest,
1438
+ output: OrganizationsList,
1439
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1440
+ protocol: StackitProtocol,
1441
+ retry: Retry.Retry,
1442
+ }));
1443
+
1444
+ export type ListPlatformQuotasError =
1445
+ | BadRequest
1446
+ | Forbidden
1447
+ | NotFound
1448
+ | StackitOpError;
1449
+ /** List organization quotas on a platform Returns a list of organization quotas on a platform. */
1450
+ export const listPlatformQuotas: API.OperationMethod<
1451
+ ListPlatformQuotasRequest,
1452
+ ListPlatformQuotasResponse,
1453
+ ListPlatformQuotasError,
1454
+ StackitOpContext
1455
+ > = /*@__PURE__*/ API.make(() => ({
1456
+ input: ListPlatformQuotasRequest,
1457
+ output: ListPlatformQuotasResponse,
1458
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1459
+ protocol: StackitProtocol,
1460
+ retry: Retry.Retry,
1461
+ }));
1462
+
1463
+ export type ListPlatformsError =
1464
+ | BadRequest
1465
+ | Forbidden
1466
+ | NotFound
1467
+ | StackitOpError;
1468
+ /** List all platforms List all platforms available for a STACKIT project */
1469
+ export const listPlatforms: API.OperationMethod<
1470
+ ListPlatformsRequest,
1471
+ PlatformList,
1472
+ ListPlatformsError,
1473
+ StackitOpContext
1474
+ > = /*@__PURE__*/ API.make(() => ({
1475
+ input: ListPlatformsRequest,
1476
+ output: PlatformList,
1477
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1478
+ protocol: StackitProtocol,
1479
+ retry: Retry.Retry,
1480
+ }));
1481
+
1482
+ export type ListSpacesError =
1483
+ | BadRequest
1484
+ | Forbidden
1485
+ | NotFound
1486
+ | StackitOpError;
1487
+ /** List spaces Returns a list of spaces for a specific organization. */
1488
+ export const listSpaces: API.OperationMethod<
1489
+ ListSpacesRequest,
1490
+ SpacesList,
1491
+ ListSpacesError,
1492
+ StackitOpContext
1493
+ > = /*@__PURE__*/ API.make(() => ({
1494
+ input: ListSpacesRequest,
1495
+ output: SpacesList,
1496
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1497
+ protocol: StackitProtocol,
1498
+ retry: Retry.Retry,
1499
+ }));
1500
+
1501
+ export type UpdateOrganizationError =
1502
+ | BadRequest
1503
+ | Forbidden
1504
+ | NotFound
1505
+ | StackitOpError;
1506
+ /** Update organization Update organization. */
1507
+ export const updateOrganization: API.OperationMethod<
1508
+ UpdateOrganizationRequest,
1509
+ Organization,
1510
+ UpdateOrganizationError,
1511
+ StackitOpContext
1512
+ > = /*@__PURE__*/ API.make(() => ({
1513
+ input: UpdateOrganizationRequest,
1514
+ output: Organization,
1515
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1516
+ protocol: StackitProtocol,
1517
+ retry: Retry.Retry,
1518
+ }));
1519
+
1520
+ export type UpdateSpaceError =
1521
+ | BadRequest
1522
+ | Forbidden
1523
+ | NotFound
1524
+ | StackitOpError;
1525
+ /** Update space Update space. */
1526
+ export const updateSpace: API.OperationMethod<
1527
+ UpdateSpaceRequest,
1528
+ Space,
1529
+ UpdateSpaceError,
1530
+ StackitOpContext
1531
+ > = /*@__PURE__*/ API.make(() => ({
1532
+ input: UpdateSpaceRequest,
1533
+ output: Space,
1534
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1535
+ protocol: StackitProtocol,
1536
+ retry: Retry.Retry,
1537
+ }));