"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.storedEmptyFieldSchema = exports.forbiddenFieldKindIdentifier = exports.ValueSchema = exports.FieldKindIdentifierSchema = exports.FieldKeySchema = exports.TreeSchemaIdentifierSchema = void 0;
const util_1 = require("../../util");
exports.TreeSchemaIdentifierSchema = (0, util_1.brandedStringType)();
exports.FieldKeySchema = (0, util_1.brandedStringType)();
exports.FieldKindIdentifierSchema = (0, util_1.brandedStringType)();
/**
 * Schema for what {@link TreeValue} is allowed on a Leaf node.
 * @alpha
 */
var ValueSchema;
(function (ValueSchema) {
    ValueSchema[ValueSchema["Number"] = 0] = "Number";
    ValueSchema[ValueSchema["String"] = 1] = "String";
    ValueSchema[ValueSchema["Boolean"] = 2] = "Boolean";
    ValueSchema[ValueSchema["FluidHandle"] = 3] = "FluidHandle";
})(ValueSchema = exports.ValueSchema || (exports.ValueSchema = {}));
/**
 * Identifier used for the FieldKind for fields which must be empty.
 *
 * @remarks
 * This mainly show up in:
 * 1. The root default field for documents.
 * 2. The schema used for out of schema fields (which thus must be empty/not exist) on a struct and leaf nodes.
 *
 * @alpha
 */
exports.forbiddenFieldKindIdentifier = "Forbidden";
exports.storedEmptyFieldSchema = {
    kind: { identifier: (0, util_1.brand)(exports.forbiddenFieldKindIdentifier) },
    types: undefined,
};
//# sourceMappingURL=schema.js.map