@distilled.cloud/stackit 1.0.0-rc.14 → 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
 
@@ -38,8 +41,6 @@ export class NotFound
38
41
  ) {}
39
42
 
40
43
  export type CreateDremioInstanceRequestRegionId = "eu01" | "eu02";
41
- export const CreateDremioInstanceRequestRegionId = S.String;
42
-
43
44
  /** Azure Active Directory authentication configuration. */
44
45
  export interface AzureadInput {
45
46
  /** The Azure AD authority URL. */
@@ -49,42 +50,17 @@ export interface AzureadInput {
49
50
  /** The Azure AD client secret. */
50
51
  clientSecret?: string | Redacted.Redacted<string>;
51
52
  }
52
- export const AzureadInput = /*@__PURE__*/ S.suspend(() =>
53
- S.Struct({
54
- authorityUrl: S.String,
55
- clientId: S.String,
56
- clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
57
- }),
58
- ).annotate({ identifier: "AzureadInput" }) as any as S.Schema<AzureadInput>;
59
-
60
53
  /** Maps fields from the JWT token to fields Dremio requires. */
61
54
  export interface OauthInputJwtClaims {
62
55
  userName: string;
63
56
  }
64
- export const OauthInputJwtClaims = /*@__PURE__*/ S.suspend(() =>
65
- S.Struct({
66
- userName: S.String,
67
- }),
68
- ).annotate({ identifier: "OauthInputJwtClaims" }) as any as S.Schema<OauthInputJwtClaims>;
69
-
70
57
  /** An additional parameter the Identity Provider requires. */
71
58
  export interface AuthParameters {
72
59
  name: string;
73
60
  value: string;
74
61
  }
75
- export const AuthParameters = /*@__PURE__*/ S.suspend(() =>
76
- S.Struct({
77
- name: S.String,
78
- value: S.String,
79
- }),
80
- ).annotate({ identifier: "AuthParameters" }) as any as S.Schema<AuthParameters>;
81
-
82
62
  /** Any additional parameters the Identity Provider requires. */
83
63
  export type OauthInputParametersList = Array<AuthParameters>;
84
- export const OauthInputParametersList = /*@__PURE__*/ S.Array(
85
- AuthParameters,
86
- ) as any as S.Schema<OauthInputParametersList>;
87
-
88
64
  /** OIDC authentication configuration. */
89
65
  export interface OauthInput {
90
66
  /** The Issuer location URI, where the OIDC provider configuration can be found. */
@@ -100,34 +76,13 @@ export interface OauthInput {
100
76
  /** A list of space-separated scopes. The `openid` scope is always required; other scopes can vary by provider. */
101
77
  scope?: string;
102
78
  }
103
- export const OauthInput = /*@__PURE__*/ S.suspend(() =>
104
- S.Struct({
105
- authorityUrl: S.String,
106
- clientId: S.String,
107
- clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
108
- jwtClaims: OauthInputJwtClaims,
109
- parameters: S.optional(OauthInputParametersList),
110
- scope: S.optional(S.String),
111
- }),
112
- ).annotate({ identifier: "OauthInput" }) as any as S.Schema<OauthInput>;
113
-
114
79
  export type AuthenticationInputType = "local-only" | "azuread" | "oauth";
115
- export const AuthenticationInputType = S.String;
116
-
117
80
  /** Dremio instance authentication settings. A change here triggers a Dremio restart and will incur downtime. */
118
81
  export interface AuthenticationInput {
119
82
  azuread?: AzureadInput;
120
83
  oauth?: OauthInput;
121
84
  type: AuthenticationInputType | (string & {});
122
85
  }
123
- export const AuthenticationInput = /*@__PURE__*/ S.suspend(() =>
124
- S.Struct({
125
- azuread: S.optional(AzureadInput),
126
- oauth: S.optional(OauthInput),
127
- type: AuthenticationInputType,
128
- }),
129
- ).annotate({ identifier: "AuthenticationInput" }) as any as S.Schema<AuthenticationInput>;
130
-
131
86
  export interface CreateDremioInstanceRequest {
132
87
  /** The STACKIT portal project UUID the resource is located in. */
133
88
  projectId: string;
@@ -139,25 +94,6 @@ export interface CreateDremioInstanceRequest {
139
94
  /** The display name is a short name chosen by the user to identify the resource. */
140
95
  displayName: string;
141
96
  }
142
- export const CreateDremioInstanceRequest = /*@__PURE__*/ S.suspend(() =>
143
- S.Struct({
144
- projectId: S.String.pipe(T.Label()),
145
- regionId: CreateDremioInstanceRequestRegionId.pipe(T.Label()),
146
- authentication: S.optional(AuthenticationInput),
147
- description: S.optional(S.String),
148
- displayName: S.String,
149
- }).pipe(
150
- T.Http({
151
- method: "POST",
152
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios",
153
- code: 200,
154
- baseUrl: "https://dremio.api.{region}stackit.cloud",
155
- }),
156
- ),
157
- ).annotate({
158
- identifier: "CreateDremioInstanceRequest",
159
- }) as any as S.Schema<CreateDremioInstanceRequest>;
160
-
161
97
  /** Azure Active Directory authentication configuration. */
162
98
  export interface AzureadOutput {
163
99
  /** The Azure AD authority URL. */
@@ -167,24 +103,10 @@ export interface AzureadOutput {
167
103
  /** The Azure AD redirect URL. */
168
104
  redirectUrl?: string;
169
105
  }
170
- export const AzureadOutput = /*@__PURE__*/ S.suspend(() =>
171
- S.Struct({
172
- authorityUrl: S.String,
173
- clientId: S.String,
174
- redirectUrl: S.optional(S.String),
175
- }),
176
- ).annotate({ identifier: "AzureadOutput" }) as any as S.Schema<AzureadOutput>;
177
-
178
106
  /** Maps fields from the JWT token to fields Dremio requires. */
179
107
  export type OauthOutputJwtClaims = OauthInputJwtClaims;
180
- export const OauthOutputJwtClaims = OauthInputJwtClaims;
181
-
182
108
  /** Any additional parameters the Identity Provider requires. */
183
109
  export type OauthOutputParametersList = Array<AuthParameters>;
184
- export const OauthOutputParametersList = /*@__PURE__*/ S.Array(
185
- AuthParameters,
186
- ) as any as S.Schema<OauthOutputParametersList>;
187
-
188
110
  /** OIDC authentication configuration. */
189
111
  export interface OauthOutput {
190
112
  /** The Issuer location URI, where the OIDC provider configuration can be found. */
@@ -200,34 +122,13 @@ export interface OauthOutput {
200
122
  /** A list of space-separated scopes. The `openid` scope is always required; other scopes can vary by provider. */
201
123
  scope?: string;
202
124
  }
203
- export const OauthOutput = /*@__PURE__*/ S.suspend(() =>
204
- S.Struct({
205
- authorityUrl: S.String,
206
- clientId: S.String,
207
- jwtClaims: OauthInputJwtClaims,
208
- parameters: S.optional(OauthOutputParametersList),
209
- redirectUrl: S.optional(S.String),
210
- scope: S.optional(S.String),
211
- }),
212
- ).annotate({ identifier: "OauthOutput" }) as any as S.Schema<OauthOutput>;
213
-
214
125
  export type AuthenticationOutputType = "local-only" | "azuread" | "oauth";
215
- export const AuthenticationOutputType = S.String;
216
-
217
126
  /** Dremio instance authentication settings. A change here triggers a Dremio restart and will incur downtime. */
218
127
  export interface AuthenticationOutput {
219
128
  azuread?: AzureadOutput;
220
129
  oauth?: OauthOutput;
221
130
  type: AuthenticationOutputType;
222
131
  }
223
- export const AuthenticationOutput = /*@__PURE__*/ S.suspend(() =>
224
- S.Struct({
225
- azuread: S.optional(AzureadOutput),
226
- oauth: S.optional(OauthOutput),
227
- type: AuthenticationOutputType,
228
- }),
229
- ).annotate({ identifier: "AuthenticationOutput" }) as any as S.Schema<AuthenticationOutput>;
230
-
231
132
  /** A collection of endpoints offered by the Dremio instance. */
232
133
  export interface Endpoints {
233
134
  /** The URL for the Arrow Flight endpoint of the Dremio instance. */
@@ -237,18 +138,8 @@ export interface Endpoints {
237
138
  /** The URL for the UI of the Dremio instance. */
238
139
  ui: string;
239
140
  }
240
- export const Endpoints = /*@__PURE__*/ S.suspend(() =>
241
- S.Struct({
242
- arrowFlight: S.String,
243
- catalog: S.String,
244
- ui: S.String,
245
- }),
246
- ).annotate({ identifier: "Endpoints" }) as any as S.Schema<Endpoints>;
247
-
248
141
  /** The current state of the resource. */
249
142
  export type DremioResponseOutputState = "reconciling" | "active" | "deleting" | "error";
250
- export const DremioResponseOutputState = S.String;
251
-
252
143
  export interface DremioResponseOutput {
253
144
  authentication: AuthenticationOutput;
254
145
  /** The point in time the resource was created. */
@@ -265,22 +156,7 @@ export interface DremioResponseOutput {
265
156
  /** The current state of the resource. */
266
157
  state: DremioResponseOutputState;
267
158
  }
268
- export const DremioResponseOutput = /*@__PURE__*/ S.suspend(() =>
269
- S.Struct({
270
- authentication: AuthenticationOutput,
271
- create_time: S.String,
272
- description: S.optional(S.String),
273
- displayName: S.String,
274
- endpoints: Endpoints,
275
- errorMessage: S.optional(S.String),
276
- id: S.String,
277
- state: DremioResponseOutputState,
278
- }),
279
- ).annotate({ identifier: "DremioResponseOutput" }) as any as S.Schema<DremioResponseOutput>;
280
-
281
159
  export type CreateDremioUserRequestRegionId = "eu01" | "eu02";
282
- export const CreateDremioUserRequestRegionId = S.String;
283
-
284
160
  export interface CreateDremioUserRequest {
285
161
  /** The STACKIT portal project UUID the resource is located in. */
286
162
  projectId: string;
@@ -301,31 +177,8 @@ export interface CreateDremioUserRequest {
301
177
  /** A password chosen by the user. */
302
178
  password: string | Redacted.Redacted<string>;
303
179
  }
304
- export const CreateDremioUserRequest = /*@__PURE__*/ S.suspend(() =>
305
- S.Struct({
306
- projectId: S.String.pipe(T.Label()),
307
- regionId: CreateDremioUserRequestRegionId.pipe(T.Label()),
308
- dremioId: S.String.pipe(T.Label()),
309
- description: S.optional(S.String),
310
- email: S.String,
311
- firstName: S.String,
312
- lastName: S.String,
313
- name: S.String,
314
- password: S.String.pipe(T.SensitiveValue({})),
315
- }).pipe(
316
- T.Http({
317
- method: "POST",
318
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users",
319
- code: 200,
320
- baseUrl: "https://dremio.api.{region}stackit.cloud",
321
- }),
322
- ),
323
- ).annotate({ identifier: "CreateDremioUserRequest" }) as any as S.Schema<CreateDremioUserRequest>;
324
-
325
180
  /** The current state of the resource. */
326
181
  export type DremioUserResponseState = "reconciling" | "active" | "deleting" | "error";
327
- export const DremioUserResponseState = S.String;
328
-
329
182
  export interface DremioUserResponse {
330
183
  /** The point in time the resource was created. */
331
184
  create_time?: string;
@@ -346,23 +199,7 @@ export interface DremioUserResponse {
346
199
  /** The current state of the resource. */
347
200
  state: DremioUserResponseState;
348
201
  }
349
- export const DremioUserResponse = /*@__PURE__*/ S.suspend(() =>
350
- S.Struct({
351
- create_time: S.optional(S.String),
352
- description: S.optional(S.String),
353
- email: S.String,
354
- errorMessage: S.optional(S.String),
355
- firstName: S.String,
356
- id: S.String,
357
- lastName: S.String,
358
- name: S.String,
359
- state: DremioUserResponseState,
360
- }),
361
- ).annotate({ identifier: "DremioUserResponse" }) as any as S.Schema<DremioUserResponse>;
362
-
363
202
  export type DeleteDremioInstanceRequestRegionId = "eu01" | "eu02";
364
- export const DeleteDremioInstanceRequestRegionId = S.String;
365
-
366
203
  export interface DeleteDremioInstanceRequest {
367
204
  /** The STACKIT portal project UUID the resource is located in. */
368
205
  projectId: string;
@@ -371,31 +208,8 @@ export interface DeleteDremioInstanceRequest {
371
208
  /** The Dremio instance UUID. */
372
209
  dremioId: string;
373
210
  }
374
- export const DeleteDremioInstanceRequest = /*@__PURE__*/ S.suspend(() =>
375
- S.Struct({
376
- projectId: S.String.pipe(T.Label()),
377
- regionId: DeleteDremioInstanceRequestRegionId.pipe(T.Label()),
378
- dremioId: S.String.pipe(T.Label()),
379
- }).pipe(
380
- T.Http({
381
- method: "DELETE",
382
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}",
383
- code: 200,
384
- baseUrl: "https://dremio.api.{region}stackit.cloud",
385
- }),
386
- ),
387
- ).annotate({
388
- identifier: "DeleteDremioInstanceRequest",
389
- }) as any as S.Schema<DeleteDremioInstanceRequest>;
390
-
391
211
  export interface DeleteDremioInstanceResponse {}
392
- export const DeleteDremioInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
393
- identifier: "DeleteDremioInstanceResponse",
394
- }) as any as S.Schema<DeleteDremioInstanceResponse>;
395
-
396
212
  export type DeleteDremioUserRequestRegionId = "eu01" | "eu02";
397
- export const DeleteDremioUserRequestRegionId = S.String;
398
-
399
213
  export interface DeleteDremioUserRequest {
400
214
  /** The STACKIT portal project UUID the resource is located in. */
401
215
  projectId: string;
@@ -406,30 +220,8 @@ export interface DeleteDremioUserRequest {
406
220
  /** The Dremio user UUID. */
407
221
  dremioUserId: string;
408
222
  }
409
- export const DeleteDremioUserRequest = /*@__PURE__*/ S.suspend(() =>
410
- S.Struct({
411
- projectId: S.String.pipe(T.Label()),
412
- regionId: DeleteDremioUserRequestRegionId.pipe(T.Label()),
413
- dremioId: S.String.pipe(T.Label()),
414
- dremioUserId: S.String.pipe(T.Label()),
415
- }).pipe(
416
- T.Http({
417
- method: "DELETE",
418
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users/{dremioUserId}",
419
- code: 200,
420
- baseUrl: "https://dremio.api.{region}stackit.cloud",
421
- }),
422
- ),
423
- ).annotate({ identifier: "DeleteDremioUserRequest" }) as any as S.Schema<DeleteDremioUserRequest>;
424
-
425
223
  export interface DeleteDremioUserResponse {}
426
- export const DeleteDremioUserResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
427
- identifier: "DeleteDremioUserResponse",
428
- }) as any as S.Schema<DeleteDremioUserResponse>;
429
-
430
224
  export type GetDremioInstanceRequestRegionId = "eu01" | "eu02";
431
- export const GetDremioInstanceRequestRegionId = S.String;
432
-
433
225
  export interface GetDremioInstanceRequest {
434
226
  /** The STACKIT portal project UUID the resource is located in. */
435
227
  projectId: string;
@@ -438,24 +230,7 @@ export interface GetDremioInstanceRequest {
438
230
  /** The Dremio instance UUID. */
439
231
  dremioId: string;
440
232
  }
441
- export const GetDremioInstanceRequest = /*@__PURE__*/ S.suspend(() =>
442
- S.Struct({
443
- projectId: S.String.pipe(T.Label()),
444
- regionId: GetDremioInstanceRequestRegionId.pipe(T.Label()),
445
- dremioId: S.String.pipe(T.Label()),
446
- }).pipe(
447
- T.Http({
448
- method: "GET",
449
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}",
450
- code: 200,
451
- baseUrl: "https://dremio.api.{region}stackit.cloud",
452
- }),
453
- ),
454
- ).annotate({ identifier: "GetDremioInstanceRequest" }) as any as S.Schema<GetDremioInstanceRequest>;
455
-
456
233
  export type GetDremioUserRequestRegionId = "eu01" | "eu02";
457
- export const GetDremioUserRequestRegionId = S.String;
458
-
459
234
  export interface GetDremioUserRequest {
460
235
  /** The STACKIT portal project UUID the resource is located in. */
461
236
  projectId: string;
@@ -466,25 +241,7 @@ export interface GetDremioUserRequest {
466
241
  /** The Dremio user UUID. */
467
242
  dremioUserId: string;
468
243
  }
469
- export const GetDremioUserRequest = /*@__PURE__*/ S.suspend(() =>
470
- S.Struct({
471
- projectId: S.String.pipe(T.Label()),
472
- regionId: GetDremioUserRequestRegionId.pipe(T.Label()),
473
- dremioId: S.String.pipe(T.Label()),
474
- dremioUserId: S.String.pipe(T.Label()),
475
- }).pipe(
476
- T.Http({
477
- method: "GET",
478
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users/{dremioUserId}",
479
- code: 200,
480
- baseUrl: "https://dremio.api.{region}stackit.cloud",
481
- }),
482
- ),
483
- ).annotate({ identifier: "GetDremioUserRequest" }) as any as S.Schema<GetDremioUserRequest>;
484
-
485
244
  export type ListDremioInstancesRequestRegionId = "eu01" | "eu02";
486
- export const ListDremioInstancesRequestRegionId = S.String;
487
-
488
245
  export interface ListDremioInstancesRequest {
489
246
  /** The STACKIT portal project UUID the resource is located in. */
490
247
  projectId: string;
@@ -495,46 +252,13 @@ export interface ListDremioInstancesRequest {
495
252
  /** Maximum number of items to return. */
496
253
  pageSize?: number;
497
254
  }
498
- export const ListDremioInstancesRequest = /*@__PURE__*/ S.suspend(() =>
499
- S.Struct({
500
- projectId: S.String.pipe(T.Label()),
501
- regionId: ListDremioInstancesRequestRegionId.pipe(T.Label()),
502
- pageToken: S.optional(S.String.pipe(T.Query())),
503
- pageSize: S.optional(S.Number.pipe(T.Query())),
504
- }).pipe(
505
- T.Http({
506
- method: "GET",
507
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios",
508
- code: 200,
509
- baseUrl: "https://dremio.api.{region}stackit.cloud",
510
- }),
511
- ),
512
- ).annotate({
513
- identifier: "ListDremioInstancesRequest",
514
- }) as any as S.Schema<ListDremioInstancesRequest>;
515
-
516
255
  export type ListDremiosResponseOutputDremiosList = Array<DremioResponseOutput>;
517
- export const ListDremiosResponseOutputDremiosList = /*@__PURE__*/ S.Array(
518
- DremioResponseOutput,
519
- ) as any as S.Schema<ListDremiosResponseOutputDremiosList>;
520
-
521
256
  export interface ListDremiosResponseOutput {
522
257
  dremios: ListDremiosResponseOutputDremiosList;
523
258
  /** A token to retrieve the next page of results. */
524
259
  nextPageToken?: string;
525
260
  }
526
- export const ListDremiosResponseOutput = /*@__PURE__*/ S.suspend(() =>
527
- S.Struct({
528
- dremios: ListDremiosResponseOutputDremiosList,
529
- nextPageToken: S.optional(S.String),
530
- }),
531
- ).annotate({
532
- identifier: "ListDremiosResponseOutput",
533
- }) as any as S.Schema<ListDremiosResponseOutput>;
534
-
535
261
  export type ListDremioUsersRequestRegionId = "eu01" | "eu02";
536
- export const ListDremioUsersRequestRegionId = S.String;
537
-
538
262
  export interface ListDremioUsersRequest {
539
263
  /** The STACKIT portal project UUID the resource is located in. */
540
264
  projectId: string;
@@ -547,43 +271,13 @@ export interface ListDremioUsersRequest {
547
271
  /** Maximum number of items to return. */
548
272
  pageSize?: number;
549
273
  }
550
- export const ListDremioUsersRequest = /*@__PURE__*/ S.suspend(() =>
551
- S.Struct({
552
- projectId: S.String.pipe(T.Label()),
553
- regionId: ListDremioUsersRequestRegionId.pipe(T.Label()),
554
- dremioId: S.String.pipe(T.Label()),
555
- pageToken: S.optional(S.String.pipe(T.Query())),
556
- pageSize: S.optional(S.Number.pipe(T.Query())),
557
- }).pipe(
558
- T.Http({
559
- method: "GET",
560
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users",
561
- code: 200,
562
- baseUrl: "https://dremio.api.{region}stackit.cloud",
563
- }),
564
- ),
565
- ).annotate({ identifier: "ListDremioUsersRequest" }) as any as S.Schema<ListDremioUsersRequest>;
566
-
567
274
  export type ListDremioUsersResponseDremioUsersList = Array<DremioUserResponse>;
568
- export const ListDremioUsersResponseDremioUsersList = /*@__PURE__*/ S.Array(
569
- DremioUserResponse,
570
- ) as any as S.Schema<ListDremioUsersResponseDremioUsersList>;
571
-
572
275
  export interface ListDremioUsersResponse {
573
276
  dremioUsers: ListDremioUsersResponseDremioUsersList;
574
277
  /** A token to retrieve the next page of results. */
575
278
  nextPageToken?: string;
576
279
  }
577
- export const ListDremioUsersResponse = /*@__PURE__*/ S.suspend(() =>
578
- S.Struct({
579
- dremioUsers: ListDremioUsersResponseDremioUsersList,
580
- nextPageToken: S.optional(S.String),
581
- }),
582
- ).annotate({ identifier: "ListDremioUsersResponse" }) as any as S.Schema<ListDremioUsersResponse>;
583
-
584
280
  export type UpdateDremioInstanceRequestRegionId = "eu01" | "eu02";
585
- export const UpdateDremioInstanceRequestRegionId = S.String;
586
-
587
281
  export interface UpdateDremioInstanceRequest {
588
282
  /** The STACKIT portal project UUID the resource is located in. */
589
283
  projectId: string;
@@ -597,26 +291,6 @@ export interface UpdateDremioInstanceRequest {
597
291
  /** The display name is a short name chosen by the user to identify the resource. */
598
292
  displayName?: string;
599
293
  }
600
- export const UpdateDremioInstanceRequest = /*@__PURE__*/ S.suspend(() =>
601
- S.Struct({
602
- projectId: S.String.pipe(T.Label()),
603
- regionId: UpdateDremioInstanceRequestRegionId.pipe(T.Label()),
604
- dremioId: S.String.pipe(T.Label()),
605
- authentication: S.optional(AuthenticationInput),
606
- description: S.optional(S.String),
607
- displayName: S.optional(S.String),
608
- }).pipe(
609
- T.Http({
610
- method: "PUT",
611
- uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}",
612
- code: 200,
613
- baseUrl: "https://dremio.api.{region}stackit.cloud",
614
- }),
615
- ),
616
- ).annotate({
617
- identifier: "UpdateDremioInstanceRequest",
618
- }) as any as S.Schema<UpdateDremioInstanceRequest>;
619
-
620
294
  export type CreateDremioInstanceError = BadRequest | Conflict | StackitOpError;
621
295
  /** Creates a new Dremio instance within the project. */
622
296
  export const createDremioInstance: API.OperationMethod<
@@ -625,8 +299,8 @@ export const createDremioInstance: API.OperationMethod<
625
299
  CreateDremioInstanceError,
626
300
  StackitOpContext
627
301
  > = /*@__PURE__*/ API.make(() => ({
628
- input: CreateDremioInstanceRequest,
629
- output: DremioResponseOutput,
302
+ input: __S(16, __c2, 0) as any as S.Schema<CreateDremioInstanceRequest>,
303
+ output: __S(39, __c4, 7) as any as S.Schema<DremioResponseOutput>,
630
304
  errors: [BadRequest, Conflict, UnknownStackitError],
631
305
  protocol: StackitProtocol,
632
306
  retry: Retry.Retry,
@@ -640,8 +314,8 @@ export const createDremioUser: API.OperationMethod<
640
314
  CreateDremioUserError,
641
315
  StackitOpContext
642
316
  > = /*@__PURE__*/ API.make(() => ({
643
- input: CreateDremioUserRequest,
644
- output: DremioUserResponse,
317
+ input: __S(40, __c5, 0) as any as S.Schema<CreateDremioUserRequest>,
318
+ output: __S(48, __c6, 0) as any as S.Schema<DremioUserResponse>,
645
319
  errors: [BadRequest, Conflict, UnknownStackitError],
646
320
  protocol: StackitProtocol,
647
321
  retry: Retry.Retry,
@@ -655,8 +329,8 @@ export const deleteDremioInstance: API.OperationMethod<
655
329
  DeleteDremioInstanceError,
656
330
  StackitOpContext
657
331
  > = /*@__PURE__*/ API.make(() => ({
658
- input: DeleteDremioInstanceRequest,
659
- output: DeleteDremioInstanceResponse,
332
+ input: __S(56, __c7, 0) as any as S.Schema<DeleteDremioInstanceRequest>,
333
+ output: __S(64, __c8, 0) as any as S.Schema<DeleteDremioInstanceResponse>,
660
334
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
661
335
  protocol: StackitProtocol,
662
336
  retry: Retry.Retry,
@@ -670,8 +344,8 @@ export const deleteDremioUser: API.OperationMethod<
670
344
  DeleteDremioUserError,
671
345
  StackitOpContext
672
346
  > = /*@__PURE__*/ API.make(() => ({
673
- input: DeleteDremioUserRequest,
674
- output: DeleteDremioUserResponse,
347
+ input: __S(72, __c9, 0) as any as S.Schema<DeleteDremioUserRequest>,
348
+ output: __S(64, __c8, 0) as any as S.Schema<DeleteDremioUserResponse>,
675
349
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
676
350
  protocol: StackitProtocol,
677
351
  retry: Retry.Retry,
@@ -685,8 +359,8 @@ export const getDremioInstance: API.OperationMethod<
685
359
  GetDremioInstanceError,
686
360
  StackitOpContext
687
361
  > = /*@__PURE__*/ API.make(() => ({
688
- input: GetDremioInstanceRequest,
689
- output: DremioResponseOutput,
362
+ input: __S(80, __c10, 0) as any as S.Schema<GetDremioInstanceRequest>,
363
+ output: __S(39, __c4, 7) as any as S.Schema<DremioResponseOutput>,
690
364
  errors: [BadRequest, NotFound, UnknownStackitError],
691
365
  protocol: StackitProtocol,
692
366
  retry: Retry.Retry,
@@ -700,8 +374,8 @@ export const getDremioUser: API.OperationMethod<
700
374
  GetDremioUserError,
701
375
  StackitOpContext
702
376
  > = /*@__PURE__*/ API.make(() => ({
703
- input: GetDremioUserRequest,
704
- output: DremioUserResponse,
377
+ input: __S(88, __c11, 0) as any as S.Schema<GetDremioUserRequest>,
378
+ output: __S(48, __c6, 0) as any as S.Schema<DremioUserResponse>,
705
379
  errors: [BadRequest, NotFound, UnknownStackitError],
706
380
  protocol: StackitProtocol,
707
381
  retry: Retry.Retry,
@@ -715,8 +389,8 @@ export const listDremioInstances: API.OperationMethod<
715
389
  ListDremioInstancesError,
716
390
  StackitOpContext
717
391
  > = /*@__PURE__*/ API.make(() => ({
718
- input: ListDremioInstancesRequest,
719
- output: ListDremiosResponseOutput,
392
+ input: __S(96, __c12, 0) as any as S.Schema<ListDremioInstancesRequest>,
393
+ output: __S(98, __c12, 2) as any as S.Schema<ListDremiosResponseOutput>,
720
394
  errors: [BadRequest, UnknownStackitError],
721
395
  protocol: StackitProtocol,
722
396
  retry: Retry.Retry,
@@ -730,8 +404,8 @@ export const listDremioUsers: API.OperationMethod<
730
404
  ListDremioUsersError,
731
405
  StackitOpContext
732
406
  > = /*@__PURE__*/ API.make(() => ({
733
- input: ListDremioUsersRequest,
734
- output: ListDremioUsersResponse,
407
+ input: __S(0, __c0, 0) as any as S.Schema<ListDremioUsersRequest>,
408
+ output: __S(2, __c0, 2) as any as S.Schema<ListDremioUsersResponse>,
735
409
  errors: [BadRequest, UnknownStackitError],
736
410
  protocol: StackitProtocol,
737
411
  retry: Retry.Retry,
@@ -745,9 +419,342 @@ export const updateDremioInstance: API.OperationMethod<
745
419
  UpdateDremioInstanceError,
746
420
  StackitOpContext
747
421
  > = /*@__PURE__*/ API.make(() => ({
748
- input: UpdateDremioInstanceRequest,
749
- output: DremioResponseOutput,
422
+ input: __S(8, __c1, 0) as any as S.Schema<UpdateDremioInstanceRequest>,
423
+ output: __S(39, __c4, 7) as any as S.Schema<DremioResponseOutput>,
750
424
  errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
751
425
  protocol: StackitProtocol,
752
426
  retry: Retry.Retry,
753
427
  }));
428
+
429
+ // Schema builders: each runs one schema initializer, on that schema's first use.
430
+ function __c0(j: number): any {
431
+ switch (j) {
432
+ case 0:
433
+ return S.suspend(() =>
434
+ S.Struct({
435
+ projectId: S.String.pipe(T.Label()),
436
+ regionId: S.String.pipe(T.Label()),
437
+ dremioId: S.String.pipe(T.Label()),
438
+ pageToken: S.optional(S.String.pipe(T.Query())),
439
+ pageSize: S.optional(S.Number.pipe(T.Query())),
440
+ }).pipe(
441
+ T.Http({
442
+ method: "GET",
443
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users",
444
+ code: 200,
445
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
446
+ }),
447
+ ),
448
+ ).annotate({ identifier: "ListDremioUsersRequest" });
449
+ case 1:
450
+ return S.Array(__S(48, __c6, 0));
451
+ case 2:
452
+ return S.suspend(() =>
453
+ S.Struct({
454
+ dremioUsers: __S(1, __c0, 1),
455
+ nextPageToken: S.optional(S.String),
456
+ }),
457
+ ).annotate({ identifier: "ListDremioUsersResponse" });
458
+ }
459
+ }
460
+ function __c1(j: number): any {
461
+ switch (j) {
462
+ case 0:
463
+ return S.suspend(() =>
464
+ S.Struct({
465
+ projectId: S.String.pipe(T.Label()),
466
+ regionId: S.String.pipe(T.Label()),
467
+ dremioId: S.String.pipe(T.Label()),
468
+ authentication: S.optional(__S(26, __c3, 2)),
469
+ description: S.optional(S.String),
470
+ displayName: S.optional(S.String),
471
+ }).pipe(
472
+ T.Http({
473
+ method: "PUT",
474
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}",
475
+ code: 200,
476
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
477
+ }),
478
+ ),
479
+ ).annotate({ identifier: "UpdateDremioInstanceRequest" });
480
+ }
481
+ }
482
+ function __c2(j: number): any {
483
+ switch (j) {
484
+ case 0:
485
+ return S.suspend(() =>
486
+ S.Struct({
487
+ projectId: S.String.pipe(T.Label()),
488
+ regionId: S.String.pipe(T.Label()),
489
+ authentication: S.optional(__S(26, __c3, 2)),
490
+ description: S.optional(S.String),
491
+ displayName: S.String,
492
+ }).pipe(
493
+ T.Http({
494
+ method: "POST",
495
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios",
496
+ code: 200,
497
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
498
+ }),
499
+ ),
500
+ ).annotate({ identifier: "CreateDremioInstanceRequest" });
501
+ }
502
+ }
503
+ function __c3(j: number): any {
504
+ switch (j) {
505
+ case 0:
506
+ return S.suspend(() =>
507
+ S.Struct({
508
+ authorityUrl: S.String,
509
+ clientId: S.String,
510
+ clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
511
+ }),
512
+ ).annotate({ identifier: "AzureadInput" });
513
+ case 1:
514
+ return S.suspend(() =>
515
+ S.Struct({
516
+ authorityUrl: S.String,
517
+ clientId: S.String,
518
+ clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
519
+ jwtClaims: __S(32, __c4, 0),
520
+ parameters: S.optional(__S(34, __c4, 2)),
521
+ scope: S.optional(S.String),
522
+ }),
523
+ ).annotate({ identifier: "OauthInput" });
524
+ case 2:
525
+ return S.suspend(() =>
526
+ S.Struct({
527
+ azuread: S.optional(__S(24, __c3, 0)),
528
+ oauth: S.optional(__S(25, __c3, 1)),
529
+ type: S.String,
530
+ }),
531
+ ).annotate({ identifier: "AuthenticationInput" });
532
+ }
533
+ }
534
+ function __c4(j: number): any {
535
+ switch (j) {
536
+ case 0:
537
+ return S.suspend(() =>
538
+ S.Struct({
539
+ userName: S.String,
540
+ }),
541
+ ).annotate({ identifier: "OauthInputJwtClaims" });
542
+ case 1:
543
+ return S.suspend(() =>
544
+ S.Struct({
545
+ name: S.String,
546
+ value: S.String,
547
+ }),
548
+ ).annotate({ identifier: "AuthParameters" });
549
+ case 2:
550
+ return S.Array(__S(33, __c4, 1));
551
+ case 3:
552
+ return S.suspend(() =>
553
+ S.Struct({
554
+ authorityUrl: S.String,
555
+ clientId: S.String,
556
+ redirectUrl: S.optional(S.String),
557
+ }),
558
+ ).annotate({ identifier: "AzureadOutput" });
559
+ case 4:
560
+ return S.suspend(() =>
561
+ S.Struct({
562
+ authorityUrl: S.String,
563
+ clientId: S.String,
564
+ jwtClaims: __S(32, __c4, 0),
565
+ parameters: S.optional(__S(34, __c4, 2)),
566
+ redirectUrl: S.optional(S.String),
567
+ scope: S.optional(S.String),
568
+ }),
569
+ ).annotate({ identifier: "OauthOutput" });
570
+ case 5:
571
+ return S.suspend(() =>
572
+ S.Struct({
573
+ azuread: S.optional(__S(35, __c4, 3)),
574
+ oauth: S.optional(__S(36, __c4, 4)),
575
+ type: S.String,
576
+ }),
577
+ ).annotate({ identifier: "AuthenticationOutput" });
578
+ case 6:
579
+ return S.suspend(() =>
580
+ S.Struct({
581
+ arrowFlight: S.String,
582
+ catalog: S.String,
583
+ ui: S.String,
584
+ }),
585
+ ).annotate({ identifier: "Endpoints" });
586
+ case 7:
587
+ return S.suspend(() =>
588
+ S.Struct({
589
+ authentication: __S(37, __c4, 5),
590
+ create_time: S.String,
591
+ description: S.optional(S.String),
592
+ displayName: S.String,
593
+ endpoints: __S(38, __c4, 6),
594
+ errorMessage: S.optional(S.String),
595
+ id: S.String,
596
+ state: S.String,
597
+ }),
598
+ ).annotate({ identifier: "DremioResponseOutput" });
599
+ }
600
+ }
601
+ function __c5(j: number): any {
602
+ switch (j) {
603
+ case 0:
604
+ return S.suspend(() =>
605
+ S.Struct({
606
+ projectId: S.String.pipe(T.Label()),
607
+ regionId: S.String.pipe(T.Label()),
608
+ dremioId: S.String.pipe(T.Label()),
609
+ description: S.optional(S.String),
610
+ email: S.String,
611
+ firstName: S.String,
612
+ lastName: S.String,
613
+ name: S.String,
614
+ password: S.String.pipe(T.SensitiveValue({})),
615
+ }).pipe(
616
+ T.Http({
617
+ method: "POST",
618
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users",
619
+ code: 200,
620
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
621
+ }),
622
+ ),
623
+ ).annotate({ identifier: "CreateDremioUserRequest" });
624
+ }
625
+ }
626
+ function __c6(j: number): any {
627
+ switch (j) {
628
+ case 0:
629
+ return S.suspend(() =>
630
+ S.Struct({
631
+ create_time: S.optional(S.String),
632
+ description: S.optional(S.String),
633
+ email: S.String,
634
+ errorMessage: S.optional(S.String),
635
+ firstName: S.String,
636
+ id: S.String,
637
+ lastName: S.String,
638
+ name: S.String,
639
+ state: S.String,
640
+ }),
641
+ ).annotate({ identifier: "DremioUserResponse" });
642
+ }
643
+ }
644
+ function __c7(j: number): any {
645
+ switch (j) {
646
+ case 0:
647
+ return S.suspend(() =>
648
+ S.Struct({
649
+ projectId: S.String.pipe(T.Label()),
650
+ regionId: S.String.pipe(T.Label()),
651
+ dremioId: S.String.pipe(T.Label()),
652
+ }).pipe(
653
+ T.Http({
654
+ method: "DELETE",
655
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}",
656
+ code: 200,
657
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
658
+ }),
659
+ ),
660
+ ).annotate({ identifier: "DeleteDremioInstanceRequest" });
661
+ }
662
+ }
663
+ function __c8(j: number): any {
664
+ switch (j) {
665
+ case 0:
666
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteDremioInstanceResponse" });
667
+ }
668
+ }
669
+ function __c9(j: number): any {
670
+ switch (j) {
671
+ case 0:
672
+ return S.suspend(() =>
673
+ S.Struct({
674
+ projectId: S.String.pipe(T.Label()),
675
+ regionId: S.String.pipe(T.Label()),
676
+ dremioId: S.String.pipe(T.Label()),
677
+ dremioUserId: S.String.pipe(T.Label()),
678
+ }).pipe(
679
+ T.Http({
680
+ method: "DELETE",
681
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users/{dremioUserId}",
682
+ code: 200,
683
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
684
+ }),
685
+ ),
686
+ ).annotate({ identifier: "DeleteDremioUserRequest" });
687
+ }
688
+ }
689
+ function __c10(j: number): any {
690
+ switch (j) {
691
+ case 0:
692
+ return S.suspend(() =>
693
+ S.Struct({
694
+ projectId: S.String.pipe(T.Label()),
695
+ regionId: S.String.pipe(T.Label()),
696
+ dremioId: S.String.pipe(T.Label()),
697
+ }).pipe(
698
+ T.Http({
699
+ method: "GET",
700
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}",
701
+ code: 200,
702
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
703
+ }),
704
+ ),
705
+ ).annotate({ identifier: "GetDremioInstanceRequest" });
706
+ }
707
+ }
708
+ function __c11(j: number): any {
709
+ switch (j) {
710
+ case 0:
711
+ return S.suspend(() =>
712
+ S.Struct({
713
+ projectId: S.String.pipe(T.Label()),
714
+ regionId: S.String.pipe(T.Label()),
715
+ dremioId: S.String.pipe(T.Label()),
716
+ dremioUserId: S.String.pipe(T.Label()),
717
+ }).pipe(
718
+ T.Http({
719
+ method: "GET",
720
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users/{dremioUserId}",
721
+ code: 200,
722
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
723
+ }),
724
+ ),
725
+ ).annotate({ identifier: "GetDremioUserRequest" });
726
+ }
727
+ }
728
+ function __c12(j: number): any {
729
+ switch (j) {
730
+ case 0:
731
+ return S.suspend(() =>
732
+ S.Struct({
733
+ projectId: S.String.pipe(T.Label()),
734
+ regionId: S.String.pipe(T.Label()),
735
+ pageToken: S.optional(S.String.pipe(T.Query())),
736
+ pageSize: S.optional(S.Number.pipe(T.Query())),
737
+ }).pipe(
738
+ T.Http({
739
+ method: "GET",
740
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios",
741
+ code: 200,
742
+ baseUrl: "https://dremio.api.{region}stackit.cloud",
743
+ }),
744
+ ),
745
+ ).annotate({ identifier: "ListDremioInstancesRequest" });
746
+ case 1:
747
+ return S.Array(__S(39, __c4, 7));
748
+ case 2:
749
+ return S.suspend(() =>
750
+ S.Struct({
751
+ dremios: __S(97, __c12, 1),
752
+ nextPageToken: S.optional(S.String),
753
+ }),
754
+ ).annotate({ identifier: "ListDremiosResponseOutput" });
755
+ }
756
+ }
757
+ // Schema table: entry i is schema j of builder f, made on first reach.
758
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
759
+ return (__s[i] ??= __L.at(f, j));
760
+ }