@kulupu-linku/sona 0.1.10 → 0.2.1

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.
@@ -0,0 +1,394 @@
1
+ import { Result } from '../utils';
2
+ import { Hono, MiddlewareHandler } from "hono";
3
+ export declare const languagesFilter: (nested: boolean) => MiddlewareHandler;
4
+ declare const app: Hono<import("hono").Env, import("hono").ToSchema<"get", "/", unknown, unknown> & import("hono").ToSchema<"get", "/words", {
5
+ query: {
6
+ lang?: string | string[] | undefined;
7
+ };
8
+ }, Record<string, {
9
+ id: string;
10
+ author_verbatim: string;
11
+ author_verbatim_source: string;
12
+ book: "pu" | "ku suli" | "ku lili" | "none";
13
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
14
+ coined_year: string;
15
+ creator: string[];
16
+ see_also: string[];
17
+ source_language: string;
18
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
19
+ word: string;
20
+ deprecated: boolean;
21
+ etymology: {
22
+ word?: string | undefined;
23
+ alt?: string | undefined;
24
+ }[];
25
+ audio: {
26
+ author: string;
27
+ link: string;
28
+ }[];
29
+ usage: Record<string, number>;
30
+ translations: Record<string, {
31
+ etymology: {
32
+ language: string;
33
+ definition?: string | undefined;
34
+ }[];
35
+ commentary: string;
36
+ definition: string;
37
+ sp_etymology: string;
38
+ }>;
39
+ ku_data?: Record<string, number> | undefined;
40
+ resources?: {
41
+ sona_pona?: string | undefined;
42
+ lipamanka_semantic?: string | undefined;
43
+ } | undefined;
44
+ representations?: {
45
+ sitelen_emosi?: string | undefined;
46
+ sitelen_jelo?: string[] | undefined;
47
+ ligatures?: string[] | undefined;
48
+ sitelen_sitelen?: string | undefined;
49
+ ucsur?: string | undefined;
50
+ } | undefined;
51
+ pu_verbatim?: {
52
+ en: string;
53
+ fr: string;
54
+ de: string;
55
+ eo: string;
56
+ } | undefined;
57
+ }>> & import("hono").ToSchema<"get", "/words/:word", {
58
+ query: {
59
+ lang?: string | string[] | undefined;
60
+ };
61
+ } & {
62
+ param: {
63
+ word: string;
64
+ };
65
+ }, Result<{
66
+ id: string;
67
+ author_verbatim: string;
68
+ author_verbatim_source: string;
69
+ book: "pu" | "ku suli" | "ku lili" | "none";
70
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
71
+ coined_year: string;
72
+ creator: string[];
73
+ see_also: string[];
74
+ source_language: string;
75
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
76
+ word: string;
77
+ deprecated: boolean;
78
+ etymology: {
79
+ word?: string | undefined;
80
+ alt?: string | undefined;
81
+ }[];
82
+ audio: {
83
+ author: string;
84
+ link: string;
85
+ }[];
86
+ usage: Record<string, number>;
87
+ translations: Record<string, {
88
+ etymology: {
89
+ language: string;
90
+ definition?: string | undefined;
91
+ }[];
92
+ commentary: string;
93
+ definition: string;
94
+ sp_etymology: string;
95
+ }>;
96
+ ku_data?: Record<string, number> | undefined;
97
+ resources?: {
98
+ sona_pona?: string | undefined;
99
+ lipamanka_semantic?: string | undefined;
100
+ } | undefined;
101
+ representations?: {
102
+ sitelen_emosi?: string | undefined;
103
+ sitelen_jelo?: string[] | undefined;
104
+ ligatures?: string[] | undefined;
105
+ sitelen_sitelen?: string | undefined;
106
+ ucsur?: string | undefined;
107
+ } | undefined;
108
+ pu_verbatim?: {
109
+ en: string;
110
+ fr: string;
111
+ de: string;
112
+ eo: string;
113
+ } | undefined;
114
+ }>> & import("hono").ToSchema<"get", "/sandbox", {
115
+ query: {
116
+ lang?: string | string[] | undefined;
117
+ };
118
+ }, Record<string, {
119
+ id: string;
120
+ author_verbatim: string;
121
+ author_verbatim_source: string;
122
+ book: "pu" | "ku suli" | "ku lili" | "none";
123
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
124
+ coined_year: string;
125
+ creator: string[];
126
+ see_also: string[];
127
+ source_language: string;
128
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
129
+ word: string;
130
+ deprecated: boolean;
131
+ etymology: {
132
+ word?: string | undefined;
133
+ alt?: string | undefined;
134
+ }[];
135
+ audio: {
136
+ author: string;
137
+ link: string;
138
+ }[];
139
+ usage: Record<string, number>;
140
+ translations: Record<string, {
141
+ etymology: {
142
+ language: string;
143
+ definition?: string | undefined;
144
+ }[];
145
+ commentary: string;
146
+ definition: string;
147
+ sp_etymology: string;
148
+ }>;
149
+ ku_data?: Record<string, number> | undefined;
150
+ resources?: {
151
+ sona_pona?: string | undefined;
152
+ lipamanka_semantic?: string | undefined;
153
+ } | undefined;
154
+ representations?: {
155
+ sitelen_emosi?: string | undefined;
156
+ sitelen_jelo?: string[] | undefined;
157
+ ligatures?: string[] | undefined;
158
+ sitelen_sitelen?: string | undefined;
159
+ ucsur?: string | undefined;
160
+ } | undefined;
161
+ pu_verbatim?: {
162
+ en: string;
163
+ fr: string;
164
+ de: string;
165
+ eo: string;
166
+ } | undefined;
167
+ }>> & import("hono").ToSchema<"get", "/sandbox/:word", {
168
+ query: {
169
+ lang?: string | string[] | undefined;
170
+ };
171
+ } & {
172
+ param: {
173
+ word: string;
174
+ };
175
+ }, Result<{
176
+ id: string;
177
+ author_verbatim: string;
178
+ author_verbatim_source: string;
179
+ book: "pu" | "ku suli" | "ku lili" | "none";
180
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
181
+ coined_year: string;
182
+ creator: string[];
183
+ see_also: string[];
184
+ source_language: string;
185
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
186
+ word: string;
187
+ deprecated: boolean;
188
+ etymology: {
189
+ word?: string | undefined;
190
+ alt?: string | undefined;
191
+ }[];
192
+ audio: {
193
+ author: string;
194
+ link: string;
195
+ }[];
196
+ usage: Record<string, number>;
197
+ translations: Record<string, {
198
+ etymology: {
199
+ language: string;
200
+ definition?: string | undefined;
201
+ }[];
202
+ commentary: string;
203
+ definition: string;
204
+ sp_etymology: string;
205
+ }>;
206
+ ku_data?: Record<string, number> | undefined;
207
+ resources?: {
208
+ sona_pona?: string | undefined;
209
+ lipamanka_semantic?: string | undefined;
210
+ } | undefined;
211
+ representations?: {
212
+ sitelen_emosi?: string | undefined;
213
+ sitelen_jelo?: string[] | undefined;
214
+ ligatures?: string[] | undefined;
215
+ sitelen_sitelen?: string | undefined;
216
+ ucsur?: string | undefined;
217
+ } | undefined;
218
+ pu_verbatim?: {
219
+ en: string;
220
+ fr: string;
221
+ de: string;
222
+ eo: string;
223
+ } | undefined;
224
+ }>> & import("hono").ToSchema<"get", "/luka_pona/fingerspelling", {
225
+ query: {
226
+ lang?: string | string[] | undefined;
227
+ };
228
+ }, Record<string, {
229
+ id: string;
230
+ etymology: {
231
+ language: string;
232
+ sign: string;
233
+ }[];
234
+ translations: Record<string, {
235
+ parameters: {
236
+ handshape?: string | undefined;
237
+ movement?: string | undefined;
238
+ placement?: string | undefined;
239
+ orientation?: string | undefined;
240
+ };
241
+ }>;
242
+ is_two_handed: boolean;
243
+ signwriting: {
244
+ fsw: string;
245
+ swu: string;
246
+ };
247
+ video: {
248
+ gif?: string | undefined;
249
+ mp4?: string | undefined;
250
+ };
251
+ }>> & import("hono").ToSchema<"get", "/luka_pona/fingerspelling/:sign", {
252
+ query: {
253
+ lang?: string | string[] | undefined;
254
+ };
255
+ } & {
256
+ param: {
257
+ sign: string;
258
+ };
259
+ }, Result<{
260
+ id: string;
261
+ etymology: {
262
+ language: string;
263
+ sign: string;
264
+ }[];
265
+ is_two_handed: boolean;
266
+ signwriting: {
267
+ fsw: string;
268
+ swu: string;
269
+ };
270
+ video: {
271
+ gif?: string | undefined;
272
+ mp4?: string | undefined;
273
+ };
274
+ }>> & import("hono").ToSchema<"get", "/luka_pona/signs", {
275
+ query: {
276
+ lang?: string | string[] | undefined;
277
+ };
278
+ }, Record<string, {
279
+ id: string;
280
+ etymology: {
281
+ language: string;
282
+ sign?: string | undefined;
283
+ }[];
284
+ translations: Record<string, {
285
+ parameters: {
286
+ handshape?: string | undefined;
287
+ movement?: string | undefined;
288
+ placement?: string | undefined;
289
+ orientation?: string | undefined;
290
+ };
291
+ icons: string;
292
+ }>;
293
+ definition: string;
294
+ is_two_handed: boolean;
295
+ new_gloss: string;
296
+ old_gloss: string;
297
+ signwriting: {
298
+ fsw: string;
299
+ swu: string;
300
+ };
301
+ video: {
302
+ gif: string;
303
+ mp4: string;
304
+ };
305
+ }>> & import("hono").ToSchema<"get", "/luka_pona/signs/:sign", {
306
+ query: {
307
+ lang?: string | string[] | undefined;
308
+ };
309
+ } & {
310
+ param: {
311
+ sign: string;
312
+ };
313
+ }, Result<{
314
+ id: string;
315
+ etymology: {
316
+ language: string;
317
+ sign?: string | undefined;
318
+ }[];
319
+ definition: string;
320
+ is_two_handed: boolean;
321
+ new_gloss: string;
322
+ old_gloss: string;
323
+ signwriting: {
324
+ fsw: string;
325
+ swu: string;
326
+ };
327
+ video: {
328
+ gif: string;
329
+ mp4: string;
330
+ };
331
+ }>> & import("hono").ToSchema<"get", "/fonts", unknown, Record<string, {
332
+ id: string;
333
+ creator: string[];
334
+ ligatures: boolean;
335
+ ucsur: boolean;
336
+ features: string[];
337
+ filename: string;
338
+ license: string;
339
+ name: string;
340
+ style: string;
341
+ version: string;
342
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
343
+ links: {
344
+ fontfile?: string | undefined;
345
+ repo?: string | undefined;
346
+ webpage?: string | undefined;
347
+ };
348
+ last_updated?: string | undefined;
349
+ }>> & import("hono").ToSchema<"get", "/fonts/:font", {
350
+ param: {
351
+ font: string;
352
+ };
353
+ }, Result<{
354
+ id: string;
355
+ creator: string[];
356
+ ligatures: boolean;
357
+ ucsur: boolean;
358
+ features: string[];
359
+ filename: string;
360
+ license: string;
361
+ name: string;
362
+ style: string;
363
+ version: string;
364
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
365
+ links: {
366
+ fontfile?: string | undefined;
367
+ repo?: string | undefined;
368
+ webpage?: string | undefined;
369
+ };
370
+ last_updated?: string | undefined;
371
+ }>> & import("hono").ToSchema<"get", "/languages", unknown, Record<string, {
372
+ id: string;
373
+ name: {
374
+ en: string;
375
+ tok?: string | undefined;
376
+ endonym?: string | undefined;
377
+ };
378
+ locale: string;
379
+ direction: "ltr" | "rtl";
380
+ }>> & import("hono").ToSchema<"get", "/languages/:language", {
381
+ param: {
382
+ language: string;
383
+ };
384
+ }, Result<{
385
+ id: string;
386
+ name: {
387
+ en: string;
388
+ tok?: string | undefined;
389
+ endonym?: string | undefined;
390
+ };
391
+ locale: string;
392
+ direction: "ltr" | "rtl";
393
+ }>>, "/">;
394
+ export default app;