@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,1266 @@
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 interface CreateBackupRequest {
41
+ /** Project id on which user has permissions */
42
+ projectId: string;
43
+ /** region in which the project resides */
44
+ regionId: string;
45
+ /** Instance id */
46
+ instanceId: string;
47
+ }
48
+ export const CreateBackupRequest = /*@__PURE__*/ S.suspend(() =>
49
+ S.Struct({
50
+ projectId: S.String.pipe(T.Label()),
51
+ regionId: S.String.pipe(T.Label()),
52
+ instanceId: S.String.pipe(T.Label()),
53
+ }).pipe(
54
+ T.Http({
55
+ method: "POST",
56
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
57
+ code: 200,
58
+ baseUrl: "https://valkey.api.stackit.cloud",
59
+ }),
60
+ ),
61
+ ).annotate({ identifier: "CreateBackupRequest" }) as any as S.Schema<CreateBackupRequest>;
62
+
63
+ export interface CreateBackupResponseItem {
64
+ id: number;
65
+ message: string;
66
+ }
67
+ export const CreateBackupResponseItem = /*@__PURE__*/ S.suspend(() =>
68
+ S.Struct({
69
+ id: S.Number,
70
+ message: S.String,
71
+ }),
72
+ ).annotate({ identifier: "CreateBackupResponseItem" }) as any as S.Schema<CreateBackupResponseItem>;
73
+
74
+ export interface CreateCredentialsRequest {
75
+ /** Project id on which user has permissions */
76
+ projectId: string;
77
+ /** region in which the project resides */
78
+ regionId: string;
79
+ /** Instance id */
80
+ instanceId: string;
81
+ parameters?: unknown;
82
+ }
83
+ export const CreateCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
84
+ S.Struct({
85
+ projectId: S.String.pipe(T.Label()),
86
+ regionId: S.String.pipe(T.Label()),
87
+ instanceId: S.String.pipe(T.Label()),
88
+ parameters: S.optional(S.Unknown),
89
+ }).pipe(
90
+ T.Http({
91
+ method: "POST",
92
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
93
+ code: 200,
94
+ baseUrl: "https://valkey.api.stackit.cloud",
95
+ }),
96
+ ),
97
+ ).annotate({ identifier: "CreateCredentialsRequest" }) as any as S.Schema<CreateCredentialsRequest>;
98
+
99
+ export type CredentialsHostsList = Array<string>;
100
+ export const CredentialsHostsList = /*@__PURE__*/ S.Array(
101
+ S.String,
102
+ ) as any as S.Schema<CredentialsHostsList>;
103
+
104
+ export interface Credentials {
105
+ host: string;
106
+ hosts?: CredentialsHostsList;
107
+ load_balanced_host?: string;
108
+ password: string | Redacted.Redacted<string>;
109
+ port?: number;
110
+ uri?: string;
111
+ username: string;
112
+ }
113
+ export const Credentials = /*@__PURE__*/ S.suspend(() =>
114
+ S.Struct({
115
+ host: S.String,
116
+ hosts: S.optional(CredentialsHostsList),
117
+ load_balanced_host: S.optional(S.String),
118
+ password: S.String.pipe(T.SensitiveValue({})),
119
+ port: S.optional(S.Number),
120
+ uri: S.optional(S.String),
121
+ username: S.String,
122
+ }),
123
+ ).annotate({ identifier: "Credentials" }) as any as S.Schema<Credentials>;
124
+
125
+ export interface RawCredentials {
126
+ credentials: Credentials;
127
+ }
128
+ export const RawCredentials = /*@__PURE__*/ S.suspend(() =>
129
+ S.Struct({
130
+ credentials: Credentials,
131
+ }),
132
+ ).annotate({ identifier: "RawCredentials" }) as any as S.Schema<RawCredentials>;
133
+
134
+ export interface CredentialsResponse {
135
+ id: string;
136
+ raw?: RawCredentials;
137
+ uri: string;
138
+ }
139
+ export const CredentialsResponse = /*@__PURE__*/ S.suspend(() =>
140
+ S.Struct({
141
+ id: S.String,
142
+ raw: S.optional(RawCredentials),
143
+ uri: S.String,
144
+ }),
145
+ ).annotate({ identifier: "CredentialsResponse" }) as any as S.Schema<CredentialsResponse>;
146
+
147
+ export type InstanceParametersLazyfreeLazyEviction = "yes" | "no";
148
+ export const InstanceParametersLazyfreeLazyEviction = S.String;
149
+
150
+ export type InstanceParametersLazyfreeLazyExpire = "yes" | "no";
151
+ export const InstanceParametersLazyfreeLazyExpire = S.String;
152
+
153
+ export type InstanceParametersMaxmemoryPolicy =
154
+ | "volatile-lru"
155
+ | "allkeys-lru"
156
+ | "volatile-random"
157
+ | "allkeys-random"
158
+ | "volatile-ttl"
159
+ | "noeviction";
160
+ export const InstanceParametersMaxmemoryPolicy = S.String;
161
+
162
+ export type InstanceParametersSyslogList = Array<string>;
163
+ export const InstanceParametersSyslogList = /*@__PURE__*/ S.Array(
164
+ S.String,
165
+ ) as any as S.Schema<InstanceParametersSyslogList>;
166
+
167
+ export interface InstanceParameters {
168
+ /** The unit is milliseconds. */
169
+ down_after_milliseconds?: number;
170
+ enable_monitoring?: boolean;
171
+ /** The unit is milliseconds. */
172
+ failover_timeout?: number;
173
+ /** If you want to monitor your service with Graphite, you can set the custom parameter graphite. It expects the host and port where the Graphite metrics should be sent to. */
174
+ graphite?: string;
175
+ lazyfree_lazy_eviction?: InstanceParametersLazyfreeLazyEviction | (string & {});
176
+ lazyfree_lazy_expire?: InstanceParametersLazyfreeLazyExpire | (string & {});
177
+ lua_time_limit?: number;
178
+ /** This component monitors ephemeral and persistent disk usage. If one of these disk usages reaches the default configured threshold of 80%, the a9s Parachute stops all processes on that node. */
179
+ max_disk_threshold?: number;
180
+ maxclients?: number;
181
+ maxmemory_policy?: InstanceParametersMaxmemoryPolicy | (string & {});
182
+ maxmemory_samples?: number;
183
+ /** Frequency of metrics being emitted in seconds */
184
+ metrics_frequency?: number;
185
+ /** Depending on your graphite provider, you might need to prefix the metrics with a certain value, like an API key for example. */
186
+ metrics_prefix?: string;
187
+ /** The amount of connected replicas that are required for the primary to accept write operations. It can be set to 0 to disable it. Should not be greater than the number of nodes (e.g. 1 or 3). */
188
+ min_replicas_to_write?: number;
189
+ /** The unit is seconds. */
190
+ min_replicas_max_lag?: number;
191
+ monitoring_instance_id?: string;
192
+ /** The allowed value must include the following characters only: [K,E,g,$,l,s,h,z,x,e,A,t] */
193
+ notify_keyspace_events?: string;
194
+ /** Set the replication backlog size for the cluster. */
195
+ repl_backlog_size?: string;
196
+ /** Comma separated list of IP networks in CIDR notation which are allowed to access this instance. */
197
+ sgw_acl?: string;
198
+ /** This setting must follow the original Redis configuration for RDB. */
199
+ snapshot?: string;
200
+ syslog?: InstanceParametersSyslogList;
201
+ }
202
+ export const InstanceParameters = /*@__PURE__*/ S.suspend(() =>
203
+ S.Struct({
204
+ down_after_milliseconds: S.optional(S.Number.pipe(T.Body("down-after-milliseconds"))),
205
+ enable_monitoring: S.optional(S.Boolean),
206
+ failover_timeout: S.optional(S.Number.pipe(T.Body("failover-timeout"))),
207
+ graphite: S.optional(S.String),
208
+ lazyfree_lazy_eviction: S.optional(
209
+ InstanceParametersLazyfreeLazyEviction.pipe(T.Body("lazyfree-lazy-eviction")),
210
+ ),
211
+ lazyfree_lazy_expire: S.optional(
212
+ InstanceParametersLazyfreeLazyExpire.pipe(T.Body("lazyfree-lazy-expire")),
213
+ ),
214
+ lua_time_limit: S.optional(S.Number.pipe(T.Body("lua-time-limit"))),
215
+ max_disk_threshold: S.optional(S.Number),
216
+ maxclients: S.optional(S.Number),
217
+ maxmemory_policy: S.optional(
218
+ InstanceParametersMaxmemoryPolicy.pipe(T.Body("maxmemory-policy")),
219
+ ),
220
+ maxmemory_samples: S.optional(S.Number.pipe(T.Body("maxmemory-samples"))),
221
+ metrics_frequency: S.optional(S.Number),
222
+ metrics_prefix: S.optional(S.String),
223
+ min_replicas_to_write: S.optional(S.Number.pipe(T.Body("min-replicas-to-write"))),
224
+ min_replicas_max_lag: S.optional(S.Number),
225
+ monitoring_instance_id: S.optional(S.String),
226
+ notify_keyspace_events: S.optional(S.String.pipe(T.Body("notify-keyspace-events"))),
227
+ repl_backlog_size: S.optional(S.String.pipe(T.Body("repl-backlog-size"))),
228
+ sgw_acl: S.optional(S.String),
229
+ snapshot: S.optional(S.String),
230
+ syslog: S.optional(InstanceParametersSyslogList),
231
+ }),
232
+ ).annotate({ identifier: "InstanceParameters" }) as any as S.Schema<InstanceParameters>;
233
+
234
+ export interface CreateInstanceRequest {
235
+ /** Project id on which user has permissions */
236
+ projectId: string;
237
+ /** region in which the project resides */
238
+ regionId: string;
239
+ instanceName: string;
240
+ parameters?: InstanceParameters;
241
+ planId: string;
242
+ }
243
+ export const CreateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
244
+ S.Struct({
245
+ projectId: S.String.pipe(T.Label()),
246
+ regionId: S.String.pipe(T.Label()),
247
+ instanceName: S.String,
248
+ parameters: S.optional(InstanceParameters),
249
+ planId: S.String,
250
+ }).pipe(
251
+ T.Http({
252
+ method: "POST",
253
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
254
+ code: 200,
255
+ baseUrl: "https://valkey.api.stackit.cloud",
256
+ }),
257
+ ),
258
+ ).annotate({ identifier: "CreateInstanceRequest" }) as any as S.Schema<CreateInstanceRequest>;
259
+
260
+ export interface CreateInstanceResponse {
261
+ instanceId: string;
262
+ }
263
+ export const CreateInstanceResponse = /*@__PURE__*/ S.suspend(() =>
264
+ S.Struct({
265
+ instanceId: S.String,
266
+ }),
267
+ ).annotate({ identifier: "CreateInstanceResponse" }) as any as S.Schema<CreateInstanceResponse>;
268
+
269
+ export interface DeleteCredentialsRequest {
270
+ /** Project id on which user has permissions */
271
+ projectId: string;
272
+ /** region in which the project resides */
273
+ regionId: string;
274
+ /** Instance id */
275
+ instanceId: string;
276
+ /** Id of the credentials being deleted */
277
+ credentialsId: string;
278
+ }
279
+ export const DeleteCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
280
+ S.Struct({
281
+ projectId: S.String.pipe(T.Label()),
282
+ regionId: S.String.pipe(T.Label()),
283
+ instanceId: S.String.pipe(T.Label()),
284
+ credentialsId: S.String.pipe(T.Label()),
285
+ }).pipe(
286
+ T.Http({
287
+ method: "DELETE",
288
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
289
+ code: 200,
290
+ baseUrl: "https://valkey.api.stackit.cloud",
291
+ }),
292
+ ),
293
+ ).annotate({ identifier: "DeleteCredentialsRequest" }) as any as S.Schema<DeleteCredentialsRequest>;
294
+
295
+ export interface DeleteCredentialsResponse {}
296
+ export const DeleteCredentialsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
297
+ identifier: "DeleteCredentialsResponse",
298
+ }) as any as S.Schema<DeleteCredentialsResponse>;
299
+
300
+ export interface DeleteInstanceRequest {
301
+ /** Project id on which user has permissions */
302
+ projectId: string;
303
+ /** region in which the project resides */
304
+ regionId: string;
305
+ /** Instance id */
306
+ instanceId: string;
307
+ }
308
+ export const DeleteInstanceRequest = /*@__PURE__*/ S.suspend(() =>
309
+ S.Struct({
310
+ projectId: S.String.pipe(T.Label()),
311
+ regionId: S.String.pipe(T.Label()),
312
+ instanceId: S.String.pipe(T.Label()),
313
+ }).pipe(
314
+ T.Http({
315
+ method: "DELETE",
316
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
317
+ code: 200,
318
+ baseUrl: "https://valkey.api.stackit.cloud",
319
+ }),
320
+ ),
321
+ ).annotate({ identifier: "DeleteInstanceRequest" }) as any as S.Schema<DeleteInstanceRequest>;
322
+
323
+ export interface DeleteInstanceResponse {}
324
+ export const DeleteInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
325
+ identifier: "DeleteInstanceResponse",
326
+ }) as any as S.Schema<DeleteInstanceResponse>;
327
+
328
+ export interface DownloadBackupRequest {
329
+ /** Project id on which user has permissions */
330
+ projectId: string;
331
+ /** region in which the project resides */
332
+ regionId: string;
333
+ /** Instance id */
334
+ instanceId: string;
335
+ /** Backup id */
336
+ backupId: number;
337
+ }
338
+ export const DownloadBackupRequest = /*@__PURE__*/ S.suspend(() =>
339
+ S.Struct({
340
+ projectId: S.String.pipe(T.Label()),
341
+ regionId: S.String.pipe(T.Label()),
342
+ instanceId: S.String.pipe(T.Label()),
343
+ backupId: S.Number.pipe(T.Label()),
344
+ }).pipe(
345
+ T.Http({
346
+ method: "GET",
347
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/download",
348
+ code: 200,
349
+ baseUrl: "https://valkey.api.stackit.cloud",
350
+ }),
351
+ ),
352
+ ).annotate({ identifier: "DownloadBackupRequest" }) as any as S.Schema<DownloadBackupRequest>;
353
+
354
+ export interface DownloadBackupResponse {}
355
+ export const DownloadBackupResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
356
+ identifier: "DownloadBackupResponse",
357
+ }) as any as S.Schema<DownloadBackupResponse>;
358
+
359
+ export interface GetCredentialsRequest {
360
+ /** Project id on which user has permissions */
361
+ projectId: string;
362
+ /** region in which the project resides */
363
+ regionId: string;
364
+ /** Instance id */
365
+ instanceId: string;
366
+ /** Credentials id of credentials to fetch */
367
+ credentialsId: string;
368
+ }
369
+ export const GetCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
370
+ S.Struct({
371
+ projectId: S.String.pipe(T.Label()),
372
+ regionId: S.String.pipe(T.Label()),
373
+ instanceId: S.String.pipe(T.Label()),
374
+ credentialsId: S.String.pipe(T.Label()),
375
+ }).pipe(
376
+ T.Http({
377
+ method: "GET",
378
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
379
+ code: 200,
380
+ baseUrl: "https://valkey.api.stackit.cloud",
381
+ }),
382
+ ),
383
+ ).annotate({ identifier: "GetCredentialsRequest" }) as any as S.Schema<GetCredentialsRequest>;
384
+
385
+ export interface GetInstanceRequest {
386
+ /** Project id on which user has permissions */
387
+ projectId: string;
388
+ /** region in which the project resides */
389
+ regionId: string;
390
+ /** Instance id */
391
+ instanceId: string;
392
+ }
393
+ export const GetInstanceRequest = /*@__PURE__*/ S.suspend(() =>
394
+ S.Struct({
395
+ projectId: S.String.pipe(T.Label()),
396
+ regionId: S.String.pipe(T.Label()),
397
+ instanceId: S.String.pipe(T.Label()),
398
+ }).pipe(
399
+ T.Http({
400
+ method: "GET",
401
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
402
+ code: 200,
403
+ baseUrl: "https://valkey.api.stackit.cloud",
404
+ }),
405
+ ),
406
+ ).annotate({ identifier: "GetInstanceRequest" }) as any as S.Schema<GetInstanceRequest>;
407
+
408
+ export type InstanceLastOperationState = "in progress" | "succeeded" | "failed";
409
+ export const InstanceLastOperationState = S.String;
410
+
411
+ export type InstanceLastOperationType = "create" | "update" | "delete";
412
+ export const InstanceLastOperationType = S.String;
413
+
414
+ export interface InstanceLastOperation {
415
+ description: string;
416
+ state: InstanceLastOperationState;
417
+ type: InstanceLastOperationType;
418
+ }
419
+ export const InstanceLastOperation = /*@__PURE__*/ S.suspend(() =>
420
+ S.Struct({
421
+ description: S.String,
422
+ state: InstanceLastOperationState,
423
+ type: InstanceLastOperationType,
424
+ }),
425
+ ).annotate({ identifier: "InstanceLastOperation" }) as any as S.Schema<InstanceLastOperation>;
426
+
427
+ export type InstanceStatus = "active" | "failed" | "stopped" | "creating" | "deleting" | "updating";
428
+ export const InstanceStatus = S.String;
429
+
430
+ export interface Instance {
431
+ cfGuid: string;
432
+ cfOrganizationGuid: string;
433
+ cfSpaceGuid: string;
434
+ dashboardUrl: string;
435
+ imageUrl: string;
436
+ instanceId?: string;
437
+ lastOperation: InstanceLastOperation;
438
+ name: string;
439
+ offeringName: string;
440
+ offeringVersion: string;
441
+ parameters: unknown;
442
+ planId: string;
443
+ planName: string;
444
+ status?: InstanceStatus;
445
+ }
446
+ export const Instance = /*@__PURE__*/ S.suspend(() =>
447
+ S.Struct({
448
+ cfGuid: S.String,
449
+ cfOrganizationGuid: S.String,
450
+ cfSpaceGuid: S.String,
451
+ dashboardUrl: S.String,
452
+ imageUrl: S.String,
453
+ instanceId: S.optional(S.String),
454
+ lastOperation: InstanceLastOperation,
455
+ name: S.String,
456
+ offeringName: S.String,
457
+ offeringVersion: S.String,
458
+ parameters: S.Unknown,
459
+ planId: S.String,
460
+ planName: S.String,
461
+ status: S.optional(InstanceStatus),
462
+ }),
463
+ ).annotate({ identifier: "Instance" }) as any as S.Schema<Instance>;
464
+
465
+ export interface GetMetricsRequest {
466
+ /** Project id on which user has permissions */
467
+ projectId: string;
468
+ /** region in which the project resides */
469
+ regionId: string;
470
+ /** Instance id */
471
+ instanceId: string;
472
+ }
473
+ export const GetMetricsRequest = /*@__PURE__*/ S.suspend(() =>
474
+ S.Struct({
475
+ projectId: S.String.pipe(T.Label()),
476
+ regionId: S.String.pipe(T.Label()),
477
+ instanceId: S.String.pipe(T.Label()),
478
+ }).pipe(
479
+ T.Http({
480
+ method: "GET",
481
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/metrics",
482
+ code: 200,
483
+ baseUrl: "https://valkey.api.stackit.cloud",
484
+ }),
485
+ ),
486
+ ).annotate({ identifier: "GetMetricsRequest" }) as any as S.Schema<GetMetricsRequest>;
487
+
488
+ export interface GetMetricsResponse {
489
+ cpuIdleTime?: number;
490
+ cpuLoadPercent: number;
491
+ cpuSystemTime?: number;
492
+ cpuUserTime?: number;
493
+ diskEphemeralTotal: number;
494
+ diskEphemeralUsed: number;
495
+ diskPersistentTotal: number;
496
+ diskPersistentUsed: number;
497
+ load1: number;
498
+ load15: number;
499
+ load5: number;
500
+ memoryTotal: number;
501
+ memoryUsed: number;
502
+ parachuteDiskEphemeralActivated: boolean;
503
+ parachuteDiskEphemeralTotal: number;
504
+ parachuteDiskEphemeralUsed: number;
505
+ parachuteDiskEphemeralUsedPercent: number;
506
+ parachuteDiskEphemeralUsedThreshold: number;
507
+ parachuteDiskPersistentActivated: boolean;
508
+ parachuteDiskPersistentTotal: number;
509
+ parachuteDiskPersistentUsed: number;
510
+ parachuteDiskPersistentUsedPercent: number;
511
+ parachuteDiskPersistentUsedThreshold: number;
512
+ }
513
+ export const GetMetricsResponse = /*@__PURE__*/ S.suspend(() =>
514
+ S.Struct({
515
+ cpuIdleTime: S.optional(S.Number),
516
+ cpuLoadPercent: S.Number,
517
+ cpuSystemTime: S.optional(S.Number),
518
+ cpuUserTime: S.optional(S.Number),
519
+ diskEphemeralTotal: S.Number,
520
+ diskEphemeralUsed: S.Number,
521
+ diskPersistentTotal: S.Number,
522
+ diskPersistentUsed: S.Number,
523
+ load1: S.Number,
524
+ load15: S.Number,
525
+ load5: S.Number,
526
+ memoryTotal: S.Number,
527
+ memoryUsed: S.Number,
528
+ parachuteDiskEphemeralActivated: S.Boolean,
529
+ parachuteDiskEphemeralTotal: S.Number,
530
+ parachuteDiskEphemeralUsed: S.Number,
531
+ parachuteDiskEphemeralUsedPercent: S.Number,
532
+ parachuteDiskEphemeralUsedThreshold: S.Number,
533
+ parachuteDiskPersistentActivated: S.Boolean,
534
+ parachuteDiskPersistentTotal: S.Number,
535
+ parachuteDiskPersistentUsed: S.Number,
536
+ parachuteDiskPersistentUsedPercent: S.Number,
537
+ parachuteDiskPersistentUsedThreshold: S.Number,
538
+ }),
539
+ ).annotate({ identifier: "GetMetricsResponse" }) as any as S.Schema<GetMetricsResponse>;
540
+
541
+ export interface ListBackupsRequest {
542
+ /** Project id on which user has permissions */
543
+ projectId: string;
544
+ /** region in which the project resides */
545
+ regionId: string;
546
+ /** Instance id */
547
+ instanceId: string;
548
+ }
549
+ export const ListBackupsRequest = /*@__PURE__*/ S.suspend(() =>
550
+ S.Struct({
551
+ projectId: S.String.pipe(T.Label()),
552
+ regionId: S.String.pipe(T.Label()),
553
+ instanceId: S.String.pipe(T.Label()),
554
+ }).pipe(
555
+ T.Http({
556
+ method: "GET",
557
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
558
+ code: 200,
559
+ baseUrl: "https://valkey.api.stackit.cloud",
560
+ }),
561
+ ),
562
+ ).annotate({ identifier: "ListBackupsRequest" }) as any as S.Schema<ListBackupsRequest>;
563
+
564
+ export interface Backup {
565
+ downloadable?: boolean;
566
+ finished_at: string;
567
+ id: number;
568
+ size?: number;
569
+ status: string;
570
+ triggered_at?: string;
571
+ }
572
+ export const Backup = /*@__PURE__*/ S.suspend(() =>
573
+ S.Struct({
574
+ downloadable: S.optional(S.Boolean),
575
+ finished_at: S.String,
576
+ id: S.Number,
577
+ size: S.optional(S.Number),
578
+ status: S.String,
579
+ triggered_at: S.optional(S.String),
580
+ }),
581
+ ).annotate({ identifier: "Backup" }) as any as S.Schema<Backup>;
582
+
583
+ export type ListBackupsResponse = Array<Backup>;
584
+ export const ListBackupsResponse = /*@__PURE__*/ S.Array(
585
+ Backup,
586
+ ) as any as S.Schema<ListBackupsResponse>;
587
+
588
+ export type ListBackupsResponse2 = ListBackupsResponse;
589
+ export const ListBackupsResponse2 = /*@__PURE__*/ S.suspend(() =>
590
+ ListBackupsResponse.pipe(T.RawResponseRoot()),
591
+ ).annotate({ identifier: "ListBackupsResponse2" }) as any as S.Schema<ListBackupsResponse2>;
592
+
593
+ export interface ListCredentialsRequest {
594
+ /** Project id on which user has permissions */
595
+ projectId: string;
596
+ /** region in which the project resides */
597
+ regionId: string;
598
+ /** Instance id */
599
+ instanceId: string;
600
+ }
601
+ export const ListCredentialsRequest = /*@__PURE__*/ S.suspend(() =>
602
+ S.Struct({
603
+ projectId: S.String.pipe(T.Label()),
604
+ regionId: S.String.pipe(T.Label()),
605
+ instanceId: S.String.pipe(T.Label()),
606
+ }).pipe(
607
+ T.Http({
608
+ method: "GET",
609
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
610
+ code: 200,
611
+ baseUrl: "https://valkey.api.stackit.cloud",
612
+ }),
613
+ ),
614
+ ).annotate({ identifier: "ListCredentialsRequest" }) as any as S.Schema<ListCredentialsRequest>;
615
+
616
+ export interface CredentialsListItem {
617
+ id: string;
618
+ }
619
+ export const CredentialsListItem = /*@__PURE__*/ S.suspend(() =>
620
+ S.Struct({
621
+ id: S.String,
622
+ }),
623
+ ).annotate({ identifier: "CredentialsListItem" }) as any as S.Schema<CredentialsListItem>;
624
+
625
+ export type ListCredentialsResponseCredentialsListList = Array<CredentialsListItem>;
626
+ export const ListCredentialsResponseCredentialsListList = /*@__PURE__*/ S.Array(
627
+ CredentialsListItem,
628
+ ) as any as S.Schema<ListCredentialsResponseCredentialsListList>;
629
+
630
+ export interface ListCredentialsResponse {
631
+ credentialsList: ListCredentialsResponseCredentialsListList;
632
+ }
633
+ export const ListCredentialsResponse = /*@__PURE__*/ S.suspend(() =>
634
+ S.Struct({
635
+ credentialsList: ListCredentialsResponseCredentialsListList,
636
+ }),
637
+ ).annotate({ identifier: "ListCredentialsResponse" }) as any as S.Schema<ListCredentialsResponse>;
638
+
639
+ export interface ListInstancesRequest {
640
+ /** Project id on which user has permissions */
641
+ projectId: string;
642
+ /** region in which the project resides */
643
+ regionId: string;
644
+ }
645
+ export const ListInstancesRequest = /*@__PURE__*/ S.suspend(() =>
646
+ S.Struct({
647
+ projectId: S.String.pipe(T.Label()),
648
+ regionId: S.String.pipe(T.Label()),
649
+ }).pipe(
650
+ T.Http({
651
+ method: "GET",
652
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
653
+ code: 200,
654
+ baseUrl: "https://valkey.api.stackit.cloud",
655
+ }),
656
+ ),
657
+ ).annotate({ identifier: "ListInstancesRequest" }) as any as S.Schema<ListInstancesRequest>;
658
+
659
+ export type ListInstancesResponseInstancesList = Array<Instance>;
660
+ export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(
661
+ Instance,
662
+ ) as any as S.Schema<ListInstancesResponseInstancesList>;
663
+
664
+ export interface ListInstancesResponse {
665
+ instances: ListInstancesResponseInstancesList;
666
+ }
667
+ export const ListInstancesResponse = /*@__PURE__*/ S.suspend(() =>
668
+ S.Struct({
669
+ instances: ListInstancesResponseInstancesList,
670
+ }),
671
+ ).annotate({ identifier: "ListInstancesResponse" }) as any as S.Schema<ListInstancesResponse>;
672
+
673
+ export interface ListOfferingsRequest {
674
+ /** Project id on which user has permissions */
675
+ projectId: string;
676
+ /** region in which the project resides */
677
+ regionId: string;
678
+ }
679
+ export const ListOfferingsRequest = /*@__PURE__*/ S.suspend(() =>
680
+ S.Struct({
681
+ projectId: S.String.pipe(T.Label()),
682
+ regionId: S.String.pipe(T.Label()),
683
+ }).pipe(
684
+ T.Http({
685
+ method: "GET",
686
+ uri: "/v2/projects/{projectId}/regions/{regionId}/offerings",
687
+ code: 200,
688
+ baseUrl: "https://valkey.api.stackit.cloud",
689
+ }),
690
+ ),
691
+ ).annotate({ identifier: "ListOfferingsRequest" }) as any as S.Schema<ListOfferingsRequest>;
692
+
693
+ export interface Plan {
694
+ description: string;
695
+ free: boolean;
696
+ id: string;
697
+ name: string;
698
+ skuName: string;
699
+ }
700
+ export const Plan = /*@__PURE__*/ S.suspend(() =>
701
+ S.Struct({
702
+ description: S.String,
703
+ free: S.Boolean,
704
+ id: S.String,
705
+ name: S.String,
706
+ skuName: S.String,
707
+ }),
708
+ ).annotate({ identifier: "Plan" }) as any as S.Schema<Plan>;
709
+
710
+ export type OfferingPlansList = Array<Plan>;
711
+ export const OfferingPlansList = /*@__PURE__*/ S.Array(Plan) as any as S.Schema<OfferingPlansList>;
712
+
713
+ export interface Schema {
714
+ parameters: unknown;
715
+ }
716
+ export const Schema = /*@__PURE__*/ S.suspend(() =>
717
+ S.Struct({
718
+ parameters: S.Unknown,
719
+ }),
720
+ ).annotate({ identifier: "Schema" }) as any as S.Schema<Schema>;
721
+
722
+ export interface InstanceSchema {
723
+ create: Schema;
724
+ update: Schema;
725
+ }
726
+ export const InstanceSchema = /*@__PURE__*/ S.suspend(() =>
727
+ S.Struct({
728
+ create: Schema,
729
+ update: Schema,
730
+ }),
731
+ ).annotate({ identifier: "InstanceSchema" }) as any as S.Schema<InstanceSchema>;
732
+
733
+ export interface Offering {
734
+ description: string;
735
+ documentationUrl: string;
736
+ imageUrl: string;
737
+ latest: boolean;
738
+ lifecycle?: string;
739
+ name: string;
740
+ plans: OfferingPlansList;
741
+ quotaCount: number;
742
+ schema?: InstanceSchema;
743
+ version: string;
744
+ }
745
+ export const Offering = /*@__PURE__*/ S.suspend(() =>
746
+ S.Struct({
747
+ description: S.String,
748
+ documentationUrl: S.String,
749
+ imageUrl: S.String,
750
+ latest: S.Boolean,
751
+ lifecycle: S.optional(S.String),
752
+ name: S.String,
753
+ plans: OfferingPlansList,
754
+ quotaCount: S.Number,
755
+ schema: S.optional(InstanceSchema),
756
+ version: S.String,
757
+ }),
758
+ ).annotate({ identifier: "Offering" }) as any as S.Schema<Offering>;
759
+
760
+ export type ListOfferingsResponseOfferingsList = Array<Offering>;
761
+ export const ListOfferingsResponseOfferingsList = /*@__PURE__*/ S.Array(
762
+ Offering,
763
+ ) as any as S.Schema<ListOfferingsResponseOfferingsList>;
764
+
765
+ export interface ListOfferingsResponse {
766
+ offerings: ListOfferingsResponseOfferingsList;
767
+ }
768
+ export const ListOfferingsResponse = /*@__PURE__*/ S.suspend(() =>
769
+ S.Struct({
770
+ offerings: ListOfferingsResponseOfferingsList,
771
+ }),
772
+ ).annotate({ identifier: "ListOfferingsResponse" }) as any as S.Schema<ListOfferingsResponse>;
773
+
774
+ export interface ListRestoresRequest {
775
+ /** Project id on which user has permissions */
776
+ projectId: string;
777
+ /** region in which the project resides */
778
+ regionId: string;
779
+ /** Instance id */
780
+ instanceId: string;
781
+ }
782
+ export const ListRestoresRequest = /*@__PURE__*/ S.suspend(() =>
783
+ S.Struct({
784
+ projectId: S.String.pipe(T.Label()),
785
+ regionId: S.String.pipe(T.Label()),
786
+ instanceId: S.String.pipe(T.Label()),
787
+ }).pipe(
788
+ T.Http({
789
+ method: "GET",
790
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restores",
791
+ code: 200,
792
+ baseUrl: "https://valkey.api.stackit.cloud",
793
+ }),
794
+ ),
795
+ ).annotate({ identifier: "ListRestoresRequest" }) as any as S.Schema<ListRestoresRequest>;
796
+
797
+ export interface Restore {
798
+ backup_id: number;
799
+ finished_at: string;
800
+ id: number;
801
+ status: string;
802
+ triggered_at?: string;
803
+ }
804
+ export const Restore = /*@__PURE__*/ S.suspend(() =>
805
+ S.Struct({
806
+ backup_id: S.Number,
807
+ finished_at: S.String,
808
+ id: S.Number,
809
+ status: S.String,
810
+ triggered_at: S.optional(S.String),
811
+ }),
812
+ ).annotate({ identifier: "Restore" }) as any as S.Schema<Restore>;
813
+
814
+ export type ListRestoresResponseInstanceRestoresList = Array<Restore>;
815
+ export const ListRestoresResponseInstanceRestoresList = /*@__PURE__*/ S.Array(
816
+ Restore,
817
+ ) as any as S.Schema<ListRestoresResponseInstanceRestoresList>;
818
+
819
+ export interface ListRestoresResponse {
820
+ instanceRestores: ListRestoresResponseInstanceRestoresList;
821
+ }
822
+ export const ListRestoresResponse = /*@__PURE__*/ S.suspend(() =>
823
+ S.Struct({
824
+ instanceRestores: ListRestoresResponseInstanceRestoresList,
825
+ }),
826
+ ).annotate({ identifier: "ListRestoresResponse" }) as any as S.Schema<ListRestoresResponse>;
827
+
828
+ export interface PartialUpdateInstanceRequest {
829
+ /** Project id on which user has permissions */
830
+ projectId: string;
831
+ /** region in which the project resides */
832
+ regionId: string;
833
+ /** Instance id */
834
+ instanceId: string;
835
+ instanceName?: string;
836
+ parameters?: InstanceParameters;
837
+ planId?: string;
838
+ }
839
+ export const PartialUpdateInstanceRequest = /*@__PURE__*/ S.suspend(() =>
840
+ S.Struct({
841
+ projectId: S.String.pipe(T.Label()),
842
+ regionId: S.String.pipe(T.Label()),
843
+ instanceId: S.String.pipe(T.Label()),
844
+ instanceName: S.optional(S.String),
845
+ parameters: S.optional(InstanceParameters),
846
+ planId: S.optional(S.String),
847
+ }).pipe(
848
+ T.Http({
849
+ method: "PATCH",
850
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
851
+ code: 200,
852
+ baseUrl: "https://valkey.api.stackit.cloud",
853
+ }),
854
+ ),
855
+ ).annotate({
856
+ identifier: "PartialUpdateInstanceRequest",
857
+ }) as any as S.Schema<PartialUpdateInstanceRequest>;
858
+
859
+ export interface PartialUpdateInstanceResponse {}
860
+ export const PartialUpdateInstanceResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
861
+ identifier: "PartialUpdateInstanceResponse",
862
+ }) as any as S.Schema<PartialUpdateInstanceResponse>;
863
+
864
+ export interface TriggerRecreateRequest {
865
+ /** Project id on which user has permissions */
866
+ projectId: string;
867
+ /** region in which the project resides */
868
+ regionId: string;
869
+ /** Instance id */
870
+ instanceId: string;
871
+ }
872
+ export const TriggerRecreateRequest = /*@__PURE__*/ S.suspend(() =>
873
+ S.Struct({
874
+ projectId: S.String.pipe(T.Label()),
875
+ regionId: S.String.pipe(T.Label()),
876
+ instanceId: S.String.pipe(T.Label()),
877
+ }).pipe(
878
+ T.Http({
879
+ method: "PATCH",
880
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/recreate",
881
+ code: 200,
882
+ baseUrl: "https://valkey.api.stackit.cloud",
883
+ }),
884
+ ),
885
+ ).annotate({ identifier: "TriggerRecreateRequest" }) as any as S.Schema<TriggerRecreateRequest>;
886
+
887
+ export interface TriggerRestartRequest {
888
+ /** Project id on which user has permissions */
889
+ projectId: string;
890
+ /** region in which the project resides */
891
+ regionId: string;
892
+ /** Instance id */
893
+ instanceId: string;
894
+ }
895
+ export const TriggerRestartRequest = /*@__PURE__*/ S.suspend(() =>
896
+ S.Struct({
897
+ projectId: S.String.pipe(T.Label()),
898
+ regionId: S.String.pipe(T.Label()),
899
+ instanceId: S.String.pipe(T.Label()),
900
+ }).pipe(
901
+ T.Http({
902
+ method: "PATCH",
903
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restart",
904
+ code: 200,
905
+ baseUrl: "https://valkey.api.stackit.cloud",
906
+ }),
907
+ ),
908
+ ).annotate({ identifier: "TriggerRestartRequest" }) as any as S.Schema<TriggerRestartRequest>;
909
+
910
+ export interface TriggerRestoreRequest {
911
+ /** Project id on which user has permissions */
912
+ projectId: string;
913
+ /** region in which the project resides */
914
+ regionId: string;
915
+ /** Instance id */
916
+ instanceId: string;
917
+ /** Backup id */
918
+ backupId: number;
919
+ }
920
+ export const TriggerRestoreRequest = /*@__PURE__*/ S.suspend(() =>
921
+ S.Struct({
922
+ projectId: S.String.pipe(T.Label()),
923
+ regionId: S.String.pipe(T.Label()),
924
+ instanceId: S.String.pipe(T.Label()),
925
+ backupId: S.Number.pipe(T.Label()),
926
+ }).pipe(
927
+ T.Http({
928
+ method: "POST",
929
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/restore",
930
+ code: 200,
931
+ baseUrl: "https://valkey.api.stackit.cloud",
932
+ }),
933
+ ),
934
+ ).annotate({ identifier: "TriggerRestoreRequest" }) as any as S.Schema<TriggerRestoreRequest>;
935
+
936
+ export interface TriggerRestoreResponse {
937
+ id: number;
938
+ }
939
+ export const TriggerRestoreResponse = /*@__PURE__*/ S.suspend(() =>
940
+ S.Struct({
941
+ id: S.Number,
942
+ }),
943
+ ).annotate({ identifier: "TriggerRestoreResponse" }) as any as S.Schema<TriggerRestoreResponse>;
944
+
945
+ export interface UpdateBackupsConfigRequest {
946
+ /** Project id on which user has permissions */
947
+ projectId: string;
948
+ /** region in which the project resides */
949
+ regionId: string;
950
+ /** Instance id */
951
+ instanceId: string;
952
+ encryption_key?: string;
953
+ }
954
+ export const UpdateBackupsConfigRequest = /*@__PURE__*/ S.suspend(() =>
955
+ S.Struct({
956
+ projectId: S.String.pipe(T.Label()),
957
+ regionId: S.String.pipe(T.Label()),
958
+ instanceId: S.String.pipe(T.Label()),
959
+ encryption_key: S.optional(S.String),
960
+ }).pipe(
961
+ T.Http({
962
+ method: "PATCH",
963
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups-config",
964
+ code: 200,
965
+ baseUrl: "https://valkey.api.stackit.cloud",
966
+ }),
967
+ ),
968
+ ).annotate({
969
+ identifier: "UpdateBackupsConfigRequest",
970
+ }) as any as S.Schema<UpdateBackupsConfigRequest>;
971
+
972
+ export interface UpdateBackupsConfigResponse {
973
+ message: string;
974
+ }
975
+ export const UpdateBackupsConfigResponse = /*@__PURE__*/ S.suspend(() =>
976
+ S.Struct({
977
+ message: S.String,
978
+ }),
979
+ ).annotate({
980
+ identifier: "UpdateBackupsConfigResponse",
981
+ }) as any as S.Schema<UpdateBackupsConfigResponse>;
982
+
983
+ export type CreateBackupError = BadRequest | NotFound | StackitOpError;
984
+ /** create a backup */
985
+ export const createBackup: API.OperationMethod<
986
+ CreateBackupRequest,
987
+ CreateBackupResponseItem,
988
+ CreateBackupError,
989
+ StackitOpContext
990
+ > = /*@__PURE__*/ API.make(() => ({
991
+ input: CreateBackupRequest,
992
+ output: CreateBackupResponseItem,
993
+ errors: [BadRequest, NotFound, UnknownStackitError],
994
+ protocol: StackitProtocol,
995
+ retry: Retry.Retry,
996
+ }));
997
+
998
+ export type CreateCredentialsError = BadRequest | StackitOpError;
999
+ /** create new credentials Create new service credentials */
1000
+ export const createCredentials: API.OperationMethod<
1001
+ CreateCredentialsRequest,
1002
+ CredentialsResponse,
1003
+ CreateCredentialsError,
1004
+ StackitOpContext
1005
+ > = /*@__PURE__*/ API.make(() => ({
1006
+ input: CreateCredentialsRequest,
1007
+ output: CredentialsResponse,
1008
+ errors: [BadRequest, UnknownStackitError],
1009
+ protocol: StackitProtocol,
1010
+ retry: Retry.Retry,
1011
+ }));
1012
+
1013
+ export type CreateInstanceError = BadRequest | Conflict | StackitOpError;
1014
+ /** provision Provision a service instance. */
1015
+ export const createInstance: API.OperationMethod<
1016
+ CreateInstanceRequest,
1017
+ CreateInstanceResponse,
1018
+ CreateInstanceError,
1019
+ StackitOpContext
1020
+ > = /*@__PURE__*/ API.make(() => ({
1021
+ input: CreateInstanceRequest,
1022
+ output: CreateInstanceResponse,
1023
+ errors: [BadRequest, Conflict, UnknownStackitError],
1024
+ protocol: StackitProtocol,
1025
+ retry: Retry.Retry,
1026
+ }));
1027
+
1028
+ export type DeleteCredentialsError = BadRequest | NotFound | StackitOpError;
1029
+ /** delete credentials by id Delete a service credentials. */
1030
+ export const deleteCredentials: API.OperationMethod<
1031
+ DeleteCredentialsRequest,
1032
+ DeleteCredentialsResponse,
1033
+ DeleteCredentialsError,
1034
+ StackitOpContext
1035
+ > = /*@__PURE__*/ API.make(() => ({
1036
+ input: DeleteCredentialsRequest,
1037
+ output: DeleteCredentialsResponse,
1038
+ errors: [BadRequest, NotFound, UnknownStackitError],
1039
+ protocol: StackitProtocol,
1040
+ retry: Retry.Retry,
1041
+ }));
1042
+
1043
+ export type DeleteInstanceError = BadRequest | NotFound | StackitOpError;
1044
+ /** delete service instance Deprovision a service instance. */
1045
+ export const deleteInstance: API.OperationMethod<
1046
+ DeleteInstanceRequest,
1047
+ DeleteInstanceResponse,
1048
+ DeleteInstanceError,
1049
+ StackitOpContext
1050
+ > = /*@__PURE__*/ API.make(() => ({
1051
+ input: DeleteInstanceRequest,
1052
+ output: DeleteInstanceResponse,
1053
+ errors: [BadRequest, NotFound, UnknownStackitError],
1054
+ protocol: StackitProtocol,
1055
+ retry: Retry.Retry,
1056
+ }));
1057
+
1058
+ export type DownloadBackupError = BadRequest | NotFound | StackitOpError;
1059
+ /** download backup */
1060
+ export const downloadBackup: API.OperationMethod<
1061
+ DownloadBackupRequest,
1062
+ DownloadBackupResponse,
1063
+ DownloadBackupError,
1064
+ StackitOpContext
1065
+ > = /*@__PURE__*/ API.make(() => ({
1066
+ input: DownloadBackupRequest,
1067
+ output: DownloadBackupResponse,
1068
+ errors: [BadRequest, NotFound, UnknownStackitError],
1069
+ protocol: StackitProtocol,
1070
+ retry: Retry.Retry,
1071
+ }));
1072
+
1073
+ export type GetCredentialsError = BadRequest | NotFound | StackitOpError;
1074
+ /** get credentials by id get a service credentials by credentials id */
1075
+ export const getCredentials: API.OperationMethod<
1076
+ GetCredentialsRequest,
1077
+ CredentialsResponse,
1078
+ GetCredentialsError,
1079
+ StackitOpContext
1080
+ > = /*@__PURE__*/ API.make(() => ({
1081
+ input: GetCredentialsRequest,
1082
+ output: CredentialsResponse,
1083
+ errors: [BadRequest, NotFound, UnknownStackitError],
1084
+ protocol: StackitProtocol,
1085
+ retry: Retry.Retry,
1086
+ }));
1087
+
1088
+ export type GetInstanceError = BadRequest | NotFound | StackitOpError;
1089
+ /** get a service instance get a service instance */
1090
+ export const getInstance: API.OperationMethod<
1091
+ GetInstanceRequest,
1092
+ Instance,
1093
+ GetInstanceError,
1094
+ StackitOpContext
1095
+ > = /*@__PURE__*/ API.make(() => ({
1096
+ input: GetInstanceRequest,
1097
+ output: Instance,
1098
+ errors: [BadRequest, NotFound, UnknownStackitError],
1099
+ protocol: StackitProtocol,
1100
+ retry: Retry.Retry,
1101
+ }));
1102
+
1103
+ export type GetMetricsError = BadRequest | NotFound | StackitOpError;
1104
+ /** get latest metrics for cpu load, memory and disk usage */
1105
+ export const getMetrics: API.OperationMethod<
1106
+ GetMetricsRequest,
1107
+ GetMetricsResponse,
1108
+ GetMetricsError,
1109
+ StackitOpContext
1110
+ > = /*@__PURE__*/ API.make(() => ({
1111
+ input: GetMetricsRequest,
1112
+ output: GetMetricsResponse,
1113
+ errors: [BadRequest, NotFound, UnknownStackitError],
1114
+ protocol: StackitProtocol,
1115
+ retry: Retry.Retry,
1116
+ }));
1117
+
1118
+ export type ListBackupsError = BadRequest | NotFound | StackitOpError;
1119
+ /** get latest backup information for provided instanceId */
1120
+ export const listBackups: API.OperationMethod<
1121
+ ListBackupsRequest,
1122
+ ListBackupsResponse2,
1123
+ ListBackupsError,
1124
+ StackitOpContext
1125
+ > = /*@__PURE__*/ API.make(() => ({
1126
+ input: ListBackupsRequest,
1127
+ output: ListBackupsResponse2,
1128
+ errors: [BadRequest, NotFound, UnknownStackitError],
1129
+ protocol: StackitProtocol,
1130
+ retry: Retry.Retry,
1131
+ }));
1132
+
1133
+ export type ListCredentialsError = BadRequest | NotFound | StackitOpError;
1134
+ /** get list of credentials ids get list all credentials ids for instance */
1135
+ export const listCredentials: API.OperationMethod<
1136
+ ListCredentialsRequest,
1137
+ ListCredentialsResponse,
1138
+ ListCredentialsError,
1139
+ StackitOpContext
1140
+ > = /*@__PURE__*/ API.make(() => ({
1141
+ input: ListCredentialsRequest,
1142
+ output: ListCredentialsResponse,
1143
+ errors: [BadRequest, NotFound, UnknownStackitError],
1144
+ protocol: StackitProtocol,
1145
+ retry: Retry.Retry,
1146
+ }));
1147
+
1148
+ export type ListInstancesError = BadRequest | NotFound | StackitOpError;
1149
+ /** get service instances list Get a list of available instances */
1150
+ export const listInstances: API.OperationMethod<
1151
+ ListInstancesRequest,
1152
+ ListInstancesResponse,
1153
+ ListInstancesError,
1154
+ StackitOpContext
1155
+ > = /*@__PURE__*/ API.make(() => ({
1156
+ input: ListInstancesRequest,
1157
+ output: ListInstancesResponse,
1158
+ errors: [BadRequest, NotFound, UnknownStackitError],
1159
+ protocol: StackitProtocol,
1160
+ retry: Retry.Retry,
1161
+ }));
1162
+
1163
+ export type ListOfferingsError = BadRequest | NotFound | StackitOpError;
1164
+ /** get the service offerings Get the service offerings that the service broker offers. */
1165
+ export const listOfferings: API.OperationMethod<
1166
+ ListOfferingsRequest,
1167
+ ListOfferingsResponse,
1168
+ ListOfferingsError,
1169
+ StackitOpContext
1170
+ > = /*@__PURE__*/ API.make(() => ({
1171
+ input: ListOfferingsRequest,
1172
+ output: ListOfferingsResponse,
1173
+ errors: [BadRequest, NotFound, UnknownStackitError],
1174
+ protocol: StackitProtocol,
1175
+ retry: Retry.Retry,
1176
+ }));
1177
+
1178
+ export type ListRestoresError = BadRequest | NotFound | StackitOpError;
1179
+ /** get latest restore information for provided instanceId */
1180
+ export const listRestores: API.OperationMethod<
1181
+ ListRestoresRequest,
1182
+ ListRestoresResponse,
1183
+ ListRestoresError,
1184
+ StackitOpContext
1185
+ > = /*@__PURE__*/ API.make(() => ({
1186
+ input: ListRestoresRequest,
1187
+ output: ListRestoresResponse,
1188
+ errors: [BadRequest, NotFound, UnknownStackitError],
1189
+ protocol: StackitProtocol,
1190
+ retry: Retry.Retry,
1191
+ }));
1192
+
1193
+ export type PartialUpdateInstanceError = BadRequest | NotFound | StackitOpError;
1194
+ /** update a service instance Update a service instance. This could be a sgw acl update or a plan upgrade. */
1195
+ export const partialUpdateInstance: API.OperationMethod<
1196
+ PartialUpdateInstanceRequest,
1197
+ PartialUpdateInstanceResponse,
1198
+ PartialUpdateInstanceError,
1199
+ StackitOpContext
1200
+ > = /*@__PURE__*/ API.make(() => ({
1201
+ input: PartialUpdateInstanceRequest,
1202
+ output: PartialUpdateInstanceResponse,
1203
+ errors: [BadRequest, NotFound, UnknownStackitError],
1204
+ protocol: StackitProtocol,
1205
+ retry: Retry.Retry,
1206
+ }));
1207
+
1208
+ export type TriggerRecreateError = BadRequest | NotFound | StackitOpError;
1209
+ /** trigger a recreate */
1210
+ export const triggerRecreate: API.OperationMethod<
1211
+ TriggerRecreateRequest,
1212
+ CreateInstanceResponse,
1213
+ TriggerRecreateError,
1214
+ StackitOpContext
1215
+ > = /*@__PURE__*/ API.make(() => ({
1216
+ input: TriggerRecreateRequest,
1217
+ output: CreateInstanceResponse,
1218
+ errors: [BadRequest, NotFound, UnknownStackitError],
1219
+ protocol: StackitProtocol,
1220
+ retry: Retry.Retry,
1221
+ }));
1222
+
1223
+ export type TriggerRestartError = BadRequest | NotFound | StackitOpError;
1224
+ /** trigger a restart */
1225
+ export const triggerRestart: API.OperationMethod<
1226
+ TriggerRestartRequest,
1227
+ CreateInstanceResponse,
1228
+ TriggerRestartError,
1229
+ StackitOpContext
1230
+ > = /*@__PURE__*/ API.make(() => ({
1231
+ input: TriggerRestartRequest,
1232
+ output: CreateInstanceResponse,
1233
+ errors: [BadRequest, NotFound, UnknownStackitError],
1234
+ protocol: StackitProtocol,
1235
+ retry: Retry.Retry,
1236
+ }));
1237
+
1238
+ export type TriggerRestoreError = BadRequest | NotFound | StackitOpError;
1239
+ /** trigger a restore */
1240
+ export const triggerRestore: API.OperationMethod<
1241
+ TriggerRestoreRequest,
1242
+ TriggerRestoreResponse,
1243
+ TriggerRestoreError,
1244
+ StackitOpContext
1245
+ > = /*@__PURE__*/ API.make(() => ({
1246
+ input: TriggerRestoreRequest,
1247
+ output: TriggerRestoreResponse,
1248
+ errors: [BadRequest, NotFound, UnknownStackitError],
1249
+ protocol: StackitProtocol,
1250
+ retry: Retry.Retry,
1251
+ }));
1252
+
1253
+ export type UpdateBackupsConfigError = BadRequest | NotFound | StackitOpError;
1254
+ /** backups configuration update Update the configuration for backups for your instance. */
1255
+ export const updateBackupsConfig: API.OperationMethod<
1256
+ UpdateBackupsConfigRequest,
1257
+ UpdateBackupsConfigResponse,
1258
+ UpdateBackupsConfigError,
1259
+ StackitOpContext
1260
+ > = /*@__PURE__*/ API.make(() => ({
1261
+ input: UpdateBackupsConfigRequest,
1262
+ output: UpdateBackupsConfigResponse,
1263
+ errors: [BadRequest, NotFound, UnknownStackitError],
1264
+ protocol: StackitProtocol,
1265
+ retry: Retry.Retry,
1266
+ }));