@kulupu-linku/sona 0.1.10 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.d.ts CHANGED
@@ -1,802 +1 @@
1
- import * as hono_client from 'hono/client';
2
- import * as hono_hono_base from 'hono/hono-base';
3
- import * as hono_types from 'hono/types';
4
- import * as hono from 'hono';
5
-
6
- declare const app: hono_hono_base.HonoBase<hono.Env, hono_types.MergeSchemaPath<hono.ToSchema<"get", "/", unknown, {}> & hono.ToSchema<"get", "/words", {
7
- query: {
8
- lang?: string | undefined;
9
- };
10
- }, {
11
- [x: string]: {
12
- id: string;
13
- author_verbatim: string;
14
- author_verbatim_source: string;
15
- book: "pu" | "ku suli" | "ku lili" | "none";
16
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
17
- coined_year: string;
18
- creator: string[];
19
- see_also: string[];
20
- source_language: string;
21
- usage_category: "core" | "widespread" | "common" | "uncommon" | "rare" | "obscure";
22
- word: string;
23
- etymology: {
24
- word?: string | undefined;
25
- alt?: string | undefined;
26
- }[];
27
- audio: {
28
- author: string;
29
- link: string;
30
- }[];
31
- usage: {
32
- [x: string]: number;
33
- };
34
- translations: {
35
- [x: string]: {
36
- etymology: {
37
- language: string;
38
- definition?: string | undefined;
39
- }[];
40
- definition: string;
41
- commentary: string;
42
- sp_etymology: string;
43
- };
44
- };
45
- ku_data?: {
46
- [x: string]: number;
47
- } | undefined;
48
- resources?: {
49
- sona_pona?: string | undefined;
50
- lipamanka_semantic?: string | undefined;
51
- } | undefined;
52
- representations?: {
53
- sitelen_emosi?: string | undefined;
54
- ligatures?: string[] | undefined;
55
- sitelen_sitelen?: string | undefined;
56
- ucsur?: string | undefined;
57
- } | undefined;
58
- pu_verbatim?: {
59
- en: string;
60
- fr: string;
61
- de: string;
62
- eo: string;
63
- } | undefined;
64
- };
65
- }> & hono.ToSchema<"get", "/words/:word", {
66
- query: {
67
- lang?: string | undefined;
68
- };
69
- } & {
70
- param: {
71
- word: string;
72
- };
73
- }, {
74
- ok: true;
75
- data: {
76
- id: string;
77
- author_verbatim: string;
78
- author_verbatim_source: string;
79
- book: "pu" | "ku suli" | "ku lili" | "none";
80
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
81
- coined_year: string;
82
- creator: string[];
83
- see_also: string[];
84
- source_language: string;
85
- usage_category: "core" | "widespread" | "common" | "uncommon" | "rare" | "obscure";
86
- word: string;
87
- etymology: {
88
- word?: string | undefined;
89
- alt?: string | undefined;
90
- }[];
91
- audio: {
92
- author: string;
93
- link: string;
94
- }[];
95
- usage: {
96
- [x: string]: number;
97
- };
98
- translations: {
99
- [x: string]: {
100
- etymology: {
101
- language: string;
102
- definition?: string | undefined;
103
- }[];
104
- definition: string;
105
- commentary: string;
106
- sp_etymology: string;
107
- };
108
- };
109
- ku_data?: {
110
- [x: string]: number;
111
- } | undefined;
112
- resources?: {
113
- sona_pona?: string | undefined;
114
- lipamanka_semantic?: string | undefined;
115
- } | undefined;
116
- representations?: {
117
- sitelen_emosi?: string | undefined;
118
- ligatures?: string[] | undefined;
119
- sitelen_sitelen?: string | undefined;
120
- ucsur?: string | undefined;
121
- } | undefined;
122
- pu_verbatim?: {
123
- en: string;
124
- fr: string;
125
- de: string;
126
- eo: string;
127
- } | undefined;
128
- };
129
- } | {
130
- ok: false;
131
- message: string;
132
- }> & hono.ToSchema<"get", "/luka_pona/fingerspelling", {
133
- query: {
134
- lang?: string | undefined;
135
- };
136
- }, {
137
- [x: string]: {
138
- id: string;
139
- etymology: {
140
- language: string;
141
- sign: string;
142
- }[];
143
- is_two_handed: boolean;
144
- signwriting: {
145
- fsw: string;
146
- swu: string;
147
- };
148
- video: {
149
- gif?: string | undefined;
150
- mp4?: string | undefined;
151
- };
152
- translations: {
153
- [x: string]: {
154
- parameters: {
155
- handshape?: string | undefined;
156
- movement?: string | undefined;
157
- placement?: string | undefined;
158
- orientation?: string | undefined;
159
- };
160
- };
161
- };
162
- };
163
- }> & hono.ToSchema<"get", "/luka_pona/fingerspelling/:sign", {
164
- query: {
165
- lang?: string | undefined;
166
- };
167
- } & {
168
- param: {
169
- sign: string;
170
- };
171
- }, {
172
- ok: true;
173
- data: {
174
- id: string;
175
- etymology: {
176
- language: string;
177
- sign: string;
178
- }[];
179
- is_two_handed: boolean;
180
- signwriting: {
181
- fsw: string;
182
- swu: string;
183
- };
184
- video: {
185
- gif?: string | undefined;
186
- mp4?: string | undefined;
187
- };
188
- translations: {
189
- [x: string]: {
190
- parameters: {
191
- handshape?: string | undefined;
192
- movement?: string | undefined;
193
- placement?: string | undefined;
194
- orientation?: string | undefined;
195
- };
196
- };
197
- };
198
- };
199
- } | {
200
- ok: false;
201
- message: string;
202
- }> & hono.ToSchema<"get", "/luka_pona/signs", {
203
- query: {
204
- lang?: string | undefined;
205
- };
206
- }, {
207
- [x: string]: {
208
- id: string;
209
- etymology: {
210
- language: string;
211
- sign?: string | undefined;
212
- }[];
213
- definition: string;
214
- is_two_handed: boolean;
215
- new_gloss: string;
216
- old_gloss: string;
217
- signwriting: {
218
- fsw: string;
219
- swu: string;
220
- };
221
- video: {
222
- gif: string;
223
- mp4: string;
224
- };
225
- translations: {
226
- [x: string]: {
227
- parameters: {
228
- handshape?: string | undefined;
229
- movement?: string | undefined;
230
- placement?: string | undefined;
231
- orientation?: string | undefined;
232
- };
233
- icons: string;
234
- };
235
- };
236
- };
237
- }> & hono.ToSchema<"get", "/luka_pona/signs/:sign", {
238
- query: {
239
- lang?: string | undefined;
240
- };
241
- } & {
242
- param: {
243
- sign: string;
244
- };
245
- }, {
246
- ok: true;
247
- data: {
248
- id: string;
249
- etymology: {
250
- language: string;
251
- sign?: string | undefined;
252
- }[];
253
- definition: string;
254
- is_two_handed: boolean;
255
- new_gloss: string;
256
- old_gloss: string;
257
- signwriting: {
258
- fsw: string;
259
- swu: string;
260
- };
261
- video: {
262
- gif: string;
263
- mp4: string;
264
- };
265
- translations: {
266
- [x: string]: {
267
- parameters: {
268
- handshape?: string | undefined;
269
- movement?: string | undefined;
270
- placement?: string | undefined;
271
- orientation?: string | undefined;
272
- };
273
- icons: string;
274
- };
275
- };
276
- };
277
- } | {
278
- ok: false;
279
- message: string;
280
- }> & hono.ToSchema<"get", "/fonts", unknown, {
281
- [x: string]: {
282
- id: string;
283
- creator: string[];
284
- ligatures: boolean;
285
- ucsur: boolean;
286
- features: string[];
287
- filename: string;
288
- license: string;
289
- name: string;
290
- style: string;
291
- version: string;
292
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
293
- links: {
294
- fontfile?: string | undefined;
295
- repo?: string | undefined;
296
- webpage?: string | undefined;
297
- };
298
- last_updated?: string | undefined;
299
- };
300
- }> & hono.ToSchema<"get", "/fonts/:font", {
301
- param: {
302
- font: string;
303
- };
304
- }, {
305
- ok: true;
306
- data: {
307
- id: string;
308
- creator: string[];
309
- ligatures: boolean;
310
- ucsur: boolean;
311
- features: string[];
312
- filename: string;
313
- license: string;
314
- name: string;
315
- style: string;
316
- version: string;
317
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
318
- links: {
319
- fontfile?: string | undefined;
320
- repo?: string | undefined;
321
- webpage?: string | undefined;
322
- };
323
- last_updated?: string | undefined;
324
- };
325
- } | {
326
- ok: false;
327
- message: string;
328
- }> & hono.ToSchema<"get", "/languages", unknown, {
329
- [x: string]: {
330
- name: {
331
- en: string;
332
- tok?: string | undefined;
333
- endonym?: string | undefined;
334
- };
335
- locale: string;
336
- };
337
- }>, "/v1"> & hono.ToSchema<"get", "/", unknown, {}>, "/">;
338
-
339
- type AppType = typeof app;
340
-
341
- declare const client: {
342
- index: hono_client.ClientRequest<{
343
- $get: {
344
- input: {};
345
- output: {};
346
- };
347
- }>;
348
- } & {
349
- v1: hono_client.ClientRequest<{
350
- $get: {
351
- input: {};
352
- output: {};
353
- };
354
- }>;
355
- } & {
356
- v1: {
357
- words: hono_client.ClientRequest<{
358
- $get: {
359
- input: {
360
- query: {
361
- lang?: string | undefined;
362
- };
363
- };
364
- output: {
365
- [x: string]: {
366
- id: string;
367
- author_verbatim: string;
368
- author_verbatim_source: string;
369
- book: "pu" | "ku suli" | "ku lili" | "none";
370
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
371
- coined_year: string;
372
- creator: string[];
373
- see_also: string[];
374
- source_language: string;
375
- usage_category: "core" | "widespread" | "common" | "uncommon" | "rare" | "obscure";
376
- word: string;
377
- etymology: {
378
- word?: string | undefined;
379
- alt?: string | undefined;
380
- }[];
381
- audio: {
382
- author: string;
383
- link: string;
384
- }[];
385
- usage: {
386
- [x: string]: number;
387
- };
388
- translations: {
389
- [x: string]: {
390
- etymology: {
391
- language: string;
392
- definition?: string | undefined;
393
- }[];
394
- definition: string;
395
- commentary: string;
396
- sp_etymology: string;
397
- };
398
- };
399
- ku_data?: {
400
- [x: string]: number;
401
- } | undefined;
402
- resources?: {
403
- sona_pona?: string | undefined;
404
- lipamanka_semantic?: string | undefined;
405
- } | undefined;
406
- representations?: {
407
- sitelen_emosi?: string | undefined;
408
- ligatures?: string[] | undefined;
409
- sitelen_sitelen?: string | undefined;
410
- ucsur?: string | undefined;
411
- } | undefined;
412
- pu_verbatim?: {
413
- en: string;
414
- fr: string;
415
- de: string;
416
- eo: string;
417
- } | undefined;
418
- };
419
- };
420
- };
421
- }>;
422
- };
423
- } & {
424
- v1: {
425
- words: {
426
- ":word": hono_client.ClientRequest<{
427
- $get: {
428
- input: {
429
- query: {
430
- lang?: string | undefined;
431
- };
432
- } & {
433
- param: {
434
- word: string;
435
- };
436
- } & {
437
- param: {
438
- word: string;
439
- };
440
- };
441
- output: {
442
- ok: true;
443
- data: {
444
- id: string;
445
- author_verbatim: string;
446
- author_verbatim_source: string;
447
- book: "pu" | "ku suli" | "ku lili" | "none";
448
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
449
- coined_year: string;
450
- creator: string[];
451
- see_also: string[];
452
- source_language: string;
453
- usage_category: "core" | "widespread" | "common" | "uncommon" | "rare" | "obscure";
454
- word: string;
455
- etymology: {
456
- word?: string | undefined;
457
- alt?: string | undefined;
458
- }[];
459
- audio: {
460
- author: string;
461
- link: string;
462
- }[];
463
- usage: {
464
- [x: string]: number;
465
- };
466
- translations: {
467
- [x: string]: {
468
- etymology: {
469
- language: string;
470
- definition?: string | undefined;
471
- }[];
472
- definition: string;
473
- commentary: string;
474
- sp_etymology: string;
475
- };
476
- };
477
- ku_data?: {
478
- [x: string]: number;
479
- } | undefined;
480
- resources?: {
481
- sona_pona?: string | undefined;
482
- lipamanka_semantic?: string | undefined;
483
- } | undefined;
484
- representations?: {
485
- sitelen_emosi?: string | undefined;
486
- ligatures?: string[] | undefined;
487
- sitelen_sitelen?: string | undefined;
488
- ucsur?: string | undefined;
489
- } | undefined;
490
- pu_verbatim?: {
491
- en: string;
492
- fr: string;
493
- de: string;
494
- eo: string;
495
- } | undefined;
496
- };
497
- } | {
498
- ok: false;
499
- message: string;
500
- };
501
- };
502
- }>;
503
- };
504
- };
505
- } & {
506
- v1: {
507
- luka_pona: {
508
- fingerspelling: hono_client.ClientRequest<{
509
- $get: {
510
- input: {
511
- query: {
512
- lang?: string | undefined;
513
- };
514
- };
515
- output: {
516
- [x: string]: {
517
- id: string;
518
- etymology: {
519
- language: string;
520
- sign: string;
521
- }[];
522
- is_two_handed: boolean;
523
- signwriting: {
524
- fsw: string;
525
- swu: string;
526
- };
527
- video: {
528
- gif?: string | undefined;
529
- mp4?: string | undefined;
530
- };
531
- translations: {
532
- [x: string]: {
533
- parameters: {
534
- handshape?: string | undefined;
535
- movement?: string | undefined;
536
- placement?: string | undefined;
537
- orientation?: string | undefined;
538
- };
539
- };
540
- };
541
- };
542
- };
543
- };
544
- }>;
545
- };
546
- };
547
- } & {
548
- v1: {
549
- luka_pona: {
550
- fingerspelling: {
551
- ":sign": hono_client.ClientRequest<{
552
- $get: {
553
- input: {
554
- query: {
555
- lang?: string | undefined;
556
- };
557
- } & {
558
- param: {
559
- sign: string;
560
- };
561
- } & {
562
- param: {
563
- sign: string;
564
- };
565
- };
566
- output: {
567
- ok: true;
568
- data: {
569
- id: string;
570
- etymology: {
571
- language: string;
572
- sign: string;
573
- }[];
574
- is_two_handed: boolean;
575
- signwriting: {
576
- fsw: string;
577
- swu: string;
578
- };
579
- video: {
580
- gif?: string | undefined;
581
- mp4?: string | undefined;
582
- };
583
- translations: {
584
- [x: string]: {
585
- parameters: {
586
- handshape?: string | undefined;
587
- movement?: string | undefined;
588
- placement?: string | undefined;
589
- orientation?: string | undefined;
590
- };
591
- };
592
- };
593
- };
594
- } | {
595
- ok: false;
596
- message: string;
597
- };
598
- };
599
- }>;
600
- };
601
- };
602
- };
603
- } & {
604
- v1: {
605
- luka_pona: {
606
- signs: hono_client.ClientRequest<{
607
- $get: {
608
- input: {
609
- query: {
610
- lang?: string | undefined;
611
- };
612
- };
613
- output: {
614
- [x: string]: {
615
- id: string;
616
- etymology: {
617
- language: string;
618
- sign?: string | undefined;
619
- }[];
620
- definition: string;
621
- is_two_handed: boolean;
622
- new_gloss: string;
623
- old_gloss: string;
624
- signwriting: {
625
- fsw: string;
626
- swu: string;
627
- };
628
- video: {
629
- gif: string;
630
- mp4: string;
631
- };
632
- translations: {
633
- [x: string]: {
634
- parameters: {
635
- handshape?: string | undefined;
636
- movement?: string | undefined;
637
- placement?: string | undefined;
638
- orientation?: string | undefined;
639
- };
640
- icons: string;
641
- };
642
- };
643
- };
644
- };
645
- };
646
- }>;
647
- };
648
- };
649
- } & {
650
- v1: {
651
- luka_pona: {
652
- signs: {
653
- ":sign": hono_client.ClientRequest<{
654
- $get: {
655
- input: {
656
- query: {
657
- lang?: string | undefined;
658
- };
659
- } & {
660
- param: {
661
- sign: string;
662
- };
663
- } & {
664
- param: {
665
- sign: string;
666
- };
667
- };
668
- output: {
669
- ok: true;
670
- data: {
671
- id: string;
672
- etymology: {
673
- language: string;
674
- sign?: string | undefined;
675
- }[];
676
- definition: string;
677
- is_two_handed: boolean;
678
- new_gloss: string;
679
- old_gloss: string;
680
- signwriting: {
681
- fsw: string;
682
- swu: string;
683
- };
684
- video: {
685
- gif: string;
686
- mp4: string;
687
- };
688
- translations: {
689
- [x: string]: {
690
- parameters: {
691
- handshape?: string | undefined;
692
- movement?: string | undefined;
693
- placement?: string | undefined;
694
- orientation?: string | undefined;
695
- };
696
- icons: string;
697
- };
698
- };
699
- };
700
- } | {
701
- ok: false;
702
- message: string;
703
- };
704
- };
705
- }>;
706
- };
707
- };
708
- };
709
- } & {
710
- v1: {
711
- fonts: hono_client.ClientRequest<{
712
- $get: {
713
- input: {};
714
- output: {
715
- [x: string]: {
716
- id: string;
717
- creator: string[];
718
- ligatures: boolean;
719
- ucsur: boolean;
720
- features: string[];
721
- filename: string;
722
- license: string;
723
- name: string;
724
- style: string;
725
- version: string;
726
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
727
- links: {
728
- fontfile?: string | undefined;
729
- repo?: string | undefined;
730
- webpage?: string | undefined;
731
- };
732
- last_updated?: string | undefined;
733
- };
734
- };
735
- };
736
- }>;
737
- };
738
- } & {
739
- v1: {
740
- fonts: {
741
- ":font": hono_client.ClientRequest<{
742
- $get: {
743
- input: {
744
- param: {
745
- font: string;
746
- };
747
- } & {
748
- param: {
749
- font: string;
750
- };
751
- };
752
- output: {
753
- ok: true;
754
- data: {
755
- id: string;
756
- creator: string[];
757
- ligatures: boolean;
758
- ucsur: boolean;
759
- features: string[];
760
- filename: string;
761
- license: string;
762
- name: string;
763
- style: string;
764
- version: string;
765
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
766
- links: {
767
- fontfile?: string | undefined;
768
- repo?: string | undefined;
769
- webpage?: string | undefined;
770
- };
771
- last_updated?: string | undefined;
772
- };
773
- } | {
774
- ok: false;
775
- message: string;
776
- };
777
- };
778
- }>;
779
- };
780
- };
781
- } & {
782
- v1: {
783
- languages: hono_client.ClientRequest<{
784
- $get: {
785
- input: {};
786
- output: {
787
- [x: string]: {
788
- name: {
789
- en: string;
790
- tok?: string | undefined;
791
- endonym?: string | undefined;
792
- };
793
- locale: string;
794
- };
795
- };
796
- };
797
- }>;
798
- };
799
- };
800
- type ApiType = AppType;
801
-
802
- export { type ApiType, client };
1
+ export * from './lib/client'