@shotstack/schemas 1.0.1
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 +39 -0
- package/dist/api.bundled.json +5508 -0
- package/dist/index.d.ts +1 -0
- package/dist/schema.d.ts +4240 -0
- package/package.json +50 -0
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shotstack/schemas",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Centralized OpenAPI schemas and TypeScript types for Shotstack API",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "tsc --noEmit",
|
|
12
|
+
"clean": "node -e \"fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
|
|
13
|
+
"bundle": "swagger-cli bundle api.oas3.yaml -o dist/api.bundled.json -t json",
|
|
14
|
+
"generate:types": "openapi-typescript dist/api.bundled.json -o dist/schema.d.ts",
|
|
15
|
+
"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",
|
|
17
|
+
"build:docs": "cross-env ./build-docs.sh",
|
|
18
|
+
"build:sdks": "cross-env ./build-sdks.sh",
|
|
19
|
+
"start": "cross-env ./build-docs.sh && http-server build/docs/ -o -c-1",
|
|
20
|
+
"deploy:docs": "aws s3 sync build/docs/ s3://shotstack.io/docs/api",
|
|
21
|
+
"prepublishOnly": "npm run build && npm run test"
|
|
22
|
+
},
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "git+ssh://git@bitbucket.org/shotstack/oas-api-definition.git"
|
|
26
|
+
},
|
|
27
|
+
"author": "Shotstack",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"homepage": "https://github.com/shotstack/oas-api-definition",
|
|
30
|
+
"keywords": [
|
|
31
|
+
"shotstack",
|
|
32
|
+
"video",
|
|
33
|
+
"api",
|
|
34
|
+
"openapi",
|
|
35
|
+
"schema",
|
|
36
|
+
"typescript"
|
|
37
|
+
],
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"js-yaml": "^3.14.1"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@apidevtools/swagger-cli": "^4.0.4",
|
|
43
|
+
"ajv": "^8.11.2",
|
|
44
|
+
"cross-env": "^7.0.3",
|
|
45
|
+
"http-server": "^14.1.0",
|
|
46
|
+
"openapi-typescript": "^7.4.4",
|
|
47
|
+
"typescript": "^5.7.2",
|
|
48
|
+
"widdershins": "^4.0.1"
|
|
49
|
+
}
|
|
50
|
+
}
|