{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schema":{"type":"number","const":1},"kind":{"type":"string","enum":["site","app"]},"env":{"type":"object","properties":{"required":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"reason":{"type":"string","minLength":10,"maxLength":300}},"required":["name","reason"],"additionalProperties":false}},"optional":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"reason":{"type":"string","minLength":10,"maxLength":300}},"required":["name","reason"],"additionalProperties":false}}},"required":["required","optional"],"additionalProperties":false},"integrations":{"maxItems":30,"type":"array","items":{"oneOf":[{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Z_][A-Z0-9_]{0,127}$"},"reason":{"type":"string","minLength":10,"maxLength":300},"type":{"type":"string","const":"d1"},"migrationsDir":{"default":"migrations","type":"string","maxLength":240,"pattern":"^[a-z0-9_.-]+(?:\\/[a-z0-9_.-]+)*$"}},"required":["binding","reason","type","migrationsDir"],"additionalProperties":false},{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Z_][A-Z0-9_]{0,127}$"},"reason":{"type":"string","minLength":10,"maxLength":300},"type":{"type":"string","const":"r2"}},"required":["binding","reason","type"],"additionalProperties":false},{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Z_][A-Z0-9_]{0,127}$"},"reason":{"type":"string","minLength":10,"maxLength":300},"type":{"type":"string","const":"ratelimit"},"limit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"period":{"anyOf":[{"type":"number","const":10},{"type":"number","const":60}]}},"required":["binding","reason","type","limit","period"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"name":{"type":"string","pattern":"^[A-Z_][A-Z0-9_]{0,127}$"},"reason":{"type":"string","minLength":10,"maxLength":300}},"required":["type","name","reason"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"turnstile"},"siteKeyEnv":{"type":"string","pattern":"^[A-Z_][A-Z0-9_]{0,127}$"},"secretEnv":{"type":"string","pattern":"^[A-Z_][A-Z0-9_]{0,127}$"},"reason":{"type":"string","minLength":10,"maxLength":300}},"required":["type","siteKeyEnv","secretEnv","reason"],"additionalProperties":false}]}},"release":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"reason":{"type":"string","minLength":10,"maxLength":300},"run":{"type":"string","minLength":1,"maxLength":2000},"artifact":{"type":"string","maxLength":240,"pattern":"^[a-z0-9_.-]+(?:\\/[a-z0-9_.-]+)*$"},"report":{"type":"string","maxLength":240,"pattern":"^[a-z0-9_.-]+(?:\\/[a-z0-9_.-]+)*$"}},"required":["id","reason","run"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"reason":{"type":"string","minLength":10,"maxLength":300},"job":{"type":"string","maxLength":240,"pattern":"^\\/(?:[a-zA-Z0-9_.~-]+\\/)*[a-zA-Z0-9_.~-]*$"}},"required":["id","reason","job"],"additionalProperties":false},{"oneOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"reason":{"type":"string","minLength":10,"maxLength":300},"use":{"type":"string","const":"d1.migrate"},"with":{"type":"object","properties":{"binding":{"type":"string","pattern":"^[A-Z_][A-Z0-9_]{0,127}$"}},"required":["binding"],"additionalProperties":false}},"required":["id","reason","use","with"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"reason":{"type":"string","minLength":10,"maxLength":300},"use":{"type":"string","const":"deploy.candidate"},"with":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","reason","use"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"reason":{"type":"string","minLength":10,"maxLength":300},"use":{"type":"string","const":"smoke"},"with":{"type":"object","properties":{"paths":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","maxLength":240,"pattern":"^\\/(?:[a-zA-Z0-9_.~-]+\\/)*[a-zA-Z0-9_.~-]*$"}}},"required":["paths"],"additionalProperties":false}},"required":["id","reason","use","with"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z][a-z0-9-]{0,39}$"},"reason":{"type":"string","minLength":10,"maxLength":300},"use":{"type":"string","const":"switch"},"with":{"type":"object","properties":{},"additionalProperties":false}},"required":["id","reason","use"],"additionalProperties":false}]}]}}},"required":["schema","kind","env","integrations","release"],"additionalProperties":false}