{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"format":{"type":"string","const":"autothreads.config-template"},"version":{"type":"number","const":1},"name":{"type":"string"},"description":{"type":"string"},"questions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?!(?:__proto__|constructor|prototype)$)[A-Z][\\w-]{0,63}$"},"type":{"type":"string","enum":["text","number","boolean","select","multiselect","channel","role","user","emoji","emojiList","message"]},"label":{"type":"string"},"description":{"type":"string"},"required":{"type":"boolean"},"default":{},"options":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"visibleWhen":{"$ref":"#/$defs/__schema0"},"min":{"type":"number"},"max":{"type":"number"}},"required":["id","type","label"],"additionalProperties":false}},"profiles":{"type":"object","propertyNames":{"type":"string","pattern":"^(?!(?:__proto__|constructor|prototype)$)[A-Z][\\w-]{0,63}$"},"additionalProperties":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"object","properties":{"$answer":{"type":"string","pattern":"^(?!(?:__proto__|constructor|prototype)$)[A-Z][\\w-]{0,63}$"}},"required":["$answer"],"additionalProperties":false}]},"matchingDefinition":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"allowAutomatedMessages":{"anyOf":[{"type":"boolean"},{"type":"object","properties":{"$answer":{"type":"string","pattern":"^(?!(?:__proto__|constructor|prototype)$)[A-Z][\\w-]{0,63}$"}},"required":["$answer"],"additionalProperties":false}]}},"required":["name","matchingDefinition"],"additionalProperties":false}},"blocks":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^(?!(?:__proto__|constructor|prototype)$)[A-Z][\\w-]{0,63}$"},"when":{"$ref":"#/$defs/__schema0"},"values":{"type":"object","properties":{"autothreads":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}]},"autoreact":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}]},"stickyMessages":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}]}},"additionalProperties":false},"select":{"type":"object","properties":{"$answer":{"type":"string","pattern":"^(?!(?:__proto__|constructor|prototype)$)[A-Z][\\w-]{0,63}$"}},"required":["$answer"],"additionalProperties":false},"variants":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","properties":{"autothreads":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}]},"autoreact":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}]},"stickyMessages":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}]}},"additionalProperties":false},{"type":"null"}]}}},"required":["id"],"additionalProperties":false}}},"required":["format","version","questions","profiles","blocks"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"object","properties":{"question":{"type":"string","pattern":"^(?!(?:__proto__|constructor|prototype)$)[A-Z][\\w-]{0,63}$"},"equals":{}},"required":["question","equals"],"additionalProperties":false},{"type":"object","properties":{"question":{"type":"string","pattern":"^(?!(?:__proto__|constructor|prototype)$)[A-Z][\\w-]{0,63}$"},"present":{"type":"boolean","const":true}},"required":["question","present"],"additionalProperties":false},{"type":"object","properties":{"question":{"type":"string","pattern":"^(?!(?:__proto__|constructor|prototype)$)[A-Z][\\w-]{0,63}$"},"includes":{}},"required":["question","includes"],"additionalProperties":false},{"type":"object","properties":{"all":{"minItems":1,"maxItems":32,"type":"array","items":{"$ref":"#/$defs/__schema0"}}},"required":["all"],"additionalProperties":false},{"type":"object","properties":{"any":{"minItems":1,"maxItems":32,"type":"array","items":{"$ref":"#/$defs/__schema0"}}},"required":["any"],"additionalProperties":false},{"type":"object","properties":{"not":{"$ref":"#/$defs/__schema0"}},"required":["not"],"additionalProperties":false}]}},"$id":"https://autothreads.arcoz.dev/schemas/config-template-v1.json","title":"Auto Threads configuration template"}