@dicebear/avataaars 9.2.2 → 9.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/schema.js CHANGED
@@ -5,481 +5,466 @@
5
5
  * File: https://www.figma.com/file/HBLdITkkTnLs4M09BmCe4h
6
6
  */
7
7
  export const schema = {
8
- "$schema": "http://json-schema.org/draft-07/schema#",
9
- "properties": {
10
- "accessories": {
11
- "type": "array",
12
- "items": {
13
- "type": "string",
14
- "enum": [
15
- "kurt",
16
- "prescription01",
17
- "prescription02",
18
- "round",
19
- "sunglasses",
20
- "wayfarers",
21
- "eyepatch"
22
- ]
8
+ $schema: 'http://json-schema.org/draft-07/schema#',
9
+ properties: {
10
+ accessories: {
11
+ type: 'array',
12
+ items: {
13
+ type: 'string',
14
+ enum: [
15
+ 'kurt',
16
+ 'prescription01',
17
+ 'prescription02',
18
+ 'round',
19
+ 'sunglasses',
20
+ 'wayfarers',
21
+ 'eyepatch',
22
+ ],
23
23
  },
24
- "default": [
25
- "kurt",
26
- "prescription01",
27
- "prescription02",
28
- "round",
29
- "sunglasses",
30
- "wayfarers",
31
- "eyepatch"
32
- ]
24
+ default: [
25
+ 'kurt',
26
+ 'prescription01',
27
+ 'prescription02',
28
+ 'round',
29
+ 'sunglasses',
30
+ 'wayfarers',
31
+ 'eyepatch',
32
+ ],
33
33
  },
34
- "accessoriesColor": {
35
- "type": "array",
36
- "items": {
37
- "type": "string",
38
- "pattern": "^(transparent|[a-fA-F0-9]{6})$"
34
+ accessoriesColor: {
35
+ type: 'array',
36
+ items: {
37
+ type: 'string',
38
+ pattern: '^(transparent|[a-fA-F0-9]{6})$',
39
39
  },
40
- "default": [
41
- "262e33",
42
- "65c9ff",
43
- "5199e4",
44
- "25557c",
45
- "e6e6e6",
46
- "929598",
47
- "3c4f5c",
48
- "b1e2ff",
49
- "a7ffc4",
50
- "ffdeb5",
51
- "ffafb9",
52
- "ffffb1",
53
- "ff488e",
54
- "ff5c5c",
55
- "ffffff"
56
- ]
40
+ default: [
41
+ '262e33',
42
+ '65c9ff',
43
+ '5199e4',
44
+ '25557c',
45
+ 'e6e6e6',
46
+ '929598',
47
+ '3c4f5c',
48
+ 'b1e2ff',
49
+ 'a7ffc4',
50
+ 'ffdeb5',
51
+ 'ffafb9',
52
+ 'ffffb1',
53
+ 'ff488e',
54
+ 'ff5c5c',
55
+ 'ffffff',
56
+ ],
57
57
  },
58
- "accessoriesProbability": {
59
- "type": "integer",
60
- "minimum": 0,
61
- "maximum": 100,
62
- "default": 10
58
+ accessoriesProbability: {
59
+ type: 'integer',
60
+ minimum: 0,
61
+ maximum: 100,
62
+ default: 10,
63
63
  },
64
- "backgroundColor": {
65
- "type": "array",
66
- "items": {
67
- "type": "string",
68
- "pattern": "^(transparent|[a-fA-F0-9]{6})$"
64
+ backgroundColor: {
65
+ type: 'array',
66
+ items: {
67
+ type: 'string',
68
+ pattern: '^(transparent|[a-fA-F0-9]{6})$',
69
69
  },
70
- "default": [
71
- "65c9ff"
72
- ]
70
+ default: ['65c9ff'],
73
71
  },
74
- "base": {
75
- "type": "array",
76
- "items": {
77
- "type": "string",
78
- "enum": [
79
- "default"
80
- ]
72
+ base: {
73
+ type: 'array',
74
+ items: {
75
+ type: 'string',
76
+ enum: ['default'],
81
77
  },
82
- "default": [
83
- "default"
84
- ]
78
+ default: ['default'],
85
79
  },
86
- "clothesColor": {
87
- "type": "array",
88
- "items": {
89
- "type": "string",
90
- "pattern": "^(transparent|[a-fA-F0-9]{6})$"
80
+ clothesColor: {
81
+ type: 'array',
82
+ items: {
83
+ type: 'string',
84
+ pattern: '^(transparent|[a-fA-F0-9]{6})$',
91
85
  },
92
- "default": [
93
- "262e33",
94
- "65c9ff",
95
- "5199e4",
96
- "25557c",
97
- "e6e6e6",
98
- "929598",
99
- "3c4f5c",
100
- "b1e2ff",
101
- "a7ffc4",
102
- "ffafb9",
103
- "ffffb1",
104
- "ff488e",
105
- "ff5c5c",
106
- "ffffff"
107
- ]
86
+ default: [
87
+ '262e33',
88
+ '65c9ff',
89
+ '5199e4',
90
+ '25557c',
91
+ 'e6e6e6',
92
+ '929598',
93
+ '3c4f5c',
94
+ 'b1e2ff',
95
+ 'a7ffc4',
96
+ 'ffafb9',
97
+ 'ffffb1',
98
+ 'ff488e',
99
+ 'ff5c5c',
100
+ 'ffffff',
101
+ ],
108
102
  },
109
- "clothing": {
110
- "type": "array",
111
- "items": {
112
- "type": "string",
113
- "enum": [
114
- "blazerAndShirt",
115
- "blazerAndSweater",
116
- "collarAndSweater",
117
- "graphicShirt",
118
- "hoodie",
119
- "overall",
120
- "shirtCrewNeck",
121
- "shirtScoopNeck",
122
- "shirtVNeck"
123
- ]
103
+ clothing: {
104
+ type: 'array',
105
+ items: {
106
+ type: 'string',
107
+ enum: [
108
+ 'blazerAndShirt',
109
+ 'blazerAndSweater',
110
+ 'collarAndSweater',
111
+ 'graphicShirt',
112
+ 'hoodie',
113
+ 'overall',
114
+ 'shirtCrewNeck',
115
+ 'shirtScoopNeck',
116
+ 'shirtVNeck',
117
+ ],
124
118
  },
125
- "default": [
126
- "blazerAndShirt",
127
- "blazerAndSweater",
128
- "collarAndSweater",
129
- "graphicShirt",
130
- "hoodie",
131
- "overall",
132
- "shirtCrewNeck",
133
- "shirtScoopNeck",
134
- "shirtVNeck"
135
- ]
119
+ default: [
120
+ 'blazerAndShirt',
121
+ 'blazerAndSweater',
122
+ 'collarAndSweater',
123
+ 'graphicShirt',
124
+ 'hoodie',
125
+ 'overall',
126
+ 'shirtCrewNeck',
127
+ 'shirtScoopNeck',
128
+ 'shirtVNeck',
129
+ ],
136
130
  },
137
- "clothingGraphic": {
138
- "type": "array",
139
- "items": {
140
- "type": "string",
141
- "enum": [
142
- "bat",
143
- "bear",
144
- "cumbia",
145
- "deer",
146
- "diamond",
147
- "hola",
148
- "pizza",
149
- "resist",
150
- "skull",
151
- "skullOutline"
152
- ]
131
+ clothingGraphic: {
132
+ type: 'array',
133
+ items: {
134
+ type: 'string',
135
+ enum: [
136
+ 'bat',
137
+ 'bear',
138
+ 'cumbia',
139
+ 'deer',
140
+ 'diamond',
141
+ 'hola',
142
+ 'pizza',
143
+ 'resist',
144
+ 'skull',
145
+ 'skullOutline',
146
+ ],
153
147
  },
154
- "default": [
155
- "bat",
156
- "bear",
157
- "cumbia",
158
- "deer",
159
- "diamond",
160
- "hola",
161
- "pizza",
162
- "resist",
163
- "skull",
164
- "skullOutline"
165
- ]
148
+ default: [
149
+ 'bat',
150
+ 'bear',
151
+ 'cumbia',
152
+ 'deer',
153
+ 'diamond',
154
+ 'hola',
155
+ 'pizza',
156
+ 'resist',
157
+ 'skull',
158
+ 'skullOutline',
159
+ ],
166
160
  },
167
- "eyebrows": {
168
- "type": "array",
169
- "items": {
170
- "type": "string",
171
- "enum": [
172
- "angryNatural",
173
- "defaultNatural",
174
- "flatNatural",
175
- "frownNatural",
176
- "raisedExcitedNatural",
177
- "sadConcernedNatural",
178
- "unibrowNatural",
179
- "upDownNatural",
180
- "angry",
181
- "default",
182
- "raisedExcited",
183
- "sadConcerned",
184
- "upDown"
185
- ]
161
+ eyebrows: {
162
+ type: 'array',
163
+ items: {
164
+ type: 'string',
165
+ enum: [
166
+ 'angryNatural',
167
+ 'defaultNatural',
168
+ 'flatNatural',
169
+ 'frownNatural',
170
+ 'raisedExcitedNatural',
171
+ 'sadConcernedNatural',
172
+ 'unibrowNatural',
173
+ 'upDownNatural',
174
+ 'angry',
175
+ 'default',
176
+ 'raisedExcited',
177
+ 'sadConcerned',
178
+ 'upDown',
179
+ ],
186
180
  },
187
- "default": [
188
- "angryNatural",
189
- "defaultNatural",
190
- "flatNatural",
191
- "frownNatural",
192
- "raisedExcitedNatural",
193
- "sadConcernedNatural",
194
- "unibrowNatural",
195
- "upDownNatural",
196
- "angry",
197
- "default",
198
- "raisedExcited",
199
- "sadConcerned",
200
- "upDown"
201
- ]
181
+ default: [
182
+ 'angryNatural',
183
+ 'defaultNatural',
184
+ 'flatNatural',
185
+ 'frownNatural',
186
+ 'raisedExcitedNatural',
187
+ 'sadConcernedNatural',
188
+ 'unibrowNatural',
189
+ 'upDownNatural',
190
+ 'angry',
191
+ 'default',
192
+ 'raisedExcited',
193
+ 'sadConcerned',
194
+ 'upDown',
195
+ ],
202
196
  },
203
- "eyes": {
204
- "type": "array",
205
- "items": {
206
- "type": "string",
207
- "enum": [
208
- "closed",
209
- "cry",
210
- "default",
211
- "eyeRoll",
212
- "happy",
213
- "hearts",
214
- "side",
215
- "squint",
216
- "surprised",
217
- "winkWacky",
218
- "wink",
219
- "xDizzy"
220
- ]
197
+ eyes: {
198
+ type: 'array',
199
+ items: {
200
+ type: 'string',
201
+ enum: [
202
+ 'closed',
203
+ 'cry',
204
+ 'default',
205
+ 'eyeRoll',
206
+ 'happy',
207
+ 'hearts',
208
+ 'side',
209
+ 'squint',
210
+ 'surprised',
211
+ 'winkWacky',
212
+ 'wink',
213
+ 'xDizzy',
214
+ ],
221
215
  },
222
- "default": [
223
- "closed",
224
- "cry",
225
- "default",
226
- "eyeRoll",
227
- "happy",
228
- "hearts",
229
- "side",
230
- "squint",
231
- "surprised",
232
- "winkWacky",
233
- "wink",
234
- "xDizzy"
235
- ]
216
+ default: [
217
+ 'closed',
218
+ 'cry',
219
+ 'default',
220
+ 'eyeRoll',
221
+ 'happy',
222
+ 'hearts',
223
+ 'side',
224
+ 'squint',
225
+ 'surprised',
226
+ 'winkWacky',
227
+ 'wink',
228
+ 'xDizzy',
229
+ ],
236
230
  },
237
- "facialHair": {
238
- "type": "array",
239
- "items": {
240
- "type": "string",
241
- "enum": [
242
- "beardLight",
243
- "beardMajestic",
244
- "beardMedium",
245
- "moustacheFancy",
246
- "moustacheMagnum"
247
- ]
231
+ facialHair: {
232
+ type: 'array',
233
+ items: {
234
+ type: 'string',
235
+ enum: [
236
+ 'beardLight',
237
+ 'beardMajestic',
238
+ 'beardMedium',
239
+ 'moustacheFancy',
240
+ 'moustacheMagnum',
241
+ ],
248
242
  },
249
- "default": [
250
- "beardLight",
251
- "beardMajestic",
252
- "beardMedium",
253
- "moustacheFancy",
254
- "moustacheMagnum"
255
- ]
243
+ default: [
244
+ 'beardLight',
245
+ 'beardMajestic',
246
+ 'beardMedium',
247
+ 'moustacheFancy',
248
+ 'moustacheMagnum',
249
+ ],
256
250
  },
257
- "facialHairColor": {
258
- "type": "array",
259
- "items": {
260
- "type": "string",
261
- "pattern": "^(transparent|[a-fA-F0-9]{6})$"
251
+ facialHairColor: {
252
+ type: 'array',
253
+ items: {
254
+ type: 'string',
255
+ pattern: '^(transparent|[a-fA-F0-9]{6})$',
262
256
  },
263
- "default": [
264
- "a55728",
265
- "2c1b18",
266
- "b58143",
267
- "d6b370",
268
- "724133",
269
- "4a312c",
270
- "f59797",
271
- "ecdcbf",
272
- "c93305",
273
- "e8e1e1"
274
- ]
257
+ default: [
258
+ 'a55728',
259
+ '2c1b18',
260
+ 'b58143',
261
+ 'd6b370',
262
+ '724133',
263
+ '4a312c',
264
+ 'f59797',
265
+ 'ecdcbf',
266
+ 'c93305',
267
+ 'e8e1e1',
268
+ ],
275
269
  },
276
- "facialHairProbability": {
277
- "type": "integer",
278
- "minimum": 0,
279
- "maximum": 100,
280
- "default": 10
270
+ facialHairProbability: {
271
+ type: 'integer',
272
+ minimum: 0,
273
+ maximum: 100,
274
+ default: 10,
281
275
  },
282
- "hairColor": {
283
- "type": "array",
284
- "items": {
285
- "type": "string",
286
- "pattern": "^(transparent|[a-fA-F0-9]{6})$"
276
+ hairColor: {
277
+ type: 'array',
278
+ items: {
279
+ type: 'string',
280
+ pattern: '^(transparent|[a-fA-F0-9]{6})$',
287
281
  },
288
- "default": [
289
- "a55728",
290
- "2c1b18",
291
- "b58143",
292
- "d6b370",
293
- "724133",
294
- "4a312c",
295
- "f59797",
296
- "ecdcbf",
297
- "c93305",
298
- "e8e1e1"
299
- ]
282
+ default: [
283
+ 'a55728',
284
+ '2c1b18',
285
+ 'b58143',
286
+ 'd6b370',
287
+ '724133',
288
+ '4a312c',
289
+ 'f59797',
290
+ 'ecdcbf',
291
+ 'c93305',
292
+ 'e8e1e1',
293
+ ],
300
294
  },
301
- "hatColor": {
302
- "type": "array",
303
- "items": {
304
- "type": "string",
305
- "pattern": "^(transparent|[a-fA-F0-9]{6})$"
295
+ hatColor: {
296
+ type: 'array',
297
+ items: {
298
+ type: 'string',
299
+ pattern: '^(transparent|[a-fA-F0-9]{6})$',
306
300
  },
307
- "default": [
308
- "262e33",
309
- "65c9ff",
310
- "5199e4",
311
- "25557c",
312
- "e6e6e6",
313
- "929598",
314
- "3c4f5c",
315
- "b1e2ff",
316
- "a7ffc4",
317
- "ffdeb5",
318
- "ffafb9",
319
- "ffffb1",
320
- "ff488e",
321
- "ff5c5c",
322
- "ffffff"
323
- ]
301
+ default: [
302
+ '262e33',
303
+ '65c9ff',
304
+ '5199e4',
305
+ '25557c',
306
+ 'e6e6e6',
307
+ '929598',
308
+ '3c4f5c',
309
+ 'b1e2ff',
310
+ 'a7ffc4',
311
+ 'ffdeb5',
312
+ 'ffafb9',
313
+ 'ffffb1',
314
+ 'ff488e',
315
+ 'ff5c5c',
316
+ 'ffffff',
317
+ ],
324
318
  },
325
- "mouth": {
326
- "type": "array",
327
- "items": {
328
- "type": "string",
329
- "enum": [
330
- "concerned",
331
- "default",
332
- "disbelief",
333
- "eating",
334
- "grimace",
335
- "sad",
336
- "screamOpen",
337
- "serious",
338
- "smile",
339
- "tongue",
340
- "twinkle",
341
- "vomit"
342
- ]
319
+ mouth: {
320
+ type: 'array',
321
+ items: {
322
+ type: 'string',
323
+ enum: [
324
+ 'concerned',
325
+ 'default',
326
+ 'disbelief',
327
+ 'eating',
328
+ 'grimace',
329
+ 'sad',
330
+ 'screamOpen',
331
+ 'serious',
332
+ 'smile',
333
+ 'tongue',
334
+ 'twinkle',
335
+ 'vomit',
336
+ ],
343
337
  },
344
- "default": [
345
- "concerned",
346
- "default",
347
- "disbelief",
348
- "eating",
349
- "grimace",
350
- "sad",
351
- "screamOpen",
352
- "serious",
353
- "smile",
354
- "tongue",
355
- "twinkle",
356
- "vomit"
357
- ]
338
+ default: [
339
+ 'concerned',
340
+ 'default',
341
+ 'disbelief',
342
+ 'eating',
343
+ 'grimace',
344
+ 'sad',
345
+ 'screamOpen',
346
+ 'serious',
347
+ 'smile',
348
+ 'tongue',
349
+ 'twinkle',
350
+ 'vomit',
351
+ ],
358
352
  },
359
- "nose": {
360
- "type": "array",
361
- "items": {
362
- "type": "string",
363
- "enum": [
364
- "default"
365
- ]
353
+ nose: {
354
+ type: 'array',
355
+ items: {
356
+ type: 'string',
357
+ enum: ['default'],
366
358
  },
367
- "default": [
368
- "default"
369
- ]
359
+ default: ['default'],
370
360
  },
371
- "skinColor": {
372
- "type": "array",
373
- "items": {
374
- "type": "string",
375
- "pattern": "^(transparent|[a-fA-F0-9]{6})$"
361
+ skinColor: {
362
+ type: 'array',
363
+ items: {
364
+ type: 'string',
365
+ pattern: '^(transparent|[a-fA-F0-9]{6})$',
376
366
  },
377
- "default": [
378
- "614335",
379
- "d08b5b",
380
- "ae5d29",
381
- "edb98a",
382
- "ffdbb4",
383
- "fd9841",
384
- "f8d25c"
385
- ]
367
+ default: [
368
+ '614335',
369
+ 'd08b5b',
370
+ 'ae5d29',
371
+ 'edb98a',
372
+ 'ffdbb4',
373
+ 'fd9841',
374
+ 'f8d25c',
375
+ ],
386
376
  },
387
- "style": {
388
- "type": "array",
389
- "items": {
390
- "type": "string",
391
- "enum": [
392
- "circle",
393
- "default"
394
- ]
377
+ style: {
378
+ type: 'array',
379
+ items: {
380
+ type: 'string',
381
+ enum: ['circle', 'default'],
395
382
  },
396
- "default": [
397
- "default"
398
- ]
383
+ default: ['default'],
399
384
  },
400
- "top": {
401
- "type": "array",
402
- "items": {
403
- "type": "string",
404
- "enum": [
405
- "hat",
406
- "hijab",
407
- "turban",
408
- "winterHat1",
409
- "winterHat02",
410
- "winterHat03",
411
- "winterHat04",
412
- "bob",
413
- "bun",
414
- "curly",
415
- "curvy",
416
- "dreads",
417
- "frida",
418
- "fro",
419
- "froBand",
420
- "longButNotTooLong",
421
- "miaWallace",
422
- "shavedSides",
423
- "straight02",
424
- "straight01",
425
- "straightAndStrand",
426
- "dreads01",
427
- "dreads02",
428
- "frizzle",
429
- "shaggy",
430
- "shaggyMullet",
431
- "shortCurly",
432
- "shortFlat",
433
- "shortRound",
434
- "shortWaved",
435
- "sides",
436
- "theCaesar",
437
- "theCaesarAndSidePart",
438
- "bigHair"
439
- ]
385
+ top: {
386
+ type: 'array',
387
+ items: {
388
+ type: 'string',
389
+ enum: [
390
+ 'hat',
391
+ 'hijab',
392
+ 'turban',
393
+ 'winterHat1',
394
+ 'winterHat02',
395
+ 'winterHat03',
396
+ 'winterHat04',
397
+ 'bob',
398
+ 'bun',
399
+ 'curly',
400
+ 'curvy',
401
+ 'dreads',
402
+ 'frida',
403
+ 'fro',
404
+ 'froBand',
405
+ 'longButNotTooLong',
406
+ 'miaWallace',
407
+ 'shavedSides',
408
+ 'straight02',
409
+ 'straight01',
410
+ 'straightAndStrand',
411
+ 'dreads01',
412
+ 'dreads02',
413
+ 'frizzle',
414
+ 'shaggy',
415
+ 'shaggyMullet',
416
+ 'shortCurly',
417
+ 'shortFlat',
418
+ 'shortRound',
419
+ 'shortWaved',
420
+ 'sides',
421
+ 'theCaesar',
422
+ 'theCaesarAndSidePart',
423
+ 'bigHair',
424
+ ],
440
425
  },
441
- "default": [
442
- "hat",
443
- "hijab",
444
- "turban",
445
- "winterHat1",
446
- "winterHat02",
447
- "winterHat03",
448
- "winterHat04",
449
- "bob",
450
- "bun",
451
- "curly",
452
- "curvy",
453
- "dreads",
454
- "frida",
455
- "fro",
456
- "froBand",
457
- "longButNotTooLong",
458
- "miaWallace",
459
- "shavedSides",
460
- "straight02",
461
- "straight01",
462
- "straightAndStrand",
463
- "dreads01",
464
- "dreads02",
465
- "frizzle",
466
- "shaggy",
467
- "shaggyMullet",
468
- "shortCurly",
469
- "shortFlat",
470
- "shortRound",
471
- "shortWaved",
472
- "sides",
473
- "theCaesar",
474
- "theCaesarAndSidePart",
475
- "bigHair"
476
- ]
426
+ default: [
427
+ 'hat',
428
+ 'hijab',
429
+ 'turban',
430
+ 'winterHat1',
431
+ 'winterHat02',
432
+ 'winterHat03',
433
+ 'winterHat04',
434
+ 'bob',
435
+ 'bun',
436
+ 'curly',
437
+ 'curvy',
438
+ 'dreads',
439
+ 'frida',
440
+ 'fro',
441
+ 'froBand',
442
+ 'longButNotTooLong',
443
+ 'miaWallace',
444
+ 'shavedSides',
445
+ 'straight02',
446
+ 'straight01',
447
+ 'straightAndStrand',
448
+ 'dreads01',
449
+ 'dreads02',
450
+ 'frizzle',
451
+ 'shaggy',
452
+ 'shaggyMullet',
453
+ 'shortCurly',
454
+ 'shortFlat',
455
+ 'shortRound',
456
+ 'shortWaved',
457
+ 'sides',
458
+ 'theCaesar',
459
+ 'theCaesarAndSidePart',
460
+ 'bigHair',
461
+ ],
477
462
  },
478
- "topProbability": {
479
- "type": "integer",
480
- "minimum": 0,
481
- "maximum": 100,
482
- "default": 100
483
- }
484
- }
463
+ topProbability: {
464
+ type: 'integer',
465
+ minimum: 0,
466
+ maximum: 100,
467
+ default: 100,
468
+ },
469
+ },
485
470
  };