@kulupu-linku/sona 2.0.2 → 2.1.1

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 +56 -44
  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,160 +1,235 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "description": "A raw data object containing information about Luka Pona signs",
4
3
  "type": "object",
5
4
  "propertyNames": {
6
5
  "$ref": "#/$defs/__schema0"
7
6
  },
8
7
  "additionalProperties": {
9
- "description": "Info on a Luka Pona sign",
10
- "type": "object",
11
- "properties": {
12
- "id": {
13
- "description": "A unique name for the fingerspelling which is also a gloss.",
14
- "$ref": "#/$defs/__schema0"
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
+ }
15
50
  },
16
- "is_two_handed": {
17
- "description": "Whether the sign is two-handed or not.",
18
- "type": "boolean"
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"
19
77
  },
20
- "etymology": {
21
- "description": "Unlocalized etymological values regarding this sign's origin",
22
- "type": "array",
23
- "items": {
24
- "type": "object",
25
- "properties": {
26
- "language": {
27
- "description": "The language of the sign.",
28
- "type": "string"
29
- },
30
- "sign": {
31
- "description": "The name of the sign such that it could be found in a sign language dictionary.",
32
- "type": "string"
33
- }
34
- },
35
- "required": [
36
- "language"
37
- ],
38
- "additionalProperties": false
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"
39
90
  }
40
91
  },
41
- "signwriting": {
42
- "description": "Scripts for representing a sign as characters.",
43
- "type": "object",
44
- "properties": {
45
- "fsw": {
46
- "description": "The [Formal SignWriting](https://en.wikipedia.org/wiki/SignWriting) representation of the sign.",
47
- "type": "string",
48
- "minLength": 1
49
- },
50
- "swu": {
51
- "description": "The [SignWriting with Unicode](https://en.wikipedia.org/wiki/SignWriting) representation of the sign.",
52
- "type": "string",
53
- "minLength": 1
54
- }
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"
55
105
  },
56
- "required": [
57
- "fsw",
58
- "swu"
59
- ],
60
- "additionalProperties": false
106
+ "swu": {
107
+ "$ref": "#/$defs/__schema9"
108
+ }
61
109
  },
62
- "video": {
63
- "description": "Videos of the sign being performed, by format.",
64
- "type": "object",
65
- "properties": {
66
- "gif": {
67
- "description": "A link to a gif of the sign being signed.",
68
- "$ref": "#/$defs/__schema1"
69
- },
70
- "mp4": {
71
- "description": "a link to an mp4 of the sign being signed.",
72
- "$ref": "#/$defs/__schema1"
73
- }
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"
74
132
  },
75
- "required": [
76
- "gif",
77
- "mp4"
78
- ],
79
- "additionalProperties": false
133
+ "mp4": {
134
+ "$ref": "#/$defs/__schema13"
135
+ }
80
136
  },
81
- "translations": {
82
- "type": "object",
83
- "properties": {
84
- "icons": {
85
- "description": "Localized descriptions of the thing a sign represents.",
86
- "type": "string"
87
- },
88
- "parameters": {
89
- "description": "Partly localized descriptions of how a sign is signed.",
90
- "type": "object",
91
- "properties": {
92
- "handshape": {
93
- "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",
94
- "type": "string"
95
- },
96
- "movement": {
97
- "description": "The motion of the hand when signing.",
98
- "type": "string"
99
- },
100
- "placement": {
101
- "description": "The placement of the hand when signing.",
102
- "type": "string"
103
- },
104
- "orientation": {
105
- "description": "The orientation of the hand when signing.",
106
- "type": "string"
107
- }
108
- },
109
- "additionalProperties": false
110
- }
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."
111
163
  },
112
- "required": [
113
- "icons",
114
- "parameters"
115
- ],
116
- "additionalProperties": false
117
- },
118
- "definition": {
119
- "description": "The definition of the sign as a single toki pona word.",
120
- "type": "string"
121
- },
122
- "new_gloss": {
123
- "description": "The more recent, preferred gloss for this sign.",
124
- "type": "string"
125
- },
126
- "old_gloss": {
127
- "description": "The older gloss for this sign, similar to `id`.",
128
- "type": "string"
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
+ }
129
183
  },
130
- "old_id": {
131
- "description": "Previous, malformed id for the sign.",
132
- "type": "string"
133
- }
134
- },
135
- "required": [
136
- "id",
137
- "is_two_handed",
138
- "etymology",
139
- "signwriting",
140
- "translations",
141
- "definition",
142
- "new_gloss",
143
- "old_gloss",
144
- "old_id"
145
- ],
146
- "additionalProperties": false
147
- },
148
- "$defs": {
149
- "__schema0": {
150
- "description": "A unique identifier for an object in Linku. Generally named after the object.",
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": {
151
219
  "type": "string",
152
- "minLength": 1
220
+ "description": "The definition of the sign as a single toki pona word."
153
221
  },
154
- "__schema1": {
155
- "description": "A URL pointing to some external resource.",
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": {
156
231
  "type": "string",
157
- "format": "uri"
232
+ "description": "Previous, malformed id for the sign."
158
233
  }
159
234
  }
160
235
  }