@workos/openapi-spec 0.4.0 → 0.6.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 +42 -3
- package/{open-api-spec.yaml → dist/open-api-spec.yaml} +442 -162
- package/dist/operationOverrides.node.json +122 -0
- package/dist/policy.d.mts +85 -0
- package/dist/policy.mjs +398 -0
- package/{types.d.ts → dist/types.d.ts} +401 -127
- package/package.json +52 -8
package/package.json
CHANGED
|
@@ -1,23 +1,67 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workos/openapi-spec",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "WorkOS OpenAPI specification, TypeScript types, and SDK resolution policy",
|
|
5
6
|
"license": "MIT",
|
|
6
7
|
"repository": {
|
|
7
8
|
"type": "git",
|
|
8
9
|
"url": "git+https://github.com/workos/openapi-spec.git"
|
|
9
10
|
},
|
|
11
|
+
"types": "./dist/types.d.ts",
|
|
10
12
|
"files": [
|
|
11
|
-
"
|
|
12
|
-
"types.d.ts"
|
|
13
|
+
"dist/"
|
|
13
14
|
],
|
|
14
|
-
"types": "types.d.ts",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
-
"types": "./types.d.ts",
|
|
18
|
-
"default": "./open-api-spec.yaml"
|
|
17
|
+
"types": "./dist/types.d.ts",
|
|
18
|
+
"default": "./dist/open-api-spec.yaml"
|
|
19
19
|
},
|
|
20
|
-
"./spec": "./open-api-spec.yaml",
|
|
20
|
+
"./spec": "./dist/open-api-spec.yaml",
|
|
21
|
+
"./policy": {
|
|
22
|
+
"types": "./dist/policy.d.mts",
|
|
23
|
+
"import": "./dist/policy.mjs"
|
|
24
|
+
},
|
|
25
|
+
"./operation-overrides/node": "./dist/operationOverrides.node.json",
|
|
21
26
|
"./package.json": "./package.json"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@workos/oagen": "^0.22.4"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build:policy": "tsdown",
|
|
33
|
+
"generate:postman": "tsx scripts/postman/generate.ts",
|
|
34
|
+
"generate:postman:local": "tsx scripts/postman/generate.ts --local",
|
|
35
|
+
"sdk:resolve": "npx oagen resolve --spec spec/open-api-spec.yaml",
|
|
36
|
+
"sdk:generate": "bash scripts/sdk-generate.sh",
|
|
37
|
+
"sdk:diff": "bash scripts/sdk-diff.sh",
|
|
38
|
+
"sdk:verify": "bash scripts/sdk-verify.sh",
|
|
39
|
+
"sdk:extract": "bash scripts/sdk-extract.sh",
|
|
40
|
+
"sdk:compat-extract": "bash scripts/sdk-compat-extract.sh",
|
|
41
|
+
"sdk:compat-diff": "bash scripts/sdk-compat-diff.sh",
|
|
42
|
+
"sdk:compat-summary": "bash scripts/sdk-compat-summary.sh",
|
|
43
|
+
"sdk:compat-report": "node scripts/sdk-compat-pr-comment.mjs --artifacts-root .oagen --output compat-report.md --build-result success",
|
|
44
|
+
"sdk:languages": "node -e \"console.log(JSON.parse(require('fs').readFileSync('.github/sdk-matrix.json','utf8')).map(e=>e.language).join('\\n'))\"",
|
|
45
|
+
"sdk:generate-all": "bash scripts/sdk-generate-all.sh --parent-dir",
|
|
46
|
+
"sdk:check": "npx oagen resolve --spec spec/open-api-spec.yaml --format json > /dev/null && echo 'Config loaded successfully'",
|
|
47
|
+
"dev:link": "npm link @workos/oagen @workos/oagen-emitters",
|
|
48
|
+
"dev:unlink": "npm install",
|
|
49
|
+
"prepare": "husky"
|
|
50
|
+
},
|
|
51
|
+
"overrides": {
|
|
52
|
+
"js-yaml": "^4.2.0",
|
|
53
|
+
"lodash": "^4.17.23"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/js-yaml": "^4.0.9",
|
|
57
|
+
"@types/node": "^25.9.1",
|
|
58
|
+
"@workos/oagen-emitters": "^0.16.0",
|
|
59
|
+
"diff2html": "^3.4.56",
|
|
60
|
+
"husky": "^9.1.7",
|
|
61
|
+
"js-yaml": "^4.2.0",
|
|
62
|
+
"openapi-to-postmanv2": "^6.0.1",
|
|
63
|
+
"tsdown": "^0.22.1",
|
|
64
|
+
"tsx": "^4.22.4",
|
|
65
|
+
"typescript": "^6.0.3"
|
|
22
66
|
}
|
|
23
67
|
}
|