@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
@@ -3,7 +3,7 @@ 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
4
  import * as S from "@distilled.cloud/core/schema-lite";
5
5
  import * as __L from "@distilled.cloud/core/schema-lite";
6
- import { UnknownStackitError } from "../errors.ts";
6
+ import { StackitServiceErrors } from "../errors.ts";
7
7
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
8
8
  import * as Retry from "../retry.ts";
9
9
  import * as T from "../traits.ts";
@@ -30,27 +30,48 @@ export class BadRequest
30
30
  /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
31
31
  code: S.Number,
32
32
  message: S.String,
33
+ body: /*@__PURE__*/ S.optional(
34
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
35
+ ),
36
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
33
37
  }).pipe(C.withBadRequestError),
34
38
  [{ status: 400 }],
35
- ) {}
39
+ )
40
+ {
41
+ declare readonly body?: ErrorResponse | string;
42
+ }
36
43
 
37
44
  export class Forbidden
38
45
  extends /*@__PURE__*/ T.applyErrorMatchers(
39
46
  /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
40
47
  code: S.Number,
41
48
  message: S.String,
49
+ body: /*@__PURE__*/ S.optional(
50
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
51
+ ),
52
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
42
53
  }).pipe(C.withAuthError),
43
54
  [{ status: 403 }],
44
- ) {}
55
+ )
56
+ {
57
+ declare readonly body?: ErrorResponse | string;
58
+ }
45
59
 
46
60
  export class NotFound
47
61
  extends /*@__PURE__*/ T.applyErrorMatchers(
48
62
  /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
49
63
  code: S.Number,
50
64
  message: S.String,
65
+ body: /*@__PURE__*/ S.optional(
66
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(3, __c0, 3)), S.String]),
67
+ ),
68
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
51
69
  }).pipe(C.withBadRequestError),
52
70
  [{ status: 404 }],
53
- ) {}
71
+ )
72
+ {
73
+ declare readonly body?: ErrorResponse | string;
74
+ }
54
75
 
55
76
  export interface VolumeAutomationInput {
56
77
  kind: string;
@@ -278,6 +299,20 @@ export interface PartialUpdateVolumeAutomationRequest {
278
299
  name?: string | null | undefined;
279
300
  triggers?: AutomationTriggers | null | undefined;
280
301
  }
302
+ export interface ErrorResponseContentDetails {
303
+ _type: string;
304
+ [key: string]: unknown;
305
+ }
306
+ export type ErrorResponseContentDetailsList = Array<ErrorResponseContentDetails>;
307
+ export interface ErrorResponseContent {
308
+ code: number;
309
+ details?: ErrorResponseContentDetailsList | undefined;
310
+ message: string;
311
+ status: string;
312
+ }
313
+ export interface ErrorResponse {
314
+ error: ErrorResponseContent;
315
+ }
281
316
  export type CreateVolumeAutomationError = BadRequest | Forbidden | NotFound | StackitOpError;
282
317
  /** Create volume automation Creates a new volume automation */
283
318
  export const createVolumeAutomation: API.OperationMethod<
@@ -286,9 +321,10 @@ export const createVolumeAutomation: API.OperationMethod<
286
321
  CreateVolumeAutomationError,
287
322
  StackitOpContext
288
323
  > = /*@__PURE__*/ API.make(() => ({
289
- input: __S(24, __c3, 0) as any as S.Schema<CreateVolumeAutomationRequest>,
290
- output: __S(48, __c6, 0) as any as S.Schema<VolumeAutomation>,
291
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
324
+ input: __S(32, __c4, 0) as any as S.Schema<CreateVolumeAutomationRequest>,
325
+ output: __S(56, __c7, 0) as any as S.Schema<VolumeAutomation>,
326
+ errors: [BadRequest, Forbidden, NotFound],
327
+ serviceErrors: StackitServiceErrors,
292
328
  protocol: StackitProtocol,
293
329
  retry: Retry.Retry,
294
330
  telemetry: TELEMETRY,
@@ -303,9 +339,10 @@ export const createVolumeExecution: API.OperationMethod<
303
339
  CreateVolumeExecutionError,
304
340
  StackitOpContext
305
341
  > = /*@__PURE__*/ API.make(() => ({
306
- input: __S(56, __c7, 0) as any as S.Schema<CreateVolumeExecutionRequest>,
307
- output: __S(69, __c8, 5) as any as S.Schema<VolumeExecutionResponse>,
308
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
342
+ input: __S(64, __c8, 0) as any as S.Schema<CreateVolumeExecutionRequest>,
343
+ output: __S(77, __c9, 5) as any as S.Schema<VolumeExecutionResponse>,
344
+ errors: [BadRequest, Forbidden, NotFound],
345
+ serviceErrors: StackitServiceErrors,
309
346
  protocol: StackitProtocol,
310
347
  retry: Retry.Retry,
311
348
  telemetry: TELEMETRY,
@@ -320,9 +357,10 @@ export const deleteVolumeAutomation: API.OperationMethod<
320
357
  DeleteVolumeAutomationError,
321
358
  StackitOpContext
322
359
  > = /*@__PURE__*/ API.make(() => ({
323
- input: __S(72, __c9, 0) as any as S.Schema<DeleteVolumeAutomationRequest>,
324
- output: __S(73, __c9, 1) as any as S.Schema<DeleteVolumeAutomationResponse>,
325
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
360
+ input: __S(80, __c10, 0) as any as S.Schema<DeleteVolumeAutomationRequest>,
361
+ output: __S(81, __c10, 1) as any as S.Schema<DeleteVolumeAutomationResponse>,
362
+ errors: [BadRequest, Forbidden, NotFound],
363
+ serviceErrors: StackitServiceErrors,
326
364
  protocol: StackitProtocol,
327
365
  retry: Retry.Retry,
328
366
  telemetry: TELEMETRY,
@@ -337,9 +375,10 @@ export const getVolumeAutomation: API.OperationMethod<
337
375
  GetVolumeAutomationError,
338
376
  StackitOpContext
339
377
  > = /*@__PURE__*/ API.make(() => ({
340
- input: __S(80, __c10, 0) as any as S.Schema<GetVolumeAutomationRequest>,
341
- output: __S(48, __c6, 0) as any as S.Schema<VolumeAutomation>,
342
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
378
+ input: __S(88, __c11, 0) as any as S.Schema<GetVolumeAutomationRequest>,
379
+ output: __S(56, __c7, 0) as any as S.Schema<VolumeAutomation>,
380
+ errors: [BadRequest, Forbidden, NotFound],
381
+ serviceErrors: StackitServiceErrors,
343
382
  protocol: StackitProtocol,
344
383
  retry: Retry.Retry,
345
384
  telemetry: TELEMETRY,
@@ -354,9 +393,10 @@ export const getVolumeExecution: API.OperationMethod<
354
393
  GetVolumeExecutionError,
355
394
  StackitOpContext
356
395
  > = /*@__PURE__*/ API.make(() => ({
357
- input: __S(88, __c11, 0) as any as S.Schema<GetVolumeExecutionRequest>,
358
- output: __S(69, __c8, 5) as any as S.Schema<VolumeExecutionResponse>,
359
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
396
+ input: __S(96, __c12, 0) as any as S.Schema<GetVolumeExecutionRequest>,
397
+ output: __S(77, __c9, 5) as any as S.Schema<VolumeExecutionResponse>,
398
+ errors: [BadRequest, Forbidden, NotFound],
399
+ serviceErrors: StackitServiceErrors,
360
400
  protocol: StackitProtocol,
361
401
  retry: Retry.Retry,
362
402
  telemetry: TELEMETRY,
@@ -371,9 +411,10 @@ export const getVolumeTemplate: API.OperationMethod<
371
411
  GetVolumeTemplateError,
372
412
  StackitOpContext
373
413
  > = /*@__PURE__*/ API.make(() => ({
374
- input: __S(96, __c12, 0) as any as S.Schema<GetVolumeTemplateRequest>,
375
- output: __S(98, __c12, 2) as any as S.Schema<GetVolumeTemplateResponse>,
376
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
414
+ input: __S(104, __c13, 0) as any as S.Schema<GetVolumeTemplateRequest>,
415
+ output: __S(106, __c13, 2) as any as S.Schema<GetVolumeTemplateResponse>,
416
+ errors: [BadRequest, Forbidden, NotFound],
417
+ serviceErrors: StackitServiceErrors,
377
418
  protocol: StackitProtocol,
378
419
  retry: Retry.Retry,
379
420
  telemetry: TELEMETRY,
@@ -388,9 +429,10 @@ export const listVolumeAutomations: API.OperationMethod<
388
429
  ListVolumeAutomationsError,
389
430
  StackitOpContext
390
431
  > = /*@__PURE__*/ API.make(() => ({
391
- input: __S(104, __c13, 0) as any as S.Schema<ListVolumeAutomationsRequest>,
392
- output: __S(107, __c13, 3) as any as S.Schema<ListAutomationsResponse>,
393
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
432
+ input: __S(112, __c14, 0) as any as S.Schema<ListVolumeAutomationsRequest>,
433
+ output: __S(115, __c14, 3) as any as S.Schema<ListAutomationsResponse>,
434
+ errors: [BadRequest, Forbidden, NotFound],
435
+ serviceErrors: StackitServiceErrors,
394
436
  protocol: StackitProtocol,
395
437
  retry: Retry.Retry,
396
438
  telemetry: TELEMETRY,
@@ -405,9 +447,10 @@ export const listVolumeExecutions: API.OperationMethod<
405
447
  ListVolumeExecutionsError,
406
448
  StackitOpContext
407
449
  > = /*@__PURE__*/ API.make(() => ({
408
- input: __S(0, __c0, 0) as any as S.Schema<ListVolumeExecutionsRequest>,
409
- output: __S(3, __c0, 3) as any as S.Schema<ListExecutionsResponse>,
410
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
450
+ input: __S(8, __c1, 0) as any as S.Schema<ListVolumeExecutionsRequest>,
451
+ output: __S(11, __c1, 3) as any as S.Schema<ListExecutionsResponse>,
452
+ errors: [BadRequest, Forbidden, NotFound],
453
+ serviceErrors: StackitServiceErrors,
411
454
  protocol: StackitProtocol,
412
455
  retry: Retry.Retry,
413
456
  telemetry: TELEMETRY,
@@ -422,9 +465,10 @@ export const listVolumeTemplates: API.OperationMethod<
422
465
  ListVolumeTemplatesError,
423
466
  StackitOpContext
424
467
  > = /*@__PURE__*/ API.make(() => ({
425
- input: __S(8, __c1, 0) as any as S.Schema<ListVolumeTemplatesRequest>,
426
- output: __S(11, __c1, 3) as any as S.Schema<ListTemplatesResponse>,
427
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
468
+ input: __S(16, __c2, 0) as any as S.Schema<ListVolumeTemplatesRequest>,
469
+ output: __S(19, __c2, 3) as any as S.Schema<ListTemplatesResponse>,
470
+ errors: [BadRequest, Forbidden, NotFound],
471
+ serviceErrors: StackitServiceErrors,
428
472
  protocol: StackitProtocol,
429
473
  retry: Retry.Retry,
430
474
  telemetry: TELEMETRY,
@@ -439,9 +483,10 @@ export const partialUpdateVolumeAutomation: API.OperationMethod<
439
483
  PartialUpdateVolumeAutomationError,
440
484
  StackitOpContext
441
485
  > = /*@__PURE__*/ API.make(() => ({
442
- input: __S(16, __c2, 0) as any as S.Schema<PartialUpdateVolumeAutomationRequest>,
443
- output: __S(48, __c6, 0) as any as S.Schema<VolumeAutomation>,
444
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
486
+ input: __S(24, __c3, 0) as any as S.Schema<PartialUpdateVolumeAutomationRequest>,
487
+ output: __S(56, __c7, 0) as any as S.Schema<VolumeAutomation>,
488
+ errors: [BadRequest, Forbidden, NotFound],
489
+ serviceErrors: StackitServiceErrors,
445
490
  protocol: StackitProtocol,
446
491
  retry: Retry.Retry,
447
492
  telemetry: TELEMETRY,
@@ -450,6 +495,36 @@ export const partialUpdateVolumeAutomation: API.OperationMethod<
450
495
 
451
496
  // Schema builders: each runs one schema initializer, on that schema's first use.
452
497
  function __c0(j: number): any {
498
+ switch (j) {
499
+ case 0:
500
+ return S.suspend(() =>
501
+ S.StructWithRest(
502
+ S.Struct({
503
+ _type: S.String.pipe(T.Body("@type")),
504
+ }),
505
+ [S.Record(S.String, S.Unknown)],
506
+ ),
507
+ ).annotate({ identifier: "ErrorResponseContentDetails" });
508
+ case 1:
509
+ return S.Array(__S(0, __c0, 0));
510
+ case 2:
511
+ return S.suspend(() =>
512
+ S.Struct({
513
+ code: S.Number,
514
+ details: S.optional(__S(1, __c0, 1)),
515
+ message: S.String,
516
+ status: S.String,
517
+ }),
518
+ ).annotate({ identifier: "ErrorResponseContent" });
519
+ case 3:
520
+ return S.suspend(() =>
521
+ S.Struct({
522
+ error: __S(2, __c0, 2),
523
+ }),
524
+ ).annotate({ identifier: "ErrorResponse" });
525
+ }
526
+ }
527
+ function __c1(j: number): any {
453
528
  switch (j) {
454
529
  case 0:
455
530
  return S.suspend(() =>
@@ -478,17 +553,17 @@ function __c0(j: number): any {
478
553
  }),
479
554
  ).annotate({ identifier: "ListExecutionsItem" });
480
555
  case 2:
481
- return S.Array(__S(1, __c0, 1));
556
+ return S.Array(__S(9, __c1, 1));
482
557
  case 3:
483
558
  return S.suspend(() =>
484
559
  S.Struct({
485
- items: __S(2, __c0, 2),
560
+ items: __S(10, __c1, 2),
486
561
  nextPageToken: S.optional(S.String),
487
562
  }),
488
563
  ).annotate({ identifier: "ListExecutionsResponse" });
489
564
  }
490
565
  }
491
- function __c1(j: number): any {
566
+ function __c2(j: number): any {
492
567
  switch (j) {
493
568
  case 0:
494
569
  return S.suspend(() =>
@@ -516,17 +591,17 @@ function __c1(j: number): any {
516
591
  }),
517
592
  ).annotate({ identifier: "Template" });
518
593
  case 2:
519
- return S.Array(__S(9, __c1, 1));
594
+ return S.Array(__S(17, __c2, 1));
520
595
  case 3:
521
596
  return S.suspend(() =>
522
597
  S.Struct({
523
- items: __S(10, __c1, 2),
598
+ items: __S(18, __c2, 2),
524
599
  nextPageToken: S.optional(S.String),
525
600
  }),
526
601
  ).annotate({ identifier: "ListTemplatesResponse" });
527
602
  }
528
603
  }
529
- function __c2(j: number): any {
604
+ function __c3(j: number): any {
530
605
  switch (j) {
531
606
  case 0:
532
607
  return S.suspend(() =>
@@ -536,9 +611,9 @@ function __c2(j: number): any {
536
611
  automationId: S.String.pipe(T.Label()),
537
612
  updateMask: S.optional(S.String.pipe(T.Query())),
538
613
  description: S.optional(S.NullOr(S.String)),
539
- input: S.optional(S.NullOr(__S(32, __c4, 0))),
614
+ input: S.optional(S.NullOr(__S(40, __c5, 0))),
540
615
  name: S.optional(S.NullOr(S.String)),
541
- triggers: S.optional(S.NullOr(__S(41, __c5, 1))),
616
+ triggers: S.optional(S.NullOr(__S(49, __c6, 1))),
542
617
  }).pipe(
543
618
  T.Http({
544
619
  method: "PATCH",
@@ -550,7 +625,7 @@ function __c2(j: number): any {
550
625
  ).annotate({ identifier: "PartialUpdateVolumeAutomationRequest" });
551
626
  }
552
627
  }
553
- function __c3(j: number): any {
628
+ function __c4(j: number): any {
554
629
  switch (j) {
555
630
  case 0:
556
631
  return S.suspend(() =>
@@ -558,10 +633,10 @@ function __c3(j: number): any {
558
633
  projectId: S.String.pipe(T.Label()),
559
634
  region: S.String.pipe(T.Label()),
560
635
  description: S.optional(S.NullOr(S.String)),
561
- input: S.optional(S.NullOr(__S(32, __c4, 0))),
636
+ input: S.optional(S.NullOr(__S(40, __c5, 0))),
562
637
  name: S.optional(S.NullOr(S.String)),
563
638
  templateId: S.String,
564
- triggers: S.optional(S.NullOr(__S(41, __c5, 1))),
639
+ triggers: S.optional(S.NullOr(__S(49, __c6, 1))),
565
640
  }).pipe(
566
641
  T.Http({
567
642
  method: "POST",
@@ -573,7 +648,7 @@ function __c3(j: number): any {
573
648
  ).annotate({ identifier: "CreateVolumeAutomationRequest" });
574
649
  }
575
650
  }
576
- function __c4(j: number): any {
651
+ function __c5(j: number): any {
577
652
  switch (j) {
578
653
  case 0:
579
654
  return S.suspend(() =>
@@ -588,20 +663,20 @@ function __c4(j: number): any {
588
663
  return S.suspend(() =>
589
664
  S.Struct({
590
665
  name: S.String,
591
- result: S.optional(__S(32, __c4, 0)),
666
+ result: S.optional(__S(40, __c5, 0)),
592
667
  }),
593
668
  ).annotate({ identifier: "VolumeOutputStep" });
594
669
  case 2:
595
- return S.Array(__S(33, __c4, 1));
670
+ return S.Array(__S(41, __c5, 1));
596
671
  case 3:
597
672
  return S.suspend(() =>
598
673
  S.Struct({
599
- steps: S.optional(__S(34, __c4, 2)),
674
+ steps: S.optional(__S(42, __c5, 2)),
600
675
  }),
601
676
  ).annotate({ identifier: "VolumeOutput" });
602
677
  }
603
678
  }
604
- function __c5(j: number): any {
679
+ function __c6(j: number): any {
605
680
  switch (j) {
606
681
  case 0:
607
682
  return S.suspend(() =>
@@ -612,12 +687,12 @@ function __c5(j: number): any {
612
687
  case 1:
613
688
  return S.suspend(() =>
614
689
  S.Struct({
615
- schedule: S.optional(S.NullOr(__S(40, __c5, 0))),
690
+ schedule: S.optional(S.NullOr(__S(48, __c6, 0))),
616
691
  }),
617
692
  ).annotate({ identifier: "AutomationTriggers" });
618
693
  }
619
694
  }
620
- function __c6(j: number): any {
695
+ function __c7(j: number): any {
621
696
  switch (j) {
622
697
  case 0:
623
698
  return S.suspend(() =>
@@ -625,17 +700,17 @@ function __c6(j: number): any {
625
700
  createTime: S.String,
626
701
  description: S.optional(S.String),
627
702
  id: S.String,
628
- input: S.optional(S.NullOr(__S(32, __c4, 0))),
703
+ input: S.optional(S.NullOr(__S(40, __c5, 0))),
629
704
  name: S.optional(S.String),
630
- output: S.optional(__S(35, __c4, 3)),
705
+ output: S.optional(__S(43, __c5, 3)),
631
706
  templateId: S.optional(S.String),
632
- triggers: S.optional(S.NullOr(__S(41, __c5, 1))),
707
+ triggers: S.optional(S.NullOr(__S(49, __c6, 1))),
633
708
  updateTime: S.String,
634
709
  }),
635
710
  ).annotate({ identifier: "VolumeAutomation" });
636
711
  }
637
712
  }
638
- function __c7(j: number): any {
713
+ function __c8(j: number): any {
639
714
  switch (j) {
640
715
  case 0:
641
716
  return S.suspend(() =>
@@ -654,18 +729,18 @@ function __c7(j: number): any {
654
729
  ).annotate({ identifier: "CreateVolumeExecutionRequest" });
655
730
  }
656
731
  }
657
- function __c8(j: number): any {
732
+ function __c9(j: number): any {
658
733
  switch (j) {
659
734
  case 0:
660
735
  return S.suspend(() =>
661
736
  S.Struct({
662
737
  createTime: S.String,
663
738
  description: S.optional(S.String),
664
- input: S.optional(S.NullOr(__S(32, __c4, 0))),
739
+ input: S.optional(S.NullOr(__S(40, __c5, 0))),
665
740
  name: S.optional(S.String),
666
- output: S.optional(__S(35, __c4, 3)),
741
+ output: S.optional(__S(43, __c5, 3)),
667
742
  templateId: S.optional(S.String),
668
- triggers: S.optional(S.NullOr(__S(41, __c5, 1))),
743
+ triggers: S.optional(S.NullOr(__S(49, __c6, 1))),
669
744
  updateTime: S.String,
670
745
  }),
671
746
  ).annotate({ identifier: "VolumeExecutionAutomation" });
@@ -674,29 +749,29 @@ function __c8(j: number): any {
674
749
  S.Struct({
675
750
  message: S.optional(S.String),
676
751
  name: S.String,
677
- result: S.optional(__S(32, __c4, 0)),
752
+ result: S.optional(__S(40, __c5, 0)),
678
753
  status: S.String,
679
754
  }),
680
755
  ).annotate({ identifier: "VolumeExecutionOutputStep" });
681
756
  case 2:
682
- return S.Array(__S(65, __c8, 1));
757
+ return S.Array(__S(73, __c9, 1));
683
758
  case 3:
684
759
  return S.suspend(() =>
685
760
  S.Struct({
686
- steps: S.optional(__S(66, __c8, 2)),
761
+ steps: S.optional(__S(74, __c9, 2)),
687
762
  }),
688
763
  ).annotate({ identifier: "VolumeExecutionOutput" });
689
764
  case 4:
690
765
  return S.suspend(() =>
691
766
  S.Struct({
692
- config: __S(64, __c8, 0),
693
- output: S.optional(__S(67, __c8, 3)),
767
+ config: __S(72, __c9, 0),
768
+ output: S.optional(__S(75, __c9, 3)),
694
769
  }),
695
770
  ).annotate({ identifier: "VolumeExecutionDetails" });
696
771
  case 5:
697
772
  return S.suspend(() =>
698
773
  S.Struct({
699
- automation: S.optional(__S(68, __c8, 4)),
774
+ automation: S.optional(__S(76, __c9, 4)),
700
775
  createTime: S.String,
701
776
  endTime: S.optional(S.String),
702
777
  id: S.String,
@@ -705,7 +780,7 @@ function __c8(j: number): any {
705
780
  ).annotate({ identifier: "VolumeExecutionResponse" });
706
781
  }
707
782
  }
708
- function __c9(j: number): any {
783
+ function __c10(j: number): any {
709
784
  switch (j) {
710
785
  case 0:
711
786
  return S.suspend(() =>
@@ -728,7 +803,7 @@ function __c9(j: number): any {
728
803
  });
729
804
  }
730
805
  }
731
- function __c10(j: number): any {
806
+ function __c11(j: number): any {
732
807
  switch (j) {
733
808
  case 0:
734
809
  return S.suspend(() =>
@@ -747,7 +822,7 @@ function __c10(j: number): any {
747
822
  ).annotate({ identifier: "GetVolumeAutomationRequest" });
748
823
  }
749
824
  }
750
- function __c11(j: number): any {
825
+ function __c12(j: number): any {
751
826
  switch (j) {
752
827
  case 0:
753
828
  return S.suspend(() =>
@@ -767,7 +842,7 @@ function __c11(j: number): any {
767
842
  ).annotate({ identifier: "GetVolumeExecutionRequest" });
768
843
  }
769
844
  }
770
- function __c12(j: number): any {
845
+ function __c13(j: number): any {
771
846
  switch (j) {
772
847
  case 0:
773
848
  return S.suspend(() =>
@@ -796,14 +871,14 @@ function __c12(j: number): any {
796
871
  createTime: S.String,
797
872
  description: S.String,
798
873
  id: S.String,
799
- input: S.optional(__S(97, __c12, 1)),
874
+ input: S.optional(__S(105, __c13, 1)),
800
875
  name: S.String,
801
- output: S.optional(__S(35, __c4, 3)),
876
+ output: S.optional(__S(43, __c5, 3)),
802
877
  }),
803
878
  ).annotate({ identifier: "GetVolumeTemplateResponse" });
804
879
  }
805
880
  }
806
- function __c13(j: number): any {
881
+ function __c14(j: number): any {
807
882
  switch (j) {
808
883
  case 0:
809
884
  return S.suspend(() =>
@@ -829,16 +904,16 @@ function __c13(j: number): any {
829
904
  id: S.String,
830
905
  name: S.optional(S.String),
831
906
  templateId: S.optional(S.String),
832
- triggers: S.optional(S.NullOr(__S(41, __c5, 1))),
907
+ triggers: S.optional(S.NullOr(__S(49, __c6, 1))),
833
908
  updateTime: S.String,
834
909
  }),
835
910
  ).annotate({ identifier: "ListAutomationsItem" });
836
911
  case 2:
837
- return S.Array(__S(105, __c13, 1));
912
+ return S.Array(__S(113, __c14, 1));
838
913
  case 3:
839
914
  return S.suspend(() =>
840
915
  S.Struct({
841
- items: __S(106, __c13, 2),
916
+ items: __S(114, __c14, 2),
842
917
  nextPageToken: S.optional(S.String),
843
918
  }),
844
919
  ).annotate({ identifier: "ListAutomationsResponse" });