@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
@@ -3,7 +3,8 @@ 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 type * as Redacted from "effect/Redacted";
7
+ import { StackitServiceErrors } from "../errors.ts";
7
8
  import { StackitProtocol, type StackitOpError, type StackitOpContext } from "../protocol.ts";
8
9
  import * as Retry from "../retry.ts";
9
10
  import * as T from "../traits.ts";
@@ -30,36 +31,64 @@ export class BadRequest
30
31
  /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
31
32
  code: S.Number,
32
33
  message: S.String,
34
+ body: /*@__PURE__*/ S.optional(
35
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(4, __c0, 4)), S.String]),
36
+ ),
37
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
33
38
  }).pipe(C.withBadRequestError),
34
39
  [{ status: 400 }],
35
- ) {}
40
+ )
41
+ {
42
+ declare readonly body?: APIErrorResponse | string;
43
+ }
36
44
 
37
45
  export class Conflict
38
46
  extends /*@__PURE__*/ T.applyErrorMatchers(
39
47
  /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
40
48
  code: S.Number,
41
49
  message: S.String,
50
+ body: /*@__PURE__*/ S.optional(
51
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(4, __c0, 4)), S.String]),
52
+ ),
53
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
42
54
  }).pipe(C.withConflictError),
43
55
  [{ status: 409 }],
44
- ) {}
56
+ )
57
+ {
58
+ declare readonly body?: APIErrorResponse | string;
59
+ }
45
60
 
46
61
  export class Forbidden
47
62
  extends /*@__PURE__*/ T.applyErrorMatchers(
48
63
  /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
49
64
  code: S.Number,
50
65
  message: S.String,
66
+ body: /*@__PURE__*/ S.optional(
67
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(4, __c0, 4)), S.String]),
68
+ ),
69
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
51
70
  }).pipe(C.withAuthError),
52
71
  [{ status: 403 }],
53
- ) {}
72
+ )
73
+ {
74
+ declare readonly body?: APIErrorResponse | string;
75
+ }
54
76
 
55
77
  export class NotFound
56
78
  extends /*@__PURE__*/ T.applyErrorMatchers(
57
79
  /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
58
80
  code: S.Number,
59
81
  message: S.String,
82
+ body: /*@__PURE__*/ S.optional(
83
+ /*@__PURE__*/ S.Union([/*@__PURE__*/ S.suspend(() => __S(4, __c0, 4)), S.String]),
84
+ ),
85
+ headers: /*@__PURE__*/ S.optional(/*@__PURE__*/ S.Record(S.String, S.String)),
60
86
  }).pipe(C.withBadRequestError),
61
87
  [{ status: 404 }],
62
- ) {}
88
+ )
89
+ {
90
+ declare readonly body?: APIErrorResponse | string;
91
+ }
63
92
 
64
93
  /** The region in which the resource is located. */
65
94
  export type CreateGatewayRequestRegion = "eu01" | "eu02";
@@ -319,7 +348,7 @@ export interface TunnelConfiguration {
319
348
  phase1: TunnelConfigurationPhase1;
320
349
  phase2: TunnelConfigurationPhase2;
321
350
  /** A Pre-Shared Key for authentication. Required in create-requests, optional in update-requests and omitted in every response. */
322
- preSharedKey?: string | undefined;
351
+ preSharedKey?: string | Redacted.Redacted<string> | undefined;
323
352
  remoteAddress: string;
324
353
  }
325
354
  export interface CreateGatewayConnectionRequest {
@@ -869,6 +898,33 @@ export interface UpdateGatewayConnectionRequest {
869
898
  tunnel1: TunnelConfiguration;
870
899
  tunnel2: TunnelConfiguration;
871
900
  }
901
+ /** Metadata contains more information. For bad requests this would be field information. */
902
+ export type APIErrorDetailMetadataMap = { [key: string]: unknown | undefined };
903
+ /** The reason why the error occurs. RESOURCE_IN_USE is returned when a referenced resource cannot be deleted; the 'metadata.references' field then lists the referencing resources (e.g. connection IDs and displayNames pointing at a BGPFilter on DELETE). */
904
+ export type APIErrorDetailReason = "INVALID_FIELD" | "INVALID_PATH_PARAMETER" | "RESOURCE_IN_USE";
905
+ export interface APIErrorDetail {
906
+ /** The domain of the error source. */
907
+ domain: string;
908
+ /** Metadata contains more information. For bad requests this would be field information. */
909
+ metadata?: APIErrorDetailMetadataMap | undefined;
910
+ /** The reason why the error occurs. RESOURCE_IN_USE is returned when a referenced resource cannot be deleted; the 'metadata.references' field then lists the referencing resources (e.g. connection IDs and displayNames pointing at a BGPFilter on DELETE). */
911
+ reason: APIErrorDetailReason;
912
+ }
913
+ /** Can contain more details on the error. */
914
+ export type APIErrorDetailsList = Array<APIErrorDetail>;
915
+ export interface APIError {
916
+ /** The HTTP status code. */
917
+ code: number;
918
+ /** Can contain more details on the error. */
919
+ details?: APIErrorDetailsList | undefined;
920
+ /** A message describing the error. */
921
+ message: string;
922
+ /** The HTTP status code text. */
923
+ status: string;
924
+ }
925
+ export interface APIErrorResponse {
926
+ error: APIError;
927
+ }
872
928
  export type CreateGatewayError = BadRequest | Forbidden | Conflict | StackitOpError;
873
929
  /** Create a VPN gateway in a project. Provision a new VPN gateway. */
874
930
  export const createGateway: API.OperationMethod<
@@ -877,9 +933,10 @@ export const createGateway: API.OperationMethod<
877
933
  CreateGatewayError,
878
934
  StackitOpContext
879
935
  > = /*@__PURE__*/ API.make(() => ({
880
- input: __S(304, __c19, 0) as any as S.Schema<CreateGatewayRequest>,
881
- output: __S(323, __c20, 3) as any as S.Schema<CreateGatewayResponse>,
882
- errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
936
+ input: __S(320, __c20, 0) as any as S.Schema<CreateGatewayRequest>,
937
+ output: __S(339, __c21, 3) as any as S.Schema<CreateGatewayResponse>,
938
+ errors: [BadRequest, Forbidden, Conflict],
939
+ serviceErrors: StackitServiceErrors,
883
940
  protocol: StackitProtocol,
884
941
  retry: Retry.Retry,
885
942
  telemetry: TELEMETRY,
@@ -899,9 +956,10 @@ export const createGatewayBGPFilter: API.OperationMethod<
899
956
  CreateGatewayBGPFilterError,
900
957
  StackitOpContext
901
958
  > = /*@__PURE__*/ API.make(() => ({
902
- input: __S(368, __c23, 0) as any as S.Schema<CreateGatewayBGPFilterRequest>,
903
- output: __S(384, __c24, 0) as any as S.Schema<BGPFilter>,
904
- errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
959
+ input: __S(384, __c24, 0) as any as S.Schema<CreateGatewayBGPFilterRequest>,
960
+ output: __S(400, __c25, 0) as any as S.Schema<BGPFilter>,
961
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
962
+ serviceErrors: StackitServiceErrors,
905
963
  protocol: StackitProtocol,
906
964
  retry: Retry.Retry,
907
965
  telemetry: TELEMETRY,
@@ -921,9 +979,10 @@ export const createGatewayBGPFilterRule: API.OperationMethod<
921
979
  CreateGatewayBGPFilterRuleError,
922
980
  StackitOpContext
923
981
  > = /*@__PURE__*/ API.make(() => ({
924
- input: __S(400, __c25, 0) as any as S.Schema<CreateGatewayBGPFilterRuleRequest>,
925
- output: __S(419, __c26, 3) as any as S.Schema<BGPFilterRule>,
926
- errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
982
+ input: __S(416, __c26, 0) as any as S.Schema<CreateGatewayBGPFilterRuleRequest>,
983
+ output: __S(435, __c27, 3) as any as S.Schema<BGPFilterRule>,
984
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
985
+ serviceErrors: StackitServiceErrors,
927
986
  protocol: StackitProtocol,
928
987
  retry: Retry.Retry,
929
988
  telemetry: TELEMETRY,
@@ -938,9 +997,10 @@ export const createGatewayConnection: API.OperationMethod<
938
997
  CreateGatewayConnectionError,
939
998
  StackitOpContext
940
999
  > = /*@__PURE__*/ API.make(() => ({
941
- input: __S(432, __c27, 0) as any as S.Schema<CreateGatewayConnectionRequest>,
942
- output: __S(454, __c28, 6) as any as S.Schema<ConnectionResponseOutput>,
943
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1000
+ input: __S(448, __c28, 0) as any as S.Schema<CreateGatewayConnectionRequest>,
1001
+ output: __S(470, __c29, 6) as any as S.Schema<ConnectionResponseOutput>,
1002
+ errors: [BadRequest, Forbidden, NotFound],
1003
+ serviceErrors: StackitServiceErrors,
944
1004
  protocol: StackitProtocol,
945
1005
  retry: Retry.Retry,
946
1006
  telemetry: TELEMETRY,
@@ -955,9 +1015,10 @@ export const deleteGateway: API.OperationMethod<
955
1015
  DeleteGatewayError,
956
1016
  StackitOpContext
957
1017
  > = /*@__PURE__*/ API.make(() => ({
958
- input: __S(480, __c30, 0) as any as S.Schema<DeleteGatewayRequest>,
959
- output: __S(496, __c31, 0) as any as S.Schema<DeleteGatewayResponse>,
960
- errors: [BadRequest, Forbidden, UnknownStackitError],
1018
+ input: __S(496, __c31, 0) as any as S.Schema<DeleteGatewayRequest>,
1019
+ output: __S(512, __c32, 0) as any as S.Schema<DeleteGatewayResponse>,
1020
+ errors: [BadRequest, Forbidden],
1021
+ serviceErrors: StackitServiceErrors,
961
1022
  protocol: StackitProtocol,
962
1023
  retry: Retry.Retry,
963
1024
  telemetry: TELEMETRY,
@@ -977,9 +1038,10 @@ export const deleteGatewayBGPFilter: API.OperationMethod<
977
1038
  DeleteGatewayBGPFilterError,
978
1039
  StackitOpContext
979
1040
  > = /*@__PURE__*/ API.make(() => ({
980
- input: __S(512, __c32, 0) as any as S.Schema<DeleteGatewayBGPFilterRequest>,
981
- output: __S(496, __c31, 0) as any as S.Schema<DeleteGatewayBGPFilterResponse>,
982
- errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
1041
+ input: __S(528, __c33, 0) as any as S.Schema<DeleteGatewayBGPFilterRequest>,
1042
+ output: __S(512, __c32, 0) as any as S.Schema<DeleteGatewayBGPFilterResponse>,
1043
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
1044
+ serviceErrors: StackitServiceErrors,
983
1045
  protocol: StackitProtocol,
984
1046
  retry: Retry.Retry,
985
1047
  telemetry: TELEMETRY,
@@ -994,9 +1056,10 @@ export const deleteGatewayBGPFilterRule: API.OperationMethod<
994
1056
  DeleteGatewayBGPFilterRuleError,
995
1057
  StackitOpContext
996
1058
  > = /*@__PURE__*/ API.make(() => ({
997
- input: __S(0, __c0, 0) as any as S.Schema<DeleteGatewayBGPFilterRuleRequest>,
998
- output: __S(496, __c31, 0) as any as S.Schema<DeleteGatewayBGPFilterRuleResponse>,
999
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1059
+ input: __S(16, __c1, 0) as any as S.Schema<DeleteGatewayBGPFilterRuleRequest>,
1060
+ output: __S(512, __c32, 0) as any as S.Schema<DeleteGatewayBGPFilterRuleResponse>,
1061
+ errors: [BadRequest, Forbidden, NotFound],
1062
+ serviceErrors: StackitServiceErrors,
1000
1063
  protocol: StackitProtocol,
1001
1064
  retry: Retry.Retry,
1002
1065
  telemetry: TELEMETRY,
@@ -1011,9 +1074,10 @@ export const deleteGatewayConnection: API.OperationMethod<
1011
1074
  DeleteGatewayConnectionError,
1012
1075
  StackitOpContext
1013
1076
  > = /*@__PURE__*/ API.make(() => ({
1014
- input: __S(16, __c1, 0) as any as S.Schema<DeleteGatewayConnectionRequest>,
1015
- output: __S(496, __c31, 0) as any as S.Schema<DeleteGatewayConnectionResponse>,
1016
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1077
+ input: __S(32, __c2, 0) as any as S.Schema<DeleteGatewayConnectionRequest>,
1078
+ output: __S(512, __c32, 0) as any as S.Schema<DeleteGatewayConnectionResponse>,
1079
+ errors: [BadRequest, Forbidden, NotFound],
1080
+ serviceErrors: StackitServiceErrors,
1017
1081
  protocol: StackitProtocol,
1018
1082
  retry: Retry.Retry,
1019
1083
  telemetry: TELEMETRY,
@@ -1028,9 +1092,10 @@ export const getGateway: API.OperationMethod<
1028
1092
  GetGatewayError,
1029
1093
  StackitOpContext
1030
1094
  > = /*@__PURE__*/ API.make(() => ({
1031
- input: __S(32, __c2, 0) as any as S.Schema<GetGatewayRequest>,
1032
- output: __S(323, __c20, 3) as any as S.Schema<GetGatewayResponse>,
1033
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1095
+ input: __S(48, __c3, 0) as any as S.Schema<GetGatewayRequest>,
1096
+ output: __S(339, __c21, 3) as any as S.Schema<GetGatewayResponse>,
1097
+ errors: [BadRequest, Forbidden, NotFound],
1098
+ serviceErrors: StackitServiceErrors,
1034
1099
  protocol: StackitProtocol,
1035
1100
  retry: Retry.Retry,
1036
1101
  telemetry: TELEMETRY,
@@ -1045,9 +1110,10 @@ export const getGatewayBGPFilter: API.OperationMethod<
1045
1110
  GetGatewayBGPFilterError,
1046
1111
  StackitOpContext
1047
1112
  > = /*@__PURE__*/ API.make(() => ({
1048
- input: __S(48, __c3, 0) as any as S.Schema<GetGatewayBGPFilterRequest>,
1049
- output: __S(384, __c24, 0) as any as S.Schema<BGPFilter>,
1050
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1113
+ input: __S(64, __c4, 0) as any as S.Schema<GetGatewayBGPFilterRequest>,
1114
+ output: __S(400, __c25, 0) as any as S.Schema<BGPFilter>,
1115
+ errors: [BadRequest, Forbidden, NotFound],
1116
+ serviceErrors: StackitServiceErrors,
1051
1117
  protocol: StackitProtocol,
1052
1118
  retry: Retry.Retry,
1053
1119
  telemetry: TELEMETRY,
@@ -1062,9 +1128,10 @@ export const getGatewayBGPFilterRule: API.OperationMethod<
1062
1128
  GetGatewayBGPFilterRuleError,
1063
1129
  StackitOpContext
1064
1130
  > = /*@__PURE__*/ API.make(() => ({
1065
- input: __S(64, __c4, 0) as any as S.Schema<GetGatewayBGPFilterRuleRequest>,
1066
- output: __S(419, __c26, 3) as any as S.Schema<BGPFilterRule>,
1067
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1131
+ input: __S(80, __c5, 0) as any as S.Schema<GetGatewayBGPFilterRuleRequest>,
1132
+ output: __S(435, __c27, 3) as any as S.Schema<BGPFilterRule>,
1133
+ errors: [BadRequest, Forbidden, NotFound],
1134
+ serviceErrors: StackitServiceErrors,
1068
1135
  protocol: StackitProtocol,
1069
1136
  retry: Retry.Retry,
1070
1137
  telemetry: TELEMETRY,
@@ -1079,9 +1146,10 @@ export const getGatewayConnection: API.OperationMethod<
1079
1146
  GetGatewayConnectionError,
1080
1147
  StackitOpContext
1081
1148
  > = /*@__PURE__*/ API.make(() => ({
1082
- input: __S(80, __c5, 0) as any as S.Schema<GetGatewayConnectionRequest>,
1083
- output: __S(454, __c28, 6) as any as S.Schema<ConnectionResponseOutput>,
1084
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1149
+ input: __S(96, __c6, 0) as any as S.Schema<GetGatewayConnectionRequest>,
1150
+ output: __S(470, __c29, 6) as any as S.Schema<ConnectionResponseOutput>,
1151
+ errors: [BadRequest, Forbidden, NotFound],
1152
+ serviceErrors: StackitServiceErrors,
1085
1153
  protocol: StackitProtocol,
1086
1154
  retry: Retry.Retry,
1087
1155
  telemetry: TELEMETRY,
@@ -1096,9 +1164,10 @@ export const getGatewayConnectionStatus: API.OperationMethod<
1096
1164
  GetGatewayConnectionStatusError,
1097
1165
  StackitOpContext
1098
1166
  > = /*@__PURE__*/ API.make(() => ({
1099
- input: __S(96, __c6, 0) as any as S.Schema<GetGatewayConnectionStatusRequest>,
1100
- output: __S(116, __c7, 4) as any as S.Schema<ConnectionStatusResponse>,
1101
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1167
+ input: __S(112, __c7, 0) as any as S.Schema<GetGatewayConnectionStatusRequest>,
1168
+ output: __S(132, __c8, 4) as any as S.Schema<ConnectionStatusResponse>,
1169
+ errors: [BadRequest, Forbidden, NotFound],
1170
+ serviceErrors: StackitServiceErrors,
1102
1171
  protocol: StackitProtocol,
1103
1172
  retry: Retry.Retry,
1104
1173
  telemetry: TELEMETRY,
@@ -1113,9 +1182,10 @@ export const getGatewayStatus: API.OperationMethod<
1113
1182
  GetGatewayStatusError,
1114
1183
  StackitOpContext
1115
1184
  > = /*@__PURE__*/ API.make(() => ({
1116
- input: __S(128, __c8, 0) as any as S.Schema<GetGatewayStatusRequest>,
1117
- output: __S(137, __c8, 9) as any as S.Schema<GatewayStatusResponse>,
1118
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1185
+ input: __S(144, __c9, 0) as any as S.Schema<GetGatewayStatusRequest>,
1186
+ output: __S(153, __c9, 9) as any as S.Schema<GatewayStatusResponse>,
1187
+ errors: [BadRequest, Forbidden, NotFound],
1188
+ serviceErrors: StackitServiceErrors,
1119
1189
  protocol: StackitProtocol,
1120
1190
  retry: Retry.Retry,
1121
1191
  telemetry: TELEMETRY,
@@ -1130,9 +1200,10 @@ export const listGatewayBGPFilterRules: API.OperationMethod<
1130
1200
  ListGatewayBGPFilterRulesError,
1131
1201
  StackitOpContext
1132
1202
  > = /*@__PURE__*/ API.make(() => ({
1133
- input: __S(144, __c9, 0) as any as S.Schema<ListGatewayBGPFilterRulesRequest>,
1134
- output: __S(146, __c9, 2) as any as S.Schema<BGPFilterRuleList>,
1135
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1203
+ input: __S(160, __c10, 0) as any as S.Schema<ListGatewayBGPFilterRulesRequest>,
1204
+ output: __S(162, __c10, 2) as any as S.Schema<BGPFilterRuleList>,
1205
+ errors: [BadRequest, Forbidden, NotFound],
1206
+ serviceErrors: StackitServiceErrors,
1136
1207
  protocol: StackitProtocol,
1137
1208
  retry: Retry.Retry,
1138
1209
  telemetry: TELEMETRY,
@@ -1147,9 +1218,10 @@ export const listGatewayBGPFilters: API.OperationMethod<
1147
1218
  ListGatewayBGPFiltersError,
1148
1219
  StackitOpContext
1149
1220
  > = /*@__PURE__*/ API.make(() => ({
1150
- input: __S(160, __c10, 0) as any as S.Schema<ListGatewayBGPFiltersRequest>,
1151
- output: __S(162, __c10, 2) as any as S.Schema<BGPFilterList>,
1152
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1221
+ input: __S(176, __c11, 0) as any as S.Schema<ListGatewayBGPFiltersRequest>,
1222
+ output: __S(178, __c11, 2) as any as S.Schema<BGPFilterList>,
1223
+ errors: [BadRequest, Forbidden, NotFound],
1224
+ serviceErrors: StackitServiceErrors,
1153
1225
  protocol: StackitProtocol,
1154
1226
  retry: Retry.Retry,
1155
1227
  telemetry: TELEMETRY,
@@ -1164,9 +1236,10 @@ export const listGatewayConnections: API.OperationMethod<
1164
1236
  ListGatewayConnectionsError,
1165
1237
  StackitOpContext
1166
1238
  > = /*@__PURE__*/ API.make(() => ({
1167
- input: __S(176, __c11, 0) as any as S.Schema<ListGatewayConnectionsRequest>,
1168
- output: __S(178, __c11, 2) as any as S.Schema<ConnectionListOutput>,
1169
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1239
+ input: __S(192, __c12, 0) as any as S.Schema<ListGatewayConnectionsRequest>,
1240
+ output: __S(194, __c12, 2) as any as S.Schema<ConnectionListOutput>,
1241
+ errors: [BadRequest, Forbidden, NotFound],
1242
+ serviceErrors: StackitServiceErrors,
1170
1243
  protocol: StackitProtocol,
1171
1244
  retry: Retry.Retry,
1172
1245
  telemetry: TELEMETRY,
@@ -1181,9 +1254,10 @@ export const listGateways: API.OperationMethod<
1181
1254
  ListGatewaysError,
1182
1255
  StackitOpContext
1183
1256
  > = /*@__PURE__*/ API.make(() => ({
1184
- input: __S(192, __c12, 0) as any as S.Schema<ListGatewaysRequest>,
1185
- output: __S(194, __c12, 2) as any as S.Schema<GatewayList>,
1186
- errors: [BadRequest, Forbidden, UnknownStackitError],
1257
+ input: __S(208, __c13, 0) as any as S.Schema<ListGatewaysRequest>,
1258
+ output: __S(210, __c13, 2) as any as S.Schema<GatewayList>,
1259
+ errors: [BadRequest, Forbidden],
1260
+ serviceErrors: StackitServiceErrors,
1187
1261
  protocol: StackitProtocol,
1188
1262
  retry: Retry.Retry,
1189
1263
  telemetry: TELEMETRY,
@@ -1198,9 +1272,10 @@ export const listPlans: API.OperationMethod<
1198
1272
  ListPlansError,
1199
1273
  StackitOpContext
1200
1274
  > = /*@__PURE__*/ API.make(() => ({
1201
- input: __S(208, __c13, 0) as any as S.Schema<ListPlansRequest>,
1202
- output: __S(211, __c13, 3) as any as S.Schema<PlanList>,
1203
- errors: [BadRequest, UnknownStackitError],
1275
+ input: __S(224, __c14, 0) as any as S.Schema<ListPlansRequest>,
1276
+ output: __S(227, __c14, 3) as any as S.Schema<PlanList>,
1277
+ errors: [BadRequest],
1278
+ serviceErrors: StackitServiceErrors,
1204
1279
  protocol: StackitProtocol,
1205
1280
  retry: Retry.Retry,
1206
1281
  telemetry: TELEMETRY,
@@ -1215,9 +1290,10 @@ export const listQuotas: API.OperationMethod<
1215
1290
  ListQuotasError,
1216
1291
  StackitOpContext
1217
1292
  > = /*@__PURE__*/ API.make(() => ({
1218
- input: __S(224, __c14, 0) as any as S.Schema<ListQuotasRequest>,
1219
- output: __S(227, __c14, 3) as any as S.Schema<QuotaListResponse>,
1220
- errors: [BadRequest, UnknownStackitError],
1293
+ input: __S(240, __c15, 0) as any as S.Schema<ListQuotasRequest>,
1294
+ output: __S(243, __c15, 3) as any as S.Schema<QuotaListResponse>,
1295
+ errors: [BadRequest],
1296
+ serviceErrors: StackitServiceErrors,
1221
1297
  protocol: StackitProtocol,
1222
1298
  retry: Retry.Retry,
1223
1299
  telemetry: TELEMETRY,
@@ -1232,9 +1308,10 @@ export const updateGateway: API.OperationMethod<
1232
1308
  UpdateGatewayError,
1233
1309
  StackitOpContext
1234
1310
  > = /*@__PURE__*/ API.make(() => ({
1235
- input: __S(240, __c15, 0) as any as S.Schema<UpdateGatewayRequest>,
1236
- output: __S(323, __c20, 3) as any as S.Schema<UpdateGatewayResponse>,
1237
- errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
1311
+ input: __S(256, __c16, 0) as any as S.Schema<UpdateGatewayRequest>,
1312
+ output: __S(339, __c21, 3) as any as S.Schema<UpdateGatewayResponse>,
1313
+ errors: [BadRequest, Forbidden, Conflict],
1314
+ serviceErrors: StackitServiceErrors,
1238
1315
  protocol: StackitProtocol,
1239
1316
  retry: Retry.Retry,
1240
1317
  telemetry: TELEMETRY,
@@ -1254,9 +1331,10 @@ export const updateGatewayBGPFilter: API.OperationMethod<
1254
1331
  UpdateGatewayBGPFilterError,
1255
1332
  StackitOpContext
1256
1333
  > = /*@__PURE__*/ API.make(() => ({
1257
- input: __S(256, __c16, 0) as any as S.Schema<UpdateGatewayBGPFilterRequest>,
1258
- output: __S(384, __c24, 0) as any as S.Schema<BGPFilter>,
1259
- errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
1334
+ input: __S(272, __c17, 0) as any as S.Schema<UpdateGatewayBGPFilterRequest>,
1335
+ output: __S(400, __c25, 0) as any as S.Schema<BGPFilter>,
1336
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
1337
+ serviceErrors: StackitServiceErrors,
1260
1338
  protocol: StackitProtocol,
1261
1339
  retry: Retry.Retry,
1262
1340
  telemetry: TELEMETRY,
@@ -1276,9 +1354,10 @@ export const updateGatewayBGPFilterRule: API.OperationMethod<
1276
1354
  UpdateGatewayBGPFilterRuleError,
1277
1355
  StackitOpContext
1278
1356
  > = /*@__PURE__*/ API.make(() => ({
1279
- input: __S(272, __c17, 0) as any as S.Schema<UpdateGatewayBGPFilterRuleRequest>,
1280
- output: __S(419, __c26, 3) as any as S.Schema<BGPFilterRule>,
1281
- errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
1357
+ input: __S(288, __c18, 0) as any as S.Schema<UpdateGatewayBGPFilterRuleRequest>,
1358
+ output: __S(435, __c27, 3) as any as S.Schema<BGPFilterRule>,
1359
+ errors: [BadRequest, Forbidden, NotFound, Conflict],
1360
+ serviceErrors: StackitServiceErrors,
1282
1361
  protocol: StackitProtocol,
1283
1362
  retry: Retry.Retry,
1284
1363
  telemetry: TELEMETRY,
@@ -1293,9 +1372,10 @@ export const updateGatewayConnection: API.OperationMethod<
1293
1372
  UpdateGatewayConnectionError,
1294
1373
  StackitOpContext
1295
1374
  > = /*@__PURE__*/ API.make(() => ({
1296
- input: __S(288, __c18, 0) as any as S.Schema<UpdateGatewayConnectionRequest>,
1297
- output: __S(454, __c28, 6) as any as S.Schema<ConnectionResponseOutput>,
1298
- errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1375
+ input: __S(304, __c19, 0) as any as S.Schema<UpdateGatewayConnectionRequest>,
1376
+ output: __S(470, __c29, 6) as any as S.Schema<ConnectionResponseOutput>,
1377
+ errors: [BadRequest, Forbidden, NotFound],
1378
+ serviceErrors: StackitServiceErrors,
1299
1379
  protocol: StackitProtocol,
1300
1380
  retry: Retry.Retry,
1301
1381
  telemetry: TELEMETRY,
@@ -1304,6 +1384,37 @@ export const updateGatewayConnection: API.OperationMethod<
1304
1384
 
1305
1385
  // Schema builders: each runs one schema initializer, on that schema's first use.
1306
1386
  function __c0(j: number): any {
1387
+ switch (j) {
1388
+ case 0:
1389
+ return S.Record(S.String, S.Unknown);
1390
+ case 1:
1391
+ return S.suspend(() =>
1392
+ S.Struct({
1393
+ domain: S.String,
1394
+ metadata: S.optional(__S(0, __c0, 0)),
1395
+ reason: S.String,
1396
+ }),
1397
+ ).annotate({ identifier: "APIErrorDetail" });
1398
+ case 2:
1399
+ return S.Array(__S(1, __c0, 1));
1400
+ case 3:
1401
+ return S.suspend(() =>
1402
+ S.Struct({
1403
+ code: S.Number,
1404
+ details: S.optional(__S(2, __c0, 2)),
1405
+ message: S.String,
1406
+ status: S.String,
1407
+ }),
1408
+ ).annotate({ identifier: "APIError" });
1409
+ case 4:
1410
+ return S.suspend(() =>
1411
+ S.Struct({
1412
+ error: __S(3, __c0, 3),
1413
+ }),
1414
+ ).annotate({ identifier: "APIErrorResponse" });
1415
+ }
1416
+ }
1417
+ function __c1(j: number): any {
1307
1418
  switch (j) {
1308
1419
  case 0:
1309
1420
  return S.suspend(() =>
@@ -1324,7 +1435,7 @@ function __c0(j: number): any {
1324
1435
  ).annotate({ identifier: "DeleteGatewayBGPFilterRuleRequest" });
1325
1436
  }
1326
1437
  }
1327
- function __c1(j: number): any {
1438
+ function __c2(j: number): any {
1328
1439
  switch (j) {
1329
1440
  case 0:
1330
1441
  return S.suspend(() =>
@@ -1344,7 +1455,7 @@ function __c1(j: number): any {
1344
1455
  ).annotate({ identifier: "DeleteGatewayConnectionRequest" });
1345
1456
  }
1346
1457
  }
1347
- function __c2(j: number): any {
1458
+ function __c3(j: number): any {
1348
1459
  switch (j) {
1349
1460
  case 0:
1350
1461
  return S.suspend(() =>
@@ -1363,7 +1474,7 @@ function __c2(j: number): any {
1363
1474
  ).annotate({ identifier: "GetGatewayRequest" });
1364
1475
  }
1365
1476
  }
1366
- function __c3(j: number): any {
1477
+ function __c4(j: number): any {
1367
1478
  switch (j) {
1368
1479
  case 0:
1369
1480
  return S.suspend(() =>
@@ -1383,7 +1494,7 @@ function __c3(j: number): any {
1383
1494
  ).annotate({ identifier: "GetGatewayBGPFilterRequest" });
1384
1495
  }
1385
1496
  }
1386
- function __c4(j: number): any {
1497
+ function __c5(j: number): any {
1387
1498
  switch (j) {
1388
1499
  case 0:
1389
1500
  return S.suspend(() =>
@@ -1404,7 +1515,7 @@ function __c4(j: number): any {
1404
1515
  ).annotate({ identifier: "GetGatewayBGPFilterRuleRequest" });
1405
1516
  }
1406
1517
  }
1407
- function __c5(j: number): any {
1518
+ function __c6(j: number): any {
1408
1519
  switch (j) {
1409
1520
  case 0:
1410
1521
  return S.suspend(() =>
@@ -1424,7 +1535,7 @@ function __c5(j: number): any {
1424
1535
  ).annotate({ identifier: "GetGatewayConnectionRequest" });
1425
1536
  }
1426
1537
  }
1427
- function __c6(j: number): any {
1538
+ function __c7(j: number): any {
1428
1539
  switch (j) {
1429
1540
  case 0:
1430
1541
  return S.suspend(() =>
@@ -1444,7 +1555,7 @@ function __c6(j: number): any {
1444
1555
  ).annotate({ identifier: "GetGatewayConnectionStatusRequest" });
1445
1556
  }
1446
1557
  }
1447
- function __c7(j: number): any {
1558
+ function __c8(j: number): any {
1448
1559
  switch (j) {
1449
1560
  case 0:
1450
1561
  return S.suspend(() =>
@@ -1464,11 +1575,11 @@ function __c7(j: number): any {
1464
1575
  encap: S.optional(S.String),
1465
1576
  encryptionAlgorithm: S.optional(S.String),
1466
1577
  integrityAlgorithm: S.optional(S.String),
1467
- localTS: S.optional(__S(336, __c21, 0)),
1578
+ localTS: S.optional(__S(352, __c22, 0)),
1468
1579
  packetsIn: S.optional(S.String),
1469
1580
  packetsOut: S.optional(S.String),
1470
1581
  protocol: S.optional(S.String),
1471
- remoteTS: S.optional(__S(336, __c21, 0)),
1582
+ remoteTS: S.optional(__S(352, __c22, 0)),
1472
1583
  state: S.optional(S.String),
1473
1584
  }),
1474
1585
  ).annotate({ identifier: "Phase2Status" });
@@ -1477,24 +1588,24 @@ function __c7(j: number): any {
1477
1588
  S.Struct({
1478
1589
  established: S.optional(S.Boolean),
1479
1590
  name: S.optional(S.String),
1480
- phase1: S.optional(__S(112, __c7, 0)),
1481
- phase2: S.optional(__S(113, __c7, 1)),
1591
+ phase1: S.optional(__S(128, __c8, 0)),
1592
+ phase2: S.optional(__S(129, __c8, 1)),
1482
1593
  }),
1483
1594
  ).annotate({ identifier: "TunnelStatus" });
1484
1595
  case 3:
1485
- return S.Array(__S(114, __c7, 2));
1596
+ return S.Array(__S(130, __c8, 2));
1486
1597
  case 4:
1487
1598
  return S.suspend(() =>
1488
1599
  S.Struct({
1489
1600
  displayName: S.optional(S.String),
1490
1601
  enabled: S.optional(S.Boolean),
1491
1602
  id: S.optional(S.String),
1492
- tunnels: S.optional(__S(115, __c7, 3)),
1603
+ tunnels: S.optional(__S(131, __c8, 3)),
1493
1604
  }),
1494
1605
  ).annotate({ identifier: "ConnectionStatusResponse" });
1495
1606
  }
1496
1607
  }
1497
- function __c8(j: number): any {
1608
+ function __c9(j: number): any {
1498
1609
  switch (j) {
1499
1610
  case 0:
1500
1611
  return S.suspend(() =>
@@ -1512,7 +1623,7 @@ function __c8(j: number): any {
1512
1623
  ),
1513
1624
  ).annotate({ identifier: "GetGatewayStatusRequest" });
1514
1625
  case 1:
1515
- return S.Array(__S(116, __c7, 4));
1626
+ return S.Array(__S(132, __c8, 4));
1516
1627
  case 2:
1517
1628
  return S.suspend(() =>
1518
1629
  S.Struct({
@@ -1526,7 +1637,7 @@ function __c8(j: number): any {
1526
1637
  }),
1527
1638
  ).annotate({ identifier: "BGPStatusPeers" });
1528
1639
  case 3:
1529
- return S.Array(__S(130, __c8, 2));
1640
+ return S.Array(__S(146, __c9, 2));
1530
1641
  case 4:
1531
1642
  return S.suspend(() =>
1532
1643
  S.Struct({
@@ -1538,18 +1649,18 @@ function __c8(j: number): any {
1538
1649
  }),
1539
1650
  ).annotate({ identifier: "BGPStatusRoutes" });
1540
1651
  case 5:
1541
- return S.Array(__S(132, __c8, 4));
1652
+ return S.Array(__S(148, __c9, 4));
1542
1653
  case 6:
1543
1654
  return S.suspend(() =>
1544
1655
  S.Struct({
1545
- peers: S.optional(__S(131, __c8, 3)),
1546
- routes: S.optional(__S(133, __c8, 5)),
1656
+ peers: S.optional(__S(147, __c9, 3)),
1657
+ routes: S.optional(__S(149, __c9, 5)),
1547
1658
  }),
1548
1659
  ).annotate({ identifier: "BGPStatus" });
1549
1660
  case 7:
1550
1661
  return S.suspend(() =>
1551
1662
  S.Struct({
1552
- bgpStatus: S.optional(S.NullOr(__S(134, __c8, 6))),
1663
+ bgpStatus: S.optional(S.NullOr(__S(150, __c9, 6))),
1553
1664
  instanceState: S.optional(S.String),
1554
1665
  internalNextHopIP: S.optional(S.String),
1555
1666
  name: S.optional(S.String),
@@ -1557,21 +1668,21 @@ function __c8(j: number): any {
1557
1668
  }),
1558
1669
  ).annotate({ identifier: "VPNTunnels" });
1559
1670
  case 8:
1560
- return S.Array(__S(135, __c8, 7));
1671
+ return S.Array(__S(151, __c9, 7));
1561
1672
  case 9:
1562
1673
  return S.suspend(() =>
1563
1674
  S.Struct({
1564
- connections: S.optional(__S(129, __c8, 1)),
1675
+ connections: S.optional(__S(145, __c9, 1)),
1565
1676
  displayName: S.optional(S.String),
1566
1677
  errorMessage: S.optional(S.String),
1567
1678
  gatewayStatus: S.optional(S.String),
1568
1679
  id: S.optional(S.String),
1569
- tunnels: S.optional(__S(136, __c8, 8)),
1680
+ tunnels: S.optional(__S(152, __c9, 8)),
1570
1681
  }),
1571
1682
  ).annotate({ identifier: "GatewayStatusResponse" });
1572
1683
  }
1573
1684
  }
1574
- function __c9(j: number): any {
1685
+ function __c10(j: number): any {
1575
1686
  switch (j) {
1576
1687
  case 0:
1577
1688
  return S.suspend(() =>
@@ -1590,16 +1701,16 @@ function __c9(j: number): any {
1590
1701
  ),
1591
1702
  ).annotate({ identifier: "ListGatewayBGPFilterRulesRequest" });
1592
1703
  case 1:
1593
- return S.Array(__S(419, __c26, 3));
1704
+ return S.Array(__S(435, __c27, 3));
1594
1705
  case 2:
1595
1706
  return S.suspend(() =>
1596
1707
  S.Struct({
1597
- rules: __S(145, __c9, 1),
1708
+ rules: __S(161, __c10, 1),
1598
1709
  }),
1599
1710
  ).annotate({ identifier: "BGPFilterRuleList" });
1600
1711
  }
1601
1712
  }
1602
- function __c10(j: number): any {
1713
+ function __c11(j: number): any {
1603
1714
  switch (j) {
1604
1715
  case 0:
1605
1716
  return S.suspend(() =>
@@ -1617,16 +1728,16 @@ function __c10(j: number): any {
1617
1728
  ),
1618
1729
  ).annotate({ identifier: "ListGatewayBGPFiltersRequest" });
1619
1730
  case 1:
1620
- return S.Array(__S(384, __c24, 0));
1731
+ return S.Array(__S(400, __c25, 0));
1621
1732
  case 2:
1622
1733
  return S.suspend(() =>
1623
1734
  S.Struct({
1624
- bgpFilters: __S(161, __c10, 1),
1735
+ bgpFilters: __S(177, __c11, 1),
1625
1736
  }),
1626
1737
  ).annotate({ identifier: "BGPFilterList" });
1627
1738
  }
1628
1739
  }
1629
- function __c11(j: number): any {
1740
+ function __c12(j: number): any {
1630
1741
  switch (j) {
1631
1742
  case 0:
1632
1743
  return S.suspend(() =>
@@ -1634,7 +1745,7 @@ function __c11(j: number): any {
1634
1745
  projectId: S.String.pipe(T.Label()),
1635
1746
  region: S.String.pipe(T.Label()),
1636
1747
  gatewayId: S.String.pipe(T.Label()),
1637
- label_selector: S.optional(__S(352, __c22, 0).pipe(T.Query())),
1748
+ label_selector: S.optional(__S(368, __c23, 0).pipe(T.Query())),
1638
1749
  }).pipe(
1639
1750
  T.Http({
1640
1751
  method: "GET",
@@ -1645,23 +1756,23 @@ function __c11(j: number): any {
1645
1756
  ),
1646
1757
  ).annotate({ identifier: "ListGatewayConnectionsRequest" });
1647
1758
  case 1:
1648
- return S.Array(__S(454, __c28, 6));
1759
+ return S.Array(__S(470, __c29, 6));
1649
1760
  case 2:
1650
1761
  return S.suspend(() =>
1651
1762
  S.Struct({
1652
- connections: __S(177, __c11, 1),
1763
+ connections: __S(193, __c12, 1),
1653
1764
  }),
1654
1765
  ).annotate({ identifier: "ConnectionListOutput" });
1655
1766
  }
1656
1767
  }
1657
- function __c12(j: number): any {
1768
+ function __c13(j: number): any {
1658
1769
  switch (j) {
1659
1770
  case 0:
1660
1771
  return S.suspend(() =>
1661
1772
  S.Struct({
1662
1773
  projectId: S.String.pipe(T.Label()),
1663
1774
  region: S.String.pipe(T.Label()),
1664
- label_selector: S.optional(__S(352, __c22, 0).pipe(T.Query())),
1775
+ label_selector: S.optional(__S(368, __c23, 0).pipe(T.Query())),
1665
1776
  }).pipe(
1666
1777
  T.Http({
1667
1778
  method: "GET",
@@ -1672,16 +1783,16 @@ function __c12(j: number): any {
1672
1783
  ),
1673
1784
  ).annotate({ identifier: "ListGatewaysRequest" });
1674
1785
  case 1:
1675
- return S.Array(__S(323, __c20, 3));
1786
+ return S.Array(__S(339, __c21, 3));
1676
1787
  case 2:
1677
1788
  return S.suspend(() =>
1678
1789
  S.Struct({
1679
- gateways: __S(193, __c12, 1),
1790
+ gateways: __S(209, __c13, 1),
1680
1791
  }),
1681
1792
  ).annotate({ identifier: "GatewayList" });
1682
1793
  }
1683
1794
  }
1684
- function __c13(j: number): any {
1795
+ function __c14(j: number): any {
1685
1796
  switch (j) {
1686
1797
  case 0:
1687
1798
  return S.suspend(() =>
@@ -1707,17 +1818,17 @@ function __c13(j: number): any {
1707
1818
  }),
1708
1819
  ).annotate({ identifier: "Plan" });
1709
1820
  case 2:
1710
- return S.Array(__S(209, __c13, 1));
1821
+ return S.Array(__S(225, __c14, 1));
1711
1822
  case 3:
1712
1823
  return S.suspend(() =>
1713
1824
  S.Struct({
1714
1825
  defaultPlanId: S.optional(S.String),
1715
- plans: S.optional(__S(210, __c13, 2)),
1826
+ plans: S.optional(__S(226, __c14, 2)),
1716
1827
  }),
1717
1828
  ).annotate({ identifier: "PlanList" });
1718
1829
  }
1719
1830
  }
1720
- function __c14(j: number): any {
1831
+ function __c15(j: number): any {
1721
1832
  switch (j) {
1722
1833
  case 0:
1723
1834
  return S.suspend(() =>
@@ -1743,18 +1854,18 @@ function __c14(j: number): any {
1743
1854
  case 2:
1744
1855
  return S.suspend(() =>
1745
1856
  S.Struct({
1746
- gateways: __S(225, __c14, 1),
1857
+ gateways: __S(241, __c15, 1),
1747
1858
  }),
1748
1859
  ).annotate({ identifier: "QuotaList" });
1749
1860
  case 3:
1750
1861
  return S.suspend(() =>
1751
1862
  S.Struct({
1752
- quotas: __S(226, __c14, 2),
1863
+ quotas: __S(242, __c15, 2),
1753
1864
  }),
1754
1865
  ).annotate({ identifier: "QuotaListResponse" });
1755
1866
  }
1756
1867
  }
1757
- function __c15(j: number): any {
1868
+ function __c16(j: number): any {
1758
1869
  switch (j) {
1759
1870
  case 0:
1760
1871
  return S.suspend(() =>
@@ -1762,11 +1873,11 @@ function __c15(j: number): any {
1762
1873
  projectId: S.String.pipe(T.Label()),
1763
1874
  region: S.String.pipe(T.Label()),
1764
1875
  gatewayId: S.String.pipe(T.Label()),
1765
- availabilityZones: __S(320, __c20, 0),
1766
- bgp: S.optional(__S(321, __c20, 1)),
1876
+ availabilityZones: __S(336, __c21, 0),
1877
+ bgp: S.optional(__S(337, __c21, 1)),
1767
1878
  displayName: S.String,
1768
- labels: S.optional(__S(352, __c22, 0)),
1769
- networkConfig: S.optional(__S(322, __c20, 2)),
1879
+ labels: S.optional(__S(368, __c23, 0)),
1880
+ networkConfig: S.optional(__S(338, __c21, 2)),
1770
1881
  planId: S.String,
1771
1882
  routingType: S.String,
1772
1883
  }).pipe(
@@ -1780,7 +1891,7 @@ function __c15(j: number): any {
1780
1891
  ).annotate({ identifier: "UpdateGatewayRequest" });
1781
1892
  }
1782
1893
  }
1783
- function __c16(j: number): any {
1894
+ function __c17(j: number): any {
1784
1895
  switch (j) {
1785
1896
  case 0:
1786
1897
  return S.suspend(() =>
@@ -1801,7 +1912,7 @@ function __c16(j: number): any {
1801
1912
  ).annotate({ identifier: "UpdateGatewayBGPFilterRequest" });
1802
1913
  }
1803
1914
  }
1804
- function __c17(j: number): any {
1915
+ function __c18(j: number): any {
1805
1916
  switch (j) {
1806
1917
  case 0:
1807
1918
  return S.suspend(() =>
@@ -1812,9 +1923,9 @@ function __c17(j: number): any {
1812
1923
  filterId: S.String.pipe(T.Label()),
1813
1924
  ruleId: S.String.pipe(T.Label()),
1814
1925
  action: S.String,
1815
- match: S.optional(__S(417, __c26, 1)),
1926
+ match: S.optional(__S(433, __c27, 1)),
1816
1927
  sequence: S.optional(S.Number),
1817
- set: S.optional(__S(418, __c26, 2)),
1928
+ set: S.optional(__S(434, __c27, 2)),
1818
1929
  }).pipe(
1819
1930
  T.Http({
1820
1931
  method: "PUT",
@@ -1826,7 +1937,7 @@ function __c17(j: number): any {
1826
1937
  ).annotate({ identifier: "UpdateGatewayBGPFilterRuleRequest" });
1827
1938
  }
1828
1939
  }
1829
- function __c18(j: number): any {
1940
+ function __c19(j: number): any {
1830
1941
  switch (j) {
1831
1942
  case 0:
1832
1943
  return S.suspend(() =>
@@ -1837,12 +1948,12 @@ function __c18(j: number): any {
1837
1948
  connectionId: S.String.pipe(T.Label()),
1838
1949
  displayName: S.String,
1839
1950
  enabled: S.optional(S.Boolean),
1840
- labels: S.optional(__S(352, __c22, 0)),
1841
- localSubnets: S.optional(__S(336, __c21, 0)),
1842
- remoteSubnets: S.optional(__S(336, __c21, 0)),
1843
- staticRoutes: S.optional(__S(336, __c21, 0)),
1844
- tunnel1: __S(464, __c29, 0),
1845
- tunnel2: __S(464, __c29, 0),
1951
+ labels: S.optional(__S(368, __c23, 0)),
1952
+ localSubnets: S.optional(__S(352, __c22, 0)),
1953
+ remoteSubnets: S.optional(__S(352, __c22, 0)),
1954
+ staticRoutes: S.optional(__S(352, __c22, 0)),
1955
+ tunnel1: __S(480, __c30, 0),
1956
+ tunnel2: __S(480, __c30, 0),
1846
1957
  }).pipe(
1847
1958
  T.Http({
1848
1959
  method: "PUT",
@@ -1854,18 +1965,18 @@ function __c18(j: number): any {
1854
1965
  ).annotate({ identifier: "UpdateGatewayConnectionRequest" });
1855
1966
  }
1856
1967
  }
1857
- function __c19(j: number): any {
1968
+ function __c20(j: number): any {
1858
1969
  switch (j) {
1859
1970
  case 0:
1860
1971
  return S.suspend(() =>
1861
1972
  S.Struct({
1862
1973
  projectId: S.String.pipe(T.Label()),
1863
1974
  region: S.String.pipe(T.Label()),
1864
- availabilityZones: __S(320, __c20, 0),
1865
- bgp: S.optional(__S(321, __c20, 1)),
1975
+ availabilityZones: __S(336, __c21, 0),
1976
+ bgp: S.optional(__S(337, __c21, 1)),
1866
1977
  displayName: S.String,
1867
- labels: S.optional(__S(352, __c22, 0)),
1868
- networkConfig: S.optional(__S(322, __c20, 2)),
1978
+ labels: S.optional(__S(368, __c23, 0)),
1979
+ networkConfig: S.optional(__S(338, __c21, 2)),
1869
1980
  planId: S.String,
1870
1981
  routingType: S.String,
1871
1982
  }).pipe(
@@ -1879,7 +1990,7 @@ function __c19(j: number): any {
1879
1990
  ).annotate({ identifier: "CreateGatewayRequest" });
1880
1991
  }
1881
1992
  }
1882
- function __c20(j: number): any {
1993
+ function __c21(j: number): any {
1883
1994
  switch (j) {
1884
1995
  case 0:
1885
1996
  return S.suspend(() =>
@@ -1892,7 +2003,7 @@ function __c20(j: number): any {
1892
2003
  return S.suspend(() =>
1893
2004
  S.Struct({
1894
2005
  localAsn: S.Number,
1895
- overrideAdvertisedRoutes: S.optional(__S(336, __c21, 0)),
2006
+ overrideAdvertisedRoutes: S.optional(__S(352, __c22, 0)),
1896
2007
  }),
1897
2008
  ).annotate({ identifier: "BGPGatewayConfig" });
1898
2009
  case 2:
@@ -1905,11 +2016,11 @@ function __c20(j: number): any {
1905
2016
  case 3:
1906
2017
  return S.suspend(() =>
1907
2018
  S.Struct({
1908
- availabilityZones: __S(320, __c20, 0),
1909
- bgp: S.optional(__S(321, __c20, 1)),
2019
+ availabilityZones: __S(336, __c21, 0),
2020
+ bgp: S.optional(__S(337, __c21, 1)),
1910
2021
  displayName: S.String,
1911
- labels: S.optional(__S(352, __c22, 0)),
1912
- networkConfig: S.optional(__S(322, __c20, 2)),
2022
+ labels: S.optional(__S(368, __c23, 0)),
2023
+ networkConfig: S.optional(__S(338, __c21, 2)),
1913
2024
  planId: S.String,
1914
2025
  routingType: S.String,
1915
2026
  id: S.optional(S.String),
@@ -1918,19 +2029,19 @@ function __c20(j: number): any {
1918
2029
  ).annotate({ identifier: "CreateGatewayResponse" });
1919
2030
  }
1920
2031
  }
1921
- function __c21(j: number): any {
2032
+ function __c22(j: number): any {
1922
2033
  switch (j) {
1923
2034
  case 0:
1924
2035
  return S.Array(S.String);
1925
2036
  }
1926
2037
  }
1927
- function __c22(j: number): any {
2038
+ function __c23(j: number): any {
1928
2039
  switch (j) {
1929
2040
  case 0:
1930
2041
  return S.Record(S.String, S.String);
1931
2042
  }
1932
2043
  }
1933
- function __c23(j: number): any {
2044
+ function __c24(j: number): any {
1934
2045
  switch (j) {
1935
2046
  case 0:
1936
2047
  return S.suspend(() =>
@@ -1950,7 +2061,7 @@ function __c23(j: number): any {
1950
2061
  ).annotate({ identifier: "CreateGatewayBGPFilterRequest" });
1951
2062
  }
1952
2063
  }
1953
- function __c24(j: number): any {
2064
+ function __c25(j: number): any {
1954
2065
  switch (j) {
1955
2066
  case 0:
1956
2067
  return S.suspend(() =>
@@ -1961,7 +2072,7 @@ function __c24(j: number): any {
1961
2072
  ).annotate({ identifier: "BGPFilter" });
1962
2073
  }
1963
2074
  }
1964
- function __c25(j: number): any {
2075
+ function __c26(j: number): any {
1965
2076
  switch (j) {
1966
2077
  case 0:
1967
2078
  return S.suspend(() =>
@@ -1971,9 +2082,9 @@ function __c25(j: number): any {
1971
2082
  gatewayId: S.String.pipe(T.Label()),
1972
2083
  filterId: S.String.pipe(T.Label()),
1973
2084
  action: S.String,
1974
- match: S.optional(__S(417, __c26, 1)),
2085
+ match: S.optional(__S(433, __c27, 1)),
1975
2086
  sequence: S.optional(S.Number),
1976
- set: S.optional(__S(418, __c26, 2)),
2087
+ set: S.optional(__S(434, __c27, 2)),
1977
2088
  }).pipe(
1978
2089
  T.Http({
1979
2090
  method: "POST",
@@ -1985,20 +2096,20 @@ function __c25(j: number): any {
1985
2096
  ).annotate({ identifier: "CreateGatewayBGPFilterRuleRequest" });
1986
2097
  }
1987
2098
  }
1988
- function __c26(j: number): any {
2099
+ function __c27(j: number): any {
1989
2100
  switch (j) {
1990
2101
  case 0:
1991
2102
  return S.Array(S.Number);
1992
2103
  case 1:
1993
2104
  return S.suspend(() =>
1994
2105
  S.Struct({
1995
- asPathContainsAny: S.optional(__S(416, __c26, 0)),
1996
- communities: S.optional(__S(336, __c21, 0)),
2106
+ asPathContainsAny: S.optional(__S(432, __c27, 0)),
2107
+ communities: S.optional(__S(352, __c22, 0)),
1997
2108
  firstASN: S.optional(S.Number),
1998
2109
  maxPrefixLength: S.optional(S.Number),
1999
2110
  minPrefixLength: S.optional(S.Number),
2000
2111
  peer: S.optional(S.String),
2001
- prefixes: S.optional(__S(336, __c21, 0)),
2112
+ prefixes: S.optional(__S(352, __c22, 0)),
2002
2113
  }),
2003
2114
  ).annotate({ identifier: "CreateGatewayBGPFilterRuleRequestMatch" });
2004
2115
  case 2:
@@ -2012,14 +2123,14 @@ function __c26(j: number): any {
2012
2123
  S.Struct({
2013
2124
  action: S.String,
2014
2125
  id: S.optional(S.String),
2015
- match: S.optional(__S(417, __c26, 1)),
2126
+ match: S.optional(__S(433, __c27, 1)),
2016
2127
  sequence: S.optional(S.Number),
2017
- set: S.optional(__S(418, __c26, 2)),
2128
+ set: S.optional(__S(434, __c27, 2)),
2018
2129
  }),
2019
2130
  ).annotate({ identifier: "BGPFilterRule" });
2020
2131
  }
2021
2132
  }
2022
- function __c27(j: number): any {
2133
+ function __c28(j: number): any {
2023
2134
  switch (j) {
2024
2135
  case 0:
2025
2136
  return S.suspend(() =>
@@ -2029,12 +2140,12 @@ function __c27(j: number): any {
2029
2140
  gatewayId: S.String.pipe(T.Label()),
2030
2141
  displayName: S.String,
2031
2142
  enabled: S.optional(S.Boolean),
2032
- labels: S.optional(__S(352, __c22, 0)),
2033
- localSubnets: S.optional(__S(336, __c21, 0)),
2034
- remoteSubnets: S.optional(__S(336, __c21, 0)),
2035
- staticRoutes: S.optional(__S(336, __c21, 0)),
2036
- tunnel1: __S(464, __c29, 0),
2037
- tunnel2: __S(464, __c29, 0),
2143
+ labels: S.optional(__S(368, __c23, 0)),
2144
+ localSubnets: S.optional(__S(352, __c22, 0)),
2145
+ remoteSubnets: S.optional(__S(352, __c22, 0)),
2146
+ staticRoutes: S.optional(__S(352, __c22, 0)),
2147
+ tunnel1: __S(480, __c30, 0),
2148
+ tunnel2: __S(480, __c30, 0),
2038
2149
  }).pipe(
2039
2150
  T.Http({
2040
2151
  method: "POST",
@@ -2046,7 +2157,7 @@ function __c27(j: number): any {
2046
2157
  ).annotate({ identifier: "CreateGatewayConnectionRequest" });
2047
2158
  }
2048
2159
  }
2049
- function __c28(j: number): any {
2160
+ function __c29(j: number): any {
2050
2161
  switch (j) {
2051
2162
  case 0:
2052
2163
  return S.suspend(() =>
@@ -2067,18 +2178,18 @@ function __c28(j: number): any {
2067
2178
  case 3:
2068
2179
  return S.suspend(() =>
2069
2180
  S.Struct({
2070
- dhGroups: S.optional(__S(450, __c28, 2)),
2071
- encryptionAlgorithms: __S(450, __c28, 2),
2072
- integrityAlgorithms: __S(450, __c28, 2),
2181
+ dhGroups: S.optional(__S(466, __c29, 2)),
2182
+ encryptionAlgorithms: __S(466, __c29, 2),
2183
+ integrityAlgorithms: __S(466, __c29, 2),
2073
2184
  rekeyTime: S.optional(S.Number),
2074
2185
  }),
2075
2186
  ).annotate({ identifier: "TunnelConfigurationPhase1" });
2076
2187
  case 4:
2077
2188
  return S.suspend(() =>
2078
2189
  S.Struct({
2079
- dhGroups: S.optional(__S(450, __c28, 2)),
2080
- encryptionAlgorithms: __S(450, __c28, 2),
2081
- integrityAlgorithms: __S(450, __c28, 2),
2190
+ dhGroups: S.optional(__S(466, __c29, 2)),
2191
+ encryptionAlgorithms: __S(466, __c29, 2),
2192
+ integrityAlgorithms: __S(466, __c29, 2),
2082
2193
  dpdAction: S.optional(S.String),
2083
2194
  rekeyTime: S.optional(S.Number),
2084
2195
  startAction: S.optional(S.String),
@@ -2087,10 +2198,10 @@ function __c28(j: number): any {
2087
2198
  case 5:
2088
2199
  return S.suspend(() =>
2089
2200
  S.Struct({
2090
- bgp: S.optional(__S(448, __c28, 0)),
2091
- peering: S.optional(__S(449, __c28, 1)),
2092
- phase1: __S(451, __c28, 3),
2093
- phase2: __S(452, __c28, 4),
2201
+ bgp: S.optional(__S(464, __c29, 0)),
2202
+ peering: S.optional(__S(465, __c29, 1)),
2203
+ phase1: __S(467, __c29, 3),
2204
+ phase2: __S(468, __c29, 4),
2094
2205
  remoteAddress: S.String,
2095
2206
  }),
2096
2207
  ).annotate({ identifier: "TunnelConfigurationOutput" });
@@ -2100,32 +2211,32 @@ function __c28(j: number): any {
2100
2211
  displayName: S.String,
2101
2212
  enabled: S.optional(S.Boolean),
2102
2213
  id: S.optional(S.String),
2103
- labels: S.optional(__S(352, __c22, 0)),
2104
- localSubnets: S.optional(__S(336, __c21, 0)),
2105
- remoteSubnets: S.optional(__S(336, __c21, 0)),
2106
- staticRoutes: S.optional(__S(336, __c21, 0)),
2107
- tunnel1: __S(453, __c28, 5),
2108
- tunnel2: __S(453, __c28, 5),
2214
+ labels: S.optional(__S(368, __c23, 0)),
2215
+ localSubnets: S.optional(__S(352, __c22, 0)),
2216
+ remoteSubnets: S.optional(__S(352, __c22, 0)),
2217
+ staticRoutes: S.optional(__S(352, __c22, 0)),
2218
+ tunnel1: __S(469, __c29, 5),
2219
+ tunnel2: __S(469, __c29, 5),
2109
2220
  }),
2110
2221
  ).annotate({ identifier: "ConnectionResponseOutput" });
2111
2222
  }
2112
2223
  }
2113
- function __c29(j: number): any {
2224
+ function __c30(j: number): any {
2114
2225
  switch (j) {
2115
2226
  case 0:
2116
2227
  return S.suspend(() =>
2117
2228
  S.Struct({
2118
- bgp: S.optional(__S(448, __c28, 0)),
2119
- peering: S.optional(__S(449, __c28, 1)),
2120
- phase1: __S(451, __c28, 3),
2121
- phase2: __S(452, __c28, 4),
2122
- preSharedKey: S.optional(S.String),
2229
+ bgp: S.optional(__S(464, __c29, 0)),
2230
+ peering: S.optional(__S(465, __c29, 1)),
2231
+ phase1: __S(467, __c29, 3),
2232
+ phase2: __S(468, __c29, 4),
2233
+ preSharedKey: S.optional(S.String.pipe(T.SensitiveValue({}))),
2123
2234
  remoteAddress: S.String,
2124
2235
  }),
2125
2236
  ).annotate({ identifier: "TunnelConfiguration" });
2126
2237
  }
2127
2238
  }
2128
- function __c30(j: number): any {
2239
+ function __c31(j: number): any {
2129
2240
  switch (j) {
2130
2241
  case 0:
2131
2242
  return S.suspend(() =>
@@ -2144,13 +2255,13 @@ function __c30(j: number): any {
2144
2255
  ).annotate({ identifier: "DeleteGatewayRequest" });
2145
2256
  }
2146
2257
  }
2147
- function __c31(j: number): any {
2258
+ function __c32(j: number): any {
2148
2259
  switch (j) {
2149
2260
  case 0:
2150
2261
  return S.suspend(() => S.Struct({})).annotate({ identifier: "DeleteGatewayResponse" });
2151
2262
  }
2152
2263
  }
2153
- function __c32(j: number): any {
2264
+ function __c33(j: number): any {
2154
2265
  switch (j) {
2155
2266
  case 0:
2156
2267
  return S.suspend(() =>