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

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