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