@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.
- package/lib/credentials.d.ts +2 -2
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +32 -28
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +13 -13
- package/lib/errors.d.ts.map +1 -1
- package/lib/errors.js +16 -16
- package/lib/errors.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.js +22 -22
- package/lib/pagination.d.ts +1 -1
- package/lib/pagination.js +15 -15
- package/lib/protocol.d.ts +3 -3
- package/lib/protocol.d.ts.map +1 -1
- package/lib/protocol.js +31 -29
- package/lib/protocol.js.map +1 -1
- package/lib/retry.d.ts +1 -1
- package/lib/retry.d.ts.map +1 -1
- package/lib/retry.js +24 -23
- package/lib/retry.js.map +1 -1
- package/lib/services/alb.d.ts +10 -87
- package/lib/services/alb.d.ts.map +1 -1
- package/lib/services/alb.js +73 -502
- package/lib/services/alb_waf.d.ts +9 -82
- package/lib/services/alb_waf.d.ts.map +1 -1
- package/lib/services/alb_waf.js +84 -510
- package/lib/services/authorization.d.ts +5 -47
- package/lib/services/authorization.d.ts.map +1 -1
- package/lib/services/authorization.js +67 -314
- package/lib/services/automation.d.ts +7 -47
- package/lib/services/automation.d.ts.map +1 -1
- package/lib/services/automation.js +58 -353
- package/lib/services/cdn.d.ts +8 -220
- package/lib/services/cdn.d.ts.map +1 -1
- package/lib/services/cdn.js +81 -896
- package/lib/services/certificates.d.ts +8 -27
- package/lib/services/certificates.d.ts.map +1 -1
- package/lib/services/certificates.js +45 -171
- package/lib/services/cost.d.ts +10 -37
- package/lib/services/cost.d.ts.map +1 -1
- package/lib/services/cost.js +39 -169
- package/lib/services/dns.d.ts +9 -104
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +98 -714
- package/lib/services/dremio.d.ts +8 -50
- package/lib/services/dremio.d.ts.map +1 -1
- package/lib/services/dremio.js +56 -307
- package/lib/services/edge.d.ts +7 -40
- package/lib/services/edge.d.ts.map +1 -1
- package/lib/services/edge.js +66 -347
- package/lib/services/functions.d.ts +1 -48
- package/lib/services/functions.d.ts.map +1 -1
- package/lib/services/functions.js +64 -393
- package/lib/services/git.d.ts +8 -61
- package/lib/services/git.d.ts.map +1 -1
- package/lib/services/git.js +87 -510
- package/lib/services/iaas.d.ts +9 -337
- package/lib/services/iaas.d.ts.map +1 -1
- package/lib/services/iaas.js +409 -3532
- package/lib/services/intake.d.ts +8 -75
- package/lib/services/intake.d.ts.map +1 -1
- package/lib/services/intake.js +74 -465
- package/lib/services/kms.d.ts +9 -92
- package/lib/services/kms.d.ts.map +1 -1
- package/lib/services/kms.js +95 -650
- package/lib/services/lb_ip_lists.d.ts +9 -25
- package/lib/services/lb_ip_lists.d.ts.map +1 -1
- package/lib/services/lb_ip_lists.js +45 -146
- package/lib/services/load_balancer.d.ts +10 -81
- package/lib/services/load_balancer.d.ts.map +1 -1
- package/lib/services/load_balancer.js +76 -486
- package/lib/services/logme.d.ts +8 -69
- package/lib/services/logme.d.ts.map +1 -1
- package/lib/services/logme.js +82 -564
- package/lib/services/logs.d.ts +8 -64
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +84 -465
- package/lib/services/mariadb.d.ts +8 -65
- package/lib/services/mariadb.d.ts.map +1 -1
- package/lib/services/mariadb.js +84 -541
- package/lib/services/model_experiments.d.ts +9 -48
- package/lib/services/model_experiments.d.ts.map +1 -1
- package/lib/services/model_experiments.js +66 -325
- package/lib/services/model_serving.d.ts +7 -47
- package/lib/services/model_serving.d.ts.map +1 -1
- package/lib/services/model_serving.js +55 -277
- package/lib/services/mongodb_flex.d.ts +8 -137
- package/lib/services/mongodb_flex.d.ts.map +1 -1
- package/lib/services/mongodb_flex.js +102 -793
- package/lib/services/object_storage.d.ts +12 -59
- package/lib/services/object_storage.d.ts.map +1 -1
- package/lib/services/object_storage.js +93 -528
- package/lib/services/observability.d.ts +8 -407
- package/lib/services/observability.d.ts.map +1 -1
- package/lib/services/observability.js +375 -3148
- package/lib/services/opensearch.d.ts +8 -71
- package/lib/services/opensearch.d.ts.map +1 -1
- package/lib/services/opensearch.js +85 -553
- package/lib/services/pim.d.ts +12 -108
- package/lib/services/pim.d.ts.map +1 -1
- package/lib/services/pim.js +81 -726
- package/lib/services/postgres_flex.d.ts +14 -136
- package/lib/services/postgres_flex.d.ts.map +1 -1
- package/lib/services/postgres_flex.js +114 -841
- package/lib/services/pubsub.d.ts +11 -73
- package/lib/services/pubsub.d.ts.map +1 -1
- package/lib/services/pubsub.js +92 -507
- package/lib/services/rabbitmq.d.ts +8 -76
- package/lib/services/rabbitmq.d.ts.map +1 -1
- package/lib/services/rabbitmq.js +88 -564
- package/lib/services/registry.d.ts +10 -28
- package/lib/services/registry.d.ts.map +1 -1
- package/lib/services/registry.js +49 -189
- package/lib/services/resource_manager.d.ts +9 -61
- package/lib/services/resource_manager.d.ts.map +1 -1
- package/lib/services/resource_manager.js +92 -462
- package/lib/services/run_command.d.ts +5 -28
- package/lib/services/run_command.d.ts.map +1 -1
- package/lib/services/run_command.js +38 -176
- package/lib/services/sca.d.ts +8 -79
- package/lib/services/sca.d.ts.map +1 -1
- package/lib/services/sca.js +63 -435
- package/lib/services/scf.d.ts +8 -64
- package/lib/services/scf.d.ts.map +1 -1
- package/lib/services/scf.js +99 -660
- package/lib/services/secrets_manager.d.ts +8 -61
- package/lib/services/secrets_manager.d.ts.map +1 -1
- package/lib/services/secrets_manager.js +99 -601
- package/lib/services/server_backup.d.ts +7 -50
- package/lib/services/server_backup.d.ts.map +1 -1
- package/lib/services/server_backup.js +70 -444
- package/lib/services/server_update.d.ts +7 -35
- package/lib/services/server_update.d.ts.map +1 -1
- package/lib/services/server_update.js +58 -342
- package/lib/services/service_account.d.ts +10 -68
- package/lib/services/service_account.d.ts.map +1 -1
- package/lib/services/service_account.js +75 -495
- package/lib/services/service_enablement.d.ts +7 -29
- package/lib/services/service_enablement.d.ts.map +1 -1
- package/lib/services/service_enablement.js +40 -147
- package/lib/services/sfs.d.ts +4 -96
- package/lib/services/sfs.d.ts.map +1 -1
- package/lib/services/sfs.js +117 -782
- package/lib/services/ske.d.ts +9 -108
- package/lib/services/ske.d.ts.map +1 -1
- package/lib/services/ske.js +67 -549
- package/lib/services/sqlserverflex.d.ts +11 -152
- package/lib/services/sqlserverflex.d.ts.map +1 -1
- package/lib/services/sqlserverflex.js +112 -925
- package/lib/services/stackit_marketplace.d.ts +9 -38
- package/lib/services/stackit_marketplace.d.ts.map +1 -1
- package/lib/services/stackit_marketplace.js +64 -369
- package/lib/services/telemetry_link.d.ts +8 -61
- package/lib/services/telemetry_link.d.ts.map +1 -1
- package/lib/services/telemetry_link.js +81 -522
- package/lib/services/telemetry_router.d.ts +8 -72
- package/lib/services/telemetry_router.d.ts.map +1 -1
- package/lib/services/telemetry_router.js +73 -474
- package/lib/services/ufw.d.ts +7 -42
- package/lib/services/ufw.d.ts.map +1 -1
- package/lib/services/ufw.js +55 -269
- package/lib/services/valkey.d.ts +8 -68
- package/lib/services/valkey.d.ts.map +1 -1
- package/lib/services/valkey.js +85 -557
- package/lib/services/vpn.d.ts +21 -186
- package/lib/services/vpn.d.ts.map +1 -1
- package/lib/services/vpn.js +105 -920
- package/lib/services/workflows.d.ts +15 -84
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +67 -497
- package/lib/traits.d.ts +1 -1
- package/lib/traits.js +10 -10
- package/package.json +13 -9
- package/src/credentials.ts +21 -18
- package/src/errors.ts +10 -14
- package/src/index.ts +2 -2
- package/src/pagination.ts +2 -2
- package/src/protocol.ts +12 -9
- package/src/retry.ts +6 -4
- package/src/services/alb.ts +599 -655
- package/src/services/alb_waf.ts +597 -637
- package/src/services/authorization.ts +400 -383
- package/src/services/automation.ts +422 -405
- package/src/services/cdn.ts +817 -1375
- package/src/services/certificates.ts +209 -190
- package/src/services/cost.ts +100 -207
- package/src/services/dns.ts +793 -833
- package/src/services/dremio.ts +356 -349
- package/src/services/edge.ts +406 -366
- package/src/services/functions.ts +465 -463
- package/src/services/git.ts +602 -547
- package/src/services/iaas.ts +3931 -3821
- package/src/services/intake.ts +521 -549
- package/src/services/kms.ts +715 -692
- package/src/services/lb_ip_lists.ts +173 -152
- package/src/services/load_balancer.ts +576 -619
- package/src/services/logme.ts +696 -641
- package/src/services/logs.ts +510 -493
- package/src/services/mariadb.ts +671 -604
- package/src/services/model_experiments.ts +343 -356
- package/src/services/model_serving.ts +337 -328
- package/src/services/mongodb_flex.ts +955 -1007
- package/src/services/object_storage.ts +614 -557
- package/src/services/observability.ts +3469 -3866
- package/src/services/opensearch.ts +679 -628
- package/src/services/pim.ts +672 -909
- package/src/services/postgres_flex.ts +966 -986
- package/src/services/pubsub.ts +524 -546
- package/src/services/rabbitmq.ts +693 -654
- package/src/services/registry.ts +227 -194
- package/src/services/resource_manager.ts +520 -517
- package/src/services/run_command.ts +219 -211
- package/src/services/sca.ts +543 -570
- package/src/services/scf.ts +790 -716
- package/src/services/secrets_manager.ts +707 -622
- package/src/services/server_backup.ts +490 -475
- package/src/services/server_update.ts +353 -356
- package/src/services/service_account.ts +515 -553
- package/src/services/service_enablement.ts +162 -166
- package/src/services/sfs.ts +879 -958
- package/src/services/ske.ts +694 -769
- package/src/services/sqlserverflex.ts +1042 -1117
- package/src/services/stackit_marketplace.ts +377 -372
- package/src/services/telemetry_link.ts +530 -531
- package/src/services/telemetry_router.ts +509 -534
- package/src/services/ufw.ts +305 -307
- package/src/services/valkey.ts +684 -629
- package/src/services/vpn.ts +935 -1195
- package/src/services/workflows.ts +426 -586
- package/src/traits.ts +1 -1
- package/lib/protocol.test.d.ts +0 -2
- package/lib/protocol.test.d.ts.map +0 -1
- package/lib/protocol.test.js +0 -181
- package/lib/protocol.test.js.map +0 -1
- package/lib/services/alb.js.map +0 -1
- package/lib/services/alb_waf.js.map +0 -1
- package/lib/services/authorization.js.map +0 -1
- package/lib/services/automation.js.map +0 -1
- package/lib/services/cdn.js.map +0 -1
- package/lib/services/certificates.js.map +0 -1
- package/lib/services/cost.js.map +0 -1
- package/lib/services/dns.js.map +0 -1
- package/lib/services/dremio.js.map +0 -1
- package/lib/services/edge.js.map +0 -1
- package/lib/services/functions.js.map +0 -1
- package/lib/services/git.js.map +0 -1
- package/lib/services/iaas.js.map +0 -1
- package/lib/services/intake.js.map +0 -1
- package/lib/services/kms.js.map +0 -1
- package/lib/services/lb_ip_lists.js.map +0 -1
- package/lib/services/load_balancer.js.map +0 -1
- package/lib/services/logme.js.map +0 -1
- package/lib/services/logs.js.map +0 -1
- package/lib/services/mariadb.js.map +0 -1
- package/lib/services/model_experiments.js.map +0 -1
- package/lib/services/model_serving.js.map +0 -1
- package/lib/services/mongodb_flex.js.map +0 -1
- package/lib/services/object_storage.js.map +0 -1
- package/lib/services/observability.js.map +0 -1
- package/lib/services/opensearch.js.map +0 -1
- package/lib/services/pim.js.map +0 -1
- package/lib/services/postgres_flex.js.map +0 -1
- package/lib/services/pubsub.js.map +0 -1
- package/lib/services/rabbitmq.js.map +0 -1
- package/lib/services/registry.js.map +0 -1
- package/lib/services/resource_manager.js.map +0 -1
- package/lib/services/run_command.js.map +0 -1
- package/lib/services/sca.js.map +0 -1
- package/lib/services/scf.js.map +0 -1
- package/lib/services/secrets_manager.js.map +0 -1
- package/lib/services/server_backup.js.map +0 -1
- package/lib/services/server_update.js.map +0 -1
- package/lib/services/service_account.js.map +0 -1
- package/lib/services/service_enablement.js.map +0 -1
- package/lib/services/sfs.js.map +0 -1
- package/lib/services/ske.js.map +0 -1
- package/lib/services/sqlserverflex.js.map +0 -1
- package/lib/services/stackit_marketplace.js.map +0 -1
- package/lib/services/telemetry_link.js.map +0 -1
- package/lib/services/telemetry_router.js.map +0 -1
- package/lib/services/ufw.js.map +0 -1
- package/lib/services/valkey.js.map +0 -1
- package/lib/services/vpn.js.map +0 -1
- package/lib/services/workflows.js.map +0 -1
- package/src/protocol.test.ts +0 -304
package/lib/services/dns.js
CHANGED
|
@@ -1,726 +1,110 @@
|
|
|
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.js";
|
|
6
7
|
import { paginateByTotalPages } from "../pagination.js";
|
|
7
8
|
import { StackitProtocol } from "../protocol.js";
|
|
8
9
|
import * as Retry from "../retry.js";
|
|
9
10
|
import * as T from "../traits.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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",
|
|
11
|
+
const __0 = __L.at;
|
|
12
|
+
const __1 = T.Http;
|
|
13
|
+
const __2 = T.Label;
|
|
14
|
+
const __3 = S.String;
|
|
15
|
+
const __4 = S.Struct;
|
|
16
|
+
const __5 = S.suspend;
|
|
17
|
+
const __6 = S.Boolean;
|
|
18
|
+
const __7 = S.optional;
|
|
19
|
+
const __8 = S.Number;
|
|
20
|
+
const __9 = S.Array;
|
|
21
|
+
const __10 = T.Query;
|
|
22
|
+
const __11 = S.Record;
|
|
23
|
+
const __12 = S.TaggedError;
|
|
24
|
+
const __13 = T.applyErrorMatchers;
|
|
25
|
+
export const BadRequest = /*@__PURE__*/ API.error(function BadRequest(i) {
|
|
26
|
+
return API.newError(i, new.target, ['$5($4()("BadRequest",{code:$2,message:$3}).pipe($1),[{status:400}])', [__0, C.withBadRequestError, __8, __3, __12, __13]]);
|
|
53
27
|
});
|
|
54
|
-
export const
|
|
55
|
-
|
|
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",
|
|
28
|
+
export const Conflict = /*@__PURE__*/ API.error(function Conflict(i) {
|
|
29
|
+
return API.newError(i, new.target, ['$5($4()("Conflict",{code:$2,message:$3}).pipe($1),[{status:409}])', [__0, C.withConflictError, __8, __3, __12, __13]]);
|
|
165
30
|
});
|
|
166
|
-
export const
|
|
167
|
-
|
|
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",
|
|
31
|
+
export const Forbidden = /*@__PURE__*/ API.error(function Forbidden(i) {
|
|
32
|
+
return API.newError(i, new.target, ['$5($4()("Forbidden",{code:$2,message:$3}).pipe($1),[{status:403}])', [__0, C.withAuthError, __8, __3, __12, __13]]);
|
|
289
33
|
});
|
|
290
|
-
export const
|
|
291
|
-
|
|
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",
|
|
34
|
+
export const NotFound = /*@__PURE__*/ API.error(function NotFound(i) {
|
|
35
|
+
return API.newError(i, new.target, ['$5($4()("NotFound",{code:$2,message:$3}).pipe($1),[{status:404}])', [__0, C.withBadRequestError, __8, __3, __12, __13]]);
|
|
474
36
|
});
|
|
475
|
-
|
|
476
|
-
export const
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
}).pipe(
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
export const
|
|
493
|
-
|
|
494
|
-
export const
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
}))).
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
})
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
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
|
|
37
|
+
|
|
38
|
+
export const cloneZone = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#8:0,errors:[$9,$10,$11,$12],protocol:$13,retry:$14};$7(>2)@"CloneZoneRequest";$6({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),adjustRecords:$5($4),description:$5($3),dnsName:$3,name:$5($3)}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/zones/{zoneId}/clone",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __6, __7, __4, __5, __d3, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(cloneZone, i));
|
|
39
|
+
|
|
40
|
+
export const createMoveCode = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$8,$9,$10],protocol:$11,retry:$12};$7(>3)@"CreateMoveCodeRequest";$7(>4)@"MoveCodeResponse";$6({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),ttl:$5($4)}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/zones/{zoneId}/move-code",code:200,baseUrl:"https://dns.api.stackit.cloud"}));$6({code:$3,expiresAt:$3,message:$5($3)})', [__0, __1, __2, __3, __8, __7, __4, __5, BadRequest, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createMoveCode, i));
|
|
41
|
+
|
|
42
|
+
export const createRecordSet = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12,$13],protocol:$14,retry:$15};$8(>2)@"CreateRecordSetRequest";$7({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),comment:$4($3),name:$3,records:#5:1,ttl:$4($6),type:$3}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/zones/{zoneId}/rrsets",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __d6, __8, __4, __5, __d4, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createRecordSet, i));
|
|
43
|
+
|
|
44
|
+
export const createZone = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#12:0,errors:[$13,$14,$15,$16],protocol:$17,retry:$18};$11(>2)@"CreateZoneRequest";$10({projectId:$3.pipe($2()),acl:$4($3),contactEmail:$4($3),defaultTTL:$4($5),description:$4($3),dnsName:$3,expireTime:$4($5),extensions:$4(#6:1),isReverseZone:$4($7),labelsMap:$4(#8:4),name:$3,negativeCache:$4($5),primaries:$4(#9:0),refreshTime:$4($5),retryTime:$4($5),type:$4($3)}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/zones",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d7, __6, __d2, __d1, __4, __5, __d3, BadRequest, NotFound, Conflict, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(createZone, i));
|
|
45
|
+
|
|
46
|
+
export const deleteMoveCode = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteMoveCodeRequest";$4({projectId:$3.pipe($2()),zoneId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/zones/{zoneId}/move-code",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteMoveCode, i));
|
|
47
|
+
|
|
48
|
+
export const deleteRecordSet = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteRecordSetRequest";$4({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),rrSetId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteRecordSet, i));
|
|
49
|
+
|
|
50
|
+
export const deleteZone = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"DeleteZoneRequest";$4({projectId:$3.pipe($2()),zoneId:$3.pipe($2())}).pipe($1({method:"DELETE",uri:"/v1/projects/{projectId}/zones/{zoneId}",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(deleteZone, i));
|
|
51
|
+
|
|
52
|
+
export const exportRecordSets = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#2,errors:[$9,$10,$11],protocol:$12,retry:$13};$7(>3)@"ExportRecordSetsRequest";$7(>4)@"ZoneDataExchange";$6({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),exportAsFQDN:$5($4),format:$5($3)}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/zones/{zoneId}/export",code:200,baseUrl:"https://dns.api.stackit.cloud"}));$6({rrSets:$5(#8:1)})', [__0, __1, __2, __3, __6, __7, __4, __5, __d0, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(exportRecordSets, i));
|
|
53
|
+
|
|
54
|
+
export const getRecordSet = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetRecordSetRequest";$4({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),rrSetId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d4, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getRecordSet, i));
|
|
55
|
+
|
|
56
|
+
export const getZone = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"GetZoneRequest";$4({projectId:$3.pipe($2()),zoneId:$3.pipe($2())}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/zones/{zoneId}",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getZone, i));
|
|
57
|
+
|
|
58
|
+
export const getZone2 = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"GetZoneRequest2";$4({projectId:$3.pipe($2()),zoneId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/zones/{zoneId}/retrieve",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(getZone2, i));
|
|
59
|
+
|
|
60
|
+
export const importRecordSets = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#3,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>4)@"ImportRecordSetsRequest";$8(>5)@"ImportSummary";$8(>6)@"ImportRecordSetsResponse";$7({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),format:$5($3.pipe($4())),importType:$5($3.pipe($4())),rrSets:$5(#6:1)}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/zones/{zoneId}/import",code:200,baseUrl:"https://dns.api.stackit.cloud"}));$7({createdRRSets:$5($9),createdRecords:$5($9),deletedRRSets:$5($9),deletedRecords:$5($9),updatedRRSets:$5($9),updatedRecords:$5($9)});$7({message:$5($3),summary:#2})', [__0, __1, __2, __3, __10, __7, __d0, __4, __5, __8, BadRequest, Forbidden, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(importRecordSets, i));
|
|
61
|
+
|
|
62
|
+
export const listRecordSets = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("page", '{input:#1,output:#3,errors:[$12,$13,$14],protocol:$15,retry:$16,pagination:{mode:"%",inputToken:"%",outputToken:"totalPages",items:"rrSets",pageSize:"%Size"},strategy:$17};$9(>4)@"ListRecordSetsRequest";$11(#10:2);$9(>5)@"ListRecordSetsResponse";$8({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),page:$6($5.pipe($4())),pageSize:$6($5.pipe($4())),name_eq_:$6($3.pipe($4("name[eq]"))),name_like_:$6($3.pipe($4("name[like]"))),type_eq_:$6($3.pipe($4("type[eq]"))),state_eq_:$6($3.pipe($4("state[eq]"))),state_neq_:$6($3.pipe($4("state[neq]"))),active_eq_:$6($7.pipe($4("active[eq]"))),creationStarted_gt_:$6($3.pipe($4("creationStarted[gt]"))),creationStarted_lt_:$6($3.pipe($4("creationStarted[lt]"))),creationStarted_gte_:$6($3.pipe($4("creationStarted[gte]"))),creationStarted_lte_:$6($3.pipe($4("creationStarted[lte]"))),creationFinished_gt_:$6($3.pipe($4("creationFinished[gt]"))),creationFinished_lt_:$6($3.pipe($4("creationFinished[lt]"))),creationFinished_gte_:$6($3.pipe($4("creationFinished[gte]"))),creationFinished_lte_:$6($3.pipe($4("creationFinished[lte]"))),updateStarted_gt_:$6($3.pipe($4("updateStarted[gt]"))),updateStarted_lt_:$6($3.pipe($4("updateStarted[lt]"))),updateStarted_gte_:$6($3.pipe($4("updateStarted[gte]"))),updateStarted_lte_:$6($3.pipe($4("updateStarted[lte]"))),updateFinished_gt_:$6($3.pipe($4("updateFinished[gt]"))),updateFinished_lt_:$6($3.pipe($4("updateFinished[lt]"))),updateFinished_gte_:$6($3.pipe($4("updateFinished[gte]"))),updateFinished_lte_:$6($3.pipe($4("updateFinished[lte]"))),orderBy_name_:$6($3.pipe($4("orderBy[name]"))),orderBy_creationStarted_:$6($3.pipe($4("orderBy[creationStarted]"))),orderBy_creationFinished_:$6($3.pipe($4("orderBy[creationFinished]"))),orderBy_updateStarted_:$6($3.pipe($4("orderBy[updateStarted]"))),orderBy_updateFinished_:$6($3.pipe($4("orderBy[updateFinished]"))),orderBy_type_:$6($3.pipe($4("orderBy[type]"))),orderBy_state_:$6($3.pipe($4("orderBy[state]"))),orderBy_recordCount_:$6($3.pipe($4("orderBy[recordCount]")))}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/zones/{zoneId}/rrsets",code:200,baseUrl:"https://dns.api.stackit.cloud"}));$8({itemsPerPage:$5,message:$6($3),rrSets:#2,totalItems:$5,totalPages:$5})', [__0, __1, __2, __3, __10, __8, __7, __6, __4, __5, __d5, __9, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry, paginateByTotalPages]) : API.call(listRecordSets, i));
|
|
63
|
+
|
|
64
|
+
export const listZones = /*@__PURE__*/ API.opPaginated((i) => i === API.D ? API.named("page", '{input:#1,output:#3,errors:[$13,$14,$15],protocol:$16,retry:$17,pagination:{mode:"%",inputToken:"%",outputToken:"totalPages",items:"zones",pageSize:"%Size"},strategy:$18};$10(>4)@"ListZonesRequest";$12(#11:5);$10(>5)@"ListZonesResponse";$9({projectId:$3.pipe($2()),page:$6($5.pipe($4())),pageSize:$6($5.pipe($4())),dnsName_eq_:$6($3.pipe($4("dnsName[eq]"))),dnsName_like_:$6($3.pipe($4("dnsName[like]"))),type_eq_:$6($3.pipe($4("type[eq]"))),name_eq_:$6($3.pipe($4("name[eq]"))),name_neq_:$6($3.pipe($4("name[neq]"))),name_like_:$6($3.pipe($4("name[like]"))),description_eq_:$6($3.pipe($4("description[eq]"))),description_neq_:$6($3.pipe($4("description[neq]"))),description_like_:$6($3.pipe($4("description[like]"))),state_eq_:$6($3.pipe($4("state[eq]"))),state_neq_:$6($3.pipe($4("state[neq]"))),primaryNameServer_eq_:$6($3.pipe($4("primaryNameServer[eq]"))),primaryNameServer_like_:$6($3.pipe($4("primaryNameServer[like]"))),isReverseZone_eq_:$6($7.pipe($4("isReverseZone[eq]"))),active_eq_:$6($7.pipe($4("active[eq]"))),creationStarted_gt_:$6($3.pipe($4("creationStarted[gt]"))),creationStarted_lt_:$6($3.pipe($4("creationStarted[lt]"))),creationStarted_gte_:$6($3.pipe($4("creationStarted[gte]"))),creationStarted_lte_:$6($3.pipe($4("creationStarted[lte]"))),creationFinished_gt_:$6($3.pipe($4("creationFinished[gt]"))),creationFinished_lt_:$6($3.pipe($4("creationFinished[lt]"))),creationFinished_gte_:$6($3.pipe($4("creationFinished[gte]"))),creationFinished_lte_:$6($3.pipe($4("creationFinished[lte]"))),updateStarted_gt_:$6($3.pipe($4("updateStarted[gt]"))),updateStarted_lt_:$6($3.pipe($4("updateStarted[lt]"))),updateStarted_gte_:$6($3.pipe($4("updateStarted[gte]"))),updateStarted_lte_:$6($3.pipe($4("updateStarted[lte]"))),updateFinished_gt_:$6($3.pipe($4("updateFinished[gt]"))),updateFinished_lt_:$6($3.pipe($4("updateFinished[lt]"))),updateFinished_gte_:$6($3.pipe($4("updateFinished[gte]"))),updateFinished_lte_:$6($3.pipe($4("updateFinished[lte]"))),labelKey_eq_:$6(#8:0.pipe($4("labelKey[eq]"))),labelValue_eq_:$6(#8:0.pipe($4("labelValue[eq]"))),orderBy_dnsName_:$6($3.pipe($4("orderBy[dnsName]"))),orderBy_name_:$6($3.pipe($4("orderBy[name]"))),orderBy_recordCount_:$6($3.pipe($4("orderBy[recordCount]"))),orderBy_type_:$6($3.pipe($4("orderBy[type]"))),orderBy_description_:$6($3.pipe($4("orderBy[description]"))),orderBy_creationStarted_:$6($3.pipe($4("orderBy[creationStarted]"))),orderBy_creationFinished_:$6($3.pipe($4("orderBy[creationFinished]"))),orderBy_updateStarted_:$6($3.pipe($4("orderBy[updateStarted]"))),orderBy_updateFinished_:$6($3.pipe($4("orderBy[updateFinished]")))}).pipe($1({method:"GET",uri:"/v1/projects/{projectId}/zones",code:200,baseUrl:"https://dns.api.stackit.cloud"}));$9({itemsPerPage:$5,message:$6($3),totalItems:$5,totalPages:$5,zones:#2})', [__0, __1, __2, __3, __10, __8, __7, __6, __d1, __4, __5, __d2, __9, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry, paginateByTotalPages]) : API.call(listZones, i));
|
|
65
|
+
|
|
66
|
+
export const moveZone = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"MoveZoneRequest";$4({projectId:$3.pipe($2()),code:$3,zoneDnsName:$3}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/move-zone",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(moveZone, i));
|
|
67
|
+
|
|
68
|
+
export const partialUpdateRecord = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#7:0,errors:[$8,$9,$10],protocol:$11,retry:$12};$6(>2)@"PartialUpdateRecordRequest";$5({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),rrSetId:$3.pipe($2()),action:$3,records:#4:1}).pipe($1({method:"PATCH",uri:"/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}/records",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __d6, __4, __5, __d8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateRecord, i));
|
|
69
|
+
|
|
70
|
+
export const partialUpdateRecordSet = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#9:0,errors:[$10,$11,$12],protocol:$13,retry:$14};$8(>2)@"PartialUpdateRecordSetRequest";$7({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),rrSetId:$3.pipe($2()),comment:$4($3),name:$4($3),records:$4(#5:1),ttl:$4($6)}).pipe($1({method:"PATCH",uri:"/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __d6, __8, __4, __5, __d8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateRecordSet, i));
|
|
71
|
+
|
|
72
|
+
export const partialUpdateZone = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#11:0,errors:[$12,$13,$14],protocol:$15,retry:$16};$10(>2)@"PartialUpdateZoneRequest";$9({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),acl:$4($3),contactEmail:$4($3),defaultTTL:$4($5),description:$4($3),expireTime:$4($5),extensions:$4(#6:1),labelsMap:$4(#7:4),name:$4($3),negativeCache:$4($5),primaries:$4(#8:0),refreshTime:$4($5),retryTime:$4($5)}).pipe($1({method:"PATCH",uri:"/v1/projects/{projectId}/zones/{zoneId}",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __7, __8, __d7, __d2, __d1, __4, __5, __d3, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(partialUpdateZone, i));
|
|
73
|
+
|
|
74
|
+
export const restoreRecordSet = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8,$9],protocol:$10,retry:$11};$5(>2)@"RestoreRecordSetRequest";$4({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),rrSetId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/zones/{zoneId}/rrsets/{rrSetId}/restores",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, NotFound, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(restoreRecordSet, i));
|
|
75
|
+
|
|
76
|
+
export const restoreZone = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"RestoreZoneRequest";$4({projectId:$3.pipe($2()),zoneId:$3.pipe($2())}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/zones/{zoneId}/restores",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(restoreZone, i));
|
|
77
|
+
|
|
78
|
+
export const validateMoveCode = /*@__PURE__*/ API.op((i) => i === API.D ? ['{input:#1,output:#6:0,errors:[$7,$8],protocol:$9,retry:$10};$5(>2)@"ValidateMoveCodeRequest";$4({projectId:$3.pipe($2()),zoneId:$3.pipe($2()),code:$3}).pipe($1({method:"POST",uri:"/v1/projects/{projectId}/zones/{zoneId}/move-code-validation",code:200,baseUrl:"https://dns.api.stackit.cloud"}))', [__0, __1, __2, __3, __4, __5, __d8, BadRequest, UnknownStackitError, StackitProtocol, Retry.Retry]] : API.call(validateMoveCode, i));
|
|
79
|
+
// Schema builders: each runs one schema initializer, on that schema's first use.
|
|
80
|
+
// Schema table: entry i is schema j of builder f, made on first reach.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
// Shared schema data (see `op` in core/api).
|
|
84
|
+
function __d0() {
|
|
85
|
+
return ['$6(>2)@"RecordDataExchange";$7(#0);$5({comment:$2($1),content:$2(#3:0),name:$2($1),ttl:$2($4),type:$2($1)})', [__0, __3, __7, __d1, __8, __4, __5, __9]];
|
|
86
|
+
}
|
|
87
|
+
function __d1() {
|
|
88
|
+
return ['$2($1)', [__0, __3, __9]];
|
|
89
|
+
}
|
|
90
|
+
function __d2() {
|
|
91
|
+
return ['$4(>6)@"DomainObservabilityExtension";$4(>7)@"DomainExtensions";$4(>8)@"Label";$5(#2);$6($1,$1);$4(>9)@"Zone";$3({observabilityInstanceId:$1,state:$2($1)});$3({observabilityExtension:$2(#0)});$3({key:$1,value:$2($1)});$3({acl:$1,active:$2($7),contactEmail:$2($1),creationFinished:$1,creationStarted:$1,defaultTTL:$8,description:$2($1),dnsName:$1,error:$2($1),expireTime:$8,extensions:$2(#1),id:$1,isReverseZone:$2($7),labels:$2(#3),labelsMap:$2(#4),name:$1,negativeCache:$8,primaries:$2(#9:0),primaryNameServer:$1,recordCount:$2($8),refreshTime:$8,retryTime:$8,serialNumber:$8,state:$1,type:$1,updateFinished:$1,updateStarted:$1,visibility:$1})', [__0, __3, __7, __4, __5, __9, __11, __6, __8, __d1]];
|
|
92
|
+
}
|
|
93
|
+
function __d3() {
|
|
94
|
+
return ['$5(>1)@"ZoneResponse";$4({message:$2($1),zone:#3:5})', [__0, __3, __7, __d2, __4, __5]];
|
|
95
|
+
}
|
|
96
|
+
function __d4() {
|
|
97
|
+
return ['$5(>1)@"RecordSetResponse";$4({message:$2($1),rrset:#3:2})', [__0, __3, __7, __d5, __4, __5]];
|
|
98
|
+
}
|
|
99
|
+
function __d5() {
|
|
100
|
+
return ['$3(>3)@"Record";$4(#0);$3(>4)@"RecordSet";$2({content:$1,id:$1});$2({active:$6($5),comment:$6($1),creationFinished:$1,creationStarted:$1,error:$6($1),id:$1,name:$1,records:#1,state:$1,ttl:$7,type:$1,updateFinished:$1,updateStarted:$1})', [__0, __3, __4, __5, __9, __6, __7, __8]];
|
|
101
|
+
}
|
|
102
|
+
function __d6() {
|
|
103
|
+
return ['$3(>2)@"RecordPayload";$4(#0);$2({content:$1})', [__0, __3, __4, __5, __9]];
|
|
104
|
+
}
|
|
105
|
+
function __d7() {
|
|
106
|
+
return ['$3(>2)@"ZoneObservabilityExtension";$3(>3)@"ZoneExtensions";$2({observabilityInstanceId:$1});$2({observabilityExtension:$4(#0)})', [__0, __3, __4, __5, __7]];
|
|
107
|
+
}
|
|
108
|
+
function __d8() {
|
|
109
|
+
return ['$4(>1)@"Message";$3({message:$2($1)})', [__0, __3, __7, __4, __5]];
|
|
110
|
+
}
|