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

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 (289) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +3 -3
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts.map +1 -1
  6. package/lib/errors.js +1 -1
  7. package/lib/errors.js.map +1 -1
  8. package/lib/pagination.d.ts +1 -1
  9. package/lib/pagination.d.ts.map +1 -1
  10. package/lib/pagination.js +2 -5
  11. package/lib/pagination.js.map +1 -1
  12. package/lib/protocol.d.ts +3 -3
  13. package/lib/protocol.d.ts.map +1 -1
  14. package/lib/protocol.js +9 -10
  15. package/lib/protocol.js.map +1 -1
  16. package/lib/protocol.test.d.ts +2 -0
  17. package/lib/protocol.test.d.ts.map +1 -0
  18. package/lib/protocol.test.js +181 -0
  19. package/lib/protocol.test.js.map +1 -0
  20. package/lib/retry.d.ts +1 -1
  21. package/lib/retry.d.ts.map +1 -1
  22. package/lib/retry.js +1 -1
  23. package/lib/retry.js.map +1 -1
  24. package/lib/services/alb.d.ts +1 -1
  25. package/lib/services/alb.d.ts.map +1 -1
  26. package/lib/services/alb.js +33 -82
  27. package/lib/services/alb.js.map +1 -1
  28. package/lib/services/alb_waf.d.ts +1 -1
  29. package/lib/services/alb_waf.d.ts.map +1 -1
  30. package/lib/services/alb_waf.js +23 -47
  31. package/lib/services/alb_waf.js.map +1 -1
  32. package/lib/services/authorization.d.ts +1 -1
  33. package/lib/services/authorization.d.ts.map +1 -1
  34. package/lib/services/authorization.js +19 -49
  35. package/lib/services/authorization.js.map +1 -1
  36. package/lib/services/automation.d.ts +21 -58
  37. package/lib/services/automation.d.ts.map +1 -1
  38. package/lib/services/automation.js +49 -112
  39. package/lib/services/automation.js.map +1 -1
  40. package/lib/services/cdn.d.ts +2 -2
  41. package/lib/services/cdn.d.ts.map +1 -1
  42. package/lib/services/cdn.js +91 -177
  43. package/lib/services/cdn.js.map +1 -1
  44. package/lib/services/certificates.d.ts +1 -1
  45. package/lib/services/certificates.d.ts.map +1 -1
  46. package/lib/services/certificates.js +13 -31
  47. package/lib/services/certificates.js.map +1 -1
  48. package/lib/services/cost.d.ts +1 -1
  49. package/lib/services/cost.d.ts.map +1 -1
  50. package/lib/services/cost.js +17 -28
  51. package/lib/services/cost.js.map +1 -1
  52. package/lib/services/dns.d.ts +22 -55
  53. package/lib/services/dns.d.ts.map +1 -1
  54. package/lib/services/dns.js +72 -200
  55. package/lib/services/dns.js.map +1 -1
  56. package/lib/services/dremio.d.ts +1 -1
  57. package/lib/services/dremio.d.ts.map +1 -1
  58. package/lib/services/dremio.js +28 -50
  59. package/lib/services/dremio.js.map +1 -1
  60. package/lib/services/edge.d.ts +1 -1
  61. package/lib/services/edge.d.ts.map +1 -1
  62. package/lib/services/edge.js +14 -32
  63. package/lib/services/edge.js.map +1 -1
  64. package/lib/services/functions.d.ts +1 -1
  65. package/lib/services/functions.d.ts.map +1 -1
  66. package/lib/services/functions.js +19 -43
  67. package/lib/services/functions.js.map +1 -1
  68. package/lib/services/git.d.ts +1 -1
  69. package/lib/services/git.d.ts.map +1 -1
  70. package/lib/services/git.js +25 -57
  71. package/lib/services/git.js.map +1 -1
  72. package/lib/services/iaas.d.ts +31 -10
  73. package/lib/services/iaas.d.ts.map +1 -1
  74. package/lib/services/iaas.js +151 -376
  75. package/lib/services/iaas.js.map +1 -1
  76. package/lib/services/intake.d.ts +1 -1
  77. package/lib/services/intake.d.ts.map +1 -1
  78. package/lib/services/intake.js +45 -83
  79. package/lib/services/intake.js.map +1 -1
  80. package/lib/services/kms.d.ts +1 -1
  81. package/lib/services/kms.d.ts.map +1 -1
  82. package/lib/services/kms.js +63 -103
  83. package/lib/services/kms.js.map +1 -1
  84. package/lib/services/lb_ip_lists.d.ts +1 -3
  85. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  86. package/lib/services/lb_ip_lists.js +18 -37
  87. package/lib/services/lb_ip_lists.js.map +1 -1
  88. package/lib/services/load_balancer.d.ts +1 -1
  89. package/lib/services/load_balancer.d.ts.map +1 -1
  90. package/lib/services/load_balancer.js +32 -77
  91. package/lib/services/load_balancer.js.map +1 -1
  92. package/lib/services/logme.d.ts +1 -1
  93. package/lib/services/logme.d.ts.map +1 -1
  94. package/lib/services/logme.js +39 -101
  95. package/lib/services/logme.js.map +1 -1
  96. package/lib/services/logs.d.ts +1 -1
  97. package/lib/services/logs.d.ts.map +1 -1
  98. package/lib/services/logs.js +36 -59
  99. package/lib/services/logs.js.map +1 -1
  100. package/lib/services/mariadb.d.ts +1 -1
  101. package/lib/services/mariadb.d.ts.map +1 -1
  102. package/lib/services/mariadb.js +37 -97
  103. package/lib/services/mariadb.js.map +1 -1
  104. package/lib/services/model_experiments.d.ts +2 -2
  105. package/lib/services/model_experiments.d.ts.map +1 -1
  106. package/lib/services/model_experiments.js +27 -47
  107. package/lib/services/model_experiments.js.map +1 -1
  108. package/lib/services/model_serving.d.ts +2 -2
  109. package/lib/services/model_serving.d.ts.map +1 -1
  110. package/lib/services/model_serving.js +29 -61
  111. package/lib/services/model_serving.js.map +1 -1
  112. package/lib/services/mongodb_flex.d.ts +1 -1
  113. package/lib/services/mongodb_flex.d.ts.map +1 -1
  114. package/lib/services/mongodb_flex.js +76 -162
  115. package/lib/services/mongodb_flex.js.map +1 -1
  116. package/lib/services/object_storage.d.ts +25 -1
  117. package/lib/services/object_storage.d.ts.map +1 -1
  118. package/lib/services/object_storage.js +52 -89
  119. package/lib/services/object_storage.js.map +1 -1
  120. package/lib/services/observability.d.ts +5 -5
  121. package/lib/services/observability.d.ts.map +1 -1
  122. package/lib/services/observability.js +170 -419
  123. package/lib/services/observability.js.map +1 -1
  124. package/lib/services/opensearch.d.ts +1 -1
  125. package/lib/services/opensearch.d.ts.map +1 -1
  126. package/lib/services/opensearch.js +40 -100
  127. package/lib/services/opensearch.js.map +1 -1
  128. package/lib/services/pim.d.ts +1 -1
  129. package/lib/services/pim.d.ts.map +1 -1
  130. package/lib/services/pim.js +45 -98
  131. package/lib/services/pim.js.map +1 -1
  132. package/lib/services/postgres_flex.d.ts +2 -2
  133. package/lib/services/postgres_flex.d.ts.map +1 -1
  134. package/lib/services/postgres_flex.js +96 -261
  135. package/lib/services/postgres_flex.js.map +1 -1
  136. package/lib/services/pubsub.d.ts +2 -2
  137. package/lib/services/pubsub.d.ts.map +1 -1
  138. package/lib/services/pubsub.js +53 -148
  139. package/lib/services/pubsub.js.map +1 -1
  140. package/lib/services/rabbitmq.d.ts +2 -2
  141. package/lib/services/rabbitmq.d.ts.map +1 -1
  142. package/lib/services/rabbitmq.js +41 -103
  143. package/lib/services/rabbitmq.js.map +1 -1
  144. package/lib/services/registry.d.ts +1 -1
  145. package/lib/services/registry.d.ts.map +1 -1
  146. package/lib/services/registry.js +16 -39
  147. package/lib/services/registry.js.map +1 -1
  148. package/lib/services/resource_manager.d.ts +5 -5
  149. package/lib/services/resource_manager.d.ts.map +1 -1
  150. package/lib/services/resource_manager.js +23 -53
  151. package/lib/services/resource_manager.js.map +1 -1
  152. package/lib/services/run_command.d.ts +1 -1
  153. package/lib/services/run_command.d.ts.map +1 -1
  154. package/lib/services/run_command.js +15 -33
  155. package/lib/services/run_command.js.map +1 -1
  156. package/lib/services/sca.d.ts +18 -6
  157. package/lib/services/sca.d.ts.map +1 -1
  158. package/lib/services/sca.js +42 -75
  159. package/lib/services/sca.js.map +1 -1
  160. package/lib/services/scf.d.ts +1 -1
  161. package/lib/services/scf.d.ts.map +1 -1
  162. package/lib/services/scf.js +30 -78
  163. package/lib/services/scf.js.map +1 -1
  164. package/lib/services/secrets_manager.d.ts +1 -1
  165. package/lib/services/secrets_manager.d.ts.map +1 -1
  166. package/lib/services/secrets_manager.js +32 -78
  167. package/lib/services/secrets_manager.js.map +1 -1
  168. package/lib/services/server_backup.d.ts +1 -1
  169. package/lib/services/server_backup.d.ts.map +1 -1
  170. package/lib/services/server_backup.js +16 -36
  171. package/lib/services/server_backup.js.map +1 -1
  172. package/lib/services/server_update.d.ts +1 -1
  173. package/lib/services/server_update.d.ts.map +1 -1
  174. package/lib/services/server_update.js +10 -22
  175. package/lib/services/server_update.js.map +1 -1
  176. package/lib/services/service_account.d.ts +1 -1
  177. package/lib/services/service_account.d.ts.map +1 -1
  178. package/lib/services/service_account.js +32 -49
  179. package/lib/services/service_account.js.map +1 -1
  180. package/lib/services/service_enablement.d.ts +1 -1
  181. package/lib/services/service_enablement.d.ts.map +1 -1
  182. package/lib/services/service_enablement.js +11 -13
  183. package/lib/services/service_enablement.js.map +1 -1
  184. package/lib/services/sfs.d.ts +17 -17
  185. package/lib/services/sfs.d.ts.map +1 -1
  186. package/lib/services/sfs.js +34 -89
  187. package/lib/services/sfs.js.map +1 -1
  188. package/lib/services/ske.d.ts +27 -1
  189. package/lib/services/ske.d.ts.map +1 -1
  190. package/lib/services/ske.js +49 -89
  191. package/lib/services/ske.js.map +1 -1
  192. package/lib/services/sqlserverflex.d.ts +2 -2
  193. package/lib/services/sqlserverflex.d.ts.map +1 -1
  194. package/lib/services/sqlserverflex.js +104 -255
  195. package/lib/services/sqlserverflex.js.map +1 -1
  196. package/lib/services/stackit_marketplace.d.ts +4 -4
  197. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  198. package/lib/services/stackit_marketplace.js +17 -31
  199. package/lib/services/stackit_marketplace.js.map +1 -1
  200. package/lib/services/telemetry_link.d.ts +1 -1
  201. package/lib/services/telemetry_link.d.ts.map +1 -1
  202. package/lib/services/telemetry_link.js +34 -52
  203. package/lib/services/telemetry_link.js.map +1 -1
  204. package/lib/services/telemetry_router.d.ts +1 -1
  205. package/lib/services/telemetry_router.d.ts.map +1 -1
  206. package/lib/services/telemetry_router.js +49 -88
  207. package/lib/services/telemetry_router.js.map +1 -1
  208. package/lib/services/ufw.d.ts +1 -1
  209. package/lib/services/ufw.d.ts.map +1 -1
  210. package/lib/services/ufw.js +25 -47
  211. package/lib/services/ufw.js.map +1 -1
  212. package/lib/services/valkey.d.ts +2 -2
  213. package/lib/services/valkey.d.ts.map +1 -1
  214. package/lib/services/valkey.js +40 -100
  215. package/lib/services/valkey.js.map +1 -1
  216. package/lib/services/vpn.d.ts +1 -1
  217. package/lib/services/vpn.d.ts.map +1 -1
  218. package/lib/services/vpn.js +98 -180
  219. package/lib/services/vpn.js.map +1 -1
  220. package/lib/services/workflows.d.ts +1 -1
  221. package/lib/services/workflows.d.ts.map +1 -1
  222. package/lib/services/workflows.js +40 -88
  223. package/lib/services/workflows.js.map +1 -1
  224. package/lib/traits.d.ts.map +1 -1
  225. package/lib/traits.js +1 -1
  226. package/lib/traits.js.map +1 -1
  227. package/package.json +13 -11
  228. package/src/credentials.ts +10 -16
  229. package/src/errors.ts +1 -1
  230. package/src/pagination.ts +6 -22
  231. package/src/protocol.test.ts +304 -0
  232. package/src/protocol.ts +29 -47
  233. package/src/retry.ts +2 -8
  234. package/src/services/alb.ts +45 -128
  235. package/src/services/alb_waf.ts +35 -94
  236. package/src/services/authorization.ts +20 -56
  237. package/src/services/automation.ts +92 -262
  238. package/src/services/cdn.ts +191 -351
  239. package/src/services/certificates.ts +17 -49
  240. package/src/services/cost.ts +29 -64
  241. package/src/services/dns.ts +160 -495
  242. package/src/services/dremio.ts +35 -85
  243. package/src/services/edge.ts +37 -96
  244. package/src/services/functions.ts +31 -84
  245. package/src/services/git.ts +41 -122
  246. package/src/services/iaas.ts +392 -1184
  247. package/src/services/intake.ts +57 -124
  248. package/src/services/kms.ts +91 -192
  249. package/src/services/lb_ip_lists.ts +21 -56
  250. package/src/services/load_balancer.ts +43 -119
  251. package/src/services/logme.ts +55 -150
  252. package/src/services/logs.ts +57 -158
  253. package/src/services/mariadb.ts +45 -126
  254. package/src/services/model_experiments.ts +36 -92
  255. package/src/services/model_serving.ts +33 -76
  256. package/src/services/mongodb_flex.ts +113 -259
  257. package/src/services/object_storage.ts +101 -154
  258. package/src/services/observability.ts +635 -1127
  259. package/src/services/opensearch.ts +52 -141
  260. package/src/services/pim.ts +78 -183
  261. package/src/services/postgres_flex.ts +120 -366
  262. package/src/services/pubsub.ts +134 -277
  263. package/src/services/rabbitmq.ts +53 -145
  264. package/src/services/registry.ts +24 -72
  265. package/src/services/resource_manager.ts +46 -129
  266. package/src/services/run_command.ts +17 -45
  267. package/src/services/sca.ts +63 -98
  268. package/src/services/scf.ts +54 -195
  269. package/src/services/secrets_manager.ts +54 -136
  270. package/src/services/server_backup.ts +26 -75
  271. package/src/services/server_update.ts +15 -44
  272. package/src/services/service_account.ts +185 -272
  273. package/src/services/service_enablement.ts +18 -47
  274. package/src/services/sfs.ts +84 -166
  275. package/src/services/ske.ts +91 -113
  276. package/src/services/sqlserverflex.ts +147 -383
  277. package/src/services/stackit_marketplace.ts +184 -250
  278. package/src/services/telemetry_link.ts +199 -278
  279. package/src/services/telemetry_router.ts +73 -168
  280. package/src/services/ufw.ts +32 -82
  281. package/src/services/valkey.ts +54 -145
  282. package/src/services/vpn.ts +215 -404
  283. package/src/services/workflows.ts +57 -169
  284. package/src/traits.ts +2 -7
  285. package/lib/response-validation.test.d.ts +0 -4
  286. package/lib/response-validation.test.d.ts.map +0 -1
  287. package/lib/response-validation.test.js +0 -31
  288. package/lib/response-validation.test.js.map +0 -1
  289. package/src/response-validation.test.ts +0 -45
@@ -1,16 +1,12 @@
1
+ import * as API from "@distilled.cloud/core/api";
2
+ import * as C from "@distilled.cloud/core/category";
1
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
2
4
  import * as S from "@distilled.cloud/core/schema";
3
5
  import * as Redacted from "effect/Redacted";
4
- import * as API from "@distilled.cloud/core/api";
5
- import * as C from "@distilled.cloud/core/category";
6
- import * as T from "../traits.ts";
7
- import {
8
- StackitProtocol,
9
- type StackitOpError,
10
- type StackitOpContext,
11
- } from "../protocol.ts";
12
6
  import { UnknownStackitError } from "../errors.ts";
7
+ import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
13
8
  import * as Retry from "../retry.ts";
9
+ import * as T from "../traits.ts";
14
10
 
15
11
  export type { StackitOpError, StackitOpContext };
16
12
 
@@ -42,9 +38,7 @@ export class NotFound
42
38
  ) {}
43
39
 
44
40
  /** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per Certificate. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */
45
- export type CreateCertificateRequestLabelsMap = {
46
- [key: string]: string | undefined;
47
- };
41
+ export type CreateCertificateRequestLabelsMap = { [key: string]: string | undefined };
48
42
  export const CreateCertificateRequestLabelsMap = /*@__PURE__*/ S.Record(
49
43
  S.String,
50
44
  S.String,
@@ -78,9 +72,7 @@ export const CreateCertificateRequest = /*@__PURE__*/ S.suspend(() =>
78
72
  baseUrl: "https://certificates.api.stackit.cloud",
79
73
  }),
80
74
  ),
81
- ).annotate({
82
- identifier: "CreateCertificateRequest",
83
- }) as any as S.Schema<CreateCertificateRequest>;
75
+ ).annotate({ identifier: "CreateCertificateRequest" }) as any as S.Schema<CreateCertificateRequest>;
84
76
 
85
77
  export interface Data {
86
78
  /** Comma-separated list of all domains and IP addresses the certificate is valid for (Subject Alternative Names). */
@@ -135,9 +127,7 @@ export const Data = /*@__PURE__*/ S.suspend(() =>
135
127
  ).annotate({ identifier: "Data" }) as any as S.Schema<Data>;
136
128
 
137
129
  /** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per Certificate. **Key Formatting Rules:** Length: 1-63 characters. Characters: Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. Keys starting with 'stackit-' are system-reserved; users MUST NOT manage them. **Value Formatting Rules:** Length: 0-63 characters (empty string explicitly allowed). Characters (for non-empty values): Must begin and end with [a-zA-Z0-9]. May contain dashes (-), underscores (_), dots (.), and alphanumerics in between. */
138
- export type GetCertificateResponseLabelsMap = {
139
- [key: string]: string | undefined;
140
- };
130
+ export type GetCertificateResponseLabelsMap = { [key: string]: string | undefined };
141
131
  export const GetCertificateResponseLabelsMap = /*@__PURE__*/ S.Record(
142
132
  S.String,
143
133
  S.String,
@@ -164,9 +154,7 @@ export const UsageItem = /*@__PURE__*/ S.suspend(() =>
164
154
 
165
155
  /** List of Load Balancers with their associated listeners that use this certificate. */
166
156
  export type UsageItemsList = Array<UsageItem>;
167
- export const UsageItemsList = /*@__PURE__*/ S.Array(
168
- UsageItem,
169
- ) as any as S.Schema<UsageItemsList>;
157
+ export const UsageItemsList = /*@__PURE__*/ S.Array(UsageItem) as any as S.Schema<UsageItemsList>;
170
158
 
171
159
  export interface Usage {
172
160
  /** Number of listeners using this certificate. */
@@ -206,9 +194,7 @@ export const GetCertificateResponse = /*@__PURE__*/ S.suspend(() =>
206
194
  region: S.optional(S.String),
207
195
  usage: S.optional(Usage),
208
196
  }),
209
- ).annotate({
210
- identifier: "GetCertificateResponse",
211
- }) as any as S.Schema<GetCertificateResponse>;
197
+ ).annotate({ identifier: "GetCertificateResponse" }) as any as S.Schema<GetCertificateResponse>;
212
198
 
213
199
  export interface DeleteCertificateRequest {
214
200
  projectId: string;
@@ -228,9 +214,7 @@ export const DeleteCertificateRequest = /*@__PURE__*/ S.suspend(() =>
228
214
  baseUrl: "https://certificates.api.stackit.cloud",
229
215
  }),
230
216
  ),
231
- ).annotate({
232
- identifier: "DeleteCertificateRequest",
233
- }) as any as S.Schema<DeleteCertificateRequest>;
217
+ ).annotate({ identifier: "DeleteCertificateRequest" }) as any as S.Schema<DeleteCertificateRequest>;
234
218
 
235
219
  export type DeleteCertificateResponse2 = unknown;
236
220
  export const DeleteCertificateResponse2 = /*@__PURE__*/ S.suspend(() =>
@@ -257,9 +241,7 @@ export const GetCertificateRequest = /*@__PURE__*/ S.suspend(() =>
257
241
  baseUrl: "https://certificates.api.stackit.cloud",
258
242
  }),
259
243
  ),
260
- ).annotate({
261
- identifier: "GetCertificateRequest",
262
- }) as any as S.Schema<GetCertificateRequest>;
244
+ ).annotate({ identifier: "GetCertificateRequest" }) as any as S.Schema<GetCertificateRequest>;
263
245
 
264
246
  export interface GetQuotaRequest {
265
247
  projectId: string;
@@ -277,9 +259,7 @@ export const GetQuotaRequest = /*@__PURE__*/ S.suspend(() =>
277
259
  baseUrl: "https://certificates.api.stackit.cloud",
278
260
  }),
279
261
  ),
280
- ).annotate({
281
- identifier: "GetQuotaRequest",
282
- }) as any as S.Schema<GetQuotaRequest>;
262
+ ).annotate({ identifier: "GetQuotaRequest" }) as any as S.Schema<GetQuotaRequest>;
283
263
 
284
264
  /** Certificates quotas holds the limits and usage for certificates resources */
285
265
  export interface CertificatesQuota {
@@ -293,9 +273,7 @@ export const CertificatesQuota = /*@__PURE__*/ S.suspend(() =>
293
273
  limit: S.optional(S.Number),
294
274
  usage: S.optional(S.Number),
295
275
  }),
296
- ).annotate({
297
- identifier: "CertificatesQuota",
298
- }) as any as S.Schema<CertificatesQuota>;
276
+ ).annotate({ identifier: "CertificatesQuota" }) as any as S.Schema<CertificatesQuota>;
299
277
 
300
278
  /** Quotas holds the specific quota elements for different resources */
301
279
  export interface Quotas {
@@ -320,9 +298,7 @@ export const GetQuotaResponse = /*@__PURE__*/ S.suspend(() =>
320
298
  quotas: S.optional(Quotas),
321
299
  region: S.optional(S.String),
322
300
  }),
323
- ).annotate({
324
- identifier: "GetQuotaResponse",
325
- }) as any as S.Schema<GetQuotaResponse>;
301
+ ).annotate({ identifier: "GetQuotaResponse" }) as any as S.Schema<GetQuotaResponse>;
326
302
 
327
303
  export interface ListCertificatesRequest {
328
304
  projectId: string;
@@ -346,9 +322,7 @@ export const ListCertificatesRequest = /*@__PURE__*/ S.suspend(() =>
346
322
  baseUrl: "https://certificates.api.stackit.cloud",
347
323
  }),
348
324
  ),
349
- ).annotate({
350
- identifier: "ListCertificatesRequest",
351
- }) as any as S.Schema<ListCertificatesRequest>;
325
+ ).annotate({ identifier: "ListCertificatesRequest" }) as any as S.Schema<ListCertificatesRequest>;
352
326
 
353
327
  export type ListCertificatesResponseItemsList = Array<GetCertificateResponse>;
354
328
  export const ListCertificatesResponseItemsList = /*@__PURE__*/ S.Array(
@@ -366,9 +340,7 @@ export const ListCertificatesResponse = /*@__PURE__*/ S.suspend(() =>
366
340
  items: S.optional(ListCertificatesResponseItemsList),
367
341
  nextPageId: S.optional(S.String),
368
342
  }),
369
- ).annotate({
370
- identifier: "ListCertificatesResponse",
371
- }) as any as S.Schema<ListCertificatesResponse>;
343
+ ).annotate({ identifier: "ListCertificatesResponse" }) as any as S.Schema<ListCertificatesResponse>;
372
344
 
373
345
  export type CreateCertificateError = BadRequest | Forbidden | StackitOpError;
374
346
  /** Store a TLS certificate in a project. CreateCertificate will store a TLS certificate in a project. */
@@ -400,11 +372,7 @@ export const deleteCertificate: API.OperationMethod<
400
372
  retry: Retry.Retry,
401
373
  }));
402
374
 
403
- export type GetCertificateError =
404
- | BadRequest
405
- | Forbidden
406
- | NotFound
407
- | StackitOpError;
375
+ export type GetCertificateError = BadRequest | Forbidden | NotFound | StackitOpError;
408
376
  /** Retrieve the public parts of a stored TLS certificate. GetCertificate will return the public parts of a stored TLS certificate. */
409
377
  export const getCertificate: API.OperationMethod<
410
378
  GetCertificateRequest,
@@ -1,15 +1,11 @@
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
1
  import * as API from "@distilled.cloud/core/api";
4
2
  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";
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";
11
5
  import { UnknownStackitError } from "../errors.ts";
6
+ import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
12
7
  import * as Retry from "../retry.ts";
8
+ import * as T from "../traits.ts";
13
9
 
14
10
  export type { StackitOpError, StackitOpContext };
15
11
 
@@ -41,7 +37,7 @@ export class NotFound
41
37
  ) {}
42
38
 
43
39
  export type GetCostsForProjectRequestDepth = "project" | "service" | "auto";
44
- export const GetCostsForProjectRequestDepth = /*@__PURE__*/ S.String;
40
+ export const GetCostsForProjectRequestDepth = S.String;
45
41
 
46
42
  export type GetCostsForProjectRequestGranularity =
47
43
  | "daily"
@@ -49,7 +45,7 @@ export type GetCostsForProjectRequestGranularity =
49
45
  | "monthly"
50
46
  | "yearly"
51
47
  | "none";
52
- export const GetCostsForProjectRequestGranularity = /*@__PURE__*/ S.String;
48
+ export const GetCostsForProjectRequestGranularity = S.String;
53
49
 
54
50
  export interface GetCostsForProjectRequest {
55
51
  /** ID of a customer account */
@@ -74,9 +70,7 @@ export const GetCostsForProjectRequest = /*@__PURE__*/ S.suspend(() =>
74
70
  from: S.String.pipe(T.Query()),
75
71
  to: S.String.pipe(T.Query()),
76
72
  depth: S.optional(GetCostsForProjectRequestDepth.pipe(T.Query())),
77
- granularity: S.optional(
78
- GetCostsForProjectRequestGranularity.pipe(T.Query()),
79
- ),
73
+ granularity: S.optional(GetCostsForProjectRequestGranularity.pipe(T.Query())),
80
74
  includeZeroCosts: S.optional(S.Boolean.pipe(T.Query())),
81
75
  }).pipe(
82
76
  T.Http({
@@ -108,9 +102,7 @@ export const SummarizedProjectCost = /*@__PURE__*/ S.suspend(() =>
108
102
  totalCharge: S.Number,
109
103
  totalDiscount: S.Number,
110
104
  }),
111
- ).annotate({
112
- identifier: "SummarizedProjectCost",
113
- }) as any as S.Schema<SummarizedProjectCost>;
105
+ ).annotate({ identifier: "SummarizedProjectCost" }) as any as S.Schema<SummarizedProjectCost>;
114
106
 
115
107
  /** Time period according to desired granularity */
116
108
  export interface ReportDataTimePeriod {
@@ -122,9 +114,7 @@ export const ReportDataTimePeriod = /*@__PURE__*/ S.suspend(() =>
122
114
  end: S.optional(S.String),
123
115
  start: S.optional(S.String),
124
116
  }),
125
- ).annotate({
126
- identifier: "ReportDataTimePeriod",
127
- }) as any as S.Schema<ReportDataTimePeriod>;
117
+ ).annotate({ identifier: "ReportDataTimePeriod" }) as any as S.Schema<ReportDataTimePeriod>;
128
118
 
129
119
  /** Costs report for a certain period of time */
130
120
  export interface ReportData {
@@ -176,21 +166,17 @@ export const ProjectCostWithReports = /*@__PURE__*/ S.suspend(() =>
176
166
  totalCharge: S.Number,
177
167
  totalDiscount: S.Number,
178
168
  }),
179
- ).annotate({
180
- identifier: "ProjectCostWithReports",
181
- }) as any as S.Schema<ProjectCostWithReports>;
169
+ ).annotate({ identifier: "ProjectCostWithReports" }) as any as S.Schema<ProjectCostWithReports>;
182
170
 
183
171
  /** Summarized costs for a project */
184
172
  export type SummarizedServiceCost = SummarizedProjectCost;
185
173
  export const SummarizedServiceCost = SummarizedProjectCost;
186
174
 
187
175
  /** Summarized service costs */
188
- export type ProjectCostWithSummarizedServicesServicesList =
189
- Array<SummarizedProjectCost>;
190
- export const ProjectCostWithSummarizedServicesServicesList =
191
- /*@__PURE__*/ S.Array(
192
- SummarizedProjectCost,
193
- ) as any as S.Schema<ProjectCostWithSummarizedServicesServicesList>;
176
+ export type ProjectCostWithSummarizedServicesServicesList = Array<SummarizedProjectCost>;
177
+ export const ProjectCostWithSummarizedServicesServicesList = /*@__PURE__*/ S.Array(
178
+ SummarizedProjectCost,
179
+ ) as any as S.Schema<ProjectCostWithSummarizedServicesServicesList>;
194
180
 
195
181
  /** Costs for a project including summarized service costs */
196
182
  export interface ProjectCostWithSummarizedServices {
@@ -256,17 +242,13 @@ export const DetailedServiceCost = /*@__PURE__*/ S.suspend(() =>
256
242
  totalQuantityDecimal: S.String,
257
243
  unitLabel: S.String,
258
244
  }),
259
- ).annotate({
260
- identifier: "DetailedServiceCost",
261
- }) as any as S.Schema<DetailedServiceCost>;
245
+ ).annotate({ identifier: "DetailedServiceCost" }) as any as S.Schema<DetailedServiceCost>;
262
246
 
263
247
  /** Total discount for all services and the whole requested date range (value in cents). Please see "depth" parameter for more details. */
264
- export type ProjectCostWithDetailedServicesServicesList =
265
- Array<DetailedServiceCost>;
266
- export const ProjectCostWithDetailedServicesServicesList =
267
- /*@__PURE__*/ S.Array(
268
- DetailedServiceCost,
269
- ) as any as S.Schema<ProjectCostWithDetailedServicesServicesList>;
248
+ export type ProjectCostWithDetailedServicesServicesList = Array<DetailedServiceCost>;
249
+ export const ProjectCostWithDetailedServicesServicesList = /*@__PURE__*/ S.Array(
250
+ DetailedServiceCost,
251
+ ) as any as S.Schema<ProjectCostWithDetailedServicesServicesList>;
270
252
 
271
253
  /** Detailed costs for a project including service costs */
272
254
  export interface ProjectCostWithDetailedServices {
@@ -298,8 +280,7 @@ export type ProjectCost =
298
280
  | ProjectCostWithReports
299
281
  | ProjectCostWithSummarizedServices
300
282
  | ProjectCostWithDetailedServices;
301
- export const ProjectCost =
302
- /*@__PURE__*/ S.Unknown as any as S.Schema<ProjectCost>;
283
+ export const ProjectCost = /*@__PURE__*/ S.Unknown as any as S.Schema<ProjectCost>;
303
284
 
304
285
  export type GetCostsForProjectResponse = ProjectCost;
305
286
  export const GetCostsForProjectResponse = /*@__PURE__*/ S.suspend(() =>
@@ -309,7 +290,7 @@ export const GetCostsForProjectResponse = /*@__PURE__*/ S.suspend(() =>
309
290
  }) as any as S.Schema<GetCostsForProjectResponse>;
310
291
 
311
292
  export type ListCostsForCustomerRequestDepth = "project" | "service" | "auto";
312
- export const ListCostsForCustomerRequestDepth = /*@__PURE__*/ S.String;
293
+ export const ListCostsForCustomerRequestDepth = S.String;
313
294
 
314
295
  export type ListCostsForCustomerRequestGranularity =
315
296
  | "daily"
@@ -317,7 +298,7 @@ export type ListCostsForCustomerRequestGranularity =
317
298
  | "monthly"
318
299
  | "yearly"
319
300
  | "none";
320
- export const ListCostsForCustomerRequestGranularity = /*@__PURE__*/ S.String;
301
+ export const ListCostsForCustomerRequestGranularity = S.String;
321
302
 
322
303
  export interface ListCostsForCustomerRequest {
323
304
  /** ID of a customer account */
@@ -339,9 +320,7 @@ export const ListCostsForCustomerRequest = /*@__PURE__*/ S.suspend(() =>
339
320
  from: S.String.pipe(T.Query()),
340
321
  to: S.String.pipe(T.Query()),
341
322
  depth: S.optional(ListCostsForCustomerRequestDepth.pipe(T.Query())),
342
- granularity: S.optional(
343
- ListCostsForCustomerRequestGranularity.pipe(T.Query()),
344
- ),
323
+ granularity: S.optional(ListCostsForCustomerRequestGranularity.pipe(T.Query())),
345
324
  includeZeroCosts: S.optional(S.Boolean.pipe(T.Query())),
346
325
  }).pipe(
347
326
  T.Http({
@@ -368,7 +347,7 @@ export const ListCostsForCustomerResponse = /*@__PURE__*/ S.suspend(() =>
368
347
  }) as any as S.Schema<ListCostsForCustomerResponse>;
369
348
 
370
349
  export type ListCostsForResellerRequestDepth = "project" | "service" | "auto";
371
- export const ListCostsForResellerRequestDepth = /*@__PURE__*/ S.String;
350
+ export const ListCostsForResellerRequestDepth = S.String;
372
351
 
373
352
  export type ListCostsForResellerRequestGranularity =
374
353
  | "daily"
@@ -376,7 +355,7 @@ export type ListCostsForResellerRequestGranularity =
376
355
  | "monthly"
377
356
  | "yearly"
378
357
  | "none";
379
- export const ListCostsForResellerRequestGranularity = /*@__PURE__*/ S.String;
358
+ export const ListCostsForResellerRequestGranularity = S.String;
380
359
 
381
360
  export interface ListCostsForResellerRequest {
382
361
  /** ID of a customer account */
@@ -398,9 +377,7 @@ export const ListCostsForResellerRequest = /*@__PURE__*/ S.suspend(() =>
398
377
  from: S.String.pipe(T.Query()),
399
378
  to: S.String.pipe(T.Query()),
400
379
  depth: S.optional(ListCostsForResellerRequestDepth.pipe(T.Query())),
401
- granularity: S.optional(
402
- ListCostsForResellerRequestGranularity.pipe(T.Query()),
403
- ),
380
+ granularity: S.optional(ListCostsForResellerRequestGranularity.pipe(T.Query())),
404
381
  includeZeroCosts: S.optional(S.Boolean.pipe(T.Query())),
405
382
  }).pipe(
406
383
  T.Http({
@@ -426,11 +403,7 @@ export const ListCostsForResellerResponse = /*@__PURE__*/ S.suspend(() =>
426
403
  identifier: "ListCostsForResellerResponse",
427
404
  }) as any as S.Schema<ListCostsForResellerResponse>;
428
405
 
429
- export type GetCostsForProjectError =
430
- | BadRequest
431
- | Forbidden
432
- | NotFound
433
- | StackitOpError;
406
+ export type GetCostsForProjectError = BadRequest | Forbidden | NotFound | StackitOpError;
434
407
  /** V3 Costs for a certain project Get costs for a certain project in a customer account */
435
408
  export const getCostsForProject: API.OperationMethod<
436
409
  GetCostsForProjectRequest,
@@ -445,11 +418,7 @@ export const getCostsForProject: API.OperationMethod<
445
418
  retry: Retry.Retry,
446
419
  }));
447
420
 
448
- export type ListCostsForCustomerError =
449
- | BadRequest
450
- | Forbidden
451
- | NotFound
452
- | StackitOpError;
421
+ export type ListCostsForCustomerError = BadRequest | Forbidden | NotFound | StackitOpError;
453
422
  /** V3 Costs for all projects Get costs for all projects in a customer account */
454
423
  export const listCostsForCustomer: API.OperationMethod<
455
424
  ListCostsForCustomerRequest,
@@ -464,11 +433,7 @@ export const listCostsForCustomer: API.OperationMethod<
464
433
  retry: Retry.Retry,
465
434
  }));
466
435
 
467
- export type ListCostsForResellerError =
468
- | BadRequest
469
- | Forbidden
470
- | NotFound
471
- | StackitOpError;
436
+ export type ListCostsForResellerError = BadRequest | Forbidden | NotFound | StackitOpError;
472
437
  /** V3 Costs for all projects of all related sub-customers Get costs for all projects of all related sub-customer accounts */
473
438
  export const listCostsForReseller: API.OperationMethod<
474
439
  ListCostsForResellerRequest,