@kulupu-linku/sona 0.1.10 → 0.2.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.
- package/README.md +18 -3
- package/dist/client.d.ts +1 -802
- package/dist/client.js +98 -4
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +1 -1159
- package/dist/index.js +148 -168
- package/dist/index.js.map +1 -0
- package/dist/lib/client.d.ts +201 -0
- package/dist/lib/index.d.ts +959 -0
- package/dist/lib/types.d.ts +17 -0
- package/dist/lib/utils.d.ts +13 -0
- package/dist/utils-CnA4OULt.js +2777 -0
- package/dist/utils-CnA4OULt.js.map +1 -0
- package/dist/utils.d.ts +1 -16
- package/dist/utils.js +7 -12
- package/dist/utils.js.map +1 -0
- package/generated/languages.json +15 -0
- package/generated/sandbox.json +16 -3
- package/generated/word.json +16 -3
- package/generated/words.json +16 -3
- package/package.json +19 -15
- package/LICENSE +0 -674
- package/dist/chunk-QCIUEY5V.js +0 -38
- package/dist/types.d.ts +0 -2
- package/dist/types.js +0 -0
- package/generated/etymology.json +0 -20
- package/generated/representations.json +0 -43
- package/generated/resources.json +0 -30
package/generated/languages.json
CHANGED
|
@@ -6,10 +6,23 @@
|
|
|
6
6
|
"additionalProperties": {
|
|
7
7
|
"type": "object",
|
|
8
8
|
"properties": {
|
|
9
|
+
"id": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"minLength": 2,
|
|
12
|
+
"description": "The language code used by Crowdin. Approximates 2 letter code -> 3 letter code."
|
|
13
|
+
},
|
|
9
14
|
"locale": {
|
|
10
15
|
"type": "string",
|
|
11
16
|
"description": "The locale code corresponding to the language."
|
|
12
17
|
},
|
|
18
|
+
"direction": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": [
|
|
21
|
+
"ltr",
|
|
22
|
+
"rtl"
|
|
23
|
+
],
|
|
24
|
+
"description": "The direction of the language's script."
|
|
25
|
+
},
|
|
13
26
|
"name": {
|
|
14
27
|
"type": "object",
|
|
15
28
|
"properties": {
|
|
@@ -33,7 +46,9 @@
|
|
|
33
46
|
}
|
|
34
47
|
},
|
|
35
48
|
"required": [
|
|
49
|
+
"id",
|
|
36
50
|
"locale",
|
|
51
|
+
"direction",
|
|
37
52
|
"name"
|
|
38
53
|
],
|
|
39
54
|
"additionalProperties": false,
|
package/generated/sandbox.json
CHANGED
|
@@ -102,6 +102,15 @@
|
|
|
102
102
|
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",
|
|
103
103
|
"description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji"
|
|
104
104
|
},
|
|
105
|
+
"sitelen_jelo": {
|
|
106
|
+
"type": "array",
|
|
107
|
+
"items": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
|
|
110
|
+
},
|
|
111
|
+
"minItems": 1,
|
|
112
|
+
"description": "One or more example emojis for how the word can be written in sitelen jelo"
|
|
113
|
+
},
|
|
105
114
|
"ligatures": {
|
|
106
115
|
"type": "array",
|
|
107
116
|
"items": {
|
|
@@ -132,11 +141,10 @@
|
|
|
132
141
|
"type": "string",
|
|
133
142
|
"enum": [
|
|
134
143
|
"core",
|
|
135
|
-
"widespread",
|
|
136
144
|
"common",
|
|
137
145
|
"uncommon",
|
|
138
|
-
"
|
|
139
|
-
"
|
|
146
|
+
"obscure",
|
|
147
|
+
"sandbox"
|
|
140
148
|
],
|
|
141
149
|
"description": "The word's usage category, according to a survey performed by the Linku Project"
|
|
142
150
|
},
|
|
@@ -144,6 +152,10 @@
|
|
|
144
152
|
"type": "string",
|
|
145
153
|
"description": "The word's actual text, in case of a word with multiple definitions (like \"we\")"
|
|
146
154
|
},
|
|
155
|
+
"deprecated": {
|
|
156
|
+
"type": "boolean",
|
|
157
|
+
"description": "Whether or not the word is considered deprecated by its author."
|
|
158
|
+
},
|
|
147
159
|
"etymology": {
|
|
148
160
|
"type": "array",
|
|
149
161
|
"items": {
|
|
@@ -284,6 +296,7 @@
|
|
|
284
296
|
"source_language",
|
|
285
297
|
"usage_category",
|
|
286
298
|
"word",
|
|
299
|
+
"deprecated",
|
|
287
300
|
"etymology",
|
|
288
301
|
"audio",
|
|
289
302
|
"usage",
|
package/generated/word.json
CHANGED
|
@@ -100,6 +100,15 @@
|
|
|
100
100
|
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",
|
|
101
101
|
"description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji"
|
|
102
102
|
},
|
|
103
|
+
"sitelen_jelo": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
|
|
108
|
+
},
|
|
109
|
+
"minItems": 1,
|
|
110
|
+
"description": "One or more example emojis for how the word can be written in sitelen jelo"
|
|
111
|
+
},
|
|
103
112
|
"ligatures": {
|
|
104
113
|
"type": "array",
|
|
105
114
|
"items": {
|
|
@@ -130,11 +139,10 @@
|
|
|
130
139
|
"type": "string",
|
|
131
140
|
"enum": [
|
|
132
141
|
"core",
|
|
133
|
-
"widespread",
|
|
134
142
|
"common",
|
|
135
143
|
"uncommon",
|
|
136
|
-
"
|
|
137
|
-
"
|
|
144
|
+
"obscure",
|
|
145
|
+
"sandbox"
|
|
138
146
|
],
|
|
139
147
|
"description": "The word's usage category, according to a survey performed by the Linku Project"
|
|
140
148
|
},
|
|
@@ -142,6 +150,10 @@
|
|
|
142
150
|
"type": "string",
|
|
143
151
|
"description": "The word's actual text, in case of a word with multiple definitions (like \"we\")"
|
|
144
152
|
},
|
|
153
|
+
"deprecated": {
|
|
154
|
+
"type": "boolean",
|
|
155
|
+
"description": "Whether or not the word is considered deprecated by its author."
|
|
156
|
+
},
|
|
145
157
|
"etymology": {
|
|
146
158
|
"type": "array",
|
|
147
159
|
"items": {
|
|
@@ -237,6 +249,7 @@
|
|
|
237
249
|
"source_language",
|
|
238
250
|
"usage_category",
|
|
239
251
|
"word",
|
|
252
|
+
"deprecated",
|
|
240
253
|
"etymology",
|
|
241
254
|
"audio",
|
|
242
255
|
"usage"
|
package/generated/words.json
CHANGED
|
@@ -102,6 +102,15 @@
|
|
|
102
102
|
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",
|
|
103
103
|
"description": "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji"
|
|
104
104
|
},
|
|
105
|
+
"sitelen_jelo": {
|
|
106
|
+
"type": "array",
|
|
107
|
+
"items": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"pattern": "^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$"
|
|
110
|
+
},
|
|
111
|
+
"minItems": 1,
|
|
112
|
+
"description": "One or more example emojis for how the word can be written in sitelen jelo"
|
|
113
|
+
},
|
|
105
114
|
"ligatures": {
|
|
106
115
|
"type": "array",
|
|
107
116
|
"items": {
|
|
@@ -132,11 +141,10 @@
|
|
|
132
141
|
"type": "string",
|
|
133
142
|
"enum": [
|
|
134
143
|
"core",
|
|
135
|
-
"widespread",
|
|
136
144
|
"common",
|
|
137
145
|
"uncommon",
|
|
138
|
-
"
|
|
139
|
-
"
|
|
146
|
+
"obscure",
|
|
147
|
+
"sandbox"
|
|
140
148
|
],
|
|
141
149
|
"description": "The word's usage category, according to a survey performed by the Linku Project"
|
|
142
150
|
},
|
|
@@ -144,6 +152,10 @@
|
|
|
144
152
|
"type": "string",
|
|
145
153
|
"description": "The word's actual text, in case of a word with multiple definitions (like \"we\")"
|
|
146
154
|
},
|
|
155
|
+
"deprecated": {
|
|
156
|
+
"type": "boolean",
|
|
157
|
+
"description": "Whether or not the word is considered deprecated by its author."
|
|
158
|
+
},
|
|
147
159
|
"etymology": {
|
|
148
160
|
"type": "array",
|
|
149
161
|
"items": {
|
|
@@ -284,6 +296,7 @@
|
|
|
284
296
|
"source_language",
|
|
285
297
|
"usage_category",
|
|
286
298
|
"word",
|
|
299
|
+
"deprecated",
|
|
287
300
|
"etymology",
|
|
288
301
|
"audio",
|
|
289
302
|
"usage",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kulupu-linku/sona",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "A library providing TypeScript types and Zod schemas for the sona API",
|
|
5
5
|
"homepage": "https://linku.la/",
|
|
6
6
|
"bugs": {
|
|
@@ -21,20 +21,26 @@
|
|
|
21
21
|
],
|
|
22
22
|
"repository": {
|
|
23
23
|
"url": "https://github.com/lipu-linku/sona.git",
|
|
24
|
-
"directory": "
|
|
24
|
+
"directory": "api",
|
|
25
25
|
"type": "git"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"hono": "^
|
|
29
|
-
"
|
|
28
|
+
"@hono/vite-cloudflare-pages": "^0.2.5",
|
|
29
|
+
"@hono/vite-dev-server": "^0.7.1",
|
|
30
|
+
"@hono/zod-validator": "^0.1.11",
|
|
31
|
+
"hono": "^4.0.5",
|
|
32
|
+
"p-lazy": "^4.0.0",
|
|
33
|
+
"zod": "^3.22.4",
|
|
34
|
+
"zod-validation-error": "^3.0.2"
|
|
30
35
|
},
|
|
31
36
|
"devDependencies": {
|
|
32
|
-
"@types/node": "^20.11.
|
|
33
|
-
"prettier": "^3.2.
|
|
34
|
-
"
|
|
35
|
-
"tsx": "^4.7.0",
|
|
37
|
+
"@types/node": "^20.11.20",
|
|
38
|
+
"prettier": "^3.2.5",
|
|
39
|
+
"tsx": "^4.7.1",
|
|
36
40
|
"typescript": "^5.3.3",
|
|
37
|
-
"
|
|
41
|
+
"vite": "^5.1.4",
|
|
42
|
+
"vite-plugin-dts": "^3.7.3",
|
|
43
|
+
"zod-to-json-schema": "^3.22.4"
|
|
38
44
|
},
|
|
39
45
|
"engines": {
|
|
40
46
|
"pnpm": ">=8"
|
|
@@ -47,25 +53,23 @@
|
|
|
47
53
|
"exports": {
|
|
48
54
|
".": {
|
|
49
55
|
"import": "./dist/index.js",
|
|
50
|
-
"node": "./dist/index.js",
|
|
51
56
|
"types": "./dist/index.d.ts"
|
|
52
57
|
},
|
|
53
58
|
"./utils": {
|
|
54
59
|
"import": "./dist/utils.js",
|
|
55
|
-
"node": "./dist/utils.js",
|
|
56
60
|
"types": "./dist/utils.d.ts"
|
|
57
61
|
},
|
|
58
62
|
"./client": {
|
|
59
63
|
"import": "./dist/client.js",
|
|
60
|
-
"node": "./dist/client.js",
|
|
61
64
|
"types": "./dist/client.d.ts"
|
|
62
65
|
}
|
|
63
66
|
},
|
|
64
|
-
"packageManager": "pnpm@8.14.3",
|
|
65
67
|
"type": "module",
|
|
66
68
|
"scripts": {
|
|
69
|
+
"dev": "vite",
|
|
70
|
+
"build": "vite build",
|
|
71
|
+
"build:lib": "vite build --mode lib",
|
|
67
72
|
"generate": "tsx ./generateSchemas.ts",
|
|
68
|
-
"generate:watch": "tsx ./generateSchemas.ts --watch-path=./**/*.ts"
|
|
69
|
-
"build": "tsup ./src/**/*.ts --dts --format esm"
|
|
73
|
+
"generate:watch": "tsx ./generateSchemas.ts --watch-path=./**/*.ts"
|
|
70
74
|
}
|
|
71
75
|
}
|