@shotstack/schemas 1.4.0 → 1.4.2

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/package.json CHANGED
@@ -1,73 +1,73 @@
1
- {
2
- "name": "@shotstack/schemas",
3
- "version": "1.4.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
- },
19
- "files": [
20
- "dist"
21
- ],
22
- "scripts": {
23
- "test": "tsc --noEmit --skipLibCheck",
24
- "clean": "node -e \"fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
25
- "bundle": "swagger-cli bundle api.oas3.yaml -o dist/api.bundled.json -t json",
26
- "generate:types": "openapi-typescript dist/api.bundled.json -o dist/schema.d.ts",
27
- "generate:zod": "openapi-ts",
28
- "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')\"",
29
- "compile:zod:esm": "tsc --declaration --module nodenext --moduleResolution nodenext --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts",
30
- "compile:zod": "npm run compile:zod:cjs && npm run compile:zod:esm",
31
- "fix:discriminator": "node scripts/fix-discriminator.cjs",
32
- "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 {};');\"",
33
- "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 fix:discriminator && npm run compile:zod && npm run copy:index",
34
- "build:docs": "cross-env ./build-docs.sh",
35
- "build:sdks": "cross-env ./build-sdks.sh",
36
- "start": "cross-env ./build-docs.sh && http-server build/docs/ -o -c-1",
37
- "deploy:docs": "aws s3 sync build/docs/ s3://shotstack.io/docs/api",
38
- "prepublishOnly": "npm run build && npm run test"
39
- },
40
- "repository": {
41
- "type": "git",
42
- "url": "git+ssh://git@bitbucket.org/shotstack/oas-api-definition.git"
43
- },
44
- "author": "Shotstack",
45
- "license": "MIT",
46
- "homepage": "https://github.com/shotstack/oas-api-definition",
47
- "keywords": [
48
- "shotstack",
49
- "video",
50
- "api",
51
- "openapi",
52
- "schema",
53
- "typescript",
54
- "zod"
55
- ],
56
- "dependencies": {
57
- "zod": "^4.2.0"
58
- },
59
- "peerDependencies": {
60
- "zod": "^4.0.0"
61
- },
62
- "devDependencies": {
63
- "@apidevtools/swagger-cli": "^4.0.4",
64
- "@hey-api/openapi-ts": "^0.89.2",
65
- "ajv": "^8.11.2",
66
- "cross-env": "^7.0.3",
67
- "http-server": "^14.1.0",
68
- "openapi-typescript": "^7.4.4",
69
- "tsx": "^4.21.0",
70
- "typescript": "^5.7.2",
71
- "widdershins": "^4.0.1"
72
- }
73
- }
1
+ {
2
+ "name": "@shotstack/schemas",
3
+ "version": "1.4.2",
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
+ },
19
+ "files": [
20
+ "dist"
21
+ ],
22
+ "scripts": {
23
+ "test": "tsc --noEmit --skipLibCheck",
24
+ "clean": "node -e \"fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
25
+ "bundle": "swagger-cli bundle api.oas3.yaml -o dist/api.bundled.json -t json",
26
+ "generate:types": "openapi-typescript dist/api.bundled.json -o dist/schema.d.ts",
27
+ "generate:zod": "openapi-ts",
28
+ "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')\"",
29
+ "compile:zod:esm": "tsc --declaration --module nodenext --moduleResolution nodenext --target ES2022 --outDir dist/zod --skipLibCheck dist/zod/zod.gen.ts",
30
+ "compile:zod": "npm run compile:zod:cjs && npm run compile:zod:esm",
31
+ "fix:discriminator": "node scripts/fix-discriminator.cjs",
32
+ "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 {};');\"",
33
+ "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 fix:discriminator && npm run compile:zod && npm run copy:index",
34
+ "build:docs": "cross-env ./build-docs.sh",
35
+ "build:sdks": "cross-env ./build-sdks.sh",
36
+ "start": "cross-env ./build-docs.sh && http-server build/docs/ -o -c-1",
37
+ "deploy:docs": "aws s3 sync build/docs/ s3://shotstack.io/docs/api",
38
+ "prepublishOnly": "npm run build && npm run test"
39
+ },
40
+ "repository": {
41
+ "type": "git",
42
+ "url": "git+ssh://git@bitbucket.org/shotstack/oas-api-definition.git"
43
+ },
44
+ "author": "Shotstack",
45
+ "license": "MIT",
46
+ "homepage": "https://github.com/shotstack/oas-api-definition",
47
+ "keywords": [
48
+ "shotstack",
49
+ "video",
50
+ "api",
51
+ "openapi",
52
+ "schema",
53
+ "typescript",
54
+ "zod"
55
+ ],
56
+ "dependencies": {
57
+ "zod": "^4.2.0"
58
+ },
59
+ "peerDependencies": {
60
+ "zod": "^4.0.0"
61
+ },
62
+ "devDependencies": {
63
+ "@apidevtools/swagger-cli": "^4.0.4",
64
+ "@hey-api/openapi-ts": "^0.89.2",
65
+ "ajv": "^8.11.2",
66
+ "cross-env": "^7.0.3",
67
+ "http-server": "^14.1.0",
68
+ "openapi-typescript": "^7.4.4",
69
+ "tsx": "^4.21.0",
70
+ "typescript": "^5.7.2",
71
+ "widdershins": "^4.0.1"
72
+ }
73
+ }