@framebreak/types 0.1.21 → 0.1.23
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 +1331 -36
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,235 @@
|
|
|
1
1
|
import * as _orpc_server from '@orpc/server';
|
|
2
2
|
import { InferRouterOutputs, InferRouterInputs } from '@orpc/server';
|
|
3
|
+
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
|
3
4
|
import * as better_auth from 'better-auth';
|
|
4
5
|
import * as zod from 'zod';
|
|
5
6
|
import * as _orpc_contract from '@orpc/contract';
|
|
6
7
|
import { LoggerContext } from '@orpc/experimental-pino';
|
|
7
8
|
|
|
9
|
+
type InsiderApplicationStatus = "pending" | "approved" | "rejected";
|
|
10
|
+
|
|
11
|
+
declare const notification: drizzle_orm_pg_core.PgTableWithColumns<{
|
|
12
|
+
name: "notification";
|
|
13
|
+
schema: undefined;
|
|
14
|
+
columns: {
|
|
15
|
+
id: drizzle_orm_pg_core.PgColumn<{
|
|
16
|
+
name: "id";
|
|
17
|
+
tableName: "notification";
|
|
18
|
+
dataType: "string";
|
|
19
|
+
columnType: "PgText";
|
|
20
|
+
data: string;
|
|
21
|
+
driverParam: string;
|
|
22
|
+
notNull: true;
|
|
23
|
+
hasDefault: true;
|
|
24
|
+
isPrimaryKey: true;
|
|
25
|
+
isAutoincrement: false;
|
|
26
|
+
hasRuntimeDefault: true;
|
|
27
|
+
enumValues: [string, ...string[]];
|
|
28
|
+
baseColumn: never;
|
|
29
|
+
identity: undefined;
|
|
30
|
+
generated: undefined;
|
|
31
|
+
}, {}, {}>;
|
|
32
|
+
recipientId: drizzle_orm_pg_core.PgColumn<{
|
|
33
|
+
name: "recipient_id";
|
|
34
|
+
tableName: "notification";
|
|
35
|
+
dataType: "string";
|
|
36
|
+
columnType: "PgText";
|
|
37
|
+
data: string;
|
|
38
|
+
driverParam: string;
|
|
39
|
+
notNull: true;
|
|
40
|
+
hasDefault: false;
|
|
41
|
+
isPrimaryKey: false;
|
|
42
|
+
isAutoincrement: false;
|
|
43
|
+
hasRuntimeDefault: false;
|
|
44
|
+
enumValues: [string, ...string[]];
|
|
45
|
+
baseColumn: never;
|
|
46
|
+
identity: undefined;
|
|
47
|
+
generated: undefined;
|
|
48
|
+
}, {}, {}>;
|
|
49
|
+
type: drizzle_orm_pg_core.PgColumn<{
|
|
50
|
+
name: "type";
|
|
51
|
+
tableName: "notification";
|
|
52
|
+
dataType: "string";
|
|
53
|
+
columnType: "PgEnumColumn";
|
|
54
|
+
data: "mention" | "reply" | "new_article" | "article_comment" | "announcement";
|
|
55
|
+
driverParam: string;
|
|
56
|
+
notNull: true;
|
|
57
|
+
hasDefault: false;
|
|
58
|
+
isPrimaryKey: false;
|
|
59
|
+
isAutoincrement: false;
|
|
60
|
+
hasRuntimeDefault: false;
|
|
61
|
+
enumValues: ["mention", "reply", "new_article", "article_comment", "announcement"];
|
|
62
|
+
baseColumn: never;
|
|
63
|
+
identity: undefined;
|
|
64
|
+
generated: undefined;
|
|
65
|
+
}, {}, {}>;
|
|
66
|
+
sourceType: drizzle_orm_pg_core.PgColumn<{
|
|
67
|
+
name: "source_type";
|
|
68
|
+
tableName: "notification";
|
|
69
|
+
dataType: "string";
|
|
70
|
+
columnType: "PgEnumColumn";
|
|
71
|
+
data: "post" | "comment" | "community_post" | "note" | "note_comment" | "community_comment";
|
|
72
|
+
driverParam: string;
|
|
73
|
+
notNull: true;
|
|
74
|
+
hasDefault: false;
|
|
75
|
+
isPrimaryKey: false;
|
|
76
|
+
isAutoincrement: false;
|
|
77
|
+
hasRuntimeDefault: false;
|
|
78
|
+
enumValues: ["post", "comment", "community_post", "community_comment", "note", "note_comment"];
|
|
79
|
+
baseColumn: never;
|
|
80
|
+
identity: undefined;
|
|
81
|
+
generated: undefined;
|
|
82
|
+
}, {}, {}>;
|
|
83
|
+
sourceId: drizzle_orm_pg_core.PgColumn<{
|
|
84
|
+
name: "source_id";
|
|
85
|
+
tableName: "notification";
|
|
86
|
+
dataType: "string";
|
|
87
|
+
columnType: "PgText";
|
|
88
|
+
data: string;
|
|
89
|
+
driverParam: string;
|
|
90
|
+
notNull: true;
|
|
91
|
+
hasDefault: false;
|
|
92
|
+
isPrimaryKey: false;
|
|
93
|
+
isAutoincrement: false;
|
|
94
|
+
hasRuntimeDefault: false;
|
|
95
|
+
enumValues: [string, ...string[]];
|
|
96
|
+
baseColumn: never;
|
|
97
|
+
identity: undefined;
|
|
98
|
+
generated: undefined;
|
|
99
|
+
}, {}, {}>;
|
|
100
|
+
actorId: drizzle_orm_pg_core.PgColumn<{
|
|
101
|
+
name: "actor_id";
|
|
102
|
+
tableName: "notification";
|
|
103
|
+
dataType: "string";
|
|
104
|
+
columnType: "PgText";
|
|
105
|
+
data: string;
|
|
106
|
+
driverParam: string;
|
|
107
|
+
notNull: false;
|
|
108
|
+
hasDefault: false;
|
|
109
|
+
isPrimaryKey: false;
|
|
110
|
+
isAutoincrement: false;
|
|
111
|
+
hasRuntimeDefault: false;
|
|
112
|
+
enumValues: [string, ...string[]];
|
|
113
|
+
baseColumn: never;
|
|
114
|
+
identity: undefined;
|
|
115
|
+
generated: undefined;
|
|
116
|
+
}, {}, {}>;
|
|
117
|
+
title: drizzle_orm_pg_core.PgColumn<{
|
|
118
|
+
name: "title";
|
|
119
|
+
tableName: "notification";
|
|
120
|
+
dataType: "string";
|
|
121
|
+
columnType: "PgText";
|
|
122
|
+
data: string;
|
|
123
|
+
driverParam: string;
|
|
124
|
+
notNull: false;
|
|
125
|
+
hasDefault: false;
|
|
126
|
+
isPrimaryKey: false;
|
|
127
|
+
isAutoincrement: false;
|
|
128
|
+
hasRuntimeDefault: false;
|
|
129
|
+
enumValues: [string, ...string[]];
|
|
130
|
+
baseColumn: never;
|
|
131
|
+
identity: undefined;
|
|
132
|
+
generated: undefined;
|
|
133
|
+
}, {}, {}>;
|
|
134
|
+
metadata: drizzle_orm_pg_core.PgColumn<{
|
|
135
|
+
name: "metadata";
|
|
136
|
+
tableName: "notification";
|
|
137
|
+
dataType: "json";
|
|
138
|
+
columnType: "PgJson";
|
|
139
|
+
data: {
|
|
140
|
+
postSlug?: string;
|
|
141
|
+
commentId?: string;
|
|
142
|
+
};
|
|
143
|
+
driverParam: unknown;
|
|
144
|
+
notNull: false;
|
|
145
|
+
hasDefault: false;
|
|
146
|
+
isPrimaryKey: false;
|
|
147
|
+
isAutoincrement: false;
|
|
148
|
+
hasRuntimeDefault: false;
|
|
149
|
+
enumValues: undefined;
|
|
150
|
+
baseColumn: never;
|
|
151
|
+
identity: undefined;
|
|
152
|
+
generated: undefined;
|
|
153
|
+
}, {}, {
|
|
154
|
+
$type: {
|
|
155
|
+
postSlug?: string;
|
|
156
|
+
commentId?: string;
|
|
157
|
+
};
|
|
158
|
+
}>;
|
|
159
|
+
read: drizzle_orm_pg_core.PgColumn<{
|
|
160
|
+
name: "read";
|
|
161
|
+
tableName: "notification";
|
|
162
|
+
dataType: "boolean";
|
|
163
|
+
columnType: "PgBoolean";
|
|
164
|
+
data: boolean;
|
|
165
|
+
driverParam: boolean;
|
|
166
|
+
notNull: true;
|
|
167
|
+
hasDefault: true;
|
|
168
|
+
isPrimaryKey: false;
|
|
169
|
+
isAutoincrement: false;
|
|
170
|
+
hasRuntimeDefault: false;
|
|
171
|
+
enumValues: undefined;
|
|
172
|
+
baseColumn: never;
|
|
173
|
+
identity: undefined;
|
|
174
|
+
generated: undefined;
|
|
175
|
+
}, {}, {}>;
|
|
176
|
+
readAt: drizzle_orm_pg_core.PgColumn<{
|
|
177
|
+
name: "read_at";
|
|
178
|
+
tableName: "notification";
|
|
179
|
+
dataType: "date";
|
|
180
|
+
columnType: "PgTimestamp";
|
|
181
|
+
data: Date;
|
|
182
|
+
driverParam: string;
|
|
183
|
+
notNull: false;
|
|
184
|
+
hasDefault: false;
|
|
185
|
+
isPrimaryKey: false;
|
|
186
|
+
isAutoincrement: false;
|
|
187
|
+
hasRuntimeDefault: false;
|
|
188
|
+
enumValues: undefined;
|
|
189
|
+
baseColumn: never;
|
|
190
|
+
identity: undefined;
|
|
191
|
+
generated: undefined;
|
|
192
|
+
}, {}, {}>;
|
|
193
|
+
createdAt: drizzle_orm_pg_core.PgColumn<{
|
|
194
|
+
name: "created_at";
|
|
195
|
+
tableName: "notification";
|
|
196
|
+
dataType: "date";
|
|
197
|
+
columnType: "PgTimestamp";
|
|
198
|
+
data: Date;
|
|
199
|
+
driverParam: string;
|
|
200
|
+
notNull: true;
|
|
201
|
+
hasDefault: true;
|
|
202
|
+
isPrimaryKey: false;
|
|
203
|
+
isAutoincrement: false;
|
|
204
|
+
hasRuntimeDefault: false;
|
|
205
|
+
enumValues: undefined;
|
|
206
|
+
baseColumn: never;
|
|
207
|
+
identity: undefined;
|
|
208
|
+
generated: undefined;
|
|
209
|
+
}, {}, {}>;
|
|
210
|
+
};
|
|
211
|
+
dialect: "pg";
|
|
212
|
+
}>;
|
|
213
|
+
type Notification = typeof notification.$inferSelect;
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* Actor information for notification display.
|
|
217
|
+
*/
|
|
218
|
+
interface NotificationActor {
|
|
219
|
+
id: string;
|
|
220
|
+
name: string;
|
|
221
|
+
username: string | null;
|
|
222
|
+
displayUsername: string | null;
|
|
223
|
+
image: string | null;
|
|
224
|
+
linkedinVerified: boolean | null;
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Notification with actor information for display.
|
|
228
|
+
*/
|
|
229
|
+
interface NotificationWithActor extends Notification {
|
|
230
|
+
actor: NotificationActor | null;
|
|
231
|
+
}
|
|
232
|
+
|
|
8
233
|
/**
|
|
9
234
|
* Kit (ConvertKit) broadcast utilities for importing articles.
|
|
10
235
|
* Used by both the admin UI and CLI import scripts.
|
|
@@ -42,6 +267,8 @@ interface NoteComment {
|
|
|
42
267
|
id: string;
|
|
43
268
|
noteId: string;
|
|
44
269
|
parentId: string | null;
|
|
270
|
+
replyToCommentId?: string | null;
|
|
271
|
+
replyToAuthor?: NoteCommentAuthor | null;
|
|
45
272
|
content: string;
|
|
46
273
|
createdAt: Date;
|
|
47
274
|
updatedAt: Date;
|
|
@@ -52,8 +279,6 @@ interface NoteComment {
|
|
|
52
279
|
hidden?: boolean;
|
|
53
280
|
}
|
|
54
281
|
|
|
55
|
-
type InsiderApplicationStatus = "pending" | "approved" | "rejected";
|
|
56
|
-
|
|
57
282
|
interface CommentAuthor {
|
|
58
283
|
id: string;
|
|
59
284
|
name: string;
|
|
@@ -74,6 +299,8 @@ interface Comment {
|
|
|
74
299
|
id: string;
|
|
75
300
|
postId: string;
|
|
76
301
|
parentId: string | null;
|
|
302
|
+
replyToCommentId?: string | null;
|
|
303
|
+
replyToAuthor?: CommentAuthor | null;
|
|
77
304
|
content: string;
|
|
78
305
|
link: CommentLink | null;
|
|
79
306
|
createdAt: Date;
|
|
@@ -102,6 +329,8 @@ interface CommunityComment {
|
|
|
102
329
|
id: string;
|
|
103
330
|
communityPostId: string;
|
|
104
331
|
parentId: string | null;
|
|
332
|
+
replyToCommentId?: string | null;
|
|
333
|
+
replyToAuthor?: CommentAuthor | null;
|
|
105
334
|
content: string;
|
|
106
335
|
images: string[];
|
|
107
336
|
link: CommunityPostLink | null;
|
|
@@ -1508,6 +1737,8 @@ declare const v1Router: {
|
|
|
1508
1737
|
id: string;
|
|
1509
1738
|
postId: string;
|
|
1510
1739
|
parentId: string | null;
|
|
1740
|
+
replyToCommentId?: string | null;
|
|
1741
|
+
replyToAuthor?: CommentAuthor | null;
|
|
1511
1742
|
content: string;
|
|
1512
1743
|
link: CommentLink | null;
|
|
1513
1744
|
createdAt: Date;
|
|
@@ -1525,6 +1756,8 @@ declare const v1Router: {
|
|
|
1525
1756
|
id: string;
|
|
1526
1757
|
postId: string;
|
|
1527
1758
|
parentId: string | null;
|
|
1759
|
+
replyToCommentId?: string | null;
|
|
1760
|
+
replyToAuthor?: CommentAuthor | null;
|
|
1528
1761
|
content: string;
|
|
1529
1762
|
link: CommentLink | null;
|
|
1530
1763
|
createdAt: Date;
|
|
@@ -1668,6 +1901,7 @@ declare const v1Router: {
|
|
|
1668
1901
|
}>, zod.ZodObject<{
|
|
1669
1902
|
postId: zod.ZodString;
|
|
1670
1903
|
parentCommentId: zod.ZodOptional<zod.ZodString>;
|
|
1904
|
+
replyToCommentId: zod.ZodOptional<zod.ZodString>;
|
|
1671
1905
|
content: zod.ZodString;
|
|
1672
1906
|
linkUrl: zod.ZodOptional<zod.ZodString>;
|
|
1673
1907
|
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
@@ -2566,8 +2800,8 @@ declare const v1Router: {
|
|
|
2566
2800
|
}>, zod.ZodObject<{
|
|
2567
2801
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
2568
2802
|
pending: "pending";
|
|
2569
|
-
approved: "approved";
|
|
2570
2803
|
rejected: "rejected";
|
|
2804
|
+
approved: "approved";
|
|
2571
2805
|
}>>;
|
|
2572
2806
|
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
2573
2807
|
since: zod.ZodOptional<zod.ZodString>;
|
|
@@ -2770,6 +3004,75 @@ declare const v1Router: {
|
|
|
2770
3004
|
* Requires insider role (community:view permission).
|
|
2771
3005
|
*/
|
|
2772
3006
|
community: {
|
|
3007
|
+
stats: {
|
|
3008
|
+
memberCount: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
3009
|
+
session: {
|
|
3010
|
+
id: string;
|
|
3011
|
+
createdAt: Date;
|
|
3012
|
+
updatedAt: Date;
|
|
3013
|
+
userId: string;
|
|
3014
|
+
expiresAt: Date;
|
|
3015
|
+
token: string;
|
|
3016
|
+
ipAddress?: string | null | undefined | undefined;
|
|
3017
|
+
userAgent?: string | null | undefined | undefined;
|
|
3018
|
+
impersonatedBy?: string | null | undefined;
|
|
3019
|
+
};
|
|
3020
|
+
user: {
|
|
3021
|
+
id: string;
|
|
3022
|
+
createdAt: Date;
|
|
3023
|
+
updatedAt: Date;
|
|
3024
|
+
email: string;
|
|
3025
|
+
emailVerified: boolean;
|
|
3026
|
+
name: string;
|
|
3027
|
+
image?: string | null | undefined | undefined;
|
|
3028
|
+
onboardingCompleted: boolean | null | undefined;
|
|
3029
|
+
linkedinVerified: boolean | null | undefined;
|
|
3030
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
3031
|
+
linkedinId?: string | null | undefined;
|
|
3032
|
+
linkedinName?: string | null | undefined;
|
|
3033
|
+
banned: boolean | null | undefined;
|
|
3034
|
+
role?: string | null | undefined;
|
|
3035
|
+
banReason?: string | null | undefined;
|
|
3036
|
+
banExpires?: Date | null | undefined;
|
|
3037
|
+
username?: string | null | undefined;
|
|
3038
|
+
displayUsername?: string | null | undefined;
|
|
3039
|
+
};
|
|
3040
|
+
}>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
|
|
3041
|
+
data: {
|
|
3042
|
+
memberCount: number;
|
|
3043
|
+
};
|
|
3044
|
+
}, {
|
|
3045
|
+
data: {
|
|
3046
|
+
memberCount: number;
|
|
3047
|
+
};
|
|
3048
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
3049
|
+
readonly UNAUTHORIZED: {
|
|
3050
|
+
readonly message: "You must be logged in to access this resource";
|
|
3051
|
+
};
|
|
3052
|
+
readonly FORBIDDEN: {
|
|
3053
|
+
readonly message: "You do not have permission to access this resource";
|
|
3054
|
+
};
|
|
3055
|
+
readonly NOT_FOUND: {
|
|
3056
|
+
readonly message: "The requested resource was not found";
|
|
3057
|
+
};
|
|
3058
|
+
readonly BAD_REQUEST: {
|
|
3059
|
+
readonly message: "Invalid request";
|
|
3060
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
3061
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
3062
|
+
code: zod.ZodString;
|
|
3063
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3064
|
+
message: zod.ZodString;
|
|
3065
|
+
}, better_auth.$loose>>;
|
|
3066
|
+
}, better_auth.$strip>>;
|
|
3067
|
+
};
|
|
3068
|
+
readonly CONFLICT: {
|
|
3069
|
+
readonly message: "The request conflicts with existing data";
|
|
3070
|
+
};
|
|
3071
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
3072
|
+
readonly message: "An internal server error occurred";
|
|
3073
|
+
};
|
|
3074
|
+
}>, Record<never, never>>;
|
|
3075
|
+
};
|
|
2773
3076
|
posts: {
|
|
2774
3077
|
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
2775
3078
|
session: {
|
|
@@ -3819,6 +4122,7 @@ declare const v1Router: {
|
|
|
3819
4122
|
}>, zod.ZodObject<{
|
|
3820
4123
|
communityPostId: zod.ZodString;
|
|
3821
4124
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
4125
|
+
replyToCommentId: zod.ZodOptional<zod.ZodString>;
|
|
3822
4126
|
content: zod.ZodString;
|
|
3823
4127
|
imageUrls: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
3824
4128
|
linkUrl: zod.ZodOptional<zod.ZodString>;
|
|
@@ -4892,6 +5196,7 @@ declare const v1Router: {
|
|
|
4892
5196
|
}>, zod.ZodObject<{
|
|
4893
5197
|
noteId: zod.ZodString;
|
|
4894
5198
|
parentId: zod.ZodOptional<zod.ZodString>;
|
|
5199
|
+
replyToCommentId: zod.ZodOptional<zod.ZodString>;
|
|
4895
5200
|
content: zod.ZodString;
|
|
4896
5201
|
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
4897
5202
|
data: NoteComment;
|
|
@@ -5242,8 +5547,8 @@ declare const v1Router: {
|
|
|
5242
5547
|
}>, zod.ZodObject<{
|
|
5243
5548
|
status: zod.ZodOptional<zod.ZodEnum<{
|
|
5244
5549
|
pending: "pending";
|
|
5245
|
-
approved: "approved";
|
|
5246
5550
|
rejected: "rejected";
|
|
5551
|
+
approved: "approved";
|
|
5247
5552
|
}>>;
|
|
5248
5553
|
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
5249
5554
|
offset: zod.ZodDefault<zod.ZodNumber>;
|
|
@@ -5576,6 +5881,11 @@ declare const v1Router: {
|
|
|
5576
5881
|
talent: "talent";
|
|
5577
5882
|
investor: "investor";
|
|
5578
5883
|
}>>;
|
|
5884
|
+
status: zod.ZodOptional<zod.ZodEnum<{
|
|
5885
|
+
pending: "pending";
|
|
5886
|
+
accepted: "accepted";
|
|
5887
|
+
rejected: "rejected";
|
|
5888
|
+
}>>;
|
|
5579
5889
|
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
5580
5890
|
offset: zod.ZodDefault<zod.ZodNumber>;
|
|
5581
5891
|
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
@@ -5586,6 +5896,8 @@ declare const v1Router: {
|
|
|
5586
5896
|
linkedinUrl: string | null;
|
|
5587
5897
|
intent: "builder" | "talent" | "investor" | null;
|
|
5588
5898
|
followUpResponse: string | null;
|
|
5899
|
+
status: "pending" | "accepted" | "rejected";
|
|
5900
|
+
reviewedAt: Date | null;
|
|
5589
5901
|
createdAt: Date;
|
|
5590
5902
|
}[];
|
|
5591
5903
|
total: number;
|
|
@@ -5599,6 +5911,8 @@ declare const v1Router: {
|
|
|
5599
5911
|
linkedinUrl: string | null;
|
|
5600
5912
|
intent: "builder" | "talent" | "investor" | null;
|
|
5601
5913
|
followUpResponse: string | null;
|
|
5914
|
+
status: "pending" | "accepted" | "rejected";
|
|
5915
|
+
reviewedAt: Date | null;
|
|
5602
5916
|
createdAt: Date;
|
|
5603
5917
|
}[];
|
|
5604
5918
|
total: number;
|
|
@@ -5666,6 +5980,9 @@ declare const v1Router: {
|
|
|
5666
5980
|
}>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
|
|
5667
5981
|
data: {
|
|
5668
5982
|
total: number;
|
|
5983
|
+
pending: number;
|
|
5984
|
+
accepted: number;
|
|
5985
|
+
rejected: number;
|
|
5669
5986
|
byIntent: {
|
|
5670
5987
|
builder: number;
|
|
5671
5988
|
talent: number;
|
|
@@ -5675,6 +5992,9 @@ declare const v1Router: {
|
|
|
5675
5992
|
}, {
|
|
5676
5993
|
data: {
|
|
5677
5994
|
total: number;
|
|
5995
|
+
pending: number;
|
|
5996
|
+
accepted: number;
|
|
5997
|
+
rejected: number;
|
|
5678
5998
|
byIntent: {
|
|
5679
5999
|
builder: number;
|
|
5680
6000
|
talent: number;
|
|
@@ -5708,6 +6028,150 @@ declare const v1Router: {
|
|
|
5708
6028
|
readonly message: "An internal server error occurred";
|
|
5709
6029
|
};
|
|
5710
6030
|
}>, Record<never, never>>;
|
|
6031
|
+
accept: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
6032
|
+
session: {
|
|
6033
|
+
id: string;
|
|
6034
|
+
createdAt: Date;
|
|
6035
|
+
updatedAt: Date;
|
|
6036
|
+
userId: string;
|
|
6037
|
+
expiresAt: Date;
|
|
6038
|
+
token: string;
|
|
6039
|
+
ipAddress?: string | null | undefined | undefined;
|
|
6040
|
+
userAgent?: string | null | undefined | undefined;
|
|
6041
|
+
impersonatedBy?: string | null | undefined;
|
|
6042
|
+
};
|
|
6043
|
+
user: {
|
|
6044
|
+
id: string;
|
|
6045
|
+
createdAt: Date;
|
|
6046
|
+
updatedAt: Date;
|
|
6047
|
+
email: string;
|
|
6048
|
+
emailVerified: boolean;
|
|
6049
|
+
name: string;
|
|
6050
|
+
image?: string | null | undefined | undefined;
|
|
6051
|
+
onboardingCompleted: boolean | null | undefined;
|
|
6052
|
+
linkedinVerified: boolean | null | undefined;
|
|
6053
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
6054
|
+
linkedinId?: string | null | undefined;
|
|
6055
|
+
linkedinName?: string | null | undefined;
|
|
6056
|
+
banned: boolean | null | undefined;
|
|
6057
|
+
role?: string | null | undefined;
|
|
6058
|
+
banReason?: string | null | undefined;
|
|
6059
|
+
banExpires?: Date | null | undefined;
|
|
6060
|
+
username?: string | null | undefined;
|
|
6061
|
+
displayUsername?: string | null | undefined;
|
|
6062
|
+
};
|
|
6063
|
+
}>, zod.ZodObject<{
|
|
6064
|
+
applicationId: zod.ZodString;
|
|
6065
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
6066
|
+
data: {
|
|
6067
|
+
success: boolean;
|
|
6068
|
+
applicationId: string;
|
|
6069
|
+
email: string;
|
|
6070
|
+
};
|
|
6071
|
+
}, {
|
|
6072
|
+
data: {
|
|
6073
|
+
success: boolean;
|
|
6074
|
+
applicationId: string;
|
|
6075
|
+
email: string;
|
|
6076
|
+
};
|
|
6077
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6078
|
+
readonly UNAUTHORIZED: {
|
|
6079
|
+
readonly message: "You must be logged in to access this resource";
|
|
6080
|
+
};
|
|
6081
|
+
readonly FORBIDDEN: {
|
|
6082
|
+
readonly message: "You do not have permission to access this resource";
|
|
6083
|
+
};
|
|
6084
|
+
readonly NOT_FOUND: {
|
|
6085
|
+
readonly message: "The requested resource was not found";
|
|
6086
|
+
};
|
|
6087
|
+
readonly BAD_REQUEST: {
|
|
6088
|
+
readonly message: "Invalid request";
|
|
6089
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
6090
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
6091
|
+
code: zod.ZodString;
|
|
6092
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
6093
|
+
message: zod.ZodString;
|
|
6094
|
+
}, better_auth.$loose>>;
|
|
6095
|
+
}, better_auth.$strip>>;
|
|
6096
|
+
};
|
|
6097
|
+
readonly CONFLICT: {
|
|
6098
|
+
readonly message: "The request conflicts with existing data";
|
|
6099
|
+
};
|
|
6100
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
6101
|
+
readonly message: "An internal server error occurred";
|
|
6102
|
+
};
|
|
6103
|
+
}>, Record<never, never>>;
|
|
6104
|
+
reject: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
6105
|
+
session: {
|
|
6106
|
+
id: string;
|
|
6107
|
+
createdAt: Date;
|
|
6108
|
+
updatedAt: Date;
|
|
6109
|
+
userId: string;
|
|
6110
|
+
expiresAt: Date;
|
|
6111
|
+
token: string;
|
|
6112
|
+
ipAddress?: string | null | undefined | undefined;
|
|
6113
|
+
userAgent?: string | null | undefined | undefined;
|
|
6114
|
+
impersonatedBy?: string | null | undefined;
|
|
6115
|
+
};
|
|
6116
|
+
user: {
|
|
6117
|
+
id: string;
|
|
6118
|
+
createdAt: Date;
|
|
6119
|
+
updatedAt: Date;
|
|
6120
|
+
email: string;
|
|
6121
|
+
emailVerified: boolean;
|
|
6122
|
+
name: string;
|
|
6123
|
+
image?: string | null | undefined | undefined;
|
|
6124
|
+
onboardingCompleted: boolean | null | undefined;
|
|
6125
|
+
linkedinVerified: boolean | null | undefined;
|
|
6126
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
6127
|
+
linkedinId?: string | null | undefined;
|
|
6128
|
+
linkedinName?: string | null | undefined;
|
|
6129
|
+
banned: boolean | null | undefined;
|
|
6130
|
+
role?: string | null | undefined;
|
|
6131
|
+
banReason?: string | null | undefined;
|
|
6132
|
+
banExpires?: Date | null | undefined;
|
|
6133
|
+
username?: string | null | undefined;
|
|
6134
|
+
displayUsername?: string | null | undefined;
|
|
6135
|
+
};
|
|
6136
|
+
}>, zod.ZodObject<{
|
|
6137
|
+
applicationId: zod.ZodString;
|
|
6138
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
6139
|
+
data: {
|
|
6140
|
+
success: boolean;
|
|
6141
|
+
applicationId: string;
|
|
6142
|
+
};
|
|
6143
|
+
}, {
|
|
6144
|
+
data: {
|
|
6145
|
+
success: boolean;
|
|
6146
|
+
applicationId: string;
|
|
6147
|
+
};
|
|
6148
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6149
|
+
readonly UNAUTHORIZED: {
|
|
6150
|
+
readonly message: "You must be logged in to access this resource";
|
|
6151
|
+
};
|
|
6152
|
+
readonly FORBIDDEN: {
|
|
6153
|
+
readonly message: "You do not have permission to access this resource";
|
|
6154
|
+
};
|
|
6155
|
+
readonly NOT_FOUND: {
|
|
6156
|
+
readonly message: "The requested resource was not found";
|
|
6157
|
+
};
|
|
6158
|
+
readonly BAD_REQUEST: {
|
|
6159
|
+
readonly message: "Invalid request";
|
|
6160
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
6161
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
6162
|
+
code: zod.ZodString;
|
|
6163
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
6164
|
+
message: zod.ZodString;
|
|
6165
|
+
}, better_auth.$loose>>;
|
|
6166
|
+
}, better_auth.$strip>>;
|
|
6167
|
+
};
|
|
6168
|
+
readonly CONFLICT: {
|
|
6169
|
+
readonly message: "The request conflicts with existing data";
|
|
6170
|
+
};
|
|
6171
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
6172
|
+
readonly message: "An internal server error occurred";
|
|
6173
|
+
};
|
|
6174
|
+
}>, Record<never, never>>;
|
|
5711
6175
|
};
|
|
5712
6176
|
broadcasts: {
|
|
5713
6177
|
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
@@ -6070,30 +6534,120 @@ declare const v1Router: {
|
|
|
6070
6534
|
};
|
|
6071
6535
|
}>, Record<never, never>>;
|
|
6072
6536
|
};
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
* Used for dev tools and debugging.
|
|
6077
|
-
*/
|
|
6078
|
-
dev: {
|
|
6079
|
-
posts: {
|
|
6080
|
-
get: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, Record<never, never>>, zod.ZodObject<{
|
|
6081
|
-
id: zod.ZodString;
|
|
6082
|
-
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
6083
|
-
data: {
|
|
6537
|
+
notifications: {
|
|
6538
|
+
test: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
6539
|
+
session: {
|
|
6084
6540
|
id: string;
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6541
|
+
createdAt: Date;
|
|
6542
|
+
updatedAt: Date;
|
|
6543
|
+
userId: string;
|
|
6544
|
+
expiresAt: Date;
|
|
6545
|
+
token: string;
|
|
6546
|
+
ipAddress?: string | null | undefined | undefined;
|
|
6547
|
+
userAgent?: string | null | undefined | undefined;
|
|
6548
|
+
impersonatedBy?: string | null | undefined;
|
|
6549
|
+
};
|
|
6550
|
+
user: {
|
|
6551
|
+
id: string;
|
|
6552
|
+
createdAt: Date;
|
|
6553
|
+
updatedAt: Date;
|
|
6554
|
+
email: string;
|
|
6555
|
+
emailVerified: boolean;
|
|
6556
|
+
name: string;
|
|
6557
|
+
image?: string | null | undefined | undefined;
|
|
6558
|
+
onboardingCompleted: boolean | null | undefined;
|
|
6559
|
+
linkedinVerified: boolean | null | undefined;
|
|
6560
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
6561
|
+
linkedinId?: string | null | undefined;
|
|
6562
|
+
linkedinName?: string | null | undefined;
|
|
6563
|
+
banned: boolean | null | undefined;
|
|
6564
|
+
role?: string | null | undefined;
|
|
6565
|
+
banReason?: string | null | undefined;
|
|
6566
|
+
banExpires?: Date | null | undefined;
|
|
6567
|
+
username?: string | null | undefined;
|
|
6568
|
+
displayUsername?: string | null | undefined;
|
|
6569
|
+
};
|
|
6570
|
+
}>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
|
|
6571
|
+
data: {
|
|
6572
|
+
success: boolean;
|
|
6573
|
+
notificationId: string;
|
|
6089
6574
|
};
|
|
6090
6575
|
}, {
|
|
6091
6576
|
data: {
|
|
6577
|
+
success: boolean;
|
|
6578
|
+
notificationId: string;
|
|
6579
|
+
};
|
|
6580
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6581
|
+
readonly UNAUTHORIZED: {
|
|
6582
|
+
readonly message: "You must be logged in to access this resource";
|
|
6583
|
+
};
|
|
6584
|
+
readonly FORBIDDEN: {
|
|
6585
|
+
readonly message: "You do not have permission to access this resource";
|
|
6586
|
+
};
|
|
6587
|
+
readonly NOT_FOUND: {
|
|
6588
|
+
readonly message: "The requested resource was not found";
|
|
6589
|
+
};
|
|
6590
|
+
readonly BAD_REQUEST: {
|
|
6591
|
+
readonly message: "Invalid request";
|
|
6592
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
6593
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
6594
|
+
code: zod.ZodString;
|
|
6595
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
6596
|
+
message: zod.ZodString;
|
|
6597
|
+
}, better_auth.$loose>>;
|
|
6598
|
+
}, better_auth.$strip>>;
|
|
6599
|
+
};
|
|
6600
|
+
readonly CONFLICT: {
|
|
6601
|
+
readonly message: "The request conflicts with existing data";
|
|
6602
|
+
};
|
|
6603
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
6604
|
+
readonly message: "An internal server error occurred";
|
|
6605
|
+
};
|
|
6606
|
+
}>, Record<never, never>>;
|
|
6607
|
+
broadcast: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
6608
|
+
session: {
|
|
6092
6609
|
id: string;
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6610
|
+
createdAt: Date;
|
|
6611
|
+
updatedAt: Date;
|
|
6612
|
+
userId: string;
|
|
6613
|
+
expiresAt: Date;
|
|
6614
|
+
token: string;
|
|
6615
|
+
ipAddress?: string | null | undefined | undefined;
|
|
6616
|
+
userAgent?: string | null | undefined | undefined;
|
|
6617
|
+
impersonatedBy?: string | null | undefined;
|
|
6618
|
+
};
|
|
6619
|
+
user: {
|
|
6620
|
+
id: string;
|
|
6621
|
+
createdAt: Date;
|
|
6622
|
+
updatedAt: Date;
|
|
6623
|
+
email: string;
|
|
6624
|
+
emailVerified: boolean;
|
|
6625
|
+
name: string;
|
|
6626
|
+
image?: string | null | undefined | undefined;
|
|
6627
|
+
onboardingCompleted: boolean | null | undefined;
|
|
6628
|
+
linkedinVerified: boolean | null | undefined;
|
|
6629
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
6630
|
+
linkedinId?: string | null | undefined;
|
|
6631
|
+
linkedinName?: string | null | undefined;
|
|
6632
|
+
banned: boolean | null | undefined;
|
|
6633
|
+
role?: string | null | undefined;
|
|
6634
|
+
banReason?: string | null | undefined;
|
|
6635
|
+
banExpires?: Date | null | undefined;
|
|
6636
|
+
username?: string | null | undefined;
|
|
6637
|
+
displayUsername?: string | null | undefined;
|
|
6638
|
+
};
|
|
6639
|
+
}>, zod.ZodObject<{
|
|
6640
|
+
title: zod.ZodString;
|
|
6641
|
+
message: zod.ZodOptional<zod.ZodString>;
|
|
6642
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
6643
|
+
data: {
|
|
6644
|
+
success: boolean;
|
|
6645
|
+
count: number;
|
|
6646
|
+
};
|
|
6647
|
+
}, {
|
|
6648
|
+
data: {
|
|
6649
|
+
success: boolean;
|
|
6650
|
+
count: number;
|
|
6097
6651
|
};
|
|
6098
6652
|
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6099
6653
|
readonly UNAUTHORIZED: {
|
|
@@ -6122,27 +6676,768 @@ declare const v1Router: {
|
|
|
6122
6676
|
readonly message: "An internal server error occurred";
|
|
6123
6677
|
};
|
|
6124
6678
|
}>, Record<never, never>>;
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6679
|
+
notifyArticle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
6680
|
+
session: {
|
|
6681
|
+
id: string;
|
|
6682
|
+
createdAt: Date;
|
|
6683
|
+
updatedAt: Date;
|
|
6684
|
+
userId: string;
|
|
6685
|
+
expiresAt: Date;
|
|
6686
|
+
token: string;
|
|
6687
|
+
ipAddress?: string | null | undefined | undefined;
|
|
6688
|
+
userAgent?: string | null | undefined | undefined;
|
|
6689
|
+
impersonatedBy?: string | null | undefined;
|
|
6690
|
+
};
|
|
6691
|
+
user: {
|
|
6692
|
+
id: string;
|
|
6693
|
+
createdAt: Date;
|
|
6694
|
+
updatedAt: Date;
|
|
6695
|
+
email: string;
|
|
6696
|
+
emailVerified: boolean;
|
|
6697
|
+
name: string;
|
|
6698
|
+
image?: string | null | undefined | undefined;
|
|
6699
|
+
onboardingCompleted: boolean | null | undefined;
|
|
6700
|
+
linkedinVerified: boolean | null | undefined;
|
|
6701
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
6702
|
+
linkedinId?: string | null | undefined;
|
|
6703
|
+
linkedinName?: string | null | undefined;
|
|
6704
|
+
banned: boolean | null | undefined;
|
|
6705
|
+
role?: string | null | undefined;
|
|
6706
|
+
banReason?: string | null | undefined;
|
|
6707
|
+
banExpires?: Date | null | undefined;
|
|
6708
|
+
username?: string | null | undefined;
|
|
6709
|
+
displayUsername?: string | null | undefined;
|
|
6710
|
+
};
|
|
6711
|
+
}>, zod.ZodObject<{
|
|
6712
|
+
postId: zod.ZodString;
|
|
6131
6713
|
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
6132
6714
|
data: {
|
|
6715
|
+
success: boolean;
|
|
6716
|
+
count: number;
|
|
6717
|
+
postTitle?: undefined;
|
|
6718
|
+
};
|
|
6719
|
+
} | {
|
|
6720
|
+
data: {
|
|
6721
|
+
success: boolean;
|
|
6722
|
+
count: number;
|
|
6723
|
+
postTitle: string;
|
|
6724
|
+
};
|
|
6725
|
+
}, {
|
|
6726
|
+
data: {
|
|
6727
|
+
success: boolean;
|
|
6728
|
+
count: number;
|
|
6729
|
+
postTitle?: undefined;
|
|
6730
|
+
};
|
|
6731
|
+
} | {
|
|
6732
|
+
data: {
|
|
6733
|
+
success: boolean;
|
|
6734
|
+
count: number;
|
|
6735
|
+
postTitle: string;
|
|
6736
|
+
};
|
|
6737
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6738
|
+
readonly UNAUTHORIZED: {
|
|
6739
|
+
readonly message: "You must be logged in to access this resource";
|
|
6740
|
+
};
|
|
6741
|
+
readonly FORBIDDEN: {
|
|
6742
|
+
readonly message: "You do not have permission to access this resource";
|
|
6743
|
+
};
|
|
6744
|
+
readonly NOT_FOUND: {
|
|
6745
|
+
readonly message: "The requested resource was not found";
|
|
6746
|
+
};
|
|
6747
|
+
readonly BAD_REQUEST: {
|
|
6748
|
+
readonly message: "Invalid request";
|
|
6749
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
6750
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
6751
|
+
code: zod.ZodString;
|
|
6752
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
6753
|
+
message: zod.ZodString;
|
|
6754
|
+
}, better_auth.$loose>>;
|
|
6755
|
+
}, better_auth.$strip>>;
|
|
6756
|
+
};
|
|
6757
|
+
readonly CONFLICT: {
|
|
6758
|
+
readonly message: "The request conflicts with existing data";
|
|
6759
|
+
};
|
|
6760
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
6761
|
+
readonly message: "An internal server error occurred";
|
|
6762
|
+
};
|
|
6763
|
+
}>, Record<never, never>>;
|
|
6764
|
+
listArticles: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
6765
|
+
session: {
|
|
6133
6766
|
id: string;
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6767
|
+
createdAt: Date;
|
|
6768
|
+
updatedAt: Date;
|
|
6769
|
+
userId: string;
|
|
6770
|
+
expiresAt: Date;
|
|
6771
|
+
token: string;
|
|
6772
|
+
ipAddress?: string | null | undefined | undefined;
|
|
6773
|
+
userAgent?: string | null | undefined | undefined;
|
|
6774
|
+
impersonatedBy?: string | null | undefined;
|
|
6775
|
+
};
|
|
6776
|
+
user: {
|
|
6777
|
+
id: string;
|
|
6778
|
+
createdAt: Date;
|
|
6779
|
+
updatedAt: Date;
|
|
6780
|
+
email: string;
|
|
6781
|
+
emailVerified: boolean;
|
|
6782
|
+
name: string;
|
|
6783
|
+
image?: string | null | undefined | undefined;
|
|
6784
|
+
onboardingCompleted: boolean | null | undefined;
|
|
6785
|
+
linkedinVerified: boolean | null | undefined;
|
|
6786
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
6787
|
+
linkedinId?: string | null | undefined;
|
|
6788
|
+
linkedinName?: string | null | undefined;
|
|
6789
|
+
banned: boolean | null | undefined;
|
|
6790
|
+
role?: string | null | undefined;
|
|
6791
|
+
banReason?: string | null | undefined;
|
|
6792
|
+
banExpires?: Date | null | undefined;
|
|
6793
|
+
username?: string | null | undefined;
|
|
6794
|
+
displayUsername?: string | null | undefined;
|
|
6138
6795
|
};
|
|
6796
|
+
}>, zod.ZodObject<{
|
|
6797
|
+
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
6798
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
6799
|
+
data: {
|
|
6800
|
+
id: string;
|
|
6801
|
+
title: string | null;
|
|
6802
|
+
publishedAt: Date | null;
|
|
6803
|
+
}[];
|
|
6139
6804
|
}, {
|
|
6140
6805
|
data: {
|
|
6141
6806
|
id: string;
|
|
6142
6807
|
title: string | null;
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6808
|
+
publishedAt: Date | null;
|
|
6809
|
+
}[];
|
|
6810
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6811
|
+
readonly UNAUTHORIZED: {
|
|
6812
|
+
readonly message: "You must be logged in to access this resource";
|
|
6813
|
+
};
|
|
6814
|
+
readonly FORBIDDEN: {
|
|
6815
|
+
readonly message: "You do not have permission to access this resource";
|
|
6816
|
+
};
|
|
6817
|
+
readonly NOT_FOUND: {
|
|
6818
|
+
readonly message: "The requested resource was not found";
|
|
6819
|
+
};
|
|
6820
|
+
readonly BAD_REQUEST: {
|
|
6821
|
+
readonly message: "Invalid request";
|
|
6822
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
6823
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
6824
|
+
code: zod.ZodString;
|
|
6825
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
6826
|
+
message: zod.ZodString;
|
|
6827
|
+
}, better_auth.$loose>>;
|
|
6828
|
+
}, better_auth.$strip>>;
|
|
6829
|
+
};
|
|
6830
|
+
readonly CONFLICT: {
|
|
6831
|
+
readonly message: "The request conflicts with existing data";
|
|
6832
|
+
};
|
|
6833
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
6834
|
+
readonly message: "An internal server error occurred";
|
|
6835
|
+
};
|
|
6836
|
+
}>, Record<never, never>>;
|
|
6837
|
+
};
|
|
6838
|
+
};
|
|
6839
|
+
/**
|
|
6840
|
+
* Development-only endpoints - returns 404 in production.
|
|
6841
|
+
* Used for dev tools and debugging.
|
|
6842
|
+
*/
|
|
6843
|
+
dev: {
|
|
6844
|
+
posts: {
|
|
6845
|
+
get: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, Record<never, never>>, zod.ZodObject<{
|
|
6846
|
+
id: zod.ZodString;
|
|
6847
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
6848
|
+
data: {
|
|
6849
|
+
id: string;
|
|
6850
|
+
title: string | null;
|
|
6851
|
+
subheading: string | null;
|
|
6852
|
+
content: string;
|
|
6853
|
+
articleContent: string | null;
|
|
6854
|
+
};
|
|
6855
|
+
}, {
|
|
6856
|
+
data: {
|
|
6857
|
+
id: string;
|
|
6858
|
+
title: string | null;
|
|
6859
|
+
subheading: string | null;
|
|
6860
|
+
content: string;
|
|
6861
|
+
articleContent: string | null;
|
|
6862
|
+
};
|
|
6863
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6864
|
+
readonly UNAUTHORIZED: {
|
|
6865
|
+
readonly message: "You must be logged in to access this resource";
|
|
6866
|
+
};
|
|
6867
|
+
readonly FORBIDDEN: {
|
|
6868
|
+
readonly message: "You do not have permission to access this resource";
|
|
6869
|
+
};
|
|
6870
|
+
readonly NOT_FOUND: {
|
|
6871
|
+
readonly message: "The requested resource was not found";
|
|
6872
|
+
};
|
|
6873
|
+
readonly BAD_REQUEST: {
|
|
6874
|
+
readonly message: "Invalid request";
|
|
6875
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
6876
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
6877
|
+
code: zod.ZodString;
|
|
6878
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
6879
|
+
message: zod.ZodString;
|
|
6880
|
+
}, better_auth.$loose>>;
|
|
6881
|
+
}, better_auth.$strip>>;
|
|
6882
|
+
};
|
|
6883
|
+
readonly CONFLICT: {
|
|
6884
|
+
readonly message: "The request conflicts with existing data";
|
|
6885
|
+
};
|
|
6886
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
6887
|
+
readonly message: "An internal server error occurred";
|
|
6888
|
+
};
|
|
6889
|
+
}>, Record<never, never>>;
|
|
6890
|
+
update: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, Record<never, never>>, zod.ZodObject<{
|
|
6891
|
+
id: zod.ZodString;
|
|
6892
|
+
title: zod.ZodOptional<zod.ZodString>;
|
|
6893
|
+
subheading: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
6894
|
+
content: zod.ZodOptional<zod.ZodString>;
|
|
6895
|
+
articleContent: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
6896
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
6897
|
+
data: {
|
|
6898
|
+
id: string;
|
|
6899
|
+
title: string | null;
|
|
6900
|
+
subheading: string | null;
|
|
6901
|
+
content: string;
|
|
6902
|
+
articleContent: string | null;
|
|
6903
|
+
};
|
|
6904
|
+
}, {
|
|
6905
|
+
data: {
|
|
6906
|
+
id: string;
|
|
6907
|
+
title: string | null;
|
|
6908
|
+
subheading: string | null;
|
|
6909
|
+
content: string;
|
|
6910
|
+
articleContent: string | null;
|
|
6911
|
+
};
|
|
6912
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6913
|
+
readonly UNAUTHORIZED: {
|
|
6914
|
+
readonly message: "You must be logged in to access this resource";
|
|
6915
|
+
};
|
|
6916
|
+
readonly FORBIDDEN: {
|
|
6917
|
+
readonly message: "You do not have permission to access this resource";
|
|
6918
|
+
};
|
|
6919
|
+
readonly NOT_FOUND: {
|
|
6920
|
+
readonly message: "The requested resource was not found";
|
|
6921
|
+
};
|
|
6922
|
+
readonly BAD_REQUEST: {
|
|
6923
|
+
readonly message: "Invalid request";
|
|
6924
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
6925
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
6926
|
+
code: zod.ZodString;
|
|
6927
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
6928
|
+
message: zod.ZodString;
|
|
6929
|
+
}, better_auth.$loose>>;
|
|
6930
|
+
}, better_auth.$strip>>;
|
|
6931
|
+
};
|
|
6932
|
+
readonly CONFLICT: {
|
|
6933
|
+
readonly message: "The request conflicts with existing data";
|
|
6934
|
+
};
|
|
6935
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
6936
|
+
readonly message: "An internal server error occurred";
|
|
6937
|
+
};
|
|
6938
|
+
}>, Record<never, never>>;
|
|
6939
|
+
};
|
|
6940
|
+
};
|
|
6941
|
+
/**
|
|
6942
|
+
* Notification endpoints - for @mentions and system notifications.
|
|
6943
|
+
* Requires authentication.
|
|
6944
|
+
*/
|
|
6945
|
+
notifications: {
|
|
6946
|
+
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
6947
|
+
session: {
|
|
6948
|
+
id: string;
|
|
6949
|
+
createdAt: Date;
|
|
6950
|
+
updatedAt: Date;
|
|
6951
|
+
userId: string;
|
|
6952
|
+
expiresAt: Date;
|
|
6953
|
+
token: string;
|
|
6954
|
+
ipAddress?: string | null | undefined | undefined;
|
|
6955
|
+
userAgent?: string | null | undefined | undefined;
|
|
6956
|
+
impersonatedBy?: string | null | undefined;
|
|
6957
|
+
};
|
|
6958
|
+
user: {
|
|
6959
|
+
id: string;
|
|
6960
|
+
createdAt: Date;
|
|
6961
|
+
updatedAt: Date;
|
|
6962
|
+
email: string;
|
|
6963
|
+
emailVerified: boolean;
|
|
6964
|
+
name: string;
|
|
6965
|
+
image?: string | null | undefined | undefined;
|
|
6966
|
+
onboardingCompleted: boolean | null | undefined;
|
|
6967
|
+
linkedinVerified: boolean | null | undefined;
|
|
6968
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
6969
|
+
linkedinId?: string | null | undefined;
|
|
6970
|
+
linkedinName?: string | null | undefined;
|
|
6971
|
+
banned: boolean | null | undefined;
|
|
6972
|
+
role?: string | null | undefined;
|
|
6973
|
+
banReason?: string | null | undefined;
|
|
6974
|
+
banExpires?: Date | null | undefined;
|
|
6975
|
+
username?: string | null | undefined;
|
|
6976
|
+
displayUsername?: string | null | undefined;
|
|
6977
|
+
};
|
|
6978
|
+
}>, zod.ZodOptional<zod.ZodObject<{
|
|
6979
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
6980
|
+
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
6981
|
+
}, better_auth.$strip>>, _orpc_contract.Schema<{
|
|
6982
|
+
data: NotificationWithActor[];
|
|
6983
|
+
nextCursor: string | null;
|
|
6984
|
+
hasMore: boolean;
|
|
6985
|
+
}, {
|
|
6986
|
+
data: NotificationWithActor[];
|
|
6987
|
+
nextCursor: string | null;
|
|
6988
|
+
hasMore: boolean;
|
|
6989
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6990
|
+
readonly UNAUTHORIZED: {
|
|
6991
|
+
readonly message: "You must be logged in to access this resource";
|
|
6992
|
+
};
|
|
6993
|
+
readonly FORBIDDEN: {
|
|
6994
|
+
readonly message: "You do not have permission to access this resource";
|
|
6995
|
+
};
|
|
6996
|
+
readonly NOT_FOUND: {
|
|
6997
|
+
readonly message: "The requested resource was not found";
|
|
6998
|
+
};
|
|
6999
|
+
readonly BAD_REQUEST: {
|
|
7000
|
+
readonly message: "Invalid request";
|
|
7001
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
7002
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
7003
|
+
code: zod.ZodString;
|
|
7004
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
7005
|
+
message: zod.ZodString;
|
|
7006
|
+
}, better_auth.$loose>>;
|
|
7007
|
+
}, better_auth.$strip>>;
|
|
7008
|
+
};
|
|
7009
|
+
readonly CONFLICT: {
|
|
7010
|
+
readonly message: "The request conflicts with existing data";
|
|
7011
|
+
};
|
|
7012
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
7013
|
+
readonly message: "An internal server error occurred";
|
|
7014
|
+
};
|
|
7015
|
+
}>, Record<never, never>>;
|
|
7016
|
+
unreadCount: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
7017
|
+
session: {
|
|
7018
|
+
id: string;
|
|
7019
|
+
createdAt: Date;
|
|
7020
|
+
updatedAt: Date;
|
|
7021
|
+
userId: string;
|
|
7022
|
+
expiresAt: Date;
|
|
7023
|
+
token: string;
|
|
7024
|
+
ipAddress?: string | null | undefined | undefined;
|
|
7025
|
+
userAgent?: string | null | undefined | undefined;
|
|
7026
|
+
impersonatedBy?: string | null | undefined;
|
|
7027
|
+
};
|
|
7028
|
+
user: {
|
|
7029
|
+
id: string;
|
|
7030
|
+
createdAt: Date;
|
|
7031
|
+
updatedAt: Date;
|
|
7032
|
+
email: string;
|
|
7033
|
+
emailVerified: boolean;
|
|
7034
|
+
name: string;
|
|
7035
|
+
image?: string | null | undefined | undefined;
|
|
7036
|
+
onboardingCompleted: boolean | null | undefined;
|
|
7037
|
+
linkedinVerified: boolean | null | undefined;
|
|
7038
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
7039
|
+
linkedinId?: string | null | undefined;
|
|
7040
|
+
linkedinName?: string | null | undefined;
|
|
7041
|
+
banned: boolean | null | undefined;
|
|
7042
|
+
role?: string | null | undefined;
|
|
7043
|
+
banReason?: string | null | undefined;
|
|
7044
|
+
banExpires?: Date | null | undefined;
|
|
7045
|
+
username?: string | null | undefined;
|
|
7046
|
+
displayUsername?: string | null | undefined;
|
|
7047
|
+
};
|
|
7048
|
+
}>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
|
|
7049
|
+
data: {
|
|
7050
|
+
count: number;
|
|
7051
|
+
};
|
|
7052
|
+
}, {
|
|
7053
|
+
data: {
|
|
7054
|
+
count: number;
|
|
7055
|
+
};
|
|
7056
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
7057
|
+
readonly UNAUTHORIZED: {
|
|
7058
|
+
readonly message: "You must be logged in to access this resource";
|
|
7059
|
+
};
|
|
7060
|
+
readonly FORBIDDEN: {
|
|
7061
|
+
readonly message: "You do not have permission to access this resource";
|
|
7062
|
+
};
|
|
7063
|
+
readonly NOT_FOUND: {
|
|
7064
|
+
readonly message: "The requested resource was not found";
|
|
7065
|
+
};
|
|
7066
|
+
readonly BAD_REQUEST: {
|
|
7067
|
+
readonly message: "Invalid request";
|
|
7068
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
7069
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
7070
|
+
code: zod.ZodString;
|
|
7071
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
7072
|
+
message: zod.ZodString;
|
|
7073
|
+
}, better_auth.$loose>>;
|
|
7074
|
+
}, better_auth.$strip>>;
|
|
7075
|
+
};
|
|
7076
|
+
readonly CONFLICT: {
|
|
7077
|
+
readonly message: "The request conflicts with existing data";
|
|
7078
|
+
};
|
|
7079
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
7080
|
+
readonly message: "An internal server error occurred";
|
|
7081
|
+
};
|
|
7082
|
+
}>, Record<never, never>>;
|
|
7083
|
+
markRead: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
7084
|
+
session: {
|
|
7085
|
+
id: string;
|
|
7086
|
+
createdAt: Date;
|
|
7087
|
+
updatedAt: Date;
|
|
7088
|
+
userId: string;
|
|
7089
|
+
expiresAt: Date;
|
|
7090
|
+
token: string;
|
|
7091
|
+
ipAddress?: string | null | undefined | undefined;
|
|
7092
|
+
userAgent?: string | null | undefined | undefined;
|
|
7093
|
+
impersonatedBy?: string | null | undefined;
|
|
7094
|
+
};
|
|
7095
|
+
user: {
|
|
7096
|
+
id: string;
|
|
7097
|
+
createdAt: Date;
|
|
7098
|
+
updatedAt: Date;
|
|
7099
|
+
email: string;
|
|
7100
|
+
emailVerified: boolean;
|
|
7101
|
+
name: string;
|
|
7102
|
+
image?: string | null | undefined | undefined;
|
|
7103
|
+
onboardingCompleted: boolean | null | undefined;
|
|
7104
|
+
linkedinVerified: boolean | null | undefined;
|
|
7105
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
7106
|
+
linkedinId?: string | null | undefined;
|
|
7107
|
+
linkedinName?: string | null | undefined;
|
|
7108
|
+
banned: boolean | null | undefined;
|
|
7109
|
+
role?: string | null | undefined;
|
|
7110
|
+
banReason?: string | null | undefined;
|
|
7111
|
+
banExpires?: Date | null | undefined;
|
|
7112
|
+
username?: string | null | undefined;
|
|
7113
|
+
displayUsername?: string | null | undefined;
|
|
7114
|
+
};
|
|
7115
|
+
}>, zod.ZodObject<{
|
|
7116
|
+
id: zod.ZodString;
|
|
7117
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
7118
|
+
data: {
|
|
7119
|
+
success: boolean;
|
|
7120
|
+
};
|
|
7121
|
+
}, {
|
|
7122
|
+
data: {
|
|
7123
|
+
success: boolean;
|
|
7124
|
+
};
|
|
7125
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
7126
|
+
readonly UNAUTHORIZED: {
|
|
7127
|
+
readonly message: "You must be logged in to access this resource";
|
|
7128
|
+
};
|
|
7129
|
+
readonly FORBIDDEN: {
|
|
7130
|
+
readonly message: "You do not have permission to access this resource";
|
|
7131
|
+
};
|
|
7132
|
+
readonly NOT_FOUND: {
|
|
7133
|
+
readonly message: "The requested resource was not found";
|
|
7134
|
+
};
|
|
7135
|
+
readonly BAD_REQUEST: {
|
|
7136
|
+
readonly message: "Invalid request";
|
|
7137
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
7138
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
7139
|
+
code: zod.ZodString;
|
|
7140
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
7141
|
+
message: zod.ZodString;
|
|
7142
|
+
}, better_auth.$loose>>;
|
|
7143
|
+
}, better_auth.$strip>>;
|
|
7144
|
+
};
|
|
7145
|
+
readonly CONFLICT: {
|
|
7146
|
+
readonly message: "The request conflicts with existing data";
|
|
7147
|
+
};
|
|
7148
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
7149
|
+
readonly message: "An internal server error occurred";
|
|
7150
|
+
};
|
|
7151
|
+
}>, Record<never, never>>;
|
|
7152
|
+
markAllRead: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
7153
|
+
session: {
|
|
7154
|
+
id: string;
|
|
7155
|
+
createdAt: Date;
|
|
7156
|
+
updatedAt: Date;
|
|
7157
|
+
userId: string;
|
|
7158
|
+
expiresAt: Date;
|
|
7159
|
+
token: string;
|
|
7160
|
+
ipAddress?: string | null | undefined | undefined;
|
|
7161
|
+
userAgent?: string | null | undefined | undefined;
|
|
7162
|
+
impersonatedBy?: string | null | undefined;
|
|
7163
|
+
};
|
|
7164
|
+
user: {
|
|
7165
|
+
id: string;
|
|
7166
|
+
createdAt: Date;
|
|
7167
|
+
updatedAt: Date;
|
|
7168
|
+
email: string;
|
|
7169
|
+
emailVerified: boolean;
|
|
7170
|
+
name: string;
|
|
7171
|
+
image?: string | null | undefined | undefined;
|
|
7172
|
+
onboardingCompleted: boolean | null | undefined;
|
|
7173
|
+
linkedinVerified: boolean | null | undefined;
|
|
7174
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
7175
|
+
linkedinId?: string | null | undefined;
|
|
7176
|
+
linkedinName?: string | null | undefined;
|
|
7177
|
+
banned: boolean | null | undefined;
|
|
7178
|
+
role?: string | null | undefined;
|
|
7179
|
+
banReason?: string | null | undefined;
|
|
7180
|
+
banExpires?: Date | null | undefined;
|
|
7181
|
+
username?: string | null | undefined;
|
|
7182
|
+
displayUsername?: string | null | undefined;
|
|
7183
|
+
};
|
|
7184
|
+
}>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
|
|
7185
|
+
data: {
|
|
7186
|
+
markedCount: number;
|
|
7187
|
+
};
|
|
7188
|
+
}, {
|
|
7189
|
+
data: {
|
|
7190
|
+
markedCount: number;
|
|
7191
|
+
};
|
|
7192
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
7193
|
+
readonly UNAUTHORIZED: {
|
|
7194
|
+
readonly message: "You must be logged in to access this resource";
|
|
7195
|
+
};
|
|
7196
|
+
readonly FORBIDDEN: {
|
|
7197
|
+
readonly message: "You do not have permission to access this resource";
|
|
7198
|
+
};
|
|
7199
|
+
readonly NOT_FOUND: {
|
|
7200
|
+
readonly message: "The requested resource was not found";
|
|
7201
|
+
};
|
|
7202
|
+
readonly BAD_REQUEST: {
|
|
7203
|
+
readonly message: "Invalid request";
|
|
7204
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
7205
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
7206
|
+
code: zod.ZodString;
|
|
7207
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
7208
|
+
message: zod.ZodString;
|
|
7209
|
+
}, better_auth.$loose>>;
|
|
7210
|
+
}, better_auth.$strip>>;
|
|
7211
|
+
};
|
|
7212
|
+
readonly CONFLICT: {
|
|
7213
|
+
readonly message: "The request conflicts with existing data";
|
|
7214
|
+
};
|
|
7215
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
7216
|
+
readonly message: "An internal server error occurred";
|
|
7217
|
+
};
|
|
7218
|
+
}>, Record<never, never>>;
|
|
7219
|
+
stream: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
7220
|
+
session: {
|
|
7221
|
+
id: string;
|
|
7222
|
+
createdAt: Date;
|
|
7223
|
+
updatedAt: Date;
|
|
7224
|
+
userId: string;
|
|
7225
|
+
expiresAt: Date;
|
|
7226
|
+
token: string;
|
|
7227
|
+
ipAddress?: string | null | undefined | undefined;
|
|
7228
|
+
userAgent?: string | null | undefined | undefined;
|
|
7229
|
+
impersonatedBy?: string | null | undefined;
|
|
7230
|
+
};
|
|
7231
|
+
user: {
|
|
7232
|
+
id: string;
|
|
7233
|
+
createdAt: Date;
|
|
7234
|
+
updatedAt: Date;
|
|
7235
|
+
email: string;
|
|
7236
|
+
emailVerified: boolean;
|
|
7237
|
+
name: string;
|
|
7238
|
+
image?: string | null | undefined | undefined;
|
|
7239
|
+
onboardingCompleted: boolean | null | undefined;
|
|
7240
|
+
linkedinVerified: boolean | null | undefined;
|
|
7241
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
7242
|
+
linkedinId?: string | null | undefined;
|
|
7243
|
+
linkedinName?: string | null | undefined;
|
|
7244
|
+
banned: boolean | null | undefined;
|
|
7245
|
+
role?: string | null | undefined;
|
|
7246
|
+
banReason?: string | null | undefined;
|
|
7247
|
+
banExpires?: Date | null | undefined;
|
|
7248
|
+
username?: string | null | undefined;
|
|
7249
|
+
displayUsername?: string | null | undefined;
|
|
7250
|
+
};
|
|
7251
|
+
}>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<AsyncGenerator<{
|
|
7252
|
+
id: string;
|
|
7253
|
+
createdAt: Date;
|
|
7254
|
+
title: string | null;
|
|
7255
|
+
type: "mention" | "reply" | "new_article" | "article_comment" | "announcement";
|
|
7256
|
+
recipientId: string;
|
|
7257
|
+
sourceType: "post" | "comment" | "community_post" | "note" | "note_comment" | "community_comment";
|
|
7258
|
+
sourceId: string;
|
|
7259
|
+
actorId: string | null;
|
|
7260
|
+
metadata: {
|
|
7261
|
+
postSlug?: string;
|
|
7262
|
+
commentId?: string;
|
|
7263
|
+
} | null;
|
|
7264
|
+
read: boolean;
|
|
7265
|
+
readAt: Date | null;
|
|
7266
|
+
} & {
|
|
7267
|
+
actor?: {
|
|
7268
|
+
id: string;
|
|
7269
|
+
name: string;
|
|
7270
|
+
username: string | null;
|
|
7271
|
+
displayUsername: string | null;
|
|
7272
|
+
image: string | null;
|
|
7273
|
+
} | null;
|
|
7274
|
+
}, void, unknown>, AsyncGenerator<{
|
|
7275
|
+
id: string;
|
|
7276
|
+
createdAt: Date;
|
|
7277
|
+
title: string | null;
|
|
7278
|
+
type: "mention" | "reply" | "new_article" | "article_comment" | "announcement";
|
|
7279
|
+
recipientId: string;
|
|
7280
|
+
sourceType: "post" | "comment" | "community_post" | "note" | "note_comment" | "community_comment";
|
|
7281
|
+
sourceId: string;
|
|
7282
|
+
actorId: string | null;
|
|
7283
|
+
metadata: {
|
|
7284
|
+
postSlug?: string;
|
|
7285
|
+
commentId?: string;
|
|
7286
|
+
} | null;
|
|
7287
|
+
read: boolean;
|
|
7288
|
+
readAt: Date | null;
|
|
7289
|
+
} & {
|
|
7290
|
+
actor?: {
|
|
7291
|
+
id: string;
|
|
7292
|
+
name: string;
|
|
7293
|
+
username: string | null;
|
|
7294
|
+
displayUsername: string | null;
|
|
7295
|
+
image: string | null;
|
|
7296
|
+
} | null;
|
|
7297
|
+
}, void, unknown>>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
7298
|
+
readonly UNAUTHORIZED: {
|
|
7299
|
+
readonly message: "You must be logged in to access this resource";
|
|
7300
|
+
};
|
|
7301
|
+
readonly FORBIDDEN: {
|
|
7302
|
+
readonly message: "You do not have permission to access this resource";
|
|
7303
|
+
};
|
|
7304
|
+
readonly NOT_FOUND: {
|
|
7305
|
+
readonly message: "The requested resource was not found";
|
|
7306
|
+
};
|
|
7307
|
+
readonly BAD_REQUEST: {
|
|
7308
|
+
readonly message: "Invalid request";
|
|
7309
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
7310
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
7311
|
+
code: zod.ZodString;
|
|
7312
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
7313
|
+
message: zod.ZodString;
|
|
7314
|
+
}, better_auth.$loose>>;
|
|
7315
|
+
}, better_auth.$strip>>;
|
|
7316
|
+
};
|
|
7317
|
+
readonly CONFLICT: {
|
|
7318
|
+
readonly message: "The request conflicts with existing data";
|
|
7319
|
+
};
|
|
7320
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
7321
|
+
readonly message: "An internal server error occurred";
|
|
7322
|
+
};
|
|
7323
|
+
}>, Record<never, never>>;
|
|
7324
|
+
pushToken: {
|
|
7325
|
+
register: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
7326
|
+
session: {
|
|
7327
|
+
id: string;
|
|
7328
|
+
createdAt: Date;
|
|
7329
|
+
updatedAt: Date;
|
|
7330
|
+
userId: string;
|
|
7331
|
+
expiresAt: Date;
|
|
7332
|
+
token: string;
|
|
7333
|
+
ipAddress?: string | null | undefined | undefined;
|
|
7334
|
+
userAgent?: string | null | undefined | undefined;
|
|
7335
|
+
impersonatedBy?: string | null | undefined;
|
|
7336
|
+
};
|
|
7337
|
+
user: {
|
|
7338
|
+
id: string;
|
|
7339
|
+
createdAt: Date;
|
|
7340
|
+
updatedAt: Date;
|
|
7341
|
+
email: string;
|
|
7342
|
+
emailVerified: boolean;
|
|
7343
|
+
name: string;
|
|
7344
|
+
image?: string | null | undefined | undefined;
|
|
7345
|
+
onboardingCompleted: boolean | null | undefined;
|
|
7346
|
+
linkedinVerified: boolean | null | undefined;
|
|
7347
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
7348
|
+
linkedinId?: string | null | undefined;
|
|
7349
|
+
linkedinName?: string | null | undefined;
|
|
7350
|
+
banned: boolean | null | undefined;
|
|
7351
|
+
role?: string | null | undefined;
|
|
7352
|
+
banReason?: string | null | undefined;
|
|
7353
|
+
banExpires?: Date | null | undefined;
|
|
7354
|
+
username?: string | null | undefined;
|
|
7355
|
+
displayUsername?: string | null | undefined;
|
|
7356
|
+
};
|
|
7357
|
+
}>, zod.ZodObject<{
|
|
7358
|
+
token: zod.ZodString;
|
|
7359
|
+
platform: zod.ZodEnum<{
|
|
7360
|
+
ios: "ios";
|
|
7361
|
+
android: "android";
|
|
7362
|
+
web: "web";
|
|
7363
|
+
}>;
|
|
7364
|
+
deviceId: zod.ZodOptional<zod.ZodString>;
|
|
7365
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
7366
|
+
data: {
|
|
7367
|
+
success: boolean;
|
|
7368
|
+
};
|
|
7369
|
+
}, {
|
|
7370
|
+
data: {
|
|
7371
|
+
success: boolean;
|
|
7372
|
+
};
|
|
7373
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
7374
|
+
readonly UNAUTHORIZED: {
|
|
7375
|
+
readonly message: "You must be logged in to access this resource";
|
|
7376
|
+
};
|
|
7377
|
+
readonly FORBIDDEN: {
|
|
7378
|
+
readonly message: "You do not have permission to access this resource";
|
|
7379
|
+
};
|
|
7380
|
+
readonly NOT_FOUND: {
|
|
7381
|
+
readonly message: "The requested resource was not found";
|
|
7382
|
+
};
|
|
7383
|
+
readonly BAD_REQUEST: {
|
|
7384
|
+
readonly message: "Invalid request";
|
|
7385
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
7386
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
7387
|
+
code: zod.ZodString;
|
|
7388
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
7389
|
+
message: zod.ZodString;
|
|
7390
|
+
}, better_auth.$loose>>;
|
|
7391
|
+
}, better_auth.$strip>>;
|
|
7392
|
+
};
|
|
7393
|
+
readonly CONFLICT: {
|
|
7394
|
+
readonly message: "The request conflicts with existing data";
|
|
7395
|
+
};
|
|
7396
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
7397
|
+
readonly message: "An internal server error occurred";
|
|
7398
|
+
};
|
|
7399
|
+
}>, Record<never, never>>;
|
|
7400
|
+
remove: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
7401
|
+
session: {
|
|
7402
|
+
id: string;
|
|
7403
|
+
createdAt: Date;
|
|
7404
|
+
updatedAt: Date;
|
|
7405
|
+
userId: string;
|
|
7406
|
+
expiresAt: Date;
|
|
7407
|
+
token: string;
|
|
7408
|
+
ipAddress?: string | null | undefined | undefined;
|
|
7409
|
+
userAgent?: string | null | undefined | undefined;
|
|
7410
|
+
impersonatedBy?: string | null | undefined;
|
|
7411
|
+
};
|
|
7412
|
+
user: {
|
|
7413
|
+
id: string;
|
|
7414
|
+
createdAt: Date;
|
|
7415
|
+
updatedAt: Date;
|
|
7416
|
+
email: string;
|
|
7417
|
+
emailVerified: boolean;
|
|
7418
|
+
name: string;
|
|
7419
|
+
image?: string | null | undefined | undefined;
|
|
7420
|
+
onboardingCompleted: boolean | null | undefined;
|
|
7421
|
+
linkedinVerified: boolean | null | undefined;
|
|
7422
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
7423
|
+
linkedinId?: string | null | undefined;
|
|
7424
|
+
linkedinName?: string | null | undefined;
|
|
7425
|
+
banned: boolean | null | undefined;
|
|
7426
|
+
role?: string | null | undefined;
|
|
7427
|
+
banReason?: string | null | undefined;
|
|
7428
|
+
banExpires?: Date | null | undefined;
|
|
7429
|
+
username?: string | null | undefined;
|
|
7430
|
+
displayUsername?: string | null | undefined;
|
|
7431
|
+
};
|
|
7432
|
+
}>, zod.ZodObject<{
|
|
7433
|
+
token: zod.ZodString;
|
|
7434
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
7435
|
+
data: {
|
|
7436
|
+
success: boolean;
|
|
7437
|
+
};
|
|
7438
|
+
}, {
|
|
7439
|
+
data: {
|
|
7440
|
+
success: boolean;
|
|
6146
7441
|
};
|
|
6147
7442
|
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6148
7443
|
readonly UNAUTHORIZED: {
|