{"openapi":"3.1.0","info":{"title":"Civic Sound Data API","version":"1.0.0","description":"Registered read access. Check the dataset catalog for current coverage."},"servers":[{"url":"https://api.civicsound.org"}],"security":[{"apiKey":[]}],"paths":{"/v1/datasets":{"get":{"summary":"Discover available datasets","parameters":[{"in":"header","name":"If-None-Match","schema":{"type":"string"}}],"responses":{"200":{"description":"Current result","content":{"application/json":{"schema":{"type":"object","properties":{"datasets":{"type":"array","items":{"type":"object","properties":{"id":{"enum":["municipalities","authorities","sources","records","meetings","facts","stories","charts","weekly","content","relationships","coverage"]},"status":{"enum":["supported","unavailable"]},"municipalityCount":{"type":"integer","minimum":0},"oldestExportAt":{"type":["string","null"],"format":"date-time"}},"required":["id","status","municipalityCount","oldestExportAt"],"additionalProperties":false}}},"required":["datasets"],"additionalProperties":false}}},"headers":{"ETag":{"description":"Validator for this authorized response.","schema":{"type":"string"}}}},"304":{"description":"Current authorized result matches the validator","headers":{"ETag":{"description":"Validator for this authorized response.","schema":{"type":"string"}}}},"400":{"description":"Invalid request or unsupported filter","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Invalid, missing or revoked API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Unknown route or unavailable item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Restart from the catalog and a new archive walk","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Request or response exceeds its byte budget","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"503":{"description":"Service or dataset temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/{dataset}":{"get":{"summary":"Search and paginate a dataset","parameters":[{"name":"dataset","in":"path","required":true,"schema":{"enum":["municipalities","authorities","sources","records","meetings","facts","stories","charts","weekly","content","relationships","coverage"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":2048}},{"name":"municipalityIds","in":"query","schema":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":32}},{"name":"sourceIds","in":"query","schema":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":32},"description":"Repeated values; supported by applicable datasets."},{"name":"authorityIds","in":"query","schema":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":32},"description":"Repeated values; supported by applicable datasets."},{"name":"meetingIds","in":"query","schema":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":32},"description":"Repeated values; supported by applicable datasets."},{"name":"kinds","in":"query","schema":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":32},"description":"Repeated values; supported by applicable datasets."},{"name":"q","in":"query","schema":{"type":"string","maxLength":200}},{"name":"officialUrl","in":"query","schema":{"type":"string","format":"uri","maxLength":2048}},{"name":"dateField","in":"query","schema":{"enum":["eventDate","agencyIndexPostedOn","noticePostedOn","firstObservedAt","publishedAt"]}},{"name":"from","in":"query","schema":{"type":"string","format":"date"}},{"name":"through","in":"query","schema":{"type":"string","format":"date"}},{"name":"view","in":"query","schema":{"enum":["compact","detailed"],"default":"compact"}},{"in":"header","name":"If-None-Match","schema":{"type":"string"}}],"responses":{"200":{"description":"Current result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Entity"}},"nextCursor":{"type":["string","null"],"maxLength":2048},"changesCursor":{"type":"string","maxLength":2048}},"required":["data","nextCursor","changesCursor"],"additionalProperties":false}}},"headers":{"ETag":{"description":"Validator for this authorized response.","schema":{"type":"string"}}}},"304":{"description":"Current authorized result matches the validator","headers":{"ETag":{"description":"Validator for this authorized response.","schema":{"type":"string"}}}},"400":{"description":"Invalid request or unsupported filter","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Invalid, missing or revoked API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Unknown route or unavailable item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Restart from the catalog and a new archive walk","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Request or response exceeds its byte budget","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"503":{"description":"Service or dataset temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/{dataset}/{id}":{"get":{"summary":"Read an item by ID","parameters":[{"name":"dataset","in":"path","required":true,"schema":{"enum":["municipalities","authorities","sources","records","meetings","facts","stories","charts","weekly","content","relationships","coverage"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"in":"header","name":"If-None-Match","schema":{"type":"string"}}],"responses":{"200":{"description":"Current result","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"$ref":"#/components/schemas/Entity"}},"required":["data"],"additionalProperties":false}}},"headers":{"ETag":{"description":"Validator for this authorized response.","schema":{"type":"string"}}}},"304":{"description":"Current authorized result matches the validator","headers":{"ETag":{"description":"Validator for this authorized response.","schema":{"type":"string"}}}},"400":{"description":"Invalid request or unsupported filter","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Invalid, missing or revoked API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Unknown route or unavailable item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Restart from the catalog and a new archive walk","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Request or response exceeds its byte budget","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"503":{"description":"Service or dataset temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/{dataset}/batch":{"post":{"summary":"Read up to 20 items by ID","parameters":[{"name":"dataset","in":"path","required":true,"schema":{"enum":["municipalities","authorities","sources","records","meetings","facts","stories","charts","weekly","content","relationships","coverage"]}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":20,"uniqueItems":true}},"required":["ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Current matching items","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Entity"}},"missingIds":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["data","missingIds"],"additionalProperties":false}}}},"400":{"description":"Invalid request or unsupported filter","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Invalid, missing or revoked API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Unknown route or unavailable item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Restart from the catalog and a new archive walk","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Request or response exceeds its byte budget","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"503":{"description":"Service or dataset temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/changes":{"get":{"summary":"Read network changes","parameters":[{"name":"dataset","in":"query","schema":{"type":"string","enum":["records","meetings","stories","sources","authorities","relationships","weekly","facts"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":2048}},{"name":"municipalityIds","in":"query","schema":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"minItems":1,"maxItems":32}},{"in":"header","name":"If-None-Match","schema":{"type":"string"}}],"responses":{"200":{"description":"Current result","content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"sequence":{"type":"integer"},"municipalityId":{"type":"string","minLength":1,"maxLength":200},"entityId":{"type":"string","minLength":1,"maxLength":200},"dataset":{"type":"string","enum":["records","meetings","stories","sources","authorities","relationships","weekly","facts"]},"operation":{"enum":["upsert","withdraw"]},"recordedAt":{"type":"string","format":"date-time"}},"required":["sequence","municipalityId","entityId","dataset","operation","recordedAt"],"additionalProperties":false}},"cursor":{"type":"string","maxLength":2048},"hasMore":{"type":"boolean"}},"required":["changes","cursor","hasMore"],"additionalProperties":false}}},"headers":{"ETag":{"description":"Validator for this authorized response.","schema":{"type":"string"}}}},"304":{"description":"Current authorized result matches the validator","headers":{"ETag":{"description":"Validator for this authorized response.","schema":{"type":"string"}}}},"400":{"description":"Invalid request or unsupported filter","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Invalid, missing or revoked API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Unknown route or unavailable item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Restart from the catalog and a new archive walk","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Request or response exceeds its byte budget","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"503":{"description":"Service or dataset temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}}}}},"/v1/municipalities/{id}/changes":{"get":{"summary":"Read a municipality's changes","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"dataset","in":"query","schema":{"type":"string","enum":["records","meetings","stories","sources","authorities","relationships","weekly","facts"]}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":10}},{"name":"cursor","in":"query","schema":{"type":"string","maxLength":2048}},{"in":"header","name":"If-None-Match","schema":{"type":"string"}}],"responses":{"200":{"description":"Current result","content":{"application/json":{"schema":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"object","properties":{"sequence":{"type":"integer"},"municipalityId":{"type":"string","minLength":1,"maxLength":200},"entityId":{"type":"string","minLength":1,"maxLength":200},"dataset":{"type":"string","enum":["records","meetings","stories","sources","authorities","relationships","weekly","facts"]},"operation":{"enum":["upsert","withdraw"]},"recordedAt":{"type":"string","format":"date-time"}},"required":["sequence","municipalityId","entityId","dataset","operation","recordedAt"],"additionalProperties":false}},"cursor":{"type":"string","maxLength":2048},"hasMore":{"type":"boolean"}},"required":["changes","cursor","hasMore"],"additionalProperties":false}}},"headers":{"ETag":{"description":"Validator for this authorized response.","schema":{"type":"string"}}}},"304":{"description":"Current authorized result matches the validator","headers":{"ETag":{"description":"Validator for this authorized response.","schema":{"type":"string"}}}},"400":{"description":"Invalid request or unsupported filter","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"401":{"description":"Invalid, missing or revoked API key","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"404":{"description":"Unknown route or unavailable item","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"410":{"description":"Restart from the catalog and a new archive walk","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"413":{"description":"Request or response exceeds its byte budget","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}},"429":{"description":"Rate limit reached","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}},"headers":{"Retry-After":{"schema":{"type":"integer"}}}},"503":{"description":"Service or dataset temporarily unavailable","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"],"additionalProperties":false}}}}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer"}},"schemas":{"Entity":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"name":{"type":"string","minLength":1,"maxLength":120},"origin":{"type":"string","maxLength":255},"city":{"type":"string","minLength":1,"maxLength":120},"state":{"type":"string","pattern":"^[A-Z]{2}$"},"timezone":{"type":"string","minLength":1,"maxLength":80},"locale":{"type":"string","minLength":1,"maxLength":80}},"required":["id","name","origin","city","state","timezone","locale"],"additionalProperties":false},{"type":"object","properties":{"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"dataset":{"type":"string","const":"records"},"inventory":{"type":"string","const":"captured-official-records"},"exportedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"sources":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","pattern":"^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}$"},"authorityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"scanned":{"type":"integer","minimum":0,"maximum":9007199254740991},"exported":{"type":"integer","minimum":0,"maximum":9007199254740991},"terminal":{"type":"boolean"},"projectionOmissions":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["sourceId","authorityId","scanned","exported","terminal","projectionOmissions"],"additionalProperties":false}},"eligibility":{"type":"string","const":"official-record-export-v1"},"meetings":{"type":"object","properties":{"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"dataset":{"type":"string","const":"meetings"},"inventory":{"type":"string","const":"captured-public-meetings"},"exportedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"sources":{"type":"array","items":{"type":"object","properties":{"sourceId":{"type":"string","pattern":"^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}$"},"authorityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"scanned":{"type":"integer","minimum":0,"maximum":9007199254740991},"exported":{"type":"integer","minimum":0,"maximum":9007199254740991},"excluded":{"type":"integer","minimum":0,"maximum":9007199254740991},"terminal":{"type":"boolean"},"projectionOmissions":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["sourceId","authorityId","scanned","exported","excluded","terminal","projectionOmissions"],"additionalProperties":false}},"eligibility":{"type":"string","const":"public-meeting-export-v1"}},"required":["municipalityId","dataset","inventory","exportedAt","sources","eligibility"],"additionalProperties":false},"collections":{"type":"array","items":{"type":"object","properties":{"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"dataset":{"type":"string","enum":["stories","sources","authorities","relationships","weekly","facts"]},"exportedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"exported":{"type":"integer","minimum":0,"maximum":9007199254740991},"observations":{"type":"object","properties":{"unverifiedAgendaParents":{"type":"integer","minimum":0,"maximum":9007199254740991},"unavailableReports":{"type":"integer","minimum":0,"maximum":9007199254740991},"partialReports":{"type":"integer","minimum":0,"maximum":9007199254740991}},"additionalProperties":false}},"required":["municipalityId","dataset","exportedAt","exported"],"additionalProperties":false}}},"required":["municipalityId","dataset","inventory","exportedAt","sources","eligibility"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}$"},"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"authorityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"name":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","minLength":1,"maxLength":240},"scope":{"type":"string","enum":["municipal","shared","regional"]},"sourceIds":{"minItems":1,"type":"array","items":{"type":"string","pattern":"^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}$"}}},"required":["id","municipalityId","authorityId","name","type","scope","sourceIds"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}$"},"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"authorityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"authority":{"type":"string","pattern":"^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}$"},"family":{"type":"string","minLength":1,"maxLength":240},"body":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"name":{"type":"string","minLength":1,"maxLength":240},"type":{"type":"string","minLength":1,"maxLength":240}},"required":["id","name","type"],"additionalProperties":false},{"type":"null"}]},"coverageRoles":{"type":"array","items":{"type":"string","minLength":1,"maxLength":240}},"discoveryUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"access":{"type":"string","enum":["direct","provider-restricted"]}},"required":["id","municipalityId","authorityId","authority","family","body","coverageRoles","discoveryUrl","access"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{1,80}:record-[a-f0-9]{32}$"},"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"sourceId":{"type":"string","pattern":"^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}$"},"authorityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"issuingAgency":{"type":"string","minLength":5,"maxLength":160},"publicBody":{"anyOf":[{"type":"string","minLength":5,"maxLength":160},{"type":"null"}]},"title":{"type":"string","minLength":5,"maxLength":240},"documentType":{"type":"string","enum":["agenda","minutes","land-use-notice","notice","permit-report"]},"officialUrl":{"type":"string","format":"uri"},"access":{"type":"string","enum":["direct","provider-restricted"]},"accessNote":{"anyOf":[{"type":"string","const":"The official provider may restrict access to this record."},{"type":"null"}]},"agencyIndexPostedOn":{"type":["string","null"]},"noticePostedOn":{"type":["string","null"]},"eventDate":{"type":["string","null"]},"firstObservedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"versionEvidence":{"type":"string","enum":["one-archived-version","multiple-archived-versions","multiple-source-representations"]},"permitReportRevision":{"type":"string","pattern":"^pr-[a-f0-9]{32}$"}},"required":["id","municipalityId","sourceId","authorityId","issuingAgency","publicBody","title","documentType","officialUrl","access","accessNote","agencyIndexPostedOn","noticePostedOn","eventDate","firstObservedAt","versionEvidence"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{1,80}:record-[a-f0-9]{32}$"},"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"sourceId":{"type":"string","pattern":"^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}$"},"authorityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"issuingAgency":{"type":"string","minLength":5,"maxLength":160},"publicBody":{"anyOf":[{"type":"string","minLength":5,"maxLength":160},{"type":"null"}]},"title":{"type":"string","minLength":5,"maxLength":240},"documentType":{"type":"string","enum":["agenda","minutes","land-use-notice","notice","permit-report"]},"officialUrl":{"type":"string","format":"uri"},"access":{"type":"string","enum":["direct","provider-restricted"]},"accessNote":{"anyOf":[{"type":"string","const":"The official provider may restrict access to this record."},{"type":"null"}]},"agencyIndexPostedOn":{"type":["string","null"]},"noticePostedOn":{"type":["string","null"]},"eventDate":{"type":["string","null"]},"firstObservedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"versionEvidence":{"type":"string","enum":["one-archived-version","multiple-archived-versions","multiple-source-representations"]},"permitReportRevision":{"type":"string","pattern":"^pr-[a-f0-9]{32}$"},"contentAvailability":{"type":"string","enum":["provider-restricted","not-in-public-projection"]}},"required":["id","municipalityId","sourceId","authorityId","issuingAgency","publicBody","title","documentType","officialUrl","access","accessNote","agencyIndexPostedOn","noticePostedOn","eventDate","firstObservedAt","versionEvidence","contentAvailability"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{1,80}:record-[a-f0-9]{32}$"},"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"sourceId":{"type":"string","pattern":"^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}$"},"authorityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"title":{"type":"string","minLength":5,"maxLength":240},"documentType":{"type":"string","enum":["agenda","minutes","land-use-notice","notice","permit-report"]},"officialUrl":{"type":"string","format":"uri"},"eventDate":{"type":["string","null"]},"access":{"type":"string","enum":["direct","provider-restricted"]}},"required":["id","municipalityId","sourceId","authorityId","title","documentType","officialUrl","eventDate","access"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"sourceId":{"type":"string","pattern":"^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}$"},"authorityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"title":{"type":"string","minLength":5,"maxLength":240},"publicBody":{"anyOf":[{"type":"string","minLength":5,"maxLength":160},{"type":"null"}]},"eventDate":{"type":"string"},"eventTime":{"anyOf":[{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"endDate":{"type":["string","null"]},"endTime":{"anyOf":[{"type":"string","pattern":"^(?:[01]\\d|2[0-3]):[0-5]\\d$"},{"type":"null"}]},"status":{"type":"string","enum":["scheduled","cancelled","postponed","unconfirmed"]},"officialUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"access":{"type":"string","enum":["direct","provider-restricted"]},"agendaRevisions":{"type":"array","items":{"type":"string","pattern":"^ar-[a-f0-9]{32}$"}}},"required":["id","municipalityId","sourceId","authorityId","title","publicBody","eventDate","eventTime","endDate","endTime","status","officialUrl","access"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{1,80}:story-[a-f0-9]{32}$"},"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"kind":{"type":"string","const":"editorial-analysis"},"canonicalUrl":{"type":"string","maxLength":2048},"headline":{"type":"string","minLength":1},"dek":{"type":["string","null"]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"},"summary":{"type":"string","minLength":1},"citations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^S[1-9]\\d*$"},"url":{"type":"string","maxLength":2048}},"required":["id","url"],"additionalProperties":false}},"unavailableCitations":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","municipalityId","kind","canonicalUrl","headline","dek","publishedAt","updatedAt","revision","summary","citations","unavailableCitations"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{1,80}:story-[a-f0-9]{32}$"},"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"kind":{"type":"string","const":"editorial-analysis"},"canonicalUrl":{"type":"string","maxLength":2048},"headline":{"type":"string","minLength":1},"dek":{"type":["string","null"]},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"updatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"revision":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","municipalityId","kind","canonicalUrl","headline","dek","publishedAt","updatedAt","revision"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{1,80}:document-link-[a-f0-9]{32}$"},"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"sourceId":{"type":"string","pattern":"^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}$"},"authorityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"meetingId":{"type":"string"},"kind":{"type":"string","const":"supporting-document"},"linkProof":{"type":"string","const":"archived-official-agenda"},"officialUrl":{"type":"string","maxLength":2048},"agendaUrl":{"type":"string","maxLength":2048},"agendaRevision":{"type":"string","pattern":"^ar-[a-f0-9]{32}$"},"meetingOfficialUrl":{"type":"string","maxLength":2048}},"required":["id","municipalityId","sourceId","authorityId","meetingId","kind","linkProof","officialUrl","agendaUrl","agendaRevision","meetingOfficialUrl"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{1,80}:weekly-\\d{4}-\\d{2}-\\d{2}$"},"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"title":{"type":"string","minLength":1,"maxLength":127},"editionDate":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},"publishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"canonicalUrl":{"type":"string","maxLength":2048,"format":"uri"},"kind":{"type":"string","const":"editorial-archive"}},"required":["id","municipalityId","title","editionDate","publishedAt","canonicalUrl","kind"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{1,80}:permit-reference-[a-f0-9]{32}$"},"municipalityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"sourceId":{"type":"string","pattern":"^[a-z0-9-]{1,80}:[a-z0-9-]{1,80}$"},"authorityId":{"type":"string","pattern":"^[a-z0-9-]{1,80}$"},"recordId":{"type":"string","pattern":"^[a-z0-9-]{1,80}:record-[a-f0-9]{32}$"},"kind":{"type":"string","const":"permit-listed-in-report"},"reportRevision":{"type":"string","pattern":"^pr-[a-f0-9]{32}$"},"permitNumber":{"type":"string","pattern":"^\\d{2}-\\d{4}$"},"permitType":{"anyOf":[{"type":"string","pattern":"^[A-Z][A-Z0-9-]{0,39}$"},{"type":"null"}]},"officialUrl":{"type":"string","maxLength":2048,"format":"uri"}},"required":["id","municipalityId","sourceId","authorityId","recordId","kind","reportRevision","permitNumber","permitType","officialUrl"],"additionalProperties":false}]}}}}