@distilled.cloud/stackit 1.0.0-rc.20 → 1.0.0-rc.22

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 +8 -0
  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 +36 -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 +63 -2
  234. package/lib/unstable-services/git.d.ts.map +1 -0
  235. package/lib/unstable-services/git.js +44 -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 +10 -1
  278. package/src/index.ts +9 -6
  279. package/src/protocol.ts +108 -127
  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 +229 -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 +353 -137
  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,15 +31,24 @@ 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(0, __c0, 0)), 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(S.Unknown),
51
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
43
52
  }).pipe(C.withConflictError),
44
53
  [{ status: 409 }],
45
54
  ) {}
@@ -49,6 +58,8 @@ export class NotFound
49
58
  /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
50
59
  code: S.Number,
51
60
  message: S.String,
61
+ body: /*@__PURE__*/ S.optional(S.Unknown),
62
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
52
63
  }).pipe(C.withBadRequestError),
53
64
  [{ status: 404 }],
54
65
  ) {}
@@ -58,6 +69,8 @@ export class UnprocessableEntity
58
69
  /*@__PURE__*/ S.TaggedError<UnprocessableEntity>()("UnprocessableEntity", {
59
70
  code: S.Number,
60
71
  message: S.String,
72
+ body: /*@__PURE__*/ S.optional(S.Unknown),
73
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
61
74
  }).pipe(C.withBadRequestError),
62
75
  [{ status: 422 }],
63
76
  ) {}
@@ -318,6 +331,12 @@ export interface UpdateDremioInstanceRequest {
318
331
  /** The display name is a short name chosen by the user to identify the resource. */
319
332
  displayName?: string | undefined;
320
333
  }
334
+ export interface Error {
335
+ /** The http return code. */
336
+ code?: number | undefined;
337
+ /** The message explaining the error. */
338
+ message?: string | undefined;
339
+ }
321
340
  export type CreateDremioInstanceError =
322
341
  | BadRequest
323
342
  | Conflict
@@ -330,9 +349,10 @@ export const createDremioInstance: API.OperationMethod<
330
349
  CreateDremioInstanceError,
331
350
  StackitOpContext
332
351
  > = /*@__PURE__*/ API.make(() => ({
333
- input: __S(48, __c3, 0) as any as S.Schema<CreateDremioInstanceRequest>,
334
- output: __S(88, __c5, 8) as any as S.Schema<DremioResponseOutput>,
335
- errors: [BadRequest, Conflict, UnprocessableEntity, UnknownStackitError],
352
+ input: __S(64, __c4, 0) as any as S.Schema<CreateDremioInstanceRequest>,
353
+ output: __S(104, __c6, 8) as any as S.Schema<DremioResponseOutput>,
354
+ errors: [BadRequest, Conflict, UnprocessableEntity],
355
+ serviceErrors: StackitServiceErrors,
336
356
  protocol: StackitProtocol,
337
357
  retry: Retry.Retry,
338
358
  telemetry: TELEMETRY,
@@ -347,9 +367,10 @@ export const createDremioUser: API.OperationMethod<
347
367
  CreateDremioUserError,
348
368
  StackitOpContext
349
369
  > = /*@__PURE__*/ API.make(() => ({
350
- input: __S(96, __c6, 0) as any as S.Schema<CreateDremioUserRequest>,
351
- output: __S(112, __c7, 0) as any as S.Schema<DremioUserResponse>,
352
- errors: [BadRequest, Conflict, UnprocessableEntity, UnknownStackitError],
370
+ input: __S(112, __c7, 0) as any as S.Schema<CreateDremioUserRequest>,
371
+ output: __S(128, __c8, 0) as any as S.Schema<DremioUserResponse>,
372
+ errors: [BadRequest, Conflict, UnprocessableEntity],
373
+ serviceErrors: StackitServiceErrors,
353
374
  protocol: StackitProtocol,
354
375
  retry: Retry.Retry,
355
376
  telemetry: TELEMETRY,
@@ -369,9 +390,10 @@ export const deleteDremioInstance: API.OperationMethod<
369
390
  DeleteDremioInstanceError,
370
391
  StackitOpContext
371
392
  > = /*@__PURE__*/ API.make(() => ({
372
- input: __S(128, __c8, 0) as any as S.Schema<DeleteDremioInstanceRequest>,
373
- output: __S(144, __c9, 0) as any as S.Schema<DeleteDremioInstanceResponse>,
374
- errors: [BadRequest, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
393
+ input: __S(144, __c9, 0) as any as S.Schema<DeleteDremioInstanceRequest>,
394
+ output: __S(160, __c10, 0) as any as S.Schema<DeleteDremioInstanceResponse>,
395
+ errors: [BadRequest, NotFound, Conflict, UnprocessableEntity],
396
+ serviceErrors: StackitServiceErrors,
375
397
  protocol: StackitProtocol,
376
398
  retry: Retry.Retry,
377
399
  telemetry: TELEMETRY,
@@ -391,16 +413,17 @@ export const deleteDremioUser: API.OperationMethod<
391
413
  DeleteDremioUserError,
392
414
  StackitOpContext
393
415
  > = /*@__PURE__*/ API.make(() => ({
394
- input: __S(160, __c10, 0) as any as S.Schema<DeleteDremioUserRequest>,
395
- output: __S(144, __c9, 0) as any as S.Schema<DeleteDremioUserResponse>,
396
- errors: [BadRequest, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
416
+ input: __S(176, __c11, 0) as any as S.Schema<DeleteDremioUserRequest>,
417
+ output: __S(160, __c10, 0) as any as S.Schema<DeleteDremioUserResponse>,
418
+ errors: [BadRequest, NotFound, Conflict, UnprocessableEntity],
419
+ serviceErrors: StackitServiceErrors,
397
420
  protocol: StackitProtocol,
398
421
  retry: Retry.Retry,
399
422
  telemetry: TELEMETRY,
400
423
  span: "DeleteDremioUser",
401
424
  }));
402
425
 
403
- export type GetDremioInstanceError = BadRequest | NotFound | StackitOpError;
426
+ export type GetDremioInstanceError = BadRequest | NotFound | UnprocessableEntity | StackitOpError;
404
427
  /** Returns the details for the given Dremio instance. */
405
428
  export const getDremioInstance: API.OperationMethod<
406
429
  GetDremioInstanceRequest,
@@ -408,16 +431,17 @@ export const getDremioInstance: API.OperationMethod<
408
431
  GetDremioInstanceError,
409
432
  StackitOpContext
410
433
  > = /*@__PURE__*/ API.make(() => ({
411
- input: __S(176, __c11, 0) as any as S.Schema<GetDremioInstanceRequest>,
412
- output: __S(88, __c5, 8) as any as S.Schema<DremioResponseOutput>,
413
- errors: [BadRequest, NotFound, UnknownStackitError],
434
+ input: __S(192, __c12, 0) as any as S.Schema<GetDremioInstanceRequest>,
435
+ output: __S(104, __c6, 8) as any as S.Schema<DremioResponseOutput>,
436
+ errors: [BadRequest, NotFound, UnprocessableEntity],
437
+ serviceErrors: StackitServiceErrors,
414
438
  protocol: StackitProtocol,
415
439
  retry: Retry.Retry,
416
440
  telemetry: TELEMETRY,
417
441
  span: "GetDremioInstance",
418
442
  }));
419
443
 
420
- export type GetDremioUserError = BadRequest | NotFound | StackitOpError;
444
+ export type GetDremioUserError = BadRequest | NotFound | UnprocessableEntity | StackitOpError;
421
445
  /** Returns the details for the given dremio admin user */
422
446
  export const getDremioUser: API.OperationMethod<
423
447
  GetDremioUserRequest,
@@ -425,16 +449,17 @@ export const getDremioUser: API.OperationMethod<
425
449
  GetDremioUserError,
426
450
  StackitOpContext
427
451
  > = /*@__PURE__*/ API.make(() => ({
428
- input: __S(192, __c12, 0) as any as S.Schema<GetDremioUserRequest>,
429
- output: __S(112, __c7, 0) as any as S.Schema<DremioUserResponse>,
430
- errors: [BadRequest, NotFound, UnknownStackitError],
452
+ input: __S(208, __c13, 0) as any as S.Schema<GetDremioUserRequest>,
453
+ output: __S(128, __c8, 0) as any as S.Schema<DremioUserResponse>,
454
+ errors: [BadRequest, NotFound, UnprocessableEntity],
455
+ serviceErrors: StackitServiceErrors,
431
456
  protocol: StackitProtocol,
432
457
  retry: Retry.Retry,
433
458
  telemetry: TELEMETRY,
434
459
  span: "GetDremioUser",
435
460
  }));
436
461
 
437
- export type ListDremioInstancesError = BadRequest | StackitOpError;
462
+ export type ListDremioInstancesError = BadRequest | UnprocessableEntity | StackitOpError;
438
463
  /** Returns a list of all Dremio instances within the project. */
439
464
  export const listDremioInstances: API.OperationMethod<
440
465
  ListDremioInstancesRequest,
@@ -442,16 +467,17 @@ export const listDremioInstances: API.OperationMethod<
442
467
  ListDremioInstancesError,
443
468
  StackitOpContext
444
469
  > = /*@__PURE__*/ API.make(() => ({
445
- input: __S(0, __c0, 0) as any as S.Schema<ListDremioInstancesRequest>,
446
- output: __S(2, __c0, 2) as any as S.Schema<ListDremiosResponseOutput>,
447
- errors: [BadRequest, UnknownStackitError],
470
+ input: __S(16, __c1, 0) as any as S.Schema<ListDremioInstancesRequest>,
471
+ output: __S(18, __c1, 2) as any as S.Schema<ListDremiosResponseOutput>,
472
+ errors: [BadRequest, UnprocessableEntity],
473
+ serviceErrors: StackitServiceErrors,
448
474
  protocol: StackitProtocol,
449
475
  retry: Retry.Retry,
450
476
  telemetry: TELEMETRY,
451
477
  span: "ListDremioInstances",
452
478
  }));
453
479
 
454
- export type ListDremioUsersError = BadRequest | StackitOpError;
480
+ export type ListDremioUsersError = BadRequest | UnprocessableEntity | StackitOpError;
455
481
  /** Returns a list of all Dremio admin users for the given dremio instance. */
456
482
  export const listDremioUsers: API.OperationMethod<
457
483
  ListDremioUsersRequest,
@@ -459,9 +485,10 @@ export const listDremioUsers: API.OperationMethod<
459
485
  ListDremioUsersError,
460
486
  StackitOpContext
461
487
  > = /*@__PURE__*/ API.make(() => ({
462
- input: __S(16, __c1, 0) as any as S.Schema<ListDremioUsersRequest>,
463
- output: __S(18, __c1, 2) as any as S.Schema<ListDremioUsersResponse>,
464
- errors: [BadRequest, UnknownStackitError],
488
+ input: __S(32, __c2, 0) as any as S.Schema<ListDremioUsersRequest>,
489
+ output: __S(34, __c2, 2) as any as S.Schema<ListDremioUsersResponse>,
490
+ errors: [BadRequest, UnprocessableEntity],
491
+ serviceErrors: StackitServiceErrors,
465
492
  protocol: StackitProtocol,
466
493
  retry: Retry.Retry,
467
494
  telemetry: TELEMETRY,
@@ -481,9 +508,10 @@ export const updateDremioInstance: API.OperationMethod<
481
508
  UpdateDremioInstanceError,
482
509
  StackitOpContext
483
510
  > = /*@__PURE__*/ API.make(() => ({
484
- input: __S(32, __c2, 0) as any as S.Schema<UpdateDremioInstanceRequest>,
485
- output: __S(88, __c5, 8) as any as S.Schema<DremioResponseOutput>,
486
- errors: [BadRequest, NotFound, Conflict, UnprocessableEntity, UnknownStackitError],
511
+ input: __S(48, __c3, 0) as any as S.Schema<UpdateDremioInstanceRequest>,
512
+ output: __S(104, __c6, 8) as any as S.Schema<DremioResponseOutput>,
513
+ errors: [BadRequest, NotFound, Conflict, UnprocessableEntity],
514
+ serviceErrors: StackitServiceErrors,
487
515
  protocol: StackitProtocol,
488
516
  retry: Retry.Retry,
489
517
  telemetry: TELEMETRY,
@@ -492,6 +520,17 @@ export const updateDremioInstance: API.OperationMethod<
492
520
 
493
521
  // Schema builders: each runs one schema initializer, on that schema's first use.
494
522
  function __c0(j: number): any {
523
+ switch (j) {
524
+ case 0:
525
+ return S.suspend(() =>
526
+ S.Struct({
527
+ code: S.optional(S.Number),
528
+ message: S.optional(S.String),
529
+ }),
530
+ ).annotate({ identifier: "Error" });
531
+ }
532
+ }
533
+ function __c1(j: number): any {
495
534
  switch (j) {
496
535
  case 0:
497
536
  return S.suspend(() =>
@@ -505,22 +544,22 @@ function __c0(j: number): any {
505
544
  method: "GET",
506
545
  uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios",
507
546
  code: 200,
508
- baseUrl: "https://dremio.api.{region}stackit.cloud",
547
+ baseUrl: "https://dremio.api.stackit.cloud",
509
548
  }),
510
549
  ),
511
550
  ).annotate({ identifier: "ListDremioInstancesRequest" });
512
551
  case 1:
513
- return S.Array(__S(88, __c5, 8));
552
+ return S.Array(__S(104, __c6, 8));
514
553
  case 2:
515
554
  return S.suspend(() =>
516
555
  S.Struct({
517
- dremios: __S(1, __c0, 1),
556
+ dremios: __S(17, __c1, 1),
518
557
  nextPageToken: S.optional(S.String),
519
558
  }),
520
559
  ).annotate({ identifier: "ListDremiosResponseOutput" });
521
560
  }
522
561
  }
523
- function __c1(j: number): any {
562
+ function __c2(j: number): any {
524
563
  switch (j) {
525
564
  case 0:
526
565
  return S.suspend(() =>
@@ -535,22 +574,22 @@ function __c1(j: number): any {
535
574
  method: "GET",
536
575
  uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users",
537
576
  code: 200,
538
- baseUrl: "https://dremio.api.{region}stackit.cloud",
577
+ baseUrl: "https://dremio.api.stackit.cloud",
539
578
  }),
540
579
  ),
541
580
  ).annotate({ identifier: "ListDremioUsersRequest" });
542
581
  case 1:
543
- return S.Array(__S(112, __c7, 0));
582
+ return S.Array(__S(128, __c8, 0));
544
583
  case 2:
545
584
  return S.suspend(() =>
546
585
  S.Struct({
547
- dremioUsers: __S(17, __c1, 1),
586
+ dremioUsers: __S(33, __c2, 1),
548
587
  nextPageToken: S.optional(S.String),
549
588
  }),
550
589
  ).annotate({ identifier: "ListDremioUsersResponse" });
551
590
  }
552
591
  }
553
- function __c2(j: number): any {
592
+ function __c3(j: number): any {
554
593
  switch (j) {
555
594
  case 0:
556
595
  return S.suspend(() =>
@@ -558,8 +597,8 @@ function __c2(j: number): any {
558
597
  projectId: S.String.pipe(T.Label()),
559
598
  regionId: S.String.pipe(T.Label()),
560
599
  dremioId: S.String.pipe(T.Label()),
561
- acl: S.optional(__S(80, __c5, 0)),
562
- authentication: S.optional(__S(66, __c4, 2)),
600
+ acl: S.optional(__S(96, __c6, 0)),
601
+ authentication: S.optional(__S(82, __c5, 2)),
563
602
  description: S.optional(S.String),
564
603
  displayName: S.optional(S.String),
565
604
  }).pipe(
@@ -567,21 +606,21 @@ function __c2(j: number): any {
567
606
  method: "PUT",
568
607
  uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}",
569
608
  code: 200,
570
- baseUrl: "https://dremio.api.{region}stackit.cloud",
609
+ baseUrl: "https://dremio.api.stackit.cloud",
571
610
  }),
572
611
  ),
573
612
  ).annotate({ identifier: "UpdateDremioInstanceRequest" });
574
613
  }
575
614
  }
576
- function __c3(j: number): any {
615
+ function __c4(j: number): any {
577
616
  switch (j) {
578
617
  case 0:
579
618
  return S.suspend(() =>
580
619
  S.Struct({
581
620
  projectId: S.String.pipe(T.Label()),
582
621
  regionId: S.String.pipe(T.Label()),
583
- acl: S.optional(__S(80, __c5, 0)),
584
- authentication: S.optional(__S(66, __c4, 2)),
622
+ acl: S.optional(__S(96, __c6, 0)),
623
+ authentication: S.optional(__S(82, __c5, 2)),
585
624
  description: S.optional(S.String),
586
625
  displayName: S.String,
587
626
  }).pipe(
@@ -589,13 +628,13 @@ function __c3(j: number): any {
589
628
  method: "POST",
590
629
  uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios",
591
630
  code: 200,
592
- baseUrl: "https://dremio.api.{region}stackit.cloud",
631
+ baseUrl: "https://dremio.api.stackit.cloud",
593
632
  }),
594
633
  ),
595
634
  ).annotate({ identifier: "CreateDremioInstanceRequest" });
596
635
  }
597
636
  }
598
- function __c4(j: number): any {
637
+ function __c5(j: number): any {
599
638
  switch (j) {
600
639
  case 0:
601
640
  return S.suspend(() =>
@@ -611,22 +650,22 @@ function __c4(j: number): any {
611
650
  authorityUrl: S.String,
612
651
  clientId: S.String,
613
652
  clientSecret: S.optional(S.String.pipe(T.SensitiveValue({}))),
614
- jwtClaims: __S(81, __c5, 1),
615
- parameters: S.optional(__S(83, __c5, 3)),
653
+ jwtClaims: __S(97, __c6, 1),
654
+ parameters: S.optional(__S(99, __c6, 3)),
616
655
  scope: S.optional(S.String),
617
656
  }),
618
657
  ).annotate({ identifier: "OauthInput" });
619
658
  case 2:
620
659
  return S.suspend(() =>
621
660
  S.Struct({
622
- azuread: S.optional(__S(64, __c4, 0)),
623
- oauth: S.optional(__S(65, __c4, 1)),
661
+ azuread: S.optional(__S(80, __c5, 0)),
662
+ oauth: S.optional(__S(81, __c5, 1)),
624
663
  type: S.String,
625
664
  }),
626
665
  ).annotate({ identifier: "AuthenticationInput" });
627
666
  }
628
667
  }
629
- function __c5(j: number): any {
668
+ function __c6(j: number): any {
630
669
  switch (j) {
631
670
  case 0:
632
671
  return S.Array(S.String);
@@ -644,7 +683,7 @@ function __c5(j: number): any {
644
683
  }),
645
684
  ).annotate({ identifier: "AuthParameters" });
646
685
  case 3:
647
- return S.Array(__S(82, __c5, 2));
686
+ return S.Array(__S(98, __c6, 2));
648
687
  case 4:
649
688
  return S.suspend(() =>
650
689
  S.Struct({
@@ -658,8 +697,8 @@ function __c5(j: number): any {
658
697
  S.Struct({
659
698
  authorityUrl: S.String,
660
699
  clientId: S.String,
661
- jwtClaims: __S(81, __c5, 1),
662
- parameters: S.optional(__S(83, __c5, 3)),
700
+ jwtClaims: __S(97, __c6, 1),
701
+ parameters: S.optional(__S(99, __c6, 3)),
663
702
  redirectUrl: S.optional(S.String),
664
703
  scope: S.optional(S.String),
665
704
  }),
@@ -667,8 +706,8 @@ function __c5(j: number): any {
667
706
  case 6:
668
707
  return S.suspend(() =>
669
708
  S.Struct({
670
- azuread: S.optional(__S(84, __c5, 4)),
671
- oauth: S.optional(__S(85, __c5, 5)),
709
+ azuread: S.optional(__S(100, __c6, 4)),
710
+ oauth: S.optional(__S(101, __c6, 5)),
672
711
  type: S.String,
673
712
  }),
674
713
  ).annotate({ identifier: "AuthenticationOutput" });
@@ -683,12 +722,12 @@ function __c5(j: number): any {
683
722
  case 8:
684
723
  return S.suspend(() =>
685
724
  S.Struct({
686
- acl: __S(80, __c5, 0),
687
- authentication: __S(86, __c5, 6),
725
+ acl: __S(96, __c6, 0),
726
+ authentication: __S(102, __c6, 6),
688
727
  create_time: S.String,
689
728
  description: S.optional(S.String),
690
729
  displayName: S.String,
691
- endpoints: __S(87, __c5, 7),
730
+ endpoints: __S(103, __c6, 7),
692
731
  errorMessage: S.optional(S.String),
693
732
  id: S.String,
694
733
  state: S.String,
@@ -696,7 +735,7 @@ function __c5(j: number): any {
696
735
  ).annotate({ identifier: "DremioResponseOutput" });
697
736
  }
698
737
  }
699
- function __c6(j: number): any {
738
+ function __c7(j: number): any {
700
739
  switch (j) {
701
740
  case 0:
702
741
  return S.suspend(() =>
@@ -715,13 +754,13 @@ function __c6(j: number): any {
715
754
  method: "POST",
716
755
  uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users",
717
756
  code: 200,
718
- baseUrl: "https://dremio.api.{region}stackit.cloud",
757
+ baseUrl: "https://dremio.api.stackit.cloud",
719
758
  }),
720
759
  ),
721
760
  ).annotate({ identifier: "CreateDremioUserRequest" });
722
761
  }
723
762
  }
724
- function __c7(j: number): any {
763
+ function __c8(j: number): any {
725
764
  switch (j) {
726
765
  case 0:
727
766
  return S.suspend(() =>
@@ -739,7 +778,7 @@ function __c7(j: number): any {
739
778
  ).annotate({ identifier: "DremioUserResponse" });
740
779
  }
741
780
  }
742
- function __c8(j: number): any {
781
+ function __c9(j: number): any {
743
782
  switch (j) {
744
783
  case 0:
745
784
  return S.suspend(() =>
@@ -752,19 +791,19 @@ function __c8(j: number): any {
752
791
  method: "DELETE",
753
792
  uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}",
754
793
  code: 200,
755
- baseUrl: "https://dremio.api.{region}stackit.cloud",
794
+ baseUrl: "https://dremio.api.stackit.cloud",
756
795
  }),
757
796
  ),
758
797
  ).annotate({ identifier: "DeleteDremioInstanceRequest" });
759
798
  }
760
799
  }
761
- function __c9(j: number): any {
800
+ function __c10(j: number): any {
762
801
  switch (j) {
763
802
  case 0:
764
803
  return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteDremioInstanceResponse" });
765
804
  }
766
805
  }
767
- function __c10(j: number): any {
806
+ function __c11(j: number): any {
768
807
  switch (j) {
769
808
  case 0:
770
809
  return S.suspend(() =>
@@ -778,13 +817,13 @@ function __c10(j: number): any {
778
817
  method: "DELETE",
779
818
  uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users/{dremioUserId}",
780
819
  code: 200,
781
- baseUrl: "https://dremio.api.{region}stackit.cloud",
820
+ baseUrl: "https://dremio.api.stackit.cloud",
782
821
  }),
783
822
  ),
784
823
  ).annotate({ identifier: "DeleteDremioUserRequest" });
785
824
  }
786
825
  }
787
- function __c11(j: number): any {
826
+ function __c12(j: number): any {
788
827
  switch (j) {
789
828
  case 0:
790
829
  return S.suspend(() =>
@@ -797,13 +836,13 @@ function __c11(j: number): any {
797
836
  method: "GET",
798
837
  uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}",
799
838
  code: 200,
800
- baseUrl: "https://dremio.api.{region}stackit.cloud",
839
+ baseUrl: "https://dremio.api.stackit.cloud",
801
840
  }),
802
841
  ),
803
842
  ).annotate({ identifier: "GetDremioInstanceRequest" });
804
843
  }
805
844
  }
806
- function __c12(j: number): any {
845
+ function __c13(j: number): any {
807
846
  switch (j) {
808
847
  case 0:
809
848
  return S.suspend(() =>
@@ -817,7 +856,7 @@ function __c12(j: number): any {
817
856
  method: "GET",
818
857
  uri: "/v1beta/projects/{projectId}/regions/{regionId}/dremios/{dremioId}/users/{dremioUserId}",
819
858
  code: 200,
820
- baseUrl: "https://dremio.api.{region}stackit.cloud",
859
+ baseUrl: "https://dremio.api.stackit.cloud",
821
860
  }),
822
861
  ),
823
862
  ).annotate({ identifier: "GetDremioUserRequest" });