@orpc/openapi 0.0.0-next.e9dc36e → 0.0.0-next.ed15210

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.
Files changed (52) hide show
  1. package/dist/chunk-7MA7YRRY.js +25 -0
  2. package/dist/chunk-BUMQYADN.js +653 -0
  3. package/dist/chunk-DSYVLQK3.js +95 -0
  4. package/dist/fetch.js +34 -0
  5. package/dist/hono.js +34 -0
  6. package/dist/index.js +451 -4323
  7. package/dist/next.js +34 -0
  8. package/dist/node.js +46 -0
  9. package/dist/src/adapters/fetch/bracket-notation.d.ts +84 -0
  10. package/dist/src/adapters/fetch/index.d.ts +10 -0
  11. package/dist/src/adapters/fetch/input-structure-compact.d.ts +6 -0
  12. package/dist/src/adapters/fetch/input-structure-detailed.d.ts +11 -0
  13. package/dist/src/adapters/fetch/openapi-handler-server.d.ts +7 -0
  14. package/dist/src/adapters/fetch/openapi-handler-serverless.d.ts +7 -0
  15. package/dist/src/adapters/fetch/openapi-handler.d.ts +32 -0
  16. package/dist/src/adapters/fetch/openapi-payload-codec.d.ts +15 -0
  17. package/dist/src/adapters/fetch/openapi-procedure-matcher.d.ts +19 -0
  18. package/dist/src/adapters/fetch/schema-coercer.d.ts +10 -0
  19. package/dist/src/adapters/hono/index.d.ts +2 -0
  20. package/dist/src/adapters/next/index.d.ts +2 -0
  21. package/dist/src/adapters/node/index.d.ts +5 -0
  22. package/dist/src/adapters/node/openapi-handler-server.d.ts +7 -0
  23. package/dist/src/adapters/node/openapi-handler-serverless.d.ts +7 -0
  24. package/dist/src/adapters/node/openapi-handler.d.ts +11 -0
  25. package/dist/src/adapters/node/types.d.ts +2 -0
  26. package/dist/src/index.d.ts +10 -1
  27. package/dist/src/json-serializer.d.ts +5 -0
  28. package/dist/src/openapi-content-builder.d.ts +10 -0
  29. package/dist/src/openapi-error.d.ts +3 -0
  30. package/dist/src/openapi-generator.d.ts +67 -0
  31. package/dist/src/openapi-input-structure-parser.d.ts +22 -0
  32. package/dist/src/openapi-output-structure-parser.d.ts +18 -0
  33. package/dist/src/openapi-parameters-builder.d.ts +12 -0
  34. package/dist/src/openapi-path-parser.d.ts +8 -0
  35. package/dist/src/openapi.d.ts +3 -0
  36. package/dist/src/schema-converter.d.ts +16 -0
  37. package/dist/src/schema-utils.d.ts +11 -0
  38. package/dist/src/schema.d.ts +12 -0
  39. package/dist/src/utils.d.ts +18 -0
  40. package/package.json +39 -18
  41. package/dist/index.js.map +0 -1
  42. package/dist/src/generator.d.ts +0 -24
  43. package/dist/src/generator.d.ts.map +0 -1
  44. package/dist/src/index.d.ts.map +0 -1
  45. package/dist/src/zod-to-json-schema.d.ts +0 -43
  46. package/dist/src/zod-to-json-schema.d.ts.map +0 -1
  47. package/dist/tsconfig.tsbuildinfo +0 -1
  48. package/src/generator.test.ts +0 -643
  49. package/src/generator.ts +0 -338
  50. package/src/index.ts +0 -3
  51. package/src/zod-to-json-schema.test.ts +0 -391
  52. package/src/zod-to-json-schema.ts +0 -655
package/package.json CHANGED
@@ -1,21 +1,17 @@
1
1
  {
2
2
  "name": "@orpc/openapi",
3
3
  "type": "module",
4
- "version": "0.0.0-next.e9dc36e",
5
- "author": {
6
- "name": "unnoq",
7
- "email": "contact@unnoq.com",
8
- "url": "https://unnoq.com"
9
- },
4
+ "version": "0.0.0-next.ed15210",
10
5
  "license": "MIT",
11
- "homepage": "https://github.com/unnoq/orpc",
6
+ "homepage": "https://orpc.unnoq.com",
12
7
  "repository": {
13
8
  "type": "git",
14
- "url": "https://github.com/unnoq/orpc.git",
9
+ "url": "git+https://github.com/unnoq/orpc.git",
15
10
  "directory": "packages/openapi"
16
11
  },
17
12
  "keywords": [
18
- "unnoq"
13
+ "unnoq",
14
+ "orpc"
19
15
  ],
20
16
  "exports": {
21
17
  ".": {
@@ -23,30 +19,55 @@
23
19
  "import": "./dist/index.js",
24
20
  "default": "./dist/index.js"
25
21
  },
22
+ "./fetch": {
23
+ "types": "./dist/src/adapters/fetch/index.d.ts",
24
+ "import": "./dist/fetch.js",
25
+ "default": "./dist/fetch.js"
26
+ },
27
+ "./hono": {
28
+ "types": "./dist/src/adapters/hono/index.d.ts",
29
+ "import": "./dist/hono.js",
30
+ "default": "./dist/hono.js"
31
+ },
32
+ "./next": {
33
+ "types": "./dist/src/adapters/next/index.d.ts",
34
+ "import": "./dist/next.js",
35
+ "default": "./dist/next.js"
36
+ },
37
+ "./node": {
38
+ "types": "./dist/src/adapters/node/index.d.ts",
39
+ "import": "./dist/node.js",
40
+ "default": "./dist/node.js"
41
+ },
26
42
  "./🔒/*": {
27
43
  "types": "./dist/src/*.d.ts"
28
44
  }
29
45
  },
30
46
  "files": [
31
- "dist",
32
- "src"
47
+ "!**/*.map",
48
+ "!**/*.tsbuildinfo",
49
+ "dist"
33
50
  ],
34
51
  "dependencies": {
52
+ "@standard-schema/spec": "1.0.0-beta.4",
53
+ "@types/content-disposition": "^0.5.8",
54
+ "content-disposition": "^0.5.4",
35
55
  "escape-string-regexp": "^5.0.0",
56
+ "fast-content-type-parse": "^2.0.0",
57
+ "hono": "^4.6.12",
36
58
  "json-schema-typed": "^8.0.1",
37
59
  "openapi3-ts": "^4.4.0",
38
- "@orpc/server": "0.0.0-next.e9dc36e",
39
- "@orpc/contract": "0.0.0-next.e9dc36e",
40
- "@orpc/transformer": "0.0.0-next.e9dc36e",
41
- "@orpc/zod": "0.0.0-next.e9dc36e",
42
- "@orpc/shared": "0.0.0-next.e9dc36e"
60
+ "wildcard-match": "^5.1.3",
61
+ "@orpc/contract": "0.0.0-next.ed15210",
62
+ "@orpc/shared": "0.0.0-next.ed15210",
63
+ "@orpc/server": "0.0.0-next.ed15210"
43
64
  },
44
65
  "devDependencies": {
45
66
  "@readme/openapi-parser": "^2.6.0",
46
- "zod": "^3.23.8"
67
+ "zod": "^3.24.1"
47
68
  },
48
69
  "scripts": {
49
- "build": "tsup --clean --sourcemap --entry.index=src/index.ts --format=esm --onSuccess='tsc -b --noCheck'",
70
+ "build": "tsup --onSuccess='tsc -b --noCheck'",
50
71
  "build:watch": "pnpm run build --watch",
51
72
  "type:check": "tsc -b"
52
73
  }