@shotstack/schemas 1.0.1 → 1.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.
- package/README.md +52 -2
- package/dist/index.d.ts +1 -1
- package/dist/zod/zod.gen.ts +2789 -0
- package/package.json +23 -5
package/package.json
CHANGED
|
@@ -1,19 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shotstack/schemas",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
|
|
5
|
+
"type": "module",
|
|
5
6
|
"main": "dist/index.js",
|
|
6
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./zod": {
|
|
14
|
+
"types": "./dist/zod/zod.gen.d.ts",
|
|
15
|
+
"default": "./dist/zod/zod.gen.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
7
18
|
"files": [
|
|
8
19
|
"dist"
|
|
9
20
|
],
|
|
10
21
|
"scripts": {
|
|
11
|
-
"test": "tsc --noEmit",
|
|
22
|
+
"test": "tsc --noEmit --skipLibCheck",
|
|
12
23
|
"clean": "node -e \"fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
|
|
13
24
|
"bundle": "swagger-cli bundle api.oas3.yaml -o dist/api.bundled.json -t json",
|
|
14
25
|
"generate:types": "openapi-typescript dist/api.bundled.json -o dist/schema.d.ts",
|
|
26
|
+
"generate:zod": "openapi-ts",
|
|
15
27
|
"copy:index": "node -e \"require('fs').copyFileSync('src/index.ts','dist/index.d.ts')\"",
|
|
16
|
-
"build": "npm run clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && npm run bundle && npm run generate:types && npm run copy:index",
|
|
28
|
+
"build": "npm run clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && npm run bundle && npm run generate:types && npm run generate:zod && npm run copy:index",
|
|
17
29
|
"build:docs": "cross-env ./build-docs.sh",
|
|
18
30
|
"build:sdks": "cross-env ./build-sdks.sh",
|
|
19
31
|
"start": "cross-env ./build-docs.sh && http-server build/docs/ -o -c-1",
|
|
@@ -33,17 +45,23 @@
|
|
|
33
45
|
"api",
|
|
34
46
|
"openapi",
|
|
35
47
|
"schema",
|
|
36
|
-
"typescript"
|
|
48
|
+
"typescript",
|
|
49
|
+
"zod"
|
|
37
50
|
],
|
|
38
51
|
"dependencies": {
|
|
39
|
-
"
|
|
52
|
+
"zod": "^4.2.0"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"zod": "^4.0.0"
|
|
40
56
|
},
|
|
41
57
|
"devDependencies": {
|
|
42
58
|
"@apidevtools/swagger-cli": "^4.0.4",
|
|
59
|
+
"@hey-api/openapi-ts": "^0.89.2",
|
|
43
60
|
"ajv": "^8.11.2",
|
|
44
61
|
"cross-env": "^7.0.3",
|
|
45
62
|
"http-server": "^14.1.0",
|
|
46
63
|
"openapi-typescript": "^7.4.4",
|
|
64
|
+
"tsx": "^4.21.0",
|
|
47
65
|
"typescript": "^5.7.2",
|
|
48
66
|
"widdershins": "^4.0.1"
|
|
49
67
|
}
|