@ledgerhq/revault-api 1.85.0 → 1.87.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,6 +1,1563 @@
1
- import { Er as zOidcConfig, F as RuntimeInternalApiCapabilityProvider, I as RateLimitMetricsMeta, P as BackofficePermissionMeta, Sa as SendOnlyTransactionData, Tn as UserRole, X as BackofficePermission, Y as ActivityTracer, ai as HsmCertificate, bo as HsmWorkspaceComparison, cn as GateUserType, it as VaultRequestResponse, nn as ActivationStatus, po as Note, tt as RequestReview, un as MaintenanceMode, wa as TransactionData, wn as UserDeviceType } from "../app-lib-D-2gZGYR.mjs";
1
+ import { $a as AccountGovernanceType, Ao as RevaultMode, Ci as startOnboarding, Co as PsdModel, Dr as SendOnlyTransactionData, Fa as RequestView, Fo as WebhookRetryStrategy$1, Ha as BackofficeClaims, Io as WebhookStatus$1, Ja as ExtendedPrismaClient, Lo as WhitelistType, Mo as UserDeviceType, No as UserRegistrationState, Oo as RequestType$1, Pa as WebhookDeliveryStats, Po as UserRole, Q as ActivityTracer, R as TrpcMeta, Ra as LesWalletRegistrableSummary, Sa as SortOrder, Si as RequestListFilters, To as ReportType$1, Va as LesWalletRegistrationScope, Ya as BackofficePermission, _o as MaintenanceMode, ao as AuditLogType$1, bi as BackofficeAuditLogInput, bo as OnboardingStep, co as EventAction$1, do as GatePolicyType, eo as AccountType$1, fo as GateReviewConfigType, ga as AccountWorkspaceScope, go as HsmHostingMode, ha as AccountAssetFilter, ho as GateWorkspaceRuleType, it as RequestReview, ji as HsmCertificate, jo as ReviewConfigType, kr as TransactionData, lo as GateAccountType, ma as HsmWorkspaceComparison, mo as GateWhitelistType, no as AddressDerivationMode, po as GateUserType, qa as zOidcConfig, ro as AdminPermission$1, so as ClaimedRole, st as VaultRequestResponse, to as ActivationStatus$1, ua as HsmComparator, uo as GateGroupType, wo as ReportStatus$1, xi as WhitelistSortBy, xo as OutgoingTransactionStatus, yi as Note, yo as OnboardedUserRole, z as RuntimeApiCapabilities, za as LesWalletRegistrationReport } from "../../app-lib-3Twpit5H.mjs";
2
2
  import z from "zod";
3
+ import { Account, AllowedAction, Prisma, PrismaClient, ReviewConfig, VaultRequestReview, Workspace } from "@/generated/prisma/client";
3
4
  import "trpc-to-openapi";
5
+ //#region src/core/rebac/relationship-tuples.d.ts
6
+ declare const RELATIONSHIP_OBJECT_TYPES: {
7
+ readonly account: "account";
8
+ readonly entity: "entity";
9
+ readonly group: "group";
10
+ readonly policy: "policy";
11
+ readonly portfolio: "portfolio";
12
+ readonly tradelinkCustodian: "tradelink-custodian";
13
+ readonly tradelinkEntity: "tradelink-entity";
14
+ readonly tradelinkPledge: "tradelink-pledge";
15
+ readonly user: "user";
16
+ readonly whitelist: "whitelist";
17
+ readonly workspace: "workspace";
18
+ readonly workspaceRule: "workspace-rule";
19
+ };
20
+ type RelationshipObjectType = (typeof RELATIONSHIP_OBJECT_TYPES)[keyof typeof RELATIONSHIP_OBJECT_TYPES];
21
+ declare const RELATIONSHIP_RELATIONS: {
22
+ readonly entity: "entity";
23
+ readonly member: "member";
24
+ readonly policy: "policy";
25
+ readonly portfolio: "portfolio";
26
+ readonly reader: "reader";
27
+ readonly tradelinkAssetManager: "tradelink:asset-manager";
28
+ readonly tradelinkCustodian: "tradelink:custodian";
29
+ readonly tradelinkExchange: "tradelink:exchange";
30
+ readonly tradelinkRepledgeExchange: "tradelink:repledge-exchange";
31
+ };
32
+ declare const DIRECT_SUBJECT_RELATION = "";
33
+ type OperatorRelation = `operator:${AllowedAction}`;
34
+ type RelationshipRelation = (typeof RELATIONSHIP_RELATIONS)[keyof typeof RELATIONSHIP_RELATIONS] | OperatorRelation;
35
+ type RelationshipSubjectRelation = typeof DIRECT_SUBJECT_RELATION | typeof RELATIONSHIP_RELATIONS.member;
36
+ /**
37
+ * Authorization-graph fact in Zanzibar/ReBAC vocabulary:
38
+ *
39
+ * object#relation@subject
40
+ *
41
+ * plus Revault source attribution for deterministic source replacement:
42
+ *
43
+ * object#relation@subject [source]
44
+ *
45
+ * This is not a TypeScript tuple (`[A, B]`). The persisted table stores each component in a
46
+ * dedicated string column so rows can be indexed, rebuilt, and compared deterministically.
47
+ */
48
+ type RelationshipTuple = {
49
+ workspaceName: string;
50
+ objectType: RelationshipObjectType;
51
+ objectId: string;
52
+ relation: RelationshipRelation;
53
+ subjectType: RelationshipObjectType;
54
+ subjectId: string;
55
+ subjectRelation: RelationshipSubjectRelation;
56
+ sourceType: RelationshipObjectType;
57
+ sourceId: string;
58
+ };
59
+ //#endregion
60
+ //#region src/core/relationships/inspection.d.ts
61
+ type RelationshipShapeCount = {
62
+ objectType: string;
63
+ relation: string;
64
+ subjectType: string;
65
+ subjectRelation: string;
66
+ count: number;
67
+ };
68
+ type RelationshipSourceTypeCount = {
69
+ sourceType: string;
70
+ count: number;
71
+ };
72
+ type RelationshipHealth = {
73
+ workspaceName: string;
74
+ currentTupleCount: number;
75
+ sourceTypeCounts: RelationshipSourceTypeCount[];
76
+ shapeCounts: RelationshipShapeCount[];
77
+ };
78
+ type RelationshipDriftCheck = {
79
+ workspaceName: string;
80
+ expectedTupleCount: number;
81
+ actualTupleCount: number;
82
+ missingTupleCount: number;
83
+ extraTupleCount: number;
84
+ missingSamples: RelationshipTuple[];
85
+ extraSamples: RelationshipTuple[];
86
+ buildDurationMs: number;
87
+ readDurationMs: number;
88
+ compareDurationMs: number;
89
+ totalDurationMs: number;
90
+ };
91
+ //#endregion
92
+ //#region src/services/configcat-management/types.d.ts
93
+ type ConfigCatManagementLocation = {
94
+ productId: string;
95
+ configId: string;
96
+ };
97
+ type ConfigCatSettingType = "boolean" | "string" | "int" | "double";
98
+ type PromotionValueType = "boolean" | "string" | "number" | "json";
99
+ type ConfigCatScalarValue = boolean | string | number;
100
+ type ConfigCatFlag = {
101
+ settingId: number;
102
+ key: string;
103
+ name: string;
104
+ settingType: ConfigCatSettingType;
105
+ valueType: PromotionValueType;
106
+ isJson: boolean;
107
+ hint?: string | null;
108
+ order?: number | null;
109
+ hasTags: boolean;
110
+ hasPredefinedVariations: boolean;
111
+ };
112
+ type ConfigCatManagement = {
113
+ listFlags: (location: ConfigCatManagementLocation) => Promise<ConfigCatFlag[]>;
114
+ listEnvironmentIds: (location: ConfigCatManagementLocation) => Promise<string[]>;
115
+ readSimpleValues: (location: ConfigCatManagementLocation, flags: ConfigCatFlag[]) => Promise<Map<number, ConfigCatScalarValue | null>>;
116
+ createFlag: (opts: {
117
+ target: ConfigCatManagementLocation;
118
+ targetEnvironmentIds: string[];
119
+ sourceFlag: ConfigCatFlag;
120
+ value: ConfigCatScalarValue;
121
+ }) => Promise<void>;
122
+ };
123
+ //#endregion
124
+ //#region src/core/administration/feature-flag-promotions/types.d.ts
125
+ type ConfigCatPromotionEnvironmentConfig = {
126
+ slug: string;
127
+ displayName: string;
128
+ productId: string;
129
+ configId: string;
130
+ };
131
+ type FlagEnvironment = {
132
+ slug: string;
133
+ displayName: string;
134
+ order: number;
135
+ };
136
+ type PromotionTargetSelection = {
137
+ flagKey: string;
138
+ targetEnv: string;
139
+ };
140
+ type PromotionBlockerCode = "ENVIRONMENT_NOT_CONFIGURED" | "TARGET_NOT_AFTER_SOURCE" | "SELECTED_FLAG_ALREADY_EXISTS" | "SOURCE_FLAG_NOT_FOUND" | "UNSUPPORTED_FLAG" | "CONFIGCAT_UNAVAILABLE" | "EXTERNAL_WRITE_FAILED" | "EXTERNAL_WRITE_OUTCOME_UNKNOWN";
141
+ type PromotionBlocker = {
142
+ code: PromotionBlockerCode;
143
+ severity: "blocking";
144
+ sourceEnv: string;
145
+ targetEnv?: string;
146
+ flagKey?: string;
147
+ message: string;
148
+ };
149
+ type PromotionCreate = {
150
+ sourceEnv: string;
151
+ targetEnv: string;
152
+ flagKey: string;
153
+ flagName: string;
154
+ valueType: PromotionValueType;
155
+ };
156
+ type MatrixOutput = {
157
+ environments: FlagEnvironment[];
158
+ sourceEnv: string;
159
+ rows: Array<{
160
+ flagKey: string;
161
+ flagName: string;
162
+ valueType: PromotionValueType;
163
+ cells: Record<string, {
164
+ state: "source" | "present" | "missing" | "blocked" | "notAllowed";
165
+ summary: string;
166
+ blockers: PromotionBlocker[];
167
+ }>;
168
+ }>;
169
+ summary: {
170
+ promotableCells: number;
171
+ blockedCells: number;
172
+ alignedFlags: number;
173
+ };
174
+ fetchedAt: string;
175
+ };
176
+ type ApplyOutput = {
177
+ attemptId: string;
178
+ status: "applied" | "blocked" | "failed" | "partiallyApplied";
179
+ created: PromotionCreate[];
180
+ notAttempted: PromotionCreate[];
181
+ blockers: PromotionBlocker[];
182
+ };
183
+ //#endregion
184
+ //#region src/core/administration/feature-flag-promotions/capability.d.ts
185
+ type PromoteInput = {
186
+ sourceEnv: string;
187
+ selections: PromotionTargetSelection[];
188
+ operatorReason?: string;
189
+ actor: BackofficeClaims;
190
+ };
191
+ type FeatureFlagPromotions = {
192
+ matrix: (input: {
193
+ sourceEnv?: string;
194
+ }) => Promise<MatrixOutput>;
195
+ promote: (input: PromoteInput) => Promise<ApplyOutput>;
196
+ };
197
+ //#endregion
198
+ //#region src/core/runtime/internal-capabilities.d.ts
199
+ /**
200
+ * Least-privilege split (ADR-0022): capabilities that must never be reachable from the *public*
201
+ * HTTP context live here, not in {@link createApiCoreCapabilities}. Only the internal-API transport
202
+ * (backoffice) mounts them, so a public procedure's `ctx.core` cannot see — or type-resolve — the
203
+ * administration surface. New non-public internal capabilities belong in this bucket too.
204
+ */
205
+ type InternalCapabilityDependencies = {
206
+ configCatManagement?: ConfigCatManagement;
207
+ configCatPromotionEnvironments?: ConfigCatPromotionEnvironmentConfig[];
208
+ };
209
+ declare const createInternalCapabilities: (prisma: ExtendedPrismaClient, dependencies?: InternalCapabilityDependencies) => {
210
+ accounts: {
211
+ list: (input: ({
212
+ page: number;
213
+ pageSize: number;
214
+ } & {
215
+ sortOrder: SortOrder;
216
+ }) & {
217
+ workspace: AccountWorkspaceScope;
218
+ status?: ActivationStatus$1;
219
+ id?: string;
220
+ name?: string;
221
+ governanceType?: AccountGovernanceType;
222
+ asset?: AccountAssetFilter;
223
+ support?: "standalone" | "legacy";
224
+ accountType?: AccountType$1;
225
+ index?: number;
226
+ policyIds?: string[];
227
+ entityIds?: string[];
228
+ userIds?: string[];
229
+ groupIds?: string[];
230
+ lesWalletRegistrable?: boolean;
231
+ addressBackfillable?: boolean;
232
+ gateSynced?: boolean;
233
+ sortBy: "name" | "currency" | "index" | "createdAt" | "updatedAt";
234
+ }) => Promise<{
235
+ page: number;
236
+ next: number | null;
237
+ prev: number | null;
238
+ pageSize: number;
239
+ total: number;
240
+ results: {
241
+ id: string;
242
+ workspaceName: string;
243
+ gateId: number;
244
+ name: string;
245
+ asset: {
246
+ network: string;
247
+ contractAddress: string | null;
248
+ tokenIdentifier: string | null;
249
+ };
250
+ accountTypeFields: {
251
+ type: "BITCOIN_LIKE";
252
+ xpub: string;
253
+ addressDerivationMode: "NEW" | "STATIC";
254
+ } | {
255
+ type: "CANTON_LIKE";
256
+ address: string | null;
257
+ } | {
258
+ type: "CARDANO_LIKE";
259
+ address: string | null;
260
+ } | {
261
+ type: "ETHEREUM_LIKE";
262
+ address: string | null;
263
+ } | {
264
+ type: "GENERIC_LIKE";
265
+ } | {
266
+ type: "HEDERA_LIKE";
267
+ address: string | null;
268
+ isActivated: boolean;
269
+ } | {
270
+ type: "POLKADOT_LIKE";
271
+ address: string | null;
272
+ } | {
273
+ type: "RIPPLE_LIKE";
274
+ address: string | null;
275
+ } | {
276
+ type: "SOLANA_LIKE";
277
+ address: string | null;
278
+ } | {
279
+ type: "STELLAR_LIKE";
280
+ address: string | null;
281
+ } | {
282
+ type: "SUI_LIKE";
283
+ address: string | null;
284
+ } | {
285
+ type: "TEZOS_LIKE";
286
+ address: string | null;
287
+ } | {
288
+ type: "TRON_LIKE";
289
+ address: string | null;
290
+ } | {
291
+ type: "RAW_SIGNING";
292
+ };
293
+ index: number;
294
+ derivationPath: string;
295
+ lesWalletId: string | null;
296
+ hsmId: string;
297
+ status: "ACTIVE" | "INACTIVE";
298
+ createdAt: Date;
299
+ updatedAt: Date;
300
+ governance: {
301
+ type: "CLASSIC";
302
+ policyId: string;
303
+ } | {
304
+ type: "RAW_SIGNING";
305
+ policyId: string;
306
+ } | {
307
+ type: "TRADELINK";
308
+ assetManagerId: string;
309
+ exchangeConfigs: {
310
+ exchangeId: string;
311
+ repledgeAuthorized: boolean;
312
+ needsAssetManagerApprovalForSettlements: boolean;
313
+ }[];
314
+ };
315
+ }[];
316
+ }>;
317
+ find: (id: string) => import("@/generated/prisma/models").Prisma__AccountClient<({
318
+ classicGovernanceMixin: {
319
+ id: number;
320
+ accountId: string;
321
+ policyId: string;
322
+ } | null;
323
+ tradelinkGovernanceMixin: {
324
+ id: number;
325
+ accountId: string;
326
+ assetManagerId: string;
327
+ status: ActivationStatus$1;
328
+ exchangeConfigs: import("@prisma/client/runtime/client").JsonValue;
329
+ } | null;
330
+ } & {
331
+ id: string;
332
+ workspaceName: string;
333
+ name: string;
334
+ status: ActivationStatus$1;
335
+ governanceType: AccountGovernanceType;
336
+ type: AccountType$1;
337
+ currency: string;
338
+ index: number;
339
+ contractAddress: string | null;
340
+ tokenIdentifier: string | null;
341
+ derivationPath: string;
342
+ bitcoinAddressDerivationMode: AddressDerivationMode | null;
343
+ hsmId: string;
344
+ hsmXpub: string;
345
+ hsmChainCode: string | null;
346
+ address: string | null;
347
+ xpub: string | null;
348
+ lesWalletId: string | null;
349
+ gateType: GateAccountType | null;
350
+ gateId: number;
351
+ syncId: string;
352
+ createdAt: Date;
353
+ updatedAt: Date;
354
+ }) | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
355
+ omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
356
+ }>;
357
+ lesWalletRegistrableSummary: (scope: LesWalletRegistrationScope) => Promise<LesWalletRegistrableSummary>;
358
+ registerOnLesWallet: (actor: BackofficeClaims, requiredPermission: "workspace:edit", input: {
359
+ scope: LesWalletRegistrationScope;
360
+ limit: number;
361
+ }) => Promise<LesWalletRegistrationReport>;
362
+ };
363
+ users: {
364
+ list: (input: ({
365
+ page: number;
366
+ pageSize: number;
367
+ } & {
368
+ sortOrder: SortOrder;
369
+ }) & {
370
+ workspaceName?: string | string[];
371
+ role?: UserRole;
372
+ deviceType?: UserDeviceType;
373
+ status?: ActivationStatus$1;
374
+ id?: string;
375
+ name?: string;
376
+ ids?: string[];
377
+ sortBy: "name" | "role" | "status" | "createdAt" | "updatedAt";
378
+ }) => Promise<{
379
+ page: number;
380
+ next: number | null;
381
+ prev: number | null;
382
+ pageSize: number;
383
+ total: number;
384
+ results: {
385
+ id: string;
386
+ workspaceName: string;
387
+ name: string;
388
+ authUserId: string | null;
389
+ pubKey: string;
390
+ deviceType: UserDeviceType;
391
+ deviceUserId: string | null;
392
+ hsmId: string | null;
393
+ u2fKeyHandle: string | null;
394
+ u2fPubKey: string | null;
395
+ legacyViewAll: boolean;
396
+ role: UserRole;
397
+ status: ActivationStatus$1;
398
+ isSuspended: boolean;
399
+ gateType: GateUserType | null;
400
+ gateId: number;
401
+ syncId: string;
402
+ createdAt: Date;
403
+ updatedAt: Date;
404
+ }[];
405
+ }>;
406
+ find: (id: string) => import("@/generated/prisma/models").Prisma__UserClient<{
407
+ id: string;
408
+ workspaceName: string;
409
+ name: string;
410
+ authUserId: string | null;
411
+ pubKey: string;
412
+ deviceType: UserDeviceType;
413
+ deviceUserId: string | null;
414
+ hsmId: string | null;
415
+ u2fKeyHandle: string | null;
416
+ u2fPubKey: string | null;
417
+ legacyViewAll: boolean;
418
+ role: UserRole;
419
+ status: ActivationStatus$1;
420
+ isSuspended: boolean;
421
+ gateType: GateUserType | null;
422
+ gateId: number;
423
+ syncId: string;
424
+ createdAt: Date;
425
+ updatedAt: Date;
426
+ } | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
427
+ omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
428
+ }>;
429
+ };
430
+ userRegistrations: {
431
+ list: (input: ({
432
+ page: number;
433
+ pageSize: number;
434
+ } & {
435
+ sortOrder: SortOrder;
436
+ }) & {
437
+ workspaceName?: string | string[];
438
+ role?: "ADMIN" | "OPERATOR";
439
+ state?: UserRegistrationState;
440
+ sortBy: "name" | "role" | "state";
441
+ }) => Promise<{
442
+ page: number;
443
+ next: number | null;
444
+ prev: number | null;
445
+ pageSize: number;
446
+ total: number;
447
+ results: {
448
+ id: string;
449
+ workspaceName: string;
450
+ name: string;
451
+ role: UserRole;
452
+ psdModel: PsdModel;
453
+ deviceUserId: string;
454
+ invitedById: string;
455
+ pubKey: string | null;
456
+ challenge: import("@prisma/client/runtime/client").JsonValue;
457
+ u2fKeyHandle: string | null;
458
+ u2fPubKey: string | null;
459
+ state: UserRegistrationState;
460
+ createdAt: Date;
461
+ updatedAt: Date;
462
+ }[];
463
+ }>;
464
+ find: (id: string) => import("@/generated/prisma/models").Prisma__UserRegistrationClient<{
465
+ id: string;
466
+ workspaceName: string;
467
+ name: string;
468
+ role: UserRole;
469
+ psdModel: PsdModel;
470
+ deviceUserId: string;
471
+ invitedById: string;
472
+ pubKey: string | null;
473
+ challenge: import("@prisma/client/runtime/client").JsonValue;
474
+ u2fKeyHandle: string | null;
475
+ u2fPubKey: string | null;
476
+ state: UserRegistrationState;
477
+ createdAt: Date;
478
+ updatedAt: Date;
479
+ } | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
480
+ omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
481
+ }>;
482
+ };
483
+ groups: {
484
+ list: (input: ({
485
+ page: number;
486
+ pageSize: number;
487
+ } & {
488
+ sortOrder: SortOrder;
489
+ }) & {
490
+ workspaceName?: string | string[];
491
+ status?: ActivationStatus$1;
492
+ id?: string;
493
+ name?: string;
494
+ sortBy: "name" | "status" | "createdAt" | "updatedAt";
495
+ }) => Promise<{
496
+ page: number;
497
+ next: number | null;
498
+ prev: number | null;
499
+ pageSize: number;
500
+ total: number;
501
+ results: ({
502
+ members: {
503
+ id: string;
504
+ workspaceName: string;
505
+ name: string;
506
+ authUserId: string | null;
507
+ pubKey: string;
508
+ deviceType: UserDeviceType;
509
+ deviceUserId: string | null;
510
+ hsmId: string | null;
511
+ u2fKeyHandle: string | null;
512
+ u2fPubKey: string | null;
513
+ legacyViewAll: boolean;
514
+ role: UserRole;
515
+ status: ActivationStatus$1;
516
+ isSuspended: boolean;
517
+ gateType: GateUserType | null;
518
+ gateId: number;
519
+ syncId: string;
520
+ createdAt: Date;
521
+ updatedAt: Date;
522
+ }[];
523
+ } & {
524
+ id: string;
525
+ workspaceName: string;
526
+ name: string;
527
+ description: string | null;
528
+ hsmId: string;
529
+ status: ActivationStatus$1;
530
+ gateType: GateGroupType | null;
531
+ gateId: number;
532
+ syncId: string;
533
+ createdAt: Date;
534
+ updatedAt: Date;
535
+ })[];
536
+ }>;
537
+ find: (id: string) => import("@/generated/prisma/models").Prisma__GroupClient<({
538
+ members: {
539
+ id: string;
540
+ workspaceName: string;
541
+ name: string;
542
+ authUserId: string | null;
543
+ pubKey: string;
544
+ deviceType: UserDeviceType;
545
+ deviceUserId: string | null;
546
+ hsmId: string | null;
547
+ u2fKeyHandle: string | null;
548
+ u2fPubKey: string | null;
549
+ legacyViewAll: boolean;
550
+ role: UserRole;
551
+ status: ActivationStatus$1;
552
+ isSuspended: boolean;
553
+ gateType: GateUserType | null;
554
+ gateId: number;
555
+ syncId: string;
556
+ createdAt: Date;
557
+ updatedAt: Date;
558
+ }[];
559
+ } & {
560
+ id: string;
561
+ workspaceName: string;
562
+ name: string;
563
+ description: string | null;
564
+ hsmId: string;
565
+ status: ActivationStatus$1;
566
+ gateType: GateGroupType | null;
567
+ gateId: number;
568
+ syncId: string;
569
+ createdAt: Date;
570
+ updatedAt: Date;
571
+ }) | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
572
+ omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
573
+ }>;
574
+ };
575
+ policies: {
576
+ list: (input: ({
577
+ page: number;
578
+ pageSize: number;
579
+ } & {
580
+ sortOrder: SortOrder;
581
+ }) & {
582
+ workspaceName?: string | string[];
583
+ name?: string;
584
+ isPrivate: boolean;
585
+ currency?: string;
586
+ currencyLess?: boolean;
587
+ sortBy: "name" | "createdAt" | "updatedAt";
588
+ }) => Promise<{
589
+ page: number;
590
+ next: number | null;
591
+ prev: number | null;
592
+ pageSize: number;
593
+ total: number;
594
+ results: ({
595
+ reviewConfigs: ({
596
+ groups: ({
597
+ members: {
598
+ id: string;
599
+ workspaceName: string;
600
+ name: string;
601
+ authUserId: string | null;
602
+ pubKey: string;
603
+ deviceType: UserDeviceType;
604
+ deviceUserId: string | null;
605
+ hsmId: string | null;
606
+ u2fKeyHandle: string | null;
607
+ u2fPubKey: string | null;
608
+ legacyViewAll: boolean;
609
+ role: UserRole;
610
+ status: ActivationStatus$1;
611
+ isSuspended: boolean;
612
+ gateType: GateUserType | null;
613
+ gateId: number;
614
+ syncId: string;
615
+ createdAt: Date;
616
+ updatedAt: Date;
617
+ }[];
618
+ } & {
619
+ id: string;
620
+ workspaceName: string;
621
+ name: string;
622
+ description: string | null;
623
+ hsmId: string;
624
+ status: ActivationStatus$1;
625
+ gateType: GateGroupType | null;
626
+ gateId: number;
627
+ syncId: string;
628
+ createdAt: Date;
629
+ updatedAt: Date;
630
+ })[];
631
+ users: {
632
+ id: string;
633
+ workspaceName: string;
634
+ name: string;
635
+ authUserId: string | null;
636
+ pubKey: string;
637
+ deviceType: UserDeviceType;
638
+ deviceUserId: string | null;
639
+ hsmId: string | null;
640
+ u2fKeyHandle: string | null;
641
+ u2fPubKey: string | null;
642
+ legacyViewAll: boolean;
643
+ role: UserRole;
644
+ status: ActivationStatus$1;
645
+ isSuspended: boolean;
646
+ gateType: GateUserType | null;
647
+ gateId: number;
648
+ syncId: string;
649
+ createdAt: Date;
650
+ updatedAt: Date;
651
+ }[];
652
+ } & {
653
+ id: string;
654
+ workspaceName: string;
655
+ type: ReviewConfigType;
656
+ steps: import("@prisma/client/runtime/client").JsonValue;
657
+ ownerPolicyId: string | null;
658
+ gateType: GateReviewConfigType | null;
659
+ gateId: number;
660
+ syncId: string;
661
+ })[];
662
+ whitelists: ({
663
+ addresses: {
664
+ id: string;
665
+ whitelistId: string;
666
+ name: string;
667
+ currency: string;
668
+ address: string;
669
+ destinationTag: string | null;
670
+ }[];
671
+ } & {
672
+ id: string;
673
+ workspaceName: string;
674
+ name: string;
675
+ description: string | null;
676
+ hsmId: string;
677
+ type: WhitelistType;
678
+ status: ActivationStatus$1;
679
+ gateType: GateWhitelistType | null;
680
+ gateId: number;
681
+ syncId: string;
682
+ createdAt: Date;
683
+ updatedAt: Date;
684
+ })[];
685
+ } & {
686
+ id: string;
687
+ workspaceName: string;
688
+ name: string;
689
+ description: string | null;
690
+ currency: string | null;
691
+ contractAddress: string | null;
692
+ tokenIdentifier: string | null;
693
+ isPrivate: boolean;
694
+ hsmId: string | null;
695
+ rulesJsonArray: import("@prisma/client/runtime/client").JsonValue;
696
+ status: ActivationStatus$1;
697
+ gateType: GatePolicyType | null;
698
+ gateId: number;
699
+ syncId: string;
700
+ createdAt: Date;
701
+ updatedAt: Date;
702
+ })[];
703
+ }>;
704
+ find: (id: string) => import("@/generated/prisma/models").Prisma__PolicyClient<({
705
+ reviewConfigs: ({
706
+ groups: ({
707
+ members: {
708
+ id: string;
709
+ workspaceName: string;
710
+ name: string;
711
+ authUserId: string | null;
712
+ pubKey: string;
713
+ deviceType: UserDeviceType;
714
+ deviceUserId: string | null;
715
+ hsmId: string | null;
716
+ u2fKeyHandle: string | null;
717
+ u2fPubKey: string | null;
718
+ legacyViewAll: boolean;
719
+ role: UserRole;
720
+ status: ActivationStatus$1;
721
+ isSuspended: boolean;
722
+ gateType: GateUserType | null;
723
+ gateId: number;
724
+ syncId: string;
725
+ createdAt: Date;
726
+ updatedAt: Date;
727
+ }[];
728
+ } & {
729
+ id: string;
730
+ workspaceName: string;
731
+ name: string;
732
+ description: string | null;
733
+ hsmId: string;
734
+ status: ActivationStatus$1;
735
+ gateType: GateGroupType | null;
736
+ gateId: number;
737
+ syncId: string;
738
+ createdAt: Date;
739
+ updatedAt: Date;
740
+ })[];
741
+ users: {
742
+ id: string;
743
+ workspaceName: string;
744
+ name: string;
745
+ authUserId: string | null;
746
+ pubKey: string;
747
+ deviceType: UserDeviceType;
748
+ deviceUserId: string | null;
749
+ hsmId: string | null;
750
+ u2fKeyHandle: string | null;
751
+ u2fPubKey: string | null;
752
+ legacyViewAll: boolean;
753
+ role: UserRole;
754
+ status: ActivationStatus$1;
755
+ isSuspended: boolean;
756
+ gateType: GateUserType | null;
757
+ gateId: number;
758
+ syncId: string;
759
+ createdAt: Date;
760
+ updatedAt: Date;
761
+ }[];
762
+ } & {
763
+ id: string;
764
+ workspaceName: string;
765
+ type: ReviewConfigType;
766
+ steps: import("@prisma/client/runtime/client").JsonValue;
767
+ ownerPolicyId: string | null;
768
+ gateType: GateReviewConfigType | null;
769
+ gateId: number;
770
+ syncId: string;
771
+ })[];
772
+ whitelists: ({
773
+ addresses: {
774
+ id: string;
775
+ whitelistId: string;
776
+ name: string;
777
+ currency: string;
778
+ address: string;
779
+ destinationTag: string | null;
780
+ }[];
781
+ } & {
782
+ id: string;
783
+ workspaceName: string;
784
+ name: string;
785
+ description: string | null;
786
+ hsmId: string;
787
+ type: WhitelistType;
788
+ status: ActivationStatus$1;
789
+ gateType: GateWhitelistType | null;
790
+ gateId: number;
791
+ syncId: string;
792
+ createdAt: Date;
793
+ updatedAt: Date;
794
+ })[];
795
+ } & {
796
+ id: string;
797
+ workspaceName: string;
798
+ name: string;
799
+ description: string | null;
800
+ currency: string | null;
801
+ contractAddress: string | null;
802
+ tokenIdentifier: string | null;
803
+ isPrivate: boolean;
804
+ hsmId: string | null;
805
+ rulesJsonArray: import("@prisma/client/runtime/client").JsonValue;
806
+ status: ActivationStatus$1;
807
+ gateType: GatePolicyType | null;
808
+ gateId: number;
809
+ syncId: string;
810
+ createdAt: Date;
811
+ updatedAt: Date;
812
+ }) | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
813
+ omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
814
+ }>;
815
+ };
816
+ whitelists: {
817
+ list: (input: ({
818
+ page: number;
819
+ pageSize: number;
820
+ } & {
821
+ sortOrder: SortOrder;
822
+ }) & {
823
+ workspaceName?: string | string[];
824
+ status?: ActivationStatus$1;
825
+ id?: string;
826
+ name?: string;
827
+ address?: string;
828
+ currency?: string;
829
+ sortBy: WhitelistSortBy;
830
+ }) => Promise<{
831
+ page: number;
832
+ next: number | null;
833
+ prev: number | null;
834
+ pageSize: number;
835
+ total: number;
836
+ results: ({
837
+ addresses: {
838
+ id: string;
839
+ whitelistId: string;
840
+ name: string;
841
+ currency: string;
842
+ address: string;
843
+ destinationTag: string | null;
844
+ }[];
845
+ } & {
846
+ id: string;
847
+ workspaceName: string;
848
+ name: string;
849
+ description: string | null;
850
+ hsmId: string;
851
+ type: WhitelistType;
852
+ status: ActivationStatus$1;
853
+ gateType: GateWhitelistType | null;
854
+ gateId: number;
855
+ syncId: string;
856
+ createdAt: Date;
857
+ updatedAt: Date;
858
+ })[];
859
+ }>;
860
+ find: (id: string) => import("@/generated/prisma/models").Prisma__WhitelistClient<({
861
+ addresses: {
862
+ id: string;
863
+ whitelistId: string;
864
+ name: string;
865
+ currency: string;
866
+ address: string;
867
+ destinationTag: string | null;
868
+ }[];
869
+ } & {
870
+ id: string;
871
+ workspaceName: string;
872
+ name: string;
873
+ description: string | null;
874
+ hsmId: string;
875
+ type: WhitelistType;
876
+ status: ActivationStatus$1;
877
+ gateType: GateWhitelistType | null;
878
+ gateId: number;
879
+ syncId: string;
880
+ createdAt: Date;
881
+ updatedAt: Date;
882
+ }) | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
883
+ omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
884
+ }>;
885
+ };
886
+ reports: {
887
+ list: (input: ({
888
+ page: number;
889
+ pageSize: number;
890
+ } & {
891
+ sortOrder: SortOrder;
892
+ }) & {
893
+ workspaceName?: string | string[];
894
+ type?: ReportType$1;
895
+ status?: ReportStatus$1;
896
+ createdBy?: string;
897
+ sortBy: "createdAt" | "updatedAt" | "expiresAt";
898
+ }) => Promise<{
899
+ page: number;
900
+ next: number | null;
901
+ prev: number | null;
902
+ pageSize: number;
903
+ total: number;
904
+ results: {
905
+ id: string;
906
+ workspaceName: string;
907
+ type: ReportType$1;
908
+ params: import("@prisma/client/runtime/client").JsonValue;
909
+ status: ReportStatus$1;
910
+ s3Region: string | null;
911
+ s3Bucket: string | null;
912
+ s3Key: string | null;
913
+ errorMessage: string | null;
914
+ generationTaskId: string | null;
915
+ createdById: string;
916
+ expiresAt: Date;
917
+ createdAt: Date;
918
+ updatedAt: Date;
919
+ }[];
920
+ }>;
921
+ find: (id: string) => import("@/generated/prisma/models").Prisma__VaultReportClient<{
922
+ id: string;
923
+ workspaceName: string;
924
+ type: ReportType$1;
925
+ params: import("@prisma/client/runtime/client").JsonValue;
926
+ status: ReportStatus$1;
927
+ s3Region: string | null;
928
+ s3Bucket: string | null;
929
+ s3Key: string | null;
930
+ errorMessage: string | null;
931
+ generationTaskId: string | null;
932
+ createdById: string;
933
+ expiresAt: Date;
934
+ createdAt: Date;
935
+ updatedAt: Date;
936
+ } | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
937
+ omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
938
+ }>;
939
+ };
940
+ auditLogs: {
941
+ list: (input: ({
942
+ page: number;
943
+ pageSize: number;
944
+ } & {
945
+ sortOrder: SortOrder;
946
+ }) & {
947
+ workspaceName?: string | string[];
948
+ type?: AuditLogType$1;
949
+ fromDate?: Date;
950
+ toDate?: Date;
951
+ sortBy: "createdAt" | "type";
952
+ }) => Promise<{
953
+ page: number;
954
+ next: number | null;
955
+ prev: number | null;
956
+ pageSize: number;
957
+ total: number;
958
+ results: {
959
+ id: string;
960
+ workspaceName: string | null;
961
+ type: AuditLogType$1;
962
+ payload: import("@prisma/client/runtime/client").JsonValue;
963
+ createdAt: Date;
964
+ }[];
965
+ }>;
966
+ insert: (input: BackofficeAuditLogInput) => Promise<void>;
967
+ find: (id: string) => import("@/generated/prisma/models").Prisma__AuditLogClient<{
968
+ id: string;
969
+ workspaceName: string | null;
970
+ type: AuditLogType$1;
971
+ payload: import("@prisma/client/runtime/client").JsonValue;
972
+ createdAt: Date;
973
+ } | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
974
+ omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
975
+ }>;
976
+ };
977
+ workspaceRules: {
978
+ list: (input: ({
979
+ page: number;
980
+ pageSize: number;
981
+ } & {
982
+ sortOrder: SortOrder;
983
+ }) & {
984
+ workspaceName?: string | string[];
985
+ permission?: AdminPermission$1;
986
+ sortBy: "permission" | "createdAt" | "updatedAt";
987
+ }) => Promise<{
988
+ page: number;
989
+ next: number | null;
990
+ prev: number | null;
991
+ pageSize: number;
992
+ total: number;
993
+ results: ({
994
+ reviewConfig: {
995
+ id: string;
996
+ workspaceName: string;
997
+ type: ReviewConfigType;
998
+ steps: import("@prisma/client/runtime/client").JsonValue;
999
+ ownerPolicyId: string | null;
1000
+ gateType: GateReviewConfigType | null;
1001
+ gateId: number;
1002
+ syncId: string;
1003
+ };
1004
+ } & {
1005
+ id: string;
1006
+ workspaceName: string;
1007
+ permission: AdminPermission$1;
1008
+ reviewConfigId: string;
1009
+ gateType: GateWorkspaceRuleType | null;
1010
+ gateId: number;
1011
+ syncId: string;
1012
+ createdAt: Date;
1013
+ updatedAt: Date;
1014
+ })[];
1015
+ }>;
1016
+ };
1017
+ workspaces: {
1018
+ list: (input: ({
1019
+ page: number;
1020
+ pageSize: number;
1021
+ } & {
1022
+ sortOrder: SortOrder;
1023
+ }) & {
1024
+ name?: string | string[];
1025
+ mode?: RevaultMode;
1026
+ status?: ActivationStatus$1;
1027
+ sortBy: "name" | "createdAt" | "updatedAt";
1028
+ }) => Promise<{
1029
+ page: number;
1030
+ next: number | null;
1031
+ prev: number | null;
1032
+ pageSize: number;
1033
+ total: number;
1034
+ results: {
1035
+ id: string;
1036
+ name: string;
1037
+ compartmentId: number;
1038
+ targetHsmName: string;
1039
+ mode: RevaultMode;
1040
+ hsmHostingMode: HsmHostingMode;
1041
+ status: ActivationStatus$1;
1042
+ maintenanceMode: MaintenanceMode;
1043
+ createdAt: Date;
1044
+ updatedAt: Date;
1045
+ pkiRootCaFetched: boolean;
1046
+ oidcConfig: import("@prisma/client/runtime/client").JsonValue | null;
1047
+ }[];
1048
+ }>;
1049
+ find: (id: string) => import("@/generated/prisma/models").Prisma__WorkspaceClient<{
1050
+ id: string;
1051
+ name: string;
1052
+ compartmentId: number;
1053
+ targetHsmName: string;
1054
+ mode: RevaultMode;
1055
+ hsmHostingMode: HsmHostingMode;
1056
+ status: ActivationStatus$1;
1057
+ maintenanceMode: MaintenanceMode;
1058
+ createdAt: Date;
1059
+ updatedAt: Date;
1060
+ pkiRootCaFetched: boolean;
1061
+ oidcConfig: import("@prisma/client/runtime/client").JsonValue | null;
1062
+ } | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
1063
+ omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
1064
+ }>;
1065
+ edit: (actor: BackofficeClaims, requiredPermission: "workspace:edit", input: {
1066
+ name: string;
1067
+ mode?: RevaultMode;
1068
+ maintenanceMode?: MaintenanceMode;
1069
+ oidcConfig?: import("@/generated/prisma/internal/prismaNamespace").InputJsonValue | null;
1070
+ hsmProxyName?: string;
1071
+ }) => Promise<{
1072
+ id: string;
1073
+ name: string;
1074
+ compartmentId: number;
1075
+ targetHsmName: string;
1076
+ mode: RevaultMode;
1077
+ hsmHostingMode: HsmHostingMode;
1078
+ status: ActivationStatus$1;
1079
+ maintenanceMode: MaintenanceMode;
1080
+ createdAt: Date;
1081
+ updatedAt: Date;
1082
+ pkiRootCaFetched: boolean;
1083
+ oidcConfig: import("@prisma/client/runtime/client").JsonValue | null;
1084
+ }>;
1085
+ setMaintenanceMode: (actor: BackofficeClaims, requiredPermission: "workspace:edit", input: {
1086
+ workspaceNames: string[];
1087
+ maintenanceMode: MaintenanceMode;
1088
+ }) => Promise<{
1089
+ maintenanceMode: MaintenanceMode;
1090
+ totalCount: number;
1091
+ changedCount: number;
1092
+ }>;
1093
+ };
1094
+ onboardings: {
1095
+ list: (input: ({
1096
+ page: number;
1097
+ pageSize: number;
1098
+ } & {
1099
+ sortOrder: SortOrder;
1100
+ }) & {
1101
+ workspaceName?: string | string[];
1102
+ step?: OnboardingStep | OnboardingStep[];
1103
+ hsmHostingMode?: HsmHostingMode;
1104
+ sortBy: "workspaceName" | "step" | "createdAt" | "completedAt";
1105
+ }) => Promise<{
1106
+ page: number;
1107
+ next: number | null;
1108
+ prev: number | null;
1109
+ pageSize: number;
1110
+ total: number;
1111
+ results: ({
1112
+ claimedDevices: {
1113
+ id: string;
1114
+ onboardingId: string;
1115
+ pubKey: string;
1116
+ deviceUserId: string;
1117
+ deviceName: string;
1118
+ role: ClaimedRole;
1119
+ claimedAt: Date;
1120
+ }[];
1121
+ users: ({
1122
+ reviewByMasterAdmin: {
1123
+ id: string;
1124
+ reviewerId: string;
1125
+ challenge: import("@prisma/client/runtime/client").JsonValue;
1126
+ signature: string | null;
1127
+ } | null;
1128
+ reviewBySharedOwner: {
1129
+ id: string;
1130
+ reviewerId: string;
1131
+ seedChallenge: import("@prisma/client/runtime/client").JsonValue;
1132
+ seedFragment: import("@prisma/client/runtime/client").JsonValue;
1133
+ } | null;
1134
+ reviewOfExternalSigners: {
1135
+ id: string;
1136
+ reviewerId: string;
1137
+ challenge: import("@prisma/client/runtime/client").JsonValue;
1138
+ signature: string | null;
1139
+ } | null;
1140
+ } & {
1141
+ id: string;
1142
+ onboardingId: string;
1143
+ name: string;
1144
+ role: OnboardedUserRole;
1145
+ psdModel: PsdModel;
1146
+ pubKey: string;
1147
+ deviceUserId: string;
1148
+ u2fKeyHandle: string | null;
1149
+ u2fPubKey: string | null;
1150
+ registrationChallenge: import("@prisma/client/runtime/client").JsonValue;
1151
+ registrationResponse: import("@prisma/client/runtime/client").JsonValue;
1152
+ createdAt: Date;
1153
+ })[];
1154
+ wrappingKey: ({
1155
+ fragments: {
1156
+ id: string;
1157
+ wrappingKeyId: string;
1158
+ pubKey: string;
1159
+ ephemeralPubKey: string;
1160
+ ephemeralCertificate: import("@prisma/client/runtime/client").JsonValue;
1161
+ blob: string;
1162
+ }[];
1163
+ } & {
1164
+ id: string;
1165
+ onboardingId: string;
1166
+ ephemeralPubKey: string;
1167
+ ephemeralCertificate: import("@prisma/client/runtime/client").JsonValue;
1168
+ }) | null;
1169
+ } & {
1170
+ id: string;
1171
+ workspaceName: string;
1172
+ mode: RevaultMode;
1173
+ compartmentId: number;
1174
+ targetHsmName: string;
1175
+ hsmHostingMode: HsmHostingMode;
1176
+ step: OnboardingStep;
1177
+ isLocked: boolean;
1178
+ createdAt: Date;
1179
+ completedAt: Date | null;
1180
+ })[];
1181
+ }>;
1182
+ find: (id: string) => import("@/generated/prisma/models").Prisma__OnboardingClient<({
1183
+ claimedDevices: {
1184
+ id: string;
1185
+ onboardingId: string;
1186
+ pubKey: string;
1187
+ deviceUserId: string;
1188
+ deviceName: string;
1189
+ role: ClaimedRole;
1190
+ claimedAt: Date;
1191
+ }[];
1192
+ users: ({
1193
+ reviewByMasterAdmin: {
1194
+ id: string;
1195
+ reviewerId: string;
1196
+ challenge: import("@prisma/client/runtime/client").JsonValue;
1197
+ signature: string | null;
1198
+ } | null;
1199
+ reviewBySharedOwner: {
1200
+ id: string;
1201
+ reviewerId: string;
1202
+ seedChallenge: import("@prisma/client/runtime/client").JsonValue;
1203
+ seedFragment: import("@prisma/client/runtime/client").JsonValue;
1204
+ } | null;
1205
+ reviewOfExternalSigners: {
1206
+ id: string;
1207
+ reviewerId: string;
1208
+ challenge: import("@prisma/client/runtime/client").JsonValue;
1209
+ signature: string | null;
1210
+ } | null;
1211
+ } & {
1212
+ id: string;
1213
+ onboardingId: string;
1214
+ name: string;
1215
+ role: OnboardedUserRole;
1216
+ psdModel: PsdModel;
1217
+ pubKey: string;
1218
+ deviceUserId: string;
1219
+ u2fKeyHandle: string | null;
1220
+ u2fPubKey: string | null;
1221
+ registrationChallenge: import("@prisma/client/runtime/client").JsonValue;
1222
+ registrationResponse: import("@prisma/client/runtime/client").JsonValue;
1223
+ createdAt: Date;
1224
+ })[];
1225
+ wrappingKey: ({
1226
+ fragments: {
1227
+ id: string;
1228
+ wrappingKeyId: string;
1229
+ pubKey: string;
1230
+ ephemeralPubKey: string;
1231
+ ephemeralCertificate: import("@prisma/client/runtime/client").JsonValue;
1232
+ blob: string;
1233
+ }[];
1234
+ } & {
1235
+ id: string;
1236
+ onboardingId: string;
1237
+ ephemeralPubKey: string;
1238
+ ephemeralCertificate: import("@prisma/client/runtime/client").JsonValue;
1239
+ }) | null;
1240
+ } & {
1241
+ id: string;
1242
+ workspaceName: string;
1243
+ mode: RevaultMode;
1244
+ compartmentId: number;
1245
+ targetHsmName: string;
1246
+ hsmHostingMode: HsmHostingMode;
1247
+ step: OnboardingStep;
1248
+ isLocked: boolean;
1249
+ createdAt: Date;
1250
+ completedAt: Date | null;
1251
+ }) | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
1252
+ omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
1253
+ }>;
1254
+ create: (actor: BackofficeClaims, requiredPermission: "onboarding:create", input: Parameters<typeof startOnboarding>[1]) => Promise<{
1255
+ id: string;
1256
+ workspaceName: string;
1257
+ hsmHostingMode: "HOSTED" | "ON_PREM";
1258
+ 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";
1259
+ claimedDevices: {
1260
+ pubKey: string;
1261
+ deviceUserId: string;
1262
+ deviceName: string;
1263
+ role: "MASTER_ADMIN" | "SHARED_OWNER" | "WRAPPING_KEY_OWNER";
1264
+ }[];
1265
+ wrappingKey: {
1266
+ ephemeralPubKey: string;
1267
+ ephemeralCertificate: HsmCertificate;
1268
+ fragments: {
1269
+ pubKey: string;
1270
+ ephemeralPubKey: string;
1271
+ ephemeralCertificate: HsmCertificate;
1272
+ blob: string;
1273
+ }[];
1274
+ } | null;
1275
+ masterAdmins: {
1276
+ name: string;
1277
+ psdModel: "STAX";
1278
+ pubKey: string;
1279
+ registrationChallenge: {
1280
+ challenge: string;
1281
+ ephemeralPublicKey: string;
1282
+ ephemeralPublicKeyAttestation: HsmCertificate;
1283
+ handshake: string;
1284
+ handshakeAttestation: HsmCertificate;
1285
+ u2fRegisterData: string;
1286
+ ciphertext: string;
1287
+ requestId: string;
1288
+ };
1289
+ registrationResponse: {
1290
+ certificate: HsmCertificate;
1291
+ u2fRegister: string;
1292
+ u2fKeyHandle: string;
1293
+ registerData: string;
1294
+ validationKey: string;
1295
+ pairingPayload: string;
1296
+ } | null;
1297
+ role: "MASTER_ADMIN";
1298
+ review: {
1299
+ challenge: {
1300
+ challengeType: "PSD";
1301
+ wActions: string[];
1302
+ handshake: string;
1303
+ handshakeAttestation: HsmCertificate;
1304
+ partitionId: string;
1305
+ };
1306
+ signature: string | null;
1307
+ } | null;
1308
+ reviewOfExternalSigners: {
1309
+ challenge: {
1310
+ challengeType: "PSD";
1311
+ wActions: string[];
1312
+ handshake: string;
1313
+ handshakeAttestation: HsmCertificate;
1314
+ partitionId: string;
1315
+ };
1316
+ signature: string | null;
1317
+ } | null;
1318
+ }[];
1319
+ sharedOwners: {
1320
+ name: string;
1321
+ psdModel: "STAX";
1322
+ pubKey: string;
1323
+ registrationChallenge: {
1324
+ challenge: string;
1325
+ ephemeralPublicKey: string;
1326
+ ephemeralPublicKeyAttestation: HsmCertificate;
1327
+ handshake: string;
1328
+ handshakeAttestation: HsmCertificate;
1329
+ u2fRegisterData: string;
1330
+ ciphertext: string;
1331
+ requestId: string;
1332
+ };
1333
+ registrationResponse: {
1334
+ certificate: HsmCertificate;
1335
+ u2fRegister: string;
1336
+ u2fKeyHandle: string;
1337
+ registerData: string;
1338
+ validationKey: string;
1339
+ pairingPayload: string;
1340
+ } | null;
1341
+ role: "SHARED_OWNER";
1342
+ review: {
1343
+ seedChallenge: {
1344
+ challengeType: "PSD";
1345
+ wActions: string[];
1346
+ handshake: string;
1347
+ handshakeAttestation: HsmCertificate;
1348
+ partitionId: string;
1349
+ kkHandshake: string;
1350
+ kkHandshakeAttestation: HsmCertificate;
1351
+ ephemeralPublicKey: string;
1352
+ certificate: HsmCertificate;
1353
+ blob: string;
1354
+ };
1355
+ seedFragment: {
1356
+ approverBlob: string;
1357
+ challengeResponse: string;
1358
+ handshake: string;
1359
+ handshakeAttestation: HsmCertificate;
1360
+ } | null;
1361
+ } | null;
1362
+ }[];
1363
+ createdAt: Date;
1364
+ completedAt: Date | null;
1365
+ }>;
1366
+ };
1367
+ requests: {
1368
+ list: (filters: Omit<RequestListFilters, "visibility">) => Promise<{
1369
+ page: number;
1370
+ next: number | null;
1371
+ prev: number | null;
1372
+ pageSize: number;
1373
+ total: number;
1374
+ results: RequestView[];
1375
+ }>;
1376
+ find: (id: string) => Promise<RequestView | null>;
1377
+ restart: (actor: BackofficeClaims, requiredPermission: "request:restart", id: string) => Promise<void>;
1378
+ expire: (actor: BackofficeClaims, requiredPermission: "request:expire", id: string) => Promise<void>;
1379
+ };
1380
+ outgoingTransactions: {
1381
+ list: (input: ({
1382
+ page: number;
1383
+ pageSize: number;
1384
+ } & {
1385
+ sortOrder: SortOrder;
1386
+ }) & {
1387
+ workspaceName?: string | string[];
1388
+ accountId?: string;
1389
+ hash?: string;
1390
+ id?: string;
1391
+ currency?: string;
1392
+ sortBy: "createdAt" | "updatedAt";
1393
+ }) => Promise<{
1394
+ page: number;
1395
+ next: number | null;
1396
+ prev: number | null;
1397
+ pageSize: number;
1398
+ total: number;
1399
+ results: {
1400
+ id: string;
1401
+ workspaceName: string;
1402
+ accountId: string;
1403
+ intent: import("@prisma/client/runtime/client").JsonValue;
1404
+ note: import("@prisma/client/runtime/client").JsonValue;
1405
+ hash: string | null;
1406
+ replacementHash: string | null;
1407
+ status: OutgoingTransactionStatus;
1408
+ lesWalletTaskId: string;
1409
+ createdById: string;
1410
+ createdAt: Date;
1411
+ updatedAt: Date;
1412
+ }[];
1413
+ }>;
1414
+ find: (id: string) => import("@/generated/prisma/models").Prisma__OutgoingTransactionClient<({
1415
+ statusTransitions: {
1416
+ id: string;
1417
+ sequence: number;
1418
+ outgoingTransactionId: string;
1419
+ status: OutgoingTransactionStatus;
1420
+ recordedAt: Date;
1421
+ failureReasonCode: string | null;
1422
+ failureReason: string | null;
1423
+ }[];
1424
+ } & {
1425
+ id: string;
1426
+ workspaceName: string;
1427
+ accountId: string;
1428
+ intent: import("@prisma/client/runtime/client").JsonValue;
1429
+ note: import("@prisma/client/runtime/client").JsonValue;
1430
+ hash: string | null;
1431
+ replacementHash: string | null;
1432
+ status: OutgoingTransactionStatus;
1433
+ lesWalletTaskId: string;
1434
+ createdById: string;
1435
+ createdAt: Date;
1436
+ updatedAt: Date;
1437
+ }) | null, null, import("@prisma/client/runtime/client").DefaultArgs, {
1438
+ omit: import("@/generated/prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
1439
+ }>;
1440
+ };
1441
+ webhooks: {
1442
+ list: (input: ({
1443
+ page: number;
1444
+ pageSize: number;
1445
+ } & {
1446
+ sortOrder: SortOrder;
1447
+ }) & {
1448
+ workspaceName?: string | string[];
1449
+ status?: WebhookStatus$1;
1450
+ search?: string;
1451
+ statsWindowDays: number;
1452
+ }) => Promise<{
1453
+ page: {
1454
+ page: number;
1455
+ next: number | null;
1456
+ prev: number | null;
1457
+ pageSize: number;
1458
+ total: number;
1459
+ results: ({
1460
+ rules: {
1461
+ id: string;
1462
+ webhookId: string;
1463
+ actions: EventAction$1[];
1464
+ requestTypes: RequestType$1[];
1465
+ createdAt: Date;
1466
+ }[];
1467
+ scopeUsers: {
1468
+ id: string;
1469
+ workspaceName: string;
1470
+ name: string;
1471
+ authUserId: string | null;
1472
+ pubKey: string;
1473
+ deviceType: UserDeviceType;
1474
+ deviceUserId: string | null;
1475
+ hsmId: string | null;
1476
+ u2fKeyHandle: string | null;
1477
+ u2fPubKey: string | null;
1478
+ legacyViewAll: boolean;
1479
+ role: UserRole;
1480
+ status: ActivationStatus$1;
1481
+ isSuspended: boolean;
1482
+ gateType: GateUserType | null;
1483
+ gateId: number;
1484
+ syncId: string;
1485
+ createdAt: Date;
1486
+ updatedAt: Date;
1487
+ }[];
1488
+ } & {
1489
+ id: string;
1490
+ workspaceName: string;
1491
+ name: string;
1492
+ description: string | null;
1493
+ url: string;
1494
+ status: WebhookStatus$1;
1495
+ retryStrategy: WebhookRetryStrategy$1;
1496
+ maxRetries: number;
1497
+ initialIntervalMs: number;
1498
+ consecutiveFailures: number;
1499
+ brokenSince: Date | null;
1500
+ createdAt: Date;
1501
+ updatedAt: Date;
1502
+ })[];
1503
+ };
1504
+ stats: Map<string, WebhookDeliveryStats>;
1505
+ }>;
1506
+ };
1507
+ hsm: {
1508
+ compareWorkspace: (input: {
1509
+ workspaceName: string;
1510
+ comparator: HsmComparator;
1511
+ }) => Promise<HsmWorkspaceComparison>;
1512
+ };
1513
+ relationships: {
1514
+ dryRun: (input: {
1515
+ workspaceName: string;
1516
+ shapeLimit: number;
1517
+ }) => Promise<{
1518
+ workspaceName: string;
1519
+ dryRun: true;
1520
+ rawTupleCount: number;
1521
+ uniqueTupleCount: number;
1522
+ duplicateTupleCount: number;
1523
+ buildDurationMs: number;
1524
+ shapeCounts: RelationshipShapeCount[];
1525
+ }>;
1526
+ materialize: (actor: BackofficeClaims, requiredPermission: "workspace:edit", input: {
1527
+ workspaceName: string;
1528
+ confirm: string;
1529
+ }) => Promise<{
1530
+ rawTupleCount: number;
1531
+ uniqueTupleCount: number;
1532
+ currentTupleCount: number;
1533
+ buildDurationMs: number;
1534
+ writeDurationMs: number;
1535
+ totalDurationMs: number;
1536
+ workspaceName: string;
1537
+ }>;
1538
+ health: (input: {
1539
+ workspaceName: string;
1540
+ shapeLimit: number;
1541
+ }) => Promise<RelationshipHealth>;
1542
+ driftCheck: (input: {
1543
+ workspaceName: string;
1544
+ sampleLimit: number;
1545
+ }) => Promise<RelationshipDriftCheck>;
1546
+ };
1547
+ featureFlagPromotions: FeatureFlagPromotions;
1548
+ };
1549
+ interface RuntimeInternalCapabilities extends ReturnType<typeof createInternalCapabilities> {}
1550
+ /**
1551
+ * Request capability provider for the *internal* HTTP context: the full public provider plus the
1552
+ * administration bucket, exposed at `ctx.core.administration`. Its {@link forReadOnlyRequest}
1553
+ * rebinds the *entire* internal set (public + admin) onto the write-rejecting Prisma extension, so
1554
+ * a read-only (backoffice impersonation, ADR-0012) session cannot mutate through any capability.
1555
+ */
1556
+ interface RuntimeInternalApiCapabilityProvider extends RuntimeApiCapabilities {
1557
+ administration: RuntimeInternalCapabilities;
1558
+ forReadOnlyRequest: () => RuntimeInternalApiCapabilityProvider;
1559
+ }
1560
+ //#endregion
4
1561
  //#region src/core/workspaces/schemas.d.ts
5
1562
  declare const zWorkspaceName: z.ZodString;
6
1563
  //#endregion
@@ -27,7 +1584,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
27
1584
  u2fPubKey: string | null;
28
1585
  legacyViewAll: boolean;
29
1586
  role: UserRole;
30
- status: ActivationStatus;
1587
+ status: ActivationStatus$1;
31
1588
  isSuspended: boolean;
32
1589
  gateType: GateUserType | null;
33
1590
  gateId: number;
@@ -40,26 +1597,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
40
1597
  activityTracer: ActivityTracer;
41
1598
  core: RuntimeInternalApiCapabilityProvider;
42
1599
  };
43
- meta: {
44
- [x: string]: unknown;
45
- } & {
46
- openapi?: {
47
- enabled?: boolean;
48
- method: import("trpc-to-openapi").OpenApiMethod;
49
- path: `/${string}`;
50
- operationId?: string;
51
- summary?: string;
52
- description?: string;
53
- protect?: boolean;
54
- tags?: string[];
55
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
56
- deprecated?: boolean;
57
- requestHeaders?: import("zod").ZodObject;
58
- responseHeaders?: import("zod").ZodObject;
59
- successDescription?: string;
60
- errorResponses?: number[] | Record<number, string>;
61
- };
62
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
1600
+ meta: TrpcMeta;
63
1601
  errorShape: {
64
1602
  message: string;
65
1603
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -96,7 +1634,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
96
1634
  u2fPubKey: string | null;
97
1635
  legacyViewAll: boolean;
98
1636
  role: UserRole;
99
- status: ActivationStatus;
1637
+ status: ActivationStatus$1;
100
1638
  isSuspended: boolean;
101
1639
  gateType: GateUserType | null;
102
1640
  gateId: number;
@@ -109,26 +1647,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
109
1647
  activityTracer: ActivityTracer;
110
1648
  core: RuntimeInternalApiCapabilityProvider;
111
1649
  };
112
- meta: {
113
- [x: string]: unknown;
114
- } & {
115
- openapi?: {
116
- enabled?: boolean;
117
- method: import("trpc-to-openapi").OpenApiMethod;
118
- path: `/${string}`;
119
- operationId?: string;
120
- summary?: string;
121
- description?: string;
122
- protect?: boolean;
123
- tags?: string[];
124
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
125
- deprecated?: boolean;
126
- requestHeaders?: import("zod").ZodObject;
127
- responseHeaders?: import("zod").ZodObject;
128
- successDescription?: string;
129
- errorResponses?: number[] | Record<number, string>;
130
- };
131
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
1650
+ meta: TrpcMeta;
132
1651
  errorShape: {
133
1652
  message: string;
134
1653
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -148,28 +1667,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
148
1667
  output: {
149
1668
  sub: string;
150
1669
  groups: string[];
151
- permissions: ("backoffice:read" | "impersonation:list" | "impersonation:request" | "impersonation:revoke" | "onboarding:create" | "request:expire" | "request:restart" | "workspace:edit")[];
1670
+ permissions: ("backoffice:read" | "feature-flag:promote" | "impersonation:list" | "impersonation:request" | "impersonation:revoke" | "onboarding:create" | "request:expire" | "request:restart" | "workspace:edit")[];
152
1671
  };
153
- meta: {
154
- [x: string]: unknown;
155
- } & {
156
- openapi?: {
157
- enabled?: boolean;
158
- method: import("trpc-to-openapi").OpenApiMethod;
159
- path: `/${string}`;
160
- operationId?: string;
161
- summary?: string;
162
- description?: string;
163
- protect?: boolean;
164
- tags?: string[];
165
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
166
- deprecated?: boolean;
167
- requestHeaders?: import("zod").ZodObject;
168
- responseHeaders?: import("zod").ZodObject;
169
- successDescription?: string;
170
- errorResponses?: number[] | Record<number, string>;
171
- };
172
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
1672
+ meta: TrpcMeta;
173
1673
  }>;
174
1674
  workspaces: import("@trpc/server").TRPCBuiltRouter<{
175
1675
  ctx: {
@@ -193,7 +1693,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
193
1693
  u2fPubKey: string | null;
194
1694
  legacyViewAll: boolean;
195
1695
  role: UserRole;
196
- status: ActivationStatus;
1696
+ status: ActivationStatus$1;
197
1697
  isSuspended: boolean;
198
1698
  gateType: GateUserType | null;
199
1699
  gateId: number;
@@ -206,26 +1706,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
206
1706
  activityTracer: ActivityTracer;
207
1707
  core: RuntimeInternalApiCapabilityProvider;
208
1708
  };
209
- meta: {
210
- [x: string]: unknown;
211
- } & {
212
- openapi?: {
213
- enabled?: boolean;
214
- method: import("trpc-to-openapi").OpenApiMethod;
215
- path: `/${string}`;
216
- operationId?: string;
217
- summary?: string;
218
- description?: string;
219
- protect?: boolean;
220
- tags?: string[];
221
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
222
- deprecated?: boolean;
223
- requestHeaders?: import("zod").ZodObject;
224
- responseHeaders?: import("zod").ZodObject;
225
- successDescription?: string;
226
- errorResponses?: number[] | Record<number, string>;
227
- };
228
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
1709
+ meta: TrpcMeta;
229
1710
  errorShape: {
230
1711
  message: string;
231
1712
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -266,31 +1747,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
266
1747
  createdAt: Date;
267
1748
  updatedAt: Date;
268
1749
  } & {
269
- status: ActivationStatus;
1750
+ status: ActivationStatus$1;
270
1751
  maintenanceMode: MaintenanceMode;
271
- oidcConfig: import("zod").output<typeof zOidcConfig> | null;
1752
+ oidcConfig: import("zod").infer<typeof zOidcConfig> | null;
272
1753
  })[];
273
1754
  };
274
- meta: {
275
- [x: string]: unknown;
276
- } & {
277
- openapi?: {
278
- enabled?: boolean;
279
- method: import("trpc-to-openapi").OpenApiMethod;
280
- path: `/${string}`;
281
- operationId?: string;
282
- summary?: string;
283
- description?: string;
284
- protect?: boolean;
285
- tags?: string[];
286
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
287
- deprecated?: boolean;
288
- requestHeaders?: import("zod").ZodObject;
289
- responseHeaders?: import("zod").ZodObject;
290
- successDescription?: string;
291
- errorResponses?: number[] | Record<number, string>;
292
- };
293
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
1755
+ meta: TrpcMeta;
294
1756
  }>;
295
1757
  findById: import("@trpc/server").TRPCQueryProcedure<{
296
1758
  input: {
@@ -314,26 +1776,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
314
1776
  realm: string;
315
1777
  } | null;
316
1778
  };
317
- meta: {
318
- [x: string]: unknown;
319
- } & {
320
- openapi?: {
321
- enabled?: boolean;
322
- method: import("trpc-to-openapi").OpenApiMethod;
323
- path: `/${string}`;
324
- operationId?: string;
325
- summary?: string;
326
- description?: string;
327
- protect?: boolean;
328
- tags?: string[];
329
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
330
- deprecated?: boolean;
331
- requestHeaders?: import("zod").ZodObject;
332
- responseHeaders?: import("zod").ZodObject;
333
- successDescription?: string;
334
- errorResponses?: number[] | Record<number, string>;
335
- };
336
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
1779
+ meta: TrpcMeta;
337
1780
  }>;
338
1781
  setMaintenanceMode: import("@trpc/server").TRPCMutationProcedure<{
339
1782
  input: {
@@ -346,26 +1789,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
346
1789
  totalCount: number;
347
1790
  changedCount: number;
348
1791
  };
349
- meta: {
350
- [x: string]: unknown;
351
- } & {
352
- openapi?: {
353
- enabled?: boolean;
354
- method: import("trpc-to-openapi").OpenApiMethod;
355
- path: `/${string}`;
356
- operationId?: string;
357
- summary?: string;
358
- description?: string;
359
- protect?: boolean;
360
- tags?: string[];
361
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
362
- deprecated?: boolean;
363
- requestHeaders?: import("zod").ZodObject;
364
- responseHeaders?: import("zod").ZodObject;
365
- successDescription?: string;
366
- errorResponses?: number[] | Record<number, string>;
367
- };
368
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
1792
+ meta: TrpcMeta;
369
1793
  }>;
370
1794
  edit: import("@trpc/server").TRPCMutationProcedure<{
371
1795
  input: {
@@ -397,26 +1821,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
397
1821
  realm: string;
398
1822
  } | null;
399
1823
  };
400
- meta: {
401
- [x: string]: unknown;
402
- } & {
403
- openapi?: {
404
- enabled?: boolean;
405
- method: import("trpc-to-openapi").OpenApiMethod;
406
- path: `/${string}`;
407
- operationId?: string;
408
- summary?: string;
409
- description?: string;
410
- protect?: boolean;
411
- tags?: string[];
412
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
413
- deprecated?: boolean;
414
- requestHeaders?: import("zod").ZodObject;
415
- responseHeaders?: import("zod").ZodObject;
416
- successDescription?: string;
417
- errorResponses?: number[] | Record<number, string>;
418
- };
419
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
1824
+ meta: TrpcMeta;
420
1825
  }>;
421
1826
  }>>;
422
1827
  onboardings: import("@trpc/server").TRPCBuiltRouter<{
@@ -441,7 +1846,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
441
1846
  u2fPubKey: string | null;
442
1847
  legacyViewAll: boolean;
443
1848
  role: UserRole;
444
- status: ActivationStatus;
1849
+ status: ActivationStatus$1;
445
1850
  isSuspended: boolean;
446
1851
  gateType: GateUserType | null;
447
1852
  gateId: number;
@@ -454,26 +1859,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
454
1859
  activityTracer: ActivityTracer;
455
1860
  core: RuntimeInternalApiCapabilityProvider;
456
1861
  };
457
- meta: {
458
- [x: string]: unknown;
459
- } & {
460
- openapi?: {
461
- enabled?: boolean;
462
- method: import("trpc-to-openapi").OpenApiMethod;
463
- path: `/${string}`;
464
- operationId?: string;
465
- summary?: string;
466
- description?: string;
467
- protect?: boolean;
468
- tags?: string[];
469
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
470
- deprecated?: boolean;
471
- requestHeaders?: import("zod").ZodObject;
472
- responseHeaders?: import("zod").ZodObject;
473
- successDescription?: string;
474
- errorResponses?: number[] | Record<number, string>;
475
- };
476
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
1862
+ meta: TrpcMeta;
477
1863
  errorShape: {
478
1864
  message: string;
479
1865
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -621,26 +2007,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
621
2007
  targetHsmName: string;
622
2008
  })[];
623
2009
  };
624
- meta: {
625
- [x: string]: unknown;
626
- } & {
627
- openapi?: {
628
- enabled?: boolean;
629
- method: import("trpc-to-openapi").OpenApiMethod;
630
- path: `/${string}`;
631
- operationId?: string;
632
- summary?: string;
633
- description?: string;
634
- protect?: boolean;
635
- tags?: string[];
636
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
637
- deprecated?: boolean;
638
- requestHeaders?: import("zod").ZodObject;
639
- responseHeaders?: import("zod").ZodObject;
640
- successDescription?: string;
641
- errorResponses?: number[] | Record<number, string>;
642
- };
643
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2010
+ meta: TrpcMeta;
644
2011
  }>;
645
2012
  findById: import("@trpc/server").TRPCQueryProcedure<{
646
2013
  input: {
@@ -762,26 +2129,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
762
2129
  compartmentId: number;
763
2130
  targetHsmName: string;
764
2131
  };
765
- meta: {
766
- [x: string]: unknown;
767
- } & {
768
- openapi?: {
769
- enabled?: boolean;
770
- method: import("trpc-to-openapi").OpenApiMethod;
771
- path: `/${string}`;
772
- operationId?: string;
773
- summary?: string;
774
- description?: string;
775
- protect?: boolean;
776
- tags?: string[];
777
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
778
- deprecated?: boolean;
779
- requestHeaders?: import("zod").ZodObject;
780
- responseHeaders?: import("zod").ZodObject;
781
- successDescription?: string;
782
- errorResponses?: number[] | Record<number, string>;
783
- };
784
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2132
+ meta: TrpcMeta;
785
2133
  }>;
786
2134
  create: import("@trpc/server").TRPCMutationProcedure<{
787
2135
  input: {
@@ -903,26 +2251,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
903
2251
  createdAt: Date;
904
2252
  completedAt: Date | null;
905
2253
  };
906
- meta: {
907
- [x: string]: unknown;
908
- } & {
909
- openapi?: {
910
- enabled?: boolean;
911
- method: import("trpc-to-openapi").OpenApiMethod;
912
- path: `/${string}`;
913
- operationId?: string;
914
- summary?: string;
915
- description?: string;
916
- protect?: boolean;
917
- tags?: string[];
918
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
919
- deprecated?: boolean;
920
- requestHeaders?: import("zod").ZodObject;
921
- responseHeaders?: import("zod").ZodObject;
922
- successDescription?: string;
923
- errorResponses?: number[] | Record<number, string>;
924
- };
925
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2254
+ meta: TrpcMeta;
926
2255
  }>;
927
2256
  }>>;
928
2257
  impersonations: import("@trpc/server").TRPCBuiltRouter<{
@@ -947,7 +2276,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
947
2276
  u2fPubKey: string | null;
948
2277
  legacyViewAll: boolean;
949
2278
  role: UserRole;
950
- status: ActivationStatus;
2279
+ status: ActivationStatus$1;
951
2280
  isSuspended: boolean;
952
2281
  gateType: GateUserType | null;
953
2282
  gateId: number;
@@ -960,26 +2289,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
960
2289
  activityTracer: ActivityTracer;
961
2290
  core: RuntimeInternalApiCapabilityProvider;
962
2291
  };
963
- meta: {
964
- [x: string]: unknown;
965
- } & {
966
- openapi?: {
967
- enabled?: boolean;
968
- method: import("trpc-to-openapi").OpenApiMethod;
969
- path: `/${string}`;
970
- operationId?: string;
971
- summary?: string;
972
- description?: string;
973
- protect?: boolean;
974
- tags?: string[];
975
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
976
- deprecated?: boolean;
977
- requestHeaders?: import("zod").ZodObject;
978
- responseHeaders?: import("zod").ZodObject;
979
- successDescription?: string;
980
- errorResponses?: number[] | Record<number, string>;
981
- };
982
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2292
+ meta: TrpcMeta;
983
2293
  errorShape: {
984
2294
  message: string;
985
2295
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -1003,52 +2313,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1003
2313
  code: string;
1004
2314
  impersonationId: string;
1005
2315
  };
1006
- meta: {
1007
- [x: string]: unknown;
1008
- } & {
1009
- openapi?: {
1010
- enabled?: boolean;
1011
- method: import("trpc-to-openapi").OpenApiMethod;
1012
- path: `/${string}`;
1013
- operationId?: string;
1014
- summary?: string;
1015
- description?: string;
1016
- protect?: boolean;
1017
- tags?: string[];
1018
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1019
- deprecated?: boolean;
1020
- requestHeaders?: import("zod").ZodObject;
1021
- responseHeaders?: import("zod").ZodObject;
1022
- successDescription?: string;
1023
- errorResponses?: number[] | Record<number, string>;
1024
- };
1025
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2316
+ meta: TrpcMeta;
1026
2317
  }>;
1027
2318
  revoke: import("@trpc/server").TRPCMutationProcedure<{
1028
2319
  input: {
1029
2320
  impersonationId: string;
1030
2321
  };
1031
2322
  output: void;
1032
- meta: {
1033
- [x: string]: unknown;
1034
- } & {
1035
- openapi?: {
1036
- enabled?: boolean;
1037
- method: import("trpc-to-openapi").OpenApiMethod;
1038
- path: `/${string}`;
1039
- operationId?: string;
1040
- summary?: string;
1041
- description?: string;
1042
- protect?: boolean;
1043
- tags?: string[];
1044
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1045
- deprecated?: boolean;
1046
- requestHeaders?: import("zod").ZodObject;
1047
- responseHeaders?: import("zod").ZodObject;
1048
- successDescription?: string;
1049
- errorResponses?: number[] | Record<number, string>;
1050
- };
1051
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2323
+ meta: TrpcMeta;
1052
2324
  }>;
1053
2325
  listActive: import("@trpc/server").TRPCQueryProcedure<{
1054
2326
  input: {
@@ -1064,26 +2336,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1064
2336
  startedAt: Date;
1065
2337
  expiresAt: Date;
1066
2338
  }[];
1067
- meta: {
1068
- [x: string]: unknown;
1069
- } & {
1070
- openapi?: {
1071
- enabled?: boolean;
1072
- method: import("trpc-to-openapi").OpenApiMethod;
1073
- path: `/${string}`;
1074
- operationId?: string;
1075
- summary?: string;
1076
- description?: string;
1077
- protect?: boolean;
1078
- tags?: string[];
1079
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1080
- deprecated?: boolean;
1081
- requestHeaders?: import("zod").ZodObject;
1082
- responseHeaders?: import("zod").ZodObject;
1083
- successDescription?: string;
1084
- errorResponses?: number[] | Record<number, string>;
1085
- };
1086
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2339
+ meta: TrpcMeta;
1087
2340
  }>;
1088
2341
  }>>;
1089
2342
  users: import("@trpc/server").TRPCBuiltRouter<{
@@ -1108,7 +2361,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1108
2361
  u2fPubKey: string | null;
1109
2362
  legacyViewAll: boolean;
1110
2363
  role: UserRole;
1111
- status: ActivationStatus;
2364
+ status: ActivationStatus$1;
1112
2365
  isSuspended: boolean;
1113
2366
  gateType: GateUserType | null;
1114
2367
  gateId: number;
@@ -1121,26 +2374,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1121
2374
  activityTracer: ActivityTracer;
1122
2375
  core: RuntimeInternalApiCapabilityProvider;
1123
2376
  };
1124
- meta: {
1125
- [x: string]: unknown;
1126
- } & {
1127
- openapi?: {
1128
- enabled?: boolean;
1129
- method: import("trpc-to-openapi").OpenApiMethod;
1130
- path: `/${string}`;
1131
- operationId?: string;
1132
- summary?: string;
1133
- description?: string;
1134
- protect?: boolean;
1135
- tags?: string[];
1136
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1137
- deprecated?: boolean;
1138
- requestHeaders?: import("zod").ZodObject;
1139
- responseHeaders?: import("zod").ZodObject;
1140
- successDescription?: string;
1141
- errorResponses?: number[] | Record<number, string>;
1142
- };
1143
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2377
+ meta: TrpcMeta;
1144
2378
  errorShape: {
1145
2379
  message: string;
1146
2380
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -1191,26 +2425,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1191
2425
  updatedAt: Date;
1192
2426
  }[];
1193
2427
  };
1194
- meta: {
1195
- [x: string]: unknown;
1196
- } & {
1197
- openapi?: {
1198
- enabled?: boolean;
1199
- method: import("trpc-to-openapi").OpenApiMethod;
1200
- path: `/${string}`;
1201
- operationId?: string;
1202
- summary?: string;
1203
- description?: string;
1204
- protect?: boolean;
1205
- tags?: string[];
1206
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1207
- deprecated?: boolean;
1208
- requestHeaders?: import("zod").ZodObject;
1209
- responseHeaders?: import("zod").ZodObject;
1210
- successDescription?: string;
1211
- errorResponses?: number[] | Record<number, string>;
1212
- };
1213
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2428
+ meta: TrpcMeta;
1214
2429
  }>;
1215
2430
  findById: import("@trpc/server").TRPCQueryProcedure<{
1216
2431
  input: {
@@ -1231,26 +2446,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1231
2446
  createdAt: Date;
1232
2447
  updatedAt: Date;
1233
2448
  };
1234
- meta: {
1235
- [x: string]: unknown;
1236
- } & {
1237
- openapi?: {
1238
- enabled?: boolean;
1239
- method: import("trpc-to-openapi").OpenApiMethod;
1240
- path: `/${string}`;
1241
- operationId?: string;
1242
- summary?: string;
1243
- description?: string;
1244
- protect?: boolean;
1245
- tags?: string[];
1246
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1247
- deprecated?: boolean;
1248
- requestHeaders?: import("zod").ZodObject;
1249
- responseHeaders?: import("zod").ZodObject;
1250
- successDescription?: string;
1251
- errorResponses?: number[] | Record<number, string>;
1252
- };
1253
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2449
+ meta: TrpcMeta;
1254
2450
  }>;
1255
2451
  }>>;
1256
2452
  userRegistrations: import("@trpc/server").TRPCBuiltRouter<{
@@ -1275,7 +2471,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1275
2471
  u2fPubKey: string | null;
1276
2472
  legacyViewAll: boolean;
1277
2473
  role: UserRole;
1278
- status: ActivationStatus;
2474
+ status: ActivationStatus$1;
1279
2475
  isSuspended: boolean;
1280
2476
  gateType: GateUserType | null;
1281
2477
  gateId: number;
@@ -1288,26 +2484,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1288
2484
  activityTracer: ActivityTracer;
1289
2485
  core: RuntimeInternalApiCapabilityProvider;
1290
2486
  };
1291
- meta: {
1292
- [x: string]: unknown;
1293
- } & {
1294
- openapi?: {
1295
- enabled?: boolean;
1296
- method: import("trpc-to-openapi").OpenApiMethod;
1297
- path: `/${string}`;
1298
- operationId?: string;
1299
- summary?: string;
1300
- description?: string;
1301
- protect?: boolean;
1302
- tags?: string[];
1303
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1304
- deprecated?: boolean;
1305
- requestHeaders?: import("zod").ZodObject;
1306
- responseHeaders?: import("zod").ZodObject;
1307
- successDescription?: string;
1308
- errorResponses?: number[] | Record<number, string>;
1309
- };
1310
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2487
+ meta: TrpcMeta;
1311
2488
  errorShape: {
1312
2489
  message: string;
1313
2490
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -1348,26 +2525,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1348
2525
  state: "COMPLETED" | "CONSUMED" | "INITIAL" | "PENDING";
1349
2526
  }[];
1350
2527
  };
1351
- meta: {
1352
- [x: string]: unknown;
1353
- } & {
1354
- openapi?: {
1355
- enabled?: boolean;
1356
- method: import("trpc-to-openapi").OpenApiMethod;
1357
- path: `/${string}`;
1358
- operationId?: string;
1359
- summary?: string;
1360
- description?: string;
1361
- protect?: boolean;
1362
- tags?: string[];
1363
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1364
- deprecated?: boolean;
1365
- requestHeaders?: import("zod").ZodObject;
1366
- responseHeaders?: import("zod").ZodObject;
1367
- successDescription?: string;
1368
- errorResponses?: number[] | Record<number, string>;
1369
- };
1370
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2528
+ meta: TrpcMeta;
1371
2529
  }>;
1372
2530
  findById: import("@trpc/server").TRPCQueryProcedure<{
1373
2531
  input: {
@@ -1382,26 +2540,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1382
2540
  workspaceName: string;
1383
2541
  state: "COMPLETED" | "CONSUMED" | "INITIAL" | "PENDING";
1384
2542
  };
1385
- meta: {
1386
- [x: string]: unknown;
1387
- } & {
1388
- openapi?: {
1389
- enabled?: boolean;
1390
- method: import("trpc-to-openapi").OpenApiMethod;
1391
- path: `/${string}`;
1392
- operationId?: string;
1393
- summary?: string;
1394
- description?: string;
1395
- protect?: boolean;
1396
- tags?: string[];
1397
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1398
- deprecated?: boolean;
1399
- requestHeaders?: import("zod").ZodObject;
1400
- responseHeaders?: import("zod").ZodObject;
1401
- successDescription?: string;
1402
- errorResponses?: number[] | Record<number, string>;
1403
- };
1404
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2543
+ meta: TrpcMeta;
1405
2544
  }>;
1406
2545
  }>>;
1407
2546
  accounts: import("@trpc/server").TRPCBuiltRouter<{
@@ -1426,7 +2565,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1426
2565
  u2fPubKey: string | null;
1427
2566
  legacyViewAll: boolean;
1428
2567
  role: UserRole;
1429
- status: ActivationStatus;
2568
+ status: ActivationStatus$1;
1430
2569
  isSuspended: boolean;
1431
2570
  gateType: GateUserType | null;
1432
2571
  gateId: number;
@@ -1439,26 +2578,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1439
2578
  activityTracer: ActivityTracer;
1440
2579
  core: RuntimeInternalApiCapabilityProvider;
1441
2580
  };
1442
- meta: {
1443
- [x: string]: unknown;
1444
- } & {
1445
- openapi?: {
1446
- enabled?: boolean;
1447
- method: import("trpc-to-openapi").OpenApiMethod;
1448
- path: `/${string}`;
1449
- operationId?: string;
1450
- summary?: string;
1451
- description?: string;
1452
- protect?: boolean;
1453
- tags?: string[];
1454
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1455
- deprecated?: boolean;
1456
- requestHeaders?: import("zod").ZodObject;
1457
- responseHeaders?: import("zod").ZodObject;
1458
- successDescription?: string;
1459
- errorResponses?: number[] | Record<number, string>;
1460
- };
1461
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2581
+ meta: TrpcMeta;
1462
2582
  errorShape: {
1463
2583
  message: string;
1464
2584
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -1480,32 +2600,14 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1480
2600
  name: string;
1481
2601
  ticker?: string | undefined;
1482
2602
  }[];
1483
- meta: {
1484
- [x: string]: unknown;
1485
- } & {
1486
- openapi?: {
1487
- enabled?: boolean;
1488
- method: import("trpc-to-openapi").OpenApiMethod;
1489
- path: `/${string}`;
1490
- operationId?: string;
1491
- summary?: string;
1492
- description?: string;
1493
- protect?: boolean;
1494
- tags?: string[];
1495
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1496
- deprecated?: boolean;
1497
- requestHeaders?: import("zod").ZodObject;
1498
- responseHeaders?: import("zod").ZodObject;
1499
- successDescription?: string;
1500
- errorResponses?: number[] | Record<number, string>;
1501
- };
1502
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2603
+ meta: TrpcMeta;
1503
2604
  }>;
1504
2605
  list: import("@trpc/server").TRPCQueryProcedure<{
1505
2606
  input: {
1506
2607
  page?: number | undefined;
1507
2608
  pageSize?: number | undefined;
1508
2609
  workspaceName?: string | string[] | undefined;
2610
+ workspaceNames?: string[] | undefined;
1509
2611
  status?: "ACTIVE" | "INACTIVE" | undefined;
1510
2612
  id?: string | undefined;
1511
2613
  name?: string | undefined;
@@ -1516,6 +2618,9 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1516
2618
  index?: number | undefined;
1517
2619
  contractAddress?: string | null | undefined;
1518
2620
  support?: "legacy" | "standalone" | undefined;
2621
+ lesWalletRegistrable?: boolean | undefined;
2622
+ addressBackfillable?: boolean | undefined;
2623
+ gateSynced?: boolean | undefined;
1519
2624
  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;
1520
2625
  policyIds?: string[] | undefined;
1521
2626
  entityIds?: string[] | undefined;
@@ -1601,31 +2706,12 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1601
2706
  }[];
1602
2707
  };
1603
2708
  } & {
1604
- workspaceName: import("zod").output<typeof zWorkspaceName>;
2709
+ workspaceName: import("zod").infer<typeof zWorkspaceName>;
1605
2710
  lesWalletId: string | null;
1606
2711
  hsmId: string;
1607
2712
  })[];
1608
2713
  };
1609
- meta: {
1610
- [x: string]: unknown;
1611
- } & {
1612
- openapi?: {
1613
- enabled?: boolean;
1614
- method: import("trpc-to-openapi").OpenApiMethod;
1615
- path: `/${string}`;
1616
- operationId?: string;
1617
- summary?: string;
1618
- description?: string;
1619
- protect?: boolean;
1620
- tags?: string[];
1621
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1622
- deprecated?: boolean;
1623
- requestHeaders?: import("zod").ZodObject;
1624
- responseHeaders?: import("zod").ZodObject;
1625
- successDescription?: string;
1626
- errorResponses?: number[] | Record<number, string>;
1627
- };
1628
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2714
+ meta: TrpcMeta;
1629
2715
  }>;
1630
2716
  findById: import("@trpc/server").TRPCQueryProcedure<{
1631
2717
  input: {
@@ -1707,26 +2793,32 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1707
2793
  lesWalletId: string | null;
1708
2794
  hsmId: string;
1709
2795
  };
1710
- meta: {
1711
- [x: string]: unknown;
1712
- } & {
1713
- openapi?: {
1714
- enabled?: boolean;
1715
- method: import("trpc-to-openapi").OpenApiMethod;
1716
- path: `/${string}`;
1717
- operationId?: string;
1718
- summary?: string;
1719
- description?: string;
1720
- protect?: boolean;
1721
- tags?: string[];
1722
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1723
- deprecated?: boolean;
1724
- requestHeaders?: import("zod").ZodObject;
1725
- responseHeaders?: import("zod").ZodObject;
1726
- successDescription?: string;
1727
- errorResponses?: number[] | Record<number, string>;
1728
- };
1729
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2796
+ meta: TrpcMeta;
2797
+ }>;
2798
+ lesWalletRegistrableSummary: import("@trpc/server").TRPCQueryProcedure<{
2799
+ input: {
2800
+ workspaceNames?: string[] | undefined;
2801
+ currencies?: string[] | undefined;
2802
+ target?: "ADDRESS" | "LES_WALLET_ID" | undefined;
2803
+ };
2804
+ output: {
2805
+ total: number;
2806
+ byCurrency: {
2807
+ currency: string;
2808
+ count: number;
2809
+ }[];
2810
+ };
2811
+ meta: TrpcMeta;
2812
+ }>;
2813
+ registerOnLesWallet: import("@trpc/server").TRPCMutationProcedure<{
2814
+ input: {
2815
+ workspaceNames?: string[] | undefined;
2816
+ currencies?: string[] | undefined;
2817
+ target?: "ADDRESS" | "LES_WALLET_ID" | undefined;
2818
+ limit: number;
2819
+ };
2820
+ output: LesWalletRegistrationReport;
2821
+ meta: TrpcMeta;
1730
2822
  }>;
1731
2823
  }>>;
1732
2824
  groups: import("@trpc/server").TRPCBuiltRouter<{
@@ -1751,7 +2843,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1751
2843
  u2fPubKey: string | null;
1752
2844
  legacyViewAll: boolean;
1753
2845
  role: UserRole;
1754
- status: ActivationStatus;
2846
+ status: ActivationStatus$1;
1755
2847
  isSuspended: boolean;
1756
2848
  gateType: GateUserType | null;
1757
2849
  gateId: number;
@@ -1764,26 +2856,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1764
2856
  activityTracer: ActivityTracer;
1765
2857
  core: RuntimeInternalApiCapabilityProvider;
1766
2858
  };
1767
- meta: {
1768
- [x: string]: unknown;
1769
- } & {
1770
- openapi?: {
1771
- enabled?: boolean;
1772
- method: import("trpc-to-openapi").OpenApiMethod;
1773
- path: `/${string}`;
1774
- operationId?: string;
1775
- summary?: string;
1776
- description?: string;
1777
- protect?: boolean;
1778
- tags?: string[];
1779
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1780
- deprecated?: boolean;
1781
- requestHeaders?: import("zod").ZodObject;
1782
- responseHeaders?: import("zod").ZodObject;
1783
- successDescription?: string;
1784
- errorResponses?: number[] | Record<number, string>;
1785
- };
1786
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2859
+ meta: TrpcMeta;
1787
2860
  errorShape: {
1788
2861
  message: string;
1789
2862
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -1839,30 +2912,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1839
2912
  createdAt: Date;
1840
2913
  updatedAt: Date;
1841
2914
  } & {
1842
- workspaceName: import("zod").output<typeof zWorkspaceName>;
2915
+ workspaceName: import("zod").infer<typeof zWorkspaceName>;
1843
2916
  hsmId: string;
1844
2917
  })[];
1845
2918
  };
1846
- meta: {
1847
- [x: string]: unknown;
1848
- } & {
1849
- openapi?: {
1850
- enabled?: boolean;
1851
- method: import("trpc-to-openapi").OpenApiMethod;
1852
- path: `/${string}`;
1853
- operationId?: string;
1854
- summary?: string;
1855
- description?: string;
1856
- protect?: boolean;
1857
- tags?: string[];
1858
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1859
- deprecated?: boolean;
1860
- requestHeaders?: import("zod").ZodObject;
1861
- responseHeaders?: import("zod").ZodObject;
1862
- successDescription?: string;
1863
- errorResponses?: number[] | Record<number, string>;
1864
- };
1865
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2919
+ meta: TrpcMeta;
1866
2920
  }>;
1867
2921
  findById: import("@trpc/server").TRPCQueryProcedure<{
1868
2922
  input: {
@@ -1895,26 +2949,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1895
2949
  workspaceName: string;
1896
2950
  hsmId: string;
1897
2951
  };
1898
- meta: {
1899
- [x: string]: unknown;
1900
- } & {
1901
- openapi?: {
1902
- enabled?: boolean;
1903
- method: import("trpc-to-openapi").OpenApiMethod;
1904
- path: `/${string}`;
1905
- operationId?: string;
1906
- summary?: string;
1907
- description?: string;
1908
- protect?: boolean;
1909
- tags?: string[];
1910
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1911
- deprecated?: boolean;
1912
- requestHeaders?: import("zod").ZodObject;
1913
- responseHeaders?: import("zod").ZodObject;
1914
- successDescription?: string;
1915
- errorResponses?: number[] | Record<number, string>;
1916
- };
1917
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2952
+ meta: TrpcMeta;
1918
2953
  }>;
1919
2954
  }>>;
1920
2955
  whitelists: import("@trpc/server").TRPCBuiltRouter<{
@@ -1939,7 +2974,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1939
2974
  u2fPubKey: string | null;
1940
2975
  legacyViewAll: boolean;
1941
2976
  role: UserRole;
1942
- status: ActivationStatus;
2977
+ status: ActivationStatus$1;
1943
2978
  isSuspended: boolean;
1944
2979
  gateType: GateUserType | null;
1945
2980
  gateId: number;
@@ -1952,26 +2987,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
1952
2987
  activityTracer: ActivityTracer;
1953
2988
  core: RuntimeInternalApiCapabilityProvider;
1954
2989
  };
1955
- meta: {
1956
- [x: string]: unknown;
1957
- } & {
1958
- openapi?: {
1959
- enabled?: boolean;
1960
- method: import("trpc-to-openapi").OpenApiMethod;
1961
- path: `/${string}`;
1962
- operationId?: string;
1963
- summary?: string;
1964
- description?: string;
1965
- protect?: boolean;
1966
- tags?: string[];
1967
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
1968
- deprecated?: boolean;
1969
- requestHeaders?: import("zod").ZodObject;
1970
- responseHeaders?: import("zod").ZodObject;
1971
- successDescription?: string;
1972
- errorResponses?: number[] | Record<number, string>;
1973
- };
1974
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
2990
+ meta: TrpcMeta;
1975
2991
  errorShape: {
1976
2992
  message: string;
1977
2993
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -2022,30 +3038,11 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2022
3038
  updatedAt: Date;
2023
3039
  description: string | null;
2024
3040
  } & {
2025
- workspaceName: import("zod").output<typeof zWorkspaceName>;
3041
+ workspaceName: import("zod").infer<typeof zWorkspaceName>;
2026
3042
  hsmId: string;
2027
3043
  })[];
2028
3044
  };
2029
- meta: {
2030
- [x: string]: unknown;
2031
- } & {
2032
- openapi?: {
2033
- enabled?: boolean;
2034
- method: import("trpc-to-openapi").OpenApiMethod;
2035
- path: `/${string}`;
2036
- operationId?: string;
2037
- summary?: string;
2038
- description?: string;
2039
- protect?: boolean;
2040
- tags?: string[];
2041
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2042
- deprecated?: boolean;
2043
- requestHeaders?: import("zod").ZodObject;
2044
- responseHeaders?: import("zod").ZodObject;
2045
- successDescription?: string;
2046
- errorResponses?: number[] | Record<number, string>;
2047
- };
2048
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3045
+ meta: TrpcMeta;
2049
3046
  }>;
2050
3047
  findById: import("@trpc/server").TRPCQueryProcedure<{
2051
3048
  input: {
@@ -2071,26 +3068,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2071
3068
  workspaceName: string;
2072
3069
  hsmId: string;
2073
3070
  };
2074
- meta: {
2075
- [x: string]: unknown;
2076
- } & {
2077
- openapi?: {
2078
- enabled?: boolean;
2079
- method: import("trpc-to-openapi").OpenApiMethod;
2080
- path: `/${string}`;
2081
- operationId?: string;
2082
- summary?: string;
2083
- description?: string;
2084
- protect?: boolean;
2085
- tags?: string[];
2086
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2087
- deprecated?: boolean;
2088
- requestHeaders?: import("zod").ZodObject;
2089
- responseHeaders?: import("zod").ZodObject;
2090
- successDescription?: string;
2091
- errorResponses?: number[] | Record<number, string>;
2092
- };
2093
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3071
+ meta: TrpcMeta;
2094
3072
  }>;
2095
3073
  }>>;
2096
3074
  webhooks: import("@trpc/server").TRPCBuiltRouter<{
@@ -2115,7 +3093,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2115
3093
  u2fPubKey: string | null;
2116
3094
  legacyViewAll: boolean;
2117
3095
  role: UserRole;
2118
- status: ActivationStatus;
3096
+ status: ActivationStatus$1;
2119
3097
  isSuspended: boolean;
2120
3098
  gateType: GateUserType | null;
2121
3099
  gateId: number;
@@ -2128,26 +3106,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2128
3106
  activityTracer: ActivityTracer;
2129
3107
  core: RuntimeInternalApiCapabilityProvider;
2130
3108
  };
2131
- meta: {
2132
- [x: string]: unknown;
2133
- } & {
2134
- openapi?: {
2135
- enabled?: boolean;
2136
- method: import("trpc-to-openapi").OpenApiMethod;
2137
- path: `/${string}`;
2138
- operationId?: string;
2139
- summary?: string;
2140
- description?: string;
2141
- protect?: boolean;
2142
- tags?: string[];
2143
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2144
- deprecated?: boolean;
2145
- requestHeaders?: import("zod").ZodObject;
2146
- responseHeaders?: import("zod").ZodObject;
2147
- successDescription?: string;
2148
- errorResponses?: number[] | Record<number, string>;
2149
- };
2150
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3109
+ meta: TrpcMeta;
2151
3110
  errorShape: {
2152
3111
  message: string;
2153
3112
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -2206,26 +3165,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2206
3165
  workspaceName: string;
2207
3166
  }[];
2208
3167
  };
2209
- meta: {
2210
- [x: string]: unknown;
2211
- } & {
2212
- openapi?: {
2213
- enabled?: boolean;
2214
- method: import("trpc-to-openapi").OpenApiMethod;
2215
- path: `/${string}`;
2216
- operationId?: string;
2217
- summary?: string;
2218
- description?: string;
2219
- protect?: boolean;
2220
- tags?: string[];
2221
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2222
- deprecated?: boolean;
2223
- requestHeaders?: import("zod").ZodObject;
2224
- responseHeaders?: import("zod").ZodObject;
2225
- successDescription?: string;
2226
- errorResponses?: number[] | Record<number, string>;
2227
- };
2228
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3168
+ meta: TrpcMeta;
2229
3169
  }>;
2230
3170
  }>>;
2231
3171
  policies: import("@trpc/server").TRPCBuiltRouter<{
@@ -2250,7 +3190,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2250
3190
  u2fPubKey: string | null;
2251
3191
  legacyViewAll: boolean;
2252
3192
  role: UserRole;
2253
- status: ActivationStatus;
3193
+ status: ActivationStatus$1;
2254
3194
  isSuspended: boolean;
2255
3195
  gateType: GateUserType | null;
2256
3196
  gateId: number;
@@ -2263,26 +3203,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2263
3203
  activityTracer: ActivityTracer;
2264
3204
  core: RuntimeInternalApiCapabilityProvider;
2265
3205
  };
2266
- meta: {
2267
- [x: string]: unknown;
2268
- } & {
2269
- openapi?: {
2270
- enabled?: boolean;
2271
- method: import("trpc-to-openapi").OpenApiMethod;
2272
- path: `/${string}`;
2273
- operationId?: string;
2274
- summary?: string;
2275
- description?: string;
2276
- protect?: boolean;
2277
- tags?: string[];
2278
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2279
- deprecated?: boolean;
2280
- requestHeaders?: import("zod").ZodObject;
2281
- responseHeaders?: import("zod").ZodObject;
2282
- successDescription?: string;
2283
- errorResponses?: number[] | Record<number, string>;
2284
- };
2285
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3206
+ meta: TrpcMeta;
2286
3207
  errorShape: {
2287
3208
  message: string;
2288
3209
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -2375,26 +3296,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2375
3296
  workspaceName: string;
2376
3297
  hsmId: string | null;
2377
3298
  } | null;
2378
- meta: {
2379
- [x: string]: unknown;
2380
- } & {
2381
- openapi?: {
2382
- enabled?: boolean;
2383
- method: import("trpc-to-openapi").OpenApiMethod;
2384
- path: `/${string}`;
2385
- operationId?: string;
2386
- summary?: string;
2387
- description?: string;
2388
- protect?: boolean;
2389
- tags?: string[];
2390
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2391
- deprecated?: boolean;
2392
- requestHeaders?: import("zod").ZodObject;
2393
- responseHeaders?: import("zod").ZodObject;
2394
- successDescription?: string;
2395
- errorResponses?: number[] | Record<number, string>;
2396
- };
2397
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3299
+ meta: TrpcMeta;
2398
3300
  }>;
2399
3301
  list: import("@trpc/server").TRPCQueryProcedure<{
2400
3302
  input: {
@@ -2485,8 +3387,8 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2485
3387
  createdAt: Date;
2486
3388
  updatedAt: Date;
2487
3389
  }, "rules"> & {
2488
- workspaceName: import("zod").output<typeof zWorkspaceName>;
2489
- rules: Array<import("zod").output<import("zod").ZodObject<{
3390
+ workspaceName: import("zod").infer<typeof zWorkspaceName>;
3391
+ rules: Array<import("zod").infer<import("zod").ZodObject<{
2490
3392
  reviewSteps: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
2491
3393
  quorum: import("zod").ZodNumber;
2492
3394
  userIds: import("zod").ZodArray<import("zod").ZodString>;
@@ -2514,26 +3416,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2514
3416
  hsmId: string | null;
2515
3417
  })[];
2516
3418
  };
2517
- meta: {
2518
- [x: string]: unknown;
2519
- } & {
2520
- openapi?: {
2521
- enabled?: boolean;
2522
- method: import("trpc-to-openapi").OpenApiMethod;
2523
- path: `/${string}`;
2524
- operationId?: string;
2525
- summary?: string;
2526
- description?: string;
2527
- protect?: boolean;
2528
- tags?: string[];
2529
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2530
- deprecated?: boolean;
2531
- requestHeaders?: import("zod").ZodObject;
2532
- responseHeaders?: import("zod").ZodObject;
2533
- successDescription?: string;
2534
- errorResponses?: number[] | Record<number, string>;
2535
- };
2536
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3419
+ meta: TrpcMeta;
2537
3420
  }>;
2538
3421
  findById: import("@trpc/server").TRPCQueryProcedure<{
2539
3422
  input: {
@@ -2613,26 +3496,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2613
3496
  workspaceName: string;
2614
3497
  hsmId: string | null;
2615
3498
  };
2616
- meta: {
2617
- [x: string]: unknown;
2618
- } & {
2619
- openapi?: {
2620
- enabled?: boolean;
2621
- method: import("trpc-to-openapi").OpenApiMethod;
2622
- path: `/${string}`;
2623
- operationId?: string;
2624
- summary?: string;
2625
- description?: string;
2626
- protect?: boolean;
2627
- tags?: string[];
2628
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2629
- deprecated?: boolean;
2630
- requestHeaders?: import("zod").ZodObject;
2631
- responseHeaders?: import("zod").ZodObject;
2632
- successDescription?: string;
2633
- errorResponses?: number[] | Record<number, string>;
2634
- };
2635
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3499
+ meta: TrpcMeta;
2636
3500
  }>;
2637
3501
  }>>;
2638
3502
  workspaceRules: import("@trpc/server").TRPCBuiltRouter<{
@@ -2657,7 +3521,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2657
3521
  u2fPubKey: string | null;
2658
3522
  legacyViewAll: boolean;
2659
3523
  role: UserRole;
2660
- status: ActivationStatus;
3524
+ status: ActivationStatus$1;
2661
3525
  isSuspended: boolean;
2662
3526
  gateType: GateUserType | null;
2663
3527
  gateId: number;
@@ -2670,26 +3534,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2670
3534
  activityTracer: ActivityTracer;
2671
3535
  core: RuntimeInternalApiCapabilityProvider;
2672
3536
  };
2673
- meta: {
2674
- [x: string]: unknown;
2675
- } & {
2676
- openapi?: {
2677
- enabled?: boolean;
2678
- method: import("trpc-to-openapi").OpenApiMethod;
2679
- path: `/${string}`;
2680
- operationId?: string;
2681
- summary?: string;
2682
- description?: string;
2683
- protect?: boolean;
2684
- tags?: string[];
2685
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2686
- deprecated?: boolean;
2687
- requestHeaders?: import("zod").ZodObject;
2688
- responseHeaders?: import("zod").ZodObject;
2689
- successDescription?: string;
2690
- errorResponses?: number[] | Record<number, string>;
2691
- };
2692
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3537
+ meta: TrpcMeta;
2693
3538
  errorShape: {
2694
3539
  message: string;
2695
3540
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -2726,29 +3571,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2726
3571
  userIds: string[];
2727
3572
  }[];
2728
3573
  } & {
2729
- workspaceName: import("zod").output<typeof zWorkspaceName>;
3574
+ workspaceName: import("zod").infer<typeof zWorkspaceName>;
2730
3575
  })[];
2731
3576
  };
2732
- meta: {
2733
- [x: string]: unknown;
2734
- } & {
2735
- openapi?: {
2736
- enabled?: boolean;
2737
- method: import("trpc-to-openapi").OpenApiMethod;
2738
- path: `/${string}`;
2739
- operationId?: string;
2740
- summary?: string;
2741
- description?: string;
2742
- protect?: boolean;
2743
- tags?: string[];
2744
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2745
- deprecated?: boolean;
2746
- requestHeaders?: import("zod").ZodObject;
2747
- responseHeaders?: import("zod").ZodObject;
2748
- successDescription?: string;
2749
- errorResponses?: number[] | Record<number, string>;
2750
- };
2751
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3577
+ meta: TrpcMeta;
2752
3578
  }>;
2753
3579
  }>>;
2754
3580
  reports: import("@trpc/server").TRPCBuiltRouter<{
@@ -2773,7 +3599,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2773
3599
  u2fPubKey: string | null;
2774
3600
  legacyViewAll: boolean;
2775
3601
  role: UserRole;
2776
- status: ActivationStatus;
3602
+ status: ActivationStatus$1;
2777
3603
  isSuspended: boolean;
2778
3604
  gateType: GateUserType | null;
2779
3605
  gateId: number;
@@ -2786,26 +3612,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2786
3612
  activityTracer: ActivityTracer;
2787
3613
  core: RuntimeInternalApiCapabilityProvider;
2788
3614
  };
2789
- meta: {
2790
- [x: string]: unknown;
2791
- } & {
2792
- openapi?: {
2793
- enabled?: boolean;
2794
- method: import("trpc-to-openapi").OpenApiMethod;
2795
- path: `/${string}`;
2796
- operationId?: string;
2797
- summary?: string;
2798
- description?: string;
2799
- protect?: boolean;
2800
- tags?: string[];
2801
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2802
- deprecated?: boolean;
2803
- requestHeaders?: import("zod").ZodObject;
2804
- responseHeaders?: import("zod").ZodObject;
2805
- successDescription?: string;
2806
- errorResponses?: number[] | Record<number, string>;
2807
- };
2808
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3615
+ meta: TrpcMeta;
2809
3616
  errorShape: {
2810
3617
  message: string;
2811
3618
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -2870,29 +3677,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2870
3677
  transactionStatuses?: ("FAILED" | "PENDING" | "SUCCESSFUL" | "UNKNOWN")[] | undefined;
2871
3678
  };
2872
3679
  })) & {
2873
- workspaceName: import("zod").output<typeof zWorkspaceName>;
3680
+ workspaceName: import("zod").infer<typeof zWorkspaceName>;
2874
3681
  })[];
2875
3682
  };
2876
- meta: {
2877
- [x: string]: unknown;
2878
- } & {
2879
- openapi?: {
2880
- enabled?: boolean;
2881
- method: import("trpc-to-openapi").OpenApiMethod;
2882
- path: `/${string}`;
2883
- operationId?: string;
2884
- summary?: string;
2885
- description?: string;
2886
- protect?: boolean;
2887
- tags?: string[];
2888
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2889
- deprecated?: boolean;
2890
- requestHeaders?: import("zod").ZodObject;
2891
- responseHeaders?: import("zod").ZodObject;
2892
- successDescription?: string;
2893
- errorResponses?: number[] | Record<number, string>;
2894
- };
2895
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3683
+ meta: TrpcMeta;
2896
3684
  }>;
2897
3685
  findById: import("@trpc/server").TRPCQueryProcedure<{
2898
3686
  input: {
@@ -2933,26 +3721,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2933
3721
  })) & {
2934
3722
  workspaceName: string;
2935
3723
  };
2936
- meta: {
2937
- [x: string]: unknown;
2938
- } & {
2939
- openapi?: {
2940
- enabled?: boolean;
2941
- method: import("trpc-to-openapi").OpenApiMethod;
2942
- path: `/${string}`;
2943
- operationId?: string;
2944
- summary?: string;
2945
- description?: string;
2946
- protect?: boolean;
2947
- tags?: string[];
2948
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
2949
- deprecated?: boolean;
2950
- requestHeaders?: import("zod").ZodObject;
2951
- responseHeaders?: import("zod").ZodObject;
2952
- successDescription?: string;
2953
- errorResponses?: number[] | Record<number, string>;
2954
- };
2955
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3724
+ meta: TrpcMeta;
2956
3725
  }>;
2957
3726
  }>>;
2958
3727
  requests: import("@trpc/server").TRPCBuiltRouter<{
@@ -2977,7 +3746,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2977
3746
  u2fPubKey: string | null;
2978
3747
  legacyViewAll: boolean;
2979
3748
  role: UserRole;
2980
- status: ActivationStatus;
3749
+ status: ActivationStatus$1;
2981
3750
  isSuspended: boolean;
2982
3751
  gateType: GateUserType | null;
2983
3752
  gateId: number;
@@ -2990,26 +3759,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
2990
3759
  activityTracer: ActivityTracer;
2991
3760
  core: RuntimeInternalApiCapabilityProvider;
2992
3761
  };
2993
- meta: {
2994
- [x: string]: unknown;
2995
- } & {
2996
- openapi?: {
2997
- enabled?: boolean;
2998
- method: import("trpc-to-openapi").OpenApiMethod;
2999
- path: `/${string}`;
3000
- operationId?: string;
3001
- summary?: string;
3002
- description?: string;
3003
- protect?: boolean;
3004
- tags?: string[];
3005
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3006
- deprecated?: boolean;
3007
- requestHeaders?: import("zod").ZodObject;
3008
- responseHeaders?: import("zod").ZodObject;
3009
- successDescription?: string;
3010
- errorResponses?: number[] | Record<number, string>;
3011
- };
3012
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3762
+ meta: TrpcMeta;
3013
3763
  errorShape: {
3014
3764
  message: string;
3015
3765
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -3048,29 +3798,10 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
3048
3798
  pageSize: number;
3049
3799
  total: number;
3050
3800
  results: (VaultRequestResponse & {
3051
- workspaceName: import("zod").output<typeof zWorkspaceName>;
3801
+ workspaceName: import("zod").infer<typeof zWorkspaceName>;
3052
3802
  })[];
3053
3803
  };
3054
- meta: {
3055
- [x: string]: unknown;
3056
- } & {
3057
- openapi?: {
3058
- enabled?: boolean;
3059
- method: import("trpc-to-openapi").OpenApiMethod;
3060
- path: `/${string}`;
3061
- operationId?: string;
3062
- summary?: string;
3063
- description?: string;
3064
- protect?: boolean;
3065
- tags?: string[];
3066
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
3067
- deprecated?: boolean;
3068
- requestHeaders?: import("zod").ZodObject;
3069
- responseHeaders?: import("zod").ZodObject;
3070
- successDescription?: string;
3071
- errorResponses?: number[] | Record<number, string>;
3072
- };
3073
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
3804
+ meta: TrpcMeta;
3074
3805
  }>;
3075
3806
  findById: import("@trpc/server").TRPCQueryProcedure<{
3076
3807
  input: {
@@ -4661,81 +5392,24 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4661
5392
  }) & {
4662
5393
  workspaceName: string;
4663
5394
  };
4664
- meta: {
4665
- [x: string]: unknown;
4666
- } & {
4667
- openapi?: {
4668
- enabled?: boolean;
4669
- method: import("trpc-to-openapi").OpenApiMethod;
4670
- path: `/${string}`;
4671
- operationId?: string;
4672
- summary?: string;
4673
- description?: string;
4674
- protect?: boolean;
4675
- tags?: string[];
4676
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4677
- deprecated?: boolean;
4678
- requestHeaders?: import("zod").ZodObject;
4679
- responseHeaders?: import("zod").ZodObject;
4680
- successDescription?: string;
4681
- errorResponses?: number[] | Record<number, string>;
4682
- };
4683
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5395
+ meta: TrpcMeta;
4684
5396
  }>;
4685
5397
  restart: import("@trpc/server").TRPCMutationProcedure<{
4686
5398
  input: {
4687
5399
  id: string;
4688
5400
  };
4689
5401
  output: void;
4690
- meta: {
4691
- [x: string]: unknown;
4692
- } & {
4693
- openapi?: {
4694
- enabled?: boolean;
4695
- method: import("trpc-to-openapi").OpenApiMethod;
4696
- path: `/${string}`;
4697
- operationId?: string;
4698
- summary?: string;
4699
- description?: string;
4700
- protect?: boolean;
4701
- tags?: string[];
4702
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4703
- deprecated?: boolean;
4704
- requestHeaders?: import("zod").ZodObject;
4705
- responseHeaders?: import("zod").ZodObject;
4706
- successDescription?: string;
4707
- errorResponses?: number[] | Record<number, string>;
4708
- };
4709
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5402
+ meta: TrpcMeta;
4710
5403
  }>;
4711
5404
  expire: import("@trpc/server").TRPCMutationProcedure<{
4712
5405
  input: {
4713
5406
  id: string;
4714
5407
  };
4715
5408
  output: void;
4716
- meta: {
4717
- [x: string]: unknown;
4718
- } & {
4719
- openapi?: {
4720
- enabled?: boolean;
4721
- method: import("trpc-to-openapi").OpenApiMethod;
4722
- path: `/${string}`;
4723
- operationId?: string;
4724
- summary?: string;
4725
- description?: string;
4726
- protect?: boolean;
4727
- tags?: string[];
4728
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4729
- deprecated?: boolean;
4730
- requestHeaders?: import("zod").ZodObject;
4731
- responseHeaders?: import("zod").ZodObject;
4732
- successDescription?: string;
4733
- errorResponses?: number[] | Record<number, string>;
4734
- };
4735
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5409
+ meta: TrpcMeta;
4736
5410
  }>;
4737
5411
  }>>;
4738
- relationships: import("@trpc/server").TRPCBuiltRouter<{
5412
+ outgoingTransactions: import("@trpc/server").TRPCBuiltRouter<{
4739
5413
  ctx: {
4740
5414
  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;
4741
5415
  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;
@@ -4757,7 +5431,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4757
5431
  u2fPubKey: string | null;
4758
5432
  legacyViewAll: boolean;
4759
5433
  role: UserRole;
4760
- status: ActivationStatus;
5434
+ status: ActivationStatus$1;
4761
5435
  isSuspended: boolean;
4762
5436
  gateType: GateUserType | null;
4763
5437
  gateId: number;
@@ -4770,26 +5444,120 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4770
5444
  activityTracer: ActivityTracer;
4771
5445
  core: RuntimeInternalApiCapabilityProvider;
4772
5446
  };
4773
- meta: {
4774
- [x: string]: unknown;
4775
- } & {
4776
- openapi?: {
4777
- enabled?: boolean;
4778
- method: import("trpc-to-openapi").OpenApiMethod;
4779
- path: `/${string}`;
4780
- operationId?: string;
4781
- summary?: string;
4782
- description?: string;
4783
- protect?: boolean;
4784
- tags?: string[];
4785
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4786
- deprecated?: boolean;
4787
- requestHeaders?: import("zod").ZodObject;
4788
- responseHeaders?: import("zod").ZodObject;
4789
- successDescription?: string;
4790
- errorResponses?: number[] | Record<number, string>;
5447
+ meta: TrpcMeta;
5448
+ errorShape: {
5449
+ message: string;
5450
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
5451
+ data: {
5452
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
5453
+ httpStatus: number;
5454
+ path?: string;
5455
+ stack?: string;
5456
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
5457
+ maintenance?: boolean | undefined;
5458
+ };
5459
+ };
5460
+ transformer: true;
5461
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
5462
+ list: import("@trpc/server").TRPCQueryProcedure<{
5463
+ input: {
5464
+ page?: number | undefined;
5465
+ pageSize?: number | undefined;
5466
+ workspaceName?: string | string[] | undefined;
5467
+ accountId?: string | undefined;
5468
+ hash?: string | undefined;
5469
+ id?: string | undefined;
5470
+ currency?: string | undefined;
5471
+ sortBy?: "createdAt" | "updatedAt" | undefined;
5472
+ sortOrder?: "asc" | "desc" | undefined;
5473
+ };
5474
+ output: {
5475
+ page: number;
5476
+ next: number | null;
5477
+ prev: number | null;
5478
+ pageSize: number;
5479
+ total: number;
5480
+ results: {
5481
+ id: string;
5482
+ workspaceName: string;
5483
+ accountId: string;
5484
+ status: "CONFIRMED" | "DROPPED" | "FAILED" | "ON_CHAIN" | "SCHEDULED" | "SUBMITTED";
5485
+ hash: string | null;
5486
+ replacementHash: string | null;
5487
+ intent: unknown;
5488
+ note: unknown;
5489
+ lesWalletTaskId: string;
5490
+ createdById: string;
5491
+ createdAt: Date;
5492
+ updatedAt: Date;
5493
+ }[];
5494
+ };
5495
+ meta: TrpcMeta;
5496
+ }>;
5497
+ findById: import("@trpc/server").TRPCQueryProcedure<{
5498
+ input: {
5499
+ id: string;
5500
+ };
5501
+ output: {
5502
+ id: string;
5503
+ workspaceName: string;
5504
+ accountId: string;
5505
+ status: "CONFIRMED" | "DROPPED" | "FAILED" | "ON_CHAIN" | "SCHEDULED" | "SUBMITTED";
5506
+ hash: string | null;
5507
+ replacementHash: string | null;
5508
+ intent: unknown;
5509
+ note: unknown;
5510
+ lesWalletTaskId: string;
5511
+ createdById: string;
5512
+ createdAt: Date;
5513
+ updatedAt: Date;
5514
+ statusTransitions: {
5515
+ sequence: number;
5516
+ status: "CONFIRMED" | "DROPPED" | "FAILED" | "ON_CHAIN" | "SCHEDULED" | "SUBMITTED";
5517
+ recordedAt: Date;
5518
+ failureReasonCode: string | null;
5519
+ failureReason: string | null;
5520
+ }[];
4791
5521
  };
4792
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5522
+ meta: TrpcMeta;
5523
+ }>;
5524
+ }>>;
5525
+ relationships: import("@trpc/server").TRPCBuiltRouter<{
5526
+ ctx: {
5527
+ 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;
5528
+ 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;
5529
+ info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
5530
+ debugAuthToken?: string;
5531
+ rootAuthToken?: string;
5532
+ backofficeRequiredPermission?: BackofficePermission;
5533
+ io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
5534
+ user: {
5535
+ id: string;
5536
+ workspaceName: string;
5537
+ name: string;
5538
+ authUserId: string | null;
5539
+ pubKey: string;
5540
+ deviceType: UserDeviceType;
5541
+ deviceUserId: string | null;
5542
+ hsmId: string | null;
5543
+ u2fKeyHandle: string | null;
5544
+ u2fPubKey: string | null;
5545
+ legacyViewAll: boolean;
5546
+ role: UserRole;
5547
+ status: ActivationStatus$1;
5548
+ isSuspended: boolean;
5549
+ gateType: GateUserType | null;
5550
+ gateId: number;
5551
+ syncId: string;
5552
+ createdAt: Date;
5553
+ updatedAt: Date;
5554
+ } | null;
5555
+ authorization: string | null;
5556
+ readOnly: boolean;
5557
+ activityTracer: ActivityTracer;
5558
+ core: RuntimeInternalApiCapabilityProvider;
5559
+ };
5560
+ meta: TrpcMeta;
4793
5561
  errorShape: {
4794
5562
  message: string;
4795
5563
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -4824,26 +5592,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4824
5592
  count: number;
4825
5593
  }[];
4826
5594
  };
4827
- meta: {
4828
- [x: string]: unknown;
4829
- } & {
4830
- openapi?: {
4831
- enabled?: boolean;
4832
- method: import("trpc-to-openapi").OpenApiMethod;
4833
- path: `/${string}`;
4834
- operationId?: string;
4835
- summary?: string;
4836
- description?: string;
4837
- protect?: boolean;
4838
- tags?: string[];
4839
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4840
- deprecated?: boolean;
4841
- requestHeaders?: import("zod").ZodObject;
4842
- responseHeaders?: import("zod").ZodObject;
4843
- successDescription?: string;
4844
- errorResponses?: number[] | Record<number, string>;
4845
- };
4846
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5595
+ meta: TrpcMeta;
4847
5596
  }>;
4848
5597
  materialize: import("@trpc/server").TRPCMutationProcedure<{
4849
5598
  input: {
@@ -4859,26 +5608,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4859
5608
  writeDurationMs: number;
4860
5609
  totalDurationMs: number;
4861
5610
  };
4862
- meta: {
4863
- [x: string]: unknown;
4864
- } & {
4865
- openapi?: {
4866
- enabled?: boolean;
4867
- method: import("trpc-to-openapi").OpenApiMethod;
4868
- path: `/${string}`;
4869
- operationId?: string;
4870
- summary?: string;
4871
- description?: string;
4872
- protect?: boolean;
4873
- tags?: string[];
4874
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4875
- deprecated?: boolean;
4876
- requestHeaders?: import("zod").ZodObject;
4877
- responseHeaders?: import("zod").ZodObject;
4878
- successDescription?: string;
4879
- errorResponses?: number[] | Record<number, string>;
4880
- };
4881
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5611
+ meta: TrpcMeta;
4882
5612
  }>;
4883
5613
  health: import("@trpc/server").TRPCQueryProcedure<{
4884
5614
  input: {
@@ -4900,26 +5630,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4900
5630
  count: number;
4901
5631
  }[];
4902
5632
  };
4903
- meta: {
4904
- [x: string]: unknown;
4905
- } & {
4906
- openapi?: {
4907
- enabled?: boolean;
4908
- method: import("trpc-to-openapi").OpenApiMethod;
4909
- path: `/${string}`;
4910
- operationId?: string;
4911
- summary?: string;
4912
- description?: string;
4913
- protect?: boolean;
4914
- tags?: string[];
4915
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4916
- deprecated?: boolean;
4917
- requestHeaders?: import("zod").ZodObject;
4918
- responseHeaders?: import("zod").ZodObject;
4919
- successDescription?: string;
4920
- errorResponses?: number[] | Record<number, string>;
4921
- };
4922
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5633
+ meta: TrpcMeta;
4923
5634
  }>;
4924
5635
  driftCheck: import("@trpc/server").TRPCQueryProcedure<{
4925
5636
  input: {
@@ -4959,26 +5670,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
4959
5670
  compareDurationMs: number;
4960
5671
  totalDurationMs: number;
4961
5672
  };
4962
- meta: {
4963
- [x: string]: unknown;
4964
- } & {
4965
- openapi?: {
4966
- enabled?: boolean;
4967
- method: import("trpc-to-openapi").OpenApiMethod;
4968
- path: `/${string}`;
4969
- operationId?: string;
4970
- summary?: string;
4971
- description?: string;
4972
- protect?: boolean;
4973
- tags?: string[];
4974
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
4975
- deprecated?: boolean;
4976
- requestHeaders?: import("zod").ZodObject;
4977
- responseHeaders?: import("zod").ZodObject;
4978
- successDescription?: string;
4979
- errorResponses?: number[] | Record<number, string>;
4980
- };
4981
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5673
+ meta: TrpcMeta;
4982
5674
  }>;
4983
5675
  }>>;
4984
5676
  auditLogs: import("@trpc/server").TRPCBuiltRouter<{
@@ -5003,7 +5695,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5003
5695
  u2fPubKey: string | null;
5004
5696
  legacyViewAll: boolean;
5005
5697
  role: UserRole;
5006
- status: ActivationStatus;
5698
+ status: ActivationStatus$1;
5007
5699
  isSuspended: boolean;
5008
5700
  gateType: GateUserType | null;
5009
5701
  gateId: number;
@@ -5016,26 +5708,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5016
5708
  activityTracer: ActivityTracer;
5017
5709
  core: RuntimeInternalApiCapabilityProvider;
5018
5710
  };
5019
- meta: {
5020
- [x: string]: unknown;
5021
- } & {
5022
- openapi?: {
5023
- enabled?: boolean;
5024
- method: import("trpc-to-openapi").OpenApiMethod;
5025
- path: `/${string}`;
5026
- operationId?: string;
5027
- summary?: string;
5028
- description?: string;
5029
- protect?: boolean;
5030
- tags?: string[];
5031
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5032
- deprecated?: boolean;
5033
- requestHeaders?: import("zod").ZodObject;
5034
- responseHeaders?: import("zod").ZodObject;
5035
- successDescription?: string;
5036
- errorResponses?: number[] | Record<number, string>;
5037
- };
5038
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5711
+ meta: TrpcMeta;
5039
5712
  errorShape: {
5040
5713
  message: string;
5041
5714
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -5075,26 +5748,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5075
5748
  createdAt: Date;
5076
5749
  }[];
5077
5750
  };
5078
- meta: {
5079
- [x: string]: unknown;
5080
- } & {
5081
- openapi?: {
5082
- enabled?: boolean;
5083
- method: import("trpc-to-openapi").OpenApiMethod;
5084
- path: `/${string}`;
5085
- operationId?: string;
5086
- summary?: string;
5087
- description?: string;
5088
- protect?: boolean;
5089
- tags?: string[];
5090
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5091
- deprecated?: boolean;
5092
- requestHeaders?: import("zod").ZodObject;
5093
- responseHeaders?: import("zod").ZodObject;
5094
- successDescription?: string;
5095
- errorResponses?: number[] | Record<number, string>;
5096
- };
5097
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5751
+ meta: TrpcMeta;
5098
5752
  }>;
5099
5753
  findById: import("@trpc/server").TRPCQueryProcedure<{
5100
5754
  input: {
@@ -5107,26 +5761,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5107
5761
  payload: unknown;
5108
5762
  createdAt: Date;
5109
5763
  };
5110
- meta: {
5111
- [x: string]: unknown;
5112
- } & {
5113
- openapi?: {
5114
- enabled?: boolean;
5115
- method: import("trpc-to-openapi").OpenApiMethod;
5116
- path: `/${string}`;
5117
- operationId?: string;
5118
- summary?: string;
5119
- description?: string;
5120
- protect?: boolean;
5121
- tags?: string[];
5122
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5123
- deprecated?: boolean;
5124
- requestHeaders?: import("zod").ZodObject;
5125
- responseHeaders?: import("zod").ZodObject;
5126
- successDescription?: string;
5127
- errorResponses?: number[] | Record<number, string>;
5128
- };
5129
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5764
+ meta: TrpcMeta;
5130
5765
  }>;
5131
5766
  }>>;
5132
5767
  auditTrail: import("@trpc/server").TRPCBuiltRouter<{
@@ -5151,7 +5786,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5151
5786
  u2fPubKey: string | null;
5152
5787
  legacyViewAll: boolean;
5153
5788
  role: UserRole;
5154
- status: ActivationStatus;
5789
+ status: ActivationStatus$1;
5155
5790
  isSuspended: boolean;
5156
5791
  gateType: GateUserType | null;
5157
5792
  gateId: number;
@@ -5164,26 +5799,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5164
5799
  activityTracer: ActivityTracer;
5165
5800
  core: RuntimeInternalApiCapabilityProvider;
5166
5801
  };
5167
- meta: {
5168
- [x: string]: unknown;
5169
- } & {
5170
- openapi?: {
5171
- enabled?: boolean;
5172
- method: import("trpc-to-openapi").OpenApiMethod;
5173
- path: `/${string}`;
5174
- operationId?: string;
5175
- summary?: string;
5176
- description?: string;
5177
- protect?: boolean;
5178
- tags?: string[];
5179
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5180
- deprecated?: boolean;
5181
- requestHeaders?: import("zod").ZodObject;
5182
- responseHeaders?: import("zod").ZodObject;
5183
- successDescription?: string;
5184
- errorResponses?: number[] | Record<number, string>;
5185
- };
5186
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5802
+ meta: TrpcMeta;
5187
5803
  errorShape: {
5188
5804
  message: string;
5189
5805
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -5220,26 +5836,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5220
5836
  hasMore: boolean;
5221
5837
  capped: boolean;
5222
5838
  };
5223
- meta: {
5224
- [x: string]: unknown;
5225
- } & {
5226
- openapi?: {
5227
- enabled?: boolean;
5228
- method: import("trpc-to-openapi").OpenApiMethod;
5229
- path: `/${string}`;
5230
- operationId?: string;
5231
- summary?: string;
5232
- description?: string;
5233
- protect?: boolean;
5234
- tags?: string[];
5235
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5236
- deprecated?: boolean;
5237
- requestHeaders?: import("zod").ZodObject;
5238
- responseHeaders?: import("zod").ZodObject;
5239
- successDescription?: string;
5240
- errorResponses?: number[] | Record<number, string>;
5241
- };
5242
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5839
+ meta: TrpcMeta;
5243
5840
  }>;
5244
5841
  requestFailures: import("@trpc/server").TRPCQueryProcedure<{
5245
5842
  input: {
@@ -5259,26 +5856,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5259
5856
  hasMore: boolean;
5260
5857
  capped: boolean;
5261
5858
  };
5262
- meta: {
5263
- [x: string]: unknown;
5264
- } & {
5265
- openapi?: {
5266
- enabled?: boolean;
5267
- method: import("trpc-to-openapi").OpenApiMethod;
5268
- path: `/${string}`;
5269
- operationId?: string;
5270
- summary?: string;
5271
- description?: string;
5272
- protect?: boolean;
5273
- tags?: string[];
5274
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5275
- deprecated?: boolean;
5276
- requestHeaders?: import("zod").ZodObject;
5277
- responseHeaders?: import("zod").ZodObject;
5278
- successDescription?: string;
5279
- errorResponses?: number[] | Record<number, string>;
5280
- };
5281
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5859
+ meta: TrpcMeta;
5282
5860
  }>;
5283
5861
  getEvent: import("@trpc/server").TRPCQueryProcedure<{
5284
5862
  input: {
@@ -5292,26 +5870,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5292
5870
  contentType: string;
5293
5871
  decoded: boolean;
5294
5872
  };
5295
- meta: {
5296
- [x: string]: unknown;
5297
- } & {
5298
- openapi?: {
5299
- enabled?: boolean;
5300
- method: import("trpc-to-openapi").OpenApiMethod;
5301
- path: `/${string}`;
5302
- operationId?: string;
5303
- summary?: string;
5304
- description?: string;
5305
- protect?: boolean;
5306
- tags?: string[];
5307
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5308
- deprecated?: boolean;
5309
- requestHeaders?: import("zod").ZodObject;
5310
- responseHeaders?: import("zod").ZodObject;
5311
- successDescription?: string;
5312
- errorResponses?: number[] | Record<number, string>;
5313
- };
5314
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5873
+ meta: TrpcMeta;
5315
5874
  }>;
5316
5875
  }>>;
5317
5876
  hsmRequests: import("@trpc/server").TRPCBuiltRouter<{
@@ -5336,7 +5895,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5336
5895
  u2fPubKey: string | null;
5337
5896
  legacyViewAll: boolean;
5338
5897
  role: UserRole;
5339
- status: ActivationStatus;
5898
+ status: ActivationStatus$1;
5340
5899
  isSuspended: boolean;
5341
5900
  gateType: GateUserType | null;
5342
5901
  gateId: number;
@@ -5349,26 +5908,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5349
5908
  activityTracer: ActivityTracer;
5350
5909
  core: RuntimeInternalApiCapabilityProvider;
5351
5910
  };
5352
- meta: {
5353
- [x: string]: unknown;
5354
- } & {
5355
- openapi?: {
5356
- enabled?: boolean;
5357
- method: import("trpc-to-openapi").OpenApiMethod;
5358
- path: `/${string}`;
5359
- operationId?: string;
5360
- summary?: string;
5361
- description?: string;
5362
- protect?: boolean;
5363
- tags?: string[];
5364
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5365
- deprecated?: boolean;
5366
- requestHeaders?: import("zod").ZodObject;
5367
- responseHeaders?: import("zod").ZodObject;
5368
- successDescription?: string;
5369
- errorResponses?: number[] | Record<number, string>;
5370
- };
5371
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5911
+ meta: TrpcMeta;
5372
5912
  errorShape: {
5373
5913
  message: string;
5374
5914
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -5394,26 +5934,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5394
5934
  total_objects: number;
5395
5935
  objects_report: Record<string, number>;
5396
5936
  };
5397
- meta: {
5398
- [x: string]: unknown;
5399
- } & {
5400
- openapi?: {
5401
- enabled?: boolean;
5402
- method: import("trpc-to-openapi").OpenApiMethod;
5403
- path: `/${string}`;
5404
- operationId?: string;
5405
- summary?: string;
5406
- description?: string;
5407
- protect?: boolean;
5408
- tags?: string[];
5409
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5410
- deprecated?: boolean;
5411
- requestHeaders?: import("zod").ZodObject;
5412
- responseHeaders?: import("zod").ZodObject;
5413
- successDescription?: string;
5414
- errorResponses?: number[] | Record<number, string>;
5415
- };
5416
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5937
+ meta: TrpcMeta;
5417
5938
  }>;
5418
5939
  objectsInfo: import("@trpc/server").TRPCQueryProcedure<{
5419
5940
  input: {
@@ -5447,26 +5968,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5447
5968
  }[];
5448
5969
  objects_missing_merkle_tree_id: string[];
5449
5970
  };
5450
- meta: {
5451
- [x: string]: unknown;
5452
- } & {
5453
- openapi?: {
5454
- enabled?: boolean;
5455
- method: import("trpc-to-openapi").OpenApiMethod;
5456
- path: `/${string}`;
5457
- operationId?: string;
5458
- summary?: string;
5459
- description?: string;
5460
- protect?: boolean;
5461
- tags?: string[];
5462
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5463
- deprecated?: boolean;
5464
- requestHeaders?: import("zod").ZodObject;
5465
- responseHeaders?: import("zod").ZodObject;
5466
- successDescription?: string;
5467
- errorResponses?: number[] | Record<number, string>;
5468
- };
5469
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5971
+ meta: TrpcMeta;
5470
5972
  }>;
5471
5973
  objectsContent: import("@trpc/server").TRPCQueryProcedure<{
5472
5974
  input: {
@@ -5483,26 +5985,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5483
5985
  object_contents: unknown[];
5484
5986
  objects_missing_merkle_tree_id: string[];
5485
5987
  };
5486
- meta: {
5487
- [x: string]: unknown;
5488
- } & {
5489
- openapi?: {
5490
- enabled?: boolean;
5491
- method: import("trpc-to-openapi").OpenApiMethod;
5492
- path: `/${string}`;
5493
- operationId?: string;
5494
- summary?: string;
5495
- description?: string;
5496
- protect?: boolean;
5497
- tags?: string[];
5498
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5499
- deprecated?: boolean;
5500
- requestHeaders?: import("zod").ZodObject;
5501
- responseHeaders?: import("zod").ZodObject;
5502
- successDescription?: string;
5503
- errorResponses?: number[] | Record<number, string>;
5504
- };
5505
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
5988
+ meta: TrpcMeta;
5506
5989
  }>;
5507
5990
  compareWithHsm: import("@trpc/server").TRPCQueryProcedure<{
5508
5991
  input: {
@@ -5510,26 +5993,132 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5510
5993
  comparator: "whitelists" | "workspace-name";
5511
5994
  };
5512
5995
  output: HsmWorkspaceComparison;
5513
- meta: {
5514
- [x: string]: unknown;
5515
- } & {
5516
- openapi?: {
5517
- enabled?: boolean;
5518
- method: import("trpc-to-openapi").OpenApiMethod;
5519
- path: `/${string}`;
5520
- operationId?: string;
5521
- summary?: string;
5522
- description?: string;
5523
- protect?: boolean;
5524
- tags?: string[];
5525
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5526
- deprecated?: boolean;
5527
- requestHeaders?: import("zod").ZodObject;
5528
- responseHeaders?: import("zod").ZodObject;
5529
- successDescription?: string;
5530
- errorResponses?: number[] | Record<number, string>;
5996
+ meta: TrpcMeta;
5997
+ }>;
5998
+ }>>;
5999
+ configCatPromotions: import("@trpc/server").TRPCBuiltRouter<{
6000
+ ctx: {
6001
+ 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;
6002
+ 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;
6003
+ info?: import("@trpc/server/unstable-core-do-not-import").TRPCRequestInfo | undefined;
6004
+ debugAuthToken?: string;
6005
+ rootAuthToken?: string;
6006
+ backofficeRequiredPermission?: BackofficePermission;
6007
+ io: import("socket.io").Server<import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, import("socket.io").DefaultEventsMap, any> | null;
6008
+ user: {
6009
+ id: string;
6010
+ workspaceName: string;
6011
+ name: string;
6012
+ authUserId: string | null;
6013
+ pubKey: string;
6014
+ deviceType: UserDeviceType;
6015
+ deviceUserId: string | null;
6016
+ hsmId: string | null;
6017
+ u2fKeyHandle: string | null;
6018
+ u2fPubKey: string | null;
6019
+ legacyViewAll: boolean;
6020
+ role: UserRole;
6021
+ status: ActivationStatus$1;
6022
+ isSuspended: boolean;
6023
+ gateType: GateUserType | null;
6024
+ gateId: number;
6025
+ syncId: string;
6026
+ createdAt: Date;
6027
+ updatedAt: Date;
6028
+ } | null;
6029
+ authorization: string | null;
6030
+ readOnly: boolean;
6031
+ activityTracer: ActivityTracer;
6032
+ core: RuntimeInternalApiCapabilityProvider;
6033
+ };
6034
+ meta: TrpcMeta;
6035
+ errorShape: {
6036
+ message: string;
6037
+ code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
6038
+ data: {
6039
+ code: import("@trpc/server").TRPC_ERROR_CODE_KEY;
6040
+ httpStatus: number;
6041
+ path?: string;
6042
+ stack?: string;
6043
+ maintenanceMode?: "FULL" | "READ_ONLY" | undefined;
6044
+ maintenance?: boolean | undefined;
6045
+ };
6046
+ };
6047
+ transformer: true;
6048
+ }, import("@trpc/server").TRPCDecorateCreateRouterOptions<{
6049
+ matrix: import("@trpc/server").TRPCQueryProcedure<{
6050
+ input: {
6051
+ sourceEnv?: string | undefined;
6052
+ };
6053
+ output: {
6054
+ environments: {
6055
+ slug: string;
6056
+ displayName: string;
6057
+ order: number;
6058
+ }[];
6059
+ sourceEnv: string;
6060
+ rows: {
6061
+ flagKey: string;
6062
+ flagName: string;
6063
+ valueType: "boolean" | "json" | "number" | "string";
6064
+ cells: Record<string, {
6065
+ state: "blocked" | "missing" | "notAllowed" | "present" | "source";
6066
+ summary: string;
6067
+ blockers: {
6068
+ code: "CONFIGCAT_UNAVAILABLE" | "ENVIRONMENT_NOT_CONFIGURED" | "EXTERNAL_WRITE_FAILED" | "EXTERNAL_WRITE_OUTCOME_UNKNOWN" | "SELECTED_FLAG_ALREADY_EXISTS" | "SOURCE_FLAG_NOT_FOUND" | "TARGET_NOT_AFTER_SOURCE" | "UNSUPPORTED_FLAG";
6069
+ severity: "blocking";
6070
+ sourceEnv: string;
6071
+ targetEnv?: string | undefined;
6072
+ flagKey?: string | undefined;
6073
+ message: string;
6074
+ }[];
6075
+ }>;
6076
+ }[];
6077
+ summary: {
6078
+ promotableCells: number;
6079
+ blockedCells: number;
6080
+ alignedFlags: number;
5531
6081
  };
5532
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
6082
+ fetchedAt: string;
6083
+ };
6084
+ meta: TrpcMeta;
6085
+ }>;
6086
+ promote: import("@trpc/server").TRPCMutationProcedure<{
6087
+ input: {
6088
+ sourceEnv: string;
6089
+ selections: {
6090
+ flagKey: string;
6091
+ targetEnv: string;
6092
+ }[];
6093
+ operatorReason?: string | undefined;
6094
+ };
6095
+ output: {
6096
+ attemptId: string;
6097
+ status: "applied" | "blocked" | "failed" | "partiallyApplied";
6098
+ created: {
6099
+ sourceEnv: string;
6100
+ targetEnv: string;
6101
+ flagKey: string;
6102
+ flagName: string;
6103
+ valueType: "boolean" | "json" | "number" | "string";
6104
+ }[];
6105
+ notAttempted: {
6106
+ sourceEnv: string;
6107
+ targetEnv: string;
6108
+ flagKey: string;
6109
+ flagName: string;
6110
+ valueType: "boolean" | "json" | "number" | "string";
6111
+ }[];
6112
+ blockers: {
6113
+ code: "CONFIGCAT_UNAVAILABLE" | "ENVIRONMENT_NOT_CONFIGURED" | "EXTERNAL_WRITE_FAILED" | "EXTERNAL_WRITE_OUTCOME_UNKNOWN" | "SELECTED_FLAG_ALREADY_EXISTS" | "SOURCE_FLAG_NOT_FOUND" | "TARGET_NOT_AFTER_SOURCE" | "UNSUPPORTED_FLAG";
6114
+ severity: "blocking";
6115
+ sourceEnv: string;
6116
+ targetEnv?: string | undefined;
6117
+ flagKey?: string | undefined;
6118
+ message: string;
6119
+ }[];
6120
+ };
6121
+ meta: TrpcMeta;
5533
6122
  }>;
5534
6123
  }>>;
5535
6124
  }>>;
@@ -5555,7 +6144,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5555
6144
  u2fPubKey: string | null;
5556
6145
  legacyViewAll: boolean;
5557
6146
  role: UserRole;
5558
- status: ActivationStatus;
6147
+ status: ActivationStatus$1;
5559
6148
  isSuspended: boolean;
5560
6149
  gateType: GateUserType | null;
5561
6150
  gateId: number;
@@ -5568,26 +6157,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
5568
6157
  activityTracer: ActivityTracer;
5569
6158
  core: RuntimeInternalApiCapabilityProvider;
5570
6159
  };
5571
- meta: {
5572
- [x: string]: unknown;
5573
- } & {
5574
- openapi?: {
5575
- enabled?: boolean;
5576
- method: import("trpc-to-openapi").OpenApiMethod;
5577
- path: `/${string}`;
5578
- operationId?: string;
5579
- summary?: string;
5580
- description?: string;
5581
- protect?: boolean;
5582
- tags?: string[];
5583
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
5584
- deprecated?: boolean;
5585
- requestHeaders?: import("zod").ZodObject;
5586
- responseHeaders?: import("zod").ZodObject;
5587
- successDescription?: string;
5588
- errorResponses?: number[] | Record<number, string>;
5589
- };
5590
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
6160
+ meta: TrpcMeta;
5591
6161
  errorShape: {
5592
6162
  message: string;
5593
6163
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -7202,26 +7772,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
7202
7772
  }[] | undefined;
7203
7773
  })[];
7204
7774
  };
7205
- meta: {
7206
- [x: string]: unknown;
7207
- } & {
7208
- openapi?: {
7209
- enabled?: boolean;
7210
- method: import("trpc-to-openapi").OpenApiMethod;
7211
- path: `/${string}`;
7212
- operationId?: string;
7213
- summary?: string;
7214
- description?: string;
7215
- protect?: boolean;
7216
- tags?: string[];
7217
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7218
- deprecated?: boolean;
7219
- requestHeaders?: import("zod").ZodObject;
7220
- responseHeaders?: import("zod").ZodObject;
7221
- successDescription?: string;
7222
- errorResponses?: number[] | Record<number, string>;
7223
- };
7224
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
7775
+ meta: TrpcMeta;
7225
7776
  }>;
7226
7777
  updateReportTaskResult: import("@trpc/server").TRPCMutationProcedure<{
7227
7778
  input: {
@@ -7241,26 +7792,26 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
7241
7792
  generationTaskId: string;
7242
7793
  status: "COMPLETED" | "DELETED" | "FAILED" | "INITIAL" | "PURGED" | "SCHEDULED";
7243
7794
  };
7244
- meta: {
7245
- [x: string]: unknown;
7246
- } & {
7247
- openapi?: {
7248
- enabled?: boolean;
7249
- method: import("trpc-to-openapi").OpenApiMethod;
7250
- path: `/${string}`;
7251
- operationId?: string;
7252
- summary?: string;
7253
- description?: string;
7254
- protect?: boolean;
7255
- tags?: string[];
7256
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7257
- deprecated?: boolean;
7258
- requestHeaders?: import("zod").ZodObject;
7259
- responseHeaders?: import("zod").ZodObject;
7260
- successDescription?: string;
7261
- errorResponses?: number[] | Record<number, string>;
7262
- };
7263
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
7795
+ meta: TrpcMeta;
7796
+ }>;
7797
+ resolveAccounts: import("@trpc/server").TRPCMutationProcedure<{
7798
+ input: {
7799
+ workspaceName: string;
7800
+ accounts: {
7801
+ network: string;
7802
+ index: number;
7803
+ contractAddress?: string | null | undefined;
7804
+ }[];
7805
+ };
7806
+ output: {
7807
+ network: string;
7808
+ index: number;
7809
+ contractAddress: string | null;
7810
+ name: string;
7811
+ revaultId: string;
7812
+ address: string | null;
7813
+ }[];
7814
+ meta: TrpcMeta;
7264
7815
  }>;
7265
7816
  }>>;
7266
7817
  workspaces: import("@trpc/server").TRPCBuiltRouter<{
@@ -7285,7 +7836,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
7285
7836
  u2fPubKey: string | null;
7286
7837
  legacyViewAll: boolean;
7287
7838
  role: UserRole;
7288
- status: ActivationStatus;
7839
+ status: ActivationStatus$1;
7289
7840
  isSuspended: boolean;
7290
7841
  gateType: GateUserType | null;
7291
7842
  gateId: number;
@@ -7298,26 +7849,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
7298
7849
  activityTracer: ActivityTracer;
7299
7850
  core: RuntimeInternalApiCapabilityProvider;
7300
7851
  };
7301
- meta: {
7302
- [x: string]: unknown;
7303
- } & {
7304
- openapi?: {
7305
- enabled?: boolean;
7306
- method: import("trpc-to-openapi").OpenApiMethod;
7307
- path: `/${string}`;
7308
- operationId?: string;
7309
- summary?: string;
7310
- description?: string;
7311
- protect?: boolean;
7312
- tags?: string[];
7313
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7314
- deprecated?: boolean;
7315
- requestHeaders?: import("zod").ZodObject;
7316
- responseHeaders?: import("zod").ZodObject;
7317
- successDescription?: string;
7318
- errorResponses?: number[] | Record<number, string>;
7319
- };
7320
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
7852
+ meta: TrpcMeta;
7321
7853
  errorShape: {
7322
7854
  message: string;
7323
7855
  code: import("@trpc/server").TRPC_ERROR_CODE_NUMBER;
@@ -7341,26 +7873,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
7341
7873
  createdAt: Date;
7342
7874
  updatedAt: Date;
7343
7875
  }[];
7344
- meta: {
7345
- [x: string]: unknown;
7346
- } & {
7347
- openapi?: {
7348
- enabled?: boolean;
7349
- method: import("trpc-to-openapi").OpenApiMethod;
7350
- path: `/${string}`;
7351
- operationId?: string;
7352
- summary?: string;
7353
- description?: string;
7354
- protect?: boolean;
7355
- tags?: string[];
7356
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7357
- deprecated?: boolean;
7358
- requestHeaders?: import("zod").ZodObject;
7359
- responseHeaders?: import("zod").ZodObject;
7360
- successDescription?: string;
7361
- errorResponses?: number[] | Record<number, string>;
7362
- };
7363
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
7876
+ meta: TrpcMeta;
7364
7877
  }>;
7365
7878
  findByName: import("@trpc/server").TRPCQueryProcedure<{
7366
7879
  input: {
@@ -7373,26 +7886,7 @@ declare const internalAppRouter: import("@trpc/server").TRPCBuiltRouter<{
7373
7886
  createdAt: Date;
7374
7887
  updatedAt: Date;
7375
7888
  };
7376
- meta: {
7377
- [x: string]: unknown;
7378
- } & {
7379
- openapi?: {
7380
- enabled?: boolean;
7381
- method: import("trpc-to-openapi").OpenApiMethod;
7382
- path: `/${string}`;
7383
- operationId?: string;
7384
- summary?: string;
7385
- description?: string;
7386
- protect?: boolean;
7387
- tags?: string[];
7388
- contentTypes?: import("trpc-to-openapi").OpenApiContentType[];
7389
- deprecated?: boolean;
7390
- requestHeaders?: import("zod").ZodObject;
7391
- responseHeaders?: import("zod").ZodObject;
7392
- successDescription?: string;
7393
- errorResponses?: number[] | Record<number, string>;
7394
- };
7395
- } & RateLimitMetricsMeta & BackofficePermissionMeta;
7889
+ meta: TrpcMeta;
7396
7890
  }>;
7397
7891
  }>>;
7398
7892
  }>>;