@secrecy/trpc-api-types 1.27.0-dev.4 → 1.27.0-dev.6
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.cts +149 -9
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -186,6 +186,72 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
186
186
|
isDeleted: boolean;
|
|
187
187
|
};
|
|
188
188
|
}, unknown>;
|
|
189
|
+
getUsers: _trpc_server.BuildProcedure<"query", {
|
|
190
|
+
_config: _trpc_server.RootConfig<{
|
|
191
|
+
ctx: {
|
|
192
|
+
req: {
|
|
193
|
+
headers: Headers;
|
|
194
|
+
body: ReadableStream<Uint8Array> | null;
|
|
195
|
+
};
|
|
196
|
+
res: {
|
|
197
|
+
headers: Headers;
|
|
198
|
+
};
|
|
199
|
+
session: SecrecySession | null;
|
|
200
|
+
locale: Locales;
|
|
201
|
+
ls: TranslationFunctions;
|
|
202
|
+
};
|
|
203
|
+
meta: object;
|
|
204
|
+
errorShape: {
|
|
205
|
+
message: string;
|
|
206
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
207
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
208
|
+
} | {
|
|
209
|
+
data: {
|
|
210
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
211
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
212
|
+
httpStatus: number;
|
|
213
|
+
path?: string;
|
|
214
|
+
stack?: string;
|
|
215
|
+
};
|
|
216
|
+
message: string;
|
|
217
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
218
|
+
};
|
|
219
|
+
transformer: typeof superjson.default;
|
|
220
|
+
}>;
|
|
221
|
+
_meta: object;
|
|
222
|
+
_ctx_out: {
|
|
223
|
+
session: SecrecySession;
|
|
224
|
+
req: {
|
|
225
|
+
headers: Headers;
|
|
226
|
+
body: ReadableStream<Uint8Array> | null;
|
|
227
|
+
};
|
|
228
|
+
res: {
|
|
229
|
+
headers: Headers;
|
|
230
|
+
};
|
|
231
|
+
locale: Locales;
|
|
232
|
+
ls: TranslationFunctions;
|
|
233
|
+
};
|
|
234
|
+
_input_in: {};
|
|
235
|
+
_input_out: {};
|
|
236
|
+
_output_in: {
|
|
237
|
+
users: {
|
|
238
|
+
id: string;
|
|
239
|
+
lastname: string;
|
|
240
|
+
firstname: string;
|
|
241
|
+
avatar: string | null;
|
|
242
|
+
isSearchable: boolean;
|
|
243
|
+
}[];
|
|
244
|
+
};
|
|
245
|
+
_output_out: {
|
|
246
|
+
users: {
|
|
247
|
+
id: string;
|
|
248
|
+
lastname: string;
|
|
249
|
+
firstname: string;
|
|
250
|
+
avatar: string | null;
|
|
251
|
+
isSearchable: boolean;
|
|
252
|
+
}[];
|
|
253
|
+
};
|
|
254
|
+
}, unknown>;
|
|
189
255
|
}>;
|
|
190
256
|
application: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
191
257
|
ctx: {
|
|
@@ -1600,13 +1666,13 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
1600
1666
|
email: string;
|
|
1601
1667
|
};
|
|
1602
1668
|
_output_in: {
|
|
1603
|
-
pub: string;
|
|
1604
1669
|
srpSalt: string;
|
|
1670
|
+
pub: string;
|
|
1605
1671
|
loginId: string;
|
|
1606
1672
|
};
|
|
1607
1673
|
_output_out: {
|
|
1608
|
-
pub: string;
|
|
1609
1674
|
srpSalt: string;
|
|
1675
|
+
pub: string;
|
|
1610
1676
|
loginId: string;
|
|
1611
1677
|
};
|
|
1612
1678
|
}, unknown>;
|
|
@@ -1668,6 +1734,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
1668
1734
|
id: string;
|
|
1669
1735
|
lastname: string;
|
|
1670
1736
|
firstname: string;
|
|
1737
|
+
avatar: string | null;
|
|
1738
|
+
isSearchable: boolean;
|
|
1671
1739
|
}[];
|
|
1672
1740
|
loginToken: string;
|
|
1673
1741
|
};
|
|
@@ -1676,6 +1744,8 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
1676
1744
|
id: string;
|
|
1677
1745
|
lastname: string;
|
|
1678
1746
|
firstname: string;
|
|
1747
|
+
avatar: string | null;
|
|
1748
|
+
isSearchable: boolean;
|
|
1679
1749
|
}[];
|
|
1680
1750
|
loginToken: string;
|
|
1681
1751
|
};
|
|
@@ -2246,6 +2316,64 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
2246
2316
|
_output_in: {};
|
|
2247
2317
|
_output_out: {};
|
|
2248
2318
|
}, {}>;
|
|
2319
|
+
changeUser: _trpc_server.BuildProcedure<"mutation", {
|
|
2320
|
+
_config: _trpc_server.RootConfig<{
|
|
2321
|
+
ctx: {
|
|
2322
|
+
req: {
|
|
2323
|
+
headers: Headers;
|
|
2324
|
+
body: ReadableStream<Uint8Array> | null;
|
|
2325
|
+
};
|
|
2326
|
+
res: {
|
|
2327
|
+
headers: Headers;
|
|
2328
|
+
};
|
|
2329
|
+
session: SecrecySession | null;
|
|
2330
|
+
locale: Locales;
|
|
2331
|
+
ls: TranslationFunctions;
|
|
2332
|
+
};
|
|
2333
|
+
meta: object;
|
|
2334
|
+
errorShape: {
|
|
2335
|
+
message: string;
|
|
2336
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2337
|
+
data: _trpc_server_dist_error_formatter.DefaultErrorData;
|
|
2338
|
+
} | {
|
|
2339
|
+
data: {
|
|
2340
|
+
zodError: zod.typeToFlattenedError<any, string> | null;
|
|
2341
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_KEY;
|
|
2342
|
+
httpStatus: number;
|
|
2343
|
+
path?: string;
|
|
2344
|
+
stack?: string;
|
|
2345
|
+
};
|
|
2346
|
+
message: string;
|
|
2347
|
+
code: _trpc_server_rpc.TRPC_ERROR_CODE_NUMBER;
|
|
2348
|
+
};
|
|
2349
|
+
transformer: typeof superjson.default;
|
|
2350
|
+
}>;
|
|
2351
|
+
_meta: object;
|
|
2352
|
+
_ctx_out: {
|
|
2353
|
+
session: SecrecySession;
|
|
2354
|
+
req: {
|
|
2355
|
+
headers: Headers;
|
|
2356
|
+
body: ReadableStream<Uint8Array> | null;
|
|
2357
|
+
};
|
|
2358
|
+
res: {
|
|
2359
|
+
headers: Headers;
|
|
2360
|
+
};
|
|
2361
|
+
locale: Locales;
|
|
2362
|
+
ls: TranslationFunctions;
|
|
2363
|
+
};
|
|
2364
|
+
_input_in: {
|
|
2365
|
+
userId: string;
|
|
2366
|
+
};
|
|
2367
|
+
_input_out: {
|
|
2368
|
+
userId: string;
|
|
2369
|
+
};
|
|
2370
|
+
_output_in: {
|
|
2371
|
+
sessionId: string;
|
|
2372
|
+
};
|
|
2373
|
+
_output_out: {
|
|
2374
|
+
sessionId: string;
|
|
2375
|
+
};
|
|
2376
|
+
}, unknown>;
|
|
2249
2377
|
}>;
|
|
2250
2378
|
blog: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<{
|
|
2251
2379
|
ctx: {
|
|
@@ -4116,6 +4244,11 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
4116
4244
|
} | undefined;
|
|
4117
4245
|
};
|
|
4118
4246
|
_output_in: {
|
|
4247
|
+
keyPairs: {
|
|
4248
|
+
appId: string;
|
|
4249
|
+
pub: string;
|
|
4250
|
+
encPriv: string;
|
|
4251
|
+
}[];
|
|
4119
4252
|
nodes: {
|
|
4120
4253
|
id: string;
|
|
4121
4254
|
createdAt: Date;
|
|
@@ -4133,15 +4266,21 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
4133
4266
|
nameKey: string;
|
|
4134
4267
|
};
|
|
4135
4268
|
totalSize: bigint;
|
|
4269
|
+
breadcrumb: {
|
|
4270
|
+
id: string;
|
|
4271
|
+
name: string;
|
|
4272
|
+
nameKey: string | null;
|
|
4273
|
+
pubKey: string;
|
|
4274
|
+
}[];
|
|
4136
4275
|
sharedCount: number;
|
|
4137
4276
|
}[];
|
|
4277
|
+
};
|
|
4278
|
+
_output_out: {
|
|
4138
4279
|
keyPairs: {
|
|
4139
4280
|
appId: string;
|
|
4140
4281
|
pub: string;
|
|
4141
4282
|
encPriv: string;
|
|
4142
4283
|
}[];
|
|
4143
|
-
};
|
|
4144
|
-
_output_out: {
|
|
4145
4284
|
nodes: {
|
|
4146
4285
|
id: string;
|
|
4147
4286
|
createdAt: Date;
|
|
@@ -4159,13 +4298,14 @@ declare const appRouter: _trpc_server.CreateRouterInner<_trpc_server.RootConfig<
|
|
|
4159
4298
|
nameKey: string;
|
|
4160
4299
|
};
|
|
4161
4300
|
totalSize: bigint;
|
|
4301
|
+
breadcrumb: {
|
|
4302
|
+
id: string;
|
|
4303
|
+
name: string;
|
|
4304
|
+
nameKey: string | null;
|
|
4305
|
+
pubKey: string;
|
|
4306
|
+
}[];
|
|
4162
4307
|
sharedCount: number;
|
|
4163
4308
|
}[];
|
|
4164
|
-
keyPairs: {
|
|
4165
|
-
appId: string;
|
|
4166
|
-
pub: string;
|
|
4167
|
-
encPriv: string;
|
|
4168
|
-
}[];
|
|
4169
4309
|
};
|
|
4170
4310
|
}, unknown>;
|
|
4171
4311
|
shareFileInHistory: _trpc_server.BuildProcedure<"mutation", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@secrecy/trpc-api-types",
|
|
3
|
-
"version": "1.27.0-dev.
|
|
3
|
+
"version": "1.27.0-dev.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"module": "./dist/index.cjs",
|
|
23
23
|
"types": "./dist/index.d.cts",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@prisma/client": "5.
|
|
25
|
+
"@prisma/client": "5.16.2",
|
|
26
26
|
"@trpc/server": "10.45.2",
|
|
27
27
|
"superjson": "2.2.1",
|
|
28
|
-
"zod": "3.
|
|
28
|
+
"zod": "3.23.8"
|
|
29
29
|
}
|
|
30
30
|
}
|