@kulupu-linku/sona 0.3.7 → 2.1.0
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/dist/index-7uKIarVW.d.mts +1495 -0
- package/dist/index-N8h8E1s6.d.mts +398 -0
- package/dist/index-nmyNJa57.d.mts +300 -0
- package/dist/lib/v1/client.d.mts +1610 -0
- package/dist/lib/v1/client.mjs +8 -0
- package/dist/lib/v1/client.test.d.mts +30 -0
- package/dist/lib/v1/client.test.mjs +2 -0
- package/dist/lib/v1/index.d.mts +2 -0
- package/dist/lib/v1/index.mjs +137 -0
- package/dist/lib/v1/types.d.mts +2 -0
- package/dist/lib/v1/types.mjs +1 -0
- package/dist/lib/v1/utils.d.mts +26 -0
- package/dist/lib/v1/utils.mjs +35 -0
- package/dist/lib/v2/client.d.mts +1610 -0
- package/dist/lib/v2/client.mjs +8 -0
- package/dist/lib/v2/client.test.d.mts +35 -0
- package/dist/lib/v2/client.test.mjs +2 -0
- package/dist/lib/v2/index.d.mts +2 -0
- package/dist/lib/v2/index.mjs +192 -0
- package/dist/lib/v2/types.d.mts +2 -0
- package/dist/lib/v2/types.mjs +1 -0
- package/dist/lib/v2/utils.d.mts +44 -0
- package/dist/lib/v2/utils.mjs +38 -0
- package/dist/server/index.d.mts +2 -0
- package/dist/server/index.mjs +35 -0
- package/dist/server/utils.d.mts +27 -0
- package/dist/server/utils.mjs +31 -0
- package/dist/server/v1/index.d.mts +902 -0
- package/dist/server/v1/index.mjs +2 -0
- package/dist/server/v2/index.d.mts +1112 -0
- package/dist/server/v2/index.mjs +2 -0
- package/dist/server/versioning.d.mts +2019 -0
- package/dist/server/versioning.mjs +2 -0
- package/dist/v1-Da4_o5R1.mjs +261 -0
- package/generated/{commentary_translation.json → v1/commentary_translation.json} +1 -1
- package/generated/{definition_translation.json → v1/definition_translation.json} +1 -1
- package/generated/{etymology_translation.json → v1/etymology_translation.json} +2 -4
- package/generated/{fingerspelling.json → v1/fingerspelling.json} +5 -20
- package/generated/{fingerspelling_sign.json → v1/fingerspelling_sign.json} +4 -16
- package/generated/{font.json → v1/font.json} +1 -1
- package/generated/{fonts.json → v1/fonts.json} +1 -1
- package/generated/{icon_translation.json → v1/icon_translation.json} +1 -1
- package/generated/{languages.json → v1/languages.json} +4 -14
- package/generated/{parameters_translation.json → v1/parameters_translation.json} +1 -1
- package/generated/{sign.json → v1/sign.json} +3 -8
- package/generated/{signs.json → v1/signs.json} +4 -12
- package/generated/{sitelen_pona_translation.json → v1/sitelen_pona_translation.json} +1 -1
- package/generated/{word.json → v1/word.json} +6 -29
- package/generated/v2/fingerspelling.json +184 -0
- package/generated/v2/fingerspellings.json +198 -0
- package/generated/v2/font.json +164 -0
- package/generated/v2/fonts.json +178 -0
- package/generated/v2/glyph.json +186 -0
- package/generated/v2/glyphs.json +196 -0
- package/generated/v2/language.json +76 -0
- package/generated/v2/languages.json +86 -0
- package/generated/v2/sign.json +221 -0
- package/generated/v2/signs.json +235 -0
- package/generated/v2/word.json +449 -0
- package/generated/v2/words.json +459 -0
- package/package.json +66 -35
- package/dist/client.d.ts +0 -2
- package/dist/client.js +0 -172
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -223
- package/dist/lib/client.d.ts +0 -743
- package/dist/lib/client.test.d.ts +0 -27
- package/dist/lib/index.d.ts +0 -962
- package/dist/lib/types.d.ts +0 -17
- package/dist/lib/utils.d.ts +0 -13
- package/dist/server/index.d.ts +0 -685
- package/dist/server/utils.d.ts +0 -19
- package/dist/server/v1/index.d.ts +0 -677
- package/dist/server/versioning.d.ts +0 -2423
- package/dist/utils-B3Jq5OVZ.js +0 -2899
- package/dist/utils.d.ts +0 -2
- package/dist/utils.js +0 -9
- package/generated/words.json +0 -315
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"propertyNames": {
|
|
5
|
+
"$ref": "#/$defs/__schema0"
|
|
6
|
+
},
|
|
7
|
+
"additionalProperties": {
|
|
8
|
+
"$ref": "#/$defs/__schema1"
|
|
9
|
+
},
|
|
10
|
+
"description": "A raw data object containing dictionary info about Toki Pona words",
|
|
11
|
+
"$defs": {
|
|
12
|
+
"__schema0": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"description": "A unique identifier for an object in Linku. Generally named after the object."
|
|
16
|
+
},
|
|
17
|
+
"__schema1": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"id": {
|
|
21
|
+
"$ref": "#/$defs/__schema2"
|
|
22
|
+
},
|
|
23
|
+
"word": {
|
|
24
|
+
"$ref": "#/$defs/__schema3"
|
|
25
|
+
},
|
|
26
|
+
"author_verbatim": {
|
|
27
|
+
"$ref": "#/$defs/__schema4"
|
|
28
|
+
},
|
|
29
|
+
"author_source": {
|
|
30
|
+
"$ref": "#/$defs/__schema6"
|
|
31
|
+
},
|
|
32
|
+
"book": {
|
|
33
|
+
"$ref": "#/$defs/__schema8"
|
|
34
|
+
},
|
|
35
|
+
"coined_era": {
|
|
36
|
+
"$ref": "#/$defs/__schema9"
|
|
37
|
+
},
|
|
38
|
+
"creation_date": {
|
|
39
|
+
"$ref": "#/$defs/__schema10"
|
|
40
|
+
},
|
|
41
|
+
"author": {
|
|
42
|
+
"$ref": "#/$defs/__schema11"
|
|
43
|
+
},
|
|
44
|
+
"ku_data": {
|
|
45
|
+
"$ref": "#/$defs/__schema13"
|
|
46
|
+
},
|
|
47
|
+
"parent_id": {
|
|
48
|
+
"$ref": "#/$defs/__schema16"
|
|
49
|
+
},
|
|
50
|
+
"see_also": {
|
|
51
|
+
"$ref": "#/$defs/__schema18"
|
|
52
|
+
},
|
|
53
|
+
"resources": {
|
|
54
|
+
"$ref": "#/$defs/__schema20"
|
|
55
|
+
},
|
|
56
|
+
"representations": {
|
|
57
|
+
"$ref": "#/$defs/__schema24"
|
|
58
|
+
},
|
|
59
|
+
"source_language": {
|
|
60
|
+
"$ref": "#/$defs/__schema35"
|
|
61
|
+
},
|
|
62
|
+
"usage_category": {
|
|
63
|
+
"$ref": "#/$defs/__schema36"
|
|
64
|
+
},
|
|
65
|
+
"deprecated": {
|
|
66
|
+
"$ref": "#/$defs/__schema37"
|
|
67
|
+
},
|
|
68
|
+
"audio": {
|
|
69
|
+
"$ref": "#/$defs/__schema38"
|
|
70
|
+
},
|
|
71
|
+
"pu_verbatim": {
|
|
72
|
+
"$ref": "#/$defs/__schema41"
|
|
73
|
+
},
|
|
74
|
+
"usage": {
|
|
75
|
+
"$ref": "#/$defs/__schema44"
|
|
76
|
+
},
|
|
77
|
+
"glyph_ids": {
|
|
78
|
+
"$ref": "#/$defs/__schema46"
|
|
79
|
+
},
|
|
80
|
+
"primary_glyph_id": {
|
|
81
|
+
"$ref": "#/$defs/__schema47"
|
|
82
|
+
},
|
|
83
|
+
"image": {
|
|
84
|
+
"$ref": "#/$defs/__schema49"
|
|
85
|
+
},
|
|
86
|
+
"svg": {
|
|
87
|
+
"$ref": "#/$defs/__schema50"
|
|
88
|
+
},
|
|
89
|
+
"translations": {
|
|
90
|
+
"$ref": "#/$defs/__schema51"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"required": [
|
|
94
|
+
"id",
|
|
95
|
+
"word",
|
|
96
|
+
"book",
|
|
97
|
+
"coined_era",
|
|
98
|
+
"creation_date",
|
|
99
|
+
"author",
|
|
100
|
+
"see_also",
|
|
101
|
+
"resources",
|
|
102
|
+
"representations",
|
|
103
|
+
"source_language",
|
|
104
|
+
"usage_category",
|
|
105
|
+
"deprecated",
|
|
106
|
+
"audio",
|
|
107
|
+
"usage",
|
|
108
|
+
"glyph_ids",
|
|
109
|
+
"translations"
|
|
110
|
+
],
|
|
111
|
+
"additionalProperties": false,
|
|
112
|
+
"description": "General info on a Toki Pona word"
|
|
113
|
+
},
|
|
114
|
+
"__schema2": {
|
|
115
|
+
"description": "A unique identifier for the word. May have an integer to distinguish words with the same spelling but distinct coinings.",
|
|
116
|
+
"$ref": "#/$defs/__schema0"
|
|
117
|
+
},
|
|
118
|
+
"__schema3": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"minLength": 1,
|
|
121
|
+
"description": "The latin alphabet representation of the word."
|
|
122
|
+
},
|
|
123
|
+
"__schema4": {
|
|
124
|
+
"description": "The author's original definition, taken verbatim in their words",
|
|
125
|
+
"$ref": "#/$defs/__schema5"
|
|
126
|
+
},
|
|
127
|
+
"__schema5": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
"__schema6": {
|
|
131
|
+
"description": "The source or origin of this glyph, often a URL.",
|
|
132
|
+
"$ref": "#/$defs/__schema7"
|
|
133
|
+
},
|
|
134
|
+
"__schema7": {
|
|
135
|
+
"type": "string",
|
|
136
|
+
"description": "The source or origin of this object, often a URL."
|
|
137
|
+
},
|
|
138
|
+
"__schema8": {
|
|
139
|
+
"type": "string",
|
|
140
|
+
"enum": [
|
|
141
|
+
"pu",
|
|
142
|
+
"ku suli",
|
|
143
|
+
"ku lili",
|
|
144
|
+
"none"
|
|
145
|
+
],
|
|
146
|
+
"description": "Which official Toki Pona book was this word featured in, if any."
|
|
147
|
+
},
|
|
148
|
+
"__schema9": {
|
|
149
|
+
"type": "string",
|
|
150
|
+
"enum": [
|
|
151
|
+
"pre-pu",
|
|
152
|
+
"post-pu",
|
|
153
|
+
"post-ku"
|
|
154
|
+
],
|
|
155
|
+
"description": "The period of time in which this word was coined, relative to the publication of the first two official Toki Pona books"
|
|
156
|
+
},
|
|
157
|
+
"__schema10": {
|
|
158
|
+
"type": "string",
|
|
159
|
+
"pattern": "^(?:|(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?|(?<startYear>20\\d{2})-(?<endYear>20\\d{2}))$",
|
|
160
|
+
"description": "When this word was coined, to precision known."
|
|
161
|
+
},
|
|
162
|
+
"__schema11": {
|
|
163
|
+
"type": "array",
|
|
164
|
+
"items": {
|
|
165
|
+
"$ref": "#/$defs/__schema12"
|
|
166
|
+
},
|
|
167
|
+
"description": "The name or names of those involved in creating this word."
|
|
168
|
+
},
|
|
169
|
+
"__schema12": {
|
|
170
|
+
"type": "string",
|
|
171
|
+
"minLength": 1
|
|
172
|
+
},
|
|
173
|
+
"__schema13": {
|
|
174
|
+
"description": "The usage data of this word, as described in the Toki Pona Dictionary.",
|
|
175
|
+
"$ref": "#/$defs/__schema14"
|
|
176
|
+
},
|
|
177
|
+
"__schema14": {
|
|
178
|
+
"type": "object",
|
|
179
|
+
"propertyNames": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"minLength": 1,
|
|
182
|
+
"description": "A possible translation of the word into English, as listed in the Toki Pona dictionary."
|
|
183
|
+
},
|
|
184
|
+
"additionalProperties": {
|
|
185
|
+
"description": "The percentage of Toki Pona Dictionary survey respondents who report this translation as accurate to their usage.",
|
|
186
|
+
"$ref": "#/$defs/__schema15"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
"__schema15": {
|
|
190
|
+
"type": "number",
|
|
191
|
+
"minimum": 0,
|
|
192
|
+
"maximum": 100
|
|
193
|
+
},
|
|
194
|
+
"__schema16": {
|
|
195
|
+
"description": "The most widely used word which is considered to be an exact synonym for this word.",
|
|
196
|
+
"$ref": "#/$defs/__schema17"
|
|
197
|
+
},
|
|
198
|
+
"__schema17": {
|
|
199
|
+
"description": "The ID of an object related to this one.",
|
|
200
|
+
"$ref": "#/$defs/__schema0"
|
|
201
|
+
},
|
|
202
|
+
"__schema18": {
|
|
203
|
+
"type": "array",
|
|
204
|
+
"items": {
|
|
205
|
+
"$ref": "#/$defs/__schema0"
|
|
206
|
+
},
|
|
207
|
+
"description": "The IDs of words related to this one.",
|
|
208
|
+
"$ref": "#/$defs/__schema19"
|
|
209
|
+
},
|
|
210
|
+
"__schema19": {
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": {
|
|
213
|
+
"$ref": "#/$defs/__schema0"
|
|
214
|
+
},
|
|
215
|
+
"description": "The IDs of one or more objects related to this one."
|
|
216
|
+
},
|
|
217
|
+
"__schema20": {
|
|
218
|
+
"type": "object",
|
|
219
|
+
"properties": {
|
|
220
|
+
"sona_pona": {
|
|
221
|
+
"$ref": "#/$defs/__schema21"
|
|
222
|
+
},
|
|
223
|
+
"lipamanka_semantic": {
|
|
224
|
+
"$ref": "#/$defs/__schema23"
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"additionalProperties": false,
|
|
228
|
+
"description": "Non-Linku resources related to the specific word, such as wiki links."
|
|
229
|
+
},
|
|
230
|
+
"__schema21": {
|
|
231
|
+
"description": "A link to the word's page on sona.pona.la, a Toki Pona wiki. May redirect for words with references but no dedicated page.",
|
|
232
|
+
"$ref": "#/$defs/__schema22"
|
|
233
|
+
},
|
|
234
|
+
"__schema22": {
|
|
235
|
+
"type": "string",
|
|
236
|
+
"format": "uri",
|
|
237
|
+
"description": "A URL pointing to some external resource."
|
|
238
|
+
},
|
|
239
|
+
"__schema23": {
|
|
240
|
+
"description": "A link to lipamanka's description of the word's semantic space.",
|
|
241
|
+
"$ref": "#/$defs/__schema22"
|
|
242
|
+
},
|
|
243
|
+
"__schema24": {
|
|
244
|
+
"type": "object",
|
|
245
|
+
"properties": {
|
|
246
|
+
"sitelen_emosi": {
|
|
247
|
+
"$ref": "#/$defs/__schema25"
|
|
248
|
+
},
|
|
249
|
+
"sitelen_jelo": {
|
|
250
|
+
"$ref": "#/$defs/__schema27"
|
|
251
|
+
},
|
|
252
|
+
"ligatures": {
|
|
253
|
+
"$ref": "#/$defs/__schema30"
|
|
254
|
+
},
|
|
255
|
+
"sitelen_sitelen": {
|
|
256
|
+
"$ref": "#/$defs/__schema32"
|
|
257
|
+
},
|
|
258
|
+
"ucsur": {
|
|
259
|
+
"$ref": "#/$defs/__schema33"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"additionalProperties": false,
|
|
263
|
+
"description": "Ways of representing this word via text/computers"
|
|
264
|
+
},
|
|
265
|
+
"__schema25": {
|
|
266
|
+
"description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji",
|
|
267
|
+
"$ref": "#/$defs/__schema26"
|
|
268
|
+
},
|
|
269
|
+
"__schema26": {
|
|
270
|
+
"type": "string",
|
|
271
|
+
"minLength": 1,
|
|
272
|
+
"format": "emoji",
|
|
273
|
+
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
|
|
274
|
+
},
|
|
275
|
+
"__schema27": {
|
|
276
|
+
"description": "One or more example emojis for how the word can be written in sitelen jelo",
|
|
277
|
+
"$ref": "#/$defs/__schema28"
|
|
278
|
+
},
|
|
279
|
+
"__schema28": {
|
|
280
|
+
"minItems": 1,
|
|
281
|
+
"type": "array",
|
|
282
|
+
"items": {
|
|
283
|
+
"$ref": "#/$defs/__schema29"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"__schema29": {
|
|
287
|
+
"type": "string",
|
|
288
|
+
"minLength": 1,
|
|
289
|
+
"format": "emoji",
|
|
290
|
+
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
|
|
291
|
+
},
|
|
292
|
+
"__schema30": {
|
|
293
|
+
"description": "A list of sitelen Lasina representations of the word, used by ligature fonts to visually convert latin characters into sitelen pona",
|
|
294
|
+
"$ref": "#/$defs/__schema31"
|
|
295
|
+
},
|
|
296
|
+
"__schema31": {
|
|
297
|
+
"type": "array",
|
|
298
|
+
"items": {
|
|
299
|
+
"type": "string",
|
|
300
|
+
"minLength": 1
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"__schema32": {
|
|
304
|
+
"description": "A URL pointing to an image of this word's sitelen sitelen hieroglyphic block",
|
|
305
|
+
"$ref": "#/$defs/__schema22"
|
|
306
|
+
},
|
|
307
|
+
"__schema33": {
|
|
308
|
+
"description": "The UCSUR codepoint for this word.",
|
|
309
|
+
"$ref": "#/$defs/__schema34"
|
|
310
|
+
},
|
|
311
|
+
"__schema34": {
|
|
312
|
+
"type": "string",
|
|
313
|
+
"pattern": "^U\\+[\\da-fA-F]{4,6}$"
|
|
314
|
+
},
|
|
315
|
+
"__schema35": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"minLength": 1,
|
|
318
|
+
"description": "The language this word originated from"
|
|
319
|
+
},
|
|
320
|
+
"__schema36": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"enum": [
|
|
323
|
+
"core",
|
|
324
|
+
"common",
|
|
325
|
+
"uncommon",
|
|
326
|
+
"obscure",
|
|
327
|
+
"sandbox"
|
|
328
|
+
],
|
|
329
|
+
"description": "The word's usage category, derived from the data of the annual Linku word survey."
|
|
330
|
+
},
|
|
331
|
+
"__schema37": {
|
|
332
|
+
"type": "boolean",
|
|
333
|
+
"description": "Whether this word is considered deprecated by its author(s)."
|
|
334
|
+
},
|
|
335
|
+
"__schema38": {
|
|
336
|
+
"type": "array",
|
|
337
|
+
"items": {
|
|
338
|
+
"type": "object",
|
|
339
|
+
"properties": {
|
|
340
|
+
"author": {
|
|
341
|
+
"$ref": "#/$defs/__schema39"
|
|
342
|
+
},
|
|
343
|
+
"link": {
|
|
344
|
+
"$ref": "#/$defs/__schema40"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"required": [
|
|
348
|
+
"author",
|
|
349
|
+
"link"
|
|
350
|
+
],
|
|
351
|
+
"additionalProperties": false,
|
|
352
|
+
"description": "Audio files of the words pronounced out loud"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
"__schema39": {
|
|
356
|
+
"description": "The author of the audio file in `link`.",
|
|
357
|
+
"$ref": "#/$defs/__schema12"
|
|
358
|
+
},
|
|
359
|
+
"__schema40": {
|
|
360
|
+
"description": "A link to the audio file for the word, pronounced by `author`.",
|
|
361
|
+
"$ref": "#/$defs/__schema22"
|
|
362
|
+
},
|
|
363
|
+
"__schema41": {
|
|
364
|
+
"description": "The definition of the word in specific language editions of Toki Pona: The Language of Good",
|
|
365
|
+
"$ref": "#/$defs/__schema42"
|
|
366
|
+
},
|
|
367
|
+
"__schema42": {
|
|
368
|
+
"type": "object",
|
|
369
|
+
"properties": {
|
|
370
|
+
"en": {
|
|
371
|
+
"description": "The word's definition in the English edition of Toki Pona: The Language of Good",
|
|
372
|
+
"$ref": "#/$defs/__schema43"
|
|
373
|
+
},
|
|
374
|
+
"fr": {
|
|
375
|
+
"description": "The word's definition in the French edition of Toki Pona: The Language of Good",
|
|
376
|
+
"$ref": "#/$defs/__schema43"
|
|
377
|
+
},
|
|
378
|
+
"de": {
|
|
379
|
+
"description": "The word's definition in the German edition of Toki Pona: The Language of Good",
|
|
380
|
+
"$ref": "#/$defs/__schema43"
|
|
381
|
+
},
|
|
382
|
+
"eo": {
|
|
383
|
+
"description": "The word's definition in the Esperanto edition of Toki Pona: The Language of Good",
|
|
384
|
+
"$ref": "#/$defs/__schema43"
|
|
385
|
+
}
|
|
386
|
+
},
|
|
387
|
+
"required": [
|
|
388
|
+
"en",
|
|
389
|
+
"fr",
|
|
390
|
+
"de",
|
|
391
|
+
"eo"
|
|
392
|
+
],
|
|
393
|
+
"additionalProperties": false
|
|
394
|
+
},
|
|
395
|
+
"__schema43": {
|
|
396
|
+
"type": "string",
|
|
397
|
+
"minLength": 1,
|
|
398
|
+
"description": "Localized definition on the parent, such as a word or luka pona sign"
|
|
399
|
+
},
|
|
400
|
+
"__schema44": {
|
|
401
|
+
"type": "object",
|
|
402
|
+
"propertyNames": {
|
|
403
|
+
"$ref": "#/$defs/__schema45"
|
|
404
|
+
},
|
|
405
|
+
"additionalProperties": {
|
|
406
|
+
"$ref": "#/$defs/__schema15"
|
|
407
|
+
},
|
|
408
|
+
"description": "The percentage of respondents to the annual Linku word survey who report to use this word, by the date of the survey."
|
|
409
|
+
},
|
|
410
|
+
"__schema45": {
|
|
411
|
+
"type": "string",
|
|
412
|
+
"pattern": "^(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?$"
|
|
413
|
+
},
|
|
414
|
+
"__schema46": {
|
|
415
|
+
"description": "The IDs of all sitelen pona glyphs which represent the word. The usage category of each fetched glyph may be used to show or hide glyphs.",
|
|
416
|
+
"$ref": "#/$defs/__schema19"
|
|
417
|
+
},
|
|
418
|
+
"__schema47": {
|
|
419
|
+
"description": "The ID of the glyph most commonly used to represent this word in sitelen pona.",
|
|
420
|
+
"$ref": "#/$defs/__schema48"
|
|
421
|
+
},
|
|
422
|
+
"__schema48": {
|
|
423
|
+
"type": "string",
|
|
424
|
+
"minLength": 3,
|
|
425
|
+
"$ref": "#/$defs/__schema17"
|
|
426
|
+
},
|
|
427
|
+
"__schema49": {
|
|
428
|
+
"description": "Link to a PNG of the primary sitelen pona glyph for this word.",
|
|
429
|
+
"$ref": "#/$defs/__schema22"
|
|
430
|
+
},
|
|
431
|
+
"__schema50": {
|
|
432
|
+
"description": "Link to an SVG of the primary sitelen pona glyph for this word.",
|
|
433
|
+
"$ref": "#/$defs/__schema22"
|
|
434
|
+
},
|
|
435
|
+
"__schema51": {
|
|
436
|
+
"type": "object",
|
|
437
|
+
"properties": {
|
|
438
|
+
"commentary": {
|
|
439
|
+
"type": "string",
|
|
440
|
+
"description": "Localized commentary on this word, such as history, clarifications, or trivia."
|
|
441
|
+
},
|
|
442
|
+
"etymology": {
|
|
443
|
+
"type": "string",
|
|
444
|
+
"description": "Localized etymology of this word."
|
|
445
|
+
},
|
|
446
|
+
"definition": {
|
|
447
|
+
"description": "Localized definition of this word.",
|
|
448
|
+
"$ref": "#/$defs/__schema43"
|
|
449
|
+
}
|
|
450
|
+
},
|
|
451
|
+
"required": [
|
|
452
|
+
"commentary",
|
|
453
|
+
"etymology",
|
|
454
|
+
"definition"
|
|
455
|
+
],
|
|
456
|
+
"additionalProperties": false
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kulupu-linku/sona",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "A library providing TypeScript types and Zod schemas for the sona API",
|
|
5
5
|
"homepage": "https://linku.la/",
|
|
6
6
|
"bugs": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "GPL-3.0-or-later",
|
|
10
10
|
"contributors": [
|
|
11
11
|
{
|
|
12
|
-
"name": "
|
|
12
|
+
"name": "Shachar Zidon",
|
|
13
13
|
"url": "https://theonlytails.com/",
|
|
14
14
|
"email": "theonlytails@theonlytails.com"
|
|
15
15
|
},
|
|
@@ -20,57 +20,88 @@
|
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
22
|
"repository": {
|
|
23
|
+
"type": "git",
|
|
23
24
|
"url": "https://github.com/lipu-linku/sona.git",
|
|
24
|
-
"directory": "api"
|
|
25
|
-
"type": "git"
|
|
26
|
-
},
|
|
27
|
-
"dependencies": {
|
|
28
|
-
"@hono/vite-cloudflare-pages": "^0.4.0",
|
|
29
|
-
"@hono/vite-dev-server": "^0.14.0",
|
|
30
|
-
"@hono/zod-validator": "^0.2.1",
|
|
31
|
-
"hono": "^4.3.0",
|
|
32
|
-
"p-lazy": "^4.0.0",
|
|
33
|
-
"zod": "^3.23.6",
|
|
34
|
-
"zod-validation-error": "^3.2.0"
|
|
35
|
-
},
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@types/node": "^20.12.8",
|
|
38
|
-
"prettier": "^3.2.5",
|
|
39
|
-
"tsx": "^4.9.0",
|
|
40
|
-
"typescript": "^5.4.5",
|
|
41
|
-
"vite": "^5.2.11",
|
|
42
|
-
"vite-plugin-dts": "^4.0.0",
|
|
43
|
-
"zod-to-json-schema": "^3.23.0"
|
|
44
|
-
},
|
|
45
|
-
"engines": {
|
|
46
|
-
"pnpm": ">=9"
|
|
25
|
+
"directory": "api"
|
|
47
26
|
},
|
|
48
27
|
"files": [
|
|
49
28
|
"/dist",
|
|
50
29
|
"/generated"
|
|
51
30
|
],
|
|
52
|
-
"
|
|
31
|
+
"type": "module",
|
|
32
|
+
"main": "./dist/lib/v2/index.js",
|
|
33
|
+
"module": "./dist/lib/v2/index.js",
|
|
34
|
+
"types": "./dist/lib/v2/index.d.ts",
|
|
53
35
|
"exports": {
|
|
54
36
|
".": {
|
|
55
|
-
"import": "./dist/index.js",
|
|
56
|
-
"types": "./dist/index.d.ts"
|
|
37
|
+
"import": "./dist/lib/v2/index.js",
|
|
38
|
+
"types": "./dist/lib/v2/index.d.ts"
|
|
57
39
|
},
|
|
58
40
|
"./utils": {
|
|
59
|
-
"import": "./dist/utils.js",
|
|
60
|
-
"types": "./dist/utils.d.ts"
|
|
41
|
+
"import": "./dist/lib/v2/utils.js",
|
|
42
|
+
"types": "./dist/lib/v2/utils.d.ts"
|
|
61
43
|
},
|
|
62
44
|
"./client": {
|
|
63
|
-
"import": "./dist/client.js",
|
|
64
|
-
"types": "./dist/client.d.ts"
|
|
45
|
+
"import": "./dist/lib/v2/client.js",
|
|
46
|
+
"types": "./dist/lib/v2/client.d.ts"
|
|
47
|
+
},
|
|
48
|
+
"./v1": {
|
|
49
|
+
"import": "./dist/lib/v1/index.js",
|
|
50
|
+
"types": "./dist/lib/v1/index.d.ts"
|
|
51
|
+
},
|
|
52
|
+
"./v1/utils": {
|
|
53
|
+
"import": "./dist/lib/v1/utils.js",
|
|
54
|
+
"types": "./dist/lib/v1/utils.d.ts"
|
|
55
|
+
},
|
|
56
|
+
"./v1/client": {
|
|
57
|
+
"import": "./dist/lib/v1/client.js",
|
|
58
|
+
"types": "./dist/lib/v1/client.d.ts"
|
|
59
|
+
},
|
|
60
|
+
"./v2": {
|
|
61
|
+
"import": "./dist/lib/v2/index.js",
|
|
62
|
+
"types": "./dist/lib/v2/index.d.ts"
|
|
63
|
+
},
|
|
64
|
+
"./v2/utils": {
|
|
65
|
+
"import": "./dist/lib/v2/utils.js",
|
|
66
|
+
"types": "./dist/lib/v2/utils.d.ts"
|
|
67
|
+
},
|
|
68
|
+
"./v2/client": {
|
|
69
|
+
"import": "./dist/lib/v2/client.js",
|
|
70
|
+
"types": "./dist/lib/v2/client.d.ts"
|
|
65
71
|
}
|
|
66
72
|
},
|
|
67
|
-
"
|
|
73
|
+
"dependencies": {
|
|
74
|
+
"@hono/zod-validator": "^0.7.6",
|
|
75
|
+
"hono": "^4.12.10",
|
|
76
|
+
"p-lazy": "^5.0.0",
|
|
77
|
+
"zod": "^4.3.6"
|
|
78
|
+
},
|
|
79
|
+
"devDependencies": {
|
|
80
|
+
"@cloudflare/vite-plugin": "1.31.0",
|
|
81
|
+
"@hono/vite-build": "^1.11.1",
|
|
82
|
+
"@hono/vite-dev-server": "^0.25.1",
|
|
83
|
+
"@types/node": "^25.5.2",
|
|
84
|
+
"ajv": "^8.18.0",
|
|
85
|
+
"ajv-cli": "^5.0.0",
|
|
86
|
+
"ajv-formats": "^3.0.1",
|
|
87
|
+
"tsdown": "^0.21.7",
|
|
88
|
+
"tsx": "^4.21.0",
|
|
89
|
+
"typescript": "^6.0.2",
|
|
90
|
+
"vite": "^8.0.3",
|
|
91
|
+
"wrangler": "4.80.0"
|
|
92
|
+
},
|
|
93
|
+
"engines": {
|
|
94
|
+
"pnpm": ">=10"
|
|
95
|
+
},
|
|
68
96
|
"scripts": {
|
|
69
97
|
"dev": "vite",
|
|
70
98
|
"build": "vite build",
|
|
71
|
-
"build:lib": "
|
|
99
|
+
"build:lib": "tsdown",
|
|
100
|
+
"preview": "vite preview",
|
|
101
|
+
"prod": "vite preview",
|
|
72
102
|
"generate": "tsx ./generateSchemas.ts",
|
|
73
103
|
"generate:watch": "tsx ./generateSchemas.ts --watch-path=./**/*.ts",
|
|
74
|
-
"format": "
|
|
104
|
+
"format": "oxfmt .",
|
|
105
|
+
"lint": "oxlint"
|
|
75
106
|
}
|
|
76
107
|
}
|
package/dist/client.d.ts
DELETED