@shotstack/schemas 1.8.7 → 1.9.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 +89 -89
- package/dist/api.bundled.json +26 -0
- package/dist/json-schema/asset.json +45 -2
- package/dist/json-schema/clip.json +45 -2
- package/dist/json-schema/edit.json +45 -2
- package/dist/json-schema/rich-caption-active-font.json +18 -1
- package/dist/json-schema/rich-caption-active.json +105 -1
- package/dist/json-schema/rich-caption-asset.json +45 -2
- package/dist/json-schema/schemas.json +48 -2
- package/dist/json-schema/timeline.json +45 -2
- package/dist/json-schema/track.json +45 -2
- package/dist/schema.d.ts +16 -0
- package/dist/zod/zod.gen.cjs +1091 -925
- package/dist/zod/zod.gen.d.ts +1220 -344
- package/dist/zod/zod.gen.js +1092 -926
- package/dist/zod/zod.gen.ts +1601 -1667
- package/package.json +95 -79
package/package.json
CHANGED
|
@@ -1,79 +1,95 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@shotstack/schemas",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "dist/index.js",
|
|
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
|
-
"import": "./dist/zod/zod.gen.js",
|
|
16
|
-
"require": "./dist/zod/zod.gen.cjs"
|
|
17
|
-
},
|
|
18
|
-
"./json": {
|
|
19
|
-
"types": "./dist/json-schema/index.d.ts",
|
|
20
|
-
"import": "./dist/json-schema/index.js",
|
|
21
|
-
"require": "./dist/json-schema/index.cjs"
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"files": [
|
|
25
|
-
"dist"
|
|
26
|
-
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"test": "tsc --noEmit --skipLibCheck",
|
|
29
|
-
"clean": "node -e \"fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
|
|
30
|
-
"bundle": "swagger-cli bundle api.oas3.yaml -o dist/api.bundled.json -t json",
|
|
31
|
-
"generate:types": "openapi-typescript dist/api.bundled.json -o dist/schema.d.ts --default-non-nullable=false",
|
|
32
|
-
"generate:zod": "openapi-ts",
|
|
33
|
-
"compile:zod:cjs": "tsc --declaration false --module commonjs --moduleResolution node --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts && node -e \"require('fs').renameSync('dist/zod/zod.gen.js','dist/zod/zod.gen.cjs')\"",
|
|
34
|
-
"compile:zod:esm": "tsc --declaration --module nodenext --moduleResolution nodenext --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts",
|
|
35
|
-
"compile:zod": "
|
|
36
|
-
"generate:json-schema": "node scripts/generate-json-schema.cjs",
|
|
37
|
-
"fix:discriminator": "node scripts/fix-discriminator.cjs",
|
|
38
|
-
"copy:index": "node -e \"require('fs').writeFileSync('dist/index.d.ts','export type * from \\\"./schema\\\";');require('fs').writeFileSync('dist/index.js','// Type-only package\\nexport {};');\"",
|
|
39
|
-
"build": "
|
|
40
|
-
"build:docs": "cross-env ./build-docs.sh",
|
|
41
|
-
"build:sdks": "cross-env ./build-sdks.sh",
|
|
42
|
-
"start": "cross-env ./build-docs.sh && http-server build/docs/ -o -c-1",
|
|
43
|
-
"deploy:docs": "aws s3 sync build/docs/ s3://shotstack.io/docs/api",
|
|
44
|
-
"prepublishOnly": "
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"@
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
|
|
79
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@shotstack/schemas",
|
|
3
|
+
"version": "1.9.0",
|
|
4
|
+
"description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
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
|
+
"import": "./dist/zod/zod.gen.js",
|
|
16
|
+
"require": "./dist/zod/zod.gen.cjs"
|
|
17
|
+
},
|
|
18
|
+
"./json": {
|
|
19
|
+
"types": "./dist/json-schema/index.d.ts",
|
|
20
|
+
"import": "./dist/json-schema/index.js",
|
|
21
|
+
"require": "./dist/json-schema/index.cjs"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"dist"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"test": "tsc --noEmit --skipLibCheck",
|
|
29
|
+
"clean": "node -e \"fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
|
|
30
|
+
"bundle": "swagger-cli bundle api.oas3.yaml -o dist/api.bundled.json -t json",
|
|
31
|
+
"generate:types": "openapi-typescript dist/api.bundled.json -o dist/schema.d.ts --default-non-nullable=false",
|
|
32
|
+
"generate:zod": "openapi-ts",
|
|
33
|
+
"compile:zod:cjs": "tsc --declaration false --module commonjs --moduleResolution node --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts && node -e \"require('fs').renameSync('dist/zod/zod.gen.js','dist/zod/zod.gen.cjs')\"",
|
|
34
|
+
"compile:zod:esm": "tsc --declaration --module nodenext --moduleResolution nodenext --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts",
|
|
35
|
+
"compile:zod": "pnpm compile:zod:cjs && pnpm compile:zod:esm",
|
|
36
|
+
"generate:json-schema": "node scripts/generate-json-schema.cjs",
|
|
37
|
+
"fix:discriminator": "node scripts/fix-discriminator.cjs",
|
|
38
|
+
"copy:index": "node -e \"require('fs').writeFileSync('dist/index.d.ts','export type * from \\\"./schema\\\";');require('fs').writeFileSync('dist/index.js','// Type-only package\\nexport {};');\"",
|
|
39
|
+
"build": "pnpm clean && node -e \"require('fs').mkdirSync('dist',{recursive:true})\" && pnpm bundle && pnpm generate:types && pnpm generate:zod && pnpm fix:discriminator && pnpm compile:zod && pnpm generate:json-schema && pnpm copy:index",
|
|
40
|
+
"build:docs": "cross-env ./build-docs.sh",
|
|
41
|
+
"build:sdks": "cross-env ./build-sdks.sh",
|
|
42
|
+
"start": "cross-env ./build-docs.sh && http-server build/docs/ -o -c-1",
|
|
43
|
+
"deploy:docs": "aws s3 sync build/docs/ s3://shotstack.io/docs/api",
|
|
44
|
+
"prepublishOnly": "node scripts/publish-guard.cjs && pnpm build && pnpm test",
|
|
45
|
+
"test:smoke": "node tests/smoke.cjs"
|
|
46
|
+
},
|
|
47
|
+
"repository": {
|
|
48
|
+
"type": "git",
|
|
49
|
+
"url": "https://github.com/shotstack/oas-api-definition.git"
|
|
50
|
+
},
|
|
51
|
+
"author": "Shotstack",
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"homepage": "https://github.com/shotstack/oas-api-definition",
|
|
54
|
+
"keywords": [
|
|
55
|
+
"shotstack",
|
|
56
|
+
"video",
|
|
57
|
+
"api",
|
|
58
|
+
"openapi",
|
|
59
|
+
"schema",
|
|
60
|
+
"typescript",
|
|
61
|
+
"zod"
|
|
62
|
+
],
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"zod": "^4.2.0"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"zod": "^4.0.0"
|
|
68
|
+
},
|
|
69
|
+
"devDependencies": {
|
|
70
|
+
"@apidevtools/swagger-cli": "^4.0.4",
|
|
71
|
+
"@hey-api/openapi-ts": "^0.89.2",
|
|
72
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
73
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
74
|
+
"@semantic-release/git": "^10.0.1",
|
|
75
|
+
"@semantic-release/github": "^12.0.6",
|
|
76
|
+
"@semantic-release/npm": "^13.1.5",
|
|
77
|
+
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
78
|
+
"ajv": "^8.11.2",
|
|
79
|
+
"cross-env": "^7.0.3",
|
|
80
|
+
"http-server": "^14.1.0",
|
|
81
|
+
"openapi-typescript": "^7.4.4",
|
|
82
|
+
"semantic-release": "^25.0.3",
|
|
83
|
+
"tsx": "^4.21.0",
|
|
84
|
+
"typescript": "^5.7.2",
|
|
85
|
+
"widdershins": "^4.0.1"
|
|
86
|
+
},
|
|
87
|
+
"publishConfig": {
|
|
88
|
+
"access": "public",
|
|
89
|
+
"registry": "https://registry.npmjs.org/",
|
|
90
|
+
"provenance": true
|
|
91
|
+
},
|
|
92
|
+
"engines": {
|
|
93
|
+
"node": ">=20"
|
|
94
|
+
}
|
|
95
|
+
}
|