@vinaverse/server 0.0.0-stage → 0.1.0-alpha.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.
Files changed (65) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +165 -2
  3. package/dist/api.cjs +528 -0
  4. package/dist/api.cjs.map +1 -0
  5. package/dist/api.d.cts +453 -0
  6. package/dist/api.d.ts +453 -0
  7. package/dist/api.js +516 -0
  8. package/dist/api.js.map +1 -0
  9. package/dist/chunk-FEEJNQXV.js +64 -0
  10. package/dist/chunk-FEEJNQXV.js.map +1 -0
  11. package/dist/chunk-GTPMQKGX.js +277 -0
  12. package/dist/chunk-GTPMQKGX.js.map +1 -0
  13. package/dist/chunk-NPXO6SMZ.js +84 -0
  14. package/dist/chunk-NPXO6SMZ.js.map +1 -0
  15. package/dist/chunk-SDJFZPHJ.js +141 -0
  16. package/dist/chunk-SDJFZPHJ.js.map +1 -0
  17. package/dist/express.cjs +397 -0
  18. package/dist/express.cjs.map +1 -0
  19. package/dist/express.d.cts +43 -0
  20. package/dist/express.d.ts +43 -0
  21. package/dist/express.js +87 -0
  22. package/dist/express.js.map +1 -0
  23. package/dist/fastify.cjs +363 -0
  24. package/dist/fastify.cjs.map +1 -0
  25. package/dist/fastify.d.cts +62 -0
  26. package/dist/fastify.d.ts +62 -0
  27. package/dist/fastify.js +54 -0
  28. package/dist/fastify.js.map +1 -0
  29. package/dist/hono.cjs +421 -0
  30. package/dist/hono.cjs.map +1 -0
  31. package/dist/hono.d.cts +21 -0
  32. package/dist/hono.d.ts +21 -0
  33. package/dist/hono.js +34 -0
  34. package/dist/hono.js.map +1 -0
  35. package/dist/index.cjs +1481 -0
  36. package/dist/index.cjs.map +1 -0
  37. package/dist/index.d.cts +196 -0
  38. package/dist/index.d.ts +196 -0
  39. package/dist/index.js +920 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/lambda.cjs +405 -0
  42. package/dist/lambda.cjs.map +1 -0
  43. package/dist/lambda.d.cts +53 -0
  44. package/dist/lambda.d.ts +53 -0
  45. package/dist/lambda.js +86 -0
  46. package/dist/lambda.js.map +1 -0
  47. package/dist/nonces-scwljZwl.d.cts +92 -0
  48. package/dist/nonces-scwljZwl.d.ts +92 -0
  49. package/dist/provider-BqfTvF3g.d.ts +2016 -0
  50. package/dist/provider-Miaa9V7I.d.cts +2016 -0
  51. package/dist/stores.cjs +315 -0
  52. package/dist/stores.cjs.map +1 -0
  53. package/dist/stores.d.cts +52 -0
  54. package/dist/stores.d.ts +52 -0
  55. package/dist/stores.js +306 -0
  56. package/dist/stores.js.map +1 -0
  57. package/dist/testing.cjs +135 -0
  58. package/dist/testing.cjs.map +1 -0
  59. package/dist/testing.d.cts +29 -0
  60. package/dist/testing.d.ts +29 -0
  61. package/dist/testing.js +49 -0
  62. package/dist/testing.js.map +1 -0
  63. package/dist/vinaverse-v1.d-BVc4uyUd.d.cts +3460 -0
  64. package/dist/vinaverse-v1.d-BVc4uyUd.d.ts +3460 -0
  65. package/package.json +225 -3
package/package.json CHANGED
@@ -1,6 +1,228 @@
1
1
  {
2
2
  "name": "@vinaverse/server",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0-alpha.2",
4
+ "description": "Vinaverse for Node backends: verify webhooks into typed contract events, with adapters for AWS Lambda, Express, Fastify and Hono, serve tools, and call the Vinaverse API typed.",
5
+ "license": "Apache-2.0",
6
+ "author": "Vinaverse, Inc.",
7
+ "homepage": "https://github.com/vinaverse-ai/vinaverse-js/tree/develop/packages/server#readme",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/vinaverse-ai/vinaverse-js.git",
11
+ "directory": "packages/server"
12
+ },
13
+ "bugs": "https://github.com/vinaverse-ai/vinaverse-js/issues",
14
+ "keywords": [
15
+ "vinaverse",
16
+ "webhooks",
17
+ "sdk",
18
+ "aws-lambda",
19
+ "express",
20
+ "fastify",
21
+ "hono"
22
+ ],
23
+ "type": "module",
24
+ "sideEffects": false,
25
+ "engines": {
26
+ "node": ">=18"
27
+ },
28
+ "exports": {
29
+ ".": {
30
+ "import": {
31
+ "types": "./dist/index.d.ts",
32
+ "default": "./dist/index.js"
33
+ },
34
+ "require": {
35
+ "types": "./dist/index.d.cts",
36
+ "default": "./dist/index.cjs"
37
+ }
38
+ },
39
+ "./lambda": {
40
+ "import": {
41
+ "types": "./dist/lambda.d.ts",
42
+ "default": "./dist/lambda.js"
43
+ },
44
+ "require": {
45
+ "types": "./dist/lambda.d.cts",
46
+ "default": "./dist/lambda.cjs"
47
+ }
48
+ },
49
+ "./express": {
50
+ "import": {
51
+ "types": "./dist/express.d.ts",
52
+ "default": "./dist/express.js"
53
+ },
54
+ "require": {
55
+ "types": "./dist/express.d.cts",
56
+ "default": "./dist/express.cjs"
57
+ }
58
+ },
59
+ "./fastify": {
60
+ "import": {
61
+ "types": "./dist/fastify.d.ts",
62
+ "default": "./dist/fastify.js"
63
+ },
64
+ "require": {
65
+ "types": "./dist/fastify.d.cts",
66
+ "default": "./dist/fastify.cjs"
67
+ }
68
+ },
69
+ "./hono": {
70
+ "import": {
71
+ "types": "./dist/hono.d.ts",
72
+ "default": "./dist/hono.js"
73
+ },
74
+ "require": {
75
+ "types": "./dist/hono.d.cts",
76
+ "default": "./dist/hono.cjs"
77
+ }
78
+ },
79
+ "./testing": {
80
+ "import": {
81
+ "types": "./dist/testing.d.ts",
82
+ "default": "./dist/testing.js"
83
+ },
84
+ "require": {
85
+ "types": "./dist/testing.d.cts",
86
+ "default": "./dist/testing.cjs"
87
+ }
88
+ },
89
+ "./stores": {
90
+ "import": {
91
+ "types": "./dist/stores.d.ts",
92
+ "default": "./dist/stores.js"
93
+ },
94
+ "require": {
95
+ "types": "./dist/stores.d.cts",
96
+ "default": "./dist/stores.cjs"
97
+ }
98
+ },
99
+ "./api": {
100
+ "import": {
101
+ "types": "./dist/api.d.ts",
102
+ "default": "./dist/api.js"
103
+ },
104
+ "require": {
105
+ "types": "./dist/api.d.cts",
106
+ "default": "./dist/api.cjs"
107
+ }
108
+ },
109
+ "./package.json": "./package.json"
110
+ },
111
+ "main": "./dist/index.cjs",
112
+ "module": "./dist/index.js",
113
+ "types": "./dist/index.d.cts",
114
+ "typesVersions": {
115
+ "*": {
116
+ "lambda": [
117
+ "./dist/lambda.d.cts"
118
+ ],
119
+ "express": [
120
+ "./dist/express.d.cts"
121
+ ],
122
+ "fastify": [
123
+ "./dist/fastify.d.cts"
124
+ ],
125
+ "hono": [
126
+ "./dist/hono.d.cts"
127
+ ],
128
+ "testing": [
129
+ "./dist/testing.d.cts"
130
+ ],
131
+ "stores": [
132
+ "./dist/stores.d.cts"
133
+ ],
134
+ "api": [
135
+ "./dist/api.d.cts"
136
+ ]
137
+ }
138
+ },
139
+ "files": [
140
+ "dist"
141
+ ],
142
+ "publishConfig": {
143
+ "access": "public",
144
+ "provenance": true
145
+ },
146
+ "size-limit": [
147
+ {
148
+ "name": "verifyWebhook (ESM)",
149
+ "path": "dist/index.js",
150
+ "import": "{ verifyWebhook }",
151
+ "limit": "2 kB"
152
+ },
153
+ {
154
+ "name": "createToolProvider (ESM)",
155
+ "path": "dist/index.js",
156
+ "import": "{ createToolProvider }",
157
+ "limit": "5 kB"
158
+ },
159
+ {
160
+ "name": "@vinaverse/server (ESM, everything)",
161
+ "path": "dist/index.js",
162
+ "import": "*",
163
+ "limit": "8 kB"
164
+ },
165
+ {
166
+ "name": "@vinaverse/server/lambda",
167
+ "path": "dist/lambda.js",
168
+ "import": "*",
169
+ "limit": "3 kB"
170
+ },
171
+ {
172
+ "name": "@vinaverse/server/express",
173
+ "path": "dist/express.js",
174
+ "import": "*",
175
+ "limit": "3 kB"
176
+ },
177
+ {
178
+ "name": "@vinaverse/server/fastify",
179
+ "path": "dist/fastify.js",
180
+ "import": "*",
181
+ "limit": "2.75 kB"
182
+ },
183
+ {
184
+ "name": "@vinaverse/server/hono",
185
+ "path": "dist/hono.js",
186
+ "import": "*",
187
+ "limit": "2.75 kB"
188
+ },
189
+ {
190
+ "name": "@vinaverse/server/testing",
191
+ "path": "dist/testing.js",
192
+ "import": "*",
193
+ "limit": "1.25 kB"
194
+ },
195
+ {
196
+ "name": "@vinaverse/server/stores",
197
+ "path": "dist/stores.js",
198
+ "import": "*",
199
+ "limit": "2 kB"
200
+ },
201
+ {
202
+ "name": "@vinaverse/server/api (ESM, everything)",
203
+ "path": "dist/api.js",
204
+ "import": "*",
205
+ "limit": "6 kB"
206
+ }
207
+ ],
208
+ "dependencies": {
209
+ "openapi-fetch": "0.17.0"
210
+ },
211
+ "devDependencies": {
212
+ "@aws-sdk/client-dynamodb": "3.1142.0",
213
+ "@hono/node-server": "2.1.3",
214
+ "@types/express": "5.0.6",
215
+ "@types/pg": "8.23.1",
216
+ "express": "5.2.1",
217
+ "fastify": "5.12.5",
218
+ "hono": "4.13.11",
219
+ "pg": "8.23.0",
220
+ "redis": "6.2.1"
221
+ },
222
+ "scripts": {
223
+ "build": "tsup",
224
+ "typecheck": "tsc --noEmit -p tsconfig.json",
225
+ "package:check": "publint --strict && attw --pack . && size-limit && pnpm run types:floor",
226
+ "types:floor": "pnpm --package=typescript@5.0.4 dlx tsc -p test/types-floor"
227
+ }
6
228
  }