@kulupu-linku/sona 0.3.1 → 0.3.4

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.
@@ -1,5 +1,4 @@
1
1
  import { Hono, MiddlewareHandler } from 'hono';
2
- import { Result } from '../utils';
3
2
 
4
3
  export declare const languagesFilter: (nested: boolean) => MiddlewareHandler;
5
4
  declare const app: Hono<{}, {
@@ -7,6 +6,8 @@ declare const app: Hono<{}, {
7
6
  $get: {
8
7
  input: {};
9
8
  output: {};
9
+ outputFormat: string;
10
+ status: import('hono/utils/http-status').StatusCode;
10
11
  };
11
12
  };
12
13
  } & {
@@ -17,56 +18,66 @@ declare const app: Hono<{}, {
17
18
  lang?: string | string[] | undefined;
18
19
  };
19
20
  };
20
- output: Record<string, {
21
- id: string;
22
- author_verbatim: string;
23
- author_verbatim_source: string;
24
- book: "pu" | "ku suli" | "ku lili" | "none";
25
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
26
- coined_year: string;
27
- creator: string[];
28
- see_also: string[];
29
- source_language: string;
30
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
31
- word: string;
32
- deprecated: boolean;
33
- etymology: {
34
- word?: string | undefined;
35
- alt?: string | undefined;
36
- }[];
37
- audio: {
38
- author: string;
39
- link: string;
40
- }[];
41
- usage: Record<string, number>;
42
- translations: Record<string, {
21
+ output: {
22
+ [x: string]: {
23
+ id: string;
24
+ author_verbatim: string;
25
+ author_verbatim_source: string;
26
+ book: "pu" | "ku suli" | "ku lili" | "none";
27
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
28
+ coined_year: string;
29
+ creator: string[];
30
+ see_also: string[];
31
+ source_language: string;
32
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
33
+ word: string;
34
+ deprecated: boolean;
43
35
  etymology: {
44
- language: string;
45
- definition?: string | undefined;
36
+ word?: string | undefined;
37
+ alt?: string | undefined;
46
38
  }[];
47
- commentary: string;
48
- definition: string;
49
- sp_etymology: string;
50
- }>;
51
- ku_data?: Record<string, number> | undefined;
52
- resources?: {
53
- sona_pona?: string | undefined;
54
- lipamanka_semantic?: string | undefined;
55
- } | undefined;
56
- representations?: {
57
- sitelen_emosi?: string | undefined;
58
- sitelen_jelo?: string[] | undefined;
59
- ligatures?: string[] | undefined;
60
- sitelen_sitelen?: string | undefined;
61
- ucsur?: string | undefined;
62
- } | undefined;
63
- pu_verbatim?: {
64
- en: string;
65
- fr: string;
66
- de: string;
67
- eo: string;
68
- } | undefined;
69
- }>;
39
+ audio: {
40
+ author: string;
41
+ link: string;
42
+ }[];
43
+ usage: {
44
+ [x: string]: number;
45
+ };
46
+ translations: {
47
+ [x: string]: {
48
+ etymology: {
49
+ language: string;
50
+ definition?: string | undefined;
51
+ }[];
52
+ commentary: string;
53
+ definition: string;
54
+ sp_etymology: string;
55
+ };
56
+ };
57
+ ku_data?: {
58
+ [x: string]: number;
59
+ } | undefined;
60
+ resources?: {
61
+ sona_pona?: string | undefined;
62
+ lipamanka_semantic?: string | undefined;
63
+ } | undefined;
64
+ representations?: {
65
+ sitelen_emosi?: string | undefined;
66
+ sitelen_jelo?: string[] | undefined;
67
+ ligatures?: string[] | undefined;
68
+ sitelen_sitelen?: string | undefined;
69
+ ucsur?: string | undefined;
70
+ } | undefined;
71
+ pu_verbatim?: {
72
+ en: string;
73
+ fr: string;
74
+ de: string;
75
+ eo: string;
76
+ } | undefined;
77
+ };
78
+ };
79
+ outputFormat: "json";
80
+ status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | -1;
70
81
  };
71
82
  };
72
83
  } & {
@@ -78,59 +89,86 @@ declare const app: Hono<{}, {
78
89
  };
79
90
  } & {
80
91
  param: {
81
- word: string;
92
+ word: string | undefined;
82
93
  };
83
94
  };
84
- output: Result<{
85
- id: string;
86
- author_verbatim: string;
87
- author_verbatim_source: string;
88
- book: "pu" | "ku suli" | "ku lili" | "none";
89
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
90
- coined_year: string;
91
- creator: string[];
92
- see_also: string[];
93
- source_language: string;
94
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
95
- word: string;
96
- deprecated: boolean;
97
- etymology: {
98
- word?: string | undefined;
99
- alt?: string | undefined;
100
- }[];
101
- audio: {
102
- author: string;
103
- link: string;
104
- }[];
105
- usage: Record<string, number>;
106
- translations: Record<string, {
95
+ output: {
96
+ ok: true;
97
+ data: {
98
+ id: string;
99
+ author_verbatim: string;
100
+ author_verbatim_source: string;
101
+ book: "pu" | "ku suli" | "ku lili" | "none";
102
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
103
+ coined_year: string;
104
+ creator: string[];
105
+ see_also: string[];
106
+ source_language: string;
107
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
108
+ word: string;
109
+ deprecated: boolean;
107
110
  etymology: {
108
- language: string;
109
- definition?: string | undefined;
111
+ word?: string | undefined;
112
+ alt?: string | undefined;
110
113
  }[];
111
- commentary: string;
112
- definition: string;
113
- sp_etymology: string;
114
- }>;
115
- ku_data?: Record<string, number> | undefined;
116
- resources?: {
117
- sona_pona?: string | undefined;
118
- lipamanka_semantic?: string | undefined;
119
- } | undefined;
120
- representations?: {
121
- sitelen_emosi?: string | undefined;
122
- sitelen_jelo?: string[] | undefined;
123
- ligatures?: string[] | undefined;
124
- sitelen_sitelen?: string | undefined;
125
- ucsur?: string | undefined;
126
- } | undefined;
127
- pu_verbatim?: {
128
- en: string;
129
- fr: string;
130
- de: string;
131
- eo: string;
132
- } | undefined;
133
- }>;
114
+ audio: {
115
+ author: string;
116
+ link: string;
117
+ }[];
118
+ usage: {
119
+ [x: string]: number;
120
+ };
121
+ translations: {
122
+ [x: string]: {
123
+ etymology: {
124
+ language: string;
125
+ definition?: string | undefined;
126
+ }[];
127
+ commentary: string;
128
+ definition: string;
129
+ sp_etymology: string;
130
+ };
131
+ };
132
+ ku_data?: {
133
+ [x: string]: number;
134
+ } | undefined;
135
+ resources?: {
136
+ sona_pona?: string | undefined;
137
+ lipamanka_semantic?: string | undefined;
138
+ } | undefined;
139
+ representations?: {
140
+ sitelen_emosi?: string | undefined;
141
+ sitelen_jelo?: string[] | undefined;
142
+ ligatures?: string[] | undefined;
143
+ sitelen_sitelen?: string | undefined;
144
+ ucsur?: string | undefined;
145
+ } | undefined;
146
+ pu_verbatim?: {
147
+ en: string;
148
+ fr: string;
149
+ de: string;
150
+ eo: string;
151
+ } | undefined;
152
+ };
153
+ };
154
+ outputFormat: "json";
155
+ status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | -1;
156
+ } | {
157
+ input: {
158
+ query: {
159
+ lang?: string | string[] | undefined;
160
+ };
161
+ } & {
162
+ param: {
163
+ word: string | undefined;
164
+ };
165
+ };
166
+ output: {
167
+ ok: false;
168
+ message: string;
169
+ };
170
+ outputFormat: "json";
171
+ status: 400;
134
172
  };
135
173
  };
136
174
  } & {
@@ -141,56 +179,66 @@ declare const app: Hono<{}, {
141
179
  lang?: string | string[] | undefined;
142
180
  };
143
181
  };
144
- output: Record<string, {
145
- id: string;
146
- author_verbatim: string;
147
- author_verbatim_source: string;
148
- book: "pu" | "ku suli" | "ku lili" | "none";
149
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
150
- coined_year: string;
151
- creator: string[];
152
- see_also: string[];
153
- source_language: string;
154
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
155
- word: string;
156
- deprecated: boolean;
157
- etymology: {
158
- word?: string | undefined;
159
- alt?: string | undefined;
160
- }[];
161
- audio: {
162
- author: string;
163
- link: string;
164
- }[];
165
- usage: Record<string, number>;
166
- translations: Record<string, {
182
+ output: {
183
+ [x: string]: {
184
+ id: string;
185
+ author_verbatim: string;
186
+ author_verbatim_source: string;
187
+ book: "pu" | "ku suli" | "ku lili" | "none";
188
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
189
+ coined_year: string;
190
+ creator: string[];
191
+ see_also: string[];
192
+ source_language: string;
193
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
194
+ word: string;
195
+ deprecated: boolean;
167
196
  etymology: {
168
- language: string;
169
- definition?: string | undefined;
197
+ word?: string | undefined;
198
+ alt?: string | undefined;
170
199
  }[];
171
- commentary: string;
172
- definition: string;
173
- sp_etymology: string;
174
- }>;
175
- ku_data?: Record<string, number> | undefined;
176
- resources?: {
177
- sona_pona?: string | undefined;
178
- lipamanka_semantic?: string | undefined;
179
- } | undefined;
180
- representations?: {
181
- sitelen_emosi?: string | undefined;
182
- sitelen_jelo?: string[] | undefined;
183
- ligatures?: string[] | undefined;
184
- sitelen_sitelen?: string | undefined;
185
- ucsur?: string | undefined;
186
- } | undefined;
187
- pu_verbatim?: {
188
- en: string;
189
- fr: string;
190
- de: string;
191
- eo: string;
192
- } | undefined;
193
- }>;
200
+ audio: {
201
+ author: string;
202
+ link: string;
203
+ }[];
204
+ usage: {
205
+ [x: string]: number;
206
+ };
207
+ translations: {
208
+ [x: string]: {
209
+ etymology: {
210
+ language: string;
211
+ definition?: string | undefined;
212
+ }[];
213
+ commentary: string;
214
+ definition: string;
215
+ sp_etymology: string;
216
+ };
217
+ };
218
+ ku_data?: {
219
+ [x: string]: number;
220
+ } | undefined;
221
+ resources?: {
222
+ sona_pona?: string | undefined;
223
+ lipamanka_semantic?: string | undefined;
224
+ } | undefined;
225
+ representations?: {
226
+ sitelen_emosi?: string | undefined;
227
+ sitelen_jelo?: string[] | undefined;
228
+ ligatures?: string[] | undefined;
229
+ sitelen_sitelen?: string | undefined;
230
+ ucsur?: string | undefined;
231
+ } | undefined;
232
+ pu_verbatim?: {
233
+ en: string;
234
+ fr: string;
235
+ de: string;
236
+ eo: string;
237
+ } | undefined;
238
+ };
239
+ };
240
+ outputFormat: "json";
241
+ status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | -1;
194
242
  };
195
243
  };
196
244
  } & {
@@ -202,59 +250,86 @@ declare const app: Hono<{}, {
202
250
  };
203
251
  } & {
204
252
  param: {
205
- word: string;
253
+ word: string | undefined;
206
254
  };
207
255
  };
208
- output: Result<{
209
- id: string;
210
- author_verbatim: string;
211
- author_verbatim_source: string;
212
- book: "pu" | "ku suli" | "ku lili" | "none";
213
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
214
- coined_year: string;
215
- creator: string[];
216
- see_also: string[];
217
- source_language: string;
218
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
219
- word: string;
220
- deprecated: boolean;
221
- etymology: {
222
- word?: string | undefined;
223
- alt?: string | undefined;
224
- }[];
225
- audio: {
226
- author: string;
227
- link: string;
228
- }[];
229
- usage: Record<string, number>;
230
- translations: Record<string, {
256
+ output: {
257
+ ok: true;
258
+ data: {
259
+ id: string;
260
+ author_verbatim: string;
261
+ author_verbatim_source: string;
262
+ book: "pu" | "ku suli" | "ku lili" | "none";
263
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
264
+ coined_year: string;
265
+ creator: string[];
266
+ see_also: string[];
267
+ source_language: string;
268
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
269
+ word: string;
270
+ deprecated: boolean;
231
271
  etymology: {
232
- language: string;
233
- definition?: string | undefined;
272
+ word?: string | undefined;
273
+ alt?: string | undefined;
234
274
  }[];
235
- commentary: string;
236
- definition: string;
237
- sp_etymology: string;
238
- }>;
239
- ku_data?: Record<string, number> | undefined;
240
- resources?: {
241
- sona_pona?: string | undefined;
242
- lipamanka_semantic?: string | undefined;
243
- } | undefined;
244
- representations?: {
245
- sitelen_emosi?: string | undefined;
246
- sitelen_jelo?: string[] | undefined;
247
- ligatures?: string[] | undefined;
248
- sitelen_sitelen?: string | undefined;
249
- ucsur?: string | undefined;
250
- } | undefined;
251
- pu_verbatim?: {
252
- en: string;
253
- fr: string;
254
- de: string;
255
- eo: string;
256
- } | undefined;
257
- }>;
275
+ audio: {
276
+ author: string;
277
+ link: string;
278
+ }[];
279
+ usage: {
280
+ [x: string]: number;
281
+ };
282
+ translations: {
283
+ [x: string]: {
284
+ etymology: {
285
+ language: string;
286
+ definition?: string | undefined;
287
+ }[];
288
+ commentary: string;
289
+ definition: string;
290
+ sp_etymology: string;
291
+ };
292
+ };
293
+ ku_data?: {
294
+ [x: string]: number;
295
+ } | undefined;
296
+ resources?: {
297
+ sona_pona?: string | undefined;
298
+ lipamanka_semantic?: string | undefined;
299
+ } | undefined;
300
+ representations?: {
301
+ sitelen_emosi?: string | undefined;
302
+ sitelen_jelo?: string[] | undefined;
303
+ ligatures?: string[] | undefined;
304
+ sitelen_sitelen?: string | undefined;
305
+ ucsur?: string | undefined;
306
+ } | undefined;
307
+ pu_verbatim?: {
308
+ en: string;
309
+ fr: string;
310
+ de: string;
311
+ eo: string;
312
+ } | undefined;
313
+ };
314
+ };
315
+ outputFormat: "json";
316
+ status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | -1;
317
+ } | {
318
+ input: {
319
+ query: {
320
+ lang?: string | string[] | undefined;
321
+ };
322
+ } & {
323
+ param: {
324
+ word: string | undefined;
325
+ };
326
+ };
327
+ output: {
328
+ ok: false;
329
+ message: string;
330
+ };
331
+ outputFormat: "json";
332
+ status: 400;
258
333
  };
259
334
  };
260
335
  } & {
@@ -265,30 +340,36 @@ declare const app: Hono<{}, {
265
340
  lang?: string | string[] | undefined;
266
341
  };
267
342
  };
268
- output: Record<string, {
269
- id: string;
270
- etymology: {
271
- language: string;
272
- sign: string;
273
- }[];
274
- translations: Record<string, {
275
- parameters: {
276
- handshape?: string | undefined;
277
- movement?: string | undefined;
278
- placement?: string | undefined;
279
- orientation?: string | undefined;
343
+ output: {
344
+ [x: string]: {
345
+ id: string;
346
+ etymology: {
347
+ language: string;
348
+ sign: string;
349
+ }[];
350
+ translations: {
351
+ [x: string]: {
352
+ parameters: {
353
+ handshape?: string | undefined;
354
+ movement?: string | undefined;
355
+ placement?: string | undefined;
356
+ orientation?: string | undefined;
357
+ };
358
+ };
359
+ };
360
+ is_two_handed: boolean;
361
+ signwriting: {
362
+ fsw: string;
363
+ swu: string;
364
+ };
365
+ video: {
366
+ gif?: string | undefined;
367
+ mp4?: string | undefined;
280
368
  };
281
- }>;
282
- is_two_handed: boolean;
283
- signwriting: {
284
- fsw: string;
285
- swu: string;
286
- };
287
- video: {
288
- gif?: string | undefined;
289
- mp4?: string | undefined;
290
369
  };
291
- }>;
370
+ };
371
+ outputFormat: "json";
372
+ status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | -1;
292
373
  };
293
374
  };
294
375
  } & {
@@ -300,33 +381,56 @@ declare const app: Hono<{}, {
300
381
  };
301
382
  } & {
302
383
  param: {
303
- sign: string;
304
- };
305
- };
306
- output: Result<{
307
- id: string;
308
- etymology: {
309
- language: string;
310
- sign: string;
311
- }[];
312
- translations: Record<string, {
313
- parameters: {
314
- handshape?: string | undefined;
315
- movement?: string | undefined;
316
- placement?: string | undefined;
317
- orientation?: string | undefined;
384
+ sign: string | undefined;
385
+ };
386
+ };
387
+ output: {
388
+ ok: true;
389
+ data: {
390
+ id: string;
391
+ etymology: {
392
+ language: string;
393
+ sign: string;
394
+ }[];
395
+ translations: {
396
+ [x: string]: {
397
+ parameters: {
398
+ handshape?: string | undefined;
399
+ movement?: string | undefined;
400
+ placement?: string | undefined;
401
+ orientation?: string | undefined;
402
+ };
403
+ };
404
+ };
405
+ is_two_handed: boolean;
406
+ signwriting: {
407
+ fsw: string;
408
+ swu: string;
318
409
  };
319
- }>;
320
- is_two_handed: boolean;
321
- signwriting: {
322
- fsw: string;
323
- swu: string;
410
+ video: {
411
+ gif?: string | undefined;
412
+ mp4?: string | undefined;
413
+ };
414
+ };
415
+ };
416
+ outputFormat: "json";
417
+ status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | -1;
418
+ } | {
419
+ input: {
420
+ query: {
421
+ lang?: string | string[] | undefined;
324
422
  };
325
- video: {
326
- gif?: string | undefined;
327
- mp4?: string | undefined;
423
+ } & {
424
+ param: {
425
+ sign: string | undefined;
328
426
  };
329
- }>;
427
+ };
428
+ output: {
429
+ ok: false;
430
+ message: string;
431
+ };
432
+ outputFormat: "json";
433
+ status: 400;
330
434
  };
331
435
  };
332
436
  } & {
@@ -337,34 +441,40 @@ declare const app: Hono<{}, {
337
441
  lang?: string | string[] | undefined;
338
442
  };
339
443
  };
340
- output: Record<string, {
341
- id: string;
342
- etymology: {
343
- language: string;
344
- sign?: string | undefined;
345
- }[];
346
- translations: Record<string, {
347
- parameters: {
348
- handshape?: string | undefined;
349
- movement?: string | undefined;
350
- placement?: string | undefined;
351
- orientation?: string | undefined;
444
+ output: {
445
+ [x: string]: {
446
+ id: string;
447
+ etymology: {
448
+ language: string;
449
+ sign?: string | undefined;
450
+ }[];
451
+ translations: {
452
+ [x: string]: {
453
+ parameters: {
454
+ handshape?: string | undefined;
455
+ movement?: string | undefined;
456
+ placement?: string | undefined;
457
+ orientation?: string | undefined;
458
+ };
459
+ icons: string;
460
+ };
352
461
  };
353
- icons: string;
354
- }>;
355
- definition: string;
356
- is_two_handed: boolean;
357
- new_gloss: string;
358
- old_gloss: string;
359
- signwriting: {
360
- fsw: string;
361
- swu: string;
362
- };
363
- video: {
364
- gif?: string | undefined;
365
- mp4?: string | undefined;
366
- };
367
- }>;
462
+ definition: string;
463
+ is_two_handed: boolean;
464
+ new_gloss: string;
465
+ old_gloss: string;
466
+ signwriting: {
467
+ fsw: string;
468
+ swu: string;
469
+ };
470
+ video: {
471
+ gif?: string | undefined;
472
+ mp4?: string | undefined;
473
+ };
474
+ };
475
+ };
476
+ outputFormat: "json";
477
+ status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | -1;
368
478
  };
369
479
  };
370
480
  } & {
@@ -376,62 +486,89 @@ declare const app: Hono<{}, {
376
486
  };
377
487
  } & {
378
488
  param: {
379
- sign: string;
380
- };
381
- };
382
- output: Result<{
383
- id: string;
384
- etymology: {
385
- language: string;
386
- sign?: string | undefined;
387
- }[];
388
- translations: Record<string, {
389
- parameters: {
390
- handshape?: string | undefined;
391
- movement?: string | undefined;
392
- placement?: string | undefined;
393
- orientation?: string | undefined;
489
+ sign: string | undefined;
490
+ };
491
+ };
492
+ output: {
493
+ ok: true;
494
+ data: {
495
+ id: string;
496
+ etymology: {
497
+ language: string;
498
+ sign?: string | undefined;
499
+ }[];
500
+ translations: {
501
+ [x: string]: {
502
+ parameters: {
503
+ handshape?: string | undefined;
504
+ movement?: string | undefined;
505
+ placement?: string | undefined;
506
+ orientation?: string | undefined;
507
+ };
508
+ icons: string;
509
+ };
510
+ };
511
+ definition: string;
512
+ is_two_handed: boolean;
513
+ new_gloss: string;
514
+ old_gloss: string;
515
+ signwriting: {
516
+ fsw: string;
517
+ swu: string;
518
+ };
519
+ video: {
520
+ gif?: string | undefined;
521
+ mp4?: string | undefined;
394
522
  };
395
- icons: string;
396
- }>;
397
- definition: string;
398
- is_two_handed: boolean;
399
- new_gloss: string;
400
- old_gloss: string;
401
- signwriting: {
402
- fsw: string;
403
- swu: string;
404
- };
405
- video: {
406
- gif?: string | undefined;
407
- mp4?: string | undefined;
408
- };
409
- }>;
523
+ };
524
+ };
525
+ outputFormat: "json";
526
+ status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | -1;
527
+ } | {
528
+ input: {
529
+ query: {
530
+ lang?: string | string[] | undefined;
531
+ };
532
+ } & {
533
+ param: {
534
+ sign: string | undefined;
535
+ };
536
+ };
537
+ output: {
538
+ ok: false;
539
+ message: string;
540
+ };
541
+ outputFormat: "json";
542
+ status: 400;
410
543
  };
411
544
  };
412
545
  } & {
413
546
  "/fonts": {
414
547
  $get: {
415
548
  input: {};
416
- output: Record<string, {
417
- id: string;
418
- creator: string[];
419
- ligatures: boolean;
420
- ucsur: boolean;
421
- features: string[];
422
- filename: string;
423
- license: string;
424
- name: string;
425
- style: string;
426
- version: string;
427
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
428
- links: {
429
- fontfile?: string | undefined;
430
- repo?: string | undefined;
431
- webpage?: string | undefined;
432
- };
433
- last_updated?: string | undefined;
434
- }>;
549
+ output: {
550
+ [x: string]: {
551
+ id: string;
552
+ creator: string[];
553
+ ligatures: boolean;
554
+ ucsur: boolean;
555
+ features: string[];
556
+ filename: string;
557
+ license: string;
558
+ name: string;
559
+ style: string;
560
+ version: string;
561
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
562
+ links: {
563
+ fontfile?: string | undefined;
564
+ repo?: string | undefined;
565
+ webpage?: string | undefined;
566
+ };
567
+ last_updated?: string | undefined;
568
+ };
569
+ };
570
+ outputFormat: "json";
571
+ status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | -1;
435
572
  };
436
573
  };
437
574
  } & {
@@ -439,44 +576,65 @@ declare const app: Hono<{}, {
439
576
  $get: {
440
577
  input: {
441
578
  param: {
442
- font: string;
443
- };
444
- };
445
- output: Result<{
446
- id: string;
447
- creator: string[];
448
- ligatures: boolean;
449
- ucsur: boolean;
450
- features: string[];
451
- filename: string;
452
- license: string;
453
- name: string;
454
- style: string;
455
- version: string;
456
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
457
- links: {
458
- fontfile?: string | undefined;
459
- repo?: string | undefined;
460
- webpage?: string | undefined;
461
- };
462
- last_updated?: string | undefined;
463
- }>;
579
+ font: string | undefined;
580
+ };
581
+ };
582
+ output: {
583
+ ok: true;
584
+ data: {
585
+ id: string;
586
+ creator: string[];
587
+ ligatures: boolean;
588
+ ucsur: boolean;
589
+ features: string[];
590
+ filename: string;
591
+ license: string;
592
+ name: string;
593
+ style: string;
594
+ version: string;
595
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
596
+ links: {
597
+ fontfile?: string | undefined;
598
+ repo?: string | undefined;
599
+ webpage?: string | undefined;
600
+ };
601
+ last_updated?: string | undefined;
602
+ };
603
+ };
604
+ outputFormat: "json";
605
+ status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | -1;
606
+ } | {
607
+ input: {
608
+ param: {
609
+ font: string | undefined;
610
+ };
611
+ };
612
+ output: {
613
+ ok: false;
614
+ message: string;
615
+ };
616
+ outputFormat: "json";
617
+ status: 400;
464
618
  };
465
619
  };
466
620
  } & {
467
621
  "/languages": {
468
622
  $get: {
469
623
  input: {};
470
- output: Record<string, {
471
- id: string;
472
- name: {
473
- en: string;
474
- tok?: string | undefined;
475
- endonym?: string | undefined;
476
- };
477
- locale: string;
478
- direction: "ltr" | "rtl";
479
- }>;
624
+ output: {
625
+ [x: string]: {
626
+ id: string;
627
+ name: {
628
+ en: string;
629
+ tok?: string | undefined;
630
+ endonym?: string | undefined;
631
+ };
632
+ locale: string;
633
+ direction: "ltr" | "rtl";
634
+ };
635
+ };
636
+ outputFormat: "json";
637
+ status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | -1;
480
638
  };
481
639
  };
482
640
  } & {
@@ -484,19 +642,36 @@ declare const app: Hono<{}, {
484
642
  $get: {
485
643
  input: {
486
644
  param: {
487
- language: string;
645
+ language: string | undefined;
488
646
  };
489
647
  };
490
- output: Result<{
491
- id: string;
492
- name: {
493
- en: string;
494
- tok?: string | undefined;
495
- endonym?: string | undefined;
648
+ output: {
649
+ ok: true;
650
+ data: {
651
+ id: string;
652
+ name: {
653
+ en: string;
654
+ tok?: string | undefined;
655
+ endonym?: string | undefined;
656
+ };
657
+ locale: string;
658
+ direction: "ltr" | "rtl";
496
659
  };
497
- locale: string;
498
- direction: "ltr" | "rtl";
499
- }>;
660
+ };
661
+ outputFormat: "json";
662
+ status: 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511 | -1;
663
+ } | {
664
+ input: {
665
+ param: {
666
+ language: string | undefined;
667
+ };
668
+ };
669
+ output: {
670
+ ok: false;
671
+ message: string;
672
+ };
673
+ outputFormat: "json";
674
+ status: 400;
500
675
  };
501
676
  };
502
677
  }, "/">;