@kulupu-linku/sona 0.3.1 → 0.3.2

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,73 @@ 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
+ ok: false;
152
+ message: string;
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;
128
156
  };
129
157
  };
130
158
  "/v1/sandbox": {
@@ -134,56 +162,66 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
134
162
  lang?: string | string[] | undefined;
135
163
  };
136
164
  };
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, {
165
+ output: {
166
+ [x: string]: {
167
+ id: string;
168
+ author_verbatim: string;
169
+ author_verbatim_source: string;
170
+ book: "pu" | "ku suli" | "ku lili" | "none";
171
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
172
+ coined_year: string;
173
+ creator: string[];
174
+ see_also: string[];
175
+ source_language: string;
176
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
177
+ word: string;
178
+ deprecated: boolean;
160
179
  etymology: {
161
- language: string;
162
- definition?: string | undefined;
180
+ word?: string | undefined;
181
+ alt?: string | undefined;
163
182
  }[];
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
- }>;
183
+ audio: {
184
+ author: string;
185
+ link: string;
186
+ }[];
187
+ usage: {
188
+ [x: string]: number;
189
+ };
190
+ translations: {
191
+ [x: string]: {
192
+ etymology: {
193
+ language: string;
194
+ definition?: string | undefined;
195
+ }[];
196
+ commentary: string;
197
+ definition: string;
198
+ sp_etymology: string;
199
+ };
200
+ };
201
+ ku_data?: {
202
+ [x: string]: number;
203
+ } | undefined;
204
+ resources?: {
205
+ sona_pona?: string | undefined;
206
+ lipamanka_semantic?: string | undefined;
207
+ } | undefined;
208
+ representations?: {
209
+ sitelen_emosi?: string | undefined;
210
+ sitelen_jelo?: string[] | undefined;
211
+ ligatures?: string[] | undefined;
212
+ sitelen_sitelen?: string | undefined;
213
+ ucsur?: string | undefined;
214
+ } | undefined;
215
+ pu_verbatim?: {
216
+ en: string;
217
+ fr: string;
218
+ de: string;
219
+ eo: string;
220
+ } | undefined;
221
+ };
222
+ };
223
+ outputFormat: "json";
224
+ 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
225
  };
188
226
  };
189
227
  "/v1/sandbox/:word": {
@@ -194,59 +232,73 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
194
232
  };
195
233
  } & {
196
234
  param: {
197
- word: string;
235
+ word: string | undefined;
198
236
  };
199
237
  };
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, {
238
+ output: {
239
+ ok: true;
240
+ data: {
241
+ id: string;
242
+ author_verbatim: string;
243
+ author_verbatim_source: string;
244
+ book: "pu" | "ku suli" | "ku lili" | "none";
245
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
246
+ coined_year: string;
247
+ creator: string[];
248
+ see_also: string[];
249
+ source_language: string;
250
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
251
+ word: string;
252
+ deprecated: boolean;
223
253
  etymology: {
224
- language: string;
225
- definition?: string | undefined;
254
+ word?: string | undefined;
255
+ alt?: string | undefined;
226
256
  }[];
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
- }>;
257
+ audio: {
258
+ author: string;
259
+ link: string;
260
+ }[];
261
+ usage: {
262
+ [x: string]: number;
263
+ };
264
+ translations: {
265
+ [x: string]: {
266
+ etymology: {
267
+ language: string;
268
+ definition?: string | undefined;
269
+ }[];
270
+ commentary: string;
271
+ definition: string;
272
+ sp_etymology: string;
273
+ };
274
+ };
275
+ ku_data?: {
276
+ [x: string]: number;
277
+ } | undefined;
278
+ resources?: {
279
+ sona_pona?: string | undefined;
280
+ lipamanka_semantic?: string | undefined;
281
+ } | undefined;
282
+ representations?: {
283
+ sitelen_emosi?: string | undefined;
284
+ sitelen_jelo?: string[] | undefined;
285
+ ligatures?: string[] | undefined;
286
+ sitelen_sitelen?: string | undefined;
287
+ ucsur?: string | undefined;
288
+ } | undefined;
289
+ pu_verbatim?: {
290
+ en: string;
291
+ fr: string;
292
+ de: string;
293
+ eo: string;
294
+ } | undefined;
295
+ };
296
+ } | {
297
+ ok: false;
298
+ message: string;
299
+ };
300
+ outputFormat: "json";
301
+ 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;
250
302
  };
251
303
  };
252
304
  "/v1/luka_pona/fingerspelling": {
@@ -256,30 +308,36 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
256
308
  lang?: string | string[] | undefined;
257
309
  };
258
310
  };
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;
311
+ output: {
312
+ [x: string]: {
313
+ id: string;
314
+ etymology: {
315
+ language: string;
316
+ sign: string;
317
+ }[];
318
+ translations: {
319
+ [x: string]: {
320
+ parameters: {
321
+ handshape?: string | undefined;
322
+ movement?: string | undefined;
323
+ placement?: string | undefined;
324
+ orientation?: string | undefined;
325
+ };
326
+ };
327
+ };
328
+ is_two_handed: boolean;
329
+ signwriting: {
330
+ fsw: string;
331
+ swu: string;
332
+ };
333
+ video: {
334
+ gif?: string | undefined;
335
+ mp4?: string | undefined;
271
336
  };
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
337
  };
282
- }>;
338
+ };
339
+ outputFormat: "json";
340
+ 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
341
  };
284
342
  };
285
343
  "/v1/luka_pona/fingerspelling/:sign": {
@@ -290,33 +348,43 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
290
348
  };
291
349
  } & {
292
350
  param: {
293
- sign: string;
351
+ sign: string | undefined;
294
352
  };
295
353
  };
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;
354
+ output: {
355
+ ok: true;
356
+ data: {
357
+ id: string;
358
+ etymology: {
359
+ language: string;
360
+ sign: string;
361
+ }[];
362
+ translations: {
363
+ [x: string]: {
364
+ parameters: {
365
+ handshape?: string | undefined;
366
+ movement?: string | undefined;
367
+ placement?: string | undefined;
368
+ orientation?: string | undefined;
369
+ };
370
+ };
371
+ };
372
+ is_two_handed: boolean;
373
+ signwriting: {
374
+ fsw: string;
375
+ swu: string;
376
+ };
377
+ video: {
378
+ gif?: string | undefined;
379
+ mp4?: string | undefined;
308
380
  };
309
- }>;
310
- is_two_handed: boolean;
311
- signwriting: {
312
- fsw: string;
313
- swu: string;
314
- };
315
- video: {
316
- gif?: string | undefined;
317
- mp4?: string | undefined;
318
381
  };
319
- }>;
382
+ } | {
383
+ ok: false;
384
+ message: string;
385
+ };
386
+ outputFormat: "json";
387
+ 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;
320
388
  };
321
389
  };
322
390
  "/v1/luka_pona/signs": {
@@ -326,34 +394,40 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
326
394
  lang?: string | string[] | undefined;
327
395
  };
328
396
  };
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;
397
+ output: {
398
+ [x: string]: {
399
+ id: string;
400
+ etymology: {
401
+ language: string;
402
+ sign?: string | undefined;
403
+ }[];
404
+ translations: {
405
+ [x: string]: {
406
+ parameters: {
407
+ handshape?: string | undefined;
408
+ movement?: string | undefined;
409
+ placement?: string | undefined;
410
+ orientation?: string | undefined;
411
+ };
412
+ icons: string;
413
+ };
414
+ };
415
+ definition: string;
416
+ is_two_handed: boolean;
417
+ new_gloss: string;
418
+ old_gloss: string;
419
+ signwriting: {
420
+ fsw: string;
421
+ swu: string;
422
+ };
423
+ video: {
424
+ gif?: string | undefined;
425
+ mp4?: string | undefined;
341
426
  };
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
427
  };
356
- }>;
428
+ };
429
+ outputFormat: "json";
430
+ 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
431
  };
358
432
  };
359
433
  "/v1/luka_pona/signs/:sign": {
@@ -364,123 +438,157 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
364
438
  };
365
439
  } & {
366
440
  param: {
367
- sign: string;
441
+ sign: string | undefined;
368
442
  };
369
443
  };
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;
444
+ output: {
445
+ ok: true;
446
+ data: {
447
+ id: string;
448
+ etymology: {
449
+ language: string;
450
+ sign?: string | undefined;
451
+ }[];
452
+ translations: {
453
+ [x: string]: {
454
+ parameters: {
455
+ handshape?: string | undefined;
456
+ movement?: string | undefined;
457
+ placement?: string | undefined;
458
+ orientation?: string | undefined;
459
+ };
460
+ icons: string;
461
+ };
462
+ };
463
+ definition: string;
464
+ is_two_handed: boolean;
465
+ new_gloss: string;
466
+ old_gloss: string;
467
+ signwriting: {
468
+ fsw: string;
469
+ swu: string;
470
+ };
471
+ video: {
472
+ gif?: string | undefined;
473
+ mp4?: string | undefined;
382
474
  };
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
475
  };
397
- }>;
476
+ } | {
477
+ ok: false;
478
+ message: string;
479
+ };
480
+ outputFormat: "json";
481
+ 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;
398
482
  };
399
483
  };
400
484
  "/v1/fonts": {
401
485
  $get: {
402
486
  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;
487
+ output: {
488
+ [x: string]: {
489
+ id: string;
490
+ creator: string[];
491
+ ligatures: boolean;
492
+ ucsur: boolean;
493
+ features: string[];
494
+ filename: string;
495
+ license: string;
496
+ name: string;
497
+ style: string;
498
+ version: string;
499
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
500
+ links: {
501
+ fontfile?: string | undefined;
502
+ repo?: string | undefined;
503
+ webpage?: string | undefined;
504
+ };
505
+ last_updated?: string | undefined;
419
506
  };
420
- last_updated?: string | undefined;
421
- }>;
507
+ };
508
+ outputFormat: "json";
509
+ 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
510
  };
423
511
  };
424
512
  "/v1/fonts/:font": {
425
513
  $get: {
426
514
  input: {
427
515
  param: {
428
- font: string;
516
+ font: string | undefined;
429
517
  };
430
518
  };
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;
519
+ output: {
520
+ ok: true;
521
+ data: {
522
+ id: string;
523
+ creator: string[];
524
+ ligatures: boolean;
525
+ ucsur: boolean;
526
+ features: string[];
527
+ filename: string;
528
+ license: string;
529
+ name: string;
530
+ style: string;
531
+ version: string;
532
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
533
+ links: {
534
+ fontfile?: string | undefined;
535
+ repo?: string | undefined;
536
+ webpage?: string | undefined;
537
+ };
538
+ last_updated?: string | undefined;
447
539
  };
448
- last_updated?: string | undefined;
449
- }>;
540
+ } | {
541
+ ok: false;
542
+ message: string;
543
+ };
544
+ outputFormat: "json";
545
+ 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;
450
546
  };
451
547
  };
452
548
  "/v1/languages": {
453
549
  $get: {
454
550
  input: {};
455
- output: Record<string, {
456
- id: string;
457
- name: {
458
- en: string;
459
- tok?: string | undefined;
460
- endonym?: string | undefined;
551
+ output: {
552
+ [x: string]: {
553
+ id: string;
554
+ name: {
555
+ en: string;
556
+ tok?: string | undefined;
557
+ endonym?: string | undefined;
558
+ };
559
+ locale: string;
560
+ direction: "ltr" | "rtl";
461
561
  };
462
- locale: string;
463
- direction: "ltr" | "rtl";
464
- }>;
562
+ };
563
+ outputFormat: "json";
564
+ 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
565
  };
466
566
  };
467
567
  "/v1/languages/:language": {
468
568
  $get: {
469
569
  input: {
470
570
  param: {
471
- language: string;
571
+ language: string | undefined;
472
572
  };
473
573
  };
474
- output: import('./utils').Result<{
475
- id: string;
476
- name: {
477
- en: string;
478
- tok?: string | undefined;
479
- endonym?: string | undefined;
574
+ output: {
575
+ ok: true;
576
+ data: {
577
+ id: string;
578
+ name: {
579
+ en: string;
580
+ tok?: string | undefined;
581
+ endonym?: string | undefined;
582
+ };
583
+ locale: string;
584
+ direction: "ltr" | "rtl";
480
585
  };
481
- locale: string;
482
- direction: "ltr" | "rtl";
483
- }>;
586
+ } | {
587
+ ok: false;
588
+ message: string;
589
+ };
590
+ outputFormat: "json";
591
+ 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;
484
592
  };
485
593
  };
486
594
  } & {
@@ -488,13 +596,17 @@ declare const app: import('hono/hono-base').HonoBase<{}, {
488
596
  $get: {
489
597
  input: {};
490
598
  output: {};
599
+ outputFormat: string;
600
+ status: StatusCode;
491
601
  };
492
602
  };
493
603
  } & {
494
604
  "/jasima": {
495
605
  $get: {
496
606
  input: {};
497
- output: never;
607
+ output: {};
608
+ outputFormat: "json";
609
+ 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
610
  };
499
611
  };
500
612
  }, "/">;