@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
@@ -7,16 +7,15 @@
7
7
  "$ref": "#/$defs/__schema0"
8
8
  },
9
9
  "word": {
10
- "description": "The toki pona word which is written with this glyph.",
11
10
  "type": "string",
12
- "minLength": 1
11
+ "minLength": 1,
12
+ "description": "The toki pona word which is written with this glyph."
13
13
  },
14
14
  "word_id": {
15
15
  "description": "The Linku id of the toki pona word this glyph writes.",
16
16
  "$ref": "#/$defs/__schema0"
17
17
  },
18
18
  "usage_category": {
19
- "description": "The glyph's usage category, derived from the data of the annual Linku glyph survey.",
20
19
  "type": "string",
21
20
  "enum": [
22
21
  "core",
@@ -24,99 +23,91 @@
24
23
  "uncommon",
25
24
  "obscure",
26
25
  "sandbox"
27
- ]
26
+ ],
27
+ "description": "The glyph's usage category, derived from the data of the annual Linku glyph survey."
28
28
  },
29
29
  "author": {
30
- "description": "The name or names of those involved in creating this glyph.",
31
30
  "type": "array",
32
31
  "items": {
33
- "type": "string",
34
- "minLength": 1
35
- }
32
+ "$ref": "#/$defs/__schema1"
33
+ },
34
+ "description": "The name or names of those involved in creating this glyph."
36
35
  },
37
36
  "author_source": {
38
37
  "description": "The source or origin of this glyph, often a URL.",
39
- "type": "string"
38
+ "$ref": "#/$defs/__schema2"
40
39
  },
41
40
  "creation_date": {
42
- "description": "When this glyph was created, to precision known",
43
41
  "type": "string",
44
- "pattern": "^(?:|(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?|(?<startYear>20\\d{2})-(?<endYear>20\\d{2}))$"
42
+ "pattern": "^(?:|(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?|(?<startYear>20\\d{2})-(?<endYear>20\\d{2}))$",
43
+ "description": "When this glyph was created, to precision known"
45
44
  },
46
45
  "see_also": {
47
- "description": "A list of related glyphs by ID",
48
46
  "type": "array",
49
47
  "items": {
50
48
  "$ref": "#/$defs/__schema0"
51
- }
49
+ },
50
+ "description": "A list of related glyphs by ID"
52
51
  },
53
52
  "primary": {
54
- "description": "Whether this glyph is the main glyph used to write the toki pona word in `word`",
55
- "type": "boolean"
53
+ "type": "boolean",
54
+ "description": "Whether this glyph is the main glyph used to write the toki pona word in `word`"
56
55
  },
57
56
  "parent_id": {
58
57
  "description": "The primary glyph which this glyph is considered to share its form with.",
59
- "$ref": "#/$defs/__schema0"
58
+ "$ref": "#/$defs/__schema3"
60
59
  },
61
60
  "deprecated": {
62
- "description": "Whether this glyph is considered deprecated by its author(s).",
63
- "type": "boolean"
61
+ "type": "boolean",
62
+ "description": "Whether this glyph is considered deprecated by its author(s)."
64
63
  },
65
64
  "image": {
66
65
  "description": "A URL to an image of the sitelen pona glyph.",
67
- "$ref": "#/$defs/__schema1"
66
+ "$ref": "#/$defs/__schema4"
68
67
  },
69
68
  "svg": {
70
69
  "description": "A URL to an SVG of the sitelen pona glyph.",
71
- "$ref": "#/$defs/__schema1"
70
+ "$ref": "#/$defs/__schema4"
72
71
  },
73
72
  "ligature": {
74
73
  "description": "The specific numerical ligature used to render this sitelen pona glyph.",
75
- "$ref": "#/$defs/__schema2"
74
+ "$ref": "#/$defs/__schema5"
76
75
  },
77
76
  "alias_ligatures": {
78
77
  "description": "All non-numerical ligature used to render this sitelen pona glyph.",
79
- "type": "array",
80
- "items": {
81
- "$ref": "#/$defs/__schema2"
82
- }
78
+ "$ref": "#/$defs/__schema6"
83
79
  },
84
80
  "ucsur": {
85
81
  "description": "The UCSUR codepoint used to render this specific sitelen pona glyph.",
86
- "type": "string",
87
- "pattern": "^U\\+[\\da-fA-F]{4,6}$"
82
+ "$ref": "#/$defs/__schema7"
88
83
  },
89
84
  "usage": {
90
- "description": "The percentage of respondents to the annual Linku word survey who report to use this glyph, by the date of the survey.",
91
85
  "type": "object",
92
86
  "propertyNames": {
93
- "type": "string",
94
- "pattern": "^(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?$"
87
+ "$ref": "#/$defs/__schema8"
95
88
  },
96
89
  "additionalProperties": {
97
- "type": "number",
98
- "minimum": 0,
99
- "maximum": 100
100
- }
90
+ "$ref": "#/$defs/__schema9"
91
+ },
92
+ "description": "The percentage of respondents to the annual Linku word survey who report to use this glyph, by the date of the survey."
101
93
  },
102
94
  "translations": {
103
95
  "type": "object",
104
96
  "properties": {
105
97
  "commentary": {
106
- "description": "Localized commentary on this glyph, such as history, clarifications, or trivia.",
107
- "type": "string"
98
+ "type": "string",
99
+ "description": "Localized commentary on this glyph, such as history, clarifications, or trivia."
108
100
  },
109
101
  "etymology": {
110
- "description": "Localized etymology of this glyph.",
111
- "type": "string"
102
+ "type": "string",
103
+ "description": "Localized etymology of this glyph."
112
104
  },
113
105
  "names": {
114
- "description": "A list of names used to refer to this sitelen pona glyph",
115
106
  "type": "array",
116
107
  "items": {
117
- "description": "A name this sitelen pona glyph is known by.",
118
- "type": "string"
119
- }
108
+ "$ref": "#/$defs/__schema10"
109
+ },
110
+ "description": "A list of names used to refer to this sitelen pona glyph"
120
111
  }
121
112
  },
122
113
  "required": [
@@ -143,18 +134,53 @@
143
134
  "additionalProperties": false,
144
135
  "$defs": {
145
136
  "__schema0": {
146
- "description": "A unique identifier for an object in Linku. Generally named after the object.",
147
137
  "type": "string",
148
- "minLength": 1
138
+ "minLength": 1,
139
+ "description": "A unique identifier for an object in Linku. Generally named after the object."
149
140
  },
150
141
  "__schema1": {
151
- "description": "A URL pointing to some external resource.",
152
142
  "type": "string",
153
- "format": "uri"
143
+ "minLength": 1
154
144
  },
155
145
  "__schema2": {
146
+ "type": "string",
147
+ "description": "The source or origin of this object, often a URL."
148
+ },
149
+ "__schema3": {
150
+ "description": "The ID of an object related to this one.",
151
+ "$ref": "#/$defs/__schema0"
152
+ },
153
+ "__schema4": {
154
+ "type": "string",
155
+ "format": "uri",
156
+ "description": "A URL pointing to some external resource."
157
+ },
158
+ "__schema5": {
156
159
  "type": "string",
157
160
  "minLength": 1
161
+ },
162
+ "__schema6": {
163
+ "type": "array",
164
+ "items": {
165
+ "$ref": "#/$defs/__schema5"
166
+ }
167
+ },
168
+ "__schema7": {
169
+ "type": "string",
170
+ "pattern": "^U\\+[\\da-fA-F]{4,6}$"
171
+ },
172
+ "__schema8": {
173
+ "type": "string",
174
+ "pattern": "^(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?$"
175
+ },
176
+ "__schema9": {
177
+ "type": "number",
178
+ "minimum": 0,
179
+ "maximum": 100
180
+ },
181
+ "__schema10": {
182
+ "type": "string",
183
+ "description": "A name this sitelen pona glyph is known by."
158
184
  }
159
185
  }
160
186
  }
@@ -1,167 +1,196 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "description": "A raw data object containing metadata about Sitelen Pona glyphs",
4
3
  "type": "object",
5
4
  "propertyNames": {
6
5
  "$ref": "#/$defs/__schema0"
7
6
  },
8
7
  "additionalProperties": {
9
- "type": "object",
10
- "properties": {
11
- "id": {
12
- "description": "A unique identifier for the glyph. Named after its primary word and numbered in order of coining or attestation.",
13
- "$ref": "#/$defs/__schema0"
14
- },
15
- "word": {
16
- "description": "The toki pona word which is written with this glyph.",
17
- "type": "string",
18
- "minLength": 1
19
- },
20
- "word_id": {
21
- "description": "The Linku id of the toki pona word this glyph writes.",
22
- "$ref": "#/$defs/__schema0"
23
- },
24
- "usage_category": {
25
- "description": "The glyph's usage category, derived from the data of the annual Linku glyph survey.",
26
- "type": "string",
27
- "enum": [
28
- "core",
29
- "common",
30
- "uncommon",
31
- "obscure",
32
- "sandbox"
33
- ]
34
- },
35
- "author": {
36
- "description": "The name or names of those involved in creating this glyph.",
37
- "type": "array",
38
- "items": {
8
+ "$ref": "#/$defs/__schema1"
9
+ },
10
+ "description": "A raw data object containing metadata about Sitelen Pona glyphs",
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
+ "description": "A unique identifier for the glyph. Named after its primary word and numbered in order of coining or attestation.",
22
+ "$ref": "#/$defs/__schema0"
23
+ },
24
+ "word": {
39
25
  "type": "string",
40
- "minLength": 1
41
- }
42
- },
43
- "author_source": {
44
- "description": "The source or origin of this glyph, often a URL.",
45
- "type": "string"
46
- },
47
- "creation_date": {
48
- "description": "When this glyph was created, to precision known",
49
- "type": "string",
50
- "pattern": "^(?:|(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?|(?<startYear>20\\d{2})-(?<endYear>20\\d{2}))$"
51
- },
52
- "see_also": {
53
- "description": "A list of related glyphs by ID",
54
- "type": "array",
55
- "items": {
26
+ "minLength": 1,
27
+ "description": "The toki pona word which is written with this glyph."
28
+ },
29
+ "word_id": {
30
+ "description": "The Linku id of the toki pona word this glyph writes.",
56
31
  "$ref": "#/$defs/__schema0"
57
- }
58
- },
59
- "primary": {
60
- "description": "Whether this glyph is the main glyph used to write the toki pona word in `word`",
61
- "type": "boolean"
62
- },
63
- "parent_id": {
64
- "description": "The primary glyph which this glyph is considered to share its form with.",
65
- "$ref": "#/$defs/__schema0"
66
- },
67
- "deprecated": {
68
- "description": "Whether this glyph is considered deprecated by its author(s).",
69
- "type": "boolean"
70
- },
71
- "image": {
72
- "description": "A URL to an image of the sitelen pona glyph.",
73
- "$ref": "#/$defs/__schema1"
74
- },
75
- "svg": {
76
- "description": "A URL to an SVG of the sitelen pona glyph.",
77
- "$ref": "#/$defs/__schema1"
78
- },
79
- "ligature": {
80
- "description": "The specific numerical ligature used to render this sitelen pona glyph.",
81
- "$ref": "#/$defs/__schema2"
82
- },
83
- "alias_ligatures": {
84
- "description": "All non-numerical ligature used to render this sitelen pona glyph.",
85
- "type": "array",
86
- "items": {
87
- "$ref": "#/$defs/__schema2"
88
- }
89
- },
90
- "ucsur": {
91
- "description": "The UCSUR codepoint used to render this specific sitelen pona glyph.",
92
- "type": "string",
93
- "pattern": "^U\\+[\\da-fA-F]{4,6}$"
94
- },
95
- "usage": {
96
- "description": "The percentage of respondents to the annual Linku word survey who report to use this glyph, by the date of the survey.",
97
- "type": "object",
98
- "propertyNames": {
32
+ },
33
+ "usage_category": {
99
34
  "type": "string",
100
- "pattern": "^(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?$"
35
+ "enum": [
36
+ "core",
37
+ "common",
38
+ "uncommon",
39
+ "obscure",
40
+ "sandbox"
41
+ ],
42
+ "description": "The glyph's usage category, derived from the data of the annual Linku glyph survey."
101
43
  },
102
- "additionalProperties": {
103
- "type": "number",
104
- "minimum": 0,
105
- "maximum": 100
106
- }
107
- },
108
- "translations": {
109
- "type": "object",
110
- "properties": {
111
- "commentary": {
112
- "description": "Localized commentary on this glyph, such as history, clarifications, or trivia.",
113
- "type": "string"
44
+ "author": {
45
+ "type": "array",
46
+ "items": {
47
+ "$ref": "#/$defs/__schema2"
114
48
  },
115
- "etymology": {
116
- "description": "Localized etymology of this glyph.",
117
- "type": "string"
49
+ "description": "The name or names of those involved in creating this glyph."
50
+ },
51
+ "author_source": {
52
+ "description": "The source or origin of this glyph, often a URL.",
53
+ "$ref": "#/$defs/__schema3"
54
+ },
55
+ "creation_date": {
56
+ "type": "string",
57
+ "pattern": "^(?:|(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?|(?<startYear>20\\d{2})-(?<endYear>20\\d{2}))$",
58
+ "description": "When this glyph was created, to precision known"
59
+ },
60
+ "see_also": {
61
+ "type": "array",
62
+ "items": {
63
+ "$ref": "#/$defs/__schema0"
64
+ },
65
+ "description": "A list of related glyphs by ID"
66
+ },
67
+ "primary": {
68
+ "type": "boolean",
69
+ "description": "Whether this glyph is the main glyph used to write the toki pona word in `word`"
70
+ },
71
+ "parent_id": {
72
+ "description": "The primary glyph which this glyph is considered to share its form with.",
73
+ "$ref": "#/$defs/__schema4"
74
+ },
75
+ "deprecated": {
76
+ "type": "boolean",
77
+ "description": "Whether this glyph is considered deprecated by its author(s)."
78
+ },
79
+ "image": {
80
+ "description": "A URL to an image of the sitelen pona glyph.",
81
+ "$ref": "#/$defs/__schema5"
82
+ },
83
+ "svg": {
84
+ "description": "A URL to an SVG of the sitelen pona glyph.",
85
+ "$ref": "#/$defs/__schema5"
86
+ },
87
+ "ligature": {
88
+ "description": "The specific numerical ligature used to render this sitelen pona glyph.",
89
+ "$ref": "#/$defs/__schema6"
90
+ },
91
+ "alias_ligatures": {
92
+ "description": "All non-numerical ligature used to render this sitelen pona glyph.",
93
+ "$ref": "#/$defs/__schema7"
94
+ },
95
+ "ucsur": {
96
+ "description": "The UCSUR codepoint used to render this specific sitelen pona glyph.",
97
+ "$ref": "#/$defs/__schema8"
98
+ },
99
+ "usage": {
100
+ "type": "object",
101
+ "propertyNames": {
102
+ "$ref": "#/$defs/__schema9"
103
+ },
104
+ "additionalProperties": {
105
+ "$ref": "#/$defs/__schema10"
118
106
  },
119
- "names": {
120
- "description": "A list of names used to refer to this sitelen pona glyph",
121
- "type": "array",
122
- "items": {
123
- "description": "A name this sitelen pona glyph is known by.",
124
- "type": "string"
107
+ "description": "The percentage of respondents to the annual Linku word survey who report to use this glyph, by the date of the survey."
108
+ },
109
+ "translations": {
110
+ "type": "object",
111
+ "properties": {
112
+ "commentary": {
113
+ "type": "string",
114
+ "description": "Localized commentary on this glyph, such as history, clarifications, or trivia."
115
+ },
116
+ "etymology": {
117
+ "type": "string",
118
+ "description": "Localized etymology of this glyph."
119
+ },
120
+ "names": {
121
+ "type": "array",
122
+ "items": {
123
+ "$ref": "#/$defs/__schema11"
124
+ },
125
+ "description": "A list of names used to refer to this sitelen pona glyph"
125
126
  }
126
- }
127
- },
128
- "required": [
129
- "commentary",
130
- "etymology",
131
- "names"
132
- ],
133
- "additionalProperties": false
134
- }
127
+ },
128
+ "required": [
129
+ "commentary",
130
+ "etymology",
131
+ "names"
132
+ ],
133
+ "additionalProperties": false
134
+ }
135
+ },
136
+ "required": [
137
+ "id",
138
+ "word",
139
+ "word_id",
140
+ "usage_category",
141
+ "author",
142
+ "creation_date",
143
+ "see_also",
144
+ "primary",
145
+ "deprecated",
146
+ "usage",
147
+ "translations"
148
+ ],
149
+ "additionalProperties": false
135
150
  },
136
- "required": [
137
- "id",
138
- "word",
139
- "word_id",
140
- "usage_category",
141
- "author",
142
- "creation_date",
143
- "see_also",
144
- "primary",
145
- "deprecated",
146
- "usage",
147
- "translations"
148
- ],
149
- "additionalProperties": false
150
- },
151
- "$defs": {
152
- "__schema0": {
153
- "description": "A unique identifier for an object in Linku. Generally named after the object.",
151
+ "__schema2": {
154
152
  "type": "string",
155
153
  "minLength": 1
156
154
  },
157
- "__schema1": {
158
- "description": "A URL pointing to some external resource.",
155
+ "__schema3": {
159
156
  "type": "string",
160
- "format": "uri"
157
+ "description": "The source or origin of this object, often a URL."
161
158
  },
162
- "__schema2": {
159
+ "__schema4": {
160
+ "description": "The ID of an object related to this one.",
161
+ "$ref": "#/$defs/__schema0"
162
+ },
163
+ "__schema5": {
164
+ "type": "string",
165
+ "format": "uri",
166
+ "description": "A URL pointing to some external resource."
167
+ },
168
+ "__schema6": {
163
169
  "type": "string",
164
170
  "minLength": 1
171
+ },
172
+ "__schema7": {
173
+ "type": "array",
174
+ "items": {
175
+ "$ref": "#/$defs/__schema6"
176
+ }
177
+ },
178
+ "__schema8": {
179
+ "type": "string",
180
+ "pattern": "^U\\+[\\da-fA-F]{4,6}$"
181
+ },
182
+ "__schema9": {
183
+ "type": "string",
184
+ "pattern": "^(?<year>20\\d{2})(?:-(?<month>0[1-9]|1[0-2])(?:-(?<day>0[1-9]|[12]\\d|3[01]))?)?$"
185
+ },
186
+ "__schema10": {
187
+ "type": "number",
188
+ "minimum": 0,
189
+ "maximum": 100
190
+ },
191
+ "__schema11": {
192
+ "type": "string",
193
+ "description": "A name this sitelen pona glyph is known by."
165
194
  }
166
195
  }
167
196
  }
@@ -3,42 +3,42 @@
3
3
  "type": "object",
4
4
  "properties": {
5
5
  "id": {
6
- "description": "The language's code in Crowdin. Usually its 2 or 3 letter code.",
7
6
  "type": "string",
8
- "minLength": 2
7
+ "minLength": 2,
8
+ "description": "The language's code in Crowdin. Usually its 2 or 3 letter code.",
9
+ "$ref": "#/$defs/__schema0"
9
10
  },
10
11
  "locale": {
11
- "description": "The locale code corresponding to the language.",
12
12
  "type": "string",
13
- "minLength": 2
13
+ "minLength": 2,
14
+ "description": "The locale code corresponding to the language.",
15
+ "$ref": "#/$defs/__schema0"
14
16
  },
15
17
  "direction": {
16
- "description": "The direction of the language's script.",
17
18
  "anyOf": [
18
19
  {
19
- "type": "string",
20
- "const": "ltr"
20
+ "$ref": "#/$defs/__schema1"
21
21
  },
22
22
  {
23
- "type": "string",
24
- "const": "rtl"
23
+ "$ref": "#/$defs/__schema2"
25
24
  }
26
- ]
25
+ ],
26
+ "description": "The direction of the language's script."
27
27
  },
28
28
  "name": {
29
29
  "type": "object",
30
30
  "properties": {
31
31
  "en": {
32
- "description": "The name of the language in English.",
33
- "type": "string"
32
+ "type": "string",
33
+ "description": "The name of the language in English."
34
34
  },
35
35
  "endonym": {
36
- "description": "The name of the language in that language. Prefer if available.",
37
- "type": "string"
36
+ "type": "string",
37
+ "description": "The name of the language in that language. Prefer if available."
38
38
  },
39
39
  "tok": {
40
40
  "description": "The name of the language in Toki Pona.",
41
- "type": "string"
41
+ "$ref": "#/$defs/__schema3"
42
42
  }
43
43
  },
44
44
  "required": [
@@ -54,5 +54,23 @@
54
54
  "direction",
55
55
  "name"
56
56
  ],
57
- "additionalProperties": false
57
+ "additionalProperties": false,
58
+ "$defs": {
59
+ "__schema0": {
60
+ "type": "string",
61
+ "minLength": 1,
62
+ "description": "A unique identifier for an object in Linku. Generally named after the object."
63
+ },
64
+ "__schema1": {
65
+ "type": "string",
66
+ "const": "ltr"
67
+ },
68
+ "__schema2": {
69
+ "type": "string",
70
+ "const": "rtl"
71
+ },
72
+ "__schema3": {
73
+ "type": "string"
74
+ }
75
+ }
58
76
  }