import { TOKEN_VALUE_TYPES } from "./constants.js";
export default function getGlobalTokenSchema() {
    return {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "type": "object",
        "additionalProperties": {
            "$ref": "#/definitions/globalTokenNode"
        },
        "definitions": {
            "globalTokenNode": {
                "type": "object",
                "leafMustHaveValue": true,
                "tokenValueContent": true,
                "properties": {
                    "value": {
                        "type": "string",
                        "minLength": 1,
                        "refExists": true,
                    },
                    "type": {
                        "type": "string",
                        "enum": TOKEN_VALUE_TYPES
                    },
                    "attributes": {
                        "type": "object",
                        "additionalProperties": {
                            "type": "string"
                        }
                    },
                    "meta": {
                        "type": "object",
                        "additionalProperties": true
                    }
                },
                "additionalProperties": {
                    "$ref": "#/definitions/globalTokenNode"
                }
            }
        }
    };
}
//# sourceMappingURL=global-token-schema.js.map