@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,2271 @@
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.ts";
6
+ import {
7
+ StackitProtocol,
8
+ type StackitOpError,
9
+ type StackitOpContext,
10
+ } from "../protocol.ts";
11
+ import { paginateByTotalPages } from "../pagination.ts";
12
+ import { UnknownStackitError } from "../errors.ts";
13
+ import * as Retry from "../retry.ts";
14
+
15
+ export type { StackitOpError, StackitOpContext };
16
+
17
+ export class BadRequest
18
+ extends /*@__PURE__*/ T.applyErrorMatchers(
19
+ /*@__PURE__*/ S.TaggedError<BadRequest>()("BadRequest", {
20
+ code: S.Number,
21
+ message: S.String,
22
+ }).pipe(C.withBadRequestError),
23
+ [{ status: 400 }],
24
+ ) {}
25
+
26
+ export class Conflict
27
+ extends /*@__PURE__*/ T.applyErrorMatchers(
28
+ /*@__PURE__*/ S.TaggedError<Conflict>()("Conflict", {
29
+ code: S.Number,
30
+ message: S.String,
31
+ }).pipe(C.withConflictError),
32
+ [{ status: 409 }],
33
+ ) {}
34
+
35
+ export class Forbidden
36
+ extends /*@__PURE__*/ T.applyErrorMatchers(
37
+ /*@__PURE__*/ S.TaggedError<Forbidden>()("Forbidden", {
38
+ code: S.Number,
39
+ message: S.String,
40
+ }).pipe(C.withAuthError),
41
+ [{ status: 403 }],
42
+ ) {}
43
+
44
+ export class NotFound
45
+ extends /*@__PURE__*/ T.applyErrorMatchers(
46
+ /*@__PURE__*/ S.TaggedError<NotFound>()("NotFound", {
47
+ code: S.Number,
48
+ message: S.String,
49
+ }).pipe(C.withBadRequestError),
50
+ [{ status: 404 }],
51
+ ) {}
52
+
53
+ export interface CloneZoneRequest {
54
+ /** project id */
55
+ projectId: string;
56
+ /** zone id */
57
+ zoneId: string;
58
+ /** Adjust record set content and replace the dns name of the original zone with the new dns name of the cloned zone */
59
+ adjustRecords?: boolean;
60
+ /** New Description for the cloned zone. Leave empty to use the same description as the original zone */
61
+ description?: string;
62
+ /** DnsName is the dns name of the zone to clone */
63
+ dnsName: string;
64
+ /** New Name for the cloned zone. Leave empty to use the same name as the original zone */
65
+ name?: string;
66
+ }
67
+ export const CloneZoneRequest = /*@__PURE__*/ S.suspend(() =>
68
+ S.Struct({
69
+ projectId: S.String.pipe(T.Label()),
70
+ zoneId: S.String.pipe(T.Label()),
71
+ adjustRecords: S.optional(S.Boolean),
72
+ description: S.optional(S.String),
73
+ dnsName: S.String,
74
+ name: S.optional(S.String),
75
+ }).pipe(
76
+ T.Http({
77
+ method: "POST",
78
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/clone",
79
+ code: 200,
80
+ baseUrl: "https://dns.api.stackit.cloud",
81
+ }),
82
+ ),
83
+ ).annotate({
84
+ identifier: "CloneZoneRequest",
85
+ }) as any as S.Schema<CloneZoneRequest>;
86
+
87
+ export type DomainObservabilityExtensionState =
88
+ | "CREATING"
89
+ | "CREATE_SUCCEEDED"
90
+ | "ERROR";
91
+ export const DomainObservabilityExtensionState = /*@__PURE__*/ S.String;
92
+
93
+ export interface DomainObservabilityExtension {
94
+ observabilityInstanceId: string;
95
+ state?: DomainObservabilityExtensionState;
96
+ }
97
+ export const DomainObservabilityExtension = /*@__PURE__*/ S.suspend(() =>
98
+ S.Struct({
99
+ observabilityInstanceId: S.String,
100
+ state: S.optional(DomainObservabilityExtensionState),
101
+ }),
102
+ ).annotate({
103
+ identifier: "DomainObservabilityExtension",
104
+ }) as any as S.Schema<DomainObservabilityExtension>;
105
+
106
+ export interface DomainExtensions {
107
+ observabilityExtension?: DomainObservabilityExtension;
108
+ }
109
+ export const DomainExtensions = /*@__PURE__*/ S.suspend(() =>
110
+ S.Struct({
111
+ observabilityExtension: S.optional(DomainObservabilityExtension),
112
+ }),
113
+ ).annotate({
114
+ identifier: "DomainExtensions",
115
+ }) as any as S.Schema<DomainExtensions>;
116
+
117
+ export interface Label {
118
+ key: string;
119
+ value?: string;
120
+ }
121
+ export const Label = /*@__PURE__*/ S.suspend(() =>
122
+ S.Struct({
123
+ key: S.String,
124
+ value: S.optional(S.String),
125
+ }),
126
+ ).annotate({ identifier: "Label" }) as any as S.Schema<Label>;
127
+
128
+ export type ZoneLabelsList = Array<Label>;
129
+ export const ZoneLabelsList = /*@__PURE__*/ S.Array(
130
+ Label,
131
+ ) as any as S.Schema<ZoneLabelsList>;
132
+
133
+ /** primary name server for secondary zone */
134
+ export type ZonePrimariesList = Array<string>;
135
+ export const ZonePrimariesList = /*@__PURE__*/ S.Array(
136
+ S.String,
137
+ ) as any as S.Schema<ZonePrimariesList>;
138
+
139
+ /** zone state */
140
+ export type ZoneState =
141
+ | "CREATING"
142
+ | "CREATE_SUCCEEDED"
143
+ | "CREATE_FAILED"
144
+ | "DELETING"
145
+ | "DELETE_SUCCEEDED"
146
+ | "DELETE_FAILED"
147
+ | "UPDATING"
148
+ | "UPDATE_SUCCEEDED"
149
+ | "UPDATE_FAILED";
150
+ export const ZoneState = /*@__PURE__*/ S.String;
151
+
152
+ /** zone type */
153
+ export type ZoneType = "primary" | "secondary";
154
+ export const ZoneType = /*@__PURE__*/ S.String;
155
+
156
+ /** visibility of the zone */
157
+ export type ZoneVisibility = "public";
158
+ export const ZoneVisibility = /*@__PURE__*/ S.String;
159
+
160
+ /** Zone. */
161
+ export interface Zone {
162
+ /** access control list */
163
+ acl: string;
164
+ active?: boolean;
165
+ /** contact email from soa record */
166
+ contactEmail?: string;
167
+ /** when zone creation finished */
168
+ creationFinished: string;
169
+ /** when zone creation started */
170
+ creationStarted: string;
171
+ /** default time to live */
172
+ defaultTTL: number;
173
+ /** description of the zone */
174
+ description?: string;
175
+ /** zone name */
176
+ dnsName: string;
177
+ /** Error shows error in case create/update/delete failed */
178
+ error?: string;
179
+ /** expire time */
180
+ expireTime: number;
181
+ extensions?: DomainExtensions;
182
+ /** zone id */
183
+ id: string;
184
+ /** if the zone is a reverse zone or not */
185
+ isReverseZone?: boolean;
186
+ labels?: ZoneLabelsList;
187
+ /** user given name */
188
+ name: string;
189
+ /** negative caching */
190
+ negativeCache: number;
191
+ /** primary name server for secondary zone */
192
+ primaries?: ZonePrimariesList;
193
+ /** primary name server. FQDN */
194
+ primaryNameServer: string;
195
+ /** record count how many records are in the zone */
196
+ recordCount?: number;
197
+ /** refresh time */
198
+ refreshTime: number;
199
+ /** retry time */
200
+ retryTime: number;
201
+ /** serial number */
202
+ serialNumber: number;
203
+ /** zone state */
204
+ state: ZoneState;
205
+ /** zone type */
206
+ type: ZoneType;
207
+ /** when zone update/deletion finished */
208
+ updateFinished: string;
209
+ /** when zone update/deletion started */
210
+ updateStarted: string;
211
+ /** visibility of the zone */
212
+ visibility: ZoneVisibility;
213
+ }
214
+ export const Zone = /*@__PURE__*/ S.suspend(() =>
215
+ S.Struct({
216
+ acl: S.String,
217
+ active: S.optional(S.Boolean),
218
+ contactEmail: S.optional(S.String),
219
+ creationFinished: S.String,
220
+ creationStarted: S.String,
221
+ defaultTTL: S.Number,
222
+ description: S.optional(S.String),
223
+ dnsName: S.String,
224
+ error: S.optional(S.String),
225
+ expireTime: S.Number,
226
+ extensions: S.optional(DomainExtensions),
227
+ id: S.String,
228
+ isReverseZone: S.optional(S.Boolean),
229
+ labels: S.optional(ZoneLabelsList),
230
+ name: S.String,
231
+ negativeCache: S.Number,
232
+ primaries: S.optional(ZonePrimariesList),
233
+ primaryNameServer: S.String,
234
+ recordCount: S.optional(S.Number),
235
+ refreshTime: S.Number,
236
+ retryTime: S.Number,
237
+ serialNumber: S.Number,
238
+ state: ZoneState,
239
+ type: ZoneType,
240
+ updateFinished: S.String,
241
+ updateStarted: S.String,
242
+ visibility: ZoneVisibility,
243
+ }),
244
+ ).annotate({ identifier: "Zone" }) as any as S.Schema<Zone>;
245
+
246
+ /** ResponseZone for user info. */
247
+ export interface ZoneResponse {
248
+ message?: string;
249
+ zone: Zone;
250
+ }
251
+ export const ZoneResponse = /*@__PURE__*/ S.suspend(() =>
252
+ S.Struct({
253
+ message: S.optional(S.String),
254
+ zone: Zone,
255
+ }),
256
+ ).annotate({ identifier: "ZoneResponse" }) as any as S.Schema<ZoneResponse>;
257
+
258
+ export interface CreateLabelRequest {
259
+ /** project id */
260
+ projectId: string;
261
+ /** zone id */
262
+ zoneId: string;
263
+ key: string;
264
+ value?: string;
265
+ }
266
+ export const CreateLabelRequest = /*@__PURE__*/ S.suspend(() =>
267
+ S.Struct({
268
+ projectId: S.String.pipe(T.Label()),
269
+ zoneId: S.String.pipe(T.Label()),
270
+ key: S.String,
271
+ value: S.optional(S.String),
272
+ }).pipe(
273
+ T.Http({
274
+ method: "PUT",
275
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/labels",
276
+ code: 200,
277
+ baseUrl: "https://dns.api.stackit.cloud",
278
+ }),
279
+ ),
280
+ ).annotate({
281
+ identifier: "CreateLabelRequest",
282
+ }) as any as S.Schema<CreateLabelRequest>;
283
+
284
+ /** ResponseUpsertLabel. */
285
+ export interface CreateLabelResponse {
286
+ label?: Label;
287
+ message?: string;
288
+ }
289
+ export const CreateLabelResponse = /*@__PURE__*/ S.suspend(() =>
290
+ S.Struct({
291
+ label: S.optional(Label),
292
+ message: S.optional(S.String),
293
+ }),
294
+ ).annotate({
295
+ identifier: "CreateLabelResponse",
296
+ }) as any as S.Schema<CreateLabelResponse>;
297
+
298
+ export interface CreateMoveCodeRequest {
299
+ /** project id */
300
+ projectId: string;
301
+ /** zone id */
302
+ zoneId: string;
303
+ /** TTL is the duration for which the move code is valid, represented as seconds. Min: 1, Max: 2592000 (30 days). */
304
+ ttl?: number;
305
+ }
306
+ export const CreateMoveCodeRequest = /*@__PURE__*/ S.suspend(() =>
307
+ S.Struct({
308
+ projectId: S.String.pipe(T.Label()),
309
+ zoneId: S.String.pipe(T.Label()),
310
+ ttl: S.optional(S.Number),
311
+ }).pipe(
312
+ T.Http({
313
+ method: "POST",
314
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/move-code",
315
+ code: 200,
316
+ baseUrl: "https://dns.api.stackit.cloud",
317
+ }),
318
+ ),
319
+ ).annotate({
320
+ identifier: "CreateMoveCodeRequest",
321
+ }) as any as S.Schema<CreateMoveCodeRequest>;
322
+
323
+ export interface MoveCodeResponse {
324
+ /** code to move the zone. It is one time shown so better keep it. */
325
+ code: string;
326
+ /** when the code expires */
327
+ expiresAt: string;
328
+ /** human readable message */
329
+ message?: string;
330
+ }
331
+ export const MoveCodeResponse = /*@__PURE__*/ S.suspend(() =>
332
+ S.Struct({
333
+ code: S.String,
334
+ expiresAt: S.String,
335
+ message: S.optional(S.String),
336
+ }),
337
+ ).annotate({
338
+ identifier: "MoveCodeResponse",
339
+ }) as any as S.Schema<MoveCodeResponse>;
340
+
341
+ /** RecordPost for rr set info. */
342
+ export interface RecordPayload {
343
+ /** content of the record */
344
+ content: string;
345
+ }
346
+ export const RecordPayload = /*@__PURE__*/ S.suspend(() =>
347
+ S.Struct({
348
+ content: S.String,
349
+ }),
350
+ ).annotate({ identifier: "RecordPayload" }) as any as S.Schema<RecordPayload>;
351
+
352
+ /** records */
353
+ export type CreateRecordSetRequestRecordsList = Array<RecordPayload>;
354
+ export const CreateRecordSetRequestRecordsList = /*@__PURE__*/ S.Array(
355
+ RecordPayload,
356
+ ) as any as S.Schema<CreateRecordSetRequestRecordsList>;
357
+
358
+ /** record set type */
359
+ export type CreateRecordSetRequestType =
360
+ | "A"
361
+ | "AAAA"
362
+ | "SOA"
363
+ | "CNAME"
364
+ | "NS"
365
+ | "MX"
366
+ | "TXT"
367
+ | "SRV"
368
+ | "PTR"
369
+ | "ALIAS"
370
+ | "DNAME"
371
+ | "CAA"
372
+ | "DNSKEY"
373
+ | "DS"
374
+ | "LOC"
375
+ | "NAPTR"
376
+ | "SSHFP"
377
+ | "TLSA"
378
+ | "URI"
379
+ | "CERT"
380
+ | "SVCB"
381
+ | "TYPE"
382
+ | "CSYNC"
383
+ | "HINFO"
384
+ | "HTTPS";
385
+ export const CreateRecordSetRequestType = /*@__PURE__*/ S.String;
386
+
387
+ export interface CreateRecordSetRequest {
388
+ /** project id */
389
+ projectId: string;
390
+ /** zone id */
391
+ zoneId: string;
392
+ /** user comment */
393
+ comment?: string;
394
+ /** name of the record which should be a valid domain according to rfc1035 Section 2.3.4. For APEX records (same as zone name), the zone name itself has to be put in here. */
395
+ name: string;
396
+ /** records */
397
+ records: CreateRecordSetRequestRecordsList;
398
+ /** time to live. If nothing provided we will set the zone ttl. */
399
+ ttl?: number;
400
+ /** record set type */
401
+ type: CreateRecordSetRequestType | (string & {});
402
+ }
403
+ export const CreateRecordSetRequest = /*@__PURE__*/ S.suspend(() =>
404
+ S.Struct({
405
+ projectId: S.String.pipe(T.Label()),
406
+ zoneId: S.String.pipe(T.Label()),
407
+ comment: S.optional(S.String),
408
+ name: S.String,
409
+ records: CreateRecordSetRequestRecordsList,
410
+ ttl: S.optional(S.Number),
411
+ type: CreateRecordSetRequestType,
412
+ }).pipe(
413
+ T.Http({
414
+ method: "POST",
415
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets",
416
+ code: 200,
417
+ baseUrl: "https://dns.api.stackit.cloud",
418
+ }),
419
+ ),
420
+ ).annotate({
421
+ identifier: "CreateRecordSetRequest",
422
+ }) as any as S.Schema<CreateRecordSetRequest>;
423
+
424
+ /** Record. */
425
+ export interface Record {
426
+ /** content of the record */
427
+ content: string;
428
+ /** rr set id */
429
+ id: string;
430
+ }
431
+ export const Record = /*@__PURE__*/ S.suspend(() =>
432
+ S.Struct({
433
+ content: S.String,
434
+ id: S.String,
435
+ }),
436
+ ).annotate({ identifier: "Record" }) as any as S.Schema<Record>;
437
+
438
+ /** records */
439
+ export type RecordSetRecordsList = Array<Record>;
440
+ export const RecordSetRecordsList = /*@__PURE__*/ S.Array(
441
+ Record,
442
+ ) as any as S.Schema<RecordSetRecordsList>;
443
+
444
+ /** record set state */
445
+ export type RecordSetState =
446
+ | "CREATING"
447
+ | "CREATE_SUCCEEDED"
448
+ | "CREATE_FAILED"
449
+ | "DELETING"
450
+ | "DELETE_SUCCEEDED"
451
+ | "DELETE_FAILED"
452
+ | "UPDATING"
453
+ | "UPDATE_SUCCEEDED"
454
+ | "UPDATE_FAILED";
455
+ export const RecordSetState = /*@__PURE__*/ S.String;
456
+
457
+ /** record set type */
458
+ export type RecordSetType =
459
+ | "A"
460
+ | "AAAA"
461
+ | "SOA"
462
+ | "CNAME"
463
+ | "NS"
464
+ | "MX"
465
+ | "TXT"
466
+ | "SRV"
467
+ | "PTR"
468
+ | "ALIAS"
469
+ | "DNAME"
470
+ | "CAA"
471
+ | "DNSKEY"
472
+ | "DS"
473
+ | "LOC"
474
+ | "NAPTR"
475
+ | "SSHFP"
476
+ | "TLSA"
477
+ | "URI"
478
+ | "CERT"
479
+ | "SVCB"
480
+ | "TYPE"
481
+ | "CSYNC"
482
+ | "HINFO"
483
+ | "HTTPS";
484
+ export const RecordSetType = /*@__PURE__*/ S.String;
485
+
486
+ /** RRSet. */
487
+ export interface RecordSet {
488
+ /** if the record set is active or not */
489
+ active?: boolean;
490
+ /** comment */
491
+ comment?: string;
492
+ /** when record set creation finished */
493
+ creationFinished: string;
494
+ /** when record set creation started */
495
+ creationStarted: string;
496
+ /** Error shows error in case create/update/delete failed */
497
+ error?: string;
498
+ /** rr set id */
499
+ id: string;
500
+ /** name of the record which should be a valid domain according to rfc1035 Section 2.3.4. For APEX records (same as zone name), the zone name itself has to be put in here. */
501
+ name: string;
502
+ /** records */
503
+ records: RecordSetRecordsList;
504
+ /** record set state */
505
+ state: RecordSetState;
506
+ /** time to live */
507
+ ttl: number;
508
+ /** record set type */
509
+ type: RecordSetType;
510
+ /** when record set update/deletion finished */
511
+ updateFinished: string;
512
+ /** when record set update/deletion started */
513
+ updateStarted: string;
514
+ }
515
+ export const RecordSet = /*@__PURE__*/ S.suspend(() =>
516
+ S.Struct({
517
+ active: S.optional(S.Boolean),
518
+ comment: S.optional(S.String),
519
+ creationFinished: S.String,
520
+ creationStarted: S.String,
521
+ error: S.optional(S.String),
522
+ id: S.String,
523
+ name: S.String,
524
+ records: RecordSetRecordsList,
525
+ state: RecordSetState,
526
+ ttl: S.Number,
527
+ type: RecordSetType,
528
+ updateFinished: S.String,
529
+ updateStarted: S.String,
530
+ }),
531
+ ).annotate({ identifier: "RecordSet" }) as any as S.Schema<RecordSet>;
532
+
533
+ /** ResponseRRSet for rr set info. */
534
+ export interface RecordSetResponse {
535
+ message?: string;
536
+ rrset: RecordSet;
537
+ }
538
+ export const RecordSetResponse = /*@__PURE__*/ S.suspend(() =>
539
+ S.Struct({
540
+ message: S.optional(S.String),
541
+ rrset: RecordSet,
542
+ }),
543
+ ).annotate({
544
+ identifier: "RecordSetResponse",
545
+ }) as any as S.Schema<RecordSetResponse>;
546
+
547
+ export interface ZoneObservabilityExtension {
548
+ observabilityInstanceId: string;
549
+ }
550
+ export const ZoneObservabilityExtension = /*@__PURE__*/ S.suspend(() =>
551
+ S.Struct({
552
+ observabilityInstanceId: S.String,
553
+ }),
554
+ ).annotate({
555
+ identifier: "ZoneObservabilityExtension",
556
+ }) as any as S.Schema<ZoneObservabilityExtension>;
557
+
558
+ export interface ZoneExtensions {
559
+ observabilityExtension?: ZoneObservabilityExtension;
560
+ }
561
+ export const ZoneExtensions = /*@__PURE__*/ S.suspend(() =>
562
+ S.Struct({
563
+ observabilityExtension: S.optional(ZoneObservabilityExtension),
564
+ }),
565
+ ).annotate({ identifier: "ZoneExtensions" }) as any as S.Schema<ZoneExtensions>;
566
+
567
+ /** primary name server for secondary zone */
568
+ export type CreateZoneRequestPrimariesList = Array<string>;
569
+ export const CreateZoneRequestPrimariesList = /*@__PURE__*/ S.Array(
570
+ S.String,
571
+ ) as any as S.Schema<CreateZoneRequestPrimariesList>;
572
+
573
+ /** zone type */
574
+ export type CreateZoneRequestType = "primary" | "secondary";
575
+ export const CreateZoneRequestType = /*@__PURE__*/ S.String;
576
+
577
+ export interface CreateZoneRequest {
578
+ /** project id */
579
+ projectId: string;
580
+ /** the access control list (note: this field currently has no effect and does not enforce any access restrictions on the DNS zone) */
581
+ acl?: string;
582
+ /** contact e-mail for the zone */
583
+ contactEmail?: string;
584
+ /** default time to live */
585
+ defaultTTL?: number;
586
+ /** description of the zone */
587
+ description?: string;
588
+ /** zone name */
589
+ dnsName: string;
590
+ /** expire time */
591
+ expireTime?: number;
592
+ /** optional extensions */
593
+ extensions?: ZoneExtensions;
594
+ /** if the zone is a reverse zone or not */
595
+ isReverseZone?: boolean;
596
+ /** user given name */
597
+ name: string;
598
+ /** negative caching */
599
+ negativeCache?: number;
600
+ /** primary name server for secondary zone */
601
+ primaries?: CreateZoneRequestPrimariesList;
602
+ /** refresh time */
603
+ refreshTime?: number;
604
+ /** retry time */
605
+ retryTime?: number;
606
+ /** zone type */
607
+ type?: CreateZoneRequestType | (string & {});
608
+ }
609
+ export const CreateZoneRequest = /*@__PURE__*/ S.suspend(() =>
610
+ S.Struct({
611
+ projectId: S.String.pipe(T.Label()),
612
+ acl: S.optional(S.String),
613
+ contactEmail: S.optional(S.String),
614
+ defaultTTL: S.optional(S.Number),
615
+ description: S.optional(S.String),
616
+ dnsName: S.String,
617
+ expireTime: S.optional(S.Number),
618
+ extensions: S.optional(ZoneExtensions),
619
+ isReverseZone: S.optional(S.Boolean),
620
+ name: S.String,
621
+ negativeCache: S.optional(S.Number),
622
+ primaries: S.optional(CreateZoneRequestPrimariesList),
623
+ refreshTime: S.optional(S.Number),
624
+ retryTime: S.optional(S.Number),
625
+ type: S.optional(CreateZoneRequestType),
626
+ }).pipe(
627
+ T.Http({
628
+ method: "POST",
629
+ uri: "/v1/projects/{projectId}/zones",
630
+ code: 200,
631
+ baseUrl: "https://dns.api.stackit.cloud",
632
+ }),
633
+ ),
634
+ ).annotate({
635
+ identifier: "CreateZoneRequest",
636
+ }) as any as S.Schema<CreateZoneRequest>;
637
+
638
+ export interface DeleteLabelRequest {
639
+ /** project id */
640
+ projectId: string;
641
+ /** zone id */
642
+ zoneId: string;
643
+ /** key of the label */
644
+ key: string;
645
+ }
646
+ export const DeleteLabelRequest = /*@__PURE__*/ S.suspend(() =>
647
+ S.Struct({
648
+ projectId: S.String.pipe(T.Label()),
649
+ zoneId: S.String.pipe(T.Label()),
650
+ key: S.String.pipe(T.Label()),
651
+ }).pipe(
652
+ T.Http({
653
+ method: "DELETE",
654
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/labels/{key}",
655
+ code: 200,
656
+ baseUrl: "https://dns.api.stackit.cloud",
657
+ }),
658
+ ),
659
+ ).annotate({
660
+ identifier: "DeleteLabelRequest",
661
+ }) as any as S.Schema<DeleteLabelRequest>;
662
+
663
+ /** ResponseDeleteLabel. */
664
+ export interface DeleteLabelResponse {
665
+ label?: Label;
666
+ message?: string;
667
+ }
668
+ export const DeleteLabelResponse = /*@__PURE__*/ S.suspend(() =>
669
+ S.Struct({
670
+ label: S.optional(Label),
671
+ message: S.optional(S.String),
672
+ }),
673
+ ).annotate({
674
+ identifier: "DeleteLabelResponse",
675
+ }) as any as S.Schema<DeleteLabelResponse>;
676
+
677
+ export interface DeleteMoveCodeRequest {
678
+ /** project id */
679
+ projectId: string;
680
+ /** zone id */
681
+ zoneId: string;
682
+ }
683
+ export const DeleteMoveCodeRequest = /*@__PURE__*/ S.suspend(() =>
684
+ S.Struct({
685
+ projectId: S.String.pipe(T.Label()),
686
+ zoneId: S.String.pipe(T.Label()),
687
+ }).pipe(
688
+ T.Http({
689
+ method: "DELETE",
690
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/move-code",
691
+ code: 200,
692
+ baseUrl: "https://dns.api.stackit.cloud",
693
+ }),
694
+ ),
695
+ ).annotate({
696
+ identifier: "DeleteMoveCodeRequest",
697
+ }) as any as S.Schema<DeleteMoveCodeRequest>;
698
+
699
+ export interface Message {
700
+ message?: string;
701
+ }
702
+ export const Message = /*@__PURE__*/ S.suspend(() =>
703
+ S.Struct({
704
+ message: S.optional(S.String),
705
+ }),
706
+ ).annotate({ identifier: "Message" }) as any as S.Schema<Message>;
707
+
708
+ export interface DeleteRecordSetRequest {
709
+ /** project id */
710
+ projectId: string;
711
+ /** zone id */
712
+ zoneId: string;
713
+ /** record set id */
714
+ rrSetId: string;
715
+ }
716
+ export const DeleteRecordSetRequest = /*@__PURE__*/ S.suspend(() =>
717
+ S.Struct({
718
+ projectId: S.String.pipe(T.Label()),
719
+ zoneId: S.String.pipe(T.Label()),
720
+ rrSetId: S.String.pipe(T.Label()),
721
+ }).pipe(
722
+ T.Http({
723
+ method: "DELETE",
724
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}",
725
+ code: 200,
726
+ baseUrl: "https://dns.api.stackit.cloud",
727
+ }),
728
+ ),
729
+ ).annotate({
730
+ identifier: "DeleteRecordSetRequest",
731
+ }) as any as S.Schema<DeleteRecordSetRequest>;
732
+
733
+ export interface DeleteZoneRequest {
734
+ /** project id */
735
+ projectId: string;
736
+ /** zone id */
737
+ zoneId: string;
738
+ }
739
+ export const DeleteZoneRequest = /*@__PURE__*/ S.suspend(() =>
740
+ S.Struct({
741
+ projectId: S.String.pipe(T.Label()),
742
+ zoneId: S.String.pipe(T.Label()),
743
+ }).pipe(
744
+ T.Http({
745
+ method: "DELETE",
746
+ uri: "/v1/projects/{projectId}/zones/{zoneId}",
747
+ code: 200,
748
+ baseUrl: "https://dns.api.stackit.cloud",
749
+ }),
750
+ ),
751
+ ).annotate({
752
+ identifier: "DeleteZoneRequest",
753
+ }) as any as S.Schema<DeleteZoneRequest>;
754
+
755
+ export type ExportRecordSetsRequestFormat = "csv" | "json" | "bind";
756
+ export const ExportRecordSetsRequestFormat = /*@__PURE__*/ S.String;
757
+
758
+ export interface ExportRecordSetsRequest {
759
+ /** project id */
760
+ projectId: string;
761
+ /** zone id */
762
+ zoneId: string;
763
+ exportAsFQDN?: boolean;
764
+ format?: ExportRecordSetsRequestFormat | (string & {});
765
+ }
766
+ export const ExportRecordSetsRequest = /*@__PURE__*/ S.suspend(() =>
767
+ S.Struct({
768
+ projectId: S.String.pipe(T.Label()),
769
+ zoneId: S.String.pipe(T.Label()),
770
+ exportAsFQDN: S.optional(S.Boolean),
771
+ format: S.optional(ExportRecordSetsRequestFormat),
772
+ }).pipe(
773
+ T.Http({
774
+ method: "POST",
775
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/export",
776
+ code: 200,
777
+ baseUrl: "https://dns.api.stackit.cloud",
778
+ }),
779
+ ),
780
+ ).annotate({
781
+ identifier: "ExportRecordSetsRequest",
782
+ }) as any as S.Schema<ExportRecordSetsRequest>;
783
+
784
+ export type RecordDataExchangeContentList = Array<string>;
785
+ export const RecordDataExchangeContentList = /*@__PURE__*/ S.Array(
786
+ S.String,
787
+ ) as any as S.Schema<RecordDataExchangeContentList>;
788
+
789
+ export interface RecordDataExchange {
790
+ comment?: string;
791
+ content?: RecordDataExchangeContentList;
792
+ name?: string;
793
+ ttl?: number;
794
+ type?: string;
795
+ }
796
+ export const RecordDataExchange = /*@__PURE__*/ S.suspend(() =>
797
+ S.Struct({
798
+ comment: S.optional(S.String),
799
+ content: S.optional(RecordDataExchangeContentList),
800
+ name: S.optional(S.String),
801
+ ttl: S.optional(S.Number),
802
+ type: S.optional(S.String),
803
+ }),
804
+ ).annotate({
805
+ identifier: "RecordDataExchange",
806
+ }) as any as S.Schema<RecordDataExchange>;
807
+
808
+ export type ZoneDataExchangeRrSetsList = Array<RecordDataExchange>;
809
+ export const ZoneDataExchangeRrSetsList = /*@__PURE__*/ S.Array(
810
+ RecordDataExchange,
811
+ ) as any as S.Schema<ZoneDataExchangeRrSetsList>;
812
+
813
+ export interface ZoneDataExchange {
814
+ rrSets?: ZoneDataExchangeRrSetsList;
815
+ }
816
+ export const ZoneDataExchange = /*@__PURE__*/ S.suspend(() =>
817
+ S.Struct({
818
+ rrSets: S.optional(ZoneDataExchangeRrSetsList),
819
+ }),
820
+ ).annotate({
821
+ identifier: "ZoneDataExchange",
822
+ }) as any as S.Schema<ZoneDataExchange>;
823
+
824
+ export interface GetRecordSetRequest {
825
+ /** project id */
826
+ projectId: string;
827
+ /** zone id */
828
+ zoneId: string;
829
+ /** record set id */
830
+ rrSetId: string;
831
+ }
832
+ export const GetRecordSetRequest = /*@__PURE__*/ S.suspend(() =>
833
+ S.Struct({
834
+ projectId: S.String.pipe(T.Label()),
835
+ zoneId: S.String.pipe(T.Label()),
836
+ rrSetId: S.String.pipe(T.Label()),
837
+ }).pipe(
838
+ T.Http({
839
+ method: "GET",
840
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}",
841
+ code: 200,
842
+ baseUrl: "https://dns.api.stackit.cloud",
843
+ }),
844
+ ),
845
+ ).annotate({
846
+ identifier: "GetRecordSetRequest",
847
+ }) as any as S.Schema<GetRecordSetRequest>;
848
+
849
+ export interface GetZoneRequest {
850
+ /** project id */
851
+ projectId: string;
852
+ /** zone id */
853
+ zoneId: string;
854
+ }
855
+ export const GetZoneRequest = /*@__PURE__*/ S.suspend(() =>
856
+ S.Struct({
857
+ projectId: S.String.pipe(T.Label()),
858
+ zoneId: S.String.pipe(T.Label()),
859
+ }).pipe(
860
+ T.Http({
861
+ method: "GET",
862
+ uri: "/v1/projects/{projectId}/zones/{zoneId}",
863
+ code: 200,
864
+ baseUrl: "https://dns.api.stackit.cloud",
865
+ }),
866
+ ),
867
+ ).annotate({ identifier: "GetZoneRequest" }) as any as S.Schema<GetZoneRequest>;
868
+
869
+ export interface GetZoneRequest2 {
870
+ /** project id */
871
+ projectId: string;
872
+ /** zone id */
873
+ zoneId: string;
874
+ }
875
+ export const GetZoneRequest2 = /*@__PURE__*/ S.suspend(() =>
876
+ S.Struct({
877
+ projectId: S.String.pipe(T.Label()),
878
+ zoneId: S.String.pipe(T.Label()),
879
+ }).pipe(
880
+ T.Http({
881
+ method: "POST",
882
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/retrieve",
883
+ code: 200,
884
+ baseUrl: "https://dns.api.stackit.cloud",
885
+ }),
886
+ ),
887
+ ).annotate({
888
+ identifier: "GetZoneRequest2",
889
+ }) as any as S.Schema<GetZoneRequest2>;
890
+
891
+ export type ImportRecordSetsRequestFormat = "json" | "csv" | "bind";
892
+ export const ImportRecordSetsRequestFormat = /*@__PURE__*/ S.String;
893
+
894
+ export type ImportRecordSetsRequestImportType =
895
+ | "restore"
896
+ | "delete"
897
+ | "update"
898
+ | "upsert";
899
+ export const ImportRecordSetsRequestImportType = /*@__PURE__*/ S.String;
900
+
901
+ export type ZoneModelsImportRecordModelContentList = Array<string>;
902
+ export const ZoneModelsImportRecordModelContentList = /*@__PURE__*/ S.Array(
903
+ S.String,
904
+ ) as any as S.Schema<ZoneModelsImportRecordModelContentList>;
905
+
906
+ export interface ZoneModelsImportRecordModel {
907
+ comment?: string;
908
+ content?: ZoneModelsImportRecordModelContentList;
909
+ name?: string;
910
+ ttl?: number;
911
+ type?: string;
912
+ }
913
+ export const ZoneModelsImportRecordModel = /*@__PURE__*/ S.suspend(() =>
914
+ S.Struct({
915
+ comment: S.optional(S.String),
916
+ content: S.optional(ZoneModelsImportRecordModelContentList),
917
+ name: S.optional(S.String),
918
+ ttl: S.optional(S.Number),
919
+ type: S.optional(S.String),
920
+ }),
921
+ ).annotate({
922
+ identifier: "ZoneModelsImportRecordModel",
923
+ }) as any as S.Schema<ZoneModelsImportRecordModel>;
924
+
925
+ export type ImportRecordSetsRequestRrSetsList =
926
+ Array<ZoneModelsImportRecordModel>;
927
+ export const ImportRecordSetsRequestRrSetsList = /*@__PURE__*/ S.Array(
928
+ ZoneModelsImportRecordModel,
929
+ ) as any as S.Schema<ImportRecordSetsRequestRrSetsList>;
930
+
931
+ export interface ImportRecordSetsRequest {
932
+ /** project id */
933
+ projectId: string;
934
+ /** zone id */
935
+ zoneId: string;
936
+ /** format of the data to import */
937
+ format?: ImportRecordSetsRequestFormat | (string & {});
938
+ /** type of the zone import */
939
+ importType?: ImportRecordSetsRequestImportType | (string & {});
940
+ rrSets?: ImportRecordSetsRequestRrSetsList;
941
+ }
942
+ export const ImportRecordSetsRequest = /*@__PURE__*/ S.suspend(() =>
943
+ S.Struct({
944
+ projectId: S.String.pipe(T.Label()),
945
+ zoneId: S.String.pipe(T.Label()),
946
+ format: S.optional(ImportRecordSetsRequestFormat.pipe(T.Query())),
947
+ importType: S.optional(ImportRecordSetsRequestImportType.pipe(T.Query())),
948
+ rrSets: S.optional(ImportRecordSetsRequestRrSetsList),
949
+ }).pipe(
950
+ T.Http({
951
+ method: "POST",
952
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/import",
953
+ code: 200,
954
+ baseUrl: "https://dns.api.stackit.cloud",
955
+ }),
956
+ ),
957
+ ).annotate({
958
+ identifier: "ImportRecordSetsRequest",
959
+ }) as any as S.Schema<ImportRecordSetsRequest>;
960
+
961
+ /** ImportSummary is the summary of the import. */
962
+ export interface ImportSummary {
963
+ createdRRSets?: number;
964
+ createdRecords?: number;
965
+ deletedRRSets?: number;
966
+ deletedRecords?: number;
967
+ updatedRRSets?: number;
968
+ updatedRecords?: number;
969
+ }
970
+ export const ImportSummary = /*@__PURE__*/ S.suspend(() =>
971
+ S.Struct({
972
+ createdRRSets: S.optional(S.Number),
973
+ createdRecords: S.optional(S.Number),
974
+ deletedRRSets: S.optional(S.Number),
975
+ deletedRecords: S.optional(S.Number),
976
+ updatedRRSets: S.optional(S.Number),
977
+ updatedRecords: S.optional(S.Number),
978
+ }),
979
+ ).annotate({ identifier: "ImportSummary" }) as any as S.Schema<ImportSummary>;
980
+
981
+ /** ImportSummaryResponse is the response of the import. */
982
+ export interface ImportRecordSetsResponse {
983
+ message?: string;
984
+ summary: ImportSummary;
985
+ }
986
+ export const ImportRecordSetsResponse = /*@__PURE__*/ S.suspend(() =>
987
+ S.Struct({
988
+ message: S.optional(S.String),
989
+ summary: ImportSummary,
990
+ }),
991
+ ).annotate({
992
+ identifier: "ImportRecordSetsResponse",
993
+ }) as any as S.Schema<ImportRecordSetsResponse>;
994
+
995
+ export interface ListLabelsRequest {
996
+ /** project id */
997
+ projectId: string;
998
+ /** zone id */
999
+ zoneId: string;
1000
+ }
1001
+ export const ListLabelsRequest = /*@__PURE__*/ S.suspend(() =>
1002
+ S.Struct({
1003
+ projectId: S.String.pipe(T.Label()),
1004
+ zoneId: S.String.pipe(T.Label()),
1005
+ }).pipe(
1006
+ T.Http({
1007
+ method: "GET",
1008
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/labels",
1009
+ code: 200,
1010
+ baseUrl: "https://dns.api.stackit.cloud",
1011
+ }),
1012
+ ),
1013
+ ).annotate({
1014
+ identifier: "ListLabelsRequest",
1015
+ }) as any as S.Schema<ListLabelsRequest>;
1016
+
1017
+ export type ListLabelsResponseLabelsList = Array<Label>;
1018
+ export const ListLabelsResponseLabelsList = /*@__PURE__*/ S.Array(
1019
+ Label,
1020
+ ) as any as S.Schema<ListLabelsResponseLabelsList>;
1021
+
1022
+ /** ResponseAllLabels. */
1023
+ export interface ListLabelsResponse {
1024
+ labels?: ListLabelsResponseLabelsList;
1025
+ message?: string;
1026
+ }
1027
+ export const ListLabelsResponse = /*@__PURE__*/ S.suspend(() =>
1028
+ S.Struct({
1029
+ labels: S.optional(ListLabelsResponseLabelsList),
1030
+ message: S.optional(S.String),
1031
+ }),
1032
+ ).annotate({
1033
+ identifier: "ListLabelsResponse",
1034
+ }) as any as S.Schema<ListLabelsResponse>;
1035
+
1036
+ export type ListRecordSetsRequestTypeEq =
1037
+ | "A"
1038
+ | "AAAA"
1039
+ | "SOA"
1040
+ | "CNAME"
1041
+ | "NS"
1042
+ | "MX"
1043
+ | "TXT"
1044
+ | "SRV"
1045
+ | "PTR"
1046
+ | "ALIAS"
1047
+ | "DNAME"
1048
+ | "CAA"
1049
+ | "DNSKEY"
1050
+ | "DS"
1051
+ | "LOC"
1052
+ | "NAPTR"
1053
+ | "SSHFP"
1054
+ | "TLSA"
1055
+ | "URI"
1056
+ | "CERT"
1057
+ | "SVCB"
1058
+ | "TYPE"
1059
+ | "CSYNC"
1060
+ | "HINFO"
1061
+ | "HTTPS";
1062
+ export const ListRecordSetsRequestTypeEq = /*@__PURE__*/ S.String;
1063
+
1064
+ export type ListRecordSetsRequestStateEq =
1065
+ | "CREATING"
1066
+ | "CREATE_SUCCEEDED"
1067
+ | "CREATE_FAILED"
1068
+ | "DELETING"
1069
+ | "DELETE_SUCCEEDED"
1070
+ | "DELETE_FAILED"
1071
+ | "UPDATING"
1072
+ | "UPDATE_SUCCEEDED"
1073
+ | "UPDATE_FAILED";
1074
+ export const ListRecordSetsRequestStateEq = /*@__PURE__*/ S.String;
1075
+
1076
+ export type ListRecordSetsRequestStateNeq =
1077
+ | "CREATING"
1078
+ | "CREATE_SUCCEEDED"
1079
+ | "CREATE_FAILED"
1080
+ | "DELETING"
1081
+ | "DELETE_SUCCEEDED"
1082
+ | "DELETE_FAILED"
1083
+ | "UPDATING"
1084
+ | "UPDATE_SUCCEEDED"
1085
+ | "UPDATE_FAILED";
1086
+ export const ListRecordSetsRequestStateNeq = /*@__PURE__*/ S.String;
1087
+
1088
+ export type ListRecordSetsRequestOrderByName = "ASC" | "DESC";
1089
+ export const ListRecordSetsRequestOrderByName = /*@__PURE__*/ S.String;
1090
+
1091
+ export type ListRecordSetsRequestOrderByCreationStarted = "ASC" | "DESC";
1092
+ export const ListRecordSetsRequestOrderByCreationStarted =
1093
+ /*@__PURE__*/ S.String;
1094
+
1095
+ export type ListRecordSetsRequestOrderByCreationFinished = "ASC" | "DESC";
1096
+ export const ListRecordSetsRequestOrderByCreationFinished =
1097
+ /*@__PURE__*/ S.String;
1098
+
1099
+ export type ListRecordSetsRequestOrderByUpdateStarted = "ASC" | "DESC";
1100
+ export const ListRecordSetsRequestOrderByUpdateStarted = /*@__PURE__*/ S.String;
1101
+
1102
+ export type ListRecordSetsRequestOrderByUpdateFinished = "ASC" | "DESC";
1103
+ export const ListRecordSetsRequestOrderByUpdateFinished =
1104
+ /*@__PURE__*/ S.String;
1105
+
1106
+ export type ListRecordSetsRequestOrderByType = "ASC" | "DESC";
1107
+ export const ListRecordSetsRequestOrderByType = /*@__PURE__*/ S.String;
1108
+
1109
+ export type ListRecordSetsRequestOrderByState = "ASC" | "DESC";
1110
+ export const ListRecordSetsRequestOrderByState = /*@__PURE__*/ S.String;
1111
+
1112
+ export type ListRecordSetsRequestOrderByRecordCount = "ASC" | "DESC";
1113
+ export const ListRecordSetsRequestOrderByRecordCount = /*@__PURE__*/ S.String;
1114
+
1115
+ export interface ListRecordSetsRequest {
1116
+ /** project id */
1117
+ projectId: string;
1118
+ /** zone id */
1119
+ zoneId: string;
1120
+ /** page */
1121
+ page?: number;
1122
+ /** page size */
1123
+ pageSize?: number;
1124
+ /** filter name equal */
1125
+ name_eq_?: string;
1126
+ /** filter name like */
1127
+ name_like_?: string;
1128
+ /** filter type */
1129
+ type_eq_?: ListRecordSetsRequestTypeEq | (string & {});
1130
+ /** filter state */
1131
+ state_eq_?: ListRecordSetsRequestStateEq | (string & {});
1132
+ /** filter state */
1133
+ state_neq_?: ListRecordSetsRequestStateNeq | (string & {});
1134
+ /** filter active equal */
1135
+ active_eq_?: boolean;
1136
+ /** filter creation started greater with utc timestamp */
1137
+ creationStarted_gt_?: string;
1138
+ /** filter creation started lesser with utc timestamp */
1139
+ creationStarted_lt_?: string;
1140
+ /** filter creation started greater equal with utc timestamp */
1141
+ creationStarted_gte_?: string;
1142
+ /** filter creation started lesser equal with utc timestamp */
1143
+ creationStarted_lte_?: string;
1144
+ /** filter creation finished greater with utc timestamp */
1145
+ creationFinished_gt_?: string;
1146
+ /** filter creation finished lesser with utc timestamp */
1147
+ creationFinished_lt_?: string;
1148
+ /** filter creation finished greater equal with utc timestamp */
1149
+ creationFinished_gte_?: string;
1150
+ /** filter creation finished lesser equal with utc timestamp */
1151
+ creationFinished_lte_?: string;
1152
+ /** filter update started greater with utc timestamp */
1153
+ updateStarted_gt_?: string;
1154
+ /** filter update started lesser with utc timestamp */
1155
+ updateStarted_lt_?: string;
1156
+ /** filter update started greater equal with utc timestamp */
1157
+ updateStarted_gte_?: string;
1158
+ /** filter update started lesser equal with utc timestamp */
1159
+ updateStarted_lte_?: string;
1160
+ /** filter update finished greater with utc timestamp */
1161
+ updateFinished_gt_?: string;
1162
+ /** filter update finished lesser with utc timestamp */
1163
+ updateFinished_lt_?: string;
1164
+ /** filter update finished greater equal with utc timestamp */
1165
+ updateFinished_gte_?: string;
1166
+ /** filter update finished lesser equal with utc timestamp */
1167
+ updateFinished_lte_?: string;
1168
+ /** order by name */
1169
+ orderBy_name_?: ListRecordSetsRequestOrderByName | (string & {});
1170
+ /** order by creationStarted */
1171
+ orderBy_creationStarted_?:
1172
+ | ListRecordSetsRequestOrderByCreationStarted
1173
+ | (string & {});
1174
+ /** order by creationFinished */
1175
+ orderBy_creationFinished_?:
1176
+ | ListRecordSetsRequestOrderByCreationFinished
1177
+ | (string & {});
1178
+ /** order by updateStarted */
1179
+ orderBy_updateStarted_?:
1180
+ | ListRecordSetsRequestOrderByUpdateStarted
1181
+ | (string & {});
1182
+ /** order by updateFinished */
1183
+ orderBy_updateFinished_?:
1184
+ | ListRecordSetsRequestOrderByUpdateFinished
1185
+ | (string & {});
1186
+ /** order by type */
1187
+ orderBy_type_?: ListRecordSetsRequestOrderByType | (string & {});
1188
+ /** order by state */
1189
+ orderBy_state_?: ListRecordSetsRequestOrderByState | (string & {});
1190
+ /** order by record count */
1191
+ orderBy_recordCount_?:
1192
+ | ListRecordSetsRequestOrderByRecordCount
1193
+ | (string & {});
1194
+ }
1195
+ export const ListRecordSetsRequest = /*@__PURE__*/ S.suspend(() =>
1196
+ S.Struct({
1197
+ projectId: S.String.pipe(T.Label()),
1198
+ zoneId: S.String.pipe(T.Label()),
1199
+ page: S.optional(S.Number.pipe(T.Query())),
1200
+ pageSize: S.optional(S.Number.pipe(T.Query())),
1201
+ name_eq_: S.optional(S.String.pipe(T.Query("name[eq]"))),
1202
+ name_like_: S.optional(S.String.pipe(T.Query("name[like]"))),
1203
+ type_eq_: S.optional(ListRecordSetsRequestTypeEq.pipe(T.Query("type[eq]"))),
1204
+ state_eq_: S.optional(
1205
+ ListRecordSetsRequestStateEq.pipe(T.Query("state[eq]")),
1206
+ ),
1207
+ state_neq_: S.optional(
1208
+ ListRecordSetsRequestStateNeq.pipe(T.Query("state[neq]")),
1209
+ ),
1210
+ active_eq_: S.optional(S.Boolean.pipe(T.Query("active[eq]"))),
1211
+ creationStarted_gt_: S.optional(
1212
+ S.String.pipe(T.Query("creationStarted[gt]")),
1213
+ ),
1214
+ creationStarted_lt_: S.optional(
1215
+ S.String.pipe(T.Query("creationStarted[lt]")),
1216
+ ),
1217
+ creationStarted_gte_: S.optional(
1218
+ S.String.pipe(T.Query("creationStarted[gte]")),
1219
+ ),
1220
+ creationStarted_lte_: S.optional(
1221
+ S.String.pipe(T.Query("creationStarted[lte]")),
1222
+ ),
1223
+ creationFinished_gt_: S.optional(
1224
+ S.String.pipe(T.Query("creationFinished[gt]")),
1225
+ ),
1226
+ creationFinished_lt_: S.optional(
1227
+ S.String.pipe(T.Query("creationFinished[lt]")),
1228
+ ),
1229
+ creationFinished_gte_: S.optional(
1230
+ S.String.pipe(T.Query("creationFinished[gte]")),
1231
+ ),
1232
+ creationFinished_lte_: S.optional(
1233
+ S.String.pipe(T.Query("creationFinished[lte]")),
1234
+ ),
1235
+ updateStarted_gt_: S.optional(S.String.pipe(T.Query("updateStarted[gt]"))),
1236
+ updateStarted_lt_: S.optional(S.String.pipe(T.Query("updateStarted[lt]"))),
1237
+ updateStarted_gte_: S.optional(
1238
+ S.String.pipe(T.Query("updateStarted[gte]")),
1239
+ ),
1240
+ updateStarted_lte_: S.optional(
1241
+ S.String.pipe(T.Query("updateStarted[lte]")),
1242
+ ),
1243
+ updateFinished_gt_: S.optional(
1244
+ S.String.pipe(T.Query("updateFinished[gt]")),
1245
+ ),
1246
+ updateFinished_lt_: S.optional(
1247
+ S.String.pipe(T.Query("updateFinished[lt]")),
1248
+ ),
1249
+ updateFinished_gte_: S.optional(
1250
+ S.String.pipe(T.Query("updateFinished[gte]")),
1251
+ ),
1252
+ updateFinished_lte_: S.optional(
1253
+ S.String.pipe(T.Query("updateFinished[lte]")),
1254
+ ),
1255
+ orderBy_name_: S.optional(
1256
+ ListRecordSetsRequestOrderByName.pipe(T.Query("orderBy[name]")),
1257
+ ),
1258
+ orderBy_creationStarted_: S.optional(
1259
+ ListRecordSetsRequestOrderByCreationStarted.pipe(
1260
+ T.Query("orderBy[creationStarted]"),
1261
+ ),
1262
+ ),
1263
+ orderBy_creationFinished_: S.optional(
1264
+ ListRecordSetsRequestOrderByCreationFinished.pipe(
1265
+ T.Query("orderBy[creationFinished]"),
1266
+ ),
1267
+ ),
1268
+ orderBy_updateStarted_: S.optional(
1269
+ ListRecordSetsRequestOrderByUpdateStarted.pipe(
1270
+ T.Query("orderBy[updateStarted]"),
1271
+ ),
1272
+ ),
1273
+ orderBy_updateFinished_: S.optional(
1274
+ ListRecordSetsRequestOrderByUpdateFinished.pipe(
1275
+ T.Query("orderBy[updateFinished]"),
1276
+ ),
1277
+ ),
1278
+ orderBy_type_: S.optional(
1279
+ ListRecordSetsRequestOrderByType.pipe(T.Query("orderBy[type]")),
1280
+ ),
1281
+ orderBy_state_: S.optional(
1282
+ ListRecordSetsRequestOrderByState.pipe(T.Query("orderBy[state]")),
1283
+ ),
1284
+ orderBy_recordCount_: S.optional(
1285
+ ListRecordSetsRequestOrderByRecordCount.pipe(
1286
+ T.Query("orderBy[recordCount]"),
1287
+ ),
1288
+ ),
1289
+ }).pipe(
1290
+ T.Http({
1291
+ method: "GET",
1292
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets",
1293
+ code: 200,
1294
+ baseUrl: "https://dns.api.stackit.cloud",
1295
+ }),
1296
+ ),
1297
+ ).annotate({
1298
+ identifier: "ListRecordSetsRequest",
1299
+ }) as any as S.Schema<ListRecordSetsRequest>;
1300
+
1301
+ export type ListRecordSetsResponseRrSetsList = Array<RecordSet>;
1302
+ export const ListRecordSetsResponseRrSetsList = /*@__PURE__*/ S.Array(
1303
+ RecordSet,
1304
+ ) as any as S.Schema<ListRecordSetsResponseRrSetsList>;
1305
+
1306
+ /** ResponseRRSetAll. */
1307
+ export interface ListRecordSetsResponse {
1308
+ itemsPerPage: number;
1309
+ message?: string;
1310
+ rrSets: ListRecordSetsResponseRrSetsList;
1311
+ totalItems: number;
1312
+ totalPages: number;
1313
+ }
1314
+ export const ListRecordSetsResponse = /*@__PURE__*/ S.suspend(() =>
1315
+ S.Struct({
1316
+ itemsPerPage: S.Number,
1317
+ message: S.optional(S.String),
1318
+ rrSets: ListRecordSetsResponseRrSetsList,
1319
+ totalItems: S.Number,
1320
+ totalPages: S.Number,
1321
+ }),
1322
+ ).annotate({
1323
+ identifier: "ListRecordSetsResponse",
1324
+ }) as any as S.Schema<ListRecordSetsResponse>;
1325
+
1326
+ export type ListZonesRequestTypeEq = "primary" | "secondary";
1327
+ export const ListZonesRequestTypeEq = /*@__PURE__*/ S.String;
1328
+
1329
+ export type ListZonesRequestStateEq =
1330
+ | "CREATING"
1331
+ | "CREATE_SUCCEEDED"
1332
+ | "CREATE_FAILED"
1333
+ | "DELETING"
1334
+ | "DELETE_SUCCEEDED"
1335
+ | "DELETE_FAILED"
1336
+ | "UPDATING"
1337
+ | "UPDATE_SUCCEEDED"
1338
+ | "UPDATE_FAILED";
1339
+ export const ListZonesRequestStateEq = /*@__PURE__*/ S.String;
1340
+
1341
+ export type ListZonesRequestStateNeq =
1342
+ | "CREATING"
1343
+ | "CREATE_SUCCEEDED"
1344
+ | "CREATE_FAILED"
1345
+ | "DELETING"
1346
+ | "DELETE_SUCCEEDED"
1347
+ | "DELETE_FAILED"
1348
+ | "UPDATING"
1349
+ | "UPDATE_SUCCEEDED"
1350
+ | "UPDATE_FAILED";
1351
+ export const ListZonesRequestStateNeq = /*@__PURE__*/ S.String;
1352
+
1353
+ export type ListZonesRequestLabelKeyEqList = Array<string>;
1354
+ export const ListZonesRequestLabelKeyEqList = /*@__PURE__*/ S.Array(
1355
+ S.String,
1356
+ ) as any as S.Schema<ListZonesRequestLabelKeyEqList>;
1357
+
1358
+ export type ListZonesRequestLabelValueEqList = Array<string>;
1359
+ export const ListZonesRequestLabelValueEqList = /*@__PURE__*/ S.Array(
1360
+ S.String,
1361
+ ) as any as S.Schema<ListZonesRequestLabelValueEqList>;
1362
+
1363
+ export type ListZonesRequestOrderByDnsName = "ASC" | "DESC";
1364
+ export const ListZonesRequestOrderByDnsName = /*@__PURE__*/ S.String;
1365
+
1366
+ export type ListZonesRequestOrderByName = "ASC" | "DESC";
1367
+ export const ListZonesRequestOrderByName = /*@__PURE__*/ S.String;
1368
+
1369
+ export type ListZonesRequestOrderByRecordCount = "ASC" | "DESC";
1370
+ export const ListZonesRequestOrderByRecordCount = /*@__PURE__*/ S.String;
1371
+
1372
+ export type ListZonesRequestOrderByType = "ASC" | "DESC";
1373
+ export const ListZonesRequestOrderByType = /*@__PURE__*/ S.String;
1374
+
1375
+ export type ListZonesRequestOrderByDescription = "ASC" | "DESC";
1376
+ export const ListZonesRequestOrderByDescription = /*@__PURE__*/ S.String;
1377
+
1378
+ export type ListZonesRequestOrderByCreationStarted = "ASC" | "DESC";
1379
+ export const ListZonesRequestOrderByCreationStarted = /*@__PURE__*/ S.String;
1380
+
1381
+ export type ListZonesRequestOrderByCreationFinished = "ASC" | "DESC";
1382
+ export const ListZonesRequestOrderByCreationFinished = /*@__PURE__*/ S.String;
1383
+
1384
+ export type ListZonesRequestOrderByUpdateStarted = "ASC" | "DESC";
1385
+ export const ListZonesRequestOrderByUpdateStarted = /*@__PURE__*/ S.String;
1386
+
1387
+ export type ListZonesRequestOrderByUpdateFinished = "ASC" | "DESC";
1388
+ export const ListZonesRequestOrderByUpdateFinished = /*@__PURE__*/ S.String;
1389
+
1390
+ export interface ListZonesRequest {
1391
+ /** project id */
1392
+ projectId: string;
1393
+ /** page */
1394
+ page?: number;
1395
+ /** page size */
1396
+ pageSize?: number;
1397
+ /** filter dns name equal */
1398
+ dnsName_eq_?: string;
1399
+ /** filter dns name like */
1400
+ dnsName_like_?: string;
1401
+ /** filter type */
1402
+ type_eq_?: ListZonesRequestTypeEq | (string & {});
1403
+ /** filter name equal */
1404
+ name_eq_?: string;
1405
+ /** filter name not equal */
1406
+ name_neq_?: string;
1407
+ /** filter name like */
1408
+ name_like_?: string;
1409
+ /** filter description equal */
1410
+ description_eq_?: string;
1411
+ /** filter description not equal */
1412
+ description_neq_?: string;
1413
+ /** filter description like */
1414
+ description_like_?: string;
1415
+ /** filter state */
1416
+ state_eq_?: ListZonesRequestStateEq | (string & {});
1417
+ /** filter state */
1418
+ state_neq_?: ListZonesRequestStateNeq | (string & {});
1419
+ /** filter primary name server equal */
1420
+ primaryNameServer_eq_?: string;
1421
+ /** filter primary name server like */
1422
+ primaryNameServer_like_?: string;
1423
+ /** filter reverse zone equal */
1424
+ isReverseZone_eq_?: boolean;
1425
+ /** filter active equal */
1426
+ active_eq_?: boolean;
1427
+ /** filter creation started greater with utc timestamp */
1428
+ creationStarted_gt_?: string;
1429
+ /** filter creation started lesser with utc timestamp */
1430
+ creationStarted_lt_?: string;
1431
+ /** filter creation started greater equal with utc timestamp */
1432
+ creationStarted_gte_?: string;
1433
+ /** filter creation started lesser equal with utc timestamp */
1434
+ creationStarted_lte_?: string;
1435
+ /** filter creation finished greater with utc timestamp */
1436
+ creationFinished_gt_?: string;
1437
+ /** filter creation finished lesser with utc timestamp */
1438
+ creationFinished_lt_?: string;
1439
+ /** filter creation finished greater equal with utc timestamp */
1440
+ creationFinished_gte_?: string;
1441
+ /** filter creation finished lesser equal with utc timestamp */
1442
+ creationFinished_lte_?: string;
1443
+ /** filter update started greater with utc timestamp */
1444
+ updateStarted_gt_?: string;
1445
+ /** filter update started lesser with utc timestamp */
1446
+ updateStarted_lt_?: string;
1447
+ /** filter update started greater equal with utc timestamp */
1448
+ updateStarted_gte_?: string;
1449
+ /** filter update started lesser equal with utc timestamp */
1450
+ updateStarted_lte_?: string;
1451
+ /** filter update finished greater with utc timestamp */
1452
+ updateFinished_gt_?: string;
1453
+ /** filter update finished lesser with utc timestamp */
1454
+ updateFinished_lt_?: string;
1455
+ /** filter update finished greater equal with utc timestamp */
1456
+ updateFinished_gte_?: string;
1457
+ /** filter update finished lesser equal with utc timestamp */
1458
+ updateFinished_lte_?: string;
1459
+ /** filter zones according to the zone label keys. */
1460
+ labelKey_eq_?: ListZonesRequestLabelKeyEqList;
1461
+ /** filter zones according to the zone label values. */
1462
+ labelValue_eq_?: ListZonesRequestLabelValueEqList;
1463
+ /** order by dns name */
1464
+ orderBy_dnsName_?: ListZonesRequestOrderByDnsName | (string & {});
1465
+ /** order by name */
1466
+ orderBy_name_?: ListZonesRequestOrderByName | (string & {});
1467
+ /** order by record count */
1468
+ orderBy_recordCount_?: ListZonesRequestOrderByRecordCount | (string & {});
1469
+ /** order by type */
1470
+ orderBy_type_?: ListZonesRequestOrderByType | (string & {});
1471
+ /** order by description */
1472
+ orderBy_description_?: ListZonesRequestOrderByDescription | (string & {});
1473
+ /** order by creationStarted */
1474
+ orderBy_creationStarted_?:
1475
+ | ListZonesRequestOrderByCreationStarted
1476
+ | (string & {});
1477
+ /** order by creationFinished */
1478
+ orderBy_creationFinished_?:
1479
+ | ListZonesRequestOrderByCreationFinished
1480
+ | (string & {});
1481
+ /** order by updateStarted */
1482
+ orderBy_updateStarted_?: ListZonesRequestOrderByUpdateStarted | (string & {});
1483
+ /** order by updateFinished */
1484
+ orderBy_updateFinished_?:
1485
+ | ListZonesRequestOrderByUpdateFinished
1486
+ | (string & {});
1487
+ }
1488
+ export const ListZonesRequest = /*@__PURE__*/ S.suspend(() =>
1489
+ S.Struct({
1490
+ projectId: S.String.pipe(T.Label()),
1491
+ page: S.optional(S.Number.pipe(T.Query())),
1492
+ pageSize: S.optional(S.Number.pipe(T.Query())),
1493
+ dnsName_eq_: S.optional(S.String.pipe(T.Query("dnsName[eq]"))),
1494
+ dnsName_like_: S.optional(S.String.pipe(T.Query("dnsName[like]"))),
1495
+ type_eq_: S.optional(ListZonesRequestTypeEq.pipe(T.Query("type[eq]"))),
1496
+ name_eq_: S.optional(S.String.pipe(T.Query("name[eq]"))),
1497
+ name_neq_: S.optional(S.String.pipe(T.Query("name[neq]"))),
1498
+ name_like_: S.optional(S.String.pipe(T.Query("name[like]"))),
1499
+ description_eq_: S.optional(S.String.pipe(T.Query("description[eq]"))),
1500
+ description_neq_: S.optional(S.String.pipe(T.Query("description[neq]"))),
1501
+ description_like_: S.optional(S.String.pipe(T.Query("description[like]"))),
1502
+ state_eq_: S.optional(ListZonesRequestStateEq.pipe(T.Query("state[eq]"))),
1503
+ state_neq_: S.optional(
1504
+ ListZonesRequestStateNeq.pipe(T.Query("state[neq]")),
1505
+ ),
1506
+ primaryNameServer_eq_: S.optional(
1507
+ S.String.pipe(T.Query("primaryNameServer[eq]")),
1508
+ ),
1509
+ primaryNameServer_like_: S.optional(
1510
+ S.String.pipe(T.Query("primaryNameServer[like]")),
1511
+ ),
1512
+ isReverseZone_eq_: S.optional(S.Boolean.pipe(T.Query("isReverseZone[eq]"))),
1513
+ active_eq_: S.optional(S.Boolean.pipe(T.Query("active[eq]"))),
1514
+ creationStarted_gt_: S.optional(
1515
+ S.String.pipe(T.Query("creationStarted[gt]")),
1516
+ ),
1517
+ creationStarted_lt_: S.optional(
1518
+ S.String.pipe(T.Query("creationStarted[lt]")),
1519
+ ),
1520
+ creationStarted_gte_: S.optional(
1521
+ S.String.pipe(T.Query("creationStarted[gte]")),
1522
+ ),
1523
+ creationStarted_lte_: S.optional(
1524
+ S.String.pipe(T.Query("creationStarted[lte]")),
1525
+ ),
1526
+ creationFinished_gt_: S.optional(
1527
+ S.String.pipe(T.Query("creationFinished[gt]")),
1528
+ ),
1529
+ creationFinished_lt_: S.optional(
1530
+ S.String.pipe(T.Query("creationFinished[lt]")),
1531
+ ),
1532
+ creationFinished_gte_: S.optional(
1533
+ S.String.pipe(T.Query("creationFinished[gte]")),
1534
+ ),
1535
+ creationFinished_lte_: S.optional(
1536
+ S.String.pipe(T.Query("creationFinished[lte]")),
1537
+ ),
1538
+ updateStarted_gt_: S.optional(S.String.pipe(T.Query("updateStarted[gt]"))),
1539
+ updateStarted_lt_: S.optional(S.String.pipe(T.Query("updateStarted[lt]"))),
1540
+ updateStarted_gte_: S.optional(
1541
+ S.String.pipe(T.Query("updateStarted[gte]")),
1542
+ ),
1543
+ updateStarted_lte_: S.optional(
1544
+ S.String.pipe(T.Query("updateStarted[lte]")),
1545
+ ),
1546
+ updateFinished_gt_: S.optional(
1547
+ S.String.pipe(T.Query("updateFinished[gt]")),
1548
+ ),
1549
+ updateFinished_lt_: S.optional(
1550
+ S.String.pipe(T.Query("updateFinished[lt]")),
1551
+ ),
1552
+ updateFinished_gte_: S.optional(
1553
+ S.String.pipe(T.Query("updateFinished[gte]")),
1554
+ ),
1555
+ updateFinished_lte_: S.optional(
1556
+ S.String.pipe(T.Query("updateFinished[lte]")),
1557
+ ),
1558
+ labelKey_eq_: S.optional(
1559
+ ListZonesRequestLabelKeyEqList.pipe(T.Query("labelKey[eq]")),
1560
+ ),
1561
+ labelValue_eq_: S.optional(
1562
+ ListZonesRequestLabelValueEqList.pipe(T.Query("labelValue[eq]")),
1563
+ ),
1564
+ orderBy_dnsName_: S.optional(
1565
+ ListZonesRequestOrderByDnsName.pipe(T.Query("orderBy[dnsName]")),
1566
+ ),
1567
+ orderBy_name_: S.optional(
1568
+ ListZonesRequestOrderByName.pipe(T.Query("orderBy[name]")),
1569
+ ),
1570
+ orderBy_recordCount_: S.optional(
1571
+ ListZonesRequestOrderByRecordCount.pipe(T.Query("orderBy[recordCount]")),
1572
+ ),
1573
+ orderBy_type_: S.optional(
1574
+ ListZonesRequestOrderByType.pipe(T.Query("orderBy[type]")),
1575
+ ),
1576
+ orderBy_description_: S.optional(
1577
+ ListZonesRequestOrderByDescription.pipe(T.Query("orderBy[description]")),
1578
+ ),
1579
+ orderBy_creationStarted_: S.optional(
1580
+ ListZonesRequestOrderByCreationStarted.pipe(
1581
+ T.Query("orderBy[creationStarted]"),
1582
+ ),
1583
+ ),
1584
+ orderBy_creationFinished_: S.optional(
1585
+ ListZonesRequestOrderByCreationFinished.pipe(
1586
+ T.Query("orderBy[creationFinished]"),
1587
+ ),
1588
+ ),
1589
+ orderBy_updateStarted_: S.optional(
1590
+ ListZonesRequestOrderByUpdateStarted.pipe(
1591
+ T.Query("orderBy[updateStarted]"),
1592
+ ),
1593
+ ),
1594
+ orderBy_updateFinished_: S.optional(
1595
+ ListZonesRequestOrderByUpdateFinished.pipe(
1596
+ T.Query("orderBy[updateFinished]"),
1597
+ ),
1598
+ ),
1599
+ }).pipe(
1600
+ T.Http({
1601
+ method: "GET",
1602
+ uri: "/v1/projects/{projectId}/zones",
1603
+ code: 200,
1604
+ baseUrl: "https://dns.api.stackit.cloud",
1605
+ }),
1606
+ ),
1607
+ ).annotate({
1608
+ identifier: "ListZonesRequest",
1609
+ }) as any as S.Schema<ListZonesRequest>;
1610
+
1611
+ export type ListZonesResponseZonesList = Array<Zone>;
1612
+ export const ListZonesResponseZonesList = /*@__PURE__*/ S.Array(
1613
+ Zone,
1614
+ ) as any as S.Schema<ListZonesResponseZonesList>;
1615
+
1616
+ /** ResponseZoneAll for filtered zones. */
1617
+ export interface ListZonesResponse {
1618
+ itemsPerPage: number;
1619
+ message?: string;
1620
+ totalItems: number;
1621
+ totalPages: number;
1622
+ zones: ListZonesResponseZonesList;
1623
+ }
1624
+ export const ListZonesResponse = /*@__PURE__*/ S.suspend(() =>
1625
+ S.Struct({
1626
+ itemsPerPage: S.Number,
1627
+ message: S.optional(S.String),
1628
+ totalItems: S.Number,
1629
+ totalPages: S.Number,
1630
+ zones: ListZonesResponseZonesList,
1631
+ }),
1632
+ ).annotate({
1633
+ identifier: "ListZonesResponse",
1634
+ }) as any as S.Schema<ListZonesResponse>;
1635
+
1636
+ export interface MoveZoneRequest {
1637
+ /** project id */
1638
+ projectId: string;
1639
+ /** Code to move the zone. It must be valid, not expired and belong */
1640
+ code: string;
1641
+ /** ZoneDnsName is the dns name of the zone to move */
1642
+ zoneDnsName: string;
1643
+ }
1644
+ export const MoveZoneRequest = /*@__PURE__*/ S.suspend(() =>
1645
+ S.Struct({
1646
+ projectId: S.String.pipe(T.Label()),
1647
+ code: S.String,
1648
+ zoneDnsName: S.String,
1649
+ }).pipe(
1650
+ T.Http({
1651
+ method: "POST",
1652
+ uri: "/v1/projects/{projectId}/move-zone",
1653
+ code: 200,
1654
+ baseUrl: "https://dns.api.stackit.cloud",
1655
+ }),
1656
+ ),
1657
+ ).annotate({
1658
+ identifier: "MoveZoneRequest",
1659
+ }) as any as S.Schema<MoveZoneRequest>;
1660
+
1661
+ export type PartialUpdateRecordRequestAction = "add" | "delete";
1662
+ export const PartialUpdateRecordRequestAction = /*@__PURE__*/ S.String;
1663
+
1664
+ /** records */
1665
+ export type PartialUpdateRecordRequestRecordsList = Array<RecordPayload>;
1666
+ export const PartialUpdateRecordRequestRecordsList = /*@__PURE__*/ S.Array(
1667
+ RecordPayload,
1668
+ ) as any as S.Schema<PartialUpdateRecordRequestRecordsList>;
1669
+
1670
+ export interface PartialUpdateRecordRequest {
1671
+ /** project id */
1672
+ projectId: string;
1673
+ /** zone id */
1674
+ zoneId: string;
1675
+ /** record set id */
1676
+ rrSetId: string;
1677
+ action: PartialUpdateRecordRequestAction | (string & {});
1678
+ /** records */
1679
+ records: PartialUpdateRecordRequestRecordsList;
1680
+ }
1681
+ export const PartialUpdateRecordRequest = /*@__PURE__*/ S.suspend(() =>
1682
+ S.Struct({
1683
+ projectId: S.String.pipe(T.Label()),
1684
+ zoneId: S.String.pipe(T.Label()),
1685
+ rrSetId: S.String.pipe(T.Label()),
1686
+ action: PartialUpdateRecordRequestAction,
1687
+ records: PartialUpdateRecordRequestRecordsList,
1688
+ }).pipe(
1689
+ T.Http({
1690
+ method: "PATCH",
1691
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}/records",
1692
+ code: 200,
1693
+ baseUrl: "https://dns.api.stackit.cloud",
1694
+ }),
1695
+ ),
1696
+ ).annotate({
1697
+ identifier: "PartialUpdateRecordRequest",
1698
+ }) as any as S.Schema<PartialUpdateRecordRequest>;
1699
+
1700
+ /** records */
1701
+ export type PartialUpdateRecordSetRequestRecordsList = Array<RecordPayload>;
1702
+ export const PartialUpdateRecordSetRequestRecordsList = /*@__PURE__*/ S.Array(
1703
+ RecordPayload,
1704
+ ) as any as S.Schema<PartialUpdateRecordSetRequestRecordsList>;
1705
+
1706
+ export interface PartialUpdateRecordSetRequest {
1707
+ /** project id */
1708
+ projectId: string;
1709
+ /** zone id */
1710
+ zoneId: string;
1711
+ /** record set id */
1712
+ rrSetId: string;
1713
+ /** user comment */
1714
+ comment?: string;
1715
+ /** rfc1035 Section 2.3.4 */
1716
+ name?: string;
1717
+ /** records */
1718
+ records?: PartialUpdateRecordSetRequestRecordsList;
1719
+ /** time to live */
1720
+ ttl?: number;
1721
+ }
1722
+ export const PartialUpdateRecordSetRequest = /*@__PURE__*/ S.suspend(() =>
1723
+ S.Struct({
1724
+ projectId: S.String.pipe(T.Label()),
1725
+ zoneId: S.String.pipe(T.Label()),
1726
+ rrSetId: S.String.pipe(T.Label()),
1727
+ comment: S.optional(S.String),
1728
+ name: S.optional(S.String),
1729
+ records: S.optional(PartialUpdateRecordSetRequestRecordsList),
1730
+ ttl: S.optional(S.Number),
1731
+ }).pipe(
1732
+ T.Http({
1733
+ method: "PATCH",
1734
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}",
1735
+ code: 200,
1736
+ baseUrl: "https://dns.api.stackit.cloud",
1737
+ }),
1738
+ ),
1739
+ ).annotate({
1740
+ identifier: "PartialUpdateRecordSetRequest",
1741
+ }) as any as S.Schema<PartialUpdateRecordSetRequest>;
1742
+
1743
+ /** primary name server for secondary zone */
1744
+ export type PartialUpdateZoneRequestPrimariesList = Array<string>;
1745
+ export const PartialUpdateZoneRequestPrimariesList = /*@__PURE__*/ S.Array(
1746
+ S.String,
1747
+ ) as any as S.Schema<PartialUpdateZoneRequestPrimariesList>;
1748
+
1749
+ export interface PartialUpdateZoneRequest {
1750
+ /** project id */
1751
+ projectId: string;
1752
+ /** zone id */
1753
+ zoneId: string;
1754
+ /** the access control list (note: this field currently has no effect and does not enforce any access restrictions on the DNS zone) */
1755
+ acl?: string;
1756
+ /** contact e-mail for the zone */
1757
+ contactEmail?: string;
1758
+ /** default time to live */
1759
+ defaultTTL?: number;
1760
+ /** description of the zone */
1761
+ description?: string;
1762
+ /** expire time */
1763
+ expireTime?: number;
1764
+ /** optional extensions */
1765
+ extensions?: ZoneExtensions;
1766
+ /** user given name */
1767
+ name?: string;
1768
+ /** negative caching */
1769
+ negativeCache?: number;
1770
+ /** primary name server for secondary zone */
1771
+ primaries?: PartialUpdateZoneRequestPrimariesList;
1772
+ /** refresh time */
1773
+ refreshTime?: number;
1774
+ /** retry time */
1775
+ retryTime?: number;
1776
+ }
1777
+ export const PartialUpdateZoneRequest = /*@__PURE__*/ S.suspend(() =>
1778
+ S.Struct({
1779
+ projectId: S.String.pipe(T.Label()),
1780
+ zoneId: S.String.pipe(T.Label()),
1781
+ acl: S.optional(S.String),
1782
+ contactEmail: S.optional(S.String),
1783
+ defaultTTL: S.optional(S.Number),
1784
+ description: S.optional(S.String),
1785
+ expireTime: S.optional(S.Number),
1786
+ extensions: S.optional(ZoneExtensions),
1787
+ name: S.optional(S.String),
1788
+ negativeCache: S.optional(S.Number),
1789
+ primaries: S.optional(PartialUpdateZoneRequestPrimariesList),
1790
+ refreshTime: S.optional(S.Number),
1791
+ retryTime: S.optional(S.Number),
1792
+ }).pipe(
1793
+ T.Http({
1794
+ method: "PATCH",
1795
+ uri: "/v1/projects/{projectId}/zones/{zoneId}",
1796
+ code: 200,
1797
+ baseUrl: "https://dns.api.stackit.cloud",
1798
+ }),
1799
+ ),
1800
+ ).annotate({
1801
+ identifier: "PartialUpdateZoneRequest",
1802
+ }) as any as S.Schema<PartialUpdateZoneRequest>;
1803
+
1804
+ export interface RestoreRecordSetRequest {
1805
+ /** project id */
1806
+ projectId: string;
1807
+ /** zone id */
1808
+ zoneId: string;
1809
+ /** record set id */
1810
+ rrSetId: string;
1811
+ }
1812
+ export const RestoreRecordSetRequest = /*@__PURE__*/ S.suspend(() =>
1813
+ S.Struct({
1814
+ projectId: S.String.pipe(T.Label()),
1815
+ zoneId: S.String.pipe(T.Label()),
1816
+ rrSetId: S.String.pipe(T.Label()),
1817
+ }).pipe(
1818
+ T.Http({
1819
+ method: "POST",
1820
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}/restores",
1821
+ code: 200,
1822
+ baseUrl: "https://dns.api.stackit.cloud",
1823
+ }),
1824
+ ),
1825
+ ).annotate({
1826
+ identifier: "RestoreRecordSetRequest",
1827
+ }) as any as S.Schema<RestoreRecordSetRequest>;
1828
+
1829
+ export interface RestoreZoneRequest {
1830
+ /** project id */
1831
+ projectId: string;
1832
+ /** zone id */
1833
+ zoneId: string;
1834
+ }
1835
+ export const RestoreZoneRequest = /*@__PURE__*/ S.suspend(() =>
1836
+ S.Struct({
1837
+ projectId: S.String.pipe(T.Label()),
1838
+ zoneId: S.String.pipe(T.Label()),
1839
+ }).pipe(
1840
+ T.Http({
1841
+ method: "POST",
1842
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/restores",
1843
+ code: 200,
1844
+ baseUrl: "https://dns.api.stackit.cloud",
1845
+ }),
1846
+ ),
1847
+ ).annotate({
1848
+ identifier: "RestoreZoneRequest",
1849
+ }) as any as S.Schema<RestoreZoneRequest>;
1850
+
1851
+ export interface ValidateMoveCodeRequest {
1852
+ /** project id */
1853
+ projectId: string;
1854
+ /** zone id */
1855
+ zoneId: string;
1856
+ /** code that should be validated. It validates if it is valid, not expired and belongs to the zone. */
1857
+ code: string;
1858
+ }
1859
+ export const ValidateMoveCodeRequest = /*@__PURE__*/ S.suspend(() =>
1860
+ S.Struct({
1861
+ projectId: S.String.pipe(T.Label()),
1862
+ zoneId: S.String.pipe(T.Label()),
1863
+ code: S.String,
1864
+ }).pipe(
1865
+ T.Http({
1866
+ method: "POST",
1867
+ uri: "/v1/projects/{projectId}/zones/{zoneId}/move-code-validation",
1868
+ code: 200,
1869
+ baseUrl: "https://dns.api.stackit.cloud",
1870
+ }),
1871
+ ),
1872
+ ).annotate({
1873
+ identifier: "ValidateMoveCodeRequest",
1874
+ }) as any as S.Schema<ValidateMoveCodeRequest>;
1875
+
1876
+ export type CloneZoneError = BadRequest | NotFound | Conflict | StackitOpError;
1877
+ /** Clone an existing zone with all record sets to a new zone with a different name Clone an existing zone with all record sets to a new zone with a different name */
1878
+ export const cloneZone: API.OperationMethod<
1879
+ CloneZoneRequest,
1880
+ ZoneResponse,
1881
+ CloneZoneError,
1882
+ StackitOpContext
1883
+ > = /*@__PURE__*/ API.make(() => ({
1884
+ input: CloneZoneRequest,
1885
+ output: ZoneResponse,
1886
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1887
+ protocol: StackitProtocol,
1888
+ retry: Retry.Retry,
1889
+ }));
1890
+
1891
+ export type CreateLabelError = BadRequest | NotFound | StackitOpError;
1892
+ /** Create or update label Create or update label */
1893
+ export const createLabel: API.OperationMethod<
1894
+ CreateLabelRequest,
1895
+ CreateLabelResponse,
1896
+ CreateLabelError,
1897
+ StackitOpContext
1898
+ > = /*@__PURE__*/ API.make(() => ({
1899
+ input: CreateLabelRequest,
1900
+ output: CreateLabelResponse,
1901
+ errors: [BadRequest, NotFound, UnknownStackitError],
1902
+ protocol: StackitProtocol,
1903
+ retry: Retry.Retry,
1904
+ }));
1905
+
1906
+ export type CreateMoveCodeError = BadRequest | Conflict | StackitOpError;
1907
+ /** request a move code to move zone to another project move zone from one project to another */
1908
+ export const createMoveCode: API.OperationMethod<
1909
+ CreateMoveCodeRequest,
1910
+ MoveCodeResponse,
1911
+ CreateMoveCodeError,
1912
+ StackitOpContext
1913
+ > = /*@__PURE__*/ API.make(() => ({
1914
+ input: CreateMoveCodeRequest,
1915
+ output: MoveCodeResponse,
1916
+ errors: [BadRequest, Conflict, UnknownStackitError],
1917
+ protocol: StackitProtocol,
1918
+ retry: Retry.Retry,
1919
+ }));
1920
+
1921
+ export type CreateRecordSetError =
1922
+ | BadRequest
1923
+ | NotFound
1924
+ | Conflict
1925
+ | StackitOpError;
1926
+ /** Post record set Post record set */
1927
+ export const createRecordSet: API.OperationMethod<
1928
+ CreateRecordSetRequest,
1929
+ RecordSetResponse,
1930
+ CreateRecordSetError,
1931
+ StackitOpContext
1932
+ > = /*@__PURE__*/ API.make(() => ({
1933
+ input: CreateRecordSetRequest,
1934
+ output: RecordSetResponse,
1935
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1936
+ protocol: StackitProtocol,
1937
+ retry: Retry.Retry,
1938
+ }));
1939
+
1940
+ export type CreateZoneError = BadRequest | NotFound | Conflict | StackitOpError;
1941
+ /** Post create a new zone Post zone create a new zone */
1942
+ export const createZone: API.OperationMethod<
1943
+ CreateZoneRequest,
1944
+ ZoneResponse,
1945
+ CreateZoneError,
1946
+ StackitOpContext
1947
+ > = /*@__PURE__*/ API.make(() => ({
1948
+ input: CreateZoneRequest,
1949
+ output: ZoneResponse,
1950
+ errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
1951
+ protocol: StackitProtocol,
1952
+ retry: Retry.Retry,
1953
+ }));
1954
+
1955
+ export type DeleteLabelError =
1956
+ | BadRequest
1957
+ | Forbidden
1958
+ | NotFound
1959
+ | StackitOpError;
1960
+ /** Delete a label Delete a label */
1961
+ export const deleteLabel: API.OperationMethod<
1962
+ DeleteLabelRequest,
1963
+ DeleteLabelResponse,
1964
+ DeleteLabelError,
1965
+ StackitOpContext
1966
+ > = /*@__PURE__*/ API.make(() => ({
1967
+ input: DeleteLabelRequest,
1968
+ output: DeleteLabelResponse,
1969
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
1970
+ protocol: StackitProtocol,
1971
+ retry: Retry.Retry,
1972
+ }));
1973
+
1974
+ export type DeleteMoveCodeError = BadRequest | NotFound | StackitOpError;
1975
+ /** delete/invalidate a move code delete/invalidate a move code */
1976
+ export const deleteMoveCode: API.OperationMethod<
1977
+ DeleteMoveCodeRequest,
1978
+ Message,
1979
+ DeleteMoveCodeError,
1980
+ StackitOpContext
1981
+ > = /*@__PURE__*/ API.make(() => ({
1982
+ input: DeleteMoveCodeRequest,
1983
+ output: Message,
1984
+ errors: [BadRequest, NotFound, UnknownStackitError],
1985
+ protocol: StackitProtocol,
1986
+ retry: Retry.Retry,
1987
+ }));
1988
+
1989
+ export type DeleteRecordSetError = BadRequest | NotFound | StackitOpError;
1990
+ /** Delete a record set Delete a record set */
1991
+ export const deleteRecordSet: API.OperationMethod<
1992
+ DeleteRecordSetRequest,
1993
+ Message,
1994
+ DeleteRecordSetError,
1995
+ StackitOpContext
1996
+ > = /*@__PURE__*/ API.make(() => ({
1997
+ input: DeleteRecordSetRequest,
1998
+ output: Message,
1999
+ errors: [BadRequest, NotFound, UnknownStackitError],
2000
+ protocol: StackitProtocol,
2001
+ retry: Retry.Retry,
2002
+ }));
2003
+
2004
+ export type DeleteZoneError = BadRequest | NotFound | StackitOpError;
2005
+ /** Delete a zone Delete a zone */
2006
+ export const deleteZone: API.OperationMethod<
2007
+ DeleteZoneRequest,
2008
+ Message,
2009
+ DeleteZoneError,
2010
+ StackitOpContext
2011
+ > = /*@__PURE__*/ API.make(() => ({
2012
+ input: DeleteZoneRequest,
2013
+ output: Message,
2014
+ errors: [BadRequest, NotFound, UnknownStackitError],
2015
+ protocol: StackitProtocol,
2016
+ retry: Retry.Retry,
2017
+ }));
2018
+
2019
+ export type ExportRecordSetsError = BadRequest | Forbidden | StackitOpError;
2020
+ /** Export all records in a single zone Export Zone */
2021
+ export const exportRecordSets: API.OperationMethod<
2022
+ ExportRecordSetsRequest,
2023
+ ZoneDataExchange,
2024
+ ExportRecordSetsError,
2025
+ StackitOpContext
2026
+ > = /*@__PURE__*/ API.make(() => ({
2027
+ input: ExportRecordSetsRequest,
2028
+ output: ZoneDataExchange,
2029
+ errors: [BadRequest, Forbidden, UnknownStackitError],
2030
+ protocol: StackitProtocol,
2031
+ retry: Retry.Retry,
2032
+ }));
2033
+
2034
+ export type GetRecordSetError = BadRequest | NotFound | StackitOpError;
2035
+ /** Get a single rrset Get rrset */
2036
+ export const getRecordSet: API.OperationMethod<
2037
+ GetRecordSetRequest,
2038
+ RecordSetResponse,
2039
+ GetRecordSetError,
2040
+ StackitOpContext
2041
+ > = /*@__PURE__*/ API.make(() => ({
2042
+ input: GetRecordSetRequest,
2043
+ output: RecordSetResponse,
2044
+ errors: [BadRequest, NotFound, UnknownStackitError],
2045
+ protocol: StackitProtocol,
2046
+ retry: Retry.Retry,
2047
+ }));
2048
+
2049
+ export type GetZoneError = BadRequest | NotFound | StackitOpError;
2050
+ /** Get a single zone Get zone */
2051
+ export const getZone: API.OperationMethod<
2052
+ GetZoneRequest,
2053
+ ZoneResponse,
2054
+ GetZoneError,
2055
+ StackitOpContext
2056
+ > = /*@__PURE__*/ API.make(() => ({
2057
+ input: GetZoneRequest,
2058
+ output: ZoneResponse,
2059
+ errors: [BadRequest, NotFound, UnknownStackitError],
2060
+ protocol: StackitProtocol,
2061
+ retry: Retry.Retry,
2062
+ }));
2063
+
2064
+ export type GetZone2Error = BadRequest | StackitOpError;
2065
+ /** Queue secondary zone for a zone transfer request. The zone transfer will usually be performed within a few seconds, and will be tried only once by randomly choosing one of the configured primary name servers. If that single attempt fails, no further attempt will be performed. The zone will be transferred to our inbound name server regardless of its serial, but the internal zone distribution is only reliable if the zone's serial on the customer's primary name server is higher than on the STACKIT name server. <br>NOTE: As said above, this endpoint is not a reliable way to decrease a zone's serial. To guarantee consistent zones over all STACKIT location, the zone's serial MUST always be increased on zone changes. */
2066
+ export const getZone2: API.OperationMethod<
2067
+ GetZoneRequest2,
2068
+ Message,
2069
+ GetZone2Error,
2070
+ StackitOpContext
2071
+ > = /*@__PURE__*/ API.make(() => ({
2072
+ input: GetZoneRequest2,
2073
+ output: Message,
2074
+ errors: [BadRequest, UnknownStackitError],
2075
+ protocol: StackitProtocol,
2076
+ retry: Retry.Retry,
2077
+ }));
2078
+
2079
+ export type ImportRecordSetsError = BadRequest | Forbidden | StackitOpError;
2080
+ /** Imports a zone Imports a zone and overwrites/deletes/inserts all desired records */
2081
+ export const importRecordSets: API.OperationMethod<
2082
+ ImportRecordSetsRequest,
2083
+ ImportRecordSetsResponse,
2084
+ ImportRecordSetsError,
2085
+ StackitOpContext
2086
+ > = /*@__PURE__*/ API.make(() => ({
2087
+ input: ImportRecordSetsRequest,
2088
+ output: ImportRecordSetsResponse,
2089
+ errors: [BadRequest, Forbidden, UnknownStackitError],
2090
+ protocol: StackitProtocol,
2091
+ retry: Retry.Retry,
2092
+ }));
2093
+
2094
+ export type ListLabelsError =
2095
+ | BadRequest
2096
+ | Forbidden
2097
+ | NotFound
2098
+ | StackitOpError;
2099
+ /** Get all labels All Labels */
2100
+ export const listLabels: API.OperationMethod<
2101
+ ListLabelsRequest,
2102
+ ListLabelsResponse,
2103
+ ListLabelsError,
2104
+ StackitOpContext
2105
+ > = /*@__PURE__*/ API.make(() => ({
2106
+ input: ListLabelsRequest,
2107
+ output: ListLabelsResponse,
2108
+ errors: [BadRequest, Forbidden, NotFound, UnknownStackitError],
2109
+ protocol: StackitProtocol,
2110
+ retry: Retry.Retry,
2111
+ }));
2112
+
2113
+ export type ListRecordSetsError = BadRequest | NotFound | StackitOpError;
2114
+ /** All get selected RRSets All RRSet */
2115
+ export const listRecordSets: API.PaginatedOperationMethod<
2116
+ ListRecordSetsRequest,
2117
+ ListRecordSetsResponse,
2118
+ ListRecordSetsError,
2119
+ StackitOpContext,
2120
+ RecordSet
2121
+ > = /*@__PURE__*/ API.makePaginated(
2122
+ () => ({
2123
+ input: ListRecordSetsRequest,
2124
+ output: ListRecordSetsResponse,
2125
+ errors: [BadRequest, NotFound, UnknownStackitError],
2126
+ protocol: StackitProtocol,
2127
+ retry: Retry.Retry,
2128
+ pagination: {
2129
+ mode: "page",
2130
+ inputToken: "page",
2131
+ outputToken: "totalPages",
2132
+ items: "rrSets",
2133
+ pageSize: "pageSize",
2134
+ } as const,
2135
+ }),
2136
+ paginateByTotalPages,
2137
+ ) as any;
2138
+
2139
+ export type ListZonesError = BadRequest | NotFound | StackitOpError;
2140
+ /** All get selected zones All zone */
2141
+ export const listZones: API.PaginatedOperationMethod<
2142
+ ListZonesRequest,
2143
+ ListZonesResponse,
2144
+ ListZonesError,
2145
+ StackitOpContext,
2146
+ Zone
2147
+ > = /*@__PURE__*/ API.makePaginated(
2148
+ () => ({
2149
+ input: ListZonesRequest,
2150
+ output: ListZonesResponse,
2151
+ errors: [BadRequest, NotFound, UnknownStackitError],
2152
+ protocol: StackitProtocol,
2153
+ retry: Retry.Retry,
2154
+ pagination: {
2155
+ mode: "page",
2156
+ inputToken: "page",
2157
+ outputToken: "totalPages",
2158
+ items: "zones",
2159
+ pageSize: "pageSize",
2160
+ } as const,
2161
+ }),
2162
+ paginateByTotalPages,
2163
+ ) as any;
2164
+
2165
+ export type MoveZoneError = BadRequest | NotFound | StackitOpError;
2166
+ /** move zone from one project to another move zone from one project to another */
2167
+ export const moveZone: API.OperationMethod<
2168
+ MoveZoneRequest,
2169
+ Message,
2170
+ MoveZoneError,
2171
+ StackitOpContext
2172
+ > = /*@__PURE__*/ API.make(() => ({
2173
+ input: MoveZoneRequest,
2174
+ output: Message,
2175
+ errors: [BadRequest, NotFound, UnknownStackitError],
2176
+ protocol: StackitProtocol,
2177
+ retry: Retry.Retry,
2178
+ }));
2179
+
2180
+ export type PartialUpdateRecordError = BadRequest | NotFound | StackitOpError;
2181
+ /** PatchRecords updates a record in a rrset PatchRecords rrset updates a record in a rrset */
2182
+ export const partialUpdateRecord: API.OperationMethod<
2183
+ PartialUpdateRecordRequest,
2184
+ Message,
2185
+ PartialUpdateRecordError,
2186
+ StackitOpContext
2187
+ > = /*@__PURE__*/ API.make(() => ({
2188
+ input: PartialUpdateRecordRequest,
2189
+ output: Message,
2190
+ errors: [BadRequest, NotFound, UnknownStackitError],
2191
+ protocol: StackitProtocol,
2192
+ retry: Retry.Retry,
2193
+ }));
2194
+
2195
+ export type PartialUpdateRecordSetError =
2196
+ | BadRequest
2197
+ | NotFound
2198
+ | StackitOpError;
2199
+ /** Patch updates a record set Patch record set */
2200
+ export const partialUpdateRecordSet: API.OperationMethod<
2201
+ PartialUpdateRecordSetRequest,
2202
+ Message,
2203
+ PartialUpdateRecordSetError,
2204
+ StackitOpContext
2205
+ > = /*@__PURE__*/ API.make(() => ({
2206
+ input: PartialUpdateRecordSetRequest,
2207
+ output: Message,
2208
+ errors: [BadRequest, NotFound, UnknownStackitError],
2209
+ protocol: StackitProtocol,
2210
+ retry: Retry.Retry,
2211
+ }));
2212
+
2213
+ export type PartialUpdateZoneError = BadRequest | NotFound | StackitOpError;
2214
+ /** Patch update an existing zone Patch update an existing zone */
2215
+ export const partialUpdateZone: API.OperationMethod<
2216
+ PartialUpdateZoneRequest,
2217
+ ZoneResponse,
2218
+ PartialUpdateZoneError,
2219
+ StackitOpContext
2220
+ > = /*@__PURE__*/ API.make(() => ({
2221
+ input: PartialUpdateZoneRequest,
2222
+ output: ZoneResponse,
2223
+ errors: [BadRequest, NotFound, UnknownStackitError],
2224
+ protocol: StackitProtocol,
2225
+ retry: Retry.Retry,
2226
+ }));
2227
+
2228
+ export type RestoreRecordSetError = BadRequest | NotFound | StackitOpError;
2229
+ /** Restore record set Restore record set */
2230
+ export const restoreRecordSet: API.OperationMethod<
2231
+ RestoreRecordSetRequest,
2232
+ Message,
2233
+ RestoreRecordSetError,
2234
+ StackitOpContext
2235
+ > = /*@__PURE__*/ API.make(() => ({
2236
+ input: RestoreRecordSetRequest,
2237
+ output: Message,
2238
+ errors: [BadRequest, NotFound, UnknownStackitError],
2239
+ protocol: StackitProtocol,
2240
+ retry: Retry.Retry,
2241
+ }));
2242
+
2243
+ export type RestoreZoneError = BadRequest | StackitOpError;
2244
+ /** Restore an inactive zone Restore an inactive zone */
2245
+ export const restoreZone: API.OperationMethod<
2246
+ RestoreZoneRequest,
2247
+ Message,
2248
+ RestoreZoneError,
2249
+ StackitOpContext
2250
+ > = /*@__PURE__*/ API.make(() => ({
2251
+ input: RestoreZoneRequest,
2252
+ output: Message,
2253
+ errors: [BadRequest, UnknownStackitError],
2254
+ protocol: StackitProtocol,
2255
+ retry: Retry.Retry,
2256
+ }));
2257
+
2258
+ export type ValidateMoveCodeError = BadRequest | StackitOpError;
2259
+ /** validate the move code is still valid for the zone validate the move code is still valid for the zone */
2260
+ export const validateMoveCode: API.OperationMethod<
2261
+ ValidateMoveCodeRequest,
2262
+ Message,
2263
+ ValidateMoveCodeError,
2264
+ StackitOpContext
2265
+ > = /*@__PURE__*/ API.make(() => ({
2266
+ input: ValidateMoveCodeRequest,
2267
+ output: Message,
2268
+ errors: [BadRequest, UnknownStackitError],
2269
+ protocol: StackitProtocol,
2270
+ retry: Retry.Retry,
2271
+ }));