@framebreak/types 0.1.38 → 0.1.39

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 +173 -1
  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 insider role (community:view permission).
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: {
@@ -3641,6 +3801,7 @@ declare const v1Router: {
3641
3801
  displayUsername?: string | null | undefined;
3642
3802
  };
3643
3803
  }>, zod.ZodObject<{
3804
+ channelSlug: zod.ZodOptional<zod.ZodString>;
3644
3805
  cursor: zod.ZodOptional<zod.ZodString>;
3645
3806
  limit: zod.ZodDefault<zod.ZodNumber>;
3646
3807
  sort: zod.ZodDefault<zod.ZodEnum<{
@@ -3652,6 +3813,7 @@ declare const v1Router: {
3652
3813
  id: string;
3653
3814
  content: string;
3654
3815
  images: string[];
3816
+ channelSlug: string | null;
3655
3817
  link: {
3656
3818
  url: string;
3657
3819
  title: string | null;
@@ -3691,6 +3853,7 @@ declare const v1Router: {
3691
3853
  id: string;
3692
3854
  content: string;
3693
3855
  images: string[];
3856
+ channelSlug: string | null;
3694
3857
  link: {
3695
3858
  url: string;
3696
3859
  title: string | null;
@@ -3795,6 +3958,7 @@ declare const v1Router: {
3795
3958
  id: string;
3796
3959
  content: string;
3797
3960
  images: string[];
3961
+ channelSlug: string;
3798
3962
  link: {
3799
3963
  url: string;
3800
3964
  title: string | null;
@@ -3829,6 +3993,7 @@ declare const v1Router: {
3829
3993
  id: string;
3830
3994
  content: string;
3831
3995
  images: string[];
3996
+ channelSlug: string;
3832
3997
  link: {
3833
3998
  url: string;
3834
3999
  title: string | null;
@@ -3922,6 +4087,7 @@ declare const v1Router: {
3922
4087
  displayUsername?: string | null | undefined;
3923
4088
  };
3924
4089
  }>, zod.ZodObject<{
4090
+ channelSlug: zod.ZodOptional<zod.ZodString>;
3925
4091
  content: zod.ZodString;
3926
4092
  linkUrl: zod.ZodOptional<zod.ZodString>;
3927
4093
  imageUrls: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
@@ -3930,6 +4096,7 @@ declare const v1Router: {
3930
4096
  id: string;
3931
4097
  content: string;
3932
4098
  images: string[];
4099
+ channelSlug: string;
3933
4100
  link: {
3934
4101
  url: string;
3935
4102
  title: string | null;
@@ -3961,6 +4128,7 @@ declare const v1Router: {
3961
4128
  id: string;
3962
4129
  content: string;
3963
4130
  images: string[];
4131
+ channelSlug: string;
3964
4132
  link: {
3965
4133
  url: string;
3966
4134
  title: string | null;
@@ -4059,6 +4227,7 @@ declare const v1Router: {
4059
4227
  post: {
4060
4228
  id: string;
4061
4229
  userId: string;
4230
+ channelId: string | null;
4062
4231
  content: string;
4063
4232
  linkUrl: string | null;
4064
4233
  linkTitle: string | null;
@@ -4077,6 +4246,7 @@ declare const v1Router: {
4077
4246
  post: {
4078
4247
  id: string;
4079
4248
  userId: string;
4249
+ channelId: string | null;
4080
4250
  content: string;
4081
4251
  linkUrl: string | null;
4082
4252
  linkTitle: string | null;
@@ -8080,6 +8250,7 @@ declare const v1Router: {
8080
8250
  linkedinVerified: boolean | null;
8081
8251
  linkedinId: string | null;
8082
8252
  linkedinName: string | null;
8253
+ waitlistLinkedinUrl: string | null;
8083
8254
  }[];
8084
8255
  total: number;
8085
8256
  limit: number;
@@ -8093,6 +8264,7 @@ declare const v1Router: {
8093
8264
  linkedinVerified: boolean | null;
8094
8265
  linkedinId: string | null;
8095
8266
  linkedinName: string | null;
8267
+ waitlistLinkedinUrl: string | null;
8096
8268
  }[];
8097
8269
  total: number;
8098
8270
  limit: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@framebreak/types",
3
- "version": "0.1.38",
3
+ "version": "0.1.39",
4
4
  "description": "Type definitions for the Framebreak API",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",