@ledgerhq/revault-api 1.47.0 → 1.49.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.
Files changed (2) hide show
  1. package/lib/index.d.mts +191 -3
  2. package/package.json +1 -1
package/lib/index.d.mts CHANGED
@@ -2331,7 +2331,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2331
2331
  id: string;
2332
2332
  workspaceName: string;
2333
2333
  compartmentId: number;
2334
- hsmScriptsVersion: string;
2335
2334
  step: "COMPLETED" | "PENDING_DEVICE_CLAIMS" | "PENDING_WRAPPING_KEY_PROVISIONING" | "PENDING_MASTER_ADMINS_REGISTRATION_INIT" | "PENDING_MASTER_ADMINS_REGISTRATION" | "PENDING_SHARED_OWNERS_REGISTRATION_INIT" | "PENDING_SHARED_OWNERS_REGISTRATION" | "PENDING_REVIEW_BY_MASTER_ADMINS" | "PENDING_SEED_PROVISIONING" | "PENDING_WORKSPACE_INITIALIZATION";
2336
2335
  createdAt: Date;
2337
2336
  }[];
@@ -15148,6 +15147,127 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
15148
15147
  };
15149
15148
  } & RateLimitMetricsMeta;
15150
15149
  }>;
15150
+ createCantonTransaction: _trpc_server.TRPCMutationProcedure<{
15151
+ input: {
15152
+ accountId: string;
15153
+ transaction: unknown;
15154
+ note?: {
15155
+ title: string;
15156
+ content: string;
15157
+ } | undefined;
15158
+ };
15159
+ output: {
15160
+ type: "CREATE_TRANSACTION";
15161
+ data: {
15162
+ accountId: string;
15163
+ transaction: {
15164
+ currency: string;
15165
+ recipient: string;
15166
+ amount: string;
15167
+ reason: string | null;
15168
+ type: "CANTON_LIKE_SEND";
15169
+ executeBeforeSeconds?: number | undefined;
15170
+ } | {
15171
+ currency: string;
15172
+ recipient: string;
15173
+ amount: string;
15174
+ reason: string | null;
15175
+ type: "CANTON_LIKE_SEND_TOKEN";
15176
+ executeBeforeSeconds?: number | undefined;
15177
+ } | {
15178
+ currency: string;
15179
+ transferProposal: {
15180
+ amount: string;
15181
+ contractId: string;
15182
+ instrumentAdmin: string;
15183
+ instrumentId: string;
15184
+ expiresAtMicros: number;
15185
+ reason: string | null;
15186
+ sender: string;
15187
+ recipient: string;
15188
+ };
15189
+ reason: string | null;
15190
+ type: "CANTON_LIKE_WITHDRAW";
15191
+ } | {
15192
+ currency: string;
15193
+ transferProposal: {
15194
+ amount: string;
15195
+ contractId: string;
15196
+ instrumentAdmin: string;
15197
+ instrumentId: string;
15198
+ expiresAtMicros: number;
15199
+ reason: string | null;
15200
+ sender: string;
15201
+ recipient: string;
15202
+ };
15203
+ verdict: "ACCEPT" | "REJECT";
15204
+ reason: string | null;
15205
+ type: "CANTON_LIKE_RECEIVE";
15206
+ } | {
15207
+ currency: string;
15208
+ recipient: string;
15209
+ type: "CANTON_LIKE_PRE_APPROVAL";
15210
+ } | {
15211
+ amount: string;
15212
+ currency: string;
15213
+ maxFee: string | null;
15214
+ recipient: string;
15215
+ type: "CANTON_LIKE_TAP";
15216
+ };
15217
+ };
15218
+ id: string;
15219
+ legacyId: number;
15220
+ state: "FAILED" | "INITIAL" | "PENDING_APPROVAL" | "EXECUTING" | "EXECUTED" | "ABORTED" | "BLOCKED" | "EXPIRED" | "STUCK";
15221
+ reviewSteps: {
15222
+ stageName: string;
15223
+ quorum: number;
15224
+ }[];
15225
+ currentStepIndex: number;
15226
+ expiresAt: Date;
15227
+ targetId: string | null;
15228
+ note: {
15229
+ title: string;
15230
+ content: string;
15231
+ } | null;
15232
+ reviews: {
15233
+ stepIndex: number;
15234
+ userId: string;
15235
+ groupName: string | null;
15236
+ status: "PENDING" | "APPROVED" | "REJECTED" | "QUEUED" | "OBSOLETE";
15237
+ createdAt: Date;
15238
+ updatedAt: Date;
15239
+ }[];
15240
+ createdAt: Date;
15241
+ updatedAt: Date;
15242
+ createdById: string;
15243
+ expiredAt?: Date | undefined;
15244
+ inflight?: {
15245
+ lastError: string | null;
15246
+ numFailed: number;
15247
+ retryAfter: Date;
15248
+ } | undefined;
15249
+ };
15250
+ meta: {
15251
+ [x: string]: unknown;
15252
+ } & {
15253
+ openapi?: {
15254
+ enabled?: boolean;
15255
+ method: trpc_to_openapi.OpenApiMethod;
15256
+ path: `/${string}`;
15257
+ operationId?: string;
15258
+ summary?: string;
15259
+ description?: string;
15260
+ protect?: boolean;
15261
+ tags?: string[];
15262
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
15263
+ deprecated?: boolean;
15264
+ requestHeaders?: z.ZodObject;
15265
+ responseHeaders?: z.ZodObject;
15266
+ successDescription?: string;
15267
+ errorResponses?: number[] | Record<number, string>;
15268
+ };
15269
+ } & RateLimitMetricsMeta;
15270
+ }>;
15151
15271
  createAccount: _trpc_server.TRPCMutationProcedure<{
15152
15272
  input: {
15153
15273
  contractAddress: string | null;
@@ -28024,7 +28144,6 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
28024
28144
  input: {
28025
28145
  workspaceName: string;
28026
28146
  compartmentId: number;
28027
- hsmScriptsVersion: string;
28028
28147
  mode?: "GATE_COMPAT" | "STANDALONE" | undefined;
28029
28148
  };
28030
28149
  output: {
@@ -34319,6 +34438,72 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
34319
34438
  } & RateLimitMetricsMeta;
34320
34439
  }>;
34321
34440
  }>>;
34441
+ workspaces: _trpc_server.TRPCBuiltRouter<{
34442
+ ctx: {
34443
+ req?: fastify.FastifyRequest<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown, fastify.FastifyBaseLogger, fastify_types_type_provider.ResolveFastifyRequestType<fastify.FastifyTypeProviderDefault, fastify.FastifySchema, fastify.RouteGenericInterface>> | undefined;
34444
+ res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
34445
+ info?: _trpc_server_unstable_core_do_not_import.TRPCRequestInfo | undefined;
34446
+ user: _prisma_client.User | null;
34447
+ authorization: string | null;
34448
+ activityTracer: ActivityTracer;
34449
+ debugAuthToken?: string;
34450
+ rootAuthToken?: string;
34451
+ prisma: ExtendedPrismaClient;
34452
+ io: socket_io.Server<socket_io.DefaultEventsMap, socket_io.DefaultEventsMap, socket_io.DefaultEventsMap, any> | null;
34453
+ };
34454
+ meta: {
34455
+ [x: string]: unknown;
34456
+ } & {
34457
+ openapi?: {
34458
+ enabled?: boolean;
34459
+ method: trpc_to_openapi.OpenApiMethod;
34460
+ path: `/${string}`;
34461
+ operationId?: string;
34462
+ summary?: string;
34463
+ description?: string;
34464
+ protect?: boolean;
34465
+ tags?: string[];
34466
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
34467
+ deprecated?: boolean;
34468
+ requestHeaders?: z.ZodObject;
34469
+ responseHeaders?: z.ZodObject;
34470
+ successDescription?: string;
34471
+ errorResponses?: number[] | Record<number, string>;
34472
+ };
34473
+ } & RateLimitMetricsMeta;
34474
+ errorShape: _trpc_server.TRPCDefaultErrorShape;
34475
+ transformer: true;
34476
+ }, _trpc_server.TRPCDecorateCreateRouterOptions<{
34477
+ getCurrent: _trpc_server.TRPCQueryProcedure<{
34478
+ input: void;
34479
+ output: {
34480
+ name: string;
34481
+ mode: "GATE_COMPAT" | "STANDALONE";
34482
+ createdAt: Date;
34483
+ updatedAt: Date;
34484
+ };
34485
+ meta: {
34486
+ [x: string]: unknown;
34487
+ } & {
34488
+ openapi?: {
34489
+ enabled?: boolean;
34490
+ method: trpc_to_openapi.OpenApiMethod;
34491
+ path: `/${string}`;
34492
+ operationId?: string;
34493
+ summary?: string;
34494
+ description?: string;
34495
+ protect?: boolean;
34496
+ tags?: string[];
34497
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
34498
+ deprecated?: boolean;
34499
+ requestHeaders?: z.ZodObject;
34500
+ responseHeaders?: z.ZodObject;
34501
+ successDescription?: string;
34502
+ errorResponses?: number[] | Record<number, string>;
34503
+ };
34504
+ } & RateLimitMetricsMeta;
34505
+ }>;
34506
+ }>>;
34322
34507
  }>>;
34323
34508
  type AppRouter = typeof appRouter;
34324
34509
 
@@ -34419,7 +34604,6 @@ type WorkspaceRulesResponse = z__default.infer<typeof zWorkspaceRulesResponse>;
34419
34604
  declare const zOnboardingOpts: z$1.ZodObject<{
34420
34605
  workspaceName: z$1.ZodString;
34421
34606
  compartmentId: z$1.ZodNumber;
34422
- hsmScriptsVersion: z$1.ZodString;
34423
34607
  mode: z$1.ZodDefault<z$1.ZodOptional<z$1.ZodEnum<{
34424
34608
  GATE_COMPAT: "GATE_COMPAT";
34425
34609
  STANDALONE: "STANDALONE";
@@ -35292,6 +35476,10 @@ type UserRegistrationResponse = z$1.infer<typeof zUserRegistrationResponse>;
35292
35476
 
35293
35477
  declare const zWorkspaceResponse: z__default.ZodObject<{
35294
35478
  name: z__default.ZodString;
35479
+ mode: z__default.ZodEnum<{
35480
+ GATE_COMPAT: "GATE_COMPAT";
35481
+ STANDALONE: "STANDALONE";
35482
+ }>;
35295
35483
  createdAt: z__default.ZodDate;
35296
35484
  updatedAt: z__default.ZodDate;
35297
35485
  }, z__default.core.$strip>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/revault-api",
3
- "version": "1.47.0",
3
+ "version": "1.49.0",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "files": [