@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.
- package/LICENSE +674 -0
- package/dist/client.js +93 -88
- package/dist/index.js +2 -2
- package/dist/lib/client.d.ts +499 -319
- package/dist/lib/client.test.d.ts +3 -3
- package/dist/lib/index.d.ts +14 -11
- package/dist/lib/types.d.ts +1 -1
- package/dist/server/index.d.ts +541 -359
- package/dist/server/utils.d.ts +0 -9
- package/dist/server/v1/index.d.ts +534 -359
- package/dist/server/versioning.d.ts +554 -371
- package/dist/utils-GfUvEzD4.js +2905 -0
- package/dist/utils.js +1 -1
- package/package.json +14 -14
- package/dist/utils-CnA4OULt.js +0 -2777
|
@@ -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:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
45
|
-
|
|
36
|
+
word?: string | undefined;
|
|
37
|
+
alt?: string | undefined;
|
|
46
38
|
}[];
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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:
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
109
|
-
|
|
111
|
+
word?: string | undefined;
|
|
112
|
+
alt?: string | undefined;
|
|
110
113
|
}[];
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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:
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
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
|
-
|
|
169
|
-
|
|
197
|
+
word?: string | undefined;
|
|
198
|
+
alt?: string | undefined;
|
|
170
199
|
}[];
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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
|
-
|
|
233
|
-
|
|
272
|
+
word?: string | undefined;
|
|
273
|
+
alt?: string | undefined;
|
|
234
274
|
}[];
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
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:
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
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:
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
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
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
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
|
-
|
|
326
|
-
|
|
327
|
-
|
|
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:
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
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
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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:
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
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
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
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:
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
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:
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
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:
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
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:
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
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
|
-
|
|
498
|
-
|
|
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
|
}, "/">;
|