@deepintel-ltd/farmpro-contracts 1.11.1 → 1.11.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"admin.routes.d.ts","sourceRoot":"","sources":["../../src/routes/admin.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAUxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FtB,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { initContract } from '@ts-rest/core';
2
2
  import { z } from 'zod';
3
- import { adminCreateUserSchema, autonomousMonitoringStatsResponseSchema, } from '../schemas/admin.schemas';
3
+ import { adminCreateUserSchema, adminLoginLinkResponseSchema, adminUserListResponseSchema, autonomousMonitoringStatsResponseSchema, } from '../schemas/admin.schemas';
4
4
  import { userResponseSchema } from '../schemas/users.schemas';
5
- import { jsonApiErrorResponseSchema } from '../schemas/common.schemas';
5
+ import { idParamSchema, jsonApiErrorResponseSchema, jsonApiPaginationQuerySchema, } from '../schemas/common.schemas';
6
6
  const c = initContract();
7
7
  export const adminRouter = c.router({
8
8
  getAutonomousMonitoringStats: {
@@ -21,6 +21,21 @@ export const adminRouter = c.router({
21
21
  summary: 'Get autonomous monitoring analytics',
22
22
  description: 'Get comprehensive analytics for the autonomous multi-agent monitoring system',
23
23
  },
24
+ listUsers: {
25
+ method: 'GET',
26
+ path: '/admin/users',
27
+ query: jsonApiPaginationQuerySchema.extend({
28
+ q: z.string().optional(),
29
+ }),
30
+ responses: {
31
+ 200: adminUserListResponseSchema,
32
+ 401: jsonApiErrorResponseSchema,
33
+ 403: jsonApiErrorResponseSchema,
34
+ 500: jsonApiErrorResponseSchema,
35
+ },
36
+ summary: 'List users (platform admin)',
37
+ description: 'Search and paginate platform users. Restricted to ADMIN_EMAILS.',
38
+ },
24
39
  createUser: {
25
40
  method: 'POST',
26
41
  path: '/admin/users',
@@ -37,6 +52,21 @@ export const adminRouter = c.router({
37
52
  summary: 'Create user (platform admin)',
38
53
  description: 'Provision a platform user with email and password. Restricted to ADMIN_EMAILS.',
39
54
  },
55
+ createLoginLink: {
56
+ method: 'POST',
57
+ path: '/admin/users/:id/login-link',
58
+ pathParams: idParamSchema,
59
+ body: z.object({}),
60
+ responses: {
61
+ 201: adminLoginLinkResponseSchema,
62
+ 401: jsonApiErrorResponseSchema,
63
+ 403: jsonApiErrorResponseSchema,
64
+ 404: jsonApiErrorResponseSchema,
65
+ 500: jsonApiErrorResponseSchema,
66
+ },
67
+ summary: 'Create one-time login link (platform admin)',
68
+ description: 'Mint a short-lived, single-use login URL for a user. Restricted to ADMIN_EMAILS.',
69
+ },
40
70
  sendPlatformDigest: {
41
71
  method: 'POST',
42
72
  path: '/admin/platform-digest/send',
@@ -3612,6 +3612,502 @@ export declare const authRouter: {
3612
3612
  }>;
3613
3613
  };
3614
3614
  };
3615
+ consumeLoginLink: {
3616
+ summary: "Consume one-time login link";
3617
+ description: "Exchange a valid one-time login token for a user session";
3618
+ method: "POST";
3619
+ body: z.ZodObject<{
3620
+ data: z.ZodObject<{
3621
+ type: z.ZodLiteral<"auth">;
3622
+ attributes: z.ZodObject<{
3623
+ token: z.ZodString;
3624
+ }, "strip", z.ZodTypeAny, {
3625
+ token: string;
3626
+ }, {
3627
+ token: string;
3628
+ }>;
3629
+ }, "strip", z.ZodTypeAny, {
3630
+ type: "auth";
3631
+ attributes: {
3632
+ token: string;
3633
+ };
3634
+ }, {
3635
+ type: "auth";
3636
+ attributes: {
3637
+ token: string;
3638
+ };
3639
+ }>;
3640
+ }, "strip", z.ZodTypeAny, {
3641
+ data: {
3642
+ type: "auth";
3643
+ attributes: {
3644
+ token: string;
3645
+ };
3646
+ };
3647
+ }, {
3648
+ data: {
3649
+ type: "auth";
3650
+ attributes: {
3651
+ token: string;
3652
+ };
3653
+ };
3654
+ }>;
3655
+ path: "/auth/login-link/consume";
3656
+ responses: {
3657
+ 200: z.ZodObject<{
3658
+ data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3659
+ type: z.ZodLiteral<string>;
3660
+ id: z.ZodString;
3661
+ attributes: z.ZodObject<{
3662
+ name: z.ZodString;
3663
+ email: z.ZodString;
3664
+ phone: z.ZodNullable<z.ZodString>;
3665
+ emailVerified: z.ZodBoolean;
3666
+ avatar: z.ZodNullable<z.ZodString>;
3667
+ } & {
3668
+ createdAt: z.ZodString;
3669
+ updatedAt: z.ZodString;
3670
+ }, "strip", z.ZodTypeAny, {
3671
+ email: string;
3672
+ createdAt: string;
3673
+ updatedAt: string;
3674
+ name: string;
3675
+ phone: string | null;
3676
+ emailVerified: boolean;
3677
+ avatar: string | null;
3678
+ }, {
3679
+ email: string;
3680
+ createdAt: string;
3681
+ updatedAt: string;
3682
+ name: string;
3683
+ phone: string | null;
3684
+ emailVerified: boolean;
3685
+ avatar: string | null;
3686
+ }>;
3687
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3688
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3689
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3690
+ }, "strip", z.ZodTypeAny, {
3691
+ type: string;
3692
+ id: string;
3693
+ attributes: {
3694
+ email: string;
3695
+ createdAt: string;
3696
+ updatedAt: string;
3697
+ name: string;
3698
+ phone: string | null;
3699
+ emailVerified: boolean;
3700
+ avatar: string | null;
3701
+ };
3702
+ relationships?: Record<string, unknown> | undefined;
3703
+ links?: Record<string, string> | undefined;
3704
+ meta?: Record<string, unknown> | undefined;
3705
+ }, {
3706
+ type: string;
3707
+ id: string;
3708
+ attributes: {
3709
+ email: string;
3710
+ createdAt: string;
3711
+ updatedAt: string;
3712
+ name: string;
3713
+ phone: string | null;
3714
+ emailVerified: boolean;
3715
+ avatar: string | null;
3716
+ };
3717
+ relationships?: Record<string, unknown> | undefined;
3718
+ links?: Record<string, string> | undefined;
3719
+ meta?: Record<string, unknown> | undefined;
3720
+ }>, z.ZodObject<{
3721
+ type: z.ZodLiteral<string>;
3722
+ id: z.ZodString;
3723
+ attributes: z.ZodObject<{
3724
+ accessToken: z.ZodString;
3725
+ refreshToken: z.ZodString;
3726
+ expiresIn: z.ZodNumber;
3727
+ tokenType: z.ZodDefault<z.ZodLiteral<"Bearer">>;
3728
+ }, "strip", z.ZodTypeAny, {
3729
+ refreshToken: string;
3730
+ accessToken: string;
3731
+ expiresIn: number;
3732
+ tokenType: "Bearer";
3733
+ }, {
3734
+ refreshToken: string;
3735
+ accessToken: string;
3736
+ expiresIn: number;
3737
+ tokenType?: "Bearer" | undefined;
3738
+ }>;
3739
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3740
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3741
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3742
+ }, "strip", z.ZodTypeAny, {
3743
+ type: string;
3744
+ id: string;
3745
+ attributes: {
3746
+ refreshToken: string;
3747
+ accessToken: string;
3748
+ expiresIn: number;
3749
+ tokenType: "Bearer";
3750
+ };
3751
+ relationships?: Record<string, unknown> | undefined;
3752
+ links?: Record<string, string> | undefined;
3753
+ meta?: Record<string, unknown> | undefined;
3754
+ }, {
3755
+ type: string;
3756
+ id: string;
3757
+ attributes: {
3758
+ refreshToken: string;
3759
+ accessToken: string;
3760
+ expiresIn: number;
3761
+ tokenType?: "Bearer" | undefined;
3762
+ };
3763
+ relationships?: Record<string, unknown> | undefined;
3764
+ links?: Record<string, string> | undefined;
3765
+ meta?: Record<string, unknown> | undefined;
3766
+ }>]>, "many">;
3767
+ meta: z.ZodOptional<z.ZodObject<{
3768
+ message: z.ZodOptional<z.ZodString>;
3769
+ }, "strip", z.ZodTypeAny, {
3770
+ message?: string | undefined;
3771
+ }, {
3772
+ message?: string | undefined;
3773
+ }>>;
3774
+ }, "strip", z.ZodTypeAny, {
3775
+ data: ({
3776
+ type: string;
3777
+ id: string;
3778
+ attributes: {
3779
+ email: string;
3780
+ createdAt: string;
3781
+ updatedAt: string;
3782
+ name: string;
3783
+ phone: string | null;
3784
+ emailVerified: boolean;
3785
+ avatar: string | null;
3786
+ };
3787
+ relationships?: Record<string, unknown> | undefined;
3788
+ links?: Record<string, string> | undefined;
3789
+ meta?: Record<string, unknown> | undefined;
3790
+ } | {
3791
+ type: string;
3792
+ id: string;
3793
+ attributes: {
3794
+ refreshToken: string;
3795
+ accessToken: string;
3796
+ expiresIn: number;
3797
+ tokenType: "Bearer";
3798
+ };
3799
+ relationships?: Record<string, unknown> | undefined;
3800
+ links?: Record<string, string> | undefined;
3801
+ meta?: Record<string, unknown> | undefined;
3802
+ })[];
3803
+ meta?: {
3804
+ message?: string | undefined;
3805
+ } | undefined;
3806
+ }, {
3807
+ data: ({
3808
+ type: string;
3809
+ id: string;
3810
+ attributes: {
3811
+ email: string;
3812
+ createdAt: string;
3813
+ updatedAt: string;
3814
+ name: string;
3815
+ phone: string | null;
3816
+ emailVerified: boolean;
3817
+ avatar: string | null;
3818
+ };
3819
+ relationships?: Record<string, unknown> | undefined;
3820
+ links?: Record<string, string> | undefined;
3821
+ meta?: Record<string, unknown> | undefined;
3822
+ } | {
3823
+ type: string;
3824
+ id: string;
3825
+ attributes: {
3826
+ refreshToken: string;
3827
+ accessToken: string;
3828
+ expiresIn: number;
3829
+ tokenType?: "Bearer" | undefined;
3830
+ };
3831
+ relationships?: Record<string, unknown> | undefined;
3832
+ links?: Record<string, string> | undefined;
3833
+ meta?: Record<string, unknown> | undefined;
3834
+ })[];
3835
+ meta?: {
3836
+ message?: string | undefined;
3837
+ } | undefined;
3838
+ }>;
3839
+ 400: z.ZodObject<{
3840
+ errors: z.ZodArray<z.ZodObject<{
3841
+ id: z.ZodOptional<z.ZodString>;
3842
+ links: z.ZodOptional<z.ZodObject<{
3843
+ about: z.ZodOptional<z.ZodString>;
3844
+ }, "strip", z.ZodTypeAny, {
3845
+ about?: string | undefined;
3846
+ }, {
3847
+ about?: string | undefined;
3848
+ }>>;
3849
+ status: z.ZodOptional<z.ZodString>;
3850
+ code: z.ZodOptional<z.ZodString>;
3851
+ title: z.ZodOptional<z.ZodString>;
3852
+ detail: z.ZodOptional<z.ZodString>;
3853
+ source: z.ZodOptional<z.ZodObject<{
3854
+ pointer: z.ZodOptional<z.ZodString>;
3855
+ parameter: z.ZodOptional<z.ZodString>;
3856
+ }, "strip", z.ZodTypeAny, {
3857
+ pointer?: string | undefined;
3858
+ parameter?: string | undefined;
3859
+ }, {
3860
+ pointer?: string | undefined;
3861
+ parameter?: string | undefined;
3862
+ }>>;
3863
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3864
+ }, "strip", z.ZodTypeAny, {
3865
+ status?: string | undefined;
3866
+ code?: string | undefined;
3867
+ id?: string | undefined;
3868
+ links?: {
3869
+ about?: string | undefined;
3870
+ } | undefined;
3871
+ meta?: Record<string, unknown> | undefined;
3872
+ title?: string | undefined;
3873
+ detail?: string | undefined;
3874
+ source?: {
3875
+ pointer?: string | undefined;
3876
+ parameter?: string | undefined;
3877
+ } | undefined;
3878
+ }, {
3879
+ status?: string | undefined;
3880
+ code?: string | undefined;
3881
+ id?: string | undefined;
3882
+ links?: {
3883
+ about?: string | undefined;
3884
+ } | undefined;
3885
+ meta?: Record<string, unknown> | undefined;
3886
+ title?: string | undefined;
3887
+ detail?: string | undefined;
3888
+ source?: {
3889
+ pointer?: string | undefined;
3890
+ parameter?: string | undefined;
3891
+ } | undefined;
3892
+ }>, "many">;
3893
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3894
+ }, "strip", z.ZodTypeAny, {
3895
+ errors: {
3896
+ status?: string | undefined;
3897
+ code?: string | undefined;
3898
+ id?: string | undefined;
3899
+ links?: {
3900
+ about?: string | undefined;
3901
+ } | undefined;
3902
+ meta?: Record<string, unknown> | undefined;
3903
+ title?: string | undefined;
3904
+ detail?: string | undefined;
3905
+ source?: {
3906
+ pointer?: string | undefined;
3907
+ parameter?: string | undefined;
3908
+ } | undefined;
3909
+ }[];
3910
+ meta?: Record<string, unknown> | undefined;
3911
+ }, {
3912
+ errors: {
3913
+ status?: string | undefined;
3914
+ code?: string | undefined;
3915
+ id?: string | undefined;
3916
+ links?: {
3917
+ about?: string | undefined;
3918
+ } | undefined;
3919
+ meta?: Record<string, unknown> | undefined;
3920
+ title?: string | undefined;
3921
+ detail?: string | undefined;
3922
+ source?: {
3923
+ pointer?: string | undefined;
3924
+ parameter?: string | undefined;
3925
+ } | undefined;
3926
+ }[];
3927
+ meta?: Record<string, unknown> | undefined;
3928
+ }>;
3929
+ 401: z.ZodObject<{
3930
+ errors: z.ZodArray<z.ZodObject<{
3931
+ id: z.ZodOptional<z.ZodString>;
3932
+ links: z.ZodOptional<z.ZodObject<{
3933
+ about: z.ZodOptional<z.ZodString>;
3934
+ }, "strip", z.ZodTypeAny, {
3935
+ about?: string | undefined;
3936
+ }, {
3937
+ about?: string | undefined;
3938
+ }>>;
3939
+ status: z.ZodOptional<z.ZodString>;
3940
+ code: z.ZodOptional<z.ZodString>;
3941
+ title: z.ZodOptional<z.ZodString>;
3942
+ detail: z.ZodOptional<z.ZodString>;
3943
+ source: z.ZodOptional<z.ZodObject<{
3944
+ pointer: z.ZodOptional<z.ZodString>;
3945
+ parameter: z.ZodOptional<z.ZodString>;
3946
+ }, "strip", z.ZodTypeAny, {
3947
+ pointer?: string | undefined;
3948
+ parameter?: string | undefined;
3949
+ }, {
3950
+ pointer?: string | undefined;
3951
+ parameter?: string | undefined;
3952
+ }>>;
3953
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3954
+ }, "strip", z.ZodTypeAny, {
3955
+ status?: string | undefined;
3956
+ code?: string | undefined;
3957
+ id?: string | undefined;
3958
+ links?: {
3959
+ about?: string | undefined;
3960
+ } | undefined;
3961
+ meta?: Record<string, unknown> | undefined;
3962
+ title?: string | undefined;
3963
+ detail?: string | undefined;
3964
+ source?: {
3965
+ pointer?: string | undefined;
3966
+ parameter?: string | undefined;
3967
+ } | undefined;
3968
+ }, {
3969
+ status?: string | undefined;
3970
+ code?: string | undefined;
3971
+ id?: string | undefined;
3972
+ links?: {
3973
+ about?: string | undefined;
3974
+ } | undefined;
3975
+ meta?: Record<string, unknown> | undefined;
3976
+ title?: string | undefined;
3977
+ detail?: string | undefined;
3978
+ source?: {
3979
+ pointer?: string | undefined;
3980
+ parameter?: string | undefined;
3981
+ } | undefined;
3982
+ }>, "many">;
3983
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3984
+ }, "strip", z.ZodTypeAny, {
3985
+ errors: {
3986
+ status?: string | undefined;
3987
+ code?: string | undefined;
3988
+ id?: string | undefined;
3989
+ links?: {
3990
+ about?: string | undefined;
3991
+ } | undefined;
3992
+ meta?: Record<string, unknown> | undefined;
3993
+ title?: string | undefined;
3994
+ detail?: string | undefined;
3995
+ source?: {
3996
+ pointer?: string | undefined;
3997
+ parameter?: string | undefined;
3998
+ } | undefined;
3999
+ }[];
4000
+ meta?: Record<string, unknown> | undefined;
4001
+ }, {
4002
+ errors: {
4003
+ status?: string | undefined;
4004
+ code?: string | undefined;
4005
+ id?: string | undefined;
4006
+ links?: {
4007
+ about?: string | undefined;
4008
+ } | undefined;
4009
+ meta?: Record<string, unknown> | undefined;
4010
+ title?: string | undefined;
4011
+ detail?: string | undefined;
4012
+ source?: {
4013
+ pointer?: string | undefined;
4014
+ parameter?: string | undefined;
4015
+ } | undefined;
4016
+ }[];
4017
+ meta?: Record<string, unknown> | undefined;
4018
+ }>;
4019
+ 422: z.ZodObject<{
4020
+ errors: z.ZodArray<z.ZodObject<{
4021
+ id: z.ZodOptional<z.ZodString>;
4022
+ links: z.ZodOptional<z.ZodObject<{
4023
+ about: z.ZodOptional<z.ZodString>;
4024
+ }, "strip", z.ZodTypeAny, {
4025
+ about?: string | undefined;
4026
+ }, {
4027
+ about?: string | undefined;
4028
+ }>>;
4029
+ status: z.ZodOptional<z.ZodString>;
4030
+ code: z.ZodOptional<z.ZodString>;
4031
+ title: z.ZodOptional<z.ZodString>;
4032
+ detail: z.ZodOptional<z.ZodString>;
4033
+ source: z.ZodOptional<z.ZodObject<{
4034
+ pointer: z.ZodOptional<z.ZodString>;
4035
+ parameter: z.ZodOptional<z.ZodString>;
4036
+ }, "strip", z.ZodTypeAny, {
4037
+ pointer?: string | undefined;
4038
+ parameter?: string | undefined;
4039
+ }, {
4040
+ pointer?: string | undefined;
4041
+ parameter?: string | undefined;
4042
+ }>>;
4043
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4044
+ }, "strip", z.ZodTypeAny, {
4045
+ status?: string | undefined;
4046
+ code?: string | undefined;
4047
+ id?: string | undefined;
4048
+ links?: {
4049
+ about?: string | undefined;
4050
+ } | undefined;
4051
+ meta?: Record<string, unknown> | undefined;
4052
+ title?: string | undefined;
4053
+ detail?: string | undefined;
4054
+ source?: {
4055
+ pointer?: string | undefined;
4056
+ parameter?: string | undefined;
4057
+ } | undefined;
4058
+ }, {
4059
+ status?: string | undefined;
4060
+ code?: string | undefined;
4061
+ id?: string | undefined;
4062
+ links?: {
4063
+ about?: string | undefined;
4064
+ } | undefined;
4065
+ meta?: Record<string, unknown> | undefined;
4066
+ title?: string | undefined;
4067
+ detail?: string | undefined;
4068
+ source?: {
4069
+ pointer?: string | undefined;
4070
+ parameter?: string | undefined;
4071
+ } | undefined;
4072
+ }>, "many">;
4073
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4074
+ }, "strip", z.ZodTypeAny, {
4075
+ errors: {
4076
+ status?: string | undefined;
4077
+ code?: string | undefined;
4078
+ id?: string | undefined;
4079
+ links?: {
4080
+ about?: string | undefined;
4081
+ } | undefined;
4082
+ meta?: Record<string, unknown> | undefined;
4083
+ title?: string | undefined;
4084
+ detail?: string | undefined;
4085
+ source?: {
4086
+ pointer?: string | undefined;
4087
+ parameter?: string | undefined;
4088
+ } | undefined;
4089
+ }[];
4090
+ meta?: Record<string, unknown> | undefined;
4091
+ }, {
4092
+ errors: {
4093
+ status?: string | undefined;
4094
+ code?: string | undefined;
4095
+ id?: string | undefined;
4096
+ links?: {
4097
+ about?: string | undefined;
4098
+ } | undefined;
4099
+ meta?: Record<string, unknown> | undefined;
4100
+ title?: string | undefined;
4101
+ detail?: string | undefined;
4102
+ source?: {
4103
+ pointer?: string | undefined;
4104
+ parameter?: string | undefined;
4105
+ } | undefined;
4106
+ }[];
4107
+ meta?: Record<string, unknown> | undefined;
4108
+ }>;
4109
+ };
4110
+ };
3615
4111
  resendVerification: {
3616
4112
  summary: "Resend verification email";
3617
4113
  description: "Resend email verification link";
@@ -1 +1 @@
1
- {"version":3,"file":"auth.routes.d.ts","sourceRoot":"","sources":["../../src/routes/auth.routes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0BxB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwMrB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { initContract } from '@ts-rest/core';
2
2
  import { z } from 'zod';
3
- import { loginSchema, signupSchema, googleAuthInitiateSchema, googleAuthCallbackSchema, refreshTokenSchema, requestPasswordResetSchema, resetPasswordSchema, changePasswordSchema, verifyEmailSchema, resendVerificationSchema, logoutSchema, completeOnboardingSchema, authResponseSchema, googleAuthInitiateResponseSchema, refreshTokenResponseSchema, passwordResetResponseSchema, logoutResponseSchema, emailVerificationResponseSchema, onboardingStatusResponseSchema, } from '../schemas/auth.schemas';
3
+ import { loginSchema, signupSchema, googleAuthInitiateSchema, googleAuthCallbackSchema, refreshTokenSchema, requestPasswordResetSchema, resetPasswordSchema, changePasswordSchema, verifyEmailSchema, consumeLoginLinkSchema, resendVerificationSchema, logoutSchema, completeOnboardingSchema, authResponseSchema, googleAuthInitiateResponseSchema, refreshTokenResponseSchema, passwordResetResponseSchema, logoutResponseSchema, emailVerificationResponseSchema, onboardingStatusResponseSchema, } from '../schemas/auth.schemas';
4
4
  import { jsonApiErrorResponseSchema, jsonApiSuccessResponseSchema } from '../schemas/common.schemas';
5
5
  const c = initContract();
6
6
  export const authRouter = c.router({
@@ -139,6 +139,20 @@ export const authRouter = c.router({
139
139
  summary: 'Verify email address',
140
140
  description: 'Verify email address using token from email',
141
141
  },
142
+ // Consume one-time admin login link
143
+ consumeLoginLink: {
144
+ method: 'POST',
145
+ path: '/auth/login-link/consume',
146
+ body: z.object({ data: consumeLoginLinkSchema }),
147
+ responses: {
148
+ 200: authResponseSchema,
149
+ 400: jsonApiErrorResponseSchema,
150
+ 401: jsonApiErrorResponseSchema,
151
+ 422: jsonApiErrorResponseSchema,
152
+ },
153
+ summary: 'Consume one-time login link',
154
+ description: 'Exchange a valid one-time login token for a user session',
155
+ },
142
156
  // Resend verification email
143
157
  resendVerification: {
144
158
  method: 'POST',