@ledgerhq/revault-api 1.20.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/LICENSE.md +202 -0
- package/README.md +32 -0
- package/lib/app-types-Cvdd2De7.d.mts +40156 -0
- package/lib/fakes.d.mts +4628 -0
- package/lib/fakes.mjs +2097 -0
- package/lib/fakes.mjs.map +1 -0
- package/lib/index.d.mts +22332 -0
- package/lib/index.mjs +3 -0
- package/lib/index.mjs.map +1 -0
- package/package.json +119 -0
package/lib/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
package/package.json
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ledgerhq/revault-api",
|
|
3
|
+
"version": "1.20.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"files": [
|
|
7
|
+
"lib/"
|
|
8
|
+
],
|
|
9
|
+
"main": "./lib/index.mjs",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./lib/index.d.mts",
|
|
13
|
+
"import": "./lib/index.mjs",
|
|
14
|
+
"require": "./lib/index.mjs"
|
|
15
|
+
},
|
|
16
|
+
"./fakes": {
|
|
17
|
+
"types": "./lib/fakes.d.mts",
|
|
18
|
+
"import": "./lib/fakes.mjs",
|
|
19
|
+
"require": "./lib/fakes.mjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@faker-js/faker": "^9.7.0",
|
|
24
|
+
"@fastify/cors": "^11.0.1",
|
|
25
|
+
"@fastify/swagger": "^9.5.1",
|
|
26
|
+
"@fastify/swagger-ui": "^5.2.2",
|
|
27
|
+
"@hey-api/client-axios": "^0.7.0",
|
|
28
|
+
"@prisma/client": "^6.7.0",
|
|
29
|
+
"@trpc/server": "^11.1.2",
|
|
30
|
+
"axios": "^1.9.0",
|
|
31
|
+
"axios-cache-interceptor": "^1.8.0",
|
|
32
|
+
"axios-retry": "^4.5.0",
|
|
33
|
+
"bullmq": "^5.52.2",
|
|
34
|
+
"chalk": "^4.1.2",
|
|
35
|
+
"commander": "^13.1.0",
|
|
36
|
+
"configcat-node": "^11.3.1",
|
|
37
|
+
"dd-trace": "^5.50.0",
|
|
38
|
+
"elliptic": "^6.6.1",
|
|
39
|
+
"fastify": "^5.3.2",
|
|
40
|
+
"fastify-socket.io": "^5.1.0",
|
|
41
|
+
"invariant": "^2.2.4",
|
|
42
|
+
"ioredis": "^5.6.1",
|
|
43
|
+
"jsonwebtoken": "^9.0.2",
|
|
44
|
+
"lodash": "^4.17.21",
|
|
45
|
+
"node-rsa": "^1.1.1",
|
|
46
|
+
"pino": "^9.6.0",
|
|
47
|
+
"pino-pretty": "^13.0.0",
|
|
48
|
+
"prisma": "^6.7.0",
|
|
49
|
+
"rate-limiter-flexible": "^7.1.0",
|
|
50
|
+
"socket.io": "^4.8.1",
|
|
51
|
+
"superjson": "^1.13.3",
|
|
52
|
+
"trpc-to-openapi": "^2.2.0",
|
|
53
|
+
"zod": "^3.24.4",
|
|
54
|
+
"zod-to-json-schema": "^3.24.5"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@commander-js/extra-typings": "^13.1.0",
|
|
58
|
+
"@eslint/js": "^9.26.0",
|
|
59
|
+
"@hey-api/openapi-ts": "^0.67.3",
|
|
60
|
+
"@ledgerhq/vault-common": "^1.121.1",
|
|
61
|
+
"@ledgerhq/vault-utils": "^1.0.0",
|
|
62
|
+
"@testcontainers/postgresql": "^10.25.0",
|
|
63
|
+
"@testcontainers/redis": "^10.25.0",
|
|
64
|
+
"@types/elliptic": "^6.4.18",
|
|
65
|
+
"@types/invariant": "^2.2.37",
|
|
66
|
+
"@types/js-yaml": "^4.0.9",
|
|
67
|
+
"@types/jsonwebtoken": "^9.0.9",
|
|
68
|
+
"@types/lodash": "^4.17.16",
|
|
69
|
+
"@types/node": "^22.14.1",
|
|
70
|
+
"@types/node-rsa": "^1.1.4",
|
|
71
|
+
"@vitest/coverage-v8": "^3.1.2",
|
|
72
|
+
"@vitest/ui": "^3.1.2",
|
|
73
|
+
"dotenv": "^16.5.0",
|
|
74
|
+
"eslint": "^9.26.0",
|
|
75
|
+
"eslint-plugin-import": "^2.31.0",
|
|
76
|
+
"eslint-plugin-unicorn": "^59.0.1",
|
|
77
|
+
"js-yaml": "^4.1.0",
|
|
78
|
+
"nock": "^14.0.4",
|
|
79
|
+
"socket.io-client": "^4.8.1",
|
|
80
|
+
"tsc-alias": "^1.8.15",
|
|
81
|
+
"tsconfig-paths": "^4.2.0",
|
|
82
|
+
"tsup": "^8.4.0",
|
|
83
|
+
"tsx": "^4.19.4",
|
|
84
|
+
"typescript": "^5.8.3",
|
|
85
|
+
"typescript-eslint": "^8.31.1",
|
|
86
|
+
"vitest": "^3.1.2",
|
|
87
|
+
"vitest-mock-extended": "^3.1.0"
|
|
88
|
+
},
|
|
89
|
+
"scripts": {
|
|
90
|
+
"build": "tsup --config tsup.lib.config.ts",
|
|
91
|
+
"build:app": "tsup --config tsup.app.config.ts",
|
|
92
|
+
"check-convention": "NODE_ENV=production tsx -r tsconfig-paths/register ./src/__scripts__/dev/check-convention.ts",
|
|
93
|
+
"check-message": "tsx -r tsconfig-paths/register ./src/__scripts__/dev/check-message.ts",
|
|
94
|
+
"check-obsolete-coverage-ignore": "bash src/__scripts__/dev/detect-obsolete-coverage-ignore/launch.sh",
|
|
95
|
+
"debug-perf-on-permissions": "tsx -r tsconfig-paths/register ./src/__scripts__/dev/debug-perf-on-permissions.ts",
|
|
96
|
+
"dev": "NODE_ENV=development tsx watch -r tsconfig-paths/register src/index.ts",
|
|
97
|
+
"dev:saga-worker": "NODE_ENV=development ENTRYPOINT=SAGA_WORKER tsx watch -r tsconfig-paths/register src/index.ts",
|
|
98
|
+
"dev:stream-consumer": "NODE_ENV=development ENTRYPOINT=STREAM_CONSUMER tsx watch -r tsconfig-paths/register src/index.ts",
|
|
99
|
+
"gen": "pnpm run gen:openapi && pnpm run gen:gate-schema",
|
|
100
|
+
"gen:gate-schema": "tsx -r tsconfig-paths/register ./src/__scripts__/dev/generate-gate-schema.ts > ../python-bridge/revault_bridge/data/gate-message.json",
|
|
101
|
+
"gen:openapi": "tsx -r tsconfig-paths/register ./src/__scripts__/dev/generate-open-api-file.ts",
|
|
102
|
+
"lint": "eslint --cache .",
|
|
103
|
+
"play:workflow": "tsx -r tsconfig-paths/register ./src/__scripts__/dev/play-workflow.ts",
|
|
104
|
+
"populate-dev-data": "tsx -r tsconfig-paths/register ./src/__scripts__/dev/populate-dev-data.ts",
|
|
105
|
+
"postinstall": "pnpm run prisma:generate && (openapi-ts -f src/tradelink/tradelink-openapi-client/openapi-ts.config.ts || true)",
|
|
106
|
+
"prisma:db-push": "prisma db push",
|
|
107
|
+
"prisma:generate": "prisma generate --no-hints",
|
|
108
|
+
"prisma:migrate-dev": "prisma migrate dev",
|
|
109
|
+
"revault-tools": "tsx -r tsconfig-paths/register ./src/__scripts__/revault-tools.ts",
|
|
110
|
+
"stress:database": "tsx -r tsconfig-paths/register ./src/__scripts__/dev/stress-database.ts",
|
|
111
|
+
"stress:redis-stream": "tsx -r tsconfig-paths/register ./src/__scripts__/dev/stress-redis-stream.ts",
|
|
112
|
+
"test": "bash ./src/__scripts__/dev/run-full-tests.sh",
|
|
113
|
+
"test:e2e": "vitest -c ./vitest.config.e2e.mts",
|
|
114
|
+
"test:int": "vitest -c ./vitest.config.integration.mts",
|
|
115
|
+
"test:unit": "vitest -c ./vitest.config.unit.mts",
|
|
116
|
+
"test:workflows": "vitest -c ./vitest.config.workflows.mts",
|
|
117
|
+
"typecheck": "tsc --noEmit"
|
|
118
|
+
}
|
|
119
|
+
}
|