@distilled.cloud/stackit 1.0.0-rc.14 → 1.0.0-rc.16

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