@ledgerhq/revault-api 1.81.0 → 1.82.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/lib/{app-lib-B3E79eZs.d.mts → app-lib-DBd4wGTx.d.mts} +2922 -2223
- package/lib/fakes.d.mts +1 -1
- package/lib/fakes.mjs +1 -1
- package/lib/fakes.mjs.map +1 -1
- package/lib/index.d.mts +2 -2
- package/lib/internal/app-lib.d.mts +236 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dn as VaultRequestResponse, Dr as BackofficePermissionMeta, Gr as GateUserType, Ir as RateLimitMetricsMeta, Lr as ActivityTracer, Mr as zOidcConfig, Qa as Note, ci as UserRole, da as TransactionData, di as BackofficePermission, la as SendOnlyTransactionData, qr as MaintenanceMode, si as UserDeviceType, ui as ExtendedPrismaClient, wn as RequestReview, xi as HsmCertificate, zr as ActivationStatus } from "../app-lib-DBd4wGTx.mjs";
|
|
2
2
|
import z, { z as z$1 } from "zod";
|
|
3
3
|
import { PrismaClient } from "@/generated/prisma/client";
|
|
4
4
|
import "trpc-to-openapi";
|
|
@@ -4084,6 +4084,241 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
|
|
|
4084
4084
|
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4085
4085
|
}>;
|
|
4086
4086
|
}>>;
|
|
4087
|
+
relationships: import("@trpc/server").TRPCBuiltRouter<{
|
|
4088
|
+
ctx: {
|
|
4089
|
+
req?: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>> | undefined;
|
|
4090
|
+
res?: import("fastify").FastifyReply<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("node:http").ServerResponse<import("node:http").IncomingMessage>, unknown, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown> | undefined;
|
|
4091
|
+
info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
|
|
4092
|
+
debugAuthToken?: string;
|
|
4093
|
+
rootAuthToken?: string;
|
|
4094
|
+
backofficeRequiredPermission?: BackofficePermission;
|
|
4095
|
+
prisma: ExtendedPrismaClient;
|
|
4096
|
+
io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
|
|
4097
|
+
user: {
|
|
4098
|
+
id: string;
|
|
4099
|
+
workspaceName: string;
|
|
4100
|
+
name: string;
|
|
4101
|
+
authUserId: string | null;
|
|
4102
|
+
pubKey: string;
|
|
4103
|
+
deviceType: UserDeviceType;
|
|
4104
|
+
deviceUserId: string | null;
|
|
4105
|
+
hsmId: string | null;
|
|
4106
|
+
u2fKeyHandle: string | null;
|
|
4107
|
+
u2fPubKey: string | null;
|
|
4108
|
+
legacyViewAll: boolean;
|
|
4109
|
+
role: UserRole;
|
|
4110
|
+
status: ActivationStatus;
|
|
4111
|
+
isSuspended: boolean;
|
|
4112
|
+
gateType: GateUserType | null;
|
|
4113
|
+
gateId: number;
|
|
4114
|
+
syncId: string;
|
|
4115
|
+
createdAt: Date;
|
|
4116
|
+
updatedAt: Date;
|
|
4117
|
+
} | null;
|
|
4118
|
+
authorization: string | null;
|
|
4119
|
+
readOnly: boolean;
|
|
4120
|
+
activityTracer: ActivityTracer;
|
|
4121
|
+
};
|
|
4122
|
+
meta: {
|
|
4123
|
+
[x: string]: unknown;
|
|
4124
|
+
} & {
|
|
4125
|
+
openapi?: {
|
|
4126
|
+
enabled?: boolean;
|
|
4127
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
4128
|
+
path: `/${string}`;
|
|
4129
|
+
operationId?: string;
|
|
4130
|
+
summary?: string;
|
|
4131
|
+
description?: string;
|
|
4132
|
+
protect?: boolean;
|
|
4133
|
+
tags?: string[];
|
|
4134
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
4135
|
+
deprecated?: boolean;
|
|
4136
|
+
requestHeaders?: import("zod").ZodObject;
|
|
4137
|
+
responseHeaders?: import("zod").ZodObject;
|
|
4138
|
+
successDescription?: string;
|
|
4139
|
+
errorResponses?: number[] | Record<number, string>;
|
|
4140
|
+
};
|
|
4141
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4142
|
+
errorShape: import("@trpc/server").TRPCDefaultErrorShape;
|
|
4143
|
+
transformer: true;
|
|
4144
|
+
}, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
4145
|
+
dryRun: import("@trpc/server").TRPCQueryProcedure<{
|
|
4146
|
+
input: {
|
|
4147
|
+
workspaceName: string;
|
|
4148
|
+
shapeLimit?: number | undefined;
|
|
4149
|
+
};
|
|
4150
|
+
output: {
|
|
4151
|
+
workspaceName: string;
|
|
4152
|
+
dryRun: true;
|
|
4153
|
+
rawTupleCount: number;
|
|
4154
|
+
uniqueTupleCount: number;
|
|
4155
|
+
duplicateTupleCount: number;
|
|
4156
|
+
buildDurationMs: number;
|
|
4157
|
+
shapeCounts: {
|
|
4158
|
+
objectType: string;
|
|
4159
|
+
relation: string;
|
|
4160
|
+
subjectType: string;
|
|
4161
|
+
subjectRelation: string;
|
|
4162
|
+
count: number;
|
|
4163
|
+
}[];
|
|
4164
|
+
};
|
|
4165
|
+
meta: {
|
|
4166
|
+
[x: string]: unknown;
|
|
4167
|
+
} & {
|
|
4168
|
+
openapi?: {
|
|
4169
|
+
enabled?: boolean;
|
|
4170
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
4171
|
+
path: `/${string}`;
|
|
4172
|
+
operationId?: string;
|
|
4173
|
+
summary?: string;
|
|
4174
|
+
description?: string;
|
|
4175
|
+
protect?: boolean;
|
|
4176
|
+
tags?: string[];
|
|
4177
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
4178
|
+
deprecated?: boolean;
|
|
4179
|
+
requestHeaders?: import("zod").ZodObject;
|
|
4180
|
+
responseHeaders?: import("zod").ZodObject;
|
|
4181
|
+
successDescription?: string;
|
|
4182
|
+
errorResponses?: number[] | Record<number, string>;
|
|
4183
|
+
};
|
|
4184
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4185
|
+
}>;
|
|
4186
|
+
materialize: import("@trpc/server").TRPCMutationProcedure<{
|
|
4187
|
+
input: {
|
|
4188
|
+
workspaceName: string;
|
|
4189
|
+
confirm: string;
|
|
4190
|
+
};
|
|
4191
|
+
output: {
|
|
4192
|
+
workspaceName: string;
|
|
4193
|
+
rawTupleCount: number;
|
|
4194
|
+
uniqueTupleCount: number;
|
|
4195
|
+
currentTupleCount: number;
|
|
4196
|
+
buildDurationMs: number;
|
|
4197
|
+
writeDurationMs: number;
|
|
4198
|
+
totalDurationMs: number;
|
|
4199
|
+
};
|
|
4200
|
+
meta: {
|
|
4201
|
+
[x: string]: unknown;
|
|
4202
|
+
} & {
|
|
4203
|
+
openapi?: {
|
|
4204
|
+
enabled?: boolean;
|
|
4205
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
4206
|
+
path: `/${string}`;
|
|
4207
|
+
operationId?: string;
|
|
4208
|
+
summary?: string;
|
|
4209
|
+
description?: string;
|
|
4210
|
+
protect?: boolean;
|
|
4211
|
+
tags?: string[];
|
|
4212
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
4213
|
+
deprecated?: boolean;
|
|
4214
|
+
requestHeaders?: import("zod").ZodObject;
|
|
4215
|
+
responseHeaders?: import("zod").ZodObject;
|
|
4216
|
+
successDescription?: string;
|
|
4217
|
+
errorResponses?: number[] | Record<number, string>;
|
|
4218
|
+
};
|
|
4219
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4220
|
+
}>;
|
|
4221
|
+
health: import("@trpc/server").TRPCQueryProcedure<{
|
|
4222
|
+
input: {
|
|
4223
|
+
workspaceName: string;
|
|
4224
|
+
shapeLimit?: number | undefined;
|
|
4225
|
+
};
|
|
4226
|
+
output: {
|
|
4227
|
+
workspaceName: string;
|
|
4228
|
+
currentTupleCount: number;
|
|
4229
|
+
sourceTypeCounts: {
|
|
4230
|
+
sourceType: string;
|
|
4231
|
+
count: number;
|
|
4232
|
+
}[];
|
|
4233
|
+
shapeCounts: {
|
|
4234
|
+
objectType: string;
|
|
4235
|
+
relation: string;
|
|
4236
|
+
subjectType: string;
|
|
4237
|
+
subjectRelation: string;
|
|
4238
|
+
count: number;
|
|
4239
|
+
}[];
|
|
4240
|
+
};
|
|
4241
|
+
meta: {
|
|
4242
|
+
[x: string]: unknown;
|
|
4243
|
+
} & {
|
|
4244
|
+
openapi?: {
|
|
4245
|
+
enabled?: boolean;
|
|
4246
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
4247
|
+
path: `/${string}`;
|
|
4248
|
+
operationId?: string;
|
|
4249
|
+
summary?: string;
|
|
4250
|
+
description?: string;
|
|
4251
|
+
protect?: boolean;
|
|
4252
|
+
tags?: string[];
|
|
4253
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
4254
|
+
deprecated?: boolean;
|
|
4255
|
+
requestHeaders?: import("zod").ZodObject;
|
|
4256
|
+
responseHeaders?: import("zod").ZodObject;
|
|
4257
|
+
successDescription?: string;
|
|
4258
|
+
errorResponses?: number[] | Record<number, string>;
|
|
4259
|
+
};
|
|
4260
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4261
|
+
}>;
|
|
4262
|
+
driftCheck: import("@trpc/server").TRPCQueryProcedure<{
|
|
4263
|
+
input: {
|
|
4264
|
+
workspaceName: string;
|
|
4265
|
+
sampleLimit?: number | undefined;
|
|
4266
|
+
};
|
|
4267
|
+
output: {
|
|
4268
|
+
workspaceName: string;
|
|
4269
|
+
expectedTupleCount: number;
|
|
4270
|
+
actualTupleCount: number;
|
|
4271
|
+
missingTupleCount: number;
|
|
4272
|
+
extraTupleCount: number;
|
|
4273
|
+
missingSamples: {
|
|
4274
|
+
workspaceName: string;
|
|
4275
|
+
objectType: string;
|
|
4276
|
+
objectId: string;
|
|
4277
|
+
relation: string;
|
|
4278
|
+
subjectType: string;
|
|
4279
|
+
subjectId: string;
|
|
4280
|
+
subjectRelation?: string | null | undefined;
|
|
4281
|
+
sourceType: string;
|
|
4282
|
+
sourceId: string;
|
|
4283
|
+
}[];
|
|
4284
|
+
extraSamples: {
|
|
4285
|
+
workspaceName: string;
|
|
4286
|
+
objectType: string;
|
|
4287
|
+
objectId: string;
|
|
4288
|
+
relation: string;
|
|
4289
|
+
subjectType: string;
|
|
4290
|
+
subjectId: string;
|
|
4291
|
+
subjectRelation?: string | null | undefined;
|
|
4292
|
+
sourceType: string;
|
|
4293
|
+
sourceId: string;
|
|
4294
|
+
}[];
|
|
4295
|
+
buildDurationMs: number;
|
|
4296
|
+
readDurationMs: number;
|
|
4297
|
+
compareDurationMs: number;
|
|
4298
|
+
totalDurationMs: number;
|
|
4299
|
+
};
|
|
4300
|
+
meta: {
|
|
4301
|
+
[x: string]: unknown;
|
|
4302
|
+
} & {
|
|
4303
|
+
openapi?: {
|
|
4304
|
+
enabled?: boolean;
|
|
4305
|
+
method: import("trpc-to-openapi").OpenApiMethod;
|
|
4306
|
+
path: `/${string}`;
|
|
4307
|
+
operationId?: string;
|
|
4308
|
+
summary?: string;
|
|
4309
|
+
description?: string;
|
|
4310
|
+
protect?: boolean;
|
|
4311
|
+
tags?: string[];
|
|
4312
|
+
contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
|
|
4313
|
+
deprecated?: boolean;
|
|
4314
|
+
requestHeaders?: import("zod").ZodObject;
|
|
4315
|
+
responseHeaders?: import("zod").ZodObject;
|
|
4316
|
+
successDescription?: string;
|
|
4317
|
+
errorResponses?: number[] | Record<number, string>;
|
|
4318
|
+
};
|
|
4319
|
+
} & RateLimitMetricsMeta & BackofficePermissionMeta;
|
|
4320
|
+
}>;
|
|
4321
|
+
}>>;
|
|
4087
4322
|
auditLogs: import("@trpc/server").TRPCBuiltRouter<{
|
|
4088
4323
|
ctx: {
|
|
4089
4324
|
req?: import("fastify").FastifyRequest<import("fastify").RouteGenericInterface, import("fastify").RawServerDefault, import("node:http").IncomingMessage, import("fastify").FastifySchema, import("fastify").FastifyTypeProviderDefault, unknown, import("fastify").FastifyBaseLogger, import("fastify/types/type-provider").ResolveFastifyRequestType<import("fastify").FastifyTypeProviderDefault, import("fastify").FastifySchema, import("fastify").RouteGenericInterface>> | undefined;
|