@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.13

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 (298) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +33 -2
  3. package/lib/credentials.d.ts +29 -0
  4. package/lib/credentials.d.ts.map +1 -0
  5. package/lib/credentials.js +49 -0
  6. package/lib/credentials.js.map +1 -0
  7. package/lib/errors.d.ts +36 -0
  8. package/lib/errors.d.ts.map +1 -0
  9. package/lib/errors.js +26 -0
  10. package/lib/errors.js.map +1 -0
  11. package/lib/index.d.ts +30 -0
  12. package/lib/index.d.ts.map +1 -0
  13. package/lib/index.js +30 -0
  14. package/lib/index.js.map +1 -0
  15. package/lib/pagination.d.ts +9 -0
  16. package/lib/pagination.d.ts.map +1 -0
  17. package/lib/pagination.js +48 -0
  18. package/lib/pagination.js.map +1 -0
  19. package/lib/protocol.d.ts +32 -0
  20. package/lib/protocol.d.ts.map +1 -0
  21. package/lib/protocol.js +148 -0
  22. package/lib/protocol.js.map +1 -0
  23. package/lib/response-validation.test.d.ts +4 -0
  24. package/lib/response-validation.test.d.ts.map +1 -0
  25. package/lib/response-validation.test.js +31 -0
  26. package/lib/response-validation.test.js.map +1 -0
  27. package/lib/retry.d.ts +31 -0
  28. package/lib/retry.d.ts.map +1 -0
  29. package/lib/retry.js +31 -0
  30. package/lib/retry.js.map +1 -0
  31. package/lib/services/alb.d.ts +603 -0
  32. package/lib/services/alb.d.ts.map +1 -0
  33. package/lib/services/alb.js +562 -0
  34. package/lib/services/alb.js.map +1 -0
  35. package/lib/services/alb_waf.d.ts +526 -0
  36. package/lib/services/alb_waf.d.ts.map +1 -0
  37. package/lib/services/alb_waf.js +545 -0
  38. package/lib/services/alb_waf.js.map +1 -0
  39. package/lib/services/authorization.d.ts +251 -0
  40. package/lib/services/authorization.d.ts.map +1 -0
  41. package/lib/services/authorization.js +353 -0
  42. package/lib/services/authorization.js.map +1 -0
  43. package/lib/services/automation.d.ts +358 -0
  44. package/lib/services/automation.d.ts.map +1 -0
  45. package/lib/services/automation.js +426 -0
  46. package/lib/services/automation.js.map +1 -0
  47. package/lib/services/cdn.d.ts +1239 -0
  48. package/lib/services/cdn.d.ts.map +1 -0
  49. package/lib/services/cdn.js +992 -0
  50. package/lib/services/cdn.js.map +1 -0
  51. package/lib/services/certificates.d.ts +201 -0
  52. package/lib/services/certificates.d.ts.map +1 -0
  53. package/lib/services/certificates.js +197 -0
  54. package/lib/services/certificates.js.map +1 -0
  55. package/lib/services/cost.d.ts +222 -0
  56. package/lib/services/cost.d.ts.map +1 -0
  57. package/lib/services/cost.js +188 -0
  58. package/lib/services/cost.js.map +1 -0
  59. package/lib/services/dns.d.ts +875 -0
  60. package/lib/services/dns.d.ts.map +1 -0
  61. package/lib/services/dns.js +854 -0
  62. package/lib/services/dns.js.map +1 -0
  63. package/lib/services/dremio.d.ts +358 -0
  64. package/lib/services/dremio.d.ts.map +1 -0
  65. package/lib/services/dremio.js +339 -0
  66. package/lib/services/dremio.js.map +1 -0
  67. package/lib/services/edge.d.ts +312 -0
  68. package/lib/services/edge.d.ts.map +1 -0
  69. package/lib/services/edge.js +375 -0
  70. package/lib/services/edge.js.map +1 -0
  71. package/lib/services/functions.d.ts +409 -0
  72. package/lib/services/functions.d.ts.map +1 -0
  73. package/lib/services/functions.js +423 -0
  74. package/lib/services/functions.js.map +1 -0
  75. package/lib/services/git.d.ts +497 -0
  76. package/lib/services/git.d.ts.map +1 -0
  77. package/lib/services/git.js +552 -0
  78. package/lib/services/git.js.map +1 -0
  79. package/lib/services/iaas.d.ts +2965 -0
  80. package/lib/services/iaas.d.ts.map +1 -0
  81. package/lib/services/iaas.js +3768 -0
  82. package/lib/services/iaas.js.map +1 -0
  83. package/lib/services/index.d.ts +51 -0
  84. package/lib/services/index.d.ts.map +1 -0
  85. package/lib/services/index.js +52 -0
  86. package/lib/services/index.js.map +1 -0
  87. package/lib/services/intake.d.ts +555 -0
  88. package/lib/services/intake.d.ts.map +1 -0
  89. package/lib/services/intake.js +513 -0
  90. package/lib/services/intake.js.map +1 -0
  91. package/lib/services/kms.d.ts +654 -0
  92. package/lib/services/kms.d.ts.map +1 -0
  93. package/lib/services/kms.js +703 -0
  94. package/lib/services/kms.js.map +1 -0
  95. package/lib/services/lb_ip_lists.d.ts +162 -0
  96. package/lib/services/lb_ip_lists.d.ts.map +1 -0
  97. package/lib/services/lb_ip_lists.js +173 -0
  98. package/lib/services/lb_ip_lists.js.map +1 -0
  99. package/lib/services/load_balancer.d.ts +563 -0
  100. package/lib/services/load_balancer.d.ts.map +1 -0
  101. package/lib/services/load_balancer.js +542 -0
  102. package/lib/services/load_balancer.js.map +1 -0
  103. package/lib/services/logme.d.ts +516 -0
  104. package/lib/services/logme.d.ts.map +1 -0
  105. package/lib/services/logme.js +636 -0
  106. package/lib/services/logme.js.map +1 -0
  107. package/lib/services/logs.d.ts +436 -0
  108. package/lib/services/logs.d.ts.map +1 -0
  109. package/lib/services/logs.js +498 -0
  110. package/lib/services/logs.js.map +1 -0
  111. package/lib/services/mariadb.d.ts +479 -0
  112. package/lib/services/mariadb.d.ts.map +1 -0
  113. package/lib/services/mariadb.js +611 -0
  114. package/lib/services/mariadb.js.map +1 -0
  115. package/lib/services/model_experiments.d.ts +306 -0
  116. package/lib/services/model_experiments.d.ts.map +1 -0
  117. package/lib/services/model_experiments.js +356 -0
  118. package/lib/services/model_experiments.js.map +1 -0
  119. package/lib/services/model_serving.d.ts +289 -0
  120. package/lib/services/model_serving.d.ts.map +1 -0
  121. package/lib/services/model_serving.js +319 -0
  122. package/lib/services/model_serving.js.map +1 -0
  123. package/lib/services/mongodb_flex.d.ts +826 -0
  124. package/lib/services/mongodb_flex.d.ts.map +1 -0
  125. package/lib/services/mongodb_flex.js +889 -0
  126. package/lib/services/mongodb_flex.js.map +1 -0
  127. package/lib/services/object_storage.d.ts +446 -0
  128. package/lib/services/object_storage.d.ts.map +1 -0
  129. package/lib/services/object_storage.js +577 -0
  130. package/lib/services/object_storage.js.map +1 -0
  131. package/lib/services/observability.d.ts +2750 -0
  132. package/lib/services/observability.d.ts.map +1 -0
  133. package/lib/services/observability.js +3407 -0
  134. package/lib/services/observability.js.map +1 -0
  135. package/lib/services/opensearch.d.ts +505 -0
  136. package/lib/services/opensearch.d.ts.map +1 -0
  137. package/lib/services/opensearch.js +623 -0
  138. package/lib/services/opensearch.js.map +1 -0
  139. package/lib/services/pim.d.ts +997 -0
  140. package/lib/services/pim.d.ts.map +1 -0
  141. package/lib/services/pim.js +789 -0
  142. package/lib/services/pim.js.map +1 -0
  143. package/lib/services/postgres_flex.d.ts +854 -0
  144. package/lib/services/postgres_flex.d.ts.map +1 -0
  145. package/lib/services/postgres_flex.js +1018 -0
  146. package/lib/services/postgres_flex.js.map +1 -0
  147. package/lib/services/pubsub.d.ts +489 -0
  148. package/lib/services/pubsub.d.ts.map +1 -0
  149. package/lib/services/pubsub.js +614 -0
  150. package/lib/services/pubsub.js.map +1 -0
  151. package/lib/services/rabbitmq.d.ts +523 -0
  152. package/lib/services/rabbitmq.d.ts.map +1 -0
  153. package/lib/services/rabbitmq.js +636 -0
  154. package/lib/services/rabbitmq.js.map +1 -0
  155. package/lib/services/registry.d.ts +212 -0
  156. package/lib/services/registry.d.ts.map +1 -0
  157. package/lib/services/registry.js +221 -0
  158. package/lib/services/registry.js.map +1 -0
  159. package/lib/services/resource_manager.d.ts +458 -0
  160. package/lib/services/resource_manager.d.ts.map +1 -0
  161. package/lib/services/resource_manager.js +503 -0
  162. package/lib/services/resource_manager.js.map +1 -0
  163. package/lib/services/run_command.d.ts +175 -0
  164. package/lib/services/run_command.d.ts.map +1 -0
  165. package/lib/services/run_command.js +203 -0
  166. package/lib/services/run_command.js.map +1 -0
  167. package/lib/services/sca.d.ts +541 -0
  168. package/lib/services/sca.d.ts.map +1 -0
  169. package/lib/services/sca.js +478 -0
  170. package/lib/services/sca.js.map +1 -0
  171. package/lib/services/scf.d.ts +498 -0
  172. package/lib/services/scf.d.ts.map +1 -0
  173. package/lib/services/scf.js +718 -0
  174. package/lib/services/scf.js.map +1 -0
  175. package/lib/services/secrets_manager.d.ts +505 -0
  176. package/lib/services/secrets_manager.d.ts.map +1 -0
  177. package/lib/services/secrets_manager.js +659 -0
  178. package/lib/services/secrets_manager.js.map +1 -0
  179. package/lib/services/server_backup.d.ts +380 -0
  180. package/lib/services/server_backup.d.ts.map +1 -0
  181. package/lib/services/server_backup.js +474 -0
  182. package/lib/services/server_backup.js.map +1 -0
  183. package/lib/services/server_update.d.ts +292 -0
  184. package/lib/services/server_update.d.ts.map +1 -0
  185. package/lib/services/server_update.js +364 -0
  186. package/lib/services/server_update.js.map +1 -0
  187. package/lib/services/service_account.d.ts +465 -0
  188. package/lib/services/service_account.d.ts.map +1 -0
  189. package/lib/services/service_account.js +523 -0
  190. package/lib/services/service_account.js.map +1 -0
  191. package/lib/services/service_enablement.d.ts +149 -0
  192. package/lib/services/service_enablement.d.ts.map +1 -0
  193. package/lib/services/service_enablement.js +159 -0
  194. package/lib/services/service_enablement.js.map +1 -0
  195. package/lib/services/sfs.d.ts +721 -0
  196. package/lib/services/sfs.d.ts.map +1 -0
  197. package/lib/services/sfs.js +845 -0
  198. package/lib/services/sfs.js.map +1 -0
  199. package/lib/services/ske.d.ts +536 -0
  200. package/lib/services/ske.d.ts.map +1 -0
  201. package/lib/services/ske.js +598 -0
  202. package/lib/services/ske.js.map +1 -0
  203. package/lib/services/sqlserverflex.d.ts +956 -0
  204. package/lib/services/sqlserverflex.d.ts.map +1 -0
  205. package/lib/services/sqlserverflex.js +1087 -0
  206. package/lib/services/sqlserverflex.js.map +1 -0
  207. package/lib/services/stackit_marketplace.d.ts +288 -0
  208. package/lib/services/stackit_marketplace.d.ts.map +1 -0
  209. package/lib/services/stackit_marketplace.js +393 -0
  210. package/lib/services/stackit_marketplace.js.map +1 -0
  211. package/lib/services/telemetry_link.d.ts +443 -0
  212. package/lib/services/telemetry_link.d.ts.map +1 -0
  213. package/lib/services/telemetry_link.js +550 -0
  214. package/lib/services/telemetry_link.js.map +1 -0
  215. package/lib/services/telemetry_router.d.ts +493 -0
  216. package/lib/services/telemetry_router.d.ts.map +1 -0
  217. package/lib/services/telemetry_router.js +523 -0
  218. package/lib/services/telemetry_router.js.map +1 -0
  219. package/lib/services/ufw.d.ts +295 -0
  220. package/lib/services/ufw.d.ts.map +1 -0
  221. package/lib/services/ufw.js +301 -0
  222. package/lib/services/ufw.js.map +1 -0
  223. package/lib/services/valkey.d.ts +505 -0
  224. package/lib/services/valkey.d.ts.map +1 -0
  225. package/lib/services/valkey.js +627 -0
  226. package/lib/services/valkey.js.map +1 -0
  227. package/lib/services/vpn.d.ts +1024 -0
  228. package/lib/services/vpn.d.ts.map +1 -0
  229. package/lib/services/vpn.js +1013 -0
  230. package/lib/services/vpn.js.map +1 -0
  231. package/lib/services/workflows.d.ts +600 -0
  232. package/lib/services/workflows.d.ts.map +1 -0
  233. package/lib/services/workflows.js +556 -0
  234. package/lib/services/workflows.js.map +1 -0
  235. package/lib/traits.d.ts +24 -0
  236. package/lib/traits.d.ts.map +1 -0
  237. package/lib/traits.js +15 -0
  238. package/lib/traits.js.map +1 -0
  239. package/package.json +83 -3
  240. package/src/credentials.ts +90 -0
  241. package/src/errors.ts +50 -0
  242. package/src/index.ts +34 -0
  243. package/src/pagination.ts +73 -0
  244. package/src/protocol.ts +243 -0
  245. package/src/response-validation.test.ts +45 -0
  246. package/src/retry.ts +53 -0
  247. package/src/services/alb.ts +1409 -0
  248. package/src/services/alb_waf.ts +1347 -0
  249. package/src/services/authorization.ts +740 -0
  250. package/src/services/automation.ts +966 -0
  251. package/src/services/cdn.ts +2736 -0
  252. package/src/services/certificates.ts +450 -0
  253. package/src/services/cost.ts +484 -0
  254. package/src/services/dns.ts +2271 -0
  255. package/src/services/dremio.ts +803 -0
  256. package/src/services/edge.ts +839 -0
  257. package/src/services/functions.ts +1010 -0
  258. package/src/services/git.ts +1275 -0
  259. package/src/services/iaas.ts +8670 -0
  260. package/src/services/index.ts +51 -0
  261. package/src/services/intake.ts +1233 -0
  262. package/src/services/kms.ts +1638 -0
  263. package/src/services/lb_ip_lists.ts +377 -0
  264. package/src/services/load_balancer.ts +1342 -0
  265. package/src/services/logme.ts +1379 -0
  266. package/src/services/logs.ts +1150 -0
  267. package/src/services/mariadb.ts +1293 -0
  268. package/src/services/model_experiments.ts +797 -0
  269. package/src/services/model_serving.ts +697 -0
  270. package/src/services/mongodb_flex.ts +2078 -0
  271. package/src/services/object_storage.ts +1248 -0
  272. package/src/services/observability.ts +7856 -0
  273. package/src/services/opensearch.ts +1354 -0
  274. package/src/services/pim.ts +2090 -0
  275. package/src/services/postgres_flex.ts +2326 -0
  276. package/src/services/pubsub.ts +1336 -0
  277. package/src/services/rabbitmq.ts +1402 -0
  278. package/src/services/registry.ts +494 -0
  279. package/src/services/resource_manager.ts +1155 -0
  280. package/src/services/run_command.ts +441 -0
  281. package/src/services/sca.ts +1222 -0
  282. package/src/services/scf.ts +1537 -0
  283. package/src/services/secrets_manager.ts +1399 -0
  284. package/src/services/server_backup.ts +1032 -0
  285. package/src/services/server_update.ts +767 -0
  286. package/src/services/service_account.ts +1208 -0
  287. package/src/services/service_enablement.ts +359 -0
  288. package/src/services/sfs.ts +1913 -0
  289. package/src/services/ske.ts +1408 -0
  290. package/src/services/sqlserverflex.ts +2543 -0
  291. package/src/services/stackit_marketplace.ts +853 -0
  292. package/src/services/telemetry_link.ts +1245 -0
  293. package/src/services/telemetry_router.ts +1205 -0
  294. package/src/services/ufw.ts +704 -0
  295. package/src/services/valkey.ts +1357 -0
  296. package/src/services/vpn.ts +2554 -0
  297. package/src/services/workflows.ts +1361 -0
  298. package/src/traits.ts +65 -0
@@ -0,0 +1,1013 @@
1
+ // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
2
+ import * as S from "@distilled.cloud/core/schema";
3
+ import * as API from "@distilled.cloud/core/api";
4
+ import * as C from "@distilled.cloud/core/category";
5
+ import * as T from "../traits.js";
6
+ import { StackitProtocol, } from "../protocol.js";
7
+ import { UnknownStackitError } from "../errors.js";
8
+ import * as Retry from "../retry.js";
9
+ export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
10
+ /*@__PURE__*/ S.TaggedError()("BadRequest", {
11
+ code: S.Number,
12
+ message: S.String,
13
+ }).pipe(C.withBadRequestError), [{ status: 400 }]) {
14
+ }
15
+ export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
16
+ /*@__PURE__*/ S.TaggedError()("Conflict", {
17
+ code: S.Number,
18
+ message: S.String,
19
+ }).pipe(C.withConflictError), [{ status: 409 }]) {
20
+ }
21
+ export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
22
+ /*@__PURE__*/ S.TaggedError()("Forbidden", {
23
+ code: S.Number,
24
+ message: S.String,
25
+ }).pipe(C.withAuthError), [{ status: 403 }]) {
26
+ }
27
+ export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
28
+ /*@__PURE__*/ S.TaggedError()("NotFound", {
29
+ code: S.Number,
30
+ message: S.String,
31
+ }).pipe(C.withBadRequestError), [{ status: 404 }]) {
32
+ }
33
+ export const CreateGatewayRequestRegion = /*@__PURE__*/ S.String;
34
+ export const CreateGatewayRequestAvailabilityZones = /*@__PURE__*/ S.suspend(() => S.Struct({
35
+ tunnel1: S.String,
36
+ tunnel2: S.String,
37
+ })).annotate({
38
+ identifier: "CreateGatewayRequestAvailabilityZones",
39
+ });
40
+ export const BGPGatewayConfigOverrideAdvertisedRoutesList =
41
+ /*@__PURE__*/ S.Array(S.String);
42
+ export const BGPGatewayConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
43
+ localAsn: S.Number,
44
+ overrideAdvertisedRoutes: S.optional(BGPGatewayConfigOverrideAdvertisedRoutesList),
45
+ })).annotate({
46
+ identifier: "BGPGatewayConfig",
47
+ });
48
+ export const Label = /*@__PURE__*/ S.Record(S.String, S.String);
49
+ export const NetworkConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
50
+ predefinedNetworkPrefix: S.optional(S.String),
51
+ routingTableId: S.optional(S.String),
52
+ })).annotate({ identifier: "NetworkConfig" });
53
+ export const RoutingType = /*@__PURE__*/ S.String;
54
+ export const CreateGatewayRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
55
+ projectId: S.String.pipe(T.Label()),
56
+ region: CreateGatewayRequestRegion.pipe(T.Label()),
57
+ availabilityZones: CreateGatewayRequestAvailabilityZones,
58
+ bgp: S.optional(BGPGatewayConfig),
59
+ displayName: S.String,
60
+ labels: S.optional(Label),
61
+ networkConfig: S.optional(NetworkConfig),
62
+ planId: S.String,
63
+ routingType: RoutingType,
64
+ }).pipe(T.Http({
65
+ method: "POST",
66
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways",
67
+ code: 200,
68
+ baseUrl: "https://vpn.api.stackit.cloud",
69
+ }))).annotate({
70
+ identifier: "CreateGatewayRequest",
71
+ });
72
+ export const CreateGatewayResponseAvailabilityZones = CreateGatewayRequestAvailabilityZones;
73
+ export const GatewayStatus = /*@__PURE__*/ S.String;
74
+ export const CreateGatewayResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
75
+ availabilityZones: CreateGatewayRequestAvailabilityZones,
76
+ bgp: S.optional(BGPGatewayConfig),
77
+ displayName: S.String,
78
+ labels: S.optional(Label),
79
+ networkConfig: S.optional(NetworkConfig),
80
+ planId: S.String,
81
+ routingType: RoutingType,
82
+ id: S.optional(S.String),
83
+ state: S.optional(GatewayStatus),
84
+ })).annotate({
85
+ identifier: "CreateGatewayResponse",
86
+ });
87
+ export const CreateGatewayBGPFilterRequestRegion = /*@__PURE__*/ S.String;
88
+ export const CreateGatewayBGPFilterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
89
+ projectId: S.String.pipe(T.Label()),
90
+ region: CreateGatewayBGPFilterRequestRegion.pipe(T.Label()),
91
+ gatewayId: S.String.pipe(T.Label()),
92
+ displayName: S.String,
93
+ }).pipe(T.Http({
94
+ method: "POST",
95
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters",
96
+ code: 200,
97
+ baseUrl: "https://vpn.api.stackit.cloud",
98
+ }))).annotate({
99
+ identifier: "CreateGatewayBGPFilterRequest",
100
+ });
101
+ export const BGPFilter = /*@__PURE__*/ S.suspend(() => S.Struct({
102
+ displayName: S.String,
103
+ id: S.optional(S.String),
104
+ })).annotate({ identifier: "BGPFilter" });
105
+ export const CreateGatewayBGPFilterRuleRequestRegion = /*@__PURE__*/ S.String;
106
+ export const CreateGatewayBGPFilterRuleRequestAction = /*@__PURE__*/ S.String;
107
+ export const CreateGatewayBGPFilterRuleRequestMatchAsPathContainsAnyList =
108
+ /*@__PURE__*/ S.Array(S.Number);
109
+ export const CreateGatewayBGPFilterRuleRequestMatchCommunitiesList =
110
+ /*@__PURE__*/ S.Array(S.String);
111
+ export const CreateGatewayBGPFilterRuleRequestMatchPrefixesList =
112
+ /*@__PURE__*/ S.Array(S.String);
113
+ export const CreateGatewayBGPFilterRuleRequestMatch = /*@__PURE__*/ S.suspend(() => S.Struct({
114
+ asPathContainsAny: S.optional(CreateGatewayBGPFilterRuleRequestMatchAsPathContainsAnyList),
115
+ communities: S.optional(CreateGatewayBGPFilterRuleRequestMatchCommunitiesList),
116
+ firstASN: S.optional(S.Number),
117
+ maxPrefixLength: S.optional(S.Number),
118
+ minPrefixLength: S.optional(S.Number),
119
+ peer: S.optional(S.String),
120
+ prefixes: S.optional(CreateGatewayBGPFilterRuleRequestMatchPrefixesList),
121
+ })).annotate({
122
+ identifier: "CreateGatewayBGPFilterRuleRequestMatch",
123
+ });
124
+ export const CreateGatewayBGPFilterRuleRequestSet = /*@__PURE__*/ S.suspend(() => S.Struct({
125
+ localPreference: S.optional(S.Number),
126
+ })).annotate({
127
+ identifier: "CreateGatewayBGPFilterRuleRequestSet",
128
+ });
129
+ export const CreateGatewayBGPFilterRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
130
+ projectId: S.String.pipe(T.Label()),
131
+ region: CreateGatewayBGPFilterRuleRequestRegion.pipe(T.Label()),
132
+ gatewayId: S.String.pipe(T.Label()),
133
+ filterId: S.String.pipe(T.Label()),
134
+ action: CreateGatewayBGPFilterRuleRequestAction,
135
+ match: S.optional(CreateGatewayBGPFilterRuleRequestMatch),
136
+ sequence: S.optional(S.Number),
137
+ set: S.optional(CreateGatewayBGPFilterRuleRequestSet),
138
+ }).pipe(T.Http({
139
+ method: "POST",
140
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules",
141
+ code: 200,
142
+ baseUrl: "https://vpn.api.stackit.cloud",
143
+ }))).annotate({
144
+ identifier: "CreateGatewayBGPFilterRuleRequest",
145
+ });
146
+ export const BGPFilterRuleAction = /*@__PURE__*/ S.String;
147
+ export const BGPFilterRuleMatchAsPathContainsAnyList = /*@__PURE__*/ S.Array(S.Number);
148
+ export const BGPFilterRuleMatchCommunitiesList = /*@__PURE__*/ S.Array(S.String);
149
+ export const BGPFilterRuleMatchPrefixesList = /*@__PURE__*/ S.Array(S.String);
150
+ export const BGPFilterRuleMatch = /*@__PURE__*/ S.suspend(() => S.Struct({
151
+ asPathContainsAny: S.optional(BGPFilterRuleMatchAsPathContainsAnyList),
152
+ communities: S.optional(BGPFilterRuleMatchCommunitiesList),
153
+ firstASN: S.optional(S.Number),
154
+ maxPrefixLength: S.optional(S.Number),
155
+ minPrefixLength: S.optional(S.Number),
156
+ peer: S.optional(S.String),
157
+ prefixes: S.optional(BGPFilterRuleMatchPrefixesList),
158
+ })).annotate({
159
+ identifier: "BGPFilterRuleMatch",
160
+ });
161
+ export const BGPFilterRuleSet = CreateGatewayBGPFilterRuleRequestSet;
162
+ export const BGPFilterRule = /*@__PURE__*/ S.suspend(() => S.Struct({
163
+ action: BGPFilterRuleAction,
164
+ id: S.optional(S.String),
165
+ match: S.optional(BGPFilterRuleMatch),
166
+ sequence: S.optional(S.Number),
167
+ set: S.optional(CreateGatewayBGPFilterRuleRequestSet),
168
+ })).annotate({ identifier: "BGPFilterRule" });
169
+ export const CreateGatewayConnectionRequestRegion = /*@__PURE__*/ S.String;
170
+ export const CreateGatewayConnectionRequestLocalSubnetsList =
171
+ /*@__PURE__*/ S.Array(S.String);
172
+ export const CreateGatewayConnectionRequestRemoteSubnetsList =
173
+ /*@__PURE__*/ S.Array(S.String);
174
+ export const CreateGatewayConnectionRequestStaticRoutesList =
175
+ /*@__PURE__*/ S.Array(S.String);
176
+ export const BGPTunnelConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
177
+ inboundFilterId: S.optional(S.NullOr(S.String)),
178
+ remoteAsn: S.Number,
179
+ })).annotate({
180
+ identifier: "BGPTunnelConfig",
181
+ });
182
+ export const PeeringConfig = /*@__PURE__*/ S.suspend(() => S.Struct({
183
+ localAddress: S.optional(S.String),
184
+ remoteAddress: S.optional(S.String),
185
+ })).annotate({ identifier: "PeeringConfig" });
186
+ export const TunnelConfigurationPhase1DhGroupsItem = /*@__PURE__*/ S.String;
187
+ export const TunnelConfigurationPhase1DhGroupsList = /*@__PURE__*/ S.Array(TunnelConfigurationPhase1DhGroupsItem);
188
+ export const TunnelConfigurationPhase1EncryptionAlgorithmsItem =
189
+ /*@__PURE__*/ S.String;
190
+ export const TunnelConfigurationPhase1EncryptionAlgorithmsList =
191
+ /*@__PURE__*/ S.Array(TunnelConfigurationPhase1EncryptionAlgorithmsItem);
192
+ export const TunnelConfigurationPhase1IntegrityAlgorithmsItem =
193
+ /*@__PURE__*/ S.String;
194
+ export const TunnelConfigurationPhase1IntegrityAlgorithmsList =
195
+ /*@__PURE__*/ S.Array(TunnelConfigurationPhase1IntegrityAlgorithmsItem);
196
+ export const TunnelConfigurationPhase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
197
+ dhGroups: S.optional(TunnelConfigurationPhase1DhGroupsList),
198
+ encryptionAlgorithms: TunnelConfigurationPhase1EncryptionAlgorithmsList,
199
+ integrityAlgorithms: TunnelConfigurationPhase1IntegrityAlgorithmsList,
200
+ rekeyTime: S.optional(S.Number),
201
+ })).annotate({
202
+ identifier: "TunnelConfigurationPhase1",
203
+ });
204
+ export const TunnelConfigurationPhase2DhGroupsItem = /*@__PURE__*/ S.String;
205
+ export const TunnelConfigurationPhase2DhGroupsList = /*@__PURE__*/ S.Array(TunnelConfigurationPhase2DhGroupsItem);
206
+ export const TunnelConfigurationPhase2EncryptionAlgorithmsItem =
207
+ /*@__PURE__*/ S.String;
208
+ export const TunnelConfigurationPhase2EncryptionAlgorithmsList =
209
+ /*@__PURE__*/ S.Array(TunnelConfigurationPhase2EncryptionAlgorithmsItem);
210
+ export const TunnelConfigurationPhase2IntegrityAlgorithmsItem =
211
+ /*@__PURE__*/ S.String;
212
+ export const TunnelConfigurationPhase2IntegrityAlgorithmsList =
213
+ /*@__PURE__*/ S.Array(TunnelConfigurationPhase2IntegrityAlgorithmsItem);
214
+ export const TunnelConfigurationPhase2DpdAction = /*@__PURE__*/ S.String;
215
+ export const TunnelConfigurationPhase2StartAction = /*@__PURE__*/ S.String;
216
+ export const TunnelConfigurationPhase2 = /*@__PURE__*/ S.suspend(() => S.Struct({
217
+ dhGroups: S.optional(TunnelConfigurationPhase2DhGroupsList),
218
+ encryptionAlgorithms: TunnelConfigurationPhase2EncryptionAlgorithmsList,
219
+ integrityAlgorithms: TunnelConfigurationPhase2IntegrityAlgorithmsList,
220
+ dpdAction: S.optional(TunnelConfigurationPhase2DpdAction),
221
+ rekeyTime: S.optional(S.Number),
222
+ startAction: S.optional(TunnelConfigurationPhase2StartAction),
223
+ })).annotate({
224
+ identifier: "TunnelConfigurationPhase2",
225
+ });
226
+ export const TunnelConfiguration = /*@__PURE__*/ S.suspend(() => S.Struct({
227
+ bgp: S.optional(BGPTunnelConfig),
228
+ peering: S.optional(PeeringConfig),
229
+ phase1: TunnelConfigurationPhase1,
230
+ phase2: TunnelConfigurationPhase2,
231
+ preSharedKey: S.optional(S.String),
232
+ remoteAddress: S.String,
233
+ })).annotate({
234
+ identifier: "TunnelConfiguration",
235
+ });
236
+ export const CreateGatewayConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
237
+ projectId: S.String.pipe(T.Label()),
238
+ region: CreateGatewayConnectionRequestRegion.pipe(T.Label()),
239
+ gatewayId: S.String.pipe(T.Label()),
240
+ displayName: S.String,
241
+ enabled: S.optional(S.Boolean),
242
+ labels: S.optional(Label),
243
+ localSubnets: S.optional(CreateGatewayConnectionRequestLocalSubnetsList),
244
+ remoteSubnets: S.optional(CreateGatewayConnectionRequestRemoteSubnetsList),
245
+ staticRoutes: S.optional(CreateGatewayConnectionRequestStaticRoutesList),
246
+ tunnel1: TunnelConfiguration,
247
+ tunnel2: TunnelConfiguration,
248
+ }).pipe(T.Http({
249
+ method: "POST",
250
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections",
251
+ code: 200,
252
+ baseUrl: "https://vpn.api.stackit.cloud",
253
+ }))).annotate({
254
+ identifier: "CreateGatewayConnectionRequest",
255
+ });
256
+ export const ConnectionResponseOutputLocalSubnetsList = /*@__PURE__*/ S.Array(S.String);
257
+ export const ConnectionResponseOutputRemoteSubnetsList = /*@__PURE__*/ S.Array(S.String);
258
+ export const ConnectionResponseOutputStaticRoutesList = /*@__PURE__*/ S.Array(S.String);
259
+ export const TunnelConfigurationOutputPhase1DhGroupsItem =
260
+ /*@__PURE__*/ S.String;
261
+ export const TunnelConfigurationOutputPhase1DhGroupsList =
262
+ /*@__PURE__*/ S.Array(TunnelConfigurationOutputPhase1DhGroupsItem);
263
+ export const TunnelConfigurationOutputPhase1EncryptionAlgorithmsItem =
264
+ /*@__PURE__*/ S.String;
265
+ export const TunnelConfigurationOutputPhase1EncryptionAlgorithmsList =
266
+ /*@__PURE__*/ S.Array(TunnelConfigurationOutputPhase1EncryptionAlgorithmsItem);
267
+ export const TunnelConfigurationOutputPhase1IntegrityAlgorithmsItem =
268
+ /*@__PURE__*/ S.String;
269
+ export const TunnelConfigurationOutputPhase1IntegrityAlgorithmsList =
270
+ /*@__PURE__*/ S.Array(TunnelConfigurationOutputPhase1IntegrityAlgorithmsItem);
271
+ export const TunnelConfigurationOutputPhase1 = /*@__PURE__*/ S.suspend(() => S.Struct({
272
+ dhGroups: S.optional(TunnelConfigurationOutputPhase1DhGroupsList),
273
+ encryptionAlgorithms: TunnelConfigurationOutputPhase1EncryptionAlgorithmsList,
274
+ integrityAlgorithms: TunnelConfigurationOutputPhase1IntegrityAlgorithmsList,
275
+ rekeyTime: S.optional(S.Number),
276
+ })).annotate({
277
+ identifier: "TunnelConfigurationOutputPhase1",
278
+ });
279
+ export const TunnelConfigurationOutputPhase2DhGroupsItem =
280
+ /*@__PURE__*/ S.String;
281
+ export const TunnelConfigurationOutputPhase2DhGroupsList =
282
+ /*@__PURE__*/ S.Array(TunnelConfigurationOutputPhase2DhGroupsItem);
283
+ export const TunnelConfigurationOutputPhase2EncryptionAlgorithmsItem =
284
+ /*@__PURE__*/ S.String;
285
+ export const TunnelConfigurationOutputPhase2EncryptionAlgorithmsList =
286
+ /*@__PURE__*/ S.Array(TunnelConfigurationOutputPhase2EncryptionAlgorithmsItem);
287
+ export const TunnelConfigurationOutputPhase2IntegrityAlgorithmsItem =
288
+ /*@__PURE__*/ S.String;
289
+ export const TunnelConfigurationOutputPhase2IntegrityAlgorithmsList =
290
+ /*@__PURE__*/ S.Array(TunnelConfigurationOutputPhase2IntegrityAlgorithmsItem);
291
+ export const TunnelConfigurationOutputPhase2DpdAction = /*@__PURE__*/ S.String;
292
+ export const TunnelConfigurationOutputPhase2StartAction =
293
+ /*@__PURE__*/ S.String;
294
+ export const TunnelConfigurationOutputPhase2 = /*@__PURE__*/ S.suspend(() => S.Struct({
295
+ dhGroups: S.optional(TunnelConfigurationOutputPhase2DhGroupsList),
296
+ encryptionAlgorithms: TunnelConfigurationOutputPhase2EncryptionAlgorithmsList,
297
+ integrityAlgorithms: TunnelConfigurationOutputPhase2IntegrityAlgorithmsList,
298
+ dpdAction: S.optional(TunnelConfigurationOutputPhase2DpdAction),
299
+ rekeyTime: S.optional(S.Number),
300
+ startAction: S.optional(TunnelConfigurationOutputPhase2StartAction),
301
+ })).annotate({
302
+ identifier: "TunnelConfigurationOutputPhase2",
303
+ });
304
+ export const TunnelConfigurationOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
305
+ bgp: S.optional(BGPTunnelConfig),
306
+ peering: S.optional(PeeringConfig),
307
+ phase1: TunnelConfigurationOutputPhase1,
308
+ phase2: TunnelConfigurationOutputPhase2,
309
+ remoteAddress: S.String,
310
+ })).annotate({
311
+ identifier: "TunnelConfigurationOutput",
312
+ });
313
+ export const ConnectionResponseOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
314
+ displayName: S.String,
315
+ enabled: S.optional(S.Boolean),
316
+ id: S.optional(S.String),
317
+ labels: S.optional(Label),
318
+ localSubnets: S.optional(ConnectionResponseOutputLocalSubnetsList),
319
+ remoteSubnets: S.optional(ConnectionResponseOutputRemoteSubnetsList),
320
+ staticRoutes: S.optional(ConnectionResponseOutputStaticRoutesList),
321
+ tunnel1: TunnelConfigurationOutput,
322
+ tunnel2: TunnelConfigurationOutput,
323
+ })).annotate({
324
+ identifier: "ConnectionResponseOutput",
325
+ });
326
+ export const DeleteGatewayRequestRegion = /*@__PURE__*/ S.String;
327
+ export const DeleteGatewayRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
328
+ projectId: S.String.pipe(T.Label()),
329
+ region: DeleteGatewayRequestRegion.pipe(T.Label()),
330
+ gatewayId: S.String.pipe(T.Label()),
331
+ }).pipe(T.Http({
332
+ method: "DELETE",
333
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}",
334
+ code: 200,
335
+ baseUrl: "https://vpn.api.stackit.cloud",
336
+ }))).annotate({
337
+ identifier: "DeleteGatewayRequest",
338
+ });
339
+ export const DeleteGatewayResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
340
+ identifier: "DeleteGatewayResponse",
341
+ });
342
+ export const DeleteGatewayBGPFilterRequestRegion = /*@__PURE__*/ S.String;
343
+ export const DeleteGatewayBGPFilterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
344
+ projectId: S.String.pipe(T.Label()),
345
+ region: DeleteGatewayBGPFilterRequestRegion.pipe(T.Label()),
346
+ gatewayId: S.String.pipe(T.Label()),
347
+ filterId: S.String.pipe(T.Label()),
348
+ }).pipe(T.Http({
349
+ method: "DELETE",
350
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}",
351
+ code: 200,
352
+ baseUrl: "https://vpn.api.stackit.cloud",
353
+ }))).annotate({
354
+ identifier: "DeleteGatewayBGPFilterRequest",
355
+ });
356
+ export const DeleteGatewayBGPFilterResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
357
+ identifier: "DeleteGatewayBGPFilterResponse",
358
+ });
359
+ export const DeleteGatewayBGPFilterRuleRequestRegion = /*@__PURE__*/ S.String;
360
+ export const DeleteGatewayBGPFilterRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
361
+ projectId: S.String.pipe(T.Label()),
362
+ region: DeleteGatewayBGPFilterRuleRequestRegion.pipe(T.Label()),
363
+ gatewayId: S.String.pipe(T.Label()),
364
+ filterId: S.String.pipe(T.Label()),
365
+ ruleId: S.String.pipe(T.Label()),
366
+ }).pipe(T.Http({
367
+ method: "DELETE",
368
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules/{ruleId}",
369
+ code: 200,
370
+ baseUrl: "https://vpn.api.stackit.cloud",
371
+ }))).annotate({
372
+ identifier: "DeleteGatewayBGPFilterRuleRequest",
373
+ });
374
+ export const DeleteGatewayBGPFilterRuleResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
375
+ identifier: "DeleteGatewayBGPFilterRuleResponse",
376
+ });
377
+ export const DeleteGatewayConnectionRequestRegion = /*@__PURE__*/ S.String;
378
+ export const DeleteGatewayConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
379
+ projectId: S.String.pipe(T.Label()),
380
+ region: DeleteGatewayConnectionRequestRegion.pipe(T.Label()),
381
+ gatewayId: S.String.pipe(T.Label()),
382
+ connectionId: S.String.pipe(T.Label()),
383
+ }).pipe(T.Http({
384
+ method: "DELETE",
385
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}",
386
+ code: 200,
387
+ baseUrl: "https://vpn.api.stackit.cloud",
388
+ }))).annotate({
389
+ identifier: "DeleteGatewayConnectionRequest",
390
+ });
391
+ export const DeleteGatewayConnectionResponse = /*@__PURE__*/ S.suspend(() => S.Struct({})).annotate({
392
+ identifier: "DeleteGatewayConnectionResponse",
393
+ });
394
+ export const GetGatewayRequestRegion = /*@__PURE__*/ S.String;
395
+ export const GetGatewayRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
396
+ projectId: S.String.pipe(T.Label()),
397
+ region: GetGatewayRequestRegion.pipe(T.Label()),
398
+ gatewayId: S.String.pipe(T.Label()),
399
+ }).pipe(T.Http({
400
+ method: "GET",
401
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}",
402
+ code: 200,
403
+ baseUrl: "https://vpn.api.stackit.cloud",
404
+ }))).annotate({
405
+ identifier: "GetGatewayRequest",
406
+ });
407
+ export const GetGatewayResponseAvailabilityZones = CreateGatewayRequestAvailabilityZones;
408
+ export const GetGatewayResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
409
+ availabilityZones: CreateGatewayRequestAvailabilityZones,
410
+ bgp: S.optional(BGPGatewayConfig),
411
+ displayName: S.String,
412
+ labels: S.optional(Label),
413
+ networkConfig: S.optional(NetworkConfig),
414
+ planId: S.String,
415
+ routingType: RoutingType,
416
+ id: S.optional(S.String),
417
+ state: S.optional(GatewayStatus),
418
+ })).annotate({
419
+ identifier: "GetGatewayResponse",
420
+ });
421
+ export const GetGatewayBGPFilterRequestRegion = /*@__PURE__*/ S.String;
422
+ export const GetGatewayBGPFilterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
423
+ projectId: S.String.pipe(T.Label()),
424
+ region: GetGatewayBGPFilterRequestRegion.pipe(T.Label()),
425
+ gatewayId: S.String.pipe(T.Label()),
426
+ filterId: S.String.pipe(T.Label()),
427
+ }).pipe(T.Http({
428
+ method: "GET",
429
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}",
430
+ code: 200,
431
+ baseUrl: "https://vpn.api.stackit.cloud",
432
+ }))).annotate({
433
+ identifier: "GetGatewayBGPFilterRequest",
434
+ });
435
+ export const GetGatewayBGPFilterRuleRequestRegion = /*@__PURE__*/ S.String;
436
+ export const GetGatewayBGPFilterRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
437
+ projectId: S.String.pipe(T.Label()),
438
+ region: GetGatewayBGPFilterRuleRequestRegion.pipe(T.Label()),
439
+ gatewayId: S.String.pipe(T.Label()),
440
+ filterId: S.String.pipe(T.Label()),
441
+ ruleId: S.String.pipe(T.Label()),
442
+ }).pipe(T.Http({
443
+ method: "GET",
444
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules/{ruleId}",
445
+ code: 200,
446
+ baseUrl: "https://vpn.api.stackit.cloud",
447
+ }))).annotate({
448
+ identifier: "GetGatewayBGPFilterRuleRequest",
449
+ });
450
+ export const GetGatewayConnectionRequestRegion = /*@__PURE__*/ S.String;
451
+ export const GetGatewayConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
452
+ projectId: S.String.pipe(T.Label()),
453
+ region: GetGatewayConnectionRequestRegion.pipe(T.Label()),
454
+ gatewayId: S.String.pipe(T.Label()),
455
+ connectionId: S.String.pipe(T.Label()),
456
+ }).pipe(T.Http({
457
+ method: "GET",
458
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}",
459
+ code: 200,
460
+ baseUrl: "https://vpn.api.stackit.cloud",
461
+ }))).annotate({
462
+ identifier: "GetGatewayConnectionRequest",
463
+ });
464
+ export const GetGatewayConnectionStatusRequestRegion = /*@__PURE__*/ S.String;
465
+ export const GetGatewayConnectionStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
466
+ projectId: S.String.pipe(T.Label()),
467
+ region: GetGatewayConnectionStatusRequestRegion.pipe(T.Label()),
468
+ gatewayId: S.String.pipe(T.Label()),
469
+ connectionId: S.String.pipe(T.Label()),
470
+ }).pipe(T.Http({
471
+ method: "GET",
472
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}/status",
473
+ code: 200,
474
+ baseUrl: "https://vpn.api.stackit.cloud",
475
+ }))).annotate({
476
+ identifier: "GetGatewayConnectionStatusRequest",
477
+ });
478
+ export const TunnelStatusName = /*@__PURE__*/ S.String;
479
+ export const Phase1Status = /*@__PURE__*/ S.suspend(() => S.Struct({
480
+ dhGroup: S.optional(S.String),
481
+ encryptionAlgorithm: S.optional(S.String),
482
+ integrityAlgorithm: S.optional(S.String),
483
+ state: S.optional(S.String),
484
+ })).annotate({ identifier: "Phase1Status" });
485
+ export const Phase2Status = /*@__PURE__*/ S.suspend(() => S.Struct({
486
+ bytesIn: S.optional(S.String),
487
+ bytesOut: S.optional(S.String),
488
+ dhGroup: S.optional(S.String),
489
+ encap: S.optional(S.String),
490
+ encryptionAlgorithm: S.optional(S.String),
491
+ integrityAlgorithm: S.optional(S.String),
492
+ packetsIn: S.optional(S.String),
493
+ packetsOut: S.optional(S.String),
494
+ protocol: S.optional(S.String),
495
+ state: S.optional(S.String),
496
+ })).annotate({ identifier: "Phase2Status" });
497
+ export const TunnelStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
498
+ established: S.optional(S.Boolean),
499
+ name: S.optional(TunnelStatusName),
500
+ phase1: S.optional(Phase1Status),
501
+ phase2: S.optional(Phase2Status),
502
+ })).annotate({ identifier: "TunnelStatus" });
503
+ export const ConnectionStatusResponseTunnelsList = /*@__PURE__*/ S.Array(TunnelStatus);
504
+ export const ConnectionStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
505
+ displayName: S.optional(S.String),
506
+ enabled: S.optional(S.Boolean),
507
+ id: S.optional(S.String),
508
+ tunnels: S.optional(ConnectionStatusResponseTunnelsList),
509
+ })).annotate({
510
+ identifier: "ConnectionStatusResponse",
511
+ });
512
+ export const GetGatewayStatusRequestRegion = /*@__PURE__*/ S.String;
513
+ export const GetGatewayStatusRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
514
+ projectId: S.String.pipe(T.Label()),
515
+ region: GetGatewayStatusRequestRegion.pipe(T.Label()),
516
+ gatewayId: S.String.pipe(T.Label()),
517
+ }).pipe(T.Http({
518
+ method: "GET",
519
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/status",
520
+ code: 200,
521
+ baseUrl: "https://vpn.api.stackit.cloud",
522
+ }))).annotate({
523
+ identifier: "GetGatewayStatusRequest",
524
+ });
525
+ export const GatewayStatusResponseConnectionsList = /*@__PURE__*/ S.Array(ConnectionStatusResponse);
526
+ export const BGPStatusPeers = /*@__PURE__*/ S.suspend(() => S.Struct({
527
+ localAs: S.Number,
528
+ peerUptime: S.String,
529
+ pfxRcd: S.Number,
530
+ pfxSnt: S.Number,
531
+ remoteAs: S.Number,
532
+ remoteIP: S.String,
533
+ state: S.String,
534
+ })).annotate({ identifier: "BGPStatusPeers" });
535
+ export const BGPStatusPeersList = /*@__PURE__*/ S.Array(BGPStatusPeers);
536
+ export const BGPStatusRoutes = /*@__PURE__*/ S.suspend(() => S.Struct({
537
+ network: S.String,
538
+ origin: S.String,
539
+ path: S.String,
540
+ peerId: S.String,
541
+ weight: S.Number,
542
+ })).annotate({
543
+ identifier: "BGPStatusRoutes",
544
+ });
545
+ export const BGPStatusRoutesList = /*@__PURE__*/ S.Array(BGPStatusRoutes);
546
+ export const BGPStatus = /*@__PURE__*/ S.suspend(() => S.Struct({
547
+ peers: S.optional(BGPStatusPeersList),
548
+ routes: S.optional(BGPStatusRoutesList),
549
+ })).annotate({ identifier: "BGPStatus" });
550
+ export const VPNTunnelsName = /*@__PURE__*/ S.String;
551
+ export const VPNTunnels = /*@__PURE__*/ S.suspend(() => S.Struct({
552
+ bgpStatus: S.optional(S.NullOr(BGPStatus)),
553
+ instanceState: S.optional(GatewayStatus),
554
+ internalNextHopIP: S.optional(S.String),
555
+ name: S.optional(VPNTunnelsName),
556
+ publicIP: S.optional(S.String),
557
+ })).annotate({ identifier: "VPNTunnels" });
558
+ export const GatewayStatusResponseTunnelsList = /*@__PURE__*/ S.Array(VPNTunnels);
559
+ export const GatewayStatusResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
560
+ connections: S.optional(GatewayStatusResponseConnectionsList),
561
+ displayName: S.optional(S.String),
562
+ errorMessage: S.optional(S.String),
563
+ gatewayStatus: S.optional(GatewayStatus),
564
+ id: S.optional(S.String),
565
+ tunnels: S.optional(GatewayStatusResponseTunnelsList),
566
+ })).annotate({
567
+ identifier: "GatewayStatusResponse",
568
+ });
569
+ export const ListGatewayBGPFilterRulesRequestRegion = /*@__PURE__*/ S.String;
570
+ export const ListGatewayBGPFilterRulesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
571
+ projectId: S.String.pipe(T.Label()),
572
+ region: ListGatewayBGPFilterRulesRequestRegion.pipe(T.Label()),
573
+ gatewayId: S.String.pipe(T.Label()),
574
+ filterId: S.String.pipe(T.Label()),
575
+ }).pipe(T.Http({
576
+ method: "GET",
577
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules",
578
+ code: 200,
579
+ baseUrl: "https://vpn.api.stackit.cloud",
580
+ }))).annotate({
581
+ identifier: "ListGatewayBGPFilterRulesRequest",
582
+ });
583
+ export const BGPFilterRuleListRulesList = /*@__PURE__*/ S.Array(BGPFilterRule);
584
+ export const BGPFilterRuleList = /*@__PURE__*/ S.suspend(() => S.Struct({
585
+ rules: BGPFilterRuleListRulesList,
586
+ })).annotate({
587
+ identifier: "BGPFilterRuleList",
588
+ });
589
+ export const ListGatewayBGPFiltersRequestRegion = /*@__PURE__*/ S.String;
590
+ export const ListGatewayBGPFiltersRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
591
+ projectId: S.String.pipe(T.Label()),
592
+ region: ListGatewayBGPFiltersRequestRegion.pipe(T.Label()),
593
+ gatewayId: S.String.pipe(T.Label()),
594
+ }).pipe(T.Http({
595
+ method: "GET",
596
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters",
597
+ code: 200,
598
+ baseUrl: "https://vpn.api.stackit.cloud",
599
+ }))).annotate({
600
+ identifier: "ListGatewayBGPFiltersRequest",
601
+ });
602
+ export const BGPFilterListBgpFiltersList = /*@__PURE__*/ S.Array(BGPFilter);
603
+ export const BGPFilterList = /*@__PURE__*/ S.suspend(() => S.Struct({
604
+ bgpFilters: BGPFilterListBgpFiltersList,
605
+ })).annotate({ identifier: "BGPFilterList" });
606
+ export const ListGatewayConnectionsRequestRegion = /*@__PURE__*/ S.String;
607
+ export const LabelSelector = /*@__PURE__*/ S.Record(S.String, S.String);
608
+ export const ListGatewayConnectionsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
609
+ projectId: S.String.pipe(T.Label()),
610
+ region: ListGatewayConnectionsRequestRegion.pipe(T.Label()),
611
+ gatewayId: S.String.pipe(T.Label()),
612
+ label_selector: S.optional(LabelSelector.pipe(T.Query())),
613
+ }).pipe(T.Http({
614
+ method: "GET",
615
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections",
616
+ code: 200,
617
+ baseUrl: "https://vpn.api.stackit.cloud",
618
+ }))).annotate({
619
+ identifier: "ListGatewayConnectionsRequest",
620
+ });
621
+ export const ConnectionListOutputConnectionsList = /*@__PURE__*/ S.Array(ConnectionResponseOutput);
622
+ export const ConnectionListOutput = /*@__PURE__*/ S.suspend(() => S.Struct({
623
+ connections: ConnectionListOutputConnectionsList,
624
+ })).annotate({
625
+ identifier: "ConnectionListOutput",
626
+ });
627
+ export const ListGatewaysRequestRegion = /*@__PURE__*/ S.String;
628
+ export const ListGatewaysRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
629
+ projectId: S.String.pipe(T.Label()),
630
+ region: ListGatewaysRequestRegion.pipe(T.Label()),
631
+ label_selector: S.optional(LabelSelector.pipe(T.Query())),
632
+ }).pipe(T.Http({
633
+ method: "GET",
634
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways",
635
+ code: 200,
636
+ baseUrl: "https://vpn.api.stackit.cloud",
637
+ }))).annotate({
638
+ identifier: "ListGatewaysRequest",
639
+ });
640
+ export const GatewayResponseAvailabilityZones = CreateGatewayRequestAvailabilityZones;
641
+ export const GatewayResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
642
+ availabilityZones: CreateGatewayRequestAvailabilityZones,
643
+ bgp: S.optional(BGPGatewayConfig),
644
+ displayName: S.String,
645
+ labels: S.optional(Label),
646
+ networkConfig: S.optional(NetworkConfig),
647
+ planId: S.String,
648
+ routingType: RoutingType,
649
+ id: S.optional(S.String),
650
+ state: S.optional(GatewayStatus),
651
+ })).annotate({
652
+ identifier: "GatewayResponse",
653
+ });
654
+ export const GatewayListGatewaysList = /*@__PURE__*/ S.Array(GatewayResponse);
655
+ export const GatewayList = /*@__PURE__*/ S.suspend(() => S.Struct({
656
+ gateways: GatewayListGatewaysList,
657
+ })).annotate({ identifier: "GatewayList" });
658
+ export const ListPlansRequestRegion = /*@__PURE__*/ S.String;
659
+ export const ListPlansRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
660
+ region: ListPlansRequestRegion.pipe(T.Label()),
661
+ }).pipe(T.Http({
662
+ method: "GET",
663
+ uri: "/v1/regions/{region}/plans",
664
+ code: 200,
665
+ baseUrl: "https://vpn.api.stackit.cloud",
666
+ }))).annotate({
667
+ identifier: "ListPlansRequest",
668
+ });
669
+ export const Plan = /*@__PURE__*/ S.suspend(() => S.Struct({
670
+ maxBandwidth: S.optional(S.Number),
671
+ maxConnections: S.optional(S.Number),
672
+ name: S.optional(S.String),
673
+ planId: S.optional(S.String),
674
+ sku: S.optional(S.String),
675
+ })).annotate({ identifier: "Plan" });
676
+ export const PlanListPlansList = /*@__PURE__*/ S.Array(Plan);
677
+ export const PlanList = /*@__PURE__*/ S.suspend(() => S.Struct({
678
+ defaultPlanId: S.optional(S.String),
679
+ plans: S.optional(PlanListPlansList),
680
+ })).annotate({ identifier: "PlanList" });
681
+ export const ListQuotasRequestRegion = /*@__PURE__*/ S.String;
682
+ export const ListQuotasRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
683
+ projectId: S.String.pipe(T.Label()),
684
+ region: ListQuotasRequestRegion.pipe(T.Label()),
685
+ }).pipe(T.Http({
686
+ method: "GET",
687
+ uri: "/v1/projects/{projectId}/regions/{region}/quotas",
688
+ code: 200,
689
+ baseUrl: "https://vpn.api.stackit.cloud",
690
+ }))).annotate({
691
+ identifier: "ListQuotasRequest",
692
+ });
693
+ export const Quota = /*@__PURE__*/ S.suspend(() => S.Struct({
694
+ limit: S.Number,
695
+ usage: S.Number,
696
+ })).annotate({ identifier: "Quota" });
697
+ export const QuotaList = /*@__PURE__*/ S.suspend(() => S.Struct({
698
+ gateways: Quota,
699
+ })).annotate({ identifier: "QuotaList" });
700
+ export const QuotaListResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
701
+ quotas: QuotaList,
702
+ })).annotate({
703
+ identifier: "QuotaListResponse",
704
+ });
705
+ export const UpdateGatewayRequestRegion = /*@__PURE__*/ S.String;
706
+ export const UpdateGatewayRequestAvailabilityZones = CreateGatewayRequestAvailabilityZones;
707
+ export const UpdateGatewayRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
708
+ projectId: S.String.pipe(T.Label()),
709
+ region: UpdateGatewayRequestRegion.pipe(T.Label()),
710
+ gatewayId: S.String.pipe(T.Label()),
711
+ availabilityZones: CreateGatewayRequestAvailabilityZones,
712
+ bgp: S.optional(BGPGatewayConfig),
713
+ displayName: S.String,
714
+ labels: S.optional(Label),
715
+ networkConfig: S.optional(NetworkConfig),
716
+ planId: S.String,
717
+ routingType: RoutingType,
718
+ }).pipe(T.Http({
719
+ method: "PUT",
720
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}",
721
+ code: 200,
722
+ baseUrl: "https://vpn.api.stackit.cloud",
723
+ }))).annotate({
724
+ identifier: "UpdateGatewayRequest",
725
+ });
726
+ export const UpdateGatewayResponseAvailabilityZones = CreateGatewayRequestAvailabilityZones;
727
+ export const UpdateGatewayResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
728
+ availabilityZones: CreateGatewayRequestAvailabilityZones,
729
+ bgp: S.optional(BGPGatewayConfig),
730
+ displayName: S.String,
731
+ labels: S.optional(Label),
732
+ networkConfig: S.optional(NetworkConfig),
733
+ planId: S.String,
734
+ routingType: RoutingType,
735
+ id: S.optional(S.String),
736
+ state: S.optional(GatewayStatus),
737
+ })).annotate({
738
+ identifier: "UpdateGatewayResponse",
739
+ });
740
+ export const UpdateGatewayBGPFilterRequestRegion = /*@__PURE__*/ S.String;
741
+ export const UpdateGatewayBGPFilterRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
742
+ projectId: S.String.pipe(T.Label()),
743
+ region: UpdateGatewayBGPFilterRequestRegion.pipe(T.Label()),
744
+ gatewayId: S.String.pipe(T.Label()),
745
+ filterId: S.String.pipe(T.Label()),
746
+ displayName: S.String,
747
+ }).pipe(T.Http({
748
+ method: "PUT",
749
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}",
750
+ code: 200,
751
+ baseUrl: "https://vpn.api.stackit.cloud",
752
+ }))).annotate({
753
+ identifier: "UpdateGatewayBGPFilterRequest",
754
+ });
755
+ export const UpdateGatewayBGPFilterRuleRequestRegion = /*@__PURE__*/ S.String;
756
+ export const UpdateGatewayBGPFilterRuleRequestAction = /*@__PURE__*/ S.String;
757
+ export const UpdateGatewayBGPFilterRuleRequestMatchAsPathContainsAnyList =
758
+ /*@__PURE__*/ S.Array(S.Number);
759
+ export const UpdateGatewayBGPFilterRuleRequestMatchCommunitiesList =
760
+ /*@__PURE__*/ S.Array(S.String);
761
+ export const UpdateGatewayBGPFilterRuleRequestMatchPrefixesList =
762
+ /*@__PURE__*/ S.Array(S.String);
763
+ export const UpdateGatewayBGPFilterRuleRequestMatch = /*@__PURE__*/ S.suspend(() => S.Struct({
764
+ asPathContainsAny: S.optional(UpdateGatewayBGPFilterRuleRequestMatchAsPathContainsAnyList),
765
+ communities: S.optional(UpdateGatewayBGPFilterRuleRequestMatchCommunitiesList),
766
+ firstASN: S.optional(S.Number),
767
+ maxPrefixLength: S.optional(S.Number),
768
+ minPrefixLength: S.optional(S.Number),
769
+ peer: S.optional(S.String),
770
+ prefixes: S.optional(UpdateGatewayBGPFilterRuleRequestMatchPrefixesList),
771
+ })).annotate({
772
+ identifier: "UpdateGatewayBGPFilterRuleRequestMatch",
773
+ });
774
+ export const UpdateGatewayBGPFilterRuleRequestSet = CreateGatewayBGPFilterRuleRequestSet;
775
+ export const UpdateGatewayBGPFilterRuleRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
776
+ projectId: S.String.pipe(T.Label()),
777
+ region: UpdateGatewayBGPFilterRuleRequestRegion.pipe(T.Label()),
778
+ gatewayId: S.String.pipe(T.Label()),
779
+ filterId: S.String.pipe(T.Label()),
780
+ ruleId: S.String.pipe(T.Label()),
781
+ action: UpdateGatewayBGPFilterRuleRequestAction,
782
+ match: S.optional(UpdateGatewayBGPFilterRuleRequestMatch),
783
+ sequence: S.optional(S.Number),
784
+ set: S.optional(CreateGatewayBGPFilterRuleRequestSet),
785
+ }).pipe(T.Http({
786
+ method: "PUT",
787
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/bgp-filters/{filterId}/rules/{ruleId}",
788
+ code: 200,
789
+ baseUrl: "https://vpn.api.stackit.cloud",
790
+ }))).annotate({
791
+ identifier: "UpdateGatewayBGPFilterRuleRequest",
792
+ });
793
+ export const UpdateGatewayConnectionRequestRegion = /*@__PURE__*/ S.String;
794
+ export const UpdateGatewayConnectionRequestLocalSubnetsList =
795
+ /*@__PURE__*/ S.Array(S.String);
796
+ export const UpdateGatewayConnectionRequestRemoteSubnetsList =
797
+ /*@__PURE__*/ S.Array(S.String);
798
+ export const UpdateGatewayConnectionRequestStaticRoutesList =
799
+ /*@__PURE__*/ S.Array(S.String);
800
+ export const UpdateGatewayConnectionRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
801
+ projectId: S.String.pipe(T.Label()),
802
+ region: UpdateGatewayConnectionRequestRegion.pipe(T.Label()),
803
+ gatewayId: S.String.pipe(T.Label()),
804
+ connectionId: S.String.pipe(T.Label()),
805
+ displayName: S.String,
806
+ enabled: S.optional(S.Boolean),
807
+ labels: S.optional(Label),
808
+ localSubnets: S.optional(UpdateGatewayConnectionRequestLocalSubnetsList),
809
+ remoteSubnets: S.optional(UpdateGatewayConnectionRequestRemoteSubnetsList),
810
+ staticRoutes: S.optional(UpdateGatewayConnectionRequestStaticRoutesList),
811
+ tunnel1: TunnelConfiguration,
812
+ tunnel2: TunnelConfiguration,
813
+ }).pipe(T.Http({
814
+ method: "PUT",
815
+ uri: "/v1/projects/{projectId}/regions/{region}/gateways/{gatewayId}/connections/{connectionId}",
816
+ code: 200,
817
+ baseUrl: "https://vpn.api.stackit.cloud",
818
+ }))).annotate({
819
+ identifier: "UpdateGatewayConnectionRequest",
820
+ });
821
+ /** Create a VPN gateway in a project. Provision a new VPN gateway. */
822
+ export const createGateway = /*@__PURE__*/ API.make(() => ({
823
+ input: CreateGatewayRequest,
824
+ output: CreateGatewayResponse,
825
+ errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
826
+ protocol: StackitProtocol,
827
+ retry: Retry.Retry,
828
+ }));
829
+ /** Create a new empty BGP filter. Creates the filter metadata. Rules are managed via the nested /rules sub-resource. NOTE: an empty filter attached to a tunnel denies all incoming routes (implicit DENY). */
830
+ export const createGatewayBGPFilter = /*@__PURE__*/ API.make(() => ({
831
+ input: CreateGatewayBGPFilterRequest,
832
+ output: BGPFilter,
833
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
834
+ protocol: StackitProtocol,
835
+ retry: Retry.Retry,
836
+ }));
837
+ /** Add a new rule to a BGP filter. */
838
+ export const createGatewayBGPFilterRule = /*@__PURE__*/ API.make(() => ({
839
+ input: CreateGatewayBGPFilterRuleRequest,
840
+ output: BGPFilterRule,
841
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
842
+ protocol: StackitProtocol,
843
+ retry: Retry.Retry,
844
+ }));
845
+ /** Create a new connection on an existing VPN gateway. Create a new connection on an existing VPN gateway. */
846
+ export const createGatewayConnection = /*@__PURE__*/ API.make(() => ({
847
+ input: CreateGatewayConnectionRequest,
848
+ output: ConnectionResponseOutput,
849
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
850
+ protocol: StackitProtocol,
851
+ retry: Retry.Retry,
852
+ }));
853
+ /** Delete a existing VPN gateway in a project. Permanently remove a VPN gateway and all its associated connections. This operation is irreversible. */
854
+ export const deleteGateway = /*@__PURE__*/ API.make(() => ({
855
+ input: DeleteGatewayRequest,
856
+ output: DeleteGatewayResponse,
857
+ errors: [BadRequest, Forbidden, UnknownStackitError],
858
+ protocol: StackitProtocol,
859
+ retry: Retry.Retry,
860
+ }));
861
+ /** Delete a BGP filter. Fails with 409 Conflict if the filter is referenced by any connection's tunnel.bgp.inboundFilterId. The error response body's details[] contains one entry per referencing connection with metadata { connectionId, displayName, tunnel: 'tunnel1'|'tunnel2' } and reason RESOURCE_IN_USE so the caller can detach them first. */
862
+ export const deleteGatewayBGPFilter = /*@__PURE__*/ API.make(() => ({
863
+ input: DeleteGatewayBGPFilterRequest,
864
+ output: DeleteGatewayBGPFilterResponse,
865
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
866
+ protocol: StackitProtocol,
867
+ retry: Retry.Retry,
868
+ }));
869
+ /** Delete a specific rule. */
870
+ export const deleteGatewayBGPFilterRule = /*@__PURE__*/ API.make(() => ({
871
+ input: DeleteGatewayBGPFilterRuleRequest,
872
+ output: DeleteGatewayBGPFilterRuleResponse,
873
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
874
+ protocol: StackitProtocol,
875
+ retry: Retry.Retry,
876
+ }));
877
+ /** Delete a certain connection from an existing VPN gateway. Delete a certain connection from an existing VPN gateway. */
878
+ export const deleteGatewayConnection = /*@__PURE__*/ API.make(() => ({
879
+ input: DeleteGatewayConnectionRequest,
880
+ output: DeleteGatewayConnectionResponse,
881
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
882
+ protocol: StackitProtocol,
883
+ retry: Retry.Retry,
884
+ }));
885
+ /** Get details of a VPN Gateway in a project. Get details of a VPN Gateway in a project. */
886
+ export const getGateway = /*@__PURE__*/ API.make(() => ({
887
+ input: GetGatewayRequest,
888
+ output: GetGatewayResponse,
889
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
890
+ protocol: StackitProtocol,
891
+ retry: Retry.Retry,
892
+ }));
893
+ /** Get BGP filter metadata. */
894
+ export const getGatewayBGPFilter = /*@__PURE__*/ API.make(() => ({
895
+ input: GetGatewayBGPFilterRequest,
896
+ output: BGPFilter,
897
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
898
+ protocol: StackitProtocol,
899
+ retry: Retry.Retry,
900
+ }));
901
+ /** Get a specific rule from a BGP filter. */
902
+ export const getGatewayBGPFilterRule = /*@__PURE__*/ API.make(() => ({
903
+ input: GetGatewayBGPFilterRuleRequest,
904
+ output: BGPFilterRule,
905
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
906
+ protocol: StackitProtocol,
907
+ retry: Retry.Retry,
908
+ }));
909
+ /** Get a certain connection for an existing VPN gateway. Get a certain connection for an existing VPN gateway. */
910
+ export const getGatewayConnection = /*@__PURE__*/ API.make(() => ({
911
+ input: GetGatewayConnectionRequest,
912
+ output: ConnectionResponseOutput,
913
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
914
+ protocol: StackitProtocol,
915
+ retry: Retry.Retry,
916
+ }));
917
+ /** Gets the status for a specific connection. Get the status for a specific connection. */
918
+ export const getGatewayConnectionStatus = /*@__PURE__*/ API.make(() => ({
919
+ input: GetGatewayConnectionStatusRequest,
920
+ output: ConnectionStatusResponse,
921
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
922
+ protocol: StackitProtocol,
923
+ retry: Retry.Retry,
924
+ }));
925
+ /** Get the status of a VPN gateway in a project. Get the status of a VPN gateway in a project. */
926
+ export const getGatewayStatus = /*@__PURE__*/ API.make(() => ({
927
+ input: GetGatewayStatusRequest,
928
+ output: GatewayStatusResponse,
929
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
930
+ protocol: StackitProtocol,
931
+ retry: Retry.Retry,
932
+ }));
933
+ /** List all rules inside a specific BGP filter. */
934
+ export const listGatewayBGPFilterRules = /*@__PURE__*/ API.make(() => ({
935
+ input: ListGatewayBGPFilterRulesRequest,
936
+ output: BGPFilterRuleList,
937
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
938
+ protocol: StackitProtocol,
939
+ retry: Retry.Retry,
940
+ }));
941
+ /** List BGP filters for a gateway. */
942
+ export const listGatewayBGPFilters = /*@__PURE__*/ API.make(() => ({
943
+ input: ListGatewayBGPFiltersRequest,
944
+ output: BGPFilterList,
945
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
946
+ protocol: StackitProtocol,
947
+ retry: Retry.Retry,
948
+ }));
949
+ /** List connections for an existing VPN gateway. List connections for an existing VPN gateway. */
950
+ export const listGatewayConnections = /*@__PURE__*/ API.make(() => ({
951
+ input: ListGatewayConnectionsRequest,
952
+ output: ConnectionListOutput,
953
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
954
+ protocol: StackitProtocol,
955
+ retry: Retry.Retry,
956
+ }));
957
+ /** List VPN gateways in a project with label filtering Retrieve a list of all VPN gateways in a project. Filter the results using the `label_selector` query parameter. */
958
+ export const listGateways = /*@__PURE__*/ API.make(() => ({
959
+ input: ListGatewaysRequest,
960
+ output: GatewayList,
961
+ errors: [BadRequest, Forbidden, UnknownStackitError],
962
+ protocol: StackitProtocol,
963
+ retry: Retry.Retry,
964
+ }));
965
+ /** List available service plans for a project. Retrieve a list of available service plans available for provisioning a VPN in a specific `region`. Use this to identify the `planId` required for gateway creation. */
966
+ export const listPlans = /*@__PURE__*/ API.make(() => ({
967
+ input: ListPlansRequest,
968
+ output: PlanList,
969
+ errors: [BadRequest, UnknownStackitError],
970
+ protocol: StackitProtocol,
971
+ retry: Retry.Retry,
972
+ }));
973
+ /** List project quotas. Retrieve the resource quotas and current usage for STACKIT VPN within a specific project and region. */
974
+ export const listQuotas = /*@__PURE__*/ API.make(() => ({
975
+ input: ListQuotasRequest,
976
+ output: QuotaListResponse,
977
+ errors: [BadRequest, UnknownStackitError],
978
+ protocol: StackitProtocol,
979
+ retry: Retry.Retry,
980
+ }));
981
+ /** Update a VPN gateway in a project. Modify the configuration of an existing VPN gateway. Certain changes may trigger infrastructure updates or temporary connection re-negotiations. */
982
+ export const updateGateway = /*@__PURE__*/ API.make(() => ({
983
+ input: UpdateGatewayRequest,
984
+ output: UpdateGatewayResponse,
985
+ errors: [BadRequest, Forbidden, Conflict, UnknownStackitError],
986
+ protocol: StackitProtocol,
987
+ retry: Retry.Retry,
988
+ }));
989
+ /** Update BGP filter metadata (name, description). Rules are managed via the nested /rules sub-resource and are not modified by this endpoint. */
990
+ export const updateGatewayBGPFilter = /*@__PURE__*/ API.make(() => ({
991
+ input: UpdateGatewayBGPFilterRequest,
992
+ output: BGPFilter,
993
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
994
+ protocol: StackitProtocol,
995
+ retry: Retry.Retry,
996
+ }));
997
+ /** Update a specific rule. */
998
+ export const updateGatewayBGPFilterRule = /*@__PURE__*/ API.make(() => ({
999
+ input: UpdateGatewayBGPFilterRuleRequest,
1000
+ output: BGPFilterRule,
1001
+ errors: [BadRequest, Forbidden, NotFound, Conflict, UnknownStackitError],
1002
+ protocol: StackitProtocol,
1003
+ retry: Retry.Retry,
1004
+ }));
1005
+ /** Update a connection on an existing VPN gateway. Updating the configuration of an existing connection. */
1006
+ export const updateGatewayConnection = /*@__PURE__*/ API.make(() => ({
1007
+ input: UpdateGatewayConnectionRequest,
1008
+ output: ConnectionResponseOutput,
1009
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1010
+ protocol: StackitProtocol,
1011
+ retry: Retry.Retry,
1012
+ }));
1013
+ //# sourceMappingURL=vpn.js.map