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