{ "$id": "https://raw.githubusercontent.com/kjanat/dr-downloader/master/schema/config.schema.json", "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "DaVinci Resolve Downloader config", "description": "Config file for davinci-resolve-downloader. Keys mirror the CLI flags; every key is optional and sits between env vars and built-in defaults in the resolution chain (CLI > env > config > default).", "type": "object", "properties": { "$schema": { "description": "URL of this JSON Schema, for editor validation and autocompletion.", "type": "string", "format": "uri" }, "city": { "description": "City.", "type": "string", "minLength": 1 }, "company": { "description": "Company (optional).", "type": "string" }, "country": { "description": "Country as an uppercase 2-letter code, from BMD's registration form list. The CLI also accepts a full country name (e.g. \"United States\"); in a config file use the code.", "type": "string", "enum": [ "AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BM", "BN", "BO", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IN", "IO", "IQ", "IR", "IS", "IT", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "ST", "SV", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "XK", "YE", "YT", "ZA", "ZM", "ZW" ] }, "email": { "$comment": "BMD bmdEmailValidator regex; keep in sync with EMAIL_PATTERN in ValidationService.ts.", "description": "Email address. Use a real one to register as yourself; the default is an obvious placeholder.", "type": "string", "pattern": "^(([^<>()[\\].,;:\\s@\"]+(\\.[^<>()[\\].,;:\\s@\"]+)*)|.(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([A-Za-z0-9-]+\\.)+[A-Za-z0-9-]{2,}))$", "format": "email" }, "firstname": { "description": "First name.", "type": "string", "minLength": 1 }, "lastname": { "description": "Last name.", "type": "string", "minLength": 1 }, "output": { "description": "Download directory. Defaults to ~/Downloads.", "type": "string", "minLength": 1 }, "phone": { "$comment": "BMD bmdPhoneValidator regex; keep in sync with PHONE_PATTERN in ValidationService.ts.", "description": "Phone number. Empty, or digits, spaces, parentheses, plus and minus only.", "type": "string", "pattern": "^$|^[\\s\\d()+-]+$" }, "platform": { "description": "Target platform. Defaults to autodetect.", "type": "string", "enum": [ "linux", "mac", "windows", "winarm" ] }, "region": { "description": "BMD support region for the /api/support// endpoint, a 2-letter code (lowercase). Blackmagic Design's operating territories; \"gb\" is accepted as an alias for \"uk\".", "type": "string", "enum": [ "ae", "ar", "at", "au", "br", "ca", "cn", "de", "dk", "es", "fi", "fr", "gb", "hk", "in", "it", "jp", "kr", "mx", "my", "nl", "no", "nz", "pl", "pt", "sa", "se", "sg", "tr", "tw", "ua", "uk", "us" ] }, "retryAttempts": { "description": "Download retry attempts. Default 3.", "type": "integer", "minimum": 0 }, "state": { "description": "State/province. Required for US/CA.", "type": "string" }, "street": { "description": "Street address.", "type": "string", "minLength": 1 }, "timeout": { "description": "Download timeout in milliseconds. Default 900000 (15 min).", "type": "integer", "minimum": 1 }, "zipcode": { "description": "Postal/zip code. Letters, digits, spaces and dashes.", "type": "string", "pattern": "^[A-Za-z0-9\\s-]+$" } }, "additionalProperties": false }