@ledgerhq/revault-api 1.91.0 → 1.91.2

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 { $r as WhitelistSortBy, Ai as TransactionData, Ao as AdminPermission$1, Bo as GateUserType, Ci as RequestView, Do as AccountType$1, Dt as VaultRequestResponse, Eo as AccountGovernanceType, Fo as EventAction$1, Ho as GateWorkspaceRuleType, Io as GateAccountType, Ja as HsmCertificate, Jo as OutgoingTransactionStatus$1, Ko as OnboardedUserRole, Lo as GateGroupType, Mo as AuditLogType$1, Oa as SortOrder, Oi as SendOnlyTransactionData, Oo as ActivationStatus$1, Po as ClaimedRole, Qo as ReportType$1, Qr as BackofficeAuditLogInput, Ro as GatePolicyType, Si as WebhookDeliveryStats, So as BackofficePermission, Uo as HsmHostingMode, Vo as GateWhitelistType, Wo as MaintenanceMode, X as RuntimeApiCapabilities, Xo as PsdModel, Y as TrpcMeta, Zo as ReportStatus$1, _o as BackofficeClaims, as as UserDeviceType, bi as AccountAssetFilter, bo as zOidcConfig, cs as WebhookRetryStrategy$1, ei as RequestListFilters, go as LesWalletRegistrationScope, hi as HsmComparator, ht as ActivityTracer, is as ReviewConfigType, ko as AddressDerivationMode, ls as WebhookStatus$1, mo as LesWalletRegistrableSummary, os as UserRegistrationState, qo as OnboardingStep, rs as RevaultMode, ss as UserRole, ti as startOnboarding, ts as RequestType$1, us as WhitelistType, wt as RequestReview, xa as Note, xi as AccountWorkspaceScope, xo as ExtendedPrismaClient, yi as HsmWorkspaceComparison, zo as GateReviewConfigType } from "../../app-lib-BKOBjCVP.mjs";
1
+ import { $n as ReportStatus$1, An as ActivationStatus$1, Bi as BackofficeAuditLogInput, Bn as GatePolicyType, Dt as VaultRequestResponse, Gn as HsmHostingMode, Hi as RequestListFilters, Hn as GateUserType, In as ClaimedRole, Jn as OnboardedUserRole, Kn as MaintenanceMode, Ln as EventAction$1, Lo as HsmCertificate, Mn as AdminPermission$1, On as AccountGovernanceType, Pn as AuditLogType$1, Qn as PsdModel, Rn as GateAccountType, Ui as startOnboarding, Un as GateWhitelistType, Vi as WhitelistSortBy, Vn as GateReviewConfigType, Wn as GateWorkspaceRuleType, X as RuntimeApiCapabilities, Xn as OutgoingTransactionStatus$1, Y as TrpcMeta, Yn as OnboardingStep, _o as SortOrder, aa as HsmComparator, ar as RevaultMode, as as LesWalletRegistrationScope, cr as UserRegistrationState, da as RequestView, dr as WebhookStatus$1, ds as BackofficePermission, er as ReportType$1, fr as WhitelistType, ga as SendOnlyTransactionData, ht as ActivityTracer, jn as AddressDerivationMode, kn as AccountType$1, la as HsmWorkspaceComparison, lr as UserRole, na as AccountWorkspaceScope, or as ReviewConfigType, os as BackofficeClaims, rr as RequestType$1, rs as LesWalletRegistrableSummary, sr as UserDeviceType, ss as ExtendedPrismaClient, ta as AccountAssetFilter, ua as WebhookDeliveryStats, uo as Note, ur as WebhookRetryStrategy$1, us as zOidcConfig, va as TransactionData, wt as RequestReview, zn as GateGroupType } from "../../app-lib-BGiL1x9A.mjs";
2
2
  import z from "zod";
3
3
  import { AllowedAction, PrismaClient } from "@/generated/prisma/client";
4
4
  import "trpc-to-openapi";
@@ -33,6 +33,17 @@ declare const DIRECT_SUBJECT_RELATION = "";
33
33
  type OperatorRelation = `operator:${AllowedAction}`;
34
34
  type RelationshipRelation = (typeof RELATIONSHIP_RELATIONS)[keyof typeof RELATIONSHIP_RELATIONS] | OperatorRelation;
35
35
  type RelationshipSubjectRelation = typeof DIRECT_SUBJECT_RELATION | typeof RELATIONSHIP_RELATIONS.member;
36
+ /**
37
+ * The object types that own a `Relationship` source.
38
+ *
39
+ * Nine of the twelve object types are also aggregates whose own state produces tuples, so they can
40
+ * be replaced independently. The other three cannot: `user` and `whitelist` contribute only as
41
+ * subjects or as fields other aggregates read, and `workspace` is not an aggregate at all. Keeping
42
+ * this narrower than `RelationshipObjectType` is what makes the source-to-builder dispatch table
43
+ * total at compile time.
44
+ */
45
+ declare const RELATIONSHIP_SOURCE_TYPES: readonly ["account", "entity", "group", "policy", "portfolio", "tradelink-custodian", "tradelink-entity", "tradelink-pledge", "workspace-rule"];
46
+ type RelationshipSourceType = (typeof RELATIONSHIP_SOURCE_TYPES)[number];
36
47
  /**
37
48
  * Authorization-graph fact in Zanzibar/ReBAC vocabulary:
38
49
  *
@@ -53,7 +64,7 @@ type RelationshipTuple = {
53
64
  subjectType: RelationshipObjectType;
54
65
  subjectId: string;
55
66
  subjectRelation: RelationshipSubjectRelation;
56
- sourceType: RelationshipObjectType;
67
+ sourceType: RelationshipSourceType;
57
68
  sourceId: string;
58
69
  };
59
70
  //#endregion
@@ -207,6 +218,64 @@ type InternalCapabilityDependencies = {
207
218
  configCatPromotionEnvironments?: ConfigCatPromotionEnvironmentConfig[];
208
219
  };
209
220
  declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, dependencies?: InternalCapabilityDependencies) => {
221
+ allowedNetworks: {
222
+ list: () => Promise<{
223
+ workspaceCount: number;
224
+ networks: {
225
+ network: string;
226
+ enabledByDefault: boolean;
227
+ createdAt: Date;
228
+ workspaceCount: number;
229
+ }[];
230
+ }>;
231
+ getWorkspace: (workspaceName: string) => Promise<{
232
+ workspace: {
233
+ createdAt: Date;
234
+ id: string;
235
+ mode: RevaultMode;
236
+ name: string;
237
+ status: ActivationStatus$1;
238
+ updatedAt: Date;
239
+ };
240
+ networks: string[];
241
+ }>;
242
+ replaceWorkspaceNetworks: (actor: BackofficeClaims, requiredPermission: "workspace:edit", input: {
243
+ workspaceName: string;
244
+ networks: string[];
245
+ expectedNetworks: string[];
246
+ }) => Promise<{
247
+ workspaceName: string;
248
+ beforeNetworks: string[];
249
+ afterNetworks: string[];
250
+ addedNetworks: string[];
251
+ removedNetworks: string[];
252
+ }>;
253
+ replaceDefaults: (actor: BackofficeClaims, requiredPermission: "workspace:edit", input: {
254
+ enabledNetworks: string[];
255
+ expectedEnabledNetworks: string[];
256
+ }) => Promise<{
257
+ beforeNetworks: string[];
258
+ afterNetworks: string[];
259
+ enabledNetworks: string[];
260
+ disabledNetworks: string[];
261
+ }>;
262
+ previewEnableNetworkForAllWorkspaces: (network: string) => Promise<{
263
+ network: string;
264
+ totalWorkspaceCount: number;
265
+ alreadyEnabledCount: number;
266
+ missingCount: number;
267
+ missingWorkspaceNames: string[];
268
+ }>;
269
+ enableNetworkForAllWorkspaces: (actor: BackofficeClaims, requiredPermission: "workspace:edit", input: {
270
+ network: string;
271
+ }) => Promise<{
272
+ network: string;
273
+ totalWorkspaceCount: number;
274
+ alreadyEnabledCount: number;
275
+ createdCount: number;
276
+ affectedWorkspaceNames: string[];
277
+ }>;
278
+ };
210
279
  accounts: {
211
280
  list: (input: ({
212
281
  page: number;
@@ -229,7 +298,6 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
229
298
  groupIds?: string[];
230
299
  lesWalletRegistrable?: boolean;
231
300
  addressBackfillable?: boolean;
232
- lesWalletNativeSegwitBitcoin?: boolean;
233
301
  gateSynced?: boolean;
234
302
  sortBy: "name" | "currency" | "index" | "createdAt" | "updatedAt";
235
303
  }) => Promise<{
@@ -315,7 +383,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
315
383
  };
316
384
  }[];
317
385
  }>;
318
- find: (id: string) => import("@/generated/prisma/models").Prisma__AccountClient<({
386
+ find: (id: string) => import("../../generated/prisma/models").Prisma__AccountClient<({
319
387
  classicGovernanceMixin: {
320
388
  id: number;
321
389
  accountId: string;
@@ -353,7 +421,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
353
421
  createdAt: Date;
354
422
  updatedAt: Date;
355
423
  }) | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
356
- omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
424
+ omit: import("../../generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
357
425
  }>;
358
426
  lesWalletRegistrableSummary: (scope: LesWalletRegistrationScope) => Promise<LesWalletRegistrableSummary>;
359
427
  registerOnLesWallet: (actor: BackofficeClaims, requiredPermission: "workspace:edit", input: {
@@ -384,7 +452,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
384
452
  workspaceName: string;
385
453
  currency: string;
386
454
  contractAddress: string | null;
387
- status: "BACKFILLED" | "DELETED" | "FAILED" | "REGISTERED";
455
+ status: "BACKFILLED" | "FAILED" | "REGISTERED";
388
456
  detail?: string | undefined;
389
457
  }[];
390
458
  numFixed: number;
@@ -436,7 +504,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
436
504
  updatedAt: Date;
437
505
  }[];
438
506
  }>;
439
- find: (id: string) => import("@/generated/prisma/models").Prisma__UserClient<{
507
+ find: (id: string) => import("../../generated/prisma/models").Prisma__UserClient<{
440
508
  id: string;
441
509
  workspaceName: string;
442
510
  name: string;
@@ -457,7 +525,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
457
525
  createdAt: Date;
458
526
  updatedAt: Date;
459
527
  } | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
460
- omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
528
+ omit: import("../../generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
461
529
  }>;
462
530
  };
463
531
  userRegistrations: {
@@ -494,7 +562,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
494
562
  updatedAt: Date;
495
563
  }[];
496
564
  }>;
497
- find: (id: string) => import("@/generated/prisma/models").Prisma__UserRegistrationClient<{
565
+ find: (id: string) => import("../../generated/prisma/models").Prisma__UserRegistrationClient<{
498
566
  id: string;
499
567
  workspaceName: string;
500
568
  name: string;
@@ -510,7 +578,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
510
578
  createdAt: Date;
511
579
  updatedAt: Date;
512
580
  } | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
513
- omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
581
+ omit: import("../../generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
514
582
  }>;
515
583
  };
516
584
  groups: {
@@ -567,7 +635,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
567
635
  updatedAt: Date;
568
636
  })[];
569
637
  }>;
570
- find: (id: string) => import("@/generated/prisma/models").Prisma__GroupClient<({
638
+ find: (id: string) => import("../../generated/prisma/models").Prisma__GroupClient<({
571
639
  members: {
572
640
  id: string;
573
641
  workspaceName: string;
@@ -602,7 +670,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
602
670
  createdAt: Date;
603
671
  updatedAt: Date;
604
672
  }) | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
605
- omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
673
+ omit: import("../../generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
606
674
  }>;
607
675
  };
608
676
  policies: {
@@ -734,7 +802,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
734
802
  updatedAt: Date;
735
803
  })[];
736
804
  }>;
737
- find: (id: string) => import("@/generated/prisma/models").Prisma__PolicyClient<({
805
+ find: (id: string) => import("../../generated/prisma/models").Prisma__PolicyClient<({
738
806
  reviewConfigs: ({
739
807
  groups: ({
740
808
  members: {
@@ -843,7 +911,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
843
911
  createdAt: Date;
844
912
  updatedAt: Date;
845
913
  }) | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
846
- omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
914
+ omit: import("../../generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
847
915
  }>;
848
916
  };
849
917
  whitelists: {
@@ -890,7 +958,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
890
958
  updatedAt: Date;
891
959
  })[];
892
960
  }>;
893
- find: (id: string) => import("@/generated/prisma/models").Prisma__WhitelistClient<({
961
+ find: (id: string) => import("../../generated/prisma/models").Prisma__WhitelistClient<({
894
962
  addresses: {
895
963
  id: string;
896
964
  whitelistId: string;
@@ -913,7 +981,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
913
981
  createdAt: Date;
914
982
  updatedAt: Date;
915
983
  }) | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
916
- omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
984
+ omit: import("../../generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
917
985
  }>;
918
986
  };
919
987
  reports: {
@@ -951,7 +1019,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
951
1019
  updatedAt: Date;
952
1020
  }[];
953
1021
  }>;
954
- find: (id: string) => import("@/generated/prisma/models").Prisma__VaultReportClient<{
1022
+ find: (id: string) => import("../../generated/prisma/models").Prisma__VaultReportClient<{
955
1023
  id: string;
956
1024
  workspaceName: string;
957
1025
  type: ReportType$1;
@@ -967,7 +1035,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
967
1035
  createdAt: Date;
968
1036
  updatedAt: Date;
969
1037
  } | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
970
- omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
1038
+ omit: import("../../generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
971
1039
  }>;
972
1040
  };
973
1041
  auditLogs: {
@@ -997,14 +1065,14 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
997
1065
  }[];
998
1066
  }>;
999
1067
  insert: (input: BackofficeAuditLogInput) => Promise<void>;
1000
- find: (id: string) => import("@/generated/prisma/models").Prisma__AuditLogClient<{
1068
+ find: (id: string) => import("../../generated/prisma/models").Prisma__AuditLogClient<{
1001
1069
  id: string;
1002
1070
  workspaceName: string | null;
1003
1071
  type: AuditLogType$1;
1004
1072
  payload: import("@prisma/client/runtime/client").JsonValue;
1005
1073
  createdAt: Date;
1006
1074
  } | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
1007
- omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
1075
+ omit: import("../../generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
1008
1076
  }>;
1009
1077
  };
1010
1078
  workspaceRules: {
@@ -1079,7 +1147,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
1079
1147
  oidcConfig: import("@prisma/client/runtime/client").JsonValue | null;
1080
1148
  }[];
1081
1149
  }>;
1082
- find: (id: string) => import("@/generated/prisma/models").Prisma__WorkspaceClient<{
1150
+ find: (id: string) => import("../../generated/prisma/models").Prisma__WorkspaceClient<{
1083
1151
  id: string;
1084
1152
  name: string;
1085
1153
  compartmentId: number;
@@ -1093,13 +1161,13 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
1093
1161
  pkiRootCaFetched: boolean;
1094
1162
  oidcConfig: import("@prisma/client/runtime/client").JsonValue | null;
1095
1163
  } | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
1096
- omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
1164
+ omit: import("../../generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
1097
1165
  }>;
1098
1166
  edit: (actor: BackofficeClaims, requiredPermission: "workspace:edit", input: {
1099
1167
  name: string;
1100
1168
  mode?: RevaultMode;
1101
1169
  maintenanceMode?: MaintenanceMode;
1102
- oidcConfig?: import("@/generated/prisma/internal/prismaNamespace").InputJsonValue | null;
1170
+ oidcConfig?: import("../../generated/prisma/internal/prismaNamespace").InputJsonValue | null;
1103
1171
  hsmProxyName?: string;
1104
1172
  pkiRootCaFetched?: boolean;
1105
1173
  }) => Promise<{
@@ -1213,7 +1281,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
1213
1281
  completedAt: Date | null;
1214
1282
  })[];
1215
1283
  }>;
1216
- find: (id: string) => import("@/generated/prisma/models").Prisma__OnboardingClient<({
1284
+ find: (id: string) => import("../../generated/prisma/models").Prisma__OnboardingClient<({
1217
1285
  claimedDevices: {
1218
1286
  id: string;
1219
1287
  onboardingId: string;
@@ -1283,7 +1351,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
1283
1351
  createdAt: Date;
1284
1352
  completedAt: Date | null;
1285
1353
  }) | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
1286
- omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
1354
+ omit: import("../../generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
1287
1355
  }>;
1288
1356
  create: (actor: BackofficeClaims, requiredPermission: "onboarding:create", input: Parameters<typeof startOnboarding>[1]) => Promise<{
1289
1357
  id: string;
@@ -1447,7 +1515,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
1447
1515
  updatedAt: Date;
1448
1516
  }[];
1449
1517
  }>;
1450
- find: (id: string) => import("@/generated/prisma/models").Prisma__OutgoingTransactionClient<({
1518
+ find: (id: string) => import("../../generated/prisma/models").Prisma__OutgoingTransactionClient<({
1451
1519
  statusTransitions: {
1452
1520
  id: string;
1453
1521
  sequence: number;
@@ -1473,7 +1541,7 @@ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, depende
1473
1541
  createdAt: Date;
1474
1542
  updatedAt: Date;
1475
1543
  }) | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
1476
- omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
1544
+ omit: import("../../generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
1477
1545
  }>;
1478
1546
  };
1479
1547
  webhooks: {
@@ -1869,6 +1937,143 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1869
1937
  meta: TrpcMeta;
1870
1938
  }>;
1871
1939
  }>>;
1940
+ allowedNetworks: import("@trpc/server").TRPCBuiltRouter<{
1941
+ ctx: {
1942
+ 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;
1943
+ 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;
1944
+ info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
1945
+ debugAuthToken?: string;
1946
+ rootAuthToken?: string;
1947
+ backofficeRequiredPermission?: BackofficePermission;
1948
+ io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
1949
+ user: {
1950
+ id: string;
1951
+ workspaceName: string;
1952
+ name: string;
1953
+ authUserId: string | null;
1954
+ pubKey: string;
1955
+ deviceType: UserDeviceType;
1956
+ deviceUserId: string | null;
1957
+ hsmId: string | null;
1958
+ u2fKeyHandle: string | null;
1959
+ u2fPubKey: string | null;
1960
+ legacyViewAll: boolean;
1961
+ role: UserRole;
1962
+ status: ActivationStatus$1;
1963
+ isSuspended: boolean;
1964
+ gateType: GateUserType | null;
1965
+ gateId: number;
1966
+ syncId: string;
1967
+ createdAt: Date;
1968
+ updatedAt: Date;
1969
+ } | null;
1970
+ authorization: string | null;
1971
+ readOnly: boolean;
1972
+ activityTracer: ActivityTracer;
1973
+ core: RuntimeInternalApiCapabilityProvider;
1974
+ };
1975
+ meta: TrpcMeta;
1976
+ errorShape: {
1977
+ message: string;
1978
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
1979
+ data: {
1980
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
1981
+ httpStatus: number;
1982
+ path?: string;
1983
+ stack?: string;
1984
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
1985
+ maintenance?: boolean | undefined;
1986
+ errorCode?: string | undefined;
1987
+ errorContext?: Record<string, string> | undefined;
1988
+ };
1989
+ };
1990
+ transformer: true;
1991
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
1992
+ catalog: import("@trpc/server").TRPCQueryProcedure<{
1993
+ input: void;
1994
+ output: {
1995
+ workspaceCount: number;
1996
+ networks: {
1997
+ network: string;
1998
+ enabledByDefault: boolean;
1999
+ createdAt: Date;
2000
+ workspaceCount: number;
2001
+ }[];
2002
+ };
2003
+ meta: TrpcMeta;
2004
+ }>;
2005
+ workspace: import("@trpc/server").TRPCQueryProcedure<{
2006
+ input: {
2007
+ workspaceName: string;
2008
+ };
2009
+ output: {
2010
+ workspace: {
2011
+ id: string;
2012
+ name: string;
2013
+ status: "ACTIVE" | "INACTIVE";
2014
+ mode: "GATE_COMPAT" | "STANDALONE";
2015
+ createdAt: Date;
2016
+ updatedAt: Date;
2017
+ };
2018
+ networks: string[];
2019
+ };
2020
+ meta: TrpcMeta;
2021
+ }>;
2022
+ replaceWorkspaceNetworks: import("@trpc/server").TRPCMutationProcedure<{
2023
+ input: {
2024
+ workspaceName: string;
2025
+ networks: string[];
2026
+ expectedNetworks: string[];
2027
+ };
2028
+ output: {
2029
+ workspaceName: string;
2030
+ beforeNetworks: string[];
2031
+ afterNetworks: string[];
2032
+ addedNetworks: string[];
2033
+ removedNetworks: string[];
2034
+ };
2035
+ meta: TrpcMeta;
2036
+ }>;
2037
+ replaceDefaults: import("@trpc/server").TRPCMutationProcedure<{
2038
+ input: {
2039
+ enabledNetworks: string[];
2040
+ expectedEnabledNetworks: string[];
2041
+ };
2042
+ output: {
2043
+ beforeNetworks: string[];
2044
+ afterNetworks: string[];
2045
+ enabledNetworks: string[];
2046
+ disabledNetworks: string[];
2047
+ };
2048
+ meta: TrpcMeta;
2049
+ }>;
2050
+ previewEnableNetworkForAllWorkspaces: import("@trpc/server").TRPCQueryProcedure<{
2051
+ input: {
2052
+ network: string;
2053
+ };
2054
+ output: {
2055
+ network: string;
2056
+ totalWorkspaceCount: number;
2057
+ alreadyEnabledCount: number;
2058
+ missingCount: number;
2059
+ missingWorkspaceNames: string[];
2060
+ };
2061
+ meta: TrpcMeta;
2062
+ }>;
2063
+ enableNetworkForAllWorkspaces: import("@trpc/server").TRPCMutationProcedure<{
2064
+ input: {
2065
+ network: string;
2066
+ };
2067
+ output: {
2068
+ network: string;
2069
+ totalWorkspaceCount: number;
2070
+ alreadyEnabledCount: number;
2071
+ createdCount: number;
2072
+ affectedWorkspaceNames: string[];
2073
+ };
2074
+ meta: TrpcMeta;
2075
+ }>;
2076
+ }>>;
1872
2077
  onboardings: import("@trpc/server").TRPCBuiltRouter<{
1873
2078
  ctx: {
1874
2079
  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;
@@ -2675,7 +2880,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2675
2880
  support?: "legacy" | "standalone" | undefined;
2676
2881
  lesWalletRegistrable?: boolean | undefined;
2677
2882
  addressBackfillable?: boolean | undefined;
2678
- lesWalletNativeSegwitBitcoin?: boolean | undefined;
2679
2883
  gateSynced?: boolean | undefined;
2680
2884
  type?: "BITCOIN_LIKE" | "CANTON_LIKE" | "CARDANO_LIKE" | "ETHEREUM_LIKE" | "GENERIC_LIKE" | "HEDERA_LIKE" | "POLKADOT_LIKE" | "RAW_SIGNING" | "RIPPLE_LIKE" | "SOLANA_LIKE" | "STELLAR_LIKE" | "SUI_LIKE" | "TEZOS_LIKE" | "TRON_LIKE" | undefined;
2681
2885
  policyIds?: string[] | undefined;
@@ -2704,6 +2908,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2704
2908
  createdAt: Date;
2705
2909
  updatedAt: Date;
2706
2910
  asset: {
2911
+ type: "SUI_LIKE";
2912
+ address: string | null;
2913
+ } | {
2707
2914
  type: "BITCOIN_LIKE";
2708
2915
  xpub: string;
2709
2916
  addressDerivationMode: "NEW" | "STATIC";
@@ -2716,12 +2923,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2716
2923
  } | {
2717
2924
  type: "ETHEREUM_LIKE";
2718
2925
  address: string | null;
2926
+ } | {
2927
+ type: "GENERIC_LIKE";
2719
2928
  } | {
2720
2929
  type: "HEDERA_LIKE";
2721
2930
  address: string | null;
2722
2931
  isActivated: boolean;
2723
- } | {
2724
- type: "GENERIC_LIKE";
2725
2932
  } | {
2726
2933
  type: "POLKADOT_LIKE";
2727
2934
  address: string | null;
@@ -2734,9 +2941,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2734
2941
  } | {
2735
2942
  type: "STELLAR_LIKE";
2736
2943
  address: string | null;
2737
- } | {
2738
- type: "SUI_LIKE";
2739
- address: string | null;
2740
2944
  } | {
2741
2945
  type: "TEZOS_LIKE";
2742
2946
  address: string | null;
@@ -2787,6 +2991,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2787
2991
  createdAt: Date;
2788
2992
  updatedAt: Date;
2789
2993
  asset: {
2994
+ type: "SUI_LIKE";
2995
+ address: string | null;
2996
+ } | {
2790
2997
  type: "BITCOIN_LIKE";
2791
2998
  xpub: string;
2792
2999
  addressDerivationMode: "NEW" | "STATIC";
@@ -2799,12 +3006,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2799
3006
  } | {
2800
3007
  type: "ETHEREUM_LIKE";
2801
3008
  address: string | null;
3009
+ } | {
3010
+ type: "GENERIC_LIKE";
2802
3011
  } | {
2803
3012
  type: "HEDERA_LIKE";
2804
3013
  address: string | null;
2805
3014
  isActivated: boolean;
2806
- } | {
2807
- type: "GENERIC_LIKE";
2808
3015
  } | {
2809
3016
  type: "POLKADOT_LIKE";
2810
3017
  address: string | null;
@@ -2817,9 +3024,6 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2817
3024
  } | {
2818
3025
  type: "STELLAR_LIKE";
2819
3026
  address: string | null;
2820
- } | {
2821
- type: "SUI_LIKE";
2822
- address: string | null;
2823
3027
  } | {
2824
3028
  type: "TEZOS_LIKE";
2825
3029
  address: string | null;
@@ -2855,7 +3059,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2855
3059
  input: {
2856
3060
  workspaceNames?: string[] | undefined;
2857
3061
  currencies?: string[] | undefined;
2858
- target?: "ADDRESS" | "DELETE_BITCOIN_NATIVE_SEGWIT" | "LES_WALLET_ID" | undefined;
3062
+ target?: "ADDRESS" | "LES_WALLET_ID" | undefined;
2859
3063
  };
2860
3064
  output: {
2861
3065
  total: number;
@@ -2870,7 +3074,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2870
3074
  input: {
2871
3075
  workspaceNames?: string[] | undefined;
2872
3076
  currencies?: string[] | undefined;
2873
- target?: "ADDRESS" | "DELETE_BITCOIN_NATIVE_SEGWIT" | "LES_WALLET_ID" | undefined;
3077
+ target?: "ADDRESS" | "LES_WALLET_ID" | undefined;
2874
3078
  limit: number;
2875
3079
  };
2876
3080
  output: {
@@ -2885,7 +3089,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2885
3089
  scope: {
2886
3090
  workspaceNames: string[];
2887
3091
  currencies: string[];
2888
- target: "ADDRESS" | "DELETE_BITCOIN_NATIVE_SEGWIT" | "LES_WALLET_ID";
3092
+ target: "ADDRESS" | "LES_WALLET_ID";
2889
3093
  };
2890
3094
  } | null;
2891
3095
  meta: TrpcMeta;
@@ -2907,7 +3111,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2907
3111
  workspaceName: string;
2908
3112
  currency: string;
2909
3113
  contractAddress: string | null;
2910
- status: "BACKFILLED" | "DELETED" | "FAILED" | "REGISTERED";
3114
+ status: "BACKFILLED" | "FAILED" | "REGISTERED";
2911
3115
  detail?: string | undefined;
2912
3116
  }[];
2913
3117
  numFixed: number;
package/lib/fakes.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { $n as GroupResponse, Ct as RequestDataOf, Do as AccountType, Dt as VaultRequestResponse, Ei as AccountStakingFields, Et as VaultRequestCreateInput, Go as MessageType, Hr as WebhookResponse, _r as AccountResponse, b as UserResponse, ji as TransactionDataOf, u as WhitelistResponse } from "./app-lib-BKOBjCVP.mjs";
1
+ import { Ai as WebhookResponse, Ct as RequestDataOf, Dt as VaultRequestResponse, Et as VaultRequestCreateInput, b as UserResponse, ii as AccountResponse, kn as AccountType, ma as AccountStakingFields, qn as MessageType, u as WhitelistResponse, ya as TransactionDataOf, zr as GroupResponse } from "./app-lib-BGiL1x9A.mjs";
2
2
  //#region src/__fakes__/trpc/inputs.d.ts
3
3
  type RequestInputDataOf<T extends VaultRequestCreateInput["request"]["type"]> = Extract<VaultRequestCreateInput["request"], {
4
4
  type: T;