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

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