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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +32 -28
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +13 -13
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +16 -16
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +22 -22
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +15 -15
  13. package/lib/protocol.d.ts +3 -3
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +31 -29
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +24 -23
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/alb.d.ts +10 -87
  22. package/lib/services/alb.d.ts.map +1 -1
  23. package/lib/services/alb.js +73 -502
  24. package/lib/services/alb_waf.d.ts +9 -82
  25. package/lib/services/alb_waf.d.ts.map +1 -1
  26. package/lib/services/alb_waf.js +84 -510
  27. package/lib/services/authorization.d.ts +5 -47
  28. package/lib/services/authorization.d.ts.map +1 -1
  29. package/lib/services/authorization.js +67 -314
  30. package/lib/services/automation.d.ts +7 -47
  31. package/lib/services/automation.d.ts.map +1 -1
  32. package/lib/services/automation.js +58 -353
  33. package/lib/services/cdn.d.ts +8 -220
  34. package/lib/services/cdn.d.ts.map +1 -1
  35. package/lib/services/cdn.js +81 -896
  36. package/lib/services/certificates.d.ts +8 -27
  37. package/lib/services/certificates.d.ts.map +1 -1
  38. package/lib/services/certificates.js +45 -171
  39. package/lib/services/cost.d.ts +10 -37
  40. package/lib/services/cost.d.ts.map +1 -1
  41. package/lib/services/cost.js +39 -169
  42. package/lib/services/dns.d.ts +9 -104
  43. package/lib/services/dns.d.ts.map +1 -1
  44. package/lib/services/dns.js +98 -714
  45. package/lib/services/dremio.d.ts +8 -50
  46. package/lib/services/dremio.d.ts.map +1 -1
  47. package/lib/services/dremio.js +56 -307
  48. package/lib/services/edge.d.ts +7 -40
  49. package/lib/services/edge.d.ts.map +1 -1
  50. package/lib/services/edge.js +66 -347
  51. package/lib/services/functions.d.ts +1 -48
  52. package/lib/services/functions.d.ts.map +1 -1
  53. package/lib/services/functions.js +64 -393
  54. package/lib/services/git.d.ts +8 -61
  55. package/lib/services/git.d.ts.map +1 -1
  56. package/lib/services/git.js +87 -510
  57. package/lib/services/iaas.d.ts +9 -337
  58. package/lib/services/iaas.d.ts.map +1 -1
  59. package/lib/services/iaas.js +409 -3532
  60. package/lib/services/intake.d.ts +8 -75
  61. package/lib/services/intake.d.ts.map +1 -1
  62. package/lib/services/intake.js +74 -465
  63. package/lib/services/kms.d.ts +9 -92
  64. package/lib/services/kms.d.ts.map +1 -1
  65. package/lib/services/kms.js +95 -650
  66. package/lib/services/lb_ip_lists.d.ts +9 -25
  67. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  68. package/lib/services/lb_ip_lists.js +45 -146
  69. package/lib/services/load_balancer.d.ts +10 -81
  70. package/lib/services/load_balancer.d.ts.map +1 -1
  71. package/lib/services/load_balancer.js +76 -486
  72. package/lib/services/logme.d.ts +8 -69
  73. package/lib/services/logme.d.ts.map +1 -1
  74. package/lib/services/logme.js +82 -564
  75. package/lib/services/logs.d.ts +8 -64
  76. package/lib/services/logs.d.ts.map +1 -1
  77. package/lib/services/logs.js +84 -465
  78. package/lib/services/mariadb.d.ts +8 -65
  79. package/lib/services/mariadb.d.ts.map +1 -1
  80. package/lib/services/mariadb.js +84 -541
  81. package/lib/services/model_experiments.d.ts +9 -48
  82. package/lib/services/model_experiments.d.ts.map +1 -1
  83. package/lib/services/model_experiments.js +66 -325
  84. package/lib/services/model_serving.d.ts +7 -47
  85. package/lib/services/model_serving.d.ts.map +1 -1
  86. package/lib/services/model_serving.js +55 -277
  87. package/lib/services/mongodb_flex.d.ts +8 -137
  88. package/lib/services/mongodb_flex.d.ts.map +1 -1
  89. package/lib/services/mongodb_flex.js +102 -793
  90. package/lib/services/object_storage.d.ts +12 -59
  91. package/lib/services/object_storage.d.ts.map +1 -1
  92. package/lib/services/object_storage.js +93 -528
  93. package/lib/services/observability.d.ts +8 -407
  94. package/lib/services/observability.d.ts.map +1 -1
  95. package/lib/services/observability.js +375 -3148
  96. package/lib/services/opensearch.d.ts +8 -71
  97. package/lib/services/opensearch.d.ts.map +1 -1
  98. package/lib/services/opensearch.js +85 -553
  99. package/lib/services/pim.d.ts +12 -108
  100. package/lib/services/pim.d.ts.map +1 -1
  101. package/lib/services/pim.js +81 -726
  102. package/lib/services/postgres_flex.d.ts +14 -136
  103. package/lib/services/postgres_flex.d.ts.map +1 -1
  104. package/lib/services/postgres_flex.js +114 -841
  105. package/lib/services/pubsub.d.ts +11 -73
  106. package/lib/services/pubsub.d.ts.map +1 -1
  107. package/lib/services/pubsub.js +92 -507
  108. package/lib/services/rabbitmq.d.ts +8 -76
  109. package/lib/services/rabbitmq.d.ts.map +1 -1
  110. package/lib/services/rabbitmq.js +88 -564
  111. package/lib/services/registry.d.ts +10 -28
  112. package/lib/services/registry.d.ts.map +1 -1
  113. package/lib/services/registry.js +49 -189
  114. package/lib/services/resource_manager.d.ts +9 -61
  115. package/lib/services/resource_manager.d.ts.map +1 -1
  116. package/lib/services/resource_manager.js +92 -462
  117. package/lib/services/run_command.d.ts +5 -28
  118. package/lib/services/run_command.d.ts.map +1 -1
  119. package/lib/services/run_command.js +38 -176
  120. package/lib/services/sca.d.ts +8 -79
  121. package/lib/services/sca.d.ts.map +1 -1
  122. package/lib/services/sca.js +63 -435
  123. package/lib/services/scf.d.ts +8 -64
  124. package/lib/services/scf.d.ts.map +1 -1
  125. package/lib/services/scf.js +99 -660
  126. package/lib/services/secrets_manager.d.ts +8 -61
  127. package/lib/services/secrets_manager.d.ts.map +1 -1
  128. package/lib/services/secrets_manager.js +99 -601
  129. package/lib/services/server_backup.d.ts +7 -50
  130. package/lib/services/server_backup.d.ts.map +1 -1
  131. package/lib/services/server_backup.js +70 -444
  132. package/lib/services/server_update.d.ts +7 -35
  133. package/lib/services/server_update.d.ts.map +1 -1
  134. package/lib/services/server_update.js +58 -342
  135. package/lib/services/service_account.d.ts +10 -68
  136. package/lib/services/service_account.d.ts.map +1 -1
  137. package/lib/services/service_account.js +75 -495
  138. package/lib/services/service_enablement.d.ts +7 -29
  139. package/lib/services/service_enablement.d.ts.map +1 -1
  140. package/lib/services/service_enablement.js +40 -147
  141. package/lib/services/sfs.d.ts +4 -96
  142. package/lib/services/sfs.d.ts.map +1 -1
  143. package/lib/services/sfs.js +117 -782
  144. package/lib/services/ske.d.ts +9 -108
  145. package/lib/services/ske.d.ts.map +1 -1
  146. package/lib/services/ske.js +67 -549
  147. package/lib/services/sqlserverflex.d.ts +11 -152
  148. package/lib/services/sqlserverflex.d.ts.map +1 -1
  149. package/lib/services/sqlserverflex.js +112 -925
  150. package/lib/services/stackit_marketplace.d.ts +9 -38
  151. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  152. package/lib/services/stackit_marketplace.js +64 -369
  153. package/lib/services/telemetry_link.d.ts +8 -61
  154. package/lib/services/telemetry_link.d.ts.map +1 -1
  155. package/lib/services/telemetry_link.js +81 -522
  156. package/lib/services/telemetry_router.d.ts +8 -72
  157. package/lib/services/telemetry_router.d.ts.map +1 -1
  158. package/lib/services/telemetry_router.js +73 -474
  159. package/lib/services/ufw.d.ts +7 -42
  160. package/lib/services/ufw.d.ts.map +1 -1
  161. package/lib/services/ufw.js +55 -269
  162. package/lib/services/valkey.d.ts +8 -68
  163. package/lib/services/valkey.d.ts.map +1 -1
  164. package/lib/services/valkey.js +85 -557
  165. package/lib/services/vpn.d.ts +21 -186
  166. package/lib/services/vpn.d.ts.map +1 -1
  167. package/lib/services/vpn.js +105 -920
  168. package/lib/services/workflows.d.ts +15 -84
  169. package/lib/services/workflows.d.ts.map +1 -1
  170. package/lib/services/workflows.js +67 -497
  171. package/lib/traits.d.ts +1 -1
  172. package/lib/traits.js +10 -10
  173. package/package.json +13 -9
  174. package/src/credentials.ts +21 -18
  175. package/src/errors.ts +10 -14
  176. package/src/index.ts +2 -2
  177. package/src/pagination.ts +2 -2
  178. package/src/protocol.ts +12 -9
  179. package/src/retry.ts +6 -4
  180. package/src/services/alb.ts +599 -655
  181. package/src/services/alb_waf.ts +597 -637
  182. package/src/services/authorization.ts +400 -383
  183. package/src/services/automation.ts +422 -405
  184. package/src/services/cdn.ts +817 -1375
  185. package/src/services/certificates.ts +209 -190
  186. package/src/services/cost.ts +100 -207
  187. package/src/services/dns.ts +793 -833
  188. package/src/services/dremio.ts +356 -349
  189. package/src/services/edge.ts +406 -366
  190. package/src/services/functions.ts +465 -463
  191. package/src/services/git.ts +602 -547
  192. package/src/services/iaas.ts +3931 -3821
  193. package/src/services/intake.ts +521 -549
  194. package/src/services/kms.ts +715 -692
  195. package/src/services/lb_ip_lists.ts +173 -152
  196. package/src/services/load_balancer.ts +576 -619
  197. package/src/services/logme.ts +696 -641
  198. package/src/services/logs.ts +510 -493
  199. package/src/services/mariadb.ts +671 -604
  200. package/src/services/model_experiments.ts +343 -356
  201. package/src/services/model_serving.ts +337 -328
  202. package/src/services/mongodb_flex.ts +955 -1007
  203. package/src/services/object_storage.ts +614 -557
  204. package/src/services/observability.ts +3469 -3866
  205. package/src/services/opensearch.ts +679 -628
  206. package/src/services/pim.ts +672 -909
  207. package/src/services/postgres_flex.ts +966 -986
  208. package/src/services/pubsub.ts +524 -546
  209. package/src/services/rabbitmq.ts +693 -654
  210. package/src/services/registry.ts +227 -194
  211. package/src/services/resource_manager.ts +520 -517
  212. package/src/services/run_command.ts +219 -211
  213. package/src/services/sca.ts +543 -570
  214. package/src/services/scf.ts +790 -716
  215. package/src/services/secrets_manager.ts +707 -622
  216. package/src/services/server_backup.ts +490 -475
  217. package/src/services/server_update.ts +353 -356
  218. package/src/services/service_account.ts +515 -553
  219. package/src/services/service_enablement.ts +162 -166
  220. package/src/services/sfs.ts +879 -958
  221. package/src/services/ske.ts +694 -769
  222. package/src/services/sqlserverflex.ts +1042 -1117
  223. package/src/services/stackit_marketplace.ts +377 -372
  224. package/src/services/telemetry_link.ts +530 -531
  225. package/src/services/telemetry_router.ts +509 -534
  226. package/src/services/ufw.ts +305 -307
  227. package/src/services/valkey.ts +684 -629
  228. package/src/services/vpn.ts +935 -1195
  229. package/src/services/workflows.ts +426 -586
  230. package/src/traits.ts +1 -1
  231. package/lib/protocol.test.d.ts +0 -2
  232. package/lib/protocol.test.d.ts.map +0 -1
  233. package/lib/protocol.test.js +0 -181
  234. package/lib/protocol.test.js.map +0 -1
  235. package/lib/services/alb.js.map +0 -1
  236. package/lib/services/alb_waf.js.map +0 -1
  237. package/lib/services/authorization.js.map +0 -1
  238. package/lib/services/automation.js.map +0 -1
  239. package/lib/services/cdn.js.map +0 -1
  240. package/lib/services/certificates.js.map +0 -1
  241. package/lib/services/cost.js.map +0 -1
  242. package/lib/services/dns.js.map +0 -1
  243. package/lib/services/dremio.js.map +0 -1
  244. package/lib/services/edge.js.map +0 -1
  245. package/lib/services/functions.js.map +0 -1
  246. package/lib/services/git.js.map +0 -1
  247. package/lib/services/iaas.js.map +0 -1
  248. package/lib/services/intake.js.map +0 -1
  249. package/lib/services/kms.js.map +0 -1
  250. package/lib/services/lb_ip_lists.js.map +0 -1
  251. package/lib/services/load_balancer.js.map +0 -1
  252. package/lib/services/logme.js.map +0 -1
  253. package/lib/services/logs.js.map +0 -1
  254. package/lib/services/mariadb.js.map +0 -1
  255. package/lib/services/model_experiments.js.map +0 -1
  256. package/lib/services/model_serving.js.map +0 -1
  257. package/lib/services/mongodb_flex.js.map +0 -1
  258. package/lib/services/object_storage.js.map +0 -1
  259. package/lib/services/observability.js.map +0 -1
  260. package/lib/services/opensearch.js.map +0 -1
  261. package/lib/services/pim.js.map +0 -1
  262. package/lib/services/postgres_flex.js.map +0 -1
  263. package/lib/services/pubsub.js.map +0 -1
  264. package/lib/services/rabbitmq.js.map +0 -1
  265. package/lib/services/registry.js.map +0 -1
  266. package/lib/services/resource_manager.js.map +0 -1
  267. package/lib/services/run_command.js.map +0 -1
  268. package/lib/services/sca.js.map +0 -1
  269. package/lib/services/scf.js.map +0 -1
  270. package/lib/services/secrets_manager.js.map +0 -1
  271. package/lib/services/server_backup.js.map +0 -1
  272. package/lib/services/server_update.js.map +0 -1
  273. package/lib/services/service_account.js.map +0 -1
  274. package/lib/services/service_enablement.js.map +0 -1
  275. package/lib/services/sfs.js.map +0 -1
  276. package/lib/services/ske.js.map +0 -1
  277. package/lib/services/sqlserverflex.js.map +0 -1
  278. package/lib/services/stackit_marketplace.js.map +0 -1
  279. package/lib/services/telemetry_link.js.map +0 -1
  280. package/lib/services/telemetry_router.js.map +0 -1
  281. package/lib/services/ufw.js.map +0 -1
  282. package/lib/services/valkey.js.map +0 -1
  283. package/lib/services/vpn.js.map +0 -1
  284. package/lib/services/workflows.js.map +0 -1
  285. package/src/protocol.test.ts +0 -304
@@ -1,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
 
@@ -46,12 +49,8 @@ export class NotFound
46
49
  ) {}
47
50
 
48
51
  export type CreateKeyRequestRegionId = "eu01";
49
- export const CreateKeyRequestRegionId = S.String;
50
-
51
52
  /** The access scope of the key. */
52
53
  export type AccessScope = "PUBLIC" | "SNA";
53
- export const AccessScope = S.String;
54
-
55
54
  /** The algorithm the key material uses. */
56
55
  export type Algorithm =
57
56
  | "aes_256_gcm"
@@ -65,16 +64,12 @@ export type Algorithm =
65
64
  | "ecdsa_p256_sha256"
66
65
  | "ecdsa_p384_sha384"
67
66
  | "ecdsa_p521_sha512";
68
- export const Algorithm = S.String;
69
-
70
67
  /** The purpose of the key. */
71
68
  export type Purpose =
72
69
  | "symmetric_encrypt_decrypt"
73
70
  | "asymmetric_encrypt_decrypt"
74
71
  | "message_authentication_code"
75
72
  | "asymmetric_sign_verify";
76
- export const Purpose = S.String;
77
-
78
73
  export interface CreateKeyRequest {
79
74
  /** The STACKIT portal project UUID the key ring is part of. */
80
75
  projectId: string;
@@ -93,28 +88,6 @@ export interface CreateKeyRequest {
93
88
  protection: string;
94
89
  purpose: Purpose | (string & {});
95
90
  }
96
- export const CreateKeyRequest = /*@__PURE__*/ S.suspend(() =>
97
- S.Struct({
98
- projectId: S.String.pipe(T.Label()),
99
- regionId: CreateKeyRequestRegionId.pipe(T.Label()),
100
- keyRingId: S.String.pipe(T.Label()),
101
- access_scope: S.optional(AccessScope),
102
- algorithm: Algorithm,
103
- description: S.optional(S.String),
104
- displayName: S.String,
105
- importOnly: S.optional(S.Boolean),
106
- protection: S.String,
107
- purpose: Purpose,
108
- }).pipe(
109
- T.Http({
110
- method: "POST",
111
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys",
112
- code: 200,
113
- baseUrl: "https://kms.api.stackit.cloud",
114
- }),
115
- ),
116
- ).annotate({ identifier: "CreateKeyRequest" }) as any as S.Schema<CreateKeyRequest>;
117
-
118
91
  /** The current state of the key. */
119
92
  export type KeyState =
120
93
  | "active"
@@ -123,8 +96,6 @@ export type KeyState =
123
96
  | "errors_exist"
124
97
  | "creating"
125
98
  | "no_version";
126
- export const KeyState = S.String;
127
-
128
99
  export interface Key {
129
100
  access_scope: AccessScope;
130
101
  algorithm: Algorithm;
@@ -147,26 +118,7 @@ export interface Key {
147
118
  /** The current state of the key. */
148
119
  state: KeyState;
149
120
  }
150
- export const Key = /*@__PURE__*/ S.suspend(() =>
151
- S.Struct({
152
- access_scope: AccessScope,
153
- algorithm: Algorithm,
154
- createdAt: S.String,
155
- deletionDate: S.optional(S.String),
156
- description: S.optional(S.String),
157
- displayName: S.String,
158
- id: S.String,
159
- importOnly: S.Boolean,
160
- keyRingId: S.String,
161
- protection: S.String,
162
- purpose: Purpose,
163
- state: KeyState,
164
- }),
165
- ).annotate({ identifier: "Key" }) as any as S.Schema<Key>;
166
-
167
121
  export type CreateKeyRingRequestRegionId = "eu01";
168
- export const CreateKeyRingRequestRegionId = S.String;
169
-
170
122
  export interface CreateKeyRingRequest {
171
123
  /** The STACKIT portal project UUID the key ring is part of. */
172
124
  projectId: string;
@@ -177,26 +129,8 @@ export interface CreateKeyRingRequest {
177
129
  /** The display name to distinguish multiple key rings. Valid characters: letters, digits, underscores and hyphens. */
178
130
  displayName: string;
179
131
  }
180
- export const CreateKeyRingRequest = /*@__PURE__*/ S.suspend(() =>
181
- S.Struct({
182
- projectId: S.String.pipe(T.Label()),
183
- regionId: CreateKeyRingRequestRegionId.pipe(T.Label()),
184
- description: S.optional(S.String),
185
- displayName: S.String,
186
- }).pipe(
187
- T.Http({
188
- method: "POST",
189
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings",
190
- code: 200,
191
- baseUrl: "https://kms.api.stackit.cloud",
192
- }),
193
- ),
194
- ).annotate({ identifier: "CreateKeyRingRequest" }) as any as S.Schema<CreateKeyRingRequest>;
195
-
196
132
  /** The current state of the key ring. */
197
133
  export type KeyRingState = "creating" | "active" | "deleted";
198
- export const KeyRingState = S.String;
199
-
200
134
  export interface KeyRing {
201
135
  /** The date and time the creation of the key ring was triggered. */
202
136
  createdAt: string;
@@ -209,19 +143,7 @@ export interface KeyRing {
209
143
  /** The current state of the key ring. */
210
144
  state: KeyRingState;
211
145
  }
212
- export const KeyRing = /*@__PURE__*/ S.suspend(() =>
213
- S.Struct({
214
- createdAt: S.String,
215
- description: S.optional(S.String),
216
- displayName: S.String,
217
- id: S.String,
218
- state: KeyRingState,
219
- }),
220
- ).annotate({ identifier: "KeyRing" }) as any as S.Schema<KeyRing>;
221
-
222
146
  export type CreateWrappingKeyRequestRegionId = "eu01";
223
- export const CreateWrappingKeyRequestRegionId = S.String;
224
-
225
147
  /** The wrapping algorithm used to wrap the key to import. */
226
148
  export type WrappingAlgorithm =
227
149
  | "rsa_2048_oaep_sha256"
@@ -232,12 +154,8 @@ export type WrappingAlgorithm =
232
154
  | "rsa_3072_oaep_sha256_aes_256_key_wrap"
233
155
  | "rsa_4096_oaep_sha256_aes_256_key_wrap"
234
156
  | "rsa_4096_oaep_sha512_aes_256_key_wrap";
235
- export const WrappingAlgorithm = S.String;
236
-
237
157
  /** The wrapping purpose for the wrapping key. */
238
158
  export type WrappingPurpose = "wrap_symmetric_key" | "wrap_asymmetric_key";
239
- export const WrappingPurpose = S.String;
240
-
241
159
  export interface CreateWrappingKeyRequest {
242
160
  /** The STACKIT portal project UUID the key ring is part of. */
243
161
  projectId: string;
@@ -254,27 +172,6 @@ export interface CreateWrappingKeyRequest {
254
172
  protection: string;
255
173
  purpose: WrappingPurpose | (string & {});
256
174
  }
257
- export const CreateWrappingKeyRequest = /*@__PURE__*/ S.suspend(() =>
258
- S.Struct({
259
- projectId: S.String.pipe(T.Label()),
260
- regionId: CreateWrappingKeyRequestRegionId.pipe(T.Label()),
261
- keyRingId: S.String.pipe(T.Label()),
262
- access_scope: S.optional(AccessScope),
263
- algorithm: WrappingAlgorithm,
264
- description: S.optional(S.String),
265
- displayName: S.String,
266
- protection: S.String,
267
- purpose: WrappingPurpose,
268
- }).pipe(
269
- T.Http({
270
- method: "POST",
271
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys",
272
- code: 200,
273
- baseUrl: "https://kms.api.stackit.cloud",
274
- }),
275
- ),
276
- ).annotate({ identifier: "CreateWrappingKeyRequest" }) as any as S.Schema<CreateWrappingKeyRequest>;
277
-
278
175
  /** The current state of the wrapping key. */
279
176
  export type WrappingKeyState =
280
177
  | "active"
@@ -282,8 +179,6 @@ export type WrappingKeyState =
282
179
  | "expired"
283
180
  | "deleted"
284
181
  | "key_material_unavailable";
285
- export const WrappingKeyState = S.String;
286
-
287
182
  export interface WrappingKey {
288
183
  access_scope: AccessScope;
289
184
  algorithm: WrappingAlgorithm;
@@ -306,26 +201,7 @@ export interface WrappingKey {
306
201
  /** The current state of the wrapping key. */
307
202
  state: WrappingKeyState;
308
203
  }
309
- export const WrappingKey = /*@__PURE__*/ S.suspend(() =>
310
- S.Struct({
311
- access_scope: AccessScope,
312
- algorithm: WrappingAlgorithm,
313
- createdAt: S.String,
314
- description: S.optional(S.String),
315
- displayName: S.String,
316
- expiresAt: S.String,
317
- id: S.String,
318
- keyRingId: S.String,
319
- protection: S.String,
320
- publicKey: S.optional(S.String),
321
- purpose: WrappingPurpose,
322
- state: WrappingKeyState,
323
- }),
324
- ).annotate({ identifier: "WrappingKey" }) as any as S.Schema<WrappingKey>;
325
-
326
204
  export type DecryptRequestRegionId = "eu01";
327
- export const DecryptRequestRegionId = S.String;
328
-
329
205
  export interface DecryptRequest {
330
206
  /** The STACKIT portal project UUID the key ring is part of. */
331
207
  projectId: string;
@@ -340,37 +216,11 @@ export interface DecryptRequest {
340
216
  /** The data that has to be decrypted. Encoded in base64. */
341
217
  data: string;
342
218
  }
343
- export const DecryptRequest = /*@__PURE__*/ S.suspend(() =>
344
- S.Struct({
345
- projectId: S.String.pipe(T.Label()),
346
- regionId: DecryptRequestRegionId.pipe(T.Label()),
347
- keyRingId: S.String.pipe(T.Label()),
348
- keyId: S.String.pipe(T.Label()),
349
- versionNumber: S.Number.pipe(T.Label()),
350
- data: S.String,
351
- }).pipe(
352
- T.Http({
353
- method: "POST",
354
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/decrypt",
355
- code: 200,
356
- baseUrl: "https://kms.api.stackit.cloud",
357
- }),
358
- ),
359
- ).annotate({ identifier: "DecryptRequest" }) as any as S.Schema<DecryptRequest>;
360
-
361
219
  export interface DecryptedData {
362
220
  /** The decrypted data. Encoded in base64. */
363
221
  data: string;
364
222
  }
365
- export const DecryptedData = /*@__PURE__*/ S.suspend(() =>
366
- S.Struct({
367
- data: S.String,
368
- }),
369
- ).annotate({ identifier: "DecryptedData" }) as any as S.Schema<DecryptedData>;
370
-
371
223
  export type DeleteKeyRequestRegionId = "eu01";
372
- export const DeleteKeyRequestRegionId = S.String;
373
-
374
224
  export interface DeleteKeyRequest {
375
225
  /** The STACKIT portal project UUID the key ring is part of. */
376
226
  projectId: string;
@@ -381,30 +231,8 @@ export interface DeleteKeyRequest {
381
231
  /** The key UUID. */
382
232
  keyId: string;
383
233
  }
384
- export const DeleteKeyRequest = /*@__PURE__*/ S.suspend(() =>
385
- S.Struct({
386
- projectId: S.String.pipe(T.Label()),
387
- regionId: DeleteKeyRequestRegionId.pipe(T.Label()),
388
- keyRingId: S.String.pipe(T.Label()),
389
- keyId: S.String.pipe(T.Label()),
390
- }).pipe(
391
- T.Http({
392
- method: "DELETE",
393
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}",
394
- code: 200,
395
- baseUrl: "https://kms.api.stackit.cloud",
396
- }),
397
- ),
398
- ).annotate({ identifier: "DeleteKeyRequest" }) as any as S.Schema<DeleteKeyRequest>;
399
-
400
234
  export interface DeleteKeyResponse {}
401
- export const DeleteKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
402
- identifier: "DeleteKeyResponse",
403
- }) as any as S.Schema<DeleteKeyResponse>;
404
-
405
235
  export type DeleteKeyRingRequestRegionId = "eu01";
406
- export const DeleteKeyRingRequestRegionId = S.String;
407
-
408
236
  export interface DeleteKeyRingRequest {
409
237
  /** The STACKIT portal project UUID the key ring is part of. */
410
238
  projectId: string;
@@ -413,29 +241,8 @@ export interface DeleteKeyRingRequest {
413
241
  /** The key ring UUID. */
414
242
  keyRingId: string;
415
243
  }
416
- export const DeleteKeyRingRequest = /*@__PURE__*/ S.suspend(() =>
417
- S.Struct({
418
- projectId: S.String.pipe(T.Label()),
419
- regionId: DeleteKeyRingRequestRegionId.pipe(T.Label()),
420
- keyRingId: S.String.pipe(T.Label()),
421
- }).pipe(
422
- T.Http({
423
- method: "DELETE",
424
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}",
425
- code: 200,
426
- baseUrl: "https://kms.api.stackit.cloud",
427
- }),
428
- ),
429
- ).annotate({ identifier: "DeleteKeyRingRequest" }) as any as S.Schema<DeleteKeyRingRequest>;
430
-
431
244
  export interface DeleteKeyRingResponse {}
432
- export const DeleteKeyRingResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
433
- identifier: "DeleteKeyRingResponse",
434
- }) as any as S.Schema<DeleteKeyRingResponse>;
435
-
436
245
  export type DeleteWrappingKeyRequestRegionId = "eu01";
437
- export const DeleteWrappingKeyRequestRegionId = S.String;
438
-
439
246
  export interface DeleteWrappingKeyRequest {
440
247
  /** The STACKIT portal project UUID the key ring is part of. */
441
248
  projectId: string;
@@ -446,30 +253,8 @@ export interface DeleteWrappingKeyRequest {
446
253
  /** The wrapping key UUID. */
447
254
  wrappingKeyId: string;
448
255
  }
449
- export const DeleteWrappingKeyRequest = /*@__PURE__*/ S.suspend(() =>
450
- S.Struct({
451
- projectId: S.String.pipe(T.Label()),
452
- regionId: DeleteWrappingKeyRequestRegionId.pipe(T.Label()),
453
- keyRingId: S.String.pipe(T.Label()),
454
- wrappingKeyId: S.String.pipe(T.Label()),
455
- }).pipe(
456
- T.Http({
457
- method: "DELETE",
458
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}",
459
- code: 200,
460
- baseUrl: "https://kms.api.stackit.cloud",
461
- }),
462
- ),
463
- ).annotate({ identifier: "DeleteWrappingKeyRequest" }) as any as S.Schema<DeleteWrappingKeyRequest>;
464
-
465
256
  export interface DeleteWrappingKeyResponse {}
466
- export const DeleteWrappingKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
467
- identifier: "DeleteWrappingKeyResponse",
468
- }) as any as S.Schema<DeleteWrappingKeyResponse>;
469
-
470
257
  export type DestroyVersionRequestRegionId = "eu01";
471
- export const DestroyVersionRequestRegionId = S.String;
472
-
473
258
  export interface DestroyVersionRequest {
474
259
  /** The STACKIT portal project UUID the key ring is part of. */
475
260
  projectId: string;
@@ -482,31 +267,8 @@ export interface DestroyVersionRequest {
482
267
  /** The version number. */
483
268
  versionNumber: number;
484
269
  }
485
- export const DestroyVersionRequest = /*@__PURE__*/ S.suspend(() =>
486
- S.Struct({
487
- projectId: S.String.pipe(T.Label()),
488
- regionId: DestroyVersionRequestRegionId.pipe(T.Label()),
489
- keyRingId: S.String.pipe(T.Label()),
490
- keyId: S.String.pipe(T.Label()),
491
- versionNumber: S.Number.pipe(T.Label()),
492
- }).pipe(
493
- T.Http({
494
- method: "POST",
495
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/destroy",
496
- code: 200,
497
- baseUrl: "https://kms.api.stackit.cloud",
498
- }),
499
- ),
500
- ).annotate({ identifier: "DestroyVersionRequest" }) as any as S.Schema<DestroyVersionRequest>;
501
-
502
270
  export interface DestroyVersionResponse {}
503
- export const DestroyVersionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
504
- identifier: "DestroyVersionResponse",
505
- }) as any as S.Schema<DestroyVersionResponse>;
506
-
507
271
  export type DisableVersionRequestRegionId = "eu01";
508
- export const DisableVersionRequestRegionId = S.String;
509
-
510
272
  export interface DisableVersionRequest {
511
273
  /** The STACKIT portal project UUID the key ring is part of. */
512
274
  projectId: string;
@@ -519,31 +281,8 @@ export interface DisableVersionRequest {
519
281
  /** The version number. */
520
282
  versionNumber: number;
521
283
  }
522
- export const DisableVersionRequest = /*@__PURE__*/ S.suspend(() =>
523
- S.Struct({
524
- projectId: S.String.pipe(T.Label()),
525
- regionId: DisableVersionRequestRegionId.pipe(T.Label()),
526
- keyRingId: S.String.pipe(T.Label()),
527
- keyId: S.String.pipe(T.Label()),
528
- versionNumber: S.Number.pipe(T.Label()),
529
- }).pipe(
530
- T.Http({
531
- method: "POST",
532
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/disable",
533
- code: 200,
534
- baseUrl: "https://kms.api.stackit.cloud",
535
- }),
536
- ),
537
- ).annotate({ identifier: "DisableVersionRequest" }) as any as S.Schema<DisableVersionRequest>;
538
-
539
284
  export interface DisableVersionResponse {}
540
- export const DisableVersionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
541
- identifier: "DisableVersionResponse",
542
- }) as any as S.Schema<DisableVersionResponse>;
543
-
544
285
  export type EnableVersionRequestRegionId = "eu01";
545
- export const EnableVersionRequestRegionId = S.String;
546
-
547
286
  export interface EnableVersionRequest {
548
287
  /** The STACKIT portal project UUID the key ring is part of. */
549
288
  projectId: string;
@@ -556,31 +295,8 @@ export interface EnableVersionRequest {
556
295
  /** The version number. */
557
296
  versionNumber: number;
558
297
  }
559
- export const EnableVersionRequest = /*@__PURE__*/ S.suspend(() =>
560
- S.Struct({
561
- projectId: S.String.pipe(T.Label()),
562
- regionId: EnableVersionRequestRegionId.pipe(T.Label()),
563
- keyRingId: S.String.pipe(T.Label()),
564
- keyId: S.String.pipe(T.Label()),
565
- versionNumber: S.Number.pipe(T.Label()),
566
- }).pipe(
567
- T.Http({
568
- method: "POST",
569
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/enable",
570
- code: 200,
571
- baseUrl: "https://kms.api.stackit.cloud",
572
- }),
573
- ),
574
- ).annotate({ identifier: "EnableVersionRequest" }) as any as S.Schema<EnableVersionRequest>;
575
-
576
298
  export interface EnableVersionResponse {}
577
- export const EnableVersionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
578
- identifier: "EnableVersionResponse",
579
- }) as any as S.Schema<EnableVersionResponse>;
580
-
581
299
  export type EncryptRequestRegionId = "eu01";
582
- export const EncryptRequestRegionId = S.String;
583
-
584
300
  export interface EncryptRequest {
585
301
  /** The STACKIT portal project UUID the key ring is part of. */
586
302
  projectId: string;
@@ -595,37 +311,11 @@ export interface EncryptRequest {
595
311
  /** The data that has to be encrypted. Encoded in base64. */
596
312
  data: string;
597
313
  }
598
- export const EncryptRequest = /*@__PURE__*/ S.suspend(() =>
599
- S.Struct({
600
- projectId: S.String.pipe(T.Label()),
601
- regionId: EncryptRequestRegionId.pipe(T.Label()),
602
- keyRingId: S.String.pipe(T.Label()),
603
- keyId: S.String.pipe(T.Label()),
604
- versionNumber: S.Number.pipe(T.Label()),
605
- data: S.String,
606
- }).pipe(
607
- T.Http({
608
- method: "POST",
609
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/encrypt",
610
- code: 200,
611
- baseUrl: "https://kms.api.stackit.cloud",
612
- }),
613
- ),
614
- ).annotate({ identifier: "EncryptRequest" }) as any as S.Schema<EncryptRequest>;
615
-
616
314
  export interface EncryptedData {
617
315
  /** The encrypted data. Encoded in base64. */
618
316
  data: string;
619
317
  }
620
- export const EncryptedData = /*@__PURE__*/ S.suspend(() =>
621
- S.Struct({
622
- data: S.String,
623
- }),
624
- ).annotate({ identifier: "EncryptedData" }) as any as S.Schema<EncryptedData>;
625
-
626
318
  export type GetKeyRequestRegionId = "eu01";
627
- export const GetKeyRequestRegionId = S.String;
628
-
629
319
  export interface GetKeyRequest {
630
320
  /** The STACKIT portal project UUID the key ring is part of. */
631
321
  projectId: string;
@@ -636,25 +326,7 @@ export interface GetKeyRequest {
636
326
  /** The key UUID. */
637
327
  keyId: string;
638
328
  }
639
- export const GetKeyRequest = /*@__PURE__*/ S.suspend(() =>
640
- S.Struct({
641
- projectId: S.String.pipe(T.Label()),
642
- regionId: GetKeyRequestRegionId.pipe(T.Label()),
643
- keyRingId: S.String.pipe(T.Label()),
644
- keyId: S.String.pipe(T.Label()),
645
- }).pipe(
646
- T.Http({
647
- method: "GET",
648
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}",
649
- code: 200,
650
- baseUrl: "https://kms.api.stackit.cloud",
651
- }),
652
- ),
653
- ).annotate({ identifier: "GetKeyRequest" }) as any as S.Schema<GetKeyRequest>;
654
-
655
329
  export type GetKeyRingRequestRegionId = "eu01";
656
- export const GetKeyRingRequestRegionId = S.String;
657
-
658
330
  export interface GetKeyRingRequest {
659
331
  /** The STACKIT portal project UUID the key ring is part of. */
660
332
  projectId: string;
@@ -663,24 +335,7 @@ export interface GetKeyRingRequest {
663
335
  /** The key ring UUID. */
664
336
  keyRingId: string;
665
337
  }
666
- export const GetKeyRingRequest = /*@__PURE__*/ S.suspend(() =>
667
- S.Struct({
668
- projectId: S.String.pipe(T.Label()),
669
- regionId: GetKeyRingRequestRegionId.pipe(T.Label()),
670
- keyRingId: S.String.pipe(T.Label()),
671
- }).pipe(
672
- T.Http({
673
- method: "GET",
674
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}",
675
- code: 200,
676
- baseUrl: "https://kms.api.stackit.cloud",
677
- }),
678
- ),
679
- ).annotate({ identifier: "GetKeyRingRequest" }) as any as S.Schema<GetKeyRingRequest>;
680
-
681
338
  export type GetVersionRequestRegionId = "eu01";
682
- export const GetVersionRequestRegionId = S.String;
683
-
684
339
  export interface GetVersionRequest {
685
340
  /** The STACKIT portal project UUID the key ring is part of. */
686
341
  projectId: string;
@@ -693,23 +348,6 @@ export interface GetVersionRequest {
693
348
  /** The version number. */
694
349
  versionNumber: number;
695
350
  }
696
- export const GetVersionRequest = /*@__PURE__*/ S.suspend(() =>
697
- S.Struct({
698
- projectId: S.String.pipe(T.Label()),
699
- regionId: GetVersionRequestRegionId.pipe(T.Label()),
700
- keyRingId: S.String.pipe(T.Label()),
701
- keyId: S.String.pipe(T.Label()),
702
- versionNumber: S.Number.pipe(T.Label()),
703
- }).pipe(
704
- T.Http({
705
- method: "GET",
706
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}",
707
- code: 200,
708
- baseUrl: "https://kms.api.stackit.cloud",
709
- }),
710
- ),
711
- ).annotate({ identifier: "GetVersionRequest" }) as any as S.Schema<GetVersionRequest>;
712
-
713
351
  /** The current state of the key. */
714
352
  export type VersionState =
715
353
  | "active"
@@ -718,8 +356,6 @@ export type VersionState =
718
356
  | "key_material_unavailable"
719
357
  | "disabled"
720
358
  | "destroyed";
721
- export const VersionState = S.String;
722
-
723
359
  export interface Version {
724
360
  /** The date and time the creation of the key was triggered. */
725
361
  createdAt: string;
@@ -738,22 +374,7 @@ export interface Version {
738
374
  /** The current state of the key. */
739
375
  state: VersionState;
740
376
  }
741
- export const Version = /*@__PURE__*/ S.suspend(() =>
742
- S.Struct({
743
- createdAt: S.String,
744
- destroyDate: S.optional(S.String),
745
- disabled: S.Boolean,
746
- keyId: S.String,
747
- keyRingId: S.String,
748
- number: S.Number,
749
- publicKey: S.optional(S.String),
750
- state: VersionState,
751
- }),
752
- ).annotate({ identifier: "Version" }) as any as S.Schema<Version>;
753
-
754
377
  export type GetWrappingKeyRequestRegionId = "eu01";
755
- export const GetWrappingKeyRequestRegionId = S.String;
756
-
757
378
  export interface GetWrappingKeyRequest {
758
379
  /** The STACKIT portal project UUID the key ring is part of. */
759
380
  projectId: string;
@@ -764,25 +385,7 @@ export interface GetWrappingKeyRequest {
764
385
  /** The wrapping key UUID. */
765
386
  wrappingKeyId: string;
766
387
  }
767
- export const GetWrappingKeyRequest = /*@__PURE__*/ S.suspend(() =>
768
- S.Struct({
769
- projectId: S.String.pipe(T.Label()),
770
- regionId: GetWrappingKeyRequestRegionId.pipe(T.Label()),
771
- keyRingId: S.String.pipe(T.Label()),
772
- wrappingKeyId: S.String.pipe(T.Label()),
773
- }).pipe(
774
- T.Http({
775
- method: "GET",
776
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}",
777
- code: 200,
778
- baseUrl: "https://kms.api.stackit.cloud",
779
- }),
780
- ),
781
- ).annotate({ identifier: "GetWrappingKeyRequest" }) as any as S.Schema<GetWrappingKeyRequest>;
782
-
783
388
  export type ImportKeyRequestRegionId = "eu01";
784
- export const ImportKeyRequestRegionId = S.String;
785
-
786
389
  export interface ImportKeyRequest {
787
390
  /** The STACKIT portal project UUID the key ring is part of. */
788
391
  projectId: string;
@@ -797,64 +400,18 @@ export interface ImportKeyRequest {
797
400
  /** The unique id of the wrapping key the key material has been wrapped with. */
798
401
  wrappingKeyId: string;
799
402
  }
800
- export const ImportKeyRequest = /*@__PURE__*/ S.suspend(() =>
801
- S.Struct({
802
- projectId: S.String.pipe(T.Label()),
803
- regionId: ImportKeyRequestRegionId.pipe(T.Label()),
804
- keyRingId: S.String.pipe(T.Label()),
805
- keyId: S.String.pipe(T.Label()),
806
- wrappedKey: S.String,
807
- wrappingKeyId: S.String,
808
- }).pipe(
809
- T.Http({
810
- method: "POST",
811
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/import",
812
- code: 200,
813
- baseUrl: "https://kms.api.stackit.cloud",
814
- }),
815
- ),
816
- ).annotate({ identifier: "ImportKeyRequest" }) as any as S.Schema<ImportKeyRequest>;
817
-
818
403
  export type ListKeyRingsRequestRegionId = "eu01";
819
- export const ListKeyRingsRequestRegionId = S.String;
820
-
821
404
  export interface ListKeyRingsRequest {
822
405
  /** The STACKIT portal project UUID the key ring is part of. */
823
406
  projectId: string;
824
407
  /** The STACKIT region name the key ring is located in. */
825
408
  regionId: ListKeyRingsRequestRegionId | (string & {});
826
409
  }
827
- export const ListKeyRingsRequest = /*@__PURE__*/ S.suspend(() =>
828
- S.Struct({
829
- projectId: S.String.pipe(T.Label()),
830
- regionId: ListKeyRingsRequestRegionId.pipe(T.Label()),
831
- }).pipe(
832
- T.Http({
833
- method: "GET",
834
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings",
835
- code: 200,
836
- baseUrl: "https://kms.api.stackit.cloud",
837
- }),
838
- ),
839
- ).annotate({ identifier: "ListKeyRingsRequest" }) as any as S.Schema<ListKeyRingsRequest>;
840
-
841
410
  export type KeyRingListKeyRingsList = Array<KeyRing>;
842
- export const KeyRingListKeyRingsList = /*@__PURE__*/ S.Array(
843
- KeyRing,
844
- ) as any as S.Schema<KeyRingListKeyRingsList>;
845
-
846
411
  export interface KeyRingList {
847
412
  keyRings: KeyRingListKeyRingsList;
848
413
  }
849
- export const KeyRingList = /*@__PURE__*/ S.suspend(() =>
850
- S.Struct({
851
- keyRings: KeyRingListKeyRingsList,
852
- }),
853
- ).annotate({ identifier: "KeyRingList" }) as any as S.Schema<KeyRingList>;
854
-
855
414
  export type ListKeysRequestRegionId = "eu01";
856
- export const ListKeysRequestRegionId = S.String;
857
-
858
415
  export interface ListKeysRequest {
859
416
  /** The STACKIT portal project UUID the key ring is part of. */
860
417
  projectId: string;
@@ -863,36 +420,11 @@ export interface ListKeysRequest {
863
420
  /** The key ring UUID. */
864
421
  keyRingId: string;
865
422
  }
866
- export const ListKeysRequest = /*@__PURE__*/ S.suspend(() =>
867
- S.Struct({
868
- projectId: S.String.pipe(T.Label()),
869
- regionId: ListKeysRequestRegionId.pipe(T.Label()),
870
- keyRingId: S.String.pipe(T.Label()),
871
- }).pipe(
872
- T.Http({
873
- method: "GET",
874
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys",
875
- code: 200,
876
- baseUrl: "https://kms.api.stackit.cloud",
877
- }),
878
- ),
879
- ).annotate({ identifier: "ListKeysRequest" }) as any as S.Schema<ListKeysRequest>;
880
-
881
423
  export type KeyListKeysList = Array<Key>;
882
- export const KeyListKeysList = /*@__PURE__*/ S.Array(Key) as any as S.Schema<KeyListKeysList>;
883
-
884
424
  export interface KeyList {
885
425
  keys: KeyListKeysList;
886
426
  }
887
- export const KeyList = /*@__PURE__*/ S.suspend(() =>
888
- S.Struct({
889
- keys: KeyListKeysList,
890
- }),
891
- ).annotate({ identifier: "KeyList" }) as any as S.Schema<KeyList>;
892
-
893
427
  export type ListVersionsRequestRegionId = "eu01";
894
- export const ListVersionsRequestRegionId = S.String;
895
-
896
428
  export interface ListVersionsRequest {
897
429
  /** The STACKIT portal project UUID the key ring is part of. */
898
430
  projectId: string;
@@ -903,39 +435,11 @@ export interface ListVersionsRequest {
903
435
  /** The key UUID. */
904
436
  keyId: string;
905
437
  }
906
- export const ListVersionsRequest = /*@__PURE__*/ S.suspend(() =>
907
- S.Struct({
908
- projectId: S.String.pipe(T.Label()),
909
- regionId: ListVersionsRequestRegionId.pipe(T.Label()),
910
- keyRingId: S.String.pipe(T.Label()),
911
- keyId: S.String.pipe(T.Label()),
912
- }).pipe(
913
- T.Http({
914
- method: "GET",
915
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions",
916
- code: 200,
917
- baseUrl: "https://kms.api.stackit.cloud",
918
- }),
919
- ),
920
- ).annotate({ identifier: "ListVersionsRequest" }) as any as S.Schema<ListVersionsRequest>;
921
-
922
438
  export type VersionListVersionsList = Array<Version>;
923
- export const VersionListVersionsList = /*@__PURE__*/ S.Array(
924
- Version,
925
- ) as any as S.Schema<VersionListVersionsList>;
926
-
927
439
  export interface VersionList {
928
440
  versions: VersionListVersionsList;
929
441
  }
930
- export const VersionList = /*@__PURE__*/ S.suspend(() =>
931
- S.Struct({
932
- versions: VersionListVersionsList,
933
- }),
934
- ).annotate({ identifier: "VersionList" }) as any as S.Schema<VersionList>;
935
-
936
442
  export type ListWrappingKeysRequestRegionId = "eu01";
937
- export const ListWrappingKeysRequestRegionId = S.String;
938
-
939
443
  export interface ListWrappingKeysRequest {
940
444
  /** The STACKIT portal project UUID the key ring is part of. */
941
445
  projectId: string;
@@ -944,38 +448,11 @@ export interface ListWrappingKeysRequest {
944
448
  /** The key ring UUID. */
945
449
  keyRingId: string;
946
450
  }
947
- export const ListWrappingKeysRequest = /*@__PURE__*/ S.suspend(() =>
948
- S.Struct({
949
- projectId: S.String.pipe(T.Label()),
950
- regionId: ListWrappingKeysRequestRegionId.pipe(T.Label()),
951
- keyRingId: S.String.pipe(T.Label()),
952
- }).pipe(
953
- T.Http({
954
- method: "GET",
955
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys",
956
- code: 200,
957
- baseUrl: "https://kms.api.stackit.cloud",
958
- }),
959
- ),
960
- ).annotate({ identifier: "ListWrappingKeysRequest" }) as any as S.Schema<ListWrappingKeysRequest>;
961
-
962
451
  export type WrappingKeyListWrappingKeysList = Array<WrappingKey>;
963
- export const WrappingKeyListWrappingKeysList = /*@__PURE__*/ S.Array(
964
- WrappingKey,
965
- ) as any as S.Schema<WrappingKeyListWrappingKeysList>;
966
-
967
452
  export interface WrappingKeyList {
968
453
  wrappingKeys: WrappingKeyListWrappingKeysList;
969
454
  }
970
- export const WrappingKeyList = /*@__PURE__*/ S.suspend(() =>
971
- S.Struct({
972
- wrappingKeys: WrappingKeyListWrappingKeysList,
973
- }),
974
- ).annotate({ identifier: "WrappingKeyList" }) as any as S.Schema<WrappingKeyList>;
975
-
976
455
  export type RestoreKeyRequestRegionId = "eu01";
977
- export const RestoreKeyRequestRegionId = S.String;
978
-
979
456
  export interface RestoreKeyRequest {
980
457
  /** The STACKIT portal project UUID the key ring is part of. */
981
458
  projectId: string;
@@ -986,30 +463,8 @@ export interface RestoreKeyRequest {
986
463
  /** The key UUID. */
987
464
  keyId: string;
988
465
  }
989
- export const RestoreKeyRequest = /*@__PURE__*/ S.suspend(() =>
990
- S.Struct({
991
- projectId: S.String.pipe(T.Label()),
992
- regionId: RestoreKeyRequestRegionId.pipe(T.Label()),
993
- keyRingId: S.String.pipe(T.Label()),
994
- keyId: S.String.pipe(T.Label()),
995
- }).pipe(
996
- T.Http({
997
- method: "POST",
998
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/restore",
999
- code: 200,
1000
- baseUrl: "https://kms.api.stackit.cloud",
1001
- }),
1002
- ),
1003
- ).annotate({ identifier: "RestoreKeyRequest" }) as any as S.Schema<RestoreKeyRequest>;
1004
-
1005
466
  export interface RestoreKeyResponse {}
1006
- export const RestoreKeyResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1007
- identifier: "RestoreKeyResponse",
1008
- }) as any as S.Schema<RestoreKeyResponse>;
1009
-
1010
467
  export type RestoreVersionRequestRegionId = "eu01";
1011
- export const RestoreVersionRequestRegionId = S.String;
1012
-
1013
468
  export interface RestoreVersionRequest {
1014
469
  /** The STACKIT portal project UUID the key ring is part of. */
1015
470
  projectId: string;
@@ -1022,31 +477,8 @@ export interface RestoreVersionRequest {
1022
477
  /** The version number. */
1023
478
  versionNumber: number;
1024
479
  }
1025
- export const RestoreVersionRequest = /*@__PURE__*/ S.suspend(() =>
1026
- S.Struct({
1027
- projectId: S.String.pipe(T.Label()),
1028
- regionId: RestoreVersionRequestRegionId.pipe(T.Label()),
1029
- keyRingId: S.String.pipe(T.Label()),
1030
- keyId: S.String.pipe(T.Label()),
1031
- versionNumber: S.Number.pipe(T.Label()),
1032
- }).pipe(
1033
- T.Http({
1034
- method: "POST",
1035
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/restore",
1036
- code: 200,
1037
- baseUrl: "https://kms.api.stackit.cloud",
1038
- }),
1039
- ),
1040
- ).annotate({ identifier: "RestoreVersionRequest" }) as any as S.Schema<RestoreVersionRequest>;
1041
-
1042
480
  export interface RestoreVersionResponse {}
1043
- export const RestoreVersionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
1044
- identifier: "RestoreVersionResponse",
1045
- }) as any as S.Schema<RestoreVersionResponse>;
1046
-
1047
481
  export type RotateKeyRequestRegionId = "eu01";
1048
- export const RotateKeyRequestRegionId = S.String;
1049
-
1050
482
  export interface RotateKeyRequest {
1051
483
  /** The STACKIT portal project UUID the key ring is part of. */
1052
484
  projectId: string;
@@ -1057,25 +489,7 @@ export interface RotateKeyRequest {
1057
489
  /** The key UUID. */
1058
490
  keyId: string;
1059
491
  }
1060
- export const RotateKeyRequest = /*@__PURE__*/ S.suspend(() =>
1061
- S.Struct({
1062
- projectId: S.String.pipe(T.Label()),
1063
- regionId: RotateKeyRequestRegionId.pipe(T.Label()),
1064
- keyRingId: S.String.pipe(T.Label()),
1065
- keyId: S.String.pipe(T.Label()),
1066
- }).pipe(
1067
- T.Http({
1068
- method: "POST",
1069
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/rotate",
1070
- code: 200,
1071
- baseUrl: "https://kms.api.stackit.cloud",
1072
- }),
1073
- ),
1074
- ).annotate({ identifier: "RotateKeyRequest" }) as any as S.Schema<RotateKeyRequest>;
1075
-
1076
492
  export type SignRequestRegionId = "eu01";
1077
- export const SignRequestRegionId = S.String;
1078
-
1079
493
  export interface SignRequest {
1080
494
  /** The STACKIT portal project UUID the key ring is part of. */
1081
495
  projectId: string;
@@ -1090,40 +504,13 @@ export interface SignRequest {
1090
504
  /** The data that has to be signed. Encoded in base64. */
1091
505
  data: string;
1092
506
  }
1093
- export const SignRequest = /*@__PURE__*/ S.suspend(() =>
1094
- S.Struct({
1095
- projectId: S.String.pipe(T.Label()),
1096
- regionId: SignRequestRegionId.pipe(T.Label()),
1097
- keyRingId: S.String.pipe(T.Label()),
1098
- keyId: S.String.pipe(T.Label()),
1099
- versionNumber: S.Number.pipe(T.Label()),
1100
- data: S.String,
1101
- }).pipe(
1102
- T.Http({
1103
- method: "POST",
1104
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/sign",
1105
- code: 200,
1106
- baseUrl: "https://kms.api.stackit.cloud",
1107
- }),
1108
- ),
1109
- ).annotate({ identifier: "SignRequest" }) as any as S.Schema<SignRequest>;
1110
-
1111
507
  export interface SignedData {
1112
508
  /** The data that was signed. Encoded in base64. */
1113
509
  data: string;
1114
510
  /** The signature of the data. Encoded in base64. */
1115
511
  signature: string;
1116
512
  }
1117
- export const SignedData = /*@__PURE__*/ S.suspend(() =>
1118
- S.Struct({
1119
- data: S.String,
1120
- signature: S.String,
1121
- }),
1122
- ).annotate({ identifier: "SignedData" }) as any as S.Schema<SignedData>;
1123
-
1124
513
  export type VerifyRequestRegionId = "eu01";
1125
- export const VerifyRequestRegionId = S.String;
1126
-
1127
514
  export interface VerifyRequest {
1128
515
  /** The STACKIT portal project UUID the key ring is part of. */
1129
516
  projectId: string;
@@ -1140,35 +527,10 @@ export interface VerifyRequest {
1140
527
  /** The signature of the data. Encoded in base64. */
1141
528
  signature: string;
1142
529
  }
1143
- export const VerifyRequest = /*@__PURE__*/ S.suspend(() =>
1144
- S.Struct({
1145
- projectId: S.String.pipe(T.Label()),
1146
- regionId: VerifyRequestRegionId.pipe(T.Label()),
1147
- keyRingId: S.String.pipe(T.Label()),
1148
- keyId: S.String.pipe(T.Label()),
1149
- versionNumber: S.Number.pipe(T.Label()),
1150
- data: S.String,
1151
- signature: S.String,
1152
- }).pipe(
1153
- T.Http({
1154
- method: "POST",
1155
- uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/verify",
1156
- code: 200,
1157
- baseUrl: "https://kms.api.stackit.cloud",
1158
- }),
1159
- ),
1160
- ).annotate({ identifier: "VerifyRequest" }) as any as S.Schema<VerifyRequest>;
1161
-
1162
530
  export interface VerifiedData {
1163
531
  /** Whether or not the data has a valid signature. */
1164
532
  valid: boolean;
1165
533
  }
1166
- export const VerifiedData = /*@__PURE__*/ S.suspend(() =>
1167
- S.Struct({
1168
- valid: S.Boolean,
1169
- }),
1170
- ).annotate({ identifier: "VerifiedData" }) as any as S.Schema<VerifiedData>;
1171
-
1172
534
  export type CreateKeyError = BadRequest | NotFound | StackitOpError;
1173
535
  /** Create key Creates a new key for the given key ring. */
1174
536
  export const createKey: API.OperationMethod<
@@ -1177,8 +539,8 @@ export const createKey: API.OperationMethod<
1177
539
  CreateKeyError,
1178
540
  StackitOpContext
1179
541
  > = /*@__PURE__*/ API.make(() => ({
1180
- input: CreateKeyRequest,
1181
- output: Key,
542
+ input: __S(80, __c20, 0) as any as S.Schema<CreateKeyRequest>,
543
+ output: __S(84, __c21, 0) as any as S.Schema<Key>,
1182
544
  errors: [BadRequest, NotFound, UnknownStackitError],
1183
545
  protocol: StackitProtocol,
1184
546
  retry: Retry.Retry,
@@ -1192,8 +554,8 @@ export const createKeyRing: API.OperationMethod<
1192
554
  CreateKeyRingError,
1193
555
  StackitOpContext
1194
556
  > = /*@__PURE__*/ API.make(() => ({
1195
- input: CreateKeyRingRequest,
1196
- output: KeyRing,
557
+ input: __S(88, __c22, 0) as any as S.Schema<CreateKeyRingRequest>,
558
+ output: __S(92, __c23, 0) as any as S.Schema<KeyRing>,
1197
559
  errors: [BadRequest, UnknownStackitError],
1198
560
  protocol: StackitProtocol,
1199
561
  retry: Retry.Retry,
@@ -1207,8 +569,8 @@ export const createWrappingKey: API.OperationMethod<
1207
569
  CreateWrappingKeyError,
1208
570
  StackitOpContext
1209
571
  > = /*@__PURE__*/ API.make(() => ({
1210
- input: CreateWrappingKeyRequest,
1211
- output: WrappingKey,
572
+ input: __S(96, __c24, 0) as any as S.Schema<CreateWrappingKeyRequest>,
573
+ output: __S(100, __c25, 0) as any as S.Schema<WrappingKey>,
1212
574
  errors: [BadRequest, NotFound, UnknownStackitError],
1213
575
  protocol: StackitProtocol,
1214
576
  retry: Retry.Retry,
@@ -1222,8 +584,8 @@ export const decrypt: API.OperationMethod<
1222
584
  DecryptError,
1223
585
  StackitOpContext
1224
586
  > = /*@__PURE__*/ API.make(() => ({
1225
- input: DecryptRequest,
1226
- output: DecryptedData,
587
+ input: __S(104, __c26, 0) as any as S.Schema<DecryptRequest>,
588
+ output: __S(108, __c27, 0) as any as S.Schema<DecryptedData>,
1227
589
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1228
590
  protocol: StackitProtocol,
1229
591
  retry: Retry.Retry,
@@ -1237,8 +599,8 @@ export const deleteKey: API.OperationMethod<
1237
599
  DeleteKeyError,
1238
600
  StackitOpContext
1239
601
  > = /*@__PURE__*/ API.make(() => ({
1240
- input: DeleteKeyRequest,
1241
- output: DeleteKeyResponse,
602
+ input: __S(112, __c28, 0) as any as S.Schema<DeleteKeyRequest>,
603
+ output: __S(116, __c29, 0) as any as S.Schema<DeleteKeyResponse>,
1242
604
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1243
605
  protocol: StackitProtocol,
1244
606
  retry: Retry.Retry,
@@ -1252,8 +614,8 @@ export const deleteKeyRing: API.OperationMethod<
1252
614
  DeleteKeyRingError,
1253
615
  StackitOpContext
1254
616
  > = /*@__PURE__*/ API.make(() => ({
1255
- input: DeleteKeyRingRequest,
1256
- output: DeleteKeyRingResponse,
617
+ input: __S(120, __c30, 0) as any as S.Schema<DeleteKeyRingRequest>,
618
+ output: __S(116, __c29, 0) as any as S.Schema<DeleteKeyRingResponse>,
1257
619
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1258
620
  protocol: StackitProtocol,
1259
621
  retry: Retry.Retry,
@@ -1267,8 +629,8 @@ export const deleteWrappingKey: API.OperationMethod<
1267
629
  DeleteWrappingKeyError,
1268
630
  StackitOpContext
1269
631
  > = /*@__PURE__*/ API.make(() => ({
1270
- input: DeleteWrappingKeyRequest,
1271
- output: DeleteWrappingKeyResponse,
632
+ input: __S(0, __c0, 0) as any as S.Schema<DeleteWrappingKeyRequest>,
633
+ output: __S(116, __c29, 0) as any as S.Schema<DeleteWrappingKeyResponse>,
1272
634
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1273
635
  protocol: StackitProtocol,
1274
636
  retry: Retry.Retry,
@@ -1282,8 +644,8 @@ export const destroyVersion: API.OperationMethod<
1282
644
  DestroyVersionError,
1283
645
  StackitOpContext
1284
646
  > = /*@__PURE__*/ API.make(() => ({
1285
- input: DestroyVersionRequest,
1286
- output: DestroyVersionResponse,
647
+ input: __S(4, __c1, 0) as any as S.Schema<DestroyVersionRequest>,
648
+ output: __S(116, __c29, 0) as any as S.Schema<DestroyVersionResponse>,
1287
649
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1288
650
  protocol: StackitProtocol,
1289
651
  retry: Retry.Retry,
@@ -1297,8 +659,8 @@ export const disableVersion: API.OperationMethod<
1297
659
  DisableVersionError,
1298
660
  StackitOpContext
1299
661
  > = /*@__PURE__*/ API.make(() => ({
1300
- input: DisableVersionRequest,
1301
- output: DisableVersionResponse,
662
+ input: __S(8, __c2, 0) as any as S.Schema<DisableVersionRequest>,
663
+ output: __S(116, __c29, 0) as any as S.Schema<DisableVersionResponse>,
1302
664
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1303
665
  protocol: StackitProtocol,
1304
666
  retry: Retry.Retry,
@@ -1312,8 +674,8 @@ export const enableVersion: API.OperationMethod<
1312
674
  EnableVersionError,
1313
675
  StackitOpContext
1314
676
  > = /*@__PURE__*/ API.make(() => ({
1315
- input: EnableVersionRequest,
1316
- output: EnableVersionResponse,
677
+ input: __S(12, __c3, 0) as any as S.Schema<EnableVersionRequest>,
678
+ output: __S(116, __c29, 0) as any as S.Schema<EnableVersionResponse>,
1317
679
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1318
680
  protocol: StackitProtocol,
1319
681
  retry: Retry.Retry,
@@ -1327,8 +689,8 @@ export const encrypt: API.OperationMethod<
1327
689
  EncryptError,
1328
690
  StackitOpContext
1329
691
  > = /*@__PURE__*/ API.make(() => ({
1330
- input: EncryptRequest,
1331
- output: EncryptedData,
692
+ input: __S(16, __c4, 0) as any as S.Schema<EncryptRequest>,
693
+ output: __S(108, __c27, 0) as any as S.Schema<EncryptedData>,
1332
694
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1333
695
  protocol: StackitProtocol,
1334
696
  retry: Retry.Retry,
@@ -1338,8 +700,8 @@ export type GetKeyError = BadRequest | NotFound | StackitOpError;
1338
700
  /** Get key Returns the details for the given key. */
1339
701
  export const getKey: API.OperationMethod<GetKeyRequest, Key, GetKeyError, StackitOpContext> =
1340
702
  /*@__PURE__*/ API.make(() => ({
1341
- input: GetKeyRequest,
1342
- output: Key,
703
+ input: __S(20, __c5, 0) as any as S.Schema<GetKeyRequest>,
704
+ output: __S(84, __c21, 0) as any as S.Schema<Key>,
1343
705
  errors: [BadRequest, NotFound, UnknownStackitError],
1344
706
  protocol: StackitProtocol,
1345
707
  retry: Retry.Retry,
@@ -1353,8 +715,8 @@ export const getKeyRing: API.OperationMethod<
1353
715
  GetKeyRingError,
1354
716
  StackitOpContext
1355
717
  > = /*@__PURE__*/ API.make(() => ({
1356
- input: GetKeyRingRequest,
1357
- output: KeyRing,
718
+ input: __S(24, __c6, 0) as any as S.Schema<GetKeyRingRequest>,
719
+ output: __S(92, __c23, 0) as any as S.Schema<KeyRing>,
1358
720
  errors: [BadRequest, NotFound, UnknownStackitError],
1359
721
  protocol: StackitProtocol,
1360
722
  retry: Retry.Retry,
@@ -1368,8 +730,8 @@ export const getVersion: API.OperationMethod<
1368
730
  GetVersionError,
1369
731
  StackitOpContext
1370
732
  > = /*@__PURE__*/ API.make(() => ({
1371
- input: GetVersionRequest,
1372
- output: Version,
733
+ input: __S(28, __c7, 0) as any as S.Schema<GetVersionRequest>,
734
+ output: __S(32, __c8, 0) as any as S.Schema<Version>,
1373
735
  errors: [BadRequest, NotFound, UnknownStackitError],
1374
736
  protocol: StackitProtocol,
1375
737
  retry: Retry.Retry,
@@ -1383,8 +745,8 @@ export const getWrappingKey: API.OperationMethod<
1383
745
  GetWrappingKeyError,
1384
746
  StackitOpContext
1385
747
  > = /*@__PURE__*/ API.make(() => ({
1386
- input: GetWrappingKeyRequest,
1387
- output: WrappingKey,
748
+ input: __S(36, __c9, 0) as any as S.Schema<GetWrappingKeyRequest>,
749
+ output: __S(100, __c25, 0) as any as S.Schema<WrappingKey>,
1388
750
  errors: [BadRequest, NotFound, UnknownStackitError],
1389
751
  protocol: StackitProtocol,
1390
752
  retry: Retry.Retry,
@@ -1398,8 +760,8 @@ export const importKey: API.OperationMethod<
1398
760
  ImportKeyError,
1399
761
  StackitOpContext
1400
762
  > = /*@__PURE__*/ API.make(() => ({
1401
- input: ImportKeyRequest,
1402
- output: Version,
763
+ input: __S(40, __c10, 0) as any as S.Schema<ImportKeyRequest>,
764
+ output: __S(32, __c8, 0) as any as S.Schema<Version>,
1403
765
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1404
766
  protocol: StackitProtocol,
1405
767
  retry: Retry.Retry,
@@ -1413,8 +775,8 @@ export const listKeyRings: API.OperationMethod<
1413
775
  ListKeyRingsError,
1414
776
  StackitOpContext
1415
777
  > = /*@__PURE__*/ API.make(() => ({
1416
- input: ListKeyRingsRequest,
1417
- output: KeyRingList,
778
+ input: __S(44, __c11, 0) as any as S.Schema<ListKeyRingsRequest>,
779
+ output: __S(46, __c11, 2) as any as S.Schema<KeyRingList>,
1418
780
  errors: [BadRequest, UnknownStackitError],
1419
781
  protocol: StackitProtocol,
1420
782
  retry: Retry.Retry,
@@ -1428,8 +790,8 @@ export const listKeys: API.OperationMethod<
1428
790
  ListKeysError,
1429
791
  StackitOpContext
1430
792
  > = /*@__PURE__*/ API.make(() => ({
1431
- input: ListKeysRequest,
1432
- output: KeyList,
793
+ input: __S(48, __c12, 0) as any as S.Schema<ListKeysRequest>,
794
+ output: __S(50, __c12, 2) as any as S.Schema<KeyList>,
1433
795
  errors: [BadRequest, NotFound, UnknownStackitError],
1434
796
  protocol: StackitProtocol,
1435
797
  retry: Retry.Retry,
@@ -1443,8 +805,8 @@ export const listVersions: API.OperationMethod<
1443
805
  ListVersionsError,
1444
806
  StackitOpContext
1445
807
  > = /*@__PURE__*/ API.make(() => ({
1446
- input: ListVersionsRequest,
1447
- output: VersionList,
808
+ input: __S(52, __c13, 0) as any as S.Schema<ListVersionsRequest>,
809
+ output: __S(54, __c13, 2) as any as S.Schema<VersionList>,
1448
810
  errors: [BadRequest, NotFound, UnknownStackitError],
1449
811
  protocol: StackitProtocol,
1450
812
  retry: Retry.Retry,
@@ -1458,8 +820,8 @@ export const listWrappingKeys: API.OperationMethod<
1458
820
  ListWrappingKeysError,
1459
821
  StackitOpContext
1460
822
  > = /*@__PURE__*/ API.make(() => ({
1461
- input: ListWrappingKeysRequest,
1462
- output: WrappingKeyList,
823
+ input: __S(56, __c14, 0) as any as S.Schema<ListWrappingKeysRequest>,
824
+ output: __S(58, __c14, 2) as any as S.Schema<WrappingKeyList>,
1463
825
  errors: [BadRequest, NotFound, UnknownStackitError],
1464
826
  protocol: StackitProtocol,
1465
827
  retry: Retry.Retry,
@@ -1473,8 +835,8 @@ export const restoreKey: API.OperationMethod<
1473
835
  RestoreKeyError,
1474
836
  StackitOpContext
1475
837
  > = /*@__PURE__*/ API.make(() => ({
1476
- input: RestoreKeyRequest,
1477
- output: RestoreKeyResponse,
838
+ input: __S(60, __c15, 0) as any as S.Schema<RestoreKeyRequest>,
839
+ output: __S(116, __c29, 0) as any as S.Schema<RestoreKeyResponse>,
1478
840
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1479
841
  protocol: StackitProtocol,
1480
842
  retry: Retry.Retry,
@@ -1488,8 +850,8 @@ export const restoreVersion: API.OperationMethod<
1488
850
  RestoreVersionError,
1489
851
  StackitOpContext
1490
852
  > = /*@__PURE__*/ API.make(() => ({
1491
- input: RestoreVersionRequest,
1492
- output: RestoreVersionResponse,
853
+ input: __S(64, __c16, 0) as any as S.Schema<RestoreVersionRequest>,
854
+ output: __S(116, __c29, 0) as any as S.Schema<RestoreVersionResponse>,
1493
855
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1494
856
  protocol: StackitProtocol,
1495
857
  retry: Retry.Retry,
@@ -1503,8 +865,8 @@ export const rotateKey: API.OperationMethod<
1503
865
  RotateKeyError,
1504
866
  StackitOpContext
1505
867
  > = /*@__PURE__*/ API.make(() => ({
1506
- input: RotateKeyRequest,
1507
- output: Version,
868
+ input: __S(68, __c17, 0) as any as S.Schema<RotateKeyRequest>,
869
+ output: __S(32, __c8, 0) as any as S.Schema<Version>,
1508
870
  errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
1509
871
  protocol: StackitProtocol,
1510
872
  retry: Retry.Retry,
@@ -1514,8 +876,8 @@ export type SignError = BadRequest | NotFound | Conflict | StackitOpError;
1514
876
  /** Sign Sign data using the given key version as secret. */
1515
877
  export const sign: API.OperationMethod<SignRequest, SignedData, SignError, StackitOpContext> =
1516
878
  /*@__PURE__*/ API.make(() => ({
1517
- input: SignRequest,
1518
- output: SignedData,
879
+ input: __S(72, __c18, 0) as any as S.Schema<SignRequest>,
880
+ output: __S(73, __c18, 1) as any as S.Schema<SignedData>,
1519
881
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1520
882
  protocol: StackitProtocol,
1521
883
  retry: Retry.Retry,
@@ -1529,9 +891,670 @@ export const verify: API.OperationMethod<
1529
891
  VerifyError,
1530
892
  StackitOpContext
1531
893
  > = /*@__PURE__*/ API.make(() => ({
1532
- input: VerifyRequest,
1533
- output: VerifiedData,
894
+ input: __S(76, __c19, 0) as any as S.Schema<VerifyRequest>,
895
+ output: __S(77, __c19, 1) as any as S.Schema<VerifiedData>,
1534
896
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1535
897
  protocol: StackitProtocol,
1536
898
  retry: Retry.Retry,
1537
899
  }));
900
+
901
+ // Schema builders: each runs one schema initializer, on that schema's first use.
902
+ function __c0(j: number): any {
903
+ switch (j) {
904
+ case 0:
905
+ return S.suspend(() =>
906
+ S.Struct({
907
+ projectId: S.String.pipe(T.Label()),
908
+ regionId: S.String.pipe(T.Label()),
909
+ keyRingId: S.String.pipe(T.Label()),
910
+ wrappingKeyId: S.String.pipe(T.Label()),
911
+ }).pipe(
912
+ T.Http({
913
+ method: "DELETE",
914
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}",
915
+ code: 200,
916
+ baseUrl: "https://kms.api.stackit.cloud",
917
+ }),
918
+ ),
919
+ ).annotate({ identifier: "DeleteWrappingKeyRequest" });
920
+ }
921
+ }
922
+ function __c1(j: number): any {
923
+ switch (j) {
924
+ case 0:
925
+ return S.suspend(() =>
926
+ S.Struct({
927
+ projectId: S.String.pipe(T.Label()),
928
+ regionId: S.String.pipe(T.Label()),
929
+ keyRingId: S.String.pipe(T.Label()),
930
+ keyId: S.String.pipe(T.Label()),
931
+ versionNumber: S.Number.pipe(T.Label()),
932
+ }).pipe(
933
+ T.Http({
934
+ method: "POST",
935
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/destroy",
936
+ code: 200,
937
+ baseUrl: "https://kms.api.stackit.cloud",
938
+ }),
939
+ ),
940
+ ).annotate({ identifier: "DestroyVersionRequest" });
941
+ }
942
+ }
943
+ function __c2(j: number): any {
944
+ switch (j) {
945
+ case 0:
946
+ return S.suspend(() =>
947
+ S.Struct({
948
+ projectId: S.String.pipe(T.Label()),
949
+ regionId: S.String.pipe(T.Label()),
950
+ keyRingId: S.String.pipe(T.Label()),
951
+ keyId: S.String.pipe(T.Label()),
952
+ versionNumber: S.Number.pipe(T.Label()),
953
+ }).pipe(
954
+ T.Http({
955
+ method: "POST",
956
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/disable",
957
+ code: 200,
958
+ baseUrl: "https://kms.api.stackit.cloud",
959
+ }),
960
+ ),
961
+ ).annotate({ identifier: "DisableVersionRequest" });
962
+ }
963
+ }
964
+ function __c3(j: number): any {
965
+ switch (j) {
966
+ case 0:
967
+ return S.suspend(() =>
968
+ S.Struct({
969
+ projectId: S.String.pipe(T.Label()),
970
+ regionId: S.String.pipe(T.Label()),
971
+ keyRingId: S.String.pipe(T.Label()),
972
+ keyId: S.String.pipe(T.Label()),
973
+ versionNumber: S.Number.pipe(T.Label()),
974
+ }).pipe(
975
+ T.Http({
976
+ method: "POST",
977
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/enable",
978
+ code: 200,
979
+ baseUrl: "https://kms.api.stackit.cloud",
980
+ }),
981
+ ),
982
+ ).annotate({ identifier: "EnableVersionRequest" });
983
+ }
984
+ }
985
+ function __c4(j: number): any {
986
+ switch (j) {
987
+ case 0:
988
+ return S.suspend(() =>
989
+ S.Struct({
990
+ projectId: S.String.pipe(T.Label()),
991
+ regionId: S.String.pipe(T.Label()),
992
+ keyRingId: S.String.pipe(T.Label()),
993
+ keyId: S.String.pipe(T.Label()),
994
+ versionNumber: S.Number.pipe(T.Label()),
995
+ data: S.String,
996
+ }).pipe(
997
+ T.Http({
998
+ method: "POST",
999
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/encrypt",
1000
+ code: 200,
1001
+ baseUrl: "https://kms.api.stackit.cloud",
1002
+ }),
1003
+ ),
1004
+ ).annotate({ identifier: "EncryptRequest" });
1005
+ }
1006
+ }
1007
+ function __c5(j: number): any {
1008
+ switch (j) {
1009
+ case 0:
1010
+ return S.suspend(() =>
1011
+ S.Struct({
1012
+ projectId: S.String.pipe(T.Label()),
1013
+ regionId: S.String.pipe(T.Label()),
1014
+ keyRingId: S.String.pipe(T.Label()),
1015
+ keyId: S.String.pipe(T.Label()),
1016
+ }).pipe(
1017
+ T.Http({
1018
+ method: "GET",
1019
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}",
1020
+ code: 200,
1021
+ baseUrl: "https://kms.api.stackit.cloud",
1022
+ }),
1023
+ ),
1024
+ ).annotate({ identifier: "GetKeyRequest" });
1025
+ }
1026
+ }
1027
+ function __c6(j: number): any {
1028
+ switch (j) {
1029
+ case 0:
1030
+ return S.suspend(() =>
1031
+ S.Struct({
1032
+ projectId: S.String.pipe(T.Label()),
1033
+ regionId: S.String.pipe(T.Label()),
1034
+ keyRingId: S.String.pipe(T.Label()),
1035
+ }).pipe(
1036
+ T.Http({
1037
+ method: "GET",
1038
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}",
1039
+ code: 200,
1040
+ baseUrl: "https://kms.api.stackit.cloud",
1041
+ }),
1042
+ ),
1043
+ ).annotate({ identifier: "GetKeyRingRequest" });
1044
+ }
1045
+ }
1046
+ function __c7(j: number): any {
1047
+ switch (j) {
1048
+ case 0:
1049
+ return S.suspend(() =>
1050
+ S.Struct({
1051
+ projectId: S.String.pipe(T.Label()),
1052
+ regionId: S.String.pipe(T.Label()),
1053
+ keyRingId: S.String.pipe(T.Label()),
1054
+ keyId: S.String.pipe(T.Label()),
1055
+ versionNumber: S.Number.pipe(T.Label()),
1056
+ }).pipe(
1057
+ T.Http({
1058
+ method: "GET",
1059
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}",
1060
+ code: 200,
1061
+ baseUrl: "https://kms.api.stackit.cloud",
1062
+ }),
1063
+ ),
1064
+ ).annotate({ identifier: "GetVersionRequest" });
1065
+ }
1066
+ }
1067
+ function __c8(j: number): any {
1068
+ switch (j) {
1069
+ case 0:
1070
+ return S.suspend(() =>
1071
+ S.Struct({
1072
+ createdAt: S.String,
1073
+ destroyDate: S.optional(S.String),
1074
+ disabled: S.Boolean,
1075
+ keyId: S.String,
1076
+ keyRingId: S.String,
1077
+ number: S.Number,
1078
+ publicKey: S.optional(S.String),
1079
+ state: S.String,
1080
+ }),
1081
+ ).annotate({ identifier: "Version" });
1082
+ }
1083
+ }
1084
+ function __c9(j: number): any {
1085
+ switch (j) {
1086
+ case 0:
1087
+ return S.suspend(() =>
1088
+ S.Struct({
1089
+ projectId: S.String.pipe(T.Label()),
1090
+ regionId: S.String.pipe(T.Label()),
1091
+ keyRingId: S.String.pipe(T.Label()),
1092
+ wrappingKeyId: S.String.pipe(T.Label()),
1093
+ }).pipe(
1094
+ T.Http({
1095
+ method: "GET",
1096
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys/{wrappingKeyId}",
1097
+ code: 200,
1098
+ baseUrl: "https://kms.api.stackit.cloud",
1099
+ }),
1100
+ ),
1101
+ ).annotate({ identifier: "GetWrappingKeyRequest" });
1102
+ }
1103
+ }
1104
+ function __c10(j: number): any {
1105
+ switch (j) {
1106
+ case 0:
1107
+ return S.suspend(() =>
1108
+ S.Struct({
1109
+ projectId: S.String.pipe(T.Label()),
1110
+ regionId: S.String.pipe(T.Label()),
1111
+ keyRingId: S.String.pipe(T.Label()),
1112
+ keyId: S.String.pipe(T.Label()),
1113
+ wrappedKey: S.String,
1114
+ wrappingKeyId: S.String,
1115
+ }).pipe(
1116
+ T.Http({
1117
+ method: "POST",
1118
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/import",
1119
+ code: 200,
1120
+ baseUrl: "https://kms.api.stackit.cloud",
1121
+ }),
1122
+ ),
1123
+ ).annotate({ identifier: "ImportKeyRequest" });
1124
+ }
1125
+ }
1126
+ function __c11(j: number): any {
1127
+ switch (j) {
1128
+ case 0:
1129
+ return S.suspend(() =>
1130
+ S.Struct({
1131
+ projectId: S.String.pipe(T.Label()),
1132
+ regionId: S.String.pipe(T.Label()),
1133
+ }).pipe(
1134
+ T.Http({
1135
+ method: "GET",
1136
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings",
1137
+ code: 200,
1138
+ baseUrl: "https://kms.api.stackit.cloud",
1139
+ }),
1140
+ ),
1141
+ ).annotate({ identifier: "ListKeyRingsRequest" });
1142
+ case 1:
1143
+ return S.Array(__S(92, __c23, 0));
1144
+ case 2:
1145
+ return S.suspend(() =>
1146
+ S.Struct({
1147
+ keyRings: __S(45, __c11, 1),
1148
+ }),
1149
+ ).annotate({ identifier: "KeyRingList" });
1150
+ }
1151
+ }
1152
+ function __c12(j: number): any {
1153
+ switch (j) {
1154
+ case 0:
1155
+ return S.suspend(() =>
1156
+ S.Struct({
1157
+ projectId: S.String.pipe(T.Label()),
1158
+ regionId: S.String.pipe(T.Label()),
1159
+ keyRingId: S.String.pipe(T.Label()),
1160
+ }).pipe(
1161
+ T.Http({
1162
+ method: "GET",
1163
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys",
1164
+ code: 200,
1165
+ baseUrl: "https://kms.api.stackit.cloud",
1166
+ }),
1167
+ ),
1168
+ ).annotate({ identifier: "ListKeysRequest" });
1169
+ case 1:
1170
+ return S.Array(__S(84, __c21, 0));
1171
+ case 2:
1172
+ return S.suspend(() =>
1173
+ S.Struct({
1174
+ keys: __S(49, __c12, 1),
1175
+ }),
1176
+ ).annotate({ identifier: "KeyList" });
1177
+ }
1178
+ }
1179
+ function __c13(j: number): any {
1180
+ switch (j) {
1181
+ case 0:
1182
+ return S.suspend(() =>
1183
+ S.Struct({
1184
+ projectId: S.String.pipe(T.Label()),
1185
+ regionId: S.String.pipe(T.Label()),
1186
+ keyRingId: S.String.pipe(T.Label()),
1187
+ keyId: S.String.pipe(T.Label()),
1188
+ }).pipe(
1189
+ T.Http({
1190
+ method: "GET",
1191
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions",
1192
+ code: 200,
1193
+ baseUrl: "https://kms.api.stackit.cloud",
1194
+ }),
1195
+ ),
1196
+ ).annotate({ identifier: "ListVersionsRequest" });
1197
+ case 1:
1198
+ return S.Array(__S(32, __c8, 0));
1199
+ case 2:
1200
+ return S.suspend(() =>
1201
+ S.Struct({
1202
+ versions: __S(53, __c13, 1),
1203
+ }),
1204
+ ).annotate({ identifier: "VersionList" });
1205
+ }
1206
+ }
1207
+ function __c14(j: number): any {
1208
+ switch (j) {
1209
+ case 0:
1210
+ return S.suspend(() =>
1211
+ S.Struct({
1212
+ projectId: S.String.pipe(T.Label()),
1213
+ regionId: S.String.pipe(T.Label()),
1214
+ keyRingId: S.String.pipe(T.Label()),
1215
+ }).pipe(
1216
+ T.Http({
1217
+ method: "GET",
1218
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys",
1219
+ code: 200,
1220
+ baseUrl: "https://kms.api.stackit.cloud",
1221
+ }),
1222
+ ),
1223
+ ).annotate({ identifier: "ListWrappingKeysRequest" });
1224
+ case 1:
1225
+ return S.Array(__S(100, __c25, 0));
1226
+ case 2:
1227
+ return S.suspend(() =>
1228
+ S.Struct({
1229
+ wrappingKeys: __S(57, __c14, 1),
1230
+ }),
1231
+ ).annotate({ identifier: "WrappingKeyList" });
1232
+ }
1233
+ }
1234
+ function __c15(j: number): any {
1235
+ switch (j) {
1236
+ case 0:
1237
+ return S.suspend(() =>
1238
+ S.Struct({
1239
+ projectId: S.String.pipe(T.Label()),
1240
+ regionId: S.String.pipe(T.Label()),
1241
+ keyRingId: S.String.pipe(T.Label()),
1242
+ keyId: S.String.pipe(T.Label()),
1243
+ }).pipe(
1244
+ T.Http({
1245
+ method: "POST",
1246
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/restore",
1247
+ code: 200,
1248
+ baseUrl: "https://kms.api.stackit.cloud",
1249
+ }),
1250
+ ),
1251
+ ).annotate({ identifier: "RestoreKeyRequest" });
1252
+ }
1253
+ }
1254
+ function __c16(j: number): any {
1255
+ switch (j) {
1256
+ case 0:
1257
+ return S.suspend(() =>
1258
+ S.Struct({
1259
+ projectId: S.String.pipe(T.Label()),
1260
+ regionId: S.String.pipe(T.Label()),
1261
+ keyRingId: S.String.pipe(T.Label()),
1262
+ keyId: S.String.pipe(T.Label()),
1263
+ versionNumber: S.Number.pipe(T.Label()),
1264
+ }).pipe(
1265
+ T.Http({
1266
+ method: "POST",
1267
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/restore",
1268
+ code: 200,
1269
+ baseUrl: "https://kms.api.stackit.cloud",
1270
+ }),
1271
+ ),
1272
+ ).annotate({ identifier: "RestoreVersionRequest" });
1273
+ }
1274
+ }
1275
+ function __c17(j: number): any {
1276
+ switch (j) {
1277
+ case 0:
1278
+ return S.suspend(() =>
1279
+ S.Struct({
1280
+ projectId: S.String.pipe(T.Label()),
1281
+ regionId: S.String.pipe(T.Label()),
1282
+ keyRingId: S.String.pipe(T.Label()),
1283
+ keyId: S.String.pipe(T.Label()),
1284
+ }).pipe(
1285
+ T.Http({
1286
+ method: "POST",
1287
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/rotate",
1288
+ code: 200,
1289
+ baseUrl: "https://kms.api.stackit.cloud",
1290
+ }),
1291
+ ),
1292
+ ).annotate({ identifier: "RotateKeyRequest" });
1293
+ }
1294
+ }
1295
+ function __c18(j: number): any {
1296
+ switch (j) {
1297
+ case 0:
1298
+ return S.suspend(() =>
1299
+ S.Struct({
1300
+ projectId: S.String.pipe(T.Label()),
1301
+ regionId: S.String.pipe(T.Label()),
1302
+ keyRingId: S.String.pipe(T.Label()),
1303
+ keyId: S.String.pipe(T.Label()),
1304
+ versionNumber: S.Number.pipe(T.Label()),
1305
+ data: S.String,
1306
+ }).pipe(
1307
+ T.Http({
1308
+ method: "POST",
1309
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/sign",
1310
+ code: 200,
1311
+ baseUrl: "https://kms.api.stackit.cloud",
1312
+ }),
1313
+ ),
1314
+ ).annotate({ identifier: "SignRequest" });
1315
+ case 1:
1316
+ return S.suspend(() =>
1317
+ S.Struct({
1318
+ data: S.String,
1319
+ signature: S.String,
1320
+ }),
1321
+ ).annotate({ identifier: "SignedData" });
1322
+ }
1323
+ }
1324
+ function __c19(j: number): any {
1325
+ switch (j) {
1326
+ case 0:
1327
+ return S.suspend(() =>
1328
+ S.Struct({
1329
+ projectId: S.String.pipe(T.Label()),
1330
+ regionId: S.String.pipe(T.Label()),
1331
+ keyRingId: S.String.pipe(T.Label()),
1332
+ keyId: S.String.pipe(T.Label()),
1333
+ versionNumber: S.Number.pipe(T.Label()),
1334
+ data: S.String,
1335
+ signature: S.String,
1336
+ }).pipe(
1337
+ T.Http({
1338
+ method: "POST",
1339
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/verify",
1340
+ code: 200,
1341
+ baseUrl: "https://kms.api.stackit.cloud",
1342
+ }),
1343
+ ),
1344
+ ).annotate({ identifier: "VerifyRequest" });
1345
+ case 1:
1346
+ return S.suspend(() =>
1347
+ S.Struct({
1348
+ valid: S.Boolean,
1349
+ }),
1350
+ ).annotate({ identifier: "VerifiedData" });
1351
+ }
1352
+ }
1353
+ function __c20(j: number): any {
1354
+ switch (j) {
1355
+ case 0:
1356
+ return S.suspend(() =>
1357
+ S.Struct({
1358
+ projectId: S.String.pipe(T.Label()),
1359
+ regionId: S.String.pipe(T.Label()),
1360
+ keyRingId: S.String.pipe(T.Label()),
1361
+ access_scope: S.optional(S.String),
1362
+ algorithm: S.String,
1363
+ description: S.optional(S.String),
1364
+ displayName: S.String,
1365
+ importOnly: S.optional(S.Boolean),
1366
+ protection: S.String,
1367
+ purpose: S.String,
1368
+ }).pipe(
1369
+ T.Http({
1370
+ method: "POST",
1371
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys",
1372
+ code: 200,
1373
+ baseUrl: "https://kms.api.stackit.cloud",
1374
+ }),
1375
+ ),
1376
+ ).annotate({ identifier: "CreateKeyRequest" });
1377
+ }
1378
+ }
1379
+ function __c21(j: number): any {
1380
+ switch (j) {
1381
+ case 0:
1382
+ return S.suspend(() =>
1383
+ S.Struct({
1384
+ access_scope: S.String,
1385
+ algorithm: S.String,
1386
+ createdAt: S.String,
1387
+ deletionDate: S.optional(S.String),
1388
+ description: S.optional(S.String),
1389
+ displayName: S.String,
1390
+ id: S.String,
1391
+ importOnly: S.Boolean,
1392
+ keyRingId: S.String,
1393
+ protection: S.String,
1394
+ purpose: S.String,
1395
+ state: S.String,
1396
+ }),
1397
+ ).annotate({ identifier: "Key" });
1398
+ }
1399
+ }
1400
+ function __c22(j: number): any {
1401
+ switch (j) {
1402
+ case 0:
1403
+ return S.suspend(() =>
1404
+ S.Struct({
1405
+ projectId: S.String.pipe(T.Label()),
1406
+ regionId: S.String.pipe(T.Label()),
1407
+ description: S.optional(S.String),
1408
+ displayName: S.String,
1409
+ }).pipe(
1410
+ T.Http({
1411
+ method: "POST",
1412
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings",
1413
+ code: 200,
1414
+ baseUrl: "https://kms.api.stackit.cloud",
1415
+ }),
1416
+ ),
1417
+ ).annotate({ identifier: "CreateKeyRingRequest" });
1418
+ }
1419
+ }
1420
+ function __c23(j: number): any {
1421
+ switch (j) {
1422
+ case 0:
1423
+ return S.suspend(() =>
1424
+ S.Struct({
1425
+ createdAt: S.String,
1426
+ description: S.optional(S.String),
1427
+ displayName: S.String,
1428
+ id: S.String,
1429
+ state: S.String,
1430
+ }),
1431
+ ).annotate({ identifier: "KeyRing" });
1432
+ }
1433
+ }
1434
+ function __c24(j: number): any {
1435
+ switch (j) {
1436
+ case 0:
1437
+ return S.suspend(() =>
1438
+ S.Struct({
1439
+ projectId: S.String.pipe(T.Label()),
1440
+ regionId: S.String.pipe(T.Label()),
1441
+ keyRingId: S.String.pipe(T.Label()),
1442
+ access_scope: S.optional(S.String),
1443
+ algorithm: S.String,
1444
+ description: S.optional(S.String),
1445
+ displayName: S.String,
1446
+ protection: S.String,
1447
+ purpose: S.String,
1448
+ }).pipe(
1449
+ T.Http({
1450
+ method: "POST",
1451
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/wrappingkeys",
1452
+ code: 200,
1453
+ baseUrl: "https://kms.api.stackit.cloud",
1454
+ }),
1455
+ ),
1456
+ ).annotate({ identifier: "CreateWrappingKeyRequest" });
1457
+ }
1458
+ }
1459
+ function __c25(j: number): any {
1460
+ switch (j) {
1461
+ case 0:
1462
+ return S.suspend(() =>
1463
+ S.Struct({
1464
+ access_scope: S.String,
1465
+ algorithm: S.String,
1466
+ createdAt: S.String,
1467
+ description: S.optional(S.String),
1468
+ displayName: S.String,
1469
+ expiresAt: S.String,
1470
+ id: S.String,
1471
+ keyRingId: S.String,
1472
+ protection: S.String,
1473
+ publicKey: S.optional(S.String),
1474
+ purpose: S.String,
1475
+ state: S.String,
1476
+ }),
1477
+ ).annotate({ identifier: "WrappingKey" });
1478
+ }
1479
+ }
1480
+ function __c26(j: number): any {
1481
+ switch (j) {
1482
+ case 0:
1483
+ return S.suspend(() =>
1484
+ S.Struct({
1485
+ projectId: S.String.pipe(T.Label()),
1486
+ regionId: S.String.pipe(T.Label()),
1487
+ keyRingId: S.String.pipe(T.Label()),
1488
+ keyId: S.String.pipe(T.Label()),
1489
+ versionNumber: S.Number.pipe(T.Label()),
1490
+ data: S.String,
1491
+ }).pipe(
1492
+ T.Http({
1493
+ method: "POST",
1494
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}/versions/{versionNumber}/decrypt",
1495
+ code: 200,
1496
+ baseUrl: "https://kms.api.stackit.cloud",
1497
+ }),
1498
+ ),
1499
+ ).annotate({ identifier: "DecryptRequest" });
1500
+ }
1501
+ }
1502
+ function __c27(j: number): any {
1503
+ switch (j) {
1504
+ case 0:
1505
+ return S.suspend(() =>
1506
+ S.Struct({
1507
+ data: S.String,
1508
+ }),
1509
+ ).annotate({ identifier: "DecryptedData" });
1510
+ }
1511
+ }
1512
+ function __c28(j: number): any {
1513
+ switch (j) {
1514
+ case 0:
1515
+ return S.suspend(() =>
1516
+ S.Struct({
1517
+ projectId: S.String.pipe(T.Label()),
1518
+ regionId: S.String.pipe(T.Label()),
1519
+ keyRingId: S.String.pipe(T.Label()),
1520
+ keyId: S.String.pipe(T.Label()),
1521
+ }).pipe(
1522
+ T.Http({
1523
+ method: "DELETE",
1524
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}/keys/{keyId}",
1525
+ code: 200,
1526
+ baseUrl: "https://kms.api.stackit.cloud",
1527
+ }),
1528
+ ),
1529
+ ).annotate({ identifier: "DeleteKeyRequest" });
1530
+ }
1531
+ }
1532
+ function __c29(j: number): any {
1533
+ switch (j) {
1534
+ case 0:
1535
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteKeyResponse" });
1536
+ }
1537
+ }
1538
+ function __c30(j: number): any {
1539
+ switch (j) {
1540
+ case 0:
1541
+ return S.suspend(() =>
1542
+ S.Struct({
1543
+ projectId: S.String.pipe(T.Label()),
1544
+ regionId: S.String.pipe(T.Label()),
1545
+ keyRingId: S.String.pipe(T.Label()),
1546
+ }).pipe(
1547
+ T.Http({
1548
+ method: "DELETE",
1549
+ uri: "/v1/projects/{projectId}/regions/{regionId}/keyrings/{keyRingId}",
1550
+ code: 200,
1551
+ baseUrl: "https://kms.api.stackit.cloud",
1552
+ }),
1553
+ ),
1554
+ ).annotate({ identifier: "DeleteKeyRingRequest" });
1555
+ }
1556
+ }
1557
+ // Schema table: entry i is schema j of builder f, made on first reach.
1558
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1559
+ return (__s[i] ??= __L.at(f, j));
1560
+ }