@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.
Files changed (78) hide show
  1. package/dist/index-7uKIarVW.d.mts +1495 -0
  2. package/dist/index-N8h8E1s6.d.mts +398 -0
  3. package/dist/index-nmyNJa57.d.mts +300 -0
  4. package/dist/lib/v1/client.d.mts +1610 -0
  5. package/dist/lib/v1/client.mjs +8 -0
  6. package/dist/lib/v1/client.test.d.mts +30 -0
  7. package/dist/lib/v1/client.test.mjs +2 -0
  8. package/dist/lib/v1/index.d.mts +2 -0
  9. package/dist/lib/v1/index.mjs +137 -0
  10. package/dist/lib/v1/types.d.mts +2 -0
  11. package/dist/lib/v1/types.mjs +1 -0
  12. package/dist/lib/v1/utils.d.mts +26 -0
  13. package/dist/lib/v1/utils.mjs +35 -0
  14. package/dist/lib/v2/client.d.mts +1610 -0
  15. package/dist/lib/v2/client.mjs +8 -0
  16. package/dist/lib/v2/client.test.d.mts +35 -0
  17. package/dist/lib/v2/client.test.mjs +2 -0
  18. package/dist/lib/v2/index.d.mts +2 -0
  19. package/dist/lib/v2/index.mjs +192 -0
  20. package/dist/lib/v2/types.d.mts +2 -0
  21. package/dist/lib/v2/types.mjs +1 -0
  22. package/dist/lib/v2/utils.d.mts +44 -0
  23. package/dist/lib/v2/utils.mjs +38 -0
  24. package/dist/server/index.d.mts +2 -0
  25. package/dist/server/index.mjs +35 -0
  26. package/dist/server/utils.d.mts +27 -0
  27. package/dist/server/utils.mjs +31 -0
  28. package/dist/server/v1/index.d.mts +902 -0
  29. package/dist/server/v1/index.mjs +2 -0
  30. package/dist/server/v2/index.d.mts +1112 -0
  31. package/dist/server/v2/index.mjs +2 -0
  32. package/dist/server/versioning.d.mts +2019 -0
  33. package/dist/server/versioning.mjs +2 -0
  34. package/dist/v1-Da4_o5R1.mjs +261 -0
  35. package/generated/{commentary_translation.json → v1/commentary_translation.json} +1 -1
  36. package/generated/{definition_translation.json → v1/definition_translation.json} +1 -1
  37. package/generated/{etymology_translation.json → v1/etymology_translation.json} +2 -4
  38. package/generated/{fingerspelling.json → v1/fingerspelling.json} +5 -20
  39. package/generated/{fingerspelling_sign.json → v1/fingerspelling_sign.json} +4 -16
  40. package/generated/{font.json → v1/font.json} +1 -1
  41. package/generated/{fonts.json → v1/fonts.json} +1 -1
  42. package/generated/{icon_translation.json → v1/icon_translation.json} +1 -1
  43. package/generated/{languages.json → v1/languages.json} +4 -14
  44. package/generated/{parameters_translation.json → v1/parameters_translation.json} +1 -1
  45. package/generated/{sign.json → v1/sign.json} +3 -8
  46. package/generated/{signs.json → v1/signs.json} +4 -12
  47. package/generated/{sitelen_pona_translation.json → v1/sitelen_pona_translation.json} +1 -1
  48. package/generated/{word.json → v1/word.json} +6 -29
  49. package/generated/v2/fingerspelling.json +184 -0
  50. package/generated/v2/fingerspellings.json +198 -0
  51. package/generated/v2/font.json +164 -0
  52. package/generated/v2/fonts.json +178 -0
  53. package/generated/v2/glyph.json +186 -0
  54. package/generated/v2/glyphs.json +196 -0
  55. package/generated/v2/language.json +76 -0
  56. package/generated/v2/languages.json +86 -0
  57. package/generated/v2/sign.json +221 -0
  58. package/generated/v2/signs.json +235 -0
  59. package/generated/v2/word.json +449 -0
  60. package/generated/v2/words.json +459 -0
  61. package/package.json +66 -35
  62. package/dist/client.d.ts +0 -2
  63. package/dist/client.js +0 -172
  64. package/dist/index.d.ts +0 -2
  65. package/dist/index.js +0 -223
  66. package/dist/lib/client.d.ts +0 -743
  67. package/dist/lib/client.test.d.ts +0 -27
  68. package/dist/lib/index.d.ts +0 -962
  69. package/dist/lib/types.d.ts +0 -17
  70. package/dist/lib/utils.d.ts +0 -13
  71. package/dist/server/index.d.ts +0 -685
  72. package/dist/server/utils.d.ts +0 -19
  73. package/dist/server/v1/index.d.ts +0 -677
  74. package/dist/server/versioning.d.ts +0 -2423
  75. package/dist/utils-B3Jq5OVZ.js +0 -2899
  76. package/dist/utils.d.ts +0 -2
  77. package/dist/utils.js +0 -9
  78. package/generated/words.json +0 -315
@@ -0,0 +1,1112 @@
1
+ import { z } from "zod/v4";
2
+ import * as _$hono_types0 from "hono/types";
3
+ import * as _$hono_hono_base0 from "hono/hono-base";
4
+
5
+ //#region src/server/v2/index.d.ts
6
+ declare const config: {
7
+ readonly words: {
8
+ readonly root: "/";
9
+ readonly filename: "words.json";
10
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
11
+ id: z.ZodString;
12
+ word: z.ZodString;
13
+ author_verbatim: z.ZodOptional<z.ZodString>;
14
+ author_source: z.ZodOptional<z.ZodString>;
15
+ book: z.ZodEnum<{
16
+ pu: "pu";
17
+ "ku suli": "ku suli";
18
+ "ku lili": "ku lili";
19
+ none: "none";
20
+ }>;
21
+ coined_era: z.ZodEnum<{
22
+ "pre-pu": "pre-pu";
23
+ "post-pu": "post-pu";
24
+ "post-ku": "post-ku";
25
+ }>;
26
+ creation_date: z.ZodString;
27
+ author: z.ZodArray<z.ZodString>;
28
+ ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
29
+ parent_id: z.ZodOptional<z.ZodString>;
30
+ see_also: z.ZodArray<z.ZodString>;
31
+ resources: z.ZodObject<{
32
+ sona_pona: z.ZodOptional<z.ZodURL>;
33
+ lipamanka_semantic: z.ZodOptional<z.ZodURL>;
34
+ }, z.core.$strip>;
35
+ representations: z.ZodObject<{
36
+ sitelen_emosi: z.ZodOptional<z.ZodEmoji>;
37
+ sitelen_jelo: z.ZodOptional<z.ZodArray<z.ZodEmoji>>;
38
+ ligatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
39
+ sitelen_sitelen: z.ZodOptional<z.ZodURL>;
40
+ ucsur: z.ZodOptional<z.ZodString>;
41
+ }, z.core.$strip>;
42
+ source_language: z.ZodString;
43
+ usage_category: z.ZodEnum<{
44
+ core: "core";
45
+ common: "common";
46
+ uncommon: "uncommon";
47
+ obscure: "obscure";
48
+ sandbox: "sandbox";
49
+ }>;
50
+ deprecated: z.ZodBoolean;
51
+ audio: z.ZodArray<z.ZodObject<{
52
+ author: z.ZodString;
53
+ link: z.ZodURL;
54
+ }, z.core.$strip>>;
55
+ pu_verbatim: z.ZodOptional<z.ZodObject<{
56
+ en: z.ZodString;
57
+ fr: z.ZodString;
58
+ de: z.ZodString;
59
+ eo: z.ZodString;
60
+ }, z.core.$strip>>;
61
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
62
+ glyph_ids: z.ZodArray<z.ZodString>;
63
+ primary_glyph_id: z.ZodOptional<z.ZodString>;
64
+ image: z.ZodOptional<z.ZodURL>;
65
+ svg: z.ZodOptional<z.ZodURL>;
66
+ translations: z.ZodObject<{
67
+ commentary: z.ZodString;
68
+ etymology: z.ZodString;
69
+ definition: z.ZodString;
70
+ }, z.core.$strip>;
71
+ }, z.core.$strip>>;
72
+ readonly translations: true;
73
+ };
74
+ readonly glyphs: {
75
+ readonly root: "/";
76
+ readonly filename: "glyphs.json";
77
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
78
+ id: z.ZodString;
79
+ word: z.ZodString;
80
+ word_id: z.ZodString;
81
+ usage_category: z.ZodEnum<{
82
+ core: "core";
83
+ common: "common";
84
+ uncommon: "uncommon";
85
+ obscure: "obscure";
86
+ sandbox: "sandbox";
87
+ }>;
88
+ author: z.ZodArray<z.ZodString>;
89
+ author_source: z.ZodOptional<z.ZodString>;
90
+ creation_date: z.ZodString;
91
+ see_also: z.ZodArray<z.ZodString>;
92
+ primary: z.ZodBoolean;
93
+ parent_id: z.ZodOptional<z.ZodString>;
94
+ deprecated: z.ZodBoolean;
95
+ image: z.ZodOptional<z.ZodURL>;
96
+ svg: z.ZodOptional<z.ZodURL>;
97
+ ligature: z.ZodOptional<z.ZodString>;
98
+ alias_ligatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
99
+ ucsur: z.ZodOptional<z.ZodString>;
100
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
101
+ translations: z.ZodObject<{
102
+ commentary: z.ZodString;
103
+ etymology: z.ZodString;
104
+ names: z.ZodArray<z.ZodString>;
105
+ }, z.core.$strip>;
106
+ }, z.core.$strip>>;
107
+ readonly translations: true;
108
+ };
109
+ readonly sandbox_words: {
110
+ readonly root: "sandbox/";
111
+ readonly filename: "words.json";
112
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
113
+ id: z.ZodString;
114
+ word: z.ZodString;
115
+ author_verbatim: z.ZodOptional<z.ZodString>;
116
+ author_source: z.ZodOptional<z.ZodString>;
117
+ book: z.ZodEnum<{
118
+ pu: "pu";
119
+ "ku suli": "ku suli";
120
+ "ku lili": "ku lili";
121
+ none: "none";
122
+ }>;
123
+ coined_era: z.ZodEnum<{
124
+ "pre-pu": "pre-pu";
125
+ "post-pu": "post-pu";
126
+ "post-ku": "post-ku";
127
+ }>;
128
+ creation_date: z.ZodString;
129
+ author: z.ZodArray<z.ZodString>;
130
+ ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
131
+ parent_id: z.ZodOptional<z.ZodString>;
132
+ see_also: z.ZodArray<z.ZodString>;
133
+ resources: z.ZodObject<{
134
+ sona_pona: z.ZodOptional<z.ZodURL>;
135
+ lipamanka_semantic: z.ZodOptional<z.ZodURL>;
136
+ }, z.core.$strip>;
137
+ representations: z.ZodObject<{
138
+ sitelen_emosi: z.ZodOptional<z.ZodEmoji>;
139
+ sitelen_jelo: z.ZodOptional<z.ZodArray<z.ZodEmoji>>;
140
+ ligatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
141
+ sitelen_sitelen: z.ZodOptional<z.ZodURL>;
142
+ ucsur: z.ZodOptional<z.ZodString>;
143
+ }, z.core.$strip>;
144
+ source_language: z.ZodString;
145
+ usage_category: z.ZodEnum<{
146
+ core: "core";
147
+ common: "common";
148
+ uncommon: "uncommon";
149
+ obscure: "obscure";
150
+ sandbox: "sandbox";
151
+ }>;
152
+ deprecated: z.ZodBoolean;
153
+ audio: z.ZodArray<z.ZodObject<{
154
+ author: z.ZodString;
155
+ link: z.ZodURL;
156
+ }, z.core.$strip>>;
157
+ pu_verbatim: z.ZodOptional<z.ZodObject<{
158
+ en: z.ZodString;
159
+ fr: z.ZodString;
160
+ de: z.ZodString;
161
+ eo: z.ZodString;
162
+ }, z.core.$strip>>;
163
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
164
+ glyph_ids: z.ZodArray<z.ZodString>;
165
+ primary_glyph_id: z.ZodOptional<z.ZodString>;
166
+ image: z.ZodOptional<z.ZodURL>;
167
+ svg: z.ZodOptional<z.ZodURL>;
168
+ translations: z.ZodObject<{
169
+ commentary: z.ZodString;
170
+ etymology: z.ZodString;
171
+ definition: z.ZodString;
172
+ }, z.core.$strip>;
173
+ }, z.core.$strip>>;
174
+ readonly translations: true;
175
+ };
176
+ readonly sandbox_glyphs: {
177
+ readonly root: "sandbox/";
178
+ readonly filename: "glyphs.json";
179
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
180
+ id: z.ZodString;
181
+ word: z.ZodString;
182
+ word_id: z.ZodString;
183
+ usage_category: z.ZodEnum<{
184
+ core: "core";
185
+ common: "common";
186
+ uncommon: "uncommon";
187
+ obscure: "obscure";
188
+ sandbox: "sandbox";
189
+ }>;
190
+ author: z.ZodArray<z.ZodString>;
191
+ author_source: z.ZodOptional<z.ZodString>;
192
+ creation_date: z.ZodString;
193
+ see_also: z.ZodArray<z.ZodString>;
194
+ primary: z.ZodBoolean;
195
+ parent_id: z.ZodOptional<z.ZodString>;
196
+ deprecated: z.ZodBoolean;
197
+ image: z.ZodOptional<z.ZodURL>;
198
+ svg: z.ZodOptional<z.ZodURL>;
199
+ ligature: z.ZodOptional<z.ZodString>;
200
+ alias_ligatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
201
+ ucsur: z.ZodOptional<z.ZodString>;
202
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
203
+ translations: z.ZodObject<{
204
+ commentary: z.ZodString;
205
+ etymology: z.ZodString;
206
+ names: z.ZodArray<z.ZodString>;
207
+ }, z.core.$strip>;
208
+ }, z.core.$strip>>;
209
+ readonly translations: true;
210
+ };
211
+ readonly signs: {
212
+ readonly root: "luka_pona/";
213
+ readonly filename: "signs.json";
214
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
215
+ id: z.ZodString;
216
+ is_two_handed: z.ZodBoolean;
217
+ etymology: z.ZodArray<z.ZodObject<{
218
+ language: z.ZodString;
219
+ sign: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strip>>;
221
+ signwriting: z.ZodObject<{
222
+ fsw: z.ZodString;
223
+ swu: z.ZodString;
224
+ }, z.core.$strip>;
225
+ video: z.ZodOptional<z.ZodObject<{
226
+ gif: z.ZodURL;
227
+ mp4: z.ZodURL;
228
+ }, z.core.$strip>>;
229
+ definition: z.ZodString;
230
+ new_gloss: z.ZodString;
231
+ old_gloss: z.ZodString;
232
+ old_id: z.ZodString;
233
+ translations: z.ZodObject<{
234
+ icons: z.ZodString;
235
+ parameters: z.ZodObject<{
236
+ handshape: z.ZodOptional<z.ZodString>;
237
+ movement: z.ZodOptional<z.ZodString>;
238
+ placement: z.ZodOptional<z.ZodString>;
239
+ orientation: z.ZodOptional<z.ZodString>;
240
+ }, z.core.$strip>;
241
+ }, z.core.$strip>;
242
+ }, z.core.$strip>>;
243
+ readonly translations: true;
244
+ };
245
+ readonly fingerspellings: {
246
+ readonly root: "luka_pona/";
247
+ readonly filename: "fingerspellings.json";
248
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
249
+ id: z.ZodString;
250
+ is_two_handed: z.ZodBoolean;
251
+ etymology: z.ZodArray<z.ZodObject<{
252
+ language: z.ZodString;
253
+ sign: z.ZodOptional<z.ZodString>;
254
+ }, z.core.$strip>>;
255
+ signwriting: z.ZodObject<{
256
+ fsw: z.ZodString;
257
+ swu: z.ZodString;
258
+ }, z.core.$strip>;
259
+ video: z.ZodOptional<z.ZodObject<{
260
+ gif: z.ZodURL;
261
+ mp4: z.ZodURL;
262
+ }, z.core.$strip>>;
263
+ translations: z.ZodObject<{
264
+ parameters: z.ZodObject<{
265
+ handshape: z.ZodOptional<z.ZodString>;
266
+ movement: z.ZodOptional<z.ZodString>;
267
+ placement: z.ZodOptional<z.ZodString>;
268
+ orientation: z.ZodOptional<z.ZodString>;
269
+ }, z.core.$strip>;
270
+ }, z.core.$strip>;
271
+ }, z.core.$strip>>;
272
+ readonly translations: true;
273
+ };
274
+ readonly fonts: {
275
+ readonly root: "/";
276
+ readonly filename: "fonts.json";
277
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
278
+ id: z.ZodString;
279
+ author: z.ZodArray<z.ZodString>;
280
+ features: z.ZodArray<z.ZodString>;
281
+ filename: z.ZodString;
282
+ last_updated: z.ZodString;
283
+ license: z.ZodString;
284
+ ligatures: z.ZodBoolean;
285
+ name: z.ZodString;
286
+ style: z.ZodString;
287
+ ucsur: z.ZodBoolean;
288
+ version: z.ZodString;
289
+ writing_system: z.ZodEnum<{
290
+ "sitelen pona": "sitelen pona";
291
+ "sitelen sitelen": "sitelen sitelen";
292
+ alphabet: "alphabet";
293
+ syllabary: "syllabary";
294
+ logography: "logography";
295
+ "tokiponido alphabet": "tokiponido alphabet";
296
+ "tokiponido syllabary": "tokiponido syllabary";
297
+ "tokiponido logography": "tokiponido logography";
298
+ }>;
299
+ links: z.ZodObject<{
300
+ fontfile: z.ZodOptional<z.ZodURL>;
301
+ repo: z.ZodOptional<z.ZodURL>;
302
+ webpage: z.ZodOptional<z.ZodURL>;
303
+ }, z.core.$strip>;
304
+ }, z.core.$strip>>;
305
+ readonly translations: false;
306
+ };
307
+ readonly languages: {
308
+ readonly root: "/";
309
+ readonly filename: "languages.json";
310
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
311
+ id: z.ZodString;
312
+ locale: z.ZodString;
313
+ direction: z.ZodUnion<readonly [z.ZodLiteral<"ltr">, z.ZodLiteral<"rtl">]>;
314
+ name: z.ZodObject<{
315
+ en: z.ZodString;
316
+ endonym: z.ZodString;
317
+ tok: z.ZodOptional<z.ZodString>;
318
+ }, z.core.$strip>;
319
+ }, z.core.$strip>>;
320
+ readonly translations: false;
321
+ };
322
+ };
323
+ declare const fetchData: <K extends keyof typeof config>(key: K, langcode?: string) => Promise<z.output<(typeof config)[K]["schema"]>>;
324
+ declare const app: _$hono_hono_base0.HonoBase<_$hono_types0.BlankEnv, {
325
+ "/": {
326
+ $get: {
327
+ input: {};
328
+ output: undefined;
329
+ outputFormat: "redirect";
330
+ status: 302;
331
+ };
332
+ };
333
+ } & {
334
+ "/words": {
335
+ $get: {
336
+ input: {};
337
+ output: {
338
+ [x: string]: {
339
+ id: string;
340
+ word: string;
341
+ book: "pu" | "ku suli" | "ku lili" | "none";
342
+ coined_era: "pre-pu" | "post-pu" | "post-ku";
343
+ creation_date: string;
344
+ author: string[];
345
+ see_also: string[];
346
+ resources: {
347
+ sona_pona?: string | undefined;
348
+ lipamanka_semantic?: string | undefined;
349
+ };
350
+ representations: {
351
+ sitelen_emosi?: string | undefined;
352
+ sitelen_jelo?: string[] | undefined;
353
+ ligatures?: string[] | undefined;
354
+ sitelen_sitelen?: string | undefined;
355
+ ucsur?: string | undefined;
356
+ };
357
+ source_language: string;
358
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
359
+ deprecated: boolean;
360
+ audio: {
361
+ author: string;
362
+ link: string;
363
+ }[];
364
+ usage: {
365
+ [x: string]: number;
366
+ };
367
+ glyph_ids: string[];
368
+ translations: {
369
+ commentary: string;
370
+ etymology: string;
371
+ definition: string;
372
+ };
373
+ author_verbatim?: string | undefined;
374
+ author_source?: string | undefined;
375
+ ku_data?: {
376
+ [x: string]: number;
377
+ } | undefined;
378
+ parent_id?: string | undefined;
379
+ pu_verbatim?: {
380
+ en: string;
381
+ fr: string;
382
+ de: string;
383
+ eo: string;
384
+ } | undefined;
385
+ primary_glyph_id?: string | undefined;
386
+ image?: string | undefined;
387
+ svg?: string | undefined;
388
+ };
389
+ };
390
+ outputFormat: "json";
391
+ status: 200;
392
+ };
393
+ };
394
+ } & {
395
+ "/words/:word": {
396
+ $get: {
397
+ input: {
398
+ param: {
399
+ word: string;
400
+ };
401
+ };
402
+ output: {
403
+ success: true;
404
+ data: {
405
+ id: string;
406
+ word: string;
407
+ book: "pu" | "ku suli" | "ku lili" | "none";
408
+ coined_era: "pre-pu" | "post-pu" | "post-ku";
409
+ creation_date: string;
410
+ author: string[];
411
+ see_also: string[];
412
+ resources: {
413
+ sona_pona?: string | undefined;
414
+ lipamanka_semantic?: string | undefined;
415
+ };
416
+ representations: {
417
+ sitelen_emosi?: string | undefined;
418
+ sitelen_jelo?: string[] | undefined;
419
+ ligatures?: string[] | undefined;
420
+ sitelen_sitelen?: string | undefined;
421
+ ucsur?: string | undefined;
422
+ };
423
+ source_language: string;
424
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
425
+ deprecated: boolean;
426
+ audio: {
427
+ author: string;
428
+ link: string;
429
+ }[];
430
+ usage: {
431
+ [x: string]: number;
432
+ };
433
+ glyph_ids: string[];
434
+ translations: {
435
+ commentary: string;
436
+ etymology: string;
437
+ definition: string;
438
+ };
439
+ author_verbatim?: string | undefined;
440
+ author_source?: string | undefined;
441
+ ku_data?: {
442
+ [x: string]: number;
443
+ } | undefined;
444
+ parent_id?: string | undefined;
445
+ pu_verbatim?: {
446
+ en: string;
447
+ fr: string;
448
+ de: string;
449
+ eo: string;
450
+ } | undefined;
451
+ primary_glyph_id?: string | undefined;
452
+ image?: string | undefined;
453
+ svg?: string | undefined;
454
+ };
455
+ };
456
+ outputFormat: "json";
457
+ status: 200;
458
+ } | {
459
+ input: {
460
+ param: {
461
+ word: string;
462
+ };
463
+ };
464
+ output: {
465
+ success: false;
466
+ message: string;
467
+ };
468
+ outputFormat: "json";
469
+ status: 400;
470
+ };
471
+ };
472
+ } & {
473
+ "/glyphs": {
474
+ $get: {
475
+ input: {};
476
+ output: {
477
+ [x: string]: {
478
+ id: string;
479
+ word: string;
480
+ word_id: string;
481
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
482
+ author: string[];
483
+ creation_date: string;
484
+ see_also: string[];
485
+ primary: boolean;
486
+ deprecated: boolean;
487
+ usage: {
488
+ [x: string]: number;
489
+ };
490
+ translations: {
491
+ commentary: string;
492
+ etymology: string;
493
+ names: string[];
494
+ };
495
+ author_source?: string | undefined;
496
+ parent_id?: string | undefined;
497
+ image?: string | undefined;
498
+ svg?: string | undefined;
499
+ ligature?: string | undefined;
500
+ alias_ligatures?: string[] | undefined;
501
+ ucsur?: string | undefined;
502
+ };
503
+ };
504
+ outputFormat: "json";
505
+ status: 200;
506
+ };
507
+ };
508
+ } & {
509
+ "/glyphs/:glyph": {
510
+ $get: {
511
+ input: {
512
+ param: {
513
+ glyph: string;
514
+ };
515
+ };
516
+ output: {
517
+ success: true;
518
+ data: {
519
+ id: string;
520
+ word: string;
521
+ word_id: string;
522
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
523
+ author: string[];
524
+ creation_date: string;
525
+ see_also: string[];
526
+ primary: boolean;
527
+ deprecated: boolean;
528
+ usage: {
529
+ [x: string]: number;
530
+ };
531
+ translations: {
532
+ commentary: string;
533
+ etymology: string;
534
+ names: string[];
535
+ };
536
+ author_source?: string | undefined;
537
+ parent_id?: string | undefined;
538
+ image?: string | undefined;
539
+ svg?: string | undefined;
540
+ ligature?: string | undefined;
541
+ alias_ligatures?: string[] | undefined;
542
+ ucsur?: string | undefined;
543
+ };
544
+ };
545
+ outputFormat: "json";
546
+ status: 200;
547
+ } | {
548
+ input: {
549
+ param: {
550
+ glyph: string;
551
+ };
552
+ };
553
+ output: {
554
+ success: false;
555
+ message: string;
556
+ };
557
+ outputFormat: "json";
558
+ status: 400;
559
+ };
560
+ };
561
+ } & {
562
+ "/sandbox": {
563
+ $get: {
564
+ input: {};
565
+ output: undefined;
566
+ outputFormat: "redirect";
567
+ status: 302;
568
+ };
569
+ };
570
+ } & {
571
+ "/sandbox/words": {
572
+ $get: {
573
+ input: {};
574
+ output: {
575
+ [x: string]: {
576
+ id: string;
577
+ word: string;
578
+ book: "pu" | "ku suli" | "ku lili" | "none";
579
+ coined_era: "pre-pu" | "post-pu" | "post-ku";
580
+ creation_date: string;
581
+ author: string[];
582
+ see_also: string[];
583
+ resources: {
584
+ sona_pona?: string | undefined;
585
+ lipamanka_semantic?: string | undefined;
586
+ };
587
+ representations: {
588
+ sitelen_emosi?: string | undefined;
589
+ sitelen_jelo?: string[] | undefined;
590
+ ligatures?: string[] | undefined;
591
+ sitelen_sitelen?: string | undefined;
592
+ ucsur?: string | undefined;
593
+ };
594
+ source_language: string;
595
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
596
+ deprecated: boolean;
597
+ audio: {
598
+ author: string;
599
+ link: string;
600
+ }[];
601
+ usage: {
602
+ [x: string]: number;
603
+ };
604
+ glyph_ids: string[];
605
+ translations: {
606
+ commentary: string;
607
+ etymology: string;
608
+ definition: string;
609
+ };
610
+ author_verbatim?: string | undefined;
611
+ author_source?: string | undefined;
612
+ ku_data?: {
613
+ [x: string]: number;
614
+ } | undefined;
615
+ parent_id?: string | undefined;
616
+ pu_verbatim?: {
617
+ en: string;
618
+ fr: string;
619
+ de: string;
620
+ eo: string;
621
+ } | undefined;
622
+ primary_glyph_id?: string | undefined;
623
+ image?: string | undefined;
624
+ svg?: string | undefined;
625
+ };
626
+ };
627
+ outputFormat: "json";
628
+ status: 200;
629
+ };
630
+ };
631
+ } & {
632
+ "/sandbox/words/:word": {
633
+ $get: {
634
+ input: {
635
+ param: {
636
+ word: string;
637
+ };
638
+ };
639
+ output: {
640
+ success: true;
641
+ data: {
642
+ id: string;
643
+ word: string;
644
+ book: "pu" | "ku suli" | "ku lili" | "none";
645
+ coined_era: "pre-pu" | "post-pu" | "post-ku";
646
+ creation_date: string;
647
+ author: string[];
648
+ see_also: string[];
649
+ resources: {
650
+ sona_pona?: string | undefined;
651
+ lipamanka_semantic?: string | undefined;
652
+ };
653
+ representations: {
654
+ sitelen_emosi?: string | undefined;
655
+ sitelen_jelo?: string[] | undefined;
656
+ ligatures?: string[] | undefined;
657
+ sitelen_sitelen?: string | undefined;
658
+ ucsur?: string | undefined;
659
+ };
660
+ source_language: string;
661
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
662
+ deprecated: boolean;
663
+ audio: {
664
+ author: string;
665
+ link: string;
666
+ }[];
667
+ usage: {
668
+ [x: string]: number;
669
+ };
670
+ glyph_ids: string[];
671
+ translations: {
672
+ commentary: string;
673
+ etymology: string;
674
+ definition: string;
675
+ };
676
+ author_verbatim?: string | undefined;
677
+ author_source?: string | undefined;
678
+ ku_data?: {
679
+ [x: string]: number;
680
+ } | undefined;
681
+ parent_id?: string | undefined;
682
+ pu_verbatim?: {
683
+ en: string;
684
+ fr: string;
685
+ de: string;
686
+ eo: string;
687
+ } | undefined;
688
+ primary_glyph_id?: string | undefined;
689
+ image?: string | undefined;
690
+ svg?: string | undefined;
691
+ };
692
+ };
693
+ outputFormat: "json";
694
+ status: 200;
695
+ } | {
696
+ input: {
697
+ param: {
698
+ word: string;
699
+ };
700
+ };
701
+ output: {
702
+ success: false;
703
+ message: string;
704
+ };
705
+ outputFormat: "json";
706
+ status: 400;
707
+ };
708
+ };
709
+ } & {
710
+ "/sandbox/glyphs": {
711
+ $get: {
712
+ input: {};
713
+ output: {
714
+ [x: string]: {
715
+ id: string;
716
+ word: string;
717
+ word_id: string;
718
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
719
+ author: string[];
720
+ creation_date: string;
721
+ see_also: string[];
722
+ primary: boolean;
723
+ deprecated: boolean;
724
+ usage: {
725
+ [x: string]: number;
726
+ };
727
+ translations: {
728
+ commentary: string;
729
+ etymology: string;
730
+ names: string[];
731
+ };
732
+ author_source?: string | undefined;
733
+ parent_id?: string | undefined;
734
+ image?: string | undefined;
735
+ svg?: string | undefined;
736
+ ligature?: string | undefined;
737
+ alias_ligatures?: string[] | undefined;
738
+ ucsur?: string | undefined;
739
+ };
740
+ };
741
+ outputFormat: "json";
742
+ status: 200;
743
+ };
744
+ };
745
+ } & {
746
+ "/sandbox/glyphs/:glyph": {
747
+ $get: {
748
+ input: {
749
+ param: {
750
+ glyph: string;
751
+ };
752
+ };
753
+ output: {
754
+ success: true;
755
+ data: {
756
+ id: string;
757
+ word: string;
758
+ word_id: string;
759
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
760
+ author: string[];
761
+ creation_date: string;
762
+ see_also: string[];
763
+ primary: boolean;
764
+ deprecated: boolean;
765
+ usage: {
766
+ [x: string]: number;
767
+ };
768
+ translations: {
769
+ commentary: string;
770
+ etymology: string;
771
+ names: string[];
772
+ };
773
+ author_source?: string | undefined;
774
+ parent_id?: string | undefined;
775
+ image?: string | undefined;
776
+ svg?: string | undefined;
777
+ ligature?: string | undefined;
778
+ alias_ligatures?: string[] | undefined;
779
+ ucsur?: string | undefined;
780
+ };
781
+ };
782
+ outputFormat: "json";
783
+ status: 200;
784
+ } | {
785
+ input: {
786
+ param: {
787
+ glyph: string;
788
+ };
789
+ };
790
+ output: {
791
+ success: false;
792
+ message: string;
793
+ };
794
+ outputFormat: "json";
795
+ status: 400;
796
+ };
797
+ };
798
+ } & {
799
+ "/luka_pona/signs": {
800
+ $get: {
801
+ input: {};
802
+ output: {
803
+ [x: string]: {
804
+ id: string;
805
+ is_two_handed: boolean;
806
+ etymology: {
807
+ language: string;
808
+ sign?: string | undefined;
809
+ }[];
810
+ signwriting: {
811
+ fsw: string;
812
+ swu: string;
813
+ };
814
+ definition: string;
815
+ new_gloss: string;
816
+ old_gloss: string;
817
+ old_id: string;
818
+ translations: {
819
+ icons: string;
820
+ parameters: {
821
+ handshape?: string | undefined;
822
+ movement?: string | undefined;
823
+ placement?: string | undefined;
824
+ orientation?: string | undefined;
825
+ };
826
+ };
827
+ video?: {
828
+ gif: string;
829
+ mp4: string;
830
+ } | undefined;
831
+ };
832
+ };
833
+ outputFormat: "json";
834
+ status: 200;
835
+ };
836
+ };
837
+ } & {
838
+ "/luka_pona/signs/:sign": {
839
+ $get: {
840
+ input: {
841
+ param: {
842
+ sign: string;
843
+ };
844
+ };
845
+ output: {
846
+ success: true;
847
+ data: {
848
+ id: string;
849
+ is_two_handed: boolean;
850
+ etymology: {
851
+ language: string;
852
+ sign?: string | undefined;
853
+ }[];
854
+ signwriting: {
855
+ fsw: string;
856
+ swu: string;
857
+ };
858
+ definition: string;
859
+ new_gloss: string;
860
+ old_gloss: string;
861
+ old_id: string;
862
+ translations: {
863
+ icons: string;
864
+ parameters: {
865
+ handshape?: string | undefined;
866
+ movement?: string | undefined;
867
+ placement?: string | undefined;
868
+ orientation?: string | undefined;
869
+ };
870
+ };
871
+ video?: {
872
+ gif: string;
873
+ mp4: string;
874
+ } | undefined;
875
+ };
876
+ };
877
+ outputFormat: "json";
878
+ status: 200;
879
+ } | {
880
+ input: {
881
+ param: {
882
+ sign: string;
883
+ };
884
+ };
885
+ output: {
886
+ success: false;
887
+ message: string;
888
+ };
889
+ outputFormat: "json";
890
+ status: 400;
891
+ };
892
+ };
893
+ } & {
894
+ "/luka_pona/fingerspellings": {
895
+ $get: {
896
+ input: {};
897
+ output: {
898
+ [x: string]: {
899
+ id: string;
900
+ is_two_handed: boolean;
901
+ etymology: {
902
+ language: string;
903
+ sign?: string | undefined;
904
+ }[];
905
+ signwriting: {
906
+ fsw: string;
907
+ swu: string;
908
+ };
909
+ translations: {
910
+ parameters: {
911
+ handshape?: string | undefined;
912
+ movement?: string | undefined;
913
+ placement?: string | undefined;
914
+ orientation?: string | undefined;
915
+ };
916
+ };
917
+ video?: {
918
+ gif: string;
919
+ mp4: string;
920
+ } | undefined;
921
+ };
922
+ };
923
+ outputFormat: "json";
924
+ status: 200;
925
+ };
926
+ };
927
+ } & {
928
+ "/luka_pona/fingerspellings/:fingerspelling": {
929
+ $get: {
930
+ input: {
931
+ param: {
932
+ fingerspelling: string;
933
+ };
934
+ };
935
+ output: {
936
+ success: true;
937
+ data: {
938
+ id: string;
939
+ is_two_handed: boolean;
940
+ etymology: {
941
+ language: string;
942
+ sign?: string | undefined;
943
+ }[];
944
+ signwriting: {
945
+ fsw: string;
946
+ swu: string;
947
+ };
948
+ translations: {
949
+ parameters: {
950
+ handshape?: string | undefined;
951
+ movement?: string | undefined;
952
+ placement?: string | undefined;
953
+ orientation?: string | undefined;
954
+ };
955
+ };
956
+ video?: {
957
+ gif: string;
958
+ mp4: string;
959
+ } | undefined;
960
+ };
961
+ };
962
+ outputFormat: "json";
963
+ status: 200;
964
+ } | {
965
+ input: {
966
+ param: {
967
+ fingerspelling: string;
968
+ };
969
+ };
970
+ output: {
971
+ success: false;
972
+ message: string;
973
+ };
974
+ outputFormat: "json";
975
+ status: 400;
976
+ };
977
+ };
978
+ } & {
979
+ "/fonts": {
980
+ $get: {
981
+ input: {};
982
+ output: {
983
+ [x: string]: {
984
+ id: string;
985
+ author: string[];
986
+ features: string[];
987
+ filename: string;
988
+ last_updated: string;
989
+ license: string;
990
+ ligatures: boolean;
991
+ name: string;
992
+ style: string;
993
+ ucsur: boolean;
994
+ version: string;
995
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
996
+ links: {
997
+ fontfile?: string | undefined;
998
+ repo?: string | undefined;
999
+ webpage?: string | undefined;
1000
+ };
1001
+ };
1002
+ };
1003
+ outputFormat: "json";
1004
+ status: 200;
1005
+ };
1006
+ };
1007
+ } & {
1008
+ "/fonts/:font": {
1009
+ $get: {
1010
+ input: {
1011
+ param: {
1012
+ font: string;
1013
+ };
1014
+ };
1015
+ output: {
1016
+ success: true;
1017
+ data: {
1018
+ id: string;
1019
+ author: string[];
1020
+ features: string[];
1021
+ filename: string;
1022
+ last_updated: string;
1023
+ license: string;
1024
+ ligatures: boolean;
1025
+ name: string;
1026
+ style: string;
1027
+ ucsur: boolean;
1028
+ version: string;
1029
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
1030
+ links: {
1031
+ fontfile?: string | undefined;
1032
+ repo?: string | undefined;
1033
+ webpage?: string | undefined;
1034
+ };
1035
+ };
1036
+ };
1037
+ outputFormat: "json";
1038
+ status: 200;
1039
+ } | {
1040
+ input: {
1041
+ param: {
1042
+ font: string;
1043
+ };
1044
+ };
1045
+ output: {
1046
+ success: false;
1047
+ message: string;
1048
+ };
1049
+ outputFormat: "json";
1050
+ status: 400;
1051
+ };
1052
+ };
1053
+ } & {
1054
+ "/languages": {
1055
+ $get: {
1056
+ input: {};
1057
+ output: {
1058
+ [x: string]: {
1059
+ id: string;
1060
+ locale: string;
1061
+ direction: "ltr" | "rtl";
1062
+ name: {
1063
+ en: string;
1064
+ endonym: string;
1065
+ tok?: string | undefined;
1066
+ };
1067
+ };
1068
+ };
1069
+ outputFormat: "json";
1070
+ status: 200;
1071
+ };
1072
+ };
1073
+ } & {
1074
+ "/languages/:language": {
1075
+ $get: {
1076
+ input: {
1077
+ param: {
1078
+ language: string;
1079
+ };
1080
+ };
1081
+ output: {
1082
+ success: true;
1083
+ data: {
1084
+ id: string;
1085
+ locale: string;
1086
+ direction: "ltr" | "rtl";
1087
+ name: {
1088
+ en: string;
1089
+ endonym: string;
1090
+ tok?: string | undefined;
1091
+ };
1092
+ };
1093
+ };
1094
+ outputFormat: "json";
1095
+ status: 200;
1096
+ } | {
1097
+ input: {
1098
+ param: {
1099
+ language: string;
1100
+ };
1101
+ };
1102
+ output: {
1103
+ success: false;
1104
+ message: string;
1105
+ };
1106
+ outputFormat: "json";
1107
+ status: 400;
1108
+ };
1109
+ };
1110
+ }, "/", "/languages/:language">;
1111
+ //#endregion
1112
+ export { config, app as default, fetchData };