@kulupu-linku/sona 0.3.7 → 2.1.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.
Files changed (78) hide show
  1. package/dist/index-7uKIarVW.d.mts +1495 -0
  2. package/dist/index-N8h8E1s6.d.mts +398 -0
  3. package/dist/index-nmyNJa57.d.mts +300 -0
  4. package/dist/lib/v1/client.d.mts +1610 -0
  5. package/dist/lib/v1/client.mjs +8 -0
  6. package/dist/lib/v1/client.test.d.mts +30 -0
  7. package/dist/lib/v1/client.test.mjs +2 -0
  8. package/dist/lib/v1/index.d.mts +2 -0
  9. package/dist/lib/v1/index.mjs +137 -0
  10. package/dist/lib/v1/types.d.mts +2 -0
  11. package/dist/lib/v1/types.mjs +1 -0
  12. package/dist/lib/v1/utils.d.mts +26 -0
  13. package/dist/lib/v1/utils.mjs +35 -0
  14. package/dist/lib/v2/client.d.mts +1610 -0
  15. package/dist/lib/v2/client.mjs +8 -0
  16. package/dist/lib/v2/client.test.d.mts +35 -0
  17. package/dist/lib/v2/client.test.mjs +2 -0
  18. package/dist/lib/v2/index.d.mts +2 -0
  19. package/dist/lib/v2/index.mjs +192 -0
  20. package/dist/lib/v2/types.d.mts +2 -0
  21. package/dist/lib/v2/types.mjs +1 -0
  22. package/dist/lib/v2/utils.d.mts +44 -0
  23. package/dist/lib/v2/utils.mjs +38 -0
  24. package/dist/server/index.d.mts +2 -0
  25. package/dist/server/index.mjs +35 -0
  26. package/dist/server/utils.d.mts +27 -0
  27. package/dist/server/utils.mjs +31 -0
  28. package/dist/server/v1/index.d.mts +902 -0
  29. package/dist/server/v1/index.mjs +2 -0
  30. package/dist/server/v2/index.d.mts +1112 -0
  31. package/dist/server/v2/index.mjs +2 -0
  32. package/dist/server/versioning.d.mts +2019 -0
  33. package/dist/server/versioning.mjs +2 -0
  34. package/dist/v1-Da4_o5R1.mjs +261 -0
  35. package/generated/{commentary_translation.json → v1/commentary_translation.json} +1 -1
  36. package/generated/{definition_translation.json → v1/definition_translation.json} +1 -1
  37. package/generated/{etymology_translation.json → v1/etymology_translation.json} +2 -4
  38. package/generated/{fingerspelling.json → v1/fingerspelling.json} +5 -20
  39. package/generated/{fingerspelling_sign.json → v1/fingerspelling_sign.json} +4 -16
  40. package/generated/{font.json → v1/font.json} +1 -1
  41. package/generated/{fonts.json → v1/fonts.json} +1 -1
  42. package/generated/{icon_translation.json → v1/icon_translation.json} +1 -1
  43. package/generated/{languages.json → v1/languages.json} +4 -14
  44. package/generated/{parameters_translation.json → v1/parameters_translation.json} +1 -1
  45. package/generated/{sign.json → v1/sign.json} +3 -8
  46. package/generated/{signs.json → v1/signs.json} +4 -12
  47. package/generated/{sitelen_pona_translation.json → v1/sitelen_pona_translation.json} +1 -1
  48. package/generated/{word.json → v1/word.json} +6 -29
  49. package/generated/v2/fingerspelling.json +184 -0
  50. package/generated/v2/fingerspellings.json +198 -0
  51. package/generated/v2/font.json +164 -0
  52. package/generated/v2/fonts.json +178 -0
  53. package/generated/v2/glyph.json +186 -0
  54. package/generated/v2/glyphs.json +196 -0
  55. package/generated/v2/language.json +76 -0
  56. package/generated/v2/languages.json +86 -0
  57. package/generated/v2/sign.json +221 -0
  58. package/generated/v2/signs.json +235 -0
  59. package/generated/v2/word.json +449 -0
  60. package/generated/v2/words.json +459 -0
  61. package/package.json +66 -35
  62. package/dist/client.d.ts +0 -2
  63. package/dist/client.js +0 -172
  64. package/dist/index.d.ts +0 -2
  65. package/dist/index.js +0 -223
  66. package/dist/lib/client.d.ts +0 -743
  67. package/dist/lib/client.test.d.ts +0 -27
  68. package/dist/lib/index.d.ts +0 -962
  69. package/dist/lib/types.d.ts +0 -17
  70. package/dist/lib/utils.d.ts +0 -13
  71. package/dist/server/index.d.ts +0 -685
  72. package/dist/server/utils.d.ts +0 -19
  73. package/dist/server/v1/index.d.ts +0 -677
  74. package/dist/server/versioning.d.ts +0 -2423
  75. package/dist/utils-B3Jq5OVZ.js +0 -2899
  76. package/dist/utils.d.ts +0 -2
  77. package/dist/utils.js +0 -9
  78. package/generated/words.json +0 -315
@@ -0,0 +1,86 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "propertyNames": {
5
+ "$ref": "#/$defs/__schema0"
6
+ },
7
+ "additionalProperties": {
8
+ "$ref": "#/$defs/__schema1"
9
+ },
10
+ "description": "The languages offered by sona Linku.",
11
+ "$defs": {
12
+ "__schema0": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "A unique identifier for an object in Linku. Generally named after the object."
16
+ },
17
+ "__schema1": {
18
+ "type": "object",
19
+ "properties": {
20
+ "id": {
21
+ "type": "string",
22
+ "minLength": 2,
23
+ "description": "The language's code in Crowdin. Usually its 2 or 3 letter code.",
24
+ "$ref": "#/$defs/__schema0"
25
+ },
26
+ "locale": {
27
+ "type": "string",
28
+ "minLength": 2,
29
+ "description": "The locale code corresponding to the language.",
30
+ "$ref": "#/$defs/__schema0"
31
+ },
32
+ "direction": {
33
+ "anyOf": [
34
+ {
35
+ "$ref": "#/$defs/__schema2"
36
+ },
37
+ {
38
+ "$ref": "#/$defs/__schema3"
39
+ }
40
+ ],
41
+ "description": "The direction of the language's script."
42
+ },
43
+ "name": {
44
+ "type": "object",
45
+ "properties": {
46
+ "en": {
47
+ "type": "string",
48
+ "description": "The name of the language in English."
49
+ },
50
+ "endonym": {
51
+ "type": "string",
52
+ "description": "The name of the language in that language. Prefer if available."
53
+ },
54
+ "tok": {
55
+ "description": "The name of the language in Toki Pona.",
56
+ "$ref": "#/$defs/__schema4"
57
+ }
58
+ },
59
+ "required": [
60
+ "en",
61
+ "endonym"
62
+ ],
63
+ "additionalProperties": false
64
+ }
65
+ },
66
+ "required": [
67
+ "id",
68
+ "locale",
69
+ "direction",
70
+ "name"
71
+ ],
72
+ "additionalProperties": false
73
+ },
74
+ "__schema2": {
75
+ "type": "string",
76
+ "const": "ltr"
77
+ },
78
+ "__schema3": {
79
+ "type": "string",
80
+ "const": "rtl"
81
+ },
82
+ "__schema4": {
83
+ "type": "string"
84
+ }
85
+ }
86
+ }
@@ -0,0 +1,221 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "properties": {
5
+ "id": {
6
+ "$ref": "#/$defs/__schema0"
7
+ },
8
+ "is_two_handed": {
9
+ "$ref": "#/$defs/__schema1"
10
+ },
11
+ "etymology": {
12
+ "$ref": "#/$defs/__schema2"
13
+ },
14
+ "signwriting": {
15
+ "$ref": "#/$defs/__schema5"
16
+ },
17
+ "video": {
18
+ "$ref": "#/$defs/__schema8"
19
+ },
20
+ "translations": {
21
+ "$ref": "#/$defs/__schema12"
22
+ },
23
+ "definition": {
24
+ "$ref": "#/$defs/__schema21"
25
+ },
26
+ "new_gloss": {
27
+ "$ref": "#/$defs/__schema22"
28
+ },
29
+ "old_gloss": {
30
+ "$ref": "#/$defs/__schema23"
31
+ },
32
+ "old_id": {
33
+ "$ref": "#/$defs/__schema24"
34
+ }
35
+ },
36
+ "required": [
37
+ "id",
38
+ "is_two_handed",
39
+ "etymology",
40
+ "signwriting",
41
+ "translations",
42
+ "definition",
43
+ "new_gloss",
44
+ "old_gloss",
45
+ "old_id"
46
+ ],
47
+ "additionalProperties": false,
48
+ "description": "Info on a Luka Pona sign",
49
+ "$defs": {
50
+ "__schema0": {
51
+ "type": "string",
52
+ "minLength": 1,
53
+ "description": "A unique name for the fingerspelling which is also a gloss."
54
+ },
55
+ "__schema1": {
56
+ "type": "boolean",
57
+ "description": "Whether the sign is two-handed or not."
58
+ },
59
+ "__schema2": {
60
+ "type": "array",
61
+ "items": {
62
+ "$ref": "#/$defs/__schema3"
63
+ },
64
+ "description": "Unlocalized etymological values regarding this sign's origin"
65
+ },
66
+ "__schema3": {
67
+ "type": "object",
68
+ "properties": {
69
+ "language": {
70
+ "type": "string",
71
+ "description": "The language of the sign."
72
+ },
73
+ "sign": {
74
+ "description": "The name of the sign such that it could be found in a sign language dictionary.",
75
+ "$ref": "#/$defs/__schema4"
76
+ }
77
+ },
78
+ "required": [
79
+ "language"
80
+ ],
81
+ "additionalProperties": false
82
+ },
83
+ "__schema4": {
84
+ "type": "string"
85
+ },
86
+ "__schema5": {
87
+ "type": "object",
88
+ "properties": {
89
+ "fsw": {
90
+ "$ref": "#/$defs/__schema6"
91
+ },
92
+ "swu": {
93
+ "$ref": "#/$defs/__schema7"
94
+ }
95
+ },
96
+ "required": [
97
+ "fsw",
98
+ "swu"
99
+ ],
100
+ "additionalProperties": false,
101
+ "description": "Scripts for representing a sign as characters."
102
+ },
103
+ "__schema6": {
104
+ "type": "string",
105
+ "minLength": 1,
106
+ "description": "The [Formal SignWriting](https://en.wikipedia.org/wiki/SignWriting) representation of the sign."
107
+ },
108
+ "__schema7": {
109
+ "type": "string",
110
+ "minLength": 1,
111
+ "description": "The [SignWriting with Unicode](https://en.wikipedia.org/wiki/SignWriting) representation of the sign."
112
+ },
113
+ "__schema8": {
114
+ "type": "object",
115
+ "properties": {
116
+ "gif": {
117
+ "$ref": "#/$defs/__schema9"
118
+ },
119
+ "mp4": {
120
+ "$ref": "#/$defs/__schema11"
121
+ }
122
+ },
123
+ "required": [
124
+ "gif",
125
+ "mp4"
126
+ ],
127
+ "additionalProperties": false,
128
+ "description": "Videos of the sign being performed, by format."
129
+ },
130
+ "__schema9": {
131
+ "description": "A link to a gif of the sign being signed.",
132
+ "$ref": "#/$defs/__schema10"
133
+ },
134
+ "__schema10": {
135
+ "type": "string",
136
+ "format": "uri",
137
+ "description": "A URL pointing to some external resource."
138
+ },
139
+ "__schema11": {
140
+ "description": "a link to an mp4 of the sign being signed.",
141
+ "$ref": "#/$defs/__schema10"
142
+ },
143
+ "__schema12": {
144
+ "type": "object",
145
+ "properties": {
146
+ "icons": {
147
+ "type": "string",
148
+ "description": "Localized descriptions of the thing a sign represents."
149
+ },
150
+ "parameters": {
151
+ "type": "object",
152
+ "properties": {
153
+ "handshape": {
154
+ "$ref": "#/$defs/__schema13"
155
+ },
156
+ "movement": {
157
+ "$ref": "#/$defs/__schema15"
158
+ },
159
+ "placement": {
160
+ "$ref": "#/$defs/__schema17"
161
+ },
162
+ "orientation": {
163
+ "$ref": "#/$defs/__schema19"
164
+ }
165
+ },
166
+ "additionalProperties": false,
167
+ "description": "Partly localized descriptions of how a sign is signed."
168
+ }
169
+ },
170
+ "required": [
171
+ "icons",
172
+ "parameters"
173
+ ],
174
+ "additionalProperties": false
175
+ },
176
+ "__schema13": {
177
+ "description": "The shape of the hand when signing, identified by its name in ASL. Should not be translated in any language other than Toki Pona",
178
+ "$ref": "#/$defs/__schema14"
179
+ },
180
+ "__schema14": {
181
+ "type": "string"
182
+ },
183
+ "__schema15": {
184
+ "description": "The motion of the hand when signing.",
185
+ "$ref": "#/$defs/__schema16"
186
+ },
187
+ "__schema16": {
188
+ "type": "string"
189
+ },
190
+ "__schema17": {
191
+ "description": "The placement of the hand when signing.",
192
+ "$ref": "#/$defs/__schema18"
193
+ },
194
+ "__schema18": {
195
+ "type": "string"
196
+ },
197
+ "__schema19": {
198
+ "description": "The orientation of the hand when signing.",
199
+ "$ref": "#/$defs/__schema20"
200
+ },
201
+ "__schema20": {
202
+ "type": "string"
203
+ },
204
+ "__schema21": {
205
+ "type": "string",
206
+ "description": "The definition of the sign as a single toki pona word."
207
+ },
208
+ "__schema22": {
209
+ "type": "string",
210
+ "description": "The more recent, preferred gloss for this sign."
211
+ },
212
+ "__schema23": {
213
+ "type": "string",
214
+ "description": "The older gloss for this sign, similar to `id`."
215
+ },
216
+ "__schema24": {
217
+ "type": "string",
218
+ "description": "Previous, malformed id for the sign."
219
+ }
220
+ }
221
+ }
@@ -0,0 +1,235 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "type": "object",
4
+ "propertyNames": {
5
+ "$ref": "#/$defs/__schema0"
6
+ },
7
+ "additionalProperties": {
8
+ "$ref": "#/$defs/__schema1"
9
+ },
10
+ "description": "A raw data object containing information about Luka Pona signs",
11
+ "$defs": {
12
+ "__schema0": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "A unique identifier for an object in Linku. Generally named after the object."
16
+ },
17
+ "__schema1": {
18
+ "type": "object",
19
+ "properties": {
20
+ "id": {
21
+ "$ref": "#/$defs/__schema2"
22
+ },
23
+ "is_two_handed": {
24
+ "$ref": "#/$defs/__schema3"
25
+ },
26
+ "etymology": {
27
+ "$ref": "#/$defs/__schema4"
28
+ },
29
+ "signwriting": {
30
+ "$ref": "#/$defs/__schema7"
31
+ },
32
+ "video": {
33
+ "$ref": "#/$defs/__schema10"
34
+ },
35
+ "translations": {
36
+ "$ref": "#/$defs/__schema14"
37
+ },
38
+ "definition": {
39
+ "$ref": "#/$defs/__schema23"
40
+ },
41
+ "new_gloss": {
42
+ "$ref": "#/$defs/__schema24"
43
+ },
44
+ "old_gloss": {
45
+ "$ref": "#/$defs/__schema25"
46
+ },
47
+ "old_id": {
48
+ "$ref": "#/$defs/__schema26"
49
+ }
50
+ },
51
+ "required": [
52
+ "id",
53
+ "is_two_handed",
54
+ "etymology",
55
+ "signwriting",
56
+ "translations",
57
+ "definition",
58
+ "new_gloss",
59
+ "old_gloss",
60
+ "old_id"
61
+ ],
62
+ "additionalProperties": false,
63
+ "description": "Info on a Luka Pona sign"
64
+ },
65
+ "__schema2": {
66
+ "description": "A unique name for the fingerspelling which is also a gloss.",
67
+ "$ref": "#/$defs/__schema0"
68
+ },
69
+ "__schema3": {
70
+ "type": "boolean",
71
+ "description": "Whether the sign is two-handed or not."
72
+ },
73
+ "__schema4": {
74
+ "type": "array",
75
+ "items": {
76
+ "$ref": "#/$defs/__schema5"
77
+ },
78
+ "description": "Unlocalized etymological values regarding this sign's origin"
79
+ },
80
+ "__schema5": {
81
+ "type": "object",
82
+ "properties": {
83
+ "language": {
84
+ "type": "string",
85
+ "description": "The language of the sign."
86
+ },
87
+ "sign": {
88
+ "description": "The name of the sign such that it could be found in a sign language dictionary.",
89
+ "$ref": "#/$defs/__schema6"
90
+ }
91
+ },
92
+ "required": [
93
+ "language"
94
+ ],
95
+ "additionalProperties": false
96
+ },
97
+ "__schema6": {
98
+ "type": "string"
99
+ },
100
+ "__schema7": {
101
+ "type": "object",
102
+ "properties": {
103
+ "fsw": {
104
+ "$ref": "#/$defs/__schema8"
105
+ },
106
+ "swu": {
107
+ "$ref": "#/$defs/__schema9"
108
+ }
109
+ },
110
+ "required": [
111
+ "fsw",
112
+ "swu"
113
+ ],
114
+ "additionalProperties": false,
115
+ "description": "Scripts for representing a sign as characters."
116
+ },
117
+ "__schema8": {
118
+ "type": "string",
119
+ "minLength": 1,
120
+ "description": "The [Formal SignWriting](https://en.wikipedia.org/wiki/SignWriting) representation of the sign."
121
+ },
122
+ "__schema9": {
123
+ "type": "string",
124
+ "minLength": 1,
125
+ "description": "The [SignWriting with Unicode](https://en.wikipedia.org/wiki/SignWriting) representation of the sign."
126
+ },
127
+ "__schema10": {
128
+ "type": "object",
129
+ "properties": {
130
+ "gif": {
131
+ "$ref": "#/$defs/__schema11"
132
+ },
133
+ "mp4": {
134
+ "$ref": "#/$defs/__schema13"
135
+ }
136
+ },
137
+ "required": [
138
+ "gif",
139
+ "mp4"
140
+ ],
141
+ "additionalProperties": false,
142
+ "description": "Videos of the sign being performed, by format."
143
+ },
144
+ "__schema11": {
145
+ "description": "A link to a gif of the sign being signed.",
146
+ "$ref": "#/$defs/__schema12"
147
+ },
148
+ "__schema12": {
149
+ "type": "string",
150
+ "format": "uri",
151
+ "description": "A URL pointing to some external resource."
152
+ },
153
+ "__schema13": {
154
+ "description": "a link to an mp4 of the sign being signed.",
155
+ "$ref": "#/$defs/__schema12"
156
+ },
157
+ "__schema14": {
158
+ "type": "object",
159
+ "properties": {
160
+ "icons": {
161
+ "type": "string",
162
+ "description": "Localized descriptions of the thing a sign represents."
163
+ },
164
+ "parameters": {
165
+ "type": "object",
166
+ "properties": {
167
+ "handshape": {
168
+ "$ref": "#/$defs/__schema15"
169
+ },
170
+ "movement": {
171
+ "$ref": "#/$defs/__schema17"
172
+ },
173
+ "placement": {
174
+ "$ref": "#/$defs/__schema19"
175
+ },
176
+ "orientation": {
177
+ "$ref": "#/$defs/__schema21"
178
+ }
179
+ },
180
+ "additionalProperties": false,
181
+ "description": "Partly localized descriptions of how a sign is signed."
182
+ }
183
+ },
184
+ "required": [
185
+ "icons",
186
+ "parameters"
187
+ ],
188
+ "additionalProperties": false
189
+ },
190
+ "__schema15": {
191
+ "description": "The shape of the hand when signing, identified by its name in ASL. Should not be translated in any language other than Toki Pona",
192
+ "$ref": "#/$defs/__schema16"
193
+ },
194
+ "__schema16": {
195
+ "type": "string"
196
+ },
197
+ "__schema17": {
198
+ "description": "The motion of the hand when signing.",
199
+ "$ref": "#/$defs/__schema18"
200
+ },
201
+ "__schema18": {
202
+ "type": "string"
203
+ },
204
+ "__schema19": {
205
+ "description": "The placement of the hand when signing.",
206
+ "$ref": "#/$defs/__schema20"
207
+ },
208
+ "__schema20": {
209
+ "type": "string"
210
+ },
211
+ "__schema21": {
212
+ "description": "The orientation of the hand when signing.",
213
+ "$ref": "#/$defs/__schema22"
214
+ },
215
+ "__schema22": {
216
+ "type": "string"
217
+ },
218
+ "__schema23": {
219
+ "type": "string",
220
+ "description": "The definition of the sign as a single toki pona word."
221
+ },
222
+ "__schema24": {
223
+ "type": "string",
224
+ "description": "The more recent, preferred gloss for this sign."
225
+ },
226
+ "__schema25": {
227
+ "type": "string",
228
+ "description": "The older gloss for this sign, similar to `id`."
229
+ },
230
+ "__schema26": {
231
+ "type": "string",
232
+ "description": "Previous, malformed id for the sign."
233
+ }
234
+ }
235
+ }