@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,11 +1,14 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
4
- import * as S from "@distilled.cloud/core/schema";
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
5
6
  import { UnknownStackitError } from "../errors.ts";
6
7
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
7
8
  import * as Retry from "../retry.ts";
8
9
  import * as T from "../traits.ts";
10
+ // Schema table, filled on first reach (see __S at the end).
11
+ const __s: any[] = [];
9
12
 
10
13
  export type { StackitOpError, StackitOpContext };
11
14
 
@@ -50,59 +53,16 @@ export interface DeleteIPListRequest {
50
53
  region: string;
51
54
  name: string;
52
55
  }
53
- export const DeleteIPListRequest = /*@__PURE__*/ S.suspend(() =>
54
- S.Struct({
55
- projectId: S.String.pipe(T.Label()),
56
- region: S.String.pipe(T.Label()),
57
- name: S.String.pipe(T.Label()),
58
- }).pipe(
59
- T.Http({
60
- method: "DELETE",
61
- uri: "/v1alpha/projects/{projectId}/regions/{region}/ip-lists/{name}",
62
- code: 200,
63
- baseUrl: "https://lb-ip-lists.api.stackit.cloud",
64
- }),
65
- ),
66
- ).annotate({ identifier: "DeleteIPListRequest" }) as any as S.Schema<DeleteIPListRequest>;
67
-
68
56
  export type DeleteIPListResponse2 = unknown;
69
- export const DeleteIPListResponse2 = /*@__PURE__*/ S.suspend(() =>
70
- S.Unknown.pipe(T.RawResponseRoot()),
71
- ).annotate({ identifier: "DeleteIPListResponse2" }) as any as S.Schema<DeleteIPListResponse2>;
72
-
73
57
  export interface GetIPListRequest {
74
58
  projectId: string;
75
59
  region: string;
76
60
  name: string;
77
61
  }
78
- export const GetIPListRequest = /*@__PURE__*/ S.suspend(() =>
79
- S.Struct({
80
- projectId: S.String.pipe(T.Label()),
81
- region: S.String.pipe(T.Label()),
82
- name: S.String.pipe(T.Label()),
83
- }).pipe(
84
- T.Http({
85
- method: "GET",
86
- uri: "/v1alpha/projects/{projectId}/regions/{region}/ip-lists/{name}",
87
- code: 200,
88
- baseUrl: "https://lb-ip-lists.api.stackit.cloud",
89
- }),
90
- ),
91
- ).annotate({ identifier: "GetIPListRequest" }) as any as S.Schema<GetIPListRequest>;
92
-
93
62
  /** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per IP list. **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. */
94
63
  export type GetIPListResponseLabelsMap = { [key: string]: string | undefined };
95
- export const GetIPListResponseLabelsMap = /*@__PURE__*/ S.Record(
96
- S.String,
97
- S.String,
98
- ) as any as S.Schema<GetIPListResponseLabelsMap>;
99
-
100
64
  /** List of load balancers that reference this IP list. */
101
65
  export type IPListUsageItemsList = Array<string>;
102
- export const IPListUsageItemsList = /*@__PURE__*/ S.Array(
103
- S.String,
104
- ) as any as S.Schema<IPListUsageItemsList>;
105
-
106
66
  /** IPListUsage describes which NLB/ALB currently reference an IP list. */
107
67
  export interface IPListUsage {
108
68
  /** Number of load balancers currently using this IP list. */
@@ -110,13 +70,6 @@ export interface IPListUsage {
110
70
  /** List of load balancers that reference this IP list. */
111
71
  items?: IPListUsageItemsList;
112
72
  }
113
- export const IPListUsage = /*@__PURE__*/ S.suspend(() =>
114
- S.Struct({
115
- count: S.optional(S.Number),
116
- items: S.optional(IPListUsageItemsList),
117
- }),
118
- ).annotate({ identifier: "IPListUsage" }) as any as S.Schema<IPListUsage>;
119
-
120
73
  /** GetIPListResponse returns IP list configuration without CIDR entries. */
121
74
  export interface GetIPListResponse {
122
75
  /** Unique SHA-256 hex fingerprint used to verify the stored IP list content. */
@@ -130,34 +83,10 @@ export interface GetIPListResponse {
130
83
  /** Current use of this IP list in load balancers. */
131
84
  usage?: IPListUsage;
132
85
  }
133
- export const GetIPListResponse = /*@__PURE__*/ S.suspend(() =>
134
- S.Struct({
135
- contentHash: S.optional(S.String),
136
- labels: S.optional(GetIPListResponseLabelsMap),
137
- name: S.String,
138
- numberOfIps: S.optional(S.Number),
139
- usage: S.optional(IPListUsage),
140
- }),
141
- ).annotate({ identifier: "GetIPListResponse" }) as any as S.Schema<GetIPListResponse>;
142
-
143
86
  export interface GetQuotaRequest {
144
87
  projectId: string;
145
88
  region: string;
146
89
  }
147
- export const GetQuotaRequest = /*@__PURE__*/ S.suspend(() =>
148
- S.Struct({
149
- projectId: S.String.pipe(T.Label()),
150
- region: S.String.pipe(T.Label()),
151
- }).pipe(
152
- T.Http({
153
- method: "GET",
154
- uri: "/v1alpha/projects/{projectId}/regions/{region}/quotas",
155
- code: 200,
156
- baseUrl: "https://lb-ip-lists.api.stackit.cloud",
157
- }),
158
- ),
159
- ).annotate({ identifier: "GetQuotaRequest" }) as any as S.Schema<GetQuotaRequest>;
160
-
161
90
  /** IPListsQuota holds the limits and current usage for IP list resources. Defaults: limit=3 per project, max_entries_per_list=50000. */
162
91
  export interface IPListsQuota {
163
92
  /** The maximum number of IP lists allowed in this project. Defaults to 3. Use -1 to indicate unlimited. */
@@ -165,23 +94,10 @@ export interface IPListsQuota {
165
94
  /** The number of IP lists that currently exist in this project. */
166
95
  usage?: number;
167
96
  }
168
- export const IPListsQuota = /*@__PURE__*/ S.suspend(() =>
169
- S.Struct({
170
- limit: S.optional(S.Number),
171
- usage: S.optional(S.Number),
172
- }),
173
- ).annotate({ identifier: "IPListsQuota" }) as any as S.Schema<IPListsQuota>;
174
-
175
97
  /** Quotas holds the specific quota elements for resources managed by this API. */
176
98
  export interface Quotas {
177
99
  ipLists?: IPListsQuota;
178
100
  }
179
- export const Quotas = /*@__PURE__*/ S.suspend(() =>
180
- S.Struct({
181
- ipLists: S.optional(IPListsQuota),
182
- }),
183
- ).annotate({ identifier: "Quotas" }) as any as S.Schema<Quotas>;
184
-
185
101
  /** GetQuotaResponse returns the configured IP list quota for the project and region. */
186
102
  export interface GetQuotaResponse {
187
103
  /** Project identifier */
@@ -190,56 +106,19 @@ export interface GetQuotaResponse {
190
106
  /** Region */
191
107
  region?: string;
192
108
  }
193
- export const GetQuotaResponse = /*@__PURE__*/ S.suspend(() =>
194
- S.Struct({
195
- projectId: S.optional(S.String),
196
- quotas: S.optional(Quotas),
197
- region: S.optional(S.String),
198
- }),
199
- ).annotate({ identifier: "GetQuotaResponse" }) as any as S.Schema<GetQuotaResponse>;
200
-
201
109
  export interface ListIPListsRequest {
202
110
  projectId: string;
203
111
  region: string;
204
112
  }
205
- export const ListIPListsRequest = /*@__PURE__*/ S.suspend(() =>
206
- S.Struct({
207
- projectId: S.String.pipe(T.Label()),
208
- region: S.String.pipe(T.Label()),
209
- }).pipe(
210
- T.Http({
211
- method: "GET",
212
- uri: "/v1alpha/projects/{projectId}/regions/{region}/ip-lists",
213
- code: 200,
214
- baseUrl: "https://lb-ip-lists.api.stackit.cloud",
215
- }),
216
- ),
217
- ).annotate({ identifier: "ListIPListsRequest" }) as any as S.Schema<ListIPListsRequest>;
218
-
219
113
  /** Every IP list in the project and region. Never includes the CIDR entries themselves. */
220
114
  export type ListIPListsResponseItemsList = Array<GetIPListResponse>;
221
- export const ListIPListsResponseItemsList = /*@__PURE__*/ S.Array(
222
- GetIPListResponse,
223
- ) as any as S.Schema<ListIPListsResponseItemsList>;
224
-
225
115
  /** ListIPListsResponse returns metadata for all IP lists in a project and region. The CIDR entries themselves are never returned. */
226
116
  export interface ListIPListsResponse {
227
117
  /** Every IP list in the project and region. Never includes the CIDR entries themselves. */
228
118
  items?: ListIPListsResponseItemsList;
229
119
  }
230
- export const ListIPListsResponse = /*@__PURE__*/ S.suspend(() =>
231
- S.Struct({
232
- items: S.optional(ListIPListsResponseItemsList),
233
- }),
234
- ).annotate({ identifier: "ListIPListsResponse" }) as any as S.Schema<ListIPListsResponse>;
235
-
236
120
  /** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per IP list. **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. */
237
121
  export type UploadIPListRequestLabelsMap = { [key: string]: string | undefined };
238
- export const UploadIPListRequestLabelsMap = /*@__PURE__*/ S.Record(
239
- S.String,
240
- S.String,
241
- ) as any as S.Schema<UploadIPListRequestLabelsMap>;
242
-
243
122
  export interface UploadIPListRequest {
244
123
  projectId: string;
245
124
  region: string;
@@ -249,23 +128,6 @@ export interface UploadIPListRequest {
249
128
  /** Labels represent user-defined metadata as key-value pairs. Label count should not exceed 64 per IP list. **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. */
250
129
  labels?: UploadIPListRequestLabelsMap;
251
130
  }
252
- export const UploadIPListRequest = /*@__PURE__*/ S.suspend(() =>
253
- S.Struct({
254
- projectId: S.String.pipe(T.Label()),
255
- region: S.String.pipe(T.Label()),
256
- name: S.String.pipe(T.Label()),
257
- fileContent: S.String,
258
- labels: S.optional(UploadIPListRequestLabelsMap),
259
- }).pipe(
260
- T.Http({
261
- method: "PUT",
262
- uri: "/v1alpha/projects/{projectId}/regions/{region}/ip-lists/{name}",
263
- code: 200,
264
- baseUrl: "https://lb-ip-lists.api.stackit.cloud",
265
- }),
266
- ),
267
- ).annotate({ identifier: "UploadIPListRequest" }) as any as S.Schema<UploadIPListRequest>;
268
-
269
131
  export type DeleteIPListError = BadRequest | Forbidden | NotFound | StackitOpError;
270
132
  /** Delete an IP List configuration Removes the IP list configuration from the project. If the IP list is referenced by load balancers, clear or replace the reference first. */
271
133
  export const deleteIPList: API.OperationMethod<
@@ -274,8 +136,8 @@ export const deleteIPList: API.OperationMethod<
274
136
  DeleteIPListError,
275
137
  StackitOpContext
276
138
  > = /*@__PURE__*/ API.make(() => ({
277
- input: DeleteIPListRequest,
278
- output: DeleteIPListResponse2,
139
+ input: __S(0, __c0, 0) as any as S.Schema<DeleteIPListRequest>,
140
+ output: __S(1, __c0, 1) as any as S.Schema<DeleteIPListResponse2>,
279
141
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
280
142
  protocol: StackitProtocol,
281
143
  retry: Retry.Retry,
@@ -289,8 +151,8 @@ export const getIPList: API.OperationMethod<
289
151
  GetIPListError,
290
152
  StackitOpContext
291
153
  > = /*@__PURE__*/ API.make(() => ({
292
- input: GetIPListRequest,
293
- output: GetIPListResponse,
154
+ input: __S(4, __c1, 0) as any as S.Schema<GetIPListRequest>,
155
+ output: __S(11, __c2, 3) as any as S.Schema<GetIPListResponse>,
294
156
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
295
157
  protocol: StackitProtocol,
296
158
  retry: Retry.Retry,
@@ -304,8 +166,8 @@ export const getQuota: API.OperationMethod<
304
166
  GetQuotaError,
305
167
  StackitOpContext
306
168
  > = /*@__PURE__*/ API.make(() => ({
307
- input: GetQuotaRequest,
308
- output: GetQuotaResponse,
169
+ input: __S(12, __c3, 0) as any as S.Schema<GetQuotaRequest>,
170
+ output: __S(15, __c3, 3) as any as S.Schema<GetQuotaResponse>,
309
171
  errors: [BadRequest, Forbidden, UnknownStackitError],
310
172
  protocol: StackitProtocol,
311
173
  retry: Retry.Retry,
@@ -319,8 +181,8 @@ export const listIPLists: API.OperationMethod<
319
181
  ListIPListsError,
320
182
  StackitOpContext
321
183
  > = /*@__PURE__*/ API.make(() => ({
322
- input: ListIPListsRequest,
323
- output: ListIPListsResponse,
184
+ input: __S(16, __c4, 0) as any as S.Schema<ListIPListsRequest>,
185
+ output: __S(18, __c4, 2) as any as S.Schema<ListIPListsResponse>,
324
186
  errors: [BadRequest, Forbidden, UnknownStackitError],
325
187
  protocol: StackitProtocol,
326
188
  retry: Retry.Retry,
@@ -334,9 +196,168 @@ export const uploadIPList: API.OperationMethod<
334
196
  UploadIPListError,
335
197
  StackitOpContext
336
198
  > = /*@__PURE__*/ API.make(() => ({
337
- input: UploadIPListRequest,
338
- output: GetIPListResponse,
199
+ input: __S(20, __c5, 0) as any as S.Schema<UploadIPListRequest>,
200
+ output: __S(11, __c2, 3) as any as S.Schema<GetIPListResponse>,
339
201
  errors: [BadRequest, Forbidden, UnprocessableEntity, UnknownStackitError],
340
202
  protocol: StackitProtocol,
341
203
  retry: Retry.Retry,
342
204
  }));
205
+
206
+ // Schema builders: each runs one schema initializer, on that schema's first use.
207
+ function __c0(j: number): any {
208
+ switch (j) {
209
+ case 0:
210
+ return S.suspend(() =>
211
+ S.Struct({
212
+ projectId: S.String.pipe(T.Label()),
213
+ region: S.String.pipe(T.Label()),
214
+ name: S.String.pipe(T.Label()),
215
+ }).pipe(
216
+ T.Http({
217
+ method: "DELETE",
218
+ uri: "/v1alpha/projects/{projectId}/regions/{region}/ip-lists/{name}",
219
+ code: 200,
220
+ baseUrl: "https://lb-ip-lists.api.stackit.cloud",
221
+ }),
222
+ ),
223
+ ).annotate({ identifier: "DeleteIPListRequest" });
224
+ case 1:
225
+ return S.suspend(() => S.Unknown.pipe(T.RawResponseRoot())).annotate({
226
+ identifier: "DeleteIPListResponse2",
227
+ });
228
+ }
229
+ }
230
+ function __c1(j: number): any {
231
+ switch (j) {
232
+ case 0:
233
+ return S.suspend(() =>
234
+ S.Struct({
235
+ projectId: S.String.pipe(T.Label()),
236
+ region: S.String.pipe(T.Label()),
237
+ name: S.String.pipe(T.Label()),
238
+ }).pipe(
239
+ T.Http({
240
+ method: "GET",
241
+ uri: "/v1alpha/projects/{projectId}/regions/{region}/ip-lists/{name}",
242
+ code: 200,
243
+ baseUrl: "https://lb-ip-lists.api.stackit.cloud",
244
+ }),
245
+ ),
246
+ ).annotate({ identifier: "GetIPListRequest" });
247
+ }
248
+ }
249
+ function __c2(j: number): any {
250
+ switch (j) {
251
+ case 0:
252
+ return S.Record(S.String, S.String);
253
+ case 1:
254
+ return S.Array(S.String);
255
+ case 2:
256
+ return S.suspend(() =>
257
+ S.Struct({
258
+ count: S.optional(S.Number),
259
+ items: S.optional(__S(9, __c2, 1)),
260
+ }),
261
+ ).annotate({ identifier: "IPListUsage" });
262
+ case 3:
263
+ return S.suspend(() =>
264
+ S.Struct({
265
+ contentHash: S.optional(S.String),
266
+ labels: S.optional(__S(8, __c2, 0)),
267
+ name: S.String,
268
+ numberOfIps: S.optional(S.Number),
269
+ usage: S.optional(__S(10, __c2, 2)),
270
+ }),
271
+ ).annotate({ identifier: "GetIPListResponse" });
272
+ }
273
+ }
274
+ function __c3(j: number): any {
275
+ switch (j) {
276
+ case 0:
277
+ return S.suspend(() =>
278
+ S.Struct({
279
+ projectId: S.String.pipe(T.Label()),
280
+ region: S.String.pipe(T.Label()),
281
+ }).pipe(
282
+ T.Http({
283
+ method: "GET",
284
+ uri: "/v1alpha/projects/{projectId}/regions/{region}/quotas",
285
+ code: 200,
286
+ baseUrl: "https://lb-ip-lists.api.stackit.cloud",
287
+ }),
288
+ ),
289
+ ).annotate({ identifier: "GetQuotaRequest" });
290
+ case 1:
291
+ return S.suspend(() =>
292
+ S.Struct({
293
+ limit: S.optional(S.Number),
294
+ usage: S.optional(S.Number),
295
+ }),
296
+ ).annotate({ identifier: "IPListsQuota" });
297
+ case 2:
298
+ return S.suspend(() =>
299
+ S.Struct({
300
+ ipLists: S.optional(__S(13, __c3, 1)),
301
+ }),
302
+ ).annotate({ identifier: "Quotas" });
303
+ case 3:
304
+ return S.suspend(() =>
305
+ S.Struct({
306
+ projectId: S.optional(S.String),
307
+ quotas: S.optional(__S(14, __c3, 2)),
308
+ region: S.optional(S.String),
309
+ }),
310
+ ).annotate({ identifier: "GetQuotaResponse" });
311
+ }
312
+ }
313
+ function __c4(j: number): any {
314
+ switch (j) {
315
+ case 0:
316
+ return S.suspend(() =>
317
+ S.Struct({
318
+ projectId: S.String.pipe(T.Label()),
319
+ region: S.String.pipe(T.Label()),
320
+ }).pipe(
321
+ T.Http({
322
+ method: "GET",
323
+ uri: "/v1alpha/projects/{projectId}/regions/{region}/ip-lists",
324
+ code: 200,
325
+ baseUrl: "https://lb-ip-lists.api.stackit.cloud",
326
+ }),
327
+ ),
328
+ ).annotate({ identifier: "ListIPListsRequest" });
329
+ case 1:
330
+ return S.Array(__S(11, __c2, 3));
331
+ case 2:
332
+ return S.suspend(() =>
333
+ S.Struct({
334
+ items: S.optional(__S(17, __c4, 1)),
335
+ }),
336
+ ).annotate({ identifier: "ListIPListsResponse" });
337
+ }
338
+ }
339
+ function __c5(j: number): any {
340
+ switch (j) {
341
+ case 0:
342
+ return S.suspend(() =>
343
+ S.Struct({
344
+ projectId: S.String.pipe(T.Label()),
345
+ region: S.String.pipe(T.Label()),
346
+ name: S.String.pipe(T.Label()),
347
+ fileContent: S.String,
348
+ labels: S.optional(__S(8, __c2, 0)),
349
+ }).pipe(
350
+ T.Http({
351
+ method: "PUT",
352
+ uri: "/v1alpha/projects/{projectId}/regions/{region}/ip-lists/{name}",
353
+ code: 200,
354
+ baseUrl: "https://lb-ip-lists.api.stackit.cloud",
355
+ }),
356
+ ),
357
+ ).annotate({ identifier: "UploadIPListRequest" });
358
+ }
359
+ }
360
+ // Schema table: entry i is schema j of builder f, made on first reach.
361
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
362
+ return (__s[i] ??= __L.at(f, j));
363
+ }