@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.14

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