@kulupu-linku/sona 0.2.0 → 0.2.2
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/client.js +7 -2
- package/dist/index.js +1 -1
- package/dist/lib/client.d.ts +357 -21
- package/dist/lib/client.test.d.ts +27 -0
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/types.d.ts +1 -1
- package/dist/server/index.d.ts +392 -0
- package/dist/server/utils.d.ts +28 -0
- package/dist/server/v1/index.d.ts +394 -0
- package/dist/server/versioning.d.ts +2132 -0
- package/dist/utils-CnA4OULt.js +1 -1
- package/dist/utils.js +1 -1
- package/package.json +7 -7
- package/dist/client.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/utils-CnA4OULt.js.map +0 -1
- package/dist/utils.js.map +0 -1
- package/generated/sandbox.json +0 -315
package/generated/sandbox.json
DELETED
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$ref": "#/definitions/sandbox",
|
|
3
|
-
"definitions": {
|
|
4
|
-
"sandbox": {
|
|
5
|
-
"type": "object",
|
|
6
|
-
"additionalProperties": {
|
|
7
|
-
"type": "object",
|
|
8
|
-
"properties": {
|
|
9
|
-
"id": {
|
|
10
|
-
"type": "string",
|
|
11
|
-
"minLength": 1,
|
|
12
|
-
"description": "A unique identifier for the word. Usually the word but may have an integer added in case of a word with multiple definitions (like \"we\")"
|
|
13
|
-
},
|
|
14
|
-
"author_verbatim": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "The author's original definition, taken verbatim in their words"
|
|
17
|
-
},
|
|
18
|
-
"author_verbatim_source": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"description": "Where the author's original definition is located (usually Discord)"
|
|
21
|
-
},
|
|
22
|
-
"book": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"enum": [
|
|
25
|
-
"pu",
|
|
26
|
-
"ku suli",
|
|
27
|
-
"ku lili",
|
|
28
|
-
"none"
|
|
29
|
-
],
|
|
30
|
-
"description": "Which official Toki Pona book was this word featured in, if any."
|
|
31
|
-
},
|
|
32
|
-
"coined_era": {
|
|
33
|
-
"anyOf": [
|
|
34
|
-
{
|
|
35
|
-
"type": "string",
|
|
36
|
-
"enum": [
|
|
37
|
-
"pre-pu",
|
|
38
|
-
"post-pu",
|
|
39
|
-
"post-ku"
|
|
40
|
-
]
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
"type": "string",
|
|
44
|
-
"const": ""
|
|
45
|
-
}
|
|
46
|
-
],
|
|
47
|
-
"description": "When this word was coined (relative to the publication dates of the official Toki Pona books, if known)"
|
|
48
|
-
},
|
|
49
|
-
"coined_year": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"description": "The year when this word was coined (if known)"
|
|
52
|
-
},
|
|
53
|
-
"creator": {
|
|
54
|
-
"type": "array",
|
|
55
|
-
"items": {
|
|
56
|
-
"type": "string"
|
|
57
|
-
},
|
|
58
|
-
"description": "The person who created this word (if known)"
|
|
59
|
-
},
|
|
60
|
-
"ku_data": {
|
|
61
|
-
"type": "object",
|
|
62
|
-
"additionalProperties": {
|
|
63
|
-
"type": "number",
|
|
64
|
-
"minimum": 0,
|
|
65
|
-
"maximum": 100,
|
|
66
|
-
"description": "The percentage of ku survey respondents who report this translation as accurate to their usage."
|
|
67
|
-
},
|
|
68
|
-
"propertyNames": {
|
|
69
|
-
"minLength": 1
|
|
70
|
-
},
|
|
71
|
-
"description": "The usage data of the word as described in ku (the official Toki Pona dictionary)"
|
|
72
|
-
},
|
|
73
|
-
"see_also": {
|
|
74
|
-
"type": "array",
|
|
75
|
-
"items": {
|
|
76
|
-
"type": "string"
|
|
77
|
-
},
|
|
78
|
-
"description": "A list of related words"
|
|
79
|
-
},
|
|
80
|
-
"resources": {
|
|
81
|
-
"type": "object",
|
|
82
|
-
"properties": {
|
|
83
|
-
"sona_pona": {
|
|
84
|
-
"type": "string",
|
|
85
|
-
"format": "uri",
|
|
86
|
-
"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."
|
|
87
|
-
},
|
|
88
|
-
"lipamanka_semantic": {
|
|
89
|
-
"type": "string",
|
|
90
|
-
"format": "uri",
|
|
91
|
-
"description": "A link to lipamanka's description of the word's semantic space."
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
"additionalProperties": false,
|
|
95
|
-
"description": "Non-Linku resources related to the specific word, such as wiki links."
|
|
96
|
-
},
|
|
97
|
-
"representations": {
|
|
98
|
-
"type": "object",
|
|
99
|
-
"properties": {
|
|
100
|
-
"sitelen_emosi": {
|
|
101
|
-
"type": "string",
|
|
102
|
-
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",
|
|
103
|
-
"description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji"
|
|
104
|
-
},
|
|
105
|
-
"sitelen_jelo": {
|
|
106
|
-
"type": "array",
|
|
107
|
-
"items": {
|
|
108
|
-
"type": "string",
|
|
109
|
-
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
|
|
110
|
-
},
|
|
111
|
-
"minItems": 1,
|
|
112
|
-
"description": "One or more example emojis for how the word can be written in sitelen jelo"
|
|
113
|
-
},
|
|
114
|
-
"ligatures": {
|
|
115
|
-
"type": "array",
|
|
116
|
-
"items": {
|
|
117
|
-
"type": "string",
|
|
118
|
-
"minLength": 1
|
|
119
|
-
},
|
|
120
|
-
"description": "A list of sitelen Lasina representations of the word, used by ligature fonts to visually convert latin characters into sitelen pona"
|
|
121
|
-
},
|
|
122
|
-
"sitelen_sitelen": {
|
|
123
|
-
"type": "string",
|
|
124
|
-
"format": "uri",
|
|
125
|
-
"description": "A URL pointing to an image of this word's sitelen sitelen hieroglyphic block"
|
|
126
|
-
},
|
|
127
|
-
"ucsur": {
|
|
128
|
-
"type": "string",
|
|
129
|
-
"pattern": "^U\\+[\\da-fA-F]{4,6}$",
|
|
130
|
-
"description": "The word's UCSUR codepoint, as defined in https://www.kreativekorp.com/ucsur/charts/sitelen.html"
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
"additionalProperties": false,
|
|
134
|
-
"description": "Ways of representing this word in the real world, via text/computers"
|
|
135
|
-
},
|
|
136
|
-
"source_language": {
|
|
137
|
-
"type": "string",
|
|
138
|
-
"description": "The language this word originated from"
|
|
139
|
-
},
|
|
140
|
-
"usage_category": {
|
|
141
|
-
"type": "string",
|
|
142
|
-
"enum": [
|
|
143
|
-
"core",
|
|
144
|
-
"common",
|
|
145
|
-
"uncommon",
|
|
146
|
-
"obscure",
|
|
147
|
-
"sandbox"
|
|
148
|
-
],
|
|
149
|
-
"description": "The word's usage category, according to a survey performed by the Linku Project"
|
|
150
|
-
},
|
|
151
|
-
"word": {
|
|
152
|
-
"type": "string",
|
|
153
|
-
"description": "The word's actual text, in case of a word with multiple definitions (like \"we\")"
|
|
154
|
-
},
|
|
155
|
-
"deprecated": {
|
|
156
|
-
"type": "boolean",
|
|
157
|
-
"description": "Whether or not the word is considered deprecated by its author."
|
|
158
|
-
},
|
|
159
|
-
"etymology": {
|
|
160
|
-
"type": "array",
|
|
161
|
-
"items": {
|
|
162
|
-
"type": "object",
|
|
163
|
-
"properties": {
|
|
164
|
-
"word": {
|
|
165
|
-
"type": "string",
|
|
166
|
-
"description": "One of the root words of this word, as written out in its language of origin"
|
|
167
|
-
},
|
|
168
|
-
"alt": {
|
|
169
|
-
"type": "string",
|
|
170
|
-
"description": "A latinized representation of the \"word\" field"
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
"additionalProperties": false
|
|
174
|
-
},
|
|
175
|
-
"description": "Unlocalized etymological values regarding this word's origin"
|
|
176
|
-
},
|
|
177
|
-
"audio": {
|
|
178
|
-
"type": "array",
|
|
179
|
-
"items": {
|
|
180
|
-
"type": "object",
|
|
181
|
-
"properties": {
|
|
182
|
-
"author": {
|
|
183
|
-
"type": "string",
|
|
184
|
-
"description": "The author of the audio file in `link`."
|
|
185
|
-
},
|
|
186
|
-
"link": {
|
|
187
|
-
"type": "string",
|
|
188
|
-
"format": "uri",
|
|
189
|
-
"description": "A link to the audio file for the word, pronounced by `author`."
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
"required": [
|
|
193
|
-
"author",
|
|
194
|
-
"link"
|
|
195
|
-
],
|
|
196
|
-
"additionalProperties": false,
|
|
197
|
-
"description": "Audio files of the words pronounced out loud"
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
"pu_verbatim": {
|
|
201
|
-
"type": "object",
|
|
202
|
-
"properties": {
|
|
203
|
-
"en": {
|
|
204
|
-
"type": "string",
|
|
205
|
-
"description": "The original definition in the English version of pu"
|
|
206
|
-
},
|
|
207
|
-
"fr": {
|
|
208
|
-
"type": "string",
|
|
209
|
-
"description": "The original definition in the French version of pu"
|
|
210
|
-
},
|
|
211
|
-
"de": {
|
|
212
|
-
"type": "string",
|
|
213
|
-
"description": "The original definition in the German version of pu"
|
|
214
|
-
},
|
|
215
|
-
"eo": {
|
|
216
|
-
"type": "string",
|
|
217
|
-
"description": "The original definition in the Esperanto version of pu"
|
|
218
|
-
}
|
|
219
|
-
},
|
|
220
|
-
"required": [
|
|
221
|
-
"en",
|
|
222
|
-
"fr",
|
|
223
|
-
"de",
|
|
224
|
-
"eo"
|
|
225
|
-
],
|
|
226
|
-
"additionalProperties": false,
|
|
227
|
-
"description": "The original definition of the word in pu, the first official Toki Pona book"
|
|
228
|
-
},
|
|
229
|
-
"usage": {
|
|
230
|
-
"type": "object",
|
|
231
|
-
"additionalProperties": {
|
|
232
|
-
"type": "number",
|
|
233
|
-
"minimum": 0,
|
|
234
|
-
"maximum": 100
|
|
235
|
-
},
|
|
236
|
-
"propertyNames": {
|
|
237
|
-
"pattern": "^20\\d{2}-(0[1-9]|1[0-2])$"
|
|
238
|
-
},
|
|
239
|
-
"description": "The percentage of people in the Toki Pona community who use this word, according to surveys performed by the Linku Project"
|
|
240
|
-
},
|
|
241
|
-
"translations": {
|
|
242
|
-
"type": "object",
|
|
243
|
-
"additionalProperties": {
|
|
244
|
-
"type": "object",
|
|
245
|
-
"properties": {
|
|
246
|
-
"commentary": {
|
|
247
|
-
"type": "string"
|
|
248
|
-
},
|
|
249
|
-
"definition": {
|
|
250
|
-
"type": "string",
|
|
251
|
-
"minLength": 1
|
|
252
|
-
},
|
|
253
|
-
"etymology": {
|
|
254
|
-
"type": "array",
|
|
255
|
-
"items": {
|
|
256
|
-
"type": "object",
|
|
257
|
-
"properties": {
|
|
258
|
-
"definition": {
|
|
259
|
-
"type": "string",
|
|
260
|
-
"description": "The localized definition of the root word in its origin language"
|
|
261
|
-
},
|
|
262
|
-
"language": {
|
|
263
|
-
"type": "string",
|
|
264
|
-
"description": "The localized name of the language this word originated from"
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
"required": [
|
|
268
|
-
"language"
|
|
269
|
-
],
|
|
270
|
-
"additionalProperties": false
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
"sp_etymology": {
|
|
274
|
-
"type": "string"
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
"required": [
|
|
278
|
-
"commentary",
|
|
279
|
-
"definition",
|
|
280
|
-
"etymology",
|
|
281
|
-
"sp_etymology"
|
|
282
|
-
],
|
|
283
|
-
"additionalProperties": false
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
"required": [
|
|
288
|
-
"id",
|
|
289
|
-
"author_verbatim",
|
|
290
|
-
"author_verbatim_source",
|
|
291
|
-
"book",
|
|
292
|
-
"coined_era",
|
|
293
|
-
"coined_year",
|
|
294
|
-
"creator",
|
|
295
|
-
"see_also",
|
|
296
|
-
"source_language",
|
|
297
|
-
"usage_category",
|
|
298
|
-
"word",
|
|
299
|
-
"deprecated",
|
|
300
|
-
"etymology",
|
|
301
|
-
"audio",
|
|
302
|
-
"usage",
|
|
303
|
-
"translations"
|
|
304
|
-
],
|
|
305
|
-
"additionalProperties": false,
|
|
306
|
-
"description": "General info on a Toki Pona word"
|
|
307
|
-
},
|
|
308
|
-
"propertyNames": {
|
|
309
|
-
"minLength": 1
|
|
310
|
-
},
|
|
311
|
-
"description": "A raw data object containing dictionary info about Toki Pona sandbox"
|
|
312
|
-
}
|
|
313
|
-
},
|
|
314
|
-
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
315
|
-
}
|