import * as API from "@distilled.cloud/core/api"; // AUTO-GENERATED by scripts/generate.ts from .generated-specs (specs/spec-mirror-hetzner/specs/cloud.spec.json). Do not edit. import * as S from "@distilled.cloud/core/schema-lite"; import * as __L from "@distilled.cloud/core/schema-lite"; import { UnknownHetznerError } from "../errors.ts"; import { HetznerProtocol, type HetznerOpError, type HetznerOpContext } from "../protocol.ts"; import * as Retry from "../retry.ts"; import * as T from "../traits.ts"; // Schema table, filled on first reach (see __S at the end). const __s: any[] = []; export type { HetznerOpError, HetznerOpContext }; /** Type of the [RRSet](#tag/zone-rrsets). */ export type AddZoneRrsetRecordsRequestRrType = | "A" | "AAAA" | "CAA" | "CNAME" | "DS" | "HINFO" | "HTTPS" | "MX" | "NS" | "PTR" | "RP" | "SOA" | "SRV" | "SVCB" | "TLSA" | "TXT"; /** Record of a [RRSet](#tag/zone-rrsets). The `value` is used to identify the record in an [RRSet](#tag/zone-rrsets). */ export interface AddZoneRrsetRecordsRequestRecordsItem { /** Value of the record. For details about accepted values, see the [DNS record types documentation](https://docs.hetzner.com/networking/dns/record-types/overview/). */ value: string; /** Comment of the record. */ comment?: string; } /** Records to add to the [RRSet](#tag/zone-rrsets). Must not be empty and must only contain distinct record values. */ export type AddZoneRrsetRecordsRequestRecordsList = Array; export interface AddZoneRrsetRecordsRequest { /** ID or Name of the Zone. */ id_or_name: string; rr_name: string; rr_type: AddZoneRrsetRecordsRequestRrType | (string & {}); /** Time To Live (TTL) of the [RRSet](#tag/zone-rrsets). If not set, the [Zone's](#tag/zones) Default TTL is used. If set, and the RRSet being updated already has a TTL, the values must be the same. */ ttl?: number | null; /** Records to add to the [RRSet](#tag/zone-rrsets). Must not be empty and must only contain distinct record values. */ records: AddZoneRrsetRecordsRequestRecordsList; } /** Status of the Action. */ export type AddZoneRrsetRecordsResponseActionStatus = "running" | "success" | "error"; export interface AddZoneRrsetRecordsResponseActionResourcesItem { /** ID of the Resource. */ id: number; /** Type of the Resource. */ type: string; } /** Resources the Action relates to. */ export type AddZoneRrsetRecordsResponseActionResourcesList = Array; /** Error message for the Action if an error occurred, otherwise null. */ export interface AddZoneRrsetRecordsResponseActionError { /** Fixed error code for machines. */ code: string; /** Error message for humans. */ message: string; } export interface AddZoneRrsetRecordsResponseAction { /** ID of the [Action](#description/actions). */ id: number; /** Command executed in the Action. */ command: string; /** Status of the Action. */ status: AddZoneRrsetRecordsResponseActionStatus; /** Point in time when the Action was started (in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). */ started: string; /** Point in time when the Action was finished (in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). Only set if the Action is finished otherwise null. */ finished: string | null; /** Progress of the Action in percent. */ progress: number; /** Resources the Action relates to. */ resources: AddZoneRrsetRecordsResponseActionResourcesList; /** Error message for the Action if an error occurred, otherwise null. */ error: AddZoneRrsetRecordsResponseActionError | null; } export interface AddZoneRrsetRecordsResponse { action: AddZoneRrsetRecordsResponseAction; } /** Type of the [RRSet](#tag/zone-rrsets). */ export type ChangeZoneRrsetProtectionRequestRrType = | "A" | "AAAA" | "CAA" | "CNAME" | "DS" | "HINFO" | "HTTPS" | "MX" | "NS" | "PTR" | "RP" | "SOA" | "SRV" | "SVCB" | "TLSA" | "TXT"; export interface ChangeZoneRrsetProtectionRequest { /** ID or Name of the Zone. */ id_or_name: string; rr_name: string; rr_type: ChangeZoneRrsetProtectionRequestRrType | (string & {}); /** Prevent the Resource from being changed. */ change: boolean; } /** Status of the Action. */ export type ChangeZoneRrsetProtectionResponseActionStatus = "running" | "success" | "error"; export type ChangeZoneRrsetProtectionResponseActionResourcesItem = AddZoneRrsetRecordsResponseActionResourcesItem; /** Resources the Action relates to. */ export type ChangeZoneRrsetProtectionResponseActionResourcesList = Array; /** Error message for the Action if an error occurred, otherwise null. */ export type ChangeZoneRrsetProtectionResponseActionError = AddZoneRrsetRecordsResponseActionError; export interface ChangeZoneRrsetProtectionResponseAction { /** ID of the [Action](#description/actions). */ id: number; /** Command executed in the Action. */ command: string; /** Status of the Action. */ status: ChangeZoneRrsetProtectionResponseActionStatus; /** Point in time when the Action was started (in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). */ started: string; /** Point in time when the Action was finished (in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). Only set if the Action is finished otherwise null. */ finished: string | null; /** Progress of the Action in percent. */ progress: number; /** Resources the Action relates to. */ resources: ChangeZoneRrsetProtectionResponseActionResourcesList; /** Error message for the Action if an error occurred, otherwise null. */ error: AddZoneRrsetRecordsResponseActionError | null; } export interface ChangeZoneRrsetProtectionResponse { action: ChangeZoneRrsetProtectionResponseAction; } /** Type of the [RRSet](#tag/zone-rrsets). */ export type ChangeZoneRrsetTtlRequestRrType = | "A" | "AAAA" | "CAA" | "CNAME" | "DS" | "HINFO" | "HTTPS" | "MX" | "NS" | "PTR" | "RP" | "SOA" | "SRV" | "SVCB" | "TLSA" | "TXT"; export interface ChangeZoneRrsetTtlRequest { /** ID or Name of the Zone. */ id_or_name: string; rr_name: string; rr_type: ChangeZoneRrsetTtlRequestRrType | (string & {}); /** Time To Live (TTL) of the [RRSet](#tag/zone-rrsets). Must be in between 60s and 2147483647s. If not set, the [Zone's](#tag/zones) Default TTL is used. */ ttl: number | null; } /** Status of the Action. */ export type ChangeZoneRrsetTtlResponseActionStatus = "running" | "success" | "error"; export type ChangeZoneRrsetTtlResponseActionResourcesItem = AddZoneRrsetRecordsResponseActionResourcesItem; /** Resources the Action relates to. */ export type ChangeZoneRrsetTtlResponseActionResourcesList = Array; /** Error message for the Action if an error occurred, otherwise null. */ export type ChangeZoneRrsetTtlResponseActionError = AddZoneRrsetRecordsResponseActionError; export interface ChangeZoneRrsetTtlResponseAction { /** ID of the [Action](#description/actions). */ id: number; /** Command executed in the Action. */ command: string; /** Status of the Action. */ status: ChangeZoneRrsetTtlResponseActionStatus; /** Point in time when the Action was started (in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). */ started: string; /** Point in time when the Action was finished (in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). Only set if the Action is finished otherwise null. */ finished: string | null; /** Progress of the Action in percent. */ progress: number; /** Resources the Action relates to. */ resources: ChangeZoneRrsetTtlResponseActionResourcesList; /** Error message for the Action if an error occurred, otherwise null. */ error: AddZoneRrsetRecordsResponseActionError | null; } export interface ChangeZoneRrsetTtlResponse { action: ChangeZoneRrsetTtlResponseAction; } /** Type of the [RRSet](#tag/zone-rrsets). */ export type RemoveZoneRrsetRecordsRequestRrType = | "A" | "AAAA" | "CAA" | "CNAME" | "DS" | "HINFO" | "HTTPS" | "MX" | "NS" | "PTR" | "RP" | "SOA" | "SRV" | "SVCB" | "TLSA" | "TXT"; /** Record of a [RRSet](#tag/zone-rrsets). The `value` is used to identify the record in an [RRSet](#tag/zone-rrsets). */ export type RemoveZoneRrsetRecordsRequestRecordsItem = AddZoneRrsetRecordsRequestRecordsItem; /** Records to remove from the [RRSet](#tag/zone-rrsets). Must not be empty and must only contain distinct record values. */ export type RemoveZoneRrsetRecordsRequestRecordsList = Array; export interface RemoveZoneRrsetRecordsRequest { /** ID or Name of the Zone. */ id_or_name: string; rr_name: string; rr_type: RemoveZoneRrsetRecordsRequestRrType | (string & {}); /** Records to remove from the [RRSet](#tag/zone-rrsets). Must not be empty and must only contain distinct record values. */ records: RemoveZoneRrsetRecordsRequestRecordsList; } /** Status of the Action. */ export type RemoveZoneRrsetRecordsResponseActionStatus = "running" | "success" | "error"; export type RemoveZoneRrsetRecordsResponseActionResourcesItem = AddZoneRrsetRecordsResponseActionResourcesItem; /** Resources the Action relates to. */ export type RemoveZoneRrsetRecordsResponseActionResourcesList = Array; /** Error message for the Action if an error occurred, otherwise null. */ export type RemoveZoneRrsetRecordsResponseActionError = AddZoneRrsetRecordsResponseActionError; export interface RemoveZoneRrsetRecordsResponseAction { /** ID of the [Action](#description/actions). */ id: number; /** Command executed in the Action. */ command: string; /** Status of the Action. */ status: RemoveZoneRrsetRecordsResponseActionStatus; /** Point in time when the Action was started (in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). */ started: string; /** Point in time when the Action was finished (in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). Only set if the Action is finished otherwise null. */ finished: string | null; /** Progress of the Action in percent. */ progress: number; /** Resources the Action relates to. */ resources: RemoveZoneRrsetRecordsResponseActionResourcesList; /** Error message for the Action if an error occurred, otherwise null. */ error: AddZoneRrsetRecordsResponseActionError | null; } export interface RemoveZoneRrsetRecordsResponse { action: RemoveZoneRrsetRecordsResponseAction; } /** Type of the [RRSet](#tag/zone-rrsets). */ export type SetZoneRrsetRecordsRequestRrType = | "A" | "AAAA" | "CAA" | "CNAME" | "DS" | "HINFO" | "HTTPS" | "MX" | "NS" | "PTR" | "RP" | "SOA" | "SRV" | "SVCB" | "TLSA" | "TXT"; /** Record of a [RRSet](#tag/zone-rrsets). The `value` is used to identify the record in an [RRSet](#tag/zone-rrsets). */ export type SetZoneRrsetRecordsRequestRecordsItem = AddZoneRrsetRecordsRequestRecordsItem; /** Records to set in the [RRSet](#tag/zone-rrsets). Must not be empty and must only contain distinct record values. */ export type SetZoneRrsetRecordsRequestRecordsList = Array; export interface SetZoneRrsetRecordsRequest { /** ID or Name of the Zone. */ id_or_name: string; rr_name: string; rr_type: SetZoneRrsetRecordsRequestRrType | (string & {}); /** Records to set in the [RRSet](#tag/zone-rrsets). Must not be empty and must only contain distinct record values. */ records: SetZoneRrsetRecordsRequestRecordsList; } /** Status of the Action. */ export type SetZoneRrsetRecordsResponseActionStatus = "running" | "success" | "error"; export type SetZoneRrsetRecordsResponseActionResourcesItem = AddZoneRrsetRecordsResponseActionResourcesItem; /** Resources the Action relates to. */ export type SetZoneRrsetRecordsResponseActionResourcesList = Array; /** Error message for the Action if an error occurred, otherwise null. */ export type SetZoneRrsetRecordsResponseActionError = AddZoneRrsetRecordsResponseActionError; export interface SetZoneRrsetRecordsResponseAction { /** ID of the [Action](#description/actions). */ id: number; /** Command executed in the Action. */ command: string; /** Status of the Action. */ status: SetZoneRrsetRecordsResponseActionStatus; /** Point in time when the Action was started (in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). */ started: string; /** Point in time when the Action was finished (in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). Only set if the Action is finished otherwise null. */ finished: string | null; /** Progress of the Action in percent. */ progress: number; /** Resources the Action relates to. */ resources: SetZoneRrsetRecordsResponseActionResourcesList; /** Error message for the Action if an error occurred, otherwise null. */ error: AddZoneRrsetRecordsResponseActionError | null; } export interface SetZoneRrsetRecordsResponse { action: SetZoneRrsetRecordsResponseAction; } /** Type of the [RRSet](#tag/zone-rrsets). */ export type UpdateZoneRrsetRecordsRequestRrType = | "A" | "AAAA" | "CAA" | "CNAME" | "DS" | "HINFO" | "HTTPS" | "MX" | "NS" | "PTR" | "RP" | "SOA" | "SRV" | "SVCB" | "TLSA" | "TXT"; /** Record of a [RRSet](#tag/zone-rrsets). The `value` is used to identify the record in an [RRSet](#tag/zone-rrsets). */ export interface UpdateZoneRrsetRecordsRequestRecordsItem { /** Value of the record to update. */ value: string; /** New comment for the record. */ comment: string; } /** Records to update in the [RRSet](#tag/zone-rrsets). Must not be empty and must only contain distinct record values. */ export type UpdateZoneRrsetRecordsRequestRecordsList = Array; export interface UpdateZoneRrsetRecordsRequest { /** ID or Name of the Zone. */ id_or_name: string; rr_name: string; rr_type: UpdateZoneRrsetRecordsRequestRrType | (string & {}); /** Records to update in the [RRSet](#tag/zone-rrsets). Must not be empty and must only contain distinct record values. */ records: UpdateZoneRrsetRecordsRequestRecordsList; } /** Status of the Action. */ export type UpdateZoneRrsetRecordsResponseActionStatus = "running" | "success" | "error"; export type UpdateZoneRrsetRecordsResponseActionResourcesItem = AddZoneRrsetRecordsResponseActionResourcesItem; /** Resources the Action relates to. */ export type UpdateZoneRrsetRecordsResponseActionResourcesList = Array; /** Error message for the Action if an error occurred, otherwise null. */ export type UpdateZoneRrsetRecordsResponseActionError = AddZoneRrsetRecordsResponseActionError; export interface UpdateZoneRrsetRecordsResponseAction { /** ID of the [Action](#description/actions). */ id: number; /** Command executed in the Action. */ command: string; /** Status of the Action. */ status: UpdateZoneRrsetRecordsResponseActionStatus; /** Point in time when the Action was started (in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). */ started: string; /** Point in time when the Action was finished (in [RFC3339](https://datatracker.ietf.org/doc/html/rfc3339#section-5.6) format). Only set if the Action is finished otherwise null. */ finished: string | null; /** Progress of the Action in percent. */ progress: number; /** Resources the Action relates to. */ resources: UpdateZoneRrsetRecordsResponseActionResourcesList; /** Error message for the Action if an error occurred, otherwise null. */ error: AddZoneRrsetRecordsResponseActionError | null; } export interface UpdateZoneRrsetRecordsResponse { action: UpdateZoneRrsetRecordsResponseAction; } export type AddZoneRrsetRecordsError = HetznerOpError; /** Add Records to an RRSet Adds resource records (RRs) to an [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). For convenience, the [RRSet](#tag/zone-rrsets) will be automatically created if it doesn't exist. Otherwise, the new records are appended to the existing [RRSet](#tag/zone-rrsets). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors */ export const addZoneRrsetRecords: API.OperationMethod< AddZoneRrsetRecordsRequest, AddZoneRrsetRecordsResponse, AddZoneRrsetRecordsError, HetznerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(0, __c0, 0) as any as S.Schema, output: __S(12, __c1, 4) as any as S.Schema, errors: [UnknownHetznerError], protocol: HetznerProtocol, retry: Retry.Retry, })); export type ChangeZoneRrsetProtectionError = HetznerOpError; /** Change an RRSet's Protection Changes the protection of an [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors */ export const changeZoneRrsetProtection: API.OperationMethod< ChangeZoneRrsetProtectionRequest, ChangeZoneRrsetProtectionResponse, ChangeZoneRrsetProtectionError, HetznerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(24, __c3, 0) as any as S.Schema, output: __S(12, __c1, 4) as any as S.Schema, errors: [UnknownHetznerError], protocol: HetznerProtocol, retry: Retry.Retry, })); export type ChangeZoneRrsetTtlError = HetznerOpError; /** Change an RRSet's TTL Changes the Time To Live (TTL) of an [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors */ export const changeZoneRrsetTtl: API.OperationMethod< ChangeZoneRrsetTtlRequest, ChangeZoneRrsetTtlResponse, ChangeZoneRrsetTtlError, HetznerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(32, __c4, 0) as any as S.Schema, output: __S(12, __c1, 4) as any as S.Schema, errors: [UnknownHetznerError], protocol: HetznerProtocol, retry: Retry.Retry, })); export type RemoveZoneRrsetRecordsError = HetznerOpError; /** Remove Records from an RRSet Removes resource records (RRs) from an existing [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). For convenience, the [RRSet](#tag/zone-rrsets) will be automatically deleted if it doesn't contain any RRs afterwards. Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors */ export const removeZoneRrsetRecords: API.OperationMethod< RemoveZoneRrsetRecordsRequest, RemoveZoneRrsetRecordsResponse, RemoveZoneRrsetRecordsError, HetznerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(40, __c5, 0) as any as S.Schema, output: __S(12, __c1, 4) as any as S.Schema, errors: [UnknownHetznerError], protocol: HetznerProtocol, retry: Retry.Retry, })); export type SetZoneRrsetRecordsError = HetznerOpError; /** Set Records of an RRSet Overwrites the resource records (RRs) of an existing [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors */ export const setZoneRrsetRecords: API.OperationMethod< SetZoneRrsetRecordsRequest, SetZoneRrsetRecordsResponse, SetZoneRrsetRecordsError, HetznerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(48, __c6, 0) as any as S.Schema, output: __S(12, __c1, 4) as any as S.Schema, errors: [UnknownHetznerError], protocol: HetznerProtocol, retry: Retry.Retry, })); export type UpdateZoneRrsetRecordsError = HetznerOpError; /** Update Records of an RRSet Updates resource records' (RRs) comments of an existing [RRSet](#tag/zone-rrsets) in the [Zone](#tag/zones). Only applicable for [Zones](#tag/zones) in primary mode. #### Operation specific errors */ export const updateZoneRrsetRecords: API.OperationMethod< UpdateZoneRrsetRecordsRequest, UpdateZoneRrsetRecordsResponse, UpdateZoneRrsetRecordsError, HetznerOpContext > = /*@__PURE__*/ API.make(() => ({ input: __S(58, __c7, 2) as any as S.Schema, output: __S(12, __c1, 4) as any as S.Schema, errors: [UnknownHetznerError], protocol: HetznerProtocol, retry: Retry.Retry, })); // Schema builders: each runs one schema initializer, on that schema's first use. function __c0(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id_or_name: S.String.pipe(T.Label()), rr_name: S.String.pipe(T.Label()), rr_type: S.String.pipe(T.Label()), ttl: S.optional(S.NullOr(S.Number)), records: __S(17, __c2, 1), }).pipe( T.Http({ method: "POST", uri: "/zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/add_records", code: 200, }), ), ).annotate({ identifier: "AddZoneRrsetRecordsRequest" }); } } function __c1(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id: S.Number, type: S.String, }), ).annotate({ identifier: "AddZoneRrsetRecordsResponseActionResourcesItem" }); case 1: return S.Array(__S(8, __c1, 0)); case 2: return S.suspend(() => S.Struct({ code: S.String, message: S.String, }), ).annotate({ identifier: "AddZoneRrsetRecordsResponseActionError" }); case 3: return S.suspend(() => S.Struct({ id: S.Number, command: S.String, status: S.String, started: S.String, finished: S.NullOr(S.String), progress: S.Number, resources: __S(9, __c1, 1), error: S.NullOr(__S(10, __c1, 2)), }), ).annotate({ identifier: "AddZoneRrsetRecordsResponseAction" }); case 4: return S.suspend(() => S.Struct({ action: __S(11, __c1, 3), }), ).annotate({ identifier: "AddZoneRrsetRecordsResponse" }); } } function __c2(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ value: S.String, comment: S.optional(S.String), }), ).annotate({ identifier: "AddZoneRrsetRecordsRequestRecordsItem" }); case 1: return S.Array(__S(16, __c2, 0)); } } function __c3(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id_or_name: S.String.pipe(T.Label()), rr_name: S.String.pipe(T.Label()), rr_type: S.String.pipe(T.Label()), change: S.Boolean, }).pipe( T.Http({ method: "POST", uri: "/zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/change_protection", code: 200, }), ), ).annotate({ identifier: "ChangeZoneRrsetProtectionRequest" }); } } function __c4(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id_or_name: S.String.pipe(T.Label()), rr_name: S.String.pipe(T.Label()), rr_type: S.String.pipe(T.Label()), ttl: S.NullOr(S.Number), }).pipe( T.Http({ method: "POST", uri: "/zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/change_ttl", code: 200, }), ), ).annotate({ identifier: "ChangeZoneRrsetTtlRequest" }); } } function __c5(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id_or_name: S.String.pipe(T.Label()), rr_name: S.String.pipe(T.Label()), rr_type: S.String.pipe(T.Label()), records: __S(17, __c2, 1), }).pipe( T.Http({ method: "POST", uri: "/zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/remove_records", code: 200, }), ), ).annotate({ identifier: "RemoveZoneRrsetRecordsRequest" }); } } function __c6(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ id_or_name: S.String.pipe(T.Label()), rr_name: S.String.pipe(T.Label()), rr_type: S.String.pipe(T.Label()), records: __S(17, __c2, 1), }).pipe( T.Http({ method: "POST", uri: "/zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/set_records", code: 200, }), ), ).annotate({ identifier: "SetZoneRrsetRecordsRequest" }); } } function __c7(j: number): any { switch (j) { case 0: return S.suspend(() => S.Struct({ value: S.String, comment: S.String, }), ).annotate({ identifier: "UpdateZoneRrsetRecordsRequestRecordsItem" }); case 1: return S.Array(__S(56, __c7, 0)); case 2: return S.suspend(() => S.Struct({ id_or_name: S.String.pipe(T.Label()), rr_name: S.String.pipe(T.Label()), rr_type: S.String.pipe(T.Label()), records: __S(57, __c7, 1), }).pipe( T.Http({ method: "POST", uri: "/zones/{id_or_name}/rrsets/{rr_name}/{rr_type}/actions/update_records", code: 200, }), ), ).annotate({ identifier: "UpdateZoneRrsetRecordsRequest" }); } } // Schema table: entry i is schema j of builder f, made on first reach. function __S(i: number, f: (j: number) => unknown, j: number): any { return (__s[i] ??= __L.at(f, j)); }