/** * Utility schema types * * * File automatically generated using json-schema-to-typescript. * ! DO NOT MODIFY IT BY HAND ! * Instead, modify the source file ./utils.schema.json of @oada/formats * and run `$ yarn build` to regenerate this file. * * @packageDocumentation */ /** * `$id` of the source schema * @see {@link https://formats.openag.io/utils.schema.json} */ export declare const $id = "https://formats.openag.io/utils.schema.json"; /** * JSON Schema used to generate this type * @see {@link https://formats.openag.io/utils.schema.json} */ export declare const schema: { readonly $id: "https://formats.openag.io/utils.schema.json"; readonly $schema: "http://json-schema.org/draft-07/schema#"; readonly description: "Utility schema types"; readonly definitions: { readonly anyOtherString: { readonly title: "Any other string"; readonly description: "Workaround to make TypeScript autocomplete better for string enums"; readonly tsType: "string & Record"; readonly type: "string"; readonly additionalProperties: false; }; readonly alphanumeric: { readonly description: "A single alphanumeric character"; readonly pattern: "^\\w$"; readonly enum: readonly ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; }; }; }; /** * Returns true if `val` is a @type `UtilsSchema`, false otherwise */ export declare function is(val: unknown): val is UtilsSchema; /** * Asserts that `val` is a @type `UtilsSchema` */ export declare function assert(val: unknown): asserts val is UtilsSchema; /** * Utility schema types * */ export default UtilsSchema; /** * Workaround to make TypeScript autocomplete better for string enums * * This interface was referenced by `UtilsSchema`'s JSON-Schema * via the `definition` "anyOtherString". */ export type AnyOtherString = string & Record; /** * A single alphanumeric character * * This interface was referenced by `UtilsSchema`'s JSON-Schema * via the `definition` "alphanumeric". */ export type Alphanumeric = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z' | 'A' | 'B' | 'C' | 'D' | 'E' | 'F' | 'G' | 'H' | 'I' | 'J' | 'K' | 'L' | 'M' | 'N' | 'O' | 'P' | 'Q' | 'R' | 'S' | 'T' | 'U' | 'V' | 'W' | 'X' | 'Y' | 'Z' | '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9'; /** * Utility schema types */ export interface UtilsSchema { [k: string]: unknown; }