@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
 
@@ -37,8 +40,6 @@ export class NotFound
37
40
  ) {}
38
41
 
39
42
  export type CreateRuleRequestRegionId = "eu01" | "eu02";
40
- export const CreateRuleRequestRegionId = S.String;
41
-
42
43
  export interface CreateRuleRequest {
43
44
  /** The STACKIT portal project UUID */
44
45
  projectId: string;
@@ -71,46 +72,11 @@ export interface CreateRuleRequest {
71
72
  /** The type of the rule (e.g., "ACL", "PublicIP", "SecurityRule"). */
72
73
  type: string;
73
74
  }
74
- export const CreateRuleRequest = /*@__PURE__*/ S.suspend(() =>
75
- S.Struct({
76
- projectId: S.String.pipe(T.Label()),
77
- regionId: CreateRuleRequestRegionId.pipe(T.Label()),
78
- description: S.optional(S.String),
79
- direction: S.optional(S.String),
80
- etherType: S.optional(S.String),
81
- instanceId: S.String,
82
- offset: S.optional(S.Number),
83
- portRange: S.optional(S.String),
84
- product: S.String,
85
- protocol: S.optional(S.String),
86
- remoteSecurityGroupId: S.optional(S.String),
87
- securityGroupId: S.optional(S.String),
88
- sourceIP: S.String,
89
- stateful: S.optional(S.Boolean),
90
- type: S.String,
91
- }).pipe(
92
- T.Http({
93
- method: "POST",
94
- uri: "/v1/projects/{projectId}/regions/{regionId}/rules",
95
- code: 200,
96
- baseUrl: "https://ufw.api.stackit.cloud",
97
- }),
98
- ),
99
- ).annotate({ identifier: "CreateRuleRequest" }) as any as S.Schema<CreateRuleRequest>;
100
-
101
75
  export interface CreateRuleResponse {
102
76
  /** Represents the uuid of the created rule */
103
77
  refId?: string;
104
78
  }
105
- export const CreateRuleResponse = /*@__PURE__*/ S.suspend(() =>
106
- S.Struct({
107
- refId: S.optional(S.String),
108
- }),
109
- ).annotate({ identifier: "CreateRuleResponse" }) as any as S.Schema<CreateRuleResponse>;
110
-
111
79
  export type DeleteRuleRequestRegionId = "eu01" | "eu02";
112
- export const DeleteRuleRequestRegionId = S.String;
113
-
114
80
  export interface DeleteRuleRequest {
115
81
  /** The STACKIT portal project UUID */
116
82
  projectId: string;
@@ -119,34 +85,11 @@ export interface DeleteRuleRequest {
119
85
  /** The STACKIT security rule UUID. */
120
86
  ruleId: string;
121
87
  }
122
- export const DeleteRuleRequest = /*@__PURE__*/ S.suspend(() =>
123
- S.Struct({
124
- projectId: S.String.pipe(T.Label()),
125
- regionId: DeleteRuleRequestRegionId.pipe(T.Label()),
126
- ruleId: S.String.pipe(T.Label()),
127
- }).pipe(
128
- T.Http({
129
- method: "DELETE",
130
- uri: "/v1/projects/{projectId}/regions/{regionId}/rules/{ruleId}",
131
- code: 200,
132
- baseUrl: "https://ufw.api.stackit.cloud",
133
- }),
134
- ),
135
- ).annotate({ identifier: "DeleteRuleRequest" }) as any as S.Schema<DeleteRuleRequest>;
136
-
137
88
  export interface DeleteRuleResponse {
138
89
  /** Represents if the call was successfully made */
139
90
  success?: boolean;
140
91
  }
141
- export const DeleteRuleResponse = /*@__PURE__*/ S.suspend(() =>
142
- S.Struct({
143
- success: S.optional(S.Boolean),
144
- }),
145
- ).annotate({ identifier: "DeleteRuleResponse" }) as any as S.Schema<DeleteRuleResponse>;
146
-
147
92
  export type GetRuleRequestRegionId = "eu01" | "eu02";
148
- export const GetRuleRequestRegionId = S.String;
149
-
150
93
  export interface GetRuleRequest {
151
94
  /** The STACKIT portal project UUID */
152
95
  projectId: string;
@@ -155,21 +98,6 @@ export interface GetRuleRequest {
155
98
  /** The STACKIT security rule UUID. */
156
99
  ruleId: string;
157
100
  }
158
- export const GetRuleRequest = /*@__PURE__*/ S.suspend(() =>
159
- S.Struct({
160
- projectId: S.String.pipe(T.Label()),
161
- regionId: GetRuleRequestRegionId.pipe(T.Label()),
162
- ruleId: S.String.pipe(T.Label()),
163
- }).pipe(
164
- T.Http({
165
- method: "GET",
166
- uri: "/v1/projects/{projectId}/regions/{regionId}/rules/{ruleId}",
167
- code: 200,
168
- baseUrl: "https://ufw.api.stackit.cloud",
169
- }),
170
- ),
171
- ).annotate({ identifier: "GetRuleRequest" }) as any as S.Schema<GetRuleRequest>;
172
-
173
101
  /** The current state of the resource. */
174
102
  export type RuleResponseStatus =
175
103
  | "Active"
@@ -178,12 +106,8 @@ export type RuleResponseStatus =
178
106
  | "Updating"
179
107
  | "Deleting"
180
108
  | "Creating";
181
- export const RuleResponseStatus = S.String;
182
-
183
109
  /** The type of the rule (e.g., "ACL", "PublicIP", "SecurityRule"). */
184
110
  export type RuleResponseType = "ACL" | "PublicIP" | "SecurityRule" | "SecurityGroup";
185
- export const RuleResponseType = S.String;
186
-
187
111
  export interface RuleResponse {
188
112
  description?: string;
189
113
  destination: string;
@@ -208,31 +132,6 @@ export interface RuleResponse {
208
132
  /** The type of the rule (e.g., "ACL", "PublicIP", "SecurityRule"). */
209
133
  type: RuleResponseType;
210
134
  }
211
- export const RuleResponse = /*@__PURE__*/ S.suspend(() =>
212
- S.Struct({
213
- description: S.optional(S.String),
214
- destination: S.String,
215
- direction: S.optional(S.String),
216
- errorMessage: S.optional(S.String),
217
- etherType: S.optional(S.String),
218
- instanceId: S.String,
219
- instanceName: S.optional(S.String),
220
- ipRange: S.optional(S.String),
221
- offset: S.optional(S.Number),
222
- portRange: S.optional(S.String),
223
- product: S.String,
224
- protocol: S.optional(S.String),
225
- refId: S.optional(S.String),
226
- region: S.optional(S.String),
227
- remoteSecurityGroupId: S.optional(S.String),
228
- securityGroupId: S.optional(S.String),
229
- sourceIP: S.String,
230
- stateful: S.optional(S.Boolean),
231
- status: RuleResponseStatus,
232
- type: RuleResponseType,
233
- }),
234
- ).annotate({ identifier: "RuleResponse" }) as any as S.Schema<RuleResponse>;
235
-
236
135
  export interface ListFolderContainersRequest {
237
136
  /** The STACKIT portal folder UUID */
238
137
  folderId: string;
@@ -241,54 +140,17 @@ export interface ListFolderContainersRequest {
241
140
  /** A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. */
242
141
  cursor?: string;
243
142
  }
244
- export const ListFolderContainersRequest = /*@__PURE__*/ S.suspend(() =>
245
- S.Struct({
246
- folderId: S.String.pipe(T.Label()),
247
- limit: S.optional(S.Number.pipe(T.Query())),
248
- cursor: S.optional(S.String.pipe(T.Query())),
249
- }).pipe(
250
- T.Http({
251
- method: "GET",
252
- uri: "/v1/folders/{folderId}/children",
253
- code: 200,
254
- baseUrl: "https://ufw.api.stackit.cloud",
255
- }),
256
- ),
257
- ).annotate({
258
- identifier: "ListFolderContainersRequest",
259
- }) as any as S.Schema<ListFolderContainersRequest>;
260
-
261
143
  export interface ContainerResponse {
262
144
  id: string;
263
145
  name: string;
264
146
  type: string;
265
147
  }
266
- export const ContainerResponse = /*@__PURE__*/ S.suspend(() =>
267
- S.Struct({
268
- id: S.String,
269
- name: S.String,
270
- type: S.String,
271
- }),
272
- ).annotate({ identifier: "ContainerResponse" }) as any as S.Schema<ContainerResponse>;
273
-
274
148
  export type ListContainersResponseItemsList = Array<ContainerResponse>;
275
- export const ListContainersResponseItemsList = /*@__PURE__*/ S.Array(
276
- ContainerResponse,
277
- ) as any as S.Schema<ListContainersResponseItemsList>;
278
-
279
149
  export interface ListContainersResponse {
280
150
  cursor: string;
281
151
  items: ListContainersResponseItemsList;
282
152
  limit: number;
283
153
  }
284
- export const ListContainersResponse = /*@__PURE__*/ S.suspend(() =>
285
- S.Struct({
286
- cursor: S.String,
287
- items: ListContainersResponseItemsList,
288
- limit: S.Number,
289
- }),
290
- ).annotate({ identifier: "ListContainersResponse" }) as any as S.Schema<ListContainersResponse>;
291
-
292
154
  export interface ListOrganizationContainersRequest {
293
155
  /** The STACKIT portal organization UUID */
294
156
  organizationId: string;
@@ -297,108 +159,30 @@ export interface ListOrganizationContainersRequest {
297
159
  /** A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. */
298
160
  cursor?: string;
299
161
  }
300
- export const ListOrganizationContainersRequest = /*@__PURE__*/ S.suspend(() =>
301
- S.Struct({
302
- organizationId: S.String.pipe(T.Label()),
303
- limit: S.optional(S.Number.pipe(T.Query())),
304
- cursor: S.optional(S.String.pipe(T.Query())),
305
- }).pipe(
306
- T.Http({
307
- method: "GET",
308
- uri: "/v1/organizations/{organizationId}/children",
309
- code: 200,
310
- baseUrl: "https://ufw.api.stackit.cloud",
311
- }),
312
- ),
313
- ).annotate({
314
- identifier: "ListOrganizationContainersRequest",
315
- }) as any as S.Schema<ListOrganizationContainersRequest>;
316
-
317
162
  export type ListProviderOptionsRequestRegionId = "eu01" | "eu02";
318
- export const ListProviderOptionsRequestRegionId = S.String;
319
-
320
163
  export interface ListProviderOptionsRequest {
321
164
  /** The STACKIT region name the resource is located in. */
322
165
  regionId: ListProviderOptionsRequestRegionId | (string & {});
323
166
  }
324
- export const ListProviderOptionsRequest = /*@__PURE__*/ S.suspend(() =>
325
- S.Struct({
326
- regionId: ListProviderOptionsRequestRegionId.pipe(T.Label()),
327
- }).pipe(
328
- T.Http({
329
- method: "GET",
330
- uri: "/v1/regions/{regionId}/provider-options",
331
- code: 200,
332
- baseUrl: "https://ufw.api.stackit.cloud",
333
- }),
334
- ),
335
- ).annotate({
336
- identifier: "ListProviderOptionsRequest",
337
- }) as any as S.Schema<ListProviderOptionsRequest>;
338
-
339
167
  export type ProviderOptionsProductMetaActionsList = Array<string>;
340
- export const ProviderOptionsProductMetaActionsList = /*@__PURE__*/ S.Array(
341
- S.String,
342
- ) as any as S.Schema<ProviderOptionsProductMetaActionsList>;
343
-
344
168
  export type ProviderOptionsProductMetaTypesList = Array<string>;
345
- export const ProviderOptionsProductMetaTypesList = /*@__PURE__*/ S.Array(
346
- S.String,
347
- ) as any as S.Schema<ProviderOptionsProductMetaTypesList>;
348
-
349
169
  export interface ProviderOptionsProductMeta {
350
170
  actions: ProviderOptionsProductMetaActionsList;
351
171
  types: ProviderOptionsProductMetaTypesList;
352
172
  }
353
- export const ProviderOptionsProductMeta = /*@__PURE__*/ S.suspend(() =>
354
- S.Struct({
355
- actions: ProviderOptionsProductMetaActionsList,
356
- types: ProviderOptionsProductMetaTypesList,
357
- }),
358
- ).annotate({
359
- identifier: "ProviderOptionsProductMeta",
360
- }) as any as S.Schema<ProviderOptionsProductMeta>;
361
-
362
173
  export type ProviderOptionsResponseProductMetaMap = {
363
174
  [key: string]: ProviderOptionsProductMeta | undefined;
364
175
  };
365
- export const ProviderOptionsResponseProductMetaMap = /*@__PURE__*/ S.Record(
366
- S.String,
367
- ProviderOptionsProductMeta,
368
- ) as any as S.Schema<ProviderOptionsResponseProductMetaMap>;
369
-
370
176
  export type ProviderOptionsResponseProductsList = Array<string>;
371
- export const ProviderOptionsResponseProductsList = /*@__PURE__*/ S.Array(
372
- S.String,
373
- ) as any as S.Schema<ProviderOptionsResponseProductsList>;
374
-
375
177
  export type ProviderOptionsResponseTypesList = Array<string>;
376
- export const ProviderOptionsResponseTypesList = /*@__PURE__*/ S.Array(
377
- S.String,
378
- ) as any as S.Schema<ProviderOptionsResponseTypesList>;
379
-
380
178
  export interface ProviderOptionsResponse {
381
179
  productMeta: ProviderOptionsResponseProductMetaMap;
382
180
  products: ProviderOptionsResponseProductsList;
383
181
  types: ProviderOptionsResponseTypesList;
384
182
  }
385
- export const ProviderOptionsResponse = /*@__PURE__*/ S.suspend(() =>
386
- S.Struct({
387
- productMeta: ProviderOptionsResponseProductMetaMap,
388
- products: ProviderOptionsResponseProductsList,
389
- types: ProviderOptionsResponseTypesList,
390
- }),
391
- ).annotate({ identifier: "ProviderOptionsResponse" }) as any as S.Schema<ProviderOptionsResponse>;
392
-
393
183
  export type ListRulesRequestRegionId = "eu01" | "eu02";
394
- export const ListRulesRequestRegionId = S.String;
395
-
396
184
  export type ListRulesRequestDirection = "ingress" | "egress";
397
- export const ListRulesRequestDirection = S.String;
398
-
399
185
  export type ListRulesRequestSortOrder = "asc" | "desc";
400
- export const ListRulesRequestSortOrder = S.String;
401
-
402
186
  export interface ListRulesRequest {
403
187
  /** The STACKIT portal project UUID */
404
188
  projectId: string;
@@ -431,57 +215,13 @@ export interface ListRulesRequest {
431
215
  /** A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. */
432
216
  cursor?: string;
433
217
  }
434
- export const ListRulesRequest = /*@__PURE__*/ S.suspend(() =>
435
- S.Struct({
436
- projectId: S.String.pipe(T.Label()),
437
- regionId: ListRulesRequestRegionId.pipe(T.Label()),
438
- securityGroupId: S.optional(S.String.pipe(T.Query())),
439
- product: S.optional(S.String.pipe(T.Query())),
440
- instanceId: S.optional(S.String.pipe(T.Query())),
441
- type: S.optional(S.String.pipe(T.Query())),
442
- sourceIP: S.optional(S.String.pipe(T.Query())),
443
- portRange: S.optional(S.String.pipe(T.Query())),
444
- protocol: S.optional(S.String.pipe(T.Query())),
445
- direction: S.optional(ListRulesRequestDirection.pipe(T.Query())),
446
- etherType: S.optional(S.String.pipe(T.Query())),
447
- sortBy: S.optional(S.String.pipe(T.Query())),
448
- sortOrder: S.optional(ListRulesRequestSortOrder.pipe(T.Query())),
449
- limit: S.optional(S.Number.pipe(T.Query())),
450
- cursor: S.optional(S.String.pipe(T.Query())),
451
- }).pipe(
452
- T.Http({
453
- method: "GET",
454
- uri: "/v1/projects/{projectId}/regions/{regionId}/rules",
455
- code: 200,
456
- baseUrl: "https://ufw.api.stackit.cloud",
457
- }),
458
- ),
459
- ).annotate({ identifier: "ListRulesRequest" }) as any as S.Schema<ListRulesRequest>;
460
-
461
218
  export type ListRulesResponseErrorsList = Array<string>;
462
- export const ListRulesResponseErrorsList = /*@__PURE__*/ S.Array(
463
- S.String,
464
- ) as any as S.Schema<ListRulesResponseErrorsList>;
465
-
466
219
  export type ListRulesResponseRulesList = Array<RuleResponse>;
467
- export const ListRulesResponseRulesList = /*@__PURE__*/ S.Array(
468
- RuleResponse,
469
- ) as any as S.Schema<ListRulesResponseRulesList>;
470
-
471
220
  export interface ListRulesResponse {
472
221
  errors?: ListRulesResponseErrorsList;
473
222
  rules: ListRulesResponseRulesList;
474
223
  }
475
- export const ListRulesResponse = /*@__PURE__*/ S.suspend(() =>
476
- S.Struct({
477
- errors: S.optional(ListRulesResponseErrorsList),
478
- rules: ListRulesResponseRulesList,
479
- }),
480
- ).annotate({ identifier: "ListRulesResponse" }) as any as S.Schema<ListRulesResponse>;
481
-
482
224
  export type UpdateRuleRequestRegionId = "eu01" | "eu02";
483
- export const UpdateRuleRequestRegionId = S.String;
484
-
485
225
  export interface UpdateRuleRequest {
486
226
  /** The STACKIT portal project UUID */
487
227
  projectId: string;
@@ -502,37 +242,10 @@ export interface UpdateRuleRequest {
502
242
  /** The IP (CIDR) to which the rule applies. */
503
243
  sourceIP: string;
504
244
  }
505
- export const UpdateRuleRequest = /*@__PURE__*/ S.suspend(() =>
506
- S.Struct({
507
- projectId: S.String.pipe(T.Label()),
508
- regionId: UpdateRuleRequestRegionId.pipe(T.Label()),
509
- ruleId: S.String.pipe(T.Label()),
510
- direction: S.optional(S.String),
511
- etherType: S.optional(S.String),
512
- portRange: S.optional(S.String),
513
- protocol: S.optional(S.String),
514
- securityGroupId: S.optional(S.String),
515
- sourceIP: S.String,
516
- }).pipe(
517
- T.Http({
518
- method: "PUT",
519
- uri: "/v1/projects/{projectId}/regions/{regionId}/rules/{ruleId}",
520
- code: 200,
521
- baseUrl: "https://ufw.api.stackit.cloud",
522
- }),
523
- ),
524
- ).annotate({ identifier: "UpdateRuleRequest" }) as any as S.Schema<UpdateRuleRequest>;
525
-
526
245
  export interface UpdateRuleResponse {
527
246
  /** Represents the uuid of the updated rule */
528
247
  refId?: string;
529
248
  }
530
- export const UpdateRuleResponse = /*@__PURE__*/ S.suspend(() =>
531
- S.Struct({
532
- refId: S.optional(S.String),
533
- }),
534
- ).annotate({ identifier: "UpdateRuleResponse" }) as any as S.Schema<UpdateRuleResponse>;
535
-
536
249
  export type CreateRuleError = BadRequest | Forbidden | NotFound | StackitOpError;
537
250
  /** Create rule for a project Returns the created rule for a specific project */
538
251
  export const createRule: API.OperationMethod<
@@ -541,8 +254,8 @@ export const createRule: API.OperationMethod<
541
254
  CreateRuleError,
542
255
  StackitOpContext
543
256
  > = /*@__PURE__*/ API.make(() => ({
544
- input: CreateRuleRequest,
545
- output: CreateRuleResponse,
257
+ input: __S(4, __c1, 0) as any as S.Schema<CreateRuleRequest>,
258
+ output: __S(8, __c2, 0) as any as S.Schema<CreateRuleResponse>,
546
259
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
547
260
  protocol: StackitProtocol,
548
261
  retry: Retry.Retry,
@@ -556,8 +269,8 @@ export const deleteRule: API.OperationMethod<
556
269
  DeleteRuleError,
557
270
  StackitOpContext
558
271
  > = /*@__PURE__*/ API.make(() => ({
559
- input: DeleteRuleRequest,
560
- output: DeleteRuleResponse,
272
+ input: __S(12, __c3, 0) as any as S.Schema<DeleteRuleRequest>,
273
+ output: __S(13, __c3, 1) as any as S.Schema<DeleteRuleResponse>,
561
274
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
562
275
  protocol: StackitProtocol,
563
276
  retry: Retry.Retry,
@@ -571,8 +284,8 @@ export const getRule: API.OperationMethod<
571
284
  GetRuleError,
572
285
  StackitOpContext
573
286
  > = /*@__PURE__*/ API.make(() => ({
574
- input: GetRuleRequest,
575
- output: RuleResponse,
287
+ input: __S(16, __c4, 0) as any as S.Schema<GetRuleRequest>,
288
+ output: __S(20, __c5, 0) as any as S.Schema<RuleResponse>,
576
289
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
577
290
  protocol: StackitProtocol,
578
291
  retry: Retry.Retry,
@@ -586,8 +299,8 @@ export const listFolderContainers: API.OperationMethod<
586
299
  ListFolderContainersError,
587
300
  StackitOpContext
588
301
  > = /*@__PURE__*/ API.make(() => ({
589
- input: ListFolderContainersRequest,
590
- output: ListContainersResponse,
302
+ input: __S(24, __c6, 0) as any as S.Schema<ListFolderContainersRequest>,
303
+ output: __S(30, __c7, 2) as any as S.Schema<ListContainersResponse>,
591
304
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
592
305
  protocol: StackitProtocol,
593
306
  retry: Retry.Retry,
@@ -601,8 +314,8 @@ export const listOrganizationContainers: API.OperationMethod<
601
314
  ListOrganizationContainersError,
602
315
  StackitOpContext
603
316
  > = /*@__PURE__*/ API.make(() => ({
604
- input: ListOrganizationContainersRequest,
605
- output: ListContainersResponse,
317
+ input: __S(32, __c8, 0) as any as S.Schema<ListOrganizationContainersRequest>,
318
+ output: __S(30, __c7, 2) as any as S.Schema<ListContainersResponse>,
606
319
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
607
320
  protocol: StackitProtocol,
608
321
  retry: Retry.Retry,
@@ -616,8 +329,8 @@ export const listProviderOptions: API.OperationMethod<
616
329
  ListProviderOptionsError,
617
330
  StackitOpContext
618
331
  > = /*@__PURE__*/ API.make(() => ({
619
- input: ListProviderOptionsRequest,
620
- output: ProviderOptionsResponse,
332
+ input: __S(36, __c9, 0) as any as S.Schema<ListProviderOptionsRequest>,
333
+ output: __S(39, __c9, 3) as any as S.Schema<ProviderOptionsResponse>,
621
334
  errors: [BadRequest, UnknownStackitError],
622
335
  protocol: StackitProtocol,
623
336
  retry: Retry.Retry,
@@ -631,8 +344,8 @@ export const listRules: API.OperationMethod<
631
344
  ListRulesError,
632
345
  StackitOpContext
633
346
  > = /*@__PURE__*/ API.make(() => ({
634
- input: ListRulesRequest,
635
- output: ListRulesResponse,
347
+ input: __S(44, __c11, 0) as any as S.Schema<ListRulesRequest>,
348
+ output: __S(46, __c11, 2) as any as S.Schema<ListRulesResponse>,
636
349
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
637
350
  protocol: StackitProtocol,
638
351
  retry: Retry.Retry,
@@ -646,9 +359,294 @@ export const updateRule: API.OperationMethod<
646
359
  UpdateRuleError,
647
360
  StackitOpContext
648
361
  > = /*@__PURE__*/ API.make(() => ({
649
- input: UpdateRuleRequest,
650
- output: UpdateRuleResponse,
362
+ input: __S(0, __c0, 0) as any as S.Schema<UpdateRuleRequest>,
363
+ output: __S(8, __c2, 0) as any as S.Schema<UpdateRuleResponse>,
651
364
  errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
652
365
  protocol: StackitProtocol,
653
366
  retry: Retry.Retry,
654
367
  }));
368
+
369
+ // Schema builders: each runs one schema initializer, on that schema's first use.
370
+ function __c0(j: number): any {
371
+ switch (j) {
372
+ case 0:
373
+ return S.suspend(() =>
374
+ S.Struct({
375
+ projectId: S.String.pipe(T.Label()),
376
+ regionId: S.String.pipe(T.Label()),
377
+ ruleId: S.String.pipe(T.Label()),
378
+ direction: S.optional(S.String),
379
+ etherType: S.optional(S.String),
380
+ portRange: S.optional(S.String),
381
+ protocol: S.optional(S.String),
382
+ securityGroupId: S.optional(S.String),
383
+ sourceIP: S.String,
384
+ }).pipe(
385
+ T.Http({
386
+ method: "PUT",
387
+ uri: "/v1/projects/{projectId}/regions/{regionId}/rules/{ruleId}",
388
+ code: 200,
389
+ baseUrl: "https://ufw.api.stackit.cloud",
390
+ }),
391
+ ),
392
+ ).annotate({ identifier: "UpdateRuleRequest" });
393
+ }
394
+ }
395
+ function __c1(j: number): any {
396
+ switch (j) {
397
+ case 0:
398
+ return S.suspend(() =>
399
+ S.Struct({
400
+ projectId: S.String.pipe(T.Label()),
401
+ regionId: S.String.pipe(T.Label()),
402
+ description: S.optional(S.String),
403
+ direction: S.optional(S.String),
404
+ etherType: S.optional(S.String),
405
+ instanceId: S.String,
406
+ offset: S.optional(S.Number),
407
+ portRange: S.optional(S.String),
408
+ product: S.String,
409
+ protocol: S.optional(S.String),
410
+ remoteSecurityGroupId: S.optional(S.String),
411
+ securityGroupId: S.optional(S.String),
412
+ sourceIP: S.String,
413
+ stateful: S.optional(S.Boolean),
414
+ type: S.String,
415
+ }).pipe(
416
+ T.Http({
417
+ method: "POST",
418
+ uri: "/v1/projects/{projectId}/regions/{regionId}/rules",
419
+ code: 200,
420
+ baseUrl: "https://ufw.api.stackit.cloud",
421
+ }),
422
+ ),
423
+ ).annotate({ identifier: "CreateRuleRequest" });
424
+ }
425
+ }
426
+ function __c2(j: number): any {
427
+ switch (j) {
428
+ case 0:
429
+ return S.suspend(() =>
430
+ S.Struct({
431
+ refId: S.optional(S.String),
432
+ }),
433
+ ).annotate({ identifier: "CreateRuleResponse" });
434
+ }
435
+ }
436
+ function __c3(j: number): any {
437
+ switch (j) {
438
+ case 0:
439
+ return S.suspend(() =>
440
+ S.Struct({
441
+ projectId: S.String.pipe(T.Label()),
442
+ regionId: S.String.pipe(T.Label()),
443
+ ruleId: S.String.pipe(T.Label()),
444
+ }).pipe(
445
+ T.Http({
446
+ method: "DELETE",
447
+ uri: "/v1/projects/{projectId}/regions/{regionId}/rules/{ruleId}",
448
+ code: 200,
449
+ baseUrl: "https://ufw.api.stackit.cloud",
450
+ }),
451
+ ),
452
+ ).annotate({ identifier: "DeleteRuleRequest" });
453
+ case 1:
454
+ return S.suspend(() =>
455
+ S.Struct({
456
+ success: S.optional(S.Boolean),
457
+ }),
458
+ ).annotate({ identifier: "DeleteRuleResponse" });
459
+ }
460
+ }
461
+ function __c4(j: number): any {
462
+ switch (j) {
463
+ case 0:
464
+ return S.suspend(() =>
465
+ S.Struct({
466
+ projectId: S.String.pipe(T.Label()),
467
+ regionId: S.String.pipe(T.Label()),
468
+ ruleId: S.String.pipe(T.Label()),
469
+ }).pipe(
470
+ T.Http({
471
+ method: "GET",
472
+ uri: "/v1/projects/{projectId}/regions/{regionId}/rules/{ruleId}",
473
+ code: 200,
474
+ baseUrl: "https://ufw.api.stackit.cloud",
475
+ }),
476
+ ),
477
+ ).annotate({ identifier: "GetRuleRequest" });
478
+ }
479
+ }
480
+ function __c5(j: number): any {
481
+ switch (j) {
482
+ case 0:
483
+ return S.suspend(() =>
484
+ S.Struct({
485
+ description: S.optional(S.String),
486
+ destination: S.String,
487
+ direction: S.optional(S.String),
488
+ errorMessage: S.optional(S.String),
489
+ etherType: S.optional(S.String),
490
+ instanceId: S.String,
491
+ instanceName: S.optional(S.String),
492
+ ipRange: S.optional(S.String),
493
+ offset: S.optional(S.Number),
494
+ portRange: S.optional(S.String),
495
+ product: S.String,
496
+ protocol: S.optional(S.String),
497
+ refId: S.optional(S.String),
498
+ region: S.optional(S.String),
499
+ remoteSecurityGroupId: S.optional(S.String),
500
+ securityGroupId: S.optional(S.String),
501
+ sourceIP: S.String,
502
+ stateful: S.optional(S.Boolean),
503
+ status: S.String,
504
+ type: S.String,
505
+ }),
506
+ ).annotate({ identifier: "RuleResponse" });
507
+ }
508
+ }
509
+ function __c6(j: number): any {
510
+ switch (j) {
511
+ case 0:
512
+ return S.suspend(() =>
513
+ S.Struct({
514
+ folderId: S.String.pipe(T.Label()),
515
+ limit: S.optional(S.Number.pipe(T.Query())),
516
+ cursor: S.optional(S.String.pipe(T.Query())),
517
+ }).pipe(
518
+ T.Http({
519
+ method: "GET",
520
+ uri: "/v1/folders/{folderId}/children",
521
+ code: 200,
522
+ baseUrl: "https://ufw.api.stackit.cloud",
523
+ }),
524
+ ),
525
+ ).annotate({ identifier: "ListFolderContainersRequest" });
526
+ }
527
+ }
528
+ function __c7(j: number): any {
529
+ switch (j) {
530
+ case 0:
531
+ return S.suspend(() =>
532
+ S.Struct({
533
+ id: S.String,
534
+ name: S.String,
535
+ type: S.String,
536
+ }),
537
+ ).annotate({ identifier: "ContainerResponse" });
538
+ case 1:
539
+ return S.Array(__S(28, __c7, 0));
540
+ case 2:
541
+ return S.suspend(() =>
542
+ S.Struct({
543
+ cursor: S.String,
544
+ items: __S(29, __c7, 1),
545
+ limit: S.Number,
546
+ }),
547
+ ).annotate({ identifier: "ListContainersResponse" });
548
+ }
549
+ }
550
+ function __c8(j: number): any {
551
+ switch (j) {
552
+ case 0:
553
+ return S.suspend(() =>
554
+ S.Struct({
555
+ organizationId: S.String.pipe(T.Label()),
556
+ limit: S.optional(S.Number.pipe(T.Query())),
557
+ cursor: S.optional(S.String.pipe(T.Query())),
558
+ }).pipe(
559
+ T.Http({
560
+ method: "GET",
561
+ uri: "/v1/organizations/{organizationId}/children",
562
+ code: 200,
563
+ baseUrl: "https://ufw.api.stackit.cloud",
564
+ }),
565
+ ),
566
+ ).annotate({ identifier: "ListOrganizationContainersRequest" });
567
+ }
568
+ }
569
+ function __c9(j: number): any {
570
+ switch (j) {
571
+ case 0:
572
+ return S.suspend(() =>
573
+ S.Struct({
574
+ regionId: S.String.pipe(T.Label()),
575
+ }).pipe(
576
+ T.Http({
577
+ method: "GET",
578
+ uri: "/v1/regions/{regionId}/provider-options",
579
+ code: 200,
580
+ baseUrl: "https://ufw.api.stackit.cloud",
581
+ }),
582
+ ),
583
+ ).annotate({ identifier: "ListProviderOptionsRequest" });
584
+ case 1:
585
+ return S.suspend(() =>
586
+ S.Struct({
587
+ actions: __S(40, __c10, 0),
588
+ types: __S(40, __c10, 0),
589
+ }),
590
+ ).annotate({ identifier: "ProviderOptionsProductMeta" });
591
+ case 2:
592
+ return S.Record(S.String, __S(37, __c9, 1));
593
+ case 3:
594
+ return S.suspend(() =>
595
+ S.Struct({
596
+ productMeta: __S(38, __c9, 2),
597
+ products: __S(40, __c10, 0),
598
+ types: __S(40, __c10, 0),
599
+ }),
600
+ ).annotate({ identifier: "ProviderOptionsResponse" });
601
+ }
602
+ }
603
+ function __c10(j: number): any {
604
+ switch (j) {
605
+ case 0:
606
+ return S.Array(S.String);
607
+ }
608
+ }
609
+ function __c11(j: number): any {
610
+ switch (j) {
611
+ case 0:
612
+ return S.suspend(() =>
613
+ S.Struct({
614
+ projectId: S.String.pipe(T.Label()),
615
+ regionId: S.String.pipe(T.Label()),
616
+ securityGroupId: S.optional(S.String.pipe(T.Query())),
617
+ product: S.optional(S.String.pipe(T.Query())),
618
+ instanceId: S.optional(S.String.pipe(T.Query())),
619
+ type: S.optional(S.String.pipe(T.Query())),
620
+ sourceIP: S.optional(S.String.pipe(T.Query())),
621
+ portRange: S.optional(S.String.pipe(T.Query())),
622
+ protocol: S.optional(S.String.pipe(T.Query())),
623
+ direction: S.optional(S.String.pipe(T.Query())),
624
+ etherType: S.optional(S.String.pipe(T.Query())),
625
+ sortBy: S.optional(S.String.pipe(T.Query())),
626
+ sortOrder: S.optional(S.String.pipe(T.Query())),
627
+ limit: S.optional(S.Number.pipe(T.Query())),
628
+ cursor: S.optional(S.String.pipe(T.Query())),
629
+ }).pipe(
630
+ T.Http({
631
+ method: "GET",
632
+ uri: "/v1/projects/{projectId}/regions/{regionId}/rules",
633
+ code: 200,
634
+ baseUrl: "https://ufw.api.stackit.cloud",
635
+ }),
636
+ ),
637
+ ).annotate({ identifier: "ListRulesRequest" });
638
+ case 1:
639
+ return S.Array(__S(20, __c5, 0));
640
+ case 2:
641
+ return S.suspend(() =>
642
+ S.Struct({
643
+ errors: S.optional(__S(40, __c10, 0)),
644
+ rules: __S(45, __c11, 1),
645
+ }),
646
+ ).annotate({ identifier: "ListRulesResponse" });
647
+ }
648
+ }
649
+ // Schema table: entry i is schema j of builder f, made on first reach.
650
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
651
+ return (__s[i] ??= __L.at(f, j));
652
+ }