@framebreak/types 0.1.38 → 0.1.40
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 +177 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -312,6 +312,7 @@ interface CommunityFeedPayload {
|
|
|
312
312
|
authorName: string;
|
|
313
313
|
authorImage: string | null;
|
|
314
314
|
preview: string;
|
|
315
|
+
channelMinRole?: string;
|
|
315
316
|
createdAt: string;
|
|
316
317
|
};
|
|
317
318
|
}
|
|
@@ -1716,6 +1717,81 @@ declare const v1Router: {
|
|
|
1716
1717
|
};
|
|
1717
1718
|
}>, Record<never, never>>;
|
|
1718
1719
|
};
|
|
1720
|
+
betaSignup: {
|
|
1721
|
+
android: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
1722
|
+
session: {
|
|
1723
|
+
id: string;
|
|
1724
|
+
createdAt: Date;
|
|
1725
|
+
updatedAt: Date;
|
|
1726
|
+
userId: string;
|
|
1727
|
+
expiresAt: Date;
|
|
1728
|
+
token: string;
|
|
1729
|
+
ipAddress?: string | null | undefined | undefined;
|
|
1730
|
+
userAgent?: string | null | undefined | undefined;
|
|
1731
|
+
impersonatedBy?: string | null | undefined;
|
|
1732
|
+
};
|
|
1733
|
+
user: {
|
|
1734
|
+
id: string;
|
|
1735
|
+
createdAt: Date;
|
|
1736
|
+
updatedAt: Date;
|
|
1737
|
+
email: string;
|
|
1738
|
+
emailVerified: boolean;
|
|
1739
|
+
name: string;
|
|
1740
|
+
image?: string | null | undefined | undefined;
|
|
1741
|
+
onboardingCompleted: boolean | null | undefined;
|
|
1742
|
+
linkedinVerified: boolean | null | undefined;
|
|
1743
|
+
headline?: string | null | undefined;
|
|
1744
|
+
linkUrl?: string | null | undefined;
|
|
1745
|
+
linkText?: string | null | undefined;
|
|
1746
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
1747
|
+
linkedinId?: string | null | undefined;
|
|
1748
|
+
linkedinName?: string | null | undefined;
|
|
1749
|
+
linkedinUrl?: string | null | undefined;
|
|
1750
|
+
banned: boolean | null | undefined;
|
|
1751
|
+
role?: string | null | undefined;
|
|
1752
|
+
banReason?: string | null | undefined;
|
|
1753
|
+
banExpires?: Date | null | undefined;
|
|
1754
|
+
username?: string | null | undefined;
|
|
1755
|
+
displayUsername?: string | null | undefined;
|
|
1756
|
+
};
|
|
1757
|
+
}>, zod.ZodObject<{
|
|
1758
|
+
email: zod.ZodString;
|
|
1759
|
+
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
1760
|
+
data: {
|
|
1761
|
+
success: boolean;
|
|
1762
|
+
};
|
|
1763
|
+
}, {
|
|
1764
|
+
data: {
|
|
1765
|
+
success: boolean;
|
|
1766
|
+
};
|
|
1767
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
1768
|
+
readonly UNAUTHORIZED: {
|
|
1769
|
+
readonly message: "You must be logged in to access this resource";
|
|
1770
|
+
};
|
|
1771
|
+
readonly FORBIDDEN: {
|
|
1772
|
+
readonly message: "You do not have permission to access this resource";
|
|
1773
|
+
};
|
|
1774
|
+
readonly NOT_FOUND: {
|
|
1775
|
+
readonly message: "The requested resource was not found";
|
|
1776
|
+
};
|
|
1777
|
+
readonly BAD_REQUEST: {
|
|
1778
|
+
readonly message: "Invalid request";
|
|
1779
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
1780
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
1781
|
+
code: zod.ZodString;
|
|
1782
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
1783
|
+
message: zod.ZodString;
|
|
1784
|
+
}, better_auth.$loose>>;
|
|
1785
|
+
}, better_auth.$strip>>;
|
|
1786
|
+
};
|
|
1787
|
+
readonly CONFLICT: {
|
|
1788
|
+
readonly message: "The request conflicts with existing data";
|
|
1789
|
+
};
|
|
1790
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
1791
|
+
readonly message: "An internal server error occurred";
|
|
1792
|
+
};
|
|
1793
|
+
}>, Record<never, never>>;
|
|
1794
|
+
};
|
|
1719
1795
|
posts: {
|
|
1720
1796
|
list: _orpc_server.DecoratedProcedure<BaseContext & Record<never, never>, BaseContext, zod.ZodObject<{
|
|
1721
1797
|
cursor: zod.ZodOptional<zod.ZodString>;
|
|
@@ -3347,9 +3423,93 @@ declare const v1Router: {
|
|
|
3347
3423
|
};
|
|
3348
3424
|
/**
|
|
3349
3425
|
* Community endpoints - user-generated content.
|
|
3350
|
-
* Requires
|
|
3426
|
+
* Requires member role or above (community:view permission).
|
|
3427
|
+
* Channel-level access is enforced at the handler level via role levels.
|
|
3351
3428
|
*/
|
|
3352
3429
|
community: {
|
|
3430
|
+
channels: {
|
|
3431
|
+
list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
3432
|
+
session: {
|
|
3433
|
+
id: string;
|
|
3434
|
+
createdAt: Date;
|
|
3435
|
+
updatedAt: Date;
|
|
3436
|
+
userId: string;
|
|
3437
|
+
expiresAt: Date;
|
|
3438
|
+
token: string;
|
|
3439
|
+
ipAddress?: string | null | undefined | undefined;
|
|
3440
|
+
userAgent?: string | null | undefined | undefined;
|
|
3441
|
+
impersonatedBy?: string | null | undefined;
|
|
3442
|
+
};
|
|
3443
|
+
user: {
|
|
3444
|
+
id: string;
|
|
3445
|
+
createdAt: Date;
|
|
3446
|
+
updatedAt: Date;
|
|
3447
|
+
email: string;
|
|
3448
|
+
emailVerified: boolean;
|
|
3449
|
+
name: string;
|
|
3450
|
+
image?: string | null | undefined | undefined;
|
|
3451
|
+
onboardingCompleted: boolean | null | undefined;
|
|
3452
|
+
linkedinVerified: boolean | null | undefined;
|
|
3453
|
+
headline?: string | null | undefined;
|
|
3454
|
+
linkUrl?: string | null | undefined;
|
|
3455
|
+
linkText?: string | null | undefined;
|
|
3456
|
+
linkedinVerifiedAt?: Date | null | undefined;
|
|
3457
|
+
linkedinId?: string | null | undefined;
|
|
3458
|
+
linkedinName?: string | null | undefined;
|
|
3459
|
+
linkedinUrl?: string | null | undefined;
|
|
3460
|
+
banned: boolean | null | undefined;
|
|
3461
|
+
role?: string | null | undefined;
|
|
3462
|
+
banReason?: string | null | undefined;
|
|
3463
|
+
banExpires?: Date | null | undefined;
|
|
3464
|
+
username?: string | null | undefined;
|
|
3465
|
+
displayUsername?: string | null | undefined;
|
|
3466
|
+
};
|
|
3467
|
+
}>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
|
|
3468
|
+
data: {
|
|
3469
|
+
id: string;
|
|
3470
|
+
name: string;
|
|
3471
|
+
slug: string;
|
|
3472
|
+
description: string | null;
|
|
3473
|
+
minRole: string;
|
|
3474
|
+
sortOrder: number;
|
|
3475
|
+
}[];
|
|
3476
|
+
}, {
|
|
3477
|
+
data: {
|
|
3478
|
+
id: string;
|
|
3479
|
+
name: string;
|
|
3480
|
+
slug: string;
|
|
3481
|
+
description: string | null;
|
|
3482
|
+
minRole: string;
|
|
3483
|
+
sortOrder: number;
|
|
3484
|
+
}[];
|
|
3485
|
+
}>, _orpc_contract.MergedErrorMap<Record<never, never>, {
|
|
3486
|
+
readonly UNAUTHORIZED: {
|
|
3487
|
+
readonly message: "You must be logged in to access this resource";
|
|
3488
|
+
};
|
|
3489
|
+
readonly FORBIDDEN: {
|
|
3490
|
+
readonly message: "You do not have permission to access this resource";
|
|
3491
|
+
};
|
|
3492
|
+
readonly NOT_FOUND: {
|
|
3493
|
+
readonly message: "The requested resource was not found";
|
|
3494
|
+
};
|
|
3495
|
+
readonly BAD_REQUEST: {
|
|
3496
|
+
readonly message: "Invalid request";
|
|
3497
|
+
readonly data: zod.ZodOptional<zod.ZodObject<{
|
|
3498
|
+
issues: zod.ZodArray<zod.ZodObject<{
|
|
3499
|
+
code: zod.ZodString;
|
|
3500
|
+
path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
|
|
3501
|
+
message: zod.ZodString;
|
|
3502
|
+
}, better_auth.$loose>>;
|
|
3503
|
+
}, better_auth.$strip>>;
|
|
3504
|
+
};
|
|
3505
|
+
readonly CONFLICT: {
|
|
3506
|
+
readonly message: "The request conflicts with existing data";
|
|
3507
|
+
};
|
|
3508
|
+
readonly INTERNAL_SERVER_ERROR: {
|
|
3509
|
+
readonly message: "An internal server error occurred";
|
|
3510
|
+
};
|
|
3511
|
+
}>, Record<never, never>>;
|
|
3512
|
+
};
|
|
3353
3513
|
stats: {
|
|
3354
3514
|
memberCount: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
|
|
3355
3515
|
session: {
|
|
@@ -3387,7 +3547,9 @@ declare const v1Router: {
|
|
|
3387
3547
|
username?: string | null | undefined;
|
|
3388
3548
|
displayUsername?: string | null | undefined;
|
|
3389
3549
|
};
|
|
3390
|
-
}>,
|
|
3550
|
+
}>, zod.ZodOptional<zod.ZodObject<{
|
|
3551
|
+
channelSlug: zod.ZodOptional<zod.ZodString>;
|
|
3552
|
+
}, better_auth.$strip>>, _orpc_contract.Schema<{
|
|
3391
3553
|
data: {
|
|
3392
3554
|
memberCount: number;
|
|
3393
3555
|
};
|
|
@@ -3461,6 +3623,7 @@ declare const v1Router: {
|
|
|
3461
3623
|
displayUsername?: string | null | undefined;
|
|
3462
3624
|
};
|
|
3463
3625
|
}>, zod.ZodObject<{
|
|
3626
|
+
channelSlug: zod.ZodOptional<zod.ZodString>;
|
|
3464
3627
|
cursor: zod.ZodOptional<zod.ZodString>;
|
|
3465
3628
|
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
3466
3629
|
}, better_auth.$strip>, _orpc_contract.Schema<{
|
|
@@ -3641,6 +3804,7 @@ declare const v1Router: {
|
|
|
3641
3804
|
displayUsername?: string | null | undefined;
|
|
3642
3805
|
};
|
|
3643
3806
|
}>, zod.ZodObject<{
|
|
3807
|
+
channelSlug: zod.ZodOptional<zod.ZodString>;
|
|
3644
3808
|
cursor: zod.ZodOptional<zod.ZodString>;
|
|
3645
3809
|
limit: zod.ZodDefault<zod.ZodNumber>;
|
|
3646
3810
|
sort: zod.ZodDefault<zod.ZodEnum<{
|
|
@@ -3652,6 +3816,7 @@ declare const v1Router: {
|
|
|
3652
3816
|
id: string;
|
|
3653
3817
|
content: string;
|
|
3654
3818
|
images: string[];
|
|
3819
|
+
channelSlug: string | null;
|
|
3655
3820
|
link: {
|
|
3656
3821
|
url: string;
|
|
3657
3822
|
title: string | null;
|
|
@@ -3691,6 +3856,7 @@ declare const v1Router: {
|
|
|
3691
3856
|
id: string;
|
|
3692
3857
|
content: string;
|
|
3693
3858
|
images: string[];
|
|
3859
|
+
channelSlug: string | null;
|
|
3694
3860
|
link: {
|
|
3695
3861
|
url: string;
|
|
3696
3862
|
title: string | null;
|
|
@@ -3795,6 +3961,7 @@ declare const v1Router: {
|
|
|
3795
3961
|
id: string;
|
|
3796
3962
|
content: string;
|
|
3797
3963
|
images: string[];
|
|
3964
|
+
channelSlug: string;
|
|
3798
3965
|
link: {
|
|
3799
3966
|
url: string;
|
|
3800
3967
|
title: string | null;
|
|
@@ -3829,6 +3996,7 @@ declare const v1Router: {
|
|
|
3829
3996
|
id: string;
|
|
3830
3997
|
content: string;
|
|
3831
3998
|
images: string[];
|
|
3999
|
+
channelSlug: string;
|
|
3832
4000
|
link: {
|
|
3833
4001
|
url: string;
|
|
3834
4002
|
title: string | null;
|
|
@@ -3922,6 +4090,7 @@ declare const v1Router: {
|
|
|
3922
4090
|
displayUsername?: string | null | undefined;
|
|
3923
4091
|
};
|
|
3924
4092
|
}>, zod.ZodObject<{
|
|
4093
|
+
channelSlug: zod.ZodOptional<zod.ZodString>;
|
|
3925
4094
|
content: zod.ZodString;
|
|
3926
4095
|
linkUrl: zod.ZodOptional<zod.ZodString>;
|
|
3927
4096
|
imageUrls: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
@@ -3930,6 +4099,7 @@ declare const v1Router: {
|
|
|
3930
4099
|
id: string;
|
|
3931
4100
|
content: string;
|
|
3932
4101
|
images: string[];
|
|
4102
|
+
channelSlug: string;
|
|
3933
4103
|
link: {
|
|
3934
4104
|
url: string;
|
|
3935
4105
|
title: string | null;
|
|
@@ -3961,6 +4131,7 @@ declare const v1Router: {
|
|
|
3961
4131
|
id: string;
|
|
3962
4132
|
content: string;
|
|
3963
4133
|
images: string[];
|
|
4134
|
+
channelSlug: string;
|
|
3964
4135
|
link: {
|
|
3965
4136
|
url: string;
|
|
3966
4137
|
title: string | null;
|
|
@@ -4059,6 +4230,7 @@ declare const v1Router: {
|
|
|
4059
4230
|
post: {
|
|
4060
4231
|
id: string;
|
|
4061
4232
|
userId: string;
|
|
4233
|
+
channelId: string | null;
|
|
4062
4234
|
content: string;
|
|
4063
4235
|
linkUrl: string | null;
|
|
4064
4236
|
linkTitle: string | null;
|
|
@@ -4077,6 +4249,7 @@ declare const v1Router: {
|
|
|
4077
4249
|
post: {
|
|
4078
4250
|
id: string;
|
|
4079
4251
|
userId: string;
|
|
4252
|
+
channelId: string | null;
|
|
4080
4253
|
content: string;
|
|
4081
4254
|
linkUrl: string | null;
|
|
4082
4255
|
linkTitle: string | null;
|
|
@@ -8080,6 +8253,7 @@ declare const v1Router: {
|
|
|
8080
8253
|
linkedinVerified: boolean | null;
|
|
8081
8254
|
linkedinId: string | null;
|
|
8082
8255
|
linkedinName: string | null;
|
|
8256
|
+
waitlistLinkedinUrl: string | null;
|
|
8083
8257
|
}[];
|
|
8084
8258
|
total: number;
|
|
8085
8259
|
limit: number;
|
|
@@ -8093,6 +8267,7 @@ declare const v1Router: {
|
|
|
8093
8267
|
linkedinVerified: boolean | null;
|
|
8094
8268
|
linkedinId: string | null;
|
|
8095
8269
|
linkedinName: string | null;
|
|
8270
|
+
waitlistLinkedinUrl: string | null;
|
|
8096
8271
|
}[];
|
|
8097
8272
|
total: number;
|
|
8098
8273
|
limit: number;
|