@kulupu-linku/sona 0.1.1 → 0.1.3

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/dist/index.js ADDED
@@ -0,0 +1,213 @@
1
+ import {
2
+ Book,
3
+ CoinedEra,
4
+ UsageCategory,
5
+ WritingSystem,
6
+ YearMonth
7
+ } from "./chunk-T34XQGQK.js";
8
+
9
+ // src/index.ts
10
+ import { z } from "zod";
11
+ var Word = z.object({
12
+ author_verbatim: z.string().describe("The author's original definition, taken verbatim in their words"),
13
+ author_verbatim_source: z.string().describe("Where the author's original definition is located (usually Discord)"),
14
+ book: Book.describe("Which official Toki Pona book was this word featured in, if any."),
15
+ coined_era: CoinedEra.or(z.literal("")).describe(
16
+ "When this word was coined (relative to the publication dates of the official Toki Pona books, if known)"
17
+ ),
18
+ coined_year: z.string().describe("The year when this word was coined (if known)"),
19
+ creator: z.array(z.string()).describe("The person who created this word (if known)"),
20
+ ku_data: z.record(z.number().min(0).max(100)).optional().describe(
21
+ "The usage data of the word as described in ku (the official Toki Pona dictionary)"
22
+ ),
23
+ see_also: z.array(z.string()).describe("A list of related words"),
24
+ sona_pona: z.string().url().optional().describe(
25
+ "A link to the word's page on sona.pona.la, a Toki Pona wiki. May redirect for words with references but no dedicated page."
26
+ ),
27
+ representations: z.object({
28
+ sitelen_emosi: z.string().emoji().or(z.literal("")).describe(
29
+ "The sitelen emosi representation of this word, a script for writing Toki Pona using emoji"
30
+ ),
31
+ sitelen_pona: z.array(z.string()).describe(
32
+ "A list of sitelen Lasina representations of this word, to be converted into sitelen pona glyphs"
33
+ ),
34
+ sitelen_sitelen: z.string().url().or(z.literal("")).describe("A URL pointing to an image of this word's sitelen sitelen hieroglyphic block"),
35
+ ucsur: z.string().regex(/^U\+[\da-fA-F]{4,6}$/g).or(z.literal("")).describe(
36
+ "The word's UCSUR codepoint, as defined in https://www.kreativekorp.com/ucsur/charts/sitelen.html"
37
+ )
38
+ }).describe("Ways of representing this word in the real world, via text/computers"),
39
+ source_language: z.string().describe("The language this word originated from"),
40
+ usage_category: UsageCategory.describe(
41
+ "The word's usage category, according to a survey performed by the Linku Project"
42
+ ),
43
+ word: z.string().describe(`The word's actual text, in case of a word with multiple definitions (like "we")`),
44
+ etymology: z.array(
45
+ z.object({
46
+ word: z.string().optional().describe(
47
+ "One of the root words of this word, as written out in its language of origin"
48
+ ),
49
+ alt: z.string().optional().describe(`A latinized representation of the "word" field`)
50
+ })
51
+ ).describe("Unlocalized etymological values regarding this word's origin"),
52
+ audio: z.array(
53
+ z.object({
54
+ author: z.string().describe("The author of the audio file in `link`."),
55
+ link: z.string().url().describe("A link to the audio file for the word, pronounced by `author`.")
56
+ }).describe("Audio files of the words pronounced out loud")
57
+ ),
58
+ pu_verbatim: z.object({
59
+ en: z.string().describe("The original definition in the English version of pu"),
60
+ fr: z.string().describe("The original definition in the French version of pu"),
61
+ de: z.string().describe("The original definition in the German version of pu"),
62
+ eo: z.string().describe("The original definition in the Esperanto version of pu")
63
+ }).optional().describe("The original definition of the word in pu, the first official Toki Pona book"),
64
+ usage: z.record(
65
+ z.string().regex(/^20\d{2}-(0[1-9]|1[0-2])$/g),
66
+ z.number().min(0).max(100)
67
+ ).describe(
68
+ "The percentage of people in the Toki Pona community who recognize this word, according to surveys performed by the Linku Project"
69
+ )
70
+ }).describe("General info on a Toki Pona word");
71
+ var CommentaryTranslation = z.record(z.string()).describe("Localized commentary regarding Toki Pona words");
72
+ var DefinitionTranslation = z.record(z.string().min(1)).describe("Localized definitions of Toki Pona words");
73
+ var SitelenPonaTranslation = z.record(z.string()).describe("Localized descriptions of the origins of the sitelen pona glyphs for Toki Pona words");
74
+ var EtymologyTranslation = z.record(
75
+ z.array(
76
+ z.object({
77
+ definition: z.string().optional().describe("The localized definition of the root word in its origin language"),
78
+ language: z.string().describe("The localized name of the language this word originated from")
79
+ })
80
+ )
81
+ ).describe("Localized etymological values for Toki Pona words");
82
+ var Sign = z.object({
83
+ definition: z.string().describe("The definition of the sign as a single toki pona word."),
84
+ id: z.string().describe("A globally unique name for the sign which is also a gloss."),
85
+ is_two_handed: z.boolean().describe("Whether the sign is two-handed or not."),
86
+ new_gloss: z.string().describe("The more recent, preferred gloss for this sign."),
87
+ old_gloss: z.string().describe("The older gloss for this sign, similar to `id`."),
88
+ etymology: z.array(
89
+ z.object({
90
+ language: z.string().describe("The language of the sign."),
91
+ sign: z.string().optional().describe(
92
+ "The name of the sign such that it could be found in a sign language dictionary."
93
+ )
94
+ })
95
+ ).describe("Unlocalized etymological values regarding this sign's origin"),
96
+ signwriting: z.object({
97
+ fsw: z.string().describe(
98
+ "The [Formal SignWriting](https://en.wikipedia.org/wiki/SignWriting) representation of the sign."
99
+ ),
100
+ swu: z.string().describe(
101
+ "The [SignWriting with Unicode](https://en.wikipedia.org/wiki/SignWriting) representation of the sign."
102
+ )
103
+ }).describe("Scripts for representing a sign as characters."),
104
+ video: z.object({
105
+ gif: z.string().describe("A link to a gif of the sign being signed."),
106
+ mp4: z.string().describe("a link to an mp4 of the sign being signed.")
107
+ }).describe("Videos of the sign being performed, by format.")
108
+ }).describe("Unlocalized info on a Luka Pona sign");
109
+ var FingerspellingSign = z.object({
110
+ id: z.string().describe("A globally unique name for the sign which is also a gloss."),
111
+ is_two_handed: z.boolean().describe("Whether the sign is two-handed or not."),
112
+ etymology: z.array(
113
+ z.object({
114
+ language: z.string().describe("The language of the sign."),
115
+ sign: z.string().describe(
116
+ "The name of the sign such that it could be found in a sign language dictionary."
117
+ )
118
+ })
119
+ ).describe("Unlocalized etymological values regarding this sign's origin"),
120
+ signwriting: z.object({
121
+ fsw: z.string().describe("The Formal Sign Writing representation of the sign."),
122
+ swu: z.string().describe("The Sign Writing with Unicode representation of hte sign.")
123
+ }).describe("Scripts for representing a sign as characters."),
124
+ video: z.object({
125
+ gif: z.string().optional().describe("A link to a gif of the sign being signed."),
126
+ mp4: z.string().optional().describe("a link to an mp4 of the sign being signed.")
127
+ }).describe("Videos of the sign being performed, by format.")
128
+ }).describe("Unlocalized info on a fingerspelling sign.");
129
+ var ParametersTranslation = z.record(
130
+ z.object({
131
+ handshape: z.string().optional().describe(
132
+ "The shape of the hand when signing, identified by its name in ASL. Should not be translated in any language other than Toki Pona"
133
+ ),
134
+ movement: z.string().optional().describe("The motion of the hand when signing."),
135
+ placement: z.string().optional().describe("The placement of the hand when signing."),
136
+ orientation: z.string().optional().describe("The orientation of the hand when signing.")
137
+ })
138
+ ).describe("Partly localized descriptions of how a sign is signed.");
139
+ var IconTranslation = z.record(z.string().min(1)).describe("Localized descriptions of the thing a sign represents.");
140
+ var Font = z.object({
141
+ creator: z.array(z.string()).describe("a list of this font's creators"),
142
+ features: z.array(z.string()).describe("a list of features this font supports"),
143
+ filename: z.string().regex(/^(?:.+\.(ttf|otf|woff2|woff))?$/).describe("the name of the file this font is stored in at https://github.com/lipu-linku/ijo"),
144
+ last_updated: YearMonth.optional().describe("the rough date of this font's last update"),
145
+ license: z.string().describe("an SPDX expression describing this font's license: https://spdx.org/licenses/"),
146
+ ligatures: z.boolean().describe("whether this font supports ligatures"),
147
+ name: z.string().min(1).describe("this font's name"),
148
+ style: z.string().min(1).describe("the general style of this font"),
149
+ ucsur: z.boolean().describe(
150
+ "whether this font conforms to the UCSUR standard: https://www.kreativekorp.com/ucsur/charts/sitelen.html"
151
+ ),
152
+ version: z.string().describe("the current version of this font"),
153
+ writing_system: WritingSystem.describe("the writing system this font uses as its script"),
154
+ links: z.object({
155
+ fontfile: z.string().url().optional().describe(
156
+ "a link to the font file published by the original author (not the mirror on the Linku Project's GitHub)"
157
+ ),
158
+ repo: z.string().url().optional().describe(
159
+ "a link to a web hosted repository of this font's source files (usually hosted on GitHub or GitLab)"
160
+ ),
161
+ webpage: z.string().url().optional().describe(
162
+ "a link to this font's home page, usually showcasing its features and usage/installation"
163
+ )
164
+ })
165
+ }).describe("Info on a font for Toki Pona");
166
+ var Words = z.record(
167
+ Word.extend({
168
+ translations: z.record(
169
+ z.object({
170
+ commentary: CommentaryTranslation.valueSchema,
171
+ definitions: DefinitionTranslation.valueSchema,
172
+ etymology: EtymologyTranslation.valueSchema,
173
+ sp_etymology: SitelenPonaTranslation.valueSchema
174
+ })
175
+ )
176
+ })
177
+ ).describe("A raw data object containing dictionary info about Toki Pona words");
178
+ var Sandbox = Words.describe(
179
+ "A raw data object containing dictionary info about Toki Pona sandbox"
180
+ );
181
+ var Signs = z.record(
182
+ Sign.extend({
183
+ translations: z.record(
184
+ z.object({
185
+ parameters: ParametersTranslation.valueSchema,
186
+ icons: IconTranslation.valueSchema
187
+ })
188
+ )
189
+ })
190
+ ).describe("A raw data object containing information about Luka Pona signs");
191
+ var Fingerspelling = z.record(
192
+ FingerspellingSign.extend({
193
+ translations: z.record(z.object({ parameters: ParametersTranslation.valueSchema }))
194
+ })
195
+ ).describe("A raw data object containing information about Luka Pona fingerspelling signs");
196
+ var Fonts = z.record(Font).describe("A raw data object containing all the fonts data in sona");
197
+ export {
198
+ CommentaryTranslation,
199
+ DefinitionTranslation,
200
+ EtymologyTranslation,
201
+ Fingerspelling,
202
+ FingerspellingSign,
203
+ Font,
204
+ Fonts,
205
+ IconTranslation,
206
+ ParametersTranslation,
207
+ Sandbox,
208
+ Sign,
209
+ Signs,
210
+ SitelenPonaTranslation,
211
+ Word,
212
+ Words
213
+ };
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+
3
+ declare const Book: z.ZodUnion<[z.ZodLiteral<"pu">, z.ZodLiteral<"ku suli">, z.ZodLiteral<"ku lili">, z.ZodLiteral<"none">]>;
4
+ type Book = z.infer<typeof Book>;
5
+ declare const CoinedEra: z.ZodUnion<[z.ZodLiteral<"pre-pu">, z.ZodLiteral<"post-pu">, z.ZodLiteral<"post-ku">]>;
6
+ type CoinedEra = z.infer<typeof CoinedEra>;
7
+ declare const UsageCategory: z.ZodUnion<[z.ZodLiteral<"core">, z.ZodLiteral<"widespread">, z.ZodLiteral<"common">, z.ZodLiteral<"uncommon">, z.ZodLiteral<"rare">, z.ZodLiteral<"obscure">]>;
8
+ type UsageCategory = z.infer<typeof UsageCategory>;
9
+ declare const YearMonth: z.ZodType<`20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`, z.ZodTypeDef, `20${number}-01` | `20${number}-02` | `20${number}-03` | `20${number}-04` | `20${number}-05` | `20${number}-06` | `20${number}-07` | `20${number}-08` | `20${number}-09` | `20${number}-10` | `20${number}-11` | `20${number}-12`>;
10
+ declare const WritingSystem: z.ZodEnum<["sitelen pona", "sitelen sitelen", "alphabet", "syllabary", "logography", "tokiponido alphabet", "tokiponido syllabary", "tokiponido logography"]>;
11
+ type WritingSystem = z.infer<typeof WritingSystem>;
12
+
13
+ export { Book, CoinedEra, UsageCategory, WritingSystem, YearMonth };
package/dist/utils.js ADDED
@@ -0,0 +1,14 @@
1
+ import {
2
+ Book,
3
+ CoinedEra,
4
+ UsageCategory,
5
+ WritingSystem,
6
+ YearMonth
7
+ } from "./chunk-T34XQGQK.js";
8
+ export {
9
+ Book,
10
+ CoinedEra,
11
+ UsageCategory,
12
+ WritingSystem,
13
+ YearMonth
14
+ };
@@ -68,6 +68,11 @@
68
68
  },
69
69
  "description": "A list of related words"
70
70
  },
71
+ "sona_pona": {
72
+ "type": "string",
73
+ "format": "uri",
74
+ "description": "A link to the word's page on sona.pona.la, a Toki Pona wiki. May redirect for words with references but no dedicated page."
75
+ },
71
76
  "representations": {
72
77
  "type": "object",
73
78
  "properties": {
@@ -166,24 +171,27 @@
166
171
  "description": "Unlocalized etymological values regarding this word's origin"
167
172
  },
168
173
  "audio": {
169
- "type": "object",
170
- "properties": {
171
- "jan_lakuse": {
172
- "type": "string",
173
- "format": "uri",
174
- "description": "jan Lakuse's pronounciation of the word, made for jan Sonja's Memrise course: https://archive.org/details/toki-pona-audio-by-jan-lakuse"
174
+ "type": "array",
175
+ "items": {
176
+ "type": "object",
177
+ "properties": {
178
+ "author": {
179
+ "type": "string",
180
+ "description": "The author of the audio file in `link`."
181
+ },
182
+ "link": {
183
+ "type": "string",
184
+ "format": "uri",
185
+ "description": "A link to the audio file for the word, pronounced by `author`."
186
+ }
175
187
  },
176
- "kala_asi": {
177
- "type": "string",
178
- "format": "uri",
179
- "description": "kala Asi's pronounciation of the word, made for the Linku Project"
180
- }
181
- },
182
- "required": [
183
- "kala_asi"
184
- ],
185
- "additionalProperties": false,
186
- "description": "Audio files of the words pronounced out loud"
188
+ "required": [
189
+ "author",
190
+ "link"
191
+ ],
192
+ "additionalProperties": false,
193
+ "description": "Audio files of the words pronounced out loud"
194
+ }
187
195
  },
188
196
  "pu_verbatim": {
189
197
  "type": "object",
@@ -214,7 +222,7 @@
214
222
  "additionalProperties": false,
215
223
  "description": "The original definition of the word in pu, the first official Toki Pona book"
216
224
  },
217
- "recognition": {
225
+ "usage": {
218
226
  "type": "object",
219
227
  "additionalProperties": {
220
228
  "type": "number",
@@ -286,7 +294,7 @@
286
294
  "word",
287
295
  "etymology",
288
296
  "audio",
289
- "recognition",
297
+ "usage",
290
298
  "translations"
291
299
  ],
292
300
  "additionalProperties": false,
@@ -66,6 +66,11 @@
66
66
  },
67
67
  "description": "A list of related words"
68
68
  },
69
+ "sona_pona": {
70
+ "type": "string",
71
+ "format": "uri",
72
+ "description": "A link to the word's page on sona.pona.la, a Toki Pona wiki. May redirect for words with references but no dedicated page."
73
+ },
69
74
  "representations": {
70
75
  "type": "object",
71
76
  "properties": {
@@ -164,24 +169,27 @@
164
169
  "description": "Unlocalized etymological values regarding this word's origin"
165
170
  },
166
171
  "audio": {
167
- "type": "object",
168
- "properties": {
169
- "jan_lakuse": {
170
- "type": "string",
171
- "format": "uri",
172
- "description": "jan Lakuse's pronounciation of the word, made for jan Sonja's Memrise course: https://archive.org/details/toki-pona-audio-by-jan-lakuse"
172
+ "type": "array",
173
+ "items": {
174
+ "type": "object",
175
+ "properties": {
176
+ "author": {
177
+ "type": "string",
178
+ "description": "The author of the audio file in `link`."
179
+ },
180
+ "link": {
181
+ "type": "string",
182
+ "format": "uri",
183
+ "description": "A link to the audio file for the word, pronounced by `author`."
184
+ }
173
185
  },
174
- "kala_asi": {
175
- "type": "string",
176
- "format": "uri",
177
- "description": "kala Asi's pronounciation of the word, made for the Linku Project"
178
- }
179
- },
180
- "required": [
181
- "kala_asi"
182
- ],
183
- "additionalProperties": false,
184
- "description": "Audio files of the words pronounced out loud"
186
+ "required": [
187
+ "author",
188
+ "link"
189
+ ],
190
+ "additionalProperties": false,
191
+ "description": "Audio files of the words pronounced out loud"
192
+ }
185
193
  },
186
194
  "pu_verbatim": {
187
195
  "type": "object",
@@ -212,7 +220,7 @@
212
220
  "additionalProperties": false,
213
221
  "description": "The original definition of the word in pu, the first official Toki Pona book"
214
222
  },
215
- "recognition": {
223
+ "usage": {
216
224
  "type": "object",
217
225
  "additionalProperties": {
218
226
  "type": "number",
@@ -239,7 +247,7 @@
239
247
  "word",
240
248
  "etymology",
241
249
  "audio",
242
- "recognition"
250
+ "usage"
243
251
  ],
244
252
  "additionalProperties": false,
245
253
  "description": "General info on a Toki Pona word"
@@ -68,6 +68,11 @@
68
68
  },
69
69
  "description": "A list of related words"
70
70
  },
71
+ "sona_pona": {
72
+ "type": "string",
73
+ "format": "uri",
74
+ "description": "A link to the word's page on sona.pona.la, a Toki Pona wiki. May redirect for words with references but no dedicated page."
75
+ },
71
76
  "representations": {
72
77
  "type": "object",
73
78
  "properties": {
@@ -166,24 +171,27 @@
166
171
  "description": "Unlocalized etymological values regarding this word's origin"
167
172
  },
168
173
  "audio": {
169
- "type": "object",
170
- "properties": {
171
- "jan_lakuse": {
172
- "type": "string",
173
- "format": "uri",
174
- "description": "jan Lakuse's pronounciation of the word, made for jan Sonja's Memrise course: https://archive.org/details/toki-pona-audio-by-jan-lakuse"
174
+ "type": "array",
175
+ "items": {
176
+ "type": "object",
177
+ "properties": {
178
+ "author": {
179
+ "type": "string",
180
+ "description": "The author of the audio file in `link`."
181
+ },
182
+ "link": {
183
+ "type": "string",
184
+ "format": "uri",
185
+ "description": "A link to the audio file for the word, pronounced by `author`."
186
+ }
175
187
  },
176
- "kala_asi": {
177
- "type": "string",
178
- "format": "uri",
179
- "description": "kala Asi's pronounciation of the word, made for the Linku Project"
180
- }
181
- },
182
- "required": [
183
- "kala_asi"
184
- ],
185
- "additionalProperties": false,
186
- "description": "Audio files of the words pronounced out loud"
188
+ "required": [
189
+ "author",
190
+ "link"
191
+ ],
192
+ "additionalProperties": false,
193
+ "description": "Audio files of the words pronounced out loud"
194
+ }
187
195
  },
188
196
  "pu_verbatim": {
189
197
  "type": "object",
@@ -214,7 +222,7 @@
214
222
  "additionalProperties": false,
215
223
  "description": "The original definition of the word in pu, the first official Toki Pona book"
216
224
  },
217
- "recognition": {
225
+ "usage": {
218
226
  "type": "object",
219
227
  "additionalProperties": {
220
228
  "type": "number",
@@ -286,7 +294,7 @@
286
294
  "word",
287
295
  "etymology",
288
296
  "audio",
289
- "recognition",
297
+ "usage",
290
298
  "translations"
291
299
  ],
292
300
  "additionalProperties": false,
package/package.json CHANGED
@@ -1,71 +1,71 @@
1
1
  {
2
- "name": "@kulupu-linku/sona",
3
- "version": "0.1.1",
4
- "description": "A library providing TypeScript types and Zod schemas for the sona API",
5
- "homepage": "https://linku.la/",
6
- "bugs": {
7
- "url": "https://github.com/lipu-linku/sona/issues/"
8
- },
9
- "license": "GPL-3.0-or-later",
10
- "contributors": [
11
- {
12
- "name": "TheOnlyTails",
13
- "url": "https://theonlytails.com/",
14
- "email": "theonlytails@theonlytails.com"
15
- },
16
- {
17
- "name": "gregdan3 (jan Kekan San)",
18
- "url": "https://gregdan3.dev/",
19
- "email": "gregdan3@protonmail.com"
20
- }
21
- ],
22
- "repository": {
23
- "url": "https://github.com/lipu-linku/sona.git",
24
- "directory": "schemas",
25
- "type": "git"
26
- },
27
- "scripts": {
28
- "generate": "tsx ./generateSchemas.ts",
29
- "generate:watch": "tsx ./generateSchemas.ts --watch-path=./**/*.ts",
30
- "build": "tsup ./src/**/*.ts --dts --format esm"
31
- },
32
- "dependencies": {
33
- "hono": "^3.12.6",
34
- "zod": "^3.22.4"
35
- },
36
- "devDependencies": {
37
- "@types/node": "^20.11.5",
38
- "prettier": "^3.2.4",
39
- "tsup": "^8.0.1",
40
- "tsx": "^4.7.0",
41
- "typescript": "^5.3.3",
42
- "zod-to-json-schema": "^3.22.3"
43
- },
44
- "engines": {
45
- "pnpm": ">=8"
46
- },
47
- "files": [
48
- "/dist",
49
- "/generated"
50
- ],
51
- "main": "./dist/index.js",
52
- "exports": {
53
- ".": {
54
- "import": "./dist/index.js",
55
- "node": "./dist/index.js",
56
- "types": "./dist/index.d.ts"
57
- },
58
- "./utils": {
59
- "import": "./dist/utils.js",
60
- "node": "./dist/utils.js",
61
- "types": "./dist/utils.d.ts"
62
- },
63
- "./client": {
64
- "import": "./dist/client.js",
65
- "node": "./dist/client.js",
66
- "types": "./dist/client.d.ts"
67
- }
68
- },
69
- "packageManager": "pnpm@8.14.3",
70
- "type": "module"
71
- }
2
+ "name": "@kulupu-linku/sona",
3
+ "version": "0.1.3",
4
+ "description": "A library providing TypeScript types and Zod schemas for the sona API",
5
+ "homepage": "https://linku.la/",
6
+ "bugs": {
7
+ "url": "https://github.com/lipu-linku/sona/issues/"
8
+ },
9
+ "license": "GPL-3.0-or-later",
10
+ "contributors": [
11
+ {
12
+ "name": "TheOnlyTails",
13
+ "url": "https://theonlytails.com/",
14
+ "email": "theonlytails@theonlytails.com"
15
+ },
16
+ {
17
+ "name": "gregdan3 (jan Kekan San)",
18
+ "url": "https://gregdan3.dev/",
19
+ "email": "gregdan3@protonmail.com"
20
+ }
21
+ ],
22
+ "repository": {
23
+ "url": "https://github.com/lipu-linku/sona.git",
24
+ "directory": "schemas",
25
+ "type": "git"
26
+ },
27
+ "dependencies": {
28
+ "hono": "^3.12.6",
29
+ "zod": "^3.22.4"
30
+ },
31
+ "devDependencies": {
32
+ "@types/node": "^20.11.5",
33
+ "prettier": "^3.2.4",
34
+ "tsup": "^8.0.1",
35
+ "tsx": "^4.7.0",
36
+ "typescript": "^5.3.3",
37
+ "zod-to-json-schema": "^3.22.3"
38
+ },
39
+ "engines": {
40
+ "pnpm": ">=8"
41
+ },
42
+ "files": [
43
+ "/dist",
44
+ "/generated"
45
+ ],
46
+ "main": "./dist/index.js",
47
+ "exports": {
48
+ ".": {
49
+ "import": "./dist/index.js",
50
+ "node": "./dist/index.js",
51
+ "types": "./dist/index.d.ts"
52
+ },
53
+ "./utils": {
54
+ "import": "./dist/utils.js",
55
+ "node": "./dist/utils.js",
56
+ "types": "./dist/utils.d.ts"
57
+ },
58
+ "./client": {
59
+ "import": "./dist/client.js",
60
+ "node": "./dist/client.js",
61
+ "types": "./dist/client.d.ts"
62
+ }
63
+ },
64
+ "packageManager": "pnpm@8.14.3",
65
+ "type": "module",
66
+ "scripts": {
67
+ "generate": "tsx ./generateSchemas.ts",
68
+ "generate:watch": "tsx ./generateSchemas.ts --watch-path=./**/*.ts",
69
+ "build": "tsup ./src/**/*.ts --dts --format esm"
70
+ }
71
+ }