@kulupu-linku/sona 0.2.3 → 0.3.0
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/client.js +130 -75
- package/dist/index.js +6 -6
- package/dist/lib/client.d.ts +34 -26
- package/dist/lib/client.test.d.ts +4 -3
- package/dist/lib/index.d.ts +22 -21
- package/dist/lib/types.d.ts +2 -1
- package/dist/lib/utils.d.ts +3 -2
- package/dist/server/index.d.ts +465 -372
- package/dist/server/utils.d.ts +3 -2
- package/dist/server/v1/index.d.ts +464 -372
- package/dist/server/versioning.d.ts +495 -403
- package/generated/sign.json +0 -4
- package/generated/signs.json +0 -4
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Hono } from 'hono';
|
|
3
|
+
|
|
3
4
|
export declare const BASE_URL = "https://raw.githubusercontent.com/lipu-linku/sona";
|
|
4
5
|
export type ApiVersion = "v1";
|
|
5
6
|
export type Versions = {
|
|
@@ -427,14 +428,14 @@ export declare const versions: {
|
|
|
427
428
|
swu: string;
|
|
428
429
|
}>;
|
|
429
430
|
video: z.ZodObject<{
|
|
430
|
-
gif: z.ZodString
|
|
431
|
-
mp4: z.ZodString
|
|
431
|
+
gif: z.ZodOptional<z.ZodString>;
|
|
432
|
+
mp4: z.ZodOptional<z.ZodString>;
|
|
432
433
|
}, "strip", z.ZodTypeAny, {
|
|
433
|
-
gif
|
|
434
|
-
mp4
|
|
434
|
+
gif?: string | undefined;
|
|
435
|
+
mp4?: string | undefined;
|
|
435
436
|
}, {
|
|
436
|
-
gif
|
|
437
|
-
mp4
|
|
437
|
+
gif?: string | undefined;
|
|
438
|
+
mp4?: string | undefined;
|
|
438
439
|
}>;
|
|
439
440
|
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
440
441
|
parameters: z.ZodObject<{
|
|
@@ -495,8 +496,8 @@ export declare const versions: {
|
|
|
495
496
|
swu: string;
|
|
496
497
|
};
|
|
497
498
|
video: {
|
|
498
|
-
gif
|
|
499
|
-
mp4
|
|
499
|
+
gif?: string | undefined;
|
|
500
|
+
mp4?: string | undefined;
|
|
500
501
|
};
|
|
501
502
|
}, {
|
|
502
503
|
id: string;
|
|
@@ -522,8 +523,8 @@ export declare const versions: {
|
|
|
522
523
|
swu: string;
|
|
523
524
|
};
|
|
524
525
|
video: {
|
|
525
|
-
gif
|
|
526
|
-
mp4
|
|
526
|
+
gif?: string | undefined;
|
|
527
|
+
mp4?: string | undefined;
|
|
527
528
|
};
|
|
528
529
|
}>>;
|
|
529
530
|
readonly sign: z.ZodObject<{
|
|
@@ -553,14 +554,14 @@ export declare const versions: {
|
|
|
553
554
|
swu: string;
|
|
554
555
|
}>;
|
|
555
556
|
video: z.ZodObject<{
|
|
556
|
-
gif: z.ZodString
|
|
557
|
-
mp4: z.ZodString
|
|
557
|
+
gif: z.ZodOptional<z.ZodString>;
|
|
558
|
+
mp4: z.ZodOptional<z.ZodString>;
|
|
558
559
|
}, "strip", z.ZodTypeAny, {
|
|
559
|
-
gif
|
|
560
|
-
mp4
|
|
560
|
+
gif?: string | undefined;
|
|
561
|
+
mp4?: string | undefined;
|
|
561
562
|
}, {
|
|
562
|
-
gif
|
|
563
|
-
mp4
|
|
563
|
+
gif?: string | undefined;
|
|
564
|
+
mp4?: string | undefined;
|
|
564
565
|
}>;
|
|
565
566
|
}, "strip", z.ZodTypeAny, {
|
|
566
567
|
id: string;
|
|
@@ -577,8 +578,8 @@ export declare const versions: {
|
|
|
577
578
|
swu: string;
|
|
578
579
|
};
|
|
579
580
|
video: {
|
|
580
|
-
gif
|
|
581
|
-
mp4
|
|
581
|
+
gif?: string | undefined;
|
|
582
|
+
mp4?: string | undefined;
|
|
582
583
|
};
|
|
583
584
|
}, {
|
|
584
585
|
id: string;
|
|
@@ -595,8 +596,8 @@ export declare const versions: {
|
|
|
595
596
|
swu: string;
|
|
596
597
|
};
|
|
597
598
|
video: {
|
|
598
|
-
gif
|
|
599
|
-
mp4
|
|
599
|
+
gif?: string | undefined;
|
|
600
|
+
mp4?: string | undefined;
|
|
600
601
|
};
|
|
601
602
|
}>;
|
|
602
603
|
readonly fingerspelling: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
@@ -1526,14 +1527,14 @@ export declare const versions: {
|
|
|
1526
1527
|
swu: string;
|
|
1527
1528
|
}>;
|
|
1528
1529
|
video: z.ZodObject<{
|
|
1529
|
-
gif: z.ZodString
|
|
1530
|
-
mp4: z.ZodString
|
|
1530
|
+
gif: z.ZodOptional<z.ZodString>;
|
|
1531
|
+
mp4: z.ZodOptional<z.ZodString>;
|
|
1531
1532
|
}, "strip", z.ZodTypeAny, {
|
|
1532
|
-
gif
|
|
1533
|
-
mp4
|
|
1533
|
+
gif?: string | undefined;
|
|
1534
|
+
mp4?: string | undefined;
|
|
1534
1535
|
}, {
|
|
1535
|
-
gif
|
|
1536
|
-
mp4
|
|
1536
|
+
gif?: string | undefined;
|
|
1537
|
+
mp4?: string | undefined;
|
|
1537
1538
|
}>;
|
|
1538
1539
|
translations: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1539
1540
|
parameters: z.ZodObject<{
|
|
@@ -1594,8 +1595,8 @@ export declare const versions: {
|
|
|
1594
1595
|
swu: string;
|
|
1595
1596
|
};
|
|
1596
1597
|
video: {
|
|
1597
|
-
gif
|
|
1598
|
-
mp4
|
|
1598
|
+
gif?: string | undefined;
|
|
1599
|
+
mp4?: string | undefined;
|
|
1599
1600
|
};
|
|
1600
1601
|
}, {
|
|
1601
1602
|
id: string;
|
|
@@ -1621,8 +1622,8 @@ export declare const versions: {
|
|
|
1621
1622
|
swu: string;
|
|
1622
1623
|
};
|
|
1623
1624
|
video: {
|
|
1624
|
-
gif
|
|
1625
|
-
mp4
|
|
1625
|
+
gif?: string | undefined;
|
|
1626
|
+
mp4?: string | undefined;
|
|
1626
1627
|
};
|
|
1627
1628
|
}>>;
|
|
1628
1629
|
};
|
|
@@ -1738,395 +1739,486 @@ export type FilesToVariables<V extends ApiVersion, T extends Versions[ApiVersion
|
|
|
1738
1739
|
[K in keyof T]: T[K]["schema"] extends z.ZodType ? T[K]["schema"]["_output"] : never;
|
|
1739
1740
|
};
|
|
1740
1741
|
export declare const apps: {
|
|
1741
|
-
readonly v1: Hono<
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
author_verbatim: string;
|
|
1748
|
-
author_verbatim_source: string;
|
|
1749
|
-
book: "pu" | "ku suli" | "ku lili" | "none";
|
|
1750
|
-
coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
|
|
1751
|
-
coined_year: string;
|
|
1752
|
-
creator: string[];
|
|
1753
|
-
see_also: string[];
|
|
1754
|
-
source_language: string;
|
|
1755
|
-
usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
|
|
1756
|
-
word: string;
|
|
1757
|
-
deprecated: boolean;
|
|
1758
|
-
etymology: {
|
|
1759
|
-
word?: string | undefined;
|
|
1760
|
-
alt?: string | undefined;
|
|
1761
|
-
}[];
|
|
1762
|
-
audio: {
|
|
1763
|
-
author: string;
|
|
1764
|
-
link: string;
|
|
1765
|
-
}[];
|
|
1766
|
-
usage: Record<string, number>;
|
|
1767
|
-
translations: Record<string, {
|
|
1768
|
-
etymology: {
|
|
1769
|
-
language: string;
|
|
1770
|
-
definition?: string | undefined;
|
|
1771
|
-
}[];
|
|
1772
|
-
commentary: string;
|
|
1773
|
-
definition: string;
|
|
1774
|
-
sp_etymology: string;
|
|
1775
|
-
}>;
|
|
1776
|
-
ku_data?: Record<string, number> | undefined;
|
|
1777
|
-
resources?: {
|
|
1778
|
-
sona_pona?: string | undefined;
|
|
1779
|
-
lipamanka_semantic?: string | undefined;
|
|
1780
|
-
} | undefined;
|
|
1781
|
-
representations?: {
|
|
1782
|
-
sitelen_emosi?: string | undefined;
|
|
1783
|
-
sitelen_jelo?: string[] | undefined;
|
|
1784
|
-
ligatures?: string[] | undefined;
|
|
1785
|
-
sitelen_sitelen?: string | undefined;
|
|
1786
|
-
ucsur?: string | undefined;
|
|
1787
|
-
} | undefined;
|
|
1788
|
-
pu_verbatim?: {
|
|
1789
|
-
en: string;
|
|
1790
|
-
fr: string;
|
|
1791
|
-
de: string;
|
|
1792
|
-
eo: string;
|
|
1793
|
-
} | undefined;
|
|
1794
|
-
}>> & import("hono").ToSchema<"get", "/words/:word", {
|
|
1795
|
-
query: {
|
|
1796
|
-
lang?: string | string[] | undefined;
|
|
1742
|
+
readonly v1: Hono<{}, {
|
|
1743
|
+
"/": {
|
|
1744
|
+
$get: {
|
|
1745
|
+
input: {};
|
|
1746
|
+
output: {};
|
|
1747
|
+
};
|
|
1797
1748
|
};
|
|
1798
1749
|
} & {
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
author_verbatim: string;
|
|
1858
|
-
author_verbatim_source: string;
|
|
1859
|
-
book: "pu" | "ku suli" | "ku lili" | "none";
|
|
1860
|
-
coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
|
|
1861
|
-
coined_year: string;
|
|
1862
|
-
creator: string[];
|
|
1863
|
-
see_also: string[];
|
|
1864
|
-
source_language: string;
|
|
1865
|
-
usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
|
|
1866
|
-
word: string;
|
|
1867
|
-
deprecated: boolean;
|
|
1868
|
-
etymology: {
|
|
1869
|
-
word?: string | undefined;
|
|
1870
|
-
alt?: string | undefined;
|
|
1871
|
-
}[];
|
|
1872
|
-
audio: {
|
|
1873
|
-
author: string;
|
|
1874
|
-
link: string;
|
|
1875
|
-
}[];
|
|
1876
|
-
usage: Record<string, number>;
|
|
1877
|
-
translations: Record<string, {
|
|
1878
|
-
etymology: {
|
|
1879
|
-
language: string;
|
|
1880
|
-
definition?: string | undefined;
|
|
1881
|
-
}[];
|
|
1882
|
-
commentary: string;
|
|
1883
|
-
definition: string;
|
|
1884
|
-
sp_etymology: string;
|
|
1885
|
-
}>;
|
|
1886
|
-
ku_data?: Record<string, number> | undefined;
|
|
1887
|
-
resources?: {
|
|
1888
|
-
sona_pona?: string | undefined;
|
|
1889
|
-
lipamanka_semantic?: string | undefined;
|
|
1890
|
-
} | undefined;
|
|
1891
|
-
representations?: {
|
|
1892
|
-
sitelen_emosi?: string | undefined;
|
|
1893
|
-
sitelen_jelo?: string[] | undefined;
|
|
1894
|
-
ligatures?: string[] | undefined;
|
|
1895
|
-
sitelen_sitelen?: string | undefined;
|
|
1896
|
-
ucsur?: string | undefined;
|
|
1897
|
-
} | undefined;
|
|
1898
|
-
pu_verbatim?: {
|
|
1899
|
-
en: string;
|
|
1900
|
-
fr: string;
|
|
1901
|
-
de: string;
|
|
1902
|
-
eo: string;
|
|
1903
|
-
} | undefined;
|
|
1904
|
-
}>> & import("hono").ToSchema<"get", "/sandbox/:word", {
|
|
1905
|
-
query: {
|
|
1906
|
-
lang?: string | string[] | undefined;
|
|
1750
|
+
"/words": {
|
|
1751
|
+
$get: {
|
|
1752
|
+
input: {
|
|
1753
|
+
query: {
|
|
1754
|
+
lang?: string | string[] | undefined;
|
|
1755
|
+
};
|
|
1756
|
+
};
|
|
1757
|
+
output: Record<string, {
|
|
1758
|
+
id: string;
|
|
1759
|
+
author_verbatim: string;
|
|
1760
|
+
author_verbatim_source: string;
|
|
1761
|
+
book: "pu" | "ku suli" | "ku lili" | "none";
|
|
1762
|
+
coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
|
|
1763
|
+
coined_year: string;
|
|
1764
|
+
creator: string[];
|
|
1765
|
+
see_also: string[];
|
|
1766
|
+
source_language: string;
|
|
1767
|
+
usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
|
|
1768
|
+
word: string;
|
|
1769
|
+
deprecated: boolean;
|
|
1770
|
+
etymology: {
|
|
1771
|
+
word?: string | undefined;
|
|
1772
|
+
alt?: string | undefined;
|
|
1773
|
+
}[];
|
|
1774
|
+
audio: {
|
|
1775
|
+
author: string;
|
|
1776
|
+
link: string;
|
|
1777
|
+
}[];
|
|
1778
|
+
usage: Record<string, number>;
|
|
1779
|
+
translations: Record<string, {
|
|
1780
|
+
etymology: {
|
|
1781
|
+
language: string;
|
|
1782
|
+
definition?: string | undefined;
|
|
1783
|
+
}[];
|
|
1784
|
+
commentary: string;
|
|
1785
|
+
definition: string;
|
|
1786
|
+
sp_etymology: string;
|
|
1787
|
+
}>;
|
|
1788
|
+
ku_data?: Record<string, number> | undefined;
|
|
1789
|
+
resources?: {
|
|
1790
|
+
sona_pona?: string | undefined;
|
|
1791
|
+
lipamanka_semantic?: string | undefined;
|
|
1792
|
+
} | undefined;
|
|
1793
|
+
representations?: {
|
|
1794
|
+
sitelen_emosi?: string | undefined;
|
|
1795
|
+
sitelen_jelo?: string[] | undefined;
|
|
1796
|
+
ligatures?: string[] | undefined;
|
|
1797
|
+
sitelen_sitelen?: string | undefined;
|
|
1798
|
+
ucsur?: string | undefined;
|
|
1799
|
+
} | undefined;
|
|
1800
|
+
pu_verbatim?: {
|
|
1801
|
+
en: string;
|
|
1802
|
+
fr: string;
|
|
1803
|
+
de: string;
|
|
1804
|
+
eo: string;
|
|
1805
|
+
} | undefined;
|
|
1806
|
+
}>;
|
|
1807
|
+
};
|
|
1907
1808
|
};
|
|
1908
1809
|
} & {
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
}[];
|
|
1971
|
-
translations: Record<string, {
|
|
1972
|
-
parameters: {
|
|
1973
|
-
handshape?: string | undefined;
|
|
1974
|
-
movement?: string | undefined;
|
|
1975
|
-
placement?: string | undefined;
|
|
1976
|
-
orientation?: string | undefined;
|
|
1810
|
+
"/words/:word": {
|
|
1811
|
+
$get: {
|
|
1812
|
+
input: {
|
|
1813
|
+
query: {
|
|
1814
|
+
lang?: string | string[] | undefined;
|
|
1815
|
+
};
|
|
1816
|
+
} & {
|
|
1817
|
+
param: {
|
|
1818
|
+
word: string;
|
|
1819
|
+
};
|
|
1820
|
+
};
|
|
1821
|
+
output: import('./utils').Result<{
|
|
1822
|
+
id: string;
|
|
1823
|
+
author_verbatim: string;
|
|
1824
|
+
author_verbatim_source: string;
|
|
1825
|
+
book: "pu" | "ku suli" | "ku lili" | "none";
|
|
1826
|
+
coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
|
|
1827
|
+
coined_year: string;
|
|
1828
|
+
creator: string[];
|
|
1829
|
+
see_also: string[];
|
|
1830
|
+
source_language: string;
|
|
1831
|
+
usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
|
|
1832
|
+
word: string;
|
|
1833
|
+
deprecated: boolean;
|
|
1834
|
+
etymology: {
|
|
1835
|
+
word?: string | undefined;
|
|
1836
|
+
alt?: string | undefined;
|
|
1837
|
+
}[];
|
|
1838
|
+
audio: {
|
|
1839
|
+
author: string;
|
|
1840
|
+
link: string;
|
|
1841
|
+
}[];
|
|
1842
|
+
usage: Record<string, number>;
|
|
1843
|
+
translations: Record<string, {
|
|
1844
|
+
etymology: {
|
|
1845
|
+
language: string;
|
|
1846
|
+
definition?: string | undefined;
|
|
1847
|
+
}[];
|
|
1848
|
+
commentary: string;
|
|
1849
|
+
definition: string;
|
|
1850
|
+
sp_etymology: string;
|
|
1851
|
+
}>;
|
|
1852
|
+
ku_data?: Record<string, number> | undefined;
|
|
1853
|
+
resources?: {
|
|
1854
|
+
sona_pona?: string | undefined;
|
|
1855
|
+
lipamanka_semantic?: string | undefined;
|
|
1856
|
+
} | undefined;
|
|
1857
|
+
representations?: {
|
|
1858
|
+
sitelen_emosi?: string | undefined;
|
|
1859
|
+
sitelen_jelo?: string[] | undefined;
|
|
1860
|
+
ligatures?: string[] | undefined;
|
|
1861
|
+
sitelen_sitelen?: string | undefined;
|
|
1862
|
+
ucsur?: string | undefined;
|
|
1863
|
+
} | undefined;
|
|
1864
|
+
pu_verbatim?: {
|
|
1865
|
+
en: string;
|
|
1866
|
+
fr: string;
|
|
1867
|
+
de: string;
|
|
1868
|
+
eo: string;
|
|
1869
|
+
} | undefined;
|
|
1870
|
+
}>;
|
|
1977
1871
|
};
|
|
1978
|
-
}>;
|
|
1979
|
-
is_two_handed: boolean;
|
|
1980
|
-
signwriting: {
|
|
1981
|
-
fsw: string;
|
|
1982
|
-
swu: string;
|
|
1983
|
-
};
|
|
1984
|
-
video: {
|
|
1985
|
-
gif?: string | undefined;
|
|
1986
|
-
mp4?: string | undefined;
|
|
1987
|
-
};
|
|
1988
|
-
}>> & import("hono").ToSchema<"get", "/luka_pona/fingerspelling/:sign", {
|
|
1989
|
-
query: {
|
|
1990
|
-
lang?: string | string[] | undefined;
|
|
1991
1872
|
};
|
|
1992
1873
|
} & {
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
1874
|
+
"/sandbox": {
|
|
1875
|
+
$get: {
|
|
1876
|
+
input: {
|
|
1877
|
+
query: {
|
|
1878
|
+
lang?: string | string[] | undefined;
|
|
1879
|
+
};
|
|
1880
|
+
};
|
|
1881
|
+
output: Record<string, {
|
|
1882
|
+
id: string;
|
|
1883
|
+
author_verbatim: string;
|
|
1884
|
+
author_verbatim_source: string;
|
|
1885
|
+
book: "pu" | "ku suli" | "ku lili" | "none";
|
|
1886
|
+
coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
|
|
1887
|
+
coined_year: string;
|
|
1888
|
+
creator: string[];
|
|
1889
|
+
see_also: string[];
|
|
1890
|
+
source_language: string;
|
|
1891
|
+
usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
|
|
1892
|
+
word: string;
|
|
1893
|
+
deprecated: boolean;
|
|
1894
|
+
etymology: {
|
|
1895
|
+
word?: string | undefined;
|
|
1896
|
+
alt?: string | undefined;
|
|
1897
|
+
}[];
|
|
1898
|
+
audio: {
|
|
1899
|
+
author: string;
|
|
1900
|
+
link: string;
|
|
1901
|
+
}[];
|
|
1902
|
+
usage: Record<string, number>;
|
|
1903
|
+
translations: Record<string, {
|
|
1904
|
+
etymology: {
|
|
1905
|
+
language: string;
|
|
1906
|
+
definition?: string | undefined;
|
|
1907
|
+
}[];
|
|
1908
|
+
commentary: string;
|
|
1909
|
+
definition: string;
|
|
1910
|
+
sp_etymology: string;
|
|
1911
|
+
}>;
|
|
1912
|
+
ku_data?: Record<string, number> | undefined;
|
|
1913
|
+
resources?: {
|
|
1914
|
+
sona_pona?: string | undefined;
|
|
1915
|
+
lipamanka_semantic?: string | undefined;
|
|
1916
|
+
} | undefined;
|
|
1917
|
+
representations?: {
|
|
1918
|
+
sitelen_emosi?: string | undefined;
|
|
1919
|
+
sitelen_jelo?: string[] | undefined;
|
|
1920
|
+
ligatures?: string[] | undefined;
|
|
1921
|
+
sitelen_sitelen?: string | undefined;
|
|
1922
|
+
ucsur?: string | undefined;
|
|
1923
|
+
} | undefined;
|
|
1924
|
+
pu_verbatim?: {
|
|
1925
|
+
en: string;
|
|
1926
|
+
fr: string;
|
|
1927
|
+
de: string;
|
|
1928
|
+
eo: string;
|
|
1929
|
+
} | undefined;
|
|
1930
|
+
}>;
|
|
2027
1931
|
};
|
|
2028
|
-
icons: string;
|
|
2029
|
-
}>;
|
|
2030
|
-
definition: string;
|
|
2031
|
-
is_two_handed: boolean;
|
|
2032
|
-
new_gloss: string;
|
|
2033
|
-
old_gloss: string;
|
|
2034
|
-
signwriting: {
|
|
2035
|
-
fsw: string;
|
|
2036
|
-
swu: string;
|
|
2037
|
-
};
|
|
2038
|
-
video: {
|
|
2039
|
-
gif: string;
|
|
2040
|
-
mp4: string;
|
|
2041
|
-
};
|
|
2042
|
-
}>> & import("hono").ToSchema<"get", "/luka_pona/signs/:sign", {
|
|
2043
|
-
query: {
|
|
2044
|
-
lang?: string | string[] | undefined;
|
|
2045
1932
|
};
|
|
2046
1933
|
} & {
|
|
2047
|
-
|
|
2048
|
-
|
|
1934
|
+
"/sandbox/:word": {
|
|
1935
|
+
$get: {
|
|
1936
|
+
input: {
|
|
1937
|
+
query: {
|
|
1938
|
+
lang?: string | string[] | undefined;
|
|
1939
|
+
};
|
|
1940
|
+
} & {
|
|
1941
|
+
param: {
|
|
1942
|
+
word: string;
|
|
1943
|
+
};
|
|
1944
|
+
};
|
|
1945
|
+
output: import('./utils').Result<{
|
|
1946
|
+
id: string;
|
|
1947
|
+
author_verbatim: string;
|
|
1948
|
+
author_verbatim_source: string;
|
|
1949
|
+
book: "pu" | "ku suli" | "ku lili" | "none";
|
|
1950
|
+
coined_era: "" | "pre-pu" | "post-pu" | "post-ku";
|
|
1951
|
+
coined_year: string;
|
|
1952
|
+
creator: string[];
|
|
1953
|
+
see_also: string[];
|
|
1954
|
+
source_language: string;
|
|
1955
|
+
usage_category: "core" | "common" | "uncommon" | "obscure" | "sandbox";
|
|
1956
|
+
word: string;
|
|
1957
|
+
deprecated: boolean;
|
|
1958
|
+
etymology: {
|
|
1959
|
+
word?: string | undefined;
|
|
1960
|
+
alt?: string | undefined;
|
|
1961
|
+
}[];
|
|
1962
|
+
audio: {
|
|
1963
|
+
author: string;
|
|
1964
|
+
link: string;
|
|
1965
|
+
}[];
|
|
1966
|
+
usage: Record<string, number>;
|
|
1967
|
+
translations: Record<string, {
|
|
1968
|
+
etymology: {
|
|
1969
|
+
language: string;
|
|
1970
|
+
definition?: string | undefined;
|
|
1971
|
+
}[];
|
|
1972
|
+
commentary: string;
|
|
1973
|
+
definition: string;
|
|
1974
|
+
sp_etymology: string;
|
|
1975
|
+
}>;
|
|
1976
|
+
ku_data?: Record<string, number> | undefined;
|
|
1977
|
+
resources?: {
|
|
1978
|
+
sona_pona?: string | undefined;
|
|
1979
|
+
lipamanka_semantic?: string | undefined;
|
|
1980
|
+
} | undefined;
|
|
1981
|
+
representations?: {
|
|
1982
|
+
sitelen_emosi?: string | undefined;
|
|
1983
|
+
sitelen_jelo?: string[] | undefined;
|
|
1984
|
+
ligatures?: string[] | undefined;
|
|
1985
|
+
sitelen_sitelen?: string | undefined;
|
|
1986
|
+
ucsur?: string | undefined;
|
|
1987
|
+
} | undefined;
|
|
1988
|
+
pu_verbatim?: {
|
|
1989
|
+
en: string;
|
|
1990
|
+
fr: string;
|
|
1991
|
+
de: string;
|
|
1992
|
+
eo: string;
|
|
1993
|
+
} | undefined;
|
|
1994
|
+
}>;
|
|
1995
|
+
};
|
|
2049
1996
|
};
|
|
2050
|
-
}
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
1997
|
+
} & {
|
|
1998
|
+
"/luka_pona/fingerspelling": {
|
|
1999
|
+
$get: {
|
|
2000
|
+
input: {
|
|
2001
|
+
query: {
|
|
2002
|
+
lang?: string | string[] | undefined;
|
|
2003
|
+
};
|
|
2004
|
+
};
|
|
2005
|
+
output: Record<string, {
|
|
2006
|
+
id: string;
|
|
2007
|
+
etymology: {
|
|
2008
|
+
language: string;
|
|
2009
|
+
sign: string;
|
|
2010
|
+
}[];
|
|
2011
|
+
translations: Record<string, {
|
|
2012
|
+
parameters: {
|
|
2013
|
+
handshape?: string | undefined;
|
|
2014
|
+
movement?: string | undefined;
|
|
2015
|
+
placement?: string | undefined;
|
|
2016
|
+
orientation?: string | undefined;
|
|
2017
|
+
};
|
|
2018
|
+
}>;
|
|
2019
|
+
is_two_handed: boolean;
|
|
2020
|
+
signwriting: {
|
|
2021
|
+
fsw: string;
|
|
2022
|
+
swu: string;
|
|
2023
|
+
};
|
|
2024
|
+
video: {
|
|
2025
|
+
gif?: string | undefined;
|
|
2026
|
+
mp4?: string | undefined;
|
|
2027
|
+
};
|
|
2028
|
+
}>;
|
|
2029
|
+
};
|
|
2063
2030
|
};
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2031
|
+
} & {
|
|
2032
|
+
"/luka_pona/fingerspelling/:sign": {
|
|
2033
|
+
$get: {
|
|
2034
|
+
input: {
|
|
2035
|
+
query: {
|
|
2036
|
+
lang?: string | string[] | undefined;
|
|
2037
|
+
};
|
|
2038
|
+
} & {
|
|
2039
|
+
param: {
|
|
2040
|
+
sign: string;
|
|
2041
|
+
};
|
|
2042
|
+
};
|
|
2043
|
+
output: import('./utils').Result<{
|
|
2044
|
+
id: string;
|
|
2045
|
+
etymology: {
|
|
2046
|
+
language: string;
|
|
2047
|
+
sign: string;
|
|
2048
|
+
}[];
|
|
2049
|
+
is_two_handed: boolean;
|
|
2050
|
+
signwriting: {
|
|
2051
|
+
fsw: string;
|
|
2052
|
+
swu: string;
|
|
2053
|
+
};
|
|
2054
|
+
video: {
|
|
2055
|
+
gif?: string | undefined;
|
|
2056
|
+
mp4?: string | undefined;
|
|
2057
|
+
};
|
|
2058
|
+
}>;
|
|
2059
|
+
};
|
|
2067
2060
|
};
|
|
2068
|
-
}
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2061
|
+
} & {
|
|
2062
|
+
"/luka_pona/signs": {
|
|
2063
|
+
$get: {
|
|
2064
|
+
input: {
|
|
2065
|
+
query: {
|
|
2066
|
+
lang?: string | string[] | undefined;
|
|
2067
|
+
};
|
|
2068
|
+
};
|
|
2069
|
+
output: Record<string, {
|
|
2070
|
+
id: string;
|
|
2071
|
+
etymology: {
|
|
2072
|
+
language: string;
|
|
2073
|
+
sign?: string | undefined;
|
|
2074
|
+
}[];
|
|
2075
|
+
translations: Record<string, {
|
|
2076
|
+
parameters: {
|
|
2077
|
+
handshape?: string | undefined;
|
|
2078
|
+
movement?: string | undefined;
|
|
2079
|
+
placement?: string | undefined;
|
|
2080
|
+
orientation?: string | undefined;
|
|
2081
|
+
};
|
|
2082
|
+
icons: string;
|
|
2083
|
+
}>;
|
|
2084
|
+
definition: string;
|
|
2085
|
+
is_two_handed: boolean;
|
|
2086
|
+
new_gloss: string;
|
|
2087
|
+
old_gloss: string;
|
|
2088
|
+
signwriting: {
|
|
2089
|
+
fsw: string;
|
|
2090
|
+
swu: string;
|
|
2091
|
+
};
|
|
2092
|
+
video: {
|
|
2093
|
+
gif?: string | undefined;
|
|
2094
|
+
mp4?: string | undefined;
|
|
2095
|
+
};
|
|
2096
|
+
}>;
|
|
2097
|
+
};
|
|
2084
2098
|
};
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2099
|
+
} & {
|
|
2100
|
+
"/luka_pona/signs/:sign": {
|
|
2101
|
+
$get: {
|
|
2102
|
+
input: {
|
|
2103
|
+
query: {
|
|
2104
|
+
lang?: string | string[] | undefined;
|
|
2105
|
+
};
|
|
2106
|
+
} & {
|
|
2107
|
+
param: {
|
|
2108
|
+
sign: string;
|
|
2109
|
+
};
|
|
2110
|
+
};
|
|
2111
|
+
output: import('./utils').Result<{
|
|
2112
|
+
id: string;
|
|
2113
|
+
etymology: {
|
|
2114
|
+
language: string;
|
|
2115
|
+
sign?: string | undefined;
|
|
2116
|
+
}[];
|
|
2117
|
+
definition: string;
|
|
2118
|
+
is_two_handed: boolean;
|
|
2119
|
+
new_gloss: string;
|
|
2120
|
+
old_gloss: string;
|
|
2121
|
+
signwriting: {
|
|
2122
|
+
fsw: string;
|
|
2123
|
+
swu: string;
|
|
2124
|
+
};
|
|
2125
|
+
video: {
|
|
2126
|
+
gif?: string | undefined;
|
|
2127
|
+
mp4?: string | undefined;
|
|
2128
|
+
};
|
|
2129
|
+
}>;
|
|
2130
|
+
};
|
|
2089
2131
|
};
|
|
2090
|
-
}
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2132
|
+
} & {
|
|
2133
|
+
"/fonts": {
|
|
2134
|
+
$get: {
|
|
2135
|
+
input: {};
|
|
2136
|
+
output: Record<string, {
|
|
2137
|
+
id: string;
|
|
2138
|
+
creator: string[];
|
|
2139
|
+
ligatures: boolean;
|
|
2140
|
+
ucsur: boolean;
|
|
2141
|
+
features: string[];
|
|
2142
|
+
filename: string;
|
|
2143
|
+
license: string;
|
|
2144
|
+
name: string;
|
|
2145
|
+
style: string;
|
|
2146
|
+
version: string;
|
|
2147
|
+
writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
|
|
2148
|
+
links: {
|
|
2149
|
+
fontfile?: string | undefined;
|
|
2150
|
+
repo?: string | undefined;
|
|
2151
|
+
webpage?: string | undefined;
|
|
2152
|
+
};
|
|
2153
|
+
last_updated?: string | undefined;
|
|
2154
|
+
}>;
|
|
2155
|
+
};
|
|
2106
2156
|
};
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2157
|
+
} & {
|
|
2158
|
+
"/fonts/:font": {
|
|
2159
|
+
$get: {
|
|
2160
|
+
input: {
|
|
2161
|
+
param: {
|
|
2162
|
+
font: string;
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
output: import('./utils').Result<{
|
|
2166
|
+
id: string;
|
|
2167
|
+
creator: string[];
|
|
2168
|
+
ligatures: boolean;
|
|
2169
|
+
ucsur: boolean;
|
|
2170
|
+
features: string[];
|
|
2171
|
+
filename: string;
|
|
2172
|
+
license: string;
|
|
2173
|
+
name: string;
|
|
2174
|
+
style: string;
|
|
2175
|
+
version: string;
|
|
2176
|
+
writing_system: "sitelen pona" | "sitelen sitelen" | "alphabet" | "syllabary" | "logography" | "tokiponido alphabet" | "tokiponido syllabary" | "tokiponido logography";
|
|
2177
|
+
links: {
|
|
2178
|
+
fontfile?: string | undefined;
|
|
2179
|
+
repo?: string | undefined;
|
|
2180
|
+
webpage?: string | undefined;
|
|
2181
|
+
};
|
|
2182
|
+
last_updated?: string | undefined;
|
|
2183
|
+
}>;
|
|
2184
|
+
};
|
|
2114
2185
|
};
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2186
|
+
} & {
|
|
2187
|
+
"/languages": {
|
|
2188
|
+
$get: {
|
|
2189
|
+
input: {};
|
|
2190
|
+
output: Record<string, {
|
|
2191
|
+
id: string;
|
|
2192
|
+
name: {
|
|
2193
|
+
en: string;
|
|
2194
|
+
tok?: string | undefined;
|
|
2195
|
+
endonym?: string | undefined;
|
|
2196
|
+
};
|
|
2197
|
+
locale: string;
|
|
2198
|
+
direction: "ltr" | "rtl";
|
|
2199
|
+
}>;
|
|
2200
|
+
};
|
|
2120
2201
|
};
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2202
|
+
} & {
|
|
2203
|
+
"/languages/:language": {
|
|
2204
|
+
$get: {
|
|
2205
|
+
input: {
|
|
2206
|
+
param: {
|
|
2207
|
+
language: string;
|
|
2208
|
+
};
|
|
2209
|
+
};
|
|
2210
|
+
output: import('./utils').Result<{
|
|
2211
|
+
id: string;
|
|
2212
|
+
name: {
|
|
2213
|
+
en: string;
|
|
2214
|
+
tok?: string | undefined;
|
|
2215
|
+
endonym?: string | undefined;
|
|
2216
|
+
};
|
|
2217
|
+
locale: string;
|
|
2218
|
+
direction: "ltr" | "rtl";
|
|
2219
|
+
}>;
|
|
2220
|
+
};
|
|
2127
2221
|
};
|
|
2128
|
-
|
|
2129
|
-
direction: "ltr" | "rtl";
|
|
2130
|
-
}>>, "/">;
|
|
2222
|
+
}, "/">;
|
|
2131
2223
|
};
|
|
2132
2224
|
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>>>;
|