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