@deepintel-ltd/farmpro-contracts 1.11.2 → 1.11.4

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 (76) hide show
  1. package/dist/routes/admin.routes.d.ts +3947 -187
  2. package/dist/routes/admin.routes.d.ts.map +1 -1
  3. package/dist/routes/admin.routes.js +106 -4
  4. package/dist/routes/agent-workflows.routes.d.ts +140 -140
  5. package/dist/routes/agents.routes.d.ts +6 -6
  6. package/dist/routes/analytics.routes.d.ts +6 -6
  7. package/dist/routes/auth.routes.d.ts +999 -0
  8. package/dist/routes/auth.routes.d.ts.map +1 -1
  9. package/dist/routes/auth.routes.js +30 -1
  10. package/dist/routes/crop-profile.routes.d.ts +18 -18
  11. package/dist/routes/documents.routes.d.ts +58 -58
  12. package/dist/routes/equipment.routes.d.ts +62 -62
  13. package/dist/routes/extension.routes.d.ts +6 -6
  14. package/dist/routes/farm-status.routes.d.ts +6 -6
  15. package/dist/routes/farms.routes.d.ts +35 -0
  16. package/dist/routes/farms.routes.d.ts.map +1 -1
  17. package/dist/routes/fertigation.routes.d.ts +76 -76
  18. package/dist/routes/field-monitoring.routes.d.ts +34 -34
  19. package/dist/routes/field-observations.routes.d.ts +170 -170
  20. package/dist/routes/finance.routes.d.ts +6 -6
  21. package/dist/routes/geofences.routes.d.ts +8 -8
  22. package/dist/routes/irrigation.routes.d.ts +22 -22
  23. package/dist/routes/live-monitor.routes.d.ts +2 -2
  24. package/dist/routes/livestock-groups.routes.d.ts +30 -30
  25. package/dist/routes/livestock.routes.d.ts +24 -24
  26. package/dist/routes/monitoring-visualization.routes.d.ts +4 -4
  27. package/dist/routes/pest-disease-risk.routes.d.ts +48 -48
  28. package/dist/routes/prescription-maps.routes.d.ts +2 -2
  29. package/dist/routes/seasonal-plans.routes.d.ts +6 -6
  30. package/dist/routes/soil-tests.routes.d.ts +30 -30
  31. package/dist/routes/subscriptions.routes.d.ts +2 -2
  32. package/dist/routes/team-payments.routes.d.ts +36 -36
  33. package/dist/routes/team.routes.d.ts +24 -24
  34. package/dist/routes/users.routes.d.ts +14 -0
  35. package/dist/routes/users.routes.d.ts.map +1 -1
  36. package/dist/routes/weather.routes.d.ts +14 -14
  37. package/dist/routes/yield-prediction.routes.d.ts +48 -48
  38. package/dist/schemas/admin.schemas.d.ts +843 -81
  39. package/dist/schemas/admin.schemas.d.ts.map +1 -1
  40. package/dist/schemas/admin.schemas.js +58 -1
  41. package/dist/schemas/agent-workflows.schemas.d.ts +111 -111
  42. package/dist/schemas/agents.schemas.d.ts +6 -6
  43. package/dist/schemas/analytics.schemas.d.ts +12 -12
  44. package/dist/schemas/auth.schemas.d.ts +28 -0
  45. package/dist/schemas/auth.schemas.d.ts.map +1 -1
  46. package/dist/schemas/auth.schemas.js +8 -0
  47. package/dist/schemas/crop-profile.schemas.d.ts +26 -26
  48. package/dist/schemas/documents.schemas.d.ts +48 -48
  49. package/dist/schemas/equipment.schemas.d.ts +48 -48
  50. package/dist/schemas/extension.schemas.d.ts +12 -12
  51. package/dist/schemas/farm-status.schemas.d.ts +8 -8
  52. package/dist/schemas/farms.schemas.d.ts +48 -0
  53. package/dist/schemas/farms.schemas.d.ts.map +1 -1
  54. package/dist/schemas/farms.schemas.js +3 -0
  55. package/dist/schemas/fertigation.schemas.d.ts +20 -20
  56. package/dist/schemas/field-monitoring.schemas.d.ts +26 -26
  57. package/dist/schemas/field-observations.schemas.d.ts +126 -126
  58. package/dist/schemas/finance.schemas.d.ts +6 -6
  59. package/dist/schemas/geofences.schemas.d.ts +6 -6
  60. package/dist/schemas/irrigation.schemas.d.ts +12 -12
  61. package/dist/schemas/live-monitor.schemas.d.ts +2 -2
  62. package/dist/schemas/livestock-groups.schemas.d.ts +18 -18
  63. package/dist/schemas/livestock.schemas.d.ts +18 -18
  64. package/dist/schemas/monitoring-visualization.schemas.d.ts +4 -4
  65. package/dist/schemas/pest-disease-risk.schemas.d.ts +32 -32
  66. package/dist/schemas/prescription-maps.schemas.d.ts +2 -2
  67. package/dist/schemas/seasonal-plans.schemas.d.ts +12 -12
  68. package/dist/schemas/soil-tests.schemas.d.ts +28 -28
  69. package/dist/schemas/team-payments.schemas.d.ts +24 -24
  70. package/dist/schemas/team.schemas.d.ts +18 -18
  71. package/dist/schemas/users.schemas.d.ts +15 -0
  72. package/dist/schemas/users.schemas.d.ts.map +1 -1
  73. package/dist/schemas/users.schemas.js +1 -0
  74. package/dist/schemas/weather.schemas.d.ts +28 -28
  75. package/dist/schemas/yield-prediction.schemas.d.ts +8 -8
  76. package/package.json +1 -1
@@ -3612,6 +3612,1005 @@ 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
+ };
4111
+ acceptAdminInvite: {
4112
+ summary: "Accept super admin invite";
4113
+ description: "Set password from invite email token and return a session";
4114
+ method: "POST";
4115
+ body: z.ZodObject<{
4116
+ data: z.ZodObject<{
4117
+ type: z.ZodLiteral<"admin-invite-accept">;
4118
+ attributes: z.ZodObject<{
4119
+ token: z.ZodString;
4120
+ password: z.ZodString;
4121
+ }, "strip", z.ZodTypeAny, {
4122
+ password: string;
4123
+ token: string;
4124
+ }, {
4125
+ password: string;
4126
+ token: string;
4127
+ }>;
4128
+ }, "strip", z.ZodTypeAny, {
4129
+ type: "admin-invite-accept";
4130
+ attributes: {
4131
+ password: string;
4132
+ token: string;
4133
+ };
4134
+ }, {
4135
+ type: "admin-invite-accept";
4136
+ attributes: {
4137
+ password: string;
4138
+ token: string;
4139
+ };
4140
+ }>;
4141
+ }, "strip", z.ZodTypeAny, {
4142
+ data: {
4143
+ type: "admin-invite-accept";
4144
+ attributes: {
4145
+ password: string;
4146
+ token: string;
4147
+ };
4148
+ };
4149
+ }, {
4150
+ data: {
4151
+ type: "admin-invite-accept";
4152
+ attributes: {
4153
+ password: string;
4154
+ token: string;
4155
+ };
4156
+ };
4157
+ }>;
4158
+ path: "/auth/admin-invite/accept";
4159
+ responses: {
4160
+ 200: z.ZodObject<{
4161
+ data: z.ZodArray<z.ZodUnion<[z.ZodObject<{
4162
+ type: z.ZodLiteral<string>;
4163
+ id: z.ZodString;
4164
+ attributes: z.ZodObject<{
4165
+ name: z.ZodString;
4166
+ email: z.ZodString;
4167
+ phone: z.ZodNullable<z.ZodString>;
4168
+ emailVerified: z.ZodBoolean;
4169
+ avatar: z.ZodNullable<z.ZodString>;
4170
+ } & {
4171
+ createdAt: z.ZodString;
4172
+ updatedAt: z.ZodString;
4173
+ }, "strip", z.ZodTypeAny, {
4174
+ email: string;
4175
+ createdAt: string;
4176
+ updatedAt: string;
4177
+ name: string;
4178
+ phone: string | null;
4179
+ emailVerified: boolean;
4180
+ avatar: string | null;
4181
+ }, {
4182
+ email: string;
4183
+ createdAt: string;
4184
+ updatedAt: string;
4185
+ name: string;
4186
+ phone: string | null;
4187
+ emailVerified: boolean;
4188
+ avatar: string | null;
4189
+ }>;
4190
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4191
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4192
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4193
+ }, "strip", z.ZodTypeAny, {
4194
+ type: string;
4195
+ id: string;
4196
+ attributes: {
4197
+ email: string;
4198
+ createdAt: string;
4199
+ updatedAt: string;
4200
+ name: string;
4201
+ phone: string | null;
4202
+ emailVerified: boolean;
4203
+ avatar: string | null;
4204
+ };
4205
+ relationships?: Record<string, unknown> | undefined;
4206
+ links?: Record<string, string> | undefined;
4207
+ meta?: Record<string, unknown> | undefined;
4208
+ }, {
4209
+ type: string;
4210
+ id: string;
4211
+ attributes: {
4212
+ email: string;
4213
+ createdAt: string;
4214
+ updatedAt: string;
4215
+ name: string;
4216
+ phone: string | null;
4217
+ emailVerified: boolean;
4218
+ avatar: string | null;
4219
+ };
4220
+ relationships?: Record<string, unknown> | undefined;
4221
+ links?: Record<string, string> | undefined;
4222
+ meta?: Record<string, unknown> | undefined;
4223
+ }>, z.ZodObject<{
4224
+ type: z.ZodLiteral<string>;
4225
+ id: z.ZodString;
4226
+ attributes: z.ZodObject<{
4227
+ accessToken: z.ZodString;
4228
+ refreshToken: z.ZodString;
4229
+ expiresIn: z.ZodNumber;
4230
+ tokenType: z.ZodDefault<z.ZodLiteral<"Bearer">>;
4231
+ }, "strip", z.ZodTypeAny, {
4232
+ refreshToken: string;
4233
+ accessToken: string;
4234
+ expiresIn: number;
4235
+ tokenType: "Bearer";
4236
+ }, {
4237
+ refreshToken: string;
4238
+ accessToken: string;
4239
+ expiresIn: number;
4240
+ tokenType?: "Bearer" | undefined;
4241
+ }>;
4242
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4243
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
4244
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4245
+ }, "strip", z.ZodTypeAny, {
4246
+ type: string;
4247
+ id: string;
4248
+ attributes: {
4249
+ refreshToken: string;
4250
+ accessToken: string;
4251
+ expiresIn: number;
4252
+ tokenType: "Bearer";
4253
+ };
4254
+ relationships?: Record<string, unknown> | undefined;
4255
+ links?: Record<string, string> | undefined;
4256
+ meta?: Record<string, unknown> | undefined;
4257
+ }, {
4258
+ type: string;
4259
+ id: string;
4260
+ attributes: {
4261
+ refreshToken: string;
4262
+ accessToken: string;
4263
+ expiresIn: number;
4264
+ tokenType?: "Bearer" | undefined;
4265
+ };
4266
+ relationships?: Record<string, unknown> | undefined;
4267
+ links?: Record<string, string> | undefined;
4268
+ meta?: Record<string, unknown> | undefined;
4269
+ }>]>, "many">;
4270
+ meta: z.ZodOptional<z.ZodObject<{
4271
+ message: z.ZodOptional<z.ZodString>;
4272
+ }, "strip", z.ZodTypeAny, {
4273
+ message?: string | undefined;
4274
+ }, {
4275
+ message?: string | undefined;
4276
+ }>>;
4277
+ }, "strip", z.ZodTypeAny, {
4278
+ data: ({
4279
+ type: string;
4280
+ id: string;
4281
+ attributes: {
4282
+ email: string;
4283
+ createdAt: string;
4284
+ updatedAt: string;
4285
+ name: string;
4286
+ phone: string | null;
4287
+ emailVerified: boolean;
4288
+ avatar: string | null;
4289
+ };
4290
+ relationships?: Record<string, unknown> | undefined;
4291
+ links?: Record<string, string> | undefined;
4292
+ meta?: Record<string, unknown> | undefined;
4293
+ } | {
4294
+ type: string;
4295
+ id: string;
4296
+ attributes: {
4297
+ refreshToken: string;
4298
+ accessToken: string;
4299
+ expiresIn: number;
4300
+ tokenType: "Bearer";
4301
+ };
4302
+ relationships?: Record<string, unknown> | undefined;
4303
+ links?: Record<string, string> | undefined;
4304
+ meta?: Record<string, unknown> | undefined;
4305
+ })[];
4306
+ meta?: {
4307
+ message?: string | undefined;
4308
+ } | undefined;
4309
+ }, {
4310
+ data: ({
4311
+ type: string;
4312
+ id: string;
4313
+ attributes: {
4314
+ email: string;
4315
+ createdAt: string;
4316
+ updatedAt: string;
4317
+ name: string;
4318
+ phone: string | null;
4319
+ emailVerified: boolean;
4320
+ avatar: string | null;
4321
+ };
4322
+ relationships?: Record<string, unknown> | undefined;
4323
+ links?: Record<string, string> | undefined;
4324
+ meta?: Record<string, unknown> | undefined;
4325
+ } | {
4326
+ type: string;
4327
+ id: string;
4328
+ attributes: {
4329
+ refreshToken: string;
4330
+ accessToken: string;
4331
+ expiresIn: number;
4332
+ tokenType?: "Bearer" | undefined;
4333
+ };
4334
+ relationships?: Record<string, unknown> | undefined;
4335
+ links?: Record<string, string> | undefined;
4336
+ meta?: Record<string, unknown> | undefined;
4337
+ })[];
4338
+ meta?: {
4339
+ message?: string | undefined;
4340
+ } | undefined;
4341
+ }>;
4342
+ 400: z.ZodObject<{
4343
+ errors: z.ZodArray<z.ZodObject<{
4344
+ id: z.ZodOptional<z.ZodString>;
4345
+ links: z.ZodOptional<z.ZodObject<{
4346
+ about: z.ZodOptional<z.ZodString>;
4347
+ }, "strip", z.ZodTypeAny, {
4348
+ about?: string | undefined;
4349
+ }, {
4350
+ about?: string | undefined;
4351
+ }>>;
4352
+ status: z.ZodOptional<z.ZodString>;
4353
+ code: z.ZodOptional<z.ZodString>;
4354
+ title: z.ZodOptional<z.ZodString>;
4355
+ detail: z.ZodOptional<z.ZodString>;
4356
+ source: z.ZodOptional<z.ZodObject<{
4357
+ pointer: z.ZodOptional<z.ZodString>;
4358
+ parameter: z.ZodOptional<z.ZodString>;
4359
+ }, "strip", z.ZodTypeAny, {
4360
+ pointer?: string | undefined;
4361
+ parameter?: string | undefined;
4362
+ }, {
4363
+ pointer?: string | undefined;
4364
+ parameter?: string | undefined;
4365
+ }>>;
4366
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4367
+ }, "strip", z.ZodTypeAny, {
4368
+ status?: string | undefined;
4369
+ code?: string | undefined;
4370
+ id?: string | undefined;
4371
+ links?: {
4372
+ about?: string | undefined;
4373
+ } | undefined;
4374
+ meta?: Record<string, unknown> | undefined;
4375
+ title?: string | undefined;
4376
+ detail?: string | undefined;
4377
+ source?: {
4378
+ pointer?: string | undefined;
4379
+ parameter?: string | undefined;
4380
+ } | undefined;
4381
+ }, {
4382
+ status?: string | undefined;
4383
+ code?: string | undefined;
4384
+ id?: string | undefined;
4385
+ links?: {
4386
+ about?: string | undefined;
4387
+ } | undefined;
4388
+ meta?: Record<string, unknown> | undefined;
4389
+ title?: string | undefined;
4390
+ detail?: string | undefined;
4391
+ source?: {
4392
+ pointer?: string | undefined;
4393
+ parameter?: string | undefined;
4394
+ } | undefined;
4395
+ }>, "many">;
4396
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4397
+ }, "strip", z.ZodTypeAny, {
4398
+ errors: {
4399
+ status?: string | undefined;
4400
+ code?: string | undefined;
4401
+ id?: string | undefined;
4402
+ links?: {
4403
+ about?: string | undefined;
4404
+ } | undefined;
4405
+ meta?: Record<string, unknown> | undefined;
4406
+ title?: string | undefined;
4407
+ detail?: string | undefined;
4408
+ source?: {
4409
+ pointer?: string | undefined;
4410
+ parameter?: string | undefined;
4411
+ } | undefined;
4412
+ }[];
4413
+ meta?: Record<string, unknown> | undefined;
4414
+ }, {
4415
+ errors: {
4416
+ status?: string | undefined;
4417
+ code?: string | undefined;
4418
+ id?: string | undefined;
4419
+ links?: {
4420
+ about?: string | undefined;
4421
+ } | undefined;
4422
+ meta?: Record<string, unknown> | undefined;
4423
+ title?: string | undefined;
4424
+ detail?: string | undefined;
4425
+ source?: {
4426
+ pointer?: string | undefined;
4427
+ parameter?: string | undefined;
4428
+ } | undefined;
4429
+ }[];
4430
+ meta?: Record<string, unknown> | undefined;
4431
+ }>;
4432
+ 401: z.ZodObject<{
4433
+ errors: z.ZodArray<z.ZodObject<{
4434
+ id: z.ZodOptional<z.ZodString>;
4435
+ links: z.ZodOptional<z.ZodObject<{
4436
+ about: z.ZodOptional<z.ZodString>;
4437
+ }, "strip", z.ZodTypeAny, {
4438
+ about?: string | undefined;
4439
+ }, {
4440
+ about?: string | undefined;
4441
+ }>>;
4442
+ status: z.ZodOptional<z.ZodString>;
4443
+ code: z.ZodOptional<z.ZodString>;
4444
+ title: z.ZodOptional<z.ZodString>;
4445
+ detail: z.ZodOptional<z.ZodString>;
4446
+ source: z.ZodOptional<z.ZodObject<{
4447
+ pointer: z.ZodOptional<z.ZodString>;
4448
+ parameter: z.ZodOptional<z.ZodString>;
4449
+ }, "strip", z.ZodTypeAny, {
4450
+ pointer?: string | undefined;
4451
+ parameter?: string | undefined;
4452
+ }, {
4453
+ pointer?: string | undefined;
4454
+ parameter?: string | undefined;
4455
+ }>>;
4456
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4457
+ }, "strip", z.ZodTypeAny, {
4458
+ status?: string | undefined;
4459
+ code?: string | undefined;
4460
+ id?: string | undefined;
4461
+ links?: {
4462
+ about?: string | undefined;
4463
+ } | undefined;
4464
+ meta?: Record<string, unknown> | undefined;
4465
+ title?: string | undefined;
4466
+ detail?: string | undefined;
4467
+ source?: {
4468
+ pointer?: string | undefined;
4469
+ parameter?: string | undefined;
4470
+ } | undefined;
4471
+ }, {
4472
+ status?: string | undefined;
4473
+ code?: string | undefined;
4474
+ id?: string | undefined;
4475
+ links?: {
4476
+ about?: string | undefined;
4477
+ } | undefined;
4478
+ meta?: Record<string, unknown> | undefined;
4479
+ title?: string | undefined;
4480
+ detail?: string | undefined;
4481
+ source?: {
4482
+ pointer?: string | undefined;
4483
+ parameter?: string | undefined;
4484
+ } | undefined;
4485
+ }>, "many">;
4486
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4487
+ }, "strip", z.ZodTypeAny, {
4488
+ errors: {
4489
+ status?: string | undefined;
4490
+ code?: string | undefined;
4491
+ id?: string | undefined;
4492
+ links?: {
4493
+ about?: string | undefined;
4494
+ } | undefined;
4495
+ meta?: Record<string, unknown> | undefined;
4496
+ title?: string | undefined;
4497
+ detail?: string | undefined;
4498
+ source?: {
4499
+ pointer?: string | undefined;
4500
+ parameter?: string | undefined;
4501
+ } | undefined;
4502
+ }[];
4503
+ meta?: Record<string, unknown> | undefined;
4504
+ }, {
4505
+ errors: {
4506
+ status?: string | undefined;
4507
+ code?: string | undefined;
4508
+ id?: string | undefined;
4509
+ links?: {
4510
+ about?: string | undefined;
4511
+ } | undefined;
4512
+ meta?: Record<string, unknown> | undefined;
4513
+ title?: string | undefined;
4514
+ detail?: string | undefined;
4515
+ source?: {
4516
+ pointer?: string | undefined;
4517
+ parameter?: string | undefined;
4518
+ } | undefined;
4519
+ }[];
4520
+ meta?: Record<string, unknown> | undefined;
4521
+ }>;
4522
+ 422: z.ZodObject<{
4523
+ errors: z.ZodArray<z.ZodObject<{
4524
+ id: z.ZodOptional<z.ZodString>;
4525
+ links: z.ZodOptional<z.ZodObject<{
4526
+ about: z.ZodOptional<z.ZodString>;
4527
+ }, "strip", z.ZodTypeAny, {
4528
+ about?: string | undefined;
4529
+ }, {
4530
+ about?: string | undefined;
4531
+ }>>;
4532
+ status: z.ZodOptional<z.ZodString>;
4533
+ code: z.ZodOptional<z.ZodString>;
4534
+ title: z.ZodOptional<z.ZodString>;
4535
+ detail: z.ZodOptional<z.ZodString>;
4536
+ source: z.ZodOptional<z.ZodObject<{
4537
+ pointer: z.ZodOptional<z.ZodString>;
4538
+ parameter: z.ZodOptional<z.ZodString>;
4539
+ }, "strip", z.ZodTypeAny, {
4540
+ pointer?: string | undefined;
4541
+ parameter?: string | undefined;
4542
+ }, {
4543
+ pointer?: string | undefined;
4544
+ parameter?: string | undefined;
4545
+ }>>;
4546
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4547
+ }, "strip", z.ZodTypeAny, {
4548
+ status?: string | undefined;
4549
+ code?: string | undefined;
4550
+ id?: string | undefined;
4551
+ links?: {
4552
+ about?: string | undefined;
4553
+ } | undefined;
4554
+ meta?: Record<string, unknown> | undefined;
4555
+ title?: string | undefined;
4556
+ detail?: string | undefined;
4557
+ source?: {
4558
+ pointer?: string | undefined;
4559
+ parameter?: string | undefined;
4560
+ } | undefined;
4561
+ }, {
4562
+ status?: string | undefined;
4563
+ code?: string | undefined;
4564
+ id?: string | undefined;
4565
+ links?: {
4566
+ about?: string | undefined;
4567
+ } | undefined;
4568
+ meta?: Record<string, unknown> | undefined;
4569
+ title?: string | undefined;
4570
+ detail?: string | undefined;
4571
+ source?: {
4572
+ pointer?: string | undefined;
4573
+ parameter?: string | undefined;
4574
+ } | undefined;
4575
+ }>, "many">;
4576
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4577
+ }, "strip", z.ZodTypeAny, {
4578
+ errors: {
4579
+ status?: string | undefined;
4580
+ code?: string | undefined;
4581
+ id?: string | undefined;
4582
+ links?: {
4583
+ about?: string | undefined;
4584
+ } | undefined;
4585
+ meta?: Record<string, unknown> | undefined;
4586
+ title?: string | undefined;
4587
+ detail?: string | undefined;
4588
+ source?: {
4589
+ pointer?: string | undefined;
4590
+ parameter?: string | undefined;
4591
+ } | undefined;
4592
+ }[];
4593
+ meta?: Record<string, unknown> | undefined;
4594
+ }, {
4595
+ errors: {
4596
+ status?: string | undefined;
4597
+ code?: string | undefined;
4598
+ id?: string | undefined;
4599
+ links?: {
4600
+ about?: string | undefined;
4601
+ } | undefined;
4602
+ meta?: Record<string, unknown> | undefined;
4603
+ title?: string | undefined;
4604
+ detail?: string | undefined;
4605
+ source?: {
4606
+ pointer?: string | undefined;
4607
+ parameter?: string | undefined;
4608
+ } | undefined;
4609
+ }[];
4610
+ meta?: Record<string, unknown> | undefined;
4611
+ }>;
4612
+ };
4613
+ };
3615
4614
  resendVerification: {
3616
4615
  summary: "Resend verification email";
3617
4616
  description: "Resend email verification link";