@dicebear/open-peeps 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,332 +5,320 @@
5
5
  * File: https://www.figma.com/file/TArMPV7hXUhdCbfEFs3Pfm
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
- "eyepatch",
16
- "glasses",
17
- "glasses2",
18
- "glasses3",
19
- "glasses4",
20
- "glasses5",
21
- "sunglasses",
22
- "sunglasses2"
23
- ]
8
+ $schema: 'http://json-schema.org/draft-07/schema#',
9
+ properties: {
10
+ accessories: {
11
+ type: 'array',
12
+ items: {
13
+ type: 'string',
14
+ enum: [
15
+ 'eyepatch',
16
+ 'glasses',
17
+ 'glasses2',
18
+ 'glasses3',
19
+ 'glasses4',
20
+ 'glasses5',
21
+ 'sunglasses',
22
+ 'sunglasses2',
23
+ ],
24
24
  },
25
- "default": [
26
- "eyepatch",
27
- "glasses",
28
- "glasses2",
29
- "glasses3",
30
- "glasses4",
31
- "glasses5",
32
- "sunglasses",
33
- "sunglasses2"
34
- ]
25
+ default: [
26
+ 'eyepatch',
27
+ 'glasses',
28
+ 'glasses2',
29
+ 'glasses3',
30
+ 'glasses4',
31
+ 'glasses5',
32
+ 'sunglasses',
33
+ 'sunglasses2',
34
+ ],
35
35
  },
36
- "accessoriesProbability": {
37
- "type": "integer",
38
- "minimum": 0,
39
- "maximum": 100,
40
- "default": 20
36
+ accessoriesProbability: {
37
+ type: 'integer',
38
+ minimum: 0,
39
+ maximum: 100,
40
+ default: 20,
41
41
  },
42
- "clothingColor": {
43
- "type": "array",
44
- "items": {
45
- "type": "string",
46
- "pattern": "^(transparent|[a-fA-F0-9]{6})$"
42
+ clothingColor: {
43
+ type: 'array',
44
+ items: {
45
+ type: 'string',
46
+ pattern: '^(transparent|[a-fA-F0-9]{6})$',
47
47
  },
48
- "default": [
49
- "e78276",
50
- "ffcf77",
51
- "fdea6b",
52
- "78e185",
53
- "9ddadb",
54
- "8fa7df",
55
- "e279c7"
56
- ]
48
+ default: [
49
+ 'e78276',
50
+ 'ffcf77',
51
+ 'fdea6b',
52
+ '78e185',
53
+ '9ddadb',
54
+ '8fa7df',
55
+ 'e279c7',
56
+ ],
57
57
  },
58
- "face": {
59
- "type": "array",
60
- "items": {
61
- "type": "string",
62
- "enum": [
63
- "angryWithFang",
64
- "awe",
65
- "blank",
66
- "calm",
67
- "cheeky",
68
- "concerned",
69
- "concernedFear",
70
- "contempt",
71
- "cute",
72
- "cyclops",
73
- "driven",
74
- "eatingHappy",
75
- "explaining",
76
- "eyesClosed",
77
- "fear",
78
- "hectic",
79
- "lovingGrin1",
80
- "lovingGrin2",
81
- "monster",
82
- "old",
83
- "rage",
84
- "serious",
85
- "smile",
86
- "smileBig",
87
- "smileLOL",
88
- "smileTeethGap",
89
- "solemn",
90
- "suspicious",
91
- "tired",
92
- "veryAngry"
93
- ]
58
+ face: {
59
+ type: 'array',
60
+ items: {
61
+ type: 'string',
62
+ enum: [
63
+ 'angryWithFang',
64
+ 'awe',
65
+ 'blank',
66
+ 'calm',
67
+ 'cheeky',
68
+ 'concerned',
69
+ 'concernedFear',
70
+ 'contempt',
71
+ 'cute',
72
+ 'cyclops',
73
+ 'driven',
74
+ 'eatingHappy',
75
+ 'explaining',
76
+ 'eyesClosed',
77
+ 'fear',
78
+ 'hectic',
79
+ 'lovingGrin1',
80
+ 'lovingGrin2',
81
+ 'monster',
82
+ 'old',
83
+ 'rage',
84
+ 'serious',
85
+ 'smile',
86
+ 'smileBig',
87
+ 'smileLOL',
88
+ 'smileTeethGap',
89
+ 'solemn',
90
+ 'suspicious',
91
+ 'tired',
92
+ 'veryAngry',
93
+ ],
94
94
  },
95
- "default": [
96
- "angryWithFang",
97
- "awe",
98
- "blank",
99
- "calm",
100
- "cheeky",
101
- "concerned",
102
- "concernedFear",
103
- "contempt",
104
- "cute",
105
- "cyclops",
106
- "driven",
107
- "eatingHappy",
108
- "explaining",
109
- "eyesClosed",
110
- "fear",
111
- "hectic",
112
- "lovingGrin1",
113
- "lovingGrin2",
114
- "monster",
115
- "old",
116
- "rage",
117
- "serious",
118
- "smile",
119
- "smileBig",
120
- "smileLOL",
121
- "smileTeethGap",
122
- "solemn",
123
- "suspicious",
124
- "tired",
125
- "veryAngry"
126
- ]
95
+ default: [
96
+ 'angryWithFang',
97
+ 'awe',
98
+ 'blank',
99
+ 'calm',
100
+ 'cheeky',
101
+ 'concerned',
102
+ 'concernedFear',
103
+ 'contempt',
104
+ 'cute',
105
+ 'cyclops',
106
+ 'driven',
107
+ 'eatingHappy',
108
+ 'explaining',
109
+ 'eyesClosed',
110
+ 'fear',
111
+ 'hectic',
112
+ 'lovingGrin1',
113
+ 'lovingGrin2',
114
+ 'monster',
115
+ 'old',
116
+ 'rage',
117
+ 'serious',
118
+ 'smile',
119
+ 'smileBig',
120
+ 'smileLOL',
121
+ 'smileTeethGap',
122
+ 'solemn',
123
+ 'suspicious',
124
+ 'tired',
125
+ 'veryAngry',
126
+ ],
127
127
  },
128
- "facialHair": {
129
- "type": "array",
130
- "items": {
131
- "type": "string",
132
- "enum": [
133
- "chin",
134
- "full",
135
- "full2",
136
- "full3",
137
- "full4",
138
- "goatee1",
139
- "goatee2",
140
- "moustache1",
141
- "moustache2",
142
- "moustache3",
143
- "moustache4",
144
- "moustache5",
145
- "moustache6",
146
- "moustache7",
147
- "moustache8",
148
- "moustache9"
149
- ]
128
+ facialHair: {
129
+ type: 'array',
130
+ items: {
131
+ type: 'string',
132
+ enum: [
133
+ 'chin',
134
+ 'full',
135
+ 'full2',
136
+ 'full3',
137
+ 'full4',
138
+ 'goatee1',
139
+ 'goatee2',
140
+ 'moustache1',
141
+ 'moustache2',
142
+ 'moustache3',
143
+ 'moustache4',
144
+ 'moustache5',
145
+ 'moustache6',
146
+ 'moustache7',
147
+ 'moustache8',
148
+ 'moustache9',
149
+ ],
150
150
  },
151
- "default": [
152
- "chin",
153
- "full",
154
- "full2",
155
- "full3",
156
- "full4",
157
- "goatee1",
158
- "goatee2",
159
- "moustache1",
160
- "moustache2",
161
- "moustache3",
162
- "moustache4",
163
- "moustache5",
164
- "moustache6",
165
- "moustache7",
166
- "moustache8",
167
- "moustache9"
168
- ]
151
+ default: [
152
+ 'chin',
153
+ 'full',
154
+ 'full2',
155
+ 'full3',
156
+ 'full4',
157
+ 'goatee1',
158
+ 'goatee2',
159
+ 'moustache1',
160
+ 'moustache2',
161
+ 'moustache3',
162
+ 'moustache4',
163
+ 'moustache5',
164
+ 'moustache6',
165
+ 'moustache7',
166
+ 'moustache8',
167
+ 'moustache9',
168
+ ],
169
169
  },
170
- "facialHairProbability": {
171
- "type": "integer",
172
- "minimum": 0,
173
- "maximum": 100,
174
- "default": 10
170
+ facialHairProbability: {
171
+ type: 'integer',
172
+ minimum: 0,
173
+ maximum: 100,
174
+ default: 10,
175
175
  },
176
- "head": {
177
- "type": "array",
178
- "items": {
179
- "type": "string",
180
- "enum": [
181
- "afro",
182
- "bangs",
183
- "bangs2",
184
- "bantuKnots",
185
- "bear",
186
- "bun",
187
- "bun2",
188
- "buns",
189
- "cornrows",
190
- "cornrows2",
191
- "dreads1",
192
- "dreads2",
193
- "flatTop",
194
- "flatTopLong",
195
- "grayBun",
196
- "grayMedium",
197
- "grayShort",
198
- "hatBeanie",
199
- "hatHip",
200
- "hijab",
201
- "long",
202
- "longAfro",
203
- "longBangs",
204
- "longCurly",
205
- "medium1",
206
- "medium2",
207
- "medium3",
208
- "mediumBangs",
209
- "mediumBangs2",
210
- "mediumBangs3",
211
- "mediumStraight",
212
- "mohawk",
213
- "mohawk2",
214
- "noHair1",
215
- "noHair2",
216
- "noHair3",
217
- "pomp",
218
- "shaved1",
219
- "shaved2",
220
- "shaved3",
221
- "short1",
222
- "short2",
223
- "short3",
224
- "short4",
225
- "short5",
226
- "turban",
227
- "twists",
228
- "twists2"
229
- ]
176
+ head: {
177
+ type: 'array',
178
+ items: {
179
+ type: 'string',
180
+ enum: [
181
+ 'afro',
182
+ 'bangs',
183
+ 'bangs2',
184
+ 'bantuKnots',
185
+ 'bear',
186
+ 'bun',
187
+ 'bun2',
188
+ 'buns',
189
+ 'cornrows',
190
+ 'cornrows2',
191
+ 'dreads1',
192
+ 'dreads2',
193
+ 'flatTop',
194
+ 'flatTopLong',
195
+ 'grayBun',
196
+ 'grayMedium',
197
+ 'grayShort',
198
+ 'hatBeanie',
199
+ 'hatHip',
200
+ 'hijab',
201
+ 'long',
202
+ 'longAfro',
203
+ 'longBangs',
204
+ 'longCurly',
205
+ 'medium1',
206
+ 'medium2',
207
+ 'medium3',
208
+ 'mediumBangs',
209
+ 'mediumBangs2',
210
+ 'mediumBangs3',
211
+ 'mediumStraight',
212
+ 'mohawk',
213
+ 'mohawk2',
214
+ 'noHair1',
215
+ 'noHair2',
216
+ 'noHair3',
217
+ 'pomp',
218
+ 'shaved1',
219
+ 'shaved2',
220
+ 'shaved3',
221
+ 'short1',
222
+ 'short2',
223
+ 'short3',
224
+ 'short4',
225
+ 'short5',
226
+ 'turban',
227
+ 'twists',
228
+ 'twists2',
229
+ ],
230
230
  },
231
- "default": [
232
- "afro",
233
- "bangs",
234
- "bangs2",
235
- "bantuKnots",
236
- "bear",
237
- "bun",
238
- "bun2",
239
- "buns",
240
- "cornrows",
241
- "cornrows2",
242
- "dreads1",
243
- "dreads2",
244
- "flatTop",
245
- "flatTopLong",
246
- "grayBun",
247
- "grayMedium",
248
- "grayShort",
249
- "hatBeanie",
250
- "hatHip",
251
- "hijab",
252
- "long",
253
- "longAfro",
254
- "longBangs",
255
- "longCurly",
256
- "medium1",
257
- "medium2",
258
- "medium3",
259
- "mediumBangs",
260
- "mediumBangs2",
261
- "mediumBangs3",
262
- "mediumStraight",
263
- "mohawk",
264
- "mohawk2",
265
- "noHair1",
266
- "noHair2",
267
- "noHair3",
268
- "pomp",
269
- "shaved1",
270
- "shaved2",
271
- "shaved3",
272
- "short1",
273
- "short2",
274
- "short3",
275
- "short4",
276
- "short5",
277
- "turban",
278
- "twists",
279
- "twists2"
280
- ]
231
+ default: [
232
+ 'afro',
233
+ 'bangs',
234
+ 'bangs2',
235
+ 'bantuKnots',
236
+ 'bear',
237
+ 'bun',
238
+ 'bun2',
239
+ 'buns',
240
+ 'cornrows',
241
+ 'cornrows2',
242
+ 'dreads1',
243
+ 'dreads2',
244
+ 'flatTop',
245
+ 'flatTopLong',
246
+ 'grayBun',
247
+ 'grayMedium',
248
+ 'grayShort',
249
+ 'hatBeanie',
250
+ 'hatHip',
251
+ 'hijab',
252
+ 'long',
253
+ 'longAfro',
254
+ 'longBangs',
255
+ 'longCurly',
256
+ 'medium1',
257
+ 'medium2',
258
+ 'medium3',
259
+ 'mediumBangs',
260
+ 'mediumBangs2',
261
+ 'mediumBangs3',
262
+ 'mediumStraight',
263
+ 'mohawk',
264
+ 'mohawk2',
265
+ 'noHair1',
266
+ 'noHair2',
267
+ 'noHair3',
268
+ 'pomp',
269
+ 'shaved1',
270
+ 'shaved2',
271
+ 'shaved3',
272
+ 'short1',
273
+ 'short2',
274
+ 'short3',
275
+ 'short4',
276
+ 'short5',
277
+ 'turban',
278
+ 'twists',
279
+ 'twists2',
280
+ ],
281
281
  },
282
- "headContrastColor": {
283
- "type": "array",
284
- "items": {
285
- "type": "string",
286
- "pattern": "^(transparent|[a-fA-F0-9]{6})$"
282
+ headContrastColor: {
283
+ type: 'array',
284
+ items: {
285
+ type: 'string',
286
+ pattern: '^(transparent|[a-fA-F0-9]{6})$',
287
287
  },
288
- "default": [
289
- "2c1b18",
290
- "e8e1e1",
291
- "ecdcbf",
292
- "d6b370",
293
- "f59797",
294
- "b58143",
295
- "a55728",
296
- "724133",
297
- "4a312c",
298
- "c93305"
299
- ]
288
+ default: [
289
+ '2c1b18',
290
+ 'e8e1e1',
291
+ 'ecdcbf',
292
+ 'd6b370',
293
+ 'f59797',
294
+ 'b58143',
295
+ 'a55728',
296
+ '724133',
297
+ '4a312c',
298
+ 'c93305',
299
+ ],
300
300
  },
301
- "mask": {
302
- "type": "array",
303
- "items": {
304
- "type": "string",
305
- "enum": [
306
- "medicalMask",
307
- "respirator"
308
- ]
301
+ mask: {
302
+ type: 'array',
303
+ items: {
304
+ type: 'string',
305
+ enum: ['medicalMask', 'respirator'],
309
306
  },
310
- "default": [
311
- "medicalMask",
312
- "respirator"
313
- ]
307
+ default: ['medicalMask', 'respirator'],
314
308
  },
315
- "maskProbability": {
316
- "type": "integer",
317
- "minimum": 0,
318
- "maximum": 100,
319
- "default": 5
309
+ maskProbability: {
310
+ type: 'integer',
311
+ minimum: 0,
312
+ maximum: 100,
313
+ default: 5,
320
314
  },
321
- "skinColor": {
322
- "type": "array",
323
- "items": {
324
- "type": "string",
325
- "pattern": "^(transparent|[a-fA-F0-9]{6})$"
315
+ skinColor: {
316
+ type: 'array',
317
+ items: {
318
+ type: 'string',
319
+ pattern: '^(transparent|[a-fA-F0-9]{6})$',
326
320
  },
327
- "default": [
328
- "ffdbb4",
329
- "edb98a",
330
- "d08b5b",
331
- "ae5d29",
332
- "694d3d"
333
- ]
334
- }
335
- }
321
+ default: ['ffdbb4', 'edb98a', 'd08b5b', 'ae5d29', '694d3d'],
322
+ },
323
+ },
336
324
  };