-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenapi.json
3181 lines (3181 loc) · 114 KB
/
openapi.json
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
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"components": {
"headers": {
"X-API-Credits": {
"description": "The cost of this API call, in credits",
"schema": {
"type": "integer"
}
}
},
"responses": {
"BadRequest400": {
"content": {
"application/json": {
"example": {
"description": "The given request body could not be parsed as JSON.",
"status": 400,
"title": "Request body could not be parsed as JSON",
"type": "https://www.humangraphics.io/problems/invalid-json"
},
"schema": {
"$ref": "#/components/schemas/ErrorMessage"
}
}
},
"description": "Bad request. The given request body could not be parsed as JSON."
},
"ContentTooLarge413": {
"content": {
"application/json": {
"example": {
"detail": "The request body is too large. Request bodies must not exceed 1MB in size.",
"status": 413,
"title": "Content too large",
"type": "https://www.humangraphics.io/problems/content-too-large"
},
"schema": {
"$ref": "#/components/schemas/ErrorMessage"
}
}
},
"description": "Content too large. Request bodies must not exceed 1MB in size."
},
"Forbidden403": {
"content": {
"application/json": {
"example": {
"detail": "This method is not included in the current API plan. Visit humangraphics.io to upgrade your plan.",
"status": 403,
"title": "Forbidden",
"type": "https://www.humangraphics.io/problems/forbidden"
},
"schema": {
"$ref": "#/components/schemas/ErrorMessage"
}
}
},
"description": "Forbidden. This method is not included in the current API plan. To gain access to this method, [upgrade the current plan](https://www.humangraphics.io/pricing) or [contact sales](mailto:[email protected])."
},
"NotAcceptable406": {
"content": {
"application/json": {
"example": {
"detail": "HTTP requests must accept responses with 'application/json' content type.",
"status": 406,
"title": "Not acceptable",
"type": "https://www.humangraphics.io/problems/not-acceptable"
},
"schema": {
"$ref": "#/components/schemas/ErrorMessage"
}
}
},
"description": "Not acceptable. HTTP requests must accept responses with 'application/json' content type."
},
"TooManyRequests429": {
"content": {
"application/json": {
"example": {
"detail": "The user has exceeded the current plan's rate limit.",
"status": 429,
"title": "Too Many Requests",
"type": "https://www.humangraphics.io/problems/too-many-requests"
},
"schema": {
"$ref": "#/components/schemas/ErrorMessage"
}
}
},
"description": "Too many requests. The user has exceeded the current plan's rate limit. To increase the available rate limit, [upgrade the current plan](https://www.humangraphics.io/pricing) or [contact sales](mailto:[email protected])."
},
"Unauthorized401": {
"content": {
"application/json": {
"example": {
"description": "This method requires valid credentials, but none were provided.",
"status": 401,
"title": "Unauthorized",
"type": "https://www.humangraphics.io/problems/unauthorized"
},
"schema": {
"$ref": "#/components/schemas/ErrorMessage"
}
}
},
"description": "Unauthorized. This method requires valid credentials, but none were provided."
},
"UnprocessableEntity422": {
"content": {
"application/json": {
"example": {
"detail": "Property 'items[0].request.text' value is not of the correct type",
"status": 422,
"title": "Invalid request body",
"type": "https://www.humangraphics.io/problems/invalid-request-body"
},
"schema": {
"$ref": "#/components/schemas/ErrorMessage"
}
}
},
"description": "Unprocessable entity. The request body could not be parsed into the required input. The detail message should provide more information about problem and how to fix it."
},
"UnsupportedMediaType415": {
"content": {
"application/json": {
"example": {
"detail": "This method expects request bodies with content type 'application/json'. Did you forget to set the 'Content-Type' request header?",
"status": 415,
"title": "Unsupported media type",
"type": "https://www.humangraphics.io/problems/unsupported-media-type"
},
"schema": {
"$ref": "#/components/schemas/ErrorMessage"
}
}
},
"description": "Unsupported media type. This method expects request bodies with content type 'application/json'. Did you forget to set the 'Content-Type' request header?"
}
},
"schemas": {
"Age": {
"description": "A person's age in whole years, bucketed into ranges. For example, a person is considered 25 years old starting at midnight on their 25th birthday, inclusive, until midnight on their 26th birthday, exclusive.\n\n* `under18` - The person's age is strictly less than 18 years\n* `from18To24` - The person's age is from 18 to 24 years, inclusive\n* `from25To34` - The person's age is from 25 to 34 years, inclusive\n* `from35To44` - The person's age is from 35 to 44 years, inclusive\n* `from45To54` - The person's age is from 45 to 54 years, inclusive\n* `from55To64` - The person's age is from 55 to 64 years, inclusive\n* `over65` - The person's age is greater than or equal to 65 years",
"enum": [
"under18",
"from18To24",
"from25To34",
"from35To44",
"from45To54",
"from55To64",
"over65"
],
"type": "string"
},
"AgeEstimate": {
"description": "A discrete probability distribution modeling one person's likely age",
"properties": {
"from18To24": {
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"from25To34": {
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"from35To44": {
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"from45To54": {
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"from55To64": {
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"over65": {
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"under18": {
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
}
},
"type": "object"
},
"AnalyzeHumanFaceOutcome": {
"description": "* `success` - The analysis of the indicated or only face in the image succeeded.\n* `failureNoSuchFace` - There is no face in the given image at the given region\n* `failureNoFaces` - The analysis failed because either (a) there are no faces in the image, or (b) there is no face in the given region.\n* `failureTooManyFaces` - The analysis failed because there is more than one face in the given image, or in the indicated region of the given image.\n* `failureImageTooBig` - The analysis failed because the image exceeded the maximum size, in pixels.\n* `failureBadImage` - The analysis failed because the image could not be understood.\n",
"enum": [
"success",
"failureNoSuchFace",
"failureNoFaces",
"failureTooManyFaces",
"failureImageTooBig",
"failureBadImage"
],
"type": "string"
},
"AnalyzeHumanRequest": {
"description": "A request to the `analyzeHuman` endpoint. At least one of `locationNameText`, `locationName`, `humanNameText`, `humanName`, `humanFaceImage`, and `humanFace` must be given.\n\nThe `locationNameText` property is **deprecated**. Use the `locationName` property instead. If both `locationNameText` and `locationName` are given, then `locationNameText` is ignored.\n\nThe `humanNameText` property is **deprecated**. Use the `humanName` property instead. If both `humanNameText` and `humanName` are given, then `humanNameText` is ignored.\n\nThe `humanFaceImage` and `humanFaceRegion` properties are **deprecated**. Use the `humanFace` property instead. If both `humanFace` and `humanFaceImage` are given, then `humanFaceImage` and `humanFaceRegion` are both ignored.\n",
"properties": {
"hl": {
"description": "The primary language in which to return labels. The language should be provided as an [ISO 639-1 code](https://en.wikipedia.org/wiki/ISO_639-1). If provided, then the first name of each location will be in the given language, if such a name exists. Names in other languages may also be included in the response. Unrecognized languages are ignored.",
"maxLength": 2,
"type": "string"
},
"humanFace": {
"$ref": "#/components/schemas/HumanFaceInput"
},
"humanFaceImage": {
"$ref": "#/components/schemas/Image"
},
"humanFaceRegion": {
"$ref": "#/components/schemas/ImageRegion"
},
"humanName": {
"$ref": "#/components/schemas/HumanNameInput"
},
"humanNameText": {
"description": "The human name to parse. *Deprecated. Use the `humanName` property instead.*",
"maxLength": 240,
"type": "string"
},
"locationName": {
"$ref": "#/components/schemas/LocationNameInput"
},
"locationNameText": {
"description": "The location name to parse. *Deprecated. Use the `locationName` property instead.*",
"maxLength": 240,
"type": "string"
}
},
"type": "object"
},
"AnalyzeHumanResponse": {
"description": "A response from the `analyzeHuman` endpoint",
"properties": {
"age": {
"$ref": "#/components/schemas/Age"
},
"ageEstimate": {
"$ref": "#/components/schemas/AgeEstimate"
},
"country": {
"$ref": "#/components/schemas/Country"
},
"countryEstimate": {
"$ref": "#/components/schemas/CountryEstimate"
},
"gender": {
"$ref": "#/components/schemas/Gender"
},
"genderEstimate": {
"$ref": "#/components/schemas/GenderEstimate"
},
"humanFaceConfidence": {
"description": "The likelihood that the analyzed region actually contains a face, as opposed to a different object that resembles a face.",
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"humanFaceOutcome": {
"$ref": "#/components/schemas/AnalyzeHumanFaceOutcome"
},
"humanNameConfidence": {
"description": "The likelihood that the name match is the correct parse among all valid, successful parses for this name",
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"humanNameMatch": {
"$ref": "#/components/schemas/HumanNameMatch"
},
"locationNameConfidence": {
"description": "The likelihood that the location match is the correct parse among all valid, successful parses for this location",
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"locationNameMatch": {
"$ref": "#/components/schemas/LocationNameMatch"
},
"race": {
"$ref": "#/components/schemas/Race"
},
"raceEstimate": {
"$ref": "#/components/schemas/RaceEstimate"
}
},
"type": "object"
},
"AnalyzeInstagramSocialProfileRequest": {
"properties": {
"handle": {
"description": "The user-readable screen name of the Instagram account to analyze. Only one of `id` and `handle` should be given.",
"maxLength": 80,
"type": "string"
},
"id": {
"description": "The numerical ID of the Instagram account to analyze. Only one of `id` and `handle` should be given. If both `id` and `handle` are given, then `id` is used.",
"maxLength": 80,
"type": "string"
}
},
"type": "object"
},
"AnalyzeSocialProfileResponse": {
"properties": {
"age": {
"$ref": "#/components/schemas/Age"
},
"ageEstimate": {
"$ref": "#/components/schemas/AgeEstimate"
},
"country": {
"$ref": "#/components/schemas/Country"
},
"countryEstimate": {
"$ref": "#/components/schemas/CountryEstimate"
},
"gender": {
"$ref": "#/components/schemas/Gender"
},
"genderEstimate": {
"$ref": "#/components/schemas/GenderEstimate"
},
"humanFaceConfidence": {
"description": "The likelihood that the analyzed region actually contains a face, as opposed to a different object that resembles a face.",
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"humanFaceOutcome": {
"$ref": "#/components/schemas/AnalyzeHumanFaceOutcome"
},
"humanNameConfidence": {
"description": "The likelihood that the name match is the correct parse among all valid, successful parses for this name",
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"humanNameMatch": {
"$ref": "#/components/schemas/HumanNameMatch"
},
"locationNameConfidence": {
"description": "The likelihood that the location match is the correct parse among all valid, successful parses for this location",
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"locationNameMatch": {
"$ref": "#/components/schemas/LocationNameMatch"
},
"race": {
"$ref": "#/components/schemas/Race"
},
"raceEstimate": {
"$ref": "#/components/schemas/RaceEstimate"
},
"socialProfile": {
"$ref": "#/components/schemas/SocialProfile"
},
"socialProfileExists": {
"description": "Whether or not the requested social profile exists.",
"type": "boolean"
},
"socialProfilePicture": {
"$ref": "#/components/schemas/ImageAndDescription"
}
},
"type": "object"
},
"AnalyzeThreadsSocialProfileRequest": {
"properties": {
"handle": {
"description": "The user-readable screen name of the Threads account to analyze. Only one of `id` and `handle` should be given.",
"maxLength": 80,
"type": "string"
},
"id": {
"description": "The numerical ID of the Threads account to analyze. Only one of `id` and `handle` should be given. If both `id` and `handle` are given, then `id` is used.",
"maxLength": 80,
"type": "string"
}
},
"type": "object"
},
"AnalyzeTikTokSocialProfileRequest": {
"properties": {
"handle": {
"description": "The user-readable screen name of the TikTok account to analyze.",
"maxLength": 80,
"type": "string"
}
},
"required": [
"handle"
],
"type": "object"
},
"AnalyzeTwitterSocialProfileRequest": {
"properties": {
"handle": {
"description": "The user-readable screen name of the Twitter account to analyze. Only one of `id` and `handle` should be given.",
"maxLength": 80,
"type": "string"
},
"id": {
"description": "The numerical ID of the Twitter account to analyze. Only one of `id` and `handle` should be given. If both `id` and `handle` are given, then `id` is used.",
"maxLength": 80,
"type": "string"
}
},
"type": "object"
},
"BinaryImageAttributes": {
"properties": {
"bytes": {
"description": "The image represented as base64-encoded binary data. The original image may not exceed 100KB in size.",
"format": "byte",
"maxLength": 715500,
"type": "string"
}
},
"required": [
"bytes"
],
"type": "object"
},
"CityLocation": {
"description": "The city part of a location match.",
"properties": {
"coordinates": {
"$ref": "#/components/schemas/Coordinates"
},
"country": {
"$ref": "#/components/schemas/Country"
},
"id": {
"description": "The ID of this city, which is an arbitrary value unrelated to the city itself.",
"format": "City",
"type": "string"
},
"names": {
"description": "The name(s) of this location in various languages. If a host language (`hl`) was requested, the the first element in this array will be the name of the location in the given language, if it exists. This list of names is never empty.",
"items": {
"$ref": "#/components/schemas/LocalizedText"
},
"minItems": 1,
"type": "array"
},
"region": {
"$ref": "#/components/schemas/State"
},
"state": {
"$ref": "#/components/schemas/State"
}
},
"required": [
"country",
"id",
"names"
],
"type": "object"
},
"Coordinates": {
"description": "A latitude/longitude point in the WGS84 coordinating system.",
"properties": {
"latitude": {
"format": "double",
"maximum": 180,
"minimum": -180,
"type": "number"
},
"longitude": {
"format": "double",
"maximum": 180,
"minimum": -180,
"type": "number"
}
},
"required": [
"latitude",
"longitude"
],
"type": "object"
},
"Country": {
"description": "An ISO 3166-1 alpha-2 country code.",
"format": "country",
"type": "string"
},
"CountryEstimate": {
"additionalProperties": {
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"description": "A discrete probability distribution modeling one person's likely country of origin. Keys are [ISO 3166-1 alpha-2 codes](https://en.wikipedia.org/wiki/ISO_3166-1), e.g., `US`.",
"type": "object"
},
"CountryLocation": {
"description": "The country part of a location match.",
"properties": {
"coordinates": {
"$ref": "#/components/schemas/Coordinates"
},
"id": {
"$ref": "#/components/schemas/Country"
},
"names": {
"description": "The name(s) of this location in various languages. If a host language (`hl`) was requested, the the first element in this array will be the name of the location in the given language, if it exists. This list of names is never empty.",
"items": {
"$ref": "#/components/schemas/LocalizedText"
},
"minItems": 1,
"type": "array"
}
},
"required": [
"id",
"names"
],
"type": "object"
},
"DetectHumanFacesOutcome": {
"description": "* `success` - The detection of faces in the image succeeded.\n* `failureImageTooBig` - The detection failed because the image was too large. Images may be up to 4096 x 4096 pixels in size.\n* `failureBadImage` - The detection failed because the image could not be understood.\n",
"enum": [
"success",
"failureImageTooBig",
"failureBadImage"
],
"type": "string"
},
"DetectedHumanFace": {
"description": "A region of an image containing a likely human face",
"properties": {
"region": {
"$ref": "#/components/schemas/ImageRegion"
}
},
"type": "object"
},
"DoubleBarreledHumanNamePartAttributes": {
"description": "A [double-barreled](https://en.wikipedia.org/wiki/Double-barrelled_name), or hyphenated, name, e.g., \"Louis-Dreyfus\" in \"Julia Louis-Dreyfus.\" Both given names and family names may be double-barreled. The `firstPart` and `secondPart` properties both contain a `HumanNamePart` of type `single`.\n",
"properties": {
"firstPart": {
"$ref": "#/components/schemas/DoubleBarreledHumanNameSubpart"
},
"secondPart": {
"$ref": "#/components/schemas/DoubleBarreledHumanNameSubpart"
}
},
"required": [
"firstPart",
"secondPart"
],
"type": "object"
},
"DoubleBarreledHumanNameSubpart": {
"description": "One part of a name match",
"properties": {
"matchedText": {
"description": "The portion of text from the given input that was matched to this name",
"maxLength": 80,
"type": "string"
},
"singleBarreledHumanNamePartAttributes": {
"$ref": "#/components/schemas/SingleBarreledHumanNamePartAttributes"
},
"type": {
"$ref": "#/components/schemas/HumanNamePartType"
}
},
"required": [
"matchedText",
"type"
],
"type": "object"
},
"ErrorMessage": {
"properties": {
"detail": {
"type": "string"
},
"instance": {
"type": "string"
},
"status": {
"format": "int32",
"type": "integer"
},
"title": {
"type": "string"
},
"type": {
"format": "url",
"type": "string"
}
},
"type": "object"
},
"FacetedHumanNameInputAttributes": {
"description": "A full human name represented as two facets: `givenName` and `familyName`. At least one of `givenName` and `familyName` must be given.\n",
"properties": {
"familyName": {
"description": "The family part of the name",
"maxLength": 80,
"type": "string"
},
"givenName": {
"description": "The given part of the name",
"maxLength": 80,
"type": "string"
}
},
"type": "object"
},
"FacetedLocationNameInputAttributes": {
"description": "A full location name represented as three facets: country, state, and city. Each facet is unstructured. At least one of country, state, and city must be given.\n",
"properties": {
"city": {
"maxLength": 80,
"type": "string"
},
"country": {
"maxLength": 80,
"type": "string"
},
"state": {
"maxLength": 80,
"type": "string"
}
},
"type": "object"
},
"FreeHumanNamePartAttributes": {
"description": "HumanGraphics uses a statistical name parser, so most name parts are backed by statistical evidence. However, names are not a \"closed\" system, so rare names, new names, and novel spellings of existing names all must be matched. Therefore, \"free\" name parts that \"look like\" part of a name can be accepted based on syntax as opposed to training.\n",
"properties": {},
"type": "object"
},
"Gender": {
"description": "One person's [gender](https://en.wikipedia.org/wiki/Gender",
"enum": [
"male",
"female"
],
"type": "string"
},
"GenderEstimate": {
"description": "A discrete probability distribution modeling one person's likely self-identified gender",
"properties": {
"female": {
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"male": {
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
}
},
"type": "object"
},
"HumanFaceAnalyzeRequest": {
"description": "A request to the `analyzeHumanFace` endpoint",
"properties": {
"image": {
"$ref": "#/components/schemas/Image"
},
"region": {
"$ref": "#/components/schemas/ImageRegion"
}
},
"required": [
"image"
],
"type": "object"
},
"HumanFaceAnalyzeResponse": {
"description": "A response to the `analyzeHumanFace` endpoint",
"properties": {
"age": {
"$ref": "#/components/schemas/Age"
},
"ageEstimate": {
"$ref": "#/components/schemas/AgeEstimate"
},
"confidence": {
"description": "The likelihood that the analyzed region actually contains a face, as opposed to a different object that resembles a face.",
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"gender": {
"$ref": "#/components/schemas/Gender"
},
"genderEstimate": {
"$ref": "#/components/schemas/GenderEstimate"
},
"image": {
"$ref": "#/components/schemas/ImageDescription"
},
"outcome": {
"$ref": "#/components/schemas/AnalyzeHumanFaceOutcome"
},
"race": {
"$ref": "#/components/schemas/Race"
},
"raceEstimate": {
"$ref": "#/components/schemas/RaceEstimate"
}
},
"type": "object"
},
"HumanFaceDetectRequest": {
"description": "A request to the `detectHumanFaces` endpoint",
"properties": {
"image": {
"$ref": "#/components/schemas/Image"
}
},
"required": [
"image"
],
"type": "object"
},
"HumanFaceDetectResponse": {
"description": "A response from the `detectHumanFaces` endpoint.",
"properties": {
"detectedFaces": {
"items": {
"$ref": "#/components/schemas/DetectedHumanFace"
},
"type": "array"
},
"image": {
"$ref": "#/components/schemas/ImageDescription"
},
"outcome": {
"$ref": "#/components/schemas/DetectHumanFacesOutcome"
}
},
"type": "object"
},
"HumanFaceInput": {
"description": "A human face represented as an image with an optional region annotation indicating which portion of the image contains the face of interest. If the given image contains exactly one face, then the `region` is optional. Otherwise, if the image contains more than one face, then the `region` field is required in order for the face analysis to succeed. If given, this value should match a region returned from a previous call to the `detectHumanFaces` endpoint for the given image.\n",
"properties": {
"image": {
"$ref": "#/components/schemas/Image"
},
"region": {
"$ref": "#/components/schemas/ImageRegion"
}
},
"required": [
"humanFaceImage"
],
"type": "object"
},
"HumanNameAnalyzeBulkRequest": {
"description": "A request to the `analyzeHumanNameBulk` endpoint.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/HumanNameAnalyzeBulkRequestItem"
},
"maxItems": 10,
"minItems": 1,
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
},
"HumanNameAnalyzeBulkRequestItem": {
"description": "One request in a `HumanNameAnalyzeBulkRequest`.",
"properties": {
"id": {
"description": "An identifier for this item within its bulk request. Must be unique among all items in the request.",
"maxLength": 80,
"minLength": 1,
"type": "string"
},
"request": {
"$ref": "#/components/schemas/HumanNameAnalyzeRequest"
}
},
"required": [
"id",
"request"
],
"type": "object"
},
"HumanNameAnalyzeBulkResponse": {
"description": "A response from the `analyzeHumanNameBulk` endpoint.",
"properties": {
"items": {
"items": {
"$ref": "#/components/schemas/HumanNameAnalyzeBulkResponseItem"
},
"type": "array"
}
},
"required": [
"items"
],
"type": "object"
},
"HumanNameAnalyzeBulkResponseItem": {
"description": "One response in a `HumanNameAnalyzeBulkResponse`.",
"properties": {
"id": {
"description": "The id of the corresponding operation in the bulk request.",
"maxLength": 80,
"minLength": 1,
"type": "string"
},
"response": {
"$ref": "#/components/schemas/HumanNameAnalyzeResponse"
}
},
"required": [
"id",
"response"
],
"type": "object"
},
"HumanNameAnalyzeRequest": {
"description": "A request to the `analyzeHumanName` endpoint",
"properties": {
"countryHint": {
"$ref": "#/components/schemas/Country"
},
"familyName": {
"description": "The family name to analyze",
"maxLength": 80,
"type": "string"
},
"givenName": {
"description": "The given name to analyze",
"maxLength": 80,
"type": "string"
}
},
"required": [
"familyName",
"givenName"
],
"type": "object"
},
"HumanNameAnalyzeResponse": {
"description": "A response to the `analyzeHumanName` endpoint",
"properties": {
"age": {
"$ref": "#/components/schemas/Age"
},
"ageEstimate": {
"$ref": "#/components/schemas/AgeEstimate"
},
"confidence": {
"description": "The likelihood that all matched parts are correct",
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"country": {
"$ref": "#/components/schemas/Country"
},
"countryEstimate": {
"$ref": "#/components/schemas/CountryEstimate"
},
"familyNameConfidence": {
"description": "The likelihood that the family name match is the correct parse among all valid, successful parses for this family name",
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"familyNameMatch": {
"$ref": "#/components/schemas/HumanNamePart"
},
"gender": {
"$ref": "#/components/schemas/Gender"
},
"genderEstimate": {
"$ref": "#/components/schemas/GenderEstimate"
},
"givenNameConfidence": {
"description": "The likelihood that the given name match is the correct parse among all valid, successful parses for this given name",
"format": "float",
"maximum": 1,
"minimum": 0,
"type": "number"
},
"givenNameMatch": {
"$ref": "#/components/schemas/HumanNamePart"
},
"match": {
"$ref": "#/components/schemas/HumanNameMatch"
},
"race": {
"$ref": "#/components/schemas/Race"
},
"raceEstimate": {
"$ref": "#/components/schemas/RaceEstimate"
}
},
"type": "object"
},
"HumanNameInput": {
"description": "A human name input",
"properties": {
"countryHint": {
"$ref": "#/components/schemas/Country"
},
"facetedHumanNameInputAttributes": {
"$ref": "#/components/schemas/FacetedHumanNameInputAttributes"
},
"textHumanNameInputAttributes": {
"$ref": "#/components/schemas/TextHumanNameInputAttributes"
},
"type": {
"$ref": "#/components/schemas/HumanNameInputType"
}
},
"required": [
"type"
],
"type": "object"
},
"HumanNameInputType": {
"description": "* `text` - A full, unparsed name, e.g., \"Fox Mulder\"\n* `faceted` - A two-part human name represented as two facets, given name and family name, e.g., given name: \"Fox\", family name: \"Mulder\"\n",
"enum": [
"text",
"faceted"
],
"type": "string"
},
"HumanNameMatch": {
"description": "A match of one human name",
"properties": {
"familyName": {
"$ref": "#/components/schemas/HumanNamePart"
},
"givenName": {
"$ref": "#/components/schemas/HumanNamePart"
},
"middleName": {
"$ref": "#/components/schemas/HumanNamePart"
},
"nickName": {
"$ref": "#/components/schemas/HumanNamePart"
},
"secondFamilyName": {
"$ref": "#/components/schemas/HumanNamePart"
},
"secondMiddleName": {
"$ref": "#/components/schemas/HumanNamePart"
},
"template": {
"$ref": "#/components/schemas/HumanNameTemplatePreview"
}
},
"type": "object"
},
"HumanNameMultiparseBulkRequest": {
"description": "A request to the `multiparseHumanNamesBulk` endpoint.",
"properties": {
"items": {