@distilled.cloud/stackit 1.0.0-rc.15 → 1.0.0-rc.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (285) hide show
  1. package/lib/credentials.d.ts +2 -2
  2. package/lib/credentials.d.ts.map +1 -1
  3. package/lib/credentials.js +32 -28
  4. package/lib/credentials.js.map +1 -1
  5. package/lib/errors.d.ts +13 -13
  6. package/lib/errors.d.ts.map +1 -1
  7. package/lib/errors.js +16 -16
  8. package/lib/errors.js.map +1 -1
  9. package/lib/index.d.ts +2 -2
  10. package/lib/index.js +22 -22
  11. package/lib/pagination.d.ts +1 -1
  12. package/lib/pagination.js +15 -15
  13. package/lib/protocol.d.ts +3 -3
  14. package/lib/protocol.d.ts.map +1 -1
  15. package/lib/protocol.js +31 -29
  16. package/lib/protocol.js.map +1 -1
  17. package/lib/retry.d.ts +1 -1
  18. package/lib/retry.d.ts.map +1 -1
  19. package/lib/retry.js +24 -23
  20. package/lib/retry.js.map +1 -1
  21. package/lib/services/alb.d.ts +10 -87
  22. package/lib/services/alb.d.ts.map +1 -1
  23. package/lib/services/alb.js +73 -502
  24. package/lib/services/alb_waf.d.ts +9 -82
  25. package/lib/services/alb_waf.d.ts.map +1 -1
  26. package/lib/services/alb_waf.js +84 -510
  27. package/lib/services/authorization.d.ts +5 -47
  28. package/lib/services/authorization.d.ts.map +1 -1
  29. package/lib/services/authorization.js +67 -314
  30. package/lib/services/automation.d.ts +7 -47
  31. package/lib/services/automation.d.ts.map +1 -1
  32. package/lib/services/automation.js +58 -353
  33. package/lib/services/cdn.d.ts +8 -220
  34. package/lib/services/cdn.d.ts.map +1 -1
  35. package/lib/services/cdn.js +81 -896
  36. package/lib/services/certificates.d.ts +8 -27
  37. package/lib/services/certificates.d.ts.map +1 -1
  38. package/lib/services/certificates.js +45 -171
  39. package/lib/services/cost.d.ts +10 -37
  40. package/lib/services/cost.d.ts.map +1 -1
  41. package/lib/services/cost.js +39 -169
  42. package/lib/services/dns.d.ts +9 -104
  43. package/lib/services/dns.d.ts.map +1 -1
  44. package/lib/services/dns.js +98 -714
  45. package/lib/services/dremio.d.ts +8 -50
  46. package/lib/services/dremio.d.ts.map +1 -1
  47. package/lib/services/dremio.js +56 -307
  48. package/lib/services/edge.d.ts +7 -40
  49. package/lib/services/edge.d.ts.map +1 -1
  50. package/lib/services/edge.js +66 -347
  51. package/lib/services/functions.d.ts +1 -48
  52. package/lib/services/functions.d.ts.map +1 -1
  53. package/lib/services/functions.js +64 -393
  54. package/lib/services/git.d.ts +8 -61
  55. package/lib/services/git.d.ts.map +1 -1
  56. package/lib/services/git.js +87 -510
  57. package/lib/services/iaas.d.ts +9 -337
  58. package/lib/services/iaas.d.ts.map +1 -1
  59. package/lib/services/iaas.js +409 -3532
  60. package/lib/services/intake.d.ts +8 -75
  61. package/lib/services/intake.d.ts.map +1 -1
  62. package/lib/services/intake.js +74 -465
  63. package/lib/services/kms.d.ts +9 -92
  64. package/lib/services/kms.d.ts.map +1 -1
  65. package/lib/services/kms.js +95 -650
  66. package/lib/services/lb_ip_lists.d.ts +9 -25
  67. package/lib/services/lb_ip_lists.d.ts.map +1 -1
  68. package/lib/services/lb_ip_lists.js +45 -146
  69. package/lib/services/load_balancer.d.ts +10 -81
  70. package/lib/services/load_balancer.d.ts.map +1 -1
  71. package/lib/services/load_balancer.js +76 -486
  72. package/lib/services/logme.d.ts +8 -69
  73. package/lib/services/logme.d.ts.map +1 -1
  74. package/lib/services/logme.js +82 -564
  75. package/lib/services/logs.d.ts +8 -64
  76. package/lib/services/logs.d.ts.map +1 -1
  77. package/lib/services/logs.js +84 -465
  78. package/lib/services/mariadb.d.ts +8 -65
  79. package/lib/services/mariadb.d.ts.map +1 -1
  80. package/lib/services/mariadb.js +84 -541
  81. package/lib/services/model_experiments.d.ts +9 -48
  82. package/lib/services/model_experiments.d.ts.map +1 -1
  83. package/lib/services/model_experiments.js +66 -325
  84. package/lib/services/model_serving.d.ts +7 -47
  85. package/lib/services/model_serving.d.ts.map +1 -1
  86. package/lib/services/model_serving.js +55 -277
  87. package/lib/services/mongodb_flex.d.ts +8 -137
  88. package/lib/services/mongodb_flex.d.ts.map +1 -1
  89. package/lib/services/mongodb_flex.js +102 -793
  90. package/lib/services/object_storage.d.ts +12 -59
  91. package/lib/services/object_storage.d.ts.map +1 -1
  92. package/lib/services/object_storage.js +93 -528
  93. package/lib/services/observability.d.ts +8 -407
  94. package/lib/services/observability.d.ts.map +1 -1
  95. package/lib/services/observability.js +375 -3148
  96. package/lib/services/opensearch.d.ts +8 -71
  97. package/lib/services/opensearch.d.ts.map +1 -1
  98. package/lib/services/opensearch.js +85 -553
  99. package/lib/services/pim.d.ts +12 -108
  100. package/lib/services/pim.d.ts.map +1 -1
  101. package/lib/services/pim.js +81 -726
  102. package/lib/services/postgres_flex.d.ts +14 -136
  103. package/lib/services/postgres_flex.d.ts.map +1 -1
  104. package/lib/services/postgres_flex.js +114 -841
  105. package/lib/services/pubsub.d.ts +11 -73
  106. package/lib/services/pubsub.d.ts.map +1 -1
  107. package/lib/services/pubsub.js +92 -507
  108. package/lib/services/rabbitmq.d.ts +8 -76
  109. package/lib/services/rabbitmq.d.ts.map +1 -1
  110. package/lib/services/rabbitmq.js +88 -564
  111. package/lib/services/registry.d.ts +10 -28
  112. package/lib/services/registry.d.ts.map +1 -1
  113. package/lib/services/registry.js +49 -189
  114. package/lib/services/resource_manager.d.ts +9 -61
  115. package/lib/services/resource_manager.d.ts.map +1 -1
  116. package/lib/services/resource_manager.js +92 -462
  117. package/lib/services/run_command.d.ts +5 -28
  118. package/lib/services/run_command.d.ts.map +1 -1
  119. package/lib/services/run_command.js +38 -176
  120. package/lib/services/sca.d.ts +8 -79
  121. package/lib/services/sca.d.ts.map +1 -1
  122. package/lib/services/sca.js +63 -435
  123. package/lib/services/scf.d.ts +8 -64
  124. package/lib/services/scf.d.ts.map +1 -1
  125. package/lib/services/scf.js +99 -660
  126. package/lib/services/secrets_manager.d.ts +8 -61
  127. package/lib/services/secrets_manager.d.ts.map +1 -1
  128. package/lib/services/secrets_manager.js +99 -601
  129. package/lib/services/server_backup.d.ts +7 -50
  130. package/lib/services/server_backup.d.ts.map +1 -1
  131. package/lib/services/server_backup.js +70 -444
  132. package/lib/services/server_update.d.ts +7 -35
  133. package/lib/services/server_update.d.ts.map +1 -1
  134. package/lib/services/server_update.js +58 -342
  135. package/lib/services/service_account.d.ts +10 -68
  136. package/lib/services/service_account.d.ts.map +1 -1
  137. package/lib/services/service_account.js +75 -495
  138. package/lib/services/service_enablement.d.ts +7 -29
  139. package/lib/services/service_enablement.d.ts.map +1 -1
  140. package/lib/services/service_enablement.js +40 -147
  141. package/lib/services/sfs.d.ts +4 -96
  142. package/lib/services/sfs.d.ts.map +1 -1
  143. package/lib/services/sfs.js +117 -782
  144. package/lib/services/ske.d.ts +9 -108
  145. package/lib/services/ske.d.ts.map +1 -1
  146. package/lib/services/ske.js +67 -549
  147. package/lib/services/sqlserverflex.d.ts +11 -152
  148. package/lib/services/sqlserverflex.d.ts.map +1 -1
  149. package/lib/services/sqlserverflex.js +112 -925
  150. package/lib/services/stackit_marketplace.d.ts +9 -38
  151. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  152. package/lib/services/stackit_marketplace.js +64 -369
  153. package/lib/services/telemetry_link.d.ts +8 -61
  154. package/lib/services/telemetry_link.d.ts.map +1 -1
  155. package/lib/services/telemetry_link.js +81 -522
  156. package/lib/services/telemetry_router.d.ts +8 -72
  157. package/lib/services/telemetry_router.d.ts.map +1 -1
  158. package/lib/services/telemetry_router.js +73 -474
  159. package/lib/services/ufw.d.ts +7 -42
  160. package/lib/services/ufw.d.ts.map +1 -1
  161. package/lib/services/ufw.js +55 -269
  162. package/lib/services/valkey.d.ts +8 -68
  163. package/lib/services/valkey.d.ts.map +1 -1
  164. package/lib/services/valkey.js +85 -557
  165. package/lib/services/vpn.d.ts +21 -186
  166. package/lib/services/vpn.d.ts.map +1 -1
  167. package/lib/services/vpn.js +105 -920
  168. package/lib/services/workflows.d.ts +15 -84
  169. package/lib/services/workflows.d.ts.map +1 -1
  170. package/lib/services/workflows.js +67 -497
  171. package/lib/traits.d.ts +1 -1
  172. package/lib/traits.js +10 -10
  173. package/package.json +13 -9
  174. package/src/credentials.ts +21 -18
  175. package/src/errors.ts +10 -14
  176. package/src/index.ts +2 -2
  177. package/src/pagination.ts +2 -2
  178. package/src/protocol.ts +12 -9
  179. package/src/retry.ts +6 -4
  180. package/src/services/alb.ts +599 -655
  181. package/src/services/alb_waf.ts +597 -637
  182. package/src/services/authorization.ts +400 -383
  183. package/src/services/automation.ts +422 -405
  184. package/src/services/cdn.ts +817 -1375
  185. package/src/services/certificates.ts +209 -190
  186. package/src/services/cost.ts +100 -207
  187. package/src/services/dns.ts +793 -833
  188. package/src/services/dremio.ts +356 -349
  189. package/src/services/edge.ts +406 -366
  190. package/src/services/functions.ts +465 -463
  191. package/src/services/git.ts +602 -547
  192. package/src/services/iaas.ts +3931 -3821
  193. package/src/services/intake.ts +521 -549
  194. package/src/services/kms.ts +715 -692
  195. package/src/services/lb_ip_lists.ts +173 -152
  196. package/src/services/load_balancer.ts +576 -619
  197. package/src/services/logme.ts +696 -641
  198. package/src/services/logs.ts +510 -493
  199. package/src/services/mariadb.ts +671 -604
  200. package/src/services/model_experiments.ts +343 -356
  201. package/src/services/model_serving.ts +337 -328
  202. package/src/services/mongodb_flex.ts +955 -1007
  203. package/src/services/object_storage.ts +614 -557
  204. package/src/services/observability.ts +3469 -3866
  205. package/src/services/opensearch.ts +679 -628
  206. package/src/services/pim.ts +672 -909
  207. package/src/services/postgres_flex.ts +966 -986
  208. package/src/services/pubsub.ts +524 -546
  209. package/src/services/rabbitmq.ts +693 -654
  210. package/src/services/registry.ts +227 -194
  211. package/src/services/resource_manager.ts +520 -517
  212. package/src/services/run_command.ts +219 -211
  213. package/src/services/sca.ts +543 -570
  214. package/src/services/scf.ts +790 -716
  215. package/src/services/secrets_manager.ts +707 -622
  216. package/src/services/server_backup.ts +490 -475
  217. package/src/services/server_update.ts +353 -356
  218. package/src/services/service_account.ts +515 -553
  219. package/src/services/service_enablement.ts +162 -166
  220. package/src/services/sfs.ts +879 -958
  221. package/src/services/ske.ts +694 -769
  222. package/src/services/sqlserverflex.ts +1042 -1117
  223. package/src/services/stackit_marketplace.ts +377 -372
  224. package/src/services/telemetry_link.ts +530 -531
  225. package/src/services/telemetry_router.ts +509 -534
  226. package/src/services/ufw.ts +305 -307
  227. package/src/services/valkey.ts +684 -629
  228. package/src/services/vpn.ts +935 -1195
  229. package/src/services/workflows.ts +426 -586
  230. package/src/traits.ts +1 -1
  231. package/lib/protocol.test.d.ts +0 -2
  232. package/lib/protocol.test.d.ts.map +0 -1
  233. package/lib/protocol.test.js +0 -181
  234. package/lib/protocol.test.js.map +0 -1
  235. package/lib/services/alb.js.map +0 -1
  236. package/lib/services/alb_waf.js.map +0 -1
  237. package/lib/services/authorization.js.map +0 -1
  238. package/lib/services/automation.js.map +0 -1
  239. package/lib/services/cdn.js.map +0 -1
  240. package/lib/services/certificates.js.map +0 -1
  241. package/lib/services/cost.js.map +0 -1
  242. package/lib/services/dns.js.map +0 -1
  243. package/lib/services/dremio.js.map +0 -1
  244. package/lib/services/edge.js.map +0 -1
  245. package/lib/services/functions.js.map +0 -1
  246. package/lib/services/git.js.map +0 -1
  247. package/lib/services/iaas.js.map +0 -1
  248. package/lib/services/intake.js.map +0 -1
  249. package/lib/services/kms.js.map +0 -1
  250. package/lib/services/lb_ip_lists.js.map +0 -1
  251. package/lib/services/load_balancer.js.map +0 -1
  252. package/lib/services/logme.js.map +0 -1
  253. package/lib/services/logs.js.map +0 -1
  254. package/lib/services/mariadb.js.map +0 -1
  255. package/lib/services/model_experiments.js.map +0 -1
  256. package/lib/services/model_serving.js.map +0 -1
  257. package/lib/services/mongodb_flex.js.map +0 -1
  258. package/lib/services/object_storage.js.map +0 -1
  259. package/lib/services/observability.js.map +0 -1
  260. package/lib/services/opensearch.js.map +0 -1
  261. package/lib/services/pim.js.map +0 -1
  262. package/lib/services/postgres_flex.js.map +0 -1
  263. package/lib/services/pubsub.js.map +0 -1
  264. package/lib/services/rabbitmq.js.map +0 -1
  265. package/lib/services/registry.js.map +0 -1
  266. package/lib/services/resource_manager.js.map +0 -1
  267. package/lib/services/run_command.js.map +0 -1
  268. package/lib/services/sca.js.map +0 -1
  269. package/lib/services/scf.js.map +0 -1
  270. package/lib/services/secrets_manager.js.map +0 -1
  271. package/lib/services/server_backup.js.map +0 -1
  272. package/lib/services/server_update.js.map +0 -1
  273. package/lib/services/service_account.js.map +0 -1
  274. package/lib/services/service_enablement.js.map +0 -1
  275. package/lib/services/sfs.js.map +0 -1
  276. package/lib/services/ske.js.map +0 -1
  277. package/lib/services/sqlserverflex.js.map +0 -1
  278. package/lib/services/stackit_marketplace.js.map +0 -1
  279. package/lib/services/telemetry_link.js.map +0 -1
  280. package/lib/services/telemetry_router.js.map +0 -1
  281. package/lib/services/ufw.js.map +0 -1
  282. package/lib/services/valkey.js.map +0 -1
  283. package/lib/services/vpn.js.map +0 -1
  284. package/lib/services/workflows.js.map +0 -1
  285. package/src/protocol.test.ts +0 -304
@@ -1,12 +1,15 @@
1
1
  import * as API from "@distilled.cloud/core/api";
2
2
  import * as C from "@distilled.cloud/core/category";
3
3
  // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
4
- import * as S from "@distilled.cloud/core/schema";
5
- import * as Redacted from "effect/Redacted";
4
+ import * as S from "@distilled.cloud/core/schema-lite";
5
+ import * as __L from "@distilled.cloud/core/schema-lite";
6
+ import type * as Redacted from "effect/Redacted";
6
7
  import { UnknownStackitError } from "../errors.ts";
7
8
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
8
9
  import * as Retry from "../retry.ts";
9
10
  import * as T from "../traits.ts";
11
+ // Schema table, filled on first reach (see __S at the end).
12
+ const __s: any[] = [];
10
13
 
11
14
  export type { StackitOpError, StackitOpContext };
12
15
 
@@ -45,32 +48,10 @@ export interface CreateBackupRequest {
45
48
  /** Instance id */
46
49
  instanceId: string;
47
50
  }
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
51
  export interface CreateBackupResponseItem {
64
52
  id: number;
65
53
  message: string;
66
54
  }
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
55
  export interface CreateCredentialsRequest {
75
56
  /** Project id on which user has permissions */
76
57
  projectId: string;
@@ -80,27 +61,7 @@ export interface CreateCredentialsRequest {
80
61
  instanceId: string;
81
62
  parameters?: unknown;
82
63
  }
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
64
  export type CredentialsHostsList = Array<string>;
100
- export const CredentialsHostsList = /*@__PURE__*/ S.Array(
101
- S.String,
102
- ) as any as S.Schema<CredentialsHostsList>;
103
-
104
65
  export interface Credentials {
105
66
  host: string;
106
67
  hosts?: CredentialsHostsList;
@@ -110,46 +71,16 @@ export interface Credentials {
110
71
  uri?: string;
111
72
  username: string;
112
73
  }
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
74
  export interface RawCredentials {
126
75
  credentials: Credentials;
127
76
  }
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
77
  export interface CredentialsResponse {
135
78
  id: string;
136
79
  raw?: RawCredentials;
137
80
  uri: string;
138
81
  }
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
82
  export type InstanceParametersLazyfreeLazyEviction = "yes" | "no";
148
- export const InstanceParametersLazyfreeLazyEviction = S.String;
149
-
150
83
  export type InstanceParametersLazyfreeLazyExpire = "yes" | "no";
151
- export const InstanceParametersLazyfreeLazyExpire = S.String;
152
-
153
84
  export type InstanceParametersMaxmemoryPolicy =
154
85
  | "volatile-lru"
155
86
  | "allkeys-lru"
@@ -157,13 +88,7 @@ export type InstanceParametersMaxmemoryPolicy =
157
88
  | "allkeys-random"
158
89
  | "volatile-ttl"
159
90
  | "noeviction";
160
- export const InstanceParametersMaxmemoryPolicy = S.String;
161
-
162
91
  export type InstanceParametersSyslogList = Array<string>;
163
- export const InstanceParametersSyslogList = /*@__PURE__*/ S.Array(
164
- S.String,
165
- ) as any as S.Schema<InstanceParametersSyslogList>;
166
-
167
92
  export interface InstanceParameters {
168
93
  /** The unit is milliseconds. */
169
94
  down_after_milliseconds?: number;
@@ -199,38 +124,6 @@ export interface InstanceParameters {
199
124
  snapshot?: string;
200
125
  syslog?: InstanceParametersSyslogList;
201
126
  }
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
127
  export interface CreateInstanceRequest {
235
128
  /** Project id on which user has permissions */
236
129
  projectId: string;
@@ -240,32 +133,9 @@ export interface CreateInstanceRequest {
240
133
  parameters?: InstanceParameters;
241
134
  planId: string;
242
135
  }
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
136
  export interface CreateInstanceResponse {
261
137
  instanceId: string;
262
138
  }
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
139
  export interface DeleteCredentialsRequest {
270
140
  /** Project id on which user has permissions */
271
141
  projectId: string;
@@ -276,27 +146,7 @@ export interface DeleteCredentialsRequest {
276
146
  /** Id of the credentials being deleted */
277
147
  credentialsId: string;
278
148
  }
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
149
  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
150
  export interface DeleteInstanceRequest {
301
151
  /** Project id on which user has permissions */
302
152
  projectId: string;
@@ -305,26 +155,7 @@ export interface DeleteInstanceRequest {
305
155
  /** Instance id */
306
156
  instanceId: string;
307
157
  }
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
158
  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
159
  export interface DownloadBackupRequest {
329
160
  /** Project id on which user has permissions */
330
161
  projectId: string;
@@ -335,27 +166,7 @@ export interface DownloadBackupRequest {
335
166
  /** Backup id */
336
167
  backupId: number;
337
168
  }
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
169
  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
170
  export interface GetCredentialsRequest {
360
171
  /** Project id on which user has permissions */
361
172
  projectId: string;
@@ -366,22 +177,6 @@ export interface GetCredentialsRequest {
366
177
  /** Credentials id of credentials to fetch */
367
178
  credentialsId: string;
368
179
  }
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
180
  export interface GetInstanceRequest {
386
181
  /** Project id on which user has permissions */
387
182
  projectId: string;
@@ -390,43 +185,14 @@ export interface GetInstanceRequest {
390
185
  /** Instance id */
391
186
  instanceId: string;
392
187
  }
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
188
  export type InstanceLastOperationState = "in progress" | "succeeded" | "failed";
409
- export const InstanceLastOperationState = S.String;
410
-
411
189
  export type InstanceLastOperationType = "create" | "update" | "delete";
412
- export const InstanceLastOperationType = S.String;
413
-
414
190
  export interface InstanceLastOperation {
415
191
  description: string;
416
192
  state: InstanceLastOperationState;
417
193
  type: InstanceLastOperationType;
418
194
  }
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
195
  export type InstanceStatus = "active" | "failed" | "stopped" | "creating" | "deleting" | "updating";
428
- export const InstanceStatus = S.String;
429
-
430
196
  export interface Instance {
431
197
  cfGuid: string;
432
198
  cfOrganizationGuid: string;
@@ -443,25 +209,6 @@ export interface Instance {
443
209
  planName: string;
444
210
  status?: InstanceStatus;
445
211
  }
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
212
  export interface GetMetricsRequest {
466
213
  /** Project id on which user has permissions */
467
214
  projectId: string;
@@ -470,21 +217,6 @@ export interface GetMetricsRequest {
470
217
  /** Instance id */
471
218
  instanceId: string;
472
219
  }
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
220
  export interface GetMetricsResponse {
489
221
  cpuIdleTime?: number;
490
222
  cpuLoadPercent: number;
@@ -510,34 +242,6 @@ export interface GetMetricsResponse {
510
242
  parachuteDiskPersistentUsedPercent: number;
511
243
  parachuteDiskPersistentUsedThreshold: number;
512
244
  }
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
245
  export interface ListBackupsRequest {
542
246
  /** Project id on which user has permissions */
543
247
  projectId: string;
@@ -546,21 +250,6 @@ export interface ListBackupsRequest {
546
250
  /** Instance id */
547
251
  instanceId: string;
548
252
  }
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
253
  export interface Backup {
565
254
  downloadable?: boolean;
566
255
  finished_at: string;
@@ -569,27 +258,8 @@ export interface Backup {
569
258
  status: string;
570
259
  triggered_at?: string;
571
260
  }
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
261
  export type ListBackupsResponse = Array<Backup>;
584
- export const ListBackupsResponse = /*@__PURE__*/ S.Array(
585
- Backup,
586
- ) as any as S.Schema<ListBackupsResponse>;
587
-
588
262
  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
263
  export interface ListCredentialsRequest {
594
264
  /** Project id on which user has permissions */
595
265
  projectId: string;
@@ -598,98 +268,29 @@ export interface ListCredentialsRequest {
598
268
  /** Instance id */
599
269
  instanceId: string;
600
270
  }
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
271
  export interface CredentialsListItem {
617
272
  id: string;
618
273
  }
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
274
  export type ListCredentialsResponseCredentialsListList = Array<CredentialsListItem>;
626
- export const ListCredentialsResponseCredentialsListList = /*@__PURE__*/ S.Array(
627
- CredentialsListItem,
628
- ) as any as S.Schema<ListCredentialsResponseCredentialsListList>;
629
-
630
275
  export interface ListCredentialsResponse {
631
276
  credentialsList: ListCredentialsResponseCredentialsListList;
632
277
  }
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
278
  export interface ListInstancesRequest {
640
279
  /** Project id on which user has permissions */
641
280
  projectId: string;
642
281
  /** region in which the project resides */
643
282
  regionId: string;
644
283
  }
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
284
  export type ListInstancesResponseInstancesList = Array<Instance>;
660
- export const ListInstancesResponseInstancesList = /*@__PURE__*/ S.Array(
661
- Instance,
662
- ) as any as S.Schema<ListInstancesResponseInstancesList>;
663
-
664
285
  export interface ListInstancesResponse {
665
286
  instances: ListInstancesResponseInstancesList;
666
287
  }
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
288
  export interface ListOfferingsRequest {
674
289
  /** Project id on which user has permissions */
675
290
  projectId: string;
676
291
  /** region in which the project resides */
677
292
  regionId: string;
678
293
  }
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
294
  export interface Plan {
694
295
  description: string;
695
296
  free: boolean;
@@ -697,39 +298,14 @@ export interface Plan {
697
298
  name: string;
698
299
  skuName: string;
699
300
  }
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
301
  export type OfferingPlansList = Array<Plan>;
711
- export const OfferingPlansList = /*@__PURE__*/ S.Array(Plan) as any as S.Schema<OfferingPlansList>;
712
-
713
302
  export interface Schema {
714
303
  parameters: unknown;
715
304
  }
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
305
  export interface InstanceSchema {
723
306
  create: Schema;
724
307
  update: Schema;
725
308
  }
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
309
  export interface Offering {
734
310
  description: string;
735
311
  documentationUrl: string;
@@ -742,35 +318,10 @@ export interface Offering {
742
318
  schema?: InstanceSchema;
743
319
  version: string;
744
320
  }
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
321
  export type ListOfferingsResponseOfferingsList = Array<Offering>;
761
- export const ListOfferingsResponseOfferingsList = /*@__PURE__*/ S.Array(
762
- Offering,
763
- ) as any as S.Schema<ListOfferingsResponseOfferingsList>;
764
-
765
322
  export interface ListOfferingsResponse {
766
323
  offerings: ListOfferingsResponseOfferingsList;
767
324
  }
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
325
  export interface ListRestoresRequest {
775
326
  /** Project id on which user has permissions */
776
327
  projectId: string;
@@ -779,21 +330,6 @@ export interface ListRestoresRequest {
779
330
  /** Instance id */
780
331
  instanceId: string;
781
332
  }
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
333
  export interface Restore {
798
334
  backup_id: number;
799
335
  finished_at: string;
@@ -801,30 +337,10 @@ export interface Restore {
801
337
  status: string;
802
338
  triggered_at?: string;
803
339
  }
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
340
  export type ListRestoresResponseInstanceRestoresList = Array<Restore>;
815
- export const ListRestoresResponseInstanceRestoresList = /*@__PURE__*/ S.Array(
816
- Restore,
817
- ) as any as S.Schema<ListRestoresResponseInstanceRestoresList>;
818
-
819
341
  export interface ListRestoresResponse {
820
342
  instanceRestores: ListRestoresResponseInstanceRestoresList;
821
343
  }
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
344
  export interface PartialUpdateInstanceRequest {
829
345
  /** Project id on which user has permissions */
830
346
  projectId: string;
@@ -836,31 +352,7 @@ export interface PartialUpdateInstanceRequest {
836
352
  parameters?: InstanceParameters;
837
353
  planId?: string;
838
354
  }
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
355
  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
356
  export interface TriggerRecreateRequest {
865
357
  /** Project id on which user has permissions */
866
358
  projectId: string;
@@ -869,21 +361,6 @@ export interface TriggerRecreateRequest {
869
361
  /** Instance id */
870
362
  instanceId: string;
871
363
  }
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
364
  export interface TriggerRestartRequest {
888
365
  /** Project id on which user has permissions */
889
366
  projectId: string;
@@ -892,21 +369,6 @@ export interface TriggerRestartRequest {
892
369
  /** Instance id */
893
370
  instanceId: string;
894
371
  }
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
372
  export interface TriggerRestoreRequest {
911
373
  /** Project id on which user has permissions */
912
374
  projectId: string;
@@ -917,31 +379,9 @@ export interface TriggerRestoreRequest {
917
379
  /** Backup id */
918
380
  backupId: number;
919
381
  }
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
382
  export interface TriggerRestoreResponse {
937
383
  id: number;
938
384
  }
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
385
  export interface UpdateBackupsConfigRequest {
946
386
  /** Project id on which user has permissions */
947
387
  projectId: string;
@@ -951,35 +391,9 @@ export interface UpdateBackupsConfigRequest {
951
391
  instanceId: string;
952
392
  encryption_key?: string;
953
393
  }
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
394
  export interface UpdateBackupsConfigResponse {
973
395
  message: string;
974
396
  }
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
397
  export type CreateBackupError = BadRequest | NotFound | StackitOpError;
984
398
  /** create a backup */
985
399
  export const createBackup: API.OperationMethod<
@@ -988,8 +402,8 @@ export const createBackup: API.OperationMethod<
988
402
  CreateBackupError,
989
403
  StackitOpContext
990
404
  > = /*@__PURE__*/ API.make(() => ({
991
- input: CreateBackupRequest,
992
- output: CreateBackupResponseItem,
405
+ input: __S(104, __c13, 0) as any as S.Schema<CreateBackupRequest>,
406
+ output: __S(105, __c13, 1) as any as S.Schema<CreateBackupResponseItem>,
993
407
  errors: [BadRequest, NotFound, UnknownStackitError],
994
408
  protocol: StackitProtocol,
995
409
  retry: Retry.Retry,
@@ -1003,8 +417,8 @@ export const createCredentials: API.OperationMethod<
1003
417
  CreateCredentialsError,
1004
418
  StackitOpContext
1005
419
  > = /*@__PURE__*/ API.make(() => ({
1006
- input: CreateCredentialsRequest,
1007
- output: CredentialsResponse,
420
+ input: __S(112, __c14, 0) as any as S.Schema<CreateCredentialsRequest>,
421
+ output: __S(130, __c16, 2) as any as S.Schema<CredentialsResponse>,
1008
422
  errors: [BadRequest, UnknownStackitError],
1009
423
  protocol: StackitProtocol,
1010
424
  retry: Retry.Retry,
@@ -1018,8 +432,8 @@ export const createInstance: API.OperationMethod<
1018
432
  CreateInstanceError,
1019
433
  StackitOpContext
1020
434
  > = /*@__PURE__*/ API.make(() => ({
1021
- input: CreateInstanceRequest,
1022
- output: CreateInstanceResponse,
435
+ input: __S(136, __c17, 0) as any as S.Schema<CreateInstanceRequest>,
436
+ output: __S(152, __c19, 0) as any as S.Schema<CreateInstanceResponse>,
1023
437
  errors: [BadRequest, Conflict, UnknownStackitError],
1024
438
  protocol: StackitProtocol,
1025
439
  retry: Retry.Retry,
@@ -1033,8 +447,8 @@ export const deleteCredentials: API.OperationMethod<
1033
447
  DeleteCredentialsError,
1034
448
  StackitOpContext
1035
449
  > = /*@__PURE__*/ API.make(() => ({
1036
- input: DeleteCredentialsRequest,
1037
- output: DeleteCredentialsResponse,
450
+ input: __S(160, __c20, 0) as any as S.Schema<DeleteCredentialsRequest>,
451
+ output: __S(168, __c21, 0) as any as S.Schema<DeleteCredentialsResponse>,
1038
452
  errors: [BadRequest, NotFound, UnknownStackitError],
1039
453
  protocol: StackitProtocol,
1040
454
  retry: Retry.Retry,
@@ -1048,8 +462,8 @@ export const deleteInstance: API.OperationMethod<
1048
462
  DeleteInstanceError,
1049
463
  StackitOpContext
1050
464
  > = /*@__PURE__*/ API.make(() => ({
1051
- input: DeleteInstanceRequest,
1052
- output: DeleteInstanceResponse,
465
+ input: __S(176, __c22, 0) as any as S.Schema<DeleteInstanceRequest>,
466
+ output: __S(168, __c21, 0) as any as S.Schema<DeleteInstanceResponse>,
1053
467
  errors: [BadRequest, NotFound, UnknownStackitError],
1054
468
  protocol: StackitProtocol,
1055
469
  retry: Retry.Retry,
@@ -1063,8 +477,8 @@ export const downloadBackup: API.OperationMethod<
1063
477
  DownloadBackupError,
1064
478
  StackitOpContext
1065
479
  > = /*@__PURE__*/ API.make(() => ({
1066
- input: DownloadBackupRequest,
1067
- output: DownloadBackupResponse,
480
+ input: __S(184, __c23, 0) as any as S.Schema<DownloadBackupRequest>,
481
+ output: __S(168, __c21, 0) as any as S.Schema<DownloadBackupResponse>,
1068
482
  errors: [BadRequest, NotFound, UnknownStackitError],
1069
483
  protocol: StackitProtocol,
1070
484
  retry: Retry.Retry,
@@ -1078,8 +492,8 @@ export const getCredentials: API.OperationMethod<
1078
492
  GetCredentialsError,
1079
493
  StackitOpContext
1080
494
  > = /*@__PURE__*/ API.make(() => ({
1081
- input: GetCredentialsRequest,
1082
- output: CredentialsResponse,
495
+ input: __S(192, __c24, 0) as any as S.Schema<GetCredentialsRequest>,
496
+ output: __S(130, __c16, 2) as any as S.Schema<CredentialsResponse>,
1083
497
  errors: [BadRequest, NotFound, UnknownStackitError],
1084
498
  protocol: StackitProtocol,
1085
499
  retry: Retry.Retry,
@@ -1093,8 +507,8 @@ export const getInstance: API.OperationMethod<
1093
507
  GetInstanceError,
1094
508
  StackitOpContext
1095
509
  > = /*@__PURE__*/ API.make(() => ({
1096
- input: GetInstanceRequest,
1097
- output: Instance,
510
+ input: __S(0, __c0, 0) as any as S.Schema<GetInstanceRequest>,
511
+ output: __S(9, __c1, 1) as any as S.Schema<Instance>,
1098
512
  errors: [BadRequest, NotFound, UnknownStackitError],
1099
513
  protocol: StackitProtocol,
1100
514
  retry: Retry.Retry,
@@ -1108,8 +522,8 @@ export const getMetrics: API.OperationMethod<
1108
522
  GetMetricsError,
1109
523
  StackitOpContext
1110
524
  > = /*@__PURE__*/ API.make(() => ({
1111
- input: GetMetricsRequest,
1112
- output: GetMetricsResponse,
525
+ input: __S(16, __c2, 0) as any as S.Schema<GetMetricsRequest>,
526
+ output: __S(17, __c2, 1) as any as S.Schema<GetMetricsResponse>,
1113
527
  errors: [BadRequest, NotFound, UnknownStackitError],
1114
528
  protocol: StackitProtocol,
1115
529
  retry: Retry.Retry,
@@ -1123,8 +537,8 @@ export const listBackups: API.OperationMethod<
1123
537
  ListBackupsError,
1124
538
  StackitOpContext
1125
539
  > = /*@__PURE__*/ API.make(() => ({
1126
- input: ListBackupsRequest,
1127
- output: ListBackupsResponse2,
540
+ input: __S(24, __c3, 0) as any as S.Schema<ListBackupsRequest>,
541
+ output: __S(27, __c3, 3) as any as S.Schema<ListBackupsResponse2>,
1128
542
  errors: [BadRequest, NotFound, UnknownStackitError],
1129
543
  protocol: StackitProtocol,
1130
544
  retry: Retry.Retry,
@@ -1138,8 +552,8 @@ export const listCredentials: API.OperationMethod<
1138
552
  ListCredentialsError,
1139
553
  StackitOpContext
1140
554
  > = /*@__PURE__*/ API.make(() => ({
1141
- input: ListCredentialsRequest,
1142
- output: ListCredentialsResponse,
555
+ input: __S(32, __c4, 0) as any as S.Schema<ListCredentialsRequest>,
556
+ output: __S(35, __c4, 3) as any as S.Schema<ListCredentialsResponse>,
1143
557
  errors: [BadRequest, NotFound, UnknownStackitError],
1144
558
  protocol: StackitProtocol,
1145
559
  retry: Retry.Retry,
@@ -1153,8 +567,8 @@ export const listInstances: API.OperationMethod<
1153
567
  ListInstancesError,
1154
568
  StackitOpContext
1155
569
  > = /*@__PURE__*/ API.make(() => ({
1156
- input: ListInstancesRequest,
1157
- output: ListInstancesResponse,
570
+ input: __S(40, __c5, 0) as any as S.Schema<ListInstancesRequest>,
571
+ output: __S(42, __c5, 2) as any as S.Schema<ListInstancesResponse>,
1158
572
  errors: [BadRequest, NotFound, UnknownStackitError],
1159
573
  protocol: StackitProtocol,
1160
574
  retry: Retry.Retry,
@@ -1168,8 +582,8 @@ export const listOfferings: API.OperationMethod<
1168
582
  ListOfferingsError,
1169
583
  StackitOpContext
1170
584
  > = /*@__PURE__*/ API.make(() => ({
1171
- input: ListOfferingsRequest,
1172
- output: ListOfferingsResponse,
585
+ input: __S(48, __c6, 0) as any as S.Schema<ListOfferingsRequest>,
586
+ output: __S(55, __c6, 7) as any as S.Schema<ListOfferingsResponse>,
1173
587
  errors: [BadRequest, NotFound, UnknownStackitError],
1174
588
  protocol: StackitProtocol,
1175
589
  retry: Retry.Retry,
@@ -1183,8 +597,8 @@ export const listRestores: API.OperationMethod<
1183
597
  ListRestoresError,
1184
598
  StackitOpContext
1185
599
  > = /*@__PURE__*/ API.make(() => ({
1186
- input: ListRestoresRequest,
1187
- output: ListRestoresResponse,
600
+ input: __S(56, __c7, 0) as any as S.Schema<ListRestoresRequest>,
601
+ output: __S(59, __c7, 3) as any as S.Schema<ListRestoresResponse>,
1188
602
  errors: [BadRequest, NotFound, UnknownStackitError],
1189
603
  protocol: StackitProtocol,
1190
604
  retry: Retry.Retry,
@@ -1198,8 +612,8 @@ export const partialUpdateInstance: API.OperationMethod<
1198
612
  PartialUpdateInstanceError,
1199
613
  StackitOpContext
1200
614
  > = /*@__PURE__*/ API.make(() => ({
1201
- input: PartialUpdateInstanceRequest,
1202
- output: PartialUpdateInstanceResponse,
615
+ input: __S(64, __c8, 0) as any as S.Schema<PartialUpdateInstanceRequest>,
616
+ output: __S(168, __c21, 0) as any as S.Schema<PartialUpdateInstanceResponse>,
1203
617
  errors: [BadRequest, NotFound, UnknownStackitError],
1204
618
  protocol: StackitProtocol,
1205
619
  retry: Retry.Retry,
@@ -1213,8 +627,8 @@ export const triggerRecreate: API.OperationMethod<
1213
627
  TriggerRecreateError,
1214
628
  StackitOpContext
1215
629
  > = /*@__PURE__*/ API.make(() => ({
1216
- input: TriggerRecreateRequest,
1217
- output: CreateInstanceResponse,
630
+ input: __S(72, __c9, 0) as any as S.Schema<TriggerRecreateRequest>,
631
+ output: __S(152, __c19, 0) as any as S.Schema<CreateInstanceResponse>,
1218
632
  errors: [BadRequest, NotFound, UnknownStackitError],
1219
633
  protocol: StackitProtocol,
1220
634
  retry: Retry.Retry,
@@ -1228,8 +642,8 @@ export const triggerRestart: API.OperationMethod<
1228
642
  TriggerRestartError,
1229
643
  StackitOpContext
1230
644
  > = /*@__PURE__*/ API.make(() => ({
1231
- input: TriggerRestartRequest,
1232
- output: CreateInstanceResponse,
645
+ input: __S(80, __c10, 0) as any as S.Schema<TriggerRestartRequest>,
646
+ output: __S(152, __c19, 0) as any as S.Schema<CreateInstanceResponse>,
1233
647
  errors: [BadRequest, NotFound, UnknownStackitError],
1234
648
  protocol: StackitProtocol,
1235
649
  retry: Retry.Retry,
@@ -1243,8 +657,8 @@ export const triggerRestore: API.OperationMethod<
1243
657
  TriggerRestoreError,
1244
658
  StackitOpContext
1245
659
  > = /*@__PURE__*/ API.make(() => ({
1246
- input: TriggerRestoreRequest,
1247
- output: TriggerRestoreResponse,
660
+ input: __S(88, __c11, 0) as any as S.Schema<TriggerRestoreRequest>,
661
+ output: __S(89, __c11, 1) as any as S.Schema<TriggerRestoreResponse>,
1248
662
  errors: [BadRequest, NotFound, UnknownStackitError],
1249
663
  protocol: StackitProtocol,
1250
664
  retry: Retry.Retry,
@@ -1258,9 +672,650 @@ export const updateBackupsConfig: API.OperationMethod<
1258
672
  UpdateBackupsConfigError,
1259
673
  StackitOpContext
1260
674
  > = /*@__PURE__*/ API.make(() => ({
1261
- input: UpdateBackupsConfigRequest,
1262
- output: UpdateBackupsConfigResponse,
675
+ input: __S(96, __c12, 0) as any as S.Schema<UpdateBackupsConfigRequest>,
676
+ output: __S(97, __c12, 1) as any as S.Schema<UpdateBackupsConfigResponse>,
1263
677
  errors: [BadRequest, NotFound, UnknownStackitError],
1264
678
  protocol: StackitProtocol,
1265
679
  retry: Retry.Retry,
1266
680
  }));
681
+
682
+ // Schema builders: each runs one schema initializer, on that schema's first use.
683
+ function __c0(j: number): any {
684
+ switch (j) {
685
+ case 0:
686
+ return S.suspend(() =>
687
+ S.Struct({
688
+ projectId: S.String.pipe(T.Label()),
689
+ regionId: S.String.pipe(T.Label()),
690
+ instanceId: S.String.pipe(T.Label()),
691
+ }).pipe(
692
+ T.Http({
693
+ method: "GET",
694
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
695
+ code: 200,
696
+ baseUrl: "https://valkey.api.stackit.cloud",
697
+ }),
698
+ ),
699
+ ).annotate({ identifier: "GetInstanceRequest" });
700
+ }
701
+ }
702
+ function __c1(j: number): any {
703
+ switch (j) {
704
+ case 0:
705
+ return S.suspend(() =>
706
+ S.Struct({
707
+ description: S.String,
708
+ state: S.String,
709
+ type: S.String,
710
+ }),
711
+ ).annotate({ identifier: "InstanceLastOperation" });
712
+ case 1:
713
+ return S.suspend(() =>
714
+ S.Struct({
715
+ cfGuid: S.String,
716
+ cfOrganizationGuid: S.String,
717
+ cfSpaceGuid: S.String,
718
+ dashboardUrl: S.String,
719
+ imageUrl: S.String,
720
+ instanceId: S.optional(S.String),
721
+ lastOperation: __S(8, __c1, 0),
722
+ name: S.String,
723
+ offeringName: S.String,
724
+ offeringVersion: S.String,
725
+ parameters: S.Unknown,
726
+ planId: S.String,
727
+ planName: S.String,
728
+ status: S.optional(S.String),
729
+ }),
730
+ ).annotate({ identifier: "Instance" });
731
+ }
732
+ }
733
+ function __c2(j: number): any {
734
+ switch (j) {
735
+ case 0:
736
+ return S.suspend(() =>
737
+ S.Struct({
738
+ projectId: S.String.pipe(T.Label()),
739
+ regionId: S.String.pipe(T.Label()),
740
+ instanceId: S.String.pipe(T.Label()),
741
+ }).pipe(
742
+ T.Http({
743
+ method: "GET",
744
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/metrics",
745
+ code: 200,
746
+ baseUrl: "https://valkey.api.stackit.cloud",
747
+ }),
748
+ ),
749
+ ).annotate({ identifier: "GetMetricsRequest" });
750
+ case 1:
751
+ return S.suspend(() =>
752
+ S.Struct({
753
+ cpuIdleTime: S.optional(S.Number),
754
+ cpuLoadPercent: S.Number,
755
+ cpuSystemTime: S.optional(S.Number),
756
+ cpuUserTime: S.optional(S.Number),
757
+ diskEphemeralTotal: S.Number,
758
+ diskEphemeralUsed: S.Number,
759
+ diskPersistentTotal: S.Number,
760
+ diskPersistentUsed: S.Number,
761
+ load1: S.Number,
762
+ load15: S.Number,
763
+ load5: S.Number,
764
+ memoryTotal: S.Number,
765
+ memoryUsed: S.Number,
766
+ parachuteDiskEphemeralActivated: S.Boolean,
767
+ parachuteDiskEphemeralTotal: S.Number,
768
+ parachuteDiskEphemeralUsed: S.Number,
769
+ parachuteDiskEphemeralUsedPercent: S.Number,
770
+ parachuteDiskEphemeralUsedThreshold: S.Number,
771
+ parachuteDiskPersistentActivated: S.Boolean,
772
+ parachuteDiskPersistentTotal: S.Number,
773
+ parachuteDiskPersistentUsed: S.Number,
774
+ parachuteDiskPersistentUsedPercent: S.Number,
775
+ parachuteDiskPersistentUsedThreshold: S.Number,
776
+ }),
777
+ ).annotate({ identifier: "GetMetricsResponse" });
778
+ }
779
+ }
780
+ function __c3(j: number): any {
781
+ switch (j) {
782
+ case 0:
783
+ return S.suspend(() =>
784
+ S.Struct({
785
+ projectId: S.String.pipe(T.Label()),
786
+ regionId: S.String.pipe(T.Label()),
787
+ instanceId: S.String.pipe(T.Label()),
788
+ }).pipe(
789
+ T.Http({
790
+ method: "GET",
791
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
792
+ code: 200,
793
+ baseUrl: "https://valkey.api.stackit.cloud",
794
+ }),
795
+ ),
796
+ ).annotate({ identifier: "ListBackupsRequest" });
797
+ case 1:
798
+ return S.suspend(() =>
799
+ S.Struct({
800
+ downloadable: S.optional(S.Boolean),
801
+ finished_at: S.String,
802
+ id: S.Number,
803
+ size: S.optional(S.Number),
804
+ status: S.String,
805
+ triggered_at: S.optional(S.String),
806
+ }),
807
+ ).annotate({ identifier: "Backup" });
808
+ case 2:
809
+ return S.Array(__S(25, __c3, 1));
810
+ case 3:
811
+ return S.suspend(() => __S(26, __c3, 2).pipe(T.RawResponseRoot())).annotate({
812
+ identifier: "ListBackupsResponse2",
813
+ });
814
+ }
815
+ }
816
+ function __c4(j: number): any {
817
+ switch (j) {
818
+ case 0:
819
+ return S.suspend(() =>
820
+ S.Struct({
821
+ projectId: S.String.pipe(T.Label()),
822
+ regionId: S.String.pipe(T.Label()),
823
+ instanceId: S.String.pipe(T.Label()),
824
+ }).pipe(
825
+ T.Http({
826
+ method: "GET",
827
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
828
+ code: 200,
829
+ baseUrl: "https://valkey.api.stackit.cloud",
830
+ }),
831
+ ),
832
+ ).annotate({ identifier: "ListCredentialsRequest" });
833
+ case 1:
834
+ return S.suspend(() =>
835
+ S.Struct({
836
+ id: S.String,
837
+ }),
838
+ ).annotate({ identifier: "CredentialsListItem" });
839
+ case 2:
840
+ return S.Array(__S(33, __c4, 1));
841
+ case 3:
842
+ return S.suspend(() =>
843
+ S.Struct({
844
+ credentialsList: __S(34, __c4, 2),
845
+ }),
846
+ ).annotate({ identifier: "ListCredentialsResponse" });
847
+ }
848
+ }
849
+ function __c5(j: number): any {
850
+ switch (j) {
851
+ case 0:
852
+ return S.suspend(() =>
853
+ S.Struct({
854
+ projectId: S.String.pipe(T.Label()),
855
+ regionId: S.String.pipe(T.Label()),
856
+ }).pipe(
857
+ T.Http({
858
+ method: "GET",
859
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
860
+ code: 200,
861
+ baseUrl: "https://valkey.api.stackit.cloud",
862
+ }),
863
+ ),
864
+ ).annotate({ identifier: "ListInstancesRequest" });
865
+ case 1:
866
+ return S.Array(__S(9, __c1, 1));
867
+ case 2:
868
+ return S.suspend(() =>
869
+ S.Struct({
870
+ instances: __S(41, __c5, 1),
871
+ }),
872
+ ).annotate({ identifier: "ListInstancesResponse" });
873
+ }
874
+ }
875
+ function __c6(j: number): any {
876
+ switch (j) {
877
+ case 0:
878
+ return S.suspend(() =>
879
+ S.Struct({
880
+ projectId: S.String.pipe(T.Label()),
881
+ regionId: S.String.pipe(T.Label()),
882
+ }).pipe(
883
+ T.Http({
884
+ method: "GET",
885
+ uri: "/v2/projects/{projectId}/regions/{regionId}/offerings",
886
+ code: 200,
887
+ baseUrl: "https://valkey.api.stackit.cloud",
888
+ }),
889
+ ),
890
+ ).annotate({ identifier: "ListOfferingsRequest" });
891
+ case 1:
892
+ return S.suspend(() =>
893
+ S.Struct({
894
+ description: S.String,
895
+ free: S.Boolean,
896
+ id: S.String,
897
+ name: S.String,
898
+ skuName: S.String,
899
+ }),
900
+ ).annotate({ identifier: "Plan" });
901
+ case 2:
902
+ return S.Array(__S(49, __c6, 1));
903
+ case 3:
904
+ return S.suspend(() =>
905
+ S.Struct({
906
+ parameters: S.Unknown,
907
+ }),
908
+ ).annotate({ identifier: "Schema" });
909
+ case 4:
910
+ return S.suspend(() =>
911
+ S.Struct({
912
+ create: __S(51, __c6, 3),
913
+ update: __S(51, __c6, 3),
914
+ }),
915
+ ).annotate({ identifier: "InstanceSchema" });
916
+ case 5:
917
+ return S.suspend(() =>
918
+ S.Struct({
919
+ description: S.String,
920
+ documentationUrl: S.String,
921
+ imageUrl: S.String,
922
+ latest: S.Boolean,
923
+ lifecycle: S.optional(S.String),
924
+ name: S.String,
925
+ plans: __S(50, __c6, 2),
926
+ quotaCount: S.Number,
927
+ schema: S.optional(__S(52, __c6, 4)),
928
+ version: S.String,
929
+ }),
930
+ ).annotate({ identifier: "Offering" });
931
+ case 6:
932
+ return S.Array(__S(53, __c6, 5));
933
+ case 7:
934
+ return S.suspend(() =>
935
+ S.Struct({
936
+ offerings: __S(54, __c6, 6),
937
+ }),
938
+ ).annotate({ identifier: "ListOfferingsResponse" });
939
+ }
940
+ }
941
+ function __c7(j: number): any {
942
+ switch (j) {
943
+ case 0:
944
+ return S.suspend(() =>
945
+ S.Struct({
946
+ projectId: S.String.pipe(T.Label()),
947
+ regionId: S.String.pipe(T.Label()),
948
+ instanceId: S.String.pipe(T.Label()),
949
+ }).pipe(
950
+ T.Http({
951
+ method: "GET",
952
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restores",
953
+ code: 200,
954
+ baseUrl: "https://valkey.api.stackit.cloud",
955
+ }),
956
+ ),
957
+ ).annotate({ identifier: "ListRestoresRequest" });
958
+ case 1:
959
+ return S.suspend(() =>
960
+ S.Struct({
961
+ backup_id: S.Number,
962
+ finished_at: S.String,
963
+ id: S.Number,
964
+ status: S.String,
965
+ triggered_at: S.optional(S.String),
966
+ }),
967
+ ).annotate({ identifier: "Restore" });
968
+ case 2:
969
+ return S.Array(__S(57, __c7, 1));
970
+ case 3:
971
+ return S.suspend(() =>
972
+ S.Struct({
973
+ instanceRestores: __S(58, __c7, 2),
974
+ }),
975
+ ).annotate({ identifier: "ListRestoresResponse" });
976
+ }
977
+ }
978
+ function __c8(j: number): any {
979
+ switch (j) {
980
+ case 0:
981
+ return S.suspend(() =>
982
+ S.Struct({
983
+ projectId: S.String.pipe(T.Label()),
984
+ regionId: S.String.pipe(T.Label()),
985
+ instanceId: S.String.pipe(T.Label()),
986
+ instanceName: S.optional(S.String),
987
+ parameters: S.optional(__S(144, __c18, 0)),
988
+ planId: S.optional(S.String),
989
+ }).pipe(
990
+ T.Http({
991
+ method: "PATCH",
992
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
993
+ code: 200,
994
+ baseUrl: "https://valkey.api.stackit.cloud",
995
+ }),
996
+ ),
997
+ ).annotate({ identifier: "PartialUpdateInstanceRequest" });
998
+ }
999
+ }
1000
+ function __c9(j: number): any {
1001
+ switch (j) {
1002
+ case 0:
1003
+ return S.suspend(() =>
1004
+ S.Struct({
1005
+ projectId: S.String.pipe(T.Label()),
1006
+ regionId: S.String.pipe(T.Label()),
1007
+ instanceId: S.String.pipe(T.Label()),
1008
+ }).pipe(
1009
+ T.Http({
1010
+ method: "PATCH",
1011
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/recreate",
1012
+ code: 200,
1013
+ baseUrl: "https://valkey.api.stackit.cloud",
1014
+ }),
1015
+ ),
1016
+ ).annotate({ identifier: "TriggerRecreateRequest" });
1017
+ }
1018
+ }
1019
+ function __c10(j: number): any {
1020
+ switch (j) {
1021
+ case 0:
1022
+ return S.suspend(() =>
1023
+ S.Struct({
1024
+ projectId: S.String.pipe(T.Label()),
1025
+ regionId: S.String.pipe(T.Label()),
1026
+ instanceId: S.String.pipe(T.Label()),
1027
+ }).pipe(
1028
+ T.Http({
1029
+ method: "PATCH",
1030
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/restart",
1031
+ code: 200,
1032
+ baseUrl: "https://valkey.api.stackit.cloud",
1033
+ }),
1034
+ ),
1035
+ ).annotate({ identifier: "TriggerRestartRequest" });
1036
+ }
1037
+ }
1038
+ function __c11(j: number): any {
1039
+ switch (j) {
1040
+ case 0:
1041
+ return S.suspend(() =>
1042
+ S.Struct({
1043
+ projectId: S.String.pipe(T.Label()),
1044
+ regionId: S.String.pipe(T.Label()),
1045
+ instanceId: S.String.pipe(T.Label()),
1046
+ backupId: S.Number.pipe(T.Label()),
1047
+ }).pipe(
1048
+ T.Http({
1049
+ method: "POST",
1050
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/restore",
1051
+ code: 200,
1052
+ baseUrl: "https://valkey.api.stackit.cloud",
1053
+ }),
1054
+ ),
1055
+ ).annotate({ identifier: "TriggerRestoreRequest" });
1056
+ case 1:
1057
+ return S.suspend(() =>
1058
+ S.Struct({
1059
+ id: S.Number,
1060
+ }),
1061
+ ).annotate({ identifier: "TriggerRestoreResponse" });
1062
+ }
1063
+ }
1064
+ function __c12(j: number): any {
1065
+ switch (j) {
1066
+ case 0:
1067
+ return S.suspend(() =>
1068
+ S.Struct({
1069
+ projectId: S.String.pipe(T.Label()),
1070
+ regionId: S.String.pipe(T.Label()),
1071
+ instanceId: S.String.pipe(T.Label()),
1072
+ encryption_key: S.optional(S.String),
1073
+ }).pipe(
1074
+ T.Http({
1075
+ method: "PATCH",
1076
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups-config",
1077
+ code: 200,
1078
+ baseUrl: "https://valkey.api.stackit.cloud",
1079
+ }),
1080
+ ),
1081
+ ).annotate({ identifier: "UpdateBackupsConfigRequest" });
1082
+ case 1:
1083
+ return S.suspend(() =>
1084
+ S.Struct({
1085
+ message: S.String,
1086
+ }),
1087
+ ).annotate({ identifier: "UpdateBackupsConfigResponse" });
1088
+ }
1089
+ }
1090
+ function __c13(j: number): any {
1091
+ switch (j) {
1092
+ case 0:
1093
+ return S.suspend(() =>
1094
+ S.Struct({
1095
+ projectId: S.String.pipe(T.Label()),
1096
+ regionId: S.String.pipe(T.Label()),
1097
+ instanceId: S.String.pipe(T.Label()),
1098
+ }).pipe(
1099
+ T.Http({
1100
+ method: "POST",
1101
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups",
1102
+ code: 200,
1103
+ baseUrl: "https://valkey.api.stackit.cloud",
1104
+ }),
1105
+ ),
1106
+ ).annotate({ identifier: "CreateBackupRequest" });
1107
+ case 1:
1108
+ return S.suspend(() =>
1109
+ S.Struct({
1110
+ id: S.Number,
1111
+ message: S.String,
1112
+ }),
1113
+ ).annotate({ identifier: "CreateBackupResponseItem" });
1114
+ }
1115
+ }
1116
+ function __c14(j: number): any {
1117
+ switch (j) {
1118
+ case 0:
1119
+ return S.suspend(() =>
1120
+ S.Struct({
1121
+ projectId: S.String.pipe(T.Label()),
1122
+ regionId: S.String.pipe(T.Label()),
1123
+ instanceId: S.String.pipe(T.Label()),
1124
+ parameters: S.optional(S.Unknown),
1125
+ }).pipe(
1126
+ T.Http({
1127
+ method: "POST",
1128
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials",
1129
+ code: 200,
1130
+ baseUrl: "https://valkey.api.stackit.cloud",
1131
+ }),
1132
+ ),
1133
+ ).annotate({ identifier: "CreateCredentialsRequest" });
1134
+ }
1135
+ }
1136
+ function __c15(j: number): any {
1137
+ switch (j) {
1138
+ case 0:
1139
+ return S.Array(S.String);
1140
+ }
1141
+ }
1142
+ function __c16(j: number): any {
1143
+ switch (j) {
1144
+ case 0:
1145
+ return S.suspend(() =>
1146
+ S.Struct({
1147
+ host: S.String,
1148
+ hosts: S.optional(__S(120, __c15, 0)),
1149
+ load_balanced_host: S.optional(S.String),
1150
+ password: S.String.pipe(T.SensitiveValue({})),
1151
+ port: S.optional(S.Number),
1152
+ uri: S.optional(S.String),
1153
+ username: S.String,
1154
+ }),
1155
+ ).annotate({ identifier: "Credentials" });
1156
+ case 1:
1157
+ return S.suspend(() =>
1158
+ S.Struct({
1159
+ credentials: __S(128, __c16, 0),
1160
+ }),
1161
+ ).annotate({ identifier: "RawCredentials" });
1162
+ case 2:
1163
+ return S.suspend(() =>
1164
+ S.Struct({
1165
+ id: S.String,
1166
+ raw: S.optional(__S(129, __c16, 1)),
1167
+ uri: S.String,
1168
+ }),
1169
+ ).annotate({ identifier: "CredentialsResponse" });
1170
+ }
1171
+ }
1172
+ function __c17(j: number): any {
1173
+ switch (j) {
1174
+ case 0:
1175
+ return S.suspend(() =>
1176
+ S.Struct({
1177
+ projectId: S.String.pipe(T.Label()),
1178
+ regionId: S.String.pipe(T.Label()),
1179
+ instanceName: S.String,
1180
+ parameters: S.optional(__S(144, __c18, 0)),
1181
+ planId: S.String,
1182
+ }).pipe(
1183
+ T.Http({
1184
+ method: "POST",
1185
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances",
1186
+ code: 200,
1187
+ baseUrl: "https://valkey.api.stackit.cloud",
1188
+ }),
1189
+ ),
1190
+ ).annotate({ identifier: "CreateInstanceRequest" });
1191
+ }
1192
+ }
1193
+ function __c18(j: number): any {
1194
+ switch (j) {
1195
+ case 0:
1196
+ return S.suspend(() =>
1197
+ S.Struct({
1198
+ down_after_milliseconds: S.optional(S.Number.pipe(T.Body("down-after-milliseconds"))),
1199
+ enable_monitoring: S.optional(S.Boolean),
1200
+ failover_timeout: S.optional(S.Number.pipe(T.Body("failover-timeout"))),
1201
+ graphite: S.optional(S.String),
1202
+ lazyfree_lazy_eviction: S.optional(S.String.pipe(T.Body("lazyfree-lazy-eviction"))),
1203
+ lazyfree_lazy_expire: S.optional(S.String.pipe(T.Body("lazyfree-lazy-expire"))),
1204
+ lua_time_limit: S.optional(S.Number.pipe(T.Body("lua-time-limit"))),
1205
+ max_disk_threshold: S.optional(S.Number),
1206
+ maxclients: S.optional(S.Number),
1207
+ maxmemory_policy: S.optional(S.String.pipe(T.Body("maxmemory-policy"))),
1208
+ maxmemory_samples: S.optional(S.Number.pipe(T.Body("maxmemory-samples"))),
1209
+ metrics_frequency: S.optional(S.Number),
1210
+ metrics_prefix: S.optional(S.String),
1211
+ min_replicas_to_write: S.optional(S.Number.pipe(T.Body("min-replicas-to-write"))),
1212
+ min_replicas_max_lag: S.optional(S.Number),
1213
+ monitoring_instance_id: S.optional(S.String),
1214
+ notify_keyspace_events: S.optional(S.String.pipe(T.Body("notify-keyspace-events"))),
1215
+ repl_backlog_size: S.optional(S.String.pipe(T.Body("repl-backlog-size"))),
1216
+ sgw_acl: S.optional(S.String),
1217
+ snapshot: S.optional(S.String),
1218
+ syslog: S.optional(__S(120, __c15, 0)),
1219
+ }),
1220
+ ).annotate({ identifier: "InstanceParameters" });
1221
+ }
1222
+ }
1223
+ function __c19(j: number): any {
1224
+ switch (j) {
1225
+ case 0:
1226
+ return S.suspend(() =>
1227
+ S.Struct({
1228
+ instanceId: S.String,
1229
+ }),
1230
+ ).annotate({ identifier: "CreateInstanceResponse" });
1231
+ }
1232
+ }
1233
+ function __c20(j: number): any {
1234
+ switch (j) {
1235
+ case 0:
1236
+ return S.suspend(() =>
1237
+ S.Struct({
1238
+ projectId: S.String.pipe(T.Label()),
1239
+ regionId: S.String.pipe(T.Label()),
1240
+ instanceId: S.String.pipe(T.Label()),
1241
+ credentialsId: S.String.pipe(T.Label()),
1242
+ }).pipe(
1243
+ T.Http({
1244
+ method: "DELETE",
1245
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
1246
+ code: 200,
1247
+ baseUrl: "https://valkey.api.stackit.cloud",
1248
+ }),
1249
+ ),
1250
+ ).annotate({ identifier: "DeleteCredentialsRequest" });
1251
+ }
1252
+ }
1253
+ function __c21(j: number): any {
1254
+ switch (j) {
1255
+ case 0:
1256
+ return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteCredentialsResponse" });
1257
+ }
1258
+ }
1259
+ function __c22(j: number): any {
1260
+ switch (j) {
1261
+ case 0:
1262
+ return S.suspend(() =>
1263
+ S.Struct({
1264
+ projectId: S.String.pipe(T.Label()),
1265
+ regionId: S.String.pipe(T.Label()),
1266
+ instanceId: S.String.pipe(T.Label()),
1267
+ }).pipe(
1268
+ T.Http({
1269
+ method: "DELETE",
1270
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}",
1271
+ code: 200,
1272
+ baseUrl: "https://valkey.api.stackit.cloud",
1273
+ }),
1274
+ ),
1275
+ ).annotate({ identifier: "DeleteInstanceRequest" });
1276
+ }
1277
+ }
1278
+ function __c23(j: number): any {
1279
+ switch (j) {
1280
+ case 0:
1281
+ return S.suspend(() =>
1282
+ S.Struct({
1283
+ projectId: S.String.pipe(T.Label()),
1284
+ regionId: S.String.pipe(T.Label()),
1285
+ instanceId: S.String.pipe(T.Label()),
1286
+ backupId: S.Number.pipe(T.Label()),
1287
+ }).pipe(
1288
+ T.Http({
1289
+ method: "GET",
1290
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/backups/{backupId}/download",
1291
+ code: 200,
1292
+ baseUrl: "https://valkey.api.stackit.cloud",
1293
+ }),
1294
+ ),
1295
+ ).annotate({ identifier: "DownloadBackupRequest" });
1296
+ }
1297
+ }
1298
+ function __c24(j: number): any {
1299
+ switch (j) {
1300
+ case 0:
1301
+ return S.suspend(() =>
1302
+ S.Struct({
1303
+ projectId: S.String.pipe(T.Label()),
1304
+ regionId: S.String.pipe(T.Label()),
1305
+ instanceId: S.String.pipe(T.Label()),
1306
+ credentialsId: S.String.pipe(T.Label()),
1307
+ }).pipe(
1308
+ T.Http({
1309
+ method: "GET",
1310
+ uri: "/v2/projects/{projectId}/regions/{regionId}/instances/{instanceId}/credentials/{credentialsId}",
1311
+ code: 200,
1312
+ baseUrl: "https://valkey.api.stackit.cloud",
1313
+ }),
1314
+ ),
1315
+ ).annotate({ identifier: "GetCredentialsRequest" });
1316
+ }
1317
+ }
1318
+ // Schema table: entry i is schema j of builder f, made on first reach.
1319
+ function __S(i: number, f: (j: number) => unknown, j: number): any {
1320
+ return (__s[i] ??= __L.at(f, j));
1321
+ }