"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)();
/**
 * Example for how we might want to handle values.
 *
 * This might be significantly different if we want to focus more on binary formats
 * (need to work out how Fluid GC would work with that).
 * For now, this is a simple easy to support setup.
 *
 * Note that use of non-Nothing values might be restricted in the actual user facing schema languages:
 * we could instead choose to get by with the only types supporting values being effectively builtin,
 * though this limitation could prevent users for updating/extending
 * the primitive schema to allow the annotations they might want.
 *
 * An interesting alternative to this simple value Enum would be to use something more expressive here, like JsonSchema:
 * since this is modeling immutable data, we really just need a way to figure out which if these value schema allow
 * super sets of each-other.
 *
 * TODO: come up with a final design for how to handle primitives / values.
 * This design is just a placeholder.
 * @alpha
 */
var ValueSchema;
(function (ValueSchema) {
    ValueSchema[ValueSchema["Number"] = 0] = "Number";
    ValueSchema[ValueSchema["String"] = 1] = "String";
    ValueSchema[ValueSchema["Boolean"] = 2] = "Boolean";
    /**
     * Any Fluid serializable data.
     *
     * This does not include Nothing / undefined.
     *
     */
    ValueSchema[ValueSchema["Serializable"] = 3] = "Serializable";
})(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