@distilled.cloud/stackit 0.0.0-stage → 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 +33 -2
  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 +83 -3
  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,1150 @@
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 CreateAccessPolicyRequestRegionId = "eu01" | "eu02";
45
+ export const CreateAccessPolicyRequestRegionId = /*@__PURE__*/ S.String;
46
+
47
+ export type PermissionsItem = "read" | "write";
48
+ export const PermissionsItem = /*@__PURE__*/ S.String;
49
+
50
+ /** The access permissions granted to the access token or access policy. */
51
+ export type Permissions = Array<PermissionsItem | (string & {})>;
52
+ export const Permissions = /*@__PURE__*/ S.Array(
53
+ PermissionsItem,
54
+ ) as any as S.Schema<Permissions>;
55
+
56
+ export interface CreateAccessPolicyRequest {
57
+ /** The STACKIT portal project UUID the resource is located in. */
58
+ projectId: string;
59
+ /** The STACKIT region name the resource is located in. */
60
+ regionId: CreateAccessPolicyRequestRegionId | (string & {});
61
+ /** The Logs Instance UUID. */
62
+ instanceId: string;
63
+ /** The description of the access policy. */
64
+ description?: string | null;
65
+ /** The email address of the STACKIT IAM subject (user, group, or service account). */
66
+ email: string;
67
+ permissions: Permissions;
68
+ }
69
+ export const CreateAccessPolicyRequest = /*@__PURE__*/ S.suspend(() =>
70
+ S.Struct({
71
+ projectId: S.String.pipe(T.Label()),
72
+ regionId: CreateAccessPolicyRequestRegionId.pipe(T.Label()),
73
+ instanceId: S.String.pipe(T.Label()),
74
+ description: S.optional(S.NullOr(S.String)),
75
+ email: S.String,
76
+ permissions: Permissions,
77
+ }).pipe(
78
+ T.Http({
79
+ method: "POST",
80
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-policies",
81
+ code: 200,
82
+ baseUrl: "https://logs.api.stackit.cloud",
83
+ }),
84
+ ),
85
+ ).annotate({
86
+ identifier: "CreateAccessPolicyRequest",
87
+ }) as any as S.Schema<CreateAccessPolicyRequest>;
88
+
89
+ export interface AccessPolicy {
90
+ /** The description of the access policy. */
91
+ description?: string;
92
+ /** The email address of the STACKIT IAM subject (user, group, or service account). */
93
+ email: string;
94
+ /** An auto generated unique id which identifies the access policy. */
95
+ id: string;
96
+ permissions: Permissions;
97
+ }
98
+ export const AccessPolicy = /*@__PURE__*/ S.suspend(() =>
99
+ S.Struct({
100
+ description: S.optional(S.String),
101
+ email: S.String,
102
+ id: S.String,
103
+ permissions: Permissions,
104
+ }),
105
+ ).annotate({ identifier: "AccessPolicy" }) as any as S.Schema<AccessPolicy>;
106
+
107
+ export type CreateAccessTokenRequestRegionId = "eu01" | "eu02";
108
+ export const CreateAccessTokenRequestRegionId = /*@__PURE__*/ S.String;
109
+
110
+ export interface CreateAccessTokenRequest {
111
+ /** The STACKIT portal project UUID the resource is located in. */
112
+ projectId: string;
113
+ /** The STACKIT region name the resource is located in. */
114
+ regionId: CreateAccessTokenRequestRegionId | (string & {});
115
+ /** The Logs Instance UUID. */
116
+ instanceId: string;
117
+ /** The description of the access token. */
118
+ description?: string;
119
+ /** The displayed name of the access token. */
120
+ displayName: string;
121
+ /** A lifetime period for an access token in days. If unset the token will not expire. */
122
+ lifetime?: number;
123
+ permissions: Permissions;
124
+ }
125
+ export const CreateAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
126
+ S.Struct({
127
+ projectId: S.String.pipe(T.Label()),
128
+ regionId: CreateAccessTokenRequestRegionId.pipe(T.Label()),
129
+ instanceId: S.String.pipe(T.Label()),
130
+ description: S.optional(S.String),
131
+ displayName: S.String,
132
+ lifetime: S.optional(S.Number),
133
+ permissions: Permissions,
134
+ }).pipe(
135
+ T.Http({
136
+ method: "POST",
137
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens",
138
+ code: 200,
139
+ baseUrl: "https://logs.api.stackit.cloud",
140
+ }),
141
+ ),
142
+ ).annotate({
143
+ identifier: "CreateAccessTokenRequest",
144
+ }) as any as S.Schema<CreateAccessTokenRequest>;
145
+
146
+ export type AccessTokenStatus = "active" | "expired";
147
+ export const AccessTokenStatus = /*@__PURE__*/ S.String;
148
+
149
+ export interface AccessToken {
150
+ /** A generated access token. Only available on creation. */
151
+ accessToken?: string | Redacted.Redacted<string>;
152
+ /** The user who created the access token. */
153
+ creator: string;
154
+ /** The description of the access token. */
155
+ description?: string;
156
+ /** The displayed name of the access token. */
157
+ displayName: string;
158
+ /** Indicates if the access token can expire. */
159
+ expires: boolean;
160
+ /** An auto generated unique id which identifies the access token. */
161
+ id: string;
162
+ permissions: Permissions;
163
+ status: AccessTokenStatus;
164
+ /** The date and time util an access token is valid to (inclusively). */
165
+ validUntil?: string;
166
+ }
167
+ export const AccessToken = /*@__PURE__*/ S.suspend(() =>
168
+ S.Struct({
169
+ accessToken: S.optional(S.String.pipe(T.SensitiveValue({}))),
170
+ creator: S.String,
171
+ description: S.optional(S.String),
172
+ displayName: S.String,
173
+ expires: S.Boolean,
174
+ id: S.String,
175
+ permissions: Permissions,
176
+ status: AccessTokenStatus,
177
+ validUntil: S.optional(S.String),
178
+ }),
179
+ ).annotate({ identifier: "AccessToken" }) as any as S.Schema<AccessToken>;
180
+
181
+ export type CreateLogsInstanceRequestRegionId = "eu01" | "eu02";
182
+ export const CreateLogsInstanceRequestRegionId = /*@__PURE__*/ S.String;
183
+
184
+ /** The access control list for the Logs instance. */
185
+ export type CreateLogsInstanceRequestAclList = Array<string>;
186
+ export const CreateLogsInstanceRequestAclList = /*@__PURE__*/ S.Array(
187
+ S.String,
188
+ ) as any as S.Schema<CreateLogsInstanceRequestAclList>;
189
+
190
+ export interface CreateLogsInstanceRequest {
191
+ /** The STACKIT portal project UUID the resource is located in. */
192
+ projectId: string;
193
+ /** The STACKIT region name the resource is located in. */
194
+ regionId: CreateLogsInstanceRequestRegionId | (string & {});
195
+ /** The access control list for the Logs instance. */
196
+ acl?: CreateLogsInstanceRequestAclList;
197
+ /** The description of the access token. */
198
+ description?: string;
199
+ /** The displayed name to distinguish multiple Logs instances. */
200
+ displayName: string;
201
+ /** The log retention time in days. */
202
+ retentionDays: number;
203
+ }
204
+ export const CreateLogsInstanceRequest = /*@__PURE__*/ S.suspend(() =>
205
+ S.Struct({
206
+ projectId: S.String.pipe(T.Label()),
207
+ regionId: CreateLogsInstanceRequestRegionId.pipe(T.Label()),
208
+ acl: S.optional(CreateLogsInstanceRequestAclList),
209
+ description: S.optional(S.String),
210
+ displayName: S.String,
211
+ retentionDays: S.Number,
212
+ }).pipe(
213
+ T.Http({
214
+ method: "POST",
215
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances",
216
+ code: 200,
217
+ baseUrl: "https://logs.api.stackit.cloud",
218
+ }),
219
+ ),
220
+ ).annotate({
221
+ identifier: "CreateLogsInstanceRequest",
222
+ }) as any as S.Schema<CreateLogsInstanceRequest>;
223
+
224
+ /** The access control list for the Logs instance. */
225
+ export type LogsInstanceAclList = Array<string>;
226
+ export const LogsInstanceAclList = /*@__PURE__*/ S.Array(
227
+ S.String,
228
+ ) as any as S.Schema<LogsInstanceAclList>;
229
+
230
+ /** The current status of the Logs instance. */
231
+ export type LogsInstanceStatus = "active" | "deleting" | "reconciling";
232
+ export const LogsInstanceStatus = /*@__PURE__*/ S.String;
233
+
234
+ export interface LogsInstance {
235
+ /** The access control list for the Logs instance. */
236
+ acl?: LogsInstanceAclList;
237
+ /** The date and time the creation of the Logs instance was triggered. */
238
+ created: string;
239
+ /** The Logs instance's datasource URL, can be used in Grafana as a datasource URL */
240
+ datasourceUrl?: string;
241
+ /** The description of the Logs instance. */
242
+ description?: string;
243
+ /** The displayed name of the Logs instance. */
244
+ displayName: string;
245
+ /** A auto generated unique id which identifies the Logs instance. */
246
+ id: string;
247
+ /** The Logs instance's ingest logs via OTLP URL */
248
+ ingestOtlpUrl?: string;
249
+ /** The Logs instance's ingest logs URL */
250
+ ingestUrl?: string;
251
+ /** The Logs instance's query range URL */
252
+ queryRangeUrl?: string;
253
+ /** The Logs instance's query URL */
254
+ queryUrl?: string;
255
+ /** The log retention time in days. */
256
+ retentionDays: number;
257
+ /** The current status of the Logs instance. */
258
+ status: LogsInstanceStatus;
259
+ }
260
+ export const LogsInstance = /*@__PURE__*/ S.suspend(() =>
261
+ S.Struct({
262
+ acl: S.optional(LogsInstanceAclList),
263
+ created: S.String,
264
+ datasourceUrl: S.optional(S.String),
265
+ description: S.optional(S.String),
266
+ displayName: S.String,
267
+ id: S.String,
268
+ ingestOtlpUrl: S.optional(S.String),
269
+ ingestUrl: S.optional(S.String),
270
+ queryRangeUrl: S.optional(S.String),
271
+ queryUrl: S.optional(S.String),
272
+ retentionDays: S.Number,
273
+ status: LogsInstanceStatus,
274
+ }),
275
+ ).annotate({ identifier: "LogsInstance" }) as any as S.Schema<LogsInstance>;
276
+
277
+ export type DeleteAccessPolicyRequestRegionId = "eu01" | "eu02";
278
+ export const DeleteAccessPolicyRequestRegionId = /*@__PURE__*/ S.String;
279
+
280
+ export interface DeleteAccessPolicyRequest {
281
+ /** The STACKIT portal project UUID the resource is located in. */
282
+ projectId: string;
283
+ /** The STACKIT region name the resource is located in. */
284
+ regionId: DeleteAccessPolicyRequestRegionId | (string & {});
285
+ /** The Logs Instance UUID. */
286
+ instanceId: string;
287
+ /** The access policy unique id. */
288
+ pId: string;
289
+ }
290
+ export const DeleteAccessPolicyRequest = /*@__PURE__*/ S.suspend(() =>
291
+ S.Struct({
292
+ projectId: S.String.pipe(T.Label()),
293
+ regionId: DeleteAccessPolicyRequestRegionId.pipe(T.Label()),
294
+ instanceId: S.String.pipe(T.Label()),
295
+ pId: S.String.pipe(T.Label()),
296
+ }).pipe(
297
+ T.Http({
298
+ method: "DELETE",
299
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-policies/{pId}",
300
+ code: 200,
301
+ baseUrl: "https://logs.api.stackit.cloud",
302
+ }),
303
+ ),
304
+ ).annotate({
305
+ identifier: "DeleteAccessPolicyRequest",
306
+ }) as any as S.Schema<DeleteAccessPolicyRequest>;
307
+
308
+ export interface DeleteAccessPolicyResponse {}
309
+ export const DeleteAccessPolicyResponse = /*@__PURE__*/ S.suspend(() =>
310
+ S.Struct({}),
311
+ ).annotate({
312
+ identifier: "DeleteAccessPolicyResponse",
313
+ }) as any as S.Schema<DeleteAccessPolicyResponse>;
314
+
315
+ export type DeleteAccessTokenRequestRegionId = "eu01" | "eu02";
316
+ export const DeleteAccessTokenRequestRegionId = /*@__PURE__*/ S.String;
317
+
318
+ export interface DeleteAccessTokenRequest {
319
+ /** The STACKIT portal project UUID the resource is located in. */
320
+ projectId: string;
321
+ /** The STACKIT region name the resource is located in. */
322
+ regionId: DeleteAccessTokenRequestRegionId | (string & {});
323
+ /** The Logs Instance UUID. */
324
+ instanceId: string;
325
+ /** The access token UUID. */
326
+ tId: string;
327
+ }
328
+ export const DeleteAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
329
+ S.Struct({
330
+ projectId: S.String.pipe(T.Label()),
331
+ regionId: DeleteAccessTokenRequestRegionId.pipe(T.Label()),
332
+ instanceId: S.String.pipe(T.Label()),
333
+ tId: S.String.pipe(T.Label()),
334
+ }).pipe(
335
+ T.Http({
336
+ method: "DELETE",
337
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}",
338
+ code: 200,
339
+ baseUrl: "https://logs.api.stackit.cloud",
340
+ }),
341
+ ),
342
+ ).annotate({
343
+ identifier: "DeleteAccessTokenRequest",
344
+ }) as any as S.Schema<DeleteAccessTokenRequest>;
345
+
346
+ export interface DeleteAccessTokenResponse {}
347
+ export const DeleteAccessTokenResponse = /*@__PURE__*/ S.suspend(() =>
348
+ S.Struct({}),
349
+ ).annotate({
350
+ identifier: "DeleteAccessTokenResponse",
351
+ }) as any as S.Schema<DeleteAccessTokenResponse>;
352
+
353
+ export type DeleteAllAccessPoliciesRequestRegionId = "eu01" | "eu02";
354
+ export const DeleteAllAccessPoliciesRequestRegionId = /*@__PURE__*/ S.String;
355
+
356
+ export interface DeleteAllAccessPoliciesRequest {
357
+ /** The STACKIT portal project UUID the resource is located in. */
358
+ projectId: string;
359
+ /** The STACKIT region name the resource is located in. */
360
+ regionId: DeleteAllAccessPoliciesRequestRegionId | (string & {});
361
+ /** The Logs Instance UUID. */
362
+ instanceId: string;
363
+ }
364
+ export const DeleteAllAccessPoliciesRequest = /*@__PURE__*/ S.suspend(() =>
365
+ S.Struct({
366
+ projectId: S.String.pipe(T.Label()),
367
+ regionId: DeleteAllAccessPoliciesRequestRegionId.pipe(T.Label()),
368
+ instanceId: S.String.pipe(T.Label()),
369
+ }).pipe(
370
+ T.Http({
371
+ method: "DELETE",
372
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-policies",
373
+ code: 200,
374
+ baseUrl: "https://logs.api.stackit.cloud",
375
+ }),
376
+ ),
377
+ ).annotate({
378
+ identifier: "DeleteAllAccessPoliciesRequest",
379
+ }) as any as S.Schema<DeleteAllAccessPoliciesRequest>;
380
+
381
+ export type AccessPolicyListPoliciesList = Array<AccessPolicy>;
382
+ export const AccessPolicyListPoliciesList = /*@__PURE__*/ S.Array(
383
+ AccessPolicy,
384
+ ) as any as S.Schema<AccessPolicyListPoliciesList>;
385
+
386
+ export interface AccessPolicyList {
387
+ policies: AccessPolicyListPoliciesList;
388
+ }
389
+ export const AccessPolicyList = /*@__PURE__*/ S.suspend(() =>
390
+ S.Struct({
391
+ policies: AccessPolicyListPoliciesList,
392
+ }),
393
+ ).annotate({
394
+ identifier: "AccessPolicyList",
395
+ }) as any as S.Schema<AccessPolicyList>;
396
+
397
+ export type DeleteAllAccessTokensRequestRegionId = "eu01" | "eu02";
398
+ export const DeleteAllAccessTokensRequestRegionId = /*@__PURE__*/ S.String;
399
+
400
+ export interface DeleteAllAccessTokensRequest {
401
+ /** The STACKIT portal project UUID the resource is located in. */
402
+ projectId: string;
403
+ /** The STACKIT region name the resource is located in. */
404
+ regionId: DeleteAllAccessTokensRequestRegionId | (string & {});
405
+ /** The Logs Instance UUID. */
406
+ instanceId: string;
407
+ }
408
+ export const DeleteAllAccessTokensRequest = /*@__PURE__*/ S.suspend(() =>
409
+ S.Struct({
410
+ projectId: S.String.pipe(T.Label()),
411
+ regionId: DeleteAllAccessTokensRequestRegionId.pipe(T.Label()),
412
+ instanceId: S.String.pipe(T.Label()),
413
+ }).pipe(
414
+ T.Http({
415
+ method: "DELETE",
416
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens",
417
+ code: 200,
418
+ baseUrl: "https://logs.api.stackit.cloud",
419
+ }),
420
+ ),
421
+ ).annotate({
422
+ identifier: "DeleteAllAccessTokensRequest",
423
+ }) as any as S.Schema<DeleteAllAccessTokensRequest>;
424
+
425
+ export type AccessTokenListTokensList = Array<AccessToken>;
426
+ export const AccessTokenListTokensList = /*@__PURE__*/ S.Array(
427
+ AccessToken,
428
+ ) as any as S.Schema<AccessTokenListTokensList>;
429
+
430
+ export interface AccessTokenList {
431
+ tokens: AccessTokenListTokensList;
432
+ }
433
+ export const AccessTokenList = /*@__PURE__*/ S.suspend(() =>
434
+ S.Struct({
435
+ tokens: AccessTokenListTokensList,
436
+ }),
437
+ ).annotate({
438
+ identifier: "AccessTokenList",
439
+ }) as any as S.Schema<AccessTokenList>;
440
+
441
+ export type DeleteAllExpiredAccessTokensRequestRegionId = "eu01" | "eu02";
442
+ export const DeleteAllExpiredAccessTokensRequestRegionId =
443
+ /*@__PURE__*/ S.String;
444
+
445
+ export interface DeleteAllExpiredAccessTokensRequest {
446
+ /** The STACKIT portal project UUID the resource is located in. */
447
+ projectId: string;
448
+ /** The STACKIT region name the resource is located in. */
449
+ regionId: DeleteAllExpiredAccessTokensRequestRegionId | (string & {});
450
+ /** The Logs Instance UUID. */
451
+ instanceId: string;
452
+ }
453
+ export const DeleteAllExpiredAccessTokensRequest = /*@__PURE__*/ S.suspend(() =>
454
+ S.Struct({
455
+ projectId: S.String.pipe(T.Label()),
456
+ regionId: DeleteAllExpiredAccessTokensRequestRegionId.pipe(T.Label()),
457
+ instanceId: S.String.pipe(T.Label()),
458
+ }).pipe(
459
+ T.Http({
460
+ method: "DELETE",
461
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/expired",
462
+ code: 200,
463
+ baseUrl: "https://logs.api.stackit.cloud",
464
+ }),
465
+ ),
466
+ ).annotate({
467
+ identifier: "DeleteAllExpiredAccessTokensRequest",
468
+ }) as any as S.Schema<DeleteAllExpiredAccessTokensRequest>;
469
+
470
+ export type DeleteLogsInstanceRequestRegionId = "eu01" | "eu02";
471
+ export const DeleteLogsInstanceRequestRegionId = /*@__PURE__*/ S.String;
472
+
473
+ export interface DeleteLogsInstanceRequest {
474
+ /** The STACKIT portal project UUID the resource is located in. */
475
+ projectId: string;
476
+ /** The STACKIT region name the resource is located in. */
477
+ regionId: DeleteLogsInstanceRequestRegionId | (string & {});
478
+ /** The Logs Instance UUID. */
479
+ instanceId: string;
480
+ }
481
+ export const DeleteLogsInstanceRequest = /*@__PURE__*/ S.suspend(() =>
482
+ S.Struct({
483
+ projectId: S.String.pipe(T.Label()),
484
+ regionId: DeleteLogsInstanceRequestRegionId.pipe(T.Label()),
485
+ instanceId: S.String.pipe(T.Label()),
486
+ }).pipe(
487
+ T.Http({
488
+ method: "DELETE",
489
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
490
+ code: 200,
491
+ baseUrl: "https://logs.api.stackit.cloud",
492
+ }),
493
+ ),
494
+ ).annotate({
495
+ identifier: "DeleteLogsInstanceRequest",
496
+ }) as any as S.Schema<DeleteLogsInstanceRequest>;
497
+
498
+ export interface DeleteLogsInstanceResponse {}
499
+ export const DeleteLogsInstanceResponse = /*@__PURE__*/ S.suspend(() =>
500
+ S.Struct({}),
501
+ ).annotate({
502
+ identifier: "DeleteLogsInstanceResponse",
503
+ }) as any as S.Schema<DeleteLogsInstanceResponse>;
504
+
505
+ export type GetAccessPolicyRequestRegionId = "eu01" | "eu02";
506
+ export const GetAccessPolicyRequestRegionId = /*@__PURE__*/ S.String;
507
+
508
+ export interface GetAccessPolicyRequest {
509
+ /** The STACKIT portal project UUID the resource is located in. */
510
+ projectId: string;
511
+ /** The STACKIT region name the resource is located in. */
512
+ regionId: GetAccessPolicyRequestRegionId | (string & {});
513
+ /** The Logs Instance UUID. */
514
+ instanceId: string;
515
+ /** The access policy unique id. */
516
+ pId: string;
517
+ }
518
+ export const GetAccessPolicyRequest = /*@__PURE__*/ S.suspend(() =>
519
+ S.Struct({
520
+ projectId: S.String.pipe(T.Label()),
521
+ regionId: GetAccessPolicyRequestRegionId.pipe(T.Label()),
522
+ instanceId: S.String.pipe(T.Label()),
523
+ pId: S.String.pipe(T.Label()),
524
+ }).pipe(
525
+ T.Http({
526
+ method: "GET",
527
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-policies/{pId}",
528
+ code: 200,
529
+ baseUrl: "https://logs.api.stackit.cloud",
530
+ }),
531
+ ),
532
+ ).annotate({
533
+ identifier: "GetAccessPolicyRequest",
534
+ }) as any as S.Schema<GetAccessPolicyRequest>;
535
+
536
+ export type GetAccessTokenRequestRegionId = "eu01" | "eu02";
537
+ export const GetAccessTokenRequestRegionId = /*@__PURE__*/ S.String;
538
+
539
+ export interface GetAccessTokenRequest {
540
+ /** The STACKIT portal project UUID the resource is located in. */
541
+ projectId: string;
542
+ /** The STACKIT region name the resource is located in. */
543
+ regionId: GetAccessTokenRequestRegionId | (string & {});
544
+ /** The Logs Instance UUID. */
545
+ instanceId: string;
546
+ /** The access token UUID. */
547
+ tId: string;
548
+ }
549
+ export const GetAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
550
+ S.Struct({
551
+ projectId: S.String.pipe(T.Label()),
552
+ regionId: GetAccessTokenRequestRegionId.pipe(T.Label()),
553
+ instanceId: S.String.pipe(T.Label()),
554
+ tId: S.String.pipe(T.Label()),
555
+ }).pipe(
556
+ T.Http({
557
+ method: "GET",
558
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}",
559
+ code: 200,
560
+ baseUrl: "https://logs.api.stackit.cloud",
561
+ }),
562
+ ),
563
+ ).annotate({
564
+ identifier: "GetAccessTokenRequest",
565
+ }) as any as S.Schema<GetAccessTokenRequest>;
566
+
567
+ export type GetLogsInstanceRequestRegionId = "eu01" | "eu02";
568
+ export const GetLogsInstanceRequestRegionId = /*@__PURE__*/ S.String;
569
+
570
+ export interface GetLogsInstanceRequest {
571
+ /** The STACKIT portal project UUID the resource is located in. */
572
+ projectId: string;
573
+ /** The STACKIT region name the resource is located in. */
574
+ regionId: GetLogsInstanceRequestRegionId | (string & {});
575
+ /** The Logs Instance UUID. */
576
+ instanceId: string;
577
+ }
578
+ export const GetLogsInstanceRequest = /*@__PURE__*/ S.suspend(() =>
579
+ S.Struct({
580
+ projectId: S.String.pipe(T.Label()),
581
+ regionId: GetLogsInstanceRequestRegionId.pipe(T.Label()),
582
+ instanceId: S.String.pipe(T.Label()),
583
+ }).pipe(
584
+ T.Http({
585
+ method: "GET",
586
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
587
+ code: 200,
588
+ baseUrl: "https://logs.api.stackit.cloud",
589
+ }),
590
+ ),
591
+ ).annotate({
592
+ identifier: "GetLogsInstanceRequest",
593
+ }) as any as S.Schema<GetLogsInstanceRequest>;
594
+
595
+ export type ListAccessPoliciesRequestRegionId = "eu01" | "eu02";
596
+ export const ListAccessPoliciesRequestRegionId = /*@__PURE__*/ S.String;
597
+
598
+ export interface ListAccessPoliciesRequest {
599
+ /** The STACKIT portal project UUID the resource is located in. */
600
+ projectId: string;
601
+ /** The STACKIT region name the resource is located in. */
602
+ regionId: ListAccessPoliciesRequestRegionId | (string & {});
603
+ /** The Logs Instance UUID. */
604
+ instanceId: string;
605
+ }
606
+ export const ListAccessPoliciesRequest = /*@__PURE__*/ S.suspend(() =>
607
+ S.Struct({
608
+ projectId: S.String.pipe(T.Label()),
609
+ regionId: ListAccessPoliciesRequestRegionId.pipe(T.Label()),
610
+ instanceId: S.String.pipe(T.Label()),
611
+ }).pipe(
612
+ T.Http({
613
+ method: "GET",
614
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-policies",
615
+ code: 200,
616
+ baseUrl: "https://logs.api.stackit.cloud",
617
+ }),
618
+ ),
619
+ ).annotate({
620
+ identifier: "ListAccessPoliciesRequest",
621
+ }) as any as S.Schema<ListAccessPoliciesRequest>;
622
+
623
+ export type ListAccessTokensRequestRegionId = "eu01" | "eu02";
624
+ export const ListAccessTokensRequestRegionId = /*@__PURE__*/ S.String;
625
+
626
+ export interface ListAccessTokensRequest {
627
+ /** The STACKIT portal project UUID the resource is located in. */
628
+ projectId: string;
629
+ /** The STACKIT region name the resource is located in. */
630
+ regionId: ListAccessTokensRequestRegionId | (string & {});
631
+ /** The Logs Instance UUID. */
632
+ instanceId: string;
633
+ }
634
+ export const ListAccessTokensRequest = /*@__PURE__*/ S.suspend(() =>
635
+ S.Struct({
636
+ projectId: S.String.pipe(T.Label()),
637
+ regionId: ListAccessTokensRequestRegionId.pipe(T.Label()),
638
+ instanceId: S.String.pipe(T.Label()),
639
+ }).pipe(
640
+ T.Http({
641
+ method: "GET",
642
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens",
643
+ code: 200,
644
+ baseUrl: "https://logs.api.stackit.cloud",
645
+ }),
646
+ ),
647
+ ).annotate({
648
+ identifier: "ListAccessTokensRequest",
649
+ }) as any as S.Schema<ListAccessTokensRequest>;
650
+
651
+ export type ListLogsInstancesRequestRegionId = "eu01" | "eu02";
652
+ export const ListLogsInstancesRequestRegionId = /*@__PURE__*/ S.String;
653
+
654
+ export interface ListLogsInstancesRequest {
655
+ /** The STACKIT portal project UUID the resource is located in. */
656
+ projectId: string;
657
+ /** The STACKIT region name the resource is located in. */
658
+ regionId: ListLogsInstancesRequestRegionId | (string & {});
659
+ }
660
+ export const ListLogsInstancesRequest = /*@__PURE__*/ S.suspend(() =>
661
+ S.Struct({
662
+ projectId: S.String.pipe(T.Label()),
663
+ regionId: ListLogsInstancesRequestRegionId.pipe(T.Label()),
664
+ }).pipe(
665
+ T.Http({
666
+ method: "GET",
667
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances",
668
+ code: 200,
669
+ baseUrl: "https://logs.api.stackit.cloud",
670
+ }),
671
+ ),
672
+ ).annotate({
673
+ identifier: "ListLogsInstancesRequest",
674
+ }) as any as S.Schema<ListLogsInstancesRequest>;
675
+
676
+ export type LogsInstancesListInstancesList = Array<LogsInstance>;
677
+ export const LogsInstancesListInstancesList = /*@__PURE__*/ S.Array(
678
+ LogsInstance,
679
+ ) as any as S.Schema<LogsInstancesListInstancesList>;
680
+
681
+ export interface LogsInstancesList {
682
+ instances: LogsInstancesListInstancesList;
683
+ }
684
+ export const LogsInstancesList = /*@__PURE__*/ S.suspend(() =>
685
+ S.Struct({
686
+ instances: LogsInstancesListInstancesList,
687
+ }),
688
+ ).annotate({
689
+ identifier: "LogsInstancesList",
690
+ }) as any as S.Schema<LogsInstancesList>;
691
+
692
+ export type UpdateAccessPolicyRequestRegionId = "eu01" | "eu02";
693
+ export const UpdateAccessPolicyRequestRegionId = /*@__PURE__*/ S.String;
694
+
695
+ export interface UpdateAccessPolicyRequest {
696
+ /** The STACKIT portal project UUID the resource is located in. */
697
+ projectId: string;
698
+ /** The STACKIT region name the resource is located in. */
699
+ regionId: UpdateAccessPolicyRequestRegionId | (string & {});
700
+ /** The Logs Instance UUID. */
701
+ instanceId: string;
702
+ /** The access policy unique id. */
703
+ pId: string;
704
+ /** The updated description of the access policy. If not present will be ignored in update. */
705
+ description?: string | null;
706
+ permissions?: Permissions;
707
+ }
708
+ export const UpdateAccessPolicyRequest = /*@__PURE__*/ S.suspend(() =>
709
+ S.Struct({
710
+ projectId: S.String.pipe(T.Label()),
711
+ regionId: UpdateAccessPolicyRequestRegionId.pipe(T.Label()),
712
+ instanceId: S.String.pipe(T.Label()),
713
+ pId: S.String.pipe(T.Label()),
714
+ description: S.optional(S.NullOr(S.String)),
715
+ permissions: S.optional(Permissions),
716
+ }).pipe(
717
+ T.Http({
718
+ method: "PATCH",
719
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-policies/{pId}",
720
+ code: 200,
721
+ baseUrl: "https://logs.api.stackit.cloud",
722
+ }),
723
+ ),
724
+ ).annotate({
725
+ identifier: "UpdateAccessPolicyRequest",
726
+ }) as any as S.Schema<UpdateAccessPolicyRequest>;
727
+
728
+ export type UpdateAccessTokenRequestRegionId = "eu01" | "eu02";
729
+ export const UpdateAccessTokenRequestRegionId = /*@__PURE__*/ S.String;
730
+
731
+ export interface UpdateAccessTokenRequest {
732
+ /** The STACKIT portal project UUID the resource is located in. */
733
+ projectId: string;
734
+ /** The STACKIT region name the resource is located in. */
735
+ regionId: UpdateAccessTokenRequestRegionId | (string & {});
736
+ /** The Logs Instance UUID. */
737
+ instanceId: string;
738
+ /** The access token UUID. */
739
+ tId: string;
740
+ /** The description of the access token. */
741
+ description?: string;
742
+ /** The displayed name of the access token. */
743
+ displayName?: string;
744
+ }
745
+ export const UpdateAccessTokenRequest = /*@__PURE__*/ S.suspend(() =>
746
+ S.Struct({
747
+ projectId: S.String.pipe(T.Label()),
748
+ regionId: UpdateAccessTokenRequestRegionId.pipe(T.Label()),
749
+ instanceId: S.String.pipe(T.Label()),
750
+ tId: S.String.pipe(T.Label()),
751
+ description: S.optional(S.String),
752
+ displayName: S.optional(S.String),
753
+ }).pipe(
754
+ T.Http({
755
+ method: "PUT",
756
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}/access-tokens/{tId}",
757
+ code: 200,
758
+ baseUrl: "https://logs.api.stackit.cloud",
759
+ }),
760
+ ),
761
+ ).annotate({
762
+ identifier: "UpdateAccessTokenRequest",
763
+ }) as any as S.Schema<UpdateAccessTokenRequest>;
764
+
765
+ export interface UpdateAccessTokenResponse {}
766
+ export const UpdateAccessTokenResponse = /*@__PURE__*/ S.suspend(() =>
767
+ S.Struct({}),
768
+ ).annotate({
769
+ identifier: "UpdateAccessTokenResponse",
770
+ }) as any as S.Schema<UpdateAccessTokenResponse>;
771
+
772
+ export type UpdateLogsInstanceRequestRegionId = "eu01" | "eu02";
773
+ export const UpdateLogsInstanceRequestRegionId = /*@__PURE__*/ S.String;
774
+
775
+ /** The access control list for the Logs instance. */
776
+ export type UpdateLogsInstanceRequestAclList = Array<string>;
777
+ export const UpdateLogsInstanceRequestAclList = /*@__PURE__*/ S.Array(
778
+ S.String,
779
+ ) as any as S.Schema<UpdateLogsInstanceRequestAclList>;
780
+
781
+ export interface UpdateLogsInstanceRequest {
782
+ /** The STACKIT portal project UUID the resource is located in. */
783
+ projectId: string;
784
+ /** The STACKIT region name the resource is located in. */
785
+ regionId: UpdateLogsInstanceRequestRegionId | (string & {});
786
+ /** The Logs Instance UUID. */
787
+ instanceId: string;
788
+ /** The access control list for the Logs instance. */
789
+ acl?: UpdateLogsInstanceRequestAclList;
790
+ /** The description of the Logs instance. */
791
+ description?: string;
792
+ /** The displayed name to distinguish multiple Logs instances. */
793
+ displayName?: string;
794
+ /** The log retention time in days. */
795
+ retentionDays?: number;
796
+ }
797
+ export const UpdateLogsInstanceRequest = /*@__PURE__*/ S.suspend(() =>
798
+ S.Struct({
799
+ projectId: S.String.pipe(T.Label()),
800
+ regionId: UpdateLogsInstanceRequestRegionId.pipe(T.Label()),
801
+ instanceId: S.String.pipe(T.Label()),
802
+ acl: S.optional(UpdateLogsInstanceRequestAclList),
803
+ description: S.optional(S.String),
804
+ displayName: S.optional(S.String),
805
+ retentionDays: S.optional(S.Number),
806
+ }).pipe(
807
+ T.Http({
808
+ method: "PUT",
809
+ uri: "/v1/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
810
+ code: 200,
811
+ baseUrl: "https://logs.api.stackit.cloud",
812
+ }),
813
+ ),
814
+ ).annotate({
815
+ identifier: "UpdateLogsInstanceRequest",
816
+ }) as any as S.Schema<UpdateLogsInstanceRequest>;
817
+
818
+ export type CreateAccessPolicyError =
819
+ | BadRequest
820
+ | NotFound
821
+ | Conflict
822
+ | StackitOpError;
823
+ /** Create Access Policy Create a new access policy for Logs instance */
824
+ export const createAccessPolicy: API.OperationMethod<
825
+ CreateAccessPolicyRequest,
826
+ AccessPolicy,
827
+ CreateAccessPolicyError,
828
+ StackitOpContext
829
+ > = /*@__PURE__*/ API.make(() => ({
830
+ input: CreateAccessPolicyRequest,
831
+ output: AccessPolicy,
832
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
833
+ protocol: StackitProtocol,
834
+ retry: Retry.Retry,
835
+ }));
836
+
837
+ export type CreateAccessTokenError =
838
+ | BadRequest
839
+ | NotFound
840
+ | Conflict
841
+ | StackitOpError;
842
+ /** Create Access Token Create a new Logs instance access token */
843
+ export const createAccessToken: API.OperationMethod<
844
+ CreateAccessTokenRequest,
845
+ AccessToken,
846
+ CreateAccessTokenError,
847
+ StackitOpContext
848
+ > = /*@__PURE__*/ API.make(() => ({
849
+ input: CreateAccessTokenRequest,
850
+ output: AccessToken,
851
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
852
+ protocol: StackitProtocol,
853
+ retry: Retry.Retry,
854
+ }));
855
+
856
+ export type CreateLogsInstanceError =
857
+ | BadRequest
858
+ | NotFound
859
+ | Conflict
860
+ | StackitOpError;
861
+ /** Create Logs instance Creates a new Logs instance within the project. */
862
+ export const createLogsInstance: API.OperationMethod<
863
+ CreateLogsInstanceRequest,
864
+ LogsInstance,
865
+ CreateLogsInstanceError,
866
+ StackitOpContext
867
+ > = /*@__PURE__*/ API.make(() => ({
868
+ input: CreateLogsInstanceRequest,
869
+ output: LogsInstance,
870
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
871
+ protocol: StackitProtocol,
872
+ retry: Retry.Retry,
873
+ }));
874
+
875
+ export type DeleteAccessPolicyError =
876
+ | BadRequest
877
+ | NotFound
878
+ | Conflict
879
+ | StackitOpError;
880
+ /** Delete Access Policy Deletes a Logs instance access policy */
881
+ export const deleteAccessPolicy: API.OperationMethod<
882
+ DeleteAccessPolicyRequest,
883
+ DeleteAccessPolicyResponse,
884
+ DeleteAccessPolicyError,
885
+ StackitOpContext
886
+ > = /*@__PURE__*/ API.make(() => ({
887
+ input: DeleteAccessPolicyRequest,
888
+ output: DeleteAccessPolicyResponse,
889
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
890
+ protocol: StackitProtocol,
891
+ retry: Retry.Retry,
892
+ }));
893
+
894
+ export type DeleteAccessTokenError =
895
+ | BadRequest
896
+ | NotFound
897
+ | Conflict
898
+ | StackitOpError;
899
+ /** Delete Access Token Deletes a Logs instance access token */
900
+ export const deleteAccessToken: API.OperationMethod<
901
+ DeleteAccessTokenRequest,
902
+ DeleteAccessTokenResponse,
903
+ DeleteAccessTokenError,
904
+ StackitOpContext
905
+ > = /*@__PURE__*/ API.make(() => ({
906
+ input: DeleteAccessTokenRequest,
907
+ output: DeleteAccessTokenResponse,
908
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
909
+ protocol: StackitProtocol,
910
+ retry: Retry.Retry,
911
+ }));
912
+
913
+ export type DeleteAllAccessPoliciesError =
914
+ | BadRequest
915
+ | NotFound
916
+ | Conflict
917
+ | StackitOpError;
918
+ /** Delete All Access Policies Deletes all access policies for a Logs instance */
919
+ export const deleteAllAccessPolicies: API.OperationMethod<
920
+ DeleteAllAccessPoliciesRequest,
921
+ AccessPolicyList,
922
+ DeleteAllAccessPoliciesError,
923
+ StackitOpContext
924
+ > = /*@__PURE__*/ API.make(() => ({
925
+ input: DeleteAllAccessPoliciesRequest,
926
+ output: AccessPolicyList,
927
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
928
+ protocol: StackitProtocol,
929
+ retry: Retry.Retry,
930
+ }));
931
+
932
+ export type DeleteAllAccessTokensError =
933
+ | BadRequest
934
+ | NotFound
935
+ | Conflict
936
+ | StackitOpError;
937
+ /** Delete All Access Tokens Deletes all access tokens available for a Logs instance */
938
+ export const deleteAllAccessTokens: API.OperationMethod<
939
+ DeleteAllAccessTokensRequest,
940
+ AccessTokenList,
941
+ DeleteAllAccessTokensError,
942
+ StackitOpContext
943
+ > = /*@__PURE__*/ API.make(() => ({
944
+ input: DeleteAllAccessTokensRequest,
945
+ output: AccessTokenList,
946
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
947
+ protocol: StackitProtocol,
948
+ retry: Retry.Retry,
949
+ }));
950
+
951
+ export type DeleteAllExpiredAccessTokensError =
952
+ | BadRequest
953
+ | NotFound
954
+ | Conflict
955
+ | StackitOpError;
956
+ /** Deletes all expired access tokens Deletes all expired access tokens */
957
+ export const deleteAllExpiredAccessTokens: API.OperationMethod<
958
+ DeleteAllExpiredAccessTokensRequest,
959
+ AccessTokenList,
960
+ DeleteAllExpiredAccessTokensError,
961
+ StackitOpContext
962
+ > = /*@__PURE__*/ API.make(() => ({
963
+ input: DeleteAllExpiredAccessTokensRequest,
964
+ output: AccessTokenList,
965
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
966
+ protocol: StackitProtocol,
967
+ retry: Retry.Retry,
968
+ }));
969
+
970
+ export type DeleteLogsInstanceError =
971
+ | BadRequest
972
+ | NotFound
973
+ | Conflict
974
+ | StackitOpError;
975
+ /** Delete Logs instance Deletes the given Logs instance. */
976
+ export const deleteLogsInstance: API.OperationMethod<
977
+ DeleteLogsInstanceRequest,
978
+ DeleteLogsInstanceResponse,
979
+ DeleteLogsInstanceError,
980
+ StackitOpContext
981
+ > = /*@__PURE__*/ API.make(() => ({
982
+ input: DeleteLogsInstanceRequest,
983
+ output: DeleteLogsInstanceResponse,
984
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
985
+ protocol: StackitProtocol,
986
+ retry: Retry.Retry,
987
+ }));
988
+
989
+ export type GetAccessPolicyError =
990
+ | BadRequest
991
+ | NotFound
992
+ | Conflict
993
+ | StackitOpError;
994
+ /** Get Access Policy Get the information of the given access policy. */
995
+ export const getAccessPolicy: API.OperationMethod<
996
+ GetAccessPolicyRequest,
997
+ AccessPolicy,
998
+ GetAccessPolicyError,
999
+ StackitOpContext
1000
+ > = /*@__PURE__*/ API.make(() => ({
1001
+ input: GetAccessPolicyRequest,
1002
+ output: AccessPolicy,
1003
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1004
+ protocol: StackitProtocol,
1005
+ retry: Retry.Retry,
1006
+ }));
1007
+
1008
+ export type GetAccessTokenError =
1009
+ | BadRequest
1010
+ | NotFound
1011
+ | Conflict
1012
+ | StackitOpError;
1013
+ /** Get Access Token Get the information of the given access token. */
1014
+ export const getAccessToken: API.OperationMethod<
1015
+ GetAccessTokenRequest,
1016
+ AccessToken,
1017
+ GetAccessTokenError,
1018
+ StackitOpContext
1019
+ > = /*@__PURE__*/ API.make(() => ({
1020
+ input: GetAccessTokenRequest,
1021
+ output: AccessToken,
1022
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1023
+ protocol: StackitProtocol,
1024
+ retry: Retry.Retry,
1025
+ }));
1026
+
1027
+ export type GetLogsInstanceError = BadRequest | NotFound | StackitOpError;
1028
+ /** Get Logs Instance Returns the details for the given Logs instance. */
1029
+ export const getLogsInstance: API.OperationMethod<
1030
+ GetLogsInstanceRequest,
1031
+ LogsInstance,
1032
+ GetLogsInstanceError,
1033
+ StackitOpContext
1034
+ > = /*@__PURE__*/ API.make(() => ({
1035
+ input: GetLogsInstanceRequest,
1036
+ output: LogsInstance,
1037
+ errors: [BadRequest, NotFound, UnknownStackitError],
1038
+ protocol: StackitProtocol,
1039
+ retry: Retry.Retry,
1040
+ }));
1041
+
1042
+ export type ListAccessPoliciesError =
1043
+ | BadRequest
1044
+ | NotFound
1045
+ | Conflict
1046
+ | StackitOpError;
1047
+ /** List Access Policies Returns a list of access policies created for a Logs instance */
1048
+ export const listAccessPolicies: API.OperationMethod<
1049
+ ListAccessPoliciesRequest,
1050
+ AccessPolicyList,
1051
+ ListAccessPoliciesError,
1052
+ StackitOpContext
1053
+ > = /*@__PURE__*/ API.make(() => ({
1054
+ input: ListAccessPoliciesRequest,
1055
+ output: AccessPolicyList,
1056
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1057
+ protocol: StackitProtocol,
1058
+ retry: Retry.Retry,
1059
+ }));
1060
+
1061
+ export type ListAccessTokensError =
1062
+ | BadRequest
1063
+ | NotFound
1064
+ | Conflict
1065
+ | StackitOpError;
1066
+ /** List Access Tokens Returns a list of access tokens created for a Logs instance */
1067
+ export const listAccessTokens: API.OperationMethod<
1068
+ ListAccessTokensRequest,
1069
+ AccessTokenList,
1070
+ ListAccessTokensError,
1071
+ StackitOpContext
1072
+ > = /*@__PURE__*/ API.make(() => ({
1073
+ input: ListAccessTokensRequest,
1074
+ output: AccessTokenList,
1075
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1076
+ protocol: StackitProtocol,
1077
+ retry: Retry.Retry,
1078
+ }));
1079
+
1080
+ export type ListLogsInstancesError = BadRequest | StackitOpError;
1081
+ /** List Logs instances Returns a list of all Logs instances within the project. */
1082
+ export const listLogsInstances: API.OperationMethod<
1083
+ ListLogsInstancesRequest,
1084
+ LogsInstancesList,
1085
+ ListLogsInstancesError,
1086
+ StackitOpContext
1087
+ > = /*@__PURE__*/ API.make(() => ({
1088
+ input: ListLogsInstancesRequest,
1089
+ output: LogsInstancesList,
1090
+ errors: [BadRequest, UnknownStackitError],
1091
+ protocol: StackitProtocol,
1092
+ retry: Retry.Retry,
1093
+ }));
1094
+
1095
+ export type UpdateAccessPolicyError =
1096
+ | BadRequest
1097
+ | NotFound
1098
+ | Conflict
1099
+ | StackitOpError;
1100
+ /** Update Access Policy Updates the given access policy. */
1101
+ export const updateAccessPolicy: API.OperationMethod<
1102
+ UpdateAccessPolicyRequest,
1103
+ AccessPolicy,
1104
+ UpdateAccessPolicyError,
1105
+ StackitOpContext
1106
+ > = /*@__PURE__*/ API.make(() => ({
1107
+ input: UpdateAccessPolicyRequest,
1108
+ output: AccessPolicy,
1109
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1110
+ protocol: StackitProtocol,
1111
+ retry: Retry.Retry,
1112
+ }));
1113
+
1114
+ export type UpdateAccessTokenError =
1115
+ | BadRequest
1116
+ | NotFound
1117
+ | Conflict
1118
+ | StackitOpError;
1119
+ /** Update Access Token Updates the given access token. */
1120
+ export const updateAccessToken: API.OperationMethod<
1121
+ UpdateAccessTokenRequest,
1122
+ UpdateAccessTokenResponse,
1123
+ UpdateAccessTokenError,
1124
+ StackitOpContext
1125
+ > = /*@__PURE__*/ API.make(() => ({
1126
+ input: UpdateAccessTokenRequest,
1127
+ output: UpdateAccessTokenResponse,
1128
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1129
+ protocol: StackitProtocol,
1130
+ retry: Retry.Retry,
1131
+ }));
1132
+
1133
+ export type UpdateLogsInstanceError =
1134
+ | BadRequest
1135
+ | NotFound
1136
+ | Conflict
1137
+ | StackitOpError;
1138
+ /** Update Logs instance Updates the given Logs instance. */
1139
+ export const updateLogsInstance: API.OperationMethod<
1140
+ UpdateLogsInstanceRequest,
1141
+ LogsInstance,
1142
+ UpdateLogsInstanceError,
1143
+ StackitOpContext
1144
+ > = /*@__PURE__*/ API.make(() => ({
1145
+ input: UpdateLogsInstanceRequest,
1146
+ output: LogsInstance,
1147
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1148
+ protocol: StackitProtocol,
1149
+ retry: Retry.Retry,
1150
+ }));