@secrecy/lib 1.73.7 → 1.74.0-feat-groups-identity.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/base-client.js +4 -2
- package/dist/lib/client/SecrecyAppClient.js +13 -17
- package/dist/lib/client/SecrecyCloudClient.js +129 -137
- package/dist/lib/client/SecrecyDbClient.js +3 -7
- package/dist/lib/client/SecrecyMailClient.js +38 -48
- package/dist/lib/client/SecrecyOrganizationClient.js +10 -12
- package/dist/lib/client/SecrecyPayClient.js +1 -5
- package/dist/lib/client/SecrecyPseudonymClient.js +4 -8
- package/dist/lib/client/SecrecyUserClient.js +11 -11
- package/dist/lib/client/SecrecyWalletClient.js +0 -2
- package/dist/lib/client/convert/data.js +4 -4
- package/dist/lib/client/convert/mail.js +5 -6
- package/dist/lib/client/convert/node.js +46 -34
- package/dist/lib/client/helpers.js +16 -7
- package/dist/lib/client/index.js +45 -12
- package/dist/lib/client/storage.js +3 -2
- package/dist/lib/client/types/identity.js +18 -0
- package/dist/lib/client/types/index.js +3 -7
- package/dist/lib/index.js +1 -0
- package/dist/types/client/SecrecyAppClient.d.ts +2 -3
- package/dist/types/client/SecrecyCloudClient.d.ts +18 -18
- package/dist/types/client/SecrecyDbClient.d.ts +1 -3
- package/dist/types/client/SecrecyMailClient.d.ts +2 -3
- package/dist/types/client/SecrecyOrganizationClient.d.ts +2 -3
- package/dist/types/client/SecrecyPayClient.d.ts +1 -3
- package/dist/types/client/SecrecyPseudonymClient.d.ts +2 -3
- package/dist/types/client/SecrecyUserClient.d.ts +2 -3
- package/dist/types/client/convert/data.d.ts +3 -3
- package/dist/types/client/convert/mail.d.ts +3 -5
- package/dist/types/client/convert/node.d.ts +5 -5
- package/dist/types/client/index.d.ts +9 -2
- package/dist/types/client/storage.d.ts +3 -2
- package/dist/types/client/types/identity.d.ts +29 -0
- package/dist/types/client/types/index.d.ts +13 -9
- package/dist/types/client/types/mail.d.ts +2 -1
- package/dist/types/client/types/node.d.ts +12 -9
- package/dist/types/client/types/user.d.ts +15 -0
- package/dist/types/client.d.ts +679 -513
- package/dist/types/crypto/index.d.ts +3 -3
- package/dist/types/index.d.ts +2 -1
- package/package.json +2 -2
package/dist/types/client.d.ts
CHANGED
|
@@ -88,7 +88,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
88
88
|
metrics: import("@trpc/server").TRPCQueryProcedure<{
|
|
89
89
|
input: {
|
|
90
90
|
appId?: string | undefined;
|
|
91
|
-
}
|
|
91
|
+
};
|
|
92
92
|
output: {
|
|
93
93
|
hasDatabase: boolean;
|
|
94
94
|
developers: number;
|
|
@@ -102,7 +102,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
102
102
|
quotas: import("@trpc/server").TRPCQueryProcedure<{
|
|
103
103
|
input: {
|
|
104
104
|
appId?: string | undefined;
|
|
105
|
-
}
|
|
105
|
+
};
|
|
106
106
|
output: {
|
|
107
107
|
id: string;
|
|
108
108
|
devs: bigint | null;
|
|
@@ -360,7 +360,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
360
360
|
};
|
|
361
361
|
events: {
|
|
362
362
|
id: string;
|
|
363
|
-
|
|
363
|
+
dataReportUserId: string;
|
|
364
364
|
type: "delete" | "read" | "add";
|
|
365
365
|
date: Date;
|
|
366
366
|
reportedDataId: string;
|
|
@@ -791,6 +791,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
791
791
|
cloud: import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
792
792
|
addDataToHistory: import("@trpc/server").TRPCMutationProcedure<{
|
|
793
793
|
input: {
|
|
794
|
+
fromPubKey?: string | null | undefined;
|
|
794
795
|
dataId: string;
|
|
795
796
|
nodeId: string;
|
|
796
797
|
};
|
|
@@ -806,13 +807,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
806
807
|
currentDataId: string | null;
|
|
807
808
|
} & {
|
|
808
809
|
owner: {
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
avatar: string | null;
|
|
813
|
-
isSearchable: boolean;
|
|
810
|
+
userId: string;
|
|
811
|
+
orgId: string;
|
|
812
|
+
appId: string;
|
|
814
813
|
};
|
|
815
|
-
|
|
814
|
+
accesses: {
|
|
816
815
|
rights: "delete" | "read" | "write";
|
|
817
816
|
nameKey: string | null;
|
|
818
817
|
isRoot: boolean;
|
|
@@ -821,21 +820,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
821
820
|
delAccess: "delete" | "read" | "write" | null;
|
|
822
821
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
823
822
|
sharedByPubKey: string;
|
|
823
|
+
identityPubKey: string;
|
|
824
|
+
}[];
|
|
825
|
+
permissions: {
|
|
826
|
+
rights: "delete" | "read" | "write";
|
|
827
|
+
} & {
|
|
828
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
829
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
830
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
831
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
824
832
|
};
|
|
825
|
-
|
|
826
|
-
firstname: string;
|
|
827
|
-
lastname: string;
|
|
828
|
-
id: string;
|
|
829
|
-
avatar: string | null;
|
|
830
|
-
isSearchable: boolean;
|
|
831
|
-
}, {
|
|
833
|
+
identities: Record<string, {
|
|
832
834
|
rights: "delete" | "read" | "write";
|
|
833
835
|
} & {
|
|
834
|
-
addAccess
|
|
835
|
-
sharingAddAccess
|
|
836
|
-
delAccess
|
|
837
|
-
sharingDelAccess
|
|
838
|
-
}
|
|
836
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
837
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
838
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
839
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
840
|
+
}>;
|
|
839
841
|
} & {
|
|
840
842
|
sizes: {
|
|
841
843
|
size: bigint;
|
|
@@ -854,13 +856,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
854
856
|
currentDataId: string | null;
|
|
855
857
|
} & {
|
|
856
858
|
owner: {
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
avatar: string | null;
|
|
861
|
-
isSearchable: boolean;
|
|
859
|
+
userId: string;
|
|
860
|
+
orgId: string;
|
|
861
|
+
appId: string;
|
|
862
862
|
};
|
|
863
|
-
|
|
863
|
+
accesses: {
|
|
864
864
|
rights: "delete" | "read" | "write";
|
|
865
865
|
nameKey: string | null;
|
|
866
866
|
isRoot: boolean;
|
|
@@ -869,21 +869,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
869
869
|
delAccess: "delete" | "read" | "write" | null;
|
|
870
870
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
871
871
|
sharedByPubKey: string;
|
|
872
|
+
identityPubKey: string;
|
|
873
|
+
}[];
|
|
874
|
+
permissions: {
|
|
875
|
+
rights: "delete" | "read" | "write";
|
|
876
|
+
} & {
|
|
877
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
878
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
879
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
880
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
872
881
|
};
|
|
873
|
-
|
|
874
|
-
firstname: string;
|
|
875
|
-
lastname: string;
|
|
876
|
-
id: string;
|
|
877
|
-
avatar: string | null;
|
|
878
|
-
isSearchable: boolean;
|
|
879
|
-
}, {
|
|
882
|
+
identities: Record<string, {
|
|
880
883
|
rights: "delete" | "read" | "write";
|
|
881
884
|
} & {
|
|
882
|
-
addAccess
|
|
883
|
-
sharingAddAccess
|
|
884
|
-
delAccess
|
|
885
|
-
sharingDelAccess
|
|
886
|
-
}
|
|
885
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
886
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
887
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
888
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
889
|
+
}>;
|
|
887
890
|
}) | null;
|
|
888
891
|
children: ({
|
|
889
892
|
id: string;
|
|
@@ -897,13 +900,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
897
900
|
currentDataId: string | null;
|
|
898
901
|
} & {
|
|
899
902
|
owner: {
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
avatar: string | null;
|
|
904
|
-
isSearchable: boolean;
|
|
903
|
+
userId: string;
|
|
904
|
+
orgId: string;
|
|
905
|
+
appId: string;
|
|
905
906
|
};
|
|
906
|
-
|
|
907
|
+
accesses: {
|
|
907
908
|
rights: "delete" | "read" | "write";
|
|
908
909
|
nameKey: string | null;
|
|
909
910
|
isRoot: boolean;
|
|
@@ -912,21 +913,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
912
913
|
delAccess: "delete" | "read" | "write" | null;
|
|
913
914
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
914
915
|
sharedByPubKey: string;
|
|
916
|
+
identityPubKey: string;
|
|
917
|
+
}[];
|
|
918
|
+
permissions: {
|
|
919
|
+
rights: "delete" | "read" | "write";
|
|
920
|
+
} & {
|
|
921
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
922
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
923
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
924
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
915
925
|
};
|
|
916
|
-
|
|
917
|
-
firstname: string;
|
|
918
|
-
lastname: string;
|
|
919
|
-
id: string;
|
|
920
|
-
avatar: string | null;
|
|
921
|
-
isSearchable: boolean;
|
|
922
|
-
}, {
|
|
926
|
+
identities: Record<string, {
|
|
923
927
|
rights: "delete" | "read" | "write";
|
|
924
928
|
} & {
|
|
925
|
-
addAccess
|
|
926
|
-
sharingAddAccess
|
|
927
|
-
delAccess
|
|
928
|
-
sharingDelAccess
|
|
929
|
-
}
|
|
929
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
930
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
931
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
932
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
933
|
+
}>;
|
|
930
934
|
} & {
|
|
931
935
|
sizes: {
|
|
932
936
|
size: bigint;
|
|
@@ -950,6 +954,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
950
954
|
createdByOrgId: string | null;
|
|
951
955
|
access: {
|
|
952
956
|
key: string | null;
|
|
957
|
+
identityPubKey: string;
|
|
953
958
|
sharedByPubKey: string;
|
|
954
959
|
};
|
|
955
960
|
} | null;
|
|
@@ -970,13 +975,15 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
970
975
|
createdByOrgId: string | null;
|
|
971
976
|
access: {
|
|
972
977
|
key: string | null;
|
|
978
|
+
identityPubKey: string;
|
|
973
979
|
sharedByPubKey: string;
|
|
974
980
|
};
|
|
975
981
|
}[];
|
|
976
982
|
breadcrumb: {
|
|
977
983
|
id: string;
|
|
978
984
|
name: string;
|
|
979
|
-
|
|
985
|
+
identityPubKey: string;
|
|
986
|
+
sharedByPubKey: string;
|
|
980
987
|
nameKey: string | null;
|
|
981
988
|
}[];
|
|
982
989
|
};
|
|
@@ -984,9 +991,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
984
991
|
}>;
|
|
985
992
|
deleteData: import("@trpc/server").TRPCMutationProcedure<{
|
|
986
993
|
input: {
|
|
994
|
+
fromPubKey?: string | null | undefined;
|
|
987
995
|
dataId: string;
|
|
988
996
|
nodeId: string;
|
|
989
|
-
} & {
|
|
990
997
|
appId?: string | null | undefined;
|
|
991
998
|
};
|
|
992
999
|
output: {
|
|
@@ -1015,6 +1022,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1015
1022
|
createdByOrgId: string | null;
|
|
1016
1023
|
access: {
|
|
1017
1024
|
key: string | null;
|
|
1025
|
+
identityPubKey: string;
|
|
1018
1026
|
sharedByPubKey: string;
|
|
1019
1027
|
};
|
|
1020
1028
|
};
|
|
@@ -1185,6 +1193,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1185
1193
|
}>;
|
|
1186
1194
|
saveInCloud: import("@trpc/server").TRPCMutationProcedure<{
|
|
1187
1195
|
input: {
|
|
1196
|
+
fromPubKey?: string | null | undefined;
|
|
1188
1197
|
dataId: string;
|
|
1189
1198
|
nodeId: string | null;
|
|
1190
1199
|
key: string | null;
|
|
@@ -1203,13 +1212,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1203
1212
|
currentDataId: string | null;
|
|
1204
1213
|
} & {
|
|
1205
1214
|
owner: {
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
avatar: string | null;
|
|
1210
|
-
isSearchable: boolean;
|
|
1215
|
+
userId: string;
|
|
1216
|
+
orgId: string;
|
|
1217
|
+
appId: string;
|
|
1211
1218
|
};
|
|
1212
|
-
|
|
1219
|
+
accesses: {
|
|
1213
1220
|
rights: "delete" | "read" | "write";
|
|
1214
1221
|
nameKey: string | null;
|
|
1215
1222
|
isRoot: boolean;
|
|
@@ -1218,21 +1225,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1218
1225
|
delAccess: "delete" | "read" | "write" | null;
|
|
1219
1226
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1220
1227
|
sharedByPubKey: string;
|
|
1228
|
+
identityPubKey: string;
|
|
1229
|
+
}[];
|
|
1230
|
+
permissions: {
|
|
1231
|
+
rights: "delete" | "read" | "write";
|
|
1232
|
+
} & {
|
|
1233
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1234
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1235
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1236
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1221
1237
|
};
|
|
1222
|
-
|
|
1223
|
-
firstname: string;
|
|
1224
|
-
lastname: string;
|
|
1225
|
-
id: string;
|
|
1226
|
-
avatar: string | null;
|
|
1227
|
-
isSearchable: boolean;
|
|
1228
|
-
}, {
|
|
1238
|
+
identities: Record<string, {
|
|
1229
1239
|
rights: "delete" | "read" | "write";
|
|
1230
1240
|
} & {
|
|
1231
|
-
addAccess
|
|
1232
|
-
sharingAddAccess
|
|
1233
|
-
delAccess
|
|
1234
|
-
sharingDelAccess
|
|
1235
|
-
}
|
|
1241
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1242
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1243
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1244
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1245
|
+
}>;
|
|
1236
1246
|
} & {
|
|
1237
1247
|
sizes: {
|
|
1238
1248
|
size: bigint;
|
|
@@ -1251,13 +1261,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1251
1261
|
currentDataId: string | null;
|
|
1252
1262
|
} & {
|
|
1253
1263
|
owner: {
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
avatar: string | null;
|
|
1258
|
-
isSearchable: boolean;
|
|
1264
|
+
userId: string;
|
|
1265
|
+
orgId: string;
|
|
1266
|
+
appId: string;
|
|
1259
1267
|
};
|
|
1260
|
-
|
|
1268
|
+
accesses: {
|
|
1261
1269
|
rights: "delete" | "read" | "write";
|
|
1262
1270
|
nameKey: string | null;
|
|
1263
1271
|
isRoot: boolean;
|
|
@@ -1266,21 +1274,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1266
1274
|
delAccess: "delete" | "read" | "write" | null;
|
|
1267
1275
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1268
1276
|
sharedByPubKey: string;
|
|
1277
|
+
identityPubKey: string;
|
|
1278
|
+
}[];
|
|
1279
|
+
permissions: {
|
|
1280
|
+
rights: "delete" | "read" | "write";
|
|
1281
|
+
} & {
|
|
1282
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1283
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1284
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1285
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1269
1286
|
};
|
|
1270
|
-
|
|
1271
|
-
firstname: string;
|
|
1272
|
-
lastname: string;
|
|
1273
|
-
id: string;
|
|
1274
|
-
avatar: string | null;
|
|
1275
|
-
isSearchable: boolean;
|
|
1276
|
-
}, {
|
|
1287
|
+
identities: Record<string, {
|
|
1277
1288
|
rights: "delete" | "read" | "write";
|
|
1278
1289
|
} & {
|
|
1279
|
-
addAccess
|
|
1280
|
-
sharingAddAccess
|
|
1281
|
-
delAccess
|
|
1282
|
-
sharingDelAccess
|
|
1283
|
-
}
|
|
1290
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1291
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1292
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1293
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1294
|
+
}>;
|
|
1284
1295
|
}) | null;
|
|
1285
1296
|
children: ({
|
|
1286
1297
|
id: string;
|
|
@@ -1294,13 +1305,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1294
1305
|
currentDataId: string | null;
|
|
1295
1306
|
} & {
|
|
1296
1307
|
owner: {
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
avatar: string | null;
|
|
1301
|
-
isSearchable: boolean;
|
|
1308
|
+
userId: string;
|
|
1309
|
+
orgId: string;
|
|
1310
|
+
appId: string;
|
|
1302
1311
|
};
|
|
1303
|
-
|
|
1312
|
+
accesses: {
|
|
1304
1313
|
rights: "delete" | "read" | "write";
|
|
1305
1314
|
nameKey: string | null;
|
|
1306
1315
|
isRoot: boolean;
|
|
@@ -1309,21 +1318,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1309
1318
|
delAccess: "delete" | "read" | "write" | null;
|
|
1310
1319
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1311
1320
|
sharedByPubKey: string;
|
|
1321
|
+
identityPubKey: string;
|
|
1322
|
+
}[];
|
|
1323
|
+
permissions: {
|
|
1324
|
+
rights: "delete" | "read" | "write";
|
|
1325
|
+
} & {
|
|
1326
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1327
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1328
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1329
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1312
1330
|
};
|
|
1313
|
-
|
|
1314
|
-
firstname: string;
|
|
1315
|
-
lastname: string;
|
|
1316
|
-
id: string;
|
|
1317
|
-
avatar: string | null;
|
|
1318
|
-
isSearchable: boolean;
|
|
1319
|
-
}, {
|
|
1331
|
+
identities: Record<string, {
|
|
1320
1332
|
rights: "delete" | "read" | "write";
|
|
1321
1333
|
} & {
|
|
1322
|
-
addAccess
|
|
1323
|
-
sharingAddAccess
|
|
1324
|
-
delAccess
|
|
1325
|
-
sharingDelAccess
|
|
1326
|
-
}
|
|
1334
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1335
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1336
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1337
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1338
|
+
}>;
|
|
1327
1339
|
} & {
|
|
1328
1340
|
sizes: {
|
|
1329
1341
|
size: bigint;
|
|
@@ -1347,6 +1359,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1347
1359
|
createdByOrgId: string | null;
|
|
1348
1360
|
access: {
|
|
1349
1361
|
key: string | null;
|
|
1362
|
+
identityPubKey: string;
|
|
1350
1363
|
sharedByPubKey: string;
|
|
1351
1364
|
};
|
|
1352
1365
|
} | null;
|
|
@@ -1367,13 +1380,15 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1367
1380
|
createdByOrgId: string | null;
|
|
1368
1381
|
access: {
|
|
1369
1382
|
key: string | null;
|
|
1383
|
+
identityPubKey: string;
|
|
1370
1384
|
sharedByPubKey: string;
|
|
1371
1385
|
};
|
|
1372
1386
|
}[];
|
|
1373
1387
|
breadcrumb: {
|
|
1374
1388
|
id: string;
|
|
1375
1389
|
name: string;
|
|
1376
|
-
|
|
1390
|
+
identityPubKey: string;
|
|
1391
|
+
sharedByPubKey: string;
|
|
1377
1392
|
nameKey: string | null;
|
|
1378
1393
|
}[];
|
|
1379
1394
|
};
|
|
@@ -1452,10 +1467,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1452
1467
|
}>;
|
|
1453
1468
|
shareDataInHistory: import("@trpc/server").TRPCMutationProcedure<{
|
|
1454
1469
|
input: {
|
|
1470
|
+
fromPubKey?: string | null | undefined;
|
|
1455
1471
|
dataId: string;
|
|
1456
1472
|
nodeId: string;
|
|
1457
1473
|
users: {
|
|
1458
|
-
|
|
1474
|
+
pubKey: string;
|
|
1459
1475
|
key: string | null;
|
|
1460
1476
|
}[];
|
|
1461
1477
|
};
|
|
@@ -1702,55 +1718,58 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1702
1718
|
}>;
|
|
1703
1719
|
checkAccesses: import("@trpc/server").TRPCQueryProcedure<{
|
|
1704
1720
|
input: {
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1721
|
+
fromPubKey?: string | null | undefined;
|
|
1722
|
+
accesses: {
|
|
1723
|
+
pubKey: string;
|
|
1724
|
+
nodes: ({
|
|
1709
1725
|
id: string;
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1726
|
+
data: {
|
|
1727
|
+
id: string;
|
|
1728
|
+
key?: string | null | undefined;
|
|
1729
|
+
}[];
|
|
1730
|
+
nameKey?: string | null | undefined;
|
|
1731
|
+
} & {
|
|
1732
|
+
rights: "delete" | "read" | "write";
|
|
1733
|
+
} & {
|
|
1734
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1735
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1736
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1737
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1738
|
+
})[];
|
|
1739
|
+
}[];
|
|
1740
|
+
};
|
|
1722
1741
|
output: {
|
|
1723
1742
|
isMatching: true;
|
|
1724
1743
|
} | {
|
|
1725
1744
|
isMatching: false;
|
|
1726
1745
|
details: {
|
|
1727
1746
|
missingNodeAccesses: {
|
|
1728
|
-
|
|
1747
|
+
pubKey: string;
|
|
1729
1748
|
nodeId: string;
|
|
1730
1749
|
}[];
|
|
1731
1750
|
missingDataAccesses: {
|
|
1732
|
-
|
|
1751
|
+
pubKey: string;
|
|
1733
1752
|
nodeId: string;
|
|
1734
1753
|
dataId: string;
|
|
1735
1754
|
}[];
|
|
1736
1755
|
invalidRightsAccesses: {
|
|
1737
|
-
|
|
1756
|
+
pubKey: string;
|
|
1738
1757
|
nodeId: string;
|
|
1739
1758
|
expect: {
|
|
1740
1759
|
rights: "delete" | "read" | "write";
|
|
1741
1760
|
} & {
|
|
1742
|
-
addAccess
|
|
1743
|
-
sharingAddAccess
|
|
1744
|
-
delAccess
|
|
1745
|
-
sharingDelAccess
|
|
1761
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1762
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1763
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1764
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1746
1765
|
};
|
|
1747
1766
|
current: {
|
|
1748
1767
|
rights: "delete" | "read" | "write";
|
|
1749
1768
|
} & {
|
|
1750
|
-
addAccess
|
|
1751
|
-
sharingAddAccess
|
|
1752
|
-
delAccess
|
|
1753
|
-
sharingDelAccess
|
|
1769
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1770
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1771
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1772
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1754
1773
|
};
|
|
1755
1774
|
}[];
|
|
1756
1775
|
};
|
|
@@ -1759,6 +1778,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1759
1778
|
}>;
|
|
1760
1779
|
createFolder: import("@trpc/server").TRPCMutationProcedure<{
|
|
1761
1780
|
input: {
|
|
1781
|
+
fromPubKey?: string | null | undefined;
|
|
1762
1782
|
nameKey: string | null;
|
|
1763
1783
|
name: string;
|
|
1764
1784
|
parentId: string | null;
|
|
@@ -1775,13 +1795,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1775
1795
|
currentDataId: string | null;
|
|
1776
1796
|
} & {
|
|
1777
1797
|
owner: {
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
avatar: string | null;
|
|
1782
|
-
isSearchable: boolean;
|
|
1798
|
+
userId: string;
|
|
1799
|
+
orgId: string;
|
|
1800
|
+
appId: string;
|
|
1783
1801
|
};
|
|
1784
|
-
|
|
1802
|
+
accesses: {
|
|
1785
1803
|
rights: "delete" | "read" | "write";
|
|
1786
1804
|
nameKey: string | null;
|
|
1787
1805
|
isRoot: boolean;
|
|
@@ -1790,21 +1808,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1790
1808
|
delAccess: "delete" | "read" | "write" | null;
|
|
1791
1809
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1792
1810
|
sharedByPubKey: string;
|
|
1811
|
+
identityPubKey: string;
|
|
1812
|
+
}[];
|
|
1813
|
+
permissions: {
|
|
1814
|
+
rights: "delete" | "read" | "write";
|
|
1815
|
+
} & {
|
|
1816
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1817
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1818
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1819
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1793
1820
|
};
|
|
1794
|
-
|
|
1795
|
-
firstname: string;
|
|
1796
|
-
lastname: string;
|
|
1797
|
-
id: string;
|
|
1798
|
-
avatar: string | null;
|
|
1799
|
-
isSearchable: boolean;
|
|
1800
|
-
}, {
|
|
1821
|
+
identities: Record<string, {
|
|
1801
1822
|
rights: "delete" | "read" | "write";
|
|
1802
1823
|
} & {
|
|
1803
|
-
addAccess
|
|
1804
|
-
sharingAddAccess
|
|
1805
|
-
delAccess
|
|
1806
|
-
sharingDelAccess
|
|
1807
|
-
}
|
|
1824
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1825
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1826
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1827
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1828
|
+
}>;
|
|
1808
1829
|
} & {
|
|
1809
1830
|
sizes: {
|
|
1810
1831
|
size: bigint;
|
|
@@ -1823,13 +1844,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1823
1844
|
currentDataId: string | null;
|
|
1824
1845
|
} & {
|
|
1825
1846
|
owner: {
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
avatar: string | null;
|
|
1830
|
-
isSearchable: boolean;
|
|
1847
|
+
userId: string;
|
|
1848
|
+
orgId: string;
|
|
1849
|
+
appId: string;
|
|
1831
1850
|
};
|
|
1832
|
-
|
|
1851
|
+
accesses: {
|
|
1833
1852
|
rights: "delete" | "read" | "write";
|
|
1834
1853
|
nameKey: string | null;
|
|
1835
1854
|
isRoot: boolean;
|
|
@@ -1838,21 +1857,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1838
1857
|
delAccess: "delete" | "read" | "write" | null;
|
|
1839
1858
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1840
1859
|
sharedByPubKey: string;
|
|
1860
|
+
identityPubKey: string;
|
|
1861
|
+
}[];
|
|
1862
|
+
permissions: {
|
|
1863
|
+
rights: "delete" | "read" | "write";
|
|
1864
|
+
} & {
|
|
1865
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1866
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1867
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1868
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1841
1869
|
};
|
|
1842
|
-
|
|
1843
|
-
firstname: string;
|
|
1844
|
-
lastname: string;
|
|
1845
|
-
id: string;
|
|
1846
|
-
avatar: string | null;
|
|
1847
|
-
isSearchable: boolean;
|
|
1848
|
-
}, {
|
|
1870
|
+
identities: Record<string, {
|
|
1849
1871
|
rights: "delete" | "read" | "write";
|
|
1850
1872
|
} & {
|
|
1851
|
-
addAccess
|
|
1852
|
-
sharingAddAccess
|
|
1853
|
-
delAccess
|
|
1854
|
-
sharingDelAccess
|
|
1855
|
-
}
|
|
1873
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1874
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1875
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1876
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1877
|
+
}>;
|
|
1856
1878
|
}) | null;
|
|
1857
1879
|
children: ({
|
|
1858
1880
|
id: string;
|
|
@@ -1866,13 +1888,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1866
1888
|
currentDataId: string | null;
|
|
1867
1889
|
} & {
|
|
1868
1890
|
owner: {
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
avatar: string | null;
|
|
1873
|
-
isSearchable: boolean;
|
|
1891
|
+
userId: string;
|
|
1892
|
+
orgId: string;
|
|
1893
|
+
appId: string;
|
|
1874
1894
|
};
|
|
1875
|
-
|
|
1895
|
+
accesses: {
|
|
1876
1896
|
rights: "delete" | "read" | "write";
|
|
1877
1897
|
nameKey: string | null;
|
|
1878
1898
|
isRoot: boolean;
|
|
@@ -1881,21 +1901,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1881
1901
|
delAccess: "delete" | "read" | "write" | null;
|
|
1882
1902
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1883
1903
|
sharedByPubKey: string;
|
|
1904
|
+
identityPubKey: string;
|
|
1905
|
+
}[];
|
|
1906
|
+
permissions: {
|
|
1907
|
+
rights: "delete" | "read" | "write";
|
|
1908
|
+
} & {
|
|
1909
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1910
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1911
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1912
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1884
1913
|
};
|
|
1885
|
-
|
|
1886
|
-
firstname: string;
|
|
1887
|
-
lastname: string;
|
|
1888
|
-
id: string;
|
|
1889
|
-
avatar: string | null;
|
|
1890
|
-
isSearchable: boolean;
|
|
1891
|
-
}, {
|
|
1914
|
+
identities: Record<string, {
|
|
1892
1915
|
rights: "delete" | "read" | "write";
|
|
1893
1916
|
} & {
|
|
1894
|
-
addAccess
|
|
1895
|
-
sharingAddAccess
|
|
1896
|
-
delAccess
|
|
1897
|
-
sharingDelAccess
|
|
1898
|
-
}
|
|
1917
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
1918
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
1919
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
1920
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
1921
|
+
}>;
|
|
1899
1922
|
} & {
|
|
1900
1923
|
sizes: {
|
|
1901
1924
|
size: bigint;
|
|
@@ -1919,6 +1942,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1919
1942
|
createdByOrgId: string | null;
|
|
1920
1943
|
access: {
|
|
1921
1944
|
key: string | null;
|
|
1945
|
+
identityPubKey: string;
|
|
1922
1946
|
sharedByPubKey: string;
|
|
1923
1947
|
};
|
|
1924
1948
|
} | null;
|
|
@@ -1939,13 +1963,15 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1939
1963
|
createdByOrgId: string | null;
|
|
1940
1964
|
access: {
|
|
1941
1965
|
key: string | null;
|
|
1966
|
+
identityPubKey: string;
|
|
1942
1967
|
sharedByPubKey: string;
|
|
1943
1968
|
};
|
|
1944
1969
|
}[];
|
|
1945
1970
|
breadcrumb: {
|
|
1946
1971
|
id: string;
|
|
1947
1972
|
name: string;
|
|
1948
|
-
|
|
1973
|
+
identityPubKey: string;
|
|
1974
|
+
sharedByPubKey: string;
|
|
1949
1975
|
nameKey: string | null;
|
|
1950
1976
|
}[];
|
|
1951
1977
|
};
|
|
@@ -1953,6 +1979,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1953
1979
|
}>;
|
|
1954
1980
|
deleteNodeCloudTrash: import("@trpc/server").TRPCMutationProcedure<{
|
|
1955
1981
|
input: {
|
|
1982
|
+
fromPubKey?: string | null | undefined;
|
|
1956
1983
|
ids: string[];
|
|
1957
1984
|
};
|
|
1958
1985
|
output: {
|
|
@@ -1962,8 +1989,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1962
1989
|
}>;
|
|
1963
1990
|
deleteNodeSharing: import("@trpc/server").TRPCMutationProcedure<{
|
|
1964
1991
|
input: {
|
|
1992
|
+
fromPubKey?: string | null | undefined;
|
|
1965
1993
|
nodeId: string;
|
|
1966
|
-
|
|
1994
|
+
destPubKey: string;
|
|
1967
1995
|
};
|
|
1968
1996
|
output: {
|
|
1969
1997
|
isDeleted: boolean;
|
|
@@ -1972,8 +2000,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1972
2000
|
}>;
|
|
1973
2001
|
deleteNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
1974
2002
|
input: {
|
|
2003
|
+
fromPubKey?: string | null | undefined;
|
|
1975
2004
|
id: string;
|
|
1976
|
-
} & {
|
|
1977
2005
|
force?: boolean | undefined;
|
|
1978
2006
|
appId?: string | null | undefined;
|
|
1979
2007
|
};
|
|
@@ -1984,9 +2012,9 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1984
2012
|
}>;
|
|
1985
2013
|
deleteNodes: import("@trpc/server").TRPCMutationProcedure<{
|
|
1986
2014
|
input: {
|
|
2015
|
+
fromPubKey?: string | null | undefined;
|
|
1987
2016
|
ids: string[];
|
|
1988
2017
|
force?: boolean | undefined;
|
|
1989
|
-
appId?: string | null | undefined;
|
|
1990
2018
|
};
|
|
1991
2019
|
output: {
|
|
1992
2020
|
count: number;
|
|
@@ -1995,6 +2023,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
1995
2023
|
}>;
|
|
1996
2024
|
duplicateNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
1997
2025
|
input: {
|
|
2026
|
+
fromPubKey?: string | null | undefined;
|
|
1998
2027
|
nodeId: string;
|
|
1999
2028
|
folderId: string | null;
|
|
2000
2029
|
name: string | null;
|
|
@@ -2005,7 +2034,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2005
2034
|
meta: any;
|
|
2006
2035
|
}>;
|
|
2007
2036
|
emptyNodeCloudTrash: import("@trpc/server").TRPCMutationProcedure<{
|
|
2008
|
-
input:
|
|
2037
|
+
input: {
|
|
2038
|
+
[x: string]: never;
|
|
2039
|
+
fromPubKey?: string | null | undefined;
|
|
2040
|
+
};
|
|
2009
2041
|
output: {
|
|
2010
2042
|
isCleaned: boolean;
|
|
2011
2043
|
};
|
|
@@ -2013,6 +2045,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2013
2045
|
}>;
|
|
2014
2046
|
moveNodes: import("@trpc/server").TRPCMutationProcedure<{
|
|
2015
2047
|
input: {
|
|
2048
|
+
fromPubKey?: string | null | undefined;
|
|
2016
2049
|
ids: string[];
|
|
2017
2050
|
parentId: string | null;
|
|
2018
2051
|
};
|
|
@@ -2023,39 +2056,44 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2023
2056
|
}>;
|
|
2024
2057
|
nodeAccessById: import("@trpc/server").TRPCQueryProcedure<{
|
|
2025
2058
|
input: {
|
|
2059
|
+
fromPubKey?: string | null | undefined;
|
|
2026
2060
|
id: string;
|
|
2027
2061
|
};
|
|
2028
2062
|
output: {
|
|
2063
|
+
id: string;
|
|
2064
|
+
nodeId: string;
|
|
2065
|
+
rights: "delete" | "read" | "write";
|
|
2029
2066
|
nameKey: string | null;
|
|
2030
2067
|
isRoot: boolean;
|
|
2031
2068
|
createdAt: Date;
|
|
2032
|
-
rights: "delete" | "read" | "write";
|
|
2033
2069
|
addAccess: "delete" | "read" | "write" | null;
|
|
2034
2070
|
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2035
2071
|
delAccess: "delete" | "read" | "write" | null;
|
|
2036
2072
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
nodeId: string;
|
|
2073
|
+
identityPubKey: string;
|
|
2074
|
+
sharedByPubKey: string;
|
|
2075
|
+
initiatorAppId: string;
|
|
2076
|
+
initiatorUserId: string;
|
|
2042
2077
|
};
|
|
2043
2078
|
meta: any;
|
|
2044
2079
|
}>;
|
|
2045
2080
|
nodeBreadcrumbById: import("@trpc/server").TRPCQueryProcedure<{
|
|
2046
2081
|
input: {
|
|
2082
|
+
fromPubKey?: string | null | undefined;
|
|
2047
2083
|
id: string;
|
|
2048
2084
|
};
|
|
2049
2085
|
output: {
|
|
2050
2086
|
id: string;
|
|
2051
2087
|
name: string;
|
|
2052
|
-
|
|
2088
|
+
identityPubKey: string;
|
|
2089
|
+
sharedByPubKey: string;
|
|
2053
2090
|
nameKey: string | null;
|
|
2054
2091
|
}[];
|
|
2055
2092
|
meta: any;
|
|
2056
2093
|
}>;
|
|
2057
2094
|
nodeById: import("@trpc/server").TRPCQueryProcedure<{
|
|
2058
2095
|
input: {
|
|
2096
|
+
fromPubKey?: string | null | undefined;
|
|
2059
2097
|
id?: string | null | undefined;
|
|
2060
2098
|
deleted?: boolean | null | undefined;
|
|
2061
2099
|
};
|
|
@@ -2071,13 +2109,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2071
2109
|
currentDataId: string | null;
|
|
2072
2110
|
} & {
|
|
2073
2111
|
owner: {
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
avatar: string | null;
|
|
2078
|
-
isSearchable: boolean;
|
|
2112
|
+
userId: string;
|
|
2113
|
+
orgId: string;
|
|
2114
|
+
appId: string;
|
|
2079
2115
|
};
|
|
2080
|
-
|
|
2116
|
+
accesses: {
|
|
2081
2117
|
rights: "delete" | "read" | "write";
|
|
2082
2118
|
nameKey: string | null;
|
|
2083
2119
|
isRoot: boolean;
|
|
@@ -2086,21 +2122,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2086
2122
|
delAccess: "delete" | "read" | "write" | null;
|
|
2087
2123
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2088
2124
|
sharedByPubKey: string;
|
|
2125
|
+
identityPubKey: string;
|
|
2126
|
+
}[];
|
|
2127
|
+
permissions: {
|
|
2128
|
+
rights: "delete" | "read" | "write";
|
|
2129
|
+
} & {
|
|
2130
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2131
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2132
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2133
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2089
2134
|
};
|
|
2090
|
-
|
|
2091
|
-
firstname: string;
|
|
2092
|
-
lastname: string;
|
|
2093
|
-
id: string;
|
|
2094
|
-
avatar: string | null;
|
|
2095
|
-
isSearchable: boolean;
|
|
2096
|
-
}, {
|
|
2135
|
+
identities: Record<string, {
|
|
2097
2136
|
rights: "delete" | "read" | "write";
|
|
2098
2137
|
} & {
|
|
2099
|
-
addAccess
|
|
2100
|
-
sharingAddAccess
|
|
2101
|
-
delAccess
|
|
2102
|
-
sharingDelAccess
|
|
2103
|
-
}
|
|
2138
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2139
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2140
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2141
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2142
|
+
}>;
|
|
2104
2143
|
} & {
|
|
2105
2144
|
sizes: {
|
|
2106
2145
|
size: bigint;
|
|
@@ -2111,6 +2150,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2111
2150
|
}>;
|
|
2112
2151
|
nodeFullById: import("@trpc/server").TRPCQueryProcedure<{
|
|
2113
2152
|
input: {
|
|
2153
|
+
fromPubKey?: string | null | undefined;
|
|
2114
2154
|
id?: string | null | undefined;
|
|
2115
2155
|
deleted?: boolean | null | undefined;
|
|
2116
2156
|
};
|
|
@@ -2126,13 +2166,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2126
2166
|
currentDataId: string | null;
|
|
2127
2167
|
} & {
|
|
2128
2168
|
owner: {
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
avatar: string | null;
|
|
2133
|
-
isSearchable: boolean;
|
|
2169
|
+
userId: string;
|
|
2170
|
+
orgId: string;
|
|
2171
|
+
appId: string;
|
|
2134
2172
|
};
|
|
2135
|
-
|
|
2173
|
+
accesses: {
|
|
2136
2174
|
rights: "delete" | "read" | "write";
|
|
2137
2175
|
nameKey: string | null;
|
|
2138
2176
|
isRoot: boolean;
|
|
@@ -2141,21 +2179,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2141
2179
|
delAccess: "delete" | "read" | "write" | null;
|
|
2142
2180
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2143
2181
|
sharedByPubKey: string;
|
|
2182
|
+
identityPubKey: string;
|
|
2183
|
+
}[];
|
|
2184
|
+
permissions: {
|
|
2185
|
+
rights: "delete" | "read" | "write";
|
|
2186
|
+
} & {
|
|
2187
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2188
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2189
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2190
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2144
2191
|
};
|
|
2145
|
-
|
|
2146
|
-
firstname: string;
|
|
2147
|
-
lastname: string;
|
|
2148
|
-
id: string;
|
|
2149
|
-
avatar: string | null;
|
|
2150
|
-
isSearchable: boolean;
|
|
2151
|
-
}, {
|
|
2192
|
+
identities: Record<string, {
|
|
2152
2193
|
rights: "delete" | "read" | "write";
|
|
2153
2194
|
} & {
|
|
2154
|
-
addAccess
|
|
2155
|
-
sharingAddAccess
|
|
2156
|
-
delAccess
|
|
2157
|
-
sharingDelAccess
|
|
2158
|
-
}
|
|
2195
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2196
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2197
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2198
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2199
|
+
}>;
|
|
2159
2200
|
} & {
|
|
2160
2201
|
sizes: {
|
|
2161
2202
|
size: bigint;
|
|
@@ -2174,13 +2215,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2174
2215
|
currentDataId: string | null;
|
|
2175
2216
|
} & {
|
|
2176
2217
|
owner: {
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
avatar: string | null;
|
|
2181
|
-
isSearchable: boolean;
|
|
2218
|
+
userId: string;
|
|
2219
|
+
orgId: string;
|
|
2220
|
+
appId: string;
|
|
2182
2221
|
};
|
|
2183
|
-
|
|
2222
|
+
accesses: {
|
|
2184
2223
|
rights: "delete" | "read" | "write";
|
|
2185
2224
|
nameKey: string | null;
|
|
2186
2225
|
isRoot: boolean;
|
|
@@ -2189,21 +2228,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2189
2228
|
delAccess: "delete" | "read" | "write" | null;
|
|
2190
2229
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2191
2230
|
sharedByPubKey: string;
|
|
2231
|
+
identityPubKey: string;
|
|
2232
|
+
}[];
|
|
2233
|
+
permissions: {
|
|
2234
|
+
rights: "delete" | "read" | "write";
|
|
2235
|
+
} & {
|
|
2236
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2237
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2238
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2239
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2192
2240
|
};
|
|
2193
|
-
|
|
2194
|
-
firstname: string;
|
|
2195
|
-
lastname: string;
|
|
2196
|
-
id: string;
|
|
2197
|
-
avatar: string | null;
|
|
2198
|
-
isSearchable: boolean;
|
|
2199
|
-
}, {
|
|
2241
|
+
identities: Record<string, {
|
|
2200
2242
|
rights: "delete" | "read" | "write";
|
|
2201
2243
|
} & {
|
|
2202
|
-
addAccess
|
|
2203
|
-
sharingAddAccess
|
|
2204
|
-
delAccess
|
|
2205
|
-
sharingDelAccess
|
|
2206
|
-
}
|
|
2244
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2245
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2246
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2247
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2248
|
+
}>;
|
|
2207
2249
|
}) | null;
|
|
2208
2250
|
children: ({
|
|
2209
2251
|
id: string;
|
|
@@ -2217,13 +2259,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2217
2259
|
currentDataId: string | null;
|
|
2218
2260
|
} & {
|
|
2219
2261
|
owner: {
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
avatar: string | null;
|
|
2224
|
-
isSearchable: boolean;
|
|
2262
|
+
userId: string;
|
|
2263
|
+
orgId: string;
|
|
2264
|
+
appId: string;
|
|
2225
2265
|
};
|
|
2226
|
-
|
|
2266
|
+
accesses: {
|
|
2227
2267
|
rights: "delete" | "read" | "write";
|
|
2228
2268
|
nameKey: string | null;
|
|
2229
2269
|
isRoot: boolean;
|
|
@@ -2232,21 +2272,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2232
2272
|
delAccess: "delete" | "read" | "write" | null;
|
|
2233
2273
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2234
2274
|
sharedByPubKey: string;
|
|
2275
|
+
identityPubKey: string;
|
|
2276
|
+
}[];
|
|
2277
|
+
permissions: {
|
|
2278
|
+
rights: "delete" | "read" | "write";
|
|
2279
|
+
} & {
|
|
2280
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2281
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2282
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2283
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2235
2284
|
};
|
|
2236
|
-
|
|
2237
|
-
firstname: string;
|
|
2238
|
-
lastname: string;
|
|
2239
|
-
id: string;
|
|
2240
|
-
avatar: string | null;
|
|
2241
|
-
isSearchable: boolean;
|
|
2242
|
-
}, {
|
|
2285
|
+
identities: Record<string, {
|
|
2243
2286
|
rights: "delete" | "read" | "write";
|
|
2244
2287
|
} & {
|
|
2245
|
-
addAccess
|
|
2246
|
-
sharingAddAccess
|
|
2247
|
-
delAccess
|
|
2248
|
-
sharingDelAccess
|
|
2249
|
-
}
|
|
2288
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2289
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2290
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2291
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2292
|
+
}>;
|
|
2250
2293
|
} & {
|
|
2251
2294
|
sizes: {
|
|
2252
2295
|
size: bigint;
|
|
@@ -2270,6 +2313,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2270
2313
|
createdByOrgId: string | null;
|
|
2271
2314
|
access: {
|
|
2272
2315
|
key: string | null;
|
|
2316
|
+
identityPubKey: string;
|
|
2273
2317
|
sharedByPubKey: string;
|
|
2274
2318
|
};
|
|
2275
2319
|
} | null;
|
|
@@ -2290,13 +2334,15 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2290
2334
|
createdByOrgId: string | null;
|
|
2291
2335
|
access: {
|
|
2292
2336
|
key: string | null;
|
|
2337
|
+
identityPubKey: string;
|
|
2293
2338
|
sharedByPubKey: string;
|
|
2294
2339
|
};
|
|
2295
2340
|
}[];
|
|
2296
2341
|
breadcrumb: {
|
|
2297
2342
|
id: string;
|
|
2298
2343
|
name: string;
|
|
2299
|
-
|
|
2344
|
+
identityPubKey: string;
|
|
2345
|
+
sharedByPubKey: string;
|
|
2300
2346
|
nameKey: string | null;
|
|
2301
2347
|
}[];
|
|
2302
2348
|
};
|
|
@@ -2304,6 +2350,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2304
2350
|
}>;
|
|
2305
2351
|
nodesForEncryption: import("@trpc/server").TRPCQueryProcedure<{
|
|
2306
2352
|
input: {
|
|
2353
|
+
fromPubKey?: string | null | undefined;
|
|
2307
2354
|
ids: string[];
|
|
2308
2355
|
};
|
|
2309
2356
|
output: {
|
|
@@ -2313,12 +2360,14 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2313
2360
|
access: {
|
|
2314
2361
|
nameKey: string;
|
|
2315
2362
|
sharedByPublicKey: string;
|
|
2363
|
+
identityPubKey: string;
|
|
2316
2364
|
};
|
|
2317
2365
|
history: {
|
|
2318
2366
|
id: string;
|
|
2319
2367
|
access: {
|
|
2320
2368
|
key: string;
|
|
2321
2369
|
sharedByPublicKey: string;
|
|
2370
|
+
identityPubKey: string;
|
|
2322
2371
|
};
|
|
2323
2372
|
}[];
|
|
2324
2373
|
}[];
|
|
@@ -2326,6 +2375,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2326
2375
|
}>;
|
|
2327
2376
|
nodeSizeById: import("@trpc/server").TRPCQueryProcedure<{
|
|
2328
2377
|
input: {
|
|
2378
|
+
fromPubKey?: string | null | undefined;
|
|
2329
2379
|
id: string;
|
|
2330
2380
|
};
|
|
2331
2381
|
output: {
|
|
@@ -2335,7 +2385,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2335
2385
|
meta: any;
|
|
2336
2386
|
}>;
|
|
2337
2387
|
nodesDeleted: import("@trpc/server").TRPCQueryProcedure<{
|
|
2338
|
-
input:
|
|
2388
|
+
input: {
|
|
2389
|
+
[x: string]: never;
|
|
2390
|
+
fromPubKey?: string | null | undefined;
|
|
2391
|
+
};
|
|
2339
2392
|
output: ({
|
|
2340
2393
|
id: string;
|
|
2341
2394
|
createdAt: Date;
|
|
@@ -2348,13 +2401,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2348
2401
|
currentDataId: string | null;
|
|
2349
2402
|
} & {
|
|
2350
2403
|
owner: {
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
avatar: string | null;
|
|
2355
|
-
isSearchable: boolean;
|
|
2404
|
+
userId: string;
|
|
2405
|
+
orgId: string;
|
|
2406
|
+
appId: string;
|
|
2356
2407
|
};
|
|
2357
|
-
|
|
2408
|
+
accesses: {
|
|
2358
2409
|
rights: "delete" | "read" | "write";
|
|
2359
2410
|
nameKey: string | null;
|
|
2360
2411
|
isRoot: boolean;
|
|
@@ -2363,26 +2414,30 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2363
2414
|
delAccess: "delete" | "read" | "write" | null;
|
|
2364
2415
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2365
2416
|
sharedByPubKey: string;
|
|
2417
|
+
identityPubKey: string;
|
|
2418
|
+
}[];
|
|
2419
|
+
permissions: {
|
|
2420
|
+
rights: "delete" | "read" | "write";
|
|
2421
|
+
} & {
|
|
2422
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2423
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2424
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2425
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2366
2426
|
};
|
|
2367
|
-
|
|
2368
|
-
firstname: string;
|
|
2369
|
-
lastname: string;
|
|
2370
|
-
id: string;
|
|
2371
|
-
avatar: string | null;
|
|
2372
|
-
isSearchable: boolean;
|
|
2373
|
-
}, {
|
|
2427
|
+
identities: Record<string, {
|
|
2374
2428
|
rights: "delete" | "read" | "write";
|
|
2375
2429
|
} & {
|
|
2376
|
-
addAccess
|
|
2377
|
-
sharingAddAccess
|
|
2378
|
-
delAccess
|
|
2379
|
-
sharingDelAccess
|
|
2380
|
-
}
|
|
2430
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2431
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2432
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2433
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2434
|
+
}>;
|
|
2381
2435
|
})[];
|
|
2382
2436
|
meta: any;
|
|
2383
2437
|
}>;
|
|
2384
2438
|
nodesSharedWithMe: import("@trpc/server").TRPCQueryProcedure<{
|
|
2385
2439
|
input: {
|
|
2440
|
+
fromPubKey?: string | null | undefined;
|
|
2386
2441
|
type: "FILE" | "FOLDER";
|
|
2387
2442
|
};
|
|
2388
2443
|
output: ({
|
|
@@ -2397,13 +2452,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2397
2452
|
currentDataId: string | null;
|
|
2398
2453
|
} & {
|
|
2399
2454
|
owner: {
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
avatar: string | null;
|
|
2404
|
-
isSearchable: boolean;
|
|
2455
|
+
userId: string;
|
|
2456
|
+
orgId: string;
|
|
2457
|
+
appId: string;
|
|
2405
2458
|
};
|
|
2406
|
-
|
|
2459
|
+
accesses: {
|
|
2407
2460
|
rights: "delete" | "read" | "write";
|
|
2408
2461
|
nameKey: string | null;
|
|
2409
2462
|
isRoot: boolean;
|
|
@@ -2412,26 +2465,31 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2412
2465
|
delAccess: "delete" | "read" | "write" | null;
|
|
2413
2466
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2414
2467
|
sharedByPubKey: string;
|
|
2468
|
+
identityPubKey: string;
|
|
2469
|
+
}[];
|
|
2470
|
+
permissions: {
|
|
2471
|
+
rights: "delete" | "read" | "write";
|
|
2472
|
+
} & {
|
|
2473
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2474
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2475
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2476
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2415
2477
|
};
|
|
2416
|
-
|
|
2417
|
-
firstname: string;
|
|
2418
|
-
lastname: string;
|
|
2419
|
-
id: string;
|
|
2420
|
-
avatar: string | null;
|
|
2421
|
-
isSearchable: boolean;
|
|
2422
|
-
}, {
|
|
2478
|
+
identities: Record<string, {
|
|
2423
2479
|
rights: "delete" | "read" | "write";
|
|
2424
2480
|
} & {
|
|
2425
|
-
addAccess
|
|
2426
|
-
sharingAddAccess
|
|
2427
|
-
delAccess
|
|
2428
|
-
sharingDelAccess
|
|
2429
|
-
}
|
|
2481
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2482
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2483
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2484
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2485
|
+
}>;
|
|
2430
2486
|
})[];
|
|
2431
2487
|
meta: any;
|
|
2432
2488
|
}>;
|
|
2433
2489
|
nodesShared: import("@trpc/server").TRPCQueryProcedure<{
|
|
2434
|
-
input:
|
|
2490
|
+
input: {
|
|
2491
|
+
fromPubKey?: string | null | undefined;
|
|
2492
|
+
};
|
|
2435
2493
|
output: ({
|
|
2436
2494
|
id: string;
|
|
2437
2495
|
createdAt: Date;
|
|
@@ -2444,13 +2502,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2444
2502
|
currentDataId: string | null;
|
|
2445
2503
|
} & {
|
|
2446
2504
|
owner: {
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
avatar: string | null;
|
|
2451
|
-
isSearchable: boolean;
|
|
2505
|
+
userId: string;
|
|
2506
|
+
orgId: string;
|
|
2507
|
+
appId: string;
|
|
2452
2508
|
};
|
|
2453
|
-
|
|
2509
|
+
accesses: {
|
|
2454
2510
|
rights: "delete" | "read" | "write";
|
|
2455
2511
|
nameKey: string | null;
|
|
2456
2512
|
isRoot: boolean;
|
|
@@ -2459,26 +2515,30 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2459
2515
|
delAccess: "delete" | "read" | "write" | null;
|
|
2460
2516
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2461
2517
|
sharedByPubKey: string;
|
|
2518
|
+
identityPubKey: string;
|
|
2519
|
+
}[];
|
|
2520
|
+
permissions: {
|
|
2521
|
+
rights: "delete" | "read" | "write";
|
|
2522
|
+
} & {
|
|
2523
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2524
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2525
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2526
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2462
2527
|
};
|
|
2463
|
-
|
|
2464
|
-
firstname: string;
|
|
2465
|
-
lastname: string;
|
|
2466
|
-
id: string;
|
|
2467
|
-
avatar: string | null;
|
|
2468
|
-
isSearchable: boolean;
|
|
2469
|
-
}, {
|
|
2528
|
+
identities: Record<string, {
|
|
2470
2529
|
rights: "delete" | "read" | "write";
|
|
2471
2530
|
} & {
|
|
2472
|
-
addAccess
|
|
2473
|
-
sharingAddAccess
|
|
2474
|
-
delAccess
|
|
2475
|
-
sharingDelAccess
|
|
2476
|
-
}
|
|
2531
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2532
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2533
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2534
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2535
|
+
}>;
|
|
2477
2536
|
})[];
|
|
2478
2537
|
meta: any;
|
|
2479
2538
|
}>;
|
|
2480
2539
|
recoverNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
2481
2540
|
input: {
|
|
2541
|
+
fromPubKey?: string | null | undefined;
|
|
2482
2542
|
id: string;
|
|
2483
2543
|
};
|
|
2484
2544
|
output: {
|
|
@@ -2488,55 +2548,58 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2488
2548
|
}>;
|
|
2489
2549
|
shareNodeFinish: import("@trpc/server").TRPCMutationProcedure<{
|
|
2490
2550
|
input: {
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2551
|
+
fromPubKey?: string | null | undefined;
|
|
2552
|
+
accesses: {
|
|
2553
|
+
pubKey: string;
|
|
2554
|
+
nodes: ({
|
|
2495
2555
|
id: string;
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2556
|
+
data: {
|
|
2557
|
+
id: string;
|
|
2558
|
+
key?: string | null | undefined;
|
|
2559
|
+
}[];
|
|
2560
|
+
nameKey?: string | null | undefined;
|
|
2561
|
+
} & {
|
|
2562
|
+
rights: "delete" | "read" | "write";
|
|
2563
|
+
} & {
|
|
2564
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2565
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2566
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2567
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2568
|
+
})[];
|
|
2569
|
+
}[];
|
|
2570
|
+
};
|
|
2508
2571
|
output: {
|
|
2509
2572
|
isFinished: true;
|
|
2510
2573
|
} | {
|
|
2511
2574
|
isFinished: false;
|
|
2512
2575
|
details: {
|
|
2513
2576
|
missingNodeAccesses: {
|
|
2514
|
-
|
|
2577
|
+
pubKey: string;
|
|
2515
2578
|
nodeId: string;
|
|
2516
2579
|
}[];
|
|
2517
2580
|
missingDataAccesses: {
|
|
2518
|
-
|
|
2581
|
+
pubKey: string;
|
|
2519
2582
|
nodeId: string;
|
|
2520
2583
|
dataId: string;
|
|
2521
2584
|
}[];
|
|
2522
2585
|
invalidRightsAccesses: {
|
|
2523
|
-
|
|
2586
|
+
pubKey: string;
|
|
2524
2587
|
nodeId: string;
|
|
2525
2588
|
expect: {
|
|
2526
2589
|
rights: "delete" | "read" | "write";
|
|
2527
2590
|
} & {
|
|
2528
|
-
addAccess
|
|
2529
|
-
sharingAddAccess
|
|
2530
|
-
delAccess
|
|
2531
|
-
sharingDelAccess
|
|
2591
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2592
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2593
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2594
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2532
2595
|
};
|
|
2533
2596
|
current: {
|
|
2534
2597
|
rights: "delete" | "read" | "write";
|
|
2535
2598
|
} & {
|
|
2536
|
-
addAccess
|
|
2537
|
-
sharingAddAccess
|
|
2538
|
-
delAccess
|
|
2539
|
-
sharingDelAccess
|
|
2599
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2600
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2601
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2602
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2540
2603
|
};
|
|
2541
2604
|
}[];
|
|
2542
2605
|
};
|
|
@@ -2544,62 +2607,66 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2544
2607
|
meta: any;
|
|
2545
2608
|
}>;
|
|
2546
2609
|
shareNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
2547
|
-
input:
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2610
|
+
input: {
|
|
2611
|
+
fromPubKey?: string | null | undefined;
|
|
2612
|
+
accesses: ({
|
|
2613
|
+
nodeId: string;
|
|
2614
|
+
pubKey: string;
|
|
2615
|
+
} & {
|
|
2616
|
+
rights: "delete" | "read" | "write";
|
|
2617
|
+
} & {
|
|
2618
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2619
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2620
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2621
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2622
|
+
})[] | ({
|
|
2623
|
+
nodeIds: string[];
|
|
2624
|
+
pubKeys: string[];
|
|
2625
|
+
} & {
|
|
2626
|
+
rights: "delete" | "read" | "write";
|
|
2627
|
+
} & {
|
|
2628
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2629
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2630
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2631
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2632
|
+
}) | ({
|
|
2633
|
+
nodeId: string;
|
|
2634
|
+
pubKeys: string[];
|
|
2635
|
+
} & {
|
|
2636
|
+
rights: "delete" | "read" | "write";
|
|
2637
|
+
} & {
|
|
2638
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2639
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2640
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2641
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2642
|
+
}) | ({
|
|
2643
|
+
nodeIds: string[];
|
|
2644
|
+
pubKey: string;
|
|
2645
|
+
} & {
|
|
2646
|
+
rights: "delete" | "read" | "write";
|
|
2647
|
+
} & {
|
|
2648
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2649
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2650
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2651
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2652
|
+
});
|
|
2653
|
+
};
|
|
2588
2654
|
output: Record<string, ({
|
|
2589
2655
|
nodeId: string;
|
|
2590
2656
|
includeKeys: boolean;
|
|
2591
2657
|
} & {
|
|
2592
2658
|
rights: "delete" | "read" | "write";
|
|
2593
2659
|
} & {
|
|
2594
|
-
addAccess
|
|
2595
|
-
sharingAddAccess
|
|
2596
|
-
delAccess
|
|
2597
|
-
sharingDelAccess
|
|
2660
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2661
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2662
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2663
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2598
2664
|
})[]>;
|
|
2599
2665
|
meta: any;
|
|
2600
2666
|
}>;
|
|
2601
2667
|
updateNode: import("@trpc/server").TRPCMutationProcedure<{
|
|
2602
2668
|
input: {
|
|
2669
|
+
fromPubKey?: string | null | undefined;
|
|
2603
2670
|
id: string;
|
|
2604
2671
|
name: string | null;
|
|
2605
2672
|
isFavorite: boolean | null;
|
|
@@ -2617,13 +2684,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2617
2684
|
currentDataId: string | null;
|
|
2618
2685
|
} & {
|
|
2619
2686
|
owner: {
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
avatar: string | null;
|
|
2624
|
-
isSearchable: boolean;
|
|
2687
|
+
userId: string;
|
|
2688
|
+
orgId: string;
|
|
2689
|
+
appId: string;
|
|
2625
2690
|
};
|
|
2626
|
-
|
|
2691
|
+
accesses: {
|
|
2627
2692
|
rights: "delete" | "read" | "write";
|
|
2628
2693
|
nameKey: string | null;
|
|
2629
2694
|
isRoot: boolean;
|
|
@@ -2632,21 +2697,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2632
2697
|
delAccess: "delete" | "read" | "write" | null;
|
|
2633
2698
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2634
2699
|
sharedByPubKey: string;
|
|
2700
|
+
identityPubKey: string;
|
|
2701
|
+
}[];
|
|
2702
|
+
permissions: {
|
|
2703
|
+
rights: "delete" | "read" | "write";
|
|
2704
|
+
} & {
|
|
2705
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2706
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2707
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2708
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2635
2709
|
};
|
|
2636
|
-
|
|
2637
|
-
firstname: string;
|
|
2638
|
-
lastname: string;
|
|
2639
|
-
id: string;
|
|
2640
|
-
avatar: string | null;
|
|
2641
|
-
isSearchable: boolean;
|
|
2642
|
-
}, {
|
|
2710
|
+
identities: Record<string, {
|
|
2643
2711
|
rights: "delete" | "read" | "write";
|
|
2644
2712
|
} & {
|
|
2645
|
-
addAccess
|
|
2646
|
-
sharingAddAccess
|
|
2647
|
-
delAccess
|
|
2648
|
-
sharingDelAccess
|
|
2649
|
-
}
|
|
2713
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2714
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2715
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2716
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2717
|
+
}>;
|
|
2650
2718
|
} & {
|
|
2651
2719
|
sizes: {
|
|
2652
2720
|
size: bigint;
|
|
@@ -2665,13 +2733,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2665
2733
|
currentDataId: string | null;
|
|
2666
2734
|
} & {
|
|
2667
2735
|
owner: {
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
avatar: string | null;
|
|
2672
|
-
isSearchable: boolean;
|
|
2736
|
+
userId: string;
|
|
2737
|
+
orgId: string;
|
|
2738
|
+
appId: string;
|
|
2673
2739
|
};
|
|
2674
|
-
|
|
2740
|
+
accesses: {
|
|
2675
2741
|
rights: "delete" | "read" | "write";
|
|
2676
2742
|
nameKey: string | null;
|
|
2677
2743
|
isRoot: boolean;
|
|
@@ -2680,21 +2746,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2680
2746
|
delAccess: "delete" | "read" | "write" | null;
|
|
2681
2747
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2682
2748
|
sharedByPubKey: string;
|
|
2749
|
+
identityPubKey: string;
|
|
2750
|
+
}[];
|
|
2751
|
+
permissions: {
|
|
2752
|
+
rights: "delete" | "read" | "write";
|
|
2753
|
+
} & {
|
|
2754
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2755
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2756
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2757
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2683
2758
|
};
|
|
2684
|
-
|
|
2685
|
-
firstname: string;
|
|
2686
|
-
lastname: string;
|
|
2687
|
-
id: string;
|
|
2688
|
-
avatar: string | null;
|
|
2689
|
-
isSearchable: boolean;
|
|
2690
|
-
}, {
|
|
2759
|
+
identities: Record<string, {
|
|
2691
2760
|
rights: "delete" | "read" | "write";
|
|
2692
2761
|
} & {
|
|
2693
|
-
addAccess
|
|
2694
|
-
sharingAddAccess
|
|
2695
|
-
delAccess
|
|
2696
|
-
sharingDelAccess
|
|
2697
|
-
}
|
|
2762
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2763
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2764
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2765
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2766
|
+
}>;
|
|
2698
2767
|
}) | null;
|
|
2699
2768
|
children: ({
|
|
2700
2769
|
id: string;
|
|
@@ -2708,13 +2777,11 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2708
2777
|
currentDataId: string | null;
|
|
2709
2778
|
} & {
|
|
2710
2779
|
owner: {
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
avatar: string | null;
|
|
2715
|
-
isSearchable: boolean;
|
|
2780
|
+
userId: string;
|
|
2781
|
+
orgId: string;
|
|
2782
|
+
appId: string;
|
|
2716
2783
|
};
|
|
2717
|
-
|
|
2784
|
+
accesses: {
|
|
2718
2785
|
rights: "delete" | "read" | "write";
|
|
2719
2786
|
nameKey: string | null;
|
|
2720
2787
|
isRoot: boolean;
|
|
@@ -2723,21 +2790,24 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2723
2790
|
delAccess: "delete" | "read" | "write" | null;
|
|
2724
2791
|
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2725
2792
|
sharedByPubKey: string;
|
|
2793
|
+
identityPubKey: string;
|
|
2794
|
+
}[];
|
|
2795
|
+
permissions: {
|
|
2796
|
+
rights: "delete" | "read" | "write";
|
|
2797
|
+
} & {
|
|
2798
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2799
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2800
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2801
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2726
2802
|
};
|
|
2727
|
-
|
|
2728
|
-
firstname: string;
|
|
2729
|
-
lastname: string;
|
|
2730
|
-
id: string;
|
|
2731
|
-
avatar: string | null;
|
|
2732
|
-
isSearchable: boolean;
|
|
2733
|
-
}, {
|
|
2803
|
+
identities: Record<string, {
|
|
2734
2804
|
rights: "delete" | "read" | "write";
|
|
2735
2805
|
} & {
|
|
2736
|
-
addAccess
|
|
2737
|
-
sharingAddAccess
|
|
2738
|
-
delAccess
|
|
2739
|
-
sharingDelAccess
|
|
2740
|
-
}
|
|
2806
|
+
addAccess: "delete" | "read" | "write" | null;
|
|
2807
|
+
sharingAddAccess: "delete" | "read" | "write" | null;
|
|
2808
|
+
delAccess: "delete" | "read" | "write" | null;
|
|
2809
|
+
sharingDelAccess: "delete" | "read" | "write" | null;
|
|
2810
|
+
}>;
|
|
2741
2811
|
} & {
|
|
2742
2812
|
sizes: {
|
|
2743
2813
|
size: bigint;
|
|
@@ -2761,6 +2831,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2761
2831
|
createdByOrgId: string | null;
|
|
2762
2832
|
access: {
|
|
2763
2833
|
key: string | null;
|
|
2834
|
+
identityPubKey: string;
|
|
2764
2835
|
sharedByPubKey: string;
|
|
2765
2836
|
};
|
|
2766
2837
|
} | null;
|
|
@@ -2781,13 +2852,15 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2781
2852
|
createdByOrgId: string | null;
|
|
2782
2853
|
access: {
|
|
2783
2854
|
key: string | null;
|
|
2855
|
+
identityPubKey: string;
|
|
2784
2856
|
sharedByPubKey: string;
|
|
2785
2857
|
};
|
|
2786
2858
|
}[];
|
|
2787
2859
|
breadcrumb: {
|
|
2788
2860
|
id: string;
|
|
2789
2861
|
name: string;
|
|
2790
|
-
|
|
2862
|
+
identityPubKey: string;
|
|
2863
|
+
sharedByPubKey: string;
|
|
2791
2864
|
nameKey: string | null;
|
|
2792
2865
|
}[];
|
|
2793
2866
|
};
|
|
@@ -2944,7 +3017,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2944
3017
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
2945
3018
|
input: {
|
|
2946
3019
|
appId?: string | undefined;
|
|
2947
|
-
} & {
|
|
2948
3020
|
roleName: string;
|
|
2949
3021
|
branchId: string;
|
|
2950
3022
|
};
|
|
@@ -2959,7 +3031,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2959
3031
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
2960
3032
|
input: {
|
|
2961
3033
|
appId?: string | undefined;
|
|
2962
|
-
} & {
|
|
2963
3034
|
roleName: string;
|
|
2964
3035
|
branchId: string;
|
|
2965
3036
|
};
|
|
@@ -2971,7 +3042,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2971
3042
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
2972
3043
|
input: {
|
|
2973
3044
|
appId?: string | undefined;
|
|
2974
|
-
} & {
|
|
2975
3045
|
branchId: string;
|
|
2976
3046
|
roleName: string;
|
|
2977
3047
|
};
|
|
@@ -2986,7 +3056,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
2986
3056
|
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
2987
3057
|
input: {
|
|
2988
3058
|
appId?: string | undefined;
|
|
2989
|
-
} & {
|
|
2990
3059
|
branchId: string;
|
|
2991
3060
|
};
|
|
2992
3061
|
output: {
|
|
@@ -3000,7 +3069,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3000
3069
|
resetPassword: import("@trpc/server").TRPCMutationProcedure<{
|
|
3001
3070
|
input: {
|
|
3002
3071
|
appId?: string | undefined;
|
|
3003
|
-
} & {
|
|
3004
3072
|
roleName: string;
|
|
3005
3073
|
branchId: string;
|
|
3006
3074
|
};
|
|
@@ -3014,7 +3082,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3014
3082
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
3015
3083
|
input: {
|
|
3016
3084
|
appId?: string | undefined;
|
|
3017
|
-
} & {
|
|
3018
3085
|
regionId?: "aws-us-east-1" | "aws-us-east-2" | "aws-us-west-2" | "aws-eu-central-1" | "aws-ap-southeast-1" | "aws-ap-southeast-2" | undefined;
|
|
3019
3086
|
pgVersion?: 14 | 15 | 16 | undefined;
|
|
3020
3087
|
};
|
|
@@ -3044,7 +3111,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3044
3111
|
operation: import("@trpc/server").TRPCQueryProcedure<{
|
|
3045
3112
|
input: {
|
|
3046
3113
|
appId?: string | undefined;
|
|
3047
|
-
} & {
|
|
3048
3114
|
operationId: string;
|
|
3049
3115
|
};
|
|
3050
3116
|
output: {
|
|
@@ -3065,7 +3131,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3065
3131
|
operations: import("@trpc/server").TRPCQueryProcedure<{
|
|
3066
3132
|
input: {
|
|
3067
3133
|
appId?: string | undefined;
|
|
3068
|
-
} & {
|
|
3069
3134
|
limit?: number | undefined;
|
|
3070
3135
|
cursor?: string | undefined;
|
|
3071
3136
|
};
|
|
@@ -3180,7 +3245,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3180
3245
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
3181
3246
|
input: {
|
|
3182
3247
|
appId?: string | undefined;
|
|
3183
|
-
} & {
|
|
3184
3248
|
settings: {
|
|
3185
3249
|
allowedIps: {
|
|
3186
3250
|
ips?: string[] | undefined;
|
|
@@ -3265,7 +3329,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3265
3329
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
3266
3330
|
input: {
|
|
3267
3331
|
appId?: string | undefined;
|
|
3268
|
-
} & {
|
|
3269
3332
|
name: string;
|
|
3270
3333
|
parentId?: string | undefined;
|
|
3271
3334
|
};
|
|
@@ -3281,7 +3344,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3281
3344
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
3282
3345
|
input: {
|
|
3283
3346
|
appId?: string | undefined;
|
|
3284
|
-
} & {
|
|
3285
3347
|
branchId: string;
|
|
3286
3348
|
};
|
|
3287
3349
|
output: {
|
|
@@ -3292,7 +3354,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3292
3354
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
3293
3355
|
input: {
|
|
3294
3356
|
appId?: string | undefined;
|
|
3295
|
-
} & {
|
|
3296
3357
|
branchId: string;
|
|
3297
3358
|
};
|
|
3298
3359
|
output: {
|
|
@@ -3307,7 +3368,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3307
3368
|
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
3308
3369
|
input: {
|
|
3309
3370
|
appId?: string | undefined;
|
|
3310
|
-
} & {
|
|
3311
3371
|
limit?: number | undefined;
|
|
3312
3372
|
cursor?: string | undefined;
|
|
3313
3373
|
search?: string | undefined;
|
|
@@ -3326,7 +3386,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3326
3386
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
3327
3387
|
input: {
|
|
3328
3388
|
appId?: string | undefined;
|
|
3329
|
-
} & {
|
|
3330
3389
|
branchId: string;
|
|
3331
3390
|
newBranchName?: string | undefined;
|
|
3332
3391
|
newProtectedState?: boolean | undefined;
|
|
@@ -3343,7 +3402,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3343
3402
|
getConnectionUri: import("@trpc/server").TRPCQueryProcedure<{
|
|
3344
3403
|
input: {
|
|
3345
3404
|
appId?: string | undefined;
|
|
3346
|
-
} & {
|
|
3347
3405
|
branchId: string;
|
|
3348
3406
|
databaseName: string;
|
|
3349
3407
|
roleName?: string | undefined;
|
|
@@ -3356,7 +3414,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3356
3414
|
setPrimary: import("@trpc/server").TRPCMutationProcedure<{
|
|
3357
3415
|
input: {
|
|
3358
3416
|
appId?: string | undefined;
|
|
3359
|
-
} & {
|
|
3360
3417
|
branchId: string;
|
|
3361
3418
|
};
|
|
3362
3419
|
output: {
|
|
@@ -3371,7 +3428,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3371
3428
|
restoreBranch: import("@trpc/server").TRPCMutationProcedure<{
|
|
3372
3429
|
input: {
|
|
3373
3430
|
appId?: string | undefined;
|
|
3374
|
-
} & {
|
|
3375
3431
|
toBranchId: string;
|
|
3376
3432
|
fromBranchId: string;
|
|
3377
3433
|
};
|
|
@@ -3387,7 +3443,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3387
3443
|
metrics: import("@trpc/server").TRPCQueryProcedure<{
|
|
3388
3444
|
input: {
|
|
3389
3445
|
appId?: string | undefined;
|
|
3390
|
-
} & {
|
|
3391
3446
|
branchId: string;
|
|
3392
3447
|
};
|
|
3393
3448
|
output: {
|
|
@@ -3404,7 +3459,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3404
3459
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
3405
3460
|
input: {
|
|
3406
3461
|
appId?: string | undefined;
|
|
3407
|
-
} & {
|
|
3408
3462
|
name: string;
|
|
3409
3463
|
branchId: string;
|
|
3410
3464
|
};
|
|
@@ -3419,7 +3473,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3419
3473
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
3420
3474
|
input: {
|
|
3421
3475
|
appId?: string | undefined;
|
|
3422
|
-
} & {
|
|
3423
3476
|
branchId: string;
|
|
3424
3477
|
databaseName: string;
|
|
3425
3478
|
};
|
|
@@ -3431,7 +3484,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3431
3484
|
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
3432
3485
|
input: {
|
|
3433
3486
|
appId?: string | undefined;
|
|
3434
|
-
} & {
|
|
3435
3487
|
branchId: string;
|
|
3436
3488
|
databaseName: string;
|
|
3437
3489
|
};
|
|
@@ -3446,7 +3498,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3446
3498
|
getAll: import("@trpc/server").TRPCQueryProcedure<{
|
|
3447
3499
|
input: {
|
|
3448
3500
|
appId?: string | undefined;
|
|
3449
|
-
} & {
|
|
3450
3501
|
branchId: string;
|
|
3451
3502
|
};
|
|
3452
3503
|
output: {
|
|
@@ -3460,7 +3511,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3460
3511
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
3461
3512
|
input: {
|
|
3462
3513
|
appId?: string | undefined;
|
|
3463
|
-
} & {
|
|
3464
3514
|
branchId: string;
|
|
3465
3515
|
databaseName: string;
|
|
3466
3516
|
newDatabaseName?: string | undefined;
|
|
@@ -3479,7 +3529,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3479
3529
|
create: import("@trpc/server").TRPCMutationProcedure<{
|
|
3480
3530
|
input: {
|
|
3481
3531
|
appId?: string | undefined;
|
|
3482
|
-
} & {
|
|
3483
3532
|
name: string;
|
|
3484
3533
|
type: _neondatabase_api_client.EndpointType;
|
|
3485
3534
|
branchId: string;
|
|
@@ -3512,7 +3561,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3512
3561
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
3513
3562
|
input: {
|
|
3514
3563
|
appId?: string | undefined;
|
|
3515
|
-
} & {
|
|
3516
3564
|
endpointId: string;
|
|
3517
3565
|
};
|
|
3518
3566
|
output: {
|
|
@@ -3523,7 +3571,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3523
3571
|
getBranchEndpoints: import("@trpc/server").TRPCQueryProcedure<{
|
|
3524
3572
|
input: {
|
|
3525
3573
|
appId?: string | undefined;
|
|
3526
|
-
} & {
|
|
3527
3574
|
branchId: string;
|
|
3528
3575
|
};
|
|
3529
3576
|
output: {
|
|
@@ -3553,7 +3600,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3553
3600
|
getProjectEndpoint: import("@trpc/server").TRPCQueryProcedure<{
|
|
3554
3601
|
input: {
|
|
3555
3602
|
appId?: string | undefined;
|
|
3556
|
-
} & {
|
|
3557
3603
|
endpointId: string;
|
|
3558
3604
|
};
|
|
3559
3605
|
output: {
|
|
@@ -3611,7 +3657,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3611
3657
|
restart: import("@trpc/server").TRPCMutationProcedure<{
|
|
3612
3658
|
input: {
|
|
3613
3659
|
appId?: string | undefined;
|
|
3614
|
-
} & {
|
|
3615
3660
|
endpointId: string;
|
|
3616
3661
|
};
|
|
3617
3662
|
output: {
|
|
@@ -3641,7 +3686,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3641
3686
|
start: import("@trpc/server").TRPCMutationProcedure<{
|
|
3642
3687
|
input: {
|
|
3643
3688
|
appId?: string | undefined;
|
|
3644
|
-
} & {
|
|
3645
3689
|
endpointId: string;
|
|
3646
3690
|
};
|
|
3647
3691
|
output: {
|
|
@@ -3671,7 +3715,6 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3671
3715
|
suspend: import("@trpc/server").TRPCMutationProcedure<{
|
|
3672
3716
|
input: {
|
|
3673
3717
|
appId?: string | undefined;
|
|
3674
|
-
} & {
|
|
3675
3718
|
endpointId: string;
|
|
3676
3719
|
};
|
|
3677
3720
|
output: {
|
|
@@ -3701,9 +3744,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3701
3744
|
update: import("@trpc/server").TRPCMutationProcedure<{
|
|
3702
3745
|
input: {
|
|
3703
3746
|
appId?: string | undefined;
|
|
3704
|
-
} & {
|
|
3705
3747
|
endpointId: string;
|
|
3706
|
-
} & {
|
|
3707
3748
|
suspendTimeoutSeconds?: number | undefined;
|
|
3708
3749
|
disabled?: boolean | undefined;
|
|
3709
3750
|
passwordlessAccess?: boolean | undefined;
|
|
@@ -3806,6 +3847,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3806
3847
|
avatar: string | null;
|
|
3807
3848
|
isSearchable: boolean;
|
|
3808
3849
|
};
|
|
3850
|
+
senderPubKey: string;
|
|
3851
|
+
recipientPubKey: string;
|
|
3809
3852
|
attachments: {
|
|
3810
3853
|
dataId: string;
|
|
3811
3854
|
name: string;
|
|
@@ -3816,13 +3859,12 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3816
3859
|
}>;
|
|
3817
3860
|
createDraft: import("@trpc/server").TRPCMutationProcedure<{
|
|
3818
3861
|
input: {
|
|
3862
|
+
fromPubKey?: string | null | undefined;
|
|
3819
3863
|
body: string;
|
|
3820
3864
|
subject: string;
|
|
3821
|
-
} & {
|
|
3822
3865
|
hash: string;
|
|
3823
3866
|
hashKey: string;
|
|
3824
3867
|
replyToId: string | null;
|
|
3825
|
-
} & {
|
|
3826
3868
|
recipients: string[];
|
|
3827
3869
|
senderFiles: {
|
|
3828
3870
|
id: string;
|
|
@@ -3881,6 +3923,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3881
3923
|
avatar: string | null;
|
|
3882
3924
|
isSearchable: boolean;
|
|
3883
3925
|
};
|
|
3926
|
+
senderPubKey: string;
|
|
3927
|
+
recipientPubKey: string;
|
|
3884
3928
|
attachments: {
|
|
3885
3929
|
dataId: string;
|
|
3886
3930
|
name: string;
|
|
@@ -3900,6 +3944,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3900
3944
|
}>;
|
|
3901
3945
|
deleteTrash: import("@trpc/server").TRPCMutationProcedure<{
|
|
3902
3946
|
input: {
|
|
3947
|
+
fromPubKey?: string | null | undefined;
|
|
3903
3948
|
ids: string[];
|
|
3904
3949
|
};
|
|
3905
3950
|
output: {
|
|
@@ -3909,6 +3954,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3909
3954
|
}>;
|
|
3910
3955
|
delete: import("@trpc/server").TRPCMutationProcedure<{
|
|
3911
3956
|
input: {
|
|
3957
|
+
fromPubKey?: string | null | undefined;
|
|
3912
3958
|
id: string;
|
|
3913
3959
|
};
|
|
3914
3960
|
output: {
|
|
@@ -3918,6 +3964,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3918
3964
|
}>;
|
|
3919
3965
|
deleted: import("@trpc/server").TRPCQueryProcedure<{
|
|
3920
3966
|
input: {
|
|
3967
|
+
fromPubKey?: string | null | undefined;
|
|
3921
3968
|
type: "sent" | "received";
|
|
3922
3969
|
};
|
|
3923
3970
|
output: ({
|
|
@@ -3972,6 +4019,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
3972
4019
|
avatar: string | null;
|
|
3973
4020
|
isSearchable: boolean;
|
|
3974
4021
|
};
|
|
4022
|
+
senderPubKey: string;
|
|
4023
|
+
recipientPubKey: string;
|
|
3975
4024
|
attachments: {
|
|
3976
4025
|
dataId: string;
|
|
3977
4026
|
name: string;
|
|
@@ -4037,6 +4086,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4037
4086
|
avatar: string | null;
|
|
4038
4087
|
isSearchable: boolean;
|
|
4039
4088
|
};
|
|
4089
|
+
senderPubKey: string;
|
|
4090
|
+
recipientPubKey: string;
|
|
4040
4091
|
attachments: {
|
|
4041
4092
|
dataId: string;
|
|
4042
4093
|
name: string;
|
|
@@ -4046,7 +4097,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4046
4097
|
meta: any;
|
|
4047
4098
|
}>;
|
|
4048
4099
|
emptyTrash: import("@trpc/server").TRPCMutationProcedure<{
|
|
4049
|
-
input:
|
|
4100
|
+
input: {
|
|
4101
|
+
[x: string]: never;
|
|
4102
|
+
fromPubKey?: string | null | undefined;
|
|
4103
|
+
};
|
|
4050
4104
|
output: {
|
|
4051
4105
|
isDeleted: boolean;
|
|
4052
4106
|
};
|
|
@@ -4054,6 +4108,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4054
4108
|
}>;
|
|
4055
4109
|
read: import("@trpc/server").TRPCMutationProcedure<{
|
|
4056
4110
|
input: {
|
|
4111
|
+
fromPubKey?: string | null | undefined;
|
|
4057
4112
|
id: string;
|
|
4058
4113
|
};
|
|
4059
4114
|
output: {
|
|
@@ -4063,6 +4118,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4063
4118
|
}>;
|
|
4064
4119
|
received: import("@trpc/server").TRPCQueryProcedure<{
|
|
4065
4120
|
input: {
|
|
4121
|
+
fromPubKey?: string | null | undefined;
|
|
4066
4122
|
page?: number | undefined;
|
|
4067
4123
|
perPage?: number | undefined;
|
|
4068
4124
|
};
|
|
@@ -4118,6 +4174,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4118
4174
|
avatar: string | null;
|
|
4119
4175
|
isSearchable: boolean;
|
|
4120
4176
|
};
|
|
4177
|
+
senderPubKey: string;
|
|
4178
|
+
recipientPubKey: string;
|
|
4121
4179
|
attachments: {
|
|
4122
4180
|
dataId: string;
|
|
4123
4181
|
name: string;
|
|
@@ -4128,6 +4186,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4128
4186
|
}>;
|
|
4129
4187
|
recover: import("@trpc/server").TRPCMutationProcedure<{
|
|
4130
4188
|
input: {
|
|
4189
|
+
fromPubKey?: string | null | undefined;
|
|
4131
4190
|
id: string;
|
|
4132
4191
|
};
|
|
4133
4192
|
output: {
|
|
@@ -4137,7 +4196,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4137
4196
|
}>;
|
|
4138
4197
|
sendAppMail: import("@trpc/server").TRPCMutationProcedure<{
|
|
4139
4198
|
input: {
|
|
4140
|
-
|
|
4199
|
+
appId?: string | null | undefined;
|
|
4200
|
+
userAppIds: string[];
|
|
4141
4201
|
subject: string;
|
|
4142
4202
|
html: string;
|
|
4143
4203
|
};
|
|
@@ -4155,7 +4215,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4155
4215
|
body: string;
|
|
4156
4216
|
subject: string;
|
|
4157
4217
|
} & {
|
|
4158
|
-
|
|
4218
|
+
recipientPubKey: string;
|
|
4159
4219
|
attachments: {
|
|
4160
4220
|
dataId: string;
|
|
4161
4221
|
key: string | null;
|
|
@@ -4175,7 +4235,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4175
4235
|
body: string;
|
|
4176
4236
|
subject: string;
|
|
4177
4237
|
} & {
|
|
4178
|
-
|
|
4238
|
+
recipientPublicKey: string;
|
|
4179
4239
|
attachments: {
|
|
4180
4240
|
id: string;
|
|
4181
4241
|
key: string | null;
|
|
@@ -4245,6 +4305,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4245
4305
|
avatar: string | null;
|
|
4246
4306
|
isSearchable: boolean;
|
|
4247
4307
|
};
|
|
4308
|
+
senderPubKey: string;
|
|
4309
|
+
recipientPubKey: string;
|
|
4248
4310
|
attachments: {
|
|
4249
4311
|
dataId: string;
|
|
4250
4312
|
name: string;
|
|
@@ -4254,12 +4316,16 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4254
4316
|
meta: any;
|
|
4255
4317
|
}>;
|
|
4256
4318
|
unreadReceivedCount: import("@trpc/server").TRPCQueryProcedure<{
|
|
4257
|
-
input:
|
|
4319
|
+
input: {
|
|
4320
|
+
[x: string]: never;
|
|
4321
|
+
fromPubKey?: string | null | undefined;
|
|
4322
|
+
};
|
|
4258
4323
|
output: number;
|
|
4259
4324
|
meta: any;
|
|
4260
4325
|
}>;
|
|
4261
4326
|
unread: import("@trpc/server").TRPCMutationProcedure<{
|
|
4262
4327
|
input: {
|
|
4328
|
+
fromPubKey?: string | null | undefined;
|
|
4263
4329
|
id: string;
|
|
4264
4330
|
};
|
|
4265
4331
|
output: {
|
|
@@ -4269,8 +4335,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4269
4335
|
}>;
|
|
4270
4336
|
updateDraft: import("@trpc/server").TRPCMutationProcedure<{
|
|
4271
4337
|
input: {
|
|
4338
|
+
fromPubKey?: string | null | undefined;
|
|
4272
4339
|
id: string;
|
|
4273
|
-
} & {
|
|
4274
4340
|
subject: string | null;
|
|
4275
4341
|
body: string | null;
|
|
4276
4342
|
hash: string | null;
|
|
@@ -4334,6 +4400,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4334
4400
|
avatar: string | null;
|
|
4335
4401
|
isSearchable: boolean;
|
|
4336
4402
|
};
|
|
4403
|
+
senderPubKey: string;
|
|
4404
|
+
recipientPubKey: string;
|
|
4337
4405
|
attachments: {
|
|
4338
4406
|
dataId: string;
|
|
4339
4407
|
name: string;
|
|
@@ -4472,6 +4540,7 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4472
4540
|
}>;
|
|
4473
4541
|
cancelSubscription: import("@trpc/server").TRPCMutationProcedure<{
|
|
4474
4542
|
input: {
|
|
4543
|
+
orgId?: string | null | undefined;
|
|
4475
4544
|
waitUntilPeriodEnd: boolean;
|
|
4476
4545
|
};
|
|
4477
4546
|
output: {
|
|
@@ -4481,8 +4550,8 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4481
4550
|
}>;
|
|
4482
4551
|
createSubscription: import("@trpc/server").TRPCMutationProcedure<{
|
|
4483
4552
|
input: {
|
|
4484
|
-
planKind: "free" | "basic" | "advanced" | "pro";
|
|
4485
4553
|
orgId?: string | undefined;
|
|
4554
|
+
planKind: "free" | "basic" | "advanced" | "pro";
|
|
4486
4555
|
minMembers?: number | undefined;
|
|
4487
4556
|
returnUrl?: string | undefined;
|
|
4488
4557
|
billingProfileId?: string | undefined;
|
|
@@ -4556,7 +4625,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4556
4625
|
meta: any;
|
|
4557
4626
|
}>;
|
|
4558
4627
|
getSubscription: import("@trpc/server").TRPCQueryProcedure<{
|
|
4559
|
-
input:
|
|
4628
|
+
input: {
|
|
4629
|
+
[x: string]: never;
|
|
4630
|
+
orgId?: string | null | undefined;
|
|
4631
|
+
};
|
|
4560
4632
|
output: {
|
|
4561
4633
|
subscription: {
|
|
4562
4634
|
id: string;
|
|
@@ -4579,7 +4651,10 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4579
4651
|
meta: any;
|
|
4580
4652
|
}>;
|
|
4581
4653
|
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
4582
|
-
input:
|
|
4654
|
+
input: {
|
|
4655
|
+
[x: string]: never;
|
|
4656
|
+
orgId?: string | null | undefined;
|
|
4657
|
+
};
|
|
4583
4658
|
output: {
|
|
4584
4659
|
id: string;
|
|
4585
4660
|
name: string;
|
|
@@ -4863,10 +4938,20 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4863
4938
|
output: {
|
|
4864
4939
|
uaSession: string;
|
|
4865
4940
|
jwt: string;
|
|
4866
|
-
|
|
4867
|
-
|
|
4941
|
+
identities: ({
|
|
4942
|
+
kind: "USER_APP";
|
|
4943
|
+
identityPubKey: string;
|
|
4944
|
+
userId: string;
|
|
4945
|
+
appId: string;
|
|
4868
4946
|
encPriv: string;
|
|
4869
|
-
}
|
|
4947
|
+
} | {
|
|
4948
|
+
kind: "GROUP";
|
|
4949
|
+
identityPubKey: string;
|
|
4950
|
+
groupId: string;
|
|
4951
|
+
encPriv: string;
|
|
4952
|
+
sharedByPubKey: string;
|
|
4953
|
+
groupOwnerPubKey: string;
|
|
4954
|
+
})[];
|
|
4870
4955
|
};
|
|
4871
4956
|
meta: any;
|
|
4872
4957
|
}>;
|
|
@@ -4883,10 +4968,20 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
4883
4968
|
output: {
|
|
4884
4969
|
uaSession: string;
|
|
4885
4970
|
jwt: string;
|
|
4886
|
-
|
|
4887
|
-
|
|
4971
|
+
identities: ({
|
|
4972
|
+
kind: "USER_APP";
|
|
4973
|
+
identityPubKey: string;
|
|
4974
|
+
userId: string;
|
|
4975
|
+
appId: string;
|
|
4888
4976
|
encPriv: string;
|
|
4889
|
-
} |
|
|
4977
|
+
} | {
|
|
4978
|
+
kind: "GROUP";
|
|
4979
|
+
identityPubKey: string;
|
|
4980
|
+
groupId: string;
|
|
4981
|
+
encPriv: string;
|
|
4982
|
+
sharedByPubKey: string;
|
|
4983
|
+
groupOwnerPubKey: string;
|
|
4984
|
+
})[] | null;
|
|
4890
4985
|
};
|
|
4891
4986
|
meta: any;
|
|
4892
4987
|
}>;
|
|
@@ -5523,6 +5618,19 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5523
5618
|
};
|
|
5524
5619
|
meta: any;
|
|
5525
5620
|
}>;
|
|
5621
|
+
byIds: import("@trpc/server").TRPCQueryProcedure<{
|
|
5622
|
+
input: {
|
|
5623
|
+
ids: string[];
|
|
5624
|
+
};
|
|
5625
|
+
output: {
|
|
5626
|
+
firstname: string;
|
|
5627
|
+
lastname: string;
|
|
5628
|
+
id: string;
|
|
5629
|
+
avatar: string | null;
|
|
5630
|
+
isSearchable: boolean;
|
|
5631
|
+
}[];
|
|
5632
|
+
meta: any;
|
|
5633
|
+
}>;
|
|
5526
5634
|
searchMany: import("@trpc/server").TRPCQueryProcedure<{
|
|
5527
5635
|
input: {
|
|
5528
5636
|
search: string;
|
|
@@ -5665,5 +5773,63 @@ export declare const createTRPCClient: (opts: CreateTrpcClientOptions) => import
|
|
|
5665
5773
|
meta: any;
|
|
5666
5774
|
}>;
|
|
5667
5775
|
}>;
|
|
5776
|
+
identity: import("@trpc/server").TRPCDecorateCreateRouterOptions<{
|
|
5777
|
+
get: import("@trpc/server").TRPCQueryProcedure<{
|
|
5778
|
+
input: {
|
|
5779
|
+
pubKey: string;
|
|
5780
|
+
};
|
|
5781
|
+
output: {
|
|
5782
|
+
identity: {
|
|
5783
|
+
kind: "USER_APP";
|
|
5784
|
+
identityPubKey: string;
|
|
5785
|
+
userId: string;
|
|
5786
|
+
appId: string;
|
|
5787
|
+
} | {
|
|
5788
|
+
kind: "GROUP";
|
|
5789
|
+
identityPubKey: string;
|
|
5790
|
+
groupId: string;
|
|
5791
|
+
};
|
|
5792
|
+
};
|
|
5793
|
+
meta: any;
|
|
5794
|
+
}>;
|
|
5795
|
+
getMany: import("@trpc/server").TRPCQueryProcedure<{
|
|
5796
|
+
input: {
|
|
5797
|
+
pubKeys: string[];
|
|
5798
|
+
};
|
|
5799
|
+
output: {
|
|
5800
|
+
identities: ({
|
|
5801
|
+
kind: "USER_APP";
|
|
5802
|
+
identityPubKey: string;
|
|
5803
|
+
userId: string;
|
|
5804
|
+
appId: string;
|
|
5805
|
+
} | {
|
|
5806
|
+
kind: "GROUP";
|
|
5807
|
+
identityPubKey: string;
|
|
5808
|
+
groupId: string;
|
|
5809
|
+
})[];
|
|
5810
|
+
};
|
|
5811
|
+
meta: any;
|
|
5812
|
+
}>;
|
|
5813
|
+
list: import("@trpc/server").TRPCQueryProcedure<{
|
|
5814
|
+
input: void;
|
|
5815
|
+
output: {
|
|
5816
|
+
identities: ({
|
|
5817
|
+
kind: "USER_APP";
|
|
5818
|
+
identityPubKey: string;
|
|
5819
|
+
userId: string;
|
|
5820
|
+
appId: string;
|
|
5821
|
+
encPriv: string;
|
|
5822
|
+
} | {
|
|
5823
|
+
kind: "GROUP";
|
|
5824
|
+
identityPubKey: string;
|
|
5825
|
+
groupId: string;
|
|
5826
|
+
encPriv: string;
|
|
5827
|
+
sharedByPubKey: string;
|
|
5828
|
+
groupOwnerPubKey: string;
|
|
5829
|
+
})[];
|
|
5830
|
+
};
|
|
5831
|
+
meta: any;
|
|
5832
|
+
}>;
|
|
5833
|
+
}>;
|
|
5668
5834
|
}>>;
|
|
5669
5835
|
export type ApiClient = ReturnType<typeof createTRPCClient>;
|