@framebreak/types 0.1.15 → 0.1.17

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 +343 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1777,11 +1777,13 @@ declare const v1Router: {
1777
1777
  };
1778
1778
  }>, zod.ZodObject<{
1779
1779
  reason: zod.ZodOptional<zod.ZodString>;
1780
+ linkedinUrl: zod.ZodOptional<zod.ZodString>;
1780
1781
  }, better_auth.$strip>, _orpc_contract.Schema<{
1781
1782
  data: {
1782
1783
  id: string;
1783
1784
  status: InsiderApplicationStatus | null;
1784
1785
  reason: string | null;
1786
+ linkedinUrl: string | null;
1785
1787
  createdAt: Date;
1786
1788
  };
1787
1789
  }, {
@@ -1789,6 +1791,7 @@ declare const v1Router: {
1789
1791
  id: string;
1790
1792
  status: InsiderApplicationStatus | null;
1791
1793
  reason: string | null;
1794
+ linkedinUrl: string | null;
1792
1795
  createdAt: Date;
1793
1796
  };
1794
1797
  }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
@@ -1864,6 +1867,7 @@ declare const v1Router: {
1864
1867
  id: string;
1865
1868
  status: InsiderApplicationStatus | null;
1866
1869
  reason: string | null;
1870
+ linkedinUrl: string | null;
1867
1871
  createdAt: Date;
1868
1872
  reviewedAt: Date | null;
1869
1873
  };
@@ -1882,6 +1886,7 @@ declare const v1Router: {
1882
1886
  id: string;
1883
1887
  status: InsiderApplicationStatus | null;
1884
1888
  reason: string | null;
1889
+ linkedinUrl: string | null;
1885
1890
  createdAt: Date;
1886
1891
  reviewedAt: Date | null;
1887
1892
  };
@@ -2331,6 +2336,7 @@ declare const v1Router: {
2331
2336
  id: string;
2332
2337
  userId: string;
2333
2338
  reason: string | null;
2339
+ linkedinUrl: string | null;
2334
2340
  status: InsiderApplicationStatus | null;
2335
2341
  createdAt: Date;
2336
2342
  reviewedAt: Date | null;
@@ -2348,6 +2354,7 @@ declare const v1Router: {
2348
2354
  id: string;
2349
2355
  userId: string;
2350
2356
  reason: string | null;
2357
+ linkedinUrl: string | null;
2351
2358
  status: InsiderApplicationStatus | null;
2352
2359
  createdAt: Date;
2353
2360
  reviewedAt: Date | null;
@@ -4252,6 +4259,342 @@ declare const v1Router: {
4252
4259
  };
4253
4260
  }>, Record<never, never>>;
4254
4261
  };
4262
+ /**
4263
+ * Admin endpoints - requires admin role.
4264
+ * Used for user management and application review from the admin dashboard.
4265
+ */
4266
+ admin: {
4267
+ insiderApplications: {
4268
+ list: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4269
+ session: {
4270
+ id: string;
4271
+ createdAt: Date;
4272
+ updatedAt: Date;
4273
+ userId: string;
4274
+ expiresAt: Date;
4275
+ token: string;
4276
+ ipAddress?: string | null | undefined | undefined;
4277
+ userAgent?: string | null | undefined | undefined;
4278
+ impersonatedBy?: string | null | undefined;
4279
+ };
4280
+ user: {
4281
+ id: string;
4282
+ createdAt: Date;
4283
+ updatedAt: Date;
4284
+ email: string;
4285
+ emailVerified: boolean;
4286
+ name: string;
4287
+ image?: string | null | undefined | undefined;
4288
+ onboardingCompleted: boolean | null | undefined;
4289
+ linkedinVerified: boolean | null | undefined;
4290
+ linkedinVerifiedAt?: Date | null | undefined;
4291
+ linkedinId?: string | null | undefined;
4292
+ linkedinName?: string | null | undefined;
4293
+ banned: boolean | null | undefined;
4294
+ role?: string | null | undefined;
4295
+ banReason?: string | null | undefined;
4296
+ banExpires?: Date | null | undefined;
4297
+ username?: string | null | undefined;
4298
+ displayUsername?: string | null | undefined;
4299
+ };
4300
+ }>, zod.ZodObject<{
4301
+ status: zod.ZodOptional<zod.ZodEnum<{
4302
+ pending: "pending";
4303
+ approved: "approved";
4304
+ rejected: "rejected";
4305
+ }>>;
4306
+ limit: zod.ZodDefault<zod.ZodNumber>;
4307
+ offset: zod.ZodDefault<zod.ZodNumber>;
4308
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4309
+ data: {
4310
+ id: string;
4311
+ userId: string;
4312
+ reason: string | null;
4313
+ linkedinUrl: string | null;
4314
+ status: InsiderApplicationStatus | null;
4315
+ createdAt: Date;
4316
+ reviewedAt: Date | null;
4317
+ user: {
4318
+ id: string;
4319
+ name: string;
4320
+ email: string;
4321
+ username: string | null;
4322
+ image: string | null;
4323
+ linkedinVerified: boolean | null;
4324
+ };
4325
+ }[];
4326
+ total: number;
4327
+ limit: number;
4328
+ offset: number;
4329
+ }, {
4330
+ data: {
4331
+ id: string;
4332
+ userId: string;
4333
+ reason: string | null;
4334
+ linkedinUrl: string | null;
4335
+ status: InsiderApplicationStatus | null;
4336
+ createdAt: Date;
4337
+ reviewedAt: Date | null;
4338
+ user: {
4339
+ id: string;
4340
+ name: string;
4341
+ email: string;
4342
+ username: string | null;
4343
+ image: string | null;
4344
+ linkedinVerified: boolean | null;
4345
+ };
4346
+ }[];
4347
+ total: number;
4348
+ limit: number;
4349
+ offset: number;
4350
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4351
+ readonly UNAUTHORIZED: {
4352
+ readonly message: "You must be logged in to access this resource";
4353
+ };
4354
+ readonly FORBIDDEN: {
4355
+ readonly message: "You do not have permission to access this resource";
4356
+ };
4357
+ readonly NOT_FOUND: {
4358
+ readonly message: "The requested resource was not found";
4359
+ };
4360
+ readonly BAD_REQUEST: {
4361
+ readonly message: "Invalid request";
4362
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4363
+ issues: zod.ZodArray<zod.ZodObject<{
4364
+ code: zod.ZodString;
4365
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4366
+ message: zod.ZodString;
4367
+ }, better_auth.$loose>>;
4368
+ }, better_auth.$strip>>;
4369
+ };
4370
+ readonly CONFLICT: {
4371
+ readonly message: "The request conflicts with existing data";
4372
+ };
4373
+ readonly INTERNAL_SERVER_ERROR: {
4374
+ readonly message: "An internal server error occurred";
4375
+ };
4376
+ }>, Record<never, never>>;
4377
+ counts: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4378
+ session: {
4379
+ id: string;
4380
+ createdAt: Date;
4381
+ updatedAt: Date;
4382
+ userId: string;
4383
+ expiresAt: Date;
4384
+ token: string;
4385
+ ipAddress?: string | null | undefined | undefined;
4386
+ userAgent?: string | null | undefined | undefined;
4387
+ impersonatedBy?: string | null | undefined;
4388
+ };
4389
+ user: {
4390
+ id: string;
4391
+ createdAt: Date;
4392
+ updatedAt: Date;
4393
+ email: string;
4394
+ emailVerified: boolean;
4395
+ name: string;
4396
+ image?: string | null | undefined | undefined;
4397
+ onboardingCompleted: boolean | null | undefined;
4398
+ linkedinVerified: boolean | null | undefined;
4399
+ linkedinVerifiedAt?: Date | null | undefined;
4400
+ linkedinId?: string | null | undefined;
4401
+ linkedinName?: string | null | undefined;
4402
+ banned: boolean | null | undefined;
4403
+ role?: string | null | undefined;
4404
+ banReason?: string | null | undefined;
4405
+ banExpires?: Date | null | undefined;
4406
+ username?: string | null | undefined;
4407
+ displayUsername?: string | null | undefined;
4408
+ };
4409
+ }>, _orpc_contract.Schema<unknown, unknown>, _orpc_contract.Schema<{
4410
+ data: {
4411
+ total: number;
4412
+ pending: number;
4413
+ approved: number;
4414
+ rejected: number;
4415
+ };
4416
+ }, {
4417
+ data: {
4418
+ total: number;
4419
+ pending: number;
4420
+ approved: number;
4421
+ rejected: number;
4422
+ };
4423
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4424
+ readonly UNAUTHORIZED: {
4425
+ readonly message: "You must be logged in to access this resource";
4426
+ };
4427
+ readonly FORBIDDEN: {
4428
+ readonly message: "You do not have permission to access this resource";
4429
+ };
4430
+ readonly NOT_FOUND: {
4431
+ readonly message: "The requested resource was not found";
4432
+ };
4433
+ readonly BAD_REQUEST: {
4434
+ readonly message: "Invalid request";
4435
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4436
+ issues: zod.ZodArray<zod.ZodObject<{
4437
+ code: zod.ZodString;
4438
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4439
+ message: zod.ZodString;
4440
+ }, better_auth.$loose>>;
4441
+ }, better_auth.$strip>>;
4442
+ };
4443
+ readonly CONFLICT: {
4444
+ readonly message: "The request conflicts with existing data";
4445
+ };
4446
+ readonly INTERNAL_SERVER_ERROR: {
4447
+ readonly message: "An internal server error occurred";
4448
+ };
4449
+ }>, Record<never, never>>;
4450
+ approve: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4451
+ session: {
4452
+ id: string;
4453
+ createdAt: Date;
4454
+ updatedAt: Date;
4455
+ userId: string;
4456
+ expiresAt: Date;
4457
+ token: string;
4458
+ ipAddress?: string | null | undefined | undefined;
4459
+ userAgent?: string | null | undefined | undefined;
4460
+ impersonatedBy?: string | null | undefined;
4461
+ };
4462
+ user: {
4463
+ id: string;
4464
+ createdAt: Date;
4465
+ updatedAt: Date;
4466
+ email: string;
4467
+ emailVerified: boolean;
4468
+ name: string;
4469
+ image?: string | null | undefined | undefined;
4470
+ onboardingCompleted: boolean | null | undefined;
4471
+ linkedinVerified: boolean | null | undefined;
4472
+ linkedinVerifiedAt?: Date | null | undefined;
4473
+ linkedinId?: string | null | undefined;
4474
+ linkedinName?: string | null | undefined;
4475
+ banned: boolean | null | undefined;
4476
+ role?: string | null | undefined;
4477
+ banReason?: string | null | undefined;
4478
+ banExpires?: Date | null | undefined;
4479
+ username?: string | null | undefined;
4480
+ displayUsername?: string | null | undefined;
4481
+ };
4482
+ }>, zod.ZodObject<{
4483
+ applicationId: zod.ZodString;
4484
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4485
+ data: {
4486
+ success: boolean;
4487
+ applicationId: string;
4488
+ userId: string;
4489
+ email: string;
4490
+ };
4491
+ }, {
4492
+ data: {
4493
+ success: boolean;
4494
+ applicationId: string;
4495
+ userId: string;
4496
+ email: string;
4497
+ };
4498
+ }>, _orpc_contract.MergedErrorMap<Record<never, never>, {
4499
+ readonly UNAUTHORIZED: {
4500
+ readonly message: "You must be logged in to access this resource";
4501
+ };
4502
+ readonly FORBIDDEN: {
4503
+ readonly message: "You do not have permission to access this resource";
4504
+ };
4505
+ readonly NOT_FOUND: {
4506
+ readonly message: "The requested resource was not found";
4507
+ };
4508
+ readonly BAD_REQUEST: {
4509
+ readonly message: "Invalid request";
4510
+ readonly data: zod.ZodOptional<zod.ZodObject<{
4511
+ issues: zod.ZodArray<zod.ZodObject<{
4512
+ code: zod.ZodString;
4513
+ path: zod.ZodArray<zod.ZodUnion<readonly [zod.ZodString, zod.ZodNumber]>>;
4514
+ message: zod.ZodString;
4515
+ }, better_auth.$loose>>;
4516
+ }, better_auth.$strip>>;
4517
+ };
4518
+ readonly CONFLICT: {
4519
+ readonly message: "The request conflicts with existing data";
4520
+ };
4521
+ readonly INTERNAL_SERVER_ERROR: {
4522
+ readonly message: "An internal server error occurred";
4523
+ };
4524
+ }>, Record<never, never>>;
4525
+ reject: _orpc_server.DecoratedProcedure<_orpc_server.MergedInitialContext<BaseContext & Record<never, never>, BaseContext & Record<never, never>, BaseContext>, _orpc_server.MergedCurrentContext<BaseContext, {
4526
+ session: {
4527
+ id: string;
4528
+ createdAt: Date;
4529
+ updatedAt: Date;
4530
+ userId: string;
4531
+ expiresAt: Date;
4532
+ token: string;
4533
+ ipAddress?: string | null | undefined | undefined;
4534
+ userAgent?: string | null | undefined | undefined;
4535
+ impersonatedBy?: string | null | undefined;
4536
+ };
4537
+ user: {
4538
+ id: string;
4539
+ createdAt: Date;
4540
+ updatedAt: Date;
4541
+ email: string;
4542
+ emailVerified: boolean;
4543
+ name: string;
4544
+ image?: string | null | undefined | undefined;
4545
+ onboardingCompleted: boolean | null | undefined;
4546
+ linkedinVerified: boolean | null | undefined;
4547
+ linkedinVerifiedAt?: Date | null | undefined;
4548
+ linkedinId?: string | null | undefined;
4549
+ linkedinName?: string | null | undefined;
4550
+ banned: boolean | null | undefined;
4551
+ role?: string | null | undefined;
4552
+ banReason?: string | null | undefined;
4553
+ banExpires?: Date | null | undefined;
4554
+ username?: string | null | undefined;
4555
+ displayUsername?: string | null | undefined;
4556
+ };
4557
+ }>, zod.ZodObject<{
4558
+ applicationId: zod.ZodString;
4559
+ }, better_auth.$strip>, _orpc_contract.Schema<{
4560
+ data: {
4561
+ success: boolean;
4562
+ applicationId: string;
4563
+ };
4564
+ }, {
4565
+ data: {
4566
+ success: boolean;
4567
+ applicationId: string;
4568
+ };
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
+ };
4597
+ };
4255
4598
  };
4256
4599
  type V1Router = typeof v1Router;
4257
4600
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@framebreak/types",
3
- "version": "0.1.15",
3
+ "version": "0.1.17",
4
4
  "description": "Type definitions for the Framebreak API",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",