@secrecy/trpc-api-types 1.33.0-feat-groups-identity.30 → 1.33.0-feat-groups-identity.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +191 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6407,6 +6407,197 @@ declare var appRouter: _trpc_server.TRPCBuiltRouter<{
|
|
|
6407
6407
|
meta: any;
|
|
6408
6408
|
}>;
|
|
6409
6409
|
}>>;
|
|
6410
|
+
group: _trpc_server.TRPCBuiltRouter<{
|
|
6411
|
+
ctx: any;
|
|
6412
|
+
meta: any;
|
|
6413
|
+
errorShape: {
|
|
6414
|
+
message: string;
|
|
6415
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
6416
|
+
data: _trpc_server.TRPCDefaultErrorData;
|
|
6417
|
+
} | {
|
|
6418
|
+
data: {
|
|
6419
|
+
zodError: zod_v4.ZodFlattenedError<unknown, string> | null;
|
|
6420
|
+
code: _trpc_server.TRPC_ERROR_CODE_KEY;
|
|
6421
|
+
httpStatus: number;
|
|
6422
|
+
path?: string;
|
|
6423
|
+
stack?: string;
|
|
6424
|
+
};
|
|
6425
|
+
message: string;
|
|
6426
|
+
code: _trpc_server.TRPC_ERROR_CODE_NUMBER;
|
|
6427
|
+
};
|
|
6428
|
+
transformer: true;
|
|
6429
|
+
}, _trpc_server.TRPCDecorateCreateRouterOptions<{
|
|
6430
|
+
addMember: _trpc_server.TRPCMutationProcedure<{
|
|
6431
|
+
input: {
|
|
6432
|
+
fromPubKey: string;
|
|
6433
|
+
id: string;
|
|
6434
|
+
encPriv: string;
|
|
6435
|
+
pubKey: string;
|
|
6436
|
+
role?: "ADMIN" | "MEMBER" | undefined;
|
|
6437
|
+
};
|
|
6438
|
+
output: {
|
|
6439
|
+
member: {
|
|
6440
|
+
createdAt: Date;
|
|
6441
|
+
role: "ADMIN" | "MEMBER";
|
|
6442
|
+
groupId: string;
|
|
6443
|
+
identityPubKey: string;
|
|
6444
|
+
sharedByPubKey: string;
|
|
6445
|
+
encPriv: string;
|
|
6446
|
+
initiatorAppId: string;
|
|
6447
|
+
initiatorUserId: string;
|
|
6448
|
+
};
|
|
6449
|
+
};
|
|
6450
|
+
meta: any;
|
|
6451
|
+
}>;
|
|
6452
|
+
create: _trpc_server.TRPCMutationProcedure<{
|
|
6453
|
+
input: {
|
|
6454
|
+
fromPubKey: string;
|
|
6455
|
+
name: string;
|
|
6456
|
+
encPriv: string;
|
|
6457
|
+
pubKey: string;
|
|
6458
|
+
};
|
|
6459
|
+
output: {
|
|
6460
|
+
group: {
|
|
6461
|
+
id: string;
|
|
6462
|
+
createdAt: Date;
|
|
6463
|
+
name: string;
|
|
6464
|
+
updatedAt: Date;
|
|
6465
|
+
identityPubKey: string;
|
|
6466
|
+
ownerPubKey: string;
|
|
6467
|
+
organizationId: string | null;
|
|
6468
|
+
applicationId: string | null;
|
|
6469
|
+
initiatorAppId: string;
|
|
6470
|
+
initiatorUserId: string;
|
|
6471
|
+
};
|
|
6472
|
+
};
|
|
6473
|
+
meta: any;
|
|
6474
|
+
}>;
|
|
6475
|
+
deleteMember: _trpc_server.TRPCMutationProcedure<{
|
|
6476
|
+
input: {
|
|
6477
|
+
id: string;
|
|
6478
|
+
pubKey: string;
|
|
6479
|
+
};
|
|
6480
|
+
output: {
|
|
6481
|
+
member: {
|
|
6482
|
+
createdAt: Date;
|
|
6483
|
+
role: "ADMIN" | "MEMBER";
|
|
6484
|
+
groupId: string;
|
|
6485
|
+
identityPubKey: string;
|
|
6486
|
+
sharedByPubKey: string;
|
|
6487
|
+
encPriv: string;
|
|
6488
|
+
initiatorAppId: string;
|
|
6489
|
+
initiatorUserId: string;
|
|
6490
|
+
};
|
|
6491
|
+
};
|
|
6492
|
+
meta: any;
|
|
6493
|
+
}>;
|
|
6494
|
+
delete: _trpc_server.TRPCMutationProcedure<{
|
|
6495
|
+
input: {
|
|
6496
|
+
id: string;
|
|
6497
|
+
};
|
|
6498
|
+
output: {
|
|
6499
|
+
group: {
|
|
6500
|
+
id: string;
|
|
6501
|
+
createdAt: Date;
|
|
6502
|
+
name: string;
|
|
6503
|
+
updatedAt: Date;
|
|
6504
|
+
identityPubKey: string;
|
|
6505
|
+
ownerPubKey: string;
|
|
6506
|
+
organizationId: string | null;
|
|
6507
|
+
applicationId: string | null;
|
|
6508
|
+
initiatorAppId: string;
|
|
6509
|
+
initiatorUserId: string;
|
|
6510
|
+
};
|
|
6511
|
+
};
|
|
6512
|
+
meta: any;
|
|
6513
|
+
}>;
|
|
6514
|
+
get: _trpc_server.TRPCQueryProcedure<{
|
|
6515
|
+
input: {
|
|
6516
|
+
id: string;
|
|
6517
|
+
};
|
|
6518
|
+
output: {
|
|
6519
|
+
group: {
|
|
6520
|
+
id: string;
|
|
6521
|
+
name: string;
|
|
6522
|
+
};
|
|
6523
|
+
};
|
|
6524
|
+
meta: any;
|
|
6525
|
+
}>;
|
|
6526
|
+
getMany: _trpc_server.TRPCQueryProcedure<{
|
|
6527
|
+
input: {
|
|
6528
|
+
ids: string[];
|
|
6529
|
+
};
|
|
6530
|
+
output: {
|
|
6531
|
+
groups: {
|
|
6532
|
+
id: string;
|
|
6533
|
+
name: string;
|
|
6534
|
+
}[];
|
|
6535
|
+
};
|
|
6536
|
+
meta: any;
|
|
6537
|
+
}>;
|
|
6538
|
+
transferOwnership: _trpc_server.TRPCMutationProcedure<{
|
|
6539
|
+
input: {
|
|
6540
|
+
id: string;
|
|
6541
|
+
pubKey: string;
|
|
6542
|
+
};
|
|
6543
|
+
output: {
|
|
6544
|
+
group: {
|
|
6545
|
+
id: string;
|
|
6546
|
+
createdAt: Date;
|
|
6547
|
+
name: string;
|
|
6548
|
+
updatedAt: Date;
|
|
6549
|
+
identityPubKey: string;
|
|
6550
|
+
ownerPubKey: string;
|
|
6551
|
+
organizationId: string | null;
|
|
6552
|
+
applicationId: string | null;
|
|
6553
|
+
initiatorAppId: string;
|
|
6554
|
+
initiatorUserId: string;
|
|
6555
|
+
};
|
|
6556
|
+
};
|
|
6557
|
+
meta: any;
|
|
6558
|
+
}>;
|
|
6559
|
+
updateMember: _trpc_server.TRPCMutationProcedure<{
|
|
6560
|
+
input: {
|
|
6561
|
+
id: string;
|
|
6562
|
+
pubKey: string;
|
|
6563
|
+
role: "ADMIN" | "MEMBER";
|
|
6564
|
+
};
|
|
6565
|
+
output: {
|
|
6566
|
+
member: {
|
|
6567
|
+
createdAt: Date;
|
|
6568
|
+
role: "ADMIN" | "MEMBER";
|
|
6569
|
+
groupId: string;
|
|
6570
|
+
identityPubKey: string;
|
|
6571
|
+
sharedByPubKey: string;
|
|
6572
|
+
encPriv: string;
|
|
6573
|
+
initiatorAppId: string;
|
|
6574
|
+
initiatorUserId: string;
|
|
6575
|
+
};
|
|
6576
|
+
};
|
|
6577
|
+
meta: any;
|
|
6578
|
+
}>;
|
|
6579
|
+
update: _trpc_server.TRPCMutationProcedure<{
|
|
6580
|
+
input: {
|
|
6581
|
+
id: string;
|
|
6582
|
+
name: string;
|
|
6583
|
+
};
|
|
6584
|
+
output: {
|
|
6585
|
+
group: {
|
|
6586
|
+
id: string;
|
|
6587
|
+
createdAt: Date;
|
|
6588
|
+
name: string;
|
|
6589
|
+
updatedAt: Date;
|
|
6590
|
+
identityPubKey: string;
|
|
6591
|
+
ownerPubKey: string;
|
|
6592
|
+
organizationId: string | null;
|
|
6593
|
+
applicationId: string | null;
|
|
6594
|
+
initiatorAppId: string;
|
|
6595
|
+
initiatorUserId: string;
|
|
6596
|
+
};
|
|
6597
|
+
};
|
|
6598
|
+
meta: any;
|
|
6599
|
+
}>;
|
|
6600
|
+
}>>;
|
|
6410
6601
|
}>>;
|
|
6411
6602
|
type AppRouter = typeof appRouter;
|
|
6412
6603
|
|