Files
winos-config/src/dsc-schema-types/configuration.gen.ts
EthanShoeDev 239f2ff7d3 script update
2025-12-05 17:09:59 -05:00

83 lines
4.0 KiB
TypeScript

// This file is auto-generated. Do not edit manually.
import * as S from 'effect/Schema';
export const DataType = S.Literal(
"string",
"secureString",
"int",
"bool",
"object",
"secureObject",
"array"
);
export type DataType = S.Schema.Type<typeof DataType>;
export const Parameter = S.Struct({
"type": DataType,
"defaultValue": S.optional(S.Unknown),
"allowedValues": S.optional(S.NullOr(S.Array(S.Unknown))),
"minValue": S.optional(S.NullOr(S.Number)),
"maxValue": S.optional(S.NullOr(S.Number)),
"minLength": S.optional(S.NullOr(S.Number)),
"maxLength": S.optional(S.NullOr(S.Number)),
"description": S.optional(S.NullOr(S.String)),
"metadata": S.optional(S.NullOr(S.Record({ key: S.String, value: S.Unknown })))
});
export type Parameter = S.Schema.Type<typeof Parameter>;
export const Resource = S.Struct({
"type": S.String,
"name": S.String,
"dependsOn": S.optional(S.NullOr(S.Array(S.String))),
"properties": S.optional(S.NullOr(S.Record({ key: S.String, value: S.Unknown }))),
"metadata": S.optional(S.NullOr(S.Record({ key: S.String, value: S.Unknown })))
});
export type Resource = S.Schema.Type<typeof Resource>;
export const Operation = S.Literal(
"get",
"set",
"test",
"export"
);
export type Operation = S.Schema.Type<typeof Operation>;
export const ExecutionKind = S.Literal(
"actual",
"whatIf"
);
export type ExecutionKind = S.Schema.Type<typeof ExecutionKind>;
export const SecurityContextKind = S.Literal(
"current",
"elevated",
"restricted"
);
export type SecurityContextKind = S.Schema.Type<typeof SecurityContextKind>;
export const MicrosoftDscMetadata = S.Struct({
"version": S.optional(S.NullOr(S.String)),
"operation": S.optional(S.NullOr(Operation)),
"executionType": S.optional(S.NullOr(ExecutionKind)),
"startDatetime": S.optional(S.NullOr(S.String)),
"endDatetime": S.optional(S.NullOr(S.String)),
"duration": S.optional(S.NullOr(S.String)),
"securityContext": S.optional(S.NullOr(SecurityContextKind))
});
export type MicrosoftDscMetadata = S.Schema.Type<typeof MicrosoftDscMetadata>;
export const Metadata = S.Struct({
"Microsoft.DSC": S.optional(S.NullOr(MicrosoftDscMetadata))
});
export type Metadata = S.Schema.Type<typeof Metadata>;
export const Configuration = S.Struct({
"$schema": S.Literal("https://aka.ms/dsc/schemas/v3/bundled/config/document.json", "https://aka.ms/dsc/schemas/v3.0/bundled/config/document.json", "https://aka.ms/dsc/schemas/v3.0.0/bundled/config/document.json", "https://aka.ms/dsc/schemas/v3/bundled/config/document.vscode.json", "https://aka.ms/dsc/schemas/v3.0/bundled/config/document.vscode.json", "https://aka.ms/dsc/schemas/v3.0.0/bundled/config/document.vscode.json", "https://aka.ms/dsc/schemas/v3/config/document.json", "https://aka.ms/dsc/schemas/v3.0/config/document.json", "https://aka.ms/dsc/schemas/v3.0.0/config/document.json", "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3/bundled/config/document.json", "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0/bundled/config/document.json", "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.0/bundled/config/document.json", "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3/bundled/config/document.vscode.json", "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0/bundled/config/document.vscode.json", "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.0/bundled/config/document.vscode.json", "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3/config/document.json", "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0/config/document.json", "https://raw.githubusercontent.com/PowerShell/DSC/main/schemas/v3.0.0/config/document.json"),
"contentVersion": S.optional(S.NullOr(S.String)),
"parameters": S.optional(S.NullOr(S.Record({ key: S.String, value: Parameter }))),
"variables": S.optional(S.NullOr(S.Record({ key: S.String, value: S.Unknown }))),
"resources": S.Array(Resource),
"metadata": S.optional(S.NullOr(Metadata))
});
export type Configuration = S.Schema.Type<typeof Configuration>;