@framebreak/types 0.1.11 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1324 -50
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import * as _orpc_server from '@orpc/server';
|
|
1
2
|
import * as better_auth from 'better-auth';
|
|
2
3
|
import * as zod from 'zod';
|
|
3
|
-
import * as _orpc_server from '@orpc/server';
|
|
4
4
|
import * as _orpc_contract from '@orpc/contract';
|
|
5
5
|
import { LoggerContext } from '@orpc/experimental-pino';
|
|
6
6
|
|
|
@@ -71,7 +71,33 @@ declare const v1Router: {
|
|
|
71
71
|
}, {
|
|
72
72
|
status: "ok";
|
|
73
73
|
timestamp: string;
|
|
74
|
-
}>, Record<never, never>,
|
|
74
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
75
|
+
readonly UNAUTHORIZED: {
|
|
76
|
+
readonly message: "You must be logged in to access this resource";
|
|
77
|
+
};
|
|
78
|
+
readonly FORBIDDEN: {
|
|
79
|
+
readonly message: "You do not have permission to access this resource";
|
|
80
|
+
};
|
|
81
|
+
readonly NOT_FOUND: {
|
|
82
|
+
readonly message: "The requested resource was not found";
|
|
83
|
+
};
|
|
84
|
+
readonly BAD_REQUEST: {
|
|
85
|
+
readonly message: "Invalid request";
|
|
86
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
87
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
88
|
+
code: zod.ZodString;
|
|
89
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
90
|
+
message: zod.ZodString;
|
|
91
|
+
}, better_auth.$loose>>;
|
|
92
|
+
}, better_auth.$strip>>;
|
|
93
|
+
};
|
|
94
|
+
readonly CONFLICT: {
|
|
95
|
+
readonly message: "The request conflicts with existing data";
|
|
96
|
+
};
|
|
97
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
98
|
+
readonly message: "An internal server error occurred";
|
|
99
|
+
};
|
|
100
|
+
}>, Record<never, never>>;
|
|
75
101
|
user: {
|
|
76
102
|
me: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
77
103
|
session: {
|
|
@@ -110,7 +136,33 @@ declare const v1Router: {
|
|
|
110
136
|
name: string;
|
|
111
137
|
email: string;
|
|
112
138
|
image: string | null | undefined;
|
|
113
|
-
}>, Record<never, never>,
|
|
139
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
140
|
+
readonly UNAUTHORIZED: {
|
|
141
|
+
readonly message: "You must be logged in to access this resource";
|
|
142
|
+
};
|
|
143
|
+
readonly FORBIDDEN: {
|
|
144
|
+
readonly message: "You do not have permission to access this resource";
|
|
145
|
+
};
|
|
146
|
+
readonly NOT_FOUND: {
|
|
147
|
+
readonly message: "The requested resource was not found";
|
|
148
|
+
};
|
|
149
|
+
readonly BAD_REQUEST: {
|
|
150
|
+
readonly message: "Invalid request";
|
|
151
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
152
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
153
|
+
code: zod.ZodString;
|
|
154
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
155
|
+
message: zod.ZodString;
|
|
156
|
+
}, better_auth.$loose>>;
|
|
157
|
+
}, better_auth.$strip>>;
|
|
158
|
+
};
|
|
159
|
+
readonly CONFLICT: {
|
|
160
|
+
readonly message: "The request conflicts with existing data";
|
|
161
|
+
};
|
|
162
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
163
|
+
readonly message: "An internal server error occurred";
|
|
164
|
+
};
|
|
165
|
+
}>, Record<never, never>>;
|
|
114
166
|
stats: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
115
167
|
session: {
|
|
116
168
|
id: string;
|
|
@@ -148,7 +200,33 @@ declare const v1Router: {
|
|
|
148
200
|
postCount: number;
|
|
149
201
|
commentCount: number;
|
|
150
202
|
};
|
|
151
|
-
}>, Record<never, never>,
|
|
203
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
204
|
+
readonly UNAUTHORIZED: {
|
|
205
|
+
readonly message: "You must be logged in to access this resource";
|
|
206
|
+
};
|
|
207
|
+
readonly FORBIDDEN: {
|
|
208
|
+
readonly message: "You do not have permission to access this resource";
|
|
209
|
+
};
|
|
210
|
+
readonly NOT_FOUND: {
|
|
211
|
+
readonly message: "The requested resource was not found";
|
|
212
|
+
};
|
|
213
|
+
readonly BAD_REQUEST: {
|
|
214
|
+
readonly message: "Invalid request";
|
|
215
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
216
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
217
|
+
code: zod.ZodString;
|
|
218
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
219
|
+
message: zod.ZodString;
|
|
220
|
+
}, better_auth.$loose>>;
|
|
221
|
+
}, better_auth.$strip>>;
|
|
222
|
+
};
|
|
223
|
+
readonly CONFLICT: {
|
|
224
|
+
readonly message: "The request conflicts with existing data";
|
|
225
|
+
};
|
|
226
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
227
|
+
readonly message: "An internal server error occurred";
|
|
228
|
+
};
|
|
229
|
+
}>, Record<never, never>>;
|
|
152
230
|
completeOnboarding: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
153
231
|
session: {
|
|
154
232
|
id: string;
|
|
@@ -184,7 +262,33 @@ declare const v1Router: {
|
|
|
184
262
|
data: {
|
|
185
263
|
success: boolean;
|
|
186
264
|
};
|
|
187
|
-
}>, Record<never, never>,
|
|
265
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
266
|
+
readonly UNAUTHORIZED: {
|
|
267
|
+
readonly message: "You must be logged in to access this resource";
|
|
268
|
+
};
|
|
269
|
+
readonly FORBIDDEN: {
|
|
270
|
+
readonly message: "You do not have permission to access this resource";
|
|
271
|
+
};
|
|
272
|
+
readonly NOT_FOUND: {
|
|
273
|
+
readonly message: "The requested resource was not found";
|
|
274
|
+
};
|
|
275
|
+
readonly BAD_REQUEST: {
|
|
276
|
+
readonly message: "Invalid request";
|
|
277
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
278
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
279
|
+
code: zod.ZodString;
|
|
280
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
281
|
+
message: zod.ZodString;
|
|
282
|
+
}, better_auth.$loose>>;
|
|
283
|
+
}, better_auth.$strip>>;
|
|
284
|
+
};
|
|
285
|
+
readonly CONFLICT: {
|
|
286
|
+
readonly message: "The request conflicts with existing data";
|
|
287
|
+
};
|
|
288
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
289
|
+
readonly message: "An internal server error occurred";
|
|
290
|
+
};
|
|
291
|
+
}>, Record<never, never>>;
|
|
188
292
|
uploadAvatar: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
189
293
|
session: {
|
|
190
294
|
id: string;
|
|
@@ -228,7 +332,33 @@ declare const v1Router: {
|
|
|
228
332
|
data: {
|
|
229
333
|
url: string;
|
|
230
334
|
};
|
|
231
|
-
}>, Record<never, never>,
|
|
335
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
336
|
+
readonly UNAUTHORIZED: {
|
|
337
|
+
readonly message: "You must be logged in to access this resource";
|
|
338
|
+
};
|
|
339
|
+
readonly FORBIDDEN: {
|
|
340
|
+
readonly message: "You do not have permission to access this resource";
|
|
341
|
+
};
|
|
342
|
+
readonly NOT_FOUND: {
|
|
343
|
+
readonly message: "The requested resource was not found";
|
|
344
|
+
};
|
|
345
|
+
readonly BAD_REQUEST: {
|
|
346
|
+
readonly message: "Invalid request";
|
|
347
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
348
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
349
|
+
code: zod.ZodString;
|
|
350
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
351
|
+
message: zod.ZodString;
|
|
352
|
+
}, better_auth.$loose>>;
|
|
353
|
+
}, better_auth.$strip>>;
|
|
354
|
+
};
|
|
355
|
+
readonly CONFLICT: {
|
|
356
|
+
readonly message: "The request conflicts with existing data";
|
|
357
|
+
};
|
|
358
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
359
|
+
readonly message: "An internal server error occurred";
|
|
360
|
+
};
|
|
361
|
+
}>, Record<never, never>>;
|
|
232
362
|
removeAvatar: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
233
363
|
session: {
|
|
234
364
|
id: string;
|
|
@@ -264,7 +394,33 @@ declare const v1Router: {
|
|
|
264
394
|
data: {
|
|
265
395
|
success: boolean;
|
|
266
396
|
};
|
|
267
|
-
}>, Record<never, never>,
|
|
397
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
398
|
+
readonly UNAUTHORIZED: {
|
|
399
|
+
readonly message: "You must be logged in to access this resource";
|
|
400
|
+
};
|
|
401
|
+
readonly FORBIDDEN: {
|
|
402
|
+
readonly message: "You do not have permission to access this resource";
|
|
403
|
+
};
|
|
404
|
+
readonly NOT_FOUND: {
|
|
405
|
+
readonly message: "The requested resource was not found";
|
|
406
|
+
};
|
|
407
|
+
readonly BAD_REQUEST: {
|
|
408
|
+
readonly message: "Invalid request";
|
|
409
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
410
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
411
|
+
code: zod.ZodString;
|
|
412
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
413
|
+
message: zod.ZodString;
|
|
414
|
+
}, better_auth.$loose>>;
|
|
415
|
+
}, better_auth.$strip>>;
|
|
416
|
+
};
|
|
417
|
+
readonly CONFLICT: {
|
|
418
|
+
readonly message: "The request conflicts with existing data";
|
|
419
|
+
};
|
|
420
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
421
|
+
readonly message: "An internal server error occurred";
|
|
422
|
+
};
|
|
423
|
+
}>, Record<never, never>>;
|
|
268
424
|
deleteAccount: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
269
425
|
session: {
|
|
270
426
|
id: string;
|
|
@@ -300,7 +456,33 @@ declare const v1Router: {
|
|
|
300
456
|
data: {
|
|
301
457
|
success: boolean;
|
|
302
458
|
};
|
|
303
|
-
}>, Record<never, never>,
|
|
459
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
460
|
+
readonly UNAUTHORIZED: {
|
|
461
|
+
readonly message: "You must be logged in to access this resource";
|
|
462
|
+
};
|
|
463
|
+
readonly FORBIDDEN: {
|
|
464
|
+
readonly message: "You do not have permission to access this resource";
|
|
465
|
+
};
|
|
466
|
+
readonly NOT_FOUND: {
|
|
467
|
+
readonly message: "The requested resource was not found";
|
|
468
|
+
};
|
|
469
|
+
readonly BAD_REQUEST: {
|
|
470
|
+
readonly message: "Invalid request";
|
|
471
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
472
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
473
|
+
code: zod.ZodString;
|
|
474
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
475
|
+
message: zod.ZodString;
|
|
476
|
+
}, better_auth.$loose>>;
|
|
477
|
+
}, better_auth.$strip>>;
|
|
478
|
+
};
|
|
479
|
+
readonly CONFLICT: {
|
|
480
|
+
readonly message: "The request conflicts with existing data";
|
|
481
|
+
};
|
|
482
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
483
|
+
readonly message: "An internal server error occurred";
|
|
484
|
+
};
|
|
485
|
+
}>, Record<never, never>>;
|
|
304
486
|
verification: {
|
|
305
487
|
status: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
306
488
|
session: {
|
|
@@ -343,7 +525,33 @@ declare const v1Router: {
|
|
|
343
525
|
linkedinName: string | null;
|
|
344
526
|
canClaimName: boolean | "" | null | undefined;
|
|
345
527
|
};
|
|
346
|
-
}>, Record<never, never>,
|
|
528
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
529
|
+
readonly UNAUTHORIZED: {
|
|
530
|
+
readonly message: "You must be logged in to access this resource";
|
|
531
|
+
};
|
|
532
|
+
readonly FORBIDDEN: {
|
|
533
|
+
readonly message: "You do not have permission to access this resource";
|
|
534
|
+
};
|
|
535
|
+
readonly NOT_FOUND: {
|
|
536
|
+
readonly message: "The requested resource was not found";
|
|
537
|
+
};
|
|
538
|
+
readonly BAD_REQUEST: {
|
|
539
|
+
readonly message: "Invalid request";
|
|
540
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
541
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
542
|
+
code: zod.ZodString;
|
|
543
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
544
|
+
message: zod.ZodString;
|
|
545
|
+
}, better_auth.$loose>>;
|
|
546
|
+
}, better_auth.$strip>>;
|
|
547
|
+
};
|
|
548
|
+
readonly CONFLICT: {
|
|
549
|
+
readonly message: "The request conflicts with existing data";
|
|
550
|
+
};
|
|
551
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
552
|
+
readonly message: "An internal server error occurred";
|
|
553
|
+
};
|
|
554
|
+
}>, Record<never, never>>;
|
|
347
555
|
complete: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
348
556
|
session: {
|
|
349
557
|
id: string;
|
|
@@ -381,7 +589,33 @@ declare const v1Router: {
|
|
|
381
589
|
success: boolean;
|
|
382
590
|
linkedinName: string | null;
|
|
383
591
|
};
|
|
384
|
-
}>, Record<never, never>,
|
|
592
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
593
|
+
readonly UNAUTHORIZED: {
|
|
594
|
+
readonly message: "You must be logged in to access this resource";
|
|
595
|
+
};
|
|
596
|
+
readonly FORBIDDEN: {
|
|
597
|
+
readonly message: "You do not have permission to access this resource";
|
|
598
|
+
};
|
|
599
|
+
readonly NOT_FOUND: {
|
|
600
|
+
readonly message: "The requested resource was not found";
|
|
601
|
+
};
|
|
602
|
+
readonly BAD_REQUEST: {
|
|
603
|
+
readonly message: "Invalid request";
|
|
604
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
605
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
606
|
+
code: zod.ZodString;
|
|
607
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
608
|
+
message: zod.ZodString;
|
|
609
|
+
}, better_auth.$loose>>;
|
|
610
|
+
}, better_auth.$strip>>;
|
|
611
|
+
};
|
|
612
|
+
readonly CONFLICT: {
|
|
613
|
+
readonly message: "The request conflicts with existing data";
|
|
614
|
+
};
|
|
615
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
616
|
+
readonly message: "An internal server error occurred";
|
|
617
|
+
};
|
|
618
|
+
}>, Record<never, never>>;
|
|
385
619
|
claimName: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
386
620
|
session: {
|
|
387
621
|
id: string;
|
|
@@ -419,7 +653,33 @@ declare const v1Router: {
|
|
|
419
653
|
success: boolean;
|
|
420
654
|
name: string;
|
|
421
655
|
};
|
|
422
|
-
}>, Record<never, never>,
|
|
656
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
657
|
+
readonly UNAUTHORIZED: {
|
|
658
|
+
readonly message: "You must be logged in to access this resource";
|
|
659
|
+
};
|
|
660
|
+
readonly FORBIDDEN: {
|
|
661
|
+
readonly message: "You do not have permission to access this resource";
|
|
662
|
+
};
|
|
663
|
+
readonly NOT_FOUND: {
|
|
664
|
+
readonly message: "The requested resource was not found";
|
|
665
|
+
};
|
|
666
|
+
readonly BAD_REQUEST: {
|
|
667
|
+
readonly message: "Invalid request";
|
|
668
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
669
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
670
|
+
code: zod.ZodString;
|
|
671
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
672
|
+
message: zod.ZodString;
|
|
673
|
+
}, better_auth.$loose>>;
|
|
674
|
+
}, better_auth.$strip>>;
|
|
675
|
+
};
|
|
676
|
+
readonly CONFLICT: {
|
|
677
|
+
readonly message: "The request conflicts with existing data";
|
|
678
|
+
};
|
|
679
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
680
|
+
readonly message: "An internal server error occurred";
|
|
681
|
+
};
|
|
682
|
+
}>, Record<never, never>>;
|
|
423
683
|
clearName: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
424
684
|
session: {
|
|
425
685
|
id: string;
|
|
@@ -455,7 +715,33 @@ declare const v1Router: {
|
|
|
455
715
|
data: {
|
|
456
716
|
success: boolean;
|
|
457
717
|
};
|
|
458
|
-
}>, Record<never, never>,
|
|
718
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
719
|
+
readonly UNAUTHORIZED: {
|
|
720
|
+
readonly message: "You must be logged in to access this resource";
|
|
721
|
+
};
|
|
722
|
+
readonly FORBIDDEN: {
|
|
723
|
+
readonly message: "You do not have permission to access this resource";
|
|
724
|
+
};
|
|
725
|
+
readonly NOT_FOUND: {
|
|
726
|
+
readonly message: "The requested resource was not found";
|
|
727
|
+
};
|
|
728
|
+
readonly BAD_REQUEST: {
|
|
729
|
+
readonly message: "Invalid request";
|
|
730
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
731
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
732
|
+
code: zod.ZodString;
|
|
733
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
734
|
+
message: zod.ZodString;
|
|
735
|
+
}, better_auth.$loose>>;
|
|
736
|
+
}, better_auth.$strip>>;
|
|
737
|
+
};
|
|
738
|
+
readonly CONFLICT: {
|
|
739
|
+
readonly message: "The request conflicts with existing data";
|
|
740
|
+
};
|
|
741
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
742
|
+
readonly message: "An internal server error occurred";
|
|
743
|
+
};
|
|
744
|
+
}>, Record<never, never>>;
|
|
459
745
|
disconnect: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
460
746
|
session: {
|
|
461
747
|
id: string;
|
|
@@ -491,7 +777,33 @@ declare const v1Router: {
|
|
|
491
777
|
data: {
|
|
492
778
|
success: boolean;
|
|
493
779
|
};
|
|
494
|
-
}>, Record<never, never>,
|
|
780
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
781
|
+
readonly UNAUTHORIZED: {
|
|
782
|
+
readonly message: "You must be logged in to access this resource";
|
|
783
|
+
};
|
|
784
|
+
readonly FORBIDDEN: {
|
|
785
|
+
readonly message: "You do not have permission to access this resource";
|
|
786
|
+
};
|
|
787
|
+
readonly NOT_FOUND: {
|
|
788
|
+
readonly message: "The requested resource was not found";
|
|
789
|
+
};
|
|
790
|
+
readonly BAD_REQUEST: {
|
|
791
|
+
readonly message: "Invalid request";
|
|
792
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
793
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
794
|
+
code: zod.ZodString;
|
|
795
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
796
|
+
message: zod.ZodString;
|
|
797
|
+
}, better_auth.$loose>>;
|
|
798
|
+
}, better_auth.$strip>>;
|
|
799
|
+
};
|
|
800
|
+
readonly CONFLICT: {
|
|
801
|
+
readonly message: "The request conflicts with existing data";
|
|
802
|
+
};
|
|
803
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
804
|
+
readonly message: "An internal server error occurred";
|
|
805
|
+
};
|
|
806
|
+
}>, Record<never, never>>;
|
|
495
807
|
};
|
|
496
808
|
};
|
|
497
809
|
waitlist: {
|
|
@@ -532,7 +844,33 @@ declare const v1Router: {
|
|
|
532
844
|
data: {
|
|
533
845
|
success: boolean;
|
|
534
846
|
};
|
|
535
|
-
}>, Record<never, never>,
|
|
847
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
848
|
+
readonly UNAUTHORIZED: {
|
|
849
|
+
readonly message: "You must be logged in to access this resource";
|
|
850
|
+
};
|
|
851
|
+
readonly FORBIDDEN: {
|
|
852
|
+
readonly message: "You do not have permission to access this resource";
|
|
853
|
+
};
|
|
854
|
+
readonly NOT_FOUND: {
|
|
855
|
+
readonly message: "The requested resource was not found";
|
|
856
|
+
};
|
|
857
|
+
readonly BAD_REQUEST: {
|
|
858
|
+
readonly message: "Invalid request";
|
|
859
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
860
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
861
|
+
code: zod.ZodString;
|
|
862
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
863
|
+
message: zod.ZodString;
|
|
864
|
+
}, better_auth.$loose>>;
|
|
865
|
+
}, better_auth.$strip>>;
|
|
866
|
+
};
|
|
867
|
+
readonly CONFLICT: {
|
|
868
|
+
readonly message: "The request conflicts with existing data";
|
|
869
|
+
};
|
|
870
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
871
|
+
readonly message: "An internal server error occurred";
|
|
872
|
+
};
|
|
873
|
+
}>, Record<never, never>>;
|
|
536
874
|
check: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
537
875
|
session: {
|
|
538
876
|
id: string;
|
|
@@ -568,7 +906,33 @@ declare const v1Router: {
|
|
|
568
906
|
data: {
|
|
569
907
|
isOnWaitlist: boolean;
|
|
570
908
|
};
|
|
571
|
-
}>, Record<never, never>,
|
|
909
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
910
|
+
readonly UNAUTHORIZED: {
|
|
911
|
+
readonly message: "You must be logged in to access this resource";
|
|
912
|
+
};
|
|
913
|
+
readonly FORBIDDEN: {
|
|
914
|
+
readonly message: "You do not have permission to access this resource";
|
|
915
|
+
};
|
|
916
|
+
readonly NOT_FOUND: {
|
|
917
|
+
readonly message: "The requested resource was not found";
|
|
918
|
+
};
|
|
919
|
+
readonly BAD_REQUEST: {
|
|
920
|
+
readonly message: "Invalid request";
|
|
921
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
922
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
923
|
+
code: zod.ZodString;
|
|
924
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
925
|
+
message: zod.ZodString;
|
|
926
|
+
}, better_auth.$loose>>;
|
|
927
|
+
}, better_auth.$strip>>;
|
|
928
|
+
};
|
|
929
|
+
readonly CONFLICT: {
|
|
930
|
+
readonly message: "The request conflicts with existing data";
|
|
931
|
+
};
|
|
932
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
933
|
+
readonly message: "An internal server error occurred";
|
|
934
|
+
};
|
|
935
|
+
}>, Record<never, never>>;
|
|
572
936
|
apply: _orpc_server.DecoratedProcedure<BaseContext & Record<never, never>, BaseContext, zod.ZodObject<{
|
|
573
937
|
email: zod.ZodPipe<zod.ZodString, zod.ZodTransform<string, string>>;
|
|
574
938
|
linkedinUrl: zod.ZodString;
|
|
@@ -586,7 +950,33 @@ declare const v1Router: {
|
|
|
586
950
|
data: {
|
|
587
951
|
success: boolean;
|
|
588
952
|
};
|
|
589
|
-
}>, Record<never, never>,
|
|
953
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
954
|
+
readonly UNAUTHORIZED: {
|
|
955
|
+
readonly message: "You must be logged in to access this resource";
|
|
956
|
+
};
|
|
957
|
+
readonly FORBIDDEN: {
|
|
958
|
+
readonly message: "You do not have permission to access this resource";
|
|
959
|
+
};
|
|
960
|
+
readonly NOT_FOUND: {
|
|
961
|
+
readonly message: "The requested resource was not found";
|
|
962
|
+
};
|
|
963
|
+
readonly BAD_REQUEST: {
|
|
964
|
+
readonly message: "Invalid request";
|
|
965
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
966
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
967
|
+
code: zod.ZodString;
|
|
968
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
969
|
+
message: zod.ZodString;
|
|
970
|
+
}, better_auth.$loose>>;
|
|
971
|
+
}, better_auth.$strip>>;
|
|
972
|
+
};
|
|
973
|
+
readonly CONFLICT: {
|
|
974
|
+
readonly message: "The request conflicts with existing data";
|
|
975
|
+
};
|
|
976
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
977
|
+
readonly message: "An internal server error occurred";
|
|
978
|
+
};
|
|
979
|
+
}>, Record<never, never>>;
|
|
590
980
|
};
|
|
591
981
|
posts: {
|
|
592
982
|
list: _orpc_server.DecoratedProcedure<BaseContext & Record<never, never>, BaseContext, zod.ZodObject<{
|
|
@@ -639,7 +1029,33 @@ declare const v1Router: {
|
|
|
639
1029
|
nextCursor: string | null;
|
|
640
1030
|
hasMore: boolean;
|
|
641
1031
|
};
|
|
642
|
-
}>, Record<never, never>,
|
|
1032
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1033
|
+
readonly UNAUTHORIZED: {
|
|
1034
|
+
readonly message: "You must be logged in to access this resource";
|
|
1035
|
+
};
|
|
1036
|
+
readonly FORBIDDEN: {
|
|
1037
|
+
readonly message: "You do not have permission to access this resource";
|
|
1038
|
+
};
|
|
1039
|
+
readonly NOT_FOUND: {
|
|
1040
|
+
readonly message: "The requested resource was not found";
|
|
1041
|
+
};
|
|
1042
|
+
readonly BAD_REQUEST: {
|
|
1043
|
+
readonly message: "Invalid request";
|
|
1044
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1045
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1046
|
+
code: zod.ZodString;
|
|
1047
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1048
|
+
message: zod.ZodString;
|
|
1049
|
+
}, better_auth.$loose>>;
|
|
1050
|
+
}, better_auth.$strip>>;
|
|
1051
|
+
};
|
|
1052
|
+
readonly CONFLICT: {
|
|
1053
|
+
readonly message: "The request conflicts with existing data";
|
|
1054
|
+
};
|
|
1055
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1056
|
+
readonly message: "An internal server error occurred";
|
|
1057
|
+
};
|
|
1058
|
+
}>, Record<never, never>>;
|
|
643
1059
|
get: _orpc_server.DecoratedProcedure<BaseContext & Record<never, never>, BaseContext, zod.ZodObject<{
|
|
644
1060
|
idOrSlug: zod.ZodString;
|
|
645
1061
|
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
@@ -674,7 +1090,33 @@ declare const v1Router: {
|
|
|
674
1090
|
thumbnailUrl?: string | null;
|
|
675
1091
|
publishedAt: Date | null;
|
|
676
1092
|
createdAt: Date;
|
|
677
|
-
}>, Record<never, never>,
|
|
1093
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1094
|
+
readonly UNAUTHORIZED: {
|
|
1095
|
+
readonly message: "You must be logged in to access this resource";
|
|
1096
|
+
};
|
|
1097
|
+
readonly FORBIDDEN: {
|
|
1098
|
+
readonly message: "You do not have permission to access this resource";
|
|
1099
|
+
};
|
|
1100
|
+
readonly NOT_FOUND: {
|
|
1101
|
+
readonly message: "The requested resource was not found";
|
|
1102
|
+
};
|
|
1103
|
+
readonly BAD_REQUEST: {
|
|
1104
|
+
readonly message: "Invalid request";
|
|
1105
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1106
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1107
|
+
code: zod.ZodString;
|
|
1108
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1109
|
+
message: zod.ZodString;
|
|
1110
|
+
}, better_auth.$loose>>;
|
|
1111
|
+
}, better_auth.$strip>>;
|
|
1112
|
+
};
|
|
1113
|
+
readonly CONFLICT: {
|
|
1114
|
+
readonly message: "The request conflicts with existing data";
|
|
1115
|
+
};
|
|
1116
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1117
|
+
readonly message: "An internal server error occurred";
|
|
1118
|
+
};
|
|
1119
|
+
}>, Record<never, never>>;
|
|
678
1120
|
likes: {
|
|
679
1121
|
toggle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
680
1122
|
session: {
|
|
@@ -713,7 +1155,33 @@ declare const v1Router: {
|
|
|
713
1155
|
data: {
|
|
714
1156
|
isLiked: boolean;
|
|
715
1157
|
};
|
|
716
|
-
}>, Record<never, never>,
|
|
1158
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1159
|
+
readonly UNAUTHORIZED: {
|
|
1160
|
+
readonly message: "You must be logged in to access this resource";
|
|
1161
|
+
};
|
|
1162
|
+
readonly FORBIDDEN: {
|
|
1163
|
+
readonly message: "You do not have permission to access this resource";
|
|
1164
|
+
};
|
|
1165
|
+
readonly NOT_FOUND: {
|
|
1166
|
+
readonly message: "The requested resource was not found";
|
|
1167
|
+
};
|
|
1168
|
+
readonly BAD_REQUEST: {
|
|
1169
|
+
readonly message: "Invalid request";
|
|
1170
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1171
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1172
|
+
code: zod.ZodString;
|
|
1173
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1174
|
+
message: zod.ZodString;
|
|
1175
|
+
}, better_auth.$loose>>;
|
|
1176
|
+
}, better_auth.$strip>>;
|
|
1177
|
+
};
|
|
1178
|
+
readonly CONFLICT: {
|
|
1179
|
+
readonly message: "The request conflicts with existing data";
|
|
1180
|
+
};
|
|
1181
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1182
|
+
readonly message: "An internal server error occurred";
|
|
1183
|
+
};
|
|
1184
|
+
}>, Record<never, never>>;
|
|
717
1185
|
status: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
718
1186
|
session: {
|
|
719
1187
|
id: string;
|
|
@@ -753,7 +1221,33 @@ declare const v1Router: {
|
|
|
753
1221
|
likesCount: number;
|
|
754
1222
|
isLiked: boolean;
|
|
755
1223
|
};
|
|
756
|
-
}>, Record<never, never>,
|
|
1224
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1225
|
+
readonly UNAUTHORIZED: {
|
|
1226
|
+
readonly message: "You must be logged in to access this resource";
|
|
1227
|
+
};
|
|
1228
|
+
readonly FORBIDDEN: {
|
|
1229
|
+
readonly message: "You do not have permission to access this resource";
|
|
1230
|
+
};
|
|
1231
|
+
readonly NOT_FOUND: {
|
|
1232
|
+
readonly message: "The requested resource was not found";
|
|
1233
|
+
};
|
|
1234
|
+
readonly BAD_REQUEST: {
|
|
1235
|
+
readonly message: "Invalid request";
|
|
1236
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1237
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1238
|
+
code: zod.ZodString;
|
|
1239
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1240
|
+
message: zod.ZodString;
|
|
1241
|
+
}, better_auth.$loose>>;
|
|
1242
|
+
}, better_auth.$strip>>;
|
|
1243
|
+
};
|
|
1244
|
+
readonly CONFLICT: {
|
|
1245
|
+
readonly message: "The request conflicts with existing data";
|
|
1246
|
+
};
|
|
1247
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1248
|
+
readonly message: "An internal server error occurred";
|
|
1249
|
+
};
|
|
1250
|
+
}>, Record<never, never>>;
|
|
757
1251
|
};
|
|
758
1252
|
comments: {
|
|
759
1253
|
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
@@ -791,7 +1285,33 @@ declare const v1Router: {
|
|
|
791
1285
|
}, {
|
|
792
1286
|
data: Comment[];
|
|
793
1287
|
count: number;
|
|
794
|
-
}>, Record<never, never>,
|
|
1288
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1289
|
+
readonly UNAUTHORIZED: {
|
|
1290
|
+
readonly message: "You must be logged in to access this resource";
|
|
1291
|
+
};
|
|
1292
|
+
readonly FORBIDDEN: {
|
|
1293
|
+
readonly message: "You do not have permission to access this resource";
|
|
1294
|
+
};
|
|
1295
|
+
readonly NOT_FOUND: {
|
|
1296
|
+
readonly message: "The requested resource was not found";
|
|
1297
|
+
};
|
|
1298
|
+
readonly BAD_REQUEST: {
|
|
1299
|
+
readonly message: "Invalid request";
|
|
1300
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1301
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1302
|
+
code: zod.ZodString;
|
|
1303
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1304
|
+
message: zod.ZodString;
|
|
1305
|
+
}, better_auth.$loose>>;
|
|
1306
|
+
}, better_auth.$strip>>;
|
|
1307
|
+
};
|
|
1308
|
+
readonly CONFLICT: {
|
|
1309
|
+
readonly message: "The request conflicts with existing data";
|
|
1310
|
+
};
|
|
1311
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1312
|
+
readonly message: "An internal server error occurred";
|
|
1313
|
+
};
|
|
1314
|
+
}>, Record<never, never>>;
|
|
795
1315
|
create: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
796
1316
|
session: {
|
|
797
1317
|
id: string;
|
|
@@ -827,7 +1347,33 @@ declare const v1Router: {
|
|
|
827
1347
|
data: Comment;
|
|
828
1348
|
}, {
|
|
829
1349
|
data: Comment;
|
|
830
|
-
}>, Record<never, never>,
|
|
1350
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1351
|
+
readonly UNAUTHORIZED: {
|
|
1352
|
+
readonly message: "You must be logged in to access this resource";
|
|
1353
|
+
};
|
|
1354
|
+
readonly FORBIDDEN: {
|
|
1355
|
+
readonly message: "You do not have permission to access this resource";
|
|
1356
|
+
};
|
|
1357
|
+
readonly NOT_FOUND: {
|
|
1358
|
+
readonly message: "The requested resource was not found";
|
|
1359
|
+
};
|
|
1360
|
+
readonly BAD_REQUEST: {
|
|
1361
|
+
readonly message: "Invalid request";
|
|
1362
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1363
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1364
|
+
code: zod.ZodString;
|
|
1365
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1366
|
+
message: zod.ZodString;
|
|
1367
|
+
}, better_auth.$loose>>;
|
|
1368
|
+
}, better_auth.$strip>>;
|
|
1369
|
+
};
|
|
1370
|
+
readonly CONFLICT: {
|
|
1371
|
+
readonly message: "The request conflicts with existing data";
|
|
1372
|
+
};
|
|
1373
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1374
|
+
readonly message: "An internal server error occurred";
|
|
1375
|
+
};
|
|
1376
|
+
}>, Record<never, never>>;
|
|
831
1377
|
update: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
832
1378
|
session: {
|
|
833
1379
|
id: string;
|
|
@@ -862,7 +1408,33 @@ declare const v1Router: {
|
|
|
862
1408
|
data: Comment;
|
|
863
1409
|
}, {
|
|
864
1410
|
data: Comment;
|
|
865
|
-
}>, Record<never, never>,
|
|
1411
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1412
|
+
readonly UNAUTHORIZED: {
|
|
1413
|
+
readonly message: "You must be logged in to access this resource";
|
|
1414
|
+
};
|
|
1415
|
+
readonly FORBIDDEN: {
|
|
1416
|
+
readonly message: "You do not have permission to access this resource";
|
|
1417
|
+
};
|
|
1418
|
+
readonly NOT_FOUND: {
|
|
1419
|
+
readonly message: "The requested resource was not found";
|
|
1420
|
+
};
|
|
1421
|
+
readonly BAD_REQUEST: {
|
|
1422
|
+
readonly message: "Invalid request";
|
|
1423
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1424
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1425
|
+
code: zod.ZodString;
|
|
1426
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1427
|
+
message: zod.ZodString;
|
|
1428
|
+
}, better_auth.$loose>>;
|
|
1429
|
+
}, better_auth.$strip>>;
|
|
1430
|
+
};
|
|
1431
|
+
readonly CONFLICT: {
|
|
1432
|
+
readonly message: "The request conflicts with existing data";
|
|
1433
|
+
};
|
|
1434
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1435
|
+
readonly message: "An internal server error occurred";
|
|
1436
|
+
};
|
|
1437
|
+
}>, Record<never, never>>;
|
|
866
1438
|
delete: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
867
1439
|
session: {
|
|
868
1440
|
id: string;
|
|
@@ -900,7 +1472,33 @@ declare const v1Router: {
|
|
|
900
1472
|
data: {
|
|
901
1473
|
success: boolean;
|
|
902
1474
|
};
|
|
903
|
-
}>, Record<never, never>,
|
|
1475
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1476
|
+
readonly UNAUTHORIZED: {
|
|
1477
|
+
readonly message: "You must be logged in to access this resource";
|
|
1478
|
+
};
|
|
1479
|
+
readonly FORBIDDEN: {
|
|
1480
|
+
readonly message: "You do not have permission to access this resource";
|
|
1481
|
+
};
|
|
1482
|
+
readonly NOT_FOUND: {
|
|
1483
|
+
readonly message: "The requested resource was not found";
|
|
1484
|
+
};
|
|
1485
|
+
readonly BAD_REQUEST: {
|
|
1486
|
+
readonly message: "Invalid request";
|
|
1487
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1488
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1489
|
+
code: zod.ZodString;
|
|
1490
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1491
|
+
message: zod.ZodString;
|
|
1492
|
+
}, better_auth.$loose>>;
|
|
1493
|
+
}, better_auth.$strip>>;
|
|
1494
|
+
};
|
|
1495
|
+
readonly CONFLICT: {
|
|
1496
|
+
readonly message: "The request conflicts with existing data";
|
|
1497
|
+
};
|
|
1498
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1499
|
+
readonly message: "An internal server error occurred";
|
|
1500
|
+
};
|
|
1501
|
+
}>, Record<never, never>>;
|
|
904
1502
|
count: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
905
1503
|
session: {
|
|
906
1504
|
id: string;
|
|
@@ -938,7 +1536,33 @@ declare const v1Router: {
|
|
|
938
1536
|
data: {
|
|
939
1537
|
count: number;
|
|
940
1538
|
};
|
|
941
|
-
}>, Record<never, never>,
|
|
1539
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1540
|
+
readonly UNAUTHORIZED: {
|
|
1541
|
+
readonly message: "You must be logged in to access this resource";
|
|
1542
|
+
};
|
|
1543
|
+
readonly FORBIDDEN: {
|
|
1544
|
+
readonly message: "You do not have permission to access this resource";
|
|
1545
|
+
};
|
|
1546
|
+
readonly NOT_FOUND: {
|
|
1547
|
+
readonly message: "The requested resource was not found";
|
|
1548
|
+
};
|
|
1549
|
+
readonly BAD_REQUEST: {
|
|
1550
|
+
readonly message: "Invalid request";
|
|
1551
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1552
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1553
|
+
code: zod.ZodString;
|
|
1554
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1555
|
+
message: zod.ZodString;
|
|
1556
|
+
}, better_auth.$loose>>;
|
|
1557
|
+
}, better_auth.$strip>>;
|
|
1558
|
+
};
|
|
1559
|
+
readonly CONFLICT: {
|
|
1560
|
+
readonly message: "The request conflicts with existing data";
|
|
1561
|
+
};
|
|
1562
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1563
|
+
readonly message: "An internal server error occurred";
|
|
1564
|
+
};
|
|
1565
|
+
}>, Record<never, never>>;
|
|
942
1566
|
likes: {
|
|
943
1567
|
toggle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
944
1568
|
session: {
|
|
@@ -977,7 +1601,33 @@ declare const v1Router: {
|
|
|
977
1601
|
data: {
|
|
978
1602
|
isLiked: boolean;
|
|
979
1603
|
};
|
|
980
|
-
}>, Record<never, never>,
|
|
1604
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1605
|
+
readonly UNAUTHORIZED: {
|
|
1606
|
+
readonly message: "You must be logged in to access this resource";
|
|
1607
|
+
};
|
|
1608
|
+
readonly FORBIDDEN: {
|
|
1609
|
+
readonly message: "You do not have permission to access this resource";
|
|
1610
|
+
};
|
|
1611
|
+
readonly NOT_FOUND: {
|
|
1612
|
+
readonly message: "The requested resource was not found";
|
|
1613
|
+
};
|
|
1614
|
+
readonly BAD_REQUEST: {
|
|
1615
|
+
readonly message: "Invalid request";
|
|
1616
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1617
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1618
|
+
code: zod.ZodString;
|
|
1619
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1620
|
+
message: zod.ZodString;
|
|
1621
|
+
}, better_auth.$loose>>;
|
|
1622
|
+
}, better_auth.$strip>>;
|
|
1623
|
+
};
|
|
1624
|
+
readonly CONFLICT: {
|
|
1625
|
+
readonly message: "The request conflicts with existing data";
|
|
1626
|
+
};
|
|
1627
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1628
|
+
readonly message: "An internal server error occurred";
|
|
1629
|
+
};
|
|
1630
|
+
}>, Record<never, never>>;
|
|
981
1631
|
};
|
|
982
1632
|
};
|
|
983
1633
|
};
|
|
@@ -1032,7 +1682,33 @@ declare const v1Router: {
|
|
|
1032
1682
|
offset: number;
|
|
1033
1683
|
hasMore: boolean;
|
|
1034
1684
|
};
|
|
1035
|
-
}>, Record<never, never>,
|
|
1685
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1686
|
+
readonly UNAUTHORIZED: {
|
|
1687
|
+
readonly message: "You must be logged in to access this resource";
|
|
1688
|
+
};
|
|
1689
|
+
readonly FORBIDDEN: {
|
|
1690
|
+
readonly message: "You do not have permission to access this resource";
|
|
1691
|
+
};
|
|
1692
|
+
readonly NOT_FOUND: {
|
|
1693
|
+
readonly message: "The requested resource was not found";
|
|
1694
|
+
};
|
|
1695
|
+
readonly BAD_REQUEST: {
|
|
1696
|
+
readonly message: "Invalid request";
|
|
1697
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1698
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1699
|
+
code: zod.ZodString;
|
|
1700
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1701
|
+
message: zod.ZodString;
|
|
1702
|
+
}, better_auth.$loose>>;
|
|
1703
|
+
}, better_auth.$strip>>;
|
|
1704
|
+
};
|
|
1705
|
+
readonly CONFLICT: {
|
|
1706
|
+
readonly message: "The request conflicts with existing data";
|
|
1707
|
+
};
|
|
1708
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1709
|
+
readonly message: "An internal server error occurred";
|
|
1710
|
+
};
|
|
1711
|
+
}>, Record<never, never>>;
|
|
1036
1712
|
get: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1037
1713
|
isInternalRequest: true;
|
|
1038
1714
|
}>, zod.ZodObject<{
|
|
@@ -1063,7 +1739,33 @@ declare const v1Router: {
|
|
|
1063
1739
|
createdAt: string;
|
|
1064
1740
|
updatedAt: string;
|
|
1065
1741
|
};
|
|
1066
|
-
}>, Record<never, never>,
|
|
1742
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1743
|
+
readonly UNAUTHORIZED: {
|
|
1744
|
+
readonly message: "You must be logged in to access this resource";
|
|
1745
|
+
};
|
|
1746
|
+
readonly FORBIDDEN: {
|
|
1747
|
+
readonly message: "You do not have permission to access this resource";
|
|
1748
|
+
};
|
|
1749
|
+
readonly NOT_FOUND: {
|
|
1750
|
+
readonly message: "The requested resource was not found";
|
|
1751
|
+
};
|
|
1752
|
+
readonly BAD_REQUEST: {
|
|
1753
|
+
readonly message: "Invalid request";
|
|
1754
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1755
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1756
|
+
code: zod.ZodString;
|
|
1757
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1758
|
+
message: zod.ZodString;
|
|
1759
|
+
}, better_auth.$loose>>;
|
|
1760
|
+
}, better_auth.$strip>>;
|
|
1761
|
+
};
|
|
1762
|
+
readonly CONFLICT: {
|
|
1763
|
+
readonly message: "The request conflicts with existing data";
|
|
1764
|
+
};
|
|
1765
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1766
|
+
readonly message: "An internal server error occurred";
|
|
1767
|
+
};
|
|
1768
|
+
}>, Record<never, never>>;
|
|
1067
1769
|
create: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1068
1770
|
isInternalRequest: true;
|
|
1069
1771
|
}>, zod.ZodObject<{
|
|
@@ -1103,7 +1805,33 @@ declare const v1Router: {
|
|
|
1103
1805
|
createdAt: string;
|
|
1104
1806
|
updatedAt: string;
|
|
1105
1807
|
};
|
|
1106
|
-
}>, Record<never, never>,
|
|
1808
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1809
|
+
readonly UNAUTHORIZED: {
|
|
1810
|
+
readonly message: "You must be logged in to access this resource";
|
|
1811
|
+
};
|
|
1812
|
+
readonly FORBIDDEN: {
|
|
1813
|
+
readonly message: "You do not have permission to access this resource";
|
|
1814
|
+
};
|
|
1815
|
+
readonly NOT_FOUND: {
|
|
1816
|
+
readonly message: "The requested resource was not found";
|
|
1817
|
+
};
|
|
1818
|
+
readonly BAD_REQUEST: {
|
|
1819
|
+
readonly message: "Invalid request";
|
|
1820
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1821
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1822
|
+
code: zod.ZodString;
|
|
1823
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1824
|
+
message: zod.ZodString;
|
|
1825
|
+
}, better_auth.$loose>>;
|
|
1826
|
+
}, better_auth.$strip>>;
|
|
1827
|
+
};
|
|
1828
|
+
readonly CONFLICT: {
|
|
1829
|
+
readonly message: "The request conflicts with existing data";
|
|
1830
|
+
};
|
|
1831
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1832
|
+
readonly message: "An internal server error occurred";
|
|
1833
|
+
};
|
|
1834
|
+
}>, Record<never, never>>;
|
|
1107
1835
|
update: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1108
1836
|
isInternalRequest: true;
|
|
1109
1837
|
}>, zod.ZodObject<{
|
|
@@ -1144,7 +1872,33 @@ declare const v1Router: {
|
|
|
1144
1872
|
createdAt: string;
|
|
1145
1873
|
updatedAt: string;
|
|
1146
1874
|
};
|
|
1147
|
-
}>, Record<never, never>,
|
|
1875
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1876
|
+
readonly UNAUTHORIZED: {
|
|
1877
|
+
readonly message: "You must be logged in to access this resource";
|
|
1878
|
+
};
|
|
1879
|
+
readonly FORBIDDEN: {
|
|
1880
|
+
readonly message: "You do not have permission to access this resource";
|
|
1881
|
+
};
|
|
1882
|
+
readonly NOT_FOUND: {
|
|
1883
|
+
readonly message: "The requested resource was not found";
|
|
1884
|
+
};
|
|
1885
|
+
readonly BAD_REQUEST: {
|
|
1886
|
+
readonly message: "Invalid request";
|
|
1887
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1888
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1889
|
+
code: zod.ZodString;
|
|
1890
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1891
|
+
message: zod.ZodString;
|
|
1892
|
+
}, better_auth.$loose>>;
|
|
1893
|
+
}, better_auth.$strip>>;
|
|
1894
|
+
};
|
|
1895
|
+
readonly CONFLICT: {
|
|
1896
|
+
readonly message: "The request conflicts with existing data";
|
|
1897
|
+
};
|
|
1898
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1899
|
+
readonly message: "An internal server error occurred";
|
|
1900
|
+
};
|
|
1901
|
+
}>, Record<never, never>>;
|
|
1148
1902
|
delete: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1149
1903
|
isInternalRequest: true;
|
|
1150
1904
|
}>, zod.ZodObject<{
|
|
@@ -1153,7 +1907,33 @@ declare const v1Router: {
|
|
|
1153
1907
|
success: boolean;
|
|
1154
1908
|
}, {
|
|
1155
1909
|
success: boolean;
|
|
1156
|
-
}>, Record<never, never>,
|
|
1910
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1911
|
+
readonly UNAUTHORIZED: {
|
|
1912
|
+
readonly message: "You must be logged in to access this resource";
|
|
1913
|
+
};
|
|
1914
|
+
readonly FORBIDDEN: {
|
|
1915
|
+
readonly message: "You do not have permission to access this resource";
|
|
1916
|
+
};
|
|
1917
|
+
readonly NOT_FOUND: {
|
|
1918
|
+
readonly message: "The requested resource was not found";
|
|
1919
|
+
};
|
|
1920
|
+
readonly BAD_REQUEST: {
|
|
1921
|
+
readonly message: "Invalid request";
|
|
1922
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1923
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1924
|
+
code: zod.ZodString;
|
|
1925
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1926
|
+
message: zod.ZodString;
|
|
1927
|
+
}, better_auth.$loose>>;
|
|
1928
|
+
}, better_auth.$strip>>;
|
|
1929
|
+
};
|
|
1930
|
+
readonly CONFLICT: {
|
|
1931
|
+
readonly message: "The request conflicts with existing data";
|
|
1932
|
+
};
|
|
1933
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1934
|
+
readonly message: "An internal server error occurred";
|
|
1935
|
+
};
|
|
1936
|
+
}>, Record<never, never>>;
|
|
1157
1937
|
};
|
|
1158
1938
|
applications: {
|
|
1159
1939
|
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
@@ -1191,14 +1971,66 @@ declare const v1Router: {
|
|
|
1191
1971
|
hasMore: boolean;
|
|
1192
1972
|
};
|
|
1193
1973
|
syncedAt: string;
|
|
1194
|
-
}>, Record<never, never>,
|
|
1974
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1975
|
+
readonly UNAUTHORIZED: {
|
|
1976
|
+
readonly message: "You must be logged in to access this resource";
|
|
1977
|
+
};
|
|
1978
|
+
readonly FORBIDDEN: {
|
|
1979
|
+
readonly message: "You do not have permission to access this resource";
|
|
1980
|
+
};
|
|
1981
|
+
readonly NOT_FOUND: {
|
|
1982
|
+
readonly message: "The requested resource was not found";
|
|
1983
|
+
};
|
|
1984
|
+
readonly BAD_REQUEST: {
|
|
1985
|
+
readonly message: "Invalid request";
|
|
1986
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1987
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1988
|
+
code: zod.ZodString;
|
|
1989
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1990
|
+
message: zod.ZodString;
|
|
1991
|
+
}, better_auth.$loose>>;
|
|
1992
|
+
}, better_auth.$strip>>;
|
|
1993
|
+
};
|
|
1994
|
+
readonly CONFLICT: {
|
|
1995
|
+
readonly message: "The request conflicts with existing data";
|
|
1996
|
+
};
|
|
1997
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1998
|
+
readonly message: "An internal server error occurred";
|
|
1999
|
+
};
|
|
2000
|
+
}>, Record<never, never>>;
|
|
1195
2001
|
count: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1196
2002
|
isInternalRequest: true;
|
|
1197
2003
|
}>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
|
|
1198
2004
|
count: number;
|
|
1199
2005
|
}, {
|
|
1200
2006
|
count: number;
|
|
1201
|
-
}>, Record<never, never>,
|
|
2007
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2008
|
+
readonly UNAUTHORIZED: {
|
|
2009
|
+
readonly message: "You must be logged in to access this resource";
|
|
2010
|
+
};
|
|
2011
|
+
readonly FORBIDDEN: {
|
|
2012
|
+
readonly message: "You do not have permission to access this resource";
|
|
2013
|
+
};
|
|
2014
|
+
readonly NOT_FOUND: {
|
|
2015
|
+
readonly message: "The requested resource was not found";
|
|
2016
|
+
};
|
|
2017
|
+
readonly BAD_REQUEST: {
|
|
2018
|
+
readonly message: "Invalid request";
|
|
2019
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2020
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2021
|
+
code: zod.ZodString;
|
|
2022
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2023
|
+
message: zod.ZodString;
|
|
2024
|
+
}, better_auth.$loose>>;
|
|
2025
|
+
}, better_auth.$strip>>;
|
|
2026
|
+
};
|
|
2027
|
+
readonly CONFLICT: {
|
|
2028
|
+
readonly message: "The request conflicts with existing data";
|
|
2029
|
+
};
|
|
2030
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2031
|
+
readonly message: "An internal server error occurred";
|
|
2032
|
+
};
|
|
2033
|
+
}>, Record<never, never>>;
|
|
1202
2034
|
};
|
|
1203
2035
|
};
|
|
1204
2036
|
/**
|
|
@@ -1318,7 +2150,33 @@ declare const v1Router: {
|
|
|
1318
2150
|
nextCursor: string | null;
|
|
1319
2151
|
hasMore: boolean;
|
|
1320
2152
|
};
|
|
1321
|
-
}>, Record<never, never>,
|
|
2153
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2154
|
+
readonly UNAUTHORIZED: {
|
|
2155
|
+
readonly message: "You must be logged in to access this resource";
|
|
2156
|
+
};
|
|
2157
|
+
readonly FORBIDDEN: {
|
|
2158
|
+
readonly message: "You do not have permission to access this resource";
|
|
2159
|
+
};
|
|
2160
|
+
readonly NOT_FOUND: {
|
|
2161
|
+
readonly message: "The requested resource was not found";
|
|
2162
|
+
};
|
|
2163
|
+
readonly BAD_REQUEST: {
|
|
2164
|
+
readonly message: "Invalid request";
|
|
2165
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2166
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2167
|
+
code: zod.ZodString;
|
|
2168
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2169
|
+
message: zod.ZodString;
|
|
2170
|
+
}, better_auth.$loose>>;
|
|
2171
|
+
}, better_auth.$strip>>;
|
|
2172
|
+
};
|
|
2173
|
+
readonly CONFLICT: {
|
|
2174
|
+
readonly message: "The request conflicts with existing data";
|
|
2175
|
+
};
|
|
2176
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2177
|
+
readonly message: "An internal server error occurred";
|
|
2178
|
+
};
|
|
2179
|
+
}>, Record<never, never>>;
|
|
1322
2180
|
get: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1323
2181
|
session: {
|
|
1324
2182
|
id: string;
|
|
@@ -1416,7 +2274,33 @@ declare const v1Router: {
|
|
|
1416
2274
|
}[];
|
|
1417
2275
|
};
|
|
1418
2276
|
};
|
|
1419
|
-
}>, Record<never, never>,
|
|
2277
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2278
|
+
readonly UNAUTHORIZED: {
|
|
2279
|
+
readonly message: "You must be logged in to access this resource";
|
|
2280
|
+
};
|
|
2281
|
+
readonly FORBIDDEN: {
|
|
2282
|
+
readonly message: "You do not have permission to access this resource";
|
|
2283
|
+
};
|
|
2284
|
+
readonly NOT_FOUND: {
|
|
2285
|
+
readonly message: "The requested resource was not found";
|
|
2286
|
+
};
|
|
2287
|
+
readonly BAD_REQUEST: {
|
|
2288
|
+
readonly message: "Invalid request";
|
|
2289
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2290
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2291
|
+
code: zod.ZodString;
|
|
2292
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2293
|
+
message: zod.ZodString;
|
|
2294
|
+
}, better_auth.$loose>>;
|
|
2295
|
+
}, better_auth.$strip>>;
|
|
2296
|
+
};
|
|
2297
|
+
readonly CONFLICT: {
|
|
2298
|
+
readonly message: "The request conflicts with existing data";
|
|
2299
|
+
};
|
|
2300
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2301
|
+
readonly message: "An internal server error occurred";
|
|
2302
|
+
};
|
|
2303
|
+
}>, Record<never, never>>;
|
|
1420
2304
|
create: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1421
2305
|
session: {
|
|
1422
2306
|
id: string;
|
|
@@ -1510,7 +2394,33 @@ declare const v1Router: {
|
|
|
1510
2394
|
};
|
|
1511
2395
|
replyAvatars: never[];
|
|
1512
2396
|
};
|
|
1513
|
-
}>, Record<never, never>,
|
|
2397
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2398
|
+
readonly UNAUTHORIZED: {
|
|
2399
|
+
readonly message: "You must be logged in to access this resource";
|
|
2400
|
+
};
|
|
2401
|
+
readonly FORBIDDEN: {
|
|
2402
|
+
readonly message: "You do not have permission to access this resource";
|
|
2403
|
+
};
|
|
2404
|
+
readonly NOT_FOUND: {
|
|
2405
|
+
readonly message: "The requested resource was not found";
|
|
2406
|
+
};
|
|
2407
|
+
readonly BAD_REQUEST: {
|
|
2408
|
+
readonly message: "Invalid request";
|
|
2409
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2410
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2411
|
+
code: zod.ZodString;
|
|
2412
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2413
|
+
message: zod.ZodString;
|
|
2414
|
+
}, better_auth.$loose>>;
|
|
2415
|
+
}, better_auth.$strip>>;
|
|
2416
|
+
};
|
|
2417
|
+
readonly CONFLICT: {
|
|
2418
|
+
readonly message: "The request conflicts with existing data";
|
|
2419
|
+
};
|
|
2420
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2421
|
+
readonly message: "An internal server error occurred";
|
|
2422
|
+
};
|
|
2423
|
+
}>, Record<never, never>>;
|
|
1514
2424
|
update: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1515
2425
|
session: {
|
|
1516
2426
|
id: string;
|
|
@@ -1577,7 +2487,33 @@ declare const v1Router: {
|
|
|
1577
2487
|
updatedAt: Date;
|
|
1578
2488
|
};
|
|
1579
2489
|
};
|
|
1580
|
-
}>, Record<never, never>,
|
|
2490
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2491
|
+
readonly UNAUTHORIZED: {
|
|
2492
|
+
readonly message: "You must be logged in to access this resource";
|
|
2493
|
+
};
|
|
2494
|
+
readonly FORBIDDEN: {
|
|
2495
|
+
readonly message: "You do not have permission to access this resource";
|
|
2496
|
+
};
|
|
2497
|
+
readonly NOT_FOUND: {
|
|
2498
|
+
readonly message: "The requested resource was not found";
|
|
2499
|
+
};
|
|
2500
|
+
readonly BAD_REQUEST: {
|
|
2501
|
+
readonly message: "Invalid request";
|
|
2502
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2503
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2504
|
+
code: zod.ZodString;
|
|
2505
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2506
|
+
message: zod.ZodString;
|
|
2507
|
+
}, better_auth.$loose>>;
|
|
2508
|
+
}, better_auth.$strip>>;
|
|
2509
|
+
};
|
|
2510
|
+
readonly CONFLICT: {
|
|
2511
|
+
readonly message: "The request conflicts with existing data";
|
|
2512
|
+
};
|
|
2513
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2514
|
+
readonly message: "An internal server error occurred";
|
|
2515
|
+
};
|
|
2516
|
+
}>, Record<never, never>>;
|
|
1581
2517
|
delete: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1582
2518
|
session: {
|
|
1583
2519
|
id: string;
|
|
@@ -1615,7 +2551,33 @@ declare const v1Router: {
|
|
|
1615
2551
|
data: {
|
|
1616
2552
|
success: boolean;
|
|
1617
2553
|
};
|
|
1618
|
-
}>, Record<never, never>,
|
|
2554
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2555
|
+
readonly UNAUTHORIZED: {
|
|
2556
|
+
readonly message: "You must be logged in to access this resource";
|
|
2557
|
+
};
|
|
2558
|
+
readonly FORBIDDEN: {
|
|
2559
|
+
readonly message: "You do not have permission to access this resource";
|
|
2560
|
+
};
|
|
2561
|
+
readonly NOT_FOUND: {
|
|
2562
|
+
readonly message: "The requested resource was not found";
|
|
2563
|
+
};
|
|
2564
|
+
readonly BAD_REQUEST: {
|
|
2565
|
+
readonly message: "Invalid request";
|
|
2566
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2567
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2568
|
+
code: zod.ZodString;
|
|
2569
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2570
|
+
message: zod.ZodString;
|
|
2571
|
+
}, better_auth.$loose>>;
|
|
2572
|
+
}, better_auth.$strip>>;
|
|
2573
|
+
};
|
|
2574
|
+
readonly CONFLICT: {
|
|
2575
|
+
readonly message: "The request conflicts with existing data";
|
|
2576
|
+
};
|
|
2577
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2578
|
+
readonly message: "An internal server error occurred";
|
|
2579
|
+
};
|
|
2580
|
+
}>, Record<never, never>>;
|
|
1619
2581
|
getUploadTokens: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1620
2582
|
session: {
|
|
1621
2583
|
id: string;
|
|
@@ -1659,7 +2621,33 @@ declare const v1Router: {
|
|
|
1659
2621
|
pathname: string;
|
|
1660
2622
|
}[];
|
|
1661
2623
|
};
|
|
1662
|
-
}>, Record<never, never>,
|
|
2624
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2625
|
+
readonly UNAUTHORIZED: {
|
|
2626
|
+
readonly message: "You must be logged in to access this resource";
|
|
2627
|
+
};
|
|
2628
|
+
readonly FORBIDDEN: {
|
|
2629
|
+
readonly message: "You do not have permission to access this resource";
|
|
2630
|
+
};
|
|
2631
|
+
readonly NOT_FOUND: {
|
|
2632
|
+
readonly message: "The requested resource was not found";
|
|
2633
|
+
};
|
|
2634
|
+
readonly BAD_REQUEST: {
|
|
2635
|
+
readonly message: "Invalid request";
|
|
2636
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2637
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2638
|
+
code: zod.ZodString;
|
|
2639
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2640
|
+
message: zod.ZodString;
|
|
2641
|
+
}, better_auth.$loose>>;
|
|
2642
|
+
}, better_auth.$strip>>;
|
|
2643
|
+
};
|
|
2644
|
+
readonly CONFLICT: {
|
|
2645
|
+
readonly message: "The request conflicts with existing data";
|
|
2646
|
+
};
|
|
2647
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2648
|
+
readonly message: "An internal server error occurred";
|
|
2649
|
+
};
|
|
2650
|
+
}>, Record<never, never>>;
|
|
1663
2651
|
uploadImages: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1664
2652
|
session: {
|
|
1665
2653
|
id: string;
|
|
@@ -1705,7 +2693,33 @@ declare const v1Router: {
|
|
|
1705
2693
|
data: {
|
|
1706
2694
|
urls: string[];
|
|
1707
2695
|
};
|
|
1708
|
-
}>, Record<never, never>,
|
|
2696
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2697
|
+
readonly UNAUTHORIZED: {
|
|
2698
|
+
readonly message: "You must be logged in to access this resource";
|
|
2699
|
+
};
|
|
2700
|
+
readonly FORBIDDEN: {
|
|
2701
|
+
readonly message: "You do not have permission to access this resource";
|
|
2702
|
+
};
|
|
2703
|
+
readonly NOT_FOUND: {
|
|
2704
|
+
readonly message: "The requested resource was not found";
|
|
2705
|
+
};
|
|
2706
|
+
readonly BAD_REQUEST: {
|
|
2707
|
+
readonly message: "Invalid request";
|
|
2708
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2709
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2710
|
+
code: zod.ZodString;
|
|
2711
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2712
|
+
message: zod.ZodString;
|
|
2713
|
+
}, better_auth.$loose>>;
|
|
2714
|
+
}, better_auth.$strip>>;
|
|
2715
|
+
};
|
|
2716
|
+
readonly CONFLICT: {
|
|
2717
|
+
readonly message: "The request conflicts with existing data";
|
|
2718
|
+
};
|
|
2719
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2720
|
+
readonly message: "An internal server error occurred";
|
|
2721
|
+
};
|
|
2722
|
+
}>, Record<never, never>>;
|
|
1709
2723
|
likes: {
|
|
1710
2724
|
toggle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1711
2725
|
session: {
|
|
@@ -1744,7 +2758,33 @@ declare const v1Router: {
|
|
|
1744
2758
|
data: {
|
|
1745
2759
|
isLiked: boolean;
|
|
1746
2760
|
};
|
|
1747
|
-
}>, Record<never, never>,
|
|
2761
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2762
|
+
readonly UNAUTHORIZED: {
|
|
2763
|
+
readonly message: "You must be logged in to access this resource";
|
|
2764
|
+
};
|
|
2765
|
+
readonly FORBIDDEN: {
|
|
2766
|
+
readonly message: "You do not have permission to access this resource";
|
|
2767
|
+
};
|
|
2768
|
+
readonly NOT_FOUND: {
|
|
2769
|
+
readonly message: "The requested resource was not found";
|
|
2770
|
+
};
|
|
2771
|
+
readonly BAD_REQUEST: {
|
|
2772
|
+
readonly message: "Invalid request";
|
|
2773
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2774
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2775
|
+
code: zod.ZodString;
|
|
2776
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2777
|
+
message: zod.ZodString;
|
|
2778
|
+
}, better_auth.$loose>>;
|
|
2779
|
+
}, better_auth.$strip>>;
|
|
2780
|
+
};
|
|
2781
|
+
readonly CONFLICT: {
|
|
2782
|
+
readonly message: "The request conflicts with existing data";
|
|
2783
|
+
};
|
|
2784
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2785
|
+
readonly message: "An internal server error occurred";
|
|
2786
|
+
};
|
|
2787
|
+
}>, Record<never, never>>;
|
|
1748
2788
|
status: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1749
2789
|
session: {
|
|
1750
2790
|
id: string;
|
|
@@ -1784,7 +2824,33 @@ declare const v1Router: {
|
|
|
1784
2824
|
likesCount: number;
|
|
1785
2825
|
isLiked: boolean;
|
|
1786
2826
|
};
|
|
1787
|
-
}>, Record<never, never>,
|
|
2827
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2828
|
+
readonly UNAUTHORIZED: {
|
|
2829
|
+
readonly message: "You must be logged in to access this resource";
|
|
2830
|
+
};
|
|
2831
|
+
readonly FORBIDDEN: {
|
|
2832
|
+
readonly message: "You do not have permission to access this resource";
|
|
2833
|
+
};
|
|
2834
|
+
readonly NOT_FOUND: {
|
|
2835
|
+
readonly message: "The requested resource was not found";
|
|
2836
|
+
};
|
|
2837
|
+
readonly BAD_REQUEST: {
|
|
2838
|
+
readonly message: "Invalid request";
|
|
2839
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2840
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2841
|
+
code: zod.ZodString;
|
|
2842
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2843
|
+
message: zod.ZodString;
|
|
2844
|
+
}, better_auth.$loose>>;
|
|
2845
|
+
}, better_auth.$strip>>;
|
|
2846
|
+
};
|
|
2847
|
+
readonly CONFLICT: {
|
|
2848
|
+
readonly message: "The request conflicts with existing data";
|
|
2849
|
+
};
|
|
2850
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2851
|
+
readonly message: "An internal server error occurred";
|
|
2852
|
+
};
|
|
2853
|
+
}>, Record<never, never>>;
|
|
1788
2854
|
};
|
|
1789
2855
|
reactions: {
|
|
1790
2856
|
toggle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
@@ -1825,7 +2891,33 @@ declare const v1Router: {
|
|
|
1825
2891
|
data: {
|
|
1826
2892
|
reactions: Reaction[];
|
|
1827
2893
|
};
|
|
1828
|
-
}>, Record<never, never>,
|
|
2894
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2895
|
+
readonly UNAUTHORIZED: {
|
|
2896
|
+
readonly message: "You must be logged in to access this resource";
|
|
2897
|
+
};
|
|
2898
|
+
readonly FORBIDDEN: {
|
|
2899
|
+
readonly message: "You do not have permission to access this resource";
|
|
2900
|
+
};
|
|
2901
|
+
readonly NOT_FOUND: {
|
|
2902
|
+
readonly message: "The requested resource was not found";
|
|
2903
|
+
};
|
|
2904
|
+
readonly BAD_REQUEST: {
|
|
2905
|
+
readonly message: "Invalid request";
|
|
2906
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2907
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2908
|
+
code: zod.ZodString;
|
|
2909
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2910
|
+
message: zod.ZodString;
|
|
2911
|
+
}, better_auth.$loose>>;
|
|
2912
|
+
}, better_auth.$strip>>;
|
|
2913
|
+
};
|
|
2914
|
+
readonly CONFLICT: {
|
|
2915
|
+
readonly message: "The request conflicts with existing data";
|
|
2916
|
+
};
|
|
2917
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2918
|
+
readonly message: "An internal server error occurred";
|
|
2919
|
+
};
|
|
2920
|
+
}>, Record<never, never>>;
|
|
1829
2921
|
};
|
|
1830
2922
|
comments: {
|
|
1831
2923
|
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
@@ -1863,7 +2955,33 @@ declare const v1Router: {
|
|
|
1863
2955
|
}, {
|
|
1864
2956
|
data: CommunityComment[];
|
|
1865
2957
|
count: number;
|
|
1866
|
-
}>, Record<never, never>,
|
|
2958
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2959
|
+
readonly UNAUTHORIZED: {
|
|
2960
|
+
readonly message: "You must be logged in to access this resource";
|
|
2961
|
+
};
|
|
2962
|
+
readonly FORBIDDEN: {
|
|
2963
|
+
readonly message: "You do not have permission to access this resource";
|
|
2964
|
+
};
|
|
2965
|
+
readonly NOT_FOUND: {
|
|
2966
|
+
readonly message: "The requested resource was not found";
|
|
2967
|
+
};
|
|
2968
|
+
readonly BAD_REQUEST: {
|
|
2969
|
+
readonly message: "Invalid request";
|
|
2970
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2971
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2972
|
+
code: zod.ZodString;
|
|
2973
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2974
|
+
message: zod.ZodString;
|
|
2975
|
+
}, better_auth.$loose>>;
|
|
2976
|
+
}, better_auth.$strip>>;
|
|
2977
|
+
};
|
|
2978
|
+
readonly CONFLICT: {
|
|
2979
|
+
readonly message: "The request conflicts with existing data";
|
|
2980
|
+
};
|
|
2981
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2982
|
+
readonly message: "An internal server error occurred";
|
|
2983
|
+
};
|
|
2984
|
+
}>, Record<never, never>>;
|
|
1867
2985
|
create: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1868
2986
|
session: {
|
|
1869
2987
|
id: string;
|
|
@@ -1901,7 +3019,33 @@ declare const v1Router: {
|
|
|
1901
3019
|
data: CommunityComment;
|
|
1902
3020
|
}, {
|
|
1903
3021
|
data: CommunityComment;
|
|
1904
|
-
}>, Record<never, never>,
|
|
3022
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
3023
|
+
readonly UNAUTHORIZED: {
|
|
3024
|
+
readonly message: "You must be logged in to access this resource";
|
|
3025
|
+
};
|
|
3026
|
+
readonly FORBIDDEN: {
|
|
3027
|
+
readonly message: "You do not have permission to access this resource";
|
|
3028
|
+
};
|
|
3029
|
+
readonly NOT_FOUND: {
|
|
3030
|
+
readonly message: "The requested resource was not found";
|
|
3031
|
+
};
|
|
3032
|
+
readonly BAD_REQUEST: {
|
|
3033
|
+
readonly message: "Invalid request";
|
|
3034
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
3035
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
3036
|
+
code: zod.ZodString;
|
|
3037
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3038
|
+
message: zod.ZodString;
|
|
3039
|
+
}, better_auth.$loose>>;
|
|
3040
|
+
}, better_auth.$strip>>;
|
|
3041
|
+
};
|
|
3042
|
+
readonly CONFLICT: {
|
|
3043
|
+
readonly message: "The request conflicts with existing data";
|
|
3044
|
+
};
|
|
3045
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
3046
|
+
readonly message: "An internal server error occurred";
|
|
3047
|
+
};
|
|
3048
|
+
}>, Record<never, never>>;
|
|
1905
3049
|
update: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1906
3050
|
session: {
|
|
1907
3051
|
id: string;
|
|
@@ -1936,7 +3080,33 @@ declare const v1Router: {
|
|
|
1936
3080
|
data: CommunityComment;
|
|
1937
3081
|
}, {
|
|
1938
3082
|
data: CommunityComment;
|
|
1939
|
-
}>, Record<never, never>,
|
|
3083
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
3084
|
+
readonly UNAUTHORIZED: {
|
|
3085
|
+
readonly message: "You must be logged in to access this resource";
|
|
3086
|
+
};
|
|
3087
|
+
readonly FORBIDDEN: {
|
|
3088
|
+
readonly message: "You do not have permission to access this resource";
|
|
3089
|
+
};
|
|
3090
|
+
readonly NOT_FOUND: {
|
|
3091
|
+
readonly message: "The requested resource was not found";
|
|
3092
|
+
};
|
|
3093
|
+
readonly BAD_REQUEST: {
|
|
3094
|
+
readonly message: "Invalid request";
|
|
3095
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
3096
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
3097
|
+
code: zod.ZodString;
|
|
3098
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3099
|
+
message: zod.ZodString;
|
|
3100
|
+
}, better_auth.$loose>>;
|
|
3101
|
+
}, better_auth.$strip>>;
|
|
3102
|
+
};
|
|
3103
|
+
readonly CONFLICT: {
|
|
3104
|
+
readonly message: "The request conflicts with existing data";
|
|
3105
|
+
};
|
|
3106
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
3107
|
+
readonly message: "An internal server error occurred";
|
|
3108
|
+
};
|
|
3109
|
+
}>, Record<never, never>>;
|
|
1940
3110
|
delete: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1941
3111
|
session: {
|
|
1942
3112
|
id: string;
|
|
@@ -1974,7 +3144,33 @@ declare const v1Router: {
|
|
|
1974
3144
|
data: {
|
|
1975
3145
|
success: boolean;
|
|
1976
3146
|
};
|
|
1977
|
-
}>, Record<never, never>,
|
|
3147
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
3148
|
+
readonly UNAUTHORIZED: {
|
|
3149
|
+
readonly message: "You must be logged in to access this resource";
|
|
3150
|
+
};
|
|
3151
|
+
readonly FORBIDDEN: {
|
|
3152
|
+
readonly message: "You do not have permission to access this resource";
|
|
3153
|
+
};
|
|
3154
|
+
readonly NOT_FOUND: {
|
|
3155
|
+
readonly message: "The requested resource was not found";
|
|
3156
|
+
};
|
|
3157
|
+
readonly BAD_REQUEST: {
|
|
3158
|
+
readonly message: "Invalid request";
|
|
3159
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
3160
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
3161
|
+
code: zod.ZodString;
|
|
3162
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3163
|
+
message: zod.ZodString;
|
|
3164
|
+
}, better_auth.$loose>>;
|
|
3165
|
+
}, better_auth.$strip>>;
|
|
3166
|
+
};
|
|
3167
|
+
readonly CONFLICT: {
|
|
3168
|
+
readonly message: "The request conflicts with existing data";
|
|
3169
|
+
};
|
|
3170
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
3171
|
+
readonly message: "An internal server error occurred";
|
|
3172
|
+
};
|
|
3173
|
+
}>, Record<never, never>>;
|
|
1978
3174
|
count: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1979
3175
|
session: {
|
|
1980
3176
|
id: string;
|
|
@@ -2012,7 +3208,33 @@ declare const v1Router: {
|
|
|
2012
3208
|
data: {
|
|
2013
3209
|
count: number;
|
|
2014
3210
|
};
|
|
2015
|
-
}>, Record<never, never>,
|
|
3211
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
3212
|
+
readonly UNAUTHORIZED: {
|
|
3213
|
+
readonly message: "You must be logged in to access this resource";
|
|
3214
|
+
};
|
|
3215
|
+
readonly FORBIDDEN: {
|
|
3216
|
+
readonly message: "You do not have permission to access this resource";
|
|
3217
|
+
};
|
|
3218
|
+
readonly NOT_FOUND: {
|
|
3219
|
+
readonly message: "The requested resource was not found";
|
|
3220
|
+
};
|
|
3221
|
+
readonly BAD_REQUEST: {
|
|
3222
|
+
readonly message: "Invalid request";
|
|
3223
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
3224
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
3225
|
+
code: zod.ZodString;
|
|
3226
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3227
|
+
message: zod.ZodString;
|
|
3228
|
+
}, better_auth.$loose>>;
|
|
3229
|
+
}, better_auth.$strip>>;
|
|
3230
|
+
};
|
|
3231
|
+
readonly CONFLICT: {
|
|
3232
|
+
readonly message: "The request conflicts with existing data";
|
|
3233
|
+
};
|
|
3234
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
3235
|
+
readonly message: "An internal server error occurred";
|
|
3236
|
+
};
|
|
3237
|
+
}>, Record<never, never>>;
|
|
2016
3238
|
likes: {
|
|
2017
3239
|
toggle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
2018
3240
|
session: {
|
|
@@ -2051,7 +3273,33 @@ declare const v1Router: {
|
|
|
2051
3273
|
data: {
|
|
2052
3274
|
isLiked: boolean;
|
|
2053
3275
|
};
|
|
2054
|
-
}>, Record<never, never>,
|
|
3276
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
3277
|
+
readonly UNAUTHORIZED: {
|
|
3278
|
+
readonly message: "You must be logged in to access this resource";
|
|
3279
|
+
};
|
|
3280
|
+
readonly FORBIDDEN: {
|
|
3281
|
+
readonly message: "You do not have permission to access this resource";
|
|
3282
|
+
};
|
|
3283
|
+
readonly NOT_FOUND: {
|
|
3284
|
+
readonly message: "The requested resource was not found";
|
|
3285
|
+
};
|
|
3286
|
+
readonly BAD_REQUEST: {
|
|
3287
|
+
readonly message: "Invalid request";
|
|
3288
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
3289
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
3290
|
+
code: zod.ZodString;
|
|
3291
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3292
|
+
message: zod.ZodString;
|
|
3293
|
+
}, better_auth.$loose>>;
|
|
3294
|
+
}, better_auth.$strip>>;
|
|
3295
|
+
};
|
|
3296
|
+
readonly CONFLICT: {
|
|
3297
|
+
readonly message: "The request conflicts with existing data";
|
|
3298
|
+
};
|
|
3299
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
3300
|
+
readonly message: "An internal server error occurred";
|
|
3301
|
+
};
|
|
3302
|
+
}>, Record<never, never>>;
|
|
2055
3303
|
};
|
|
2056
3304
|
reactions: {
|
|
2057
3305
|
toggle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
@@ -2092,7 +3340,33 @@ declare const v1Router: {
|
|
|
2092
3340
|
data: {
|
|
2093
3341
|
reactions: Reaction[];
|
|
2094
3342
|
};
|
|
2095
|
-
}>, Record<never, never>,
|
|
3343
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
3344
|
+
readonly UNAUTHORIZED: {
|
|
3345
|
+
readonly message: "You must be logged in to access this resource";
|
|
3346
|
+
};
|
|
3347
|
+
readonly FORBIDDEN: {
|
|
3348
|
+
readonly message: "You do not have permission to access this resource";
|
|
3349
|
+
};
|
|
3350
|
+
readonly NOT_FOUND: {
|
|
3351
|
+
readonly message: "The requested resource was not found";
|
|
3352
|
+
};
|
|
3353
|
+
readonly BAD_REQUEST: {
|
|
3354
|
+
readonly message: "Invalid request";
|
|
3355
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
3356
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
3357
|
+
code: zod.ZodString;
|
|
3358
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3359
|
+
message: zod.ZodString;
|
|
3360
|
+
}, better_auth.$loose>>;
|
|
3361
|
+
}, better_auth.$strip>>;
|
|
3362
|
+
};
|
|
3363
|
+
readonly CONFLICT: {
|
|
3364
|
+
readonly message: "The request conflicts with existing data";
|
|
3365
|
+
};
|
|
3366
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
3367
|
+
readonly message: "An internal server error occurred";
|
|
3368
|
+
};
|
|
3369
|
+
}>, Record<never, never>>;
|
|
2096
3370
|
};
|
|
2097
3371
|
};
|
|
2098
3372
|
};
|