/** * An object representation of an OADA "tree". * * * File automatically generated using json-schema-to-typescript. * ! DO NOT MODIFY IT BY HAND ! * Instead, modify the source file ./oada/tree/v1.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/oada/tree/v1.schema.json} */ export declare const $id = "https://formats.openag.io/oada/tree/v1.schema.json"; /** * JSON Schema used to generate this type * @see {@link https://formats.openag.io/oada/tree/v1.schema.json} */ export declare const schema: { readonly $id: "https://formats.openag.io/oada/tree/v1.schema.json"; readonly $schema: "http://json-schema.org/draft-07/schema#"; readonly title: "Tree"; readonly description: "An object representation of an OADA \"tree\"."; readonly definitions: { readonly treeKey: { readonly title: "Tree key"; readonly pattern: "^[^_]"; readonly oneOf: readonly [{ readonly const: "*"; }, { readonly $ref: "https://formats.openag.io/oada.schema.json#/definitions/key/definitions/nonReserved"; }]; }; }; readonly type: "object"; readonly properties: { readonly _type: { readonly $ref: "../../oada.schema.json#/definitions/_type"; }; readonly _rev: { readonly $ref: "../../oada.schema.json#/definitions/_rev"; }; }; readonly allOf: readonly [{ readonly description: "sub trees"; readonly type: "object"; readonly tsType: "{ [key in '*' | `${\"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\"}${string}`]?: Tree; }"; readonly patternProperties: { readonly '^[^_]': { readonly $ref: "#"; }; }; }]; }; /** * Returns true if `val` is a @type `Tree`, false otherwise */ export declare function is(val: unknown): val is Tree; /** * Asserts that `val` is a @type `Tree` */ export declare function assert(val: unknown): asserts val is Tree; /** * An object representation of an OADA "tree". * */ export default Tree; /** * An object representation of an OADA "tree". */ export type Tree = { [key in '*' | `${'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'}${string}`]?: Tree; } & { /** * _type identifies the content-type of a resource in the OADA API. */ _type?: string; /** * _rev is the revision for a resource in the OADA API. */ _rev?: number; [k: string]: unknown; }; /** * This interface was referenced by `undefined`'s JSON-Schema * via the `definition` "treeKey". */ export type TreeKey = '*' | `${'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'}${string}`;