@distilled.cloud/stackit 1.0.0-rc.19 → 1.0.0-rc.21

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 (369) hide show
  1. package/README.md +13 -2
  2. package/lib/.lazy.json +1 -1
  3. package/lib/_bundle/sdk.js +1 -1
  4. package/lib/_bundle/sdk.js.map +1 -1
  5. package/lib/credentials.d.ts +17 -3
  6. package/lib/credentials.d.ts.map +1 -1
  7. package/lib/credentials.js +1 -1
  8. package/lib/errors.d.ts +13 -8
  9. package/lib/errors.d.ts.map +1 -1
  10. package/lib/errors.js +1 -1
  11. package/lib/index.d.ts +9 -6
  12. package/lib/index.d.ts.map +1 -1
  13. package/lib/index.js +0 -1
  14. package/lib/pagination.d.ts.map +1 -1
  15. package/lib/protocol.d.ts +33 -12
  16. package/lib/protocol.d.ts.map +1 -1
  17. package/lib/retry.d.ts.map +1 -1
  18. package/lib/services/alb.d.ts +8 -0
  19. package/lib/services/alb.d.ts.map +1 -1
  20. package/lib/services/alb.js +26 -26
  21. package/lib/services/alb.js.map +1 -1
  22. package/lib/services/alb_waf.d.ts +8 -0
  23. package/lib/services/alb_waf.d.ts.map +1 -1
  24. package/lib/services/alb_waf.js +31 -31
  25. package/lib/services/alb_waf.js.map +1 -1
  26. package/lib/services/authorization.d.ts +13 -0
  27. package/lib/services/authorization.d.ts.map +1 -1
  28. package/lib/services/authorization.js +1 -1
  29. package/lib/services/authorization.js.map +1 -1
  30. package/lib/services/automation.d.ts +23 -0
  31. package/lib/services/automation.d.ts.map +1 -1
  32. package/lib/services/automation.js +23 -22
  33. package/lib/services/automation.js.map +1 -1
  34. package/lib/services/cdn.d.ts +39 -1
  35. package/lib/services/cdn.d.ts.map +1 -1
  36. package/lib/services/cdn.js +31 -30
  37. package/lib/services/cdn.js.map +1 -1
  38. package/lib/services/certificates.d.ts +6 -0
  39. package/lib/services/certificates.d.ts.map +1 -1
  40. package/lib/services/certificates.js +1 -1
  41. package/lib/services/certificates.js.map +1 -1
  42. package/lib/services/cost.d.ts +19 -0
  43. package/lib/services/cost.d.ts.map +1 -1
  44. package/lib/services/cost.js +1 -1
  45. package/lib/services/cost.js.map +1 -1
  46. package/lib/services/dns.d.ts +16 -0
  47. package/lib/services/dns.d.ts.map +1 -1
  48. package/lib/services/dns.js +40 -40
  49. package/lib/services/dns.js.map +1 -1
  50. package/lib/services/iaas.d.ts +17 -0
  51. package/lib/services/iaas.d.ts.map +1 -1
  52. package/lib/services/iaas.js +181 -180
  53. package/lib/services/iaas.js.map +1 -1
  54. package/lib/services/identity.d.ts +19 -0
  55. package/lib/services/identity.d.ts.map +1 -1
  56. package/lib/services/identity.js +1 -1
  57. package/lib/services/identity.js.map +1 -1
  58. package/lib/services/index.d.ts +0 -10
  59. package/lib/services/index.d.ts.map +1 -1
  60. package/lib/services/index.js +0 -10
  61. package/lib/services/kms.d.ts +16 -0
  62. package/lib/services/kms.d.ts.map +1 -1
  63. package/lib/services/kms.js +41 -40
  64. package/lib/services/kms.js.map +1 -1
  65. package/lib/services/load_balancer.d.ts +8 -0
  66. package/lib/services/load_balancer.d.ts.map +1 -1
  67. package/lib/services/load_balancer.js +27 -27
  68. package/lib/services/load_balancer.js.map +1 -1
  69. package/lib/services/logme.d.ts +14 -1
  70. package/lib/services/logme.d.ts.map +1 -1
  71. package/lib/services/logme.js +36 -35
  72. package/lib/services/logme.js.map +1 -1
  73. package/lib/services/logs.d.ts +6 -0
  74. package/lib/services/logs.d.ts.map +1 -1
  75. package/lib/services/logs.js +34 -34
  76. package/lib/services/logs.js.map +1 -1
  77. package/lib/services/mariadb.d.ts +14 -1
  78. package/lib/services/mariadb.d.ts.map +1 -1
  79. package/lib/services/mariadb.js +37 -36
  80. package/lib/services/mariadb.js.map +1 -1
  81. package/lib/services/model_experiments.d.ts +20 -0
  82. package/lib/services/model_experiments.d.ts.map +1 -1
  83. package/lib/services/model_experiments.js +1 -1
  84. package/lib/services/model_experiments.js.map +1 -1
  85. package/lib/services/model_serving.d.ts +13 -0
  86. package/lib/services/model_serving.d.ts.map +1 -1
  87. package/lib/services/model_serving.js +1 -1
  88. package/lib/services/model_serving.js.map +1 -1
  89. package/lib/services/mongodb_flex.d.ts +19 -0
  90. package/lib/services/mongodb_flex.d.ts.map +1 -1
  91. package/lib/services/mongodb_flex.js +42 -41
  92. package/lib/services/mongodb_flex.js.map +1 -1
  93. package/lib/services/object_storage.d.ts +34 -0
  94. package/lib/services/object_storage.d.ts.map +1 -1
  95. package/lib/services/object_storage.js +38 -37
  96. package/lib/services/object_storage.js.map +1 -1
  97. package/lib/services/observability.d.ts +34 -8
  98. package/lib/services/observability.d.ts.map +1 -1
  99. package/lib/services/observability.js +159 -158
  100. package/lib/services/observability.js.map +1 -1
  101. package/lib/services/opensearch.d.ts +14 -1
  102. package/lib/services/opensearch.d.ts.map +1 -1
  103. package/lib/services/opensearch.js +37 -36
  104. package/lib/services/opensearch.js.map +1 -1
  105. package/lib/services/pim.d.ts +22 -0
  106. package/lib/services/pim.d.ts.map +1 -1
  107. package/lib/services/pim.js +31 -30
  108. package/lib/services/pim.js.map +1 -1
  109. package/lib/services/postgres_flex.d.ts +37 -0
  110. package/lib/services/postgres_flex.d.ts.map +1 -1
  111. package/lib/services/postgres_flex.js +48 -47
  112. package/lib/services/postgres_flex.js.map +1 -1
  113. package/lib/services/rabbitmq.d.ts +14 -1
  114. package/lib/services/rabbitmq.d.ts.map +1 -1
  115. package/lib/services/rabbitmq.js +38 -37
  116. package/lib/services/rabbitmq.js.map +1 -1
  117. package/lib/services/registry.d.ts +37 -0
  118. package/lib/services/registry.d.ts.map +1 -1
  119. package/lib/services/registry.js +1 -1
  120. package/lib/services/registry.js.map +1 -1
  121. package/lib/services/resource_manager.d.ts +24 -0
  122. package/lib/services/resource_manager.d.ts.map +1 -1
  123. package/lib/services/resource_manager.js +36 -35
  124. package/lib/services/resource_manager.js.map +1 -1
  125. package/lib/services/run_command.d.ts +12 -0
  126. package/lib/services/run_command.d.ts.map +1 -1
  127. package/lib/services/run_command.js +1 -1
  128. package/lib/services/run_command.js.map +1 -1
  129. package/lib/services/scf.d.ts +13 -0
  130. package/lib/services/scf.d.ts.map +1 -1
  131. package/lib/services/scf.js +40 -39
  132. package/lib/services/scf.js.map +1 -1
  133. package/lib/services/secrets_manager.d.ts +21 -0
  134. package/lib/services/secrets_manager.d.ts.map +1 -1
  135. package/lib/services/secrets_manager.js +42 -41
  136. package/lib/services/secrets_manager.js.map +1 -1
  137. package/lib/services/server_backup.d.ts +6 -0
  138. package/lib/services/server_backup.d.ts.map +1 -1
  139. package/lib/services/server_backup.js +28 -28
  140. package/lib/services/server_backup.js.map +1 -1
  141. package/lib/services/server_update.d.ts +6 -0
  142. package/lib/services/server_update.d.ts.map +1 -1
  143. package/lib/services/server_update.js +1 -1
  144. package/lib/services/server_update.js.map +1 -1
  145. package/lib/services/service_account.d.ts +28 -0
  146. package/lib/services/service_account.d.ts.map +1 -1
  147. package/lib/services/service_account.js +30 -29
  148. package/lib/services/service_account.js.map +1 -1
  149. package/lib/services/service_enablement.d.ts +14 -0
  150. package/lib/services/service_enablement.d.ts.map +1 -1
  151. package/lib/services/service_enablement.js +1 -1
  152. package/lib/services/service_enablement.js.map +1 -1
  153. package/lib/services/sfs.d.ts +33 -0
  154. package/lib/services/sfs.d.ts.map +1 -1
  155. package/lib/services/sfs.js +46 -46
  156. package/lib/services/sfs.js.map +1 -1
  157. package/lib/services/ske.d.ts +8 -3
  158. package/lib/services/ske.d.ts.map +1 -1
  159. package/lib/services/ske.js +25 -25
  160. package/lib/services/ske.js.map +1 -1
  161. package/lib/services/sqlserverflex.d.ts +34 -0
  162. package/lib/services/sqlserverflex.d.ts.map +1 -1
  163. package/lib/services/sqlserverflex.js +46 -45
  164. package/lib/services/sqlserverflex.js.map +1 -1
  165. package/lib/services/stackit_marketplace.d.ts +26 -1
  166. package/lib/services/stackit_marketplace.d.ts.map +1 -1
  167. package/lib/services/stackit_marketplace.js +26 -25
  168. package/lib/services/stackit_marketplace.js.map +1 -1
  169. package/lib/services/telemetry_link.d.ts +12 -0
  170. package/lib/services/telemetry_link.d.ts.map +1 -1
  171. package/lib/services/telemetry_link.js +35 -34
  172. package/lib/services/telemetry_link.js.map +1 -1
  173. package/lib/services/telemetry_router.d.ts +49 -3
  174. package/lib/services/telemetry_router.d.ts.map +1 -1
  175. package/lib/services/telemetry_router.js +33 -31
  176. package/lib/services/telemetry_router.js.map +1 -1
  177. package/lib/services/ufw.d.ts +15 -0
  178. package/lib/services/ufw.d.ts.map +1 -1
  179. package/lib/services/ufw.js +1 -1
  180. package/lib/services/ufw.js.map +1 -1
  181. package/lib/services/valkey.d.ts +14 -1
  182. package/lib/services/valkey.d.ts.map +1 -1
  183. package/lib/services/valkey.js +37 -36
  184. package/lib/services/valkey.js.map +1 -1
  185. package/lib/services/vpn.d.ts +43 -1
  186. package/lib/services/vpn.d.ts.map +1 -1
  187. package/lib/services/vpn.js +43 -42
  188. package/lib/services/vpn.js.map +1 -1
  189. package/lib/services.lazy/alb.js +1 -1
  190. package/lib/services.lazy/alb_waf.js +1 -1
  191. package/lib/services.lazy/automation.js +1 -1
  192. package/lib/services.lazy/cdn.js +1 -1
  193. package/lib/services.lazy/dns.js +1 -1
  194. package/lib/services.lazy/iaas.js +1 -1
  195. package/lib/services.lazy/index.js +2 -2
  196. package/lib/services.lazy/kms.js +1 -1
  197. package/lib/services.lazy/load_balancer.js +1 -1
  198. package/lib/services.lazy/logme.js +1 -1
  199. package/lib/services.lazy/logs.js +1 -1
  200. package/lib/services.lazy/mariadb.js +1 -1
  201. package/lib/services.lazy/mongodb_flex.js +1 -1
  202. package/lib/services.lazy/object_storage.js +1 -1
  203. package/lib/services.lazy/observability.js +1 -1
  204. package/lib/services.lazy/opensearch.js +1 -1
  205. package/lib/services.lazy/pim.js +1 -1
  206. package/lib/services.lazy/postgres_flex.js +1 -1
  207. package/lib/services.lazy/rabbitmq.js +1 -1
  208. package/lib/services.lazy/resource_manager.js +1 -1
  209. package/lib/services.lazy/scf.js +1 -1
  210. package/lib/services.lazy/secrets_manager.js +1 -1
  211. package/lib/services.lazy/server_backup.js +1 -1
  212. package/lib/services.lazy/service_account.js +1 -1
  213. package/lib/services.lazy/sfs.js +1 -1
  214. package/lib/services.lazy/ske.js +1 -1
  215. package/lib/services.lazy/sqlserverflex.js +1 -1
  216. package/lib/services.lazy/stackit_marketplace.js +1 -1
  217. package/lib/services.lazy/telemetry_link.js +1 -1
  218. package/lib/services.lazy/telemetry_router.js +1 -1
  219. package/lib/services.lazy/valkey.js +1 -1
  220. package/lib/services.lazy/vpn.js +1 -1
  221. package/lib/traits.d.ts.map +1 -1
  222. package/lib/{services → unstable-services}/dremio.d.ts +19 -4
  223. package/lib/unstable-services/dremio.d.ts.map +1 -0
  224. package/lib/unstable-services/dremio.js +2 -0
  225. package/lib/unstable-services/dremio.js.map +1 -0
  226. package/lib/{services → unstable-services}/edge.d.ts +13 -1
  227. package/lib/unstable-services/edge.d.ts.map +1 -0
  228. package/lib/unstable-services/edge.js +29 -0
  229. package/lib/unstable-services/edge.js.map +1 -0
  230. package/lib/unstable-services/functions.d.ts.map +1 -0
  231. package/lib/unstable-services/functions.js +28 -0
  232. package/lib/unstable-services/functions.js.map +1 -0
  233. package/lib/{services → unstable-services}/git.d.ts +42 -1
  234. package/lib/unstable-services/git.d.ts.map +1 -0
  235. package/lib/unstable-services/git.js +43 -0
  236. package/lib/unstable-services/git.js.map +1 -0
  237. package/lib/unstable-services/index.d.ts +11 -0
  238. package/lib/unstable-services/index.d.ts.map +1 -0
  239. package/lib/unstable-services/index.js +10 -0
  240. package/lib/{services → unstable-services}/intake.d.ts +8 -2
  241. package/lib/unstable-services/intake.d.ts.map +1 -0
  242. package/lib/unstable-services/intake.js +31 -0
  243. package/lib/unstable-services/intake.js.map +1 -0
  244. package/lib/{services → unstable-services}/lb_ip_lists.d.ts +9 -1
  245. package/lib/unstable-services/lb_ip_lists.d.ts.map +1 -0
  246. package/lib/unstable-services/lb_ip_lists.js +2 -0
  247. package/lib/unstable-services/lb_ip_lists.js.map +1 -0
  248. package/lib/{services → unstable-services}/mailout.d.ts +95 -126
  249. package/lib/unstable-services/mailout.d.ts.map +1 -0
  250. package/lib/unstable-services/mailout.js +30 -0
  251. package/lib/unstable-services/mailout.js.map +1 -0
  252. package/lib/{services → unstable-services}/pubsub.d.ts +10 -0
  253. package/lib/unstable-services/pubsub.d.ts.map +1 -0
  254. package/lib/unstable-services/pubsub.js +39 -0
  255. package/lib/unstable-services/pubsub.js.map +1 -0
  256. package/lib/{services → unstable-services}/sca.d.ts +73 -23
  257. package/lib/unstable-services/sca.d.ts.map +1 -0
  258. package/lib/unstable-services/sca.js +41 -0
  259. package/lib/unstable-services/sca.js.map +1 -0
  260. package/lib/{services → unstable-services}/workflows.d.ts +29 -1
  261. package/lib/unstable-services/workflows.d.ts.map +1 -0
  262. package/lib/unstable-services/workflows.js +30 -0
  263. package/lib/unstable-services/workflows.js.map +1 -0
  264. package/lib/unstable-services.lazy/dremio.js +1 -0
  265. package/lib/{services.lazy → unstable-services.lazy}/edge.js +1 -1
  266. package/lib/{services.lazy → unstable-services.lazy}/functions.js +1 -1
  267. package/lib/{services.lazy → unstable-services.lazy}/git.js +2 -2
  268. package/lib/unstable-services.lazy/index.js +3 -0
  269. package/lib/{services.lazy → unstable-services.lazy}/intake.js +1 -1
  270. package/lib/unstable-services.lazy/lb_ip_lists.js +1 -0
  271. package/lib/unstable-services.lazy/mailout.js +4 -0
  272. package/lib/{services.lazy → unstable-services.lazy}/pubsub.js +1 -1
  273. package/lib/{services.lazy → unstable-services.lazy}/sca.js +2 -2
  274. package/lib/{services.lazy → unstable-services.lazy}/workflows.js +1 -1
  275. package/package.json +12 -6
  276. package/src/credentials.ts +44 -7
  277. package/src/errors.ts +14 -5
  278. package/src/index.ts +9 -6
  279. package/src/protocol.ts +108 -126
  280. package/src/services/alb.ts +35 -14
  281. package/src/services/alb_waf.ts +41 -17
  282. package/src/services/authorization.ts +121 -75
  283. package/src/services/automation.ts +151 -76
  284. package/src/services/cdn.ts +284 -187
  285. package/src/services/certificates.ts +17 -6
  286. package/src/services/cost.ts +75 -17
  287. package/src/services/dns.ts +219 -149
  288. package/src/services/iaas.ts +888 -708
  289. package/src/services/identity.ts +109 -51
  290. package/src/services/index.ts +0 -10
  291. package/src/services/kms.ts +185 -118
  292. package/src/services/load_balancer.ts +35 -14
  293. package/src/services/logme.ts +181 -123
  294. package/src/services/logs.ts +43 -19
  295. package/src/services/mariadb.ts +179 -121
  296. package/src/services/model_experiments.ts +122 -64
  297. package/src/services/model_serving.ts +102 -58
  298. package/src/services/mongodb_flex.ts +196 -131
  299. package/src/services/object_storage.ts +226 -106
  300. package/src/services/observability.ts +880 -709
  301. package/src/services/opensearch.ts +182 -124
  302. package/src/services/pim.ts +166 -104
  303. package/src/services/postgres_flex.ts +291 -170
  304. package/src/services/rabbitmq.ts +188 -130
  305. package/src/services/registry.ts +146 -40
  306. package/src/services/resource_manager.ts +180 -110
  307. package/src/services/run_command.ts +73 -37
  308. package/src/services/scf.ts +178 -119
  309. package/src/services/secrets_manager.ts +198 -129
  310. package/src/services/server_backup.ts +39 -17
  311. package/src/services/server_update.ts +31 -13
  312. package/src/services/service_account.ts +180 -85
  313. package/src/services/service_enablement.ts +64 -28
  314. package/src/services/sfs.ts +265 -163
  315. package/src/services/ske.ts +39 -20
  316. package/src/services/sqlserverflex.ts +290 -175
  317. package/src/services/stackit_marketplace.ts +138 -70
  318. package/src/services/telemetry_link.ts +151 -100
  319. package/src/services/telemetry_router.ts +241 -109
  320. package/src/services/ufw.ts +97 -50
  321. package/src/services/valkey.ts +179 -121
  322. package/src/services/vpn.ts +305 -194
  323. package/src/{services → unstable-services}/dremio.ts +113 -74
  324. package/src/{services → unstable-services}/edge.ts +113 -72
  325. package/src/{services → unstable-services}/functions.ts +31 -16
  326. package/src/{services → unstable-services}/git.ts +285 -133
  327. package/src/unstable-services/index.ts +11 -0
  328. package/src/{services → unstable-services}/intake.ts +41 -20
  329. package/src/{services → unstable-services}/lb_ip_lists.ts +20 -7
  330. package/src/{services → unstable-services}/mailout.ts +290 -381
  331. package/src/{services → unstable-services}/pubsub.ts +47 -19
  332. package/src/{services → unstable-services}/sca.ts +349 -172
  333. package/src/{services → unstable-services}/workflows.ts +149 -76
  334. package/lib/index.lazy.js +0 -7
  335. package/lib/index.lazy.js.map +0 -1
  336. package/lib/services/dremio.d.ts.map +0 -1
  337. package/lib/services/dremio.js +0 -2
  338. package/lib/services/dremio.js.map +0 -1
  339. package/lib/services/edge.d.ts.map +0 -1
  340. package/lib/services/edge.js +0 -29
  341. package/lib/services/edge.js.map +0 -1
  342. package/lib/services/functions.d.ts.map +0 -1
  343. package/lib/services/functions.js +0 -28
  344. package/lib/services/functions.js.map +0 -1
  345. package/lib/services/git.d.ts.map +0 -1
  346. package/lib/services/git.js +0 -41
  347. package/lib/services/git.js.map +0 -1
  348. package/lib/services/intake.d.ts.map +0 -1
  349. package/lib/services/intake.js +0 -31
  350. package/lib/services/intake.js.map +0 -1
  351. package/lib/services/lb_ip_lists.d.ts.map +0 -1
  352. package/lib/services/lb_ip_lists.js +0 -2
  353. package/lib/services/lb_ip_lists.js.map +0 -1
  354. package/lib/services/mailout.d.ts.map +0 -1
  355. package/lib/services/mailout.js +0 -33
  356. package/lib/services/mailout.js.map +0 -1
  357. package/lib/services/pubsub.d.ts.map +0 -1
  358. package/lib/services/pubsub.js +0 -39
  359. package/lib/services/pubsub.js.map +0 -1
  360. package/lib/services/sca.d.ts.map +0 -1
  361. package/lib/services/sca.js +0 -35
  362. package/lib/services/sca.js.map +0 -1
  363. package/lib/services/workflows.d.ts.map +0 -1
  364. package/lib/services/workflows.js +0 -29
  365. package/lib/services/workflows.js.map +0 -1
  366. package/lib/services.lazy/dremio.js +0 -1
  367. package/lib/services.lazy/lb_ip_lists.js +0 -1
  368. package/lib/services.lazy/mailout.js +0 -4
  369. /package/lib/{services → unstable-services}/functions.d.ts +0 -0
@@ -4,7 +4,7 @@ import * as C from "@distilled.cloud/core/category";
4
4
  import * as S from "@distilled.cloud/core/schema-lite";
5
5
  import * as __L from "@distilled.cloud/core/schema-lite";
6
6
  import type * as Redacted from "effect/Redacted";
7
- import { UnknownStackitError } from "../errors.ts";
7
+ import { StackitServiceErrors } from "../errors.ts";
8
8
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
9
9
  import * as Retry from "../retry.ts";
10
10
  import * as T from "../traits.ts";
@@ -31,27 +31,48 @@ export class BadRequest
31
31
  /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
32
32
  code: S.Number,
33
33
  message: S.String,
34
+ body: /*@__PURE__*/ S.optional(
35
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(2, __c0, 2)), S.String]),
36
+ ),
37
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
34
38
  }).pipe(C.withBadRequestError),
35
39
  [{ status: 400 }],
36
- ) {}
40
+ )
41
+ {
42
+ declare readonly body?: Error | string;
43
+ }
37
44
 
38
45
  export class Conflict
39
46
  extends /*@__PURE__*/ T.applyErrorMatchers(
40
47
  /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
41
48
  code: S.Number,
42
49
  message: S.String,
50
+ body: /*@__PURE__*/ S.optional(
51
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(2, __c0, 2)), S.String]),
52
+ ),
53
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
43
54
  }).pipe(C.withConflictError),
44
55
  [{ status: 409 }],
45
- ) {}
56
+ )
57
+ {
58
+ declare readonly body?: Error | string;
59
+ }
46
60
 
47
61
  export class NotFound
48
62
  extends /*@__PURE__*/ T.applyErrorMatchers(
49
63
  /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
50
64
  code: S.Number,
51
65
  message: S.String,
66
+ body: /*@__PURE__*/ S.optional(
67
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(2, __c0, 2)), S.String]),
68
+ ),
69
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
52
70
  }).pipe(C.withBadRequestError),
53
71
  [{ status: 404 }],
54
- ) {}
72
+ )
73
+ {
74
+ declare readonly body?: Error | string;
75
+ }
55
76
 
56
77
  export type CloneInstanceRequestRegion = "eu01" | "eu02";
57
78
  export interface CloneInstanceRequest {
@@ -622,6 +643,14 @@ export interface UpdateUserRequest {
622
643
  roles: UpdateUserRequestRolesList;
623
644
  }
624
645
  export interface UpdateUserResponse {}
646
+ export type ErrorFieldsValueList = Array<string>;
647
+ export type ErrorFieldsMap = { [key: string]: ErrorFieldsValueList | undefined };
648
+ export interface Error {
649
+ code?: number | undefined;
650
+ fields?: ErrorFieldsMap | undefined;
651
+ message?: string | undefined;
652
+ type?: string | undefined;
653
+ }
625
654
  export type CloneInstanceError = BadRequest | NotFound | StackitOpError;
626
655
  /** Clone instance Clone an instance via PIT restore<br/> Note that the Timestamp is a RFC3339 standard and uses by default UTC time format<br/> As an example a valid timestamp look like "2023-04-20T15:05:15Z" */
627
656
  export const cloneInstance: API.OperationMethod<
@@ -630,9 +659,10 @@ export const cloneInstance: API.OperationMethod<
630
659
  CloneInstanceError,
631
660
  StackitOpContext
632
661
  > = /*@__PURE__*/ API.make(() => ({
633
- input: __S(304, __c19, 0) as any as S.Schema<CloneInstanceRequest>,
634
- output: __S(305, __c19, 1) as any as S.Schema<CloneInstanceResponse>,
635
- errors: [BadRequest, NotFound, UnknownStackitError],
662
+ input: __S(320, __c20, 0) as any as S.Schema<CloneInstanceRequest>,
663
+ output: __S(321, __c20, 1) as any as S.Schema<CloneInstanceResponse>,
664
+ errors: [BadRequest, NotFound],
665
+ serviceErrors: StackitServiceErrors,
636
666
  protocol: StackitProtocol,
637
667
  retry: Retry.Retry,
638
668
  telemetry: TELEMETRY,
@@ -647,9 +677,10 @@ export const createInstance: API.OperationMethod<
647
677
  CreateInstanceError,
648
678
  StackitOpContext
649
679
  > = /*@__PURE__*/ API.make(() => ({
650
- input: __S(320, __c20, 0) as any as S.Schema<CreateInstanceRequest>,
651
- output: __S(321, __c20, 1) as any as S.Schema<CreateInstanceResponse>,
652
- errors: [BadRequest, NotFound, UnknownStackitError],
680
+ input: __S(336, __c21, 0) as any as S.Schema<CreateInstanceRequest>,
681
+ output: __S(337, __c21, 1) as any as S.Schema<CreateInstanceResponse>,
682
+ errors: [BadRequest, NotFound],
683
+ serviceErrors: StackitServiceErrors,
653
684
  protocol: StackitProtocol,
654
685
  retry: Retry.Retry,
655
686
  telemetry: TELEMETRY,
@@ -666,7 +697,8 @@ export const createUser: API.OperationMethod<
666
697
  > = /*@__PURE__*/ API.make(() => ({
667
698
  input: __S(384, __c24, 0) as any as S.Schema<CreateUserRequest>,
668
699
  output: __S(385, __c24, 1) as any as S.Schema<CreateUserResponse>,
669
- errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
700
+ errors: [BadRequest, NotFound, Conflict],
701
+ serviceErrors: StackitServiceErrors,
670
702
  protocol: StackitProtocol,
671
703
  retry: Retry.Retry,
672
704
  telemetry: TELEMETRY,
@@ -683,7 +715,8 @@ export const deleteInstance: API.OperationMethod<
683
715
  > = /*@__PURE__*/ API.make(() => ({
684
716
  input: __S(416, __c26, 0) as any as S.Schema<DeleteInstanceRequest>,
685
717
  output: __S(432, __c27, 0) as any as S.Schema<DeleteInstanceResponse>,
686
- errors: [BadRequest, NotFound, UnknownStackitError],
718
+ errors: [BadRequest, NotFound],
719
+ serviceErrors: StackitServiceErrors,
687
720
  protocol: StackitProtocol,
688
721
  retry: Retry.Retry,
689
722
  telemetry: TELEMETRY,
@@ -700,7 +733,8 @@ export const deleteUser: API.OperationMethod<
700
733
  > = /*@__PURE__*/ API.make(() => ({
701
734
  input: __S(448, __c28, 0) as any as S.Schema<DeleteUserRequest>,
702
735
  output: __S(432, __c27, 0) as any as S.Schema<DeleteUserResponse>,
703
- errors: [BadRequest, NotFound, UnknownStackitError],
736
+ errors: [BadRequest, NotFound],
737
+ serviceErrors: StackitServiceErrors,
704
738
  protocol: StackitProtocol,
705
739
  retry: Retry.Retry,
706
740
  telemetry: TELEMETRY,
@@ -717,7 +751,8 @@ export const getBackup: API.OperationMethod<
717
751
  > = /*@__PURE__*/ API.make(() => ({
718
752
  input: __S(464, __c29, 0) as any as S.Schema<GetBackupRequest>,
719
753
  output: __S(465, __c29, 1) as any as S.Schema<GetBackupResponse>,
720
- errors: [BadRequest, NotFound, UnknownStackitError],
754
+ errors: [BadRequest, NotFound],
755
+ serviceErrors: StackitServiceErrors,
721
756
  protocol: StackitProtocol,
722
757
  retry: Retry.Retry,
723
758
  telemetry: TELEMETRY,
@@ -734,7 +769,8 @@ export const getInstance: API.OperationMethod<
734
769
  > = /*@__PURE__*/ API.make(() => ({
735
770
  input: __S(496, __c31, 0) as any as S.Schema<GetInstanceRequest>,
736
771
  output: __S(514, __c32, 2) as any as S.Schema<InstanceResponse>,
737
- errors: [BadRequest, UnknownStackitError],
772
+ errors: [BadRequest],
773
+ serviceErrors: StackitServiceErrors,
738
774
  protocol: StackitProtocol,
739
775
  retry: Retry.Retry,
740
776
  telemetry: TELEMETRY,
@@ -749,9 +785,10 @@ export const getUser: API.OperationMethod<
749
785
  GetUserError,
750
786
  StackitOpContext
751
787
  > = /*@__PURE__*/ API.make(() => ({
752
- input: __S(0, __c0, 0) as any as S.Schema<GetUserRequest>,
753
- output: __S(2, __c0, 2) as any as S.Schema<GetUserResponse>,
754
- errors: [BadRequest, NotFound, UnknownStackitError],
788
+ input: __S(16, __c1, 0) as any as S.Schema<GetUserRequest>,
789
+ output: __S(18, __c1, 2) as any as S.Schema<GetUserResponse>,
790
+ errors: [BadRequest, NotFound],
791
+ serviceErrors: StackitServiceErrors,
755
792
  protocol: StackitProtocol,
756
793
  retry: Retry.Retry,
757
794
  telemetry: TELEMETRY,
@@ -766,9 +803,10 @@ export const listAdvisorSlowQueries: API.OperationMethod<
766
803
  ListAdvisorSlowQueriesError,
767
804
  StackitOpContext
768
805
  > = /*@__PURE__*/ API.make(() => ({
769
- input: __S(16, __c1, 0) as any as S.Schema<ListAdvisorSlowQueriesRequest>,
770
- output: __S(19, __c1, 3) as any as S.Schema<HandlersInstancesSlowQueriesResponse>,
771
- errors: [BadRequest, NotFound, UnknownStackitError],
806
+ input: __S(32, __c2, 0) as any as S.Schema<ListAdvisorSlowQueriesRequest>,
807
+ output: __S(35, __c2, 3) as any as S.Schema<HandlersInstancesSlowQueriesResponse>,
808
+ errors: [BadRequest, NotFound],
809
+ serviceErrors: StackitServiceErrors,
772
810
  protocol: StackitProtocol,
773
811
  retry: Retry.Retry,
774
812
  telemetry: TELEMETRY,
@@ -783,9 +821,10 @@ export const listBackups: API.OperationMethod<
783
821
  ListBackupsError,
784
822
  StackitOpContext
785
823
  > = /*@__PURE__*/ API.make(() => ({
786
- input: __S(32, __c2, 0) as any as S.Schema<ListBackupsRequest>,
787
- output: __S(34, __c2, 2) as any as S.Schema<ListBackupsResponse>,
788
- errors: [BadRequest, NotFound, UnknownStackitError],
824
+ input: __S(48, __c3, 0) as any as S.Schema<ListBackupsRequest>,
825
+ output: __S(50, __c3, 2) as any as S.Schema<ListBackupsResponse>,
826
+ errors: [BadRequest, NotFound],
827
+ serviceErrors: StackitServiceErrors,
789
828
  protocol: StackitProtocol,
790
829
  retry: Retry.Retry,
791
830
  telemetry: TELEMETRY,
@@ -800,9 +839,10 @@ export const listFlavors: API.OperationMethod<
800
839
  ListFlavorsError,
801
840
  StackitOpContext
802
841
  > = /*@__PURE__*/ API.make(() => ({
803
- input: __S(48, __c3, 0) as any as S.Schema<ListFlavorsRequest>,
804
- output: __S(51, __c3, 3) as any as S.Schema<ListFlavorsResponse>,
805
- errors: [BadRequest, UnknownStackitError],
842
+ input: __S(64, __c4, 0) as any as S.Schema<ListFlavorsRequest>,
843
+ output: __S(67, __c4, 3) as any as S.Schema<ListFlavorsResponse>,
844
+ errors: [BadRequest],
845
+ serviceErrors: StackitServiceErrors,
806
846
  protocol: StackitProtocol,
807
847
  retry: Retry.Retry,
808
848
  telemetry: TELEMETRY,
@@ -817,9 +857,10 @@ export const listInstances: API.OperationMethod<
817
857
  ListInstancesError,
818
858
  StackitOpContext
819
859
  > = /*@__PURE__*/ API.make(() => ({
820
- input: __S(64, __c4, 0) as any as S.Schema<ListInstancesRequest>,
821
- output: __S(67, __c4, 3) as any as S.Schema<ListInstancesResponse>,
822
- errors: [BadRequest, UnknownStackitError],
860
+ input: __S(80, __c5, 0) as any as S.Schema<ListInstancesRequest>,
861
+ output: __S(83, __c5, 3) as any as S.Schema<ListInstancesResponse>,
862
+ errors: [BadRequest],
863
+ serviceErrors: StackitServiceErrors,
823
864
  protocol: StackitProtocol,
824
865
  retry: Retry.Retry,
825
866
  telemetry: TELEMETRY,
@@ -834,9 +875,10 @@ export const listMetrics: API.OperationMethod<
834
875
  ListMetricsError,
835
876
  StackitOpContext
836
877
  > = /*@__PURE__*/ API.make(() => ({
837
- input: __S(80, __c5, 0) as any as S.Schema<ListMetricsRequest>,
838
- output: __S(87, __c5, 7) as any as S.Schema<ListMetricsResponse>,
839
- errors: [BadRequest, NotFound, UnknownStackitError],
878
+ input: __S(96, __c6, 0) as any as S.Schema<ListMetricsRequest>,
879
+ output: __S(103, __c6, 7) as any as S.Schema<ListMetricsResponse>,
880
+ errors: [BadRequest, NotFound],
881
+ serviceErrors: StackitServiceErrors,
840
882
  protocol: StackitProtocol,
841
883
  retry: Retry.Retry,
842
884
  telemetry: TELEMETRY,
@@ -851,9 +893,10 @@ export const listRestoreJobs: API.OperationMethod<
851
893
  ListRestoreJobsError,
852
894
  StackitOpContext
853
895
  > = /*@__PURE__*/ API.make(() => ({
854
- input: __S(96, __c6, 0) as any as S.Schema<ListRestoreJobsRequest>,
855
- output: __S(98, __c6, 2) as any as S.Schema<ListRestoreJobsResponse>,
856
- errors: [BadRequest, NotFound, UnknownStackitError],
896
+ input: __S(112, __c7, 0) as any as S.Schema<ListRestoreJobsRequest>,
897
+ output: __S(114, __c7, 2) as any as S.Schema<ListRestoreJobsResponse>,
898
+ errors: [BadRequest, NotFound],
899
+ serviceErrors: StackitServiceErrors,
857
900
  protocol: StackitProtocol,
858
901
  retry: Retry.Retry,
859
902
  telemetry: TELEMETRY,
@@ -868,9 +911,10 @@ export const listStorages: API.OperationMethod<
868
911
  ListStoragesError,
869
912
  StackitOpContext
870
913
  > = /*@__PURE__*/ API.make(() => ({
871
- input: __S(128, __c8, 0) as any as S.Schema<ListStoragesRequest>,
872
- output: __S(130, __c8, 2) as any as S.Schema<ListStoragesResponse>,
873
- errors: [BadRequest, NotFound, UnknownStackitError],
914
+ input: __S(144, __c9, 0) as any as S.Schema<ListStoragesRequest>,
915
+ output: __S(146, __c9, 2) as any as S.Schema<ListStoragesResponse>,
916
+ errors: [BadRequest, NotFound],
917
+ serviceErrors: StackitServiceErrors,
874
918
  protocol: StackitProtocol,
875
919
  retry: Retry.Retry,
876
920
  telemetry: TELEMETRY,
@@ -885,9 +929,10 @@ export const listSuggestedIndexes: API.OperationMethod<
885
929
  ListSuggestedIndexesError,
886
930
  StackitOpContext
887
931
  > = /*@__PURE__*/ API.make(() => ({
888
- input: __S(144, __c9, 0) as any as S.Schema<ListSuggestedIndexesRequest>,
889
- output: __S(155, __c9, 11) as any as S.Schema<HandlersInstancesSuggestedIndexesResponse>,
890
- errors: [BadRequest, NotFound, UnknownStackitError],
932
+ input: __S(160, __c10, 0) as any as S.Schema<ListSuggestedIndexesRequest>,
933
+ output: __S(171, __c10, 11) as any as S.Schema<HandlersInstancesSuggestedIndexesResponse>,
934
+ errors: [BadRequest, NotFound],
935
+ serviceErrors: StackitServiceErrors,
891
936
  protocol: StackitProtocol,
892
937
  retry: Retry.Retry,
893
938
  telemetry: TELEMETRY,
@@ -902,9 +947,10 @@ export const listUsers: API.OperationMethod<
902
947
  ListUsersError,
903
948
  StackitOpContext
904
949
  > = /*@__PURE__*/ API.make(() => ({
905
- input: __S(160, __c10, 0) as any as S.Schema<ListUsersRequest>,
906
- output: __S(163, __c10, 3) as any as S.Schema<ListUsersResponse>,
907
- errors: [BadRequest, NotFound, UnknownStackitError],
950
+ input: __S(176, __c11, 0) as any as S.Schema<ListUsersRequest>,
951
+ output: __S(179, __c11, 3) as any as S.Schema<ListUsersResponse>,
952
+ errors: [BadRequest, NotFound],
953
+ serviceErrors: StackitServiceErrors,
908
954
  protocol: StackitProtocol,
909
955
  retry: Retry.Retry,
910
956
  telemetry: TELEMETRY,
@@ -919,9 +965,10 @@ export const listVersions: API.OperationMethod<
919
965
  ListVersionsError,
920
966
  StackitOpContext
921
967
  > = /*@__PURE__*/ API.make(() => ({
922
- input: __S(176, __c11, 0) as any as S.Schema<ListVersionsRequest>,
923
- output: __S(177, __c11, 1) as any as S.Schema<ListVersionsResponse>,
924
- errors: [BadRequest, UnknownStackitError],
968
+ input: __S(192, __c12, 0) as any as S.Schema<ListVersionsRequest>,
969
+ output: __S(193, __c12, 1) as any as S.Schema<ListVersionsResponse>,
970
+ errors: [BadRequest],
971
+ serviceErrors: StackitServiceErrors,
925
972
  protocol: StackitProtocol,
926
973
  retry: Retry.Retry,
927
974
  telemetry: TELEMETRY,
@@ -936,9 +983,10 @@ export const partialUpdateInstance: API.OperationMethod<
936
983
  PartialUpdateInstanceError,
937
984
  StackitOpContext
938
985
  > = /*@__PURE__*/ API.make(() => ({
939
- input: __S(192, __c12, 0) as any as S.Schema<PartialUpdateInstanceRequest>,
986
+ input: __S(208, __c13, 0) as any as S.Schema<PartialUpdateInstanceRequest>,
940
987
  output: __S(514, __c32, 2) as any as S.Schema<UpdateInstanceResponse>,
941
- errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
988
+ errors: [BadRequest, NotFound, Conflict],
989
+ serviceErrors: StackitServiceErrors,
942
990
  protocol: StackitProtocol,
943
991
  retry: Retry.Retry,
944
992
  telemetry: TELEMETRY,
@@ -953,9 +1001,10 @@ export const partialUpdateUser: API.OperationMethod<
953
1001
  PartialUpdateUserError,
954
1002
  StackitOpContext
955
1003
  > = /*@__PURE__*/ API.make(() => ({
956
- input: __S(208, __c13, 0) as any as S.Schema<PartialUpdateUserRequest>,
1004
+ input: __S(224, __c14, 0) as any as S.Schema<PartialUpdateUserRequest>,
957
1005
  output: __S(432, __c27, 0) as any as S.Schema<PartialUpdateUserResponse>,
958
- errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1006
+ errors: [BadRequest, NotFound, Conflict],
1007
+ serviceErrors: StackitServiceErrors,
959
1008
  protocol: StackitProtocol,
960
1009
  retry: Retry.Retry,
961
1010
  telemetry: TELEMETRY,
@@ -970,9 +1019,10 @@ export const resetUser: API.OperationMethod<
970
1019
  ResetUserError,
971
1020
  StackitOpContext
972
1021
  > = /*@__PURE__*/ API.make(() => ({
973
- input: __S(224, __c14, 0) as any as S.Schema<ResetUserRequest>,
1022
+ input: __S(240, __c15, 0) as any as S.Schema<ResetUserRequest>,
974
1023
  output: __S(400, __c25, 0) as any as S.Schema<User>,
975
- errors: [BadRequest, NotFound, UnknownStackitError],
1024
+ errors: [BadRequest, NotFound],
1025
+ serviceErrors: StackitServiceErrors,
976
1026
  protocol: StackitProtocol,
977
1027
  retry: Retry.Retry,
978
1028
  telemetry: TELEMETRY,
@@ -987,9 +1037,10 @@ export const restoreInstance: API.OperationMethod<
987
1037
  RestoreInstanceError,
988
1038
  StackitOpContext
989
1039
  > = /*@__PURE__*/ API.make(() => ({
990
- input: __S(240, __c15, 0) as any as S.Schema<RestoreInstanceRequest>,
991
- output: __S(241, __c15, 1) as any as S.Schema<RestoreInstanceResponse>,
992
- errors: [BadRequest, NotFound, UnknownStackitError],
1040
+ input: __S(256, __c16, 0) as any as S.Schema<RestoreInstanceRequest>,
1041
+ output: __S(257, __c16, 1) as any as S.Schema<RestoreInstanceResponse>,
1042
+ errors: [BadRequest, NotFound],
1043
+ serviceErrors: StackitServiceErrors,
993
1044
  protocol: StackitProtocol,
994
1045
  retry: Retry.Retry,
995
1046
  telemetry: TELEMETRY,
@@ -1004,9 +1055,10 @@ export const updateBackupSchedule: API.OperationMethod<
1004
1055
  UpdateBackupScheduleError,
1005
1056
  StackitOpContext
1006
1057
  > = /*@__PURE__*/ API.make(() => ({
1007
- input: __S(256, __c16, 0) as any as S.Schema<UpdateBackupScheduleRequest>,
1008
- output: __S(257, __c16, 1) as any as S.Schema<BackupSchedule>,
1009
- errors: [BadRequest, NotFound, UnknownStackitError],
1058
+ input: __S(272, __c17, 0) as any as S.Schema<UpdateBackupScheduleRequest>,
1059
+ output: __S(273, __c17, 1) as any as S.Schema<BackupSchedule>,
1060
+ errors: [BadRequest, NotFound],
1061
+ serviceErrors: StackitServiceErrors,
1010
1062
  protocol: StackitProtocol,
1011
1063
  retry: Retry.Retry,
1012
1064
  telemetry: TELEMETRY,
@@ -1021,9 +1073,10 @@ export const updateInstance: API.OperationMethod<
1021
1073
  UpdateInstanceError,
1022
1074
  StackitOpContext
1023
1075
  > = /*@__PURE__*/ API.make(() => ({
1024
- input: __S(272, __c17, 0) as any as S.Schema<UpdateInstanceRequest>,
1076
+ input: __S(288, __c18, 0) as any as S.Schema<UpdateInstanceRequest>,
1025
1077
  output: __S(514, __c32, 2) as any as S.Schema<UpdateInstanceResponse>,
1026
- errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1078
+ errors: [BadRequest, NotFound, Conflict],
1079
+ serviceErrors: StackitServiceErrors,
1027
1080
  protocol: StackitProtocol,
1028
1081
  retry: Retry.Retry,
1029
1082
  telemetry: TELEMETRY,
@@ -1038,9 +1091,10 @@ export const updateUser: API.OperationMethod<
1038
1091
  UpdateUserError,
1039
1092
  StackitOpContext
1040
1093
  > = /*@__PURE__*/ API.make(() => ({
1041
- input: __S(288, __c18, 0) as any as S.Schema<UpdateUserRequest>,
1094
+ input: __S(304, __c19, 0) as any as S.Schema<UpdateUserRequest>,
1042
1095
  output: __S(432, __c27, 0) as any as S.Schema<UpdateUserResponse>,
1043
- errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1096
+ errors: [BadRequest, NotFound, Conflict],
1097
+ serviceErrors: StackitServiceErrors,
1044
1098
  protocol: StackitProtocol,
1045
1099
  retry: Retry.Retry,
1046
1100
  telemetry: TELEMETRY,
@@ -1049,6 +1103,23 @@ export const updateUser: API.OperationMethod<
1049
1103
 
1050
1104
  // Schema builders: each runs one schema initializer, on that schema's first use.
1051
1105
  function __c0(j: number): any {
1106
+ switch (j) {
1107
+ case 0:
1108
+ return S.Array(S.String);
1109
+ case 1:
1110
+ return S.Record(S.String, __S(0, __c0, 0));
1111
+ case 2:
1112
+ return S.suspend(() =>
1113
+ S.Struct({
1114
+ code: S.optional(S.Number),
1115
+ fields: S.optional(__S(1, __c0, 1)),
1116
+ message: S.optional(S.String),
1117
+ type: S.optional(S.String),
1118
+ }),
1119
+ ).annotate({ identifier: "Error" });
1120
+ }
1121
+ }
1122
+ function __c1(j: number): any {
1052
1123
  switch (j) {
1053
1124
  case 0:
1054
1125
  return S.suspend(() =>
@@ -1073,19 +1144,19 @@ function __c0(j: number): any {
1073
1144
  host: S.optional(S.String),
1074
1145
  id: S.optional(S.String),
1075
1146
  port: S.optional(S.Number),
1076
- roles: S.optional(__S(336, __c21, 0)),
1147
+ roles: S.optional(__S(0, __c0, 0)),
1077
1148
  username: S.optional(S.String),
1078
1149
  }),
1079
1150
  ).annotate({ identifier: "InstanceResponseUser" });
1080
1151
  case 2:
1081
1152
  return S.suspend(() =>
1082
1153
  S.Struct({
1083
- item: S.optional(__S(1, __c0, 1)),
1154
+ item: S.optional(__S(17, __c1, 1)),
1084
1155
  }),
1085
1156
  ).annotate({ identifier: "GetUserResponse" });
1086
1157
  }
1087
1158
  }
1088
- function __c1(j: number): any {
1159
+ function __c2(j: number): any {
1089
1160
  switch (j) {
1090
1161
  case 0:
1091
1162
  return S.suspend(() =>
@@ -1110,16 +1181,16 @@ function __c1(j: number): any {
1110
1181
  }),
1111
1182
  ).annotate({ identifier: "SlowQuery" });
1112
1183
  case 2:
1113
- return S.Array(__S(17, __c1, 1));
1184
+ return S.Array(__S(33, __c2, 1));
1114
1185
  case 3:
1115
1186
  return S.suspend(() =>
1116
1187
  S.Struct({
1117
- slowQueries: S.optional(__S(18, __c1, 2)),
1188
+ slowQueries: S.optional(__S(34, __c2, 2)),
1118
1189
  }),
1119
1190
  ).annotate({ identifier: "HandlersInstancesSlowQueriesResponse" });
1120
1191
  }
1121
1192
  }
1122
- function __c2(j: number): any {
1193
+ function __c3(j: number): any {
1123
1194
  switch (j) {
1124
1195
  case 0:
1125
1196
  return S.suspend(() =>
@@ -1142,12 +1213,12 @@ function __c2(j: number): any {
1142
1213
  return S.suspend(() =>
1143
1214
  S.Struct({
1144
1215
  count: S.optional(S.Number),
1145
- items: S.optional(__S(33, __c2, 1)),
1216
+ items: S.optional(__S(49, __c3, 1)),
1146
1217
  }),
1147
1218
  ).annotate({ identifier: "ListBackupsResponse" });
1148
1219
  }
1149
1220
  }
1150
- function __c3(j: number): any {
1221
+ function __c4(j: number): any {
1151
1222
  switch (j) {
1152
1223
  case 0:
1153
1224
  return S.suspend(() =>
@@ -1166,7 +1237,7 @@ function __c3(j: number): any {
1166
1237
  case 1:
1167
1238
  return S.suspend(() =>
1168
1239
  S.Struct({
1169
- categories: S.optional(__S(336, __c21, 0)),
1240
+ categories: S.optional(__S(0, __c0, 0)),
1170
1241
  cpu: S.optional(S.Number),
1171
1242
  description: S.optional(S.String),
1172
1243
  id: S.optional(S.String),
@@ -1174,16 +1245,16 @@ function __c3(j: number): any {
1174
1245
  }),
1175
1246
  ).annotate({ identifier: "InstanceFlavor" });
1176
1247
  case 2:
1177
- return S.Array(__S(49, __c3, 1));
1248
+ return S.Array(__S(65, __c4, 1));
1178
1249
  case 3:
1179
1250
  return S.suspend(() =>
1180
1251
  S.Struct({
1181
- flavors: S.optional(__S(50, __c3, 2)),
1252
+ flavors: S.optional(__S(66, __c4, 2)),
1182
1253
  }),
1183
1254
  ).annotate({ identifier: "ListFlavorsResponse" });
1184
1255
  }
1185
1256
  }
1186
- function __c4(j: number): any {
1257
+ function __c5(j: number): any {
1187
1258
  switch (j) {
1188
1259
  case 0:
1189
1260
  return S.suspend(() =>
@@ -1209,17 +1280,17 @@ function __c4(j: number): any {
1209
1280
  }),
1210
1281
  ).annotate({ identifier: "InstanceListInstance" });
1211
1282
  case 2:
1212
- return S.Array(__S(65, __c4, 1));
1283
+ return S.Array(__S(81, __c5, 1));
1213
1284
  case 3:
1214
1285
  return S.suspend(() =>
1215
1286
  S.Struct({
1216
1287
  count: S.optional(S.Number),
1217
- items: S.optional(__S(66, __c4, 2)),
1288
+ items: S.optional(__S(82, __c5, 2)),
1218
1289
  }),
1219
1290
  ).annotate({ identifier: "ListInstancesResponse" });
1220
1291
  }
1221
1292
  }
1222
- function __c5(j: number): any {
1293
+ function __c6(j: number): any {
1223
1294
  switch (j) {
1224
1295
  case 0:
1225
1296
  return S.suspend(() =>
@@ -1249,35 +1320,35 @@ function __c5(j: number): any {
1249
1320
  }),
1250
1321
  ).annotate({ identifier: "DataPoint" });
1251
1322
  case 2:
1252
- return S.Array(__S(81, __c5, 1));
1323
+ return S.Array(__S(97, __c6, 1));
1253
1324
  case 3:
1254
1325
  return S.suspend(() =>
1255
1326
  S.Struct({
1256
- datapoints: S.optional(__S(82, __c5, 2)),
1327
+ datapoints: S.optional(__S(98, __c6, 2)),
1257
1328
  name: S.optional(S.String),
1258
1329
  units: S.optional(S.String),
1259
1330
  }),
1260
1331
  ).annotate({ identifier: "HostMetric" });
1261
1332
  case 4:
1262
- return S.Array(__S(83, __c5, 3));
1333
+ return S.Array(__S(99, __c6, 3));
1263
1334
  case 5:
1264
1335
  return S.suspend(() =>
1265
1336
  S.Struct({
1266
- hostMetrics: S.optional(__S(84, __c5, 4)),
1337
+ hostMetrics: S.optional(__S(100, __c6, 4)),
1267
1338
  id: S.optional(S.String),
1268
1339
  }),
1269
1340
  ).annotate({ identifier: "Host" });
1270
1341
  case 6:
1271
- return S.Array(__S(85, __c5, 5));
1342
+ return S.Array(__S(101, __c6, 5));
1272
1343
  case 7:
1273
1344
  return S.suspend(() =>
1274
1345
  S.Struct({
1275
- hosts: S.optional(__S(86, __c5, 6)),
1346
+ hosts: S.optional(__S(102, __c6, 6)),
1276
1347
  }),
1277
1348
  ).annotate({ identifier: "ListMetricsResponse" });
1278
1349
  }
1279
1350
  }
1280
- function __c6(j: number): any {
1351
+ function __c7(j: number): any {
1281
1352
  switch (j) {
1282
1353
  case 0:
1283
1354
  return S.suspend(() =>
@@ -1295,16 +1366,16 @@ function __c6(j: number): any {
1295
1366
  ),
1296
1367
  ).annotate({ identifier: "ListRestoreJobsRequest" });
1297
1368
  case 1:
1298
- return S.Array(__S(112, __c7, 0));
1369
+ return S.Array(__S(128, __c8, 0));
1299
1370
  case 2:
1300
1371
  return S.suspend(() =>
1301
1372
  S.Struct({
1302
- items: S.optional(__S(97, __c6, 1)),
1373
+ items: S.optional(__S(113, __c7, 1)),
1303
1374
  }),
1304
1375
  ).annotate({ identifier: "ListRestoreJobsResponse" });
1305
1376
  }
1306
1377
  }
1307
- function __c7(j: number): any {
1378
+ function __c8(j: number): any {
1308
1379
  switch (j) {
1309
1380
  case 0:
1310
1381
  return S.suspend(() =>
@@ -1318,7 +1389,7 @@ function __c7(j: number): any {
1318
1389
  ).annotate({ identifier: "RestoreInstanceStatus" });
1319
1390
  }
1320
1391
  }
1321
- function __c8(j: number): any {
1392
+ function __c9(j: number): any {
1322
1393
  switch (j) {
1323
1394
  case 0:
1324
1395
  return S.suspend(() =>
@@ -1345,13 +1416,13 @@ function __c8(j: number): any {
1345
1416
  case 2:
1346
1417
  return S.suspend(() =>
1347
1418
  S.Struct({
1348
- storageClasses: S.optional(__S(336, __c21, 0)),
1349
- storageRange: S.optional(__S(129, __c8, 1)),
1419
+ storageClasses: S.optional(__S(0, __c0, 0)),
1420
+ storageRange: S.optional(__S(145, __c9, 1)),
1350
1421
  }),
1351
1422
  ).annotate({ identifier: "ListStoragesResponse" });
1352
1423
  }
1353
1424
  }
1354
- function __c9(j: number): any {
1425
+ function __c10(j: number): any {
1355
1426
  switch (j) {
1356
1427
  case 0:
1357
1428
  return S.suspend(() =>
@@ -1382,13 +1453,13 @@ function __c9(j: number): any {
1382
1453
  case 3:
1383
1454
  return S.suspend(() =>
1384
1455
  S.Struct({
1385
- predicates: S.optional(__S(145, __c9, 1)),
1456
+ predicates: S.optional(__S(161, __c10, 1)),
1386
1457
  raw: S.optional(S.String),
1387
- stats: S.optional(__S(146, __c9, 2)),
1458
+ stats: S.optional(__S(162, __c10, 2)),
1388
1459
  }),
1389
1460
  ).annotate({ identifier: "MongodbatlasOperation" });
1390
1461
  case 4:
1391
- return S.Array(__S(147, __c9, 3));
1462
+ return S.Array(__S(163, __c10, 3));
1392
1463
  case 5:
1393
1464
  return S.suspend(() =>
1394
1465
  S.Struct({
@@ -1397,37 +1468,37 @@ function __c9(j: number): any {
1397
1468
  id: S.optional(S.String),
1398
1469
  inefficiencyScore: S.optional(S.Number),
1399
1470
  namespace: S.optional(S.String),
1400
- operations: S.optional(__S(148, __c9, 4)),
1471
+ operations: S.optional(__S(164, __c10, 4)),
1401
1472
  }),
1402
1473
  ).annotate({ identifier: "Shape" });
1403
1474
  case 6:
1404
- return S.Array(__S(149, __c9, 5));
1475
+ return S.Array(__S(165, __c10, 5));
1405
1476
  case 7:
1406
1477
  return S.Record(S.String, S.Number);
1407
1478
  case 8:
1408
- return S.Array(__S(151, __c9, 7));
1479
+ return S.Array(__S(167, __c10, 7));
1409
1480
  case 9:
1410
1481
  return S.suspend(() =>
1411
1482
  S.Struct({
1412
1483
  id: S.optional(S.String),
1413
- impact: S.optional(__S(336, __c21, 0)),
1414
- index: S.optional(__S(152, __c9, 8)),
1484
+ impact: S.optional(__S(0, __c0, 0)),
1485
+ index: S.optional(__S(168, __c10, 8)),
1415
1486
  namespace: S.optional(S.String),
1416
1487
  weight: S.optional(S.Number),
1417
1488
  }),
1418
1489
  ).annotate({ identifier: "SuggestedIndex" });
1419
1490
  case 10:
1420
- return S.Array(__S(153, __c9, 9));
1491
+ return S.Array(__S(169, __c10, 9));
1421
1492
  case 11:
1422
1493
  return S.suspend(() =>
1423
1494
  S.Struct({
1424
- shapes: S.optional(__S(150, __c9, 6)),
1425
- suggestedIndexes: S.optional(__S(154, __c9, 10)),
1495
+ shapes: S.optional(__S(166, __c10, 6)),
1496
+ suggestedIndexes: S.optional(__S(170, __c10, 10)),
1426
1497
  }),
1427
1498
  ).annotate({ identifier: "HandlersInstancesSuggestedIndexesResponse" });
1428
1499
  }
1429
1500
  }
1430
- function __c10(j: number): any {
1501
+ function __c11(j: number): any {
1431
1502
  switch (j) {
1432
1503
  case 0:
1433
1504
  return S.suspend(() =>
@@ -1452,17 +1523,17 @@ function __c10(j: number): any {
1452
1523
  }),
1453
1524
  ).annotate({ identifier: "ListUser" });
1454
1525
  case 2:
1455
- return S.Array(__S(161, __c10, 1));
1526
+ return S.Array(__S(177, __c11, 1));
1456
1527
  case 3:
1457
1528
  return S.suspend(() =>
1458
1529
  S.Struct({
1459
1530
  count: S.optional(S.Number),
1460
- items: S.optional(__S(162, __c10, 2)),
1531
+ items: S.optional(__S(178, __c11, 2)),
1461
1532
  }),
1462
1533
  ).annotate({ identifier: "ListUsersResponse" });
1463
1534
  }
1464
1535
  }
1465
- function __c11(j: number): any {
1536
+ function __c12(j: number): any {
1466
1537
  switch (j) {
1467
1538
  case 0:
1468
1539
  return S.suspend(() =>
@@ -1481,12 +1552,12 @@ function __c11(j: number): any {
1481
1552
  case 1:
1482
1553
  return S.suspend(() =>
1483
1554
  S.Struct({
1484
- versions: S.optional(__S(336, __c21, 0)),
1555
+ versions: S.optional(__S(0, __c0, 0)),
1485
1556
  }),
1486
1557
  ).annotate({ identifier: "ListVersionsResponse" });
1487
1558
  }
1488
1559
  }
1489
- function __c12(j: number): any {
1560
+ function __c13(j: number): any {
1490
1561
  switch (j) {
1491
1562
  case 0:
1492
1563
  return S.suspend(() =>
@@ -1514,7 +1585,7 @@ function __c12(j: number): any {
1514
1585
  ).annotate({ identifier: "PartialUpdateInstanceRequest" });
1515
1586
  }
1516
1587
  }
1517
- function __c13(j: number): any {
1588
+ function __c14(j: number): any {
1518
1589
  switch (j) {
1519
1590
  case 0:
1520
1591
  return S.suspend(() =>
@@ -1524,7 +1595,7 @@ function __c13(j: number): any {
1524
1595
  instanceId: S.String.pipe(T.Label()),
1525
1596
  userId: S.String.pipe(T.Label()),
1526
1597
  database: S.optional(S.String),
1527
- roles: S.optional(__S(336, __c21, 0)),
1598
+ roles: S.optional(__S(0, __c0, 0)),
1528
1599
  }).pipe(
1529
1600
  T.Http({
1530
1601
  method: "PATCH",
@@ -1536,7 +1607,7 @@ function __c13(j: number): any {
1536
1607
  ).annotate({ identifier: "PartialUpdateUserRequest" });
1537
1608
  }
1538
1609
  }
1539
- function __c14(j: number): any {
1610
+ function __c15(j: number): any {
1540
1611
  switch (j) {
1541
1612
  case 0:
1542
1613
  return S.suspend(() =>
@@ -1556,7 +1627,7 @@ function __c14(j: number): any {
1556
1627
  ).annotate({ identifier: "ResetUserRequest" });
1557
1628
  }
1558
1629
  }
1559
- function __c15(j: number): any {
1630
+ function __c16(j: number): any {
1560
1631
  switch (j) {
1561
1632
  case 0:
1562
1633
  return S.suspend(() =>
@@ -1577,12 +1648,12 @@ function __c15(j: number): any {
1577
1648
  case 1:
1578
1649
  return S.suspend(() =>
1579
1650
  S.Struct({
1580
- item: S.optional(__S(112, __c7, 0)),
1651
+ item: S.optional(__S(128, __c8, 0)),
1581
1652
  }),
1582
1653
  ).annotate({ identifier: "RestoreInstanceResponse" });
1583
1654
  }
1584
1655
  }
1585
- function __c16(j: number): any {
1656
+ function __c17(j: number): any {
1586
1657
  switch (j) {
1587
1658
  case 0:
1588
1659
  return S.suspend(() =>
@@ -1618,7 +1689,7 @@ function __c16(j: number): any {
1618
1689
  ).annotate({ identifier: "BackupSchedule" });
1619
1690
  }
1620
1691
  }
1621
- function __c17(j: number): any {
1692
+ function __c18(j: number): any {
1622
1693
  switch (j) {
1623
1694
  case 0:
1624
1695
  return S.suspend(() =>
@@ -1646,7 +1717,7 @@ function __c17(j: number): any {
1646
1717
  ).annotate({ identifier: "UpdateInstanceRequest" });
1647
1718
  }
1648
1719
  }
1649
- function __c18(j: number): any {
1720
+ function __c19(j: number): any {
1650
1721
  switch (j) {
1651
1722
  case 0:
1652
1723
  return S.suspend(() =>
@@ -1656,7 +1727,7 @@ function __c18(j: number): any {
1656
1727
  instanceId: S.String.pipe(T.Label()),
1657
1728
  userId: S.String.pipe(T.Label()),
1658
1729
  database: S.String,
1659
- roles: __S(336, __c21, 0),
1730
+ roles: __S(0, __c0, 0),
1660
1731
  }).pipe(
1661
1732
  T.Http({
1662
1733
  method: "PUT",
@@ -1668,7 +1739,7 @@ function __c18(j: number): any {
1668
1739
  ).annotate({ identifier: "UpdateUserRequest" });
1669
1740
  }
1670
1741
  }
1671
- function __c19(j: number): any {
1742
+ function __c20(j: number): any {
1672
1743
  switch (j) {
1673
1744
  case 0:
1674
1745
  return S.suspend(() =>
@@ -1694,7 +1765,7 @@ function __c19(j: number): any {
1694
1765
  ).annotate({ identifier: "CloneInstanceResponse" });
1695
1766
  }
1696
1767
  }
1697
- function __c20(j: number): any {
1768
+ function __c21(j: number): any {
1698
1769
  switch (j) {
1699
1770
  case 0:
1700
1771
  return S.suspend(() =>
@@ -1727,12 +1798,6 @@ function __c20(j: number): any {
1727
1798
  ).annotate({ identifier: "CreateInstanceResponse" });
1728
1799
  }
1729
1800
  }
1730
- function __c21(j: number): any {
1731
- switch (j) {
1732
- case 0:
1733
- return S.Array(S.String);
1734
- }
1735
- }
1736
1801
  function __c22(j: number): any {
1737
1802
  switch (j) {
1738
1803
  case 0:
@@ -1744,7 +1809,7 @@ function __c23(j: number): any {
1744
1809
  case 0:
1745
1810
  return S.suspend(() =>
1746
1811
  S.Struct({
1747
- items: S.optional(__S(336, __c21, 0)),
1812
+ items: S.optional(__S(0, __c0, 0)),
1748
1813
  }),
1749
1814
  ).annotate({ identifier: "ACL" });
1750
1815
  case 1:
@@ -1765,7 +1830,7 @@ function __c24(j: number): any {
1765
1830
  region: S.String.pipe(T.Label()),
1766
1831
  instanceId: S.String.pipe(T.Label()),
1767
1832
  database: S.String,
1768
- roles: __S(336, __c21, 0),
1833
+ roles: __S(0, __c0, 0),
1769
1834
  username: S.optional(S.String),
1770
1835
  }).pipe(
1771
1836
  T.Http({
@@ -1794,7 +1859,7 @@ function __c25(j: number): any {
1794
1859
  id: S.optional(S.String),
1795
1860
  password: S.optional(S.String.pipe(T.SensitiveValue({}))),
1796
1861
  port: S.optional(S.Number),
1797
- roles: S.optional(__S(336, __c21, 0)),
1862
+ roles: S.optional(__S(0, __c0, 0)),
1798
1863
  uri: S.optional(S.String),
1799
1864
  username: S.optional(S.String),
1800
1865
  }),
@@ -1880,7 +1945,7 @@ function __c30(j: number): any {
1880
1945
  endTime: S.optional(S.String),
1881
1946
  error: S.optional(S.String),
1882
1947
  id: S.optional(S.String),
1883
- labels: S.optional(__S(336, __c21, 0)),
1948
+ labels: S.optional(__S(0, __c0, 0)),
1884
1949
  name: S.optional(S.String),
1885
1950
  options: S.optional(__S(352, __c22, 0)),
1886
1951
  size: S.optional(S.Number),