@distilled.cloud/stackit 0.0.0-stage → 1.0.0-rc.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +33 -2
- package/lib/credentials.d.ts +29 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +49 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +36 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +26 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +30 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +30 -0
- package/lib/index.js.map +1 -0
- package/lib/pagination.d.ts +9 -0
- package/lib/pagination.d.ts.map +1 -0
- package/lib/pagination.js +45 -0
- package/lib/pagination.js.map +1 -0
- package/lib/protocol.d.ts +32 -0
- package/lib/protocol.d.ts.map +1 -0
- package/lib/protocol.js +147 -0
- package/lib/protocol.js.map +1 -0
- package/lib/protocol.test.d.ts +2 -0
- package/lib/protocol.test.d.ts.map +1 -0
- package/lib/protocol.test.js +181 -0
- package/lib/protocol.test.js.map +1 -0
- package/lib/retry.d.ts +31 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +31 -0
- package/lib/retry.js.map +1 -0
- package/lib/services/alb.d.ts +603 -0
- package/lib/services/alb.d.ts.map +1 -0
- package/lib/services/alb.js +513 -0
- package/lib/services/alb.js.map +1 -0
- package/lib/services/alb_waf.d.ts +526 -0
- package/lib/services/alb_waf.d.ts.map +1 -0
- package/lib/services/alb_waf.js +521 -0
- package/lib/services/alb_waf.js.map +1 -0
- package/lib/services/authorization.d.ts +251 -0
- package/lib/services/authorization.d.ts.map +1 -0
- package/lib/services/authorization.js +323 -0
- package/lib/services/authorization.js.map +1 -0
- package/lib/services/automation.d.ts +321 -0
- package/lib/services/automation.d.ts.map +1 -0
- package/lib/services/automation.js +363 -0
- package/lib/services/automation.js.map +1 -0
- package/lib/services/cdn.d.ts +1239 -0
- package/lib/services/cdn.d.ts.map +1 -0
- package/lib/services/cdn.js +906 -0
- package/lib/services/cdn.js.map +1 -0
- package/lib/services/certificates.d.ts +201 -0
- package/lib/services/certificates.d.ts.map +1 -0
- package/lib/services/certificates.js +179 -0
- package/lib/services/certificates.js.map +1 -0
- package/lib/services/cost.d.ts +222 -0
- package/lib/services/cost.d.ts.map +1 -0
- package/lib/services/cost.js +177 -0
- package/lib/services/cost.js.map +1 -0
- package/lib/services/dns.d.ts +842 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +726 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/dremio.d.ts +358 -0
- package/lib/services/dremio.d.ts.map +1 -0
- package/lib/services/dremio.js +317 -0
- package/lib/services/dremio.js.map +1 -0
- package/lib/services/edge.d.ts +312 -0
- package/lib/services/edge.d.ts.map +1 -0
- package/lib/services/edge.js +357 -0
- package/lib/services/edge.js.map +1 -0
- package/lib/services/functions.d.ts +409 -0
- package/lib/services/functions.d.ts.map +1 -0
- package/lib/services/functions.js +399 -0
- package/lib/services/functions.js.map +1 -0
- package/lib/services/git.d.ts +497 -0
- package/lib/services/git.d.ts.map +1 -0
- package/lib/services/git.js +520 -0
- package/lib/services/git.js.map +1 -0
- package/lib/services/iaas.d.ts +2986 -0
- package/lib/services/iaas.d.ts.map +1 -0
- package/lib/services/iaas.js +3543 -0
- package/lib/services/iaas.js.map +1 -0
- package/lib/services/index.d.ts +51 -0
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/index.js +52 -0
- package/lib/services/index.js.map +1 -0
- package/lib/services/intake.d.ts +555 -0
- package/lib/services/intake.d.ts.map +1 -0
- package/lib/services/intake.js +475 -0
- package/lib/services/intake.js.map +1 -0
- package/lib/services/kms.d.ts +654 -0
- package/lib/services/kms.d.ts.map +1 -0
- package/lib/services/kms.js +663 -0
- package/lib/services/kms.js.map +1 -0
- package/lib/services/lb_ip_lists.d.ts +160 -0
- package/lib/services/lb_ip_lists.d.ts.map +1 -0
- package/lib/services/lb_ip_lists.js +154 -0
- package/lib/services/lb_ip_lists.js.map +1 -0
- package/lib/services/load_balancer.d.ts +563 -0
- package/lib/services/load_balancer.d.ts.map +1 -0
- package/lib/services/load_balancer.js +497 -0
- package/lib/services/load_balancer.js.map +1 -0
- package/lib/services/logme.d.ts +516 -0
- package/lib/services/logme.d.ts.map +1 -0
- package/lib/services/logme.js +574 -0
- package/lib/services/logme.js.map +1 -0
- package/lib/services/logs.d.ts +436 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +475 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/mariadb.d.ts +479 -0
- package/lib/services/mariadb.d.ts.map +1 -0
- package/lib/services/mariadb.js +551 -0
- package/lib/services/mariadb.js.map +1 -0
- package/lib/services/model_experiments.d.ts +306 -0
- package/lib/services/model_experiments.d.ts.map +1 -0
- package/lib/services/model_experiments.js +336 -0
- package/lib/services/model_experiments.js.map +1 -0
- package/lib/services/model_serving.d.ts +289 -0
- package/lib/services/model_serving.d.ts.map +1 -0
- package/lib/services/model_serving.js +287 -0
- package/lib/services/model_serving.js.map +1 -0
- package/lib/services/mongodb_flex.d.ts +826 -0
- package/lib/services/mongodb_flex.d.ts.map +1 -0
- package/lib/services/mongodb_flex.js +803 -0
- package/lib/services/mongodb_flex.js.map +1 -0
- package/lib/services/object_storage.d.ts +470 -0
- package/lib/services/object_storage.d.ts.map +1 -0
- package/lib/services/object_storage.js +540 -0
- package/lib/services/object_storage.js.map +1 -0
- package/lib/services/observability.d.ts +2750 -0
- package/lib/services/observability.d.ts.map +1 -0
- package/lib/services/observability.js +3158 -0
- package/lib/services/observability.js.map +1 -0
- package/lib/services/opensearch.d.ts +505 -0
- package/lib/services/opensearch.d.ts.map +1 -0
- package/lib/services/opensearch.js +563 -0
- package/lib/services/opensearch.js.map +1 -0
- package/lib/services/pim.d.ts +997 -0
- package/lib/services/pim.d.ts.map +1 -0
- package/lib/services/pim.js +736 -0
- package/lib/services/pim.js.map +1 -0
- package/lib/services/postgres_flex.d.ts +854 -0
- package/lib/services/postgres_flex.d.ts.map +1 -0
- package/lib/services/postgres_flex.js +853 -0
- package/lib/services/postgres_flex.js.map +1 -0
- package/lib/services/pubsub.d.ts +489 -0
- package/lib/services/pubsub.d.ts.map +1 -0
- package/lib/services/pubsub.js +519 -0
- package/lib/services/pubsub.js.map +1 -0
- package/lib/services/rabbitmq.d.ts +523 -0
- package/lib/services/rabbitmq.d.ts.map +1 -0
- package/lib/services/rabbitmq.js +574 -0
- package/lib/services/rabbitmq.js.map +1 -0
- package/lib/services/registry.d.ts +212 -0
- package/lib/services/registry.d.ts.map +1 -0
- package/lib/services/registry.js +198 -0
- package/lib/services/registry.js.map +1 -0
- package/lib/services/resource_manager.d.ts +458 -0
- package/lib/services/resource_manager.d.ts.map +1 -0
- package/lib/services/resource_manager.js +473 -0
- package/lib/services/resource_manager.js.map +1 -0
- package/lib/services/run_command.d.ts +175 -0
- package/lib/services/run_command.d.ts.map +1 -0
- package/lib/services/run_command.js +185 -0
- package/lib/services/run_command.js.map +1 -0
- package/lib/services/sca.d.ts +553 -0
- package/lib/services/sca.d.ts.map +1 -0
- package/lib/services/sca.js +445 -0
- package/lib/services/sca.js.map +1 -0
- package/lib/services/scf.d.ts +498 -0
- package/lib/services/scf.d.ts.map +1 -0
- package/lib/services/scf.js +670 -0
- package/lib/services/scf.js.map +1 -0
- package/lib/services/secrets_manager.d.ts +505 -0
- package/lib/services/secrets_manager.d.ts.map +1 -0
- package/lib/services/secrets_manager.js +613 -0
- package/lib/services/secrets_manager.js.map +1 -0
- package/lib/services/server_backup.d.ts +380 -0
- package/lib/services/server_backup.d.ts.map +1 -0
- package/lib/services/server_backup.js +454 -0
- package/lib/services/server_backup.js.map +1 -0
- package/lib/services/server_update.d.ts +292 -0
- package/lib/services/server_update.d.ts.map +1 -0
- package/lib/services/server_update.js +352 -0
- package/lib/services/server_update.js.map +1 -0
- package/lib/services/service_account.d.ts +465 -0
- package/lib/services/service_account.d.ts.map +1 -0
- package/lib/services/service_account.js +506 -0
- package/lib/services/service_account.js.map +1 -0
- package/lib/services/service_enablement.d.ts +149 -0
- package/lib/services/service_enablement.d.ts.map +1 -0
- package/lib/services/service_enablement.js +157 -0
- package/lib/services/service_enablement.js.map +1 -0
- package/lib/services/sfs.d.ts +721 -0
- package/lib/services/sfs.d.ts.map +1 -0
- package/lib/services/sfs.js +790 -0
- package/lib/services/sfs.js.map +1 -0
- package/lib/services/ske.d.ts +562 -0
- package/lib/services/ske.d.ts.map +1 -0
- package/lib/services/ske.js +558 -0
- package/lib/services/ske.js.map +1 -0
- package/lib/services/sqlserverflex.d.ts +956 -0
- package/lib/services/sqlserverflex.d.ts.map +1 -0
- package/lib/services/sqlserverflex.js +936 -0
- package/lib/services/sqlserverflex.js.map +1 -0
- package/lib/services/stackit_marketplace.d.ts +288 -0
- package/lib/services/stackit_marketplace.d.ts.map +1 -0
- package/lib/services/stackit_marketplace.js +379 -0
- package/lib/services/stackit_marketplace.js.map +1 -0
- package/lib/services/telemetry_link.d.ts +443 -0
- package/lib/services/telemetry_link.d.ts.map +1 -0
- package/lib/services/telemetry_link.js +532 -0
- package/lib/services/telemetry_link.js.map +1 -0
- package/lib/services/telemetry_router.d.ts +493 -0
- package/lib/services/telemetry_router.d.ts.map +1 -0
- package/lib/services/telemetry_router.js +484 -0
- package/lib/services/telemetry_router.js.map +1 -0
- package/lib/services/ufw.d.ts +295 -0
- package/lib/services/ufw.d.ts.map +1 -0
- package/lib/services/ufw.js +279 -0
- package/lib/services/ufw.js.map +1 -0
- package/lib/services/valkey.d.ts +505 -0
- package/lib/services/valkey.d.ts.map +1 -0
- package/lib/services/valkey.js +567 -0
- package/lib/services/valkey.js.map +1 -0
- package/lib/services/vpn.d.ts +1024 -0
- package/lib/services/vpn.d.ts.map +1 -0
- package/lib/services/vpn.js +931 -0
- package/lib/services/vpn.js.map +1 -0
- package/lib/services/workflows.d.ts +600 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +508 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/traits.d.ts +24 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +15 -0
- package/lib/traits.js.map +1 -0
- package/package.json +85 -3
- package/src/credentials.ts +84 -0
- package/src/errors.ts +50 -0
- package/src/index.ts +34 -0
- package/src/pagination.ts +57 -0
- package/src/protocol.test.ts +304 -0
- package/src/protocol.ts +225 -0
- package/src/retry.ts +47 -0
- package/src/services/alb.ts +1326 -0
- package/src/services/alb_waf.ts +1288 -0
- package/src/services/authorization.ts +704 -0
- package/src/services/automation.ts +796 -0
- package/src/services/cdn.ts +2576 -0
- package/src/services/certificates.ts +418 -0
- package/src/services/cost.ts +449 -0
- package/src/services/dns.ts +1936 -0
- package/src/services/dremio.ts +753 -0
- package/src/services/edge.ts +780 -0
- package/src/services/functions.ts +957 -0
- package/src/services/git.ts +1194 -0
- package/src/services/iaas.ts +7878 -0
- package/src/services/index.ts +51 -0
- package/src/services/intake.ts +1166 -0
- package/src/services/kms.ts +1537 -0
- package/src/services/lb_ip_lists.ts +342 -0
- package/src/services/load_balancer.ts +1266 -0
- package/src/services/logme.ts +1284 -0
- package/src/services/logs.ts +1049 -0
- package/src/services/mariadb.ts +1212 -0
- package/src/services/model_experiments.ts +741 -0
- package/src/services/model_serving.ts +654 -0
- package/src/services/mongodb_flex.ts +1932 -0
- package/src/services/object_storage.ts +1195 -0
- package/src/services/observability.ts +7364 -0
- package/src/services/opensearch.ts +1265 -0
- package/src/services/pim.ts +1985 -0
- package/src/services/postgres_flex.ts +2080 -0
- package/src/services/pubsub.ts +1193 -0
- package/src/services/rabbitmq.ts +1310 -0
- package/src/services/registry.ts +446 -0
- package/src/services/resource_manager.ts +1072 -0
- package/src/services/run_command.ts +413 -0
- package/src/services/sca.ts +1187 -0
- package/src/services/scf.ts +1396 -0
- package/src/services/secrets_manager.ts +1317 -0
- package/src/services/server_backup.ts +983 -0
- package/src/services/server_update.ts +738 -0
- package/src/services/service_account.ts +1121 -0
- package/src/services/service_enablement.ts +330 -0
- package/src/services/sfs.ts +1831 -0
- package/src/services/ske.ts +1386 -0
- package/src/services/sqlserverflex.ts +2307 -0
- package/src/services/stackit_marketplace.ts +787 -0
- package/src/services/telemetry_link.ts +1166 -0
- package/src/services/telemetry_router.ts +1110 -0
- package/src/services/ufw.ts +654 -0
- package/src/services/valkey.ts +1266 -0
- package/src/services/vpn.ts +2365 -0
- package/src/services/workflows.ts +1249 -0
- package/src/traits.ts +60 -0
|
@@ -0,0 +1,726 @@
|
|
|
1
|
+
import * as API from "@distilled.cloud/core/api";
|
|
2
|
+
import * as C from "@distilled.cloud/core/category";
|
|
3
|
+
// AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-stackit). Do not edit.
|
|
4
|
+
import * as S from "@distilled.cloud/core/schema";
|
|
5
|
+
import { UnknownStackitError } from "../errors.js";
|
|
6
|
+
import { paginateByTotalPages } from "../pagination.js";
|
|
7
|
+
import { StackitProtocol } from "../protocol.js";
|
|
8
|
+
import * as Retry from "../retry.js";
|
|
9
|
+
import * as T from "../traits.js";
|
|
10
|
+
export class BadRequest extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
11
|
+
/*@__PURE__*/ S.TaggedError()("BadRequest", {
|
|
12
|
+
code: S.Number,
|
|
13
|
+
message: S.String,
|
|
14
|
+
}).pipe(C.withBadRequestError), [{ status: 400 }]) {
|
|
15
|
+
}
|
|
16
|
+
export class Conflict extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
17
|
+
/*@__PURE__*/ S.TaggedError()("Conflict", {
|
|
18
|
+
code: S.Number,
|
|
19
|
+
message: S.String,
|
|
20
|
+
}).pipe(C.withConflictError), [{ status: 409 }]) {
|
|
21
|
+
}
|
|
22
|
+
export class Forbidden extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
23
|
+
/*@__PURE__*/ S.TaggedError()("Forbidden", {
|
|
24
|
+
code: S.Number,
|
|
25
|
+
message: S.String,
|
|
26
|
+
}).pipe(C.withAuthError), [{ status: 403 }]) {
|
|
27
|
+
}
|
|
28
|
+
export class NotFound extends /*@__PURE__*/ /*@__PURE__*/ T.applyErrorMatchers(
|
|
29
|
+
/*@__PURE__*/ S.TaggedError()("NotFound", {
|
|
30
|
+
code: S.Number,
|
|
31
|
+
message: S.String,
|
|
32
|
+
}).pipe(C.withBadRequestError), [{ status: 404 }]) {
|
|
33
|
+
}
|
|
34
|
+
export const CloneZoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
35
|
+
projectId: S.String.pipe(T.Label()),
|
|
36
|
+
zoneId: S.String.pipe(T.Label()),
|
|
37
|
+
adjustRecords: S.optional(S.Boolean),
|
|
38
|
+
description: S.optional(S.String),
|
|
39
|
+
dnsName: S.String,
|
|
40
|
+
name: S.optional(S.String),
|
|
41
|
+
}).pipe(T.Http({
|
|
42
|
+
method: "POST",
|
|
43
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/clone",
|
|
44
|
+
code: 200,
|
|
45
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
46
|
+
}))).annotate({ identifier: "CloneZoneRequest" });
|
|
47
|
+
export const DomainObservabilityExtensionState = S.String;
|
|
48
|
+
export const DomainObservabilityExtension = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
49
|
+
observabilityInstanceId: S.String,
|
|
50
|
+
state: S.optional(DomainObservabilityExtensionState),
|
|
51
|
+
})).annotate({
|
|
52
|
+
identifier: "DomainObservabilityExtension",
|
|
53
|
+
});
|
|
54
|
+
export const DomainExtensions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
55
|
+
observabilityExtension: S.optional(DomainObservabilityExtension),
|
|
56
|
+
})).annotate({ identifier: "DomainExtensions" });
|
|
57
|
+
export const Label = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
58
|
+
key: S.String,
|
|
59
|
+
value: S.optional(S.String),
|
|
60
|
+
})).annotate({ identifier: "Label" });
|
|
61
|
+
export const ZoneLabelsList = /*@__PURE__*/ S.Array(Label);
|
|
62
|
+
export const ZoneLabelsMapMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
63
|
+
export const ZonePrimariesList = /*@__PURE__*/ S.Array(S.String);
|
|
64
|
+
export const ZoneState = S.String;
|
|
65
|
+
export const ZoneType = S.String;
|
|
66
|
+
export const ZoneVisibility = S.String;
|
|
67
|
+
export const Zone = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
68
|
+
acl: S.String,
|
|
69
|
+
active: S.optional(S.Boolean),
|
|
70
|
+
contactEmail: S.optional(S.String),
|
|
71
|
+
creationFinished: S.String,
|
|
72
|
+
creationStarted: S.String,
|
|
73
|
+
defaultTTL: S.Number,
|
|
74
|
+
description: S.optional(S.String),
|
|
75
|
+
dnsName: S.String,
|
|
76
|
+
error: S.optional(S.String),
|
|
77
|
+
expireTime: S.Number,
|
|
78
|
+
extensions: S.optional(DomainExtensions),
|
|
79
|
+
id: S.String,
|
|
80
|
+
isReverseZone: S.optional(S.Boolean),
|
|
81
|
+
labels: S.optional(ZoneLabelsList),
|
|
82
|
+
labelsMap: S.optional(ZoneLabelsMapMap),
|
|
83
|
+
name: S.String,
|
|
84
|
+
negativeCache: S.Number,
|
|
85
|
+
primaries: S.optional(ZonePrimariesList),
|
|
86
|
+
primaryNameServer: S.String,
|
|
87
|
+
recordCount: S.optional(S.Number),
|
|
88
|
+
refreshTime: S.Number,
|
|
89
|
+
retryTime: S.Number,
|
|
90
|
+
serialNumber: S.Number,
|
|
91
|
+
state: ZoneState,
|
|
92
|
+
type: ZoneType,
|
|
93
|
+
updateFinished: S.String,
|
|
94
|
+
updateStarted: S.String,
|
|
95
|
+
visibility: ZoneVisibility,
|
|
96
|
+
})).annotate({ identifier: "Zone" });
|
|
97
|
+
export const ZoneResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
98
|
+
message: S.optional(S.String),
|
|
99
|
+
zone: Zone,
|
|
100
|
+
})).annotate({ identifier: "ZoneResponse" });
|
|
101
|
+
export const CreateMoveCodeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
102
|
+
projectId: S.String.pipe(T.Label()),
|
|
103
|
+
zoneId: S.String.pipe(T.Label()),
|
|
104
|
+
ttl: S.optional(S.Number),
|
|
105
|
+
}).pipe(T.Http({
|
|
106
|
+
method: "POST",
|
|
107
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/move-code",
|
|
108
|
+
code: 200,
|
|
109
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
110
|
+
}))).annotate({ identifier: "CreateMoveCodeRequest" });
|
|
111
|
+
export const MoveCodeResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
112
|
+
code: S.String,
|
|
113
|
+
expiresAt: S.String,
|
|
114
|
+
message: S.optional(S.String),
|
|
115
|
+
})).annotate({ identifier: "MoveCodeResponse" });
|
|
116
|
+
export const RecordPayload = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
117
|
+
content: S.String,
|
|
118
|
+
})).annotate({ identifier: "RecordPayload" });
|
|
119
|
+
export const CreateRecordSetRequestRecordsList = /*@__PURE__*/ S.Array(RecordPayload);
|
|
120
|
+
export const CreateRecordSetRequestType = S.String;
|
|
121
|
+
export const CreateRecordSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
122
|
+
projectId: S.String.pipe(T.Label()),
|
|
123
|
+
zoneId: S.String.pipe(T.Label()),
|
|
124
|
+
comment: S.optional(S.String),
|
|
125
|
+
name: S.String,
|
|
126
|
+
records: CreateRecordSetRequestRecordsList,
|
|
127
|
+
ttl: S.optional(S.Number),
|
|
128
|
+
type: CreateRecordSetRequestType,
|
|
129
|
+
}).pipe(T.Http({
|
|
130
|
+
method: "POST",
|
|
131
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets",
|
|
132
|
+
code: 200,
|
|
133
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
134
|
+
}))).annotate({ identifier: "CreateRecordSetRequest" });
|
|
135
|
+
export const Record = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
136
|
+
content: S.String,
|
|
137
|
+
id: S.String,
|
|
138
|
+
})).annotate({ identifier: "Record" });
|
|
139
|
+
export const RecordSetRecordsList = /*@__PURE__*/ S.Array(Record);
|
|
140
|
+
export const RecordSetState = S.String;
|
|
141
|
+
export const RecordSetType = S.String;
|
|
142
|
+
export const RecordSet = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
143
|
+
active: S.optional(S.Boolean),
|
|
144
|
+
comment: S.optional(S.String),
|
|
145
|
+
creationFinished: S.String,
|
|
146
|
+
creationStarted: S.String,
|
|
147
|
+
error: S.optional(S.String),
|
|
148
|
+
id: S.String,
|
|
149
|
+
name: S.String,
|
|
150
|
+
records: RecordSetRecordsList,
|
|
151
|
+
state: RecordSetState,
|
|
152
|
+
ttl: S.Number,
|
|
153
|
+
type: RecordSetType,
|
|
154
|
+
updateFinished: S.String,
|
|
155
|
+
updateStarted: S.String,
|
|
156
|
+
})).annotate({ identifier: "RecordSet" });
|
|
157
|
+
export const RecordSetResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
158
|
+
message: S.optional(S.String),
|
|
159
|
+
rrset: RecordSet,
|
|
160
|
+
})).annotate({ identifier: "RecordSetResponse" });
|
|
161
|
+
export const ZoneObservabilityExtension = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
162
|
+
observabilityInstanceId: S.String,
|
|
163
|
+
})).annotate({
|
|
164
|
+
identifier: "ZoneObservabilityExtension",
|
|
165
|
+
});
|
|
166
|
+
export const ZoneExtensions = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
167
|
+
observabilityExtension: S.optional(ZoneObservabilityExtension),
|
|
168
|
+
})).annotate({ identifier: "ZoneExtensions" });
|
|
169
|
+
export const CreateZoneRequestLabelsMapMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
170
|
+
export const CreateZoneRequestPrimariesList = /*@__PURE__*/ S.Array(S.String);
|
|
171
|
+
export const CreateZoneRequestType = S.String;
|
|
172
|
+
export const CreateZoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
173
|
+
projectId: S.String.pipe(T.Label()),
|
|
174
|
+
acl: S.optional(S.String),
|
|
175
|
+
contactEmail: S.optional(S.String),
|
|
176
|
+
defaultTTL: S.optional(S.Number),
|
|
177
|
+
description: S.optional(S.String),
|
|
178
|
+
dnsName: S.String,
|
|
179
|
+
expireTime: S.optional(S.Number),
|
|
180
|
+
extensions: S.optional(ZoneExtensions),
|
|
181
|
+
isReverseZone: S.optional(S.Boolean),
|
|
182
|
+
labelsMap: S.optional(CreateZoneRequestLabelsMapMap),
|
|
183
|
+
name: S.String,
|
|
184
|
+
negativeCache: S.optional(S.Number),
|
|
185
|
+
primaries: S.optional(CreateZoneRequestPrimariesList),
|
|
186
|
+
refreshTime: S.optional(S.Number),
|
|
187
|
+
retryTime: S.optional(S.Number),
|
|
188
|
+
type: S.optional(CreateZoneRequestType),
|
|
189
|
+
}).pipe(T.Http({
|
|
190
|
+
method: "POST",
|
|
191
|
+
uri: "/v1/projects/{projectId}/zones",
|
|
192
|
+
code: 200,
|
|
193
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
194
|
+
}))).annotate({ identifier: "CreateZoneRequest" });
|
|
195
|
+
export const DeleteMoveCodeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
196
|
+
projectId: S.String.pipe(T.Label()),
|
|
197
|
+
zoneId: S.String.pipe(T.Label()),
|
|
198
|
+
}).pipe(T.Http({
|
|
199
|
+
method: "DELETE",
|
|
200
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/move-code",
|
|
201
|
+
code: 200,
|
|
202
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
203
|
+
}))).annotate({ identifier: "DeleteMoveCodeRequest" });
|
|
204
|
+
export const Message = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
205
|
+
message: S.optional(S.String),
|
|
206
|
+
})).annotate({ identifier: "Message" });
|
|
207
|
+
export const DeleteRecordSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
208
|
+
projectId: S.String.pipe(T.Label()),
|
|
209
|
+
zoneId: S.String.pipe(T.Label()),
|
|
210
|
+
rrSetId: S.String.pipe(T.Label()),
|
|
211
|
+
}).pipe(T.Http({
|
|
212
|
+
method: "DELETE",
|
|
213
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}",
|
|
214
|
+
code: 200,
|
|
215
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
216
|
+
}))).annotate({ identifier: "DeleteRecordSetRequest" });
|
|
217
|
+
export const DeleteZoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
218
|
+
projectId: S.String.pipe(T.Label()),
|
|
219
|
+
zoneId: S.String.pipe(T.Label()),
|
|
220
|
+
}).pipe(T.Http({
|
|
221
|
+
method: "DELETE",
|
|
222
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}",
|
|
223
|
+
code: 200,
|
|
224
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
225
|
+
}))).annotate({ identifier: "DeleteZoneRequest" });
|
|
226
|
+
export const ExportRecordSetsRequestFormat = S.String;
|
|
227
|
+
export const ExportRecordSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
228
|
+
projectId: S.String.pipe(T.Label()),
|
|
229
|
+
zoneId: S.String.pipe(T.Label()),
|
|
230
|
+
exportAsFQDN: S.optional(S.Boolean),
|
|
231
|
+
format: S.optional(ExportRecordSetsRequestFormat),
|
|
232
|
+
}).pipe(T.Http({
|
|
233
|
+
method: "POST",
|
|
234
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/export",
|
|
235
|
+
code: 200,
|
|
236
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
237
|
+
}))).annotate({ identifier: "ExportRecordSetsRequest" });
|
|
238
|
+
export const RecordDataExchangeContentList = /*@__PURE__*/ S.Array(S.String);
|
|
239
|
+
export const RecordDataExchange = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
240
|
+
comment: S.optional(S.String),
|
|
241
|
+
content: S.optional(RecordDataExchangeContentList),
|
|
242
|
+
name: S.optional(S.String),
|
|
243
|
+
ttl: S.optional(S.Number),
|
|
244
|
+
type: S.optional(S.String),
|
|
245
|
+
})).annotate({ identifier: "RecordDataExchange" });
|
|
246
|
+
export const ZoneDataExchangeRrSetsList = /*@__PURE__*/ S.Array(RecordDataExchange);
|
|
247
|
+
export const ZoneDataExchange = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
248
|
+
rrSets: S.optional(ZoneDataExchangeRrSetsList),
|
|
249
|
+
})).annotate({ identifier: "ZoneDataExchange" });
|
|
250
|
+
export const GetRecordSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
251
|
+
projectId: S.String.pipe(T.Label()),
|
|
252
|
+
zoneId: S.String.pipe(T.Label()),
|
|
253
|
+
rrSetId: S.String.pipe(T.Label()),
|
|
254
|
+
}).pipe(T.Http({
|
|
255
|
+
method: "GET",
|
|
256
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}",
|
|
257
|
+
code: 200,
|
|
258
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
259
|
+
}))).annotate({ identifier: "GetRecordSetRequest" });
|
|
260
|
+
export const GetZoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
261
|
+
projectId: S.String.pipe(T.Label()),
|
|
262
|
+
zoneId: S.String.pipe(T.Label()),
|
|
263
|
+
}).pipe(T.Http({
|
|
264
|
+
method: "GET",
|
|
265
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}",
|
|
266
|
+
code: 200,
|
|
267
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
268
|
+
}))).annotate({ identifier: "GetZoneRequest" });
|
|
269
|
+
export const GetZoneRequest2 = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
270
|
+
projectId: S.String.pipe(T.Label()),
|
|
271
|
+
zoneId: S.String.pipe(T.Label()),
|
|
272
|
+
}).pipe(T.Http({
|
|
273
|
+
method: "POST",
|
|
274
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/retrieve",
|
|
275
|
+
code: 200,
|
|
276
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
277
|
+
}))).annotate({ identifier: "GetZoneRequest2" });
|
|
278
|
+
export const ImportRecordSetsRequestFormat = S.String;
|
|
279
|
+
export const ImportRecordSetsRequestImportType = S.String;
|
|
280
|
+
export const ZoneModelsImportRecordModelContentList = /*@__PURE__*/ S.Array(S.String);
|
|
281
|
+
export const ZoneModelsImportRecordModel = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
282
|
+
comment: S.optional(S.String),
|
|
283
|
+
content: S.optional(ZoneModelsImportRecordModelContentList),
|
|
284
|
+
name: S.optional(S.String),
|
|
285
|
+
ttl: S.optional(S.Number),
|
|
286
|
+
type: S.optional(S.String),
|
|
287
|
+
})).annotate({
|
|
288
|
+
identifier: "ZoneModelsImportRecordModel",
|
|
289
|
+
});
|
|
290
|
+
export const ImportRecordSetsRequestRrSetsList = /*@__PURE__*/ S.Array(ZoneModelsImportRecordModel);
|
|
291
|
+
export const ImportRecordSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
292
|
+
projectId: S.String.pipe(T.Label()),
|
|
293
|
+
zoneId: S.String.pipe(T.Label()),
|
|
294
|
+
format: S.optional(ImportRecordSetsRequestFormat.pipe(T.Query())),
|
|
295
|
+
importType: S.optional(ImportRecordSetsRequestImportType.pipe(T.Query())),
|
|
296
|
+
rrSets: S.optional(ImportRecordSetsRequestRrSetsList),
|
|
297
|
+
}).pipe(T.Http({
|
|
298
|
+
method: "POST",
|
|
299
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/import",
|
|
300
|
+
code: 200,
|
|
301
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
302
|
+
}))).annotate({ identifier: "ImportRecordSetsRequest" });
|
|
303
|
+
export const ImportSummary = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
304
|
+
createdRRSets: S.optional(S.Number),
|
|
305
|
+
createdRecords: S.optional(S.Number),
|
|
306
|
+
deletedRRSets: S.optional(S.Number),
|
|
307
|
+
deletedRecords: S.optional(S.Number),
|
|
308
|
+
updatedRRSets: S.optional(S.Number),
|
|
309
|
+
updatedRecords: S.optional(S.Number),
|
|
310
|
+
})).annotate({ identifier: "ImportSummary" });
|
|
311
|
+
export const ImportRecordSetsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
312
|
+
message: S.optional(S.String),
|
|
313
|
+
summary: ImportSummary,
|
|
314
|
+
})).annotate({ identifier: "ImportRecordSetsResponse" });
|
|
315
|
+
export const ListRecordSetsRequestTypeEq = S.String;
|
|
316
|
+
export const ListRecordSetsRequestStateEq = S.String;
|
|
317
|
+
export const ListRecordSetsRequestStateNeq = S.String;
|
|
318
|
+
export const ListRecordSetsRequestOrderByName = S.String;
|
|
319
|
+
export const ListRecordSetsRequestOrderByCreationStarted = S.String;
|
|
320
|
+
export const ListRecordSetsRequestOrderByCreationFinished = S.String;
|
|
321
|
+
export const ListRecordSetsRequestOrderByUpdateStarted = S.String;
|
|
322
|
+
export const ListRecordSetsRequestOrderByUpdateFinished = S.String;
|
|
323
|
+
export const ListRecordSetsRequestOrderByType = S.String;
|
|
324
|
+
export const ListRecordSetsRequestOrderByState = S.String;
|
|
325
|
+
export const ListRecordSetsRequestOrderByRecordCount = S.String;
|
|
326
|
+
export const ListRecordSetsRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
327
|
+
projectId: S.String.pipe(T.Label()),
|
|
328
|
+
zoneId: S.String.pipe(T.Label()),
|
|
329
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
330
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
331
|
+
name_eq_: S.optional(S.String.pipe(T.Query("name[eq]"))),
|
|
332
|
+
name_like_: S.optional(S.String.pipe(T.Query("name[like]"))),
|
|
333
|
+
type_eq_: S.optional(ListRecordSetsRequestTypeEq.pipe(T.Query("type[eq]"))),
|
|
334
|
+
state_eq_: S.optional(ListRecordSetsRequestStateEq.pipe(T.Query("state[eq]"))),
|
|
335
|
+
state_neq_: S.optional(ListRecordSetsRequestStateNeq.pipe(T.Query("state[neq]"))),
|
|
336
|
+
active_eq_: S.optional(S.Boolean.pipe(T.Query("active[eq]"))),
|
|
337
|
+
creationStarted_gt_: S.optional(S.String.pipe(T.Query("creationStarted[gt]"))),
|
|
338
|
+
creationStarted_lt_: S.optional(S.String.pipe(T.Query("creationStarted[lt]"))),
|
|
339
|
+
creationStarted_gte_: S.optional(S.String.pipe(T.Query("creationStarted[gte]"))),
|
|
340
|
+
creationStarted_lte_: S.optional(S.String.pipe(T.Query("creationStarted[lte]"))),
|
|
341
|
+
creationFinished_gt_: S.optional(S.String.pipe(T.Query("creationFinished[gt]"))),
|
|
342
|
+
creationFinished_lt_: S.optional(S.String.pipe(T.Query("creationFinished[lt]"))),
|
|
343
|
+
creationFinished_gte_: S.optional(S.String.pipe(T.Query("creationFinished[gte]"))),
|
|
344
|
+
creationFinished_lte_: S.optional(S.String.pipe(T.Query("creationFinished[lte]"))),
|
|
345
|
+
updateStarted_gt_: S.optional(S.String.pipe(T.Query("updateStarted[gt]"))),
|
|
346
|
+
updateStarted_lt_: S.optional(S.String.pipe(T.Query("updateStarted[lt]"))),
|
|
347
|
+
updateStarted_gte_: S.optional(S.String.pipe(T.Query("updateStarted[gte]"))),
|
|
348
|
+
updateStarted_lte_: S.optional(S.String.pipe(T.Query("updateStarted[lte]"))),
|
|
349
|
+
updateFinished_gt_: S.optional(S.String.pipe(T.Query("updateFinished[gt]"))),
|
|
350
|
+
updateFinished_lt_: S.optional(S.String.pipe(T.Query("updateFinished[lt]"))),
|
|
351
|
+
updateFinished_gte_: S.optional(S.String.pipe(T.Query("updateFinished[gte]"))),
|
|
352
|
+
updateFinished_lte_: S.optional(S.String.pipe(T.Query("updateFinished[lte]"))),
|
|
353
|
+
orderBy_name_: S.optional(ListRecordSetsRequestOrderByName.pipe(T.Query("orderBy[name]"))),
|
|
354
|
+
orderBy_creationStarted_: S.optional(ListRecordSetsRequestOrderByCreationStarted.pipe(T.Query("orderBy[creationStarted]"))),
|
|
355
|
+
orderBy_creationFinished_: S.optional(ListRecordSetsRequestOrderByCreationFinished.pipe(T.Query("orderBy[creationFinished]"))),
|
|
356
|
+
orderBy_updateStarted_: S.optional(ListRecordSetsRequestOrderByUpdateStarted.pipe(T.Query("orderBy[updateStarted]"))),
|
|
357
|
+
orderBy_updateFinished_: S.optional(ListRecordSetsRequestOrderByUpdateFinished.pipe(T.Query("orderBy[updateFinished]"))),
|
|
358
|
+
orderBy_type_: S.optional(ListRecordSetsRequestOrderByType.pipe(T.Query("orderBy[type]"))),
|
|
359
|
+
orderBy_state_: S.optional(ListRecordSetsRequestOrderByState.pipe(T.Query("orderBy[state]"))),
|
|
360
|
+
orderBy_recordCount_: S.optional(ListRecordSetsRequestOrderByRecordCount.pipe(T.Query("orderBy[recordCount]"))),
|
|
361
|
+
}).pipe(T.Http({
|
|
362
|
+
method: "GET",
|
|
363
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets",
|
|
364
|
+
code: 200,
|
|
365
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
366
|
+
}))).annotate({ identifier: "ListRecordSetsRequest" });
|
|
367
|
+
export const ListRecordSetsResponseRrSetsList = /*@__PURE__*/ S.Array(RecordSet);
|
|
368
|
+
export const ListRecordSetsResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
369
|
+
itemsPerPage: S.Number,
|
|
370
|
+
message: S.optional(S.String),
|
|
371
|
+
rrSets: ListRecordSetsResponseRrSetsList,
|
|
372
|
+
totalItems: S.Number,
|
|
373
|
+
totalPages: S.Number,
|
|
374
|
+
})).annotate({ identifier: "ListRecordSetsResponse" });
|
|
375
|
+
export const ListZonesRequestTypeEq = S.String;
|
|
376
|
+
export const ListZonesRequestStateEq = S.String;
|
|
377
|
+
export const ListZonesRequestStateNeq = S.String;
|
|
378
|
+
export const ListZonesRequestLabelKeyEqList = /*@__PURE__*/ S.Array(S.String);
|
|
379
|
+
export const ListZonesRequestLabelValueEqList = /*@__PURE__*/ S.Array(S.String);
|
|
380
|
+
export const ListZonesRequestOrderByDnsName = S.String;
|
|
381
|
+
export const ListZonesRequestOrderByName = S.String;
|
|
382
|
+
export const ListZonesRequestOrderByRecordCount = S.String;
|
|
383
|
+
export const ListZonesRequestOrderByType = S.String;
|
|
384
|
+
export const ListZonesRequestOrderByDescription = S.String;
|
|
385
|
+
export const ListZonesRequestOrderByCreationStarted = S.String;
|
|
386
|
+
export const ListZonesRequestOrderByCreationFinished = S.String;
|
|
387
|
+
export const ListZonesRequestOrderByUpdateStarted = S.String;
|
|
388
|
+
export const ListZonesRequestOrderByUpdateFinished = S.String;
|
|
389
|
+
export const ListZonesRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
390
|
+
projectId: S.String.pipe(T.Label()),
|
|
391
|
+
page: S.optional(S.Number.pipe(T.Query())),
|
|
392
|
+
pageSize: S.optional(S.Number.pipe(T.Query())),
|
|
393
|
+
dnsName_eq_: S.optional(S.String.pipe(T.Query("dnsName[eq]"))),
|
|
394
|
+
dnsName_like_: S.optional(S.String.pipe(T.Query("dnsName[like]"))),
|
|
395
|
+
type_eq_: S.optional(ListZonesRequestTypeEq.pipe(T.Query("type[eq]"))),
|
|
396
|
+
name_eq_: S.optional(S.String.pipe(T.Query("name[eq]"))),
|
|
397
|
+
name_neq_: S.optional(S.String.pipe(T.Query("name[neq]"))),
|
|
398
|
+
name_like_: S.optional(S.String.pipe(T.Query("name[like]"))),
|
|
399
|
+
description_eq_: S.optional(S.String.pipe(T.Query("description[eq]"))),
|
|
400
|
+
description_neq_: S.optional(S.String.pipe(T.Query("description[neq]"))),
|
|
401
|
+
description_like_: S.optional(S.String.pipe(T.Query("description[like]"))),
|
|
402
|
+
state_eq_: S.optional(ListZonesRequestStateEq.pipe(T.Query("state[eq]"))),
|
|
403
|
+
state_neq_: S.optional(ListZonesRequestStateNeq.pipe(T.Query("state[neq]"))),
|
|
404
|
+
primaryNameServer_eq_: S.optional(S.String.pipe(T.Query("primaryNameServer[eq]"))),
|
|
405
|
+
primaryNameServer_like_: S.optional(S.String.pipe(T.Query("primaryNameServer[like]"))),
|
|
406
|
+
isReverseZone_eq_: S.optional(S.Boolean.pipe(T.Query("isReverseZone[eq]"))),
|
|
407
|
+
active_eq_: S.optional(S.Boolean.pipe(T.Query("active[eq]"))),
|
|
408
|
+
creationStarted_gt_: S.optional(S.String.pipe(T.Query("creationStarted[gt]"))),
|
|
409
|
+
creationStarted_lt_: S.optional(S.String.pipe(T.Query("creationStarted[lt]"))),
|
|
410
|
+
creationStarted_gte_: S.optional(S.String.pipe(T.Query("creationStarted[gte]"))),
|
|
411
|
+
creationStarted_lte_: S.optional(S.String.pipe(T.Query("creationStarted[lte]"))),
|
|
412
|
+
creationFinished_gt_: S.optional(S.String.pipe(T.Query("creationFinished[gt]"))),
|
|
413
|
+
creationFinished_lt_: S.optional(S.String.pipe(T.Query("creationFinished[lt]"))),
|
|
414
|
+
creationFinished_gte_: S.optional(S.String.pipe(T.Query("creationFinished[gte]"))),
|
|
415
|
+
creationFinished_lte_: S.optional(S.String.pipe(T.Query("creationFinished[lte]"))),
|
|
416
|
+
updateStarted_gt_: S.optional(S.String.pipe(T.Query("updateStarted[gt]"))),
|
|
417
|
+
updateStarted_lt_: S.optional(S.String.pipe(T.Query("updateStarted[lt]"))),
|
|
418
|
+
updateStarted_gte_: S.optional(S.String.pipe(T.Query("updateStarted[gte]"))),
|
|
419
|
+
updateStarted_lte_: S.optional(S.String.pipe(T.Query("updateStarted[lte]"))),
|
|
420
|
+
updateFinished_gt_: S.optional(S.String.pipe(T.Query("updateFinished[gt]"))),
|
|
421
|
+
updateFinished_lt_: S.optional(S.String.pipe(T.Query("updateFinished[lt]"))),
|
|
422
|
+
updateFinished_gte_: S.optional(S.String.pipe(T.Query("updateFinished[gte]"))),
|
|
423
|
+
updateFinished_lte_: S.optional(S.String.pipe(T.Query("updateFinished[lte]"))),
|
|
424
|
+
labelKey_eq_: S.optional(ListZonesRequestLabelKeyEqList.pipe(T.Query("labelKey[eq]"))),
|
|
425
|
+
labelValue_eq_: S.optional(ListZonesRequestLabelValueEqList.pipe(T.Query("labelValue[eq]"))),
|
|
426
|
+
orderBy_dnsName_: S.optional(ListZonesRequestOrderByDnsName.pipe(T.Query("orderBy[dnsName]"))),
|
|
427
|
+
orderBy_name_: S.optional(ListZonesRequestOrderByName.pipe(T.Query("orderBy[name]"))),
|
|
428
|
+
orderBy_recordCount_: S.optional(ListZonesRequestOrderByRecordCount.pipe(T.Query("orderBy[recordCount]"))),
|
|
429
|
+
orderBy_type_: S.optional(ListZonesRequestOrderByType.pipe(T.Query("orderBy[type]"))),
|
|
430
|
+
orderBy_description_: S.optional(ListZonesRequestOrderByDescription.pipe(T.Query("orderBy[description]"))),
|
|
431
|
+
orderBy_creationStarted_: S.optional(ListZonesRequestOrderByCreationStarted.pipe(T.Query("orderBy[creationStarted]"))),
|
|
432
|
+
orderBy_creationFinished_: S.optional(ListZonesRequestOrderByCreationFinished.pipe(T.Query("orderBy[creationFinished]"))),
|
|
433
|
+
orderBy_updateStarted_: S.optional(ListZonesRequestOrderByUpdateStarted.pipe(T.Query("orderBy[updateStarted]"))),
|
|
434
|
+
orderBy_updateFinished_: S.optional(ListZonesRequestOrderByUpdateFinished.pipe(T.Query("orderBy[updateFinished]"))),
|
|
435
|
+
}).pipe(T.Http({
|
|
436
|
+
method: "GET",
|
|
437
|
+
uri: "/v1/projects/{projectId}/zones",
|
|
438
|
+
code: 200,
|
|
439
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
440
|
+
}))).annotate({ identifier: "ListZonesRequest" });
|
|
441
|
+
export const ListZonesResponseZonesList = /*@__PURE__*/ S.Array(Zone);
|
|
442
|
+
export const ListZonesResponse = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
443
|
+
itemsPerPage: S.Number,
|
|
444
|
+
message: S.optional(S.String),
|
|
445
|
+
totalItems: S.Number,
|
|
446
|
+
totalPages: S.Number,
|
|
447
|
+
zones: ListZonesResponseZonesList,
|
|
448
|
+
})).annotate({ identifier: "ListZonesResponse" });
|
|
449
|
+
export const MoveZoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
450
|
+
projectId: S.String.pipe(T.Label()),
|
|
451
|
+
code: S.String,
|
|
452
|
+
zoneDnsName: S.String,
|
|
453
|
+
}).pipe(T.Http({
|
|
454
|
+
method: "POST",
|
|
455
|
+
uri: "/v1/projects/{projectId}/move-zone",
|
|
456
|
+
code: 200,
|
|
457
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
458
|
+
}))).annotate({ identifier: "MoveZoneRequest" });
|
|
459
|
+
export const PartialUpdateRecordRequestAction = S.String;
|
|
460
|
+
export const PartialUpdateRecordRequestRecordsList = /*@__PURE__*/ S.Array(RecordPayload);
|
|
461
|
+
export const PartialUpdateRecordRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
462
|
+
projectId: S.String.pipe(T.Label()),
|
|
463
|
+
zoneId: S.String.pipe(T.Label()),
|
|
464
|
+
rrSetId: S.String.pipe(T.Label()),
|
|
465
|
+
action: PartialUpdateRecordRequestAction,
|
|
466
|
+
records: PartialUpdateRecordRequestRecordsList,
|
|
467
|
+
}).pipe(T.Http({
|
|
468
|
+
method: "PATCH",
|
|
469
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}/records",
|
|
470
|
+
code: 200,
|
|
471
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
472
|
+
}))).annotate({
|
|
473
|
+
identifier: "PartialUpdateRecordRequest",
|
|
474
|
+
});
|
|
475
|
+
export const PartialUpdateRecordSetRequestRecordsList = /*@__PURE__*/ S.Array(RecordPayload);
|
|
476
|
+
export const PartialUpdateRecordSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
477
|
+
projectId: S.String.pipe(T.Label()),
|
|
478
|
+
zoneId: S.String.pipe(T.Label()),
|
|
479
|
+
rrSetId: S.String.pipe(T.Label()),
|
|
480
|
+
comment: S.optional(S.String),
|
|
481
|
+
name: S.optional(S.String),
|
|
482
|
+
records: S.optional(PartialUpdateRecordSetRequestRecordsList),
|
|
483
|
+
ttl: S.optional(S.Number),
|
|
484
|
+
}).pipe(T.Http({
|
|
485
|
+
method: "PATCH",
|
|
486
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}",
|
|
487
|
+
code: 200,
|
|
488
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
489
|
+
}))).annotate({
|
|
490
|
+
identifier: "PartialUpdateRecordSetRequest",
|
|
491
|
+
});
|
|
492
|
+
export const PartialUpdateZoneRequestLabelsMapMap = /*@__PURE__*/ S.Record(S.String, S.String);
|
|
493
|
+
export const PartialUpdateZoneRequestPrimariesList = /*@__PURE__*/ S.Array(S.String);
|
|
494
|
+
export const PartialUpdateZoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
495
|
+
projectId: S.String.pipe(T.Label()),
|
|
496
|
+
zoneId: S.String.pipe(T.Label()),
|
|
497
|
+
acl: S.optional(S.String),
|
|
498
|
+
contactEmail: S.optional(S.String),
|
|
499
|
+
defaultTTL: S.optional(S.Number),
|
|
500
|
+
description: S.optional(S.String),
|
|
501
|
+
expireTime: S.optional(S.Number),
|
|
502
|
+
extensions: S.optional(ZoneExtensions),
|
|
503
|
+
labelsMap: S.optional(PartialUpdateZoneRequestLabelsMapMap),
|
|
504
|
+
name: S.optional(S.String),
|
|
505
|
+
negativeCache: S.optional(S.Number),
|
|
506
|
+
primaries: S.optional(PartialUpdateZoneRequestPrimariesList),
|
|
507
|
+
refreshTime: S.optional(S.Number),
|
|
508
|
+
retryTime: S.optional(S.Number),
|
|
509
|
+
}).pipe(T.Http({
|
|
510
|
+
method: "PATCH",
|
|
511
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}",
|
|
512
|
+
code: 200,
|
|
513
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
514
|
+
}))).annotate({ identifier: "PartialUpdateZoneRequest" });
|
|
515
|
+
export const RestoreRecordSetRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
516
|
+
projectId: S.String.pipe(T.Label()),
|
|
517
|
+
zoneId: S.String.pipe(T.Label()),
|
|
518
|
+
rrSetId: S.String.pipe(T.Label()),
|
|
519
|
+
}).pipe(T.Http({
|
|
520
|
+
method: "POST",
|
|
521
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}/restores",
|
|
522
|
+
code: 200,
|
|
523
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
524
|
+
}))).annotate({ identifier: "RestoreRecordSetRequest" });
|
|
525
|
+
export const RestoreZoneRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
526
|
+
projectId: S.String.pipe(T.Label()),
|
|
527
|
+
zoneId: S.String.pipe(T.Label()),
|
|
528
|
+
}).pipe(T.Http({
|
|
529
|
+
method: "POST",
|
|
530
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/restores",
|
|
531
|
+
code: 200,
|
|
532
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
533
|
+
}))).annotate({ identifier: "RestoreZoneRequest" });
|
|
534
|
+
export const ValidateMoveCodeRequest = /*@__PURE__*/ S.suspend(() => S.Struct({
|
|
535
|
+
projectId: S.String.pipe(T.Label()),
|
|
536
|
+
zoneId: S.String.pipe(T.Label()),
|
|
537
|
+
code: S.String,
|
|
538
|
+
}).pipe(T.Http({
|
|
539
|
+
method: "POST",
|
|
540
|
+
uri: "/v1/projects/{projectId}/zones/{zoneId}/move-code-validation",
|
|
541
|
+
code: 200,
|
|
542
|
+
baseUrl: "https://dns.api.stackit.cloud",
|
|
543
|
+
}))).annotate({ identifier: "ValidateMoveCodeRequest" });
|
|
544
|
+
/** 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 */
|
|
545
|
+
export const cloneZone = /*@__PURE__*/ API.make(() => ({
|
|
546
|
+
input: CloneZoneRequest,
|
|
547
|
+
output: ZoneResponse,
|
|
548
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
549
|
+
protocol: StackitProtocol,
|
|
550
|
+
retry: Retry.Retry,
|
|
551
|
+
}));
|
|
552
|
+
/** request a move code to move zone to another project move zone from one project to another */
|
|
553
|
+
export const createMoveCode = /*@__PURE__*/ API.make(() => ({
|
|
554
|
+
input: CreateMoveCodeRequest,
|
|
555
|
+
output: MoveCodeResponse,
|
|
556
|
+
errors: [BadRequest, Conflict, UnknownStackitError],
|
|
557
|
+
protocol: StackitProtocol,
|
|
558
|
+
retry: Retry.Retry,
|
|
559
|
+
}));
|
|
560
|
+
/** Post record set Post record set */
|
|
561
|
+
export const createRecordSet = /*@__PURE__*/ API.make(() => ({
|
|
562
|
+
input: CreateRecordSetRequest,
|
|
563
|
+
output: RecordSetResponse,
|
|
564
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
565
|
+
protocol: StackitProtocol,
|
|
566
|
+
retry: Retry.Retry,
|
|
567
|
+
}));
|
|
568
|
+
/** Post create a new zone Post zone create a new zone */
|
|
569
|
+
export const createZone = /*@__PURE__*/ API.make(() => ({
|
|
570
|
+
input: CreateZoneRequest,
|
|
571
|
+
output: ZoneResponse,
|
|
572
|
+
errors: [BadRequest, NotFound, Conflict, UnknownStackitError],
|
|
573
|
+
protocol: StackitProtocol,
|
|
574
|
+
retry: Retry.Retry,
|
|
575
|
+
}));
|
|
576
|
+
/** delete/invalidate a move code delete/invalidate a move code */
|
|
577
|
+
export const deleteMoveCode = /*@__PURE__*/ API.make(() => ({
|
|
578
|
+
input: DeleteMoveCodeRequest,
|
|
579
|
+
output: Message,
|
|
580
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
581
|
+
protocol: StackitProtocol,
|
|
582
|
+
retry: Retry.Retry,
|
|
583
|
+
}));
|
|
584
|
+
/** Delete a record set Delete a record set */
|
|
585
|
+
export const deleteRecordSet = /*@__PURE__*/ API.make(() => ({
|
|
586
|
+
input: DeleteRecordSetRequest,
|
|
587
|
+
output: Message,
|
|
588
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
589
|
+
protocol: StackitProtocol,
|
|
590
|
+
retry: Retry.Retry,
|
|
591
|
+
}));
|
|
592
|
+
/** Delete a zone Delete a zone */
|
|
593
|
+
export const deleteZone = /*@__PURE__*/ API.make(() => ({
|
|
594
|
+
input: DeleteZoneRequest,
|
|
595
|
+
output: Message,
|
|
596
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
597
|
+
protocol: StackitProtocol,
|
|
598
|
+
retry: Retry.Retry,
|
|
599
|
+
}));
|
|
600
|
+
/** Export all records in a single zone Export Zone */
|
|
601
|
+
export const exportRecordSets = /*@__PURE__*/ API.make(() => ({
|
|
602
|
+
input: ExportRecordSetsRequest,
|
|
603
|
+
output: ZoneDataExchange,
|
|
604
|
+
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
605
|
+
protocol: StackitProtocol,
|
|
606
|
+
retry: Retry.Retry,
|
|
607
|
+
}));
|
|
608
|
+
/** Get a single rrset Get rrset */
|
|
609
|
+
export const getRecordSet = /*@__PURE__*/ API.make(() => ({
|
|
610
|
+
input: GetRecordSetRequest,
|
|
611
|
+
output: RecordSetResponse,
|
|
612
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
613
|
+
protocol: StackitProtocol,
|
|
614
|
+
retry: Retry.Retry,
|
|
615
|
+
}));
|
|
616
|
+
/** Get a single zone Get zone */
|
|
617
|
+
export const getZone = /*@__PURE__*/ API.make(() => ({
|
|
618
|
+
input: GetZoneRequest,
|
|
619
|
+
output: ZoneResponse,
|
|
620
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
621
|
+
protocol: StackitProtocol,
|
|
622
|
+
retry: Retry.Retry,
|
|
623
|
+
}));
|
|
624
|
+
/** Queue secondary zone for a zone transfer request. The zone transfer will usually be performed within a few seconds, and will be tried only once by randomly choosing one of the configured primary name servers. If that single attempt fails, no further attempt will be performed. The zone will be transferred to our inbound name server regardless of its serial, but the internal zone distribution is only reliable if the zone's serial on the customer's primary name server is higher than on the STACKIT name server. <br>NOTE: As said above, this endpoint is not a reliable way to decrease a zone's serial. To guarantee consistent zones over all STACKIT location, the zone's serial MUST always be increased on zone changes. */
|
|
625
|
+
export const getZone2 = /*@__PURE__*/ API.make(() => ({
|
|
626
|
+
input: GetZoneRequest2,
|
|
627
|
+
output: Message,
|
|
628
|
+
errors: [BadRequest, UnknownStackitError],
|
|
629
|
+
protocol: StackitProtocol,
|
|
630
|
+
retry: Retry.Retry,
|
|
631
|
+
}));
|
|
632
|
+
/** Imports a zone Imports a zone and overwrites/deletes/inserts all desired records */
|
|
633
|
+
export const importRecordSets = /*@__PURE__*/ API.make(() => ({
|
|
634
|
+
input: ImportRecordSetsRequest,
|
|
635
|
+
output: ImportRecordSetsResponse,
|
|
636
|
+
errors: [BadRequest, Forbidden, UnknownStackitError],
|
|
637
|
+
protocol: StackitProtocol,
|
|
638
|
+
retry: Retry.Retry,
|
|
639
|
+
}));
|
|
640
|
+
/** All get selected RRSets All RRSet */
|
|
641
|
+
export const listRecordSets = /*@__PURE__*/ API.makePaginated(() => ({
|
|
642
|
+
input: ListRecordSetsRequest,
|
|
643
|
+
output: ListRecordSetsResponse,
|
|
644
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
645
|
+
protocol: StackitProtocol,
|
|
646
|
+
retry: Retry.Retry,
|
|
647
|
+
pagination: {
|
|
648
|
+
mode: "page",
|
|
649
|
+
inputToken: "page",
|
|
650
|
+
outputToken: "totalPages",
|
|
651
|
+
items: "rrSets",
|
|
652
|
+
pageSize: "pageSize",
|
|
653
|
+
},
|
|
654
|
+
}), paginateByTotalPages);
|
|
655
|
+
/** All get selected zones All zone */
|
|
656
|
+
export const listZones = /*@__PURE__*/ API.makePaginated(() => ({
|
|
657
|
+
input: ListZonesRequest,
|
|
658
|
+
output: ListZonesResponse,
|
|
659
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
660
|
+
protocol: StackitProtocol,
|
|
661
|
+
retry: Retry.Retry,
|
|
662
|
+
pagination: {
|
|
663
|
+
mode: "page",
|
|
664
|
+
inputToken: "page",
|
|
665
|
+
outputToken: "totalPages",
|
|
666
|
+
items: "zones",
|
|
667
|
+
pageSize: "pageSize",
|
|
668
|
+
},
|
|
669
|
+
}), paginateByTotalPages);
|
|
670
|
+
/** move zone from one project to another move zone from one project to another */
|
|
671
|
+
export const moveZone = /*@__PURE__*/ API.make(() => ({
|
|
672
|
+
input: MoveZoneRequest,
|
|
673
|
+
output: Message,
|
|
674
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
675
|
+
protocol: StackitProtocol,
|
|
676
|
+
retry: Retry.Retry,
|
|
677
|
+
}));
|
|
678
|
+
/** PatchRecords updates a record in a rrset PatchRecords rrset updates a record in a rrset */
|
|
679
|
+
export const partialUpdateRecord = /*@__PURE__*/ API.make(() => ({
|
|
680
|
+
input: PartialUpdateRecordRequest,
|
|
681
|
+
output: Message,
|
|
682
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
683
|
+
protocol: StackitProtocol,
|
|
684
|
+
retry: Retry.Retry,
|
|
685
|
+
}));
|
|
686
|
+
/** Patch updates a record set Patch record set */
|
|
687
|
+
export const partialUpdateRecordSet = /*@__PURE__*/ API.make(() => ({
|
|
688
|
+
input: PartialUpdateRecordSetRequest,
|
|
689
|
+
output: Message,
|
|
690
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
691
|
+
protocol: StackitProtocol,
|
|
692
|
+
retry: Retry.Retry,
|
|
693
|
+
}));
|
|
694
|
+
/** Patch update an existing zone Patch update an existing zone */
|
|
695
|
+
export const partialUpdateZone = /*@__PURE__*/ API.make(() => ({
|
|
696
|
+
input: PartialUpdateZoneRequest,
|
|
697
|
+
output: ZoneResponse,
|
|
698
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
699
|
+
protocol: StackitProtocol,
|
|
700
|
+
retry: Retry.Retry,
|
|
701
|
+
}));
|
|
702
|
+
/** Restore record set Restore record set */
|
|
703
|
+
export const restoreRecordSet = /*@__PURE__*/ API.make(() => ({
|
|
704
|
+
input: RestoreRecordSetRequest,
|
|
705
|
+
output: Message,
|
|
706
|
+
errors: [BadRequest, NotFound, UnknownStackitError],
|
|
707
|
+
protocol: StackitProtocol,
|
|
708
|
+
retry: Retry.Retry,
|
|
709
|
+
}));
|
|
710
|
+
/** Restore an inactive zone Restore an inactive zone */
|
|
711
|
+
export const restoreZone = /*@__PURE__*/ API.make(() => ({
|
|
712
|
+
input: RestoreZoneRequest,
|
|
713
|
+
output: Message,
|
|
714
|
+
errors: [BadRequest, UnknownStackitError],
|
|
715
|
+
protocol: StackitProtocol,
|
|
716
|
+
retry: Retry.Retry,
|
|
717
|
+
}));
|
|
718
|
+
/** validate the move code is still valid for the zone validate the move code is still valid for the zone */
|
|
719
|
+
export const validateMoveCode = /*@__PURE__*/ API.make(() => ({
|
|
720
|
+
input: ValidateMoveCodeRequest,
|
|
721
|
+
output: Message,
|
|
722
|
+
errors: [BadRequest, UnknownStackitError],
|
|
723
|
+
protocol: StackitProtocol,
|
|
724
|
+
retry: Retry.Retry,
|
|
725
|
+
}));
|
|
726
|
+
//# sourceMappingURL=dns.js.map
|