@framebreak/types 0.1.16 → 0.1.18

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 +1128 -8
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -4,6 +4,36 @@ import * as zod from 'zod';
4
4
  import * as _orpc_contract from '@orpc/contract';
5
5
  import { LoggerContext } from '@orpc/experimental-pino';
6
6
 
7
+ /**
8
+ * Base context that accepts headers for authentication.
9
+ * This is the foundation for all ORPC procedures.
10
+ */
11
+ interface BaseContext extends LoggerContext {
12
+ headers: Headers;
13
+ }
14
+
15
+ interface NoteCommentAuthor {
16
+ id: string;
17
+ name: string;
18
+ username: string | null;
19
+ displayUsername: string | null;
20
+ image: string | null;
21
+ linkedinVerified: boolean | null;
22
+ }
23
+ interface NoteComment {
24
+ id: string;
25
+ noteId: string;
26
+ parentId: string | null;
27
+ content: string;
28
+ createdAt: Date;
29
+ updatedAt: Date;
30
+ author: NoteCommentAuthor;
31
+ likesCount: number;
32
+ isLiked: boolean;
33
+ replies?: NoteComment[];
34
+ hidden?: boolean;
35
+ }
36
+
7
37
  type InsiderApplicationStatus = "pending" | "approved" | "rejected";
8
38
 
9
39
  interface CommentAuthor {
@@ -25,6 +55,7 @@ interface Comment {
25
55
  likesCount: number;
26
56
  isLiked: boolean;
27
57
  replies?: Comment[];
58
+ hidden?: boolean;
28
59
  }
29
60
  interface CommunityPostLink {
30
61
  url: string;
@@ -53,14 +84,7 @@ interface CommunityComment {
53
84
  isLiked: boolean;
54
85
  reactions: Reaction[];
55
86
  replies?: CommunityComment[];
56
- }
57
-
58
- /**
59
- * Base context that accepts headers for authentication.
60
- * This is the foundation for all ORPC procedures.
61
- */
62
- interface BaseContext extends LoggerContext {
63
- headers: Headers;
87
+ hidden?: boolean;
64
88
  }
65
89
 
66
90
  /**
@@ -4025,6 +4049,11 @@ declare const v1Router: {
4025
4049
  linkedinVerified: boolean | null;
4026
4050
  };
4027
4051
  isOwner: boolean;
4052
+ engagement: {
4053
+ likesCount: number;
4054
+ commentsCount: number;
4055
+ isLiked: boolean;
4056
+ };
4028
4057
  }[];
4029
4058
  pagination: {
4030
4059
  nextCursor: string | null;
@@ -4051,6 +4080,11 @@ declare const v1Router: {
4051
4080
  linkedinVerified: boolean | null;
4052
4081
  };
4053
4082
  isOwner: boolean;
4083
+ engagement: {
4084
+ likesCount: number;
4085
+ commentsCount: number;
4086
+ isLiked: boolean;
4087
+ };
4054
4088
  }[];
4055
4089
  pagination: {
4056
4090
  nextCursor: string | null;
@@ -4139,6 +4173,11 @@ declare const v1Router: {
4139
4173
  linkedinVerified: boolean | null;
4140
4174
  };
4141
4175
  isOwner: boolean;
4176
+ engagement: {
4177
+ likesCount: number;
4178
+ commentsCount: number;
4179
+ isLiked: boolean;
4180
+ };
4142
4181
  };
4143
4182
  }, {
4144
4183
  data: {
@@ -4161,6 +4200,11 @@ declare const v1Router: {
4161
4200
  linkedinVerified: boolean | null;
4162
4201
  };
4163
4202
  isOwner: boolean;
4203
+ engagement: {
4204
+ likesCount: number;
4205
+ commentsCount: number;
4206
+ isLiked: boolean;
4207
+ };
4164
4208
  };
4165
4209
  }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4166
4210
  readonly UNAUTHORIZED: {
@@ -4258,6 +4302,1082 @@ declare const v1Router: {
4258
4302
  readonly message: "An internal server error occurred";
4259
4303
  };
4260
4304
  }>, Record<never, never>>;
4305
+ likes: {
4306
+ toggle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4307
+ session: {
4308
+ id: string;
4309
+ createdAt: Date;
4310
+ updatedAt: Date;
4311
+ userId: string;
4312
+ expiresAt: Date;
4313
+ token: string;
4314
+ ipAddress?: string | null | undefined | undefined;
4315
+ userAgent?: string | null | undefined | undefined;
4316
+ impersonatedBy?: string | null | undefined;
4317
+ };
4318
+ user: {
4319
+ id: string;
4320
+ createdAt: Date;
4321
+ updatedAt: Date;
4322
+ email: string;
4323
+ emailVerified: boolean;
4324
+ name: string;
4325
+ image?: string | null | undefined | undefined;
4326
+ onboardingCompleted: boolean | null | undefined;
4327
+ linkedinVerified: boolean | null | undefined;
4328
+ linkedinVerifiedAt?: Date | null | undefined;
4329
+ linkedinId?: string | null | undefined;
4330
+ linkedinName?: string | null | undefined;
4331
+ banned: boolean | null | undefined;
4332
+ role?: string | null | undefined;
4333
+ banReason?: string | null | undefined;
4334
+ banExpires?: Date | null | undefined;
4335
+ username?: string | null | undefined;
4336
+ displayUsername?: string | null | undefined;
4337
+ };
4338
+ }>, zod.ZodObject<{
4339
+ noteId: zod.ZodString;
4340
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4341
+ data: {
4342
+ isLiked: boolean;
4343
+ };
4344
+ }, {
4345
+ data: {
4346
+ isLiked: boolean;
4347
+ };
4348
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4349
+ readonly UNAUTHORIZED: {
4350
+ readonly message: "You must be logged in to access this resource";
4351
+ };
4352
+ readonly FORBIDDEN: {
4353
+ readonly message: "You do not have permission to access this resource";
4354
+ };
4355
+ readonly NOT_FOUND: {
4356
+ readonly message: "The requested resource was not found";
4357
+ };
4358
+ readonly BAD_REQUEST: {
4359
+ readonly message: "Invalid request";
4360
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4361
+ issues: zod.ZodArray<zod.ZodObject<{
4362
+ code: zod.ZodString;
4363
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4364
+ message: zod.ZodString;
4365
+ }, better_auth.$loose>>;
4366
+ }, better_auth.$strip>>;
4367
+ };
4368
+ readonly CONFLICT: {
4369
+ readonly message: "The request conflicts with existing data";
4370
+ };
4371
+ readonly INTERNAL_SERVER_ERROR: {
4372
+ readonly message: "An internal server error occurred";
4373
+ };
4374
+ }>, Record<never, never>>;
4375
+ status: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4376
+ session: {
4377
+ id: string;
4378
+ createdAt: Date;
4379
+ updatedAt: Date;
4380
+ userId: string;
4381
+ expiresAt: Date;
4382
+ token: string;
4383
+ ipAddress?: string | null | undefined | undefined;
4384
+ userAgent?: string | null | undefined | undefined;
4385
+ impersonatedBy?: string | null | undefined;
4386
+ };
4387
+ user: {
4388
+ id: string;
4389
+ createdAt: Date;
4390
+ updatedAt: Date;
4391
+ email: string;
4392
+ emailVerified: boolean;
4393
+ name: string;
4394
+ image?: string | null | undefined | undefined;
4395
+ onboardingCompleted: boolean | null | undefined;
4396
+ linkedinVerified: boolean | null | undefined;
4397
+ linkedinVerifiedAt?: Date | null | undefined;
4398
+ linkedinId?: string | null | undefined;
4399
+ linkedinName?: string | null | undefined;
4400
+ banned: boolean | null | undefined;
4401
+ role?: string | null | undefined;
4402
+ banReason?: string | null | undefined;
4403
+ banExpires?: Date | null | undefined;
4404
+ username?: string | null | undefined;
4405
+ displayUsername?: string | null | undefined;
4406
+ };
4407
+ }>, zod.ZodObject<{
4408
+ noteId: zod.ZodString;
4409
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4410
+ data: {
4411
+ likesCount: number;
4412
+ isLiked: boolean;
4413
+ };
4414
+ }, {
4415
+ data: {
4416
+ likesCount: number;
4417
+ isLiked: boolean;
4418
+ };
4419
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4420
+ readonly UNAUTHORIZED: {
4421
+ readonly message: "You must be logged in to access this resource";
4422
+ };
4423
+ readonly FORBIDDEN: {
4424
+ readonly message: "You do not have permission to access this resource";
4425
+ };
4426
+ readonly NOT_FOUND: {
4427
+ readonly message: "The requested resource was not found";
4428
+ };
4429
+ readonly BAD_REQUEST: {
4430
+ readonly message: "Invalid request";
4431
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4432
+ issues: zod.ZodArray<zod.ZodObject<{
4433
+ code: zod.ZodString;
4434
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4435
+ message: zod.ZodString;
4436
+ }, better_auth.$loose>>;
4437
+ }, better_auth.$strip>>;
4438
+ };
4439
+ readonly CONFLICT: {
4440
+ readonly message: "The request conflicts with existing data";
4441
+ };
4442
+ readonly INTERNAL_SERVER_ERROR: {
4443
+ readonly message: "An internal server error occurred";
4444
+ };
4445
+ }>, Record<never, never>>;
4446
+ };
4447
+ comments: {
4448
+ list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4449
+ session: {
4450
+ id: string;
4451
+ createdAt: Date;
4452
+ updatedAt: Date;
4453
+ userId: string;
4454
+ expiresAt: Date;
4455
+ token: string;
4456
+ ipAddress?: string | null | undefined | undefined;
4457
+ userAgent?: string | null | undefined | undefined;
4458
+ impersonatedBy?: string | null | undefined;
4459
+ };
4460
+ user: {
4461
+ id: string;
4462
+ createdAt: Date;
4463
+ updatedAt: Date;
4464
+ email: string;
4465
+ emailVerified: boolean;
4466
+ name: string;
4467
+ image?: string | null | undefined | undefined;
4468
+ onboardingCompleted: boolean | null | undefined;
4469
+ linkedinVerified: boolean | null | undefined;
4470
+ linkedinVerifiedAt?: Date | null | undefined;
4471
+ linkedinId?: string | null | undefined;
4472
+ linkedinName?: string | null | undefined;
4473
+ banned: boolean | null | undefined;
4474
+ role?: string | null | undefined;
4475
+ banReason?: string | null | undefined;
4476
+ banExpires?: Date | null | undefined;
4477
+ username?: string | null | undefined;
4478
+ displayUsername?: string | null | undefined;
4479
+ };
4480
+ }>, zod.ZodObject<{
4481
+ noteId: zod.ZodString;
4482
+ cursor: zod.ZodOptional<zod.ZodString>;
4483
+ limit: zod.ZodDefault<zod.ZodNumber>;
4484
+ sort: zod.ZodDefault<zod.ZodEnum<{
4485
+ newest: "newest";
4486
+ oldest: "oldest";
4487
+ }>>;
4488
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4489
+ data: NoteComment[];
4490
+ count: number;
4491
+ pagination: {
4492
+ hasMore: boolean;
4493
+ nextCursor: string | undefined;
4494
+ };
4495
+ }, {
4496
+ data: NoteComment[];
4497
+ count: number;
4498
+ pagination: {
4499
+ hasMore: boolean;
4500
+ nextCursor: string | undefined;
4501
+ };
4502
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4503
+ readonly UNAUTHORIZED: {
4504
+ readonly message: "You must be logged in to access this resource";
4505
+ };
4506
+ readonly FORBIDDEN: {
4507
+ readonly message: "You do not have permission to access this resource";
4508
+ };
4509
+ readonly NOT_FOUND: {
4510
+ readonly message: "The requested resource was not found";
4511
+ };
4512
+ readonly BAD_REQUEST: {
4513
+ readonly message: "Invalid request";
4514
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4515
+ issues: zod.ZodArray<zod.ZodObject<{
4516
+ code: zod.ZodString;
4517
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4518
+ message: zod.ZodString;
4519
+ }, better_auth.$loose>>;
4520
+ }, better_auth.$strip>>;
4521
+ };
4522
+ readonly CONFLICT: {
4523
+ readonly message: "The request conflicts with existing data";
4524
+ };
4525
+ readonly INTERNAL_SERVER_ERROR: {
4526
+ readonly message: "An internal server error occurred";
4527
+ };
4528
+ }>, Record<never, never>>;
4529
+ create: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4530
+ session: {
4531
+ id: string;
4532
+ createdAt: Date;
4533
+ updatedAt: Date;
4534
+ userId: string;
4535
+ expiresAt: Date;
4536
+ token: string;
4537
+ ipAddress?: string | null | undefined | undefined;
4538
+ userAgent?: string | null | undefined | undefined;
4539
+ impersonatedBy?: string | null | undefined;
4540
+ };
4541
+ user: {
4542
+ id: string;
4543
+ createdAt: Date;
4544
+ updatedAt: Date;
4545
+ email: string;
4546
+ emailVerified: boolean;
4547
+ name: string;
4548
+ image?: string | null | undefined | undefined;
4549
+ onboardingCompleted: boolean | null | undefined;
4550
+ linkedinVerified: boolean | null | undefined;
4551
+ linkedinVerifiedAt?: Date | null | undefined;
4552
+ linkedinId?: string | null | undefined;
4553
+ linkedinName?: string | null | undefined;
4554
+ banned: boolean | null | undefined;
4555
+ role?: string | null | undefined;
4556
+ banReason?: string | null | undefined;
4557
+ banExpires?: Date | null | undefined;
4558
+ username?: string | null | undefined;
4559
+ displayUsername?: string | null | undefined;
4560
+ };
4561
+ }>, zod.ZodObject<{
4562
+ noteId: zod.ZodString;
4563
+ parentId: zod.ZodOptional<zod.ZodString>;
4564
+ content: zod.ZodString;
4565
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4566
+ data: NoteComment;
4567
+ }, {
4568
+ data: NoteComment;
4569
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4570
+ readonly UNAUTHORIZED: {
4571
+ readonly message: "You must be logged in to access this resource";
4572
+ };
4573
+ readonly FORBIDDEN: {
4574
+ readonly message: "You do not have permission to access this resource";
4575
+ };
4576
+ readonly NOT_FOUND: {
4577
+ readonly message: "The requested resource was not found";
4578
+ };
4579
+ readonly BAD_REQUEST: {
4580
+ readonly message: "Invalid request";
4581
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4582
+ issues: zod.ZodArray<zod.ZodObject<{
4583
+ code: zod.ZodString;
4584
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4585
+ message: zod.ZodString;
4586
+ }, better_auth.$loose>>;
4587
+ }, better_auth.$strip>>;
4588
+ };
4589
+ readonly CONFLICT: {
4590
+ readonly message: "The request conflicts with existing data";
4591
+ };
4592
+ readonly INTERNAL_SERVER_ERROR: {
4593
+ readonly message: "An internal server error occurred";
4594
+ };
4595
+ }>, Record<never, never>>;
4596
+ update: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4597
+ session: {
4598
+ id: string;
4599
+ createdAt: Date;
4600
+ updatedAt: Date;
4601
+ userId: string;
4602
+ expiresAt: Date;
4603
+ token: string;
4604
+ ipAddress?: string | null | undefined | undefined;
4605
+ userAgent?: string | null | undefined | undefined;
4606
+ impersonatedBy?: string | null | undefined;
4607
+ };
4608
+ user: {
4609
+ id: string;
4610
+ createdAt: Date;
4611
+ updatedAt: Date;
4612
+ email: string;
4613
+ emailVerified: boolean;
4614
+ name: string;
4615
+ image?: string | null | undefined | undefined;
4616
+ onboardingCompleted: boolean | null | undefined;
4617
+ linkedinVerified: boolean | null | undefined;
4618
+ linkedinVerifiedAt?: Date | null | undefined;
4619
+ linkedinId?: string | null | undefined;
4620
+ linkedinName?: string | null | undefined;
4621
+ banned: boolean | null | undefined;
4622
+ role?: string | null | undefined;
4623
+ banReason?: string | null | undefined;
4624
+ banExpires?: Date | null | undefined;
4625
+ username?: string | null | undefined;
4626
+ displayUsername?: string | null | undefined;
4627
+ };
4628
+ }>, zod.ZodObject<{
4629
+ id: zod.ZodString;
4630
+ content: zod.ZodString;
4631
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4632
+ data: NoteComment;
4633
+ }, {
4634
+ data: NoteComment;
4635
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4636
+ readonly UNAUTHORIZED: {
4637
+ readonly message: "You must be logged in to access this resource";
4638
+ };
4639
+ readonly FORBIDDEN: {
4640
+ readonly message: "You do not have permission to access this resource";
4641
+ };
4642
+ readonly NOT_FOUND: {
4643
+ readonly message: "The requested resource was not found";
4644
+ };
4645
+ readonly BAD_REQUEST: {
4646
+ readonly message: "Invalid request";
4647
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4648
+ issues: zod.ZodArray<zod.ZodObject<{
4649
+ code: zod.ZodString;
4650
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4651
+ message: zod.ZodString;
4652
+ }, better_auth.$loose>>;
4653
+ }, better_auth.$strip>>;
4654
+ };
4655
+ readonly CONFLICT: {
4656
+ readonly message: "The request conflicts with existing data";
4657
+ };
4658
+ readonly INTERNAL_SERVER_ERROR: {
4659
+ readonly message: "An internal server error occurred";
4660
+ };
4661
+ }>, Record<never, never>>;
4662
+ delete: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4663
+ session: {
4664
+ id: string;
4665
+ createdAt: Date;
4666
+ updatedAt: Date;
4667
+ userId: string;
4668
+ expiresAt: Date;
4669
+ token: string;
4670
+ ipAddress?: string | null | undefined | undefined;
4671
+ userAgent?: string | null | undefined | undefined;
4672
+ impersonatedBy?: string | null | undefined;
4673
+ };
4674
+ user: {
4675
+ id: string;
4676
+ createdAt: Date;
4677
+ updatedAt: Date;
4678
+ email: string;
4679
+ emailVerified: boolean;
4680
+ name: string;
4681
+ image?: string | null | undefined | undefined;
4682
+ onboardingCompleted: boolean | null | undefined;
4683
+ linkedinVerified: boolean | null | undefined;
4684
+ linkedinVerifiedAt?: Date | null | undefined;
4685
+ linkedinId?: string | null | undefined;
4686
+ linkedinName?: string | null | undefined;
4687
+ banned: boolean | null | undefined;
4688
+ role?: string | null | undefined;
4689
+ banReason?: string | null | undefined;
4690
+ banExpires?: Date | null | undefined;
4691
+ username?: string | null | undefined;
4692
+ displayUsername?: string | null | undefined;
4693
+ };
4694
+ }>, zod.ZodObject<{
4695
+ id: zod.ZodString;
4696
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4697
+ data: {
4698
+ success: boolean;
4699
+ };
4700
+ }, {
4701
+ data: {
4702
+ success: boolean;
4703
+ };
4704
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4705
+ readonly UNAUTHORIZED: {
4706
+ readonly message: "You must be logged in to access this resource";
4707
+ };
4708
+ readonly FORBIDDEN: {
4709
+ readonly message: "You do not have permission to access this resource";
4710
+ };
4711
+ readonly NOT_FOUND: {
4712
+ readonly message: "The requested resource was not found";
4713
+ };
4714
+ readonly BAD_REQUEST: {
4715
+ readonly message: "Invalid request";
4716
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4717
+ issues: zod.ZodArray<zod.ZodObject<{
4718
+ code: zod.ZodString;
4719
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4720
+ message: zod.ZodString;
4721
+ }, better_auth.$loose>>;
4722
+ }, better_auth.$strip>>;
4723
+ };
4724
+ readonly CONFLICT: {
4725
+ readonly message: "The request conflicts with existing data";
4726
+ };
4727
+ readonly INTERNAL_SERVER_ERROR: {
4728
+ readonly message: "An internal server error occurred";
4729
+ };
4730
+ }>, Record<never, never>>;
4731
+ count: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4732
+ session: {
4733
+ id: string;
4734
+ createdAt: Date;
4735
+ updatedAt: Date;
4736
+ userId: string;
4737
+ expiresAt: Date;
4738
+ token: string;
4739
+ ipAddress?: string | null | undefined | undefined;
4740
+ userAgent?: string | null | undefined | undefined;
4741
+ impersonatedBy?: string | null | undefined;
4742
+ };
4743
+ user: {
4744
+ id: string;
4745
+ createdAt: Date;
4746
+ updatedAt: Date;
4747
+ email: string;
4748
+ emailVerified: boolean;
4749
+ name: string;
4750
+ image?: string | null | undefined | undefined;
4751
+ onboardingCompleted: boolean | null | undefined;
4752
+ linkedinVerified: boolean | null | undefined;
4753
+ linkedinVerifiedAt?: Date | null | undefined;
4754
+ linkedinId?: string | null | undefined;
4755
+ linkedinName?: string | null | undefined;
4756
+ banned: boolean | null | undefined;
4757
+ role?: string | null | undefined;
4758
+ banReason?: string | null | undefined;
4759
+ banExpires?: Date | null | undefined;
4760
+ username?: string | null | undefined;
4761
+ displayUsername?: string | null | undefined;
4762
+ };
4763
+ }>, zod.ZodObject<{
4764
+ noteId: zod.ZodString;
4765
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4766
+ data: {
4767
+ count: number;
4768
+ };
4769
+ }, {
4770
+ data: {
4771
+ count: number;
4772
+ };
4773
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4774
+ readonly UNAUTHORIZED: {
4775
+ readonly message: "You must be logged in to access this resource";
4776
+ };
4777
+ readonly FORBIDDEN: {
4778
+ readonly message: "You do not have permission to access this resource";
4779
+ };
4780
+ readonly NOT_FOUND: {
4781
+ readonly message: "The requested resource was not found";
4782
+ };
4783
+ readonly BAD_REQUEST: {
4784
+ readonly message: "Invalid request";
4785
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4786
+ issues: zod.ZodArray<zod.ZodObject<{
4787
+ code: zod.ZodString;
4788
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4789
+ message: zod.ZodString;
4790
+ }, better_auth.$loose>>;
4791
+ }, better_auth.$strip>>;
4792
+ };
4793
+ readonly CONFLICT: {
4794
+ readonly message: "The request conflicts with existing data";
4795
+ };
4796
+ readonly INTERNAL_SERVER_ERROR: {
4797
+ readonly message: "An internal server error occurred";
4798
+ };
4799
+ }>, Record<never, never>>;
4800
+ likes: {
4801
+ toggle: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4802
+ session: {
4803
+ id: string;
4804
+ createdAt: Date;
4805
+ updatedAt: Date;
4806
+ userId: string;
4807
+ expiresAt: Date;
4808
+ token: string;
4809
+ ipAddress?: string | null | undefined | undefined;
4810
+ userAgent?: string | null | undefined | undefined;
4811
+ impersonatedBy?: string | null | undefined;
4812
+ };
4813
+ user: {
4814
+ id: string;
4815
+ createdAt: Date;
4816
+ updatedAt: Date;
4817
+ email: string;
4818
+ emailVerified: boolean;
4819
+ name: string;
4820
+ image?: string | null | undefined | undefined;
4821
+ onboardingCompleted: boolean | null | undefined;
4822
+ linkedinVerified: boolean | null | undefined;
4823
+ linkedinVerifiedAt?: Date | null | undefined;
4824
+ linkedinId?: string | null | undefined;
4825
+ linkedinName?: string | null | undefined;
4826
+ banned: boolean | null | undefined;
4827
+ role?: string | null | undefined;
4828
+ banReason?: string | null | undefined;
4829
+ banExpires?: Date | null | undefined;
4830
+ username?: string | null | undefined;
4831
+ displayUsername?: string | null | undefined;
4832
+ };
4833
+ }>, zod.ZodObject<{
4834
+ commentId: zod.ZodString;
4835
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4836
+ data: {
4837
+ isLiked: boolean;
4838
+ };
4839
+ }, {
4840
+ data: {
4841
+ isLiked: boolean;
4842
+ };
4843
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4844
+ readonly UNAUTHORIZED: {
4845
+ readonly message: "You must be logged in to access this resource";
4846
+ };
4847
+ readonly FORBIDDEN: {
4848
+ readonly message: "You do not have permission to access this resource";
4849
+ };
4850
+ readonly NOT_FOUND: {
4851
+ readonly message: "The requested resource was not found";
4852
+ };
4853
+ readonly BAD_REQUEST: {
4854
+ readonly message: "Invalid request";
4855
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4856
+ issues: zod.ZodArray<zod.ZodObject<{
4857
+ code: zod.ZodString;
4858
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4859
+ message: zod.ZodString;
4860
+ }, better_auth.$loose>>;
4861
+ }, better_auth.$strip>>;
4862
+ };
4863
+ readonly CONFLICT: {
4864
+ readonly message: "The request conflicts with existing data";
4865
+ };
4866
+ readonly INTERNAL_SERVER_ERROR: {
4867
+ readonly message: "An internal server error occurred";
4868
+ };
4869
+ }>, Record<never, never>>;
4870
+ };
4871
+ };
4872
+ };
4873
+ /**
4874
+ * Admin endpoints - requires admin role.
4875
+ * Used for user management and application review from the admin dashboard.
4876
+ */
4877
+ admin: {
4878
+ insiderApplications: {
4879
+ list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4880
+ session: {
4881
+ id: string;
4882
+ createdAt: Date;
4883
+ updatedAt: Date;
4884
+ userId: string;
4885
+ expiresAt: Date;
4886
+ token: string;
4887
+ ipAddress?: string | null | undefined | undefined;
4888
+ userAgent?: string | null | undefined | undefined;
4889
+ impersonatedBy?: string | null | undefined;
4890
+ };
4891
+ user: {
4892
+ id: string;
4893
+ createdAt: Date;
4894
+ updatedAt: Date;
4895
+ email: string;
4896
+ emailVerified: boolean;
4897
+ name: string;
4898
+ image?: string | null | undefined | undefined;
4899
+ onboardingCompleted: boolean | null | undefined;
4900
+ linkedinVerified: boolean | null | undefined;
4901
+ linkedinVerifiedAt?: Date | null | undefined;
4902
+ linkedinId?: string | null | undefined;
4903
+ linkedinName?: string | null | undefined;
4904
+ banned: boolean | null | undefined;
4905
+ role?: string | null | undefined;
4906
+ banReason?: string | null | undefined;
4907
+ banExpires?: Date | null | undefined;
4908
+ username?: string | null | undefined;
4909
+ displayUsername?: string | null | undefined;
4910
+ };
4911
+ }>, zod.ZodObject<{
4912
+ status: zod.ZodOptional<zod.ZodEnum<{
4913
+ pending: "pending";
4914
+ approved: "approved";
4915
+ rejected: "rejected";
4916
+ }>>;
4917
+ limit: zod.ZodDefault<zod.ZodNumber>;
4918
+ offset: zod.ZodDefault<zod.ZodNumber>;
4919
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4920
+ data: {
4921
+ id: string;
4922
+ userId: string;
4923
+ reason: string | null;
4924
+ linkedinUrl: string | null;
4925
+ status: InsiderApplicationStatus | null;
4926
+ createdAt: Date;
4927
+ reviewedAt: Date | null;
4928
+ user: {
4929
+ id: string;
4930
+ name: string;
4931
+ email: string;
4932
+ username: string | null;
4933
+ image: string | null;
4934
+ linkedinVerified: boolean | null;
4935
+ };
4936
+ }[];
4937
+ total: number;
4938
+ limit: number;
4939
+ offset: number;
4940
+ }, {
4941
+ data: {
4942
+ id: string;
4943
+ userId: string;
4944
+ reason: string | null;
4945
+ linkedinUrl: string | null;
4946
+ status: InsiderApplicationStatus | null;
4947
+ createdAt: Date;
4948
+ reviewedAt: Date | null;
4949
+ user: {
4950
+ id: string;
4951
+ name: string;
4952
+ email: string;
4953
+ username: string | null;
4954
+ image: string | null;
4955
+ linkedinVerified: boolean | null;
4956
+ };
4957
+ }[];
4958
+ total: number;
4959
+ limit: number;
4960
+ offset: number;
4961
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4962
+ readonly UNAUTHORIZED: {
4963
+ readonly message: "You must be logged in to access this resource";
4964
+ };
4965
+ readonly FORBIDDEN: {
4966
+ readonly message: "You do not have permission to access this resource";
4967
+ };
4968
+ readonly NOT_FOUND: {
4969
+ readonly message: "The requested resource was not found";
4970
+ };
4971
+ readonly BAD_REQUEST: {
4972
+ readonly message: "Invalid request";
4973
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4974
+ issues: zod.ZodArray<zod.ZodObject<{
4975
+ code: zod.ZodString;
4976
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4977
+ message: zod.ZodString;
4978
+ }, better_auth.$loose>>;
4979
+ }, better_auth.$strip>>;
4980
+ };
4981
+ readonly CONFLICT: {
4982
+ readonly message: "The request conflicts with existing data";
4983
+ };
4984
+ readonly INTERNAL_SERVER_ERROR: {
4985
+ readonly message: "An internal server error occurred";
4986
+ };
4987
+ }>, Record<never, never>>;
4988
+ counts: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4989
+ session: {
4990
+ id: string;
4991
+ createdAt: Date;
4992
+ updatedAt: Date;
4993
+ userId: string;
4994
+ expiresAt: Date;
4995
+ token: string;
4996
+ ipAddress?: string | null | undefined | undefined;
4997
+ userAgent?: string | null | undefined | undefined;
4998
+ impersonatedBy?: string | null | undefined;
4999
+ };
5000
+ user: {
5001
+ id: string;
5002
+ createdAt: Date;
5003
+ updatedAt: Date;
5004
+ email: string;
5005
+ emailVerified: boolean;
5006
+ name: string;
5007
+ image?: string | null | undefined | undefined;
5008
+ onboardingCompleted: boolean | null | undefined;
5009
+ linkedinVerified: boolean | null | undefined;
5010
+ linkedinVerifiedAt?: Date | null | undefined;
5011
+ linkedinId?: string | null | undefined;
5012
+ linkedinName?: string | null | undefined;
5013
+ banned: boolean | null | undefined;
5014
+ role?: string | null | undefined;
5015
+ banReason?: string | null | undefined;
5016
+ banExpires?: Date | null | undefined;
5017
+ username?: string | null | undefined;
5018
+ displayUsername?: string | null | undefined;
5019
+ };
5020
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
5021
+ data: {
5022
+ total: number;
5023
+ pending: number;
5024
+ approved: number;
5025
+ rejected: number;
5026
+ };
5027
+ }, {
5028
+ data: {
5029
+ total: number;
5030
+ pending: number;
5031
+ approved: number;
5032
+ rejected: number;
5033
+ };
5034
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
5035
+ readonly UNAUTHORIZED: {
5036
+ readonly message: "You must be logged in to access this resource";
5037
+ };
5038
+ readonly FORBIDDEN: {
5039
+ readonly message: "You do not have permission to access this resource";
5040
+ };
5041
+ readonly NOT_FOUND: {
5042
+ readonly message: "The requested resource was not found";
5043
+ };
5044
+ readonly BAD_REQUEST: {
5045
+ readonly message: "Invalid request";
5046
+ readonly data: zod.ZodOptional<zod.ZodObject<{
5047
+ issues: zod.ZodArray<zod.ZodObject<{
5048
+ code: zod.ZodString;
5049
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
5050
+ message: zod.ZodString;
5051
+ }, better_auth.$loose>>;
5052
+ }, better_auth.$strip>>;
5053
+ };
5054
+ readonly CONFLICT: {
5055
+ readonly message: "The request conflicts with existing data";
5056
+ };
5057
+ readonly INTERNAL_SERVER_ERROR: {
5058
+ readonly message: "An internal server error occurred";
5059
+ };
5060
+ }>, Record<never, never>>;
5061
+ approve: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
5062
+ session: {
5063
+ id: string;
5064
+ createdAt: Date;
5065
+ updatedAt: Date;
5066
+ userId: string;
5067
+ expiresAt: Date;
5068
+ token: string;
5069
+ ipAddress?: string | null | undefined | undefined;
5070
+ userAgent?: string | null | undefined | undefined;
5071
+ impersonatedBy?: string | null | undefined;
5072
+ };
5073
+ user: {
5074
+ id: string;
5075
+ createdAt: Date;
5076
+ updatedAt: Date;
5077
+ email: string;
5078
+ emailVerified: boolean;
5079
+ name: string;
5080
+ image?: string | null | undefined | undefined;
5081
+ onboardingCompleted: boolean | null | undefined;
5082
+ linkedinVerified: boolean | null | undefined;
5083
+ linkedinVerifiedAt?: Date | null | undefined;
5084
+ linkedinId?: string | null | undefined;
5085
+ linkedinName?: string | null | undefined;
5086
+ banned: boolean | null | undefined;
5087
+ role?: string | null | undefined;
5088
+ banReason?: string | null | undefined;
5089
+ banExpires?: Date | null | undefined;
5090
+ username?: string | null | undefined;
5091
+ displayUsername?: string | null | undefined;
5092
+ };
5093
+ }>, zod.ZodObject<{
5094
+ applicationId: zod.ZodString;
5095
+ }, better_auth.$strip>, _orpc_contract.Schema<{
5096
+ data: {
5097
+ success: boolean;
5098
+ applicationId: string;
5099
+ userId: string;
5100
+ email: string;
5101
+ };
5102
+ }, {
5103
+ data: {
5104
+ success: boolean;
5105
+ applicationId: string;
5106
+ userId: string;
5107
+ email: string;
5108
+ };
5109
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
5110
+ readonly UNAUTHORIZED: {
5111
+ readonly message: "You must be logged in to access this resource";
5112
+ };
5113
+ readonly FORBIDDEN: {
5114
+ readonly message: "You do not have permission to access this resource";
5115
+ };
5116
+ readonly NOT_FOUND: {
5117
+ readonly message: "The requested resource was not found";
5118
+ };
5119
+ readonly BAD_REQUEST: {
5120
+ readonly message: "Invalid request";
5121
+ readonly data: zod.ZodOptional<zod.ZodObject<{
5122
+ issues: zod.ZodArray<zod.ZodObject<{
5123
+ code: zod.ZodString;
5124
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
5125
+ message: zod.ZodString;
5126
+ }, better_auth.$loose>>;
5127
+ }, better_auth.$strip>>;
5128
+ };
5129
+ readonly CONFLICT: {
5130
+ readonly message: "The request conflicts with existing data";
5131
+ };
5132
+ readonly INTERNAL_SERVER_ERROR: {
5133
+ readonly message: "An internal server error occurred";
5134
+ };
5135
+ }>, Record<never, never>>;
5136
+ reject: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
5137
+ session: {
5138
+ id: string;
5139
+ createdAt: Date;
5140
+ updatedAt: Date;
5141
+ userId: string;
5142
+ expiresAt: Date;
5143
+ token: string;
5144
+ ipAddress?: string | null | undefined | undefined;
5145
+ userAgent?: string | null | undefined | undefined;
5146
+ impersonatedBy?: string | null | undefined;
5147
+ };
5148
+ user: {
5149
+ id: string;
5150
+ createdAt: Date;
5151
+ updatedAt: Date;
5152
+ email: string;
5153
+ emailVerified: boolean;
5154
+ name: string;
5155
+ image?: string | null | undefined | undefined;
5156
+ onboardingCompleted: boolean | null | undefined;
5157
+ linkedinVerified: boolean | null | undefined;
5158
+ linkedinVerifiedAt?: Date | null | undefined;
5159
+ linkedinId?: string | null | undefined;
5160
+ linkedinName?: string | null | undefined;
5161
+ banned: boolean | null | undefined;
5162
+ role?: string | null | undefined;
5163
+ banReason?: string | null | undefined;
5164
+ banExpires?: Date | null | undefined;
5165
+ username?: string | null | undefined;
5166
+ displayUsername?: string | null | undefined;
5167
+ };
5168
+ }>, zod.ZodObject<{
5169
+ applicationId: zod.ZodString;
5170
+ }, better_auth.$strip>, _orpc_contract.Schema<{
5171
+ data: {
5172
+ success: boolean;
5173
+ applicationId: string;
5174
+ };
5175
+ }, {
5176
+ data: {
5177
+ success: boolean;
5178
+ applicationId: string;
5179
+ };
5180
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
5181
+ readonly UNAUTHORIZED: {
5182
+ readonly message: "You must be logged in to access this resource";
5183
+ };
5184
+ readonly FORBIDDEN: {
5185
+ readonly message: "You do not have permission to access this resource";
5186
+ };
5187
+ readonly NOT_FOUND: {
5188
+ readonly message: "The requested resource was not found";
5189
+ };
5190
+ readonly BAD_REQUEST: {
5191
+ readonly message: "Invalid request";
5192
+ readonly data: zod.ZodOptional<zod.ZodObject<{
5193
+ issues: zod.ZodArray<zod.ZodObject<{
5194
+ code: zod.ZodString;
5195
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
5196
+ message: zod.ZodString;
5197
+ }, better_auth.$loose>>;
5198
+ }, better_auth.$strip>>;
5199
+ };
5200
+ readonly CONFLICT: {
5201
+ readonly message: "The request conflicts with existing data";
5202
+ };
5203
+ readonly INTERNAL_SERVER_ERROR: {
5204
+ readonly message: "An internal server error occurred";
5205
+ };
5206
+ }>, Record<never, never>>;
5207
+ };
5208
+ communityApplications: {
5209
+ list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
5210
+ session: {
5211
+ id: string;
5212
+ createdAt: Date;
5213
+ updatedAt: Date;
5214
+ userId: string;
5215
+ expiresAt: Date;
5216
+ token: string;
5217
+ ipAddress?: string | null | undefined | undefined;
5218
+ userAgent?: string | null | undefined | undefined;
5219
+ impersonatedBy?: string | null | undefined;
5220
+ };
5221
+ user: {
5222
+ id: string;
5223
+ createdAt: Date;
5224
+ updatedAt: Date;
5225
+ email: string;
5226
+ emailVerified: boolean;
5227
+ name: string;
5228
+ image?: string | null | undefined | undefined;
5229
+ onboardingCompleted: boolean | null | undefined;
5230
+ linkedinVerified: boolean | null | undefined;
5231
+ linkedinVerifiedAt?: Date | null | undefined;
5232
+ linkedinId?: string | null | undefined;
5233
+ linkedinName?: string | null | undefined;
5234
+ banned: boolean | null | undefined;
5235
+ role?: string | null | undefined;
5236
+ banReason?: string | null | undefined;
5237
+ banExpires?: Date | null | undefined;
5238
+ username?: string | null | undefined;
5239
+ displayUsername?: string | null | undefined;
5240
+ };
5241
+ }>, zod.ZodObject<{
5242
+ search: zod.ZodOptional<zod.ZodString>;
5243
+ intent: zod.ZodOptional<zod.ZodEnum<{
5244
+ builder: "builder";
5245
+ talent: "talent";
5246
+ investor: "investor";
5247
+ }>>;
5248
+ limit: zod.ZodDefault<zod.ZodNumber>;
5249
+ offset: zod.ZodDefault<zod.ZodNumber>;
5250
+ }, better_auth.$strip>, _orpc_contract.Schema<{
5251
+ data: {
5252
+ id: string;
5253
+ email: string;
5254
+ source: string;
5255
+ linkedinUrl: string | null;
5256
+ intent: "builder" | "talent" | "investor" | null;
5257
+ followUpResponse: string | null;
5258
+ createdAt: Date;
5259
+ }[];
5260
+ total: number;
5261
+ limit: number;
5262
+ offset: number;
5263
+ }, {
5264
+ data: {
5265
+ id: string;
5266
+ email: string;
5267
+ source: string;
5268
+ linkedinUrl: string | null;
5269
+ intent: "builder" | "talent" | "investor" | null;
5270
+ followUpResponse: string | null;
5271
+ createdAt: Date;
5272
+ }[];
5273
+ total: number;
5274
+ limit: number;
5275
+ offset: number;
5276
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
5277
+ readonly UNAUTHORIZED: {
5278
+ readonly message: "You must be logged in to access this resource";
5279
+ };
5280
+ readonly FORBIDDEN: {
5281
+ readonly message: "You do not have permission to access this resource";
5282
+ };
5283
+ readonly NOT_FOUND: {
5284
+ readonly message: "The requested resource was not found";
5285
+ };
5286
+ readonly BAD_REQUEST: {
5287
+ readonly message: "Invalid request";
5288
+ readonly data: zod.ZodOptional<zod.ZodObject<{
5289
+ issues: zod.ZodArray<zod.ZodObject<{
5290
+ code: zod.ZodString;
5291
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
5292
+ message: zod.ZodString;
5293
+ }, better_auth.$loose>>;
5294
+ }, better_auth.$strip>>;
5295
+ };
5296
+ readonly CONFLICT: {
5297
+ readonly message: "The request conflicts with existing data";
5298
+ };
5299
+ readonly INTERNAL_SERVER_ERROR: {
5300
+ readonly message: "An internal server error occurred";
5301
+ };
5302
+ }>, Record<never, never>>;
5303
+ counts: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
5304
+ session: {
5305
+ id: string;
5306
+ createdAt: Date;
5307
+ updatedAt: Date;
5308
+ userId: string;
5309
+ expiresAt: Date;
5310
+ token: string;
5311
+ ipAddress?: string | null | undefined | undefined;
5312
+ userAgent?: string | null | undefined | undefined;
5313
+ impersonatedBy?: string | null | undefined;
5314
+ };
5315
+ user: {
5316
+ id: string;
5317
+ createdAt: Date;
5318
+ updatedAt: Date;
5319
+ email: string;
5320
+ emailVerified: boolean;
5321
+ name: string;
5322
+ image?: string | null | undefined | undefined;
5323
+ onboardingCompleted: boolean | null | undefined;
5324
+ linkedinVerified: boolean | null | undefined;
5325
+ linkedinVerifiedAt?: Date | null | undefined;
5326
+ linkedinId?: string | null | undefined;
5327
+ linkedinName?: string | null | undefined;
5328
+ banned: boolean | null | undefined;
5329
+ role?: string | null | undefined;
5330
+ banReason?: string | null | undefined;
5331
+ banExpires?: Date | null | undefined;
5332
+ username?: string | null | undefined;
5333
+ displayUsername?: string | null | undefined;
5334
+ };
5335
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
5336
+ data: {
5337
+ total: number;
5338
+ byIntent: {
5339
+ builder: number;
5340
+ talent: number;
5341
+ investor: number;
5342
+ };
5343
+ };
5344
+ }, {
5345
+ data: {
5346
+ total: number;
5347
+ byIntent: {
5348
+ builder: number;
5349
+ talent: number;
5350
+ investor: number;
5351
+ };
5352
+ };
5353
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
5354
+ readonly UNAUTHORIZED: {
5355
+ readonly message: "You must be logged in to access this resource";
5356
+ };
5357
+ readonly FORBIDDEN: {
5358
+ readonly message: "You do not have permission to access this resource";
5359
+ };
5360
+ readonly NOT_FOUND: {
5361
+ readonly message: "The requested resource was not found";
5362
+ };
5363
+ readonly BAD_REQUEST: {
5364
+ readonly message: "Invalid request";
5365
+ readonly data: zod.ZodOptional<zod.ZodObject<{
5366
+ issues: zod.ZodArray<zod.ZodObject<{
5367
+ code: zod.ZodString;
5368
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
5369
+ message: zod.ZodString;
5370
+ }, better_auth.$loose>>;
5371
+ }, better_auth.$strip>>;
5372
+ };
5373
+ readonly CONFLICT: {
5374
+ readonly message: "The request conflicts with existing data";
5375
+ };
5376
+ readonly INTERNAL_SERVER_ERROR: {
5377
+ readonly message: "An internal server error occurred";
5378
+ };
5379
+ }>, Record<never, never>>;
5380
+ };
4261
5381
  };
4262
5382
  };
4263
5383
  type V1Router = typeof v1Router;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@framebreak/types",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "Type definitions for the Framebreak API",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",