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