@framebreak/types 0.1.20 → 0.1.22
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 +749 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,23 @@ import * as zod from 'zod';
|
|
|
5
5
|
import * as _orpc_contract from '@orpc/contract';
|
|
6
6
|
import { LoggerContext } from '@orpc/experimental-pino';
|
|
7
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Kit (ConvertKit) broadcast utilities for importing articles.
|
|
10
|
+
* Used by both the admin UI and CLI import scripts.
|
|
11
|
+
*/
|
|
12
|
+
interface KitBroadcast {
|
|
13
|
+
id: number;
|
|
14
|
+
subject: string;
|
|
15
|
+
preview_text: string | null;
|
|
16
|
+
content: string | null;
|
|
17
|
+
published_at: string | null;
|
|
18
|
+
thumbnail_url: string | null;
|
|
19
|
+
}
|
|
20
|
+
interface ResolvedLink {
|
|
21
|
+
original: string;
|
|
22
|
+
resolved: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
8
25
|
/**
|
|
9
26
|
* Base context that accepts headers for authentication.
|
|
10
27
|
* This is the foundation for all ORPC procedures.
|
|
@@ -45,17 +62,27 @@ interface CommentAuthor {
|
|
|
45
62
|
image: string | null;
|
|
46
63
|
linkedinVerified?: boolean | null;
|
|
47
64
|
}
|
|
65
|
+
interface CommentLink {
|
|
66
|
+
url: string;
|
|
67
|
+
title: string | null;
|
|
68
|
+
description: string | null;
|
|
69
|
+
image: string | null;
|
|
70
|
+
favicon: string | null;
|
|
71
|
+
siteName: string | null;
|
|
72
|
+
}
|
|
48
73
|
interface Comment {
|
|
49
74
|
id: string;
|
|
50
75
|
postId: string;
|
|
51
76
|
parentId: string | null;
|
|
52
77
|
content: string;
|
|
78
|
+
link: CommentLink | null;
|
|
53
79
|
createdAt: Date;
|
|
54
80
|
updatedAt: Date;
|
|
55
81
|
author: CommentAuthor;
|
|
56
82
|
likesCount: number;
|
|
57
83
|
isLiked: boolean;
|
|
58
84
|
replies?: Comment[];
|
|
85
|
+
totalReplies?: number;
|
|
59
86
|
hidden?: boolean;
|
|
60
87
|
}
|
|
61
88
|
interface CommunityPostLink {
|
|
@@ -88,6 +115,15 @@ interface CommunityComment {
|
|
|
88
115
|
hidden?: boolean;
|
|
89
116
|
}
|
|
90
117
|
|
|
118
|
+
interface OgData {
|
|
119
|
+
url: string;
|
|
120
|
+
title: string | null;
|
|
121
|
+
description: string | null;
|
|
122
|
+
image: string | null;
|
|
123
|
+
favicon: string | null;
|
|
124
|
+
siteName: string | null;
|
|
125
|
+
}
|
|
126
|
+
|
|
91
127
|
/**
|
|
92
128
|
* V1 Router - First version of the API.
|
|
93
129
|
*/
|
|
@@ -125,6 +161,85 @@ declare const v1Router: {
|
|
|
125
161
|
readonly message: "An internal server error occurred";
|
|
126
162
|
};
|
|
127
163
|
}>, Record<never, never>>;
|
|
164
|
+
og: {
|
|
165
|
+
fetch: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
166
|
+
session: {
|
|
167
|
+
id: string;
|
|
168
|
+
createdAt: Date;
|
|
169
|
+
updatedAt: Date;
|
|
170
|
+
userId: string;
|
|
171
|
+
expiresAt: Date;
|
|
172
|
+
token: string;
|
|
173
|
+
ipAddress?: string | null | undefined | undefined;
|
|
174
|
+
userAgent?: string | null | undefined | undefined;
|
|
175
|
+
impersonatedBy?: string | null | undefined;
|
|
176
|
+
};
|
|
177
|
+
user: {
|
|
178
|
+
id: string;
|
|
179
|
+
createdAt: Date;
|
|
180
|
+
updatedAt: Date;
|
|
181
|
+
email: string;
|
|
182
|
+
emailVerified: boolean;
|
|
183
|
+
name: string;
|
|
184
|
+
image?: string | null | undefined | undefined;
|
|
185
|
+
onboardingCompleted: boolean | null | undefined;
|
|
186
|
+
linkedinVerified: boolean | null | undefined;
|
|
187
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
188
|
+
linkedinId?: string | null | undefined;
|
|
189
|
+
linkedinName?: string | null | undefined;
|
|
190
|
+
banned: boolean | null | undefined;
|
|
191
|
+
role?: string | null | undefined;
|
|
192
|
+
banReason?: string | null | undefined;
|
|
193
|
+
banExpires?: Date | null | undefined;
|
|
194
|
+
username?: string | null | undefined;
|
|
195
|
+
displayUsername?: string | null | undefined;
|
|
196
|
+
};
|
|
197
|
+
}>, zod.ZodObject<{
|
|
198
|
+
url: zod.ZodString;
|
|
199
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
200
|
+
success: false;
|
|
201
|
+
error: string;
|
|
202
|
+
data?: undefined;
|
|
203
|
+
} | {
|
|
204
|
+
success: true;
|
|
205
|
+
data: OgData;
|
|
206
|
+
error?: undefined;
|
|
207
|
+
}, {
|
|
208
|
+
success: false;
|
|
209
|
+
error: string;
|
|
210
|
+
data?: undefined;
|
|
211
|
+
} | {
|
|
212
|
+
success: true;
|
|
213
|
+
data: OgData;
|
|
214
|
+
error?: undefined;
|
|
215
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
216
|
+
readonly UNAUTHORIZED: {
|
|
217
|
+
readonly message: "You must be logged in to access this resource";
|
|
218
|
+
};
|
|
219
|
+
readonly FORBIDDEN: {
|
|
220
|
+
readonly message: "You do not have permission to access this resource";
|
|
221
|
+
};
|
|
222
|
+
readonly NOT_FOUND: {
|
|
223
|
+
readonly message: "The requested resource was not found";
|
|
224
|
+
};
|
|
225
|
+
readonly BAD_REQUEST: {
|
|
226
|
+
readonly message: "Invalid request";
|
|
227
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
228
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
229
|
+
code: zod.ZodString;
|
|
230
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
231
|
+
message: zod.ZodString;
|
|
232
|
+
}, better_auth.$loose>>;
|
|
233
|
+
}, better_auth.$strip>>;
|
|
234
|
+
};
|
|
235
|
+
readonly CONFLICT: {
|
|
236
|
+
readonly message: "The request conflicts with existing data";
|
|
237
|
+
};
|
|
238
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
239
|
+
readonly message: "An internal server error occurred";
|
|
240
|
+
};
|
|
241
|
+
}>, Record<never, never>>;
|
|
242
|
+
};
|
|
128
243
|
user: {
|
|
129
244
|
me: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
130
245
|
session: {
|
|
@@ -1387,10 +1502,38 @@ declare const v1Router: {
|
|
|
1387
1502
|
}>, zod.ZodObject<{
|
|
1388
1503
|
postId: zod.ZodString;
|
|
1389
1504
|
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
1390
|
-
data:
|
|
1505
|
+
data: {
|
|
1506
|
+
replies: Comment[];
|
|
1507
|
+
totalReplies: number;
|
|
1508
|
+
id: string;
|
|
1509
|
+
postId: string;
|
|
1510
|
+
parentId: string | null;
|
|
1511
|
+
content: string;
|
|
1512
|
+
link: CommentLink | null;
|
|
1513
|
+
createdAt: Date;
|
|
1514
|
+
updatedAt: Date;
|
|
1515
|
+
author: CommentAuthor;
|
|
1516
|
+
likesCount: number;
|
|
1517
|
+
isLiked: boolean;
|
|
1518
|
+
hidden?: boolean;
|
|
1519
|
+
}[];
|
|
1391
1520
|
count: number;
|
|
1392
1521
|
}, {
|
|
1393
|
-
data:
|
|
1522
|
+
data: {
|
|
1523
|
+
replies: Comment[];
|
|
1524
|
+
totalReplies: number;
|
|
1525
|
+
id: string;
|
|
1526
|
+
postId: string;
|
|
1527
|
+
parentId: string | null;
|
|
1528
|
+
content: string;
|
|
1529
|
+
link: CommentLink | null;
|
|
1530
|
+
createdAt: Date;
|
|
1531
|
+
updatedAt: Date;
|
|
1532
|
+
author: CommentAuthor;
|
|
1533
|
+
likesCount: number;
|
|
1534
|
+
isLiked: boolean;
|
|
1535
|
+
hidden?: boolean;
|
|
1536
|
+
}[];
|
|
1394
1537
|
count: number;
|
|
1395
1538
|
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1396
1539
|
readonly UNAUTHORIZED: {
|
|
@@ -1419,6 +1562,77 @@ declare const v1Router: {
|
|
|
1419
1562
|
readonly message: "An internal server error occurred";
|
|
1420
1563
|
};
|
|
1421
1564
|
}>, Record<never, never>>;
|
|
1565
|
+
listReplies: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1566
|
+
session: {
|
|
1567
|
+
id: string;
|
|
1568
|
+
createdAt: Date;
|
|
1569
|
+
updatedAt: Date;
|
|
1570
|
+
userId: string;
|
|
1571
|
+
expiresAt: Date;
|
|
1572
|
+
token: string;
|
|
1573
|
+
ipAddress?: string | null | undefined | undefined;
|
|
1574
|
+
userAgent?: string | null | undefined | undefined;
|
|
1575
|
+
impersonatedBy?: string | null | undefined;
|
|
1576
|
+
};
|
|
1577
|
+
user: {
|
|
1578
|
+
id: string;
|
|
1579
|
+
createdAt: Date;
|
|
1580
|
+
updatedAt: Date;
|
|
1581
|
+
email: string;
|
|
1582
|
+
emailVerified: boolean;
|
|
1583
|
+
name: string;
|
|
1584
|
+
image?: string | null | undefined | undefined;
|
|
1585
|
+
onboardingCompleted: boolean | null | undefined;
|
|
1586
|
+
linkedinVerified: boolean | null | undefined;
|
|
1587
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
1588
|
+
linkedinId?: string | null | undefined;
|
|
1589
|
+
linkedinName?: string | null | undefined;
|
|
1590
|
+
banned: boolean | null | undefined;
|
|
1591
|
+
role?: string | null | undefined;
|
|
1592
|
+
banReason?: string | null | undefined;
|
|
1593
|
+
banExpires?: Date | null | undefined;
|
|
1594
|
+
username?: string | null | undefined;
|
|
1595
|
+
displayUsername?: string | null | undefined;
|
|
1596
|
+
};
|
|
1597
|
+
}>, zod.ZodObject<{
|
|
1598
|
+
parentCommentId: zod.ZodString;
|
|
1599
|
+
cursor: zod.ZodOptional<zod.ZodString>;
|
|
1600
|
+
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
1601
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
1602
|
+
data: Comment[];
|
|
1603
|
+
nextCursor: string | null;
|
|
1604
|
+
hasMore: boolean;
|
|
1605
|
+
}, {
|
|
1606
|
+
data: Comment[];
|
|
1607
|
+
nextCursor: string | null;
|
|
1608
|
+
hasMore: boolean;
|
|
1609
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1610
|
+
readonly UNAUTHORIZED: {
|
|
1611
|
+
readonly message: "You must be logged in to access this resource";
|
|
1612
|
+
};
|
|
1613
|
+
readonly FORBIDDEN: {
|
|
1614
|
+
readonly message: "You do not have permission to access this resource";
|
|
1615
|
+
};
|
|
1616
|
+
readonly NOT_FOUND: {
|
|
1617
|
+
readonly message: "The requested resource was not found";
|
|
1618
|
+
};
|
|
1619
|
+
readonly BAD_REQUEST: {
|
|
1620
|
+
readonly message: "Invalid request";
|
|
1621
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1622
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1623
|
+
code: zod.ZodString;
|
|
1624
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1625
|
+
message: zod.ZodString;
|
|
1626
|
+
}, better_auth.$loose>>;
|
|
1627
|
+
}, better_auth.$strip>>;
|
|
1628
|
+
};
|
|
1629
|
+
readonly CONFLICT: {
|
|
1630
|
+
readonly message: "The request conflicts with existing data";
|
|
1631
|
+
};
|
|
1632
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1633
|
+
readonly message: "An internal server error occurred";
|
|
1634
|
+
};
|
|
1635
|
+
}>, Record<never, never>>;
|
|
1422
1636
|
create: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1423
1637
|
session: {
|
|
1424
1638
|
id: string;
|
|
@@ -1455,6 +1669,7 @@ declare const v1Router: {
|
|
|
1455
1669
|
postId: zod.ZodString;
|
|
1456
1670
|
parentCommentId: zod.ZodOptional<zod.ZodString>;
|
|
1457
1671
|
content: zod.ZodString;
|
|
1672
|
+
linkUrl: zod.ZodOptional<zod.ZodString>;
|
|
1458
1673
|
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
1459
1674
|
data: Comment;
|
|
1460
1675
|
}, {
|
|
@@ -2555,6 +2770,75 @@ declare const v1Router: {
|
|
|
2555
2770
|
* Requires insider role (community:view permission).
|
|
2556
2771
|
*/
|
|
2557
2772
|
community: {
|
|
2773
|
+
stats: {
|
|
2774
|
+
memberCount: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
2775
|
+
session: {
|
|
2776
|
+
id: string;
|
|
2777
|
+
createdAt: Date;
|
|
2778
|
+
updatedAt: Date;
|
|
2779
|
+
userId: string;
|
|
2780
|
+
expiresAt: Date;
|
|
2781
|
+
token: string;
|
|
2782
|
+
ipAddress?: string | null | undefined | undefined;
|
|
2783
|
+
userAgent?: string | null | undefined | undefined;
|
|
2784
|
+
impersonatedBy?: string | null | undefined;
|
|
2785
|
+
};
|
|
2786
|
+
user: {
|
|
2787
|
+
id: string;
|
|
2788
|
+
createdAt: Date;
|
|
2789
|
+
updatedAt: Date;
|
|
2790
|
+
email: string;
|
|
2791
|
+
emailVerified: boolean;
|
|
2792
|
+
name: string;
|
|
2793
|
+
image?: string | null | undefined | undefined;
|
|
2794
|
+
onboardingCompleted: boolean | null | undefined;
|
|
2795
|
+
linkedinVerified: boolean | null | undefined;
|
|
2796
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
2797
|
+
linkedinId?: string | null | undefined;
|
|
2798
|
+
linkedinName?: string | null | undefined;
|
|
2799
|
+
banned: boolean | null | undefined;
|
|
2800
|
+
role?: string | null | undefined;
|
|
2801
|
+
banReason?: string | null | undefined;
|
|
2802
|
+
banExpires?: Date | null | undefined;
|
|
2803
|
+
username?: string | null | undefined;
|
|
2804
|
+
displayUsername?: string | null | undefined;
|
|
2805
|
+
};
|
|
2806
|
+
}>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
|
|
2807
|
+
data: {
|
|
2808
|
+
memberCount: number;
|
|
2809
|
+
};
|
|
2810
|
+
}, {
|
|
2811
|
+
data: {
|
|
2812
|
+
memberCount: number;
|
|
2813
|
+
};
|
|
2814
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
2815
|
+
readonly UNAUTHORIZED: {
|
|
2816
|
+
readonly message: "You must be logged in to access this resource";
|
|
2817
|
+
};
|
|
2818
|
+
readonly FORBIDDEN: {
|
|
2819
|
+
readonly message: "You do not have permission to access this resource";
|
|
2820
|
+
};
|
|
2821
|
+
readonly NOT_FOUND: {
|
|
2822
|
+
readonly message: "The requested resource was not found";
|
|
2823
|
+
};
|
|
2824
|
+
readonly BAD_REQUEST: {
|
|
2825
|
+
readonly message: "Invalid request";
|
|
2826
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
2827
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
2828
|
+
code: zod.ZodString;
|
|
2829
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
2830
|
+
message: zod.ZodString;
|
|
2831
|
+
}, better_auth.$loose>>;
|
|
2832
|
+
}, better_auth.$strip>>;
|
|
2833
|
+
};
|
|
2834
|
+
readonly CONFLICT: {
|
|
2835
|
+
readonly message: "The request conflicts with existing data";
|
|
2836
|
+
};
|
|
2837
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
2838
|
+
readonly message: "An internal server error occurred";
|
|
2839
|
+
};
|
|
2840
|
+
}>, Record<never, never>>;
|
|
2841
|
+
};
|
|
2558
2842
|
posts: {
|
|
2559
2843
|
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
2560
2844
|
session: {
|
|
@@ -5494,6 +5778,469 @@ declare const v1Router: {
|
|
|
5494
5778
|
};
|
|
5495
5779
|
}>, Record<never, never>>;
|
|
5496
5780
|
};
|
|
5781
|
+
broadcasts: {
|
|
5782
|
+
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
5783
|
+
session: {
|
|
5784
|
+
id: string;
|
|
5785
|
+
createdAt: Date;
|
|
5786
|
+
updatedAt: Date;
|
|
5787
|
+
userId: string;
|
|
5788
|
+
expiresAt: Date;
|
|
5789
|
+
token: string;
|
|
5790
|
+
ipAddress?: string | null | undefined | undefined;
|
|
5791
|
+
userAgent?: string | null | undefined | undefined;
|
|
5792
|
+
impersonatedBy?: string | null | undefined;
|
|
5793
|
+
};
|
|
5794
|
+
user: {
|
|
5795
|
+
id: string;
|
|
5796
|
+
createdAt: Date;
|
|
5797
|
+
updatedAt: Date;
|
|
5798
|
+
email: string;
|
|
5799
|
+
emailVerified: boolean;
|
|
5800
|
+
name: string;
|
|
5801
|
+
image?: string | null | undefined | undefined;
|
|
5802
|
+
onboardingCompleted: boolean | null | undefined;
|
|
5803
|
+
linkedinVerified: boolean | null | undefined;
|
|
5804
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
5805
|
+
linkedinId?: string | null | undefined;
|
|
5806
|
+
linkedinName?: string | null | undefined;
|
|
5807
|
+
banned: boolean | null | undefined;
|
|
5808
|
+
role?: string | null | undefined;
|
|
5809
|
+
banReason?: string | null | undefined;
|
|
5810
|
+
banExpires?: Date | null | undefined;
|
|
5811
|
+
username?: string | null | undefined;
|
|
5812
|
+
displayUsername?: string | null | undefined;
|
|
5813
|
+
};
|
|
5814
|
+
}>, zod.ZodObject<{
|
|
5815
|
+
search: zod.ZodOptional<zod.ZodString>;
|
|
5816
|
+
page: zod.ZodDefault<zod.ZodNumber>;
|
|
5817
|
+
pageSize: zod.ZodDefault<zod.ZodNumber>;
|
|
5818
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
5819
|
+
data: {
|
|
5820
|
+
id: number;
|
|
5821
|
+
subject: string;
|
|
5822
|
+
previewText: string | null;
|
|
5823
|
+
publishedAt: string | null;
|
|
5824
|
+
thumbnailUrl: string | null;
|
|
5825
|
+
status: "exists" | "new";
|
|
5826
|
+
matchType: "exact" | "normalized" | "thumbnail" | null;
|
|
5827
|
+
existingPostId: string | null;
|
|
5828
|
+
existingPostSlug: string | null;
|
|
5829
|
+
existingPostTitle: string | null;
|
|
5830
|
+
}[];
|
|
5831
|
+
pagination: {
|
|
5832
|
+
page: number;
|
|
5833
|
+
pageSize: number;
|
|
5834
|
+
total: number;
|
|
5835
|
+
totalPages: number;
|
|
5836
|
+
};
|
|
5837
|
+
}, {
|
|
5838
|
+
data: {
|
|
5839
|
+
id: number;
|
|
5840
|
+
subject: string;
|
|
5841
|
+
previewText: string | null;
|
|
5842
|
+
publishedAt: string | null;
|
|
5843
|
+
thumbnailUrl: string | null;
|
|
5844
|
+
status: "exists" | "new";
|
|
5845
|
+
matchType: "exact" | "normalized" | "thumbnail" | null;
|
|
5846
|
+
existingPostId: string | null;
|
|
5847
|
+
existingPostSlug: string | null;
|
|
5848
|
+
existingPostTitle: string | null;
|
|
5849
|
+
}[];
|
|
5850
|
+
pagination: {
|
|
5851
|
+
page: number;
|
|
5852
|
+
pageSize: number;
|
|
5853
|
+
total: number;
|
|
5854
|
+
totalPages: number;
|
|
5855
|
+
};
|
|
5856
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
5857
|
+
readonly UNAUTHORIZED: {
|
|
5858
|
+
readonly message: "You must be logged in to access this resource";
|
|
5859
|
+
};
|
|
5860
|
+
readonly FORBIDDEN: {
|
|
5861
|
+
readonly message: "You do not have permission to access this resource";
|
|
5862
|
+
};
|
|
5863
|
+
readonly NOT_FOUND: {
|
|
5864
|
+
readonly message: "The requested resource was not found";
|
|
5865
|
+
};
|
|
5866
|
+
readonly BAD_REQUEST: {
|
|
5867
|
+
readonly message: "Invalid request";
|
|
5868
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
5869
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
5870
|
+
code: zod.ZodString;
|
|
5871
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
5872
|
+
message: zod.ZodString;
|
|
5873
|
+
}, better_auth.$loose>>;
|
|
5874
|
+
}, better_auth.$strip>>;
|
|
5875
|
+
};
|
|
5876
|
+
readonly CONFLICT: {
|
|
5877
|
+
readonly message: "The request conflicts with existing data";
|
|
5878
|
+
};
|
|
5879
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
5880
|
+
readonly message: "An internal server error occurred";
|
|
5881
|
+
};
|
|
5882
|
+
}>, Record<never, never>>;
|
|
5883
|
+
preview: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
5884
|
+
session: {
|
|
5885
|
+
id: string;
|
|
5886
|
+
createdAt: Date;
|
|
5887
|
+
updatedAt: Date;
|
|
5888
|
+
userId: string;
|
|
5889
|
+
expiresAt: Date;
|
|
5890
|
+
token: string;
|
|
5891
|
+
ipAddress?: string | null | undefined | undefined;
|
|
5892
|
+
userAgent?: string | null | undefined | undefined;
|
|
5893
|
+
impersonatedBy?: string | null | undefined;
|
|
5894
|
+
};
|
|
5895
|
+
user: {
|
|
5896
|
+
id: string;
|
|
5897
|
+
createdAt: Date;
|
|
5898
|
+
updatedAt: Date;
|
|
5899
|
+
email: string;
|
|
5900
|
+
emailVerified: boolean;
|
|
5901
|
+
name: string;
|
|
5902
|
+
image?: string | null | undefined | undefined;
|
|
5903
|
+
onboardingCompleted: boolean | null | undefined;
|
|
5904
|
+
linkedinVerified: boolean | null | undefined;
|
|
5905
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
5906
|
+
linkedinId?: string | null | undefined;
|
|
5907
|
+
linkedinName?: string | null | undefined;
|
|
5908
|
+
banned: boolean | null | undefined;
|
|
5909
|
+
role?: string | null | undefined;
|
|
5910
|
+
banReason?: string | null | undefined;
|
|
5911
|
+
banExpires?: Date | null | undefined;
|
|
5912
|
+
username?: string | null | undefined;
|
|
5913
|
+
displayUsername?: string | null | undefined;
|
|
5914
|
+
};
|
|
5915
|
+
}>, zod.ZodObject<{
|
|
5916
|
+
broadcastId: zod.ZodNumber;
|
|
5917
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
5918
|
+
data: {
|
|
5919
|
+
existingPost: {
|
|
5920
|
+
id: string;
|
|
5921
|
+
title: string | null;
|
|
5922
|
+
slug: string | null;
|
|
5923
|
+
articleContent: string | null;
|
|
5924
|
+
thumbnailUrl: string | null;
|
|
5925
|
+
updatedAt: Date;
|
|
5926
|
+
} | null;
|
|
5927
|
+
matchType: "exact" | "normalized" | "thumbnail" | null;
|
|
5928
|
+
broadcast: KitBroadcast;
|
|
5929
|
+
slug: string;
|
|
5930
|
+
imageUrl: string | null;
|
|
5931
|
+
articleContent: string | null;
|
|
5932
|
+
excerpt: string | null;
|
|
5933
|
+
wordCount: number;
|
|
5934
|
+
readingTime: number;
|
|
5935
|
+
publishedAt: string;
|
|
5936
|
+
linkResolution: {
|
|
5937
|
+
resolved: number;
|
|
5938
|
+
links: ResolvedLink[];
|
|
5939
|
+
};
|
|
5940
|
+
};
|
|
5941
|
+
}, {
|
|
5942
|
+
data: {
|
|
5943
|
+
existingPost: {
|
|
5944
|
+
id: string;
|
|
5945
|
+
title: string | null;
|
|
5946
|
+
slug: string | null;
|
|
5947
|
+
articleContent: string | null;
|
|
5948
|
+
thumbnailUrl: string | null;
|
|
5949
|
+
updatedAt: Date;
|
|
5950
|
+
} | null;
|
|
5951
|
+
matchType: "exact" | "normalized" | "thumbnail" | null;
|
|
5952
|
+
broadcast: KitBroadcast;
|
|
5953
|
+
slug: string;
|
|
5954
|
+
imageUrl: string | null;
|
|
5955
|
+
articleContent: string | null;
|
|
5956
|
+
excerpt: string | null;
|
|
5957
|
+
wordCount: number;
|
|
5958
|
+
readingTime: number;
|
|
5959
|
+
publishedAt: string;
|
|
5960
|
+
linkResolution: {
|
|
5961
|
+
resolved: number;
|
|
5962
|
+
links: ResolvedLink[];
|
|
5963
|
+
};
|
|
5964
|
+
};
|
|
5965
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
5966
|
+
readonly UNAUTHORIZED: {
|
|
5967
|
+
readonly message: "You must be logged in to access this resource";
|
|
5968
|
+
};
|
|
5969
|
+
readonly FORBIDDEN: {
|
|
5970
|
+
readonly message: "You do not have permission to access this resource";
|
|
5971
|
+
};
|
|
5972
|
+
readonly NOT_FOUND: {
|
|
5973
|
+
readonly message: "The requested resource was not found";
|
|
5974
|
+
};
|
|
5975
|
+
readonly BAD_REQUEST: {
|
|
5976
|
+
readonly message: "Invalid request";
|
|
5977
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
5978
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
5979
|
+
code: zod.ZodString;
|
|
5980
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
5981
|
+
message: zod.ZodString;
|
|
5982
|
+
}, better_auth.$loose>>;
|
|
5983
|
+
}, better_auth.$strip>>;
|
|
5984
|
+
};
|
|
5985
|
+
readonly CONFLICT: {
|
|
5986
|
+
readonly message: "The request conflicts with existing data";
|
|
5987
|
+
};
|
|
5988
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
5989
|
+
readonly message: "An internal server error occurred";
|
|
5990
|
+
};
|
|
5991
|
+
}>, Record<never, never>>;
|
|
5992
|
+
import: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
5993
|
+
session: {
|
|
5994
|
+
id: string;
|
|
5995
|
+
createdAt: Date;
|
|
5996
|
+
updatedAt: Date;
|
|
5997
|
+
userId: string;
|
|
5998
|
+
expiresAt: Date;
|
|
5999
|
+
token: string;
|
|
6000
|
+
ipAddress?: string | null | undefined | undefined;
|
|
6001
|
+
userAgent?: string | null | undefined | undefined;
|
|
6002
|
+
impersonatedBy?: string | null | undefined;
|
|
6003
|
+
};
|
|
6004
|
+
user: {
|
|
6005
|
+
id: string;
|
|
6006
|
+
createdAt: Date;
|
|
6007
|
+
updatedAt: Date;
|
|
6008
|
+
email: string;
|
|
6009
|
+
emailVerified: boolean;
|
|
6010
|
+
name: string;
|
|
6011
|
+
image?: string | null | undefined | undefined;
|
|
6012
|
+
onboardingCompleted: boolean | null | undefined;
|
|
6013
|
+
linkedinVerified: boolean | null | undefined;
|
|
6014
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
6015
|
+
linkedinId?: string | null | undefined;
|
|
6016
|
+
linkedinName?: string | null | undefined;
|
|
6017
|
+
banned: boolean | null | undefined;
|
|
6018
|
+
role?: string | null | undefined;
|
|
6019
|
+
banReason?: string | null | undefined;
|
|
6020
|
+
banExpires?: Date | null | undefined;
|
|
6021
|
+
username?: string | null | undefined;
|
|
6022
|
+
displayUsername?: string | null | undefined;
|
|
6023
|
+
};
|
|
6024
|
+
}>, zod.ZodObject<{
|
|
6025
|
+
broadcastId: zod.ZodNumber;
|
|
6026
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
6027
|
+
data: {
|
|
6028
|
+
success: boolean;
|
|
6029
|
+
postId: string;
|
|
6030
|
+
slug: string | null;
|
|
6031
|
+
linksResolved: number;
|
|
6032
|
+
};
|
|
6033
|
+
}, {
|
|
6034
|
+
data: {
|
|
6035
|
+
success: boolean;
|
|
6036
|
+
postId: string;
|
|
6037
|
+
slug: string | null;
|
|
6038
|
+
linksResolved: number;
|
|
6039
|
+
};
|
|
6040
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6041
|
+
readonly UNAUTHORIZED: {
|
|
6042
|
+
readonly message: "You must be logged in to access this resource";
|
|
6043
|
+
};
|
|
6044
|
+
readonly FORBIDDEN: {
|
|
6045
|
+
readonly message: "You do not have permission to access this resource";
|
|
6046
|
+
};
|
|
6047
|
+
readonly NOT_FOUND: {
|
|
6048
|
+
readonly message: "The requested resource was not found";
|
|
6049
|
+
};
|
|
6050
|
+
readonly BAD_REQUEST: {
|
|
6051
|
+
readonly message: "Invalid request";
|
|
6052
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
6053
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
6054
|
+
code: zod.ZodString;
|
|
6055
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
6056
|
+
message: zod.ZodString;
|
|
6057
|
+
}, better_auth.$loose>>;
|
|
6058
|
+
}, better_auth.$strip>>;
|
|
6059
|
+
};
|
|
6060
|
+
readonly CONFLICT: {
|
|
6061
|
+
readonly message: "The request conflicts with existing data";
|
|
6062
|
+
};
|
|
6063
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
6064
|
+
readonly message: "An internal server error occurred";
|
|
6065
|
+
};
|
|
6066
|
+
}>, Record<never, never>>;
|
|
6067
|
+
update: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
6068
|
+
session: {
|
|
6069
|
+
id: string;
|
|
6070
|
+
createdAt: Date;
|
|
6071
|
+
updatedAt: Date;
|
|
6072
|
+
userId: string;
|
|
6073
|
+
expiresAt: Date;
|
|
6074
|
+
token: string;
|
|
6075
|
+
ipAddress?: string | null | undefined | undefined;
|
|
6076
|
+
userAgent?: string | null | undefined | undefined;
|
|
6077
|
+
impersonatedBy?: string | null | undefined;
|
|
6078
|
+
};
|
|
6079
|
+
user: {
|
|
6080
|
+
id: string;
|
|
6081
|
+
createdAt: Date;
|
|
6082
|
+
updatedAt: Date;
|
|
6083
|
+
email: string;
|
|
6084
|
+
emailVerified: boolean;
|
|
6085
|
+
name: string;
|
|
6086
|
+
image?: string | null | undefined | undefined;
|
|
6087
|
+
onboardingCompleted: boolean | null | undefined;
|
|
6088
|
+
linkedinVerified: boolean | null | undefined;
|
|
6089
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
6090
|
+
linkedinId?: string | null | undefined;
|
|
6091
|
+
linkedinName?: string | null | undefined;
|
|
6092
|
+
banned: boolean | null | undefined;
|
|
6093
|
+
role?: string | null | undefined;
|
|
6094
|
+
banReason?: string | null | undefined;
|
|
6095
|
+
banExpires?: Date | null | undefined;
|
|
6096
|
+
username?: string | null | undefined;
|
|
6097
|
+
displayUsername?: string | null | undefined;
|
|
6098
|
+
};
|
|
6099
|
+
}>, zod.ZodObject<{
|
|
6100
|
+
broadcastId: zod.ZodNumber;
|
|
6101
|
+
postId: zod.ZodString;
|
|
6102
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
6103
|
+
data: {
|
|
6104
|
+
success: boolean;
|
|
6105
|
+
postId: string;
|
|
6106
|
+
linksResolved: number;
|
|
6107
|
+
};
|
|
6108
|
+
}, {
|
|
6109
|
+
data: {
|
|
6110
|
+
success: boolean;
|
|
6111
|
+
postId: string;
|
|
6112
|
+
linksResolved: number;
|
|
6113
|
+
};
|
|
6114
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6115
|
+
readonly UNAUTHORIZED: {
|
|
6116
|
+
readonly message: "You must be logged in to access this resource";
|
|
6117
|
+
};
|
|
6118
|
+
readonly FORBIDDEN: {
|
|
6119
|
+
readonly message: "You do not have permission to access this resource";
|
|
6120
|
+
};
|
|
6121
|
+
readonly NOT_FOUND: {
|
|
6122
|
+
readonly message: "The requested resource was not found";
|
|
6123
|
+
};
|
|
6124
|
+
readonly BAD_REQUEST: {
|
|
6125
|
+
readonly message: "Invalid request";
|
|
6126
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
6127
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
6128
|
+
code: zod.ZodString;
|
|
6129
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
6130
|
+
message: zod.ZodString;
|
|
6131
|
+
}, better_auth.$loose>>;
|
|
6132
|
+
}, better_auth.$strip>>;
|
|
6133
|
+
};
|
|
6134
|
+
readonly CONFLICT: {
|
|
6135
|
+
readonly message: "The request conflicts with existing data";
|
|
6136
|
+
};
|
|
6137
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
6138
|
+
readonly message: "An internal server error occurred";
|
|
6139
|
+
};
|
|
6140
|
+
}>, Record<never, never>>;
|
|
6141
|
+
};
|
|
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: {
|
|
6153
|
+
id: string;
|
|
6154
|
+
title: string | null;
|
|
6155
|
+
subheading: string | null;
|
|
6156
|
+
content: string;
|
|
6157
|
+
articleContent: string | null;
|
|
6158
|
+
};
|
|
6159
|
+
}, {
|
|
6160
|
+
data: {
|
|
6161
|
+
id: string;
|
|
6162
|
+
title: string | null;
|
|
6163
|
+
subheading: string | null;
|
|
6164
|
+
content: string;
|
|
6165
|
+
articleContent: string | null;
|
|
6166
|
+
};
|
|
6167
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6168
|
+
readonly UNAUTHORIZED: {
|
|
6169
|
+
readonly message: "You must be logged in to access this resource";
|
|
6170
|
+
};
|
|
6171
|
+
readonly FORBIDDEN: {
|
|
6172
|
+
readonly message: "You do not have permission to access this resource";
|
|
6173
|
+
};
|
|
6174
|
+
readonly NOT_FOUND: {
|
|
6175
|
+
readonly message: "The requested resource was not found";
|
|
6176
|
+
};
|
|
6177
|
+
readonly BAD_REQUEST: {
|
|
6178
|
+
readonly message: "Invalid request";
|
|
6179
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
6180
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
6181
|
+
code: zod.ZodString;
|
|
6182
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
6183
|
+
message: zod.ZodString;
|
|
6184
|
+
}, better_auth.$loose>>;
|
|
6185
|
+
}, better_auth.$strip>>;
|
|
6186
|
+
};
|
|
6187
|
+
readonly CONFLICT: {
|
|
6188
|
+
readonly message: "The request conflicts with existing data";
|
|
6189
|
+
};
|
|
6190
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
6191
|
+
readonly message: "An internal server error occurred";
|
|
6192
|
+
};
|
|
6193
|
+
}>, 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: {
|
|
6202
|
+
id: string;
|
|
6203
|
+
title: string | null;
|
|
6204
|
+
subheading: string | null;
|
|
6205
|
+
content: string;
|
|
6206
|
+
articleContent: string | null;
|
|
6207
|
+
};
|
|
6208
|
+
}, {
|
|
6209
|
+
data: {
|
|
6210
|
+
id: string;
|
|
6211
|
+
title: string | null;
|
|
6212
|
+
subheading: string | null;
|
|
6213
|
+
content: string;
|
|
6214
|
+
articleContent: string | null;
|
|
6215
|
+
};
|
|
6216
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
6217
|
+
readonly UNAUTHORIZED: {
|
|
6218
|
+
readonly message: "You must be logged in to access this resource";
|
|
6219
|
+
};
|
|
6220
|
+
readonly FORBIDDEN: {
|
|
6221
|
+
readonly message: "You do not have permission to access this resource";
|
|
6222
|
+
};
|
|
6223
|
+
readonly NOT_FOUND: {
|
|
6224
|
+
readonly message: "The requested resource was not found";
|
|
6225
|
+
};
|
|
6226
|
+
readonly BAD_REQUEST: {
|
|
6227
|
+
readonly message: "Invalid request";
|
|
6228
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
6229
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
6230
|
+
code: zod.ZodString;
|
|
6231
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
6232
|
+
message: zod.ZodString;
|
|
6233
|
+
}, better_auth.$loose>>;
|
|
6234
|
+
}, better_auth.$strip>>;
|
|
6235
|
+
};
|
|
6236
|
+
readonly CONFLICT: {
|
|
6237
|
+
readonly message: "The request conflicts with existing data";
|
|
6238
|
+
};
|
|
6239
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
6240
|
+
readonly message: "An internal server error occurred";
|
|
6241
|
+
};
|
|
6242
|
+
}>, Record<never, never>>;
|
|
6243
|
+
};
|
|
5497
6244
|
};
|
|
5498
6245
|
};
|
|
5499
6246
|
type V1Router = typeof v1Router;
|