@framebreak/types 0.1.16 → 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.
- package/dist/index.d.ts +336 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4259,6 +4259,342 @@ declare const v1Router: {
|
|
|
4259
4259
|
};
|
|
4260
4260
|
}>, Record<never, never>>;
|
|
4261
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
|
+
};
|
|
4262
4598
|
};
|
|
4263
4599
|
type V1Router = typeof v1Router;
|
|
4264
4600
|
|