@ledgerhq/revault-api 1.68.0 → 1.69.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.
@@ -1,4 +1,4 @@
1
- import { Ai as UserDeviceType, Bn as ExtendedPrismaClient, Rn as RateLimitMetricsMeta, fn as zOidcConfig, gi as GateUserType, ji as UserRole, ui as ActivationStatus, vi as MaintenanceMode, zn as ActivityTracer } from "../app-lib-CV4NzTrx.mjs";
1
+ import { Fn as zOidcConfig, Ni as ActivationStatus, Qi as RevaultMode, Vi as MaintenanceMode, cr as ActivityTracer, ea as UserDeviceType, lr as ExtendedPrismaClient, sr as RateLimitMetricsMeta, ta as UserRole, zi as GateUserType } from "../app-lib-Cg9iMEUe.mjs";
2
2
  import z$1, { z } from "zod";
3
3
  //#region src/workspaces/schemas.d.ts
4
4
  declare const zWorkspaceName: z$1.ZodString;
@@ -35,6 +35,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
35
35
  updatedAt: Date;
36
36
  } | null;
37
37
  authorization: string | null;
38
+ readOnly: boolean;
38
39
  activityTracer: ActivityTracer;
39
40
  };
40
41
  meta: {
@@ -91,6 +92,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
91
92
  updatedAt: Date;
92
93
  } | null;
93
94
  authorization: string | null;
95
+ readOnly: boolean;
94
96
  activityTracer: ActivityTracer;
95
97
  };
96
98
  meta: {
@@ -136,24 +138,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
136
138
  data: {
137
139
  accountId: string;
138
140
  transaction: {
139
- amount: string;
140
- currency: string;
141
- maxFee: string | null;
142
- recipient: string;
143
- type: "TRON_LIKE_SEND";
144
- feeStrategy: {
145
- type: "FAST" | "NORMAL" | "SLOW";
146
- };
147
- } | {
148
- amount: string;
149
- currency: string;
150
- maxFee: string | null;
151
- recipient: string;
152
- type: "TRON_LIKE_SEND_TOKEN";
153
- feeStrategy: {
154
- type: "FAST" | "NORMAL" | "SLOW";
155
- };
156
- } | {
157
141
  amount: string;
158
142
  currency: string;
159
143
  maxFee: string | null;
@@ -378,10 +362,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
378
362
  };
379
363
  validatorPubKey: string;
380
364
  executionFee: string;
381
- } | {
382
- type: "GENERIC_TRANSACTION";
383
- currency: string;
384
- rawTx: string;
385
365
  } | {
386
366
  amount: string;
387
367
  currency: string;
@@ -646,6 +626,28 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
646
626
  feeStrategy: {
647
627
  type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
648
628
  };
629
+ } | {
630
+ type: "GENERIC_TRANSACTION";
631
+ currency: string;
632
+ rawTx: string;
633
+ } | {
634
+ amount: string;
635
+ currency: string;
636
+ maxFee: string | null;
637
+ recipient: string;
638
+ type: "TRON_LIKE_SEND";
639
+ feeStrategy: {
640
+ type: "FAST" | "NORMAL" | "SLOW";
641
+ };
642
+ } | {
643
+ amount: string;
644
+ currency: string;
645
+ maxFee: string | null;
646
+ recipient: string;
647
+ type: "TRON_LIKE_SEND_TOKEN";
648
+ feeStrategy: {
649
+ type: "FAST" | "NORMAL" | "SLOW";
650
+ };
649
651
  };
650
652
  };
651
653
  id: string;
@@ -2713,6 +2715,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2713
2715
  updatedAt: Date;
2714
2716
  } | null;
2715
2717
  authorization: string | null;
2718
+ readOnly: boolean;
2716
2719
  activityTracer: ActivityTracer;
2717
2720
  };
2718
2721
  meta: {
@@ -2769,6 +2772,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2769
2772
  updatedAt: Date;
2770
2773
  } | null;
2771
2774
  authorization: string | null;
2775
+ readOnly: boolean;
2772
2776
  activityTracer: ActivityTracer;
2773
2777
  };
2774
2778
  meta: {
@@ -2925,6 +2929,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2925
2929
  updatedAt: Date;
2926
2930
  } | null;
2927
2931
  authorization: string | null;
2932
+ readOnly: boolean;
2928
2933
  activityTracer: ActivityTracer;
2929
2934
  };
2930
2935
  meta: {
@@ -2950,6 +2955,230 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2950
2955
  errorShape: import("@trpc/server").TRPCDefaultErrorShape;
2951
2956
  transformer: true;
2952
2957
  }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
2958
+ list: import("@trpc/server").TRPCQueryProcedure<{
2959
+ input: {
2960
+ page?: number | undefined;
2961
+ pageSize?: number | undefined;
2962
+ workspaceName?: string | string[] | undefined;
2963
+ step?: "COMPLETED" | "PENDING_DEVICE_CLAIMS" | "PENDING_EXTERNAL_SIGNERS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION_INIT" | "PENDING_REVIEW_BY_MASTER_ADMINS" | "PENDING_SEED_PROVISIONING" | "PENDING_SHARED_OWNERS_REGISTRATION" | "PENDING_SHARED_OWNERS_REGISTRATION_INIT" | "PENDING_WORKSPACE_INITIALIZATION" | "PENDING_WRAPPING_KEY_PROVISIONING" | undefined;
2964
+ hsmHostingMode?: "HOSTED" | "ON_PREM" | undefined;
2965
+ sortBy?: "completedAt" | "createdAt" | "step" | "workspaceName" | undefined;
2966
+ sortOrder?: "asc" | "desc" | undefined;
2967
+ };
2968
+ output: {
2969
+ page: number;
2970
+ next: number | null;
2971
+ prev: number | null;
2972
+ pageSize: number;
2973
+ total: number;
2974
+ results: ({
2975
+ id: string;
2976
+ workspaceName: string;
2977
+ hsmHostingMode: "HOSTED" | "ON_PREM";
2978
+ step: "COMPLETED" | "PENDING_DEVICE_CLAIMS" | "PENDING_EXTERNAL_SIGNERS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION" | "PENDING_MASTER_ADMINS_REGISTRATION_INIT" | "PENDING_REVIEW_BY_MASTER_ADMINS" | "PENDING_SEED_PROVISIONING" | "PENDING_SHARED_OWNERS_REGISTRATION" | "PENDING_SHARED_OWNERS_REGISTRATION_INIT" | "PENDING_WORKSPACE_INITIALIZATION" | "PENDING_WRAPPING_KEY_PROVISIONING";
2979
+ claimedDevices: {
2980
+ pubKey: string;
2981
+ deviceUserId: string;
2982
+ deviceName: string;
2983
+ role: "MASTER_ADMIN" | "SHARED_OWNER" | "WRAPPING_KEY_OWNER";
2984
+ }[];
2985
+ wrappingKey: {
2986
+ ephemeralPubKey: string;
2987
+ ephemeralCertificate: {
2988
+ codeHash: string;
2989
+ attestationPub: string;
2990
+ certificate: string;
2991
+ signature: string;
2992
+ };
2993
+ fragments: {
2994
+ pubKey: string;
2995
+ ephemeralPubKey: string;
2996
+ ephemeralCertificate: {
2997
+ codeHash: string;
2998
+ attestationPub: string;
2999
+ certificate: string;
3000
+ signature: string;
3001
+ };
3002
+ blob: string;
3003
+ }[];
3004
+ } | null;
3005
+ masterAdmins: {
3006
+ name: string;
3007
+ psdModel: "STAX";
3008
+ pubKey: string;
3009
+ registrationChallenge: {
3010
+ challenge: string;
3011
+ ephemeralPublicKey: string;
3012
+ ephemeralPublicKeyAttestation: {
3013
+ codeHash: string;
3014
+ attestationPub: string;
3015
+ certificate: string;
3016
+ signature: string;
3017
+ };
3018
+ handshake: string;
3019
+ handshakeAttestation: {
3020
+ codeHash: string;
3021
+ attestationPub: string;
3022
+ certificate: string;
3023
+ signature: string;
3024
+ };
3025
+ u2fRegisterData: string;
3026
+ ciphertext: string;
3027
+ requestId: string;
3028
+ };
3029
+ registrationResponse: {
3030
+ certificate: {
3031
+ codeHash: string;
3032
+ attestationPub: string;
3033
+ certificate: string;
3034
+ signature: string;
3035
+ };
3036
+ u2fRegister: string;
3037
+ u2fKeyHandle: string;
3038
+ registerData: string;
3039
+ validationKey: string;
3040
+ pairingPayload: string;
3041
+ } | null;
3042
+ role: "MASTER_ADMIN";
3043
+ review: {
3044
+ challenge: {
3045
+ challengeType: "PSD";
3046
+ wActions: string[];
3047
+ handshake: string;
3048
+ handshakeAttestation: {
3049
+ codeHash: string;
3050
+ attestationPub: string;
3051
+ certificate: string;
3052
+ signature: string;
3053
+ };
3054
+ partitionId: string;
3055
+ };
3056
+ signature: string | null;
3057
+ } | null;
3058
+ reviewOfExternalSigners: {
3059
+ challenge: {
3060
+ challengeType: "PSD";
3061
+ wActions: string[];
3062
+ handshake: string;
3063
+ handshakeAttestation: {
3064
+ codeHash: string;
3065
+ attestationPub: string;
3066
+ certificate: string;
3067
+ signature: string;
3068
+ };
3069
+ partitionId: string;
3070
+ };
3071
+ signature: string | null;
3072
+ } | null;
3073
+ }[];
3074
+ sharedOwners: {
3075
+ name: string;
3076
+ psdModel: "STAX";
3077
+ pubKey: string;
3078
+ registrationChallenge: {
3079
+ challenge: string;
3080
+ ephemeralPublicKey: string;
3081
+ ephemeralPublicKeyAttestation: {
3082
+ codeHash: string;
3083
+ attestationPub: string;
3084
+ certificate: string;
3085
+ signature: string;
3086
+ };
3087
+ handshake: string;
3088
+ handshakeAttestation: {
3089
+ codeHash: string;
3090
+ attestationPub: string;
3091
+ certificate: string;
3092
+ signature: string;
3093
+ };
3094
+ u2fRegisterData: string;
3095
+ ciphertext: string;
3096
+ requestId: string;
3097
+ };
3098
+ registrationResponse: {
3099
+ certificate: {
3100
+ codeHash: string;
3101
+ attestationPub: string;
3102
+ certificate: string;
3103
+ signature: string;
3104
+ };
3105
+ u2fRegister: string;
3106
+ u2fKeyHandle: string;
3107
+ registerData: string;
3108
+ validationKey: string;
3109
+ pairingPayload: string;
3110
+ } | null;
3111
+ role: "SHARED_OWNER";
3112
+ review: {
3113
+ seedChallenge: {
3114
+ challengeType: "PSD";
3115
+ wActions: string[];
3116
+ handshake: string;
3117
+ handshakeAttestation: {
3118
+ codeHash: string;
3119
+ attestationPub: string;
3120
+ certificate: string;
3121
+ signature: string;
3122
+ };
3123
+ partitionId: string;
3124
+ kkHandshake: string;
3125
+ kkHandshakeAttestation: {
3126
+ codeHash: string;
3127
+ attestationPub: string;
3128
+ certificate: string;
3129
+ signature: string;
3130
+ };
3131
+ ephemeralPublicKey: string;
3132
+ certificate: {
3133
+ codeHash: string;
3134
+ attestationPub: string;
3135
+ certificate: string;
3136
+ signature: string;
3137
+ };
3138
+ blob: string;
3139
+ };
3140
+ seedFragment: {
3141
+ approverBlob: string;
3142
+ challengeResponse: string;
3143
+ handshake: string;
3144
+ handshakeAttestation: {
3145
+ codeHash: string;
3146
+ attestationPub: string;
3147
+ certificate: string;
3148
+ signature: string;
3149
+ };
3150
+ } | null;
3151
+ } | null;
3152
+ }[];
3153
+ createdAt: Date;
3154
+ completedAt: Date | null;
3155
+ } & {
3156
+ mode: RevaultMode;
3157
+ compartmentId: number;
3158
+ targetHsmName: string | null;
3159
+ })[];
3160
+ };
3161
+ meta: {
3162
+ [x: string]: unknown;
3163
+ } & {
3164
+ openapi?: {
3165
+ enabled?: boolean;
3166
+ method: import("trpc-to-openapi").OpenApiMethod;
3167
+ path: `/${string}`;
3168
+ operationId?: string;
3169
+ summary?: string;
3170
+ description?: string;
3171
+ protect?: boolean;
3172
+ tags?: string[];
3173
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3174
+ deprecated?: boolean;
3175
+ requestHeaders?: import("zod").ZodObject;
3176
+ responseHeaders?: import("zod").ZodObject;
3177
+ successDescription?: string;
3178
+ errorResponses?: number[] | Record<number, string>;
3179
+ };
3180
+ } & RateLimitMetricsMeta;
3181
+ }>;
2953
3182
  create: import("@trpc/server").TRPCMutationProcedure<{
2954
3183
  input: {
2955
3184
  workspaceName: string;
@@ -3162,6 +3391,155 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3162
3391
  } & RateLimitMetricsMeta;
3163
3392
  }>;
3164
3393
  }>>;
3394
+ impersonations: import("@trpc/server").TRPCBuiltRouter<{
3395
+ ctx: {
3396
+ 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;
3397
+ 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;
3398
+ info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
3399
+ debugAuthToken?: string;
3400
+ rootAuthToken?: string;
3401
+ prisma: ExtendedPrismaClient;
3402
+ io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
3403
+ user: {
3404
+ id: string;
3405
+ workspaceName: string;
3406
+ name: string;
3407
+ authUserId: string | null;
3408
+ pubKey: string;
3409
+ deviceType: UserDeviceType;
3410
+ deviceUserId: string | null;
3411
+ hsmId: string | null;
3412
+ u2fKeyHandle: string | null;
3413
+ u2fPubKey: string | null;
3414
+ legacyViewAll: boolean;
3415
+ role: UserRole;
3416
+ status: ActivationStatus;
3417
+ isSuspended: boolean;
3418
+ gateType: GateUserType | null;
3419
+ gateId: number;
3420
+ syncId: string;
3421
+ createdAt: Date;
3422
+ updatedAt: Date;
3423
+ } | null;
3424
+ authorization: string | null;
3425
+ readOnly: boolean;
3426
+ activityTracer: ActivityTracer;
3427
+ };
3428
+ meta: {
3429
+ [x: string]: unknown;
3430
+ } & {
3431
+ openapi?: {
3432
+ enabled?: boolean;
3433
+ method: import("trpc-to-openapi").OpenApiMethod;
3434
+ path: `/${string}`;
3435
+ operationId?: string;
3436
+ summary?: string;
3437
+ description?: string;
3438
+ protect?: boolean;
3439
+ tags?: string[];
3440
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3441
+ deprecated?: boolean;
3442
+ requestHeaders?: import("zod").ZodObject;
3443
+ responseHeaders?: import("zod").ZodObject;
3444
+ successDescription?: string;
3445
+ errorResponses?: number[] | Record<number, string>;
3446
+ };
3447
+ } & RateLimitMetricsMeta;
3448
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
3449
+ transformer: true;
3450
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
3451
+ request: import("@trpc/server").TRPCMutationProcedure<{
3452
+ input: {
3453
+ targetUserId: string;
3454
+ reason: string;
3455
+ };
3456
+ output: {
3457
+ code: string;
3458
+ impersonationId: string;
3459
+ };
3460
+ meta: {
3461
+ [x: string]: unknown;
3462
+ } & {
3463
+ openapi?: {
3464
+ enabled?: boolean;
3465
+ method: import("trpc-to-openapi").OpenApiMethod;
3466
+ path: `/${string}`;
3467
+ operationId?: string;
3468
+ summary?: string;
3469
+ description?: string;
3470
+ protect?: boolean;
3471
+ tags?: string[];
3472
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3473
+ deprecated?: boolean;
3474
+ requestHeaders?: import("zod").ZodObject;
3475
+ responseHeaders?: import("zod").ZodObject;
3476
+ successDescription?: string;
3477
+ errorResponses?: number[] | Record<number, string>;
3478
+ };
3479
+ } & RateLimitMetricsMeta;
3480
+ }>;
3481
+ revoke: import("@trpc/server").TRPCMutationProcedure<{
3482
+ input: {
3483
+ impersonationId: string;
3484
+ };
3485
+ output: void;
3486
+ meta: {
3487
+ [x: string]: unknown;
3488
+ } & {
3489
+ openapi?: {
3490
+ enabled?: boolean;
3491
+ method: import("trpc-to-openapi").OpenApiMethod;
3492
+ path: `/${string}`;
3493
+ operationId?: string;
3494
+ summary?: string;
3495
+ description?: string;
3496
+ protect?: boolean;
3497
+ tags?: string[];
3498
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3499
+ deprecated?: boolean;
3500
+ requestHeaders?: import("zod").ZodObject;
3501
+ responseHeaders?: import("zod").ZodObject;
3502
+ successDescription?: string;
3503
+ errorResponses?: number[] | Record<number, string>;
3504
+ };
3505
+ } & RateLimitMetricsMeta;
3506
+ }>;
3507
+ listActive: import("@trpc/server").TRPCQueryProcedure<{
3508
+ input: {
3509
+ workspaceName?: string | undefined;
3510
+ };
3511
+ output: {
3512
+ id: string;
3513
+ operatorSub: string;
3514
+ operatorGroups: string[];
3515
+ targetUserId: string;
3516
+ workspaceName: string;
3517
+ reason: string;
3518
+ startedAt: Date;
3519
+ expiresAt: Date;
3520
+ }[];
3521
+ meta: {
3522
+ [x: string]: unknown;
3523
+ } & {
3524
+ openapi?: {
3525
+ enabled?: boolean;
3526
+ method: import("trpc-to-openapi").OpenApiMethod;
3527
+ path: `/${string}`;
3528
+ operationId?: string;
3529
+ summary?: string;
3530
+ description?: string;
3531
+ protect?: boolean;
3532
+ tags?: string[];
3533
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3534
+ deprecated?: boolean;
3535
+ requestHeaders?: import("zod").ZodObject;
3536
+ responseHeaders?: import("zod").ZodObject;
3537
+ successDescription?: string;
3538
+ errorResponses?: number[] | Record<number, string>;
3539
+ };
3540
+ } & RateLimitMetricsMeta;
3541
+ }>;
3542
+ }>>;
3165
3543
  users: import("@trpc/server").TRPCBuiltRouter<{
3166
3544
  ctx: {
3167
3545
  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;
@@ -3193,6 +3571,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3193
3571
  updatedAt: Date;
3194
3572
  } | null;
3195
3573
  authorization: string | null;
3574
+ readOnly: boolean;
3196
3575
  activityTracer: ActivityTracer;
3197
3576
  };
3198
3577
  meta: {
@@ -3305,6 +3684,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3305
3684
  updatedAt: Date;
3306
3685
  } | null;
3307
3686
  authorization: string | null;
3687
+ readOnly: boolean;
3308
3688
  activityTracer: ActivityTracer;
3309
3689
  };
3310
3690
  meta: {
@@ -3409,6 +3789,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3409
3789
  updatedAt: Date;
3410
3790
  } | null;
3411
3791
  authorization: string | null;
3792
+ readOnly: boolean;
3412
3793
  activityTracer: ActivityTracer;
3413
3794
  };
3414
3795
  meta: {
@@ -3589,6 +3970,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3589
3970
  updatedAt: Date;
3590
3971
  } | null;
3591
3972
  authorization: string | null;
3973
+ readOnly: boolean;
3592
3974
  activityTracer: ActivityTracer;
3593
3975
  };
3594
3976
  meta: {
@@ -3709,6 +4091,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3709
4091
  updatedAt: Date;
3710
4092
  } | null;
3711
4093
  authorization: string | null;
4094
+ readOnly: boolean;
3712
4095
  activityTracer: ActivityTracer;
3713
4096
  };
3714
4097
  meta: {
@@ -3821,6 +4204,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3821
4204
  updatedAt: Date;
3822
4205
  } | null;
3823
4206
  authorization: string | null;
4207
+ readOnly: boolean;
3824
4208
  activityTracer: ActivityTracer;
3825
4209
  };
3826
4210
  meta: {
@@ -3990,6 +4374,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3990
4374
  updatedAt: Date;
3991
4375
  } | null;
3992
4376
  authorization: string | null;
4377
+ readOnly: boolean;
3993
4378
  activityTracer: ActivityTracer;
3994
4379
  };
3995
4380
  meta: {
@@ -4093,6 +4478,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4093
4478
  updatedAt: Date;
4094
4479
  } | null;
4095
4480
  authorization: string | null;
4481
+ readOnly: boolean;
4096
4482
  activityTracer: ActivityTracer;
4097
4483
  };
4098
4484
  meta: {
@@ -4226,6 +4612,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4226
4612
  updatedAt: Date;
4227
4613
  } | null;
4228
4614
  authorization: string | null;
4615
+ readOnly: boolean;
4229
4616
  activityTracer: ActivityTracer;
4230
4617
  };
4231
4618
  meta: {
@@ -4279,24 +4666,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4279
4666
  data: {
4280
4667
  accountId: string;
4281
4668
  transaction: {
4282
- amount: string;
4283
- currency: string;
4284
- maxFee: string | null;
4285
- recipient: string;
4286
- type: "TRON_LIKE_SEND";
4287
- feeStrategy: {
4288
- type: "FAST" | "NORMAL" | "SLOW";
4289
- };
4290
- } | {
4291
- amount: string;
4292
- currency: string;
4293
- maxFee: string | null;
4294
- recipient: string;
4295
- type: "TRON_LIKE_SEND_TOKEN";
4296
- feeStrategy: {
4297
- type: "FAST" | "NORMAL" | "SLOW";
4298
- };
4299
- } | {
4300
4669
  amount: string;
4301
4670
  currency: string;
4302
4671
  maxFee: string | null;
@@ -4521,10 +4890,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4521
4890
  };
4522
4891
  validatorPubKey: string;
4523
4892
  executionFee: string;
4524
- } | {
4525
- type: "GENERIC_TRANSACTION";
4526
- currency: string;
4527
- rawTx: string;
4528
4893
  } | {
4529
4894
  amount: string;
4530
4895
  currency: string;
@@ -4789,6 +5154,28 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4789
5154
  feeStrategy: {
4790
5155
  type: "CUSTOM" | "FAST" | "NORMAL" | "SLOW";
4791
5156
  };
5157
+ } | {
5158
+ type: "GENERIC_TRANSACTION";
5159
+ currency: string;
5160
+ rawTx: string;
5161
+ } | {
5162
+ amount: string;
5163
+ currency: string;
5164
+ maxFee: string | null;
5165
+ recipient: string;
5166
+ type: "TRON_LIKE_SEND";
5167
+ feeStrategy: {
5168
+ type: "FAST" | "NORMAL" | "SLOW";
5169
+ };
5170
+ } | {
5171
+ amount: string;
5172
+ currency: string;
5173
+ maxFee: string | null;
5174
+ recipient: string;
5175
+ type: "TRON_LIKE_SEND_TOKEN";
5176
+ feeStrategy: {
5177
+ type: "FAST" | "NORMAL" | "SLOW";
5178
+ };
4792
5179
  };
4793
5180
  };
4794
5181
  id: string;
@@ -6852,6 +7239,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6852
7239
  updatedAt: Date;
6853
7240
  } | null;
6854
7241
  authorization: string | null;
7242
+ readOnly: boolean;
6855
7243
  activityTracer: ActivityTracer;
6856
7244
  };
6857
7245
  meta: {
@@ -6882,7 +7270,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6882
7270
  page?: number | undefined;
6883
7271
  pageSize?: number | undefined;
6884
7272
  workspaceName?: string | string[] | undefined;
6885
- type?: "BACKOFFICE_RESOURCE_CREATED" | "BACKOFFICE_RESOURCE_EDITED" | "GENERATED_API_USER_CREDENTIALS" | "ROOT_CERTIFICATE_RETRIEVED" | "USER_SUSPENDED" | "USER_UNSUSPENDED" | undefined;
7273
+ type?: "BACKOFFICE_RESOURCE_CREATED" | "BACKOFFICE_RESOURCE_EDITED" | "BACKOFFICE_USER_IMPERSONATED" | "GENERATED_API_USER_CREDENTIALS" | "ROOT_CERTIFICATE_RETRIEVED" | "USER_SUSPENDED" | "USER_UNSUSPENDED" | undefined;
6886
7274
  fromDate?: unknown;
6887
7275
  toDate?: unknown;
6888
7276
  sortBy?: "createdAt" | "type" | undefined;
@@ -6896,7 +7284,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6896
7284
  total: number;
6897
7285
  results: {
6898
7286
  id: string;
6899
- type: "BACKOFFICE_RESOURCE_CREATED" | "BACKOFFICE_RESOURCE_EDITED" | "GENERATED_API_USER_CREDENTIALS" | "ROOT_CERTIFICATE_RETRIEVED" | "USER_SUSPENDED" | "USER_UNSUSPENDED";
7287
+ type: "BACKOFFICE_RESOURCE_CREATED" | "BACKOFFICE_RESOURCE_EDITED" | "BACKOFFICE_USER_IMPERSONATED" | "GENERATED_API_USER_CREDENTIALS" | "ROOT_CERTIFICATE_RETRIEVED" | "USER_SUSPENDED" | "USER_UNSUSPENDED";
6900
7288
  workspaceName: string | null;
6901
7289
  payload: unknown;
6902
7290
  createdAt: Date;
@@ -6924,6 +7312,179 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
6924
7312
  } & RateLimitMetricsMeta;
6925
7313
  }>;
6926
7314
  }>>;
7315
+ auditTrail: import("@trpc/server").TRPCBuiltRouter<{
7316
+ ctx: {
7317
+ 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;
7318
+ 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;
7319
+ info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
7320
+ debugAuthToken?: string;
7321
+ rootAuthToken?: string;
7322
+ prisma: ExtendedPrismaClient;
7323
+ io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
7324
+ user: {
7325
+ id: string;
7326
+ workspaceName: string;
7327
+ name: string;
7328
+ authUserId: string | null;
7329
+ pubKey: string;
7330
+ deviceType: UserDeviceType;
7331
+ deviceUserId: string | null;
7332
+ hsmId: string | null;
7333
+ u2fKeyHandle: string | null;
7334
+ u2fPubKey: string | null;
7335
+ legacyViewAll: boolean;
7336
+ role: UserRole;
7337
+ status: ActivationStatus;
7338
+ isSuspended: boolean;
7339
+ gateType: GateUserType | null;
7340
+ gateId: number;
7341
+ syncId: string;
7342
+ createdAt: Date;
7343
+ updatedAt: Date;
7344
+ } | null;
7345
+ authorization: string | null;
7346
+ readOnly: boolean;
7347
+ activityTracer: ActivityTracer;
7348
+ };
7349
+ meta: {
7350
+ [x: string]: unknown;
7351
+ } & {
7352
+ openapi?: {
7353
+ enabled?: boolean;
7354
+ method: import("trpc-to-openapi").OpenApiMethod;
7355
+ path: `/${string}`;
7356
+ operationId?: string;
7357
+ summary?: string;
7358
+ description?: string;
7359
+ protect?: boolean;
7360
+ tags?: string[];
7361
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7362
+ deprecated?: boolean;
7363
+ requestHeaders?: import("zod").ZodObject;
7364
+ responseHeaders?: import("zod").ZodObject;
7365
+ successDescription?: string;
7366
+ errorResponses?: number[] | Record<number, string>;
7367
+ };
7368
+ } & RateLimitMetricsMeta;
7369
+ errorShape: import("@trpc/server").TRPCDefaultErrorShape;
7370
+ transformer: true;
7371
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
7372
+ list: import("@trpc/server").TRPCQueryProcedure<{
7373
+ input: {
7374
+ cursor?: number | undefined;
7375
+ limit?: number | undefined;
7376
+ requestId?: string | undefined;
7377
+ workspace?: string | undefined;
7378
+ operation?: string | undefined;
7379
+ domain?: string | undefined;
7380
+ eventType?: string | undefined;
7381
+ network?: string | undefined;
7382
+ days?: number | undefined;
7383
+ };
7384
+ output: {
7385
+ results: {
7386
+ seq: number;
7387
+ subject: string;
7388
+ headers: Record<string, string>;
7389
+ }[];
7390
+ nextCursor: number | null;
7391
+ hasMore: boolean;
7392
+ capped: boolean;
7393
+ };
7394
+ meta: {
7395
+ [x: string]: unknown;
7396
+ } & {
7397
+ openapi?: {
7398
+ enabled?: boolean;
7399
+ method: import("trpc-to-openapi").OpenApiMethod;
7400
+ path: `/${string}`;
7401
+ operationId?: string;
7402
+ summary?: string;
7403
+ description?: string;
7404
+ protect?: boolean;
7405
+ tags?: string[];
7406
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7407
+ deprecated?: boolean;
7408
+ requestHeaders?: import("zod").ZodObject;
7409
+ responseHeaders?: import("zod").ZodObject;
7410
+ successDescription?: string;
7411
+ errorResponses?: number[] | Record<number, string>;
7412
+ };
7413
+ } & RateLimitMetricsMeta;
7414
+ }>;
7415
+ requestFailures: import("@trpc/server").TRPCQueryProcedure<{
7416
+ input: {
7417
+ cursor?: number | undefined;
7418
+ limit?: number | undefined;
7419
+ days?: number | undefined;
7420
+ };
7421
+ output: {
7422
+ results: {
7423
+ seq: number;
7424
+ subject: string;
7425
+ headers: Record<string, string>;
7426
+ payload: unknown;
7427
+ decoded: boolean;
7428
+ }[];
7429
+ nextCursor: number | null;
7430
+ hasMore: boolean;
7431
+ capped: boolean;
7432
+ };
7433
+ meta: {
7434
+ [x: string]: unknown;
7435
+ } & {
7436
+ openapi?: {
7437
+ enabled?: boolean;
7438
+ method: import("trpc-to-openapi").OpenApiMethod;
7439
+ path: `/${string}`;
7440
+ operationId?: string;
7441
+ summary?: string;
7442
+ description?: string;
7443
+ protect?: boolean;
7444
+ tags?: string[];
7445
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7446
+ deprecated?: boolean;
7447
+ requestHeaders?: import("zod").ZodObject;
7448
+ responseHeaders?: import("zod").ZodObject;
7449
+ successDescription?: string;
7450
+ errorResponses?: number[] | Record<number, string>;
7451
+ };
7452
+ } & RateLimitMetricsMeta;
7453
+ }>;
7454
+ getEvent: import("@trpc/server").TRPCQueryProcedure<{
7455
+ input: {
7456
+ seq: number;
7457
+ };
7458
+ output: {
7459
+ subject: string;
7460
+ headers: Record<string, string>;
7461
+ time: Date;
7462
+ payload: unknown;
7463
+ contentType: string;
7464
+ decoded: boolean;
7465
+ };
7466
+ meta: {
7467
+ [x: string]: unknown;
7468
+ } & {
7469
+ openapi?: {
7470
+ enabled?: boolean;
7471
+ method: import("trpc-to-openapi").OpenApiMethod;
7472
+ path: `/${string}`;
7473
+ operationId?: string;
7474
+ summary?: string;
7475
+ description?: string;
7476
+ protect?: boolean;
7477
+ tags?: string[];
7478
+ contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7479
+ deprecated?: boolean;
7480
+ requestHeaders?: import("zod").ZodObject;
7481
+ responseHeaders?: import("zod").ZodObject;
7482
+ successDescription?: string;
7483
+ errorResponses?: number[] | Record<number, string>;
7484
+ };
7485
+ } & RateLimitMetricsMeta;
7486
+ }>;
7487
+ }>>;
6927
7488
  }>>;
6928
7489
  }>>;
6929
7490
  type InternalAppRouter = typeof internalAppRouter;