@ledgerhq/revault-api 1.29.0 → 1.29.1

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/index.d.mts CHANGED
@@ -6,7 +6,7 @@ import * as z from 'zod';
6
6
  import z__default, { z as z$1 } from 'zod';
7
7
  import * as trpc_to_openapi from 'trpc-to-openapi';
8
8
  import * as socket_io from 'socket.io';
9
- import * as _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs from '@trpc/server/dist/unstable-core-do-not-import.d-C6mFWtNG.cjs';
9
+ import * as _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs from '@trpc/server/dist/unstable-core-do-not-import.d-CSxj_rbP.cjs';
10
10
  import * as fastify_types_type_provider from 'fastify/types/type-provider';
11
11
  import * as http from 'http';
12
12
  import * as fastify from 'fastify';
@@ -61,7 +61,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
61
61
  ctx: {
62
62
  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;
63
63
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
64
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
64
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
65
65
  user: _prisma_client.User | null;
66
66
  authorization: string | null;
67
67
  activityTracer: ActivityTracer;
@@ -96,7 +96,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
96
96
  ctx: {
97
97
  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;
98
98
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
99
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
99
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
100
100
  user: _prisma_client.User | null;
101
101
  authorization: string | null;
102
102
  activityTracer: ActivityTracer;
@@ -194,7 +194,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
194
194
  ctx: {
195
195
  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;
196
196
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
197
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
197
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
198
198
  user: _prisma_client.User | null;
199
199
  authorization: string | null;
200
200
  activityTracer: ActivityTracer;
@@ -369,7 +369,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
369
369
  ctx: {
370
370
  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;
371
371
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
372
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
372
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
373
373
  user: _prisma_client.User | null;
374
374
  authorization: string | null;
375
375
  activityTracer: ActivityTracer;
@@ -522,7 +522,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
522
522
  ctx: {
523
523
  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;
524
524
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
525
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
525
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
526
526
  user: _prisma_client.User | null;
527
527
  authorization: string | null;
528
528
  activityTracer: ActivityTracer;
@@ -829,7 +829,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
829
829
  ctx: {
830
830
  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;
831
831
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
832
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
832
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
833
833
  user: _prisma_client.User | null;
834
834
  authorization: string | null;
835
835
  activityTracer: ActivityTracer;
@@ -929,7 +929,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
929
929
  ctx: {
930
930
  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;
931
931
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
932
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
932
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
933
933
  user: _prisma_client.User | null;
934
934
  authorization: string | null;
935
935
  activityTracer: ActivityTracer;
@@ -1463,7 +1463,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
1463
1463
  ctx: {
1464
1464
  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;
1465
1465
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
1466
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
1466
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
1467
1467
  user: _prisma_client.User | null;
1468
1468
  authorization: string | null;
1469
1469
  activityTracer: ActivityTracer;
@@ -2543,7 +2543,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2543
2543
  ctx: {
2544
2544
  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;
2545
2545
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
2546
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
2546
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
2547
2547
  user: _prisma_client.User | null;
2548
2548
  authorization: string | null;
2549
2549
  activityTracer: ActivityTracer;
@@ -2684,7 +2684,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2684
2684
  ctx: {
2685
2685
  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;
2686
2686
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
2687
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
2687
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
2688
2688
  user: _prisma_client.User | null;
2689
2689
  authorization: string | null;
2690
2690
  activityTracer: ActivityTracer;
@@ -2809,7 +2809,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
2809
2809
  ctx: {
2810
2810
  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;
2811
2811
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
2812
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
2812
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
2813
2813
  user: _prisma_client.User | null;
2814
2814
  authorization: string | null;
2815
2815
  activityTracer: ActivityTracer;
@@ -3031,7 +3031,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
3031
3031
  ctx: {
3032
3032
  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;
3033
3033
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
3034
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
3034
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
3035
3035
  user: _prisma_client.User | null;
3036
3036
  authorization: string | null;
3037
3037
  activityTracer: ActivityTracer;
@@ -3142,7 +3142,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
3142
3142
  ctx: {
3143
3143
  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;
3144
3144
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
3145
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
3145
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
3146
3146
  user: _prisma_client.User | null;
3147
3147
  authorization: string | null;
3148
3148
  activityTracer: ActivityTracer;
@@ -15177,7 +15177,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
15177
15177
  ctx: {
15178
15178
  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;
15179
15179
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
15180
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
15180
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
15181
15181
  user: _prisma_client.User | null;
15182
15182
  authorization: string | null;
15183
15183
  activityTracer: ActivityTracer;
@@ -19807,7 +19807,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
19807
19807
  ctx: {
19808
19808
  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;
19809
19809
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
19810
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
19810
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
19811
19811
  user: _prisma_client.User | null;
19812
19812
  authorization: string | null;
19813
19813
  activityTracer: ActivityTracer;
@@ -19922,7 +19922,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
19922
19922
  ctx: {
19923
19923
  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;
19924
19924
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
19925
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
19925
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
19926
19926
  user: _prisma_client.User | null;
19927
19927
  authorization: string | null;
19928
19928
  activityTracer: ActivityTracer;
@@ -19957,7 +19957,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
19957
19957
  ctx: {
19958
19958
  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;
19959
19959
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
19960
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
19960
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
19961
19961
  user: _prisma_client.User | null;
19962
19962
  authorization: string | null;
19963
19963
  activityTracer: ActivityTracer;
@@ -20479,12 +20479,77 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
20479
20479
  };
20480
20480
  } & MetricsMeta;
20481
20481
  }>;
20482
+ listSettlements: _trpc_server.TRPCQueryProcedure<{
20483
+ input: {
20484
+ accountId?: string | undefined;
20485
+ pledgeId?: string | undefined;
20486
+ };
20487
+ output: {
20488
+ id: string;
20489
+ state: "APPROVED" | "FAILED" | "REJECTED" | "REGISTERED" | "PENDING_REPLEDGE_CREATION_APPROVAL" | "PENDING_REPLEDGE_APPROVAL" | "PENDING_CREATION_APPROVAL" | "PENDING_PRE_APPROVAL" | "PRE_APPROVED" | "CONFIRMED" | "CANCELED";
20490
+ accountId: string;
20491
+ exchangeId: string;
20492
+ outboundTransactionHash: string | null;
20493
+ pledgeId: string;
20494
+ }[];
20495
+ meta: {
20496
+ [x: string]: unknown;
20497
+ } & {
20498
+ openapi?: {
20499
+ enabled?: boolean;
20500
+ method: trpc_to_openapi.OpenApiMethod;
20501
+ path: `/${string}`;
20502
+ summary?: string;
20503
+ description?: string;
20504
+ protect?: boolean;
20505
+ tags?: string[];
20506
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
20507
+ deprecated?: boolean;
20508
+ requestHeaders?: z.AnyZodObject;
20509
+ responseHeaders?: z.AnyZodObject;
20510
+ successDescription?: string;
20511
+ errorResponses?: number[] | Record<number, string>;
20512
+ };
20513
+ } & MetricsMeta;
20514
+ }>;
20515
+ getSettlement: _trpc_server.TRPCQueryProcedure<{
20516
+ input: {
20517
+ settlementId: string;
20518
+ };
20519
+ output: {
20520
+ id: string;
20521
+ state: "APPROVED" | "FAILED" | "REJECTED" | "REGISTERED" | "PENDING_REPLEDGE_CREATION_APPROVAL" | "PENDING_REPLEDGE_APPROVAL" | "PENDING_CREATION_APPROVAL" | "PENDING_PRE_APPROVAL" | "PRE_APPROVED" | "CONFIRMED" | "CANCELED";
20522
+ accountId: string;
20523
+ exchangeId: string;
20524
+ outboundTransactionHash: string | null;
20525
+ pledgeId: string;
20526
+ };
20527
+ meta: {
20528
+ [x: string]: unknown;
20529
+ } & {
20530
+ openapi?: {
20531
+ enabled?: boolean;
20532
+ method: trpc_to_openapi.OpenApiMethod;
20533
+ path: `/${string}`;
20534
+ summary?: string;
20535
+ description?: string;
20536
+ protect?: boolean;
20537
+ tags?: string[];
20538
+ contentTypes?: trpc_to_openapi.OpenApiContentType[];
20539
+ deprecated?: boolean;
20540
+ requestHeaders?: z.AnyZodObject;
20541
+ responseHeaders?: z.AnyZodObject;
20542
+ successDescription?: string;
20543
+ errorResponses?: number[] | Record<number, string>;
20544
+ };
20545
+ } & MetricsMeta;
20546
+ }>;
20482
20547
  }>>;
20483
20548
  webhooks: _trpc_server.TRPCBuiltRouter<{
20484
20549
  ctx: {
20485
20550
  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;
20486
20551
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
20487
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
20552
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
20488
20553
  user: _prisma_client.User | null;
20489
20554
  authorization: string | null;
20490
20555
  activityTracer: ActivityTracer;
@@ -20646,7 +20711,7 @@ declare const appRouter: _trpc_server.TRPCBuiltRouter<{
20646
20711
  ctx: {
20647
20712
  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;
20648
20713
  res?: fastify.FastifyReply<fastify.RouteGenericInterface, fastify.RawServerDefault, http.IncomingMessage, http.ServerResponse<http.IncomingMessage>, unknown, fastify.FastifySchema, fastify.FastifyTypeProviderDefault, unknown> | undefined;
20649
- info?: _trpc_server_dist_unstable_core_do_not_import_d_C6mFWtNG_cjs.TRPCRequestInfo | undefined;
20714
+ info?: _trpc_server_dist_unstable_core_do_not_import_d_CSxj_rbP_cjs.TRPCRequestInfo | undefined;
20650
20715
  user: _prisma_client.User | null;
20651
20716
  authorization: string | null;
20652
20717
  activityTracer: ActivityTracer;
@@ -25946,6 +26011,29 @@ declare const zTradelinkNetworkResponse: z$1.ZodObject<{
25946
26011
  }[];
25947
26012
  }>;
25948
26013
  type TradelinkNetworkResponse = z$1.infer<typeof zTradelinkNetworkResponse>;
26014
+ declare const zTradelinkSettlementWithAccountAndExchangeInfoResponse: z$1.ZodObject<{
26015
+ id: z$1.ZodString;
26016
+ pledgeId: z$1.ZodString;
26017
+ state: z$1.ZodEnum<["REGISTERED", "PENDING_REPLEDGE_CREATION_APPROVAL", "PENDING_REPLEDGE_APPROVAL", "PENDING_CREATION_APPROVAL", "PENDING_PRE_APPROVAL", "PRE_APPROVED", "APPROVED", "REJECTED", "CONFIRMED", "FAILED", "CANCELED"]>;
26018
+ outboundTransactionHash: z$1.ZodNullable<z$1.ZodString>;
26019
+ accountId: z$1.ZodString;
26020
+ exchangeId: z$1.ZodString;
26021
+ }, "strip", z$1.ZodTypeAny, {
26022
+ id: string;
26023
+ state: "APPROVED" | "FAILED" | "REJECTED" | "REGISTERED" | "PENDING_REPLEDGE_CREATION_APPROVAL" | "PENDING_REPLEDGE_APPROVAL" | "PENDING_CREATION_APPROVAL" | "PENDING_PRE_APPROVAL" | "PRE_APPROVED" | "CONFIRMED" | "CANCELED";
26024
+ accountId: string;
26025
+ exchangeId: string;
26026
+ outboundTransactionHash: string | null;
26027
+ pledgeId: string;
26028
+ }, {
26029
+ id: string;
26030
+ state: "APPROVED" | "FAILED" | "REJECTED" | "REGISTERED" | "PENDING_REPLEDGE_CREATION_APPROVAL" | "PENDING_REPLEDGE_APPROVAL" | "PENDING_CREATION_APPROVAL" | "PENDING_PRE_APPROVAL" | "PRE_APPROVED" | "CONFIRMED" | "CANCELED";
26031
+ accountId: string;
26032
+ exchangeId: string;
26033
+ outboundTransactionHash: string | null;
26034
+ pledgeId: string;
26035
+ }>;
26036
+ type TradelinkSettlementWithAccountAndExchangeInfoResponse = z$1.infer<typeof zTradelinkSettlementWithAccountAndExchangeInfoResponse>;
25949
26037
 
25950
26038
  declare const zApiUserCredentialsResponse: z$1.ZodObject<{
25951
26039
  apiKeyId: z$1.ZodString;
@@ -26284,4 +26372,4 @@ declare const zDeleteWebhookResponse: z$1.ZodObject<{
26284
26372
  }>;
26285
26373
  type DeleteWebhookResponse = z$1.infer<typeof zDeleteWebhookResponse>;
26286
26374
 
26287
- export { type AdminResponse, type AllowedAction, type AllowedActionsResponse, type AllowedResourcesResponse, type AppRouter, type AuthResponse, type CreateTradelinkOrgEntityInput as CreateTradelinkExchangeInput, type CreateWebhookPayload, type CurrencyResponse, type CursorPaginated, DEFAULT_PAGE_SIZE, type DeleteTradelinkExchangeInput, type DeleteWebhookResponse, type DeviceClaim, type EntityResponse, type EntitySortBy, type GroupResponse, type GroupSortBy, type MasterRuleResponse, type Note, type OnboardingFullState as OnboardingFullStateResponse, type OnboardingOpts, type OnboardingSeedChallenge, type OnboardingSeedFragment, type Paginated, type PledgeResponse, type PolicyResponse, type PolicySortBy, type PsdAuthChallengeData as PsdAuthChallengeResponse, type ReviewStepWithUsers, type SortOrder, type TokenResponse, type TradelinkCustodianResponse, type TradelinkEntityResponse, type TradelinkNetworkBlueprintResponse, type TradelinkNetworkResponse, type TradelinkOrgEntityResponse, type TransactionResponse, type TransactionWithMetaResponse, type UserRegistrationCreateInput, type UserRegistrationResponse, type UserResponse, type UserSortBy, type WebhookResponse, type WebhooksResponse, type WhitelistResponse, type WhitelistSortBy, type WorkspaceResponse, type WrappingKeyFragmentInput, type WrappingKeyProvisioningEphemeralPubKey, type WrappingKeyResponse, paginate, serializePage, stableOrdering, zAdminResponse, zAllowedAction, zAllowedActionsResponse, zAllowedResourcesResponse, zApiUserCredentialsResponse, zAuthResponse, zCreateTradelinkNetworkBlueprintInput, zCreateTradelinkOrgEntityInput, zCreateWebhookPayload, zCurrencyResponse, zCursorPaginated, zCursorQuery, zDeleteTradelinkOrgEntityInput, zDeleteWebhookResponse, zDeviceClaim, zEntityResponse, zEntitySortBy, zEstimatedFees as zEstimateFeesResponse, zGroupResponse, zGroupSortBy, zNote, zOnboardingFullState as zOnboardingFullStateResponse, zOnboardingId, zOnboardingOpts, zOnboardingSeedFragment, zOperationType, zPageQuery, zPaginated, zPledgeResponse, zPolicyResponse, zPolicySortBy, zPsdAuthChallengeData as zPsdAuthChallengeResponse, zReviewStepsArray, zSortOrder, zTokenResponse, zTradelinkCustodianResponse, zTradelinkEntityResponse, zTradelinkNetworkBlueprintResponse, zTradelinkNetworkResponse, zTradelinkOrgEntityResponse, zTradelinkWhitelist, zTransactionWithMetaResponse, zUserRegistrationCreateInput, zUserRegistrationResponse, zUserResponse, zUserSortBy, zWebhookResponse, zWebhooksResponse, zWhitelistAddressResponse, zWhitelistResponse, zWhitelistSortBy, zWorkspaceResponse, zWorkspaceRuleResponse, zWrappingKeyFragmentInput };
26375
+ export { type AdminResponse, type AllowedAction, type AllowedActionsResponse, type AllowedResourcesResponse, type AppRouter, type AuthResponse, type CreateTradelinkOrgEntityInput as CreateTradelinkExchangeInput, type CreateWebhookPayload, type CurrencyResponse, type CursorPaginated, DEFAULT_PAGE_SIZE, type DeleteTradelinkExchangeInput, type DeleteWebhookResponse, type DeviceClaim, type EntityResponse, type EntitySortBy, type GroupResponse, type GroupSortBy, type MasterRuleResponse, type Note, type OnboardingFullState as OnboardingFullStateResponse, type OnboardingOpts, type OnboardingSeedChallenge, type OnboardingSeedFragment, type Paginated, type PledgeResponse, type PolicyResponse, type PolicySortBy, type PsdAuthChallengeData as PsdAuthChallengeResponse, type ReviewStepWithUsers, type SortOrder, type TokenResponse, type TradelinkCustodianResponse, type TradelinkEntityResponse, type TradelinkNetworkBlueprintResponse, type TradelinkNetworkResponse, type TradelinkOrgEntityResponse, type TradelinkSettlementWithAccountAndExchangeInfoResponse, type TransactionResponse, type TransactionWithMetaResponse, type UserRegistrationCreateInput, type UserRegistrationResponse, type UserResponse, type UserSortBy, type WebhookResponse, type WebhooksResponse, type WhitelistResponse, type WhitelistSortBy, type WorkspaceResponse, type WrappingKeyFragmentInput, type WrappingKeyProvisioningEphemeralPubKey, type WrappingKeyResponse, paginate, serializePage, stableOrdering, zAdminResponse, zAllowedAction, zAllowedActionsResponse, zAllowedResourcesResponse, zApiUserCredentialsResponse, zAuthResponse, zCreateTradelinkNetworkBlueprintInput, zCreateTradelinkOrgEntityInput, zCreateWebhookPayload, zCurrencyResponse, zCursorPaginated, zCursorQuery, zDeleteTradelinkOrgEntityInput, zDeleteWebhookResponse, zDeviceClaim, zEntityResponse, zEntitySortBy, zEstimatedFees as zEstimateFeesResponse, zGroupResponse, zGroupSortBy, zNote, zOnboardingFullState as zOnboardingFullStateResponse, zOnboardingId, zOnboardingOpts, zOnboardingSeedFragment, zOperationType, zPageQuery, zPaginated, zPledgeResponse, zPolicyResponse, zPolicySortBy, zPsdAuthChallengeData as zPsdAuthChallengeResponse, zReviewStepsArray, zSortOrder, zTokenResponse, zTradelinkCustodianResponse, zTradelinkEntityResponse, zTradelinkNetworkBlueprintResponse, zTradelinkNetworkResponse, zTradelinkOrgEntityResponse, zTradelinkSettlementWithAccountAndExchangeInfoResponse, zTradelinkWhitelist, zTransactionWithMetaResponse, zUserRegistrationCreateInput, zUserRegistrationResponse, zUserResponse, zUserSortBy, zWebhookResponse, zWebhooksResponse, zWhitelistAddressResponse, zWhitelistResponse, zWhitelistSortBy, zWorkspaceResponse, zWorkspaceRuleResponse, zWrappingKeyFragmentInput };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/revault-api",
3
- "version": "1.29.0",
3
+ "version": "1.29.1",
4
4
  "license": "Apache-2.0",
5
5
  "sideEffects": false,
6
6
  "files": [
@@ -25,7 +25,7 @@
25
25
  "invariant": "^2.2.4",
26
26
  "lodash": "^4.17.21",
27
27
  "socket.io": "^4.8.1",
28
- "@trpc/server": "^11.4.3",
28
+ "@trpc/server": "11.4.2",
29
29
  "trpc-to-openapi": "^2.3.2",
30
30
  "zod": "^3.25.74"
31
31
  }