@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,124 +1,184 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "description": "Info on a fingerspelling 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
+ },
24
+ "required": [
25
+ "id",
26
+ "is_two_handed",
27
+ "etymology",
28
+ "signwriting",
29
+ "translations"
30
+ ],
31
+ "additionalProperties": false,
32
+ "description": "Info on a fingerspelling sign.",
33
+ "$defs": {
34
+ "__schema0": {
35
+ "type": "string",
36
+ "minLength": 1,
37
+ "description": "A unique name for the fingerspelling which is also a gloss."
38
+ },
39
+ "__schema1": {
40
+ "type": "boolean",
41
+ "description": "Whether the sign is two-handed or not."
42
+ },
43
+ "__schema2": {
17
44
  "type": "array",
18
45
  "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
- }
46
+ "$ref": "#/$defs/__schema3"
47
+ },
48
+ "description": "Unlocalized etymological values regarding this sign's origin"
49
+ },
50
+ "__schema3": {
51
+ "type": "object",
52
+ "properties": {
53
+ "language": {
54
+ "type": "string",
55
+ "description": "The language of the sign."
29
56
  },
30
- "required": [
31
- "language"
32
- ],
33
- "additionalProperties": false
34
- }
57
+ "sign": {
58
+ "description": "The name of the sign such that it could be found in a sign language dictionary.",
59
+ "$ref": "#/$defs/__schema4"
60
+ }
61
+ },
62
+ "required": [
63
+ "language"
64
+ ],
65
+ "additionalProperties": false
35
66
  },
36
- "signwriting": {
37
- "description": "Scripts for representing a sign as characters.",
67
+ "__schema4": {
68
+ "type": "string"
69
+ },
70
+ "__schema5": {
38
71
  "type": "object",
39
72
  "properties": {
40
73
  "fsw": {
41
- "description": "The [Formal SignWriting](https://en.wikipedia.org/wiki/SignWriting) representation of the sign.",
42
- "type": "string",
43
- "minLength": 1
74
+ "$ref": "#/$defs/__schema6"
44
75
  },
45
76
  "swu": {
46
- "description": "The [SignWriting with Unicode](https://en.wikipedia.org/wiki/SignWriting) representation of the sign.",
47
- "type": "string",
48
- "minLength": 1
77
+ "$ref": "#/$defs/__schema7"
49
78
  }
50
79
  },
51
80
  "required": [
52
81
  "fsw",
53
82
  "swu"
54
83
  ],
55
- "additionalProperties": false
84
+ "additionalProperties": false,
85
+ "description": "Scripts for representing a sign as characters."
56
86
  },
57
- "video": {
58
- "description": "Videos of the sign being performed, by format.",
87
+ "__schema6": {
88
+ "type": "string",
89
+ "minLength": 1,
90
+ "description": "The [Formal SignWriting](https://en.wikipedia.org/wiki/SignWriting) representation of the sign."
91
+ },
92
+ "__schema7": {
93
+ "type": "string",
94
+ "minLength": 1,
95
+ "description": "The [SignWriting with Unicode](https://en.wikipedia.org/wiki/SignWriting) representation of the sign."
96
+ },
97
+ "__schema8": {
59
98
  "type": "object",
60
99
  "properties": {
61
100
  "gif": {
62
- "description": "A link to a gif of the sign being signed.",
63
- "$ref": "#/$defs/__schema0"
101
+ "$ref": "#/$defs/__schema9"
64
102
  },
65
103
  "mp4": {
66
- "description": "a link to an mp4 of the sign being signed.",
67
- "$ref": "#/$defs/__schema0"
104
+ "$ref": "#/$defs/__schema11"
68
105
  }
69
106
  },
70
107
  "required": [
71
108
  "gif",
72
109
  "mp4"
73
110
  ],
74
- "additionalProperties": false
111
+ "additionalProperties": false,
112
+ "description": "Videos of the sign being performed, by format."
75
113
  },
76
- "translations": {
114
+ "__schema9": {
115
+ "description": "A link to a gif of the sign being signed.",
116
+ "$ref": "#/$defs/__schema10"
117
+ },
118
+ "__schema10": {
119
+ "type": "string",
120
+ "format": "uri",
121
+ "description": "A URL pointing to some external resource."
122
+ },
123
+ "__schema11": {
124
+ "description": "a link to an mp4 of the sign being signed.",
125
+ "$ref": "#/$defs/__schema10"
126
+ },
127
+ "__schema12": {
77
128
  "type": "object",
78
129
  "properties": {
79
130
  "parameters": {
80
- "description": "Partly localized descriptions of how a sign is signed.",
81
131
  "type": "object",
82
132
  "properties": {
83
133
  "handshape": {
84
- "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",
85
- "type": "string"
134
+ "$ref": "#/$defs/__schema13"
86
135
  },
87
136
  "movement": {
88
- "description": "The motion of the hand when signing.",
89
- "type": "string"
137
+ "$ref": "#/$defs/__schema15"
90
138
  },
91
139
  "placement": {
92
- "description": "The placement of the hand when signing.",
93
- "type": "string"
140
+ "$ref": "#/$defs/__schema17"
94
141
  },
95
142
  "orientation": {
96
- "description": "The orientation of the hand when signing.",
97
- "type": "string"
143
+ "$ref": "#/$defs/__schema19"
98
144
  }
99
145
  },
100
- "additionalProperties": false
146
+ "additionalProperties": false,
147
+ "description": "Partly localized descriptions of how a sign is signed."
101
148
  }
102
149
  },
103
150
  "required": [
104
151
  "parameters"
105
152
  ],
106
153
  "additionalProperties": false
107
- }
108
- },
109
- "required": [
110
- "id",
111
- "is_two_handed",
112
- "etymology",
113
- "signwriting",
114
- "translations"
115
- ],
116
- "additionalProperties": false,
117
- "$defs": {
118
- "__schema0": {
119
- "description": "A URL pointing to some external resource.",
120
- "type": "string",
121
- "format": "uri"
154
+ },
155
+ "__schema13": {
156
+ "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",
157
+ "$ref": "#/$defs/__schema14"
158
+ },
159
+ "__schema14": {
160
+ "type": "string"
161
+ },
162
+ "__schema15": {
163
+ "description": "The motion of the hand when signing.",
164
+ "$ref": "#/$defs/__schema16"
165
+ },
166
+ "__schema16": {
167
+ "type": "string"
168
+ },
169
+ "__schema17": {
170
+ "description": "The placement of the hand when signing.",
171
+ "$ref": "#/$defs/__schema18"
172
+ },
173
+ "__schema18": {
174
+ "type": "string"
175
+ },
176
+ "__schema19": {
177
+ "description": "The orientation of the hand when signing.",
178
+ "$ref": "#/$defs/__schema20"
179
+ },
180
+ "__schema20": {
181
+ "type": "string"
122
182
  }
123
183
  }
124
184
  }
@@ -1,135 +1,198 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "description": "A raw data object containing information about Luka Pona fingerspelling signs",
4
3
  "type": "object",
5
4
  "propertyNames": {
6
5
  "$ref": "#/$defs/__schema0"
7
6
  },
8
7
  "additionalProperties": {
9
- "description": "Info on a fingerspelling 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 fingerspelling 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
+ }
15
38
  },
16
- "is_two_handed": {
17
- "description": "Whether the sign is two-handed or not.",
18
- "type": "boolean"
39
+ "required": [
40
+ "id",
41
+ "is_two_handed",
42
+ "etymology",
43
+ "signwriting",
44
+ "translations"
45
+ ],
46
+ "additionalProperties": false,
47
+ "description": "Info on a fingerspelling sign."
48
+ },
49
+ "__schema2": {
50
+ "description": "A unique name for the fingerspelling which is also a gloss.",
51
+ "$ref": "#/$defs/__schema0"
52
+ },
53
+ "__schema3": {
54
+ "type": "boolean",
55
+ "description": "Whether the sign is two-handed or not."
56
+ },
57
+ "__schema4": {
58
+ "type": "array",
59
+ "items": {
60
+ "$ref": "#/$defs/__schema5"
19
61
  },
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
62
+ "description": "Unlocalized etymological values regarding this sign's origin"
63
+ },
64
+ "__schema5": {
65
+ "type": "object",
66
+ "properties": {
67
+ "language": {
68
+ "type": "string",
69
+ "description": "The language of the sign."
70
+ },
71
+ "sign": {
72
+ "description": "The name of the sign such that it could be found in a sign language dictionary.",
73
+ "$ref": "#/$defs/__schema6"
39
74
  }
40
75
  },
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
- }
76
+ "required": [
77
+ "language"
78
+ ],
79
+ "additionalProperties": false
80
+ },
81
+ "__schema6": {
82
+ "type": "string"
83
+ },
84
+ "__schema7": {
85
+ "type": "object",
86
+ "properties": {
87
+ "fsw": {
88
+ "$ref": "#/$defs/__schema8"
55
89
  },
56
- "required": [
57
- "fsw",
58
- "swu"
59
- ],
60
- "additionalProperties": false
90
+ "swu": {
91
+ "$ref": "#/$defs/__schema9"
92
+ }
61
93
  },
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
- }
94
+ "required": [
95
+ "fsw",
96
+ "swu"
97
+ ],
98
+ "additionalProperties": false,
99
+ "description": "Scripts for representing a sign as characters."
100
+ },
101
+ "__schema8": {
102
+ "type": "string",
103
+ "minLength": 1,
104
+ "description": "The [Formal SignWriting](https://en.wikipedia.org/wiki/SignWriting) representation of the sign."
105
+ },
106
+ "__schema9": {
107
+ "type": "string",
108
+ "minLength": 1,
109
+ "description": "The [SignWriting with Unicode](https://en.wikipedia.org/wiki/SignWriting) representation of the sign."
110
+ },
111
+ "__schema10": {
112
+ "type": "object",
113
+ "properties": {
114
+ "gif": {
115
+ "$ref": "#/$defs/__schema11"
74
116
  },
75
- "required": [
76
- "gif",
77
- "mp4"
78
- ],
79
- "additionalProperties": false
117
+ "mp4": {
118
+ "$ref": "#/$defs/__schema13"
119
+ }
80
120
  },
81
- "translations": {
82
- "type": "object",
83
- "properties": {
84
- "parameters": {
85
- "description": "Partly localized descriptions of how a sign is signed.",
86
- "type": "object",
87
- "properties": {
88
- "handshape": {
89
- "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",
90
- "type": "string"
91
- },
92
- "movement": {
93
- "description": "The motion of the hand when signing.",
94
- "type": "string"
95
- },
96
- "placement": {
97
- "description": "The placement of the hand when signing.",
98
- "type": "string"
99
- },
100
- "orientation": {
101
- "description": "The orientation of the hand when signing.",
102
- "type": "string"
103
- }
104
- },
105
- "additionalProperties": false
106
- }
107
- },
108
- "required": [
109
- "parameters"
110
- ],
111
- "additionalProperties": false
112
- }
113
- },
114
- "required": [
115
- "id",
116
- "is_two_handed",
117
- "etymology",
118
- "signwriting",
119
- "translations"
120
- ],
121
- "additionalProperties": false
122
- },
123
- "$defs": {
124
- "__schema0": {
125
- "description": "A unique identifier for an object in Linku. Generally named after the object.",
126
- "type": "string",
127
- "minLength": 1
121
+ "required": [
122
+ "gif",
123
+ "mp4"
124
+ ],
125
+ "additionalProperties": false,
126
+ "description": "Videos of the sign being performed, by format."
128
127
  },
129
- "__schema1": {
130
- "description": "A URL pointing to some external resource.",
128
+ "__schema11": {
129
+ "description": "A link to a gif of the sign being signed.",
130
+ "$ref": "#/$defs/__schema12"
131
+ },
132
+ "__schema12": {
131
133
  "type": "string",
132
- "format": "uri"
134
+ "format": "uri",
135
+ "description": "A URL pointing to some external resource."
136
+ },
137
+ "__schema13": {
138
+ "description": "a link to an mp4 of the sign being signed.",
139
+ "$ref": "#/$defs/__schema12"
140
+ },
141
+ "__schema14": {
142
+ "type": "object",
143
+ "properties": {
144
+ "parameters": {
145
+ "type": "object",
146
+ "properties": {
147
+ "handshape": {
148
+ "$ref": "#/$defs/__schema15"
149
+ },
150
+ "movement": {
151
+ "$ref": "#/$defs/__schema17"
152
+ },
153
+ "placement": {
154
+ "$ref": "#/$defs/__schema19"
155
+ },
156
+ "orientation": {
157
+ "$ref": "#/$defs/__schema21"
158
+ }
159
+ },
160
+ "additionalProperties": false,
161
+ "description": "Partly localized descriptions of how a sign is signed."
162
+ }
163
+ },
164
+ "required": [
165
+ "parameters"
166
+ ],
167
+ "additionalProperties": false
168
+ },
169
+ "__schema15": {
170
+ "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",
171
+ "$ref": "#/$defs/__schema16"
172
+ },
173
+ "__schema16": {
174
+ "type": "string"
175
+ },
176
+ "__schema17": {
177
+ "description": "The motion of the hand when signing.",
178
+ "$ref": "#/$defs/__schema18"
179
+ },
180
+ "__schema18": {
181
+ "type": "string"
182
+ },
183
+ "__schema19": {
184
+ "description": "The placement of the hand when signing.",
185
+ "$ref": "#/$defs/__schema20"
186
+ },
187
+ "__schema20": {
188
+ "type": "string"
189
+ },
190
+ "__schema21": {
191
+ "description": "The orientation of the hand when signing.",
192
+ "$ref": "#/$defs/__schema22"
193
+ },
194
+ "__schema22": {
195
+ "type": "string"
133
196
  }
134
197
  }
135
198
  }