@distilled.cloud/stackit 0.0.0-placeholder → 1.0.0-rc.13

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 (298) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +34 -0
  3. package/lib/credentials.d.ts +29 -0
  4. package/lib/credentials.d.ts.map +1 -0
  5. package/lib/credentials.js +49 -0
  6. package/lib/credentials.js.map +1 -0
  7. package/lib/errors.d.ts +36 -0
  8. package/lib/errors.d.ts.map +1 -0
  9. package/lib/errors.js +26 -0
  10. package/lib/errors.js.map +1 -0
  11. package/lib/index.d.ts +30 -0
  12. package/lib/index.d.ts.map +1 -0
  13. package/lib/index.js +30 -0
  14. package/lib/index.js.map +1 -0
  15. package/lib/pagination.d.ts +9 -0
  16. package/lib/pagination.d.ts.map +1 -0
  17. package/lib/pagination.js +48 -0
  18. package/lib/pagination.js.map +1 -0
  19. package/lib/protocol.d.ts +32 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +148 -0
  22. package/lib/protocol.js.map +1 -0
  23. package/lib/response-validation.test.d.ts +4 -0
  24. package/lib/response-validation.test.d.ts.map +1 -0
  25. package/lib/response-validation.test.js +31 -0
  26. package/lib/response-validation.test.js.map +1 -0
  27. package/lib/retry.d.ts +31 -0
  28. package/lib/retry.d.ts.map +1 -0
  29. package/lib/retry.js +31 -0
  30. package/lib/retry.js.map +1 -0
  31. package/lib/services/alb.d.ts +603 -0
  32. package/lib/services/alb.d.ts.map +1 -0
  33. package/lib/services/alb.js +562 -0
  34. package/lib/services/alb.js.map +1 -0
  35. package/lib/services/alb_waf.d.ts +526 -0
  36. package/lib/services/alb_waf.d.ts.map +1 -0
  37. package/lib/services/alb_waf.js +545 -0
  38. package/lib/services/alb_waf.js.map +1 -0
  39. package/lib/services/authorization.d.ts +251 -0
  40. package/lib/services/authorization.d.ts.map +1 -0
  41. package/lib/services/authorization.js +353 -0
  42. package/lib/services/authorization.js.map +1 -0
  43. package/lib/services/automation.d.ts +358 -0
  44. package/lib/services/automation.d.ts.map +1 -0
  45. package/lib/services/automation.js +426 -0
  46. package/lib/services/automation.js.map +1 -0
  47. package/lib/services/cdn.d.ts +1239 -0
  48. package/lib/services/cdn.d.ts.map +1 -0
  49. package/lib/services/cdn.js +992 -0
  50. package/lib/services/cdn.js.map +1 -0
  51. package/lib/services/certificates.d.ts +201 -0
  52. package/lib/services/certificates.d.ts.map +1 -0
  53. package/lib/services/certificates.js +197 -0
  54. package/lib/services/certificates.js.map +1 -0
  55. package/lib/services/cost.d.ts +222 -0
  56. package/lib/services/cost.d.ts.map +1 -0
  57. package/lib/services/cost.js +188 -0
  58. package/lib/services/cost.js.map +1 -0
  59. package/lib/services/dns.d.ts +875 -0
  60. package/lib/services/dns.d.ts.map +1 -0
  61. package/lib/services/dns.js +854 -0
  62. package/lib/services/dns.js.map +1 -0
  63. package/lib/services/dremio.d.ts +358 -0
  64. package/lib/services/dremio.d.ts.map +1 -0
  65. package/lib/services/dremio.js +339 -0
  66. package/lib/services/dremio.js.map +1 -0
  67. package/lib/services/edge.d.ts +312 -0
  68. package/lib/services/edge.d.ts.map +1 -0
  69. package/lib/services/edge.js +375 -0
  70. package/lib/services/edge.js.map +1 -0
  71. package/lib/services/functions.d.ts +409 -0
  72. package/lib/services/functions.d.ts.map +1 -0
  73. package/lib/services/functions.js +423 -0
  74. package/lib/services/functions.js.map +1 -0
  75. package/lib/services/git.d.ts +497 -0
  76. package/lib/services/git.d.ts.map +1 -0
  77. package/lib/services/git.js +552 -0
  78. package/lib/services/git.js.map +1 -0
  79. package/lib/services/iaas.d.ts +2965 -0
  80. package/lib/services/iaas.d.ts.map +1 -0
  81. package/lib/services/iaas.js +3768 -0
  82. package/lib/services/iaas.js.map +1 -0
  83. package/lib/services/index.d.ts +51 -0
  84. package/lib/services/index.d.ts.map +1 -0
  85. package/lib/services/index.js +52 -0
  86. package/lib/services/index.js.map +1 -0
  87. package/lib/services/intake.d.ts +555 -0
  88. package/lib/services/intake.d.ts.map +1 -0
  89. package/lib/services/intake.js +513 -0
  90. package/lib/services/intake.js.map +1 -0
  91. package/lib/services/kms.d.ts +654 -0
  92. package/lib/services/kms.d.ts.map +1 -0
  93. package/lib/services/kms.js +703 -0
  94. package/lib/services/kms.js.map +1 -0
  95. package/lib/services/lb_ip_lists.d.ts +162 -0
  96. package/lib/services/lb_ip_lists.d.ts.map +1 -0
  97. package/lib/services/lb_ip_lists.js +173 -0
  98. package/lib/services/lb_ip_lists.js.map +1 -0
  99. package/lib/services/load_balancer.d.ts +563 -0
  100. package/lib/services/load_balancer.d.ts.map +1 -0
  101. package/lib/services/load_balancer.js +542 -0
  102. package/lib/services/load_balancer.js.map +1 -0
  103. package/lib/services/logme.d.ts +516 -0
  104. package/lib/services/logme.d.ts.map +1 -0
  105. package/lib/services/logme.js +636 -0
  106. package/lib/services/logme.js.map +1 -0
  107. package/lib/services/logs.d.ts +436 -0
  108. package/lib/services/logs.d.ts.map +1 -0
  109. package/lib/services/logs.js +498 -0
  110. package/lib/services/logs.js.map +1 -0
  111. package/lib/services/mariadb.d.ts +479 -0
  112. package/lib/services/mariadb.d.ts.map +1 -0
  113. package/lib/services/mariadb.js +611 -0
  114. package/lib/services/mariadb.js.map +1 -0
  115. package/lib/services/model_experiments.d.ts +306 -0
  116. package/lib/services/model_experiments.d.ts.map +1 -0
  117. package/lib/services/model_experiments.js +356 -0
  118. package/lib/services/model_experiments.js.map +1 -0
  119. package/lib/services/model_serving.d.ts +289 -0
  120. package/lib/services/model_serving.d.ts.map +1 -0
  121. package/lib/services/model_serving.js +319 -0
  122. package/lib/services/model_serving.js.map +1 -0
  123. package/lib/services/mongodb_flex.d.ts +826 -0
  124. package/lib/services/mongodb_flex.d.ts.map +1 -0
  125. package/lib/services/mongodb_flex.js +889 -0
  126. package/lib/services/mongodb_flex.js.map +1 -0
  127. package/lib/services/object_storage.d.ts +446 -0
  128. package/lib/services/object_storage.d.ts.map +1 -0
  129. package/lib/services/object_storage.js +577 -0
  130. package/lib/services/object_storage.js.map +1 -0
  131. package/lib/services/observability.d.ts +2750 -0
  132. package/lib/services/observability.d.ts.map +1 -0
  133. package/lib/services/observability.js +3407 -0
  134. package/lib/services/observability.js.map +1 -0
  135. package/lib/services/opensearch.d.ts +505 -0
  136. package/lib/services/opensearch.d.ts.map +1 -0
  137. package/lib/services/opensearch.js +623 -0
  138. package/lib/services/opensearch.js.map +1 -0
  139. package/lib/services/pim.d.ts +997 -0
  140. package/lib/services/pim.d.ts.map +1 -0
  141. package/lib/services/pim.js +789 -0
  142. package/lib/services/pim.js.map +1 -0
  143. package/lib/services/postgres_flex.d.ts +854 -0
  144. package/lib/services/postgres_flex.d.ts.map +1 -0
  145. package/lib/services/postgres_flex.js +1018 -0
  146. package/lib/services/postgres_flex.js.map +1 -0
  147. package/lib/services/pubsub.d.ts +489 -0
  148. package/lib/services/pubsub.d.ts.map +1 -0
  149. package/lib/services/pubsub.js +614 -0
  150. package/lib/services/pubsub.js.map +1 -0
  151. package/lib/services/rabbitmq.d.ts +523 -0
  152. package/lib/services/rabbitmq.d.ts.map +1 -0
  153. package/lib/services/rabbitmq.js +636 -0
  154. package/lib/services/rabbitmq.js.map +1 -0
  155. package/lib/services/registry.d.ts +212 -0
  156. package/lib/services/registry.d.ts.map +1 -0
  157. package/lib/services/registry.js +221 -0
  158. package/lib/services/registry.js.map +1 -0
  159. package/lib/services/resource_manager.d.ts +458 -0
  160. package/lib/services/resource_manager.d.ts.map +1 -0
  161. package/lib/services/resource_manager.js +503 -0
  162. package/lib/services/resource_manager.js.map +1 -0
  163. package/lib/services/run_command.d.ts +175 -0
  164. package/lib/services/run_command.d.ts.map +1 -0
  165. package/lib/services/run_command.js +203 -0
  166. package/lib/services/run_command.js.map +1 -0
  167. package/lib/services/sca.d.ts +541 -0
  168. package/lib/services/sca.d.ts.map +1 -0
  169. package/lib/services/sca.js +478 -0
  170. package/lib/services/sca.js.map +1 -0
  171. package/lib/services/scf.d.ts +498 -0
  172. package/lib/services/scf.d.ts.map +1 -0
  173. package/lib/services/scf.js +718 -0
  174. package/lib/services/scf.js.map +1 -0
  175. package/lib/services/secrets_manager.d.ts +505 -0
  176. package/lib/services/secrets_manager.d.ts.map +1 -0
  177. package/lib/services/secrets_manager.js +659 -0
  178. package/lib/services/secrets_manager.js.map +1 -0
  179. package/lib/services/server_backup.d.ts +380 -0
  180. package/lib/services/server_backup.d.ts.map +1 -0
  181. package/lib/services/server_backup.js +474 -0
  182. package/lib/services/server_backup.js.map +1 -0
  183. package/lib/services/server_update.d.ts +292 -0
  184. package/lib/services/server_update.d.ts.map +1 -0
  185. package/lib/services/server_update.js +364 -0
  186. package/lib/services/server_update.js.map +1 -0
  187. package/lib/services/service_account.d.ts +465 -0
  188. package/lib/services/service_account.d.ts.map +1 -0
  189. package/lib/services/service_account.js +523 -0
  190. package/lib/services/service_account.js.map +1 -0
  191. package/lib/services/service_enablement.d.ts +149 -0
  192. package/lib/services/service_enablement.d.ts.map +1 -0
  193. package/lib/services/service_enablement.js +159 -0
  194. package/lib/services/service_enablement.js.map +1 -0
  195. package/lib/services/sfs.d.ts +721 -0
  196. package/lib/services/sfs.d.ts.map +1 -0
  197. package/lib/services/sfs.js +845 -0
  198. package/lib/services/sfs.js.map +1 -0
  199. package/lib/services/ske.d.ts +536 -0
  200. package/lib/services/ske.d.ts.map +1 -0
  201. package/lib/services/ske.js +598 -0
  202. package/lib/services/ske.js.map +1 -0
  203. package/lib/services/sqlserverflex.d.ts +956 -0
  204. package/lib/services/sqlserverflex.d.ts.map +1 -0
  205. package/lib/services/sqlserverflex.js +1087 -0
  206. package/lib/services/sqlserverflex.js.map +1 -0
  207. package/lib/services/stackit_marketplace.d.ts +288 -0
  208. package/lib/services/stackit_marketplace.d.ts.map +1 -0
  209. package/lib/services/stackit_marketplace.js +393 -0
  210. package/lib/services/stackit_marketplace.js.map +1 -0
  211. package/lib/services/telemetry_link.d.ts +443 -0
  212. package/lib/services/telemetry_link.d.ts.map +1 -0
  213. package/lib/services/telemetry_link.js +550 -0
  214. package/lib/services/telemetry_link.js.map +1 -0
  215. package/lib/services/telemetry_router.d.ts +493 -0
  216. package/lib/services/telemetry_router.d.ts.map +1 -0
  217. package/lib/services/telemetry_router.js +523 -0
  218. package/lib/services/telemetry_router.js.map +1 -0
  219. package/lib/services/ufw.d.ts +295 -0
  220. package/lib/services/ufw.d.ts.map +1 -0
  221. package/lib/services/ufw.js +301 -0
  222. package/lib/services/ufw.js.map +1 -0
  223. package/lib/services/valkey.d.ts +505 -0
  224. package/lib/services/valkey.d.ts.map +1 -0
  225. package/lib/services/valkey.js +627 -0
  226. package/lib/services/valkey.js.map +1 -0
  227. package/lib/services/vpn.d.ts +1024 -0
  228. package/lib/services/vpn.d.ts.map +1 -0
  229. package/lib/services/vpn.js +1013 -0
  230. package/lib/services/vpn.js.map +1 -0
  231. package/lib/services/workflows.d.ts +600 -0
  232. package/lib/services/workflows.d.ts.map +1 -0
  233. package/lib/services/workflows.js +556 -0
  234. package/lib/services/workflows.js.map +1 -0
  235. package/lib/traits.d.ts +24 -0
  236. package/lib/traits.d.ts.map +1 -0
  237. package/lib/traits.js +15 -0
  238. package/lib/traits.js.map +1 -0
  239. package/package.json +78 -7
  240. package/src/credentials.ts +90 -0
  241. package/src/errors.ts +50 -0
  242. package/src/index.ts +34 -0
  243. package/src/pagination.ts +73 -0
  244. package/src/protocol.ts +243 -0
  245. package/src/response-validation.test.ts +45 -0
  246. package/src/retry.ts +53 -0
  247. package/src/services/alb.ts +1409 -0
  248. package/src/services/alb_waf.ts +1347 -0
  249. package/src/services/authorization.ts +740 -0
  250. package/src/services/automation.ts +966 -0
  251. package/src/services/cdn.ts +2736 -0
  252. package/src/services/certificates.ts +450 -0
  253. package/src/services/cost.ts +484 -0
  254. package/src/services/dns.ts +2271 -0
  255. package/src/services/dremio.ts +803 -0
  256. package/src/services/edge.ts +839 -0
  257. package/src/services/functions.ts +1010 -0
  258. package/src/services/git.ts +1275 -0
  259. package/src/services/iaas.ts +8670 -0
  260. package/src/services/index.ts +51 -0
  261. package/src/services/intake.ts +1233 -0
  262. package/src/services/kms.ts +1638 -0
  263. package/src/services/lb_ip_lists.ts +377 -0
  264. package/src/services/load_balancer.ts +1342 -0
  265. package/src/services/logme.ts +1379 -0
  266. package/src/services/logs.ts +1150 -0
  267. package/src/services/mariadb.ts +1293 -0
  268. package/src/services/model_experiments.ts +797 -0
  269. package/src/services/model_serving.ts +697 -0
  270. package/src/services/mongodb_flex.ts +2078 -0
  271. package/src/services/object_storage.ts +1248 -0
  272. package/src/services/observability.ts +7856 -0
  273. package/src/services/opensearch.ts +1354 -0
  274. package/src/services/pim.ts +2090 -0
  275. package/src/services/postgres_flex.ts +2326 -0
  276. package/src/services/pubsub.ts +1336 -0
  277. package/src/services/rabbitmq.ts +1402 -0
  278. package/src/services/registry.ts +494 -0
  279. package/src/services/resource_manager.ts +1155 -0
  280. package/src/services/run_command.ts +441 -0
  281. package/src/services/sca.ts +1222 -0
  282. package/src/services/scf.ts +1537 -0
  283. package/src/services/secrets_manager.ts +1399 -0
  284. package/src/services/server_backup.ts +1032 -0
  285. package/src/services/server_update.ts +767 -0
  286. package/src/services/service_account.ts +1208 -0
  287. package/src/services/service_enablement.ts +359 -0
  288. package/src/services/sfs.ts +1913 -0
  289. package/src/services/ske.ts +1408 -0
  290. package/src/services/sqlserverflex.ts +2543 -0
  291. package/src/services/stackit_marketplace.ts +853 -0
  292. package/src/services/telemetry_link.ts +1245 -0
  293. package/src/services/telemetry_router.ts +1205 -0
  294. package/src/services/ufw.ts +704 -0
  295. package/src/services/valkey.ts +1357 -0
  296. package/src/services/vpn.ts +2554 -0
  297. package/src/services/workflows.ts +1361 -0
  298. package/src/traits.ts +65 -0
@@ -0,0 +1,1233 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as Redacted from "effect/Redacted";
4
+ import * as API from "@distilled.cloud/core/api";
5
+ import * as C from "@distilled.cloud/core/category";
6
+ import * as T from "../traits.ts";
7
+ import {
8
+ StackitProtocol,
9
+ type StackitOpError,
10
+ type StackitOpContext,
11
+ } from "../protocol.ts";
12
+ import { UnknownStackitError } from "../errors.ts";
13
+ import * as Retry from "../retry.ts";
14
+
15
+ export type { StackitOpError, StackitOpContext };
16
+
17
+ export class BadRequest
18
+ extends /*@__PURE__*/ T.applyErrorMatchers(
19
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
20
+ code: S.Number,
21
+ message: S.String,
22
+ }).pipe(C.withBadRequestError),
23
+ [{ status: 400 }],
24
+ ) {}
25
+
26
+ export class Conflict
27
+ extends /*@__PURE__*/ T.applyErrorMatchers(
28
+ /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
29
+ code: S.Number,
30
+ message: S.String,
31
+ }).pipe(C.withConflictError),
32
+ [{ status: 409 }],
33
+ ) {}
34
+
35
+ export class NotFound
36
+ extends /*@__PURE__*/ T.applyErrorMatchers(
37
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
38
+ code: S.Number,
39
+ message: S.String,
40
+ }).pipe(C.withBadRequestError),
41
+ [{ status: 404 }],
42
+ ) {}
43
+
44
+ export type CreateIntakeRequestRegionId = "eu01" | "eu02";
45
+ export const CreateIntakeRequestRegionId = /*@__PURE__*/ S.String;
46
+
47
+ export interface DremioAuth {
48
+ /** A Dremio personal access token for authentication */
49
+ personalAccessToken: string;
50
+ /** The URL to the Dremio instance's OAuth 2.0 token endpoint */
51
+ tokenEndpoint: string;
52
+ }
53
+ export const DremioAuth = /*@__PURE__*/ S.suspend(() =>
54
+ S.Struct({
55
+ personalAccessToken: S.String,
56
+ tokenEndpoint: S.String,
57
+ }),
58
+ ).annotate({ identifier: "DremioAuth" }) as any as S.Schema<DremioAuth>;
59
+
60
+ /** Means of authentication for catalog requests */
61
+ export type CatalogAuthType = "none" | "dremio";
62
+ export const CatalogAuthType = /*@__PURE__*/ S.String;
63
+
64
+ /** Configures authentication for the Iceberg catalog */
65
+ export interface CatalogAuth {
66
+ dremio?: DremioAuth;
67
+ type: CatalogAuthType | (string & {});
68
+ }
69
+ export const CatalogAuth = /*@__PURE__*/ S.suspend(() =>
70
+ S.Struct({
71
+ dremio: S.optional(DremioAuth),
72
+ type: CatalogAuthType,
73
+ }),
74
+ ).annotate({ identifier: "CatalogAuth" }) as any as S.Schema<CatalogAuth>;
75
+
76
+ /** List of Iceberg partitioning expressions to use when creating the target table. This setting can only be used when `partitioning` is set to `manual`. Partitioning configuration of an Intake can be changed after creation, but will only take effect once the table has been changed as well. In case of not updating the table to a new one, the old partitioning configuration will remain. See the [Apache Iceberg spec](https://iceberg.apache.org/spec/#partitioning) for more details. */
77
+ export type IntakeCatalogPartitionByList = Array<string>;
78
+ export const IntakeCatalogPartitionByList = /*@__PURE__*/ S.Array(
79
+ S.String,
80
+ ) as any as S.Schema<IntakeCatalogPartitionByList>;
81
+
82
+ /** The target table's partitioning. * `none` disables partitioning, the default. * `intake-time` configures daily partitioning based on the automatically created ingestion time column `__intake_ts`. * `manual` allows arbitrary Iceberg partitioning expression to be set via `partitionBy`. */
83
+ export type PartitioningType = "none" | "intake-time" | "manual";
84
+ export const PartitioningType = /*@__PURE__*/ S.String;
85
+
86
+ /** The Iceberg catalog configuration */
87
+ export interface IntakeCatalog {
88
+ auth?: CatalogAuth;
89
+ /** The namespace to which data shall be written. It will be automatically created, if it does not exist. */
90
+ namespace?: string;
91
+ /** List of Iceberg partitioning expressions to use when creating the target table. This setting can only be used when `partitioning` is set to `manual`. Partitioning configuration of an Intake can be changed after creation, but will only take effect once the table has been changed as well. In case of not updating the table to a new one, the old partitioning configuration will remain. See the [Apache Iceberg spec](https://iceberg.apache.org/spec/#partitioning) for more details. */
92
+ partitionBy?: IntakeCatalogPartitionByList | null;
93
+ partitioning?: PartitioningType | (string & {});
94
+ /** The table name is a short name chosen by the user to identify the table in Iceberg. */
95
+ tableName?: string;
96
+ /** The URI to the Iceberg catalog endpoint */
97
+ uri: string;
98
+ /** The Iceberg warehouse to connect to, required when the catalog has no default warehouse configured. */
99
+ warehouse: string;
100
+ }
101
+ export const IntakeCatalog = /*@__PURE__*/ S.suspend(() =>
102
+ S.Struct({
103
+ auth: S.optional(CatalogAuth),
104
+ namespace: S.optional(S.String),
105
+ partitionBy: S.optional(S.NullOr(IntakeCatalogPartitionByList)),
106
+ partitioning: S.optional(PartitioningType),
107
+ tableName: S.optional(S.String),
108
+ uri: S.String,
109
+ warehouse: S.String,
110
+ }),
111
+ ).annotate({ identifier: "IntakeCatalog" }) as any as S.Schema<IntakeCatalog>;
112
+
113
+ /** Labels are a set of key-value pairs assigned to resources. */
114
+ export type CreateIntakeRequestLabelsMap = {
115
+ [key: string]: string | undefined;
116
+ };
117
+ export const CreateIntakeRequestLabelsMap = /*@__PURE__*/ S.Record(
118
+ S.String,
119
+ S.String,
120
+ ) as any as S.Schema<CreateIntakeRequestLabelsMap>;
121
+
122
+ export interface CreateIntakeRequest {
123
+ /** The STACKIT portal project UUID the resource is located in. */
124
+ projectId: string;
125
+ /** The STACKIT region name the resource is located in. */
126
+ regionId: CreateIntakeRequestRegionId | (string & {});
127
+ catalog: IntakeCatalog;
128
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
129
+ description?: string;
130
+ /** The display name is a short name chosen by the user to identify the resource. */
131
+ displayName: string;
132
+ /** The unique id of the intake runner this intake should run on. */
133
+ intakeRunnerId: string;
134
+ /** Labels are a set of key-value pairs assigned to resources. */
135
+ labels?: CreateIntakeRequestLabelsMap | null;
136
+ }
137
+ export const CreateIntakeRequest = /*@__PURE__*/ S.suspend(() =>
138
+ S.Struct({
139
+ projectId: S.String.pipe(T.Label()),
140
+ regionId: CreateIntakeRequestRegionId.pipe(T.Label()),
141
+ catalog: IntakeCatalog,
142
+ description: S.optional(S.String),
143
+ displayName: S.String,
144
+ intakeRunnerId: S.String,
145
+ labels: S.optional(S.NullOr(CreateIntakeRequestLabelsMap)),
146
+ }).pipe(
147
+ T.Http({
148
+ method: "POST",
149
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intakes",
150
+ code: 200,
151
+ baseUrl: "https://intake.api.stackit.cloud",
152
+ }),
153
+ ),
154
+ ).annotate({
155
+ identifier: "CreateIntakeRequest",
156
+ }) as any as S.Schema<CreateIntakeRequest>;
157
+
158
+ /** Labels are a set of key-value pairs assigned to resources. */
159
+ export type IntakeResponseLabelsMap = { [key: string]: string | undefined };
160
+ export const IntakeResponseLabelsMap = /*@__PURE__*/ S.Record(
161
+ S.String,
162
+ S.String,
163
+ ) as any as S.Schema<IntakeResponseLabelsMap>;
164
+
165
+ /** The current state of the resource. */
166
+ export type IntakeResponseState =
167
+ | "reconciling"
168
+ | "active"
169
+ | "deleting"
170
+ | "failed";
171
+ export const IntakeResponseState = /*@__PURE__*/ S.String;
172
+
173
+ export interface IntakeResponse {
174
+ catalog: IntakeCatalog;
175
+ /** The point in time the resource was created. */
176
+ create_time: string;
177
+ /** The topic where undelivered messages are published (Dead Letter Queue). */
178
+ deadLetterTopic: string;
179
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
180
+ description?: string;
181
+ /** The display name is a short name chosen by the user to identify the resource. */
182
+ displayName: string;
183
+ /** A human-readable description of the error, if the state is 'failed'. */
184
+ failure_message?: string;
185
+ /** A auto generated unique id which identifies the resource. */
186
+ id: string;
187
+ /** The unique id of the intake runner this intake is running on. */
188
+ intakeRunnerId: string;
189
+ /** Labels are a set of key-value pairs assigned to resources. */
190
+ labels?: IntakeResponseLabelsMap | null;
191
+ /** The current state of the resource. */
192
+ state: IntakeResponseState;
193
+ /** The topic to publish data to. */
194
+ topic: string;
195
+ /** Number of messages that failed delivery and were sent to the Dead Letter Queue. */
196
+ undeliveredMessageCount?: number;
197
+ /** The URI for reaching the resource. */
198
+ uri: string;
199
+ }
200
+ export const IntakeResponse = /*@__PURE__*/ S.suspend(() =>
201
+ S.Struct({
202
+ catalog: IntakeCatalog,
203
+ create_time: S.String,
204
+ deadLetterTopic: S.String,
205
+ description: S.optional(S.String),
206
+ displayName: S.String,
207
+ failure_message: S.optional(S.String),
208
+ id: S.String,
209
+ intakeRunnerId: S.String,
210
+ labels: S.optional(S.NullOr(IntakeResponseLabelsMap)),
211
+ state: IntakeResponseState,
212
+ topic: S.String,
213
+ undeliveredMessageCount: S.optional(S.Number),
214
+ uri: S.String,
215
+ }),
216
+ ).annotate({ identifier: "IntakeResponse" }) as any as S.Schema<IntakeResponse>;
217
+
218
+ export type CreateIntakeRunnerRequestRegionId = "eu01" | "eu02";
219
+ export const CreateIntakeRunnerRequestRegionId = /*@__PURE__*/ S.String;
220
+
221
+ /** Labels are a set of key-value pairs assigned to resources. */
222
+ export type CreateIntakeRunnerRequestLabelsMap = {
223
+ [key: string]: string | undefined;
224
+ };
225
+ export const CreateIntakeRunnerRequestLabelsMap = /*@__PURE__*/ S.Record(
226
+ S.String,
227
+ S.String,
228
+ ) as any as S.Schema<CreateIntakeRunnerRequestLabelsMap>;
229
+
230
+ export interface CreateIntakeRunnerRequest {
231
+ /** The STACKIT portal project UUID the resource is located in. */
232
+ projectId: string;
233
+ /** The STACKIT region name the resource is located in. */
234
+ regionId: CreateIntakeRunnerRequestRegionId | (string & {});
235
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
236
+ description?: string;
237
+ /** The display name is a short name chosen by the user to identify the resource. */
238
+ displayName: string;
239
+ /** Labels are a set of key-value pairs assigned to resources. */
240
+ labels?: CreateIntakeRunnerRequestLabelsMap | null;
241
+ /** The maximum size of a message in kibibytes (1 KiB = 1024 bytes). */
242
+ maxMessageSizeKiB: number;
243
+ /** The maximum number of messages per hour. */
244
+ maxMessagesPerHour: number;
245
+ }
246
+ export const CreateIntakeRunnerRequest = /*@__PURE__*/ S.suspend(() =>
247
+ S.Struct({
248
+ projectId: S.String.pipe(T.Label()),
249
+ regionId: CreateIntakeRunnerRequestRegionId.pipe(T.Label()),
250
+ description: S.optional(S.String),
251
+ displayName: S.String,
252
+ labels: S.optional(S.NullOr(CreateIntakeRunnerRequestLabelsMap)),
253
+ maxMessageSizeKiB: S.Number,
254
+ maxMessagesPerHour: S.Number,
255
+ }).pipe(
256
+ T.Http({
257
+ method: "POST",
258
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intake-runners",
259
+ code: 200,
260
+ baseUrl: "https://intake.api.stackit.cloud",
261
+ }),
262
+ ),
263
+ ).annotate({
264
+ identifier: "CreateIntakeRunnerRequest",
265
+ }) as any as S.Schema<CreateIntakeRunnerRequest>;
266
+
267
+ /** Labels are a set of key-value pairs assigned to resources. */
268
+ export type IntakeRunnerResponseLabelsMap = {
269
+ [key: string]: string | undefined;
270
+ };
271
+ export const IntakeRunnerResponseLabelsMap = /*@__PURE__*/ S.Record(
272
+ S.String,
273
+ S.String,
274
+ ) as any as S.Schema<IntakeRunnerResponseLabelsMap>;
275
+
276
+ /** The current state of the resource. */
277
+ export type IntakeRunnerResponseState = "reconciling" | "active" | "deleting";
278
+ export const IntakeRunnerResponseState = /*@__PURE__*/ S.String;
279
+
280
+ export interface IntakeRunnerResponse {
281
+ /** The point in time the resource was created. */
282
+ create_time: string;
283
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
284
+ description?: string;
285
+ /** The display name is a short name chosen by the user to identify the resource. */
286
+ displayName: string;
287
+ /** A auto generated unique id which identifies the resource. */
288
+ id: string;
289
+ /** Labels are a set of key-value pairs assigned to resources. */
290
+ labels?: IntakeRunnerResponseLabelsMap | null;
291
+ /** The maximum size of a message in kibibytes (1 KiB = 1024 bytes). */
292
+ maxMessageSizeKiB: number;
293
+ /** The maximum number of messages per hour. */
294
+ maxMessagesPerHour: number;
295
+ /** The current state of the resource. */
296
+ state: IntakeRunnerResponseState;
297
+ /** The URI for reaching the resource. */
298
+ uri: string;
299
+ }
300
+ export const IntakeRunnerResponse = /*@__PURE__*/ S.suspend(() =>
301
+ S.Struct({
302
+ create_time: S.String,
303
+ description: S.optional(S.String),
304
+ displayName: S.String,
305
+ id: S.String,
306
+ labels: S.optional(S.NullOr(IntakeRunnerResponseLabelsMap)),
307
+ maxMessageSizeKiB: S.Number,
308
+ maxMessagesPerHour: S.Number,
309
+ state: IntakeRunnerResponseState,
310
+ uri: S.String,
311
+ }),
312
+ ).annotate({
313
+ identifier: "IntakeRunnerResponse",
314
+ }) as any as S.Schema<IntakeRunnerResponse>;
315
+
316
+ export type CreateIntakeUserRequestRegionId = "eu01" | "eu02";
317
+ export const CreateIntakeUserRequestRegionId = /*@__PURE__*/ S.String;
318
+
319
+ /** Labels are key-value pairs associated with the resource. */
320
+ export type CreateIntakeUserRequestLabelsMap = {
321
+ [key: string]: string | undefined;
322
+ };
323
+ export const CreateIntakeUserRequestLabelsMap = /*@__PURE__*/ S.Record(
324
+ S.String,
325
+ S.String,
326
+ ) as any as S.Schema<CreateIntakeUserRequestLabelsMap>;
327
+
328
+ /** Type of user, 'intake' allows writing to the Intake, 'dead-letter' allows reading from the dead-letter queue */
329
+ export type UserType = "intake" | "dead-letter";
330
+ export const UserType = /*@__PURE__*/ S.String;
331
+
332
+ export interface CreateIntakeUserRequest {
333
+ /** The STACKIT portal project UUID the resource is located in. */
334
+ projectId: string;
335
+ /** The STACKIT region name the resource is located in. */
336
+ regionId: CreateIntakeUserRequestRegionId | (string & {});
337
+ /** The intake UUID. */
338
+ intakeId: string;
339
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
340
+ description?: string;
341
+ /** The display name is a short name chosen by the user to identify the resource. */
342
+ displayName: string;
343
+ /** Labels are key-value pairs associated with the resource. */
344
+ labels?: CreateIntakeUserRequestLabelsMap | null;
345
+ /** A password chosen by the user. The password must consist of at least of each of these categories: * lower case letter * upper case letter * number * other character */
346
+ password: string | Redacted.Redacted<string>;
347
+ type?: UserType | (string & {});
348
+ }
349
+ export const CreateIntakeUserRequest = /*@__PURE__*/ S.suspend(() =>
350
+ S.Struct({
351
+ projectId: S.String.pipe(T.Label()),
352
+ regionId: CreateIntakeUserRequestRegionId.pipe(T.Label()),
353
+ intakeId: S.String.pipe(T.Label()),
354
+ description: S.optional(S.String),
355
+ displayName: S.String,
356
+ labels: S.optional(S.NullOr(CreateIntakeUserRequestLabelsMap)),
357
+ password: S.String.pipe(T.SensitiveValue({})),
358
+ type: S.optional(UserType),
359
+ }).pipe(
360
+ T.Http({
361
+ method: "POST",
362
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users",
363
+ code: 200,
364
+ baseUrl: "https://intake.api.stackit.cloud",
365
+ }),
366
+ ),
367
+ ).annotate({
368
+ identifier: "CreateIntakeUserRequest",
369
+ }) as any as S.Schema<CreateIntakeUserRequest>;
370
+
371
+ /** Configuration properties for supported clients. */
372
+ export interface ClientConfig {
373
+ /** Configuration for Java Kafka clients. */
374
+ java: string;
375
+ /** Configuration for Kafka clients using librdkafka */
376
+ librdkafka: string;
377
+ }
378
+ export const ClientConfig = /*@__PURE__*/ S.suspend(() =>
379
+ S.Struct({
380
+ java: S.String,
381
+ librdkafka: S.String,
382
+ }),
383
+ ).annotate({ identifier: "ClientConfig" }) as any as S.Schema<ClientConfig>;
384
+
385
+ /** Labels are a set of key-value pairs assigned to resources. */
386
+ export type IntakeUserResponseLabelsMap = { [key: string]: string | undefined };
387
+ export const IntakeUserResponseLabelsMap = /*@__PURE__*/ S.Record(
388
+ S.String,
389
+ S.String,
390
+ ) as any as S.Schema<IntakeUserResponseLabelsMap>;
391
+
392
+ /** The current state of the resource. */
393
+ export type IntakeUserResponseState = "reconciling" | "active" | "deleting";
394
+ export const IntakeUserResponseState = /*@__PURE__*/ S.String;
395
+
396
+ export interface IntakeUserResponse {
397
+ clientConfig?: ClientConfig;
398
+ /** The point in time the resource was created. */
399
+ create_time: string;
400
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
401
+ description?: string;
402
+ /** The display name is a short name chosen by the user to identify the resource. */
403
+ displayName: string;
404
+ /** A auto generated unique id which identifies the resource. */
405
+ id: string;
406
+ /** Labels are a set of key-value pairs assigned to resources. */
407
+ labels?: IntakeUserResponseLabelsMap | null;
408
+ /** The current state of the resource. */
409
+ state: IntakeUserResponseState;
410
+ type: UserType;
411
+ /** The user to connect to the intake. */
412
+ user: string;
413
+ }
414
+ export const IntakeUserResponse = /*@__PURE__*/ S.suspend(() =>
415
+ S.Struct({
416
+ clientConfig: S.optional(ClientConfig),
417
+ create_time: S.String,
418
+ description: S.optional(S.String),
419
+ displayName: S.String,
420
+ id: S.String,
421
+ labels: S.optional(S.NullOr(IntakeUserResponseLabelsMap)),
422
+ state: IntakeUserResponseState,
423
+ type: UserType,
424
+ user: S.String,
425
+ }),
426
+ ).annotate({
427
+ identifier: "IntakeUserResponse",
428
+ }) as any as S.Schema<IntakeUserResponse>;
429
+
430
+ export type DeleteIntakeRequestRegionId = "eu01" | "eu02";
431
+ export const DeleteIntakeRequestRegionId = /*@__PURE__*/ S.String;
432
+
433
+ export interface DeleteIntakeRequest {
434
+ /** The STACKIT portal project UUID the resource is located in. */
435
+ projectId: string;
436
+ /** The STACKIT region name the resource is located in. */
437
+ regionId: DeleteIntakeRequestRegionId | (string & {});
438
+ /** The intake UUID. */
439
+ intakeId: string;
440
+ /** If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. */
441
+ force?: boolean;
442
+ }
443
+ export const DeleteIntakeRequest = /*@__PURE__*/ S.suspend(() =>
444
+ S.Struct({
445
+ projectId: S.String.pipe(T.Label()),
446
+ regionId: DeleteIntakeRequestRegionId.pipe(T.Label()),
447
+ intakeId: S.String.pipe(T.Label()),
448
+ force: S.optional(S.Boolean.pipe(T.Query())),
449
+ }).pipe(
450
+ T.Http({
451
+ method: "DELETE",
452
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}",
453
+ code: 200,
454
+ baseUrl: "https://intake.api.stackit.cloud",
455
+ }),
456
+ ),
457
+ ).annotate({
458
+ identifier: "DeleteIntakeRequest",
459
+ }) as any as S.Schema<DeleteIntakeRequest>;
460
+
461
+ export interface DeleteIntakeResponse {}
462
+ export const DeleteIntakeResponse = /*@__PURE__*/ S.suspend(() =>
463
+ S.Struct({}),
464
+ ).annotate({
465
+ identifier: "DeleteIntakeResponse",
466
+ }) as any as S.Schema<DeleteIntakeResponse>;
467
+
468
+ export type DeleteIntakeRunnerRequestRegionId = "eu01" | "eu02";
469
+ export const DeleteIntakeRunnerRequestRegionId = /*@__PURE__*/ S.String;
470
+
471
+ export interface DeleteIntakeRunnerRequest {
472
+ /** The STACKIT portal project UUID the resource is located in. */
473
+ projectId: string;
474
+ /** The STACKIT region name the resource is located in. */
475
+ regionId: DeleteIntakeRunnerRequestRegionId | (string & {});
476
+ /** The intake runner UUID. */
477
+ intakeRunnerId: string;
478
+ /** If true, deletes all child resources. If false, the resource remains in a 'deletion state' while child resources exist. */
479
+ force?: boolean;
480
+ }
481
+ export const DeleteIntakeRunnerRequest = /*@__PURE__*/ S.suspend(() =>
482
+ S.Struct({
483
+ projectId: S.String.pipe(T.Label()),
484
+ regionId: DeleteIntakeRunnerRequestRegionId.pipe(T.Label()),
485
+ intakeRunnerId: S.String.pipe(T.Label()),
486
+ force: S.optional(S.Boolean.pipe(T.Query())),
487
+ }).pipe(
488
+ T.Http({
489
+ method: "DELETE",
490
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intake-runners/{intakeRunnerId}",
491
+ code: 200,
492
+ baseUrl: "https://intake.api.stackit.cloud",
493
+ }),
494
+ ),
495
+ ).annotate({
496
+ identifier: "DeleteIntakeRunnerRequest",
497
+ }) as any as S.Schema<DeleteIntakeRunnerRequest>;
498
+
499
+ export interface DeleteIntakeRunnerResponse {}
500
+ export const DeleteIntakeRunnerResponse = /*@__PURE__*/ S.suspend(() =>
501
+ S.Struct({}),
502
+ ).annotate({
503
+ identifier: "DeleteIntakeRunnerResponse",
504
+ }) as any as S.Schema<DeleteIntakeRunnerResponse>;
505
+
506
+ export type DeleteIntakeUserRequestRegionId = "eu01" | "eu02";
507
+ export const DeleteIntakeUserRequestRegionId = /*@__PURE__*/ S.String;
508
+
509
+ export interface DeleteIntakeUserRequest {
510
+ /** The STACKIT portal project UUID the resource is located in. */
511
+ projectId: string;
512
+ /** The STACKIT region name the resource is located in. */
513
+ regionId: DeleteIntakeUserRequestRegionId | (string & {});
514
+ /** The intake UUID. */
515
+ intakeId: string;
516
+ /** The intake user UUID. */
517
+ intakeUserId: string;
518
+ }
519
+ export const DeleteIntakeUserRequest = /*@__PURE__*/ S.suspend(() =>
520
+ S.Struct({
521
+ projectId: S.String.pipe(T.Label()),
522
+ regionId: DeleteIntakeUserRequestRegionId.pipe(T.Label()),
523
+ intakeId: S.String.pipe(T.Label()),
524
+ intakeUserId: S.String.pipe(T.Label()),
525
+ }).pipe(
526
+ T.Http({
527
+ method: "DELETE",
528
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users/{intakeUserId}",
529
+ code: 200,
530
+ baseUrl: "https://intake.api.stackit.cloud",
531
+ }),
532
+ ),
533
+ ).annotate({
534
+ identifier: "DeleteIntakeUserRequest",
535
+ }) as any as S.Schema<DeleteIntakeUserRequest>;
536
+
537
+ export interface DeleteIntakeUserResponse {}
538
+ export const DeleteIntakeUserResponse = /*@__PURE__*/ S.suspend(() =>
539
+ S.Struct({}),
540
+ ).annotate({
541
+ identifier: "DeleteIntakeUserResponse",
542
+ }) as any as S.Schema<DeleteIntakeUserResponse>;
543
+
544
+ export type GetIntakeRequestRegionId = "eu01" | "eu02";
545
+ export const GetIntakeRequestRegionId = /*@__PURE__*/ S.String;
546
+
547
+ export interface GetIntakeRequest {
548
+ /** The STACKIT portal project UUID the resource is located in. */
549
+ projectId: string;
550
+ /** The STACKIT region name the resource is located in. */
551
+ regionId: GetIntakeRequestRegionId | (string & {});
552
+ /** The intake UUID. */
553
+ intakeId: string;
554
+ }
555
+ export const GetIntakeRequest = /*@__PURE__*/ S.suspend(() =>
556
+ S.Struct({
557
+ projectId: S.String.pipe(T.Label()),
558
+ regionId: GetIntakeRequestRegionId.pipe(T.Label()),
559
+ intakeId: S.String.pipe(T.Label()),
560
+ }).pipe(
561
+ T.Http({
562
+ method: "GET",
563
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}",
564
+ code: 200,
565
+ baseUrl: "https://intake.api.stackit.cloud",
566
+ }),
567
+ ),
568
+ ).annotate({
569
+ identifier: "GetIntakeRequest",
570
+ }) as any as S.Schema<GetIntakeRequest>;
571
+
572
+ export type GetIntakeRunnerRequestRegionId = "eu01" | "eu02";
573
+ export const GetIntakeRunnerRequestRegionId = /*@__PURE__*/ S.String;
574
+
575
+ export interface GetIntakeRunnerRequest {
576
+ /** The STACKIT portal project UUID the resource is located in. */
577
+ projectId: string;
578
+ /** The STACKIT region name the resource is located in. */
579
+ regionId: GetIntakeRunnerRequestRegionId | (string & {});
580
+ /** The intake runner UUID. */
581
+ intakeRunnerId: string;
582
+ }
583
+ export const GetIntakeRunnerRequest = /*@__PURE__*/ S.suspend(() =>
584
+ S.Struct({
585
+ projectId: S.String.pipe(T.Label()),
586
+ regionId: GetIntakeRunnerRequestRegionId.pipe(T.Label()),
587
+ intakeRunnerId: S.String.pipe(T.Label()),
588
+ }).pipe(
589
+ T.Http({
590
+ method: "GET",
591
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intake-runners/{intakeRunnerId}",
592
+ code: 200,
593
+ baseUrl: "https://intake.api.stackit.cloud",
594
+ }),
595
+ ),
596
+ ).annotate({
597
+ identifier: "GetIntakeRunnerRequest",
598
+ }) as any as S.Schema<GetIntakeRunnerRequest>;
599
+
600
+ export type GetIntakeUserRequestRegionId = "eu01" | "eu02";
601
+ export const GetIntakeUserRequestRegionId = /*@__PURE__*/ S.String;
602
+
603
+ export interface GetIntakeUserRequest {
604
+ /** The STACKIT portal project UUID the resource is located in. */
605
+ projectId: string;
606
+ /** The STACKIT region name the resource is located in. */
607
+ regionId: GetIntakeUserRequestRegionId | (string & {});
608
+ /** The intake UUID. */
609
+ intakeId: string;
610
+ /** The intake user UUID. */
611
+ intakeUserId: string;
612
+ }
613
+ export const GetIntakeUserRequest = /*@__PURE__*/ S.suspend(() =>
614
+ S.Struct({
615
+ projectId: S.String.pipe(T.Label()),
616
+ regionId: GetIntakeUserRequestRegionId.pipe(T.Label()),
617
+ intakeId: S.String.pipe(T.Label()),
618
+ intakeUserId: S.String.pipe(T.Label()),
619
+ }).pipe(
620
+ T.Http({
621
+ method: "GET",
622
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users/{intakeUserId}",
623
+ code: 200,
624
+ baseUrl: "https://intake.api.stackit.cloud",
625
+ }),
626
+ ),
627
+ ).annotate({
628
+ identifier: "GetIntakeUserRequest",
629
+ }) as any as S.Schema<GetIntakeUserRequest>;
630
+
631
+ export type ListIntakeRunnersRequestRegionId = "eu01" | "eu02";
632
+ export const ListIntakeRunnersRequestRegionId = /*@__PURE__*/ S.String;
633
+
634
+ export interface ListIntakeRunnersRequest {
635
+ /** The STACKIT portal project UUID the resource is located in. */
636
+ projectId: string;
637
+ /** The STACKIT region name the resource is located in. */
638
+ regionId: ListIntakeRunnersRequestRegionId | (string & {});
639
+ /** A token to retrieve the next page of results. */
640
+ pageToken?: string;
641
+ /** Maximum number of items to return */
642
+ pageSize?: number;
643
+ }
644
+ export const ListIntakeRunnersRequest = /*@__PURE__*/ S.suspend(() =>
645
+ S.Struct({
646
+ projectId: S.String.pipe(T.Label()),
647
+ regionId: ListIntakeRunnersRequestRegionId.pipe(T.Label()),
648
+ pageToken: S.optional(S.String.pipe(T.Query())),
649
+ pageSize: S.optional(S.Number.pipe(T.Query())),
650
+ }).pipe(
651
+ T.Http({
652
+ method: "GET",
653
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intake-runners",
654
+ code: 200,
655
+ baseUrl: "https://intake.api.stackit.cloud",
656
+ }),
657
+ ),
658
+ ).annotate({
659
+ identifier: "ListIntakeRunnersRequest",
660
+ }) as any as S.Schema<ListIntakeRunnersRequest>;
661
+
662
+ export type ListIntakeRunnersResponseIntakeRunnersList =
663
+ Array<IntakeRunnerResponse>;
664
+ export const ListIntakeRunnersResponseIntakeRunnersList = /*@__PURE__*/ S.Array(
665
+ IntakeRunnerResponse,
666
+ ) as any as S.Schema<ListIntakeRunnersResponseIntakeRunnersList>;
667
+
668
+ export interface ListIntakeRunnersResponse {
669
+ intakeRunners: ListIntakeRunnersResponseIntakeRunnersList;
670
+ /** A token to retrieve the next page of results. */
671
+ nextPageToken?: string;
672
+ }
673
+ export const ListIntakeRunnersResponse = /*@__PURE__*/ S.suspend(() =>
674
+ S.Struct({
675
+ intakeRunners: ListIntakeRunnersResponseIntakeRunnersList,
676
+ nextPageToken: S.optional(S.String),
677
+ }),
678
+ ).annotate({
679
+ identifier: "ListIntakeRunnersResponse",
680
+ }) as any as S.Schema<ListIntakeRunnersResponse>;
681
+
682
+ export type ListIntakesRequestRegionId = "eu01" | "eu02";
683
+ export const ListIntakesRequestRegionId = /*@__PURE__*/ S.String;
684
+
685
+ export interface ListIntakesRequest {
686
+ /** The STACKIT portal project UUID the resource is located in. */
687
+ projectId: string;
688
+ /** The STACKIT region name the resource is located in. */
689
+ regionId: ListIntakesRequestRegionId | (string & {});
690
+ /** A token to retrieve the next page of results. */
691
+ pageToken?: string;
692
+ /** Maximum number of items to return */
693
+ pageSize?: number;
694
+ }
695
+ export const ListIntakesRequest = /*@__PURE__*/ S.suspend(() =>
696
+ S.Struct({
697
+ projectId: S.String.pipe(T.Label()),
698
+ regionId: ListIntakesRequestRegionId.pipe(T.Label()),
699
+ pageToken: S.optional(S.String.pipe(T.Query())),
700
+ pageSize: S.optional(S.Number.pipe(T.Query())),
701
+ }).pipe(
702
+ T.Http({
703
+ method: "GET",
704
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intakes",
705
+ code: 200,
706
+ baseUrl: "https://intake.api.stackit.cloud",
707
+ }),
708
+ ),
709
+ ).annotate({
710
+ identifier: "ListIntakesRequest",
711
+ }) as any as S.Schema<ListIntakesRequest>;
712
+
713
+ export type ListIntakesResponseIntakesList = Array<IntakeResponse>;
714
+ export const ListIntakesResponseIntakesList = /*@__PURE__*/ S.Array(
715
+ IntakeResponse,
716
+ ) as any as S.Schema<ListIntakesResponseIntakesList>;
717
+
718
+ export interface ListIntakesResponse {
719
+ intakes: ListIntakesResponseIntakesList;
720
+ /** A token to retrieve the next page of results. */
721
+ nextPageToken?: string;
722
+ }
723
+ export const ListIntakesResponse = /*@__PURE__*/ S.suspend(() =>
724
+ S.Struct({
725
+ intakes: ListIntakesResponseIntakesList,
726
+ nextPageToken: S.optional(S.String),
727
+ }),
728
+ ).annotate({
729
+ identifier: "ListIntakesResponse",
730
+ }) as any as S.Schema<ListIntakesResponse>;
731
+
732
+ export type ListIntakeUsersRequestRegionId = "eu01" | "eu02";
733
+ export const ListIntakeUsersRequestRegionId = /*@__PURE__*/ S.String;
734
+
735
+ export interface ListIntakeUsersRequest {
736
+ /** The STACKIT portal project UUID the resource is located in. */
737
+ projectId: string;
738
+ /** The STACKIT region name the resource is located in. */
739
+ regionId: ListIntakeUsersRequestRegionId | (string & {});
740
+ /** The intake UUID. */
741
+ intakeId: string;
742
+ /** A token to retrieve the next page of results. */
743
+ pageToken?: string;
744
+ /** Maximum number of items to return */
745
+ pageSize?: number;
746
+ }
747
+ export const ListIntakeUsersRequest = /*@__PURE__*/ S.suspend(() =>
748
+ S.Struct({
749
+ projectId: S.String.pipe(T.Label()),
750
+ regionId: ListIntakeUsersRequestRegionId.pipe(T.Label()),
751
+ intakeId: S.String.pipe(T.Label()),
752
+ pageToken: S.optional(S.String.pipe(T.Query())),
753
+ pageSize: S.optional(S.Number.pipe(T.Query())),
754
+ }).pipe(
755
+ T.Http({
756
+ method: "GET",
757
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users",
758
+ code: 200,
759
+ baseUrl: "https://intake.api.stackit.cloud",
760
+ }),
761
+ ),
762
+ ).annotate({
763
+ identifier: "ListIntakeUsersRequest",
764
+ }) as any as S.Schema<ListIntakeUsersRequest>;
765
+
766
+ export type ListIntakeUsersResponseIntakeUsersList = Array<IntakeUserResponse>;
767
+ export const ListIntakeUsersResponseIntakeUsersList = /*@__PURE__*/ S.Array(
768
+ IntakeUserResponse,
769
+ ) as any as S.Schema<ListIntakeUsersResponseIntakeUsersList>;
770
+
771
+ export interface ListIntakeUsersResponse {
772
+ intakeUsers: ListIntakeUsersResponseIntakeUsersList;
773
+ /** A token to retrieve the next page of results. */
774
+ nextPageToken?: string;
775
+ }
776
+ export const ListIntakeUsersResponse = /*@__PURE__*/ S.suspend(() =>
777
+ S.Struct({
778
+ intakeUsers: ListIntakeUsersResponseIntakeUsersList,
779
+ nextPageToken: S.optional(S.String),
780
+ }),
781
+ ).annotate({
782
+ identifier: "ListIntakeUsersResponse",
783
+ }) as any as S.Schema<ListIntakeUsersResponse>;
784
+
785
+ export type UpdateIntakeRequestRegionId = "eu01" | "eu02";
786
+ export const UpdateIntakeRequestRegionId = /*@__PURE__*/ S.String;
787
+
788
+ export interface DremioAuthPatch {
789
+ /** A Dremio personal access token for authentication */
790
+ personalAccessToken?: string;
791
+ /** The URL to the Dremio instance's OAuth 2.0 token endpoint */
792
+ tokenEndpoint?: string;
793
+ }
794
+ export const DremioAuthPatch = /*@__PURE__*/ S.suspend(() =>
795
+ S.Struct({
796
+ personalAccessToken: S.optional(S.String),
797
+ tokenEndpoint: S.optional(S.String),
798
+ }),
799
+ ).annotate({
800
+ identifier: "DremioAuthPatch",
801
+ }) as any as S.Schema<DremioAuthPatch>;
802
+
803
+ /** Configures authentication for the Iceberg catalog */
804
+ export interface CatalogAuthPatch {
805
+ dremio?: DremioAuthPatch;
806
+ type?: CatalogAuthType | (string & {});
807
+ }
808
+ export const CatalogAuthPatch = /*@__PURE__*/ S.suspend(() =>
809
+ S.Struct({
810
+ dremio: S.optional(DremioAuthPatch),
811
+ type: S.optional(CatalogAuthType),
812
+ }),
813
+ ).annotate({
814
+ identifier: "CatalogAuthPatch",
815
+ }) as any as S.Schema<CatalogAuthPatch>;
816
+
817
+ /** List of Iceberg partitioning expressions to use when creating the target table. This setting can only be used when `partitioning` is set to `manual`. See the [Apache Iceberg spec](https://iceberg.apache.org/spec/#partitioning) for more details. */
818
+ export type IntakeCatalogPatchPartitionByList = Array<string>;
819
+ export const IntakeCatalogPatchPartitionByList = /*@__PURE__*/ S.Array(
820
+ S.String,
821
+ ) as any as S.Schema<IntakeCatalogPatchPartitionByList>;
822
+
823
+ /** The target table's partitioning. * `none` disables partitioning. * `intake-time` configures daily partitioning based on the automatically created ingestion time column `__intake_ts`. * `manual` allows arbitrary Iceberg partitioning expression to be set via `partitionBy`. */
824
+ export type PartitioningUpdateType = "none" | "intake-time" | "manual";
825
+ export const PartitioningUpdateType = /*@__PURE__*/ S.String;
826
+
827
+ /** The Iceberg catalog configuration */
828
+ export interface IntakeCatalogPatch {
829
+ auth?: CatalogAuthPatch;
830
+ /** The namespace to which data shall be written. It will be automatically created, if it does not exist. */
831
+ namespace?: string;
832
+ /** List of Iceberg partitioning expressions to use when creating the target table. This setting can only be used when `partitioning` is set to `manual`. See the [Apache Iceberg spec](https://iceberg.apache.org/spec/#partitioning) for more details. */
833
+ partitionBy?: IntakeCatalogPatchPartitionByList | null;
834
+ partitioning?: PartitioningUpdateType | (string & {});
835
+ /** The table name is a short name chosen by the user to identify the table in Iceberg. */
836
+ tableName?: string;
837
+ /** The URI to the Iceberg catalog endpoint */
838
+ uri?: string;
839
+ /** The Iceberg warehouse to connect to, required when the catalog has no default warehouse configured. */
840
+ warehouse?: string;
841
+ }
842
+ export const IntakeCatalogPatch = /*@__PURE__*/ S.suspend(() =>
843
+ S.Struct({
844
+ auth: S.optional(CatalogAuthPatch),
845
+ namespace: S.optional(S.String),
846
+ partitionBy: S.optional(S.NullOr(IntakeCatalogPatchPartitionByList)),
847
+ partitioning: S.optional(PartitioningUpdateType),
848
+ tableName: S.optional(S.String),
849
+ uri: S.optional(S.String),
850
+ warehouse: S.optional(S.String),
851
+ }),
852
+ ).annotate({
853
+ identifier: "IntakeCatalogPatch",
854
+ }) as any as S.Schema<IntakeCatalogPatch>;
855
+
856
+ /** Labels are key-value pairs associated with the resource. To update labels: - Provide a new set of key-value pairs to replace the existing labels. - Send empty object `{}` to remove all labels. - Omit this field to leave the labels unchanged. */
857
+ export type UpdateIntakeRequestLabelsMap = {
858
+ [key: string]: string | undefined;
859
+ };
860
+ export const UpdateIntakeRequestLabelsMap = /*@__PURE__*/ S.Record(
861
+ S.String,
862
+ S.String,
863
+ ) as any as S.Schema<UpdateIntakeRequestLabelsMap>;
864
+
865
+ export interface UpdateIntakeRequest {
866
+ /** The STACKIT portal project UUID the resource is located in. */
867
+ projectId: string;
868
+ /** The STACKIT region name the resource is located in. */
869
+ regionId: UpdateIntakeRequestRegionId | (string & {});
870
+ /** The intake UUID. */
871
+ intakeId: string;
872
+ catalog?: IntakeCatalogPatch;
873
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
874
+ description?: string;
875
+ /** The display name is a short name chosen by the user to identify the resource. */
876
+ displayName?: string;
877
+ /** The unique id of the intake runner this intake should run on. */
878
+ intakeRunnerId: string;
879
+ /** Labels are key-value pairs associated with the resource. To update labels: - Provide a new set of key-value pairs to replace the existing labels. - Send empty object `{}` to remove all labels. - Omit this field to leave the labels unchanged. */
880
+ labels?: UpdateIntakeRequestLabelsMap | null;
881
+ }
882
+ export const UpdateIntakeRequest = /*@__PURE__*/ S.suspend(() =>
883
+ S.Struct({
884
+ projectId: S.String.pipe(T.Label()),
885
+ regionId: UpdateIntakeRequestRegionId.pipe(T.Label()),
886
+ intakeId: S.String.pipe(T.Label()),
887
+ catalog: S.optional(IntakeCatalogPatch),
888
+ description: S.optional(S.String),
889
+ displayName: S.optional(S.String),
890
+ intakeRunnerId: S.String,
891
+ labels: S.optional(S.NullOr(UpdateIntakeRequestLabelsMap)),
892
+ }).pipe(
893
+ T.Http({
894
+ method: "PUT",
895
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}",
896
+ code: 200,
897
+ baseUrl: "https://intake.api.stackit.cloud",
898
+ }),
899
+ ),
900
+ ).annotate({
901
+ identifier: "UpdateIntakeRequest",
902
+ }) as any as S.Schema<UpdateIntakeRequest>;
903
+
904
+ export type UpdateIntakeRunnerRequestRegionId = "eu01" | "eu02";
905
+ export const UpdateIntakeRunnerRequestRegionId = /*@__PURE__*/ S.String;
906
+
907
+ /** Labels are key-value pairs associated with the resource. To update labels: - Provide a new set of key-value pairs to replace the existing labels. - Send empty object `{}` to remove all labels. - Omit this field to leave the labels unchanged. */
908
+ export type UpdateIntakeRunnerRequestLabelsMap = {
909
+ [key: string]: string | undefined;
910
+ };
911
+ export const UpdateIntakeRunnerRequestLabelsMap = /*@__PURE__*/ S.Record(
912
+ S.String,
913
+ S.String,
914
+ ) as any as S.Schema<UpdateIntakeRunnerRequestLabelsMap>;
915
+
916
+ export interface UpdateIntakeRunnerRequest {
917
+ /** The STACKIT portal project UUID the resource is located in. */
918
+ projectId: string;
919
+ /** The STACKIT region name the resource is located in. */
920
+ regionId: UpdateIntakeRunnerRequestRegionId | (string & {});
921
+ /** The intake runner UUID. */
922
+ intakeRunnerId: string;
923
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
924
+ description?: string;
925
+ /** The display name is a short name chosen by the user to identify the resource. */
926
+ displayName?: string;
927
+ /** Labels are key-value pairs associated with the resource. To update labels: - Provide a new set of key-value pairs to replace the existing labels. - Send empty object `{}` to remove all labels. - Omit this field to leave the labels unchanged. */
928
+ labels?: UpdateIntakeRunnerRequestLabelsMap | null;
929
+ /** The maximum size of a message in kibibytes (1 KiB = 1024 bytes). */
930
+ maxMessageSizeKiB?: number;
931
+ /** The maximum number of messages per hour. */
932
+ maxMessagesPerHour?: number;
933
+ }
934
+ export const UpdateIntakeRunnerRequest = /*@__PURE__*/ S.suspend(() =>
935
+ S.Struct({
936
+ projectId: S.String.pipe(T.Label()),
937
+ regionId: UpdateIntakeRunnerRequestRegionId.pipe(T.Label()),
938
+ intakeRunnerId: S.String.pipe(T.Label()),
939
+ description: S.optional(S.String),
940
+ displayName: S.optional(S.String),
941
+ labels: S.optional(S.NullOr(UpdateIntakeRunnerRequestLabelsMap)),
942
+ maxMessageSizeKiB: S.optional(S.Number),
943
+ maxMessagesPerHour: S.optional(S.Number),
944
+ }).pipe(
945
+ T.Http({
946
+ method: "PUT",
947
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intake-runners/{intakeRunnerId}",
948
+ code: 200,
949
+ baseUrl: "https://intake.api.stackit.cloud",
950
+ }),
951
+ ),
952
+ ).annotate({
953
+ identifier: "UpdateIntakeRunnerRequest",
954
+ }) as any as S.Schema<UpdateIntakeRunnerRequest>;
955
+
956
+ export type UpdateIntakeUserRequestRegionId = "eu01" | "eu02";
957
+ export const UpdateIntakeUserRequestRegionId = /*@__PURE__*/ S.String;
958
+
959
+ /** Labels are key-value pairs associated with the resource. To update labels: - Provide a new set of key-value pairs to replace the existing labels. - Send empty object `{}` to remove all labels. - Omit this field to leave the labels unchanged. */
960
+ export type UpdateIntakeUserRequestLabelsMap = {
961
+ [key: string]: string | undefined;
962
+ };
963
+ export const UpdateIntakeUserRequestLabelsMap = /*@__PURE__*/ S.Record(
964
+ S.String,
965
+ S.String,
966
+ ) as any as S.Schema<UpdateIntakeUserRequestLabelsMap>;
967
+
968
+ export interface UpdateIntakeUserRequest {
969
+ /** The STACKIT portal project UUID the resource is located in. */
970
+ projectId: string;
971
+ /** The STACKIT region name the resource is located in. */
972
+ regionId: UpdateIntakeUserRequestRegionId | (string & {});
973
+ /** The intake UUID. */
974
+ intakeId: string;
975
+ /** The intake user UUID. */
976
+ intakeUserId: string;
977
+ /** The description is a longer text chosen by the user to provide more context for the resource. */
978
+ description?: string;
979
+ /** The display name is a short name chosen by the user to identify the resource. */
980
+ displayName?: string;
981
+ /** Labels are key-value pairs associated with the resource. To update labels: - Provide a new set of key-value pairs to replace the existing labels. - Send empty object `{}` to remove all labels. - Omit this field to leave the labels unchanged. */
982
+ labels?: UpdateIntakeUserRequestLabelsMap | null;
983
+ /** A password chosen by the user. */
984
+ password?: string | Redacted.Redacted<string>;
985
+ type?: UserType | (string & {});
986
+ }
987
+ export const UpdateIntakeUserRequest = /*@__PURE__*/ S.suspend(() =>
988
+ S.Struct({
989
+ projectId: S.String.pipe(T.Label()),
990
+ regionId: UpdateIntakeUserRequestRegionId.pipe(T.Label()),
991
+ intakeId: S.String.pipe(T.Label()),
992
+ intakeUserId: S.String.pipe(T.Label()),
993
+ description: S.optional(S.String),
994
+ displayName: S.optional(S.String),
995
+ labels: S.optional(S.NullOr(UpdateIntakeUserRequestLabelsMap)),
996
+ password: S.optional(S.String.pipe(T.SensitiveValue({}))),
997
+ type: S.optional(UserType),
998
+ }).pipe(
999
+ T.Http({
1000
+ method: "PUT",
1001
+ uri: "/v1beta/projects/{projectId}/regions/{regionId}/intakes/{intakeId}/users/{intakeUserId}",
1002
+ code: 200,
1003
+ baseUrl: "https://intake.api.stackit.cloud",
1004
+ }),
1005
+ ),
1006
+ ).annotate({
1007
+ identifier: "UpdateIntakeUserRequest",
1008
+ }) as any as S.Schema<UpdateIntakeUserRequest>;
1009
+
1010
+ export type CreateIntakeError = BadRequest | Conflict | StackitOpError;
1011
+ /** Creates a new intake within the project. */
1012
+ export const createIntake: API.OperationMethod<
1013
+ CreateIntakeRequest,
1014
+ IntakeResponse,
1015
+ CreateIntakeError,
1016
+ StackitOpContext
1017
+ > = /*@__PURE__*/ API.make(() => ({
1018
+ input: CreateIntakeRequest,
1019
+ output: IntakeResponse,
1020
+ errors: [BadRequest, Conflict, UnknownStackitError],
1021
+ protocol: StackitProtocol,
1022
+ retry: Retry.Retry,
1023
+ }));
1024
+
1025
+ export type CreateIntakeRunnerError = BadRequest | Conflict | StackitOpError;
1026
+ /** Creates a new intake runner within the project. */
1027
+ export const createIntakeRunner: API.OperationMethod<
1028
+ CreateIntakeRunnerRequest,
1029
+ IntakeRunnerResponse,
1030
+ CreateIntakeRunnerError,
1031
+ StackitOpContext
1032
+ > = /*@__PURE__*/ API.make(() => ({
1033
+ input: CreateIntakeRunnerRequest,
1034
+ output: IntakeRunnerResponse,
1035
+ errors: [BadRequest, Conflict, UnknownStackitError],
1036
+ protocol: StackitProtocol,
1037
+ retry: Retry.Retry,
1038
+ }));
1039
+
1040
+ export type CreateIntakeUserError = BadRequest | Conflict | StackitOpError;
1041
+ /** Creates a new user for this intake. */
1042
+ export const createIntakeUser: API.OperationMethod<
1043
+ CreateIntakeUserRequest,
1044
+ IntakeUserResponse,
1045
+ CreateIntakeUserError,
1046
+ StackitOpContext
1047
+ > = /*@__PURE__*/ API.make(() => ({
1048
+ input: CreateIntakeUserRequest,
1049
+ output: IntakeUserResponse,
1050
+ errors: [BadRequest, Conflict, UnknownStackitError],
1051
+ protocol: StackitProtocol,
1052
+ retry: Retry.Retry,
1053
+ }));
1054
+
1055
+ export type DeleteIntakeError = NotFound | Conflict | StackitOpError;
1056
+ /** Deletes the given intake. */
1057
+ export const deleteIntake: API.OperationMethod<
1058
+ DeleteIntakeRequest,
1059
+ DeleteIntakeResponse,
1060
+ DeleteIntakeError,
1061
+ StackitOpContext
1062
+ > = /*@__PURE__*/ API.make(() => ({
1063
+ input: DeleteIntakeRequest,
1064
+ output: DeleteIntakeResponse,
1065
+ errors: [NotFound, Conflict, UnknownStackitError],
1066
+ protocol: StackitProtocol,
1067
+ retry: Retry.Retry,
1068
+ }));
1069
+
1070
+ export type DeleteIntakeRunnerError = NotFound | Conflict | StackitOpError;
1071
+ /** Deletes the given intake runner. */
1072
+ export const deleteIntakeRunner: API.OperationMethod<
1073
+ DeleteIntakeRunnerRequest,
1074
+ DeleteIntakeRunnerResponse,
1075
+ DeleteIntakeRunnerError,
1076
+ StackitOpContext
1077
+ > = /*@__PURE__*/ API.make(() => ({
1078
+ input: DeleteIntakeRunnerRequest,
1079
+ output: DeleteIntakeRunnerResponse,
1080
+ errors: [NotFound, Conflict, UnknownStackitError],
1081
+ protocol: StackitProtocol,
1082
+ retry: Retry.Retry,
1083
+ }));
1084
+
1085
+ export type DeleteIntakeUserError = NotFound | Conflict | StackitOpError;
1086
+ /** Deletes the given intake user. */
1087
+ export const deleteIntakeUser: API.OperationMethod<
1088
+ DeleteIntakeUserRequest,
1089
+ DeleteIntakeUserResponse,
1090
+ DeleteIntakeUserError,
1091
+ StackitOpContext
1092
+ > = /*@__PURE__*/ API.make(() => ({
1093
+ input: DeleteIntakeUserRequest,
1094
+ output: DeleteIntakeUserResponse,
1095
+ errors: [NotFound, Conflict, UnknownStackitError],
1096
+ protocol: StackitProtocol,
1097
+ retry: Retry.Retry,
1098
+ }));
1099
+
1100
+ export type GetIntakeError = NotFound | StackitOpError;
1101
+ /** Returns the details for the given intake. */
1102
+ export const getIntake: API.OperationMethod<
1103
+ GetIntakeRequest,
1104
+ IntakeResponse,
1105
+ GetIntakeError,
1106
+ StackitOpContext
1107
+ > = /*@__PURE__*/ API.make(() => ({
1108
+ input: GetIntakeRequest,
1109
+ output: IntakeResponse,
1110
+ errors: [NotFound, UnknownStackitError],
1111
+ protocol: StackitProtocol,
1112
+ retry: Retry.Retry,
1113
+ }));
1114
+
1115
+ export type GetIntakeRunnerError = NotFound | StackitOpError;
1116
+ /** Returns the details for the given intake runner. */
1117
+ export const getIntakeRunner: API.OperationMethod<
1118
+ GetIntakeRunnerRequest,
1119
+ IntakeRunnerResponse,
1120
+ GetIntakeRunnerError,
1121
+ StackitOpContext
1122
+ > = /*@__PURE__*/ API.make(() => ({
1123
+ input: GetIntakeRunnerRequest,
1124
+ output: IntakeRunnerResponse,
1125
+ errors: [NotFound, UnknownStackitError],
1126
+ protocol: StackitProtocol,
1127
+ retry: Retry.Retry,
1128
+ }));
1129
+
1130
+ export type GetIntakeUserError = NotFound | StackitOpError;
1131
+ /** Returns the details for the given user. */
1132
+ export const getIntakeUser: API.OperationMethod<
1133
+ GetIntakeUserRequest,
1134
+ IntakeUserResponse,
1135
+ GetIntakeUserError,
1136
+ StackitOpContext
1137
+ > = /*@__PURE__*/ API.make(() => ({
1138
+ input: GetIntakeUserRequest,
1139
+ output: IntakeUserResponse,
1140
+ errors: [NotFound, UnknownStackitError],
1141
+ protocol: StackitProtocol,
1142
+ retry: Retry.Retry,
1143
+ }));
1144
+
1145
+ export type ListIntakeRunnersError = StackitOpError;
1146
+ /** Returns a list of all intake runners within the project. */
1147
+ export const listIntakeRunners: API.OperationMethod<
1148
+ ListIntakeRunnersRequest,
1149
+ ListIntakeRunnersResponse,
1150
+ ListIntakeRunnersError,
1151
+ StackitOpContext
1152
+ > = /*@__PURE__*/ API.make(() => ({
1153
+ input: ListIntakeRunnersRequest,
1154
+ output: ListIntakeRunnersResponse,
1155
+ errors: [UnknownStackitError],
1156
+ protocol: StackitProtocol,
1157
+ retry: Retry.Retry,
1158
+ }));
1159
+
1160
+ export type ListIntakesError = StackitOpError;
1161
+ /** Returns a list of all intakes within the project. */
1162
+ export const listIntakes: API.OperationMethod<
1163
+ ListIntakesRequest,
1164
+ ListIntakesResponse,
1165
+ ListIntakesError,
1166
+ StackitOpContext
1167
+ > = /*@__PURE__*/ API.make(() => ({
1168
+ input: ListIntakesRequest,
1169
+ output: ListIntakesResponse,
1170
+ errors: [UnknownStackitError],
1171
+ protocol: StackitProtocol,
1172
+ retry: Retry.Retry,
1173
+ }));
1174
+
1175
+ export type ListIntakeUsersError = StackitOpError;
1176
+ /** Returns a list of all intake users within the project and intake. */
1177
+ export const listIntakeUsers: API.OperationMethod<
1178
+ ListIntakeUsersRequest,
1179
+ ListIntakeUsersResponse,
1180
+ ListIntakeUsersError,
1181
+ StackitOpContext
1182
+ > = /*@__PURE__*/ API.make(() => ({
1183
+ input: ListIntakeUsersRequest,
1184
+ output: ListIntakeUsersResponse,
1185
+ errors: [UnknownStackitError],
1186
+ protocol: StackitProtocol,
1187
+ retry: Retry.Retry,
1188
+ }));
1189
+
1190
+ export type UpdateIntakeError = NotFound | Conflict | StackitOpError;
1191
+ /** Updates the given intake. */
1192
+ export const updateIntake: API.OperationMethod<
1193
+ UpdateIntakeRequest,
1194
+ IntakeResponse,
1195
+ UpdateIntakeError,
1196
+ StackitOpContext
1197
+ > = /*@__PURE__*/ API.make(() => ({
1198
+ input: UpdateIntakeRequest,
1199
+ output: IntakeResponse,
1200
+ errors: [NotFound, Conflict, UnknownStackitError],
1201
+ protocol: StackitProtocol,
1202
+ retry: Retry.Retry,
1203
+ }));
1204
+
1205
+ export type UpdateIntakeRunnerError = BadRequest | Conflict | StackitOpError;
1206
+ /** Updates a intake runner within the project. */
1207
+ export const updateIntakeRunner: API.OperationMethod<
1208
+ UpdateIntakeRunnerRequest,
1209
+ IntakeRunnerResponse,
1210
+ UpdateIntakeRunnerError,
1211
+ StackitOpContext
1212
+ > = /*@__PURE__*/ API.make(() => ({
1213
+ input: UpdateIntakeRunnerRequest,
1214
+ output: IntakeRunnerResponse,
1215
+ errors: [BadRequest, Conflict, UnknownStackitError],
1216
+ protocol: StackitProtocol,
1217
+ retry: Retry.Retry,
1218
+ }));
1219
+
1220
+ export type UpdateIntakeUserError = NotFound | Conflict | StackitOpError;
1221
+ /** Updates the given intake user. */
1222
+ export const updateIntakeUser: API.OperationMethod<
1223
+ UpdateIntakeUserRequest,
1224
+ IntakeUserResponse,
1225
+ UpdateIntakeUserError,
1226
+ StackitOpContext
1227
+ > = /*@__PURE__*/ API.make(() => ({
1228
+ input: UpdateIntakeUserRequest,
1229
+ output: IntakeUserResponse,
1230
+ errors: [NotFound, Conflict, UnknownStackitError],
1231
+ protocol: StackitProtocol,
1232
+ retry: Retry.Retry,
1233
+ }));