@deepintel-ltd/farmpro-contracts 1.7.3 → 1.7.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.
@@ -717,5 +717,2210 @@ export declare const usersRouter: {
717
717
  }>;
718
718
  };
719
719
  };
720
+ getPhoneLinks: {
721
+ summary: "Get linked phones";
722
+ description: "Get all phone numbers linked to the user account";
723
+ method: "GET";
724
+ path: "/user/phone-links";
725
+ responses: {
726
+ 200: z.ZodObject<{
727
+ data: z.ZodArray<z.ZodObject<{
728
+ type: z.ZodLiteral<string>;
729
+ id: z.ZodString;
730
+ attributes: z.ZodObject<{
731
+ phoneNumber: z.ZodString;
732
+ whatsappId: z.ZodNullable<z.ZodString>;
733
+ isVerified: z.ZodBoolean;
734
+ defaultFarmId: z.ZodNullable<z.ZodString>;
735
+ language: z.ZodString;
736
+ } & {
737
+ createdAt: z.ZodString;
738
+ updatedAt: z.ZodString;
739
+ }, "strip", z.ZodTypeAny, {
740
+ createdAt: string;
741
+ updatedAt: string;
742
+ phoneNumber: string;
743
+ whatsappId: string | null;
744
+ isVerified: boolean;
745
+ defaultFarmId: string | null;
746
+ language: string;
747
+ }, {
748
+ createdAt: string;
749
+ updatedAt: string;
750
+ phoneNumber: string;
751
+ whatsappId: string | null;
752
+ isVerified: boolean;
753
+ defaultFarmId: string | null;
754
+ language: string;
755
+ }>;
756
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
757
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
758
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
759
+ }, "strip", z.ZodTypeAny, {
760
+ type: string;
761
+ id: string;
762
+ attributes: {
763
+ createdAt: string;
764
+ updatedAt: string;
765
+ phoneNumber: string;
766
+ whatsappId: string | null;
767
+ isVerified: boolean;
768
+ defaultFarmId: string | null;
769
+ language: string;
770
+ };
771
+ relationships?: Record<string, unknown> | undefined;
772
+ links?: Record<string, string> | undefined;
773
+ meta?: Record<string, unknown> | undefined;
774
+ }, {
775
+ type: string;
776
+ id: string;
777
+ attributes: {
778
+ createdAt: string;
779
+ updatedAt: string;
780
+ phoneNumber: string;
781
+ whatsappId: string | null;
782
+ isVerified: boolean;
783
+ defaultFarmId: string | null;
784
+ language: string;
785
+ };
786
+ relationships?: Record<string, unknown> | undefined;
787
+ links?: Record<string, string> | undefined;
788
+ meta?: Record<string, unknown> | undefined;
789
+ }>, "many">;
790
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
791
+ }, "strip", z.ZodTypeAny, {
792
+ data: {
793
+ type: string;
794
+ id: string;
795
+ attributes: {
796
+ createdAt: string;
797
+ updatedAt: string;
798
+ phoneNumber: string;
799
+ whatsappId: string | null;
800
+ isVerified: boolean;
801
+ defaultFarmId: string | null;
802
+ language: string;
803
+ };
804
+ relationships?: Record<string, unknown> | undefined;
805
+ links?: Record<string, string> | undefined;
806
+ meta?: Record<string, unknown> | undefined;
807
+ }[];
808
+ meta?: Record<string, unknown> | undefined;
809
+ }, {
810
+ data: {
811
+ type: string;
812
+ id: string;
813
+ attributes: {
814
+ createdAt: string;
815
+ updatedAt: string;
816
+ phoneNumber: string;
817
+ whatsappId: string | null;
818
+ isVerified: boolean;
819
+ defaultFarmId: string | null;
820
+ language: string;
821
+ };
822
+ relationships?: Record<string, unknown> | undefined;
823
+ links?: Record<string, string> | undefined;
824
+ meta?: Record<string, unknown> | undefined;
825
+ }[];
826
+ meta?: Record<string, unknown> | undefined;
827
+ }>;
828
+ 401: z.ZodObject<{
829
+ errors: z.ZodArray<z.ZodObject<{
830
+ id: z.ZodOptional<z.ZodString>;
831
+ links: z.ZodOptional<z.ZodObject<{
832
+ about: z.ZodOptional<z.ZodString>;
833
+ }, "strip", z.ZodTypeAny, {
834
+ about?: string | undefined;
835
+ }, {
836
+ about?: string | undefined;
837
+ }>>;
838
+ status: z.ZodOptional<z.ZodString>;
839
+ code: z.ZodOptional<z.ZodString>;
840
+ title: z.ZodOptional<z.ZodString>;
841
+ detail: z.ZodOptional<z.ZodString>;
842
+ source: z.ZodOptional<z.ZodObject<{
843
+ pointer: z.ZodOptional<z.ZodString>;
844
+ parameter: z.ZodOptional<z.ZodString>;
845
+ }, "strip", z.ZodTypeAny, {
846
+ pointer?: string | undefined;
847
+ parameter?: string | undefined;
848
+ }, {
849
+ pointer?: string | undefined;
850
+ parameter?: string | undefined;
851
+ }>>;
852
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
853
+ }, "strip", z.ZodTypeAny, {
854
+ status?: string | undefined;
855
+ code?: string | undefined;
856
+ id?: string | undefined;
857
+ links?: {
858
+ about?: string | undefined;
859
+ } | undefined;
860
+ meta?: Record<string, unknown> | undefined;
861
+ title?: string | undefined;
862
+ detail?: string | undefined;
863
+ source?: {
864
+ pointer?: string | undefined;
865
+ parameter?: string | undefined;
866
+ } | undefined;
867
+ }, {
868
+ status?: string | undefined;
869
+ code?: string | undefined;
870
+ id?: string | undefined;
871
+ links?: {
872
+ about?: string | undefined;
873
+ } | undefined;
874
+ meta?: Record<string, unknown> | undefined;
875
+ title?: string | undefined;
876
+ detail?: string | undefined;
877
+ source?: {
878
+ pointer?: string | undefined;
879
+ parameter?: string | undefined;
880
+ } | undefined;
881
+ }>, "many">;
882
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
883
+ }, "strip", z.ZodTypeAny, {
884
+ errors: {
885
+ status?: string | undefined;
886
+ code?: string | undefined;
887
+ id?: string | undefined;
888
+ links?: {
889
+ about?: string | undefined;
890
+ } | undefined;
891
+ meta?: Record<string, unknown> | undefined;
892
+ title?: string | undefined;
893
+ detail?: string | undefined;
894
+ source?: {
895
+ pointer?: string | undefined;
896
+ parameter?: string | undefined;
897
+ } | undefined;
898
+ }[];
899
+ meta?: Record<string, unknown> | undefined;
900
+ }, {
901
+ errors: {
902
+ status?: string | undefined;
903
+ code?: string | undefined;
904
+ id?: string | undefined;
905
+ links?: {
906
+ about?: string | undefined;
907
+ } | undefined;
908
+ meta?: Record<string, unknown> | undefined;
909
+ title?: string | undefined;
910
+ detail?: string | undefined;
911
+ source?: {
912
+ pointer?: string | undefined;
913
+ parameter?: string | undefined;
914
+ } | undefined;
915
+ }[];
916
+ meta?: Record<string, unknown> | undefined;
917
+ }>;
918
+ };
919
+ };
920
+ linkPhone: {
921
+ summary: "Link phone number";
922
+ description: "Link a new phone number to the user account. A verification code will be sent.";
923
+ method: "POST";
924
+ body: z.ZodObject<{
925
+ data: z.ZodObject<{
926
+ type: z.ZodLiteral<"phone-links">;
927
+ attributes: z.ZodObject<{
928
+ phoneNumber: z.ZodString;
929
+ defaultFarmId: z.ZodOptional<z.ZodString>;
930
+ language: z.ZodDefault<z.ZodString>;
931
+ }, "strip", z.ZodTypeAny, {
932
+ phoneNumber: string;
933
+ language: string;
934
+ defaultFarmId?: string | undefined;
935
+ }, {
936
+ phoneNumber: string;
937
+ defaultFarmId?: string | undefined;
938
+ language?: string | undefined;
939
+ }>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ type: "phone-links";
942
+ attributes: {
943
+ phoneNumber: string;
944
+ language: string;
945
+ defaultFarmId?: string | undefined;
946
+ };
947
+ }, {
948
+ type: "phone-links";
949
+ attributes: {
950
+ phoneNumber: string;
951
+ defaultFarmId?: string | undefined;
952
+ language?: string | undefined;
953
+ };
954
+ }>;
955
+ }, "strip", z.ZodTypeAny, {
956
+ data: {
957
+ type: "phone-links";
958
+ attributes: {
959
+ phoneNumber: string;
960
+ language: string;
961
+ defaultFarmId?: string | undefined;
962
+ };
963
+ };
964
+ }, {
965
+ data: {
966
+ type: "phone-links";
967
+ attributes: {
968
+ phoneNumber: string;
969
+ defaultFarmId?: string | undefined;
970
+ language?: string | undefined;
971
+ };
972
+ };
973
+ }>;
974
+ path: "/user/phone-links";
975
+ responses: {
976
+ 201: z.ZodObject<{
977
+ data: z.ZodObject<{
978
+ type: z.ZodLiteral<string>;
979
+ id: z.ZodString;
980
+ attributes: z.ZodObject<{
981
+ phoneNumber: z.ZodString;
982
+ whatsappId: z.ZodNullable<z.ZodString>;
983
+ isVerified: z.ZodBoolean;
984
+ defaultFarmId: z.ZodNullable<z.ZodString>;
985
+ language: z.ZodString;
986
+ } & {
987
+ createdAt: z.ZodString;
988
+ updatedAt: z.ZodString;
989
+ }, "strip", z.ZodTypeAny, {
990
+ createdAt: string;
991
+ updatedAt: string;
992
+ phoneNumber: string;
993
+ whatsappId: string | null;
994
+ isVerified: boolean;
995
+ defaultFarmId: string | null;
996
+ language: string;
997
+ }, {
998
+ createdAt: string;
999
+ updatedAt: string;
1000
+ phoneNumber: string;
1001
+ whatsappId: string | null;
1002
+ isVerified: boolean;
1003
+ defaultFarmId: string | null;
1004
+ language: string;
1005
+ }>;
1006
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1007
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1008
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1009
+ }, "strip", z.ZodTypeAny, {
1010
+ type: string;
1011
+ id: string;
1012
+ attributes: {
1013
+ createdAt: string;
1014
+ updatedAt: string;
1015
+ phoneNumber: string;
1016
+ whatsappId: string | null;
1017
+ isVerified: boolean;
1018
+ defaultFarmId: string | null;
1019
+ language: string;
1020
+ };
1021
+ relationships?: Record<string, unknown> | undefined;
1022
+ links?: Record<string, string> | undefined;
1023
+ meta?: Record<string, unknown> | undefined;
1024
+ }, {
1025
+ type: string;
1026
+ id: string;
1027
+ attributes: {
1028
+ createdAt: string;
1029
+ updatedAt: string;
1030
+ phoneNumber: string;
1031
+ whatsappId: string | null;
1032
+ isVerified: boolean;
1033
+ defaultFarmId: string | null;
1034
+ language: string;
1035
+ };
1036
+ relationships?: Record<string, unknown> | undefined;
1037
+ links?: Record<string, string> | undefined;
1038
+ meta?: Record<string, unknown> | undefined;
1039
+ }>;
1040
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1041
+ type: z.ZodString;
1042
+ id: z.ZodString;
1043
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1044
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1045
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1046
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1047
+ }, "strip", z.ZodTypeAny, {
1048
+ type: string;
1049
+ id: string;
1050
+ attributes?: Record<string, unknown> | undefined;
1051
+ relationships?: Record<string, unknown> | undefined;
1052
+ links?: Record<string, string> | undefined;
1053
+ meta?: Record<string, unknown> | undefined;
1054
+ }, {
1055
+ type: string;
1056
+ id: string;
1057
+ attributes?: Record<string, unknown> | undefined;
1058
+ relationships?: Record<string, unknown> | undefined;
1059
+ links?: Record<string, string> | undefined;
1060
+ meta?: Record<string, unknown> | undefined;
1061
+ }>, "many">>;
1062
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1063
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1064
+ }, "strip", z.ZodTypeAny, {
1065
+ data: {
1066
+ type: string;
1067
+ id: string;
1068
+ attributes: {
1069
+ createdAt: string;
1070
+ updatedAt: string;
1071
+ phoneNumber: string;
1072
+ whatsappId: string | null;
1073
+ isVerified: boolean;
1074
+ defaultFarmId: string | null;
1075
+ language: string;
1076
+ };
1077
+ relationships?: Record<string, unknown> | undefined;
1078
+ links?: Record<string, string> | undefined;
1079
+ meta?: Record<string, unknown> | undefined;
1080
+ };
1081
+ links?: Record<string, string> | undefined;
1082
+ meta?: Record<string, unknown> | undefined;
1083
+ included?: {
1084
+ type: string;
1085
+ id: string;
1086
+ attributes?: Record<string, unknown> | undefined;
1087
+ relationships?: Record<string, unknown> | undefined;
1088
+ links?: Record<string, string> | undefined;
1089
+ meta?: Record<string, unknown> | undefined;
1090
+ }[] | undefined;
1091
+ }, {
1092
+ data: {
1093
+ type: string;
1094
+ id: string;
1095
+ attributes: {
1096
+ createdAt: string;
1097
+ updatedAt: string;
1098
+ phoneNumber: string;
1099
+ whatsappId: string | null;
1100
+ isVerified: boolean;
1101
+ defaultFarmId: string | null;
1102
+ language: string;
1103
+ };
1104
+ relationships?: Record<string, unknown> | undefined;
1105
+ links?: Record<string, string> | undefined;
1106
+ meta?: Record<string, unknown> | undefined;
1107
+ };
1108
+ links?: Record<string, string> | undefined;
1109
+ meta?: Record<string, unknown> | undefined;
1110
+ included?: {
1111
+ type: string;
1112
+ id: string;
1113
+ attributes?: Record<string, unknown> | undefined;
1114
+ relationships?: Record<string, unknown> | undefined;
1115
+ links?: Record<string, string> | undefined;
1116
+ meta?: Record<string, unknown> | undefined;
1117
+ }[] | undefined;
1118
+ }>;
1119
+ 400: z.ZodObject<{
1120
+ errors: z.ZodArray<z.ZodObject<{
1121
+ id: z.ZodOptional<z.ZodString>;
1122
+ links: z.ZodOptional<z.ZodObject<{
1123
+ about: z.ZodOptional<z.ZodString>;
1124
+ }, "strip", z.ZodTypeAny, {
1125
+ about?: string | undefined;
1126
+ }, {
1127
+ about?: string | undefined;
1128
+ }>>;
1129
+ status: z.ZodOptional<z.ZodString>;
1130
+ code: z.ZodOptional<z.ZodString>;
1131
+ title: z.ZodOptional<z.ZodString>;
1132
+ detail: z.ZodOptional<z.ZodString>;
1133
+ source: z.ZodOptional<z.ZodObject<{
1134
+ pointer: z.ZodOptional<z.ZodString>;
1135
+ parameter: z.ZodOptional<z.ZodString>;
1136
+ }, "strip", z.ZodTypeAny, {
1137
+ pointer?: string | undefined;
1138
+ parameter?: string | undefined;
1139
+ }, {
1140
+ pointer?: string | undefined;
1141
+ parameter?: string | undefined;
1142
+ }>>;
1143
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1144
+ }, "strip", z.ZodTypeAny, {
1145
+ status?: string | undefined;
1146
+ code?: string | undefined;
1147
+ id?: string | undefined;
1148
+ links?: {
1149
+ about?: string | undefined;
1150
+ } | undefined;
1151
+ meta?: Record<string, unknown> | undefined;
1152
+ title?: string | undefined;
1153
+ detail?: string | undefined;
1154
+ source?: {
1155
+ pointer?: string | undefined;
1156
+ parameter?: string | undefined;
1157
+ } | undefined;
1158
+ }, {
1159
+ status?: string | undefined;
1160
+ code?: string | undefined;
1161
+ id?: string | undefined;
1162
+ links?: {
1163
+ about?: string | undefined;
1164
+ } | undefined;
1165
+ meta?: Record<string, unknown> | undefined;
1166
+ title?: string | undefined;
1167
+ detail?: string | undefined;
1168
+ source?: {
1169
+ pointer?: string | undefined;
1170
+ parameter?: string | undefined;
1171
+ } | undefined;
1172
+ }>, "many">;
1173
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ errors: {
1176
+ status?: string | undefined;
1177
+ code?: string | undefined;
1178
+ id?: string | undefined;
1179
+ links?: {
1180
+ about?: string | undefined;
1181
+ } | undefined;
1182
+ meta?: Record<string, unknown> | undefined;
1183
+ title?: string | undefined;
1184
+ detail?: string | undefined;
1185
+ source?: {
1186
+ pointer?: string | undefined;
1187
+ parameter?: string | undefined;
1188
+ } | undefined;
1189
+ }[];
1190
+ meta?: Record<string, unknown> | undefined;
1191
+ }, {
1192
+ errors: {
1193
+ status?: string | undefined;
1194
+ code?: string | undefined;
1195
+ id?: string | undefined;
1196
+ links?: {
1197
+ about?: string | undefined;
1198
+ } | undefined;
1199
+ meta?: Record<string, unknown> | undefined;
1200
+ title?: string | undefined;
1201
+ detail?: string | undefined;
1202
+ source?: {
1203
+ pointer?: string | undefined;
1204
+ parameter?: string | undefined;
1205
+ } | undefined;
1206
+ }[];
1207
+ meta?: Record<string, unknown> | undefined;
1208
+ }>;
1209
+ 401: z.ZodObject<{
1210
+ errors: z.ZodArray<z.ZodObject<{
1211
+ id: z.ZodOptional<z.ZodString>;
1212
+ links: z.ZodOptional<z.ZodObject<{
1213
+ about: z.ZodOptional<z.ZodString>;
1214
+ }, "strip", z.ZodTypeAny, {
1215
+ about?: string | undefined;
1216
+ }, {
1217
+ about?: string | undefined;
1218
+ }>>;
1219
+ status: z.ZodOptional<z.ZodString>;
1220
+ code: z.ZodOptional<z.ZodString>;
1221
+ title: z.ZodOptional<z.ZodString>;
1222
+ detail: z.ZodOptional<z.ZodString>;
1223
+ source: z.ZodOptional<z.ZodObject<{
1224
+ pointer: z.ZodOptional<z.ZodString>;
1225
+ parameter: z.ZodOptional<z.ZodString>;
1226
+ }, "strip", z.ZodTypeAny, {
1227
+ pointer?: string | undefined;
1228
+ parameter?: string | undefined;
1229
+ }, {
1230
+ pointer?: string | undefined;
1231
+ parameter?: string | undefined;
1232
+ }>>;
1233
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1234
+ }, "strip", z.ZodTypeAny, {
1235
+ status?: string | undefined;
1236
+ code?: string | undefined;
1237
+ id?: string | undefined;
1238
+ links?: {
1239
+ about?: string | undefined;
1240
+ } | undefined;
1241
+ meta?: Record<string, unknown> | undefined;
1242
+ title?: string | undefined;
1243
+ detail?: string | undefined;
1244
+ source?: {
1245
+ pointer?: string | undefined;
1246
+ parameter?: string | undefined;
1247
+ } | undefined;
1248
+ }, {
1249
+ status?: string | undefined;
1250
+ code?: string | undefined;
1251
+ id?: string | undefined;
1252
+ links?: {
1253
+ about?: string | undefined;
1254
+ } | undefined;
1255
+ meta?: Record<string, unknown> | undefined;
1256
+ title?: string | undefined;
1257
+ detail?: string | undefined;
1258
+ source?: {
1259
+ pointer?: string | undefined;
1260
+ parameter?: string | undefined;
1261
+ } | undefined;
1262
+ }>, "many">;
1263
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1264
+ }, "strip", z.ZodTypeAny, {
1265
+ errors: {
1266
+ status?: string | undefined;
1267
+ code?: string | undefined;
1268
+ id?: string | undefined;
1269
+ links?: {
1270
+ about?: string | undefined;
1271
+ } | undefined;
1272
+ meta?: Record<string, unknown> | undefined;
1273
+ title?: string | undefined;
1274
+ detail?: string | undefined;
1275
+ source?: {
1276
+ pointer?: string | undefined;
1277
+ parameter?: string | undefined;
1278
+ } | undefined;
1279
+ }[];
1280
+ meta?: Record<string, unknown> | undefined;
1281
+ }, {
1282
+ errors: {
1283
+ status?: string | undefined;
1284
+ code?: string | undefined;
1285
+ id?: string | undefined;
1286
+ links?: {
1287
+ about?: string | undefined;
1288
+ } | undefined;
1289
+ meta?: Record<string, unknown> | undefined;
1290
+ title?: string | undefined;
1291
+ detail?: string | undefined;
1292
+ source?: {
1293
+ pointer?: string | undefined;
1294
+ parameter?: string | undefined;
1295
+ } | undefined;
1296
+ }[];
1297
+ meta?: Record<string, unknown> | undefined;
1298
+ }>;
1299
+ 409: z.ZodObject<{
1300
+ errors: z.ZodArray<z.ZodObject<{
1301
+ id: z.ZodOptional<z.ZodString>;
1302
+ links: z.ZodOptional<z.ZodObject<{
1303
+ about: z.ZodOptional<z.ZodString>;
1304
+ }, "strip", z.ZodTypeAny, {
1305
+ about?: string | undefined;
1306
+ }, {
1307
+ about?: string | undefined;
1308
+ }>>;
1309
+ status: z.ZodOptional<z.ZodString>;
1310
+ code: z.ZodOptional<z.ZodString>;
1311
+ title: z.ZodOptional<z.ZodString>;
1312
+ detail: z.ZodOptional<z.ZodString>;
1313
+ source: z.ZodOptional<z.ZodObject<{
1314
+ pointer: z.ZodOptional<z.ZodString>;
1315
+ parameter: z.ZodOptional<z.ZodString>;
1316
+ }, "strip", z.ZodTypeAny, {
1317
+ pointer?: string | undefined;
1318
+ parameter?: string | undefined;
1319
+ }, {
1320
+ pointer?: string | undefined;
1321
+ parameter?: string | undefined;
1322
+ }>>;
1323
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1324
+ }, "strip", z.ZodTypeAny, {
1325
+ status?: string | undefined;
1326
+ code?: string | undefined;
1327
+ id?: string | undefined;
1328
+ links?: {
1329
+ about?: string | undefined;
1330
+ } | undefined;
1331
+ meta?: Record<string, unknown> | undefined;
1332
+ title?: string | undefined;
1333
+ detail?: string | undefined;
1334
+ source?: {
1335
+ pointer?: string | undefined;
1336
+ parameter?: string | undefined;
1337
+ } | undefined;
1338
+ }, {
1339
+ status?: string | undefined;
1340
+ code?: string | undefined;
1341
+ id?: string | undefined;
1342
+ links?: {
1343
+ about?: string | undefined;
1344
+ } | undefined;
1345
+ meta?: Record<string, unknown> | undefined;
1346
+ title?: string | undefined;
1347
+ detail?: string | undefined;
1348
+ source?: {
1349
+ pointer?: string | undefined;
1350
+ parameter?: string | undefined;
1351
+ } | undefined;
1352
+ }>, "many">;
1353
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1354
+ }, "strip", z.ZodTypeAny, {
1355
+ errors: {
1356
+ status?: string | undefined;
1357
+ code?: string | undefined;
1358
+ id?: string | undefined;
1359
+ links?: {
1360
+ about?: string | undefined;
1361
+ } | undefined;
1362
+ meta?: Record<string, unknown> | undefined;
1363
+ title?: string | undefined;
1364
+ detail?: string | undefined;
1365
+ source?: {
1366
+ pointer?: string | undefined;
1367
+ parameter?: string | undefined;
1368
+ } | undefined;
1369
+ }[];
1370
+ meta?: Record<string, unknown> | undefined;
1371
+ }, {
1372
+ errors: {
1373
+ status?: string | undefined;
1374
+ code?: string | undefined;
1375
+ id?: string | undefined;
1376
+ links?: {
1377
+ about?: string | undefined;
1378
+ } | undefined;
1379
+ meta?: Record<string, unknown> | undefined;
1380
+ title?: string | undefined;
1381
+ detail?: string | undefined;
1382
+ source?: {
1383
+ pointer?: string | undefined;
1384
+ parameter?: string | undefined;
1385
+ } | undefined;
1386
+ }[];
1387
+ meta?: Record<string, unknown> | undefined;
1388
+ }>;
1389
+ };
1390
+ };
1391
+ verifyPhone: {
1392
+ pathParams: z.ZodObject<{
1393
+ id: z.ZodString;
1394
+ }, "strip", z.ZodTypeAny, {
1395
+ id: string;
1396
+ }, {
1397
+ id: string;
1398
+ }>;
1399
+ summary: "Verify phone link";
1400
+ description: "Verify a phone link using the code sent via SMS";
1401
+ method: "POST";
1402
+ body: z.ZodObject<{
1403
+ data: z.ZodObject<{
1404
+ type: z.ZodLiteral<"phone-links">;
1405
+ id: z.ZodString;
1406
+ attributes: z.ZodObject<{
1407
+ code: z.ZodString;
1408
+ }, "strip", z.ZodTypeAny, {
1409
+ code: string;
1410
+ }, {
1411
+ code: string;
1412
+ }>;
1413
+ }, "strip", z.ZodTypeAny, {
1414
+ type: "phone-links";
1415
+ id: string;
1416
+ attributes: {
1417
+ code: string;
1418
+ };
1419
+ }, {
1420
+ type: "phone-links";
1421
+ id: string;
1422
+ attributes: {
1423
+ code: string;
1424
+ };
1425
+ }>;
1426
+ }, "strip", z.ZodTypeAny, {
1427
+ data: {
1428
+ type: "phone-links";
1429
+ id: string;
1430
+ attributes: {
1431
+ code: string;
1432
+ };
1433
+ };
1434
+ }, {
1435
+ data: {
1436
+ type: "phone-links";
1437
+ id: string;
1438
+ attributes: {
1439
+ code: string;
1440
+ };
1441
+ };
1442
+ }>;
1443
+ path: "/user/phone-links/:id/verify";
1444
+ responses: {
1445
+ 200: z.ZodObject<{
1446
+ data: z.ZodObject<{
1447
+ type: z.ZodLiteral<string>;
1448
+ id: z.ZodString;
1449
+ attributes: z.ZodObject<{
1450
+ phoneNumber: z.ZodString;
1451
+ whatsappId: z.ZodNullable<z.ZodString>;
1452
+ isVerified: z.ZodBoolean;
1453
+ defaultFarmId: z.ZodNullable<z.ZodString>;
1454
+ language: z.ZodString;
1455
+ } & {
1456
+ createdAt: z.ZodString;
1457
+ updatedAt: z.ZodString;
1458
+ }, "strip", z.ZodTypeAny, {
1459
+ createdAt: string;
1460
+ updatedAt: string;
1461
+ phoneNumber: string;
1462
+ whatsappId: string | null;
1463
+ isVerified: boolean;
1464
+ defaultFarmId: string | null;
1465
+ language: string;
1466
+ }, {
1467
+ createdAt: string;
1468
+ updatedAt: string;
1469
+ phoneNumber: string;
1470
+ whatsappId: string | null;
1471
+ isVerified: boolean;
1472
+ defaultFarmId: string | null;
1473
+ language: string;
1474
+ }>;
1475
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1476
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1477
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1478
+ }, "strip", z.ZodTypeAny, {
1479
+ type: string;
1480
+ id: string;
1481
+ attributes: {
1482
+ createdAt: string;
1483
+ updatedAt: string;
1484
+ phoneNumber: string;
1485
+ whatsappId: string | null;
1486
+ isVerified: boolean;
1487
+ defaultFarmId: string | null;
1488
+ language: string;
1489
+ };
1490
+ relationships?: Record<string, unknown> | undefined;
1491
+ links?: Record<string, string> | undefined;
1492
+ meta?: Record<string, unknown> | undefined;
1493
+ }, {
1494
+ type: string;
1495
+ id: string;
1496
+ attributes: {
1497
+ createdAt: string;
1498
+ updatedAt: string;
1499
+ phoneNumber: string;
1500
+ whatsappId: string | null;
1501
+ isVerified: boolean;
1502
+ defaultFarmId: string | null;
1503
+ language: string;
1504
+ };
1505
+ relationships?: Record<string, unknown> | undefined;
1506
+ links?: Record<string, string> | undefined;
1507
+ meta?: Record<string, unknown> | undefined;
1508
+ }>;
1509
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1510
+ type: z.ZodString;
1511
+ id: z.ZodString;
1512
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1513
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1514
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1515
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1516
+ }, "strip", z.ZodTypeAny, {
1517
+ type: string;
1518
+ id: string;
1519
+ attributes?: Record<string, unknown> | undefined;
1520
+ relationships?: Record<string, unknown> | undefined;
1521
+ links?: Record<string, string> | undefined;
1522
+ meta?: Record<string, unknown> | undefined;
1523
+ }, {
1524
+ type: string;
1525
+ id: string;
1526
+ attributes?: Record<string, unknown> | undefined;
1527
+ relationships?: Record<string, unknown> | undefined;
1528
+ links?: Record<string, string> | undefined;
1529
+ meta?: Record<string, unknown> | undefined;
1530
+ }>, "many">>;
1531
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1532
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1533
+ }, "strip", z.ZodTypeAny, {
1534
+ data: {
1535
+ type: string;
1536
+ id: string;
1537
+ attributes: {
1538
+ createdAt: string;
1539
+ updatedAt: string;
1540
+ phoneNumber: string;
1541
+ whatsappId: string | null;
1542
+ isVerified: boolean;
1543
+ defaultFarmId: string | null;
1544
+ language: string;
1545
+ };
1546
+ relationships?: Record<string, unknown> | undefined;
1547
+ links?: Record<string, string> | undefined;
1548
+ meta?: Record<string, unknown> | undefined;
1549
+ };
1550
+ links?: Record<string, string> | undefined;
1551
+ meta?: Record<string, unknown> | undefined;
1552
+ included?: {
1553
+ type: string;
1554
+ id: string;
1555
+ attributes?: Record<string, unknown> | undefined;
1556
+ relationships?: Record<string, unknown> | undefined;
1557
+ links?: Record<string, string> | undefined;
1558
+ meta?: Record<string, unknown> | undefined;
1559
+ }[] | undefined;
1560
+ }, {
1561
+ data: {
1562
+ type: string;
1563
+ id: string;
1564
+ attributes: {
1565
+ createdAt: string;
1566
+ updatedAt: string;
1567
+ phoneNumber: string;
1568
+ whatsappId: string | null;
1569
+ isVerified: boolean;
1570
+ defaultFarmId: string | null;
1571
+ language: string;
1572
+ };
1573
+ relationships?: Record<string, unknown> | undefined;
1574
+ links?: Record<string, string> | undefined;
1575
+ meta?: Record<string, unknown> | undefined;
1576
+ };
1577
+ links?: Record<string, string> | undefined;
1578
+ meta?: Record<string, unknown> | undefined;
1579
+ included?: {
1580
+ type: string;
1581
+ id: string;
1582
+ attributes?: Record<string, unknown> | undefined;
1583
+ relationships?: Record<string, unknown> | undefined;
1584
+ links?: Record<string, string> | undefined;
1585
+ meta?: Record<string, unknown> | undefined;
1586
+ }[] | undefined;
1587
+ }>;
1588
+ 400: z.ZodObject<{
1589
+ errors: z.ZodArray<z.ZodObject<{
1590
+ id: z.ZodOptional<z.ZodString>;
1591
+ links: z.ZodOptional<z.ZodObject<{
1592
+ about: z.ZodOptional<z.ZodString>;
1593
+ }, "strip", z.ZodTypeAny, {
1594
+ about?: string | undefined;
1595
+ }, {
1596
+ about?: string | undefined;
1597
+ }>>;
1598
+ status: z.ZodOptional<z.ZodString>;
1599
+ code: z.ZodOptional<z.ZodString>;
1600
+ title: z.ZodOptional<z.ZodString>;
1601
+ detail: z.ZodOptional<z.ZodString>;
1602
+ source: z.ZodOptional<z.ZodObject<{
1603
+ pointer: z.ZodOptional<z.ZodString>;
1604
+ parameter: z.ZodOptional<z.ZodString>;
1605
+ }, "strip", z.ZodTypeAny, {
1606
+ pointer?: string | undefined;
1607
+ parameter?: string | undefined;
1608
+ }, {
1609
+ pointer?: string | undefined;
1610
+ parameter?: string | undefined;
1611
+ }>>;
1612
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1613
+ }, "strip", z.ZodTypeAny, {
1614
+ status?: string | undefined;
1615
+ code?: string | undefined;
1616
+ id?: string | undefined;
1617
+ links?: {
1618
+ about?: string | undefined;
1619
+ } | undefined;
1620
+ meta?: Record<string, unknown> | undefined;
1621
+ title?: string | undefined;
1622
+ detail?: string | undefined;
1623
+ source?: {
1624
+ pointer?: string | undefined;
1625
+ parameter?: string | undefined;
1626
+ } | undefined;
1627
+ }, {
1628
+ status?: string | undefined;
1629
+ code?: string | undefined;
1630
+ id?: string | undefined;
1631
+ links?: {
1632
+ about?: string | undefined;
1633
+ } | undefined;
1634
+ meta?: Record<string, unknown> | undefined;
1635
+ title?: string | undefined;
1636
+ detail?: string | undefined;
1637
+ source?: {
1638
+ pointer?: string | undefined;
1639
+ parameter?: string | undefined;
1640
+ } | undefined;
1641
+ }>, "many">;
1642
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1643
+ }, "strip", z.ZodTypeAny, {
1644
+ errors: {
1645
+ status?: string | undefined;
1646
+ code?: string | undefined;
1647
+ id?: string | undefined;
1648
+ links?: {
1649
+ about?: string | undefined;
1650
+ } | undefined;
1651
+ meta?: Record<string, unknown> | undefined;
1652
+ title?: string | undefined;
1653
+ detail?: string | undefined;
1654
+ source?: {
1655
+ pointer?: string | undefined;
1656
+ parameter?: string | undefined;
1657
+ } | undefined;
1658
+ }[];
1659
+ meta?: Record<string, unknown> | undefined;
1660
+ }, {
1661
+ errors: {
1662
+ status?: string | undefined;
1663
+ code?: string | undefined;
1664
+ id?: string | undefined;
1665
+ links?: {
1666
+ about?: string | undefined;
1667
+ } | undefined;
1668
+ meta?: Record<string, unknown> | undefined;
1669
+ title?: string | undefined;
1670
+ detail?: string | undefined;
1671
+ source?: {
1672
+ pointer?: string | undefined;
1673
+ parameter?: string | undefined;
1674
+ } | undefined;
1675
+ }[];
1676
+ meta?: Record<string, unknown> | undefined;
1677
+ }>;
1678
+ 401: z.ZodObject<{
1679
+ errors: z.ZodArray<z.ZodObject<{
1680
+ id: z.ZodOptional<z.ZodString>;
1681
+ links: z.ZodOptional<z.ZodObject<{
1682
+ about: z.ZodOptional<z.ZodString>;
1683
+ }, "strip", z.ZodTypeAny, {
1684
+ about?: string | undefined;
1685
+ }, {
1686
+ about?: string | undefined;
1687
+ }>>;
1688
+ status: z.ZodOptional<z.ZodString>;
1689
+ code: z.ZodOptional<z.ZodString>;
1690
+ title: z.ZodOptional<z.ZodString>;
1691
+ detail: z.ZodOptional<z.ZodString>;
1692
+ source: z.ZodOptional<z.ZodObject<{
1693
+ pointer: z.ZodOptional<z.ZodString>;
1694
+ parameter: z.ZodOptional<z.ZodString>;
1695
+ }, "strip", z.ZodTypeAny, {
1696
+ pointer?: string | undefined;
1697
+ parameter?: string | undefined;
1698
+ }, {
1699
+ pointer?: string | undefined;
1700
+ parameter?: string | undefined;
1701
+ }>>;
1702
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1703
+ }, "strip", z.ZodTypeAny, {
1704
+ status?: string | undefined;
1705
+ code?: string | undefined;
1706
+ id?: string | undefined;
1707
+ links?: {
1708
+ about?: string | undefined;
1709
+ } | undefined;
1710
+ meta?: Record<string, unknown> | undefined;
1711
+ title?: string | undefined;
1712
+ detail?: string | undefined;
1713
+ source?: {
1714
+ pointer?: string | undefined;
1715
+ parameter?: string | undefined;
1716
+ } | undefined;
1717
+ }, {
1718
+ status?: string | undefined;
1719
+ code?: string | undefined;
1720
+ id?: string | undefined;
1721
+ links?: {
1722
+ about?: string | undefined;
1723
+ } | undefined;
1724
+ meta?: Record<string, unknown> | undefined;
1725
+ title?: string | undefined;
1726
+ detail?: string | undefined;
1727
+ source?: {
1728
+ pointer?: string | undefined;
1729
+ parameter?: string | undefined;
1730
+ } | undefined;
1731
+ }>, "many">;
1732
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1733
+ }, "strip", z.ZodTypeAny, {
1734
+ errors: {
1735
+ status?: string | undefined;
1736
+ code?: string | undefined;
1737
+ id?: string | undefined;
1738
+ links?: {
1739
+ about?: string | undefined;
1740
+ } | undefined;
1741
+ meta?: Record<string, unknown> | undefined;
1742
+ title?: string | undefined;
1743
+ detail?: string | undefined;
1744
+ source?: {
1745
+ pointer?: string | undefined;
1746
+ parameter?: string | undefined;
1747
+ } | undefined;
1748
+ }[];
1749
+ meta?: Record<string, unknown> | undefined;
1750
+ }, {
1751
+ errors: {
1752
+ status?: string | undefined;
1753
+ code?: string | undefined;
1754
+ id?: string | undefined;
1755
+ links?: {
1756
+ about?: string | undefined;
1757
+ } | undefined;
1758
+ meta?: Record<string, unknown> | undefined;
1759
+ title?: string | undefined;
1760
+ detail?: string | undefined;
1761
+ source?: {
1762
+ pointer?: string | undefined;
1763
+ parameter?: string | undefined;
1764
+ } | undefined;
1765
+ }[];
1766
+ meta?: Record<string, unknown> | undefined;
1767
+ }>;
1768
+ 404: z.ZodObject<{
1769
+ errors: z.ZodArray<z.ZodObject<{
1770
+ id: z.ZodOptional<z.ZodString>;
1771
+ links: z.ZodOptional<z.ZodObject<{
1772
+ about: z.ZodOptional<z.ZodString>;
1773
+ }, "strip", z.ZodTypeAny, {
1774
+ about?: string | undefined;
1775
+ }, {
1776
+ about?: string | undefined;
1777
+ }>>;
1778
+ status: z.ZodOptional<z.ZodString>;
1779
+ code: z.ZodOptional<z.ZodString>;
1780
+ title: z.ZodOptional<z.ZodString>;
1781
+ detail: z.ZodOptional<z.ZodString>;
1782
+ source: z.ZodOptional<z.ZodObject<{
1783
+ pointer: z.ZodOptional<z.ZodString>;
1784
+ parameter: z.ZodOptional<z.ZodString>;
1785
+ }, "strip", z.ZodTypeAny, {
1786
+ pointer?: string | undefined;
1787
+ parameter?: string | undefined;
1788
+ }, {
1789
+ pointer?: string | undefined;
1790
+ parameter?: string | undefined;
1791
+ }>>;
1792
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1793
+ }, "strip", z.ZodTypeAny, {
1794
+ status?: string | undefined;
1795
+ code?: string | undefined;
1796
+ id?: string | undefined;
1797
+ links?: {
1798
+ about?: string | undefined;
1799
+ } | undefined;
1800
+ meta?: Record<string, unknown> | undefined;
1801
+ title?: string | undefined;
1802
+ detail?: string | undefined;
1803
+ source?: {
1804
+ pointer?: string | undefined;
1805
+ parameter?: string | undefined;
1806
+ } | undefined;
1807
+ }, {
1808
+ status?: string | undefined;
1809
+ code?: string | undefined;
1810
+ id?: string | undefined;
1811
+ links?: {
1812
+ about?: string | undefined;
1813
+ } | undefined;
1814
+ meta?: Record<string, unknown> | undefined;
1815
+ title?: string | undefined;
1816
+ detail?: string | undefined;
1817
+ source?: {
1818
+ pointer?: string | undefined;
1819
+ parameter?: string | undefined;
1820
+ } | undefined;
1821
+ }>, "many">;
1822
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ errors: {
1825
+ status?: string | undefined;
1826
+ code?: string | undefined;
1827
+ id?: string | undefined;
1828
+ links?: {
1829
+ about?: string | undefined;
1830
+ } | undefined;
1831
+ meta?: Record<string, unknown> | undefined;
1832
+ title?: string | undefined;
1833
+ detail?: string | undefined;
1834
+ source?: {
1835
+ pointer?: string | undefined;
1836
+ parameter?: string | undefined;
1837
+ } | undefined;
1838
+ }[];
1839
+ meta?: Record<string, unknown> | undefined;
1840
+ }, {
1841
+ errors: {
1842
+ status?: string | undefined;
1843
+ code?: string | undefined;
1844
+ id?: string | undefined;
1845
+ links?: {
1846
+ about?: string | undefined;
1847
+ } | undefined;
1848
+ meta?: Record<string, unknown> | undefined;
1849
+ title?: string | undefined;
1850
+ detail?: string | undefined;
1851
+ source?: {
1852
+ pointer?: string | undefined;
1853
+ parameter?: string | undefined;
1854
+ } | undefined;
1855
+ }[];
1856
+ meta?: Record<string, unknown> | undefined;
1857
+ }>;
1858
+ };
1859
+ };
1860
+ updatePhoneLink: {
1861
+ pathParams: z.ZodObject<{
1862
+ id: z.ZodString;
1863
+ }, "strip", z.ZodTypeAny, {
1864
+ id: string;
1865
+ }, {
1866
+ id: string;
1867
+ }>;
1868
+ summary: "Update phone link";
1869
+ description: "Update phone link settings like default farm or language";
1870
+ method: "PATCH";
1871
+ body: z.ZodObject<{
1872
+ data: z.ZodObject<{
1873
+ type: z.ZodLiteral<"phone-links">;
1874
+ id: z.ZodString;
1875
+ attributes: z.ZodObject<{
1876
+ defaultFarmId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1877
+ language: z.ZodOptional<z.ZodString>;
1878
+ }, "strip", z.ZodTypeAny, {
1879
+ defaultFarmId?: string | null | undefined;
1880
+ language?: string | undefined;
1881
+ }, {
1882
+ defaultFarmId?: string | null | undefined;
1883
+ language?: string | undefined;
1884
+ }>;
1885
+ }, "strip", z.ZodTypeAny, {
1886
+ type: "phone-links";
1887
+ id: string;
1888
+ attributes: {
1889
+ defaultFarmId?: string | null | undefined;
1890
+ language?: string | undefined;
1891
+ };
1892
+ }, {
1893
+ type: "phone-links";
1894
+ id: string;
1895
+ attributes: {
1896
+ defaultFarmId?: string | null | undefined;
1897
+ language?: string | undefined;
1898
+ };
1899
+ }>;
1900
+ }, "strip", z.ZodTypeAny, {
1901
+ data: {
1902
+ type: "phone-links";
1903
+ id: string;
1904
+ attributes: {
1905
+ defaultFarmId?: string | null | undefined;
1906
+ language?: string | undefined;
1907
+ };
1908
+ };
1909
+ }, {
1910
+ data: {
1911
+ type: "phone-links";
1912
+ id: string;
1913
+ attributes: {
1914
+ defaultFarmId?: string | null | undefined;
1915
+ language?: string | undefined;
1916
+ };
1917
+ };
1918
+ }>;
1919
+ path: "/user/phone-links/:id";
1920
+ responses: {
1921
+ 200: z.ZodObject<{
1922
+ data: z.ZodObject<{
1923
+ type: z.ZodLiteral<string>;
1924
+ id: z.ZodString;
1925
+ attributes: z.ZodObject<{
1926
+ phoneNumber: z.ZodString;
1927
+ whatsappId: z.ZodNullable<z.ZodString>;
1928
+ isVerified: z.ZodBoolean;
1929
+ defaultFarmId: z.ZodNullable<z.ZodString>;
1930
+ language: z.ZodString;
1931
+ } & {
1932
+ createdAt: z.ZodString;
1933
+ updatedAt: z.ZodString;
1934
+ }, "strip", z.ZodTypeAny, {
1935
+ createdAt: string;
1936
+ updatedAt: string;
1937
+ phoneNumber: string;
1938
+ whatsappId: string | null;
1939
+ isVerified: boolean;
1940
+ defaultFarmId: string | null;
1941
+ language: string;
1942
+ }, {
1943
+ createdAt: string;
1944
+ updatedAt: string;
1945
+ phoneNumber: string;
1946
+ whatsappId: string | null;
1947
+ isVerified: boolean;
1948
+ defaultFarmId: string | null;
1949
+ language: string;
1950
+ }>;
1951
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1952
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1953
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1954
+ }, "strip", z.ZodTypeAny, {
1955
+ type: string;
1956
+ id: string;
1957
+ attributes: {
1958
+ createdAt: string;
1959
+ updatedAt: string;
1960
+ phoneNumber: string;
1961
+ whatsappId: string | null;
1962
+ isVerified: boolean;
1963
+ defaultFarmId: string | null;
1964
+ language: string;
1965
+ };
1966
+ relationships?: Record<string, unknown> | undefined;
1967
+ links?: Record<string, string> | undefined;
1968
+ meta?: Record<string, unknown> | undefined;
1969
+ }, {
1970
+ type: string;
1971
+ id: string;
1972
+ attributes: {
1973
+ createdAt: string;
1974
+ updatedAt: string;
1975
+ phoneNumber: string;
1976
+ whatsappId: string | null;
1977
+ isVerified: boolean;
1978
+ defaultFarmId: string | null;
1979
+ language: string;
1980
+ };
1981
+ relationships?: Record<string, unknown> | undefined;
1982
+ links?: Record<string, string> | undefined;
1983
+ meta?: Record<string, unknown> | undefined;
1984
+ }>;
1985
+ included: z.ZodOptional<z.ZodArray<z.ZodObject<{
1986
+ type: z.ZodString;
1987
+ id: z.ZodString;
1988
+ attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1989
+ relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1990
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1991
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1992
+ }, "strip", z.ZodTypeAny, {
1993
+ type: string;
1994
+ id: string;
1995
+ attributes?: Record<string, unknown> | undefined;
1996
+ relationships?: Record<string, unknown> | undefined;
1997
+ links?: Record<string, string> | undefined;
1998
+ meta?: Record<string, unknown> | undefined;
1999
+ }, {
2000
+ type: string;
2001
+ id: string;
2002
+ attributes?: Record<string, unknown> | undefined;
2003
+ relationships?: Record<string, unknown> | undefined;
2004
+ links?: Record<string, string> | undefined;
2005
+ meta?: Record<string, unknown> | undefined;
2006
+ }>, "many">>;
2007
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2008
+ links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2009
+ }, "strip", z.ZodTypeAny, {
2010
+ data: {
2011
+ type: string;
2012
+ id: string;
2013
+ attributes: {
2014
+ createdAt: string;
2015
+ updatedAt: string;
2016
+ phoneNumber: string;
2017
+ whatsappId: string | null;
2018
+ isVerified: boolean;
2019
+ defaultFarmId: string | null;
2020
+ language: string;
2021
+ };
2022
+ relationships?: Record<string, unknown> | undefined;
2023
+ links?: Record<string, string> | undefined;
2024
+ meta?: Record<string, unknown> | undefined;
2025
+ };
2026
+ links?: Record<string, string> | undefined;
2027
+ meta?: Record<string, unknown> | undefined;
2028
+ included?: {
2029
+ type: string;
2030
+ id: string;
2031
+ attributes?: Record<string, unknown> | undefined;
2032
+ relationships?: Record<string, unknown> | undefined;
2033
+ links?: Record<string, string> | undefined;
2034
+ meta?: Record<string, unknown> | undefined;
2035
+ }[] | undefined;
2036
+ }, {
2037
+ data: {
2038
+ type: string;
2039
+ id: string;
2040
+ attributes: {
2041
+ createdAt: string;
2042
+ updatedAt: string;
2043
+ phoneNumber: string;
2044
+ whatsappId: string | null;
2045
+ isVerified: boolean;
2046
+ defaultFarmId: string | null;
2047
+ language: string;
2048
+ };
2049
+ relationships?: Record<string, unknown> | undefined;
2050
+ links?: Record<string, string> | undefined;
2051
+ meta?: Record<string, unknown> | undefined;
2052
+ };
2053
+ links?: Record<string, string> | undefined;
2054
+ meta?: Record<string, unknown> | undefined;
2055
+ included?: {
2056
+ type: string;
2057
+ id: string;
2058
+ attributes?: Record<string, unknown> | undefined;
2059
+ relationships?: Record<string, unknown> | undefined;
2060
+ links?: Record<string, string> | undefined;
2061
+ meta?: Record<string, unknown> | undefined;
2062
+ }[] | undefined;
2063
+ }>;
2064
+ 400: z.ZodObject<{
2065
+ errors: z.ZodArray<z.ZodObject<{
2066
+ id: z.ZodOptional<z.ZodString>;
2067
+ links: z.ZodOptional<z.ZodObject<{
2068
+ about: z.ZodOptional<z.ZodString>;
2069
+ }, "strip", z.ZodTypeAny, {
2070
+ about?: string | undefined;
2071
+ }, {
2072
+ about?: string | undefined;
2073
+ }>>;
2074
+ status: z.ZodOptional<z.ZodString>;
2075
+ code: z.ZodOptional<z.ZodString>;
2076
+ title: z.ZodOptional<z.ZodString>;
2077
+ detail: z.ZodOptional<z.ZodString>;
2078
+ source: z.ZodOptional<z.ZodObject<{
2079
+ pointer: z.ZodOptional<z.ZodString>;
2080
+ parameter: z.ZodOptional<z.ZodString>;
2081
+ }, "strip", z.ZodTypeAny, {
2082
+ pointer?: string | undefined;
2083
+ parameter?: string | undefined;
2084
+ }, {
2085
+ pointer?: string | undefined;
2086
+ parameter?: string | undefined;
2087
+ }>>;
2088
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2089
+ }, "strip", z.ZodTypeAny, {
2090
+ status?: string | undefined;
2091
+ code?: string | undefined;
2092
+ id?: string | undefined;
2093
+ links?: {
2094
+ about?: string | undefined;
2095
+ } | undefined;
2096
+ meta?: Record<string, unknown> | undefined;
2097
+ title?: string | undefined;
2098
+ detail?: string | undefined;
2099
+ source?: {
2100
+ pointer?: string | undefined;
2101
+ parameter?: string | undefined;
2102
+ } | undefined;
2103
+ }, {
2104
+ status?: string | undefined;
2105
+ code?: string | undefined;
2106
+ id?: string | undefined;
2107
+ links?: {
2108
+ about?: string | undefined;
2109
+ } | undefined;
2110
+ meta?: Record<string, unknown> | undefined;
2111
+ title?: string | undefined;
2112
+ detail?: string | undefined;
2113
+ source?: {
2114
+ pointer?: string | undefined;
2115
+ parameter?: string | undefined;
2116
+ } | undefined;
2117
+ }>, "many">;
2118
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2119
+ }, "strip", z.ZodTypeAny, {
2120
+ errors: {
2121
+ status?: string | undefined;
2122
+ code?: string | undefined;
2123
+ id?: string | undefined;
2124
+ links?: {
2125
+ about?: string | undefined;
2126
+ } | undefined;
2127
+ meta?: Record<string, unknown> | undefined;
2128
+ title?: string | undefined;
2129
+ detail?: string | undefined;
2130
+ source?: {
2131
+ pointer?: string | undefined;
2132
+ parameter?: string | undefined;
2133
+ } | undefined;
2134
+ }[];
2135
+ meta?: Record<string, unknown> | undefined;
2136
+ }, {
2137
+ errors: {
2138
+ status?: string | undefined;
2139
+ code?: string | undefined;
2140
+ id?: string | undefined;
2141
+ links?: {
2142
+ about?: string | undefined;
2143
+ } | undefined;
2144
+ meta?: Record<string, unknown> | undefined;
2145
+ title?: string | undefined;
2146
+ detail?: string | undefined;
2147
+ source?: {
2148
+ pointer?: string | undefined;
2149
+ parameter?: string | undefined;
2150
+ } | undefined;
2151
+ }[];
2152
+ meta?: Record<string, unknown> | undefined;
2153
+ }>;
2154
+ 401: z.ZodObject<{
2155
+ errors: z.ZodArray<z.ZodObject<{
2156
+ id: z.ZodOptional<z.ZodString>;
2157
+ links: z.ZodOptional<z.ZodObject<{
2158
+ about: z.ZodOptional<z.ZodString>;
2159
+ }, "strip", z.ZodTypeAny, {
2160
+ about?: string | undefined;
2161
+ }, {
2162
+ about?: string | undefined;
2163
+ }>>;
2164
+ status: z.ZodOptional<z.ZodString>;
2165
+ code: z.ZodOptional<z.ZodString>;
2166
+ title: z.ZodOptional<z.ZodString>;
2167
+ detail: z.ZodOptional<z.ZodString>;
2168
+ source: z.ZodOptional<z.ZodObject<{
2169
+ pointer: z.ZodOptional<z.ZodString>;
2170
+ parameter: z.ZodOptional<z.ZodString>;
2171
+ }, "strip", z.ZodTypeAny, {
2172
+ pointer?: string | undefined;
2173
+ parameter?: string | undefined;
2174
+ }, {
2175
+ pointer?: string | undefined;
2176
+ parameter?: string | undefined;
2177
+ }>>;
2178
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2179
+ }, "strip", z.ZodTypeAny, {
2180
+ status?: string | undefined;
2181
+ code?: string | undefined;
2182
+ id?: string | undefined;
2183
+ links?: {
2184
+ about?: string | undefined;
2185
+ } | undefined;
2186
+ meta?: Record<string, unknown> | undefined;
2187
+ title?: string | undefined;
2188
+ detail?: string | undefined;
2189
+ source?: {
2190
+ pointer?: string | undefined;
2191
+ parameter?: string | undefined;
2192
+ } | undefined;
2193
+ }, {
2194
+ status?: string | undefined;
2195
+ code?: string | undefined;
2196
+ id?: string | undefined;
2197
+ links?: {
2198
+ about?: string | undefined;
2199
+ } | undefined;
2200
+ meta?: Record<string, unknown> | undefined;
2201
+ title?: string | undefined;
2202
+ detail?: string | undefined;
2203
+ source?: {
2204
+ pointer?: string | undefined;
2205
+ parameter?: string | undefined;
2206
+ } | undefined;
2207
+ }>, "many">;
2208
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2209
+ }, "strip", z.ZodTypeAny, {
2210
+ errors: {
2211
+ status?: string | undefined;
2212
+ code?: string | undefined;
2213
+ id?: string | undefined;
2214
+ links?: {
2215
+ about?: string | undefined;
2216
+ } | undefined;
2217
+ meta?: Record<string, unknown> | undefined;
2218
+ title?: string | undefined;
2219
+ detail?: string | undefined;
2220
+ source?: {
2221
+ pointer?: string | undefined;
2222
+ parameter?: string | undefined;
2223
+ } | undefined;
2224
+ }[];
2225
+ meta?: Record<string, unknown> | undefined;
2226
+ }, {
2227
+ errors: {
2228
+ status?: string | undefined;
2229
+ code?: string | undefined;
2230
+ id?: string | undefined;
2231
+ links?: {
2232
+ about?: string | undefined;
2233
+ } | undefined;
2234
+ meta?: Record<string, unknown> | undefined;
2235
+ title?: string | undefined;
2236
+ detail?: string | undefined;
2237
+ source?: {
2238
+ pointer?: string | undefined;
2239
+ parameter?: string | undefined;
2240
+ } | undefined;
2241
+ }[];
2242
+ meta?: Record<string, unknown> | undefined;
2243
+ }>;
2244
+ 404: z.ZodObject<{
2245
+ errors: z.ZodArray<z.ZodObject<{
2246
+ id: z.ZodOptional<z.ZodString>;
2247
+ links: z.ZodOptional<z.ZodObject<{
2248
+ about: z.ZodOptional<z.ZodString>;
2249
+ }, "strip", z.ZodTypeAny, {
2250
+ about?: string | undefined;
2251
+ }, {
2252
+ about?: string | undefined;
2253
+ }>>;
2254
+ status: z.ZodOptional<z.ZodString>;
2255
+ code: z.ZodOptional<z.ZodString>;
2256
+ title: z.ZodOptional<z.ZodString>;
2257
+ detail: z.ZodOptional<z.ZodString>;
2258
+ source: z.ZodOptional<z.ZodObject<{
2259
+ pointer: z.ZodOptional<z.ZodString>;
2260
+ parameter: z.ZodOptional<z.ZodString>;
2261
+ }, "strip", z.ZodTypeAny, {
2262
+ pointer?: string | undefined;
2263
+ parameter?: string | undefined;
2264
+ }, {
2265
+ pointer?: string | undefined;
2266
+ parameter?: string | undefined;
2267
+ }>>;
2268
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2269
+ }, "strip", z.ZodTypeAny, {
2270
+ status?: string | undefined;
2271
+ code?: string | undefined;
2272
+ id?: string | undefined;
2273
+ links?: {
2274
+ about?: string | undefined;
2275
+ } | undefined;
2276
+ meta?: Record<string, unknown> | undefined;
2277
+ title?: string | undefined;
2278
+ detail?: string | undefined;
2279
+ source?: {
2280
+ pointer?: string | undefined;
2281
+ parameter?: string | undefined;
2282
+ } | undefined;
2283
+ }, {
2284
+ status?: string | undefined;
2285
+ code?: string | undefined;
2286
+ id?: string | undefined;
2287
+ links?: {
2288
+ about?: string | undefined;
2289
+ } | undefined;
2290
+ meta?: Record<string, unknown> | undefined;
2291
+ title?: string | undefined;
2292
+ detail?: string | undefined;
2293
+ source?: {
2294
+ pointer?: string | undefined;
2295
+ parameter?: string | undefined;
2296
+ } | undefined;
2297
+ }>, "many">;
2298
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2299
+ }, "strip", z.ZodTypeAny, {
2300
+ errors: {
2301
+ status?: string | undefined;
2302
+ code?: string | undefined;
2303
+ id?: string | undefined;
2304
+ links?: {
2305
+ about?: string | undefined;
2306
+ } | undefined;
2307
+ meta?: Record<string, unknown> | undefined;
2308
+ title?: string | undefined;
2309
+ detail?: string | undefined;
2310
+ source?: {
2311
+ pointer?: string | undefined;
2312
+ parameter?: string | undefined;
2313
+ } | undefined;
2314
+ }[];
2315
+ meta?: Record<string, unknown> | undefined;
2316
+ }, {
2317
+ errors: {
2318
+ status?: string | undefined;
2319
+ code?: string | undefined;
2320
+ id?: string | undefined;
2321
+ links?: {
2322
+ about?: string | undefined;
2323
+ } | undefined;
2324
+ meta?: Record<string, unknown> | undefined;
2325
+ title?: string | undefined;
2326
+ detail?: string | undefined;
2327
+ source?: {
2328
+ pointer?: string | undefined;
2329
+ parameter?: string | undefined;
2330
+ } | undefined;
2331
+ }[];
2332
+ meta?: Record<string, unknown> | undefined;
2333
+ }>;
2334
+ };
2335
+ };
2336
+ resendVerification: {
2337
+ pathParams: z.ZodObject<{
2338
+ id: z.ZodString;
2339
+ }, "strip", z.ZodTypeAny, {
2340
+ id: string;
2341
+ }, {
2342
+ id: string;
2343
+ }>;
2344
+ summary: "Resend verification code";
2345
+ description: "Resend the verification code to the linked phone number";
2346
+ method: "POST";
2347
+ body: z.ZodUndefined;
2348
+ path: "/user/phone-links/:id/resend";
2349
+ responses: {
2350
+ 200: z.ZodObject<{
2351
+ meta: z.ZodObject<{
2352
+ message: z.ZodString;
2353
+ }, "strip", z.ZodTypeAny, {
2354
+ message: string;
2355
+ }, {
2356
+ message: string;
2357
+ }>;
2358
+ }, "strip", z.ZodTypeAny, {
2359
+ meta: {
2360
+ message: string;
2361
+ };
2362
+ }, {
2363
+ meta: {
2364
+ message: string;
2365
+ };
2366
+ }>;
2367
+ 400: z.ZodObject<{
2368
+ errors: z.ZodArray<z.ZodObject<{
2369
+ id: z.ZodOptional<z.ZodString>;
2370
+ links: z.ZodOptional<z.ZodObject<{
2371
+ about: z.ZodOptional<z.ZodString>;
2372
+ }, "strip", z.ZodTypeAny, {
2373
+ about?: string | undefined;
2374
+ }, {
2375
+ about?: string | undefined;
2376
+ }>>;
2377
+ status: z.ZodOptional<z.ZodString>;
2378
+ code: z.ZodOptional<z.ZodString>;
2379
+ title: z.ZodOptional<z.ZodString>;
2380
+ detail: z.ZodOptional<z.ZodString>;
2381
+ source: z.ZodOptional<z.ZodObject<{
2382
+ pointer: z.ZodOptional<z.ZodString>;
2383
+ parameter: z.ZodOptional<z.ZodString>;
2384
+ }, "strip", z.ZodTypeAny, {
2385
+ pointer?: string | undefined;
2386
+ parameter?: string | undefined;
2387
+ }, {
2388
+ pointer?: string | undefined;
2389
+ parameter?: string | undefined;
2390
+ }>>;
2391
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2392
+ }, "strip", z.ZodTypeAny, {
2393
+ status?: string | undefined;
2394
+ code?: string | undefined;
2395
+ id?: string | undefined;
2396
+ links?: {
2397
+ about?: string | undefined;
2398
+ } | undefined;
2399
+ meta?: Record<string, unknown> | undefined;
2400
+ title?: string | undefined;
2401
+ detail?: string | undefined;
2402
+ source?: {
2403
+ pointer?: string | undefined;
2404
+ parameter?: string | undefined;
2405
+ } | undefined;
2406
+ }, {
2407
+ status?: string | undefined;
2408
+ code?: string | undefined;
2409
+ id?: string | undefined;
2410
+ links?: {
2411
+ about?: string | undefined;
2412
+ } | undefined;
2413
+ meta?: Record<string, unknown> | undefined;
2414
+ title?: string | undefined;
2415
+ detail?: string | undefined;
2416
+ source?: {
2417
+ pointer?: string | undefined;
2418
+ parameter?: string | undefined;
2419
+ } | undefined;
2420
+ }>, "many">;
2421
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2422
+ }, "strip", z.ZodTypeAny, {
2423
+ errors: {
2424
+ status?: string | undefined;
2425
+ code?: string | undefined;
2426
+ id?: string | undefined;
2427
+ links?: {
2428
+ about?: string | undefined;
2429
+ } | undefined;
2430
+ meta?: Record<string, unknown> | undefined;
2431
+ title?: string | undefined;
2432
+ detail?: string | undefined;
2433
+ source?: {
2434
+ pointer?: string | undefined;
2435
+ parameter?: string | undefined;
2436
+ } | undefined;
2437
+ }[];
2438
+ meta?: Record<string, unknown> | undefined;
2439
+ }, {
2440
+ errors: {
2441
+ status?: string | undefined;
2442
+ code?: string | undefined;
2443
+ id?: string | undefined;
2444
+ links?: {
2445
+ about?: string | undefined;
2446
+ } | undefined;
2447
+ meta?: Record<string, unknown> | undefined;
2448
+ title?: string | undefined;
2449
+ detail?: string | undefined;
2450
+ source?: {
2451
+ pointer?: string | undefined;
2452
+ parameter?: string | undefined;
2453
+ } | undefined;
2454
+ }[];
2455
+ meta?: Record<string, unknown> | undefined;
2456
+ }>;
2457
+ 401: z.ZodObject<{
2458
+ errors: z.ZodArray<z.ZodObject<{
2459
+ id: z.ZodOptional<z.ZodString>;
2460
+ links: z.ZodOptional<z.ZodObject<{
2461
+ about: z.ZodOptional<z.ZodString>;
2462
+ }, "strip", z.ZodTypeAny, {
2463
+ about?: string | undefined;
2464
+ }, {
2465
+ about?: string | undefined;
2466
+ }>>;
2467
+ status: z.ZodOptional<z.ZodString>;
2468
+ code: z.ZodOptional<z.ZodString>;
2469
+ title: z.ZodOptional<z.ZodString>;
2470
+ detail: z.ZodOptional<z.ZodString>;
2471
+ source: z.ZodOptional<z.ZodObject<{
2472
+ pointer: z.ZodOptional<z.ZodString>;
2473
+ parameter: z.ZodOptional<z.ZodString>;
2474
+ }, "strip", z.ZodTypeAny, {
2475
+ pointer?: string | undefined;
2476
+ parameter?: string | undefined;
2477
+ }, {
2478
+ pointer?: string | undefined;
2479
+ parameter?: string | undefined;
2480
+ }>>;
2481
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2482
+ }, "strip", z.ZodTypeAny, {
2483
+ status?: string | undefined;
2484
+ code?: string | undefined;
2485
+ id?: string | undefined;
2486
+ links?: {
2487
+ about?: string | undefined;
2488
+ } | undefined;
2489
+ meta?: Record<string, unknown> | undefined;
2490
+ title?: string | undefined;
2491
+ detail?: string | undefined;
2492
+ source?: {
2493
+ pointer?: string | undefined;
2494
+ parameter?: string | undefined;
2495
+ } | undefined;
2496
+ }, {
2497
+ status?: string | undefined;
2498
+ code?: string | undefined;
2499
+ id?: string | undefined;
2500
+ links?: {
2501
+ about?: string | undefined;
2502
+ } | undefined;
2503
+ meta?: Record<string, unknown> | undefined;
2504
+ title?: string | undefined;
2505
+ detail?: string | undefined;
2506
+ source?: {
2507
+ pointer?: string | undefined;
2508
+ parameter?: string | undefined;
2509
+ } | undefined;
2510
+ }>, "many">;
2511
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2512
+ }, "strip", z.ZodTypeAny, {
2513
+ errors: {
2514
+ status?: string | undefined;
2515
+ code?: string | undefined;
2516
+ id?: string | undefined;
2517
+ links?: {
2518
+ about?: string | undefined;
2519
+ } | undefined;
2520
+ meta?: Record<string, unknown> | undefined;
2521
+ title?: string | undefined;
2522
+ detail?: string | undefined;
2523
+ source?: {
2524
+ pointer?: string | undefined;
2525
+ parameter?: string | undefined;
2526
+ } | undefined;
2527
+ }[];
2528
+ meta?: Record<string, unknown> | undefined;
2529
+ }, {
2530
+ errors: {
2531
+ status?: string | undefined;
2532
+ code?: string | undefined;
2533
+ id?: string | undefined;
2534
+ links?: {
2535
+ about?: string | undefined;
2536
+ } | undefined;
2537
+ meta?: Record<string, unknown> | undefined;
2538
+ title?: string | undefined;
2539
+ detail?: string | undefined;
2540
+ source?: {
2541
+ pointer?: string | undefined;
2542
+ parameter?: string | undefined;
2543
+ } | undefined;
2544
+ }[];
2545
+ meta?: Record<string, unknown> | undefined;
2546
+ }>;
2547
+ 404: z.ZodObject<{
2548
+ errors: z.ZodArray<z.ZodObject<{
2549
+ id: z.ZodOptional<z.ZodString>;
2550
+ links: z.ZodOptional<z.ZodObject<{
2551
+ about: z.ZodOptional<z.ZodString>;
2552
+ }, "strip", z.ZodTypeAny, {
2553
+ about?: string | undefined;
2554
+ }, {
2555
+ about?: string | undefined;
2556
+ }>>;
2557
+ status: z.ZodOptional<z.ZodString>;
2558
+ code: z.ZodOptional<z.ZodString>;
2559
+ title: z.ZodOptional<z.ZodString>;
2560
+ detail: z.ZodOptional<z.ZodString>;
2561
+ source: z.ZodOptional<z.ZodObject<{
2562
+ pointer: z.ZodOptional<z.ZodString>;
2563
+ parameter: z.ZodOptional<z.ZodString>;
2564
+ }, "strip", z.ZodTypeAny, {
2565
+ pointer?: string | undefined;
2566
+ parameter?: string | undefined;
2567
+ }, {
2568
+ pointer?: string | undefined;
2569
+ parameter?: string | undefined;
2570
+ }>>;
2571
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2572
+ }, "strip", z.ZodTypeAny, {
2573
+ status?: string | undefined;
2574
+ code?: string | undefined;
2575
+ id?: string | undefined;
2576
+ links?: {
2577
+ about?: string | undefined;
2578
+ } | undefined;
2579
+ meta?: Record<string, unknown> | undefined;
2580
+ title?: string | undefined;
2581
+ detail?: string | undefined;
2582
+ source?: {
2583
+ pointer?: string | undefined;
2584
+ parameter?: string | undefined;
2585
+ } | undefined;
2586
+ }, {
2587
+ status?: string | undefined;
2588
+ code?: string | undefined;
2589
+ id?: string | undefined;
2590
+ links?: {
2591
+ about?: string | undefined;
2592
+ } | undefined;
2593
+ meta?: Record<string, unknown> | undefined;
2594
+ title?: string | undefined;
2595
+ detail?: string | undefined;
2596
+ source?: {
2597
+ pointer?: string | undefined;
2598
+ parameter?: string | undefined;
2599
+ } | undefined;
2600
+ }>, "many">;
2601
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2602
+ }, "strip", z.ZodTypeAny, {
2603
+ errors: {
2604
+ status?: string | undefined;
2605
+ code?: string | undefined;
2606
+ id?: string | undefined;
2607
+ links?: {
2608
+ about?: string | undefined;
2609
+ } | undefined;
2610
+ meta?: Record<string, unknown> | undefined;
2611
+ title?: string | undefined;
2612
+ detail?: string | undefined;
2613
+ source?: {
2614
+ pointer?: string | undefined;
2615
+ parameter?: string | undefined;
2616
+ } | undefined;
2617
+ }[];
2618
+ meta?: Record<string, unknown> | undefined;
2619
+ }, {
2620
+ errors: {
2621
+ status?: string | undefined;
2622
+ code?: string | undefined;
2623
+ id?: string | undefined;
2624
+ links?: {
2625
+ about?: string | undefined;
2626
+ } | undefined;
2627
+ meta?: Record<string, unknown> | undefined;
2628
+ title?: string | undefined;
2629
+ detail?: string | undefined;
2630
+ source?: {
2631
+ pointer?: string | undefined;
2632
+ parameter?: string | undefined;
2633
+ } | undefined;
2634
+ }[];
2635
+ meta?: Record<string, unknown> | undefined;
2636
+ }>;
2637
+ 429: z.ZodObject<{
2638
+ errors: z.ZodArray<z.ZodObject<{
2639
+ id: z.ZodOptional<z.ZodString>;
2640
+ links: z.ZodOptional<z.ZodObject<{
2641
+ about: z.ZodOptional<z.ZodString>;
2642
+ }, "strip", z.ZodTypeAny, {
2643
+ about?: string | undefined;
2644
+ }, {
2645
+ about?: string | undefined;
2646
+ }>>;
2647
+ status: z.ZodOptional<z.ZodString>;
2648
+ code: z.ZodOptional<z.ZodString>;
2649
+ title: z.ZodOptional<z.ZodString>;
2650
+ detail: z.ZodOptional<z.ZodString>;
2651
+ source: z.ZodOptional<z.ZodObject<{
2652
+ pointer: z.ZodOptional<z.ZodString>;
2653
+ parameter: z.ZodOptional<z.ZodString>;
2654
+ }, "strip", z.ZodTypeAny, {
2655
+ pointer?: string | undefined;
2656
+ parameter?: string | undefined;
2657
+ }, {
2658
+ pointer?: string | undefined;
2659
+ parameter?: string | undefined;
2660
+ }>>;
2661
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2662
+ }, "strip", z.ZodTypeAny, {
2663
+ status?: string | undefined;
2664
+ code?: string | undefined;
2665
+ id?: string | undefined;
2666
+ links?: {
2667
+ about?: string | undefined;
2668
+ } | undefined;
2669
+ meta?: Record<string, unknown> | undefined;
2670
+ title?: string | undefined;
2671
+ detail?: string | undefined;
2672
+ source?: {
2673
+ pointer?: string | undefined;
2674
+ parameter?: string | undefined;
2675
+ } | undefined;
2676
+ }, {
2677
+ status?: string | undefined;
2678
+ code?: string | undefined;
2679
+ id?: string | undefined;
2680
+ links?: {
2681
+ about?: string | undefined;
2682
+ } | undefined;
2683
+ meta?: Record<string, unknown> | undefined;
2684
+ title?: string | undefined;
2685
+ detail?: string | undefined;
2686
+ source?: {
2687
+ pointer?: string | undefined;
2688
+ parameter?: string | undefined;
2689
+ } | undefined;
2690
+ }>, "many">;
2691
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2692
+ }, "strip", z.ZodTypeAny, {
2693
+ errors: {
2694
+ status?: string | undefined;
2695
+ code?: string | undefined;
2696
+ id?: string | undefined;
2697
+ links?: {
2698
+ about?: string | undefined;
2699
+ } | undefined;
2700
+ meta?: Record<string, unknown> | undefined;
2701
+ title?: string | undefined;
2702
+ detail?: string | undefined;
2703
+ source?: {
2704
+ pointer?: string | undefined;
2705
+ parameter?: string | undefined;
2706
+ } | undefined;
2707
+ }[];
2708
+ meta?: Record<string, unknown> | undefined;
2709
+ }, {
2710
+ errors: {
2711
+ status?: string | undefined;
2712
+ code?: string | undefined;
2713
+ id?: string | undefined;
2714
+ links?: {
2715
+ about?: string | undefined;
2716
+ } | undefined;
2717
+ meta?: Record<string, unknown> | undefined;
2718
+ title?: string | undefined;
2719
+ detail?: string | undefined;
2720
+ source?: {
2721
+ pointer?: string | undefined;
2722
+ parameter?: string | undefined;
2723
+ } | undefined;
2724
+ }[];
2725
+ meta?: Record<string, unknown> | undefined;
2726
+ }>;
2727
+ };
2728
+ };
2729
+ unlinkPhone: {
2730
+ pathParams: z.ZodObject<{
2731
+ id: z.ZodString;
2732
+ }, "strip", z.ZodTypeAny, {
2733
+ id: string;
2734
+ }, {
2735
+ id: string;
2736
+ }>;
2737
+ summary: "Unlink phone";
2738
+ description: "Remove a phone number from the user account";
2739
+ method: "DELETE";
2740
+ path: "/user/phone-links/:id";
2741
+ responses: {
2742
+ 204: z.ZodUndefined;
2743
+ 401: z.ZodObject<{
2744
+ errors: z.ZodArray<z.ZodObject<{
2745
+ id: z.ZodOptional<z.ZodString>;
2746
+ links: z.ZodOptional<z.ZodObject<{
2747
+ about: z.ZodOptional<z.ZodString>;
2748
+ }, "strip", z.ZodTypeAny, {
2749
+ about?: string | undefined;
2750
+ }, {
2751
+ about?: string | undefined;
2752
+ }>>;
2753
+ status: z.ZodOptional<z.ZodString>;
2754
+ code: z.ZodOptional<z.ZodString>;
2755
+ title: z.ZodOptional<z.ZodString>;
2756
+ detail: z.ZodOptional<z.ZodString>;
2757
+ source: z.ZodOptional<z.ZodObject<{
2758
+ pointer: z.ZodOptional<z.ZodString>;
2759
+ parameter: z.ZodOptional<z.ZodString>;
2760
+ }, "strip", z.ZodTypeAny, {
2761
+ pointer?: string | undefined;
2762
+ parameter?: string | undefined;
2763
+ }, {
2764
+ pointer?: string | undefined;
2765
+ parameter?: string | undefined;
2766
+ }>>;
2767
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2768
+ }, "strip", z.ZodTypeAny, {
2769
+ status?: string | undefined;
2770
+ code?: string | undefined;
2771
+ id?: string | undefined;
2772
+ links?: {
2773
+ about?: string | undefined;
2774
+ } | undefined;
2775
+ meta?: Record<string, unknown> | undefined;
2776
+ title?: string | undefined;
2777
+ detail?: string | undefined;
2778
+ source?: {
2779
+ pointer?: string | undefined;
2780
+ parameter?: string | undefined;
2781
+ } | undefined;
2782
+ }, {
2783
+ status?: string | undefined;
2784
+ code?: string | undefined;
2785
+ id?: string | undefined;
2786
+ links?: {
2787
+ about?: string | undefined;
2788
+ } | undefined;
2789
+ meta?: Record<string, unknown> | undefined;
2790
+ title?: string | undefined;
2791
+ detail?: string | undefined;
2792
+ source?: {
2793
+ pointer?: string | undefined;
2794
+ parameter?: string | undefined;
2795
+ } | undefined;
2796
+ }>, "many">;
2797
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2798
+ }, "strip", z.ZodTypeAny, {
2799
+ errors: {
2800
+ status?: string | undefined;
2801
+ code?: string | undefined;
2802
+ id?: string | undefined;
2803
+ links?: {
2804
+ about?: string | undefined;
2805
+ } | undefined;
2806
+ meta?: Record<string, unknown> | undefined;
2807
+ title?: string | undefined;
2808
+ detail?: string | undefined;
2809
+ source?: {
2810
+ pointer?: string | undefined;
2811
+ parameter?: string | undefined;
2812
+ } | undefined;
2813
+ }[];
2814
+ meta?: Record<string, unknown> | undefined;
2815
+ }, {
2816
+ errors: {
2817
+ status?: string | undefined;
2818
+ code?: string | undefined;
2819
+ id?: string | undefined;
2820
+ links?: {
2821
+ about?: string | undefined;
2822
+ } | undefined;
2823
+ meta?: Record<string, unknown> | undefined;
2824
+ title?: string | undefined;
2825
+ detail?: string | undefined;
2826
+ source?: {
2827
+ pointer?: string | undefined;
2828
+ parameter?: string | undefined;
2829
+ } | undefined;
2830
+ }[];
2831
+ meta?: Record<string, unknown> | undefined;
2832
+ }>;
2833
+ 404: z.ZodObject<{
2834
+ errors: z.ZodArray<z.ZodObject<{
2835
+ id: z.ZodOptional<z.ZodString>;
2836
+ links: z.ZodOptional<z.ZodObject<{
2837
+ about: z.ZodOptional<z.ZodString>;
2838
+ }, "strip", z.ZodTypeAny, {
2839
+ about?: string | undefined;
2840
+ }, {
2841
+ about?: string | undefined;
2842
+ }>>;
2843
+ status: z.ZodOptional<z.ZodString>;
2844
+ code: z.ZodOptional<z.ZodString>;
2845
+ title: z.ZodOptional<z.ZodString>;
2846
+ detail: z.ZodOptional<z.ZodString>;
2847
+ source: z.ZodOptional<z.ZodObject<{
2848
+ pointer: z.ZodOptional<z.ZodString>;
2849
+ parameter: z.ZodOptional<z.ZodString>;
2850
+ }, "strip", z.ZodTypeAny, {
2851
+ pointer?: string | undefined;
2852
+ parameter?: string | undefined;
2853
+ }, {
2854
+ pointer?: string | undefined;
2855
+ parameter?: string | undefined;
2856
+ }>>;
2857
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2858
+ }, "strip", z.ZodTypeAny, {
2859
+ status?: string | undefined;
2860
+ code?: string | undefined;
2861
+ id?: string | undefined;
2862
+ links?: {
2863
+ about?: string | undefined;
2864
+ } | undefined;
2865
+ meta?: Record<string, unknown> | undefined;
2866
+ title?: string | undefined;
2867
+ detail?: string | undefined;
2868
+ source?: {
2869
+ pointer?: string | undefined;
2870
+ parameter?: string | undefined;
2871
+ } | undefined;
2872
+ }, {
2873
+ status?: string | undefined;
2874
+ code?: string | undefined;
2875
+ id?: string | undefined;
2876
+ links?: {
2877
+ about?: string | undefined;
2878
+ } | undefined;
2879
+ meta?: Record<string, unknown> | undefined;
2880
+ title?: string | undefined;
2881
+ detail?: string | undefined;
2882
+ source?: {
2883
+ pointer?: string | undefined;
2884
+ parameter?: string | undefined;
2885
+ } | undefined;
2886
+ }>, "many">;
2887
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2888
+ }, "strip", z.ZodTypeAny, {
2889
+ errors: {
2890
+ status?: string | undefined;
2891
+ code?: string | undefined;
2892
+ id?: string | undefined;
2893
+ links?: {
2894
+ about?: string | undefined;
2895
+ } | undefined;
2896
+ meta?: Record<string, unknown> | undefined;
2897
+ title?: string | undefined;
2898
+ detail?: string | undefined;
2899
+ source?: {
2900
+ pointer?: string | undefined;
2901
+ parameter?: string | undefined;
2902
+ } | undefined;
2903
+ }[];
2904
+ meta?: Record<string, unknown> | undefined;
2905
+ }, {
2906
+ errors: {
2907
+ status?: string | undefined;
2908
+ code?: string | undefined;
2909
+ id?: string | undefined;
2910
+ links?: {
2911
+ about?: string | undefined;
2912
+ } | undefined;
2913
+ meta?: Record<string, unknown> | undefined;
2914
+ title?: string | undefined;
2915
+ detail?: string | undefined;
2916
+ source?: {
2917
+ pointer?: string | undefined;
2918
+ parameter?: string | undefined;
2919
+ } | undefined;
2920
+ }[];
2921
+ meta?: Record<string, unknown> | undefined;
2922
+ }>;
2923
+ };
2924
+ };
720
2925
  };
721
2926
  //# sourceMappingURL=users.routes.d.ts.map