-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathapiSchema.ts
953 lines (950 loc) · 28 KB
/
apiSchema.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
export interface paths {
"/clusters": {
get: {
parameters: {
query: {
/** The southwest and northeast corners of the bounding box in WGS84 decimal degrees, in the format `swlat,swlng|nelat,nelng`. Latitude must be in the interval [-85.0511, 85.0511] and longitude must be in the interval [-180, 180]. */
bounds: components["parameters"]["bounds"];
/** Zoom level, where the world is divided into a 2<sup>zoom</sup> x 2<sup>zoom</sup> grid. */
zoom?: components["parameters"]["zoom"];
/** Whether to include Locations imported from municipal tree inventories. */
muni?: components["parameters"]["muni"];
/** IDs of Types to include (all by default). */
types?: components["parameters"]["types"];
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Cluster"][];
};
};
};
};
};
"/imports": {
get: {
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Import"][];
};
};
};
};
};
"/imports/{id}": {
get: {
parameters: {
path: {
/** Import ID. */
id: components["parameters"]["import_id"];
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Import"];
};
};
};
};
};
"/users/{id}": {
get: {
parameters: {
path: {
/** User ID. */
id: components["parameters"]["user_id"];
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["User"];
};
};
};
};
};
"/locations": {
get: {
parameters: {
query: {
/** The southwest and northeast corners of the bounding box in WGS84 decimal degrees, in the format `swlat,swlng|nelat,nelng`. Latitude must be in the interval [-85.0511, 85.0511] and longitude must be in the interval [-180, 180]. */
bounds: components["parameters"]["bounds"];
/** Whether to include Locations imported from municipal tree inventories. */
muni?: components["parameters"]["muni"];
/** IDs of Types to include (all by default). */
types?: components["parameters"]["types"];
/** Whether to only return Locations with Types locally flagged as invasive species. Note that this parameter is not supported for filtering clusters. */
invasive?: components["parameters"]["invasive"];
/** Maximum number of Locations to return. */
limit?: number;
/** Offset from which to apply `limit`. */
offset?: number;
/** Center `latitude,longitude` in WGS84 decimal degrees. If provided, Locations are returned in order of increasing distance and the distance to each Location is returned. Longitude must be in the interval [-180, 180] and latitude in the interval [-90, 90]. */
center?: number[];
/** Whether to include the path to a review photo thumbnail, if available. */
photo?: boolean;
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["ListLocation"][];
};
};
};
};
/** A `review` can be included, in which case the result includes the `reviews` property. */
post: {
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Location"];
};
};
};
requestBody: {
content: {
"application/json": components["schemas"]["AddLocation"];
};
};
};
};
"/locations/count": {
get: {
parameters: {
query: {
/** The southwest and northeast corners of the bounding box in WGS84 decimal degrees, in the format `swlat,swlng|nelat,nelng`. Latitude must be in the interval [-85.0511, 85.0511] and longitude must be in the interval [-180, 180]. */
bounds: components["parameters"]["bounds"];
/** Whether to include Locations imported from municipal tree inventories. */
muni?: components["parameters"]["muni"];
/** IDs of Types to include (all by default). */
types?: components["parameters"]["types"];
/** Whether to only return Locations with Types locally flagged as invasive species. Note that this parameter is not supported for filtering clusters. */
invasive?: components["parameters"]["invasive"];
};
};
responses: {
/** Success */
200: {
content: {
"application/json": number;
};
};
};
};
};
"/locations/{id}": {
get: {
parameters: {
path: {
/** Location ID. */
id: components["parameters"]["location_id"];
};
query: {
/**
* Additional information to include.
* - reviews: Location reviews.
* - import: Imported dataset.
*/
embed?: ("reviews" | "import")[];
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Location"];
};
};
};
};
put: {
parameters: {
path: {
/** Location ID. */
id: components["parameters"]["location_id"];
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Location"];
};
};
};
requestBody: {
content: {
"application/json": components["schemas"]["EditLocation"];
};
};
};
};
"/locations/{id}/reviews": {
get: {
parameters: {
path: {
/** Location ID. */
id: components["parameters"]["location_id"];
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Review"];
};
};
};
};
post: {
parameters: {
path: {
/** Location ID. */
id: components["parameters"]["location_id"];
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Review"];
};
};
};
requestBody: {
content: {
"application/json": components["schemas"]["EditReview"];
};
};
};
};
"/locations/changes": {
get: {
parameters: {
query: {
/**
* Earliest UTC datetime of change (inclusive).
* @example 2024-11-09T00:00:00Z
*/
earliest?: string;
/**
* Latest UTC datetime of change (exclusive).
*/
latest?: string;
/** @description User ID of changes to return. */
user_id?: number;
/**
* Whether to filter changes within the foraging range of the user with `user_id`, rather than by the user.
*/
range?: boolean;
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["LocationChange"][];
};
};
};
};
};
"/photos": {
post: {
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Photo"];
};
};
};
requestBody: {
content: {
"multipart/form-data": {
/** File to upload (jpeg, png, webp, gif, or svg). Images are converted to jpeg and resized as needed to a maximum dimension of 2048 pixels. */
file: string;
};
};
};
};
};
"/reviews/{id}": {
get: {
parameters: {
path: {
/** Review ID. */
id: components["parameters"]["review_id"];
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Review"];
};
};
};
};
put: {
parameters: {
path: {
/** Review ID. */
id: components["parameters"]["review_id"];
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Review"];
};
};
};
requestBody: {
content: {
"application/json": components["schemas"]["EditReview"];
};
};
};
};
"/types": {
get: {
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Type"][];
};
};
};
};
post: {
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Type"][];
};
};
};
requestBody: {
content: {
"application/json": components["schemas"]["SubmitType"];
};
};
};
};
"/types/{id}": {
get: {
parameters: {
path: {
/** Type ID. */
id: components["parameters"]["type_id"];
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Type"];
};
};
};
};
};
"/types/counts": {
get: {
parameters: {
query: {
/** The southwest and northeast corners of the bounding box in WGS84 decimal degrees, in the format `swlat,swlng|nelat,nelng`. Latitude must be in the interval [-85.0511, 85.0511] and longitude must be in the interval [-180, 180]. */
bounds: components["parameters"]["bounds"];
/** Whether to include Locations imported from municipal tree inventories. */
muni?: components["parameters"]["muni"];
};
};
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["TypeCount"][];
};
};
};
};
};
"/reports": {
post: {
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Report"];
};
};
};
requestBody: {
content: {
"application/json": components["schemas"]["EditReport"];
};
};
};
};
"/user": {
get: {
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["User"];
};
};
};
};
/**
* - If a new email is provided, it is staged as unconfirmed (`unconfirmed_email`) and a confirmation email is sent to the new email. The previous email is replaced only once the new email is confirmed.
* - If a password is provided, it takes immediate effect. If it does not match the previous password, all refresh tokens not corresponding to the current access token are revoked.
* - In either case, the existing password is required (`password_confirmation`).
*/
put: {
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["User"];
};
};
};
requestBody: {
content: {
"application/json": {
name: components["schemas"]["EditUser"]["name"];
email: components["schemas"]["User"]["email"];
/** Password. */
password?: string;
/** Current password. Required for email and password change. */
password_confirmation?: string;
};
};
};
};
/**
* When first created, the account is not confirmed and cannot be used.
* An email is sent with a link that must be clicked to confirm the account.
*
* `email` cannot match (case-insensitive) the email of an existing user.
*/
post: {
responses: {
/** Success */
200: {
content: {
"application/json": {
message?: string;
};
};
};
};
requestBody: {
content: {
"application/json": {
email: components["schemas"]["User"]["email"];
password: paths["/user"]["put"]["requestBody"]["content"]["application/json"]["password"];
name?: components["schemas"]["EditUser"]["name"];
};
};
};
};
delete: {
responses: {
/** Success (no content) */
204: never;
};
};
};
"/user/confirmation": {
get: {
parameters: {
query: {
/** Email-confirmation token. */
token: string;
};
};
responses: {
/** Success */
200: {
content: {
"application/json": {
message?: string;
};
};
};
};
};
post: {
responses: {
/** Success */
200: {
content: {
"application/json": {
email: components["schemas"]["User"]["email"];
};
};
};
};
requestBody: {
content: {
"application/json": {
/** Email-confirmation token. */
token: string;
};
};
};
};
};
"/user/confirmation/retry": {
post: {
responses: {
/** Success */
200: {
content: {
"application/json": {
message?: string;
};
};
};
};
requestBody: {
content: {
"application/json": {
email: components["schemas"]["User"]["email"];
};
};
};
};
};
"/user/token": {
/** Follows the OAuth2 spec for password flow, which requires form data with `username` and `password`. */
post: {
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Token"];
};
};
};
requestBody: {
content: {
"multipart/form-data": {
username: components["schemas"]["User"]["email"];
password: paths["/user"]["put"]["requestBody"]["content"]["application/json"]["password"];
};
};
};
};
};
"/user/token/refresh": {
/** Follows the OAuth2 spec for refresh token flow, which requires form data with `grant_type: 'refresh_token'` (ignored) and `refresh_token`. */
post: {
responses: {
/** Success */
200: {
content: {
"application/json": components["schemas"]["Token"];
};
};
};
requestBody: {
content: {
"multipart/form-data": {
/** Refresh token. */
refresh_token: string;
/** Grant type. */
grant_type?: "refresh_token";
};
};
};
};
};
"/user/password": {
put: {
responses: {
/** Success */
200: {
content: {
"application/json": {
email?: components["schemas"]["User"]["email"];
};
};
};
};
requestBody: {
content: {
"application/json": {
/** Password-reset token. */
token: string;
password: paths["/user"]["put"]["requestBody"]["content"]["application/json"]["password"];
};
};
};
};
};
"/user/password/reset": {
post: {
responses: {
/** Success */
200: {
content: {
"application/json": {
message?: string;
};
};
};
};
requestBody: {
content: {
"application/json": {
email: components["schemas"]["User"]["email"];
};
};
};
};
};
}
export interface components {
schemas: {
IdField: {
/** Unique identifier. */
id: number;
};
LatLngFields: {
/** Latitude in WGS84 decimal degrees. */
lat?: number;
/** Longitude in WGS84 decimal degrees. */
lng?: number;
};
DateFields: {
/** Date and time created in format YYYY-MM-DDThh:mm:ss.sssZ. */
created_at: string;
/** Date and time last updated in format YYYY-MM-DDThh:mm:ss.sssZ. */
updated_at: string;
};
/** Number of Locations in an area. */
Cluster: components["schemas"]["LatLngFields"] & {
/** Number of Locations. Locations with multiple Types are counted as their number of Types. */
count: number;
};
/** Number of Location Types in an area. */
TypeCount: {
/** Type ID. */
id: number;
/** Number of Locations with that Type ID. */
count: number;
};
/** Type properties that can be edited. */
BaseType: {
/** Type ID of taxonomic parent. */
parent_id?: number | null;
/** Whether pending admin review. This is always true unless set to false by an admin (not implemented). */
pending?: boolean;
/**
* Scientific names, starting with the preferred synonym.
* - Genus (or higher rank): Prunus
* - Subgenus: Prunus subg. Amygdalus
* - Species: Prunus domestica
* - Subspecies: Prunus domestica subsp. domestica, Prunus persica var. nucipersica, Brassica oleracea var. capitata f. rubra
* - Hybrid: Prunus x eminens, Prunus cerasus x Prunus fruticosa
* - Cultivar: Prunus persica 'George IV', Prunus domestica subsp. domestica 'Italian', Acer truncatum x platanoides 'Keithsform'
*/
scientific_names?: string[];
/**
* Taxonomic rank.
* - 0: Polyphyletic
* - 1: Kingdom
* - 2: Phylum
* - 3: Class
* - 4: Order
* - 5: Family
* - 6: Genus
* - 7: Multispecies
* - 8: Species
* - 9: Subspecies
*/
taxonomic_rank?: number | null;
/** Common names, starting with the preferred synonym, by language code (e.g. `en`) and optional region code (e.g. `en_us`). Currently, only `en` can be set. */
common_names?: { [key: string]: string[] };
/**Categories associated with the type */
categories?: string[];
};
/** Type properties that can be submitted. At least one name (in `common_names.en` or `scientific_names`) is required. */
SubmitType: components["schemas"]["BaseType"] & {
/** Submission notes. */
notes?: string | null;
};
/** All Type properties. */
Type: components["schemas"]["IdField"] &
components["schemas"]["DateFields"] &
components["schemas"]["BaseType"] & {
/**
* Links to more information, by resource code.
* - wikipedia: English Wikipedia (https://en.wikipedirg)
* - eat_the_weeds: Eat the Weeds (https://www.eattheweeds.com)
* - foraging_texas: Foraging Texas (https://www.foragingtexas.com)
* - urban_mushrooms: Urban Mushrooms (http://urbanmushrooms.com)
* - fruitipedia: Fruitipedia (http://www.fruitipedia.com)
* - usda: USDA Plants Database (https://plants.usda.gov)
*/
urls: { [key: string]: string };
};
ListLocation: components["schemas"]["IdField"] &
components["schemas"]["LatLngFields"] & {
/** Type IDs. */
type_ids: number[];
/** Distance in meters from provided centerpoint. */
distance?: number;
/** Path to review photo thumbnail, if available. */
photo?: { [key: string]: any };
};
/** Location properties that can be edited. */
EditLocation: components["schemas"]["LatLngFields"] & {
/** Type IDs. */
type_ids: number[];
/** Whether suspected to be wrong in some way and requires verification. */
unverified?: boolean;
/**
* Access level.
* - 0: Location is on my property.
* - 1: I have permission from the owner to add this Location.
* - 2: Location is on public land.
* - 3: Location is on private property but overhangs public property.
* - 4: Location is on private property.
*/
access?: (0 | 1 | 2 | 3 | 4) | null;
/** Description. */
description?: string | null;
/** First month in season (zero-based). */
season_start?: number;
/** Last month in season (zero-based). */
season_stop?: number;
};
/** Location properties that can be added. */
AddLocation: components["schemas"]["EditLocation"] & {
review?: components["schemas"]["EditReview"];
};
/** All Location properties. */
Location: components["schemas"]["IdField"] &
components["schemas"]["EditLocation"] &
components["schemas"]["DateFields"] & {
/** Author name. Either a hardcoded `author` or the current `name` of the associated User. */
author: string | null;
/** Address. Either provided for imported locations whose coordinates had to be geocoded from the address or reverse-geocoded from coordinates. */
address: string | null;
/** City (reverse-geocoded from coordinates). */
city: string | null;
/** State (reverse-geocoded from coordinates). */
state: string | null;
/** County (reverse-geocoded from coordinates). */
country: string | null;
/** Whether imported from a municipal tree inventory. */
muni: boolean;
/** Import ID. */
import_id?: number | null;
import?: components["schemas"]["Import"];
/** Location reviews. */
reviews?: components["schemas"]["Review"][];
};
LocationChange: {
/** Time of the change creation */
created_at: string;
/** Description of the change (e.g., added, updated, deleted) */
description: string;
/** Location ID */
location_id: number;
/** Latitude */
lat: number;
/**Longitude*/
lng: number;
/** Array of type IDs */
type_ids: number[];
/** Review ID */
review_id: number;
/** User ID */
user_id: number;
/** Author's name */
author: string;
/** City */
city: string;
/** State */
state: string;
/** Country */
country: string;
};
BaseReview: {
/** Comment. */
comment?: string | null;
/** Date visited in format YYYY-MM-DD. */
observed_on?: string | null;
/** Fruiting status. */
fruiting?: (0 | 1 | 2) | null;
/** Quality rating. */
quality_rating?: (0 | 1 | 2 | 3 | 4) | null;
/** Yield rating. */
yield_rating?: (0 | 1 | 2 | 3 | 4) | null;
};
/** Review properties that can be edited. */
EditReview: components["schemas"]["BaseReview"] & {
/** IDs of photos to link to the review. Previously linked photos are unlinked if their ids are omitted. Photos are ordered by the order of their ids. */
photo_ids?: number[];
};
/** Observations of and opinions about a Location. */
Review: components["schemas"]["IdField"] &
components["schemas"]["BaseReview"] &
components["schemas"]["DateFields"] & {
/** Location ID. */
location_id: number;
/** User ID. */
user_id: number | null;
/** Author name. Either a hardcoded `author` or the current `name` of the associated User. */
author: string | null;
photos: components["schemas"]["Photo"][];
};
/** Location photo. */
Photo: {
/** Photo ID. */
id: number;
/** Path to thumbnail (longest dimension <= 100 px). */
thumb: string;
/** Path to medium size file (longest dimension <= 300 px). */
medium: string;
/** Path to large size file (longest dimension <= 2048 px). */
original: string;
};
EditUser: {
/** Display name. */
name: string | null;
};
User: components["schemas"]["IdField"] &
components["schemas"]["DateFields"] &
components["schemas"]["EditUser"] & {
/** Email. */
email: string;
/** Date and time confirmed in format YYYY-MM-DDThh:mm:ss.sssZ. */
confirmed_at: string | null;
/**
* Roles.
* - user: Regular user.
* - admin: Administrator.
*/
roles: ("user" | "admin")[];
/** Email change pending confirmation. */
unconfirmed_email?: string;
};
/** Report properties that can be edited. */
EditReport: {
/** Location ID. */
location_id: number;
/**
* Problem code.
* - 0: Location is spam
* - 1: Location does not exist
* - 2: Location is a duplicate
* - 3: Inappropriate review photo
* - 4: Inappropriate review comment
* - 5: Other (explain below)
*/
problem_code: 0 | 1 | 2 | 3 | 4 | 5;
/** Comment. */
comment?: string | null;
/** Email to use for correspondence. If authenticated, defaults to the user's email. Otherwise, it is required. */
email?: string;
/** Name to use for correspondence. If authenticated, defaults to the user's name. */
name?: string | null;
};
/** Report of a problem with a Location. */
Report: components["schemas"]["IdField"] &
components["schemas"]["EditReport"] &
components["schemas"]["DateFields"] & {
/** ID of reporting User (if authenticated). */
reporter_id?: number | null;
/**
* Resolution code.
* - 0: Made no changes
* - 1: Edited the location
* - 2: Deleted the location
* - 3: Deleted the photo
* - 4: Deleted the review
* - 5: Hid the location
*/
resolution_code?: (0 | 1 | 2 | 3 | 4 | 5) | null;
/** Response comment. */
response?: string | null;
/** ID of responding User. */
responder_id?: number | null;
};
/** Imported dataset. */
Import: components["schemas"]["IdField"] &
components["schemas"]["DateFields"] & {
/** Name. */
name: string;
/** Path to a description of the data. */
url: string | null;
/** Description and import comments. */
comments: string | null;
/** License. */
license: string | null;
/** Whether a municipal or university tree inventory. */
muni: boolean;
/** Number of imported locations. */
location_count: number;
};
Token: {
/** Access token. */
access_token: string;
/** Token type. */
token_type: "bearer";
/** Seconds until the access token expires. It may expire earlier if revoked. */
expires_in: number;
/** Refresh token. */
refresh_token: string;
};
};
parameters: {
/** The southwest and northeast corners of the bounding box in WGS84 decimal degrees, in the format `swlat,swlng|nelat,nelng`. Latitude must be in the interval [-85.0511, 85.0511] and longitude must be in the interval [-180, 180]. */
bounds: number[][];
/** Zoom level, where the world is divided into a 2<sup>zoom</sup> x 2<sup>zoom</sup> grid. */
zoom: number;
/** Whether to include Locations imported from municipal tree inventories. */
muni: boolean;
/** IDs of Types to include (all by default). */
types: number[];
/** Whether to only return Locations with Types locally flagged as invasive species. Note that this parameter is not supported for filtering clusters. */
invasive: boolean;
/** Location ID. */
location_id: number;
/** Type ID. */
type_id: number;
/** Review ID. */
review_id: number;
/** User ID. */
user_id: number;
/** Import ID. */
import_id: number;
};
}
export interface operations {}