@kulupu-linku/sona 0.3.5 → 2.0.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.
Files changed (84) hide show
  1. package/dist/.assetsignore +0 -0
  2. package/dist/client-BSyS8F5a.d.ts +1612 -0
  3. package/dist/client-BitJ28pJ.js +10 -0
  4. package/dist/client-CUMo53JZ.d.ts +1612 -0
  5. package/dist/client-DNWH1gFt.js +10 -0
  6. package/dist/index-1jX6YIBj.d.ts +1497 -0
  7. package/dist/index-DObG_APy.d.ts +398 -0
  8. package/dist/index-DsVEVr6r.d.ts +300 -0
  9. package/dist/lib/v1/client.d.ts +3 -0
  10. package/dist/lib/v1/client.js +3 -0
  11. package/dist/lib/v1/client.test.d.ts +31 -0
  12. package/dist/lib/v1/client.test.js +3 -0
  13. package/dist/lib/v1/index.d.ts +2 -0
  14. package/dist/lib/v1/index.js +4 -0
  15. package/dist/lib/v1/types.d.ts +2 -0
  16. package/dist/lib/v1/types.js +1 -0
  17. package/dist/lib/v1/utils.d.ts +26 -0
  18. package/dist/lib/v1/utils.js +3 -0
  19. package/dist/lib/v2/client.d.ts +3 -0
  20. package/dist/lib/v2/client.js +3 -0
  21. package/dist/lib/v2/client.test.d.ts +36 -0
  22. package/dist/lib/v2/client.test.js +3 -0
  23. package/dist/lib/v2/index.d.ts +2 -0
  24. package/dist/lib/v2/index.js +4 -0
  25. package/dist/lib/v2/types.d.ts +2 -0
  26. package/dist/lib/v2/types.js +1 -0
  27. package/dist/lib/v2/utils.d.ts +44 -0
  28. package/dist/lib/v2/utils.js +3 -0
  29. package/dist/server/index.d.ts +2 -684
  30. package/dist/server/index.js +43 -0
  31. package/dist/server/utils.d.ts +22 -15
  32. package/dist/server/utils.js +3 -0
  33. package/dist/server/v1/index.d.ts +863 -639
  34. package/dist/server/v1/index.js +8 -0
  35. package/dist/server/v2/index.d.ts +1112 -0
  36. package/dist/server/v2/index.js +8 -0
  37. package/dist/server/versioning.d.ts +1964 -2369
  38. package/dist/server/versioning.js +8 -0
  39. package/dist/utils-DkAaVBMs.js +33 -0
  40. package/dist/utils-QiKwNnnL.js +37 -0
  41. package/dist/utils-Z1o5sWsW.js +40 -0
  42. package/dist/v1-DkHVwPCI.js +139 -0
  43. package/dist/v1-obRCoWWK.js +267 -0
  44. package/dist/v2-CDtbJFxV.js +194 -0
  45. package/generated/v2/fingerspelling.json +124 -0
  46. package/generated/v2/fingerspellings.json +135 -0
  47. package/generated/v2/font.json +119 -0
  48. package/generated/v2/fonts.json +130 -0
  49. package/generated/v2/glyph.json +160 -0
  50. package/generated/v2/glyphs.json +167 -0
  51. package/generated/v2/language.json +58 -0
  52. package/generated/v2/languages.json +67 -0
  53. package/generated/v2/sign.json +149 -0
  54. package/generated/v2/signs.json +160 -0
  55. package/generated/v2/word.json +306 -0
  56. package/generated/v2/words.json +313 -0
  57. package/package.json +47 -28
  58. package/dist/client.d.ts +0 -1
  59. package/dist/client.js +0 -165
  60. package/dist/index.d.ts +0 -1
  61. package/dist/index.js +0 -223
  62. package/dist/lib/client.d.ts +0 -742
  63. package/dist/lib/client.test.d.ts +0 -28
  64. package/dist/lib/index.d.ts +0 -963
  65. package/dist/lib/types.d.ts +0 -18
  66. package/dist/lib/utils.d.ts +0 -14
  67. package/dist/utils-GfUvEzD4.js +0 -2905
  68. package/dist/utils.d.ts +0 -1
  69. package/dist/utils.js +0 -9
  70. package/generated/words.json +0 -315
  71. /package/generated/{commentary_translation.json → v1/commentary_translation.json} +0 -0
  72. /package/generated/{definition_translation.json → v1/definition_translation.json} +0 -0
  73. /package/generated/{etymology_translation.json → v1/etymology_translation.json} +0 -0
  74. /package/generated/{fingerspelling.json → v1/fingerspelling.json} +0 -0
  75. /package/generated/{fingerspelling_sign.json → v1/fingerspelling_sign.json} +0 -0
  76. /package/generated/{font.json → v1/font.json} +0 -0
  77. /package/generated/{fonts.json → v1/fonts.json} +0 -0
  78. /package/generated/{icon_translation.json → v1/icon_translation.json} +0 -0
  79. /package/generated/{languages.json → v1/languages.json} +0 -0
  80. /package/generated/{parameters_translation.json → v1/parameters_translation.json} +0 -0
  81. /package/generated/{sign.json → v1/sign.json} +0 -0
  82. /package/generated/{signs.json → v1/signs.json} +0 -0
  83. /package/generated/{sitelen_pona_translation.json → v1/sitelen_pona_translation.json} +0 -0
  84. /package/generated/{word.json → v1/word.json} +0 -0
@@ -0,0 +1,1497 @@
1
+ import { ContentfulStatusCode } from "hono/utils/http-status";
2
+ import * as hono_types1 from "hono/types";
3
+ import * as hono_hono_base1 from "hono/hono-base";
4
+
5
+ //#region src/server/index.d.ts
6
+ declare const app: hono_hono_base1.HonoBase<{}, ({
7
+ "*": {};
8
+ } & {
9
+ "/": {
10
+ $get: {
11
+ input: {};
12
+ output: undefined;
13
+ outputFormat: "redirect";
14
+ status: 302;
15
+ };
16
+ };
17
+ } & {
18
+ "/jasima": {
19
+ $get: {
20
+ input: {};
21
+ output: {};
22
+ outputFormat: "json";
23
+ status: ContentfulStatusCode;
24
+ };
25
+ };
26
+ }) | hono_types1.MergeSchemaPath<{
27
+ "/": {
28
+ $get: {
29
+ input: {};
30
+ output: undefined;
31
+ outputFormat: "redirect";
32
+ status: 302;
33
+ };
34
+ };
35
+ } & {
36
+ "/words": {
37
+ $get: {
38
+ input: {
39
+ query: {
40
+ lang?: string | undefined;
41
+ };
42
+ };
43
+ output: {
44
+ [x: string]: {
45
+ id: string;
46
+ author_verbatim: string;
47
+ author_verbatim_source: string;
48
+ book: "pu" | "ku suli" | "ku lili" | "none";
49
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
50
+ coined_year: string;
51
+ creator: string[];
52
+ see_also: string[];
53
+ source_language: string;
54
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
55
+ word: string;
56
+ deprecated: boolean;
57
+ etymology: {
58
+ word?: string | undefined;
59
+ alt?: string | undefined;
60
+ }[];
61
+ audio: {
62
+ author: string;
63
+ link: string;
64
+ }[];
65
+ usage: {
66
+ [x: string]: number;
67
+ };
68
+ translations: {
69
+ [x: string]: {
70
+ commentary: string;
71
+ definition: string;
72
+ etymology: {
73
+ language: string;
74
+ definition?: string | undefined;
75
+ }[];
76
+ sp_etymology: string;
77
+ };
78
+ };
79
+ ku_data?: {
80
+ [x: string]: number;
81
+ } | undefined;
82
+ resources?: {
83
+ sona_pona?: string | undefined;
84
+ lipamanka_semantic?: string | undefined;
85
+ } | undefined;
86
+ representations?: {
87
+ sitelen_emosi?: string | undefined;
88
+ sitelen_jelo?: string[] | undefined;
89
+ ligatures?: string[] | undefined;
90
+ sitelen_sitelen?: string | undefined;
91
+ ucsur?: string | undefined;
92
+ } | undefined;
93
+ pu_verbatim?: {
94
+ en: string;
95
+ fr: string;
96
+ de: string;
97
+ eo: string;
98
+ } | undefined;
99
+ };
100
+ };
101
+ outputFormat: "json";
102
+ status: 200;
103
+ };
104
+ };
105
+ } & {
106
+ "/words/:word": {
107
+ $get: {
108
+ input: {
109
+ query: {
110
+ lang?: string | undefined;
111
+ };
112
+ } & {
113
+ param: {
114
+ word: string;
115
+ };
116
+ };
117
+ output: {
118
+ ok: true;
119
+ data: {
120
+ id: string;
121
+ author_verbatim: string;
122
+ author_verbatim_source: string;
123
+ book: "pu" | "ku suli" | "ku lili" | "none";
124
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
125
+ coined_year: string;
126
+ creator: string[];
127
+ see_also: string[];
128
+ source_language: string;
129
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
130
+ word: string;
131
+ deprecated: boolean;
132
+ etymology: {
133
+ word?: string | undefined;
134
+ alt?: string | undefined;
135
+ }[];
136
+ audio: {
137
+ author: string;
138
+ link: string;
139
+ }[];
140
+ usage: {
141
+ [x: string]: number;
142
+ };
143
+ translations: {
144
+ [x: string]: {
145
+ commentary: string;
146
+ definition: string;
147
+ etymology: {
148
+ language: string;
149
+ definition?: string | undefined;
150
+ }[];
151
+ sp_etymology: string;
152
+ };
153
+ };
154
+ ku_data?: {
155
+ [x: string]: number;
156
+ } | undefined;
157
+ resources?: {
158
+ sona_pona?: string | undefined;
159
+ lipamanka_semantic?: string | undefined;
160
+ } | undefined;
161
+ representations?: {
162
+ sitelen_emosi?: string | undefined;
163
+ sitelen_jelo?: string[] | undefined;
164
+ ligatures?: string[] | undefined;
165
+ sitelen_sitelen?: string | undefined;
166
+ ucsur?: string | undefined;
167
+ } | undefined;
168
+ pu_verbatim?: {
169
+ en: string;
170
+ fr: string;
171
+ de: string;
172
+ eo: string;
173
+ } | undefined;
174
+ };
175
+ };
176
+ outputFormat: "json";
177
+ status: 200;
178
+ } | {
179
+ input: {
180
+ query: {
181
+ lang?: string | undefined;
182
+ };
183
+ } & {
184
+ param: {
185
+ word: string;
186
+ };
187
+ };
188
+ output: {
189
+ ok: false;
190
+ message: string;
191
+ };
192
+ outputFormat: "json";
193
+ status: 400;
194
+ };
195
+ };
196
+ } & {
197
+ "/sandbox": {
198
+ $get: {
199
+ input: {
200
+ query: {
201
+ lang?: string | undefined;
202
+ };
203
+ };
204
+ output: {
205
+ [x: string]: {
206
+ id: string;
207
+ author_verbatim: string;
208
+ author_verbatim_source: string;
209
+ book: "pu" | "ku suli" | "ku lili" | "none";
210
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
211
+ coined_year: string;
212
+ creator: string[];
213
+ see_also: string[];
214
+ source_language: string;
215
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
216
+ word: string;
217
+ deprecated: boolean;
218
+ etymology: {
219
+ word?: string | undefined;
220
+ alt?: string | undefined;
221
+ }[];
222
+ audio: {
223
+ author: string;
224
+ link: string;
225
+ }[];
226
+ usage: {
227
+ [x: string]: number;
228
+ };
229
+ translations: {
230
+ [x: string]: {
231
+ commentary: string;
232
+ definition: string;
233
+ etymology: {
234
+ language: string;
235
+ definition?: string | undefined;
236
+ }[];
237
+ sp_etymology: string;
238
+ };
239
+ };
240
+ ku_data?: {
241
+ [x: string]: number;
242
+ } | undefined;
243
+ resources?: {
244
+ sona_pona?: string | undefined;
245
+ lipamanka_semantic?: string | undefined;
246
+ } | undefined;
247
+ representations?: {
248
+ sitelen_emosi?: string | undefined;
249
+ sitelen_jelo?: string[] | undefined;
250
+ ligatures?: string[] | undefined;
251
+ sitelen_sitelen?: string | undefined;
252
+ ucsur?: string | undefined;
253
+ } | undefined;
254
+ pu_verbatim?: {
255
+ en: string;
256
+ fr: string;
257
+ de: string;
258
+ eo: string;
259
+ } | undefined;
260
+ };
261
+ };
262
+ outputFormat: "json";
263
+ status: 200;
264
+ };
265
+ };
266
+ } & {
267
+ "/sandbox/:word": {
268
+ $get: {
269
+ input: {
270
+ query: {
271
+ lang?: string | undefined;
272
+ };
273
+ } & {
274
+ param: {
275
+ word: string;
276
+ };
277
+ };
278
+ output: {
279
+ ok: true;
280
+ data: {
281
+ id: string;
282
+ author_verbatim: string;
283
+ author_verbatim_source: string;
284
+ book: "pu" | "ku suli" | "ku lili" | "none";
285
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
286
+ coined_year: string;
287
+ creator: string[];
288
+ see_also: string[];
289
+ source_language: string;
290
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
291
+ word: string;
292
+ deprecated: boolean;
293
+ etymology: {
294
+ word?: string | undefined;
295
+ alt?: string | undefined;
296
+ }[];
297
+ audio: {
298
+ author: string;
299
+ link: string;
300
+ }[];
301
+ usage: {
302
+ [x: string]: number;
303
+ };
304
+ translations: {
305
+ [x: string]: {
306
+ commentary: string;
307
+ definition: string;
308
+ etymology: {
309
+ language: string;
310
+ definition?: string | undefined;
311
+ }[];
312
+ sp_etymology: string;
313
+ };
314
+ };
315
+ ku_data?: {
316
+ [x: string]: number;
317
+ } | undefined;
318
+ resources?: {
319
+ sona_pona?: string | undefined;
320
+ lipamanka_semantic?: string | undefined;
321
+ } | undefined;
322
+ representations?: {
323
+ sitelen_emosi?: string | undefined;
324
+ sitelen_jelo?: string[] | undefined;
325
+ ligatures?: string[] | undefined;
326
+ sitelen_sitelen?: string | undefined;
327
+ ucsur?: string | undefined;
328
+ } | undefined;
329
+ pu_verbatim?: {
330
+ en: string;
331
+ fr: string;
332
+ de: string;
333
+ eo: string;
334
+ } | undefined;
335
+ };
336
+ };
337
+ outputFormat: "json";
338
+ status: 200;
339
+ } | {
340
+ input: {
341
+ query: {
342
+ lang?: string | undefined;
343
+ };
344
+ } & {
345
+ param: {
346
+ word: string;
347
+ };
348
+ };
349
+ output: {
350
+ ok: false;
351
+ message: string;
352
+ };
353
+ outputFormat: "json";
354
+ status: 400;
355
+ };
356
+ };
357
+ } & {
358
+ "/luka_pona": {
359
+ $get: {
360
+ input: {};
361
+ output: undefined;
362
+ outputFormat: "redirect";
363
+ status: 302;
364
+ };
365
+ };
366
+ } & {
367
+ "/luka_pona/fingerspelling": {
368
+ $get: {
369
+ input: {
370
+ query: {
371
+ lang?: string | undefined;
372
+ };
373
+ };
374
+ output: {
375
+ [x: string]: {
376
+ id: string;
377
+ is_two_handed: boolean;
378
+ etymology: {
379
+ language: string;
380
+ sign: string;
381
+ }[];
382
+ signwriting: {
383
+ fsw: string;
384
+ swu: string;
385
+ };
386
+ video: {
387
+ gif?: string | undefined;
388
+ mp4?: string | undefined;
389
+ };
390
+ translations: {
391
+ [x: string]: {
392
+ parameters: {
393
+ handshape?: string | undefined;
394
+ movement?: string | undefined;
395
+ placement?: string | undefined;
396
+ orientation?: string | undefined;
397
+ };
398
+ };
399
+ };
400
+ };
401
+ };
402
+ outputFormat: "json";
403
+ status: 200;
404
+ };
405
+ };
406
+ } & {
407
+ "/luka_pona/fingerspelling/:sign": {
408
+ $get: {
409
+ input: {
410
+ query: {
411
+ lang?: string | undefined;
412
+ };
413
+ } & {
414
+ param: {
415
+ sign: string;
416
+ };
417
+ };
418
+ output: {
419
+ ok: true;
420
+ data: {
421
+ id: string;
422
+ is_two_handed: boolean;
423
+ etymology: {
424
+ language: string;
425
+ sign: string;
426
+ }[];
427
+ signwriting: {
428
+ fsw: string;
429
+ swu: string;
430
+ };
431
+ video: {
432
+ gif?: string | undefined;
433
+ mp4?: string | undefined;
434
+ };
435
+ translations: {
436
+ [x: string]: {
437
+ parameters: {
438
+ handshape?: string | undefined;
439
+ movement?: string | undefined;
440
+ placement?: string | undefined;
441
+ orientation?: string | undefined;
442
+ };
443
+ };
444
+ };
445
+ };
446
+ };
447
+ outputFormat: "json";
448
+ status: 200;
449
+ } | {
450
+ input: {
451
+ query: {
452
+ lang?: string | undefined;
453
+ };
454
+ } & {
455
+ param: {
456
+ sign: string;
457
+ };
458
+ };
459
+ output: {
460
+ ok: false;
461
+ message: string;
462
+ };
463
+ outputFormat: "json";
464
+ status: 400;
465
+ };
466
+ };
467
+ } & {
468
+ "/luka_pona/signs": {
469
+ $get: {
470
+ input: {
471
+ query: {
472
+ lang?: string | undefined;
473
+ };
474
+ };
475
+ output: {
476
+ [x: string]: {
477
+ definition: string;
478
+ id: string;
479
+ is_two_handed: boolean;
480
+ new_gloss: string;
481
+ old_gloss: string;
482
+ etymology: {
483
+ language: string;
484
+ sign?: string | undefined;
485
+ }[];
486
+ signwriting: {
487
+ fsw: string;
488
+ swu: string;
489
+ };
490
+ video: {
491
+ gif?: string | undefined;
492
+ mp4?: string | undefined;
493
+ };
494
+ translations: {
495
+ [x: string]: {
496
+ parameters: {
497
+ handshape?: string | undefined;
498
+ movement?: string | undefined;
499
+ placement?: string | undefined;
500
+ orientation?: string | undefined;
501
+ };
502
+ icons: string;
503
+ };
504
+ };
505
+ };
506
+ };
507
+ outputFormat: "json";
508
+ status: 200;
509
+ };
510
+ };
511
+ } & {
512
+ "/luka_pona/signs/:sign": {
513
+ $get: {
514
+ input: {
515
+ query: {
516
+ lang?: string | undefined;
517
+ };
518
+ } & {
519
+ param: {
520
+ sign: string;
521
+ };
522
+ };
523
+ output: {
524
+ ok: true;
525
+ data: {
526
+ definition: string;
527
+ id: string;
528
+ is_two_handed: boolean;
529
+ new_gloss: string;
530
+ old_gloss: string;
531
+ etymology: {
532
+ language: string;
533
+ sign?: string | undefined;
534
+ }[];
535
+ signwriting: {
536
+ fsw: string;
537
+ swu: string;
538
+ };
539
+ video: {
540
+ gif?: string | undefined;
541
+ mp4?: string | undefined;
542
+ };
543
+ translations: {
544
+ [x: string]: {
545
+ parameters: {
546
+ handshape?: string | undefined;
547
+ movement?: string | undefined;
548
+ placement?: string | undefined;
549
+ orientation?: string | undefined;
550
+ };
551
+ icons: string;
552
+ };
553
+ };
554
+ };
555
+ };
556
+ outputFormat: "json";
557
+ status: 200;
558
+ } | {
559
+ input: {
560
+ query: {
561
+ lang?: string | undefined;
562
+ };
563
+ } & {
564
+ param: {
565
+ sign: string;
566
+ };
567
+ };
568
+ output: {
569
+ ok: false;
570
+ message: string;
571
+ };
572
+ outputFormat: "json";
573
+ status: 400;
574
+ };
575
+ };
576
+ } & {
577
+ "/fonts": {
578
+ $get: {
579
+ input: {};
580
+ output: {
581
+ [x: string]: {
582
+ id: string;
583
+ creator: string[];
584
+ features: string[];
585
+ filename: string;
586
+ license: string;
587
+ ligatures: boolean;
588
+ name: string;
589
+ style: string;
590
+ ucsur: boolean;
591
+ version: string;
592
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
593
+ links: {
594
+ fontfile?: string | undefined;
595
+ repo?: string | undefined;
596
+ webpage?: string | undefined;
597
+ };
598
+ last_updated?: string | undefined;
599
+ };
600
+ };
601
+ outputFormat: "json";
602
+ status: 200;
603
+ };
604
+ };
605
+ } & {
606
+ "/fonts/:font": {
607
+ $get: {
608
+ input: {
609
+ param: {
610
+ font: string;
611
+ };
612
+ };
613
+ output: {
614
+ ok: true;
615
+ data: {
616
+ id: string;
617
+ creator: string[];
618
+ features: string[];
619
+ filename: string;
620
+ license: string;
621
+ ligatures: boolean;
622
+ name: string;
623
+ style: string;
624
+ ucsur: boolean;
625
+ version: string;
626
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
627
+ links: {
628
+ fontfile?: string | undefined;
629
+ repo?: string | undefined;
630
+ webpage?: string | undefined;
631
+ };
632
+ last_updated?: string | undefined;
633
+ };
634
+ };
635
+ outputFormat: "json";
636
+ status: 200;
637
+ } | {
638
+ input: {
639
+ param: {
640
+ font: string;
641
+ };
642
+ };
643
+ output: {
644
+ ok: false;
645
+ message: string;
646
+ };
647
+ outputFormat: "json";
648
+ status: 400;
649
+ };
650
+ };
651
+ } & {
652
+ "/languages": {
653
+ $get: {
654
+ input: {};
655
+ output: {
656
+ [x: string]: {
657
+ id: string;
658
+ locale: string;
659
+ direction: "ltr" | "rtl";
660
+ name: {
661
+ en: string;
662
+ tok?: string | undefined;
663
+ endonym?: string | undefined;
664
+ };
665
+ };
666
+ };
667
+ outputFormat: "json";
668
+ status: 200;
669
+ };
670
+ };
671
+ } & {
672
+ "/languages/:language": {
673
+ $get: {
674
+ input: {
675
+ param: {
676
+ language: string;
677
+ };
678
+ };
679
+ output: {
680
+ ok: true;
681
+ data: {
682
+ id: string;
683
+ locale: string;
684
+ direction: "ltr" | "rtl";
685
+ name: {
686
+ en: string;
687
+ tok?: string | undefined;
688
+ endonym?: string | undefined;
689
+ };
690
+ };
691
+ };
692
+ outputFormat: "json";
693
+ status: 200;
694
+ } | {
695
+ input: {
696
+ param: {
697
+ language: string;
698
+ };
699
+ };
700
+ output: {
701
+ ok: false;
702
+ message: string;
703
+ };
704
+ outputFormat: "json";
705
+ status: 400;
706
+ };
707
+ };
708
+ }, "/v1"> | hono_types1.MergeSchemaPath<{
709
+ "/": {
710
+ $get: {
711
+ input: {};
712
+ output: undefined;
713
+ outputFormat: "redirect";
714
+ status: 302;
715
+ };
716
+ };
717
+ } & {
718
+ "/words": {
719
+ $get: {
720
+ input: {};
721
+ output: {
722
+ [x: string]: {
723
+ id: string;
724
+ word: string;
725
+ book: "pu" | "ku suli" | "ku lili" | "none";
726
+ coined_era: "pre-pu" | "post-pu" | "post-ku";
727
+ creation_date: string;
728
+ author: string[];
729
+ see_also: string[];
730
+ resources: {
731
+ sona_pona?: string | undefined;
732
+ lipamanka_semantic?: string | undefined;
733
+ };
734
+ representations: {
735
+ sitelen_emosi?: string | undefined;
736
+ sitelen_jelo?: string[] | undefined;
737
+ ligatures?: string[] | undefined;
738
+ sitelen_sitelen?: string | undefined;
739
+ ucsur?: string | undefined;
740
+ };
741
+ source_language: string;
742
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
743
+ deprecated: boolean;
744
+ audio: {
745
+ author: string;
746
+ link: string;
747
+ }[];
748
+ usage: {
749
+ [x: string]: number;
750
+ };
751
+ glyph_ids: string[];
752
+ translations: {
753
+ commentary: string;
754
+ etymology: string;
755
+ definition: string;
756
+ };
757
+ author_verbatim?: string | undefined;
758
+ author_source?: string | undefined;
759
+ ku_data?: {
760
+ [x: string]: number;
761
+ } | undefined;
762
+ parent_id?: string | undefined;
763
+ pu_verbatim?: {
764
+ en: string;
765
+ fr: string;
766
+ de: string;
767
+ eo: string;
768
+ } | undefined;
769
+ primary_glyph_id?: string | undefined;
770
+ image?: string | undefined;
771
+ svg?: string | undefined;
772
+ };
773
+ };
774
+ outputFormat: "json";
775
+ status: 200;
776
+ };
777
+ };
778
+ } & {
779
+ "/words/:word": {
780
+ $get: {
781
+ input: {
782
+ param: {
783
+ word: string;
784
+ };
785
+ };
786
+ output: {
787
+ success: true;
788
+ data: {
789
+ id: string;
790
+ word: string;
791
+ book: "pu" | "ku suli" | "ku lili" | "none";
792
+ coined_era: "pre-pu" | "post-pu" | "post-ku";
793
+ creation_date: string;
794
+ author: string[];
795
+ see_also: string[];
796
+ resources: {
797
+ sona_pona?: string | undefined;
798
+ lipamanka_semantic?: string | undefined;
799
+ };
800
+ representations: {
801
+ sitelen_emosi?: string | undefined;
802
+ sitelen_jelo?: string[] | undefined;
803
+ ligatures?: string[] | undefined;
804
+ sitelen_sitelen?: string | undefined;
805
+ ucsur?: string | undefined;
806
+ };
807
+ source_language: string;
808
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
809
+ deprecated: boolean;
810
+ audio: {
811
+ author: string;
812
+ link: string;
813
+ }[];
814
+ usage: {
815
+ [x: string]: number;
816
+ };
817
+ glyph_ids: string[];
818
+ translations: {
819
+ commentary: string;
820
+ etymology: string;
821
+ definition: string;
822
+ };
823
+ author_verbatim?: string | undefined;
824
+ author_source?: string | undefined;
825
+ ku_data?: {
826
+ [x: string]: number;
827
+ } | undefined;
828
+ parent_id?: string | undefined;
829
+ pu_verbatim?: {
830
+ en: string;
831
+ fr: string;
832
+ de: string;
833
+ eo: string;
834
+ } | undefined;
835
+ primary_glyph_id?: string | undefined;
836
+ image?: string | undefined;
837
+ svg?: string | undefined;
838
+ };
839
+ };
840
+ outputFormat: "json";
841
+ status: 200;
842
+ } | {
843
+ input: {
844
+ param: {
845
+ word: string;
846
+ };
847
+ };
848
+ output: {
849
+ success: false;
850
+ message: string;
851
+ };
852
+ outputFormat: "json";
853
+ status: 400;
854
+ };
855
+ };
856
+ } & {
857
+ "/glyphs": {
858
+ $get: {
859
+ input: {};
860
+ output: {
861
+ [x: string]: {
862
+ id: string;
863
+ word: string;
864
+ word_id: string;
865
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
866
+ author: string[];
867
+ creation_date: string;
868
+ see_also: string[];
869
+ primary: boolean;
870
+ deprecated: boolean;
871
+ usage: {
872
+ [x: string]: number;
873
+ };
874
+ translations: {
875
+ commentary: string;
876
+ etymology: string;
877
+ names: string[];
878
+ };
879
+ author_source?: string | undefined;
880
+ parent_id?: string | undefined;
881
+ image?: string | undefined;
882
+ svg?: string | undefined;
883
+ ligature?: string | undefined;
884
+ alias_ligatures?: string[] | undefined;
885
+ ucsur?: string | undefined;
886
+ };
887
+ };
888
+ outputFormat: "json";
889
+ status: 200;
890
+ };
891
+ };
892
+ } & {
893
+ "/glyphs/:glyph": {
894
+ $get: {
895
+ input: {
896
+ param: {
897
+ glyph: string;
898
+ };
899
+ };
900
+ output: {
901
+ success: true;
902
+ data: {
903
+ id: string;
904
+ word: string;
905
+ word_id: string;
906
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
907
+ author: string[];
908
+ creation_date: string;
909
+ see_also: string[];
910
+ primary: boolean;
911
+ deprecated: boolean;
912
+ usage: {
913
+ [x: string]: number;
914
+ };
915
+ translations: {
916
+ commentary: string;
917
+ etymology: string;
918
+ names: string[];
919
+ };
920
+ author_source?: string | undefined;
921
+ parent_id?: string | undefined;
922
+ image?: string | undefined;
923
+ svg?: string | undefined;
924
+ ligature?: string | undefined;
925
+ alias_ligatures?: string[] | undefined;
926
+ ucsur?: string | undefined;
927
+ };
928
+ };
929
+ outputFormat: "json";
930
+ status: 200;
931
+ } | {
932
+ input: {
933
+ param: {
934
+ glyph: string;
935
+ };
936
+ };
937
+ output: {
938
+ success: false;
939
+ message: string;
940
+ };
941
+ outputFormat: "json";
942
+ status: 400;
943
+ };
944
+ };
945
+ } & {
946
+ "/sandbox": {
947
+ $get: {
948
+ input: {};
949
+ output: undefined;
950
+ outputFormat: "redirect";
951
+ status: 302;
952
+ };
953
+ };
954
+ } & {
955
+ "/sandbox/words": {
956
+ $get: {
957
+ input: {};
958
+ output: {
959
+ [x: string]: {
960
+ id: string;
961
+ word: string;
962
+ book: "pu" | "ku suli" | "ku lili" | "none";
963
+ coined_era: "pre-pu" | "post-pu" | "post-ku";
964
+ creation_date: string;
965
+ author: string[];
966
+ see_also: string[];
967
+ resources: {
968
+ sona_pona?: string | undefined;
969
+ lipamanka_semantic?: string | undefined;
970
+ };
971
+ representations: {
972
+ sitelen_emosi?: string | undefined;
973
+ sitelen_jelo?: string[] | undefined;
974
+ ligatures?: string[] | undefined;
975
+ sitelen_sitelen?: string | undefined;
976
+ ucsur?: string | undefined;
977
+ };
978
+ source_language: string;
979
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
980
+ deprecated: boolean;
981
+ audio: {
982
+ author: string;
983
+ link: string;
984
+ }[];
985
+ usage: {
986
+ [x: string]: number;
987
+ };
988
+ glyph_ids: string[];
989
+ translations: {
990
+ commentary: string;
991
+ etymology: string;
992
+ definition: string;
993
+ };
994
+ author_verbatim?: string | undefined;
995
+ author_source?: string | undefined;
996
+ ku_data?: {
997
+ [x: string]: number;
998
+ } | undefined;
999
+ parent_id?: string | undefined;
1000
+ pu_verbatim?: {
1001
+ en: string;
1002
+ fr: string;
1003
+ de: string;
1004
+ eo: string;
1005
+ } | undefined;
1006
+ primary_glyph_id?: string | undefined;
1007
+ image?: string | undefined;
1008
+ svg?: string | undefined;
1009
+ };
1010
+ };
1011
+ outputFormat: "json";
1012
+ status: 200;
1013
+ };
1014
+ };
1015
+ } & {
1016
+ "/sandbox/words/:word": {
1017
+ $get: {
1018
+ input: {
1019
+ param: {
1020
+ word: string;
1021
+ };
1022
+ };
1023
+ output: {
1024
+ success: true;
1025
+ data: {
1026
+ id: string;
1027
+ word: string;
1028
+ book: "pu" | "ku suli" | "ku lili" | "none";
1029
+ coined_era: "pre-pu" | "post-pu" | "post-ku";
1030
+ creation_date: string;
1031
+ author: string[];
1032
+ see_also: string[];
1033
+ resources: {
1034
+ sona_pona?: string | undefined;
1035
+ lipamanka_semantic?: string | undefined;
1036
+ };
1037
+ representations: {
1038
+ sitelen_emosi?: string | undefined;
1039
+ sitelen_jelo?: string[] | undefined;
1040
+ ligatures?: string[] | undefined;
1041
+ sitelen_sitelen?: string | undefined;
1042
+ ucsur?: string | undefined;
1043
+ };
1044
+ source_language: string;
1045
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1046
+ deprecated: boolean;
1047
+ audio: {
1048
+ author: string;
1049
+ link: string;
1050
+ }[];
1051
+ usage: {
1052
+ [x: string]: number;
1053
+ };
1054
+ glyph_ids: string[];
1055
+ translations: {
1056
+ commentary: string;
1057
+ etymology: string;
1058
+ definition: string;
1059
+ };
1060
+ author_verbatim?: string | undefined;
1061
+ author_source?: string | undefined;
1062
+ ku_data?: {
1063
+ [x: string]: number;
1064
+ } | undefined;
1065
+ parent_id?: string | undefined;
1066
+ pu_verbatim?: {
1067
+ en: string;
1068
+ fr: string;
1069
+ de: string;
1070
+ eo: string;
1071
+ } | undefined;
1072
+ primary_glyph_id?: string | undefined;
1073
+ image?: string | undefined;
1074
+ svg?: string | undefined;
1075
+ };
1076
+ };
1077
+ outputFormat: "json";
1078
+ status: 200;
1079
+ } | {
1080
+ input: {
1081
+ param: {
1082
+ word: string;
1083
+ };
1084
+ };
1085
+ output: {
1086
+ success: false;
1087
+ message: string;
1088
+ };
1089
+ outputFormat: "json";
1090
+ status: 400;
1091
+ };
1092
+ };
1093
+ } & {
1094
+ "/sandbox/glyphs": {
1095
+ $get: {
1096
+ input: {};
1097
+ output: {
1098
+ [x: string]: {
1099
+ id: string;
1100
+ word: string;
1101
+ word_id: string;
1102
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1103
+ author: string[];
1104
+ creation_date: string;
1105
+ see_also: string[];
1106
+ primary: boolean;
1107
+ deprecated: boolean;
1108
+ usage: {
1109
+ [x: string]: number;
1110
+ };
1111
+ translations: {
1112
+ commentary: string;
1113
+ etymology: string;
1114
+ names: string[];
1115
+ };
1116
+ author_source?: string | undefined;
1117
+ parent_id?: string | undefined;
1118
+ image?: string | undefined;
1119
+ svg?: string | undefined;
1120
+ ligature?: string | undefined;
1121
+ alias_ligatures?: string[] | undefined;
1122
+ ucsur?: string | undefined;
1123
+ };
1124
+ };
1125
+ outputFormat: "json";
1126
+ status: 200;
1127
+ };
1128
+ };
1129
+ } & {
1130
+ "/sandbox/glyphs/:glyph": {
1131
+ $get: {
1132
+ input: {
1133
+ param: {
1134
+ glyph: string;
1135
+ };
1136
+ };
1137
+ output: {
1138
+ success: true;
1139
+ data: {
1140
+ id: string;
1141
+ word: string;
1142
+ word_id: string;
1143
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1144
+ author: string[];
1145
+ creation_date: string;
1146
+ see_also: string[];
1147
+ primary: boolean;
1148
+ deprecated: boolean;
1149
+ usage: {
1150
+ [x: string]: number;
1151
+ };
1152
+ translations: {
1153
+ commentary: string;
1154
+ etymology: string;
1155
+ names: string[];
1156
+ };
1157
+ author_source?: string | undefined;
1158
+ parent_id?: string | undefined;
1159
+ image?: string | undefined;
1160
+ svg?: string | undefined;
1161
+ ligature?: string | undefined;
1162
+ alias_ligatures?: string[] | undefined;
1163
+ ucsur?: string | undefined;
1164
+ };
1165
+ };
1166
+ outputFormat: "json";
1167
+ status: 200;
1168
+ } | {
1169
+ input: {
1170
+ param: {
1171
+ glyph: string;
1172
+ };
1173
+ };
1174
+ output: {
1175
+ success: false;
1176
+ message: string;
1177
+ };
1178
+ outputFormat: "json";
1179
+ status: 400;
1180
+ };
1181
+ };
1182
+ } & {
1183
+ "/luka_pona/signs": {
1184
+ $get: {
1185
+ input: {};
1186
+ output: {
1187
+ [x: string]: {
1188
+ id: string;
1189
+ is_two_handed: boolean;
1190
+ etymology: {
1191
+ language: string;
1192
+ sign?: string | undefined;
1193
+ }[];
1194
+ signwriting: {
1195
+ fsw: string;
1196
+ swu: string;
1197
+ };
1198
+ definition: string;
1199
+ new_gloss: string;
1200
+ old_gloss: string;
1201
+ old_id: string;
1202
+ translations: {
1203
+ icons: string;
1204
+ parameters: {
1205
+ handshape?: string | undefined;
1206
+ movement?: string | undefined;
1207
+ placement?: string | undefined;
1208
+ orientation?: string | undefined;
1209
+ };
1210
+ };
1211
+ video?: {
1212
+ gif: string;
1213
+ mp4: string;
1214
+ } | undefined;
1215
+ };
1216
+ };
1217
+ outputFormat: "json";
1218
+ status: 200;
1219
+ };
1220
+ };
1221
+ } & {
1222
+ "/luka_pona/signs/:sign": {
1223
+ $get: {
1224
+ input: {
1225
+ param: {
1226
+ sign: string;
1227
+ };
1228
+ };
1229
+ output: {
1230
+ success: true;
1231
+ data: {
1232
+ id: string;
1233
+ is_two_handed: boolean;
1234
+ etymology: {
1235
+ language: string;
1236
+ sign?: string | undefined;
1237
+ }[];
1238
+ signwriting: {
1239
+ fsw: string;
1240
+ swu: string;
1241
+ };
1242
+ definition: string;
1243
+ new_gloss: string;
1244
+ old_gloss: string;
1245
+ old_id: string;
1246
+ translations: {
1247
+ icons: string;
1248
+ parameters: {
1249
+ handshape?: string | undefined;
1250
+ movement?: string | undefined;
1251
+ placement?: string | undefined;
1252
+ orientation?: string | undefined;
1253
+ };
1254
+ };
1255
+ video?: {
1256
+ gif: string;
1257
+ mp4: string;
1258
+ } | undefined;
1259
+ };
1260
+ };
1261
+ outputFormat: "json";
1262
+ status: 200;
1263
+ } | {
1264
+ input: {
1265
+ param: {
1266
+ sign: string;
1267
+ };
1268
+ };
1269
+ output: {
1270
+ success: false;
1271
+ message: string;
1272
+ };
1273
+ outputFormat: "json";
1274
+ status: 400;
1275
+ };
1276
+ };
1277
+ } & {
1278
+ "/luka_pona/fingerspellings": {
1279
+ $get: {
1280
+ input: {};
1281
+ output: {
1282
+ [x: string]: {
1283
+ id: string;
1284
+ is_two_handed: boolean;
1285
+ etymology: {
1286
+ language: string;
1287
+ sign?: string | undefined;
1288
+ }[];
1289
+ signwriting: {
1290
+ fsw: string;
1291
+ swu: string;
1292
+ };
1293
+ translations: {
1294
+ parameters: {
1295
+ handshape?: string | undefined;
1296
+ movement?: string | undefined;
1297
+ placement?: string | undefined;
1298
+ orientation?: string | undefined;
1299
+ };
1300
+ };
1301
+ video?: {
1302
+ gif: string;
1303
+ mp4: string;
1304
+ } | undefined;
1305
+ };
1306
+ };
1307
+ outputFormat: "json";
1308
+ status: 200;
1309
+ };
1310
+ };
1311
+ } & {
1312
+ "/luka_pona/fingerspellings/:fingerspelling": {
1313
+ $get: {
1314
+ input: {
1315
+ param: {
1316
+ fingerspelling: string;
1317
+ };
1318
+ };
1319
+ output: {
1320
+ success: true;
1321
+ data: {
1322
+ id: string;
1323
+ is_two_handed: boolean;
1324
+ etymology: {
1325
+ language: string;
1326
+ sign?: string | undefined;
1327
+ }[];
1328
+ signwriting: {
1329
+ fsw: string;
1330
+ swu: string;
1331
+ };
1332
+ translations: {
1333
+ parameters: {
1334
+ handshape?: string | undefined;
1335
+ movement?: string | undefined;
1336
+ placement?: string | undefined;
1337
+ orientation?: string | undefined;
1338
+ };
1339
+ };
1340
+ video?: {
1341
+ gif: string;
1342
+ mp4: string;
1343
+ } | undefined;
1344
+ };
1345
+ };
1346
+ outputFormat: "json";
1347
+ status: 200;
1348
+ } | {
1349
+ input: {
1350
+ param: {
1351
+ fingerspelling: string;
1352
+ };
1353
+ };
1354
+ output: {
1355
+ success: false;
1356
+ message: string;
1357
+ };
1358
+ outputFormat: "json";
1359
+ status: 400;
1360
+ };
1361
+ };
1362
+ } & {
1363
+ "/fonts": {
1364
+ $get: {
1365
+ input: {};
1366
+ output: {
1367
+ [x: string]: {
1368
+ id: string;
1369
+ author: string[];
1370
+ features: string[];
1371
+ filename: string;
1372
+ last_updated: string;
1373
+ license: string;
1374
+ ligatures: boolean;
1375
+ name: string;
1376
+ style: string;
1377
+ ucsur: boolean;
1378
+ version: string;
1379
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
1380
+ links: {
1381
+ fontfile?: string | undefined;
1382
+ repo?: string | undefined;
1383
+ webpage?: string | undefined;
1384
+ };
1385
+ };
1386
+ };
1387
+ outputFormat: "json";
1388
+ status: 200;
1389
+ };
1390
+ };
1391
+ } & {
1392
+ "/fonts/:font": {
1393
+ $get: {
1394
+ input: {
1395
+ param: {
1396
+ font: string;
1397
+ };
1398
+ };
1399
+ output: {
1400
+ success: true;
1401
+ data: {
1402
+ id: string;
1403
+ author: string[];
1404
+ features: string[];
1405
+ filename: string;
1406
+ last_updated: string;
1407
+ license: string;
1408
+ ligatures: boolean;
1409
+ name: string;
1410
+ style: string;
1411
+ ucsur: boolean;
1412
+ version: string;
1413
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
1414
+ links: {
1415
+ fontfile?: string | undefined;
1416
+ repo?: string | undefined;
1417
+ webpage?: string | undefined;
1418
+ };
1419
+ };
1420
+ };
1421
+ outputFormat: "json";
1422
+ status: 200;
1423
+ } | {
1424
+ input: {
1425
+ param: {
1426
+ font: string;
1427
+ };
1428
+ };
1429
+ output: {
1430
+ success: false;
1431
+ message: string;
1432
+ };
1433
+ outputFormat: "json";
1434
+ status: 400;
1435
+ };
1436
+ };
1437
+ } & {
1438
+ "/languages": {
1439
+ $get: {
1440
+ input: {};
1441
+ output: {
1442
+ [x: string]: {
1443
+ id: string;
1444
+ locale: string;
1445
+ direction: "ltr" | "rtl";
1446
+ name: {
1447
+ en: string;
1448
+ endonym: string;
1449
+ tok?: string | undefined;
1450
+ };
1451
+ };
1452
+ };
1453
+ outputFormat: "json";
1454
+ status: 200;
1455
+ };
1456
+ };
1457
+ } & {
1458
+ "/languages/:language": {
1459
+ $get: {
1460
+ input: {
1461
+ param: {
1462
+ language: string;
1463
+ };
1464
+ };
1465
+ output: {
1466
+ success: true;
1467
+ data: {
1468
+ id: string;
1469
+ locale: string;
1470
+ direction: "ltr" | "rtl";
1471
+ name: {
1472
+ en: string;
1473
+ endonym: string;
1474
+ tok?: string | undefined;
1475
+ };
1476
+ };
1477
+ };
1478
+ outputFormat: "json";
1479
+ status: 200;
1480
+ } | {
1481
+ input: {
1482
+ param: {
1483
+ language: string;
1484
+ };
1485
+ };
1486
+ output: {
1487
+ success: false;
1488
+ message: string;
1489
+ };
1490
+ outputFormat: "json";
1491
+ status: 400;
1492
+ };
1493
+ };
1494
+ }, "/v2">, "/">;
1495
+ type AppType = typeof app;
1496
+ //#endregion
1497
+ export { app as n, AppType as t };