@framebreak/types 0.1.22 → 0.1.24

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +1269 -39
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,10 +1,237 @@
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" | "new_thread";
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", "new_thread"];
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
+ communityPostId?: string;
143
+ };
144
+ driverParam: unknown;
145
+ notNull: false;
146
+ hasDefault: false;
147
+ isPrimaryKey: false;
148
+ isAutoincrement: false;
149
+ hasRuntimeDefault: false;
150
+ enumValues: undefined;
151
+ baseColumn: never;
152
+ identity: undefined;
153
+ generated: undefined;
154
+ }, {}, {
155
+ $type: {
156
+ postSlug?: string;
157
+ commentId?: string;
158
+ communityPostId?: string;
159
+ };
160
+ }>;
161
+ read: drizzle_orm_pg_core.PgColumn<{
162
+ name: "read";
163
+ tableName: "notification";
164
+ dataType: "boolean";
165
+ columnType: "PgBoolean";
166
+ data: boolean;
167
+ driverParam: boolean;
168
+ notNull: true;
169
+ hasDefault: true;
170
+ isPrimaryKey: false;
171
+ isAutoincrement: false;
172
+ hasRuntimeDefault: false;
173
+ enumValues: undefined;
174
+ baseColumn: never;
175
+ identity: undefined;
176
+ generated: undefined;
177
+ }, {}, {}>;
178
+ readAt: drizzle_orm_pg_core.PgColumn<{
179
+ name: "read_at";
180
+ tableName: "notification";
181
+ dataType: "date";
182
+ columnType: "PgTimestamp";
183
+ data: Date;
184
+ driverParam: string;
185
+ notNull: false;
186
+ hasDefault: false;
187
+ isPrimaryKey: false;
188
+ isAutoincrement: false;
189
+ hasRuntimeDefault: false;
190
+ enumValues: undefined;
191
+ baseColumn: never;
192
+ identity: undefined;
193
+ generated: undefined;
194
+ }, {}, {}>;
195
+ createdAt: drizzle_orm_pg_core.PgColumn<{
196
+ name: "created_at";
197
+ tableName: "notification";
198
+ dataType: "date";
199
+ columnType: "PgTimestamp";
200
+ data: Date;
201
+ driverParam: string;
202
+ notNull: true;
203
+ hasDefault: true;
204
+ isPrimaryKey: false;
205
+ isAutoincrement: false;
206
+ hasRuntimeDefault: false;
207
+ enumValues: undefined;
208
+ baseColumn: never;
209
+ identity: undefined;
210
+ generated: undefined;
211
+ }, {}, {}>;
212
+ };
213
+ dialect: "pg";
214
+ }>;
215
+ type Notification = typeof notification.$inferSelect;
216
+
217
+ /**
218
+ * Actor information for notification display.
219
+ */
220
+ interface NotificationActor {
221
+ id: string;
222
+ name: string;
223
+ username: string | null;
224
+ displayUsername: string | null;
225
+ image: string | null;
226
+ linkedinVerified: boolean | null;
227
+ }
228
+ /**
229
+ * Notification with actor information for display.
230
+ */
231
+ interface NotificationWithActor extends Notification {
232
+ actor: NotificationActor | null;
233
+ }
234
+
8
235
  /**
9
236
  * Kit (ConvertKit) broadcast utilities for importing articles.
10
237
  * Used by both the admin UI and CLI import scripts.
@@ -42,6 +269,8 @@ interface NoteComment {
42
269
  id: string;
43
270
  noteId: string;
44
271
  parentId: string | null;
272
+ replyToCommentId?: string | null;
273
+ replyToAuthor?: NoteCommentAuthor | null;
45
274
  content: string;
46
275
  createdAt: Date;
47
276
  updatedAt: Date;
@@ -52,8 +281,6 @@ interface NoteComment {
52
281
  hidden?: boolean;
53
282
  }
54
283
 
55
- type InsiderApplicationStatus = "pending" | "approved" | "rejected";
56
-
57
284
  interface CommentAuthor {
58
285
  id: string;
59
286
  name: string;
@@ -74,6 +301,8 @@ interface Comment {
74
301
  id: string;
75
302
  postId: string;
76
303
  parentId: string | null;
304
+ replyToCommentId?: string | null;
305
+ replyToAuthor?: CommentAuthor | null;
77
306
  content: string;
78
307
  link: CommentLink | null;
79
308
  createdAt: Date;
@@ -102,6 +331,8 @@ interface CommunityComment {
102
331
  id: string;
103
332
  communityPostId: string;
104
333
  parentId: string | null;
334
+ replyToCommentId?: string | null;
335
+ replyToAuthor?: CommentAuthor | null;
105
336
  content: string;
106
337
  images: string[];
107
338
  link: CommunityPostLink | null;
@@ -1508,6 +1739,8 @@ declare const v1Router: {
1508
1739
  id: string;
1509
1740
  postId: string;
1510
1741
  parentId: string | null;
1742
+ replyToCommentId?: string | null;
1743
+ replyToAuthor?: CommentAuthor | null;
1511
1744
  content: string;
1512
1745
  link: CommentLink | null;
1513
1746
  createdAt: Date;
@@ -1525,6 +1758,8 @@ declare const v1Router: {
1525
1758
  id: string;
1526
1759
  postId: string;
1527
1760
  parentId: string | null;
1761
+ replyToCommentId?: string | null;
1762
+ replyToAuthor?: CommentAuthor | null;
1528
1763
  content: string;
1529
1764
  link: CommentLink | null;
1530
1765
  createdAt: Date;
@@ -1668,6 +1903,7 @@ declare const v1Router: {
1668
1903
  }>, zod.ZodObject<{
1669
1904
  postId: zod.ZodString;
1670
1905
  parentCommentId: zod.ZodOptional<zod.ZodString>;
1906
+ replyToCommentId: zod.ZodOptional<zod.ZodString>;
1671
1907
  content: zod.ZodString;
1672
1908
  linkUrl: zod.ZodOptional<zod.ZodString>;
1673
1909
  }, better_auth.$strip>, _orpc_contract.Schema<{
@@ -2566,8 +2802,8 @@ declare const v1Router: {
2566
2802
  }>, zod.ZodObject<{
2567
2803
  status: zod.ZodOptional<zod.ZodEnum<{
2568
2804
  pending: "pending";
2569
- approved: "approved";
2570
2805
  rejected: "rejected";
2806
+ approved: "approved";
2571
2807
  }>>;
2572
2808
  limit: zod.ZodDefault<zod.ZodNumber>;
2573
2809
  since: zod.ZodOptional<zod.ZodString>;
@@ -3888,6 +4124,7 @@ declare const v1Router: {
3888
4124
  }>, zod.ZodObject<{
3889
4125
  communityPostId: zod.ZodString;
3890
4126
  parentId: zod.ZodOptional<zod.ZodString>;
4127
+ replyToCommentId: zod.ZodOptional<zod.ZodString>;
3891
4128
  content: zod.ZodString;
3892
4129
  imageUrls: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
3893
4130
  linkUrl: zod.ZodOptional<zod.ZodString>;
@@ -4961,6 +5198,7 @@ declare const v1Router: {
4961
5198
  }>, zod.ZodObject<{
4962
5199
  noteId: zod.ZodString;
4963
5200
  parentId: zod.ZodOptional<zod.ZodString>;
5201
+ replyToCommentId: zod.ZodOptional<zod.ZodString>;
4964
5202
  content: zod.ZodString;
4965
5203
  }, better_auth.$strip>, _orpc_contract.Schema<{
4966
5204
  data: NoteComment;
@@ -5311,8 +5549,8 @@ declare const v1Router: {
5311
5549
  }>, zod.ZodObject<{
5312
5550
  status: zod.ZodOptional<zod.ZodEnum<{
5313
5551
  pending: "pending";
5314
- approved: "approved";
5315
5552
  rejected: "rejected";
5553
+ approved: "approved";
5316
5554
  }>>;
5317
5555
  limit: zod.ZodDefault<zod.ZodNumber>;
5318
5556
  offset: zod.ZodDefault<zod.ZodNumber>;
@@ -5645,6 +5883,11 @@ declare const v1Router: {
5645
5883
  talent: "talent";
5646
5884
  investor: "investor";
5647
5885
  }>>;
5886
+ status: zod.ZodOptional<zod.ZodEnum<{
5887
+ pending: "pending";
5888
+ accepted: "accepted";
5889
+ rejected: "rejected";
5890
+ }>>;
5648
5891
  limit: zod.ZodDefault<zod.ZodNumber>;
5649
5892
  offset: zod.ZodDefault<zod.ZodNumber>;
5650
5893
  }, better_auth.$strip>, _orpc_contract.Schema<{
@@ -5655,6 +5898,8 @@ declare const v1Router: {
5655
5898
  linkedinUrl: string | null;
5656
5899
  intent: "builder" | "talent" | "investor" | null;
5657
5900
  followUpResponse: string | null;
5901
+ status: "pending" | "accepted" | "rejected";
5902
+ reviewedAt: Date | null;
5658
5903
  createdAt: Date;
5659
5904
  }[];
5660
5905
  total: number;
@@ -5668,6 +5913,8 @@ declare const v1Router: {
5668
5913
  linkedinUrl: string | null;
5669
5914
  intent: "builder" | "talent" | "investor" | null;
5670
5915
  followUpResponse: string | null;
5916
+ status: "pending" | "accepted" | "rejected";
5917
+ reviewedAt: Date | null;
5671
5918
  createdAt: Date;
5672
5919
  }[];
5673
5920
  total: number;
@@ -5735,6 +5982,9 @@ declare const v1Router: {
5735
5982
  }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
5736
5983
  data: {
5737
5984
  total: number;
5985
+ pending: number;
5986
+ accepted: number;
5987
+ rejected: number;
5738
5988
  byIntent: {
5739
5989
  builder: number;
5740
5990
  talent: number;
@@ -5744,6 +5994,9 @@ declare const v1Router: {
5744
5994
  }, {
5745
5995
  data: {
5746
5996
  total: number;
5997
+ pending: number;
5998
+ accepted: number;
5999
+ rejected: number;
5747
6000
  byIntent: {
5748
6001
  builder: number;
5749
6002
  talent: number;
@@ -5777,6 +6030,150 @@ declare const v1Router: {
5777
6030
  readonly message: "An internal server error occurred";
5778
6031
  };
5779
6032
  }>, Record<never, never>>;
6033
+ accept: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
6034
+ session: {
6035
+ id: string;
6036
+ createdAt: Date;
6037
+ updatedAt: Date;
6038
+ userId: string;
6039
+ expiresAt: Date;
6040
+ token: string;
6041
+ ipAddress?: string | null | undefined | undefined;
6042
+ userAgent?: string | null | undefined | undefined;
6043
+ impersonatedBy?: string | null | undefined;
6044
+ };
6045
+ user: {
6046
+ id: string;
6047
+ createdAt: Date;
6048
+ updatedAt: Date;
6049
+ email: string;
6050
+ emailVerified: boolean;
6051
+ name: string;
6052
+ image?: string | null | undefined | undefined;
6053
+ onboardingCompleted: boolean | null | undefined;
6054
+ linkedinVerified: boolean | null | undefined;
6055
+ linkedinVerifiedAt?: Date | null | undefined;
6056
+ linkedinId?: string | null | undefined;
6057
+ linkedinName?: string | null | undefined;
6058
+ banned: boolean | null | undefined;
6059
+ role?: string | null | undefined;
6060
+ banReason?: string | null | undefined;
6061
+ banExpires?: Date | null | undefined;
6062
+ username?: string | null | undefined;
6063
+ displayUsername?: string | null | undefined;
6064
+ };
6065
+ }>, zod.ZodObject<{
6066
+ applicationId: zod.ZodString;
6067
+ }, better_auth.$strip>, _orpc_contract.Schema<{
6068
+ data: {
6069
+ success: boolean;
6070
+ applicationId: string;
6071
+ email: string;
6072
+ };
6073
+ }, {
6074
+ data: {
6075
+ success: boolean;
6076
+ applicationId: string;
6077
+ email: string;
6078
+ };
6079
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
6080
+ readonly UNAUTHORIZED: {
6081
+ readonly message: "You must be logged in to access this resource";
6082
+ };
6083
+ readonly FORBIDDEN: {
6084
+ readonly message: "You do not have permission to access this resource";
6085
+ };
6086
+ readonly NOT_FOUND: {
6087
+ readonly message: "The requested resource was not found";
6088
+ };
6089
+ readonly BAD_REQUEST: {
6090
+ readonly message: "Invalid request";
6091
+ readonly data: zod.ZodOptional<zod.ZodObject<{
6092
+ issues: zod.ZodArray<zod.ZodObject<{
6093
+ code: zod.ZodString;
6094
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
6095
+ message: zod.ZodString;
6096
+ }, better_auth.$loose>>;
6097
+ }, better_auth.$strip>>;
6098
+ };
6099
+ readonly CONFLICT: {
6100
+ readonly message: "The request conflicts with existing data";
6101
+ };
6102
+ readonly INTERNAL_SERVER_ERROR: {
6103
+ readonly message: "An internal server error occurred";
6104
+ };
6105
+ }>, Record<never, never>>;
6106
+ reject: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
6107
+ session: {
6108
+ id: string;
6109
+ createdAt: Date;
6110
+ updatedAt: Date;
6111
+ userId: string;
6112
+ expiresAt: Date;
6113
+ token: string;
6114
+ ipAddress?: string | null | undefined | undefined;
6115
+ userAgent?: string | null | undefined | undefined;
6116
+ impersonatedBy?: string | null | undefined;
6117
+ };
6118
+ user: {
6119
+ id: string;
6120
+ createdAt: Date;
6121
+ updatedAt: Date;
6122
+ email: string;
6123
+ emailVerified: boolean;
6124
+ name: string;
6125
+ image?: string | null | undefined | undefined;
6126
+ onboardingCompleted: boolean | null | undefined;
6127
+ linkedinVerified: boolean | null | undefined;
6128
+ linkedinVerifiedAt?: Date | null | undefined;
6129
+ linkedinId?: string | null | undefined;
6130
+ linkedinName?: string | null | undefined;
6131
+ banned: boolean | null | undefined;
6132
+ role?: string | null | undefined;
6133
+ banReason?: string | null | undefined;
6134
+ banExpires?: Date | null | undefined;
6135
+ username?: string | null | undefined;
6136
+ displayUsername?: string | null | undefined;
6137
+ };
6138
+ }>, zod.ZodObject<{
6139
+ applicationId: zod.ZodString;
6140
+ }, better_auth.$strip>, _orpc_contract.Schema<{
6141
+ data: {
6142
+ success: boolean;
6143
+ applicationId: string;
6144
+ };
6145
+ }, {
6146
+ data: {
6147
+ success: boolean;
6148
+ applicationId: string;
6149
+ };
6150
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
6151
+ readonly UNAUTHORIZED: {
6152
+ readonly message: "You must be logged in to access this resource";
6153
+ };
6154
+ readonly FORBIDDEN: {
6155
+ readonly message: "You do not have permission to access this resource";
6156
+ };
6157
+ readonly NOT_FOUND: {
6158
+ readonly message: "The requested resource was not found";
6159
+ };
6160
+ readonly BAD_REQUEST: {
6161
+ readonly message: "Invalid request";
6162
+ readonly data: zod.ZodOptional<zod.ZodObject<{
6163
+ issues: zod.ZodArray<zod.ZodObject<{
6164
+ code: zod.ZodString;
6165
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
6166
+ message: zod.ZodString;
6167
+ }, better_auth.$loose>>;
6168
+ }, better_auth.$strip>>;
6169
+ };
6170
+ readonly CONFLICT: {
6171
+ readonly message: "The request conflicts with existing data";
6172
+ };
6173
+ readonly INTERNAL_SERVER_ERROR: {
6174
+ readonly message: "An internal server error occurred";
6175
+ };
6176
+ }>, Record<never, never>>;
5780
6177
  };
5781
6178
  broadcasts: {
5782
6179
  list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
@@ -6139,30 +6536,48 @@ declare const v1Router: {
6139
6536
  };
6140
6537
  }>, Record<never, never>>;
6141
6538
  };
6142
- };
6143
- /**
6144
- * Development-only endpoints - returns 404 in production.
6145
- * Used for dev tools and debugging.
6146
- */
6147
- dev: {
6148
- posts: {
6149
- 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<{
6150
- id: zod.ZodString;
6151
- }, better_auth.$strip>, _orpc_contract.Schema<{
6152
- data: {
6539
+ notifications: {
6540
+ test: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
6541
+ session: {
6153
6542
  id: string;
6154
- title: string | null;
6155
- subheading: string | null;
6156
- content: string;
6157
- articleContent: string | null;
6543
+ createdAt: Date;
6544
+ updatedAt: Date;
6545
+ userId: string;
6546
+ expiresAt: Date;
6547
+ token: string;
6548
+ ipAddress?: string | null | undefined | undefined;
6549
+ userAgent?: string | null | undefined | undefined;
6550
+ impersonatedBy?: string | null | undefined;
6551
+ };
6552
+ user: {
6553
+ id: string;
6554
+ createdAt: Date;
6555
+ updatedAt: Date;
6556
+ email: string;
6557
+ emailVerified: boolean;
6558
+ name: string;
6559
+ image?: string | null | undefined | undefined;
6560
+ onboardingCompleted: boolean | null | undefined;
6561
+ linkedinVerified: boolean | null | undefined;
6562
+ linkedinVerifiedAt?: Date | null | undefined;
6563
+ linkedinId?: string | null | undefined;
6564
+ linkedinName?: string | null | undefined;
6565
+ banned: boolean | null | undefined;
6566
+ role?: string | null | undefined;
6567
+ banReason?: string | null | undefined;
6568
+ banExpires?: Date | null | undefined;
6569
+ username?: string | null | undefined;
6570
+ displayUsername?: string | null | undefined;
6571
+ };
6572
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
6573
+ data: {
6574
+ success: boolean;
6575
+ notificationId: string;
6158
6576
  };
6159
6577
  }, {
6160
6578
  data: {
6161
- id: string;
6162
- title: string | null;
6163
- subheading: string | null;
6164
- content: string;
6165
- articleContent: string | null;
6579
+ success: boolean;
6580
+ notificationId: string;
6166
6581
  };
6167
6582
  }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
6168
6583
  readonly UNAUTHORIZED: {
@@ -6191,24 +6606,258 @@ declare const v1Router: {
6191
6606
  readonly message: "An internal server error occurred";
6192
6607
  };
6193
6608
  }>, Record<never, never>>;
6194
- 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<{
6195
- id: zod.ZodString;
6196
- title: zod.ZodOptional<zod.ZodString>;
6197
- subheading: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6198
- content: zod.ZodOptional<zod.ZodString>;
6199
- articleContent: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6200
- }, better_auth.$strip>, _orpc_contract.Schema<{
6201
- data: {
6609
+ broadcast: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
6610
+ session: {
6202
6611
  id: string;
6203
- title: string | null;
6204
- subheading: string | null;
6205
- content: string;
6206
- articleContent: string | null;
6612
+ createdAt: Date;
6613
+ updatedAt: Date;
6614
+ userId: string;
6615
+ expiresAt: Date;
6616
+ token: string;
6617
+ ipAddress?: string | null | undefined | undefined;
6618
+ userAgent?: string | null | undefined | undefined;
6619
+ impersonatedBy?: string | null | undefined;
6207
6620
  };
6208
- }, {
6209
- data: {
6621
+ user: {
6210
6622
  id: string;
6211
- title: string | null;
6623
+ createdAt: Date;
6624
+ updatedAt: Date;
6625
+ email: string;
6626
+ emailVerified: boolean;
6627
+ name: string;
6628
+ image?: string | null | undefined | undefined;
6629
+ onboardingCompleted: boolean | null | undefined;
6630
+ linkedinVerified: boolean | null | undefined;
6631
+ linkedinVerifiedAt?: Date | null | undefined;
6632
+ linkedinId?: string | null | undefined;
6633
+ linkedinName?: string | null | undefined;
6634
+ banned: boolean | null | undefined;
6635
+ role?: string | null | undefined;
6636
+ banReason?: string | null | undefined;
6637
+ banExpires?: Date | null | undefined;
6638
+ username?: string | null | undefined;
6639
+ displayUsername?: string | null | undefined;
6640
+ };
6641
+ }>, zod.ZodObject<{
6642
+ title: zod.ZodString;
6643
+ message: zod.ZodOptional<zod.ZodString>;
6644
+ }, better_auth.$strip>, _orpc_contract.Schema<{
6645
+ data: {
6646
+ success: boolean;
6647
+ count: number;
6648
+ };
6649
+ }, {
6650
+ data: {
6651
+ success: boolean;
6652
+ count: number;
6653
+ };
6654
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
6655
+ readonly UNAUTHORIZED: {
6656
+ readonly message: "You must be logged in to access this resource";
6657
+ };
6658
+ readonly FORBIDDEN: {
6659
+ readonly message: "You do not have permission to access this resource";
6660
+ };
6661
+ readonly NOT_FOUND: {
6662
+ readonly message: "The requested resource was not found";
6663
+ };
6664
+ readonly BAD_REQUEST: {
6665
+ readonly message: "Invalid request";
6666
+ readonly data: zod.ZodOptional<zod.ZodObject<{
6667
+ issues: zod.ZodArray<zod.ZodObject<{
6668
+ code: zod.ZodString;
6669
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
6670
+ message: zod.ZodString;
6671
+ }, better_auth.$loose>>;
6672
+ }, better_auth.$strip>>;
6673
+ };
6674
+ readonly CONFLICT: {
6675
+ readonly message: "The request conflicts with existing data";
6676
+ };
6677
+ readonly INTERNAL_SERVER_ERROR: {
6678
+ readonly message: "An internal server error occurred";
6679
+ };
6680
+ }>, Record<never, never>>;
6681
+ notifyArticle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
6682
+ session: {
6683
+ id: string;
6684
+ createdAt: Date;
6685
+ updatedAt: Date;
6686
+ userId: string;
6687
+ expiresAt: Date;
6688
+ token: string;
6689
+ ipAddress?: string | null | undefined | undefined;
6690
+ userAgent?: string | null | undefined | undefined;
6691
+ impersonatedBy?: string | null | undefined;
6692
+ };
6693
+ user: {
6694
+ id: string;
6695
+ createdAt: Date;
6696
+ updatedAt: Date;
6697
+ email: string;
6698
+ emailVerified: boolean;
6699
+ name: string;
6700
+ image?: string | null | undefined | undefined;
6701
+ onboardingCompleted: boolean | null | undefined;
6702
+ linkedinVerified: boolean | null | undefined;
6703
+ linkedinVerifiedAt?: Date | null | undefined;
6704
+ linkedinId?: string | null | undefined;
6705
+ linkedinName?: string | null | undefined;
6706
+ banned: boolean | null | undefined;
6707
+ role?: string | null | undefined;
6708
+ banReason?: string | null | undefined;
6709
+ banExpires?: Date | null | undefined;
6710
+ username?: string | null | undefined;
6711
+ displayUsername?: string | null | undefined;
6712
+ };
6713
+ }>, zod.ZodObject<{
6714
+ postId: zod.ZodString;
6715
+ }, better_auth.$strip>, _orpc_contract.Schema<{
6716
+ data: {
6717
+ success: boolean;
6718
+ count: number;
6719
+ postTitle?: undefined;
6720
+ };
6721
+ } | {
6722
+ data: {
6723
+ success: boolean;
6724
+ count: number;
6725
+ postTitle: string;
6726
+ };
6727
+ }, {
6728
+ data: {
6729
+ success: boolean;
6730
+ count: number;
6731
+ postTitle?: undefined;
6732
+ };
6733
+ } | {
6734
+ data: {
6735
+ success: boolean;
6736
+ count: number;
6737
+ postTitle: string;
6738
+ };
6739
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
6740
+ readonly UNAUTHORIZED: {
6741
+ readonly message: "You must be logged in to access this resource";
6742
+ };
6743
+ readonly FORBIDDEN: {
6744
+ readonly message: "You do not have permission to access this resource";
6745
+ };
6746
+ readonly NOT_FOUND: {
6747
+ readonly message: "The requested resource was not found";
6748
+ };
6749
+ readonly BAD_REQUEST: {
6750
+ readonly message: "Invalid request";
6751
+ readonly data: zod.ZodOptional<zod.ZodObject<{
6752
+ issues: zod.ZodArray<zod.ZodObject<{
6753
+ code: zod.ZodString;
6754
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
6755
+ message: zod.ZodString;
6756
+ }, better_auth.$loose>>;
6757
+ }, better_auth.$strip>>;
6758
+ };
6759
+ readonly CONFLICT: {
6760
+ readonly message: "The request conflicts with existing data";
6761
+ };
6762
+ readonly INTERNAL_SERVER_ERROR: {
6763
+ readonly message: "An internal server error occurred";
6764
+ };
6765
+ }>, Record<never, never>>;
6766
+ listArticles: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
6767
+ session: {
6768
+ id: string;
6769
+ createdAt: Date;
6770
+ updatedAt: Date;
6771
+ userId: string;
6772
+ expiresAt: Date;
6773
+ token: string;
6774
+ ipAddress?: string | null | undefined | undefined;
6775
+ userAgent?: string | null | undefined | undefined;
6776
+ impersonatedBy?: string | null | undefined;
6777
+ };
6778
+ user: {
6779
+ id: string;
6780
+ createdAt: Date;
6781
+ updatedAt: Date;
6782
+ email: string;
6783
+ emailVerified: boolean;
6784
+ name: string;
6785
+ image?: string | null | undefined | undefined;
6786
+ onboardingCompleted: boolean | null | undefined;
6787
+ linkedinVerified: boolean | null | undefined;
6788
+ linkedinVerifiedAt?: Date | null | undefined;
6789
+ linkedinId?: string | null | undefined;
6790
+ linkedinName?: string | null | undefined;
6791
+ banned: boolean | null | undefined;
6792
+ role?: string | null | undefined;
6793
+ banReason?: string | null | undefined;
6794
+ banExpires?: Date | null | undefined;
6795
+ username?: string | null | undefined;
6796
+ displayUsername?: string | null | undefined;
6797
+ };
6798
+ }>, zod.ZodObject<{
6799
+ limit: zod.ZodDefault<zod.ZodNumber>;
6800
+ }, better_auth.$strip>, _orpc_contract.Schema<{
6801
+ data: {
6802
+ id: string;
6803
+ title: string | null;
6804
+ publishedAt: Date | null;
6805
+ }[];
6806
+ }, {
6807
+ data: {
6808
+ id: string;
6809
+ title: string | null;
6810
+ publishedAt: Date | null;
6811
+ }[];
6812
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
6813
+ readonly UNAUTHORIZED: {
6814
+ readonly message: "You must be logged in to access this resource";
6815
+ };
6816
+ readonly FORBIDDEN: {
6817
+ readonly message: "You do not have permission to access this resource";
6818
+ };
6819
+ readonly NOT_FOUND: {
6820
+ readonly message: "The requested resource was not found";
6821
+ };
6822
+ readonly BAD_REQUEST: {
6823
+ readonly message: "Invalid request";
6824
+ readonly data: zod.ZodOptional<zod.ZodObject<{
6825
+ issues: zod.ZodArray<zod.ZodObject<{
6826
+ code: zod.ZodString;
6827
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
6828
+ message: zod.ZodString;
6829
+ }, better_auth.$loose>>;
6830
+ }, better_auth.$strip>>;
6831
+ };
6832
+ readonly CONFLICT: {
6833
+ readonly message: "The request conflicts with existing data";
6834
+ };
6835
+ readonly INTERNAL_SERVER_ERROR: {
6836
+ readonly message: "An internal server error occurred";
6837
+ };
6838
+ }>, Record<never, never>>;
6839
+ };
6840
+ };
6841
+ /**
6842
+ * Development-only endpoints - returns 404 in production.
6843
+ * Used for dev tools and debugging.
6844
+ */
6845
+ dev: {
6846
+ posts: {
6847
+ 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<{
6848
+ id: zod.ZodString;
6849
+ }, better_auth.$strip>, _orpc_contract.Schema<{
6850
+ data: {
6851
+ id: string;
6852
+ title: string | null;
6853
+ subheading: string | null;
6854
+ content: string;
6855
+ articleContent: string | null;
6856
+ };
6857
+ }, {
6858
+ data: {
6859
+ id: string;
6860
+ title: string | null;
6212
6861
  subheading: string | null;
6213
6862
  content: string;
6214
6863
  articleContent: string | null;
@@ -6240,6 +6889,587 @@ declare const v1Router: {
6240
6889
  readonly message: "An internal server error occurred";
6241
6890
  };
6242
6891
  }>, Record<never, never>>;
6892
+ 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<{
6893
+ id: zod.ZodString;
6894
+ title: zod.ZodOptional<zod.ZodString>;
6895
+ subheading: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6896
+ content: zod.ZodOptional<zod.ZodString>;
6897
+ articleContent: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6898
+ }, better_auth.$strip>, _orpc_contract.Schema<{
6899
+ data: {
6900
+ id: string;
6901
+ title: string | null;
6902
+ subheading: string | null;
6903
+ content: string;
6904
+ articleContent: string | null;
6905
+ };
6906
+ }, {
6907
+ data: {
6908
+ id: string;
6909
+ title: string | null;
6910
+ subheading: string | null;
6911
+ content: string;
6912
+ articleContent: string | null;
6913
+ };
6914
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
6915
+ readonly UNAUTHORIZED: {
6916
+ readonly message: "You must be logged in to access this resource";
6917
+ };
6918
+ readonly FORBIDDEN: {
6919
+ readonly message: "You do not have permission to access this resource";
6920
+ };
6921
+ readonly NOT_FOUND: {
6922
+ readonly message: "The requested resource was not found";
6923
+ };
6924
+ readonly BAD_REQUEST: {
6925
+ readonly message: "Invalid request";
6926
+ readonly data: zod.ZodOptional<zod.ZodObject<{
6927
+ issues: zod.ZodArray<zod.ZodObject<{
6928
+ code: zod.ZodString;
6929
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
6930
+ message: zod.ZodString;
6931
+ }, better_auth.$loose>>;
6932
+ }, better_auth.$strip>>;
6933
+ };
6934
+ readonly CONFLICT: {
6935
+ readonly message: "The request conflicts with existing data";
6936
+ };
6937
+ readonly INTERNAL_SERVER_ERROR: {
6938
+ readonly message: "An internal server error occurred";
6939
+ };
6940
+ }>, Record<never, never>>;
6941
+ };
6942
+ };
6943
+ /**
6944
+ * Notification endpoints - for @mentions and system notifications.
6945
+ * Requires authentication.
6946
+ */
6947
+ notifications: {
6948
+ list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
6949
+ session: {
6950
+ id: string;
6951
+ createdAt: Date;
6952
+ updatedAt: Date;
6953
+ userId: string;
6954
+ expiresAt: Date;
6955
+ token: string;
6956
+ ipAddress?: string | null | undefined | undefined;
6957
+ userAgent?: string | null | undefined | undefined;
6958
+ impersonatedBy?: string | null | undefined;
6959
+ };
6960
+ user: {
6961
+ id: string;
6962
+ createdAt: Date;
6963
+ updatedAt: Date;
6964
+ email: string;
6965
+ emailVerified: boolean;
6966
+ name: string;
6967
+ image?: string | null | undefined | undefined;
6968
+ onboardingCompleted: boolean | null | undefined;
6969
+ linkedinVerified: boolean | null | undefined;
6970
+ linkedinVerifiedAt?: Date | null | undefined;
6971
+ linkedinId?: string | null | undefined;
6972
+ linkedinName?: string | null | undefined;
6973
+ banned: boolean | null | undefined;
6974
+ role?: string | null | undefined;
6975
+ banReason?: string | null | undefined;
6976
+ banExpires?: Date | null | undefined;
6977
+ username?: string | null | undefined;
6978
+ displayUsername?: string | null | undefined;
6979
+ };
6980
+ }>, zod.ZodOptional<zod.ZodObject<{
6981
+ cursor: zod.ZodOptional<zod.ZodString>;
6982
+ limit: zod.ZodDefault<zod.ZodNumber>;
6983
+ }, better_auth.$strip>>, _orpc_contract.Schema<{
6984
+ data: NotificationWithActor[];
6985
+ nextCursor: string | null;
6986
+ hasMore: boolean;
6987
+ }, {
6988
+ data: NotificationWithActor[];
6989
+ nextCursor: string | null;
6990
+ hasMore: boolean;
6991
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
6992
+ readonly UNAUTHORIZED: {
6993
+ readonly message: "You must be logged in to access this resource";
6994
+ };
6995
+ readonly FORBIDDEN: {
6996
+ readonly message: "You do not have permission to access this resource";
6997
+ };
6998
+ readonly NOT_FOUND: {
6999
+ readonly message: "The requested resource was not found";
7000
+ };
7001
+ readonly BAD_REQUEST: {
7002
+ readonly message: "Invalid request";
7003
+ readonly data: zod.ZodOptional<zod.ZodObject<{
7004
+ issues: zod.ZodArray<zod.ZodObject<{
7005
+ code: zod.ZodString;
7006
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
7007
+ message: zod.ZodString;
7008
+ }, better_auth.$loose>>;
7009
+ }, better_auth.$strip>>;
7010
+ };
7011
+ readonly CONFLICT: {
7012
+ readonly message: "The request conflicts with existing data";
7013
+ };
7014
+ readonly INTERNAL_SERVER_ERROR: {
7015
+ readonly message: "An internal server error occurred";
7016
+ };
7017
+ }>, Record<never, never>>;
7018
+ unreadCount: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
7019
+ session: {
7020
+ id: string;
7021
+ createdAt: Date;
7022
+ updatedAt: Date;
7023
+ userId: string;
7024
+ expiresAt: Date;
7025
+ token: string;
7026
+ ipAddress?: string | null | undefined | undefined;
7027
+ userAgent?: string | null | undefined | undefined;
7028
+ impersonatedBy?: string | null | undefined;
7029
+ };
7030
+ user: {
7031
+ id: string;
7032
+ createdAt: Date;
7033
+ updatedAt: Date;
7034
+ email: string;
7035
+ emailVerified: boolean;
7036
+ name: string;
7037
+ image?: string | null | undefined | undefined;
7038
+ onboardingCompleted: boolean | null | undefined;
7039
+ linkedinVerified: boolean | null | undefined;
7040
+ linkedinVerifiedAt?: Date | null | undefined;
7041
+ linkedinId?: string | null | undefined;
7042
+ linkedinName?: string | null | undefined;
7043
+ banned: boolean | null | undefined;
7044
+ role?: string | null | undefined;
7045
+ banReason?: string | null | undefined;
7046
+ banExpires?: Date | null | undefined;
7047
+ username?: string | null | undefined;
7048
+ displayUsername?: string | null | undefined;
7049
+ };
7050
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
7051
+ data: {
7052
+ count: number;
7053
+ };
7054
+ }, {
7055
+ data: {
7056
+ count: number;
7057
+ };
7058
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
7059
+ readonly UNAUTHORIZED: {
7060
+ readonly message: "You must be logged in to access this resource";
7061
+ };
7062
+ readonly FORBIDDEN: {
7063
+ readonly message: "You do not have permission to access this resource";
7064
+ };
7065
+ readonly NOT_FOUND: {
7066
+ readonly message: "The requested resource was not found";
7067
+ };
7068
+ readonly BAD_REQUEST: {
7069
+ readonly message: "Invalid request";
7070
+ readonly data: zod.ZodOptional<zod.ZodObject<{
7071
+ issues: zod.ZodArray<zod.ZodObject<{
7072
+ code: zod.ZodString;
7073
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
7074
+ message: zod.ZodString;
7075
+ }, better_auth.$loose>>;
7076
+ }, better_auth.$strip>>;
7077
+ };
7078
+ readonly CONFLICT: {
7079
+ readonly message: "The request conflicts with existing data";
7080
+ };
7081
+ readonly INTERNAL_SERVER_ERROR: {
7082
+ readonly message: "An internal server error occurred";
7083
+ };
7084
+ }>, Record<never, never>>;
7085
+ markRead: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
7086
+ session: {
7087
+ id: string;
7088
+ createdAt: Date;
7089
+ updatedAt: Date;
7090
+ userId: string;
7091
+ expiresAt: Date;
7092
+ token: string;
7093
+ ipAddress?: string | null | undefined | undefined;
7094
+ userAgent?: string | null | undefined | undefined;
7095
+ impersonatedBy?: string | null | undefined;
7096
+ };
7097
+ user: {
7098
+ id: string;
7099
+ createdAt: Date;
7100
+ updatedAt: Date;
7101
+ email: string;
7102
+ emailVerified: boolean;
7103
+ name: string;
7104
+ image?: string | null | undefined | undefined;
7105
+ onboardingCompleted: boolean | null | undefined;
7106
+ linkedinVerified: boolean | null | undefined;
7107
+ linkedinVerifiedAt?: Date | null | undefined;
7108
+ linkedinId?: string | null | undefined;
7109
+ linkedinName?: string | null | undefined;
7110
+ banned: boolean | null | undefined;
7111
+ role?: string | null | undefined;
7112
+ banReason?: string | null | undefined;
7113
+ banExpires?: Date | null | undefined;
7114
+ username?: string | null | undefined;
7115
+ displayUsername?: string | null | undefined;
7116
+ };
7117
+ }>, zod.ZodObject<{
7118
+ id: zod.ZodString;
7119
+ }, better_auth.$strip>, _orpc_contract.Schema<{
7120
+ data: {
7121
+ success: boolean;
7122
+ };
7123
+ }, {
7124
+ data: {
7125
+ success: boolean;
7126
+ };
7127
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
7128
+ readonly UNAUTHORIZED: {
7129
+ readonly message: "You must be logged in to access this resource";
7130
+ };
7131
+ readonly FORBIDDEN: {
7132
+ readonly message: "You do not have permission to access this resource";
7133
+ };
7134
+ readonly NOT_FOUND: {
7135
+ readonly message: "The requested resource was not found";
7136
+ };
7137
+ readonly BAD_REQUEST: {
7138
+ readonly message: "Invalid request";
7139
+ readonly data: zod.ZodOptional<zod.ZodObject<{
7140
+ issues: zod.ZodArray<zod.ZodObject<{
7141
+ code: zod.ZodString;
7142
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
7143
+ message: zod.ZodString;
7144
+ }, better_auth.$loose>>;
7145
+ }, better_auth.$strip>>;
7146
+ };
7147
+ readonly CONFLICT: {
7148
+ readonly message: "The request conflicts with existing data";
7149
+ };
7150
+ readonly INTERNAL_SERVER_ERROR: {
7151
+ readonly message: "An internal server error occurred";
7152
+ };
7153
+ }>, Record<never, never>>;
7154
+ markAllRead: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
7155
+ session: {
7156
+ id: string;
7157
+ createdAt: Date;
7158
+ updatedAt: Date;
7159
+ userId: string;
7160
+ expiresAt: Date;
7161
+ token: string;
7162
+ ipAddress?: string | null | undefined | undefined;
7163
+ userAgent?: string | null | undefined | undefined;
7164
+ impersonatedBy?: string | null | undefined;
7165
+ };
7166
+ user: {
7167
+ id: string;
7168
+ createdAt: Date;
7169
+ updatedAt: Date;
7170
+ email: string;
7171
+ emailVerified: boolean;
7172
+ name: string;
7173
+ image?: string | null | undefined | undefined;
7174
+ onboardingCompleted: boolean | null | undefined;
7175
+ linkedinVerified: boolean | null | undefined;
7176
+ linkedinVerifiedAt?: Date | null | undefined;
7177
+ linkedinId?: string | null | undefined;
7178
+ linkedinName?: string | null | undefined;
7179
+ banned: boolean | null | undefined;
7180
+ role?: string | null | undefined;
7181
+ banReason?: string | null | undefined;
7182
+ banExpires?: Date | null | undefined;
7183
+ username?: string | null | undefined;
7184
+ displayUsername?: string | null | undefined;
7185
+ };
7186
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
7187
+ data: {
7188
+ markedCount: number;
7189
+ };
7190
+ }, {
7191
+ data: {
7192
+ markedCount: number;
7193
+ };
7194
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
7195
+ readonly UNAUTHORIZED: {
7196
+ readonly message: "You must be logged in to access this resource";
7197
+ };
7198
+ readonly FORBIDDEN: {
7199
+ readonly message: "You do not have permission to access this resource";
7200
+ };
7201
+ readonly NOT_FOUND: {
7202
+ readonly message: "The requested resource was not found";
7203
+ };
7204
+ readonly BAD_REQUEST: {
7205
+ readonly message: "Invalid request";
7206
+ readonly data: zod.ZodOptional<zod.ZodObject<{
7207
+ issues: zod.ZodArray<zod.ZodObject<{
7208
+ code: zod.ZodString;
7209
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
7210
+ message: zod.ZodString;
7211
+ }, better_auth.$loose>>;
7212
+ }, better_auth.$strip>>;
7213
+ };
7214
+ readonly CONFLICT: {
7215
+ readonly message: "The request conflicts with existing data";
7216
+ };
7217
+ readonly INTERNAL_SERVER_ERROR: {
7218
+ readonly message: "An internal server error occurred";
7219
+ };
7220
+ }>, Record<never, never>>;
7221
+ stream: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
7222
+ session: {
7223
+ id: string;
7224
+ createdAt: Date;
7225
+ updatedAt: Date;
7226
+ userId: string;
7227
+ expiresAt: Date;
7228
+ token: string;
7229
+ ipAddress?: string | null | undefined | undefined;
7230
+ userAgent?: string | null | undefined | undefined;
7231
+ impersonatedBy?: string | null | undefined;
7232
+ };
7233
+ user: {
7234
+ id: string;
7235
+ createdAt: Date;
7236
+ updatedAt: Date;
7237
+ email: string;
7238
+ emailVerified: boolean;
7239
+ name: string;
7240
+ image?: string | null | undefined | undefined;
7241
+ onboardingCompleted: boolean | null | undefined;
7242
+ linkedinVerified: boolean | null | undefined;
7243
+ linkedinVerifiedAt?: Date | null | undefined;
7244
+ linkedinId?: string | null | undefined;
7245
+ linkedinName?: string | null | undefined;
7246
+ banned: boolean | null | undefined;
7247
+ role?: string | null | undefined;
7248
+ banReason?: string | null | undefined;
7249
+ banExpires?: Date | null | undefined;
7250
+ username?: string | null | undefined;
7251
+ displayUsername?: string | null | undefined;
7252
+ };
7253
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<AsyncGenerator<{
7254
+ id: string;
7255
+ createdAt: Date;
7256
+ title: string | null;
7257
+ type: "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread";
7258
+ recipientId: string;
7259
+ sourceType: "post" | "comment" | "community_post" | "note" | "note_comment" | "community_comment";
7260
+ sourceId: string;
7261
+ actorId: string | null;
7262
+ metadata: {
7263
+ postSlug?: string;
7264
+ commentId?: string;
7265
+ communityPostId?: string;
7266
+ } | null;
7267
+ read: boolean;
7268
+ readAt: Date | null;
7269
+ } & {
7270
+ actor?: {
7271
+ id: string;
7272
+ name: string;
7273
+ username: string | null;
7274
+ displayUsername: string | null;
7275
+ image: string | null;
7276
+ } | null;
7277
+ }, void, unknown>, AsyncGenerator<{
7278
+ id: string;
7279
+ createdAt: Date;
7280
+ title: string | null;
7281
+ type: "mention" | "reply" | "new_article" | "article_comment" | "announcement" | "new_thread";
7282
+ recipientId: string;
7283
+ sourceType: "post" | "comment" | "community_post" | "note" | "note_comment" | "community_comment";
7284
+ sourceId: string;
7285
+ actorId: string | null;
7286
+ metadata: {
7287
+ postSlug?: string;
7288
+ commentId?: string;
7289
+ communityPostId?: string;
7290
+ } | null;
7291
+ read: boolean;
7292
+ readAt: Date | null;
7293
+ } & {
7294
+ actor?: {
7295
+ id: string;
7296
+ name: string;
7297
+ username: string | null;
7298
+ displayUsername: string | null;
7299
+ image: string | null;
7300
+ } | null;
7301
+ }, void, unknown>>, _orpc_contract.MergedErrorMap<Record<never, never>, {
7302
+ readonly UNAUTHORIZED: {
7303
+ readonly message: "You must be logged in to access this resource";
7304
+ };
7305
+ readonly FORBIDDEN: {
7306
+ readonly message: "You do not have permission to access this resource";
7307
+ };
7308
+ readonly NOT_FOUND: {
7309
+ readonly message: "The requested resource was not found";
7310
+ };
7311
+ readonly BAD_REQUEST: {
7312
+ readonly message: "Invalid request";
7313
+ readonly data: zod.ZodOptional<zod.ZodObject<{
7314
+ issues: zod.ZodArray<zod.ZodObject<{
7315
+ code: zod.ZodString;
7316
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
7317
+ message: zod.ZodString;
7318
+ }, better_auth.$loose>>;
7319
+ }, better_auth.$strip>>;
7320
+ };
7321
+ readonly CONFLICT: {
7322
+ readonly message: "The request conflicts with existing data";
7323
+ };
7324
+ readonly INTERNAL_SERVER_ERROR: {
7325
+ readonly message: "An internal server error occurred";
7326
+ };
7327
+ }>, Record<never, never>>;
7328
+ pushToken: {
7329
+ register: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
7330
+ session: {
7331
+ id: string;
7332
+ createdAt: Date;
7333
+ updatedAt: Date;
7334
+ userId: string;
7335
+ expiresAt: Date;
7336
+ token: string;
7337
+ ipAddress?: string | null | undefined | undefined;
7338
+ userAgent?: string | null | undefined | undefined;
7339
+ impersonatedBy?: string | null | undefined;
7340
+ };
7341
+ user: {
7342
+ id: string;
7343
+ createdAt: Date;
7344
+ updatedAt: Date;
7345
+ email: string;
7346
+ emailVerified: boolean;
7347
+ name: string;
7348
+ image?: string | null | undefined | undefined;
7349
+ onboardingCompleted: boolean | null | undefined;
7350
+ linkedinVerified: boolean | null | undefined;
7351
+ linkedinVerifiedAt?: Date | null | undefined;
7352
+ linkedinId?: string | null | undefined;
7353
+ linkedinName?: string | null | undefined;
7354
+ banned: boolean | null | undefined;
7355
+ role?: string | null | undefined;
7356
+ banReason?: string | null | undefined;
7357
+ banExpires?: Date | null | undefined;
7358
+ username?: string | null | undefined;
7359
+ displayUsername?: string | null | undefined;
7360
+ };
7361
+ }>, zod.ZodObject<{
7362
+ token: zod.ZodString;
7363
+ platform: zod.ZodEnum<{
7364
+ ios: "ios";
7365
+ android: "android";
7366
+ web: "web";
7367
+ }>;
7368
+ deviceId: zod.ZodOptional<zod.ZodString>;
7369
+ }, better_auth.$strip>, _orpc_contract.Schema<{
7370
+ data: {
7371
+ success: boolean;
7372
+ };
7373
+ }, {
7374
+ data: {
7375
+ success: boolean;
7376
+ };
7377
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
7378
+ readonly UNAUTHORIZED: {
7379
+ readonly message: "You must be logged in to access this resource";
7380
+ };
7381
+ readonly FORBIDDEN: {
7382
+ readonly message: "You do not have permission to access this resource";
7383
+ };
7384
+ readonly NOT_FOUND: {
7385
+ readonly message: "The requested resource was not found";
7386
+ };
7387
+ readonly BAD_REQUEST: {
7388
+ readonly message: "Invalid request";
7389
+ readonly data: zod.ZodOptional<zod.ZodObject<{
7390
+ issues: zod.ZodArray<zod.ZodObject<{
7391
+ code: zod.ZodString;
7392
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
7393
+ message: zod.ZodString;
7394
+ }, better_auth.$loose>>;
7395
+ }, better_auth.$strip>>;
7396
+ };
7397
+ readonly CONFLICT: {
7398
+ readonly message: "The request conflicts with existing data";
7399
+ };
7400
+ readonly INTERNAL_SERVER_ERROR: {
7401
+ readonly message: "An internal server error occurred";
7402
+ };
7403
+ }>, Record<never, never>>;
7404
+ remove: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
7405
+ session: {
7406
+ id: string;
7407
+ createdAt: Date;
7408
+ updatedAt: Date;
7409
+ userId: string;
7410
+ expiresAt: Date;
7411
+ token: string;
7412
+ ipAddress?: string | null | undefined | undefined;
7413
+ userAgent?: string | null | undefined | undefined;
7414
+ impersonatedBy?: string | null | undefined;
7415
+ };
7416
+ user: {
7417
+ id: string;
7418
+ createdAt: Date;
7419
+ updatedAt: Date;
7420
+ email: string;
7421
+ emailVerified: boolean;
7422
+ name: string;
7423
+ image?: string | null | undefined | undefined;
7424
+ onboardingCompleted: boolean | null | undefined;
7425
+ linkedinVerified: boolean | null | undefined;
7426
+ linkedinVerifiedAt?: Date | null | undefined;
7427
+ linkedinId?: string | null | undefined;
7428
+ linkedinName?: string | null | undefined;
7429
+ banned: boolean | null | undefined;
7430
+ role?: string | null | undefined;
7431
+ banReason?: string | null | undefined;
7432
+ banExpires?: Date | null | undefined;
7433
+ username?: string | null | undefined;
7434
+ displayUsername?: string | null | undefined;
7435
+ };
7436
+ }>, zod.ZodObject<{
7437
+ token: zod.ZodString;
7438
+ }, better_auth.$strip>, _orpc_contract.Schema<{
7439
+ data: {
7440
+ success: boolean;
7441
+ };
7442
+ }, {
7443
+ data: {
7444
+ success: boolean;
7445
+ };
7446
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
7447
+ readonly UNAUTHORIZED: {
7448
+ readonly message: "You must be logged in to access this resource";
7449
+ };
7450
+ readonly FORBIDDEN: {
7451
+ readonly message: "You do not have permission to access this resource";
7452
+ };
7453
+ readonly NOT_FOUND: {
7454
+ readonly message: "The requested resource was not found";
7455
+ };
7456
+ readonly BAD_REQUEST: {
7457
+ readonly message: "Invalid request";
7458
+ readonly data: zod.ZodOptional<zod.ZodObject<{
7459
+ issues: zod.ZodArray<zod.ZodObject<{
7460
+ code: zod.ZodString;
7461
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
7462
+ message: zod.ZodString;
7463
+ }, better_auth.$loose>>;
7464
+ }, better_auth.$strip>>;
7465
+ };
7466
+ readonly CONFLICT: {
7467
+ readonly message: "The request conflicts with existing data";
7468
+ };
7469
+ readonly INTERNAL_SERVER_ERROR: {
7470
+ readonly message: "An internal server error occurred";
7471
+ };
7472
+ }>, Record<never, never>>;
6243
7473
  };
6244
7474
  };
6245
7475
  };