@cloudpdf/contract 3.0.0-next.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/LICENSE +192 -0
- package/README.md +26 -0
- package/dist/index.d.ts +6712 -0
- package/dist/index.js +843 -0
- package/dist/index.js.map +1 -0
- package/dist/openapi.d.ts +17 -0
- package/dist/openapi.js +1029 -0
- package/dist/openapi.js.map +1 -0
- package/openapi.json +10847 -0
- package/package.json +66 -0
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cloudpdf/contract",
|
|
3
|
+
"version": "3.0.0-next.1",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "The CloudPDF engine contract: operation registry, zod schemas, and OpenAPI emitter for every backend-callable surface — used by @cloudpdf/server (to mount and validate) and @cloudpdf/admin (to type requests), and the source of the committed openapi.json.",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./openapi": {
|
|
15
|
+
"types": "./dist/openapi.d.ts",
|
|
16
|
+
"default": "./dist/openapi.js"
|
|
17
|
+
},
|
|
18
|
+
"./openapi.json": "./openapi.json"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"openapi.json",
|
|
23
|
+
"LICENSE",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/embedpdf/embed-pdf-viewer.git",
|
|
29
|
+
"directory": "cloudpdf/contract"
|
|
30
|
+
},
|
|
31
|
+
"homepage": "https://www.cloudpdf.com",
|
|
32
|
+
"bugs": {
|
|
33
|
+
"url": "https://github.com/embedpdf/embed-pdf-viewer/issues"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"pdf",
|
|
37
|
+
"cloudpdf",
|
|
38
|
+
"contract",
|
|
39
|
+
"openapi"
|
|
40
|
+
],
|
|
41
|
+
"license": "Apache-2.0",
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"zod": "^3.23.8",
|
|
44
|
+
"zod-to-json-schema": "^3.24.6",
|
|
45
|
+
"@embedpdf/engine-core": "3.0.0-next.1"
|
|
46
|
+
},
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/node": "latest",
|
|
49
|
+
"rimraf": "^5.0.0",
|
|
50
|
+
"tsup": "^8.3.0",
|
|
51
|
+
"typescript": "^5.0.0",
|
|
52
|
+
"vitest": "^2.1.0"
|
|
53
|
+
},
|
|
54
|
+
"publishConfig": {
|
|
55
|
+
"access": "public"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "tsup",
|
|
59
|
+
"clean": "rimraf dist",
|
|
60
|
+
"dev": "tsup --watch",
|
|
61
|
+
"emit:openapi": "tsup && node scripts/emit-openapi.mjs",
|
|
62
|
+
"test": "vitest run",
|
|
63
|
+
"lint": "eslint src --color",
|
|
64
|
+
"lint:fix": "eslint src --color --fix"
|
|
65
|
+
}
|
|
66
|
+
}
|