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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +32 -28
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +13 -13
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +16 -16
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +22 -22
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +15 -15
  13. package/lib/protocol.d.ts +3 -3
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +31 -29
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +24 -23
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/alb.d.ts +10 -87
  22. package/lib/services/alb.d.ts.map +1 -1
  23. package/lib/services/alb.js +73 -502
  24. package/lib/services/alb_waf.d.ts +9 -82
  25. package/lib/services/alb_waf.d.ts.map +1 -1
  26. package/lib/services/alb_waf.js +84 -510
  27. package/lib/services/authorization.d.ts +5 -47
  28. package/lib/services/authorization.d.ts.map +1 -1
  29. package/lib/services/authorization.js +67 -314
  30. package/lib/services/automation.d.ts +7 -47
  31. package/lib/services/automation.d.ts.map +1 -1
  32. package/lib/services/automation.js +58 -353
  33. package/lib/services/cdn.d.ts +8 -220
  34. package/lib/services/cdn.d.ts.map +1 -1
  35. package/lib/services/cdn.js +81 -896
  36. package/lib/services/certificates.d.ts +8 -27
  37. package/lib/services/certificates.d.ts.map +1 -1
  38. package/lib/services/certificates.js +45 -171
  39. package/lib/services/cost.d.ts +10 -37
  40. package/lib/services/cost.d.ts.map +1 -1
  41. package/lib/services/cost.js +39 -169
  42. package/lib/services/dns.d.ts +9 -104
  43. package/lib/services/dns.d.ts.map +1 -1
  44. package/lib/services/dns.js +98 -714
  45. package/lib/services/dremio.d.ts +8 -50
  46. package/lib/services/dremio.d.ts.map +1 -1
  47. package/lib/services/dremio.js +56 -307
  48. package/lib/services/edge.d.ts +7 -40
  49. package/lib/services/edge.d.ts.map +1 -1
  50. package/lib/services/edge.js +66 -347
  51. package/lib/services/functions.d.ts +1 -48
  52. package/lib/services/functions.d.ts.map +1 -1
  53. package/lib/services/functions.js +64 -393
  54. package/lib/services/git.d.ts +8 -61
  55. package/lib/services/git.d.ts.map +1 -1
  56. package/lib/services/git.js +87 -510
  57. package/lib/services/iaas.d.ts +9 -337
  58. package/lib/services/iaas.d.ts.map +1 -1
  59. package/lib/services/iaas.js +409 -3532
  60. package/lib/services/intake.d.ts +8 -75
  61. package/lib/services/intake.d.ts.map +1 -1
  62. package/lib/services/intake.js +74 -465
  63. package/lib/services/kms.d.ts +9 -92
  64. package/lib/services/kms.d.ts.map +1 -1
  65. package/lib/services/kms.js +95 -650
  66. package/lib/services/lb_ip_lists.d.ts +9 -25
  67. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  68. package/lib/services/lb_ip_lists.js +45 -146
  69. package/lib/services/load_balancer.d.ts +10 -81
  70. package/lib/services/load_balancer.d.ts.map +1 -1
  71. package/lib/services/load_balancer.js +76 -486
  72. package/lib/services/logme.d.ts +8 -69
  73. package/lib/services/logme.d.ts.map +1 -1
  74. package/lib/services/logme.js +82 -564
  75. package/lib/services/logs.d.ts +8 -64
  76. package/lib/services/logs.d.ts.map +1 -1
  77. package/lib/services/logs.js +84 -465
  78. package/lib/services/mariadb.d.ts +8 -65
  79. package/lib/services/mariadb.d.ts.map +1 -1
  80. package/lib/services/mariadb.js +84 -541
  81. package/lib/services/model_experiments.d.ts +9 -48
  82. package/lib/services/model_experiments.d.ts.map +1 -1
  83. package/lib/services/model_experiments.js +66 -325
  84. package/lib/services/model_serving.d.ts +7 -47
  85. package/lib/services/model_serving.d.ts.map +1 -1
  86. package/lib/services/model_serving.js +55 -277
  87. package/lib/services/mongodb_flex.d.ts +8 -137
  88. package/lib/services/mongodb_flex.d.ts.map +1 -1
  89. package/lib/services/mongodb_flex.js +102 -793
  90. package/lib/services/object_storage.d.ts +12 -59
  91. package/lib/services/object_storage.d.ts.map +1 -1
  92. package/lib/services/object_storage.js +93 -528
  93. package/lib/services/observability.d.ts +8 -407
  94. package/lib/services/observability.d.ts.map +1 -1
  95. package/lib/services/observability.js +375 -3148
  96. package/lib/services/opensearch.d.ts +8 -71
  97. package/lib/services/opensearch.d.ts.map +1 -1
  98. package/lib/services/opensearch.js +85 -553
  99. package/lib/services/pim.d.ts +12 -108
  100. package/lib/services/pim.d.ts.map +1 -1
  101. package/lib/services/pim.js +81 -726
  102. package/lib/services/postgres_flex.d.ts +14 -136
  103. package/lib/services/postgres_flex.d.ts.map +1 -1
  104. package/lib/services/postgres_flex.js +114 -841
  105. package/lib/services/pubsub.d.ts +11 -73
  106. package/lib/services/pubsub.d.ts.map +1 -1
  107. package/lib/services/pubsub.js +92 -507
  108. package/lib/services/rabbitmq.d.ts +8 -76
  109. package/lib/services/rabbitmq.d.ts.map +1 -1
  110. package/lib/services/rabbitmq.js +88 -564
  111. package/lib/services/registry.d.ts +10 -28
  112. package/lib/services/registry.d.ts.map +1 -1
  113. package/lib/services/registry.js +49 -189
  114. package/lib/services/resource_manager.d.ts +9 -61
  115. package/lib/services/resource_manager.d.ts.map +1 -1
  116. package/lib/services/resource_manager.js +92 -462
  117. package/lib/services/run_command.d.ts +5 -28
  118. package/lib/services/run_command.d.ts.map +1 -1
  119. package/lib/services/run_command.js +38 -176
  120. package/lib/services/sca.d.ts +8 -79
  121. package/lib/services/sca.d.ts.map +1 -1
  122. package/lib/services/sca.js +63 -435
  123. package/lib/services/scf.d.ts +8 -64
  124. package/lib/services/scf.d.ts.map +1 -1
  125. package/lib/services/scf.js +99 -660
  126. package/lib/services/secrets_manager.d.ts +8 -61
  127. package/lib/services/secrets_manager.d.ts.map +1 -1
  128. package/lib/services/secrets_manager.js +99 -601
  129. package/lib/services/server_backup.d.ts +7 -50
  130. package/lib/services/server_backup.d.ts.map +1 -1
  131. package/lib/services/server_backup.js +70 -444
  132. package/lib/services/server_update.d.ts +7 -35
  133. package/lib/services/server_update.d.ts.map +1 -1
  134. package/lib/services/server_update.js +58 -342
  135. package/lib/services/service_account.d.ts +10 -68
  136. package/lib/services/service_account.d.ts.map +1 -1
  137. package/lib/services/service_account.js +75 -495
  138. package/lib/services/service_enablement.d.ts +7 -29
  139. package/lib/services/service_enablement.d.ts.map +1 -1
  140. package/lib/services/service_enablement.js +40 -147
  141. package/lib/services/sfs.d.ts +4 -96
  142. package/lib/services/sfs.d.ts.map +1 -1
  143. package/lib/services/sfs.js +117 -782
  144. package/lib/services/ske.d.ts +9 -108
  145. package/lib/services/ske.d.ts.map +1 -1
  146. package/lib/services/ske.js +67 -549
  147. package/lib/services/sqlserverflex.d.ts +11 -152
  148. package/lib/services/sqlserverflex.d.ts.map +1 -1
  149. package/lib/services/sqlserverflex.js +112 -925
  150. package/lib/services/stackit_marketplace.d.ts +9 -38
  151. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  152. package/lib/services/stackit_marketplace.js +64 -369
  153. package/lib/services/telemetry_link.d.ts +8 -61
  154. package/lib/services/telemetry_link.d.ts.map +1 -1
  155. package/lib/services/telemetry_link.js +81 -522
  156. package/lib/services/telemetry_router.d.ts +8 -72
  157. package/lib/services/telemetry_router.d.ts.map +1 -1
  158. package/lib/services/telemetry_router.js +73 -474
  159. package/lib/services/ufw.d.ts +7 -42
  160. package/lib/services/ufw.d.ts.map +1 -1
  161. package/lib/services/ufw.js +55 -269
  162. package/lib/services/valkey.d.ts +8 -68
  163. package/lib/services/valkey.d.ts.map +1 -1
  164. package/lib/services/valkey.js +85 -557
  165. package/lib/services/vpn.d.ts +21 -186
  166. package/lib/services/vpn.d.ts.map +1 -1
  167. package/lib/services/vpn.js +105 -920
  168. package/lib/services/workflows.d.ts +15 -84
  169. package/lib/services/workflows.d.ts.map +1 -1
  170. package/lib/services/workflows.js +67 -497
  171. package/lib/traits.d.ts +1 -1
  172. package/lib/traits.js +10 -10
  173. package/package.json +13 -9
  174. package/src/credentials.ts +21 -18
  175. package/src/errors.ts +10 -14
  176. package/src/index.ts +2 -2
  177. package/src/pagination.ts +2 -2
  178. package/src/protocol.ts +12 -9
  179. package/src/retry.ts +6 -4
  180. package/src/services/alb.ts +599 -655
  181. package/src/services/alb_waf.ts +597 -637
  182. package/src/services/authorization.ts +400 -383
  183. package/src/services/automation.ts +422 -405
  184. package/src/services/cdn.ts +817 -1375
  185. package/src/services/certificates.ts +209 -190
  186. package/src/services/cost.ts +100 -207
  187. package/src/services/dns.ts +793 -833
  188. package/src/services/dremio.ts +356 -349
  189. package/src/services/edge.ts +406 -366
  190. package/src/services/functions.ts +465 -463
  191. package/src/services/git.ts +602 -547
  192. package/src/services/iaas.ts +3931 -3821
  193. package/src/services/intake.ts +521 -549
  194. package/src/services/kms.ts +715 -692
  195. package/src/services/lb_ip_lists.ts +173 -152
  196. package/src/services/load_balancer.ts +576 -619
  197. package/src/services/logme.ts +696 -641
  198. package/src/services/logs.ts +510 -493
  199. package/src/services/mariadb.ts +671 -604
  200. package/src/services/model_experiments.ts +343 -356
  201. package/src/services/model_serving.ts +337 -328
  202. package/src/services/mongodb_flex.ts +955 -1007
  203. package/src/services/object_storage.ts +614 -557
  204. package/src/services/observability.ts +3469 -3866
  205. package/src/services/opensearch.ts +679 -628
  206. package/src/services/pim.ts +672 -909
  207. package/src/services/postgres_flex.ts +966 -986
  208. package/src/services/pubsub.ts +524 -546
  209. package/src/services/rabbitmq.ts +693 -654
  210. package/src/services/registry.ts +227 -194
  211. package/src/services/resource_manager.ts +520 -517
  212. package/src/services/run_command.ts +219 -211
  213. package/src/services/sca.ts +543 -570
  214. package/src/services/scf.ts +790 -716
  215. package/src/services/secrets_manager.ts +707 -622
  216. package/src/services/server_backup.ts +490 -475
  217. package/src/services/server_update.ts +353 -356
  218. package/src/services/service_account.ts +515 -553
  219. package/src/services/service_enablement.ts +162 -166
  220. package/src/services/sfs.ts +879 -958
  221. package/src/services/ske.ts +694 -769
  222. package/src/services/sqlserverflex.ts +1042 -1117
  223. package/src/services/stackit_marketplace.ts +377 -372
  224. package/src/services/telemetry_link.ts +530 -531
  225. package/src/services/telemetry_router.ts +509 -534
  226. package/src/services/ufw.ts +305 -307
  227. package/src/services/valkey.ts +684 -629
  228. package/src/services/vpn.ts +935 -1195
  229. package/src/services/workflows.ts +426 -586
  230. package/src/traits.ts +1 -1
  231. package/lib/protocol.test.d.ts +0 -2
  232. package/lib/protocol.test.d.ts.map +0 -1
  233. package/lib/protocol.test.js +0 -181
  234. package/lib/protocol.test.js.map +0 -1
  235. package/lib/services/alb.js.map +0 -1
  236. package/lib/services/alb_waf.js.map +0 -1
  237. package/lib/services/authorization.js.map +0 -1
  238. package/lib/services/automation.js.map +0 -1
  239. package/lib/services/cdn.js.map +0 -1
  240. package/lib/services/certificates.js.map +0 -1
  241. package/lib/services/cost.js.map +0 -1
  242. package/lib/services/dns.js.map +0 -1
  243. package/lib/services/dremio.js.map +0 -1
  244. package/lib/services/edge.js.map +0 -1
  245. package/lib/services/functions.js.map +0 -1
  246. package/lib/services/git.js.map +0 -1
  247. package/lib/services/iaas.js.map +0 -1
  248. package/lib/services/intake.js.map +0 -1
  249. package/lib/services/kms.js.map +0 -1
  250. package/lib/services/lb_ip_lists.js.map +0 -1
  251. package/lib/services/load_balancer.js.map +0 -1
  252. package/lib/services/logme.js.map +0 -1
  253. package/lib/services/logs.js.map +0 -1
  254. package/lib/services/mariadb.js.map +0 -1
  255. package/lib/services/model_experiments.js.map +0 -1
  256. package/lib/services/model_serving.js.map +0 -1
  257. package/lib/services/mongodb_flex.js.map +0 -1
  258. package/lib/services/object_storage.js.map +0 -1
  259. package/lib/services/observability.js.map +0 -1
  260. package/lib/services/opensearch.js.map +0 -1
  261. package/lib/services/pim.js.map +0 -1
  262. package/lib/services/postgres_flex.js.map +0 -1
  263. package/lib/services/pubsub.js.map +0 -1
  264. package/lib/services/rabbitmq.js.map +0 -1
  265. package/lib/services/registry.js.map +0 -1
  266. package/lib/services/resource_manager.js.map +0 -1
  267. package/lib/services/run_command.js.map +0 -1
  268. package/lib/services/sca.js.map +0 -1
  269. package/lib/services/scf.js.map +0 -1
  270. package/lib/services/secrets_manager.js.map +0 -1
  271. package/lib/services/server_backup.js.map +0 -1
  272. package/lib/services/server_update.js.map +0 -1
  273. package/lib/services/service_account.js.map +0 -1
  274. package/lib/services/service_enablement.js.map +0 -1
  275. package/lib/services/sfs.js.map +0 -1
  276. package/lib/services/ske.js.map +0 -1
  277. package/lib/services/sqlserverflex.js.map +0 -1
  278. package/lib/services/stackit_marketplace.js.map +0 -1
  279. package/lib/services/telemetry_link.js.map +0 -1
  280. package/lib/services/telemetry_router.js.map +0 -1
  281. package/lib/services/ufw.js.map +0 -1
  282. package/lib/services/valkey.js.map +0 -1
  283. package/lib/services/vpn.js.map +0 -1
  284. package/lib/services/workflows.js.map +0 -1
  285. package/src/protocol.test.ts +0 -304
@@ -1,12 +1,15 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
4
- import * as S from "@distilled.cloud/core/schema";
5
- import * as Redacted from "effect/Redacted";
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
6
+ import type * as Redacted from "effect/Redacted";
6
7
  import { UnknownStackitError } from "../errors.ts";
7
8
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
8
9
  import * as Retry from "../retry.ts";
9
10
  import * as T from "../traits.ts";
11
+ // Schema table, filled on first reach (see __S at the end).
12
+ const __s: any[] = [];
10
13
 
11
14
  export type { StackitOpError, StackitOpContext };
12
15
 
@@ -39,11 +42,6 @@ export class NotFound
39
42
 
40
43
  /** 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. */
41
44
  export type CreateCertificateRequestLabelsMap = { [key: string]: string | undefined };
42
- export const CreateCertificateRequestLabelsMap = /*@__PURE__*/ S.Record(
43
- S.String,
44
- S.String,
45
- ) as any as S.Schema<CreateCertificateRequestLabelsMap>;
46
-
47
45
  export interface CreateCertificateRequest {
48
46
  projectId: string;
49
47
  region: string;
@@ -56,24 +54,6 @@ export interface CreateCertificateRequest {
56
54
  /** The PEM encoded public key part */
57
55
  publicKey?: string;
58
56
  }
59
- export const CreateCertificateRequest = /*@__PURE__*/ S.suspend(() =>
60
- S.Struct({
61
- projectId: S.String.pipe(T.Label()),
62
- region: S.String.pipe(T.Label()),
63
- labels: S.optional(CreateCertificateRequestLabelsMap),
64
- name: S.optional(S.String),
65
- privateKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
66
- publicKey: S.optional(S.String),
67
- }).pipe(
68
- T.Http({
69
- method: "POST",
70
- uri: "/v2/projects/{projectId}/regions/{region}/certificates",
71
- code: 200,
72
- baseUrl: "https://certificates.api.stackit.cloud",
73
- }),
74
- ),
75
- ).annotate({ identifier: "CreateCertificateRequest" }) as any as S.Schema<CreateCertificateRequest>;
76
-
77
57
  export interface Data {
78
58
  /** Comma-separated list of all domains and IP addresses the certificate is valid for (Subject Alternative Names). */
79
59
  dnsNames?: string;
@@ -106,69 +86,24 @@ export interface Data {
106
86
  /** The primary identity of the certificate. Fallback sequence: Common Name -> First DNS Name -> Full Subject String. */
107
87
  subjectCn?: string;
108
88
  }
109
- export const Data = /*@__PURE__*/ S.suspend(() =>
110
- S.Struct({
111
- dnsNames: S.optional(S.String),
112
- extendedKeyUsage: S.optional(S.String),
113
- fingerprintSha1: S.optional(S.String),
114
- fingerprintSha256: S.optional(S.String),
115
- isCa: S.optional(S.Boolean),
116
- isSelfSigned: S.optional(S.Boolean),
117
- issuerCn: S.optional(S.String),
118
- keyStrength: S.optional(S.String),
119
- notAfter: S.optional(S.String),
120
- notBefore: S.optional(S.String),
121
- organization: S.optional(S.String),
122
- publicKeyAlgorithm: S.optional(S.String),
123
- serialNumber: S.optional(S.String),
124
- signatureAlgorithm: S.optional(S.String),
125
- subjectCn: S.optional(S.String),
126
- }),
127
- ).annotate({ identifier: "Data" }) as any as S.Schema<Data>;
128
-
129
89
  /** 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. */
130
90
  export type GetCertificateResponseLabelsMap = { [key: string]: string | undefined };
131
- export const GetCertificateResponseLabelsMap = /*@__PURE__*/ S.Record(
132
- S.String,
133
- S.String,
134
- ) as any as S.Schema<GetCertificateResponseLabelsMap>;
135
-
136
91
  /** The list of listener names in this Load Balancer, that are using the certificate. */
137
92
  export type UsageItemListenerNamesList = Array<string>;
138
- export const UsageItemListenerNamesList = /*@__PURE__*/ S.Array(
139
- S.String,
140
- ) as any as S.Schema<UsageItemListenerNamesList>;
141
-
142
93
  export interface UsageItem {
143
94
  /** The list of listener names in this Load Balancer, that are using the certificate. */
144
95
  listenerNames?: UsageItemListenerNamesList;
145
96
  /** The display name of the Load Balancer. */
146
97
  loadBalancerName?: string;
147
98
  }
148
- export const UsageItem = /*@__PURE__*/ S.suspend(() =>
149
- S.Struct({
150
- listenerNames: S.optional(UsageItemListenerNamesList),
151
- loadBalancerName: S.optional(S.String),
152
- }),
153
- ).annotate({ identifier: "UsageItem" }) as any as S.Schema<UsageItem>;
154
-
155
99
  /** List of Load Balancers with their associated listeners that use this certificate. */
156
100
  export type UsageItemsList = Array<UsageItem>;
157
- export const UsageItemsList = /*@__PURE__*/ S.Array(UsageItem) as any as S.Schema<UsageItemsList>;
158
-
159
101
  export interface Usage {
160
102
  /** Number of listeners using this certificate. */
161
103
  count?: number;
162
104
  /** List of Load Balancers with their associated listeners that use this certificate. */
163
105
  items?: UsageItemsList;
164
106
  }
165
- export const Usage = /*@__PURE__*/ S.suspend(() =>
166
- S.Struct({
167
- count: S.optional(S.Number),
168
- items: S.optional(UsageItemsList),
169
- }),
170
- ).annotate({ identifier: "Usage" }) as any as S.Schema<Usage>;
171
-
172
107
  /** GetCertificateResponse returns name, id and public key */
173
108
  export interface GetCertificateResponse {
174
109
  data?: Data;
@@ -184,83 +119,21 @@ export interface GetCertificateResponse {
184
119
  region?: string;
185
120
  usage?: Usage;
186
121
  }
187
- export const GetCertificateResponse = /*@__PURE__*/ S.suspend(() =>
188
- S.Struct({
189
- data: S.optional(Data),
190
- id: S.optional(S.String),
191
- labels: S.optional(GetCertificateResponseLabelsMap),
192
- name: S.optional(S.String),
193
- publicKey: S.optional(S.String),
194
- region: S.optional(S.String),
195
- usage: S.optional(Usage),
196
- }),
197
- ).annotate({ identifier: "GetCertificateResponse" }) as any as S.Schema<GetCertificateResponse>;
198
-
199
122
  export interface DeleteCertificateRequest {
200
123
  projectId: string;
201
124
  region: string;
202
125
  id: string;
203
126
  }
204
- export const DeleteCertificateRequest = /*@__PURE__*/ S.suspend(() =>
205
- S.Struct({
206
- projectId: S.String.pipe(T.Label()),
207
- region: S.String.pipe(T.Label()),
208
- id: S.String.pipe(T.Label()),
209
- }).pipe(
210
- T.Http({
211
- method: "DELETE",
212
- uri: "/v2/projects/{projectId}/regions/{region}/certificates/{id}",
213
- code: 200,
214
- baseUrl: "https://certificates.api.stackit.cloud",
215
- }),
216
- ),
217
- ).annotate({ identifier: "DeleteCertificateRequest" }) as any as S.Schema<DeleteCertificateRequest>;
218
-
219
127
  export type DeleteCertificateResponse2 = unknown;
220
- export const DeleteCertificateResponse2 = /*@__PURE__*/ S.suspend(() =>
221
- S.Unknown.pipe(T.RawResponseRoot()),
222
- ).annotate({
223
- identifier: "DeleteCertificateResponse2",
224
- }) as any as S.Schema<DeleteCertificateResponse2>;
225
-
226
128
  export interface GetCertificateRequest {
227
129
  projectId: string;
228
130
  region: string;
229
131
  id: string;
230
132
  }
231
- export const GetCertificateRequest = /*@__PURE__*/ S.suspend(() =>
232
- S.Struct({
233
- projectId: S.String.pipe(T.Label()),
234
- region: S.String.pipe(T.Label()),
235
- id: S.String.pipe(T.Label()),
236
- }).pipe(
237
- T.Http({
238
- method: "GET",
239
- uri: "/v2/projects/{projectId}/regions/{region}/certificates/{id}",
240
- code: 200,
241
- baseUrl: "https://certificates.api.stackit.cloud",
242
- }),
243
- ),
244
- ).annotate({ identifier: "GetCertificateRequest" }) as any as S.Schema<GetCertificateRequest>;
245
-
246
133
  export interface GetQuotaRequest {
247
134
  projectId: string;
248
135
  region: string;
249
136
  }
250
- export const GetQuotaRequest = /*@__PURE__*/ S.suspend(() =>
251
- S.Struct({
252
- projectId: S.String.pipe(T.Label()),
253
- region: S.String.pipe(T.Label()),
254
- }).pipe(
255
- T.Http({
256
- method: "GET",
257
- uri: "/v2/projects/{projectId}/regions/{region}/quotas",
258
- code: 200,
259
- baseUrl: "https://certificates.api.stackit.cloud",
260
- }),
261
- ),
262
- ).annotate({ identifier: "GetQuotaRequest" }) as any as S.Schema<GetQuotaRequest>;
263
-
264
137
  /** Certificates quotas holds the limits and usage for certificates resources */
265
138
  export interface CertificatesQuota {
266
139
  /** The maximum number of TLS certificates in this project. */
@@ -268,23 +141,10 @@ export interface CertificatesQuota {
268
141
  /** The number of certificates that are currently existing in this project. */
269
142
  usage?: number;
270
143
  }
271
- export const CertificatesQuota = /*@__PURE__*/ S.suspend(() =>
272
- S.Struct({
273
- limit: S.optional(S.Number),
274
- usage: S.optional(S.Number),
275
- }),
276
- ).annotate({ identifier: "CertificatesQuota" }) as any as S.Schema<CertificatesQuota>;
277
-
278
144
  /** Quotas holds the specific quota elements for different resources */
279
145
  export interface Quotas {
280
146
  certificates?: CertificatesQuota;
281
147
  }
282
- export const Quotas = /*@__PURE__*/ S.suspend(() =>
283
- S.Struct({
284
- certificates: S.optional(CertificatesQuota),
285
- }),
286
- ).annotate({ identifier: "Quotas" }) as any as S.Schema<Quotas>;
287
-
288
148
  export interface GetQuotaResponse {
289
149
  /** Project identifier */
290
150
  projectId?: string;
@@ -292,14 +152,6 @@ export interface GetQuotaResponse {
292
152
  /** Region */
293
153
  region?: string;
294
154
  }
295
- export const GetQuotaResponse = /*@__PURE__*/ S.suspend(() =>
296
- S.Struct({
297
- projectId: S.optional(S.String),
298
- quotas: S.optional(Quotas),
299
- region: S.optional(S.String),
300
- }),
301
- ).annotate({ identifier: "GetQuotaResponse" }) as any as S.Schema<GetQuotaResponse>;
302
-
303
155
  export interface ListCertificatesRequest {
304
156
  projectId: string;
305
157
  region: string;
@@ -308,40 +160,13 @@ export interface ListCertificatesRequest {
308
160
  /** page_id is a page identifier returned by the previous response and is used to request the next page */
309
161
  pageId?: string;
310
162
  }
311
- export const ListCertificatesRequest = /*@__PURE__*/ S.suspend(() =>
312
- S.Struct({
313
- projectId: S.String.pipe(T.Label()),
314
- region: S.String.pipe(T.Label()),
315
- pageSize: S.optional(S.String.pipe(T.Query())),
316
- pageId: S.optional(S.String.pipe(T.Query())),
317
- }).pipe(
318
- T.Http({
319
- method: "GET",
320
- uri: "/v2/projects/{projectId}/regions/{region}/certificates",
321
- code: 200,
322
- baseUrl: "https://certificates.api.stackit.cloud",
323
- }),
324
- ),
325
- ).annotate({ identifier: "ListCertificatesRequest" }) as any as S.Schema<ListCertificatesRequest>;
326
-
327
163
  export type ListCertificatesResponseItemsList = Array<GetCertificateResponse>;
328
- export const ListCertificatesResponseItemsList = /*@__PURE__*/ S.Array(
329
- GetCertificateResponse,
330
- ) as any as S.Schema<ListCertificatesResponseItemsList>;
331
-
332
164
  /** ListCertificateResponse returns a list of certificate responses */
333
165
  export interface ListCertificatesResponse {
334
166
  items?: ListCertificatesResponseItemsList;
335
167
  /** Continue token from the ListCertificatesResponse with Limit option */
336
168
  nextPageId?: string;
337
169
  }
338
- export const ListCertificatesResponse = /*@__PURE__*/ S.suspend(() =>
339
- S.Struct({
340
- items: S.optional(ListCertificatesResponseItemsList),
341
- nextPageId: S.optional(S.String),
342
- }),
343
- ).annotate({ identifier: "ListCertificatesResponse" }) as any as S.Schema<ListCertificatesResponse>;
344
-
345
170
  export type CreateCertificateError = BadRequest | Forbidden | StackitOpError;
346
171
  /** Store a TLS certificate in a project. CreateCertificate will store a TLS certificate in a project. */
347
172
  export const createCertificate: API.OperationMethod<
@@ -350,8 +175,8 @@ export const createCertificate: API.OperationMethod<
350
175
  CreateCertificateError,
351
176
  StackitOpContext
352
177
  > = /*@__PURE__*/ API.make(() => ({
353
- input: CreateCertificateRequest,
354
- output: GetCertificateResponse,
178
+ input: __S(0, __c0, 0) as any as S.Schema<CreateCertificateRequest>,
179
+ output: __S(14, __c1, 6) as any as S.Schema<GetCertificateResponse>,
355
180
  errors: [BadRequest, Forbidden, UnknownStackitError],
356
181
  protocol: StackitProtocol,
357
182
  retry: Retry.Retry,
@@ -365,8 +190,8 @@ export const deleteCertificate: API.OperationMethod<
365
190
  DeleteCertificateError,
366
191
  StackitOpContext
367
192
  > = /*@__PURE__*/ API.make(() => ({
368
- input: DeleteCertificateRequest,
369
- output: DeleteCertificateResponse2,
193
+ input: __S(16, __c2, 0) as any as S.Schema<DeleteCertificateRequest>,
194
+ output: __S(17, __c2, 1) as any as S.Schema<DeleteCertificateResponse2>,
370
195
  errors: [BadRequest, Forbidden, UnknownStackitError],
371
196
  protocol: StackitProtocol,
372
197
  retry: Retry.Retry,
@@ -380,8 +205,8 @@ export const getCertificate: API.OperationMethod<
380
205
  GetCertificateError,
381
206
  StackitOpContext
382
207
  > = /*@__PURE__*/ API.make(() => ({
383
- input: GetCertificateRequest,
384
- output: GetCertificateResponse,
208
+ input: __S(24, __c3, 0) as any as S.Schema<GetCertificateRequest>,
209
+ output: __S(14, __c1, 6) as any as S.Schema<GetCertificateResponse>,
385
210
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
386
211
  protocol: StackitProtocol,
387
212
  retry: Retry.Retry,
@@ -395,8 +220,8 @@ export const getQuota: API.OperationMethod<
395
220
  GetQuotaError,
396
221
  StackitOpContext
397
222
  > = /*@__PURE__*/ API.make(() => ({
398
- input: GetQuotaRequest,
399
- output: GetQuotaResponse,
223
+ input: __S(32, __c4, 0) as any as S.Schema<GetQuotaRequest>,
224
+ output: __S(35, __c4, 3) as any as S.Schema<GetQuotaResponse>,
400
225
  errors: [BadRequest, Forbidden, UnknownStackitError],
401
226
  protocol: StackitProtocol,
402
227
  retry: Retry.Retry,
@@ -410,9 +235,203 @@ export const listCertificates: API.OperationMethod<
410
235
  ListCertificatesError,
411
236
  StackitOpContext
412
237
  > = /*@__PURE__*/ API.make(() => ({
413
- input: ListCertificatesRequest,
414
- output: ListCertificatesResponse,
238
+ input: __S(40, __c5, 0) as any as S.Schema<ListCertificatesRequest>,
239
+ output: __S(42, __c5, 2) as any as S.Schema<ListCertificatesResponse>,
415
240
  errors: [BadRequest, Forbidden, UnknownStackitError],
416
241
  protocol: StackitProtocol,
417
242
  retry: Retry.Retry,
418
243
  }));
244
+
245
+ // Schema builders: each runs one schema initializer, on that schema's first use.
246
+ function __c0(j: number): any {
247
+ switch (j) {
248
+ case 0:
249
+ return S.suspend(() =>
250
+ S.Struct({
251
+ projectId: S.String.pipe(T.Label()),
252
+ region: S.String.pipe(T.Label()),
253
+ labels: S.optional(__S(8, __c1, 0)),
254
+ name: S.optional(S.String),
255
+ privateKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
256
+ publicKey: S.optional(S.String),
257
+ }).pipe(
258
+ T.Http({
259
+ method: "POST",
260
+ uri: "/v2/projects/{projectId}/regions/{region}/certificates",
261
+ code: 200,
262
+ baseUrl: "https://certificates.api.stackit.cloud",
263
+ }),
264
+ ),
265
+ ).annotate({ identifier: "CreateCertificateRequest" });
266
+ }
267
+ }
268
+ function __c1(j: number): any {
269
+ switch (j) {
270
+ case 0:
271
+ return S.Record(S.String, S.String);
272
+ case 1:
273
+ return S.suspend(() =>
274
+ S.Struct({
275
+ dnsNames: S.optional(S.String),
276
+ extendedKeyUsage: S.optional(S.String),
277
+ fingerprintSha1: S.optional(S.String),
278
+ fingerprintSha256: S.optional(S.String),
279
+ isCa: S.optional(S.Boolean),
280
+ isSelfSigned: S.optional(S.Boolean),
281
+ issuerCn: S.optional(S.String),
282
+ keyStrength: S.optional(S.String),
283
+ notAfter: S.optional(S.String),
284
+ notBefore: S.optional(S.String),
285
+ organization: S.optional(S.String),
286
+ publicKeyAlgorithm: S.optional(S.String),
287
+ serialNumber: S.optional(S.String),
288
+ signatureAlgorithm: S.optional(S.String),
289
+ subjectCn: S.optional(S.String),
290
+ }),
291
+ ).annotate({ identifier: "Data" });
292
+ case 2:
293
+ return S.Array(S.String);
294
+ case 3:
295
+ return S.suspend(() =>
296
+ S.Struct({
297
+ listenerNames: S.optional(__S(10, __c1, 2)),
298
+ loadBalancerName: S.optional(S.String),
299
+ }),
300
+ ).annotate({ identifier: "UsageItem" });
301
+ case 4:
302
+ return S.Array(__S(11, __c1, 3));
303
+ case 5:
304
+ return S.suspend(() =>
305
+ S.Struct({
306
+ count: S.optional(S.Number),
307
+ items: S.optional(__S(12, __c1, 4)),
308
+ }),
309
+ ).annotate({ identifier: "Usage" });
310
+ case 6:
311
+ return S.suspend(() =>
312
+ S.Struct({
313
+ data: S.optional(__S(9, __c1, 1)),
314
+ id: S.optional(S.String),
315
+ labels: S.optional(__S(8, __c1, 0)),
316
+ name: S.optional(S.String),
317
+ publicKey: S.optional(S.String),
318
+ region: S.optional(S.String),
319
+ usage: S.optional(__S(13, __c1, 5)),
320
+ }),
321
+ ).annotate({ identifier: "GetCertificateResponse" });
322
+ }
323
+ }
324
+ function __c2(j: number): any {
325
+ switch (j) {
326
+ case 0:
327
+ return S.suspend(() =>
328
+ S.Struct({
329
+ projectId: S.String.pipe(T.Label()),
330
+ region: S.String.pipe(T.Label()),
331
+ id: S.String.pipe(T.Label()),
332
+ }).pipe(
333
+ T.Http({
334
+ method: "DELETE",
335
+ uri: "/v2/projects/{projectId}/regions/{region}/certificates/{id}",
336
+ code: 200,
337
+ baseUrl: "https://certificates.api.stackit.cloud",
338
+ }),
339
+ ),
340
+ ).annotate({ identifier: "DeleteCertificateRequest" });
341
+ case 1:
342
+ return S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
343
+ identifier: "DeleteCertificateResponse2",
344
+ });
345
+ }
346
+ }
347
+ function __c3(j: number): any {
348
+ switch (j) {
349
+ case 0:
350
+ return S.suspend(() =>
351
+ S.Struct({
352
+ projectId: S.String.pipe(T.Label()),
353
+ region: S.String.pipe(T.Label()),
354
+ id: S.String.pipe(T.Label()),
355
+ }).pipe(
356
+ T.Http({
357
+ method: "GET",
358
+ uri: "/v2/projects/{projectId}/regions/{region}/certificates/{id}",
359
+ code: 200,
360
+ baseUrl: "https://certificates.api.stackit.cloud",
361
+ }),
362
+ ),
363
+ ).annotate({ identifier: "GetCertificateRequest" });
364
+ }
365
+ }
366
+ function __c4(j: number): any {
367
+ switch (j) {
368
+ case 0:
369
+ return S.suspend(() =>
370
+ S.Struct({
371
+ projectId: S.String.pipe(T.Label()),
372
+ region: S.String.pipe(T.Label()),
373
+ }).pipe(
374
+ T.Http({
375
+ method: "GET",
376
+ uri: "/v2/projects/{projectId}/regions/{region}/quotas",
377
+ code: 200,
378
+ baseUrl: "https://certificates.api.stackit.cloud",
379
+ }),
380
+ ),
381
+ ).annotate({ identifier: "GetQuotaRequest" });
382
+ case 1:
383
+ return S.suspend(() =>
384
+ S.Struct({
385
+ limit: S.optional(S.Number),
386
+ usage: S.optional(S.Number),
387
+ }),
388
+ ).annotate({ identifier: "CertificatesQuota" });
389
+ case 2:
390
+ return S.suspend(() =>
391
+ S.Struct({
392
+ certificates: S.optional(__S(33, __c4, 1)),
393
+ }),
394
+ ).annotate({ identifier: "Quotas" });
395
+ case 3:
396
+ return S.suspend(() =>
397
+ S.Struct({
398
+ projectId: S.optional(S.String),
399
+ quotas: S.optional(__S(34, __c4, 2)),
400
+ region: S.optional(S.String),
401
+ }),
402
+ ).annotate({ identifier: "GetQuotaResponse" });
403
+ }
404
+ }
405
+ function __c5(j: number): any {
406
+ switch (j) {
407
+ case 0:
408
+ return S.suspend(() =>
409
+ S.Struct({
410
+ projectId: S.String.pipe(T.Label()),
411
+ region: S.String.pipe(T.Label()),
412
+ pageSize: S.optional(S.String.pipe(T.Query())),
413
+ pageId: S.optional(S.String.pipe(T.Query())),
414
+ }).pipe(
415
+ T.Http({
416
+ method: "GET",
417
+ uri: "/v2/projects/{projectId}/regions/{region}/certificates",
418
+ code: 200,
419
+ baseUrl: "https://certificates.api.stackit.cloud",
420
+ }),
421
+ ),
422
+ ).annotate({ identifier: "ListCertificatesRequest" });
423
+ case 1:
424
+ return S.Array(__S(14, __c1, 6));
425
+ case 2:
426
+ return S.suspend(() =>
427
+ S.Struct({
428
+ items: S.optional(__S(41, __c5, 1)),
429
+ nextPageId: S.optional(S.String),
430
+ }),
431
+ ).annotate({ identifier: "ListCertificatesResponse" });
432
+ }
433
+ }
434
+ // Schema table: entry i is schema j of builder f, made on first reach.
435
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
436
+ return (__s[i] ??= __L.at(f, j));
437
+ }