@kulupu-linku/sona 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,37 @@
1
1
  import { z } from 'zod';
2
2
 
3
+ declare const Book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
4
+ type Book = z.infer<typeof Book>;
5
+ declare const CoinedEra: z.ZodUnion<[z.ZodLiteral<"pre-pu">, z.ZodLiteral<"post-pu">, z.ZodLiteral<"post-ku">]>;
6
+ type CoinedEra = z.infer<typeof CoinedEra>;
7
+ declare const UsageCategory: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"widespread">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"rare">, z.ZodLiteral<"obscure">]>;
8
+ type UsageCategory = z.infer<typeof UsageCategory>;
9
+ declare const WritingSystem: z.ZodEnum<["sitelen pona", "sitelen sitelen", "alphabet", "syllabary", "logography", "tokiponido alphabet", "tokiponido syllabary", "tokiponido logography"]>;
10
+ type WritingSystem = z.infer<typeof WritingSystem>;
11
+ type WordRepresentations = LocalizedWord["representations"];
12
+ type WordAudio = LocalizedWord["audio"];
13
+ type WordUsage = LocalizedWord["usage"];
14
+ type WordPuVerbatim = LocalizedWord["pu_verbatim"];
15
+ type WordKuData = LocalizedWord["ku_data"];
16
+ type WordTranslations = LocalizedWord["translations"];
17
+ type WordTranslation = LocalizedWord["translations"][string];
18
+ type LocalizedWordDefinition = WordTranslation["definition"];
19
+ type LocalizedWordEtymology = WordTranslation["etymology"];
20
+ type LocalizedWordCommentary = WordTranslation["commentary"];
21
+ type LocalizedWordSitelenEtymology = WordTranslation["sp_etymology"];
22
+ type SignEtymology = Sign["etymology"];
23
+ type SignWriting = Sign["signwriting"];
24
+ type SignVideo = Sign["video"];
25
+ type LocalizedSignParameters = ParametersTranslation[string];
26
+ type FontLinks = Font["links"];
27
+ declare function getTranslatedData<L extends object, K extends keyof L, T extends {
28
+ translations: {
29
+ en: L;
30
+ } & Record<string, L>;
31
+ }>(data: T, key: K, language: string): L[K];
32
+
3
33
  declare const Word: z.ZodObject<{
34
+ id: z.ZodString;
4
35
  author_verbatim: z.ZodString;
5
36
  author_verbatim_source: z.ZodString;
6
37
  book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
@@ -9,23 +40,32 @@ declare const Word: z.ZodObject<{
9
40
  creator: z.ZodArray<z.ZodString, "many">;
10
41
  ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
11
42
  see_also: z.ZodArray<z.ZodString, "many">;
12
- sona_pona: z.ZodOptional<z.ZodString>;
13
- representations: z.ZodObject<{
14
- sitelen_emosi: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
15
- sitelen_pona: z.ZodArray<z.ZodString, "many">;
16
- sitelen_sitelen: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
17
- ucsur: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
43
+ resources: z.ZodOptional<z.ZodObject<{
44
+ sona_pona: z.ZodOptional<z.ZodString>;
45
+ lipamanka_semantic: z.ZodOptional<z.ZodString>;
18
46
  }, "strip", z.ZodTypeAny, {
19
- sitelen_emosi: string;
20
- sitelen_pona: string[];
21
- sitelen_sitelen: string;
22
- ucsur: string;
47
+ sona_pona?: string | undefined;
48
+ lipamanka_semantic?: string | undefined;
23
49
  }, {
24
- sitelen_emosi: string;
25
- sitelen_pona: string[];
26
- sitelen_sitelen: string;
27
- ucsur: string;
28
- }>;
50
+ sona_pona?: string | undefined;
51
+ lipamanka_semantic?: string | undefined;
52
+ }>>;
53
+ representations: z.ZodOptional<z.ZodObject<{
54
+ sitelen_emosi: z.ZodOptional<z.ZodString>;
55
+ ligatures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
56
+ sitelen_sitelen: z.ZodOptional<z.ZodString>;
57
+ ucsur: z.ZodOptional<z.ZodString>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ sitelen_emosi?: string | undefined;
60
+ ligatures?: string[] | undefined;
61
+ sitelen_sitelen?: string | undefined;
62
+ ucsur?: string | undefined;
63
+ }, {
64
+ sitelen_emosi?: string | undefined;
65
+ ligatures?: string[] | undefined;
66
+ sitelen_sitelen?: string | undefined;
67
+ ucsur?: string | undefined;
68
+ }>>;
29
69
  source_language: z.ZodString;
30
70
  usage_category: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"widespread">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"rare">, z.ZodLiteral<"obscure">]>;
31
71
  word: z.ZodString;
@@ -65,8 +105,9 @@ declare const Word: z.ZodObject<{
65
105
  de: string;
66
106
  eo: string;
67
107
  }>>;
68
- usage: z.ZodRecord<z.ZodType<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, z.ZodTypeDef, `20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`>, z.ZodNumber>;
108
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
69
109
  }, "strip", z.ZodTypeAny, {
110
+ id: string;
70
111
  author_verbatim: string;
71
112
  author_verbatim_source: string;
72
113
  book: "pu" | "ku suli" | "ku lili" | "none";
@@ -74,12 +115,6 @@ declare const Word: z.ZodObject<{
74
115
  coined_year: string;
75
116
  creator: string[];
76
117
  see_also: string[];
77
- representations: {
78
- sitelen_emosi: string;
79
- sitelen_pona: string[];
80
- sitelen_sitelen: string;
81
- ucsur: string;
82
- };
83
118
  source_language: string;
84
119
  usage_category: "core" | "widespread" | "common" | "uncommon" | "rare" | "obscure";
85
120
  word: string;
@@ -91,9 +126,18 @@ declare const Word: z.ZodObject<{
91
126
  author: string;
92
127
  link: string;
93
128
  }[];
94
- usage: Partial<Record<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, number>>;
129
+ usage: Record<string, number>;
95
130
  ku_data?: Record<string, number> | undefined;
96
- sona_pona?: string | undefined;
131
+ resources?: {
132
+ sona_pona?: string | undefined;
133
+ lipamanka_semantic?: string | undefined;
134
+ } | undefined;
135
+ representations?: {
136
+ sitelen_emosi?: string | undefined;
137
+ ligatures?: string[] | undefined;
138
+ sitelen_sitelen?: string | undefined;
139
+ ucsur?: string | undefined;
140
+ } | undefined;
97
141
  pu_verbatim?: {
98
142
  en: string;
99
143
  fr: string;
@@ -101,6 +145,7 @@ declare const Word: z.ZodObject<{
101
145
  eo: string;
102
146
  } | undefined;
103
147
  }, {
148
+ id: string;
104
149
  author_verbatim: string;
105
150
  author_verbatim_source: string;
106
151
  book: "pu" | "ku suli" | "ku lili" | "none";
@@ -108,12 +153,6 @@ declare const Word: z.ZodObject<{
108
153
  coined_year: string;
109
154
  creator: string[];
110
155
  see_also: string[];
111
- representations: {
112
- sitelen_emosi: string;
113
- sitelen_pona: string[];
114
- sitelen_sitelen: string;
115
- ucsur: string;
116
- };
117
156
  source_language: string;
118
157
  usage_category: "core" | "widespread" | "common" | "uncommon" | "rare" | "obscure";
119
158
  word: string;
@@ -125,9 +164,18 @@ declare const Word: z.ZodObject<{
125
164
  author: string;
126
165
  link: string;
127
166
  }[];
128
- usage: Partial<Record<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, number>>;
167
+ usage: Record<string, number>;
129
168
  ku_data?: Record<string, number> | undefined;
130
- sona_pona?: string | undefined;
169
+ resources?: {
170
+ sona_pona?: string | undefined;
171
+ lipamanka_semantic?: string | undefined;
172
+ } | undefined;
173
+ representations?: {
174
+ sitelen_emosi?: string | undefined;
175
+ ligatures?: string[] | undefined;
176
+ sitelen_sitelen?: string | undefined;
177
+ ucsur?: string | undefined;
178
+ } | undefined;
131
179
  pu_verbatim?: {
132
180
  en: string;
133
181
  fr: string;
@@ -190,12 +238,12 @@ declare const Sign: z.ZodObject<{
190
238
  mp4: string;
191
239
  }>;
192
240
  }, "strip", z.ZodTypeAny, {
241
+ id: string;
193
242
  etymology: {
194
243
  language: string;
195
244
  sign?: string | undefined;
196
245
  }[];
197
246
  definition: string;
198
- id: string;
199
247
  is_two_handed: boolean;
200
248
  new_gloss: string;
201
249
  old_gloss: string;
@@ -208,12 +256,12 @@ declare const Sign: z.ZodObject<{
208
256
  mp4: string;
209
257
  };
210
258
  }, {
259
+ id: string;
211
260
  etymology: {
212
261
  language: string;
213
262
  sign?: string | undefined;
214
263
  }[];
215
264
  definition: string;
216
- id: string;
217
265
  is_two_handed: boolean;
218
266
  new_gloss: string;
219
267
  old_gloss: string;
@@ -261,11 +309,11 @@ declare const FingerspellingSign: z.ZodObject<{
261
309
  mp4?: string | undefined;
262
310
  }>;
263
311
  }, "strip", z.ZodTypeAny, {
312
+ id: string;
264
313
  etymology: {
265
314
  language: string;
266
315
  sign: string;
267
316
  }[];
268
- id: string;
269
317
  is_two_handed: boolean;
270
318
  signwriting: {
271
319
  fsw: string;
@@ -276,11 +324,11 @@ declare const FingerspellingSign: z.ZodObject<{
276
324
  mp4?: string | undefined;
277
325
  };
278
326
  }, {
327
+ id: string;
279
328
  etymology: {
280
329
  language: string;
281
330
  sign: string;
282
331
  }[];
283
- id: string;
284
332
  is_two_handed: boolean;
285
333
  signwriting: {
286
334
  fsw: string;
@@ -312,10 +360,11 @@ type ParametersTranslation = z.infer<typeof ParametersTranslation>;
312
360
  declare const IconTranslation: z.ZodRecord<z.ZodString, z.ZodString>;
313
361
  type IconTranslation = z.infer<typeof IconTranslation>;
314
362
  declare const Font: z.ZodObject<{
363
+ id: z.ZodString;
315
364
  creator: z.ZodArray<z.ZodString, "many">;
316
365
  features: z.ZodArray<z.ZodString, "many">;
317
366
  filename: z.ZodString;
318
- last_updated: z.ZodOptional<z.ZodType<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, z.ZodTypeDef, `20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`>>;
367
+ last_updated: z.ZodOptional<z.ZodString>;
319
368
  license: z.ZodString;
320
369
  ligatures: z.ZodBoolean;
321
370
  name: z.ZodString;
@@ -337,12 +386,13 @@ declare const Font: z.ZodObject<{
337
386
  webpage?: string | undefined;
338
387
  }>;
339
388
  }, "strip", z.ZodTypeAny, {
389
+ id: string;
340
390
  creator: string[];
391
+ ligatures: boolean;
341
392
  ucsur: boolean;
342
393
  features: string[];
343
394
  filename: string;
344
395
  license: string;
345
- ligatures: boolean;
346
396
  name: string;
347
397
  style: string;
348
398
  version: string;
@@ -352,14 +402,15 @@ declare const Font: z.ZodObject<{
352
402
  repo?: string | undefined;
353
403
  webpage?: string | undefined;
354
404
  };
355
- last_updated?: `20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12` | undefined;
405
+ last_updated?: string | undefined;
356
406
  }, {
407
+ id: string;
357
408
  creator: string[];
409
+ ligatures: boolean;
358
410
  ucsur: boolean;
359
411
  features: string[];
360
412
  filename: string;
361
413
  license: string;
362
- ligatures: boolean;
363
414
  name: string;
364
415
  style: string;
365
416
  version: string;
@@ -369,10 +420,11 @@ declare const Font: z.ZodObject<{
369
420
  repo?: string | undefined;
370
421
  webpage?: string | undefined;
371
422
  };
372
- last_updated?: `20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12` | undefined;
423
+ last_updated?: string | undefined;
373
424
  }>;
374
425
  type Font = z.infer<typeof Font>;
375
426
  declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
427
+ id: z.ZodString;
376
428
  author_verbatim: z.ZodString;
377
429
  author_verbatim_source: z.ZodString;
378
430
  book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
@@ -381,23 +433,32 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
381
433
  creator: z.ZodArray<z.ZodString, "many">;
382
434
  ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
383
435
  see_also: z.ZodArray<z.ZodString, "many">;
384
- sona_pona: z.ZodOptional<z.ZodString>;
385
- representations: z.ZodObject<{
386
- sitelen_emosi: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
387
- sitelen_pona: z.ZodArray<z.ZodString, "many">;
388
- sitelen_sitelen: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
389
- ucsur: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
436
+ resources: z.ZodOptional<z.ZodObject<{
437
+ sona_pona: z.ZodOptional<z.ZodString>;
438
+ lipamanka_semantic: z.ZodOptional<z.ZodString>;
390
439
  }, "strip", z.ZodTypeAny, {
391
- sitelen_emosi: string;
392
- sitelen_pona: string[];
393
- sitelen_sitelen: string;
394
- ucsur: string;
440
+ sona_pona?: string | undefined;
441
+ lipamanka_semantic?: string | undefined;
395
442
  }, {
396
- sitelen_emosi: string;
397
- sitelen_pona: string[];
398
- sitelen_sitelen: string;
399
- ucsur: string;
400
- }>;
443
+ sona_pona?: string | undefined;
444
+ lipamanka_semantic?: string | undefined;
445
+ }>>;
446
+ representations: z.ZodOptional<z.ZodObject<{
447
+ sitelen_emosi: z.ZodOptional<z.ZodString>;
448
+ ligatures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
449
+ sitelen_sitelen: z.ZodOptional<z.ZodString>;
450
+ ucsur: z.ZodOptional<z.ZodString>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ sitelen_emosi?: string | undefined;
453
+ ligatures?: string[] | undefined;
454
+ sitelen_sitelen?: string | undefined;
455
+ ucsur?: string | undefined;
456
+ }, {
457
+ sitelen_emosi?: string | undefined;
458
+ ligatures?: string[] | undefined;
459
+ sitelen_sitelen?: string | undefined;
460
+ ucsur?: string | undefined;
461
+ }>>;
401
462
  source_language: z.ZodString;
402
463
  usage_category: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"widespread">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"rare">, z.ZodLiteral<"obscure">]>;
403
464
  word: z.ZodString;
@@ -437,10 +498,10 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
437
498
  de: string;
438
499
  eo: string;
439
500
  }>>;
440
- usage: z.ZodRecord<z.ZodType<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, z.ZodTypeDef, `20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`>, z.ZodNumber>;
501
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
441
502
  translations: z.ZodRecord<z.ZodString, z.ZodObject<{
442
503
  commentary: z.ZodString;
443
- definitions: z.ZodString;
504
+ definition: z.ZodString;
444
505
  etymology: z.ZodArray<z.ZodObject<{
445
506
  definition: z.ZodOptional<z.ZodString>;
446
507
  language: z.ZodString;
@@ -458,7 +519,7 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
458
519
  definition?: string | undefined;
459
520
  }[];
460
521
  commentary: string;
461
- definitions: string;
522
+ definition: string;
462
523
  sp_etymology: string;
463
524
  }, {
464
525
  etymology: {
@@ -466,10 +527,11 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
466
527
  definition?: string | undefined;
467
528
  }[];
468
529
  commentary: string;
469
- definitions: string;
530
+ definition: string;
470
531
  sp_etymology: string;
471
532
  }>>;
472
533
  }, "strip", z.ZodTypeAny, {
534
+ id: string;
473
535
  author_verbatim: string;
474
536
  author_verbatim_source: string;
475
537
  book: "pu" | "ku suli" | "ku lili" | "none";
@@ -477,12 +539,6 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
477
539
  coined_year: string;
478
540
  creator: string[];
479
541
  see_also: string[];
480
- representations: {
481
- sitelen_emosi: string;
482
- sitelen_pona: string[];
483
- sitelen_sitelen: string;
484
- ucsur: string;
485
- };
486
542
  source_language: string;
487
543
  usage_category: "core" | "widespread" | "common" | "uncommon" | "rare" | "obscure";
488
544
  word: string;
@@ -494,18 +550,27 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
494
550
  author: string;
495
551
  link: string;
496
552
  }[];
497
- usage: Partial<Record<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, number>>;
553
+ usage: Record<string, number>;
498
554
  translations: Record<string, {
499
555
  etymology: {
500
556
  language: string;
501
557
  definition?: string | undefined;
502
558
  }[];
503
559
  commentary: string;
504
- definitions: string;
560
+ definition: string;
505
561
  sp_etymology: string;
506
562
  }>;
507
563
  ku_data?: Record<string, number> | undefined;
508
- sona_pona?: string | undefined;
564
+ resources?: {
565
+ sona_pona?: string | undefined;
566
+ lipamanka_semantic?: string | undefined;
567
+ } | undefined;
568
+ representations?: {
569
+ sitelen_emosi?: string | undefined;
570
+ ligatures?: string[] | undefined;
571
+ sitelen_sitelen?: string | undefined;
572
+ ucsur?: string | undefined;
573
+ } | undefined;
509
574
  pu_verbatim?: {
510
575
  en: string;
511
576
  fr: string;
@@ -513,6 +578,7 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
513
578
  eo: string;
514
579
  } | undefined;
515
580
  }, {
581
+ id: string;
516
582
  author_verbatim: string;
517
583
  author_verbatim_source: string;
518
584
  book: "pu" | "ku suli" | "ku lili" | "none";
@@ -520,12 +586,6 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
520
586
  coined_year: string;
521
587
  creator: string[];
522
588
  see_also: string[];
523
- representations: {
524
- sitelen_emosi: string;
525
- sitelen_pona: string[];
526
- sitelen_sitelen: string;
527
- ucsur: string;
528
- };
529
589
  source_language: string;
530
590
  usage_category: "core" | "widespread" | "common" | "uncommon" | "rare" | "obscure";
531
591
  word: string;
@@ -537,18 +597,27 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
537
597
  author: string;
538
598
  link: string;
539
599
  }[];
540
- usage: Partial<Record<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, number>>;
600
+ usage: Record<string, number>;
541
601
  translations: Record<string, {
542
602
  etymology: {
543
603
  language: string;
544
604
  definition?: string | undefined;
545
605
  }[];
546
606
  commentary: string;
547
- definitions: string;
607
+ definition: string;
548
608
  sp_etymology: string;
549
609
  }>;
550
610
  ku_data?: Record<string, number> | undefined;
551
- sona_pona?: string | undefined;
611
+ resources?: {
612
+ sona_pona?: string | undefined;
613
+ lipamanka_semantic?: string | undefined;
614
+ } | undefined;
615
+ representations?: {
616
+ sitelen_emosi?: string | undefined;
617
+ ligatures?: string[] | undefined;
618
+ sitelen_sitelen?: string | undefined;
619
+ ucsur?: string | undefined;
620
+ } | undefined;
552
621
  pu_verbatim?: {
553
622
  en: string;
554
623
  fr: string;
@@ -557,7 +626,9 @@ declare const Words: z.ZodRecord<z.ZodString, z.ZodObject<{
557
626
  } | undefined;
558
627
  }>>;
559
628
  type Words = z.infer<typeof Words>;
629
+ type LocalizedWord = Words[string];
560
630
  declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
631
+ id: z.ZodString;
561
632
  author_verbatim: z.ZodString;
562
633
  author_verbatim_source: z.ZodString;
563
634
  book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
@@ -566,23 +637,32 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
566
637
  creator: z.ZodArray<z.ZodString, "many">;
567
638
  ku_data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
568
639
  see_also: z.ZodArray<z.ZodString, "many">;
569
- sona_pona: z.ZodOptional<z.ZodString>;
570
- representations: z.ZodObject<{
571
- sitelen_emosi: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
572
- sitelen_pona: z.ZodArray<z.ZodString, "many">;
573
- sitelen_sitelen: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
574
- ucsur: z.ZodUnion<[z.ZodString, z.ZodLiteral<"">]>;
640
+ resources: z.ZodOptional<z.ZodObject<{
641
+ sona_pona: z.ZodOptional<z.ZodString>;
642
+ lipamanka_semantic: z.ZodOptional<z.ZodString>;
575
643
  }, "strip", z.ZodTypeAny, {
576
- sitelen_emosi: string;
577
- sitelen_pona: string[];
578
- sitelen_sitelen: string;
579
- ucsur: string;
644
+ sona_pona?: string | undefined;
645
+ lipamanka_semantic?: string | undefined;
580
646
  }, {
581
- sitelen_emosi: string;
582
- sitelen_pona: string[];
583
- sitelen_sitelen: string;
584
- ucsur: string;
585
- }>;
647
+ sona_pona?: string | undefined;
648
+ lipamanka_semantic?: string | undefined;
649
+ }>>;
650
+ representations: z.ZodOptional<z.ZodObject<{
651
+ sitelen_emosi: z.ZodOptional<z.ZodString>;
652
+ ligatures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
653
+ sitelen_sitelen: z.ZodOptional<z.ZodString>;
654
+ ucsur: z.ZodOptional<z.ZodString>;
655
+ }, "strip", z.ZodTypeAny, {
656
+ sitelen_emosi?: string | undefined;
657
+ ligatures?: string[] | undefined;
658
+ sitelen_sitelen?: string | undefined;
659
+ ucsur?: string | undefined;
660
+ }, {
661
+ sitelen_emosi?: string | undefined;
662
+ ligatures?: string[] | undefined;
663
+ sitelen_sitelen?: string | undefined;
664
+ ucsur?: string | undefined;
665
+ }>>;
586
666
  source_language: z.ZodString;
587
667
  usage_category: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"widespread">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"rare">, z.ZodLiteral<"obscure">]>;
588
668
  word: z.ZodString;
@@ -622,10 +702,10 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
622
702
  de: string;
623
703
  eo: string;
624
704
  }>>;
625
- usage: z.ZodRecord<z.ZodType<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, z.ZodTypeDef, `20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`>, z.ZodNumber>;
705
+ usage: z.ZodRecord<z.ZodString, z.ZodNumber>;
626
706
  translations: z.ZodRecord<z.ZodString, z.ZodObject<{
627
707
  commentary: z.ZodString;
628
- definitions: z.ZodString;
708
+ definition: z.ZodString;
629
709
  etymology: z.ZodArray<z.ZodObject<{
630
710
  definition: z.ZodOptional<z.ZodString>;
631
711
  language: z.ZodString;
@@ -643,7 +723,7 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
643
723
  definition?: string | undefined;
644
724
  }[];
645
725
  commentary: string;
646
- definitions: string;
726
+ definition: string;
647
727
  sp_etymology: string;
648
728
  }, {
649
729
  etymology: {
@@ -651,10 +731,11 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
651
731
  definition?: string | undefined;
652
732
  }[];
653
733
  commentary: string;
654
- definitions: string;
734
+ definition: string;
655
735
  sp_etymology: string;
656
736
  }>>;
657
737
  }, "strip", z.ZodTypeAny, {
738
+ id: string;
658
739
  author_verbatim: string;
659
740
  author_verbatim_source: string;
660
741
  book: "pu" | "ku suli" | "ku lili" | "none";
@@ -662,12 +743,6 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
662
743
  coined_year: string;
663
744
  creator: string[];
664
745
  see_also: string[];
665
- representations: {
666
- sitelen_emosi: string;
667
- sitelen_pona: string[];
668
- sitelen_sitelen: string;
669
- ucsur: string;
670
- };
671
746
  source_language: string;
672
747
  usage_category: "core" | "widespread" | "common" | "uncommon" | "rare" | "obscure";
673
748
  word: string;
@@ -679,18 +754,27 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
679
754
  author: string;
680
755
  link: string;
681
756
  }[];
682
- usage: Partial<Record<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, number>>;
757
+ usage: Record<string, number>;
683
758
  translations: Record<string, {
684
759
  etymology: {
685
760
  language: string;
686
761
  definition?: string | undefined;
687
762
  }[];
688
763
  commentary: string;
689
- definitions: string;
764
+ definition: string;
690
765
  sp_etymology: string;
691
766
  }>;
692
767
  ku_data?: Record<string, number> | undefined;
693
- sona_pona?: string | undefined;
768
+ resources?: {
769
+ sona_pona?: string | undefined;
770
+ lipamanka_semantic?: string | undefined;
771
+ } | undefined;
772
+ representations?: {
773
+ sitelen_emosi?: string | undefined;
774
+ ligatures?: string[] | undefined;
775
+ sitelen_sitelen?: string | undefined;
776
+ ucsur?: string | undefined;
777
+ } | undefined;
694
778
  pu_verbatim?: {
695
779
  en: string;
696
780
  fr: string;
@@ -698,6 +782,7 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
698
782
  eo: string;
699
783
  } | undefined;
700
784
  }, {
785
+ id: string;
701
786
  author_verbatim: string;
702
787
  author_verbatim_source: string;
703
788
  book: "pu" | "ku suli" | "ku lili" | "none";
@@ -705,12 +790,6 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
705
790
  coined_year: string;
706
791
  creator: string[];
707
792
  see_also: string[];
708
- representations: {
709
- sitelen_emosi: string;
710
- sitelen_pona: string[];
711
- sitelen_sitelen: string;
712
- ucsur: string;
713
- };
714
793
  source_language: string;
715
794
  usage_category: "core" | "widespread" | "common" | "uncommon" | "rare" | "obscure";
716
795
  word: string;
@@ -722,18 +801,27 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
722
801
  author: string;
723
802
  link: string;
724
803
  }[];
725
- usage: Partial<Record<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, number>>;
804
+ usage: Record<string, number>;
726
805
  translations: Record<string, {
727
806
  etymology: {
728
807
  language: string;
729
808
  definition?: string | undefined;
730
809
  }[];
731
810
  commentary: string;
732
- definitions: string;
811
+ definition: string;
733
812
  sp_etymology: string;
734
813
  }>;
735
814
  ku_data?: Record<string, number> | undefined;
736
- sona_pona?: string | undefined;
815
+ resources?: {
816
+ sona_pona?: string | undefined;
817
+ lipamanka_semantic?: string | undefined;
818
+ } | undefined;
819
+ representations?: {
820
+ sitelen_emosi?: string | undefined;
821
+ ligatures?: string[] | undefined;
822
+ sitelen_sitelen?: string | undefined;
823
+ ucsur?: string | undefined;
824
+ } | undefined;
737
825
  pu_verbatim?: {
738
826
  en: string;
739
827
  fr: string;
@@ -743,6 +831,7 @@ declare const Sandbox: z.ZodRecord<z.ZodString, z.ZodObject<{
743
831
  }>>;
744
832
  type Sandbox = z.infer<typeof Sandbox>;
745
833
  declare const Signs: z.ZodRecord<z.ZodString, z.ZodObject<{
834
+ id: z.ZodString;
746
835
  etymology: z.ZodArray<z.ZodObject<{
747
836
  language: z.ZodString;
748
837
  sign: z.ZodOptional<z.ZodString>;
@@ -754,7 +843,6 @@ declare const Signs: z.ZodRecord<z.ZodString, z.ZodObject<{
754
843
  sign?: string | undefined;
755
844
  }>, "many">;
756
845
  definition: z.ZodString;
757
- id: z.ZodString;
758
846
  is_two_handed: z.ZodBoolean;
759
847
  new_gloss: z.ZodString;
760
848
  old_gloss: z.ZodString;
@@ -814,12 +902,21 @@ declare const Signs: z.ZodRecord<z.ZodString, z.ZodObject<{
814
902
  icons: string;
815
903
  }>>;
816
904
  }, "strip", z.ZodTypeAny, {
905
+ id: string;
817
906
  etymology: {
818
907
  language: string;
819
908
  sign?: string | undefined;
820
909
  }[];
910
+ translations: Record<string, {
911
+ parameters: {
912
+ handshape?: string | undefined;
913
+ movement?: string | undefined;
914
+ placement?: string | undefined;
915
+ orientation?: string | undefined;
916
+ };
917
+ icons: string;
918
+ }>;
821
919
  definition: string;
822
- id: string;
823
920
  is_two_handed: boolean;
824
921
  new_gloss: string;
825
922
  old_gloss: string;
@@ -831,6 +928,12 @@ declare const Signs: z.ZodRecord<z.ZodString, z.ZodObject<{
831
928
  gif: string;
832
929
  mp4: string;
833
930
  };
931
+ }, {
932
+ id: string;
933
+ etymology: {
934
+ language: string;
935
+ sign?: string | undefined;
936
+ }[];
834
937
  translations: Record<string, {
835
938
  parameters: {
836
939
  handshape?: string | undefined;
@@ -840,13 +943,7 @@ declare const Signs: z.ZodRecord<z.ZodString, z.ZodObject<{
840
943
  };
841
944
  icons: string;
842
945
  }>;
843
- }, {
844
- etymology: {
845
- language: string;
846
- sign?: string | undefined;
847
- }[];
848
946
  definition: string;
849
- id: string;
850
947
  is_two_handed: boolean;
851
948
  new_gloss: string;
852
949
  old_gloss: string;
@@ -858,18 +955,11 @@ declare const Signs: z.ZodRecord<z.ZodString, z.ZodObject<{
858
955
  gif: string;
859
956
  mp4: string;
860
957
  };
861
- translations: Record<string, {
862
- parameters: {
863
- handshape?: string | undefined;
864
- movement?: string | undefined;
865
- placement?: string | undefined;
866
- orientation?: string | undefined;
867
- };
868
- icons: string;
869
- }>;
870
958
  }>>;
871
959
  type Signs = z.infer<typeof Signs>;
960
+ type LocalizedSign = Signs[string];
872
961
  declare const Fingerspelling: z.ZodRecord<z.ZodString, z.ZodObject<{
962
+ id: z.ZodString;
873
963
  etymology: z.ZodArray<z.ZodObject<{
874
964
  language: z.ZodString;
875
965
  sign: z.ZodString;
@@ -880,7 +970,6 @@ declare const Fingerspelling: z.ZodRecord<z.ZodString, z.ZodObject<{
880
970
  language: string;
881
971
  sign: string;
882
972
  }>, "many">;
883
- id: z.ZodString;
884
973
  is_two_handed: z.ZodBoolean;
885
974
  signwriting: z.ZodObject<{
886
975
  fsw: z.ZodString;
@@ -935,11 +1024,19 @@ declare const Fingerspelling: z.ZodRecord<z.ZodString, z.ZodObject<{
935
1024
  };
936
1025
  }>>;
937
1026
  }, "strip", z.ZodTypeAny, {
1027
+ id: string;
938
1028
  etymology: {
939
1029
  language: string;
940
1030
  sign: string;
941
1031
  }[];
942
- id: string;
1032
+ translations: Record<string, {
1033
+ parameters: {
1034
+ handshape?: string | undefined;
1035
+ movement?: string | undefined;
1036
+ placement?: string | undefined;
1037
+ orientation?: string | undefined;
1038
+ };
1039
+ }>;
943
1040
  is_two_handed: boolean;
944
1041
  signwriting: {
945
1042
  fsw: string;
@@ -949,6 +1046,12 @@ declare const Fingerspelling: z.ZodRecord<z.ZodString, z.ZodObject<{
949
1046
  gif?: string | undefined;
950
1047
  mp4?: string | undefined;
951
1048
  };
1049
+ }, {
1050
+ id: string;
1051
+ etymology: {
1052
+ language: string;
1053
+ sign: string;
1054
+ }[];
952
1055
  translations: Record<string, {
953
1056
  parameters: {
954
1057
  handshape?: string | undefined;
@@ -957,12 +1060,6 @@ declare const Fingerspelling: z.ZodRecord<z.ZodString, z.ZodObject<{
957
1060
  orientation?: string | undefined;
958
1061
  };
959
1062
  }>;
960
- }, {
961
- etymology: {
962
- language: string;
963
- sign: string;
964
- }[];
965
- id: string;
966
1063
  is_two_handed: boolean;
967
1064
  signwriting: {
968
1065
  fsw: string;
@@ -972,21 +1069,15 @@ declare const Fingerspelling: z.ZodRecord<z.ZodString, z.ZodObject<{
972
1069
  gif?: string | undefined;
973
1070
  mp4?: string | undefined;
974
1071
  };
975
- translations: Record<string, {
976
- parameters: {
977
- handshape?: string | undefined;
978
- movement?: string | undefined;
979
- placement?: string | undefined;
980
- orientation?: string | undefined;
981
- };
982
- }>;
983
1072
  }>>;
984
1073
  type Fingerspelling = z.infer<typeof Fingerspelling>;
1074
+ type LocalizedFingerspellingSign = Fingerspelling[string];
985
1075
  declare const Fonts: z.ZodRecord<z.ZodString, z.ZodObject<{
1076
+ id: z.ZodString;
986
1077
  creator: z.ZodArray<z.ZodString, "many">;
987
1078
  features: z.ZodArray<z.ZodString, "many">;
988
1079
  filename: z.ZodString;
989
- last_updated: z.ZodOptional<z.ZodType<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, z.ZodTypeDef, `20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`>>;
1080
+ last_updated: z.ZodOptional<z.ZodString>;
990
1081
  license: z.ZodString;
991
1082
  ligatures: z.ZodBoolean;
992
1083
  name: z.ZodString;
@@ -1008,12 +1099,13 @@ declare const Fonts: z.ZodRecord<z.ZodString, z.ZodObject<{
1008
1099
  webpage?: string | undefined;
1009
1100
  }>;
1010
1101
  }, "strip", z.ZodTypeAny, {
1102
+ id: string;
1011
1103
  creator: string[];
1104
+ ligatures: boolean;
1012
1105
  ucsur: boolean;
1013
1106
  features: string[];
1014
1107
  filename: string;
1015
1108
  license: string;
1016
- ligatures: boolean;
1017
1109
  name: string;
1018
1110
  style: string;
1019
1111
  version: string;
@@ -1023,14 +1115,15 @@ declare const Fonts: z.ZodRecord<z.ZodString, z.ZodObject<{
1023
1115
  repo?: string | undefined;
1024
1116
  webpage?: string | undefined;
1025
1117
  };
1026
- last_updated?: `20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12` | undefined;
1118
+ last_updated?: string | undefined;
1027
1119
  }, {
1120
+ id: string;
1028
1121
  creator: string[];
1122
+ ligatures: boolean;
1029
1123
  ucsur: boolean;
1030
1124
  features: string[];
1031
1125
  filename: string;
1032
1126
  license: string;
1033
- ligatures: boolean;
1034
1127
  name: string;
1035
1128
  style: string;
1036
1129
  version: string;
@@ -1040,7 +1133,7 @@ declare const Fonts: z.ZodRecord<z.ZodString, z.ZodObject<{
1040
1133
  repo?: string | undefined;
1041
1134
  webpage?: string | undefined;
1042
1135
  };
1043
- last_updated?: `20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12` | undefined;
1136
+ last_updated?: string | undefined;
1044
1137
  }>>;
1045
1138
  type Fonts = z.infer<typeof Fonts>;
1046
1139
  declare const Languages: z.ZodRecord<z.ZodString, z.ZodObject<{
@@ -1074,5 +1167,6 @@ declare const Languages: z.ZodRecord<z.ZodString, z.ZodObject<{
1074
1167
  locale: string;
1075
1168
  }>>;
1076
1169
  type Languages = z.infer<typeof Languages>;
1170
+ type Language = Languages[string];
1077
1171
 
1078
- export { CommentaryTranslation, DefinitionTranslation, EtymologyTranslation, Fingerspelling, FingerspellingSign, Font, Fonts, IconTranslation, Languages, ParametersTranslation, Sandbox, Sign, Signs, SitelenPonaTranslation, Word, Words };
1172
+ export { Book, CoinedEra, CommentaryTranslation, DefinitionTranslation, EtymologyTranslation, Fingerspelling, FingerspellingSign, Font, type FontLinks, Fonts, IconTranslation, type Language, Languages, type LocalizedFingerspellingSign, type LocalizedSign, type LocalizedSignParameters, type LocalizedWord, type LocalizedWordCommentary, type LocalizedWordDefinition, type LocalizedWordEtymology, type LocalizedWordSitelenEtymology, ParametersTranslation, Sandbox, Sign, type SignEtymology, type SignVideo, type SignWriting, Signs, SitelenPonaTranslation, UsageCategory, Word, type WordAudio, type WordKuData, type WordPuVerbatim, type WordRepresentations, type WordTranslation, type WordTranslations, type WordUsage, Words, WritingSystem, getTranslatedData };