full diff

com.mytinygiraffe.wx.alert.v1

From
bafyreicc2xv5ayjwgm23hyci6ikzlyektqhfbvne4ze4qlizwzketm4ud4 indexed 2026-08-26 19:26 UTC View this version
To
bafyreig4uluncwpjix2h2mv54kk5ph7lofgruxwua2pcvfa3whvdsndmm4 indexed 2026-08-26 19:38 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
5 "description": "TODO: describe purpose of this schema",
5 "description": "A weather alert issued by the US National Weather Service",
66 "key": "any",
77 "record": {
88 "properties": {
99 "geometry": {
10 "description": "GeoJSON polygon or multipolygon",
1011 "properties": {
1112 "coordinates": {
1213 "description": "A GeoJSON polygon or multipolygon. Please refer to IETF RFC 7946 for information on the GeoJSON format. To comply with the AT Proto Lexicon schema, the coordinates are floating-point numbers encoded as decimal strings.",
1314 "type": "unknown"
1415 },
1516 "type": {
1617 "enum": [
1718 "Polygon",
1819 "MultiPolygon"
1920 ],
2021 "type": "string"
2122 }
2223 },
2324 "required": [
2425 "type",
2526 "coordinates"
2627 ],
27 "title": "GeoJSON Polygon",
2828 "type": "object"
2929 },
3030 "parsed": {
3131 "description": "Text fields from the original alert, parsed",
3232 "properties": {
3333 "area": {
3434 "description": "The original alert area split into individual locations instead of a single long string",
3535 "items": {
3636 "description": "One place covered by this area",
3737 "type": "string"
3838 },
3939 "type": "array"
4040 },
4141 "description": {
4242 "description": "The original alert description parsed into Markdown, with locations moved to the locations property",
4343 "type": "string"
4444 },
4545 "instruction": {
4646 "instruction": "The original alert instruction with extraneous whitespace removed",
4747 "type": "string"
4848 },
4949 "locations": {
5050 "description": "The regions and counties affected by this alert, extracted from the original alert description",
5151 "properties": {
5252 "cities": {
5353 "description": "A list of cities affected by the alert, extracted from the original alert description",
5454 "items": {
5555 "type": "string"
5656 },
5757 "type": "array"
5858 },
5959 "regions": {
6060 "items": {
6161 "properties": {
6262 "area": {
6363 "description": "A description of a geographical region, such as 'northeastern Iowa'",
6464 "type": "string"
6565 },
6666 "counties": {
6767 "description": "A list of counties or county-equivalents in the region",
6868 "items": {
6969 "type": "string"
7070 },
7171 "type": "array"
7272 }
7373 },
7474 "type": "object"
7575 },
7676 "type": "array"
7777 }
7878 },
7979 "type": "object"
8080 }
8181 },
8282 "type": "object"
8383 },
8484 "properties": {
85 "description": "Alert properties, precisely as provided by api.weather.gov",
8586 "properties": {
8687 "affectedZones": {
8788 "description": "An array of API links for zones affected by the alert. This is an API-specific extension field and is not part of the CAP specification.\n",
8889 "items": {
8990 "format": "uri",
9091 "type": "string"
9192 },
9293 "type": "array"
9394 },
9495 "areaDesc": {
9596 "description": "A textual description of the area affected by the alert.",
9697 "type": "string"
9798 },
9899 "category": {
99100 "description": "The code denoting the category of the subject event of the alert message.",
100101 "enum": [
101102 "Met",
102103 "Geo",
103104 "Safety",
104105 "Security",
105106 "Rescue",
106107 "Fire",
107108 "Health",
108109 "Env",
109110 "Transport",
110111 "Infra",
111112 "CBRNE",
112113 "Other"
113114 ],
114115 "type": "string"
115116 },
116117 "certainty": {
117118 "enum": [
118119 "Observed",
119120 "Likely",
120121 "Possible",
121122 "Unlikely",
122123 "Unknown"
123124 ],
124125 "type": "string"
125126 },
126127 "code": {
127128 "description": "The code denoting the special handling of the alert message.",
128129 "type": "string"
129130 },
130131 "description": {
131132 "description": "The text describing the subject event of the alert message.",
132133 "type": "string"
133134 },
134135 "effective": {
135136 "description": "The effective time of the information of the alert message.",
136137 "format": "datetime",
137138 "type": "string"
138139 },
139140 "ends": {
140141 "description": "The expected end time of the subject event of the alert message.",
141142 "format": "datetime",
142143 "type": "string"
143144 },
144145 "event": {
145146 "description": "The text denoting the type of the subject event of the alert message.",
146147 "type": "string"
147148 },
148149 "eventCode": {
149150 "additionalProperties": {
150151 "items": {},
151152 "type": "array"
152153 },
153154 "description": "System-specific code identifiying the event type of the alert message The keys in this object correspond to eventCode definitions in the NWS CAP specification.\n",
154155 "type": "object"
155156 },
156157 "expires": {
157158 "description": "The expiry time of the information of the alert message.",
158159 "format": "datetime",
159160 "type": "string"
160161 },
161162 "geocode": {
162163 "description": "Lists of codes for NWS public zones and counties affected by the alert.",
163164 "properties": {
164165 "SAME": {
165166 "description": "A list of SAME (Specific Area Message Encoding) codes for affected counties.",
166167 "items": {
167168 "pattern": "^\\d{6}$",
168169 "type": "string"
169170 },
170171 "type": "array"
171172 },
172173 "UGC": {
173174 "description": "A list of NWS public zone or county identifiers.",
174175 "items": {
175176 "description": "UGC identifier for a NWS forecast zone or county.\nThe first two letters will correspond to either a state code or marine area code (see #/components/schemas/StateTerritoryCode and #/components/schemas/MarineAreaCode for lists of valid letter combinations).\nThe third letter will be Z for public/fire zone or C for county.",
176177 "pattern": "^(A[KLMNRSZ]|C[AOT]|D[CE]|F[LM]|G[AMU]|I[ADLN]|K[SY]|L[ACEHMOS]|M[ADEHINOPST]|N[CDEHJMVY]|O[HKR]|P[AHKMRSWZ]|S[CDL]|T[NX]|UT|V[AIT]|W[AIVY]|[HR]I)[CZ]\\d{3}$",
177178 "type": "string"
178179 },
179180 "type": "array"
180181 }
181182 },
182183 "type": "object"
183184 },
184185 "headline": {
185186 "description": "The text headline of the alert message.",
186187 "type": "string"
187188 },
188189 "id": {
189190 "description": "The identifier of the alert message.",
190191 "type": "string"
191192 },
192193 "instruction": {
193194 "description": "The text describing the recommended action to be taken by recipients of the alert message.\n",
194195 "type": "string"
195196 },
196197 "language": {
197198 "description": "The code denoting the language of the info sub-element of the alert message.",
198199 "type": "string"
199200 },
200201 "messageType": {
201202 "enum": [
202203 "Alert",
203204 "Update",
204205 "Cancel",
205206 "Ack",
206207 "Error"
207208 ],
208209 "type": "string"
209210 },
210211 "note": {
211212 "description": "The text note accompanying the alert message. Per CAP spec, this should accompany alerts with a status of \"Test\".\n",
212213 "type": "string"
213214 },
214215 "onset": {
215216 "description": "The expected time of the beginning of the subject event of the alert message.",
216217 "format": "datetime",
217218 "type": "string"
218219 },
219220 "parameters": {
220221 "additionalProperties": {
221222 "items": {},
222223 "type": "array"
223224 },
224225 "description": "System-specific additional parameters associated with the alert message.\nThe keys in this object correspond to parameter definitions in the NWS CAP specification.\n",
225226 "type": "object"
226227 },
227228 "references": {
228229 "description": "A list of prior alerts that this alert updates or replaces.",
229230 "items": {
230231 "properties": {
231232 "id": {
232233 "description": "An API link to the prior alert.",
233234 "format": "uri",
234235 "type": "string"
235236 },
236237 "identifier": {
237238 "description": "The identifier of the alert message.",
238239 "type": "string"
239240 },
240241 "sender": {
241242 "description": "The sender of the prior alert.",
242243 "type": "string"
243244 },
244245 "sent": {
245246 "description": "The time the prior alert was sent.",
246247 "format": "datetime",
247248 "type": "string"
248249 }
249250 },
250251 "type": "object"
251252 },
252253 "type": "array"
253254 },
254255 "response": {
255256 "description": "The code denoting the type of action recommended for the target audience.\nThis corresponds to responseType in the CAP specification.\n",
256257 "enum": [
257258 "Shelter",
258259 "Evacuate",
259260 "Prepare",
260261 "Execute",
261262 "Avoid",
262263 "Monitor",
263264 "Assess",
264265 "AllClear",
265266 "None"
266267 ],
267268 "type": "string"
268269 },
269270 "scope": {
270271 "description": "The code denoting the intended distribution of the alert message.",
271272 "enum": [
272273 "Public",
273274 "Restricted",
274275 "Private"
275276 ],
276277 "type": "string"
277278 },
278279 "sender": {
279280 "description": "Email address of the NWS webmaster.",
280281 "type": "string"
281282 },
282283 "senderName": {
283284 "description": "The text naming the originator of the alert message.",
284285 "type": "string"
285286 },
286287 "sent": {
287288 "description": "The time of the origination of the alert message.",
288289 "format": "datetime",
289290 "type": "string"
290291 },
291292 "severity": {
292293 "enum": [
293294 "Extreme",
294295 "Severe",
295296 "Moderate",
296297 "Minor",
297298 "Unknown"
298299 ],
299300 "type": "string"
300301 },
301302 "status": {
302303 "enum": [
303304 "Actual",
304305 "Exercise",
305306 "System",
306307 "Test",
307308 "Draft"
308309 ],
309310 "type": "string"
310311 },
311312 "urgency": {
312313 "enum": [
313314 "Immediate",
314315 "Expected",
315316 "Future",
316317 "Past",
317318 "Unknown"
318319 ],
319320 "type": "string"
320321 },
321322 "web": {
322323 "description": "The identifier of the hyperlink associating additional information within the alert message.",
323324 "type": "string"
324325 }
325326 },
326327 "type": "object"
327328 }
328329 },
329330 "required": [
330331 "geometry",
331332 "properties",
332333 "parsed"
333334 ],
334335 "type": "object"
335336 },
336337 "type": "record"
337338 }
338339 },
339340 "id": "com.mytinygiraffe.wx.alert.v1",
340341 "lexicon": 1
341342}

Compare other versions