@kulupu-linku/sona 0.3.5 → 2.0.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.
Files changed (84) hide show
  1. package/dist/.assetsignore +0 -0
  2. package/dist/client-BSyS8F5a.d.ts +1612 -0
  3. package/dist/client-BitJ28pJ.js +10 -0
  4. package/dist/client-CUMo53JZ.d.ts +1612 -0
  5. package/dist/client-DNWH1gFt.js +10 -0
  6. package/dist/index-1jX6YIBj.d.ts +1497 -0
  7. package/dist/index-DObG_APy.d.ts +398 -0
  8. package/dist/index-DsVEVr6r.d.ts +300 -0
  9. package/dist/lib/v1/client.d.ts +3 -0
  10. package/dist/lib/v1/client.js +3 -0
  11. package/dist/lib/v1/client.test.d.ts +31 -0
  12. package/dist/lib/v1/client.test.js +3 -0
  13. package/dist/lib/v1/index.d.ts +2 -0
  14. package/dist/lib/v1/index.js +4 -0
  15. package/dist/lib/v1/types.d.ts +2 -0
  16. package/dist/lib/v1/types.js +1 -0
  17. package/dist/lib/v1/utils.d.ts +26 -0
  18. package/dist/lib/v1/utils.js +3 -0
  19. package/dist/lib/v2/client.d.ts +3 -0
  20. package/dist/lib/v2/client.js +3 -0
  21. package/dist/lib/v2/client.test.d.ts +36 -0
  22. package/dist/lib/v2/client.test.js +3 -0
  23. package/dist/lib/v2/index.d.ts +2 -0
  24. package/dist/lib/v2/index.js +4 -0
  25. package/dist/lib/v2/types.d.ts +2 -0
  26. package/dist/lib/v2/types.js +1 -0
  27. package/dist/lib/v2/utils.d.ts +44 -0
  28. package/dist/lib/v2/utils.js +3 -0
  29. package/dist/server/index.d.ts +2 -684
  30. package/dist/server/index.js +43 -0
  31. package/dist/server/utils.d.ts +22 -15
  32. package/dist/server/utils.js +3 -0
  33. package/dist/server/v1/index.d.ts +863 -639
  34. package/dist/server/v1/index.js +8 -0
  35. package/dist/server/v2/index.d.ts +1112 -0
  36. package/dist/server/v2/index.js +8 -0
  37. package/dist/server/versioning.d.ts +1964 -2369
  38. package/dist/server/versioning.js +8 -0
  39. package/dist/utils-DkAaVBMs.js +33 -0
  40. package/dist/utils-QiKwNnnL.js +37 -0
  41. package/dist/utils-Z1o5sWsW.js +40 -0
  42. package/dist/v1-DkHVwPCI.js +139 -0
  43. package/dist/v1-obRCoWWK.js +267 -0
  44. package/dist/v2-CDtbJFxV.js +194 -0
  45. package/generated/v2/fingerspelling.json +124 -0
  46. package/generated/v2/fingerspellings.json +135 -0
  47. package/generated/v2/font.json +119 -0
  48. package/generated/v2/fonts.json +130 -0
  49. package/generated/v2/glyph.json +160 -0
  50. package/generated/v2/glyphs.json +167 -0
  51. package/generated/v2/language.json +58 -0
  52. package/generated/v2/languages.json +67 -0
  53. package/generated/v2/sign.json +149 -0
  54. package/generated/v2/signs.json +160 -0
  55. package/generated/v2/word.json +306 -0
  56. package/generated/v2/words.json +313 -0
  57. package/package.json +47 -28
  58. package/dist/client.d.ts +0 -1
  59. package/dist/client.js +0 -165
  60. package/dist/index.d.ts +0 -1
  61. package/dist/index.js +0 -223
  62. package/dist/lib/client.d.ts +0 -742
  63. package/dist/lib/client.test.d.ts +0 -28
  64. package/dist/lib/index.d.ts +0 -963
  65. package/dist/lib/types.d.ts +0 -18
  66. package/dist/lib/utils.d.ts +0 -14
  67. package/dist/utils-GfUvEzD4.js +0 -2905
  68. package/dist/utils.d.ts +0 -1
  69. package/dist/utils.js +0 -9
  70. package/generated/words.json +0 -315
  71. /package/generated/{commentary_translation.json → v1/commentary_translation.json} +0 -0
  72. /package/generated/{definition_translation.json → v1/definition_translation.json} +0 -0
  73. /package/generated/{etymology_translation.json → v1/etymology_translation.json} +0 -0
  74. /package/generated/{fingerspelling.json → v1/fingerspelling.json} +0 -0
  75. /package/generated/{fingerspelling_sign.json → v1/fingerspelling_sign.json} +0 -0
  76. /package/generated/{font.json → v1/font.json} +0 -0
  77. /package/generated/{fonts.json → v1/fonts.json} +0 -0
  78. /package/generated/{icon_translation.json → v1/icon_translation.json} +0 -0
  79. /package/generated/{languages.json → v1/languages.json} +0 -0
  80. /package/generated/{parameters_translation.json → v1/parameters_translation.json} +0 -0
  81. /package/generated/{sign.json → v1/sign.json} +0 -0
  82. /package/generated/{signs.json → v1/signs.json} +0 -0
  83. /package/generated/{sitelen_pona_translation.json → v1/sitelen_pona_translation.json} +0 -0
  84. /package/generated/{word.json → v1/word.json} +0 -0
@@ -1,2424 +1,2019 @@
1
- import { Hono } from 'hono';
2
- import { z } from 'zod';
1
+ import { z } from "zod/v4";
2
+ import * as hono_types0 from "hono/types";
3
+ import * as hono_hono_base0 from "hono/hono-base";
3
4
 
4
- export declare const BASE_URL = "https://raw.githubusercontent.com/lipu-linku/sona";
5
- export type ApiVersion = "v1";
6
- export type Versions = {
7
- [version in ApiVersion]: {
8
- branch: string;
9
- schemas: Record<string, z.ZodType>;
10
- raw: Record<string, {
11
- filename: `${string}.${string}`;
12
- schema: z.ZodType;
5
+ //#region src/server/versioning.d.ts
6
+ type ApiVersion = "v1" | "v2";
7
+ type Versions<V extends Record<ApiVersion, Record<string, EndpointConfig>>> = { [version in ApiVersion]: ApiConfig<V[version]> };
8
+ type ApiConfig<Endpoints extends Record<string, EndpointConfig>> = { [K in keyof Endpoints]: Endpoints[K] };
9
+ type EndpointConfig<Schema extends z.ZodType = z.ZodType> = {
10
+ root?: string;
11
+ filename: string;
12
+ schema: Schema;
13
+ translations?: boolean;
14
+ };
15
+ declare const versions: {
16
+ readonly v1: {
17
+ readonly words: {
18
+ readonly filename: "words.json";
19
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
20
+ id: z.ZodString;
21
+ author_verbatim: z.ZodString;
22
+ author_verbatim_source: z.ZodString;
23
+ book: z.ZodUnion<readonly [z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
24
+ coined_era: z.ZodUnion<[z.ZodUnion<readonly [z.ZodLiteral<"pre-pu">, z.ZodLiteral<"post-pu">, z.ZodLiteral<"post-ku">]>, z.ZodLiteral<"">]>;
25
+ coined_year: z.ZodString;
26
+ creator: z.ZodArray<z.ZodString>;
27
+ ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
28
+ see_also: z.ZodArray<z.ZodString>;
29
+ resources: z.ZodOptional<z.ZodObject<{
30
+ sona_pona: z.ZodOptional<z.ZodString>;
31
+ lipamanka_semantic: z.ZodOptional<z.ZodString>;
32
+ }, z.core.$strip>>;
33
+ representations: z.ZodOptional<z.ZodObject<{
34
+ sitelen_emosi: z.ZodOptional<z.ZodString>;
35
+ sitelen_jelo: z.ZodOptional<z.ZodArray<z.ZodString>>;
36
+ ligatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
37
+ sitelen_sitelen: z.ZodOptional<z.ZodString>;
38
+ ucsur: z.ZodOptional<z.ZodString>;
39
+ }, z.core.$strip>>;
40
+ source_language: z.ZodString;
41
+ usage_category: z.ZodUnion<readonly [z.ZodLiteral<"core">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"obscure">, z.ZodLiteral<"sandbox">]>;
42
+ word: z.ZodString;
43
+ deprecated: z.ZodBoolean;
44
+ etymology: z.ZodArray<z.ZodObject<{
45
+ word: z.ZodOptional<z.ZodString>;
46
+ alt: z.ZodOptional<z.ZodString>;
47
+ }, z.core.$strip>>;
48
+ audio: z.ZodArray<z.ZodObject<{
49
+ author: z.ZodString;
50
+ link: z.ZodString;
51
+ }, z.core.$strip>>;
52
+ pu_verbatim: z.ZodOptional<z.ZodObject<{
53
+ en: z.ZodString;
54
+ fr: z.ZodString;
55
+ de: z.ZodString;
56
+ eo: z.ZodString;
57
+ }, z.core.$strip>>;
58
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
59
+ translations: z.ZodRecord<z.ZodString, z.ZodObject<{
60
+ commentary: z.ZodString;
61
+ definition: z.ZodString;
62
+ etymology: z.ZodArray<z.ZodObject<{
63
+ definition: z.ZodOptional<z.ZodString>;
64
+ language: z.ZodString;
65
+ }, z.core.$strip>>;
66
+ sp_etymology: z.ZodString;
67
+ }, z.core.$strip>>;
68
+ }, z.core.$strip>>;
69
+ };
70
+ readonly sandbox: {
71
+ readonly filename: "sandbox.json";
72
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
73
+ id: z.ZodString;
74
+ author_verbatim: z.ZodString;
75
+ author_verbatim_source: z.ZodString;
76
+ book: z.ZodUnion<readonly [z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
77
+ coined_era: z.ZodUnion<[z.ZodUnion<readonly [z.ZodLiteral<"pre-pu">, z.ZodLiteral<"post-pu">, z.ZodLiteral<"post-ku">]>, z.ZodLiteral<"">]>;
78
+ coined_year: z.ZodString;
79
+ creator: z.ZodArray<z.ZodString>;
80
+ ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
81
+ see_also: z.ZodArray<z.ZodString>;
82
+ resources: z.ZodOptional<z.ZodObject<{
83
+ sona_pona: z.ZodOptional<z.ZodString>;
84
+ lipamanka_semantic: z.ZodOptional<z.ZodString>;
85
+ }, z.core.$strip>>;
86
+ representations: z.ZodOptional<z.ZodObject<{
87
+ sitelen_emosi: z.ZodOptional<z.ZodString>;
88
+ sitelen_jelo: z.ZodOptional<z.ZodArray<z.ZodString>>;
89
+ ligatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
90
+ sitelen_sitelen: z.ZodOptional<z.ZodString>;
91
+ ucsur: z.ZodOptional<z.ZodString>;
92
+ }, z.core.$strip>>;
93
+ source_language: z.ZodString;
94
+ usage_category: z.ZodUnion<readonly [z.ZodLiteral<"core">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"obscure">, z.ZodLiteral<"sandbox">]>;
95
+ word: z.ZodString;
96
+ deprecated: z.ZodBoolean;
97
+ etymology: z.ZodArray<z.ZodObject<{
98
+ word: z.ZodOptional<z.ZodString>;
99
+ alt: z.ZodOptional<z.ZodString>;
100
+ }, z.core.$strip>>;
101
+ audio: z.ZodArray<z.ZodObject<{
102
+ author: z.ZodString;
103
+ link: z.ZodString;
104
+ }, z.core.$strip>>;
105
+ pu_verbatim: z.ZodOptional<z.ZodObject<{
106
+ en: z.ZodString;
107
+ fr: z.ZodString;
108
+ de: z.ZodString;
109
+ eo: z.ZodString;
110
+ }, z.core.$strip>>;
111
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
112
+ translations: z.ZodRecord<z.ZodString, z.ZodObject<{
113
+ commentary: z.ZodString;
114
+ definition: z.ZodString;
115
+ etymology: z.ZodArray<z.ZodObject<{
116
+ definition: z.ZodOptional<z.ZodString>;
117
+ language: z.ZodString;
118
+ }, z.core.$strip>>;
119
+ sp_etymology: z.ZodString;
120
+ }, z.core.$strip>>;
121
+ }, z.core.$strip>>;
122
+ };
123
+ readonly fingerspellings: {
124
+ readonly filename: "fingerspelling.json";
125
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
126
+ id: z.ZodString;
127
+ is_two_handed: z.ZodBoolean;
128
+ etymology: z.ZodArray<z.ZodObject<{
129
+ language: z.ZodString;
130
+ sign: z.ZodString;
131
+ }, z.core.$strip>>;
132
+ signwriting: z.ZodObject<{
133
+ fsw: z.ZodString;
134
+ swu: z.ZodString;
135
+ }, z.core.$strip>;
136
+ video: z.ZodObject<{
137
+ gif: z.ZodOptional<z.ZodString>;
138
+ mp4: z.ZodOptional<z.ZodString>;
139
+ }, z.core.$strip>;
140
+ translations: z.ZodRecord<z.ZodString, z.ZodObject<{
141
+ parameters: z.ZodObject<{
142
+ handshape: z.ZodOptional<z.ZodString>;
143
+ movement: z.ZodOptional<z.ZodString>;
144
+ placement: z.ZodOptional<z.ZodString>;
145
+ orientation: z.ZodOptional<z.ZodString>;
146
+ }, z.core.$strip>;
147
+ }, z.core.$strip>>;
148
+ }, z.core.$strip>>;
149
+ };
150
+ readonly signs: {
151
+ readonly filename: "signs.json";
152
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
153
+ definition: z.ZodString;
154
+ id: z.ZodString;
155
+ is_two_handed: z.ZodBoolean;
156
+ new_gloss: z.ZodString;
157
+ old_gloss: z.ZodString;
158
+ etymology: z.ZodArray<z.ZodObject<{
159
+ language: z.ZodString;
160
+ sign: z.ZodOptional<z.ZodString>;
161
+ }, z.core.$strip>>;
162
+ signwriting: z.ZodObject<{
163
+ fsw: z.ZodString;
164
+ swu: z.ZodString;
165
+ }, z.core.$strip>;
166
+ video: z.ZodObject<{
167
+ gif: z.ZodOptional<z.ZodString>;
168
+ mp4: z.ZodOptional<z.ZodString>;
169
+ }, z.core.$strip>;
170
+ translations: z.ZodRecord<z.ZodString, z.ZodObject<{
171
+ parameters: z.ZodObject<{
172
+ handshape: z.ZodOptional<z.ZodString>;
173
+ movement: z.ZodOptional<z.ZodString>;
174
+ placement: z.ZodOptional<z.ZodString>;
175
+ orientation: z.ZodOptional<z.ZodString>;
176
+ }, z.core.$strip>;
177
+ icons: z.ZodString;
178
+ }, z.core.$strip>>;
179
+ }, z.core.$strip>>;
180
+ };
181
+ readonly fonts: {
182
+ readonly filename: "fonts.json";
183
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
184
+ id: z.ZodString;
185
+ creator: z.ZodArray<z.ZodString>;
186
+ features: z.ZodArray<z.ZodString>;
187
+ filename: z.ZodString;
188
+ last_updated: z.ZodOptional<z.ZodString>;
189
+ license: z.ZodString;
190
+ ligatures: z.ZodBoolean;
191
+ name: z.ZodString;
192
+ style: z.ZodString;
193
+ ucsur: z.ZodBoolean;
194
+ version: z.ZodString;
195
+ writing_system: z.ZodEnum<{
196
+ "sitelen pona": "sitelen pona";
197
+ "sitelen sitelen": "sitelen sitelen";
198
+ alphabet: "alphabet";
199
+ syllabary: "syllabary";
200
+ logography: "logography";
201
+ "tokiponido alphabet": "tokiponido alphabet";
202
+ "tokiponido syllabary": "tokiponido syllabary";
203
+ "tokiponido logography": "tokiponido logography";
204
+ }>;
205
+ links: z.ZodObject<{
206
+ fontfile: z.ZodOptional<z.ZodString>;
207
+ repo: z.ZodOptional<z.ZodString>;
208
+ webpage: z.ZodOptional<z.ZodString>;
209
+ }, z.core.$strip>;
210
+ }, z.core.$strip>>;
211
+ };
212
+ readonly languages: {
213
+ readonly filename: "languages.json";
214
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
215
+ id: z.ZodString;
216
+ locale: z.ZodString;
217
+ direction: z.ZodUnion<readonly [z.ZodLiteral<"ltr">, z.ZodLiteral<"rtl">]>;
218
+ name: z.ZodObject<{
219
+ en: z.ZodString;
220
+ tok: z.ZodOptional<z.ZodString>;
221
+ endonym: z.ZodOptional<z.ZodString>;
222
+ }, z.core.$strip>;
223
+ }, z.core.$strip>>;
224
+ };
225
+ };
226
+ readonly v2: {
227
+ readonly words: {
228
+ readonly root: "/";
229
+ readonly filename: "words.json";
230
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
231
+ id: z.ZodString;
232
+ word: z.ZodString;
233
+ author_verbatim: z.ZodOptional<z.ZodString>;
234
+ author_source: z.ZodOptional<z.ZodString>;
235
+ book: z.ZodEnum<{
236
+ pu: "pu";
237
+ "ku suli": "ku suli";
238
+ "ku lili": "ku lili";
239
+ none: "none";
240
+ }>;
241
+ coined_era: z.ZodEnum<{
242
+ "pre-pu": "pre-pu";
243
+ "post-pu": "post-pu";
244
+ "post-ku": "post-ku";
245
+ }>;
246
+ creation_date: z.ZodString;
247
+ author: z.ZodArray<z.ZodString>;
248
+ ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
249
+ parent_id: z.ZodOptional<z.ZodString>;
250
+ see_also: z.ZodArray<z.ZodString>;
251
+ resources: z.ZodObject<{
252
+ sona_pona: z.ZodOptional<z.ZodURL>;
253
+ lipamanka_semantic: z.ZodOptional<z.ZodURL>;
254
+ }, z.core.$strip>;
255
+ representations: z.ZodObject<{
256
+ sitelen_emosi: z.ZodOptional<z.ZodEmoji>;
257
+ sitelen_jelo: z.ZodOptional<z.ZodArray<z.ZodEmoji>>;
258
+ ligatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
259
+ sitelen_sitelen: z.ZodOptional<z.ZodURL>;
260
+ ucsur: z.ZodOptional<z.ZodString>;
261
+ }, z.core.$strip>;
262
+ source_language: z.ZodString;
263
+ usage_category: z.ZodEnum<{
264
+ core: "core";
265
+ common: "common";
266
+ uncommon: "uncommon";
267
+ obscure: "obscure";
268
+ sandbox: "sandbox";
269
+ }>;
270
+ deprecated: z.ZodBoolean;
271
+ audio: z.ZodArray<z.ZodObject<{
272
+ author: z.ZodString;
273
+ link: z.ZodURL;
274
+ }, z.core.$strip>>;
275
+ pu_verbatim: z.ZodOptional<z.ZodObject<{
276
+ en: z.ZodString;
277
+ fr: z.ZodString;
278
+ de: z.ZodString;
279
+ eo: z.ZodString;
280
+ }, z.core.$strip>>;
281
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
282
+ glyph_ids: z.ZodArray<z.ZodString>;
283
+ primary_glyph_id: z.ZodOptional<z.ZodString>;
284
+ image: z.ZodOptional<z.ZodURL>;
285
+ svg: z.ZodOptional<z.ZodURL>;
286
+ translations: z.ZodObject<{
287
+ commentary: z.ZodString;
288
+ etymology: z.ZodString;
289
+ definition: z.ZodString;
290
+ }, z.core.$strip>;
291
+ }, z.core.$strip>>;
292
+ readonly translations: true;
293
+ };
294
+ readonly glyphs: {
295
+ readonly root: "/";
296
+ readonly filename: "glyphs.json";
297
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
298
+ id: z.ZodString;
299
+ word: z.ZodString;
300
+ word_id: z.ZodString;
301
+ usage_category: z.ZodEnum<{
302
+ core: "core";
303
+ common: "common";
304
+ uncommon: "uncommon";
305
+ obscure: "obscure";
306
+ sandbox: "sandbox";
307
+ }>;
308
+ author: z.ZodArray<z.ZodString>;
309
+ author_source: z.ZodOptional<z.ZodString>;
310
+ creation_date: z.ZodString;
311
+ see_also: z.ZodArray<z.ZodString>;
312
+ primary: z.ZodBoolean;
313
+ parent_id: z.ZodOptional<z.ZodString>;
314
+ deprecated: z.ZodBoolean;
315
+ image: z.ZodOptional<z.ZodURL>;
316
+ svg: z.ZodOptional<z.ZodURL>;
317
+ ligature: z.ZodOptional<z.ZodString>;
318
+ alias_ligatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
319
+ ucsur: z.ZodOptional<z.ZodString>;
320
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
321
+ translations: z.ZodObject<{
322
+ commentary: z.ZodString;
323
+ etymology: z.ZodString;
324
+ names: z.ZodArray<z.ZodString>;
325
+ }, z.core.$strip>;
326
+ }, z.core.$strip>>;
327
+ readonly translations: true;
328
+ };
329
+ readonly sandbox_words: {
330
+ readonly root: "sandbox/";
331
+ readonly filename: "words.json";
332
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
333
+ id: z.ZodString;
334
+ word: z.ZodString;
335
+ author_verbatim: z.ZodOptional<z.ZodString>;
336
+ author_source: z.ZodOptional<z.ZodString>;
337
+ book: z.ZodEnum<{
338
+ pu: "pu";
339
+ "ku suli": "ku suli";
340
+ "ku lili": "ku lili";
341
+ none: "none";
342
+ }>;
343
+ coined_era: z.ZodEnum<{
344
+ "pre-pu": "pre-pu";
345
+ "post-pu": "post-pu";
346
+ "post-ku": "post-ku";
347
+ }>;
348
+ creation_date: z.ZodString;
349
+ author: z.ZodArray<z.ZodString>;
350
+ ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
351
+ parent_id: z.ZodOptional<z.ZodString>;
352
+ see_also: z.ZodArray<z.ZodString>;
353
+ resources: z.ZodObject<{
354
+ sona_pona: z.ZodOptional<z.ZodURL>;
355
+ lipamanka_semantic: z.ZodOptional<z.ZodURL>;
356
+ }, z.core.$strip>;
357
+ representations: z.ZodObject<{
358
+ sitelen_emosi: z.ZodOptional<z.ZodEmoji>;
359
+ sitelen_jelo: z.ZodOptional<z.ZodArray<z.ZodEmoji>>;
360
+ ligatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
361
+ sitelen_sitelen: z.ZodOptional<z.ZodURL>;
362
+ ucsur: z.ZodOptional<z.ZodString>;
363
+ }, z.core.$strip>;
364
+ source_language: z.ZodString;
365
+ usage_category: z.ZodEnum<{
366
+ core: "core";
367
+ common: "common";
368
+ uncommon: "uncommon";
369
+ obscure: "obscure";
370
+ sandbox: "sandbox";
13
371
  }>;
372
+ deprecated: z.ZodBoolean;
373
+ audio: z.ZodArray<z.ZodObject<{
374
+ author: z.ZodString;
375
+ link: z.ZodURL;
376
+ }, z.core.$strip>>;
377
+ pu_verbatim: z.ZodOptional<z.ZodObject<{
378
+ en: z.ZodString;
379
+ fr: z.ZodString;
380
+ de: z.ZodString;
381
+ eo: z.ZodString;
382
+ }, z.core.$strip>>;
383
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
384
+ glyph_ids: z.ZodArray<z.ZodString>;
385
+ primary_glyph_id: z.ZodOptional<z.ZodString>;
386
+ image: z.ZodOptional<z.ZodURL>;
387
+ svg: z.ZodOptional<z.ZodURL>;
388
+ translations: z.ZodObject<{
389
+ commentary: z.ZodString;
390
+ etymology: z.ZodString;
391
+ definition: z.ZodString;
392
+ }, z.core.$strip>;
393
+ }, z.core.$strip>>;
394
+ readonly translations: true;
14
395
  };
396
+ readonly sandbox_glyphs: {
397
+ readonly root: "sandbox/";
398
+ readonly filename: "glyphs.json";
399
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
400
+ id: z.ZodString;
401
+ word: z.ZodString;
402
+ word_id: z.ZodString;
403
+ usage_category: z.ZodEnum<{
404
+ core: "core";
405
+ common: "common";
406
+ uncommon: "uncommon";
407
+ obscure: "obscure";
408
+ sandbox: "sandbox";
409
+ }>;
410
+ author: z.ZodArray<z.ZodString>;
411
+ author_source: z.ZodOptional<z.ZodString>;
412
+ creation_date: z.ZodString;
413
+ see_also: z.ZodArray<z.ZodString>;
414
+ primary: z.ZodBoolean;
415
+ parent_id: z.ZodOptional<z.ZodString>;
416
+ deprecated: z.ZodBoolean;
417
+ image: z.ZodOptional<z.ZodURL>;
418
+ svg: z.ZodOptional<z.ZodURL>;
419
+ ligature: z.ZodOptional<z.ZodString>;
420
+ alias_ligatures: z.ZodOptional<z.ZodArray<z.ZodString>>;
421
+ ucsur: z.ZodOptional<z.ZodString>;
422
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
423
+ translations: z.ZodObject<{
424
+ commentary: z.ZodString;
425
+ etymology: z.ZodString;
426
+ names: z.ZodArray<z.ZodString>;
427
+ }, z.core.$strip>;
428
+ }, z.core.$strip>>;
429
+ readonly translations: true;
430
+ };
431
+ readonly signs: {
432
+ readonly root: "luka_pona/";
433
+ readonly filename: "signs.json";
434
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
435
+ id: z.ZodString;
436
+ is_two_handed: z.ZodBoolean;
437
+ etymology: z.ZodArray<z.ZodObject<{
438
+ language: z.ZodString;
439
+ sign: z.ZodOptional<z.ZodString>;
440
+ }, z.core.$strip>>;
441
+ signwriting: z.ZodObject<{
442
+ fsw: z.ZodString;
443
+ swu: z.ZodString;
444
+ }, z.core.$strip>;
445
+ video: z.ZodOptional<z.ZodObject<{
446
+ gif: z.ZodURL;
447
+ mp4: z.ZodURL;
448
+ }, z.core.$strip>>;
449
+ definition: z.ZodString;
450
+ new_gloss: z.ZodString;
451
+ old_gloss: z.ZodString;
452
+ old_id: z.ZodString;
453
+ translations: z.ZodObject<{
454
+ icons: z.ZodString;
455
+ parameters: z.ZodObject<{
456
+ handshape: z.ZodOptional<z.ZodString>;
457
+ movement: z.ZodOptional<z.ZodString>;
458
+ placement: z.ZodOptional<z.ZodString>;
459
+ orientation: z.ZodOptional<z.ZodString>;
460
+ }, z.core.$strip>;
461
+ }, z.core.$strip>;
462
+ }, z.core.$strip>>;
463
+ readonly translations: true;
464
+ };
465
+ readonly fingerspellings: {
466
+ readonly root: "luka_pona/";
467
+ readonly filename: "fingerspellings.json";
468
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
469
+ id: z.ZodString;
470
+ is_two_handed: z.ZodBoolean;
471
+ etymology: z.ZodArray<z.ZodObject<{
472
+ language: z.ZodString;
473
+ sign: z.ZodOptional<z.ZodString>;
474
+ }, z.core.$strip>>;
475
+ signwriting: z.ZodObject<{
476
+ fsw: z.ZodString;
477
+ swu: z.ZodString;
478
+ }, z.core.$strip>;
479
+ video: z.ZodOptional<z.ZodObject<{
480
+ gif: z.ZodURL;
481
+ mp4: z.ZodURL;
482
+ }, z.core.$strip>>;
483
+ translations: z.ZodObject<{
484
+ parameters: z.ZodObject<{
485
+ handshape: z.ZodOptional<z.ZodString>;
486
+ movement: z.ZodOptional<z.ZodString>;
487
+ placement: z.ZodOptional<z.ZodString>;
488
+ orientation: z.ZodOptional<z.ZodString>;
489
+ }, z.core.$strip>;
490
+ }, z.core.$strip>;
491
+ }, z.core.$strip>>;
492
+ readonly translations: true;
493
+ };
494
+ readonly fonts: {
495
+ readonly root: "/";
496
+ readonly filename: "fonts.json";
497
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
498
+ id: z.ZodString;
499
+ author: z.ZodArray<z.ZodString>;
500
+ features: z.ZodArray<z.ZodString>;
501
+ filename: z.ZodString;
502
+ last_updated: z.ZodString;
503
+ license: z.ZodString;
504
+ ligatures: z.ZodBoolean;
505
+ name: z.ZodString;
506
+ style: z.ZodString;
507
+ ucsur: z.ZodBoolean;
508
+ version: z.ZodString;
509
+ writing_system: z.ZodEnum<{
510
+ "sitelen pona": "sitelen pona";
511
+ "sitelen sitelen": "sitelen sitelen";
512
+ alphabet: "alphabet";
513
+ syllabary: "syllabary";
514
+ logography: "logography";
515
+ "tokiponido alphabet": "tokiponido alphabet";
516
+ "tokiponido syllabary": "tokiponido syllabary";
517
+ "tokiponido logography": "tokiponido logography";
518
+ }>;
519
+ links: z.ZodObject<{
520
+ fontfile: z.ZodOptional<z.ZodURL>;
521
+ repo: z.ZodOptional<z.ZodURL>;
522
+ webpage: z.ZodOptional<z.ZodURL>;
523
+ }, z.core.$strip>;
524
+ }, z.core.$strip>>;
525
+ readonly translations: false;
526
+ };
527
+ readonly languages: {
528
+ readonly root: "/";
529
+ readonly filename: "languages.json";
530
+ readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
531
+ id: z.ZodString;
532
+ locale: z.ZodString;
533
+ direction: z.ZodUnion<readonly [z.ZodLiteral<"ltr">, z.ZodLiteral<"rtl">]>;
534
+ name: z.ZodObject<{
535
+ en: z.ZodString;
536
+ endonym: z.ZodString;
537
+ tok: z.ZodOptional<z.ZodString>;
538
+ }, z.core.$strip>;
539
+ }, z.core.$strip>>;
540
+ readonly translations: false;
541
+ };
542
+ };
15
543
  };
16
- export declare const versions: {
17
- readonly v1: {
18
- readonly branch: string;
19
- readonly schemas: {
20
- readonly words: z.ZodRecord<z.ZodString, z.ZodObject<z.objectUtil.extendShape<{
21
- id: z.ZodString;
22
- author_verbatim: z.ZodString;
23
- author_verbatim_source: z.ZodString;
24
- book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
25
- coined_era: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"pre-pu">, z.ZodLiteral<"post-pu">, z.ZodLiteral<"post-ku">]>, z.ZodLiteral<"">]>;
26
- coined_year: z.ZodString;
27
- creator: z.ZodArray<z.ZodString, "many">;
28
- ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
29
- see_also: z.ZodArray<z.ZodString, "many">;
30
- resources: z.ZodOptional<z.ZodObject<{
31
- sona_pona: z.ZodOptional<z.ZodString>;
32
- lipamanka_semantic: z.ZodOptional<z.ZodString>;
33
- }, "strip", z.ZodTypeAny, {
34
- sona_pona?: string | undefined;
35
- lipamanka_semantic?: string | undefined;
36
- }, {
37
- sona_pona?: string | undefined;
38
- lipamanka_semantic?: string | undefined;
39
- }>>;
40
- representations: z.ZodOptional<z.ZodObject<{
41
- sitelen_emosi: z.ZodOptional<z.ZodString>;
42
- sitelen_jelo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
43
- ligatures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
44
- sitelen_sitelen: z.ZodOptional<z.ZodString>;
45
- ucsur: z.ZodOptional<z.ZodString>;
46
- }, "strip", z.ZodTypeAny, {
47
- sitelen_emosi?: string | undefined;
48
- sitelen_jelo?: string[] | undefined;
49
- ligatures?: string[] | undefined;
50
- sitelen_sitelen?: string | undefined;
51
- ucsur?: string | undefined;
52
- }, {
53
- sitelen_emosi?: string | undefined;
54
- sitelen_jelo?: string[] | undefined;
55
- ligatures?: string[] | undefined;
56
- sitelen_sitelen?: string | undefined;
57
- ucsur?: string | undefined;
58
- }>>;
59
- source_language: z.ZodString;
60
- usage_category: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"obscure">, z.ZodLiteral<"sandbox">]>;
61
- word: z.ZodString;
62
- deprecated: z.ZodBoolean;
63
- etymology: z.ZodArray<z.ZodObject<{
64
- word: z.ZodOptional<z.ZodString>;
65
- alt: z.ZodOptional<z.ZodString>;
66
- }, "strip", z.ZodTypeAny, {
67
- word?: string | undefined;
68
- alt?: string | undefined;
69
- }, {
70
- word?: string | undefined;
71
- alt?: string | undefined;
72
- }>, "many">;
73
- audio: z.ZodArray<z.ZodObject<{
74
- author: z.ZodString;
75
- link: z.ZodString;
76
- }, "strip", z.ZodTypeAny, {
77
- author: string;
78
- link: string;
79
- }, {
80
- author: string;
81
- link: string;
82
- }>, "many">;
83
- pu_verbatim: z.ZodOptional<z.ZodObject<{
84
- en: z.ZodString;
85
- fr: z.ZodString;
86
- de: z.ZodString;
87
- eo: z.ZodString;
88
- }, "strip", z.ZodTypeAny, {
89
- en: string;
90
- fr: string;
91
- de: string;
92
- eo: string;
93
- }, {
94
- en: string;
95
- fr: string;
96
- de: string;
97
- eo: string;
98
- }>>;
99
- usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
100
- }, {
101
- translations: z.ZodRecord<z.ZodString, z.ZodObject<{
102
- commentary: z.ZodString;
103
- definition: z.ZodString;
104
- etymology: z.ZodArray<z.ZodObject<{
105
- definition: z.ZodOptional<z.ZodString>;
106
- language: z.ZodString;
107
- }, "strip", z.ZodTypeAny, {
108
- language: string;
109
- definition?: string | undefined;
110
- }, {
111
- language: string;
112
- definition?: string | undefined;
113
- }>, "many">;
114
- sp_etymology: z.ZodString;
115
- }, "strip", z.ZodTypeAny, {
116
- etymology: {
117
- language: string;
118
- definition?: string | undefined;
119
- }[];
120
- commentary: string;
121
- definition: string;
122
- sp_etymology: string;
123
- }, {
124
- etymology: {
125
- language: string;
126
- definition?: string | undefined;
127
- }[];
128
- commentary: string;
129
- definition: string;
130
- sp_etymology: string;
131
- }>>;
132
- }>, "strip", z.ZodTypeAny, {
133
- id: string;
134
- author_verbatim: string;
135
- author_verbatim_source: string;
136
- book: "pu" | "ku suli" | "ku lili" | "none";
137
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
138
- coined_year: string;
139
- creator: string[];
140
- see_also: string[];
141
- source_language: string;
142
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
143
- word: string;
144
- deprecated: boolean;
145
- etymology: {
146
- word?: string | undefined;
147
- alt?: string | undefined;
148
- }[];
149
- audio: {
150
- author: string;
151
- link: string;
152
- }[];
153
- usage: Record<string, number>;
154
- translations: Record<string, {
155
- etymology: {
156
- language: string;
157
- definition?: string | undefined;
158
- }[];
159
- commentary: string;
160
- definition: string;
161
- sp_etymology: string;
162
- }>;
163
- ku_data?: Record<string, number> | undefined;
164
- resources?: {
165
- sona_pona?: string | undefined;
166
- lipamanka_semantic?: string | undefined;
167
- } | undefined;
168
- representations?: {
169
- sitelen_emosi?: string | undefined;
170
- sitelen_jelo?: string[] | undefined;
171
- ligatures?: string[] | undefined;
172
- sitelen_sitelen?: string | undefined;
173
- ucsur?: string | undefined;
174
- } | undefined;
175
- pu_verbatim?: {
176
- en: string;
177
- fr: string;
178
- de: string;
179
- eo: string;
180
- } | undefined;
181
- }, {
182
- id: string;
183
- author_verbatim: string;
184
- author_verbatim_source: string;
185
- book: "pu" | "ku suli" | "ku lili" | "none";
186
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
187
- coined_year: string;
188
- creator: string[];
189
- see_also: string[];
190
- source_language: string;
191
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
192
- word: string;
193
- deprecated: boolean;
194
- etymology: {
195
- word?: string | undefined;
196
- alt?: string | undefined;
197
- }[];
198
- audio: {
199
- author: string;
200
- link: string;
201
- }[];
202
- usage: Record<string, number>;
203
- translations: Record<string, {
204
- etymology: {
205
- language: string;
206
- definition?: string | undefined;
207
- }[];
208
- commentary: string;
209
- definition: string;
210
- sp_etymology: string;
211
- }>;
212
- ku_data?: Record<string, number> | undefined;
213
- resources?: {
214
- sona_pona?: string | undefined;
215
- lipamanka_semantic?: string | undefined;
216
- } | undefined;
217
- representations?: {
218
- sitelen_emosi?: string | undefined;
219
- sitelen_jelo?: string[] | undefined;
220
- ligatures?: string[] | undefined;
221
- sitelen_sitelen?: string | undefined;
222
- ucsur?: string | undefined;
223
- } | undefined;
224
- pu_verbatim?: {
225
- en: string;
226
- fr: string;
227
- de: string;
228
- eo: string;
229
- } | undefined;
230
- }>>;
231
- readonly word: z.ZodObject<{
232
- id: z.ZodString;
233
- author_verbatim: z.ZodString;
234
- author_verbatim_source: z.ZodString;
235
- book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
236
- coined_era: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"pre-pu">, z.ZodLiteral<"post-pu">, z.ZodLiteral<"post-ku">]>, z.ZodLiteral<"">]>;
237
- coined_year: z.ZodString;
238
- creator: z.ZodArray<z.ZodString, "many">;
239
- ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
240
- see_also: z.ZodArray<z.ZodString, "many">;
241
- resources: z.ZodOptional<z.ZodObject<{
242
- sona_pona: z.ZodOptional<z.ZodString>;
243
- lipamanka_semantic: z.ZodOptional<z.ZodString>;
244
- }, "strip", z.ZodTypeAny, {
245
- sona_pona?: string | undefined;
246
- lipamanka_semantic?: string | undefined;
247
- }, {
248
- sona_pona?: string | undefined;
249
- lipamanka_semantic?: string | undefined;
250
- }>>;
251
- representations: z.ZodOptional<z.ZodObject<{
252
- sitelen_emosi: z.ZodOptional<z.ZodString>;
253
- sitelen_jelo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
254
- ligatures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
255
- sitelen_sitelen: z.ZodOptional<z.ZodString>;
256
- ucsur: z.ZodOptional<z.ZodString>;
257
- }, "strip", z.ZodTypeAny, {
258
- sitelen_emosi?: string | undefined;
259
- sitelen_jelo?: string[] | undefined;
260
- ligatures?: string[] | undefined;
261
- sitelen_sitelen?: string | undefined;
262
- ucsur?: string | undefined;
263
- }, {
264
- sitelen_emosi?: string | undefined;
265
- sitelen_jelo?: string[] | undefined;
266
- ligatures?: string[] | undefined;
267
- sitelen_sitelen?: string | undefined;
268
- ucsur?: string | undefined;
269
- }>>;
270
- source_language: z.ZodString;
271
- usage_category: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"obscure">, z.ZodLiteral<"sandbox">]>;
272
- word: z.ZodString;
273
- deprecated: z.ZodBoolean;
274
- etymology: z.ZodArray<z.ZodObject<{
275
- word: z.ZodOptional<z.ZodString>;
276
- alt: z.ZodOptional<z.ZodString>;
277
- }, "strip", z.ZodTypeAny, {
278
- word?: string | undefined;
279
- alt?: string | undefined;
280
- }, {
281
- word?: string | undefined;
282
- alt?: string | undefined;
283
- }>, "many">;
284
- audio: z.ZodArray<z.ZodObject<{
285
- author: z.ZodString;
286
- link: z.ZodString;
287
- }, "strip", z.ZodTypeAny, {
288
- author: string;
289
- link: string;
290
- }, {
291
- author: string;
292
- link: string;
293
- }>, "many">;
294
- pu_verbatim: z.ZodOptional<z.ZodObject<{
295
- en: z.ZodString;
296
- fr: z.ZodString;
297
- de: z.ZodString;
298
- eo: z.ZodString;
299
- }, "strip", z.ZodTypeAny, {
300
- en: string;
301
- fr: string;
302
- de: string;
303
- eo: string;
304
- }, {
305
- en: string;
306
- fr: string;
307
- de: string;
308
- eo: string;
309
- }>>;
310
- usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
311
- }, "strip", z.ZodTypeAny, {
312
- id: string;
313
- author_verbatim: string;
314
- author_verbatim_source: string;
315
- book: "pu" | "ku suli" | "ku lili" | "none";
316
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
317
- coined_year: string;
318
- creator: string[];
319
- see_also: string[];
320
- source_language: string;
321
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
322
- word: string;
323
- deprecated: boolean;
324
- etymology: {
325
- word?: string | undefined;
326
- alt?: string | undefined;
327
- }[];
328
- audio: {
329
- author: string;
330
- link: string;
331
- }[];
332
- usage: Record<string, number>;
333
- ku_data?: Record<string, number> | undefined;
334
- resources?: {
335
- sona_pona?: string | undefined;
336
- lipamanka_semantic?: string | undefined;
337
- } | undefined;
338
- representations?: {
339
- sitelen_emosi?: string | undefined;
340
- sitelen_jelo?: string[] | undefined;
341
- ligatures?: string[] | undefined;
342
- sitelen_sitelen?: string | undefined;
343
- ucsur?: string | undefined;
344
- } | undefined;
345
- pu_verbatim?: {
346
- en: string;
347
- fr: string;
348
- de: string;
349
- eo: string;
350
- } | undefined;
351
- }, {
352
- id: string;
353
- author_verbatim: string;
354
- author_verbatim_source: string;
355
- book: "pu" | "ku suli" | "ku lili" | "none";
356
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
357
- coined_year: string;
358
- creator: string[];
359
- see_also: string[];
360
- source_language: string;
361
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
362
- word: string;
363
- deprecated: boolean;
364
- etymology: {
365
- word?: string | undefined;
366
- alt?: string | undefined;
367
- }[];
368
- audio: {
369
- author: string;
370
- link: string;
371
- }[];
372
- usage: Record<string, number>;
373
- ku_data?: Record<string, number> | undefined;
374
- resources?: {
375
- sona_pona?: string | undefined;
376
- lipamanka_semantic?: string | undefined;
377
- } | undefined;
378
- representations?: {
379
- sitelen_emosi?: string | undefined;
380
- sitelen_jelo?: string[] | undefined;
381
- ligatures?: string[] | undefined;
382
- sitelen_sitelen?: string | undefined;
383
- ucsur?: string | undefined;
384
- } | undefined;
385
- pu_verbatim?: {
386
- en: string;
387
- fr: string;
388
- de: string;
389
- eo: string;
390
- } | undefined;
391
- }>;
392
- readonly definition: z.ZodRecord<z.ZodString, z.ZodString>;
393
- readonly commentary: z.ZodRecord<z.ZodString, z.ZodString>;
394
- readonly etymology: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
395
- definition: z.ZodOptional<z.ZodString>;
396
- language: z.ZodString;
397
- }, "strip", z.ZodTypeAny, {
398
- language: string;
399
- definition?: string | undefined;
400
- }, {
401
- language: string;
402
- definition?: string | undefined;
403
- }>, "many">>;
404
- readonly sitelen_pona: z.ZodRecord<z.ZodString, z.ZodString>;
405
- readonly signs: z.ZodRecord<z.ZodString, z.ZodObject<z.objectUtil.extendShape<{
406
- definition: z.ZodString;
407
- id: z.ZodString;
408
- is_two_handed: z.ZodBoolean;
409
- new_gloss: z.ZodString;
410
- old_gloss: z.ZodString;
411
- etymology: z.ZodArray<z.ZodObject<{
412
- language: z.ZodString;
413
- sign: z.ZodOptional<z.ZodString>;
414
- }, "strip", z.ZodTypeAny, {
415
- language: string;
416
- sign?: string | undefined;
417
- }, {
418
- language: string;
419
- sign?: string | undefined;
420
- }>, "many">;
421
- signwriting: z.ZodObject<{
422
- fsw: z.ZodString;
423
- swu: z.ZodString;
424
- }, "strip", z.ZodTypeAny, {
425
- fsw: string;
426
- swu: string;
427
- }, {
428
- fsw: string;
429
- swu: string;
430
- }>;
431
- video: z.ZodObject<{
432
- gif: z.ZodOptional<z.ZodString>;
433
- mp4: z.ZodOptional<z.ZodString>;
434
- }, "strip", z.ZodTypeAny, {
435
- gif?: string | undefined;
436
- mp4?: string | undefined;
437
- }, {
438
- gif?: string | undefined;
439
- mp4?: string | undefined;
440
- }>;
441
- }, {
442
- translations: z.ZodRecord<z.ZodString, z.ZodObject<{
443
- parameters: z.ZodObject<{
444
- handshape: z.ZodOptional<z.ZodString>;
445
- movement: z.ZodOptional<z.ZodString>;
446
- placement: z.ZodOptional<z.ZodString>;
447
- orientation: z.ZodOptional<z.ZodString>;
448
- }, "strip", z.ZodTypeAny, {
449
- handshape?: string | undefined;
450
- movement?: string | undefined;
451
- placement?: string | undefined;
452
- orientation?: string | undefined;
453
- }, {
454
- handshape?: string | undefined;
455
- movement?: string | undefined;
456
- placement?: string | undefined;
457
- orientation?: string | undefined;
458
- }>;
459
- icons: z.ZodString;
460
- }, "strip", z.ZodTypeAny, {
461
- parameters: {
462
- handshape?: string | undefined;
463
- movement?: string | undefined;
464
- placement?: string | undefined;
465
- orientation?: string | undefined;
466
- };
467
- icons: string;
468
- }, {
469
- parameters: {
470
- handshape?: string | undefined;
471
- movement?: string | undefined;
472
- placement?: string | undefined;
473
- orientation?: string | undefined;
474
- };
475
- icons: string;
476
- }>>;
477
- }>, "strip", z.ZodTypeAny, {
478
- id: string;
479
- etymology: {
480
- language: string;
481
- sign?: string | undefined;
482
- }[];
483
- translations: Record<string, {
484
- parameters: {
485
- handshape?: string | undefined;
486
- movement?: string | undefined;
487
- placement?: string | undefined;
488
- orientation?: string | undefined;
489
- };
490
- icons: string;
491
- }>;
544
+ type FilesToVariables<Version extends ApiVersion, Endpoints extends (typeof versions)[Version] = (typeof versions)[Version]> = { [K in keyof Endpoints]: z.output<Endpoints[K]["schema"]> };
545
+ declare const apps: {
546
+ readonly v1: hono_hono_base0.HonoBase<hono_types0.BlankEnv, {
547
+ "/": {
548
+ $get: {
549
+ input: {};
550
+ output: undefined;
551
+ outputFormat: "redirect";
552
+ status: 302;
553
+ };
554
+ };
555
+ } & {
556
+ "/words": {
557
+ $get: {
558
+ input: {
559
+ query: {
560
+ lang?: string | undefined;
561
+ };
562
+ };
563
+ output: {
564
+ [x: string]: {
565
+ id: string;
566
+ author_verbatim: string;
567
+ author_verbatim_source: string;
568
+ book: "pu" | "ku suli" | "ku lili" | "none";
569
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
570
+ coined_year: string;
571
+ creator: string[];
572
+ see_also: string[];
573
+ source_language: string;
574
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
575
+ word: string;
576
+ deprecated: boolean;
577
+ etymology: {
578
+ word?: string | undefined;
579
+ alt?: string | undefined;
580
+ }[];
581
+ audio: {
582
+ author: string;
583
+ link: string;
584
+ }[];
585
+ usage: {
586
+ [x: string]: number;
587
+ };
588
+ translations: {
589
+ [x: string]: {
590
+ commentary: string;
492
591
  definition: string;
493
- is_two_handed: boolean;
494
- new_gloss: string;
495
- old_gloss: string;
496
- signwriting: {
497
- fsw: string;
498
- swu: string;
499
- };
500
- video: {
501
- gif?: string | undefined;
502
- mp4?: string | undefined;
503
- };
504
- }, {
505
- id: string;
506
592
  etymology: {
507
- language: string;
508
- sign?: string | undefined;
593
+ language: string;
594
+ definition?: string | undefined;
509
595
  }[];
510
- translations: Record<string, {
511
- parameters: {
512
- handshape?: string | undefined;
513
- movement?: string | undefined;
514
- placement?: string | undefined;
515
- orientation?: string | undefined;
516
- };
517
- icons: string;
518
- }>;
596
+ sp_etymology: string;
597
+ };
598
+ };
599
+ ku_data?: {
600
+ [x: string]: number;
601
+ } | undefined;
602
+ resources?: {
603
+ sona_pona?: string | undefined;
604
+ lipamanka_semantic?: string | undefined;
605
+ } | undefined;
606
+ representations?: {
607
+ sitelen_emosi?: string | undefined;
608
+ sitelen_jelo?: string[] | undefined;
609
+ ligatures?: string[] | undefined;
610
+ sitelen_sitelen?: string | undefined;
611
+ ucsur?: string | undefined;
612
+ } | undefined;
613
+ pu_verbatim?: {
614
+ en: string;
615
+ fr: string;
616
+ de: string;
617
+ eo: string;
618
+ } | undefined;
619
+ };
620
+ };
621
+ outputFormat: "json";
622
+ status: 200;
623
+ };
624
+ };
625
+ } & {
626
+ "/words/:word": {
627
+ $get: {
628
+ input: {
629
+ query: {
630
+ lang?: string | undefined;
631
+ };
632
+ } & {
633
+ param: {
634
+ word: string;
635
+ };
636
+ };
637
+ output: {
638
+ ok: true;
639
+ data: {
640
+ id: string;
641
+ author_verbatim: string;
642
+ author_verbatim_source: string;
643
+ book: "pu" | "ku suli" | "ku lili" | "none";
644
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
645
+ coined_year: string;
646
+ creator: string[];
647
+ see_also: string[];
648
+ source_language: string;
649
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
650
+ word: string;
651
+ deprecated: boolean;
652
+ etymology: {
653
+ word?: string | undefined;
654
+ alt?: string | undefined;
655
+ }[];
656
+ audio: {
657
+ author: string;
658
+ link: string;
659
+ }[];
660
+ usage: {
661
+ [x: string]: number;
662
+ };
663
+ translations: {
664
+ [x: string]: {
665
+ commentary: string;
519
666
  definition: string;
520
- is_two_handed: boolean;
521
- new_gloss: string;
522
- old_gloss: string;
523
- signwriting: {
524
- fsw: string;
525
- swu: string;
526
- };
527
- video: {
528
- gif?: string | undefined;
529
- mp4?: string | undefined;
530
- };
531
- }>>;
532
- readonly sign: z.ZodObject<{
533
- definition: z.ZodString;
534
- id: z.ZodString;
535
- is_two_handed: z.ZodBoolean;
536
- new_gloss: z.ZodString;
537
- old_gloss: z.ZodString;
538
- etymology: z.ZodArray<z.ZodObject<{
539
- language: z.ZodString;
540
- sign: z.ZodOptional<z.ZodString>;
541
- }, "strip", z.ZodTypeAny, {
542
- language: string;
543
- sign?: string | undefined;
544
- }, {
545
- language: string;
546
- sign?: string | undefined;
547
- }>, "many">;
548
- signwriting: z.ZodObject<{
549
- fsw: z.ZodString;
550
- swu: z.ZodString;
551
- }, "strip", z.ZodTypeAny, {
552
- fsw: string;
553
- swu: string;
554
- }, {
555
- fsw: string;
556
- swu: string;
557
- }>;
558
- video: z.ZodObject<{
559
- gif: z.ZodOptional<z.ZodString>;
560
- mp4: z.ZodOptional<z.ZodString>;
561
- }, "strip", z.ZodTypeAny, {
562
- gif?: string | undefined;
563
- mp4?: string | undefined;
564
- }, {
565
- gif?: string | undefined;
566
- mp4?: string | undefined;
567
- }>;
568
- }, "strip", z.ZodTypeAny, {
569
- id: string;
570
667
  etymology: {
571
- language: string;
572
- sign?: string | undefined;
668
+ language: string;
669
+ definition?: string | undefined;
573
670
  }[];
671
+ sp_etymology: string;
672
+ };
673
+ };
674
+ ku_data?: {
675
+ [x: string]: number;
676
+ } | undefined;
677
+ resources?: {
678
+ sona_pona?: string | undefined;
679
+ lipamanka_semantic?: string | undefined;
680
+ } | undefined;
681
+ representations?: {
682
+ sitelen_emosi?: string | undefined;
683
+ sitelen_jelo?: string[] | undefined;
684
+ ligatures?: string[] | undefined;
685
+ sitelen_sitelen?: string | undefined;
686
+ ucsur?: string | undefined;
687
+ } | undefined;
688
+ pu_verbatim?: {
689
+ en: string;
690
+ fr: string;
691
+ de: string;
692
+ eo: string;
693
+ } | undefined;
694
+ };
695
+ };
696
+ outputFormat: "json";
697
+ status: 200;
698
+ } | {
699
+ input: {
700
+ query: {
701
+ lang?: string | undefined;
702
+ };
703
+ } & {
704
+ param: {
705
+ word: string;
706
+ };
707
+ };
708
+ output: {
709
+ ok: false;
710
+ message: string;
711
+ };
712
+ outputFormat: "json";
713
+ status: 400;
714
+ };
715
+ };
716
+ } & {
717
+ "/sandbox": {
718
+ $get: {
719
+ input: {
720
+ query: {
721
+ lang?: string | undefined;
722
+ };
723
+ };
724
+ output: {
725
+ [x: string]: {
726
+ id: string;
727
+ author_verbatim: string;
728
+ author_verbatim_source: string;
729
+ book: "pu" | "ku suli" | "ku lili" | "none";
730
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
731
+ coined_year: string;
732
+ creator: string[];
733
+ see_also: string[];
734
+ source_language: string;
735
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
736
+ word: string;
737
+ deprecated: boolean;
738
+ etymology: {
739
+ word?: string | undefined;
740
+ alt?: string | undefined;
741
+ }[];
742
+ audio: {
743
+ author: string;
744
+ link: string;
745
+ }[];
746
+ usage: {
747
+ [x: string]: number;
748
+ };
749
+ translations: {
750
+ [x: string]: {
751
+ commentary: string;
574
752
  definition: string;
575
- is_two_handed: boolean;
576
- new_gloss: string;
577
- old_gloss: string;
578
- signwriting: {
579
- fsw: string;
580
- swu: string;
581
- };
582
- video: {
583
- gif?: string | undefined;
584
- mp4?: string | undefined;
585
- };
586
- }, {
587
- id: string;
588
753
  etymology: {
589
- language: string;
590
- sign?: string | undefined;
754
+ language: string;
755
+ definition?: string | undefined;
591
756
  }[];
757
+ sp_etymology: string;
758
+ };
759
+ };
760
+ ku_data?: {
761
+ [x: string]: number;
762
+ } | undefined;
763
+ resources?: {
764
+ sona_pona?: string | undefined;
765
+ lipamanka_semantic?: string | undefined;
766
+ } | undefined;
767
+ representations?: {
768
+ sitelen_emosi?: string | undefined;
769
+ sitelen_jelo?: string[] | undefined;
770
+ ligatures?: string[] | undefined;
771
+ sitelen_sitelen?: string | undefined;
772
+ ucsur?: string | undefined;
773
+ } | undefined;
774
+ pu_verbatim?: {
775
+ en: string;
776
+ fr: string;
777
+ de: string;
778
+ eo: string;
779
+ } | undefined;
780
+ };
781
+ };
782
+ outputFormat: "json";
783
+ status: 200;
784
+ };
785
+ };
786
+ } & {
787
+ "/sandbox/:word": {
788
+ $get: {
789
+ input: {
790
+ query: {
791
+ lang?: string | undefined;
792
+ };
793
+ } & {
794
+ param: {
795
+ word: string;
796
+ };
797
+ };
798
+ output: {
799
+ ok: true;
800
+ data: {
801
+ id: string;
802
+ author_verbatim: string;
803
+ author_verbatim_source: string;
804
+ book: "pu" | "ku suli" | "ku lili" | "none";
805
+ coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
806
+ coined_year: string;
807
+ creator: string[];
808
+ see_also: string[];
809
+ source_language: string;
810
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
811
+ word: string;
812
+ deprecated: boolean;
813
+ etymology: {
814
+ word?: string | undefined;
815
+ alt?: string | undefined;
816
+ }[];
817
+ audio: {
818
+ author: string;
819
+ link: string;
820
+ }[];
821
+ usage: {
822
+ [x: string]: number;
823
+ };
824
+ translations: {
825
+ [x: string]: {
826
+ commentary: string;
592
827
  definition: string;
593
- is_two_handed: boolean;
594
- new_gloss: string;
595
- old_gloss: string;
596
- signwriting: {
597
- fsw: string;
598
- swu: string;
599
- };
600
- video: {
601
- gif?: string | undefined;
602
- mp4?: string | undefined;
603
- };
604
- }>;
605
- readonly fingerspelling: z.ZodRecord<z.ZodString, z.ZodObject<z.objectUtil.extendShape<{
606
- id: z.ZodString;
607
- is_two_handed: z.ZodBoolean;
608
- etymology: z.ZodArray<z.ZodObject<{
609
- language: z.ZodString;
610
- sign: z.ZodString;
611
- }, "strip", z.ZodTypeAny, {
612
- language: string;
613
- sign: string;
614
- }, {
615
- language: string;
616
- sign: string;
617
- }>, "many">;
618
- signwriting: z.ZodObject<{
619
- fsw: z.ZodString;
620
- swu: z.ZodString;
621
- }, "strip", z.ZodTypeAny, {
622
- fsw: string;
623
- swu: string;
624
- }, {
625
- fsw: string;
626
- swu: string;
627
- }>;
628
- video: z.ZodObject<{
629
- gif: z.ZodOptional<z.ZodString>;
630
- mp4: z.ZodOptional<z.ZodString>;
631
- }, "strip", z.ZodTypeAny, {
632
- gif?: string | undefined;
633
- mp4?: string | undefined;
634
- }, {
635
- gif?: string | undefined;
636
- mp4?: string | undefined;
637
- }>;
638
- }, {
639
- translations: z.ZodRecord<z.ZodString, z.ZodObject<{
640
- parameters: z.ZodObject<{
641
- handshape: z.ZodOptional<z.ZodString>;
642
- movement: z.ZodOptional<z.ZodString>;
643
- placement: z.ZodOptional<z.ZodString>;
644
- orientation: z.ZodOptional<z.ZodString>;
645
- }, "strip", z.ZodTypeAny, {
646
- handshape?: string | undefined;
647
- movement?: string | undefined;
648
- placement?: string | undefined;
649
- orientation?: string | undefined;
650
- }, {
651
- handshape?: string | undefined;
652
- movement?: string | undefined;
653
- placement?: string | undefined;
654
- orientation?: string | undefined;
655
- }>;
656
- }, "strip", z.ZodTypeAny, {
657
- parameters: {
658
- handshape?: string | undefined;
659
- movement?: string | undefined;
660
- placement?: string | undefined;
661
- orientation?: string | undefined;
662
- };
663
- }, {
664
- parameters: {
665
- handshape?: string | undefined;
666
- movement?: string | undefined;
667
- placement?: string | undefined;
668
- orientation?: string | undefined;
669
- };
670
- }>>;
671
- }>, "strip", z.ZodTypeAny, {
672
- id: string;
673
- etymology: {
674
- language: string;
675
- sign: string;
676
- }[];
677
- translations: Record<string, {
678
- parameters: {
679
- handshape?: string | undefined;
680
- movement?: string | undefined;
681
- placement?: string | undefined;
682
- orientation?: string | undefined;
683
- };
684
- }>;
685
- is_two_handed: boolean;
686
- signwriting: {
687
- fsw: string;
688
- swu: string;
689
- };
690
- video: {
691
- gif?: string | undefined;
692
- mp4?: string | undefined;
693
- };
694
- }, {
695
- id: string;
696
- etymology: {
697
- language: string;
698
- sign: string;
699
- }[];
700
- translations: Record<string, {
701
- parameters: {
702
- handshape?: string | undefined;
703
- movement?: string | undefined;
704
- placement?: string | undefined;
705
- orientation?: string | undefined;
706
- };
707
- }>;
708
- is_two_handed: boolean;
709
- signwriting: {
710
- fsw: string;
711
- swu: string;
712
- };
713
- video: {
714
- gif?: string | undefined;
715
- mp4?: string | undefined;
716
- };
717
- }>>;
718
- readonly fingerspelling_sign: z.ZodObject<{
719
- id: z.ZodString;
720
- is_two_handed: z.ZodBoolean;
721
- etymology: z.ZodArray<z.ZodObject<{
722
- language: z.ZodString;
723
- sign: z.ZodString;
724
- }, "strip", z.ZodTypeAny, {
725
- language: string;
726
- sign: string;
727
- }, {
728
- language: string;
729
- sign: string;
730
- }>, "many">;
731
- signwriting: z.ZodObject<{
732
- fsw: z.ZodString;
733
- swu: z.ZodString;
734
- }, "strip", z.ZodTypeAny, {
735
- fsw: string;
736
- swu: string;
737
- }, {
738
- fsw: string;
739
- swu: string;
740
- }>;
741
- video: z.ZodObject<{
742
- gif: z.ZodOptional<z.ZodString>;
743
- mp4: z.ZodOptional<z.ZodString>;
744
- }, "strip", z.ZodTypeAny, {
745
- gif?: string | undefined;
746
- mp4?: string | undefined;
747
- }, {
748
- gif?: string | undefined;
749
- mp4?: string | undefined;
750
- }>;
751
- }, "strip", z.ZodTypeAny, {
752
- id: string;
753
- etymology: {
754
- language: string;
755
- sign: string;
756
- }[];
757
- is_two_handed: boolean;
758
- signwriting: {
759
- fsw: string;
760
- swu: string;
761
- };
762
- video: {
763
- gif?: string | undefined;
764
- mp4?: string | undefined;
765
- };
766
- }, {
767
- id: string;
768
828
  etymology: {
769
- language: string;
770
- sign: string;
829
+ language: string;
830
+ definition?: string | undefined;
771
831
  }[];
772
- is_two_handed: boolean;
773
- signwriting: {
774
- fsw: string;
775
- swu: string;
776
- };
777
- video: {
778
- gif?: string | undefined;
779
- mp4?: string | undefined;
780
- };
781
- }>;
782
- readonly sign_parameters: z.ZodRecord<z.ZodString, z.ZodObject<{
783
- handshape: z.ZodOptional<z.ZodString>;
784
- movement: z.ZodOptional<z.ZodString>;
785
- placement: z.ZodOptional<z.ZodString>;
786
- orientation: z.ZodOptional<z.ZodString>;
787
- }, "strip", z.ZodTypeAny, {
788
- handshape?: string | undefined;
789
- movement?: string | undefined;
790
- placement?: string | undefined;
791
- orientation?: string | undefined;
792
- }, {
793
- handshape?: string | undefined;
794
- movement?: string | undefined;
795
- placement?: string | undefined;
796
- orientation?: string | undefined;
797
- }>>;
798
- readonly sign_icons: z.ZodRecord<z.ZodString, z.ZodString>;
799
- readonly fonts: z.ZodRecord<z.ZodString, z.ZodObject<{
800
- id: z.ZodString;
801
- creator: z.ZodArray<z.ZodString, "many">;
802
- features: z.ZodArray<z.ZodString, "many">;
803
- filename: z.ZodString;
804
- last_updated: z.ZodOptional<z.ZodString>;
805
- license: z.ZodString;
806
- ligatures: z.ZodBoolean;
807
- name: z.ZodString;
808
- style: z.ZodString;
809
- ucsur: z.ZodBoolean;
810
- version: z.ZodString;
811
- writing_system: z.ZodEnum<["sitelen pona", "sitelen sitelen", "alphabet", "syllabary", "logography", "tokiponido alphabet", "tokiponido syllabary", "tokiponido logography"]>;
812
- links: z.ZodObject<{
813
- fontfile: z.ZodOptional<z.ZodString>;
814
- repo: z.ZodOptional<z.ZodString>;
815
- webpage: z.ZodOptional<z.ZodString>;
816
- }, "strip", z.ZodTypeAny, {
817
- fontfile?: string | undefined;
818
- repo?: string | undefined;
819
- webpage?: string | undefined;
820
- }, {
821
- fontfile?: string | undefined;
822
- repo?: string | undefined;
823
- webpage?: string | undefined;
824
- }>;
825
- }, "strip", z.ZodTypeAny, {
826
- id: string;
827
- creator: string[];
828
- ligatures: boolean;
829
- ucsur: boolean;
830
- features: string[];
831
- filename: string;
832
- license: string;
833
- name: string;
834
- style: string;
835
- version: string;
836
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
837
- links: {
838
- fontfile?: string | undefined;
839
- repo?: string | undefined;
840
- webpage?: string | undefined;
841
- };
842
- last_updated?: string | undefined;
843
- }, {
844
- id: string;
845
- creator: string[];
846
- ligatures: boolean;
847
- ucsur: boolean;
848
- features: string[];
849
- filename: string;
850
- license: string;
851
- name: string;
852
- style: string;
853
- version: string;
854
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
855
- links: {
856
- fontfile?: string | undefined;
857
- repo?: string | undefined;
858
- webpage?: string | undefined;
859
- };
860
- last_updated?: string | undefined;
861
- }>>;
862
- readonly font: z.ZodObject<{
863
- id: z.ZodString;
864
- creator: z.ZodArray<z.ZodString, "many">;
865
- features: z.ZodArray<z.ZodString, "many">;
866
- filename: z.ZodString;
867
- last_updated: z.ZodOptional<z.ZodString>;
868
- license: z.ZodString;
869
- ligatures: z.ZodBoolean;
870
- name: z.ZodString;
871
- style: z.ZodString;
872
- ucsur: z.ZodBoolean;
873
- version: z.ZodString;
874
- writing_system: z.ZodEnum<["sitelen pona", "sitelen sitelen", "alphabet", "syllabary", "logography", "tokiponido alphabet", "tokiponido syllabary", "tokiponido logography"]>;
875
- links: z.ZodObject<{
876
- fontfile: z.ZodOptional<z.ZodString>;
877
- repo: z.ZodOptional<z.ZodString>;
878
- webpage: z.ZodOptional<z.ZodString>;
879
- }, "strip", z.ZodTypeAny, {
880
- fontfile?: string | undefined;
881
- repo?: string | undefined;
882
- webpage?: string | undefined;
883
- }, {
884
- fontfile?: string | undefined;
885
- repo?: string | undefined;
886
- webpage?: string | undefined;
887
- }>;
888
- }, "strip", z.ZodTypeAny, {
889
- id: string;
890
- creator: string[];
891
- ligatures: boolean;
892
- ucsur: boolean;
893
- features: string[];
894
- filename: string;
895
- license: string;
896
- name: string;
897
- style: string;
898
- version: string;
899
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
900
- links: {
901
- fontfile?: string | undefined;
902
- repo?: string | undefined;
903
- webpage?: string | undefined;
832
+ sp_etymology: string;
833
+ };
834
+ };
835
+ ku_data?: {
836
+ [x: string]: number;
837
+ } | undefined;
838
+ resources?: {
839
+ sona_pona?: string | undefined;
840
+ lipamanka_semantic?: string | undefined;
841
+ } | undefined;
842
+ representations?: {
843
+ sitelen_emosi?: string | undefined;
844
+ sitelen_jelo?: string[] | undefined;
845
+ ligatures?: string[] | undefined;
846
+ sitelen_sitelen?: string | undefined;
847
+ ucsur?: string | undefined;
848
+ } | undefined;
849
+ pu_verbatim?: {
850
+ en: string;
851
+ fr: string;
852
+ de: string;
853
+ eo: string;
854
+ } | undefined;
855
+ };
856
+ };
857
+ outputFormat: "json";
858
+ status: 200;
859
+ } | {
860
+ input: {
861
+ query: {
862
+ lang?: string | undefined;
863
+ };
864
+ } & {
865
+ param: {
866
+ word: string;
867
+ };
868
+ };
869
+ output: {
870
+ ok: false;
871
+ message: string;
872
+ };
873
+ outputFormat: "json";
874
+ status: 400;
875
+ };
876
+ };
877
+ } & {
878
+ "/luka_pona": {
879
+ $get: {
880
+ input: {};
881
+ output: undefined;
882
+ outputFormat: "redirect";
883
+ status: 302;
884
+ };
885
+ };
886
+ } & {
887
+ "/luka_pona/fingerspelling": {
888
+ $get: {
889
+ input: {
890
+ query: {
891
+ lang?: string | undefined;
892
+ };
893
+ };
894
+ output: {
895
+ [x: string]: {
896
+ id: string;
897
+ is_two_handed: boolean;
898
+ etymology: {
899
+ language: string;
900
+ sign: string;
901
+ }[];
902
+ signwriting: {
903
+ fsw: string;
904
+ swu: string;
905
+ };
906
+ video: {
907
+ gif?: string | undefined;
908
+ mp4?: string | undefined;
909
+ };
910
+ translations: {
911
+ [x: string]: {
912
+ parameters: {
913
+ handshape?: string | undefined;
914
+ movement?: string | undefined;
915
+ placement?: string | undefined;
916
+ orientation?: string | undefined;
904
917
  };
905
- last_updated?: string | undefined;
906
- }, {
907
- id: string;
908
- creator: string[];
909
- ligatures: boolean;
910
- ucsur: boolean;
911
- features: string[];
912
- filename: string;
913
- license: string;
914
- name: string;
915
- style: string;
916
- version: string;
917
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
918
- links: {
919
- fontfile?: string | undefined;
920
- repo?: string | undefined;
921
- webpage?: string | undefined;
918
+ };
919
+ };
920
+ };
921
+ };
922
+ outputFormat: "json";
923
+ status: 200;
924
+ };
925
+ };
926
+ } & {
927
+ "/luka_pona/fingerspelling/:sign": {
928
+ $get: {
929
+ input: {
930
+ query: {
931
+ lang?: string | undefined;
932
+ };
933
+ } & {
934
+ param: {
935
+ sign: string;
936
+ };
937
+ };
938
+ output: {
939
+ ok: true;
940
+ data: {
941
+ id: string;
942
+ is_two_handed: boolean;
943
+ etymology: {
944
+ language: string;
945
+ sign: string;
946
+ }[];
947
+ signwriting: {
948
+ fsw: string;
949
+ swu: string;
950
+ };
951
+ video: {
952
+ gif?: string | undefined;
953
+ mp4?: string | undefined;
954
+ };
955
+ translations: {
956
+ [x: string]: {
957
+ parameters: {
958
+ handshape?: string | undefined;
959
+ movement?: string | undefined;
960
+ placement?: string | undefined;
961
+ orientation?: string | undefined;
922
962
  };
923
- last_updated?: string | undefined;
924
- }>;
925
- readonly languages: z.ZodRecord<z.ZodString, z.ZodObject<{
926
- id: z.ZodString;
927
- locale: z.ZodString;
928
- direction: z.ZodUnion<[z.ZodLiteral<"ltr">, z.ZodLiteral<"rtl">]>;
929
- name: z.ZodObject<{
930
- en: z.ZodString;
931
- tok: z.ZodOptional<z.ZodString>;
932
- endonym: z.ZodOptional<z.ZodString>;
933
- }, "strip", z.ZodTypeAny, {
934
- en: string;
935
- tok?: string | undefined;
936
- endonym?: string | undefined;
937
- }, {
938
- en: string;
939
- tok?: string | undefined;
940
- endonym?: string | undefined;
941
- }>;
942
- }, "strip", z.ZodTypeAny, {
943
- id: string;
944
- name: {
945
- en: string;
946
- tok?: string | undefined;
947
- endonym?: string | undefined;
963
+ };
964
+ };
965
+ };
966
+ };
967
+ outputFormat: "json";
968
+ status: 200;
969
+ } | {
970
+ input: {
971
+ query: {
972
+ lang?: string | undefined;
973
+ };
974
+ } & {
975
+ param: {
976
+ sign: string;
977
+ };
978
+ };
979
+ output: {
980
+ ok: false;
981
+ message: string;
982
+ };
983
+ outputFormat: "json";
984
+ status: 400;
985
+ };
986
+ };
987
+ } & {
988
+ "/luka_pona/signs": {
989
+ $get: {
990
+ input: {
991
+ query: {
992
+ lang?: string | undefined;
993
+ };
994
+ };
995
+ output: {
996
+ [x: string]: {
997
+ definition: string;
998
+ id: string;
999
+ is_two_handed: boolean;
1000
+ new_gloss: string;
1001
+ old_gloss: string;
1002
+ etymology: {
1003
+ language: string;
1004
+ sign?: string | undefined;
1005
+ }[];
1006
+ signwriting: {
1007
+ fsw: string;
1008
+ swu: string;
1009
+ };
1010
+ video: {
1011
+ gif?: string | undefined;
1012
+ mp4?: string | undefined;
1013
+ };
1014
+ translations: {
1015
+ [x: string]: {
1016
+ parameters: {
1017
+ handshape?: string | undefined;
1018
+ movement?: string | undefined;
1019
+ placement?: string | undefined;
1020
+ orientation?: string | undefined;
948
1021
  };
949
- locale: string;
950
- direction: "ltr" | "rtl";
951
- }, {
952
- id: string;
953
- name: {
954
- en: string;
955
- tok?: string | undefined;
956
- endonym?: string | undefined;
1022
+ icons: string;
1023
+ };
1024
+ };
1025
+ };
1026
+ };
1027
+ outputFormat: "json";
1028
+ status: 200;
1029
+ };
1030
+ };
1031
+ } & {
1032
+ "/luka_pona/signs/:sign": {
1033
+ $get: {
1034
+ input: {
1035
+ query: {
1036
+ lang?: string | undefined;
1037
+ };
1038
+ } & {
1039
+ param: {
1040
+ sign: string;
1041
+ };
1042
+ };
1043
+ output: {
1044
+ ok: true;
1045
+ data: {
1046
+ definition: string;
1047
+ id: string;
1048
+ is_two_handed: boolean;
1049
+ new_gloss: string;
1050
+ old_gloss: string;
1051
+ etymology: {
1052
+ language: string;
1053
+ sign?: string | undefined;
1054
+ }[];
1055
+ signwriting: {
1056
+ fsw: string;
1057
+ swu: string;
1058
+ };
1059
+ video: {
1060
+ gif?: string | undefined;
1061
+ mp4?: string | undefined;
1062
+ };
1063
+ translations: {
1064
+ [x: string]: {
1065
+ parameters: {
1066
+ handshape?: string | undefined;
1067
+ movement?: string | undefined;
1068
+ placement?: string | undefined;
1069
+ orientation?: string | undefined;
957
1070
  };
958
- locale: string;
959
- direction: "ltr" | "rtl";
960
- }>>;
961
- };
962
- readonly raw: {
963
- readonly words: {
964
- readonly filename: "words.json";
965
- readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<z.objectUtil.extendShape<{
966
- id: z.ZodString;
967
- author_verbatim: z.ZodString;
968
- author_verbatim_source: z.ZodString;
969
- book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
970
- coined_era: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"pre-pu">, z.ZodLiteral<"post-pu">, z.ZodLiteral<"post-ku">]>, z.ZodLiteral<"">]>;
971
- coined_year: z.ZodString;
972
- creator: z.ZodArray<z.ZodString, "many">;
973
- ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
974
- see_also: z.ZodArray<z.ZodString, "many">;
975
- resources: z.ZodOptional<z.ZodObject<{
976
- sona_pona: z.ZodOptional<z.ZodString>;
977
- lipamanka_semantic: z.ZodOptional<z.ZodString>;
978
- }, "strip", z.ZodTypeAny, {
979
- sona_pona?: string | undefined;
980
- lipamanka_semantic?: string | undefined;
981
- }, {
982
- sona_pona?: string | undefined;
983
- lipamanka_semantic?: string | undefined;
984
- }>>;
985
- representations: z.ZodOptional<z.ZodObject<{
986
- sitelen_emosi: z.ZodOptional<z.ZodString>;
987
- sitelen_jelo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
988
- ligatures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
989
- sitelen_sitelen: z.ZodOptional<z.ZodString>;
990
- ucsur: z.ZodOptional<z.ZodString>;
991
- }, "strip", z.ZodTypeAny, {
992
- sitelen_emosi?: string | undefined;
993
- sitelen_jelo?: string[] | undefined;
994
- ligatures?: string[] | undefined;
995
- sitelen_sitelen?: string | undefined;
996
- ucsur?: string | undefined;
997
- }, {
998
- sitelen_emosi?: string | undefined;
999
- sitelen_jelo?: string[] | undefined;
1000
- ligatures?: string[] | undefined;
1001
- sitelen_sitelen?: string | undefined;
1002
- ucsur?: string | undefined;
1003
- }>>;
1004
- source_language: z.ZodString;
1005
- usage_category: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"obscure">, z.ZodLiteral<"sandbox">]>;
1006
- word: z.ZodString;
1007
- deprecated: z.ZodBoolean;
1008
- etymology: z.ZodArray<z.ZodObject<{
1009
- word: z.ZodOptional<z.ZodString>;
1010
- alt: z.ZodOptional<z.ZodString>;
1011
- }, "strip", z.ZodTypeAny, {
1012
- word?: string | undefined;
1013
- alt?: string | undefined;
1014
- }, {
1015
- word?: string | undefined;
1016
- alt?: string | undefined;
1017
- }>, "many">;
1018
- audio: z.ZodArray<z.ZodObject<{
1019
- author: z.ZodString;
1020
- link: z.ZodString;
1021
- }, "strip", z.ZodTypeAny, {
1022
- author: string;
1023
- link: string;
1024
- }, {
1025
- author: string;
1026
- link: string;
1027
- }>, "many">;
1028
- pu_verbatim: z.ZodOptional<z.ZodObject<{
1029
- en: z.ZodString;
1030
- fr: z.ZodString;
1031
- de: z.ZodString;
1032
- eo: z.ZodString;
1033
- }, "strip", z.ZodTypeAny, {
1034
- en: string;
1035
- fr: string;
1036
- de: string;
1037
- eo: string;
1038
- }, {
1039
- en: string;
1040
- fr: string;
1041
- de: string;
1042
- eo: string;
1043
- }>>;
1044
- usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
1045
- }, {
1046
- translations: z.ZodRecord<z.ZodString, z.ZodObject<{
1047
- commentary: z.ZodString;
1048
- definition: z.ZodString;
1049
- etymology: z.ZodArray<z.ZodObject<{
1050
- definition: z.ZodOptional<z.ZodString>;
1051
- language: z.ZodString;
1052
- }, "strip", z.ZodTypeAny, {
1053
- language: string;
1054
- definition?: string | undefined;
1055
- }, {
1056
- language: string;
1057
- definition?: string | undefined;
1058
- }>, "many">;
1059
- sp_etymology: z.ZodString;
1060
- }, "strip", z.ZodTypeAny, {
1061
- etymology: {
1062
- language: string;
1063
- definition?: string | undefined;
1064
- }[];
1065
- commentary: string;
1066
- definition: string;
1067
- sp_etymology: string;
1068
- }, {
1069
- etymology: {
1070
- language: string;
1071
- definition?: string | undefined;
1072
- }[];
1073
- commentary: string;
1074
- definition: string;
1075
- sp_etymology: string;
1076
- }>>;
1077
- }>, "strip", z.ZodTypeAny, {
1078
- id: string;
1079
- author_verbatim: string;
1080
- author_verbatim_source: string;
1081
- book: "pu" | "ku suli" | "ku lili" | "none";
1082
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
1083
- coined_year: string;
1084
- creator: string[];
1085
- see_also: string[];
1086
- source_language: string;
1087
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1088
- word: string;
1089
- deprecated: boolean;
1090
- etymology: {
1091
- word?: string | undefined;
1092
- alt?: string | undefined;
1093
- }[];
1094
- audio: {
1095
- author: string;
1096
- link: string;
1097
- }[];
1098
- usage: Record<string, number>;
1099
- translations: Record<string, {
1100
- etymology: {
1101
- language: string;
1102
- definition?: string | undefined;
1103
- }[];
1104
- commentary: string;
1105
- definition: string;
1106
- sp_etymology: string;
1107
- }>;
1108
- ku_data?: Record<string, number> | undefined;
1109
- resources?: {
1110
- sona_pona?: string | undefined;
1111
- lipamanka_semantic?: string | undefined;
1112
- } | undefined;
1113
- representations?: {
1114
- sitelen_emosi?: string | undefined;
1115
- sitelen_jelo?: string[] | undefined;
1116
- ligatures?: string[] | undefined;
1117
- sitelen_sitelen?: string | undefined;
1118
- ucsur?: string | undefined;
1119
- } | undefined;
1120
- pu_verbatim?: {
1121
- en: string;
1122
- fr: string;
1123
- de: string;
1124
- eo: string;
1125
- } | undefined;
1126
- }, {
1127
- id: string;
1128
- author_verbatim: string;
1129
- author_verbatim_source: string;
1130
- book: "pu" | "ku suli" | "ku lili" | "none";
1131
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
1132
- coined_year: string;
1133
- creator: string[];
1134
- see_also: string[];
1135
- source_language: string;
1136
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1137
- word: string;
1138
- deprecated: boolean;
1139
- etymology: {
1140
- word?: string | undefined;
1141
- alt?: string | undefined;
1142
- }[];
1143
- audio: {
1144
- author: string;
1145
- link: string;
1146
- }[];
1147
- usage: Record<string, number>;
1148
- translations: Record<string, {
1149
- etymology: {
1150
- language: string;
1151
- definition?: string | undefined;
1152
- }[];
1153
- commentary: string;
1154
- definition: string;
1155
- sp_etymology: string;
1156
- }>;
1157
- ku_data?: Record<string, number> | undefined;
1158
- resources?: {
1159
- sona_pona?: string | undefined;
1160
- lipamanka_semantic?: string | undefined;
1161
- } | undefined;
1162
- representations?: {
1163
- sitelen_emosi?: string | undefined;
1164
- sitelen_jelo?: string[] | undefined;
1165
- ligatures?: string[] | undefined;
1166
- sitelen_sitelen?: string | undefined;
1167
- ucsur?: string | undefined;
1168
- } | undefined;
1169
- pu_verbatim?: {
1170
- en: string;
1171
- fr: string;
1172
- de: string;
1173
- eo: string;
1174
- } | undefined;
1175
- }>>;
1071
+ icons: string;
1072
+ };
1176
1073
  };
1177
- readonly sandbox: {
1178
- readonly filename: "sandbox.json";
1179
- readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<z.objectUtil.extendShape<{
1180
- id: z.ZodString;
1181
- author_verbatim: z.ZodString;
1182
- author_verbatim_source: z.ZodString;
1183
- book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
1184
- coined_era: z.ZodUnion<[z.ZodUnion<[z.ZodLiteral<"pre-pu">, z.ZodLiteral<"post-pu">, z.ZodLiteral<"post-ku">]>, z.ZodLiteral<"">]>;
1185
- coined_year: z.ZodString;
1186
- creator: z.ZodArray<z.ZodString, "many">;
1187
- ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
1188
- see_also: z.ZodArray<z.ZodString, "many">;
1189
- resources: z.ZodOptional<z.ZodObject<{
1190
- sona_pona: z.ZodOptional<z.ZodString>;
1191
- lipamanka_semantic: z.ZodOptional<z.ZodString>;
1192
- }, "strip", z.ZodTypeAny, {
1193
- sona_pona?: string | undefined;
1194
- lipamanka_semantic?: string | undefined;
1195
- }, {
1196
- sona_pona?: string | undefined;
1197
- lipamanka_semantic?: string | undefined;
1198
- }>>;
1199
- representations: z.ZodOptional<z.ZodObject<{
1200
- sitelen_emosi: z.ZodOptional<z.ZodString>;
1201
- sitelen_jelo: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1202
- ligatures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1203
- sitelen_sitelen: z.ZodOptional<z.ZodString>;
1204
- ucsur: z.ZodOptional<z.ZodString>;
1205
- }, "strip", z.ZodTypeAny, {
1206
- sitelen_emosi?: string | undefined;
1207
- sitelen_jelo?: string[] | undefined;
1208
- ligatures?: string[] | undefined;
1209
- sitelen_sitelen?: string | undefined;
1210
- ucsur?: string | undefined;
1211
- }, {
1212
- sitelen_emosi?: string | undefined;
1213
- sitelen_jelo?: string[] | undefined;
1214
- ligatures?: string[] | undefined;
1215
- sitelen_sitelen?: string | undefined;
1216
- ucsur?: string | undefined;
1217
- }>>;
1218
- source_language: z.ZodString;
1219
- usage_category: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"obscure">, z.ZodLiteral<"sandbox">]>;
1220
- word: z.ZodString;
1221
- deprecated: z.ZodBoolean;
1222
- etymology: z.ZodArray<z.ZodObject<{
1223
- word: z.ZodOptional<z.ZodString>;
1224
- alt: z.ZodOptional<z.ZodString>;
1225
- }, "strip", z.ZodTypeAny, {
1226
- word?: string | undefined;
1227
- alt?: string | undefined;
1228
- }, {
1229
- word?: string | undefined;
1230
- alt?: string | undefined;
1231
- }>, "many">;
1232
- audio: z.ZodArray<z.ZodObject<{
1233
- author: z.ZodString;
1234
- link: z.ZodString;
1235
- }, "strip", z.ZodTypeAny, {
1236
- author: string;
1237
- link: string;
1238
- }, {
1239
- author: string;
1240
- link: string;
1241
- }>, "many">;
1242
- pu_verbatim: z.ZodOptional<z.ZodObject<{
1243
- en: z.ZodString;
1244
- fr: z.ZodString;
1245
- de: z.ZodString;
1246
- eo: z.ZodString;
1247
- }, "strip", z.ZodTypeAny, {
1248
- en: string;
1249
- fr: string;
1250
- de: string;
1251
- eo: string;
1252
- }, {
1253
- en: string;
1254
- fr: string;
1255
- de: string;
1256
- eo: string;
1257
- }>>;
1258
- usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
1259
- }, {
1260
- translations: z.ZodRecord<z.ZodString, z.ZodObject<{
1261
- commentary: z.ZodString;
1262
- definition: z.ZodString;
1263
- etymology: z.ZodArray<z.ZodObject<{
1264
- definition: z.ZodOptional<z.ZodString>;
1265
- language: z.ZodString;
1266
- }, "strip", z.ZodTypeAny, {
1267
- language: string;
1268
- definition?: string | undefined;
1269
- }, {
1270
- language: string;
1271
- definition?: string | undefined;
1272
- }>, "many">;
1273
- sp_etymology: z.ZodString;
1274
- }, "strip", z.ZodTypeAny, {
1275
- etymology: {
1276
- language: string;
1277
- definition?: string | undefined;
1278
- }[];
1279
- commentary: string;
1280
- definition: string;
1281
- sp_etymology: string;
1282
- }, {
1283
- etymology: {
1284
- language: string;
1285
- definition?: string | undefined;
1286
- }[];
1287
- commentary: string;
1288
- definition: string;
1289
- sp_etymology: string;
1290
- }>>;
1291
- }>, "strip", z.ZodTypeAny, {
1292
- id: string;
1293
- author_verbatim: string;
1294
- author_verbatim_source: string;
1295
- book: "pu" | "ku suli" | "ku lili" | "none";
1296
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
1297
- coined_year: string;
1298
- creator: string[];
1299
- see_also: string[];
1300
- source_language: string;
1301
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1302
- word: string;
1303
- deprecated: boolean;
1304
- etymology: {
1305
- word?: string | undefined;
1306
- alt?: string | undefined;
1307
- }[];
1308
- audio: {
1309
- author: string;
1310
- link: string;
1311
- }[];
1312
- usage: Record<string, number>;
1313
- translations: Record<string, {
1314
- etymology: {
1315
- language: string;
1316
- definition?: string | undefined;
1317
- }[];
1318
- commentary: string;
1319
- definition: string;
1320
- sp_etymology: string;
1321
- }>;
1322
- ku_data?: Record<string, number> | undefined;
1323
- resources?: {
1324
- sona_pona?: string | undefined;
1325
- lipamanka_semantic?: string | undefined;
1326
- } | undefined;
1327
- representations?: {
1328
- sitelen_emosi?: string | undefined;
1329
- sitelen_jelo?: string[] | undefined;
1330
- ligatures?: string[] | undefined;
1331
- sitelen_sitelen?: string | undefined;
1332
- ucsur?: string | undefined;
1333
- } | undefined;
1334
- pu_verbatim?: {
1335
- en: string;
1336
- fr: string;
1337
- de: string;
1338
- eo: string;
1339
- } | undefined;
1340
- }, {
1341
- id: string;
1342
- author_verbatim: string;
1343
- author_verbatim_source: string;
1344
- book: "pu" | "ku suli" | "ku lili" | "none";
1345
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
1346
- coined_year: string;
1347
- creator: string[];
1348
- see_also: string[];
1349
- source_language: string;
1350
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1351
- word: string;
1352
- deprecated: boolean;
1353
- etymology: {
1354
- word?: string | undefined;
1355
- alt?: string | undefined;
1356
- }[];
1357
- audio: {
1358
- author: string;
1359
- link: string;
1360
- }[];
1361
- usage: Record<string, number>;
1362
- translations: Record<string, {
1363
- etymology: {
1364
- language: string;
1365
- definition?: string | undefined;
1366
- }[];
1367
- commentary: string;
1368
- definition: string;
1369
- sp_etymology: string;
1370
- }>;
1371
- ku_data?: Record<string, number> | undefined;
1372
- resources?: {
1373
- sona_pona?: string | undefined;
1374
- lipamanka_semantic?: string | undefined;
1375
- } | undefined;
1376
- representations?: {
1377
- sitelen_emosi?: string | undefined;
1378
- sitelen_jelo?: string[] | undefined;
1379
- ligatures?: string[] | undefined;
1380
- sitelen_sitelen?: string | undefined;
1381
- ucsur?: string | undefined;
1382
- } | undefined;
1383
- pu_verbatim?: {
1384
- en: string;
1385
- fr: string;
1386
- de: string;
1387
- eo: string;
1388
- } | undefined;
1389
- }>>;
1074
+ };
1075
+ };
1076
+ outputFormat: "json";
1077
+ status: 200;
1078
+ } | {
1079
+ input: {
1080
+ query: {
1081
+ lang?: string | undefined;
1082
+ };
1083
+ } & {
1084
+ param: {
1085
+ sign: string;
1086
+ };
1087
+ };
1088
+ output: {
1089
+ ok: false;
1090
+ message: string;
1091
+ };
1092
+ outputFormat: "json";
1093
+ status: 400;
1094
+ };
1095
+ };
1096
+ } & {
1097
+ "/fonts": {
1098
+ $get: {
1099
+ input: {};
1100
+ output: {
1101
+ [x: string]: {
1102
+ id: string;
1103
+ creator: string[];
1104
+ features: string[];
1105
+ filename: string;
1106
+ license: string;
1107
+ ligatures: boolean;
1108
+ name: string;
1109
+ style: string;
1110
+ ucsur: boolean;
1111
+ version: string;
1112
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
1113
+ links: {
1114
+ fontfile?: string | undefined;
1115
+ repo?: string | undefined;
1116
+ webpage?: string | undefined;
1390
1117
  };
1391
- readonly fingerspelling: {
1392
- readonly filename: "fingerspelling.json";
1393
- readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<z.objectUtil.extendShape<{
1394
- id: z.ZodString;
1395
- is_two_handed: z.ZodBoolean;
1396
- etymology: z.ZodArray<z.ZodObject<{
1397
- language: z.ZodString;
1398
- sign: z.ZodString;
1399
- }, "strip", z.ZodTypeAny, {
1400
- language: string;
1401
- sign: string;
1402
- }, {
1403
- language: string;
1404
- sign: string;
1405
- }>, "many">;
1406
- signwriting: z.ZodObject<{
1407
- fsw: z.ZodString;
1408
- swu: z.ZodString;
1409
- }, "strip", z.ZodTypeAny, {
1410
- fsw: string;
1411
- swu: string;
1412
- }, {
1413
- fsw: string;
1414
- swu: string;
1415
- }>;
1416
- video: z.ZodObject<{
1417
- gif: z.ZodOptional<z.ZodString>;
1418
- mp4: z.ZodOptional<z.ZodString>;
1419
- }, "strip", z.ZodTypeAny, {
1420
- gif?: string | undefined;
1421
- mp4?: string | undefined;
1422
- }, {
1423
- gif?: string | undefined;
1424
- mp4?: string | undefined;
1425
- }>;
1426
- }, {
1427
- translations: z.ZodRecord<z.ZodString, z.ZodObject<{
1428
- parameters: z.ZodObject<{
1429
- handshape: z.ZodOptional<z.ZodString>;
1430
- movement: z.ZodOptional<z.ZodString>;
1431
- placement: z.ZodOptional<z.ZodString>;
1432
- orientation: z.ZodOptional<z.ZodString>;
1433
- }, "strip", z.ZodTypeAny, {
1434
- handshape?: string | undefined;
1435
- movement?: string | undefined;
1436
- placement?: string | undefined;
1437
- orientation?: string | undefined;
1438
- }, {
1439
- handshape?: string | undefined;
1440
- movement?: string | undefined;
1441
- placement?: string | undefined;
1442
- orientation?: string | undefined;
1443
- }>;
1444
- }, "strip", z.ZodTypeAny, {
1445
- parameters: {
1446
- handshape?: string | undefined;
1447
- movement?: string | undefined;
1448
- placement?: string | undefined;
1449
- orientation?: string | undefined;
1450
- };
1451
- }, {
1452
- parameters: {
1453
- handshape?: string | undefined;
1454
- movement?: string | undefined;
1455
- placement?: string | undefined;
1456
- orientation?: string | undefined;
1457
- };
1458
- }>>;
1459
- }>, "strip", z.ZodTypeAny, {
1460
- id: string;
1461
- etymology: {
1462
- language: string;
1463
- sign: string;
1464
- }[];
1465
- translations: Record<string, {
1466
- parameters: {
1467
- handshape?: string | undefined;
1468
- movement?: string | undefined;
1469
- placement?: string | undefined;
1470
- orientation?: string | undefined;
1471
- };
1472
- }>;
1473
- is_two_handed: boolean;
1474
- signwriting: {
1475
- fsw: string;
1476
- swu: string;
1477
- };
1478
- video: {
1479
- gif?: string | undefined;
1480
- mp4?: string | undefined;
1481
- };
1482
- }, {
1483
- id: string;
1484
- etymology: {
1485
- language: string;
1486
- sign: string;
1487
- }[];
1488
- translations: Record<string, {
1489
- parameters: {
1490
- handshape?: string | undefined;
1491
- movement?: string | undefined;
1492
- placement?: string | undefined;
1493
- orientation?: string | undefined;
1494
- };
1495
- }>;
1496
- is_two_handed: boolean;
1497
- signwriting: {
1498
- fsw: string;
1499
- swu: string;
1500
- };
1501
- video: {
1502
- gif?: string | undefined;
1503
- mp4?: string | undefined;
1504
- };
1505
- }>>;
1118
+ last_updated?: string | undefined;
1119
+ };
1120
+ };
1121
+ outputFormat: "json";
1122
+ status: 200;
1123
+ };
1124
+ };
1125
+ } & {
1126
+ "/fonts/:font": {
1127
+ $get: {
1128
+ input: {
1129
+ param: {
1130
+ font: string;
1131
+ };
1132
+ };
1133
+ output: {
1134
+ ok: true;
1135
+ data: {
1136
+ id: string;
1137
+ creator: string[];
1138
+ features: string[];
1139
+ filename: string;
1140
+ license: string;
1141
+ ligatures: boolean;
1142
+ name: string;
1143
+ style: string;
1144
+ ucsur: boolean;
1145
+ version: string;
1146
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
1147
+ links: {
1148
+ fontfile?: string | undefined;
1149
+ repo?: string | undefined;
1150
+ webpage?: string | undefined;
1506
1151
  };
1507
- readonly signs: {
1508
- readonly filename: "signs.json";
1509
- readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<z.objectUtil.extendShape<{
1510
- definition: z.ZodString;
1511
- id: z.ZodString;
1512
- is_two_handed: z.ZodBoolean;
1513
- new_gloss: z.ZodString;
1514
- old_gloss: z.ZodString;
1515
- etymology: z.ZodArray<z.ZodObject<{
1516
- language: z.ZodString;
1517
- sign: z.ZodOptional<z.ZodString>;
1518
- }, "strip", z.ZodTypeAny, {
1519
- language: string;
1520
- sign?: string | undefined;
1521
- }, {
1522
- language: string;
1523
- sign?: string | undefined;
1524
- }>, "many">;
1525
- signwriting: z.ZodObject<{
1526
- fsw: z.ZodString;
1527
- swu: z.ZodString;
1528
- }, "strip", z.ZodTypeAny, {
1529
- fsw: string;
1530
- swu: string;
1531
- }, {
1532
- fsw: string;
1533
- swu: string;
1534
- }>;
1535
- video: z.ZodObject<{
1536
- gif: z.ZodOptional<z.ZodString>;
1537
- mp4: z.ZodOptional<z.ZodString>;
1538
- }, "strip", z.ZodTypeAny, {
1539
- gif?: string | undefined;
1540
- mp4?: string | undefined;
1541
- }, {
1542
- gif?: string | undefined;
1543
- mp4?: string | undefined;
1544
- }>;
1545
- }, {
1546
- translations: z.ZodRecord<z.ZodString, z.ZodObject<{
1547
- parameters: z.ZodObject<{
1548
- handshape: z.ZodOptional<z.ZodString>;
1549
- movement: z.ZodOptional<z.ZodString>;
1550
- placement: z.ZodOptional<z.ZodString>;
1551
- orientation: z.ZodOptional<z.ZodString>;
1552
- }, "strip", z.ZodTypeAny, {
1553
- handshape?: string | undefined;
1554
- movement?: string | undefined;
1555
- placement?: string | undefined;
1556
- orientation?: string | undefined;
1557
- }, {
1558
- handshape?: string | undefined;
1559
- movement?: string | undefined;
1560
- placement?: string | undefined;
1561
- orientation?: string | undefined;
1562
- }>;
1563
- icons: z.ZodString;
1564
- }, "strip", z.ZodTypeAny, {
1565
- parameters: {
1566
- handshape?: string | undefined;
1567
- movement?: string | undefined;
1568
- placement?: string | undefined;
1569
- orientation?: string | undefined;
1570
- };
1571
- icons: string;
1572
- }, {
1573
- parameters: {
1574
- handshape?: string | undefined;
1575
- movement?: string | undefined;
1576
- placement?: string | undefined;
1577
- orientation?: string | undefined;
1578
- };
1579
- icons: string;
1580
- }>>;
1581
- }>, "strip", z.ZodTypeAny, {
1582
- id: string;
1583
- etymology: {
1584
- language: string;
1585
- sign?: string | undefined;
1586
- }[];
1587
- translations: Record<string, {
1588
- parameters: {
1589
- handshape?: string | undefined;
1590
- movement?: string | undefined;
1591
- placement?: string | undefined;
1592
- orientation?: string | undefined;
1593
- };
1594
- icons: string;
1595
- }>;
1596
- definition: string;
1597
- is_two_handed: boolean;
1598
- new_gloss: string;
1599
- old_gloss: string;
1600
- signwriting: {
1601
- fsw: string;
1602
- swu: string;
1603
- };
1604
- video: {
1605
- gif?: string | undefined;
1606
- mp4?: string | undefined;
1607
- };
1608
- }, {
1609
- id: string;
1610
- etymology: {
1611
- language: string;
1612
- sign?: string | undefined;
1613
- }[];
1614
- translations: Record<string, {
1615
- parameters: {
1616
- handshape?: string | undefined;
1617
- movement?: string | undefined;
1618
- placement?: string | undefined;
1619
- orientation?: string | undefined;
1620
- };
1621
- icons: string;
1622
- }>;
1623
- definition: string;
1624
- is_two_handed: boolean;
1625
- new_gloss: string;
1626
- old_gloss: string;
1627
- signwriting: {
1628
- fsw: string;
1629
- swu: string;
1630
- };
1631
- video: {
1632
- gif?: string | undefined;
1633
- mp4?: string | undefined;
1634
- };
1635
- }>>;
1152
+ last_updated?: string | undefined;
1153
+ };
1154
+ };
1155
+ outputFormat: "json";
1156
+ status: 200;
1157
+ } | {
1158
+ input: {
1159
+ param: {
1160
+ font: string;
1161
+ };
1162
+ };
1163
+ output: {
1164
+ ok: false;
1165
+ message: string;
1166
+ };
1167
+ outputFormat: "json";
1168
+ status: 400;
1169
+ };
1170
+ };
1171
+ } & {
1172
+ "/languages": {
1173
+ $get: {
1174
+ input: {};
1175
+ output: {
1176
+ [x: string]: {
1177
+ id: string;
1178
+ locale: string;
1179
+ direction: "ltr" | "rtl";
1180
+ name: {
1181
+ en: string;
1182
+ tok?: string | undefined;
1183
+ endonym?: string | undefined;
1184
+ };
1185
+ };
1186
+ };
1187
+ outputFormat: "json";
1188
+ status: 200;
1189
+ };
1190
+ };
1191
+ } & {
1192
+ "/languages/:language": {
1193
+ $get: {
1194
+ input: {
1195
+ param: {
1196
+ language: string;
1197
+ };
1198
+ };
1199
+ output: {
1200
+ ok: true;
1201
+ data: {
1202
+ id: string;
1203
+ locale: string;
1204
+ direction: "ltr" | "rtl";
1205
+ name: {
1206
+ en: string;
1207
+ tok?: string | undefined;
1208
+ endonym?: string | undefined;
1209
+ };
1210
+ };
1211
+ };
1212
+ outputFormat: "json";
1213
+ status: 200;
1214
+ } | {
1215
+ input: {
1216
+ param: {
1217
+ language: string;
1218
+ };
1219
+ };
1220
+ output: {
1221
+ ok: false;
1222
+ message: string;
1223
+ };
1224
+ outputFormat: "json";
1225
+ status: 400;
1226
+ };
1227
+ };
1228
+ }, "/">;
1229
+ readonly v2: hono_hono_base0.HonoBase<hono_types0.BlankEnv, {
1230
+ "/": {
1231
+ $get: {
1232
+ input: {};
1233
+ output: undefined;
1234
+ outputFormat: "redirect";
1235
+ status: 302;
1236
+ };
1237
+ };
1238
+ } & {
1239
+ "/words": {
1240
+ $get: {
1241
+ input: {};
1242
+ output: {
1243
+ [x: string]: {
1244
+ id: string;
1245
+ word: string;
1246
+ book: "pu" | "ku suli" | "ku lili" | "none";
1247
+ coined_era: "pre-pu" | "post-pu" | "post-ku";
1248
+ creation_date: string;
1249
+ author: string[];
1250
+ see_also: string[];
1251
+ resources: {
1252
+ sona_pona?: string | undefined;
1253
+ lipamanka_semantic?: string | undefined;
1636
1254
  };
1637
- readonly fonts: {
1638
- readonly filename: "fonts.json";
1639
- readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
1640
- id: z.ZodString;
1641
- creator: z.ZodArray<z.ZodString, "many">;
1642
- features: z.ZodArray<z.ZodString, "many">;
1643
- filename: z.ZodString;
1644
- last_updated: z.ZodOptional<z.ZodString>;
1645
- license: z.ZodString;
1646
- ligatures: z.ZodBoolean;
1647
- name: z.ZodString;
1648
- style: z.ZodString;
1649
- ucsur: z.ZodBoolean;
1650
- version: z.ZodString;
1651
- writing_system: z.ZodEnum<["sitelen pona", "sitelen sitelen", "alphabet", "syllabary", "logography", "tokiponido alphabet", "tokiponido syllabary", "tokiponido logography"]>;
1652
- links: z.ZodObject<{
1653
- fontfile: z.ZodOptional<z.ZodString>;
1654
- repo: z.ZodOptional<z.ZodString>;
1655
- webpage: z.ZodOptional<z.ZodString>;
1656
- }, "strip", z.ZodTypeAny, {
1657
- fontfile?: string | undefined;
1658
- repo?: string | undefined;
1659
- webpage?: string | undefined;
1660
- }, {
1661
- fontfile?: string | undefined;
1662
- repo?: string | undefined;
1663
- webpage?: string | undefined;
1664
- }>;
1665
- }, "strip", z.ZodTypeAny, {
1666
- id: string;
1667
- creator: string[];
1668
- ligatures: boolean;
1669
- ucsur: boolean;
1670
- features: string[];
1671
- filename: string;
1672
- license: string;
1673
- name: string;
1674
- style: string;
1675
- version: string;
1676
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
1677
- links: {
1678
- fontfile?: string | undefined;
1679
- repo?: string | undefined;
1680
- webpage?: string | undefined;
1681
- };
1682
- last_updated?: string | undefined;
1683
- }, {
1684
- id: string;
1685
- creator: string[];
1686
- ligatures: boolean;
1687
- ucsur: boolean;
1688
- features: string[];
1689
- filename: string;
1690
- license: string;
1691
- name: string;
1692
- style: string;
1693
- version: string;
1694
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
1695
- links: {
1696
- fontfile?: string | undefined;
1697
- repo?: string | undefined;
1698
- webpage?: string | undefined;
1699
- };
1700
- last_updated?: string | undefined;
1701
- }>>;
1255
+ representations: {
1256
+ sitelen_emosi?: string | undefined;
1257
+ sitelen_jelo?: string[] | undefined;
1258
+ ligatures?: string[] | undefined;
1259
+ sitelen_sitelen?: string | undefined;
1260
+ ucsur?: string | undefined;
1702
1261
  };
1703
- readonly languages: {
1704
- readonly filename: "languages.json";
1705
- readonly schema: z.ZodRecord<z.ZodString, z.ZodObject<{
1706
- id: z.ZodString;
1707
- locale: z.ZodString;
1708
- direction: z.ZodUnion<[z.ZodLiteral<"ltr">, z.ZodLiteral<"rtl">]>;
1709
- name: z.ZodObject<{
1710
- en: z.ZodString;
1711
- tok: z.ZodOptional<z.ZodString>;
1712
- endonym: z.ZodOptional<z.ZodString>;
1713
- }, "strip", z.ZodTypeAny, {
1714
- en: string;
1715
- tok?: string | undefined;
1716
- endonym?: string | undefined;
1717
- }, {
1718
- en: string;
1719
- tok?: string | undefined;
1720
- endonym?: string | undefined;
1721
- }>;
1722
- }, "strip", z.ZodTypeAny, {
1723
- id: string;
1724
- name: {
1725
- en: string;
1726
- tok?: string | undefined;
1727
- endonym?: string | undefined;
1728
- };
1729
- locale: string;
1730
- direction: "ltr" | "rtl";
1731
- }, {
1732
- id: string;
1733
- name: {
1734
- en: string;
1735
- tok?: string | undefined;
1736
- endonym?: string | undefined;
1737
- };
1738
- locale: string;
1739
- direction: "ltr" | "rtl";
1740
- }>>;
1262
+ source_language: string;
1263
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1264
+ deprecated: boolean;
1265
+ audio: {
1266
+ author: string;
1267
+ link: string;
1268
+ }[];
1269
+ usage: {
1270
+ [x: string]: number;
1741
1271
  };
1272
+ glyph_ids: string[];
1273
+ translations: {
1274
+ commentary: string;
1275
+ etymology: string;
1276
+ definition: string;
1277
+ };
1278
+ author_verbatim?: string | undefined;
1279
+ author_source?: string | undefined;
1280
+ ku_data?: {
1281
+ [x: string]: number;
1282
+ } | undefined;
1283
+ parent_id?: string | undefined;
1284
+ pu_verbatim?: {
1285
+ en: string;
1286
+ fr: string;
1287
+ de: string;
1288
+ eo: string;
1289
+ } | undefined;
1290
+ primary_glyph_id?: string | undefined;
1291
+ image?: string | undefined;
1292
+ svg?: string | undefined;
1293
+ };
1742
1294
  };
1295
+ outputFormat: "json";
1296
+ status: 200;
1297
+ };
1743
1298
  };
1744
- };
1745
- export type FilesToVariables<V extends ApiVersion, T extends Versions[ApiVersion]["raw"] = (typeof versions)[V]["raw"]> = {
1746
- [K in keyof T]: T[K]["schema"] extends z.ZodType ? T[K]["schema"]["_output"] : never;
1747
- };
1748
- export declare const apps: {
1749
- readonly v1: Hono<{}, {
1750
- "/": {
1751
- $get: {
1752
- input: {};
1753
- output: {};
1754
- outputFormat: string;
1755
- status: import('hono/utils/http-status').StatusCode;
1299
+ } & {
1300
+ "/words/:word": {
1301
+ $get: {
1302
+ input: {
1303
+ param: {
1304
+ word: string;
1305
+ };
1306
+ };
1307
+ output: {
1308
+ success: true;
1309
+ data: {
1310
+ id: string;
1311
+ word: string;
1312
+ book: "pu" | "ku suli" | "ku lili" | "none";
1313
+ coined_era: "pre-pu" | "post-pu" | "post-ku";
1314
+ creation_date: string;
1315
+ author: string[];
1316
+ see_also: string[];
1317
+ resources: {
1318
+ sona_pona?: string | undefined;
1319
+ lipamanka_semantic?: string | undefined;
1756
1320
  };
1321
+ representations: {
1322
+ sitelen_emosi?: string | undefined;
1323
+ sitelen_jelo?: string[] | undefined;
1324
+ ligatures?: string[] | undefined;
1325
+ sitelen_sitelen?: string | undefined;
1326
+ ucsur?: string | undefined;
1327
+ };
1328
+ source_language: string;
1329
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1330
+ deprecated: boolean;
1331
+ audio: {
1332
+ author: string;
1333
+ link: string;
1334
+ }[];
1335
+ usage: {
1336
+ [x: string]: number;
1337
+ };
1338
+ glyph_ids: string[];
1339
+ translations: {
1340
+ commentary: string;
1341
+ etymology: string;
1342
+ definition: string;
1343
+ };
1344
+ author_verbatim?: string | undefined;
1345
+ author_source?: string | undefined;
1346
+ ku_data?: {
1347
+ [x: string]: number;
1348
+ } | undefined;
1349
+ parent_id?: string | undefined;
1350
+ pu_verbatim?: {
1351
+ en: string;
1352
+ fr: string;
1353
+ de: string;
1354
+ eo: string;
1355
+ } | undefined;
1356
+ primary_glyph_id?: string | undefined;
1357
+ image?: string | undefined;
1358
+ svg?: string | undefined;
1359
+ };
1757
1360
  };
1758
- } & {
1759
- "/words": {
1760
- $get: {
1761
- input: {
1762
- query: {
1763
- lang?: string | string[] | undefined;
1764
- };
1765
- };
1766
- output: {
1767
- [x: string]: {
1768
- id: string;
1769
- author_verbatim: string;
1770
- author_verbatim_source: string;
1771
- book: "pu" | "ku suli" | "ku lili" | "none";
1772
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
1773
- coined_year: string;
1774
- creator: string[];
1775
- see_also: string[];
1776
- source_language: string;
1777
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1778
- word: string;
1779
- deprecated: boolean;
1780
- etymology: {
1781
- word?: string | undefined;
1782
- alt?: string | undefined;
1783
- }[];
1784
- audio: {
1785
- author: string;
1786
- link: string;
1787
- }[];
1788
- usage: {
1789
- [x: string]: number;
1790
- };
1791
- translations: {
1792
- [x: string]: {
1793
- etymology: {
1794
- language: string;
1795
- definition?: string | undefined;
1796
- }[];
1797
- commentary: string;
1798
- definition: string;
1799
- sp_etymology: string;
1800
- };
1801
- };
1802
- ku_data?: {
1803
- [x: string]: number;
1804
- } | undefined;
1805
- resources?: {
1806
- sona_pona?: string | undefined;
1807
- lipamanka_semantic?: string | undefined;
1808
- } | undefined;
1809
- representations?: {
1810
- sitelen_emosi?: string | undefined;
1811
- sitelen_jelo?: string[] | undefined;
1812
- ligatures?: string[] | undefined;
1813
- sitelen_sitelen?: string | undefined;
1814
- ucsur?: string | undefined;
1815
- } | undefined;
1816
- pu_verbatim?: {
1817
- en: string;
1818
- fr: string;
1819
- de: string;
1820
- eo: string;
1821
- } | undefined;
1822
- };
1823
- };
1824
- outputFormat: "json";
1825
- 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;
1361
+ outputFormat: "json";
1362
+ status: 200;
1363
+ } | {
1364
+ input: {
1365
+ param: {
1366
+ word: string;
1367
+ };
1368
+ };
1369
+ output: {
1370
+ success: false;
1371
+ message: string;
1372
+ };
1373
+ outputFormat: "json";
1374
+ status: 400;
1375
+ };
1376
+ };
1377
+ } & {
1378
+ "/glyphs": {
1379
+ $get: {
1380
+ input: {};
1381
+ output: {
1382
+ [x: string]: {
1383
+ id: string;
1384
+ word: string;
1385
+ word_id: string;
1386
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1387
+ author: string[];
1388
+ creation_date: string;
1389
+ see_also: string[];
1390
+ primary: boolean;
1391
+ deprecated: boolean;
1392
+ usage: {
1393
+ [x: string]: number;
1826
1394
  };
1395
+ translations: {
1396
+ commentary: string;
1397
+ etymology: string;
1398
+ names: string[];
1399
+ };
1400
+ author_source?: string | undefined;
1401
+ parent_id?: string | undefined;
1402
+ image?: string | undefined;
1403
+ svg?: string | undefined;
1404
+ ligature?: string | undefined;
1405
+ alias_ligatures?: string[] | undefined;
1406
+ ucsur?: string | undefined;
1407
+ };
1827
1408
  };
1828
- } & {
1829
- "/words/:word": {
1830
- $get: {
1831
- input: {
1832
- query: {
1833
- lang?: string | string[] | undefined;
1834
- };
1835
- } & {
1836
- param: {
1837
- word: string | undefined;
1838
- };
1839
- };
1840
- output: {
1841
- ok: true;
1842
- data: {
1843
- id: string;
1844
- author_verbatim: string;
1845
- author_verbatim_source: string;
1846
- book: "pu" | "ku suli" | "ku lili" | "none";
1847
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
1848
- coined_year: string;
1849
- creator: string[];
1850
- see_also: string[];
1851
- source_language: string;
1852
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1853
- word: string;
1854
- deprecated: boolean;
1855
- etymology: {
1856
- word?: string | undefined;
1857
- alt?: string | undefined;
1858
- }[];
1859
- audio: {
1860
- author: string;
1861
- link: string;
1862
- }[];
1863
- usage: {
1864
- [x: string]: number;
1865
- };
1866
- translations: {
1867
- [x: string]: {
1868
- etymology: {
1869
- language: string;
1870
- definition?: string | undefined;
1871
- }[];
1872
- commentary: string;
1873
- definition: string;
1874
- sp_etymology: string;
1875
- };
1876
- };
1877
- ku_data?: {
1878
- [x: string]: number;
1879
- } | undefined;
1880
- resources?: {
1881
- sona_pona?: string | undefined;
1882
- lipamanka_semantic?: string | undefined;
1883
- } | undefined;
1884
- representations?: {
1885
- sitelen_emosi?: string | undefined;
1886
- sitelen_jelo?: string[] | undefined;
1887
- ligatures?: string[] | undefined;
1888
- sitelen_sitelen?: string | undefined;
1889
- ucsur?: string | undefined;
1890
- } | undefined;
1891
- pu_verbatim?: {
1892
- en: string;
1893
- fr: string;
1894
- de: string;
1895
- eo: string;
1896
- } | undefined;
1897
- };
1898
- };
1899
- outputFormat: "json";
1900
- 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;
1901
- } | {
1902
- input: {
1903
- query: {
1904
- lang?: string | string[] | undefined;
1905
- };
1906
- } & {
1907
- param: {
1908
- word: string | undefined;
1909
- };
1910
- };
1911
- output: {
1912
- ok: false;
1913
- message: string;
1914
- };
1915
- outputFormat: "json";
1916
- status: 400;
1409
+ outputFormat: "json";
1410
+ status: 200;
1411
+ };
1412
+ };
1413
+ } & {
1414
+ "/glyphs/:glyph": {
1415
+ $get: {
1416
+ input: {
1417
+ param: {
1418
+ glyph: string;
1419
+ };
1420
+ };
1421
+ output: {
1422
+ success: true;
1423
+ data: {
1424
+ id: string;
1425
+ word: string;
1426
+ word_id: string;
1427
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1428
+ author: string[];
1429
+ creation_date: string;
1430
+ see_also: string[];
1431
+ primary: boolean;
1432
+ deprecated: boolean;
1433
+ usage: {
1434
+ [x: string]: number;
1435
+ };
1436
+ translations: {
1437
+ commentary: string;
1438
+ etymology: string;
1439
+ names: string[];
1917
1440
  };
1441
+ author_source?: string | undefined;
1442
+ parent_id?: string | undefined;
1443
+ image?: string | undefined;
1444
+ svg?: string | undefined;
1445
+ ligature?: string | undefined;
1446
+ alias_ligatures?: string[] | undefined;
1447
+ ucsur?: string | undefined;
1448
+ };
1918
1449
  };
1919
- } & {
1920
- "/sandbox": {
1921
- $get: {
1922
- input: {
1923
- query: {
1924
- lang?: string | string[] | undefined;
1925
- };
1926
- };
1927
- output: {
1928
- [x: string]: {
1929
- id: string;
1930
- author_verbatim: string;
1931
- author_verbatim_source: string;
1932
- book: "pu" | "ku suli" | "ku lili" | "none";
1933
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
1934
- coined_year: string;
1935
- creator: string[];
1936
- see_also: string[];
1937
- source_language: string;
1938
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1939
- word: string;
1940
- deprecated: boolean;
1941
- etymology: {
1942
- word?: string | undefined;
1943
- alt?: string | undefined;
1944
- }[];
1945
- audio: {
1946
- author: string;
1947
- link: string;
1948
- }[];
1949
- usage: {
1950
- [x: string]: number;
1951
- };
1952
- translations: {
1953
- [x: string]: {
1954
- etymology: {
1955
- language: string;
1956
- definition?: string | undefined;
1957
- }[];
1958
- commentary: string;
1959
- definition: string;
1960
- sp_etymology: string;
1961
- };
1962
- };
1963
- ku_data?: {
1964
- [x: string]: number;
1965
- } | undefined;
1966
- resources?: {
1967
- sona_pona?: string | undefined;
1968
- lipamanka_semantic?: string | undefined;
1969
- } | undefined;
1970
- representations?: {
1971
- sitelen_emosi?: string | undefined;
1972
- sitelen_jelo?: string[] | undefined;
1973
- ligatures?: string[] | undefined;
1974
- sitelen_sitelen?: string | undefined;
1975
- ucsur?: string | undefined;
1976
- } | undefined;
1977
- pu_verbatim?: {
1978
- en: string;
1979
- fr: string;
1980
- de: string;
1981
- eo: string;
1982
- } | undefined;
1983
- };
1984
- };
1985
- outputFormat: "json";
1986
- 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;
1450
+ outputFormat: "json";
1451
+ status: 200;
1452
+ } | {
1453
+ input: {
1454
+ param: {
1455
+ glyph: string;
1456
+ };
1457
+ };
1458
+ output: {
1459
+ success: false;
1460
+ message: string;
1461
+ };
1462
+ outputFormat: "json";
1463
+ status: 400;
1464
+ };
1465
+ };
1466
+ } & {
1467
+ "/sandbox": {
1468
+ $get: {
1469
+ input: {};
1470
+ output: undefined;
1471
+ outputFormat: "redirect";
1472
+ status: 302;
1473
+ };
1474
+ };
1475
+ } & {
1476
+ "/sandbox/words": {
1477
+ $get: {
1478
+ input: {};
1479
+ output: {
1480
+ [x: string]: {
1481
+ id: string;
1482
+ word: string;
1483
+ book: "pu" | "ku suli" | "ku lili" | "none";
1484
+ coined_era: "pre-pu" | "post-pu" | "post-ku";
1485
+ creation_date: string;
1486
+ author: string[];
1487
+ see_also: string[];
1488
+ resources: {
1489
+ sona_pona?: string | undefined;
1490
+ lipamanka_semantic?: string | undefined;
1491
+ };
1492
+ representations: {
1493
+ sitelen_emosi?: string | undefined;
1494
+ sitelen_jelo?: string[] | undefined;
1495
+ ligatures?: string[] | undefined;
1496
+ sitelen_sitelen?: string | undefined;
1497
+ ucsur?: string | undefined;
1498
+ };
1499
+ source_language: string;
1500
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1501
+ deprecated: boolean;
1502
+ audio: {
1503
+ author: string;
1504
+ link: string;
1505
+ }[];
1506
+ usage: {
1507
+ [x: string]: number;
1987
1508
  };
1509
+ glyph_ids: string[];
1510
+ translations: {
1511
+ commentary: string;
1512
+ etymology: string;
1513
+ definition: string;
1514
+ };
1515
+ author_verbatim?: string | undefined;
1516
+ author_source?: string | undefined;
1517
+ ku_data?: {
1518
+ [x: string]: number;
1519
+ } | undefined;
1520
+ parent_id?: string | undefined;
1521
+ pu_verbatim?: {
1522
+ en: string;
1523
+ fr: string;
1524
+ de: string;
1525
+ eo: string;
1526
+ } | undefined;
1527
+ primary_glyph_id?: string | undefined;
1528
+ image?: string | undefined;
1529
+ svg?: string | undefined;
1530
+ };
1988
1531
  };
1989
- } & {
1990
- "/sandbox/:word": {
1991
- $get: {
1992
- input: {
1993
- query: {
1994
- lang?: string | string[] | undefined;
1995
- };
1996
- } & {
1997
- param: {
1998
- word: string | undefined;
1999
- };
2000
- };
2001
- output: {
2002
- ok: true;
2003
- data: {
2004
- id: string;
2005
- author_verbatim: string;
2006
- author_verbatim_source: string;
2007
- book: "pu" | "ku suli" | "ku lili" | "none";
2008
- coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
2009
- coined_year: string;
2010
- creator: string[];
2011
- see_also: string[];
2012
- source_language: string;
2013
- usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
2014
- word: string;
2015
- deprecated: boolean;
2016
- etymology: {
2017
- word?: string | undefined;
2018
- alt?: string | undefined;
2019
- }[];
2020
- audio: {
2021
- author: string;
2022
- link: string;
2023
- }[];
2024
- usage: {
2025
- [x: string]: number;
2026
- };
2027
- translations: {
2028
- [x: string]: {
2029
- etymology: {
2030
- language: string;
2031
- definition?: string | undefined;
2032
- }[];
2033
- commentary: string;
2034
- definition: string;
2035
- sp_etymology: string;
2036
- };
2037
- };
2038
- ku_data?: {
2039
- [x: string]: number;
2040
- } | undefined;
2041
- resources?: {
2042
- sona_pona?: string | undefined;
2043
- lipamanka_semantic?: string | undefined;
2044
- } | undefined;
2045
- representations?: {
2046
- sitelen_emosi?: string | undefined;
2047
- sitelen_jelo?: string[] | undefined;
2048
- ligatures?: string[] | undefined;
2049
- sitelen_sitelen?: string | undefined;
2050
- ucsur?: string | undefined;
2051
- } | undefined;
2052
- pu_verbatim?: {
2053
- en: string;
2054
- fr: string;
2055
- de: string;
2056
- eo: string;
2057
- } | undefined;
2058
- };
2059
- };
2060
- outputFormat: "json";
2061
- 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;
2062
- } | {
2063
- input: {
2064
- query: {
2065
- lang?: string | string[] | undefined;
2066
- };
2067
- } & {
2068
- param: {
2069
- word: string | undefined;
2070
- };
2071
- };
2072
- output: {
2073
- ok: false;
2074
- message: string;
2075
- };
2076
- outputFormat: "json";
2077
- status: 400;
1532
+ outputFormat: "json";
1533
+ status: 200;
1534
+ };
1535
+ };
1536
+ } & {
1537
+ "/sandbox/words/:word": {
1538
+ $get: {
1539
+ input: {
1540
+ param: {
1541
+ word: string;
1542
+ };
1543
+ };
1544
+ output: {
1545
+ success: true;
1546
+ data: {
1547
+ id: string;
1548
+ word: string;
1549
+ book: "pu" | "ku suli" | "ku lili" | "none";
1550
+ coined_era: "pre-pu" | "post-pu" | "post-ku";
1551
+ creation_date: string;
1552
+ author: string[];
1553
+ see_also: string[];
1554
+ resources: {
1555
+ sona_pona?: string | undefined;
1556
+ lipamanka_semantic?: string | undefined;
1557
+ };
1558
+ representations: {
1559
+ sitelen_emosi?: string | undefined;
1560
+ sitelen_jelo?: string[] | undefined;
1561
+ ligatures?: string[] | undefined;
1562
+ sitelen_sitelen?: string | undefined;
1563
+ ucsur?: string | undefined;
2078
1564
  };
1565
+ source_language: string;
1566
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1567
+ deprecated: boolean;
1568
+ audio: {
1569
+ author: string;
1570
+ link: string;
1571
+ }[];
1572
+ usage: {
1573
+ [x: string]: number;
1574
+ };
1575
+ glyph_ids: string[];
1576
+ translations: {
1577
+ commentary: string;
1578
+ etymology: string;
1579
+ definition: string;
1580
+ };
1581
+ author_verbatim?: string | undefined;
1582
+ author_source?: string | undefined;
1583
+ ku_data?: {
1584
+ [x: string]: number;
1585
+ } | undefined;
1586
+ parent_id?: string | undefined;
1587
+ pu_verbatim?: {
1588
+ en: string;
1589
+ fr: string;
1590
+ de: string;
1591
+ eo: string;
1592
+ } | undefined;
1593
+ primary_glyph_id?: string | undefined;
1594
+ image?: string | undefined;
1595
+ svg?: string | undefined;
1596
+ };
2079
1597
  };
2080
- } & {
2081
- "/luka_pona/fingerspelling": {
2082
- $get: {
2083
- input: {
2084
- query: {
2085
- lang?: string | string[] | undefined;
2086
- };
2087
- };
2088
- output: {
2089
- [x: string]: {
2090
- id: string;
2091
- etymology: {
2092
- language: string;
2093
- sign: string;
2094
- }[];
2095
- translations: {
2096
- [x: string]: {
2097
- parameters: {
2098
- handshape?: string | undefined;
2099
- movement?: string | undefined;
2100
- placement?: string | undefined;
2101
- orientation?: string | undefined;
2102
- };
2103
- };
2104
- };
2105
- is_two_handed: boolean;
2106
- signwriting: {
2107
- fsw: string;
2108
- swu: string;
2109
- };
2110
- video: {
2111
- gif?: string | undefined;
2112
- mp4?: string | undefined;
2113
- };
2114
- };
2115
- };
2116
- outputFormat: "json";
2117
- 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;
1598
+ outputFormat: "json";
1599
+ status: 200;
1600
+ } | {
1601
+ input: {
1602
+ param: {
1603
+ word: string;
1604
+ };
1605
+ };
1606
+ output: {
1607
+ success: false;
1608
+ message: string;
1609
+ };
1610
+ outputFormat: "json";
1611
+ status: 400;
1612
+ };
1613
+ };
1614
+ } & {
1615
+ "/sandbox/glyphs": {
1616
+ $get: {
1617
+ input: {};
1618
+ output: {
1619
+ [x: string]: {
1620
+ id: string;
1621
+ word: string;
1622
+ word_id: string;
1623
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1624
+ author: string[];
1625
+ creation_date: string;
1626
+ see_also: string[];
1627
+ primary: boolean;
1628
+ deprecated: boolean;
1629
+ usage: {
1630
+ [x: string]: number;
1631
+ };
1632
+ translations: {
1633
+ commentary: string;
1634
+ etymology: string;
1635
+ names: string[];
2118
1636
  };
1637
+ author_source?: string | undefined;
1638
+ parent_id?: string | undefined;
1639
+ image?: string | undefined;
1640
+ svg?: string | undefined;
1641
+ ligature?: string | undefined;
1642
+ alias_ligatures?: string[] | undefined;
1643
+ ucsur?: string | undefined;
1644
+ };
2119
1645
  };
2120
- } & {
2121
- "/luka_pona/fingerspelling/:sign": {
2122
- $get: {
2123
- input: {
2124
- query: {
2125
- lang?: string | string[] | undefined;
2126
- };
2127
- } & {
2128
- param: {
2129
- sign: string | undefined;
2130
- };
2131
- };
2132
- output: {
2133
- ok: true;
2134
- data: {
2135
- id: string;
2136
- etymology: {
2137
- language: string;
2138
- sign: string;
2139
- }[];
2140
- translations: {
2141
- [x: string]: {
2142
- parameters: {
2143
- handshape?: string | undefined;
2144
- movement?: string | undefined;
2145
- placement?: string | undefined;
2146
- orientation?: string | undefined;
2147
- };
2148
- };
2149
- };
2150
- is_two_handed: boolean;
2151
- signwriting: {
2152
- fsw: string;
2153
- swu: string;
2154
- };
2155
- video: {
2156
- gif?: string | undefined;
2157
- mp4?: string | undefined;
2158
- };
2159
- };
2160
- };
2161
- outputFormat: "json";
2162
- 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;
2163
- } | {
2164
- input: {
2165
- query: {
2166
- lang?: string | string[] | undefined;
2167
- };
2168
- } & {
2169
- param: {
2170
- sign: string | undefined;
2171
- };
2172
- };
2173
- output: {
2174
- ok: false;
2175
- message: string;
2176
- };
2177
- outputFormat: "json";
2178
- status: 400;
1646
+ outputFormat: "json";
1647
+ status: 200;
1648
+ };
1649
+ };
1650
+ } & {
1651
+ "/sandbox/glyphs/:glyph": {
1652
+ $get: {
1653
+ input: {
1654
+ param: {
1655
+ glyph: string;
1656
+ };
1657
+ };
1658
+ output: {
1659
+ success: true;
1660
+ data: {
1661
+ id: string;
1662
+ word: string;
1663
+ word_id: string;
1664
+ usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
1665
+ author: string[];
1666
+ creation_date: string;
1667
+ see_also: string[];
1668
+ primary: boolean;
1669
+ deprecated: boolean;
1670
+ usage: {
1671
+ [x: string]: number;
1672
+ };
1673
+ translations: {
1674
+ commentary: string;
1675
+ etymology: string;
1676
+ names: string[];
2179
1677
  };
1678
+ author_source?: string | undefined;
1679
+ parent_id?: string | undefined;
1680
+ image?: string | undefined;
1681
+ svg?: string | undefined;
1682
+ ligature?: string | undefined;
1683
+ alias_ligatures?: string[] | undefined;
1684
+ ucsur?: string | undefined;
1685
+ };
2180
1686
  };
2181
- } & {
2182
- "/luka_pona/signs": {
2183
- $get: {
2184
- input: {
2185
- query: {
2186
- lang?: string | string[] | undefined;
2187
- };
2188
- };
2189
- output: {
2190
- [x: string]: {
2191
- id: string;
2192
- etymology: {
2193
- language: string;
2194
- sign?: string | undefined;
2195
- }[];
2196
- translations: {
2197
- [x: string]: {
2198
- parameters: {
2199
- handshape?: string | undefined;
2200
- movement?: string | undefined;
2201
- placement?: string | undefined;
2202
- orientation?: string | undefined;
2203
- };
2204
- icons: string;
2205
- };
2206
- };
2207
- definition: string;
2208
- is_two_handed: boolean;
2209
- new_gloss: string;
2210
- old_gloss: string;
2211
- signwriting: {
2212
- fsw: string;
2213
- swu: string;
2214
- };
2215
- video: {
2216
- gif?: string | undefined;
2217
- mp4?: string | undefined;
2218
- };
2219
- };
2220
- };
2221
- outputFormat: "json";
2222
- 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;
1687
+ outputFormat: "json";
1688
+ status: 200;
1689
+ } | {
1690
+ input: {
1691
+ param: {
1692
+ glyph: string;
1693
+ };
1694
+ };
1695
+ output: {
1696
+ success: false;
1697
+ message: string;
1698
+ };
1699
+ outputFormat: "json";
1700
+ status: 400;
1701
+ };
1702
+ };
1703
+ } & {
1704
+ "/luka_pona/signs": {
1705
+ $get: {
1706
+ input: {};
1707
+ output: {
1708
+ [x: string]: {
1709
+ id: string;
1710
+ is_two_handed: boolean;
1711
+ etymology: {
1712
+ language: string;
1713
+ sign?: string | undefined;
1714
+ }[];
1715
+ signwriting: {
1716
+ fsw: string;
1717
+ swu: string;
1718
+ };
1719
+ definition: string;
1720
+ new_gloss: string;
1721
+ old_gloss: string;
1722
+ old_id: string;
1723
+ translations: {
1724
+ icons: string;
1725
+ parameters: {
1726
+ handshape?: string | undefined;
1727
+ movement?: string | undefined;
1728
+ placement?: string | undefined;
1729
+ orientation?: string | undefined;
1730
+ };
2223
1731
  };
1732
+ video?: {
1733
+ gif: string;
1734
+ mp4: string;
1735
+ } | undefined;
1736
+ };
2224
1737
  };
2225
- } & {
2226
- "/luka_pona/signs/:sign": {
2227
- $get: {
2228
- input: {
2229
- query: {
2230
- lang?: string | string[] | undefined;
2231
- };
2232
- } & {
2233
- param: {
2234
- sign: string | undefined;
2235
- };
2236
- };
2237
- output: {
2238
- ok: true;
2239
- data: {
2240
- id: string;
2241
- etymology: {
2242
- language: string;
2243
- sign?: string | undefined;
2244
- }[];
2245
- translations: {
2246
- [x: string]: {
2247
- parameters: {
2248
- handshape?: string | undefined;
2249
- movement?: string | undefined;
2250
- placement?: string | undefined;
2251
- orientation?: string | undefined;
2252
- };
2253
- icons: string;
2254
- };
2255
- };
2256
- definition: string;
2257
- is_two_handed: boolean;
2258
- new_gloss: string;
2259
- old_gloss: string;
2260
- signwriting: {
2261
- fsw: string;
2262
- swu: string;
2263
- };
2264
- video: {
2265
- gif?: string | undefined;
2266
- mp4?: string | undefined;
2267
- };
2268
- };
2269
- };
2270
- outputFormat: "json";
2271
- 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;
2272
- } | {
2273
- input: {
2274
- query: {
2275
- lang?: string | string[] | undefined;
2276
- };
2277
- } & {
2278
- param: {
2279
- sign: string | undefined;
2280
- };
2281
- };
2282
- output: {
2283
- ok: false;
2284
- message: string;
2285
- };
2286
- outputFormat: "json";
2287
- status: 400;
1738
+ outputFormat: "json";
1739
+ status: 200;
1740
+ };
1741
+ };
1742
+ } & {
1743
+ "/luka_pona/signs/:sign": {
1744
+ $get: {
1745
+ input: {
1746
+ param: {
1747
+ sign: string;
1748
+ };
1749
+ };
1750
+ output: {
1751
+ success: true;
1752
+ data: {
1753
+ id: string;
1754
+ is_two_handed: boolean;
1755
+ etymology: {
1756
+ language: string;
1757
+ sign?: string | undefined;
1758
+ }[];
1759
+ signwriting: {
1760
+ fsw: string;
1761
+ swu: string;
2288
1762
  };
1763
+ definition: string;
1764
+ new_gloss: string;
1765
+ old_gloss: string;
1766
+ old_id: string;
1767
+ translations: {
1768
+ icons: string;
1769
+ parameters: {
1770
+ handshape?: string | undefined;
1771
+ movement?: string | undefined;
1772
+ placement?: string | undefined;
1773
+ orientation?: string | undefined;
1774
+ };
1775
+ };
1776
+ video?: {
1777
+ gif: string;
1778
+ mp4: string;
1779
+ } | undefined;
1780
+ };
2289
1781
  };
2290
- } & {
2291
- "/fonts": {
2292
- $get: {
2293
- input: {};
2294
- output: {
2295
- [x: string]: {
2296
- id: string;
2297
- creator: string[];
2298
- ligatures: boolean;
2299
- ucsur: boolean;
2300
- features: string[];
2301
- filename: string;
2302
- license: string;
2303
- name: string;
2304
- style: string;
2305
- version: string;
2306
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
2307
- links: {
2308
- fontfile?: string | undefined;
2309
- repo?: string | undefined;
2310
- webpage?: string | undefined;
2311
- };
2312
- last_updated?: string | undefined;
2313
- };
2314
- };
2315
- outputFormat: "json";
2316
- 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;
1782
+ outputFormat: "json";
1783
+ status: 200;
1784
+ } | {
1785
+ input: {
1786
+ param: {
1787
+ sign: string;
1788
+ };
1789
+ };
1790
+ output: {
1791
+ success: false;
1792
+ message: string;
1793
+ };
1794
+ outputFormat: "json";
1795
+ status: 400;
1796
+ };
1797
+ };
1798
+ } & {
1799
+ "/luka_pona/fingerspellings": {
1800
+ $get: {
1801
+ input: {};
1802
+ output: {
1803
+ [x: string]: {
1804
+ id: string;
1805
+ is_two_handed: boolean;
1806
+ etymology: {
1807
+ language: string;
1808
+ sign?: string | undefined;
1809
+ }[];
1810
+ signwriting: {
1811
+ fsw: string;
1812
+ swu: string;
1813
+ };
1814
+ translations: {
1815
+ parameters: {
1816
+ handshape?: string | undefined;
1817
+ movement?: string | undefined;
1818
+ placement?: string | undefined;
1819
+ orientation?: string | undefined;
1820
+ };
2317
1821
  };
1822
+ video?: {
1823
+ gif: string;
1824
+ mp4: string;
1825
+ } | undefined;
1826
+ };
2318
1827
  };
2319
- } & {
2320
- "/fonts/:font": {
2321
- $get: {
2322
- input: {
2323
- param: {
2324
- font: string | undefined;
2325
- };
2326
- };
2327
- output: {
2328
- ok: true;
2329
- data: {
2330
- id: string;
2331
- creator: string[];
2332
- ligatures: boolean;
2333
- ucsur: boolean;
2334
- features: string[];
2335
- filename: string;
2336
- license: string;
2337
- name: string;
2338
- style: string;
2339
- version: string;
2340
- writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
2341
- links: {
2342
- fontfile?: string | undefined;
2343
- repo?: string | undefined;
2344
- webpage?: string | undefined;
2345
- };
2346
- last_updated?: string | undefined;
2347
- };
2348
- };
2349
- outputFormat: "json";
2350
- 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;
2351
- } | {
2352
- input: {
2353
- param: {
2354
- font: string | undefined;
2355
- };
2356
- };
2357
- output: {
2358
- ok: false;
2359
- message: string;
2360
- };
2361
- outputFormat: "json";
2362
- status: 400;
1828
+ outputFormat: "json";
1829
+ status: 200;
1830
+ };
1831
+ };
1832
+ } & {
1833
+ "/luka_pona/fingerspellings/:fingerspelling": {
1834
+ $get: {
1835
+ input: {
1836
+ param: {
1837
+ fingerspelling: string;
1838
+ };
1839
+ };
1840
+ output: {
1841
+ success: true;
1842
+ data: {
1843
+ id: string;
1844
+ is_two_handed: boolean;
1845
+ etymology: {
1846
+ language: string;
1847
+ sign?: string | undefined;
1848
+ }[];
1849
+ signwriting: {
1850
+ fsw: string;
1851
+ swu: string;
1852
+ };
1853
+ translations: {
1854
+ parameters: {
1855
+ handshape?: string | undefined;
1856
+ movement?: string | undefined;
1857
+ placement?: string | undefined;
1858
+ orientation?: string | undefined;
1859
+ };
2363
1860
  };
1861
+ video?: {
1862
+ gif: string;
1863
+ mp4: string;
1864
+ } | undefined;
1865
+ };
2364
1866
  };
2365
- } & {
2366
- "/languages": {
2367
- $get: {
2368
- input: {};
2369
- output: {
2370
- [x: string]: {
2371
- id: string;
2372
- name: {
2373
- en: string;
2374
- tok?: string | undefined;
2375
- endonym?: string | undefined;
2376
- };
2377
- locale: string;
2378
- direction: "ltr" | "rtl";
2379
- };
2380
- };
2381
- outputFormat: "json";
2382
- 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;
1867
+ outputFormat: "json";
1868
+ status: 200;
1869
+ } | {
1870
+ input: {
1871
+ param: {
1872
+ fingerspelling: string;
1873
+ };
1874
+ };
1875
+ output: {
1876
+ success: false;
1877
+ message: string;
1878
+ };
1879
+ outputFormat: "json";
1880
+ status: 400;
1881
+ };
1882
+ };
1883
+ } & {
1884
+ "/fonts": {
1885
+ $get: {
1886
+ input: {};
1887
+ output: {
1888
+ [x: string]: {
1889
+ id: string;
1890
+ author: string[];
1891
+ features: string[];
1892
+ filename: string;
1893
+ last_updated: string;
1894
+ license: string;
1895
+ ligatures: boolean;
1896
+ name: string;
1897
+ style: string;
1898
+ ucsur: boolean;
1899
+ version: string;
1900
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
1901
+ links: {
1902
+ fontfile?: string | undefined;
1903
+ repo?: string | undefined;
1904
+ webpage?: string | undefined;
2383
1905
  };
1906
+ };
2384
1907
  };
2385
- } & {
2386
- "/languages/:language": {
2387
- $get: {
2388
- input: {
2389
- param: {
2390
- language: string | undefined;
2391
- };
2392
- };
2393
- output: {
2394
- ok: true;
2395
- data: {
2396
- id: string;
2397
- name: {
2398
- en: string;
2399
- tok?: string | undefined;
2400
- endonym?: string | undefined;
2401
- };
2402
- locale: string;
2403
- direction: "ltr" | "rtl";
2404
- };
2405
- };
2406
- outputFormat: "json";
2407
- 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;
2408
- } | {
2409
- input: {
2410
- param: {
2411
- language: string | undefined;
2412
- };
2413
- };
2414
- output: {
2415
- ok: false;
2416
- message: string;
2417
- };
2418
- outputFormat: "json";
2419
- status: 400;
1908
+ outputFormat: "json";
1909
+ status: 200;
1910
+ };
1911
+ };
1912
+ } & {
1913
+ "/fonts/:font": {
1914
+ $get: {
1915
+ input: {
1916
+ param: {
1917
+ font: string;
1918
+ };
1919
+ };
1920
+ output: {
1921
+ success: true;
1922
+ data: {
1923
+ id: string;
1924
+ author: string[];
1925
+ features: string[];
1926
+ filename: string;
1927
+ last_updated: string;
1928
+ license: string;
1929
+ ligatures: boolean;
1930
+ name: string;
1931
+ style: string;
1932
+ ucsur: boolean;
1933
+ version: string;
1934
+ writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
1935
+ links: {
1936
+ fontfile?: string | undefined;
1937
+ repo?: string | undefined;
1938
+ webpage?: string | undefined;
1939
+ };
1940
+ };
1941
+ };
1942
+ outputFormat: "json";
1943
+ status: 200;
1944
+ } | {
1945
+ input: {
1946
+ param: {
1947
+ font: string;
1948
+ };
1949
+ };
1950
+ output: {
1951
+ success: false;
1952
+ message: string;
1953
+ };
1954
+ outputFormat: "json";
1955
+ status: 400;
1956
+ };
1957
+ };
1958
+ } & {
1959
+ "/languages": {
1960
+ $get: {
1961
+ input: {};
1962
+ output: {
1963
+ [x: string]: {
1964
+ id: string;
1965
+ locale: string;
1966
+ direction: "ltr" | "rtl";
1967
+ name: {
1968
+ en: string;
1969
+ endonym: string;
1970
+ tok?: string | undefined;
2420
1971
  };
1972
+ };
2421
1973
  };
2422
- }, "/">;
1974
+ outputFormat: "json";
1975
+ status: 200;
1976
+ };
1977
+ };
1978
+ } & {
1979
+ "/languages/:language": {
1980
+ $get: {
1981
+ input: {
1982
+ param: {
1983
+ language: string;
1984
+ };
1985
+ };
1986
+ output: {
1987
+ success: true;
1988
+ data: {
1989
+ id: string;
1990
+ locale: string;
1991
+ direction: "ltr" | "rtl";
1992
+ name: {
1993
+ en: string;
1994
+ endonym: string;
1995
+ tok?: string | undefined;
1996
+ };
1997
+ };
1998
+ };
1999
+ outputFormat: "json";
2000
+ status: 200;
2001
+ } | {
2002
+ input: {
2003
+ param: {
2004
+ language: string;
2005
+ };
2006
+ };
2007
+ output: {
2008
+ success: false;
2009
+ message: string;
2010
+ };
2011
+ outputFormat: "json";
2012
+ status: 400;
2013
+ };
2014
+ };
2015
+ }, "/">;
2423
2016
  };
2424
- export declare const fetchFile: <S extends z.ZodType<any, z.ZodTypeDef, any>>(version: ApiVersion, schema: S, filename: string) => Promise<z.SafeParseReturnType<z.input<S>, z.output<S>>>;
2017
+ declare const fetchFile: <Endpoint extends EndpointConfig>(version: ApiVersion, config: Endpoint, langcode?: string) => Promise<z.ZodSafeParseResult<z.output<Endpoint["schema"]>>>;
2018
+ //#endregion
2019
+ export { ApiConfig, ApiVersion, EndpointConfig, FilesToVariables, Versions, apps, fetchFile, versions };