@deepintel-ltd/farmpro-contracts 1.11.1 → 1.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/routes/admin.routes.d.ts +1078 -134
- package/dist/routes/admin.routes.d.ts.map +1 -1
- package/dist/routes/admin.routes.js +32 -2
- package/dist/routes/auth.routes.d.ts +496 -0
- package/dist/routes/auth.routes.d.ts.map +1 -1
- package/dist/routes/auth.routes.js +15 -1
- package/dist/routes/commodity-deals.routes.d.ts +63 -0
- package/dist/routes/commodity-deals.routes.d.ts.map +1 -1
- package/dist/routes/live-monitor.routes.d.ts +2 -2
- package/dist/routes/organizations.routes.d.ts +23 -8
- package/dist/routes/organizations.routes.d.ts.map +1 -1
- package/dist/routes/prescription-maps.routes.d.ts +2 -2
- package/dist/schemas/admin.schemas.d.ts +415 -0
- package/dist/schemas/admin.schemas.d.ts.map +1 -1
- package/dist/schemas/admin.schemas.js +22 -1
- package/dist/schemas/auth.schemas.d.ts +28 -0
- package/dist/schemas/auth.schemas.d.ts.map +1 -1
- package/dist/schemas/auth.schemas.js +8 -0
- package/dist/schemas/commodity-deals.schemas.d.ts +33 -0
- package/dist/schemas/commodity-deals.schemas.d.ts.map +1 -1
- package/dist/schemas/commodity-deals.schemas.js +1 -0
- package/dist/schemas/live-monitor.schemas.d.ts +2 -2
- package/dist/schemas/organizations.schemas.d.ts +34 -10
- package/dist/schemas/organizations.schemas.d.ts.map +1 -1
- package/dist/schemas/organizations.schemas.js +8 -2
- package/dist/schemas/prescription-maps.schemas.d.ts +2 -2
- package/package.json +1 -1
|
@@ -743,71 +743,28 @@ export declare const adminRouter: {
|
|
|
743
743
|
}>;
|
|
744
744
|
};
|
|
745
745
|
};
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
type: z.ZodLiteral<"users">;
|
|
753
|
-
attributes: z.ZodObject<{
|
|
754
|
-
name: z.ZodString;
|
|
755
|
-
email: z.ZodString;
|
|
756
|
-
password: z.ZodString;
|
|
757
|
-
phone: z.ZodOptional<z.ZodString>;
|
|
758
|
-
}, "strip", z.ZodTypeAny, {
|
|
759
|
-
email: string;
|
|
760
|
-
password: string;
|
|
761
|
-
name: string;
|
|
762
|
-
phone?: string | undefined;
|
|
763
|
-
}, {
|
|
764
|
-
email: string;
|
|
765
|
-
password: string;
|
|
766
|
-
name: string;
|
|
767
|
-
phone?: string | undefined;
|
|
768
|
-
}>;
|
|
769
|
-
}, "strip", z.ZodTypeAny, {
|
|
770
|
-
type: "users";
|
|
771
|
-
attributes: {
|
|
772
|
-
email: string;
|
|
773
|
-
password: string;
|
|
774
|
-
name: string;
|
|
775
|
-
phone?: string | undefined;
|
|
776
|
-
};
|
|
777
|
-
}, {
|
|
778
|
-
type: "users";
|
|
779
|
-
attributes: {
|
|
780
|
-
email: string;
|
|
781
|
-
password: string;
|
|
782
|
-
name: string;
|
|
783
|
-
phone?: string | undefined;
|
|
784
|
-
};
|
|
785
|
-
}>;
|
|
746
|
+
listUsers: {
|
|
747
|
+
query: z.ZodObject<{
|
|
748
|
+
'page[number]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
749
|
+
'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
750
|
+
} & {
|
|
751
|
+
q: z.ZodOptional<z.ZodString>;
|
|
786
752
|
}, "strip", z.ZodTypeAny, {
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
email: string;
|
|
791
|
-
password: string;
|
|
792
|
-
name: string;
|
|
793
|
-
phone?: string | undefined;
|
|
794
|
-
};
|
|
795
|
-
};
|
|
753
|
+
'page[number]'?: number | undefined;
|
|
754
|
+
'page[size]'?: number | undefined;
|
|
755
|
+
q?: string | undefined;
|
|
796
756
|
}, {
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
email: string;
|
|
801
|
-
password: string;
|
|
802
|
-
name: string;
|
|
803
|
-
phone?: string | undefined;
|
|
804
|
-
};
|
|
805
|
-
};
|
|
757
|
+
'page[number]'?: number | undefined;
|
|
758
|
+
'page[size]'?: number | undefined;
|
|
759
|
+
q?: string | undefined;
|
|
806
760
|
}>;
|
|
761
|
+
summary: "List users (platform admin)";
|
|
762
|
+
description: "Search and paginate platform users. Restricted to ADMIN_EMAILS.";
|
|
763
|
+
method: "GET";
|
|
807
764
|
path: "/admin/users";
|
|
808
765
|
responses: {
|
|
809
|
-
|
|
810
|
-
data: z.ZodObject<{
|
|
766
|
+
200: z.ZodObject<{
|
|
767
|
+
data: z.ZodArray<z.ZodObject<{
|
|
811
768
|
type: z.ZodLiteral<string>;
|
|
812
769
|
id: z.ZodString;
|
|
813
770
|
attributes: z.ZodObject<{
|
|
@@ -815,8 +772,7 @@ export declare const adminRouter: {
|
|
|
815
772
|
email: z.ZodString;
|
|
816
773
|
phone: z.ZodNullable<z.ZodString>;
|
|
817
774
|
emailVerified: z.ZodBoolean;
|
|
818
|
-
|
|
819
|
-
isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
775
|
+
isPlatformAdmin: z.ZodBoolean;
|
|
820
776
|
} & {
|
|
821
777
|
createdAt: z.ZodString;
|
|
822
778
|
updatedAt: z.ZodString;
|
|
@@ -827,8 +783,7 @@ export declare const adminRouter: {
|
|
|
827
783
|
name: string;
|
|
828
784
|
phone: string | null;
|
|
829
785
|
emailVerified: boolean;
|
|
830
|
-
|
|
831
|
-
isPlatformAdmin?: boolean | undefined;
|
|
786
|
+
isPlatformAdmin: boolean;
|
|
832
787
|
}, {
|
|
833
788
|
email: string;
|
|
834
789
|
createdAt: string;
|
|
@@ -836,8 +791,7 @@ export declare const adminRouter: {
|
|
|
836
791
|
name: string;
|
|
837
792
|
phone: string | null;
|
|
838
793
|
emailVerified: boolean;
|
|
839
|
-
|
|
840
|
-
isPlatformAdmin?: boolean | undefined;
|
|
794
|
+
isPlatformAdmin: boolean;
|
|
841
795
|
}>;
|
|
842
796
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
843
797
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -852,8 +806,7 @@ export declare const adminRouter: {
|
|
|
852
806
|
name: string;
|
|
853
807
|
phone: string | null;
|
|
854
808
|
emailVerified: boolean;
|
|
855
|
-
|
|
856
|
-
isPlatformAdmin?: boolean | undefined;
|
|
809
|
+
isPlatformAdmin: boolean;
|
|
857
810
|
};
|
|
858
811
|
relationships?: Record<string, unknown> | undefined;
|
|
859
812
|
links?: Record<string, string> | undefined;
|
|
@@ -868,13 +821,12 @@ export declare const adminRouter: {
|
|
|
868
821
|
name: string;
|
|
869
822
|
phone: string | null;
|
|
870
823
|
emailVerified: boolean;
|
|
871
|
-
|
|
872
|
-
isPlatformAdmin?: boolean | undefined;
|
|
824
|
+
isPlatformAdmin: boolean;
|
|
873
825
|
};
|
|
874
826
|
relationships?: Record<string, unknown> | undefined;
|
|
875
827
|
links?: Record<string, string> | undefined;
|
|
876
828
|
meta?: Record<string, unknown> | undefined;
|
|
877
|
-
}>;
|
|
829
|
+
}>, "many">;
|
|
878
830
|
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
879
831
|
type: z.ZodString;
|
|
880
832
|
id: z.ZodString;
|
|
@@ -897,8 +849,24 @@ export declare const adminRouter: {
|
|
|
897
849
|
links?: Record<string, string> | undefined;
|
|
898
850
|
meta?: Record<string, unknown> | undefined;
|
|
899
851
|
}>, "many">>;
|
|
900
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
901
852
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
853
|
+
} & {
|
|
854
|
+
meta: z.ZodOptional<z.ZodObject<{
|
|
855
|
+
totalRecords: z.ZodNumber;
|
|
856
|
+
totalPages: z.ZodNumber;
|
|
857
|
+
currentPage: z.ZodNumber;
|
|
858
|
+
pageSize: z.ZodNumber;
|
|
859
|
+
}, "strip", z.ZodTypeAny, {
|
|
860
|
+
totalRecords: number;
|
|
861
|
+
totalPages: number;
|
|
862
|
+
currentPage: number;
|
|
863
|
+
pageSize: number;
|
|
864
|
+
}, {
|
|
865
|
+
totalRecords: number;
|
|
866
|
+
totalPages: number;
|
|
867
|
+
currentPage: number;
|
|
868
|
+
pageSize: number;
|
|
869
|
+
}>>;
|
|
902
870
|
}, "strip", z.ZodTypeAny, {
|
|
903
871
|
data: {
|
|
904
872
|
type: string;
|
|
@@ -910,15 +878,19 @@ export declare const adminRouter: {
|
|
|
910
878
|
name: string;
|
|
911
879
|
phone: string | null;
|
|
912
880
|
emailVerified: boolean;
|
|
913
|
-
|
|
914
|
-
isPlatformAdmin?: boolean | undefined;
|
|
881
|
+
isPlatformAdmin: boolean;
|
|
915
882
|
};
|
|
916
883
|
relationships?: Record<string, unknown> | undefined;
|
|
917
884
|
links?: Record<string, string> | undefined;
|
|
918
885
|
meta?: Record<string, unknown> | undefined;
|
|
919
|
-
};
|
|
886
|
+
}[];
|
|
920
887
|
links?: Record<string, string> | undefined;
|
|
921
|
-
meta?:
|
|
888
|
+
meta?: {
|
|
889
|
+
totalRecords: number;
|
|
890
|
+
totalPages: number;
|
|
891
|
+
currentPage: number;
|
|
892
|
+
pageSize: number;
|
|
893
|
+
} | undefined;
|
|
922
894
|
included?: {
|
|
923
895
|
type: string;
|
|
924
896
|
id: string;
|
|
@@ -938,15 +910,19 @@ export declare const adminRouter: {
|
|
|
938
910
|
name: string;
|
|
939
911
|
phone: string | null;
|
|
940
912
|
emailVerified: boolean;
|
|
941
|
-
|
|
942
|
-
isPlatformAdmin?: boolean | undefined;
|
|
913
|
+
isPlatformAdmin: boolean;
|
|
943
914
|
};
|
|
944
915
|
relationships?: Record<string, unknown> | undefined;
|
|
945
916
|
links?: Record<string, string> | undefined;
|
|
946
917
|
meta?: Record<string, unknown> | undefined;
|
|
947
|
-
};
|
|
918
|
+
}[];
|
|
948
919
|
links?: Record<string, string> | undefined;
|
|
949
|
-
meta?:
|
|
920
|
+
meta?: {
|
|
921
|
+
totalRecords: number;
|
|
922
|
+
totalPages: number;
|
|
923
|
+
currentPage: number;
|
|
924
|
+
pageSize: number;
|
|
925
|
+
} | undefined;
|
|
950
926
|
included?: {
|
|
951
927
|
type: string;
|
|
952
928
|
id: string;
|
|
@@ -956,7 +932,7 @@ export declare const adminRouter: {
|
|
|
956
932
|
meta?: Record<string, unknown> | undefined;
|
|
957
933
|
}[] | undefined;
|
|
958
934
|
}>;
|
|
959
|
-
|
|
935
|
+
401: z.ZodObject<{
|
|
960
936
|
errors: z.ZodArray<z.ZodObject<{
|
|
961
937
|
id: z.ZodOptional<z.ZodString>;
|
|
962
938
|
links: z.ZodOptional<z.ZodObject<{
|
|
@@ -1046,7 +1022,7 @@ export declare const adminRouter: {
|
|
|
1046
1022
|
}[];
|
|
1047
1023
|
meta?: Record<string, unknown> | undefined;
|
|
1048
1024
|
}>;
|
|
1049
|
-
|
|
1025
|
+
403: z.ZodObject<{
|
|
1050
1026
|
errors: z.ZodArray<z.ZodObject<{
|
|
1051
1027
|
id: z.ZodOptional<z.ZodString>;
|
|
1052
1028
|
links: z.ZodOptional<z.ZodObject<{
|
|
@@ -1136,7 +1112,7 @@ export declare const adminRouter: {
|
|
|
1136
1112
|
}[];
|
|
1137
1113
|
meta?: Record<string, unknown> | undefined;
|
|
1138
1114
|
}>;
|
|
1139
|
-
|
|
1115
|
+
500: z.ZodObject<{
|
|
1140
1116
|
errors: z.ZodArray<z.ZodObject<{
|
|
1141
1117
|
id: z.ZodOptional<z.ZodString>;
|
|
1142
1118
|
links: z.ZodOptional<z.ZodObject<{
|
|
@@ -1226,62 +1202,940 @@ export declare const adminRouter: {
|
|
|
1226
1202
|
}[];
|
|
1227
1203
|
meta?: Record<string, unknown> | undefined;
|
|
1228
1204
|
}>;
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1205
|
+
};
|
|
1206
|
+
};
|
|
1207
|
+
createUser: {
|
|
1208
|
+
summary: "Create user (platform admin)";
|
|
1209
|
+
description: "Provision a platform user with email and password. Restricted to ADMIN_EMAILS.";
|
|
1210
|
+
method: "POST";
|
|
1211
|
+
body: z.ZodObject<{
|
|
1212
|
+
data: z.ZodObject<{
|
|
1213
|
+
type: z.ZodLiteral<"users">;
|
|
1214
|
+
attributes: z.ZodObject<{
|
|
1215
|
+
name: z.ZodString;
|
|
1216
|
+
email: z.ZodString;
|
|
1217
|
+
password: z.ZodString;
|
|
1218
|
+
phone: z.ZodOptional<z.ZodString>;
|
|
1219
|
+
}, "strip", z.ZodTypeAny, {
|
|
1220
|
+
email: string;
|
|
1221
|
+
password: string;
|
|
1222
|
+
name: string;
|
|
1223
|
+
phone?: string | undefined;
|
|
1224
|
+
}, {
|
|
1225
|
+
email: string;
|
|
1226
|
+
password: string;
|
|
1227
|
+
name: string;
|
|
1228
|
+
phone?: string | undefined;
|
|
1229
|
+
}>;
|
|
1230
|
+
}, "strip", z.ZodTypeAny, {
|
|
1231
|
+
type: "users";
|
|
1232
|
+
attributes: {
|
|
1233
|
+
email: string;
|
|
1234
|
+
password: string;
|
|
1235
|
+
name: string;
|
|
1236
|
+
phone?: string | undefined;
|
|
1237
|
+
};
|
|
1238
|
+
}, {
|
|
1239
|
+
type: "users";
|
|
1240
|
+
attributes: {
|
|
1241
|
+
email: string;
|
|
1242
|
+
password: string;
|
|
1243
|
+
name: string;
|
|
1244
|
+
phone?: string | undefined;
|
|
1245
|
+
};
|
|
1246
|
+
}>;
|
|
1247
|
+
}, "strip", z.ZodTypeAny, {
|
|
1248
|
+
data: {
|
|
1249
|
+
type: "users";
|
|
1250
|
+
attributes: {
|
|
1251
|
+
email: string;
|
|
1252
|
+
password: string;
|
|
1253
|
+
name: string;
|
|
1254
|
+
phone?: string | undefined;
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1257
|
+
}, {
|
|
1258
|
+
data: {
|
|
1259
|
+
type: "users";
|
|
1260
|
+
attributes: {
|
|
1261
|
+
email: string;
|
|
1262
|
+
password: string;
|
|
1263
|
+
name: string;
|
|
1264
|
+
phone?: string | undefined;
|
|
1265
|
+
};
|
|
1266
|
+
};
|
|
1267
|
+
}>;
|
|
1268
|
+
path: "/admin/users";
|
|
1269
|
+
responses: {
|
|
1270
|
+
201: z.ZodObject<{
|
|
1271
|
+
data: z.ZodObject<{
|
|
1272
|
+
type: z.ZodLiteral<string>;
|
|
1273
|
+
id: z.ZodString;
|
|
1274
|
+
attributes: z.ZodObject<{
|
|
1275
|
+
name: z.ZodString;
|
|
1276
|
+
email: z.ZodString;
|
|
1277
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
1278
|
+
emailVerified: z.ZodBoolean;
|
|
1279
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
1280
|
+
isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
1281
|
+
} & {
|
|
1282
|
+
createdAt: z.ZodString;
|
|
1283
|
+
updatedAt: z.ZodString;
|
|
1246
1284
|
}, "strip", z.ZodTypeAny, {
|
|
1247
|
-
|
|
1248
|
-
|
|
1285
|
+
email: string;
|
|
1286
|
+
createdAt: string;
|
|
1287
|
+
updatedAt: string;
|
|
1288
|
+
name: string;
|
|
1289
|
+
phone: string | null;
|
|
1290
|
+
emailVerified: boolean;
|
|
1291
|
+
avatar: string | null;
|
|
1292
|
+
isPlatformAdmin?: boolean | undefined;
|
|
1249
1293
|
}, {
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1294
|
+
email: string;
|
|
1295
|
+
createdAt: string;
|
|
1296
|
+
updatedAt: string;
|
|
1297
|
+
name: string;
|
|
1298
|
+
phone: string | null;
|
|
1299
|
+
emailVerified: boolean;
|
|
1300
|
+
avatar: string | null;
|
|
1301
|
+
isPlatformAdmin?: boolean | undefined;
|
|
1302
|
+
}>;
|
|
1303
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1304
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1253
1305
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1254
1306
|
}, "strip", z.ZodTypeAny, {
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1307
|
+
type: string;
|
|
1308
|
+
id: string;
|
|
1309
|
+
attributes: {
|
|
1310
|
+
email: string;
|
|
1311
|
+
createdAt: string;
|
|
1312
|
+
updatedAt: string;
|
|
1313
|
+
name: string;
|
|
1314
|
+
phone: string | null;
|
|
1315
|
+
emailVerified: boolean;
|
|
1316
|
+
avatar: string | null;
|
|
1317
|
+
isPlatformAdmin?: boolean | undefined;
|
|
1318
|
+
};
|
|
1319
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1320
|
+
links?: Record<string, string> | undefined;
|
|
1261
1321
|
meta?: Record<string, unknown> | undefined;
|
|
1262
|
-
title?: string | undefined;
|
|
1263
|
-
detail?: string | undefined;
|
|
1264
|
-
source?: {
|
|
1265
|
-
pointer?: string | undefined;
|
|
1266
|
-
parameter?: string | undefined;
|
|
1267
|
-
} | undefined;
|
|
1268
1322
|
}, {
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1323
|
+
type: string;
|
|
1324
|
+
id: string;
|
|
1325
|
+
attributes: {
|
|
1326
|
+
email: string;
|
|
1327
|
+
createdAt: string;
|
|
1328
|
+
updatedAt: string;
|
|
1329
|
+
name: string;
|
|
1330
|
+
phone: string | null;
|
|
1331
|
+
emailVerified: boolean;
|
|
1332
|
+
avatar: string | null;
|
|
1333
|
+
isPlatformAdmin?: boolean | undefined;
|
|
1334
|
+
};
|
|
1335
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1336
|
+
links?: Record<string, string> | undefined;
|
|
1337
|
+
meta?: Record<string, unknown> | undefined;
|
|
1338
|
+
}>;
|
|
1339
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1340
|
+
type: z.ZodString;
|
|
1341
|
+
id: z.ZodString;
|
|
1342
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1343
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1344
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1345
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1346
|
+
}, "strip", z.ZodTypeAny, {
|
|
1347
|
+
type: string;
|
|
1348
|
+
id: string;
|
|
1349
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1350
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1351
|
+
links?: Record<string, string> | undefined;
|
|
1352
|
+
meta?: Record<string, unknown> | undefined;
|
|
1353
|
+
}, {
|
|
1354
|
+
type: string;
|
|
1355
|
+
id: string;
|
|
1356
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1357
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1358
|
+
links?: Record<string, string> | undefined;
|
|
1359
|
+
meta?: Record<string, unknown> | undefined;
|
|
1360
|
+
}>, "many">>;
|
|
1361
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1362
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1363
|
+
}, "strip", z.ZodTypeAny, {
|
|
1364
|
+
data: {
|
|
1365
|
+
type: string;
|
|
1366
|
+
id: string;
|
|
1367
|
+
attributes: {
|
|
1368
|
+
email: string;
|
|
1369
|
+
createdAt: string;
|
|
1370
|
+
updatedAt: string;
|
|
1371
|
+
name: string;
|
|
1372
|
+
phone: string | null;
|
|
1373
|
+
emailVerified: boolean;
|
|
1374
|
+
avatar: string | null;
|
|
1375
|
+
isPlatformAdmin?: boolean | undefined;
|
|
1376
|
+
};
|
|
1377
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1378
|
+
links?: Record<string, string> | undefined;
|
|
1379
|
+
meta?: Record<string, unknown> | undefined;
|
|
1380
|
+
};
|
|
1381
|
+
links?: Record<string, string> | undefined;
|
|
1382
|
+
meta?: Record<string, unknown> | undefined;
|
|
1383
|
+
included?: {
|
|
1384
|
+
type: string;
|
|
1385
|
+
id: string;
|
|
1386
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1387
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1388
|
+
links?: Record<string, string> | undefined;
|
|
1389
|
+
meta?: Record<string, unknown> | undefined;
|
|
1390
|
+
}[] | undefined;
|
|
1391
|
+
}, {
|
|
1392
|
+
data: {
|
|
1393
|
+
type: string;
|
|
1394
|
+
id: string;
|
|
1395
|
+
attributes: {
|
|
1396
|
+
email: string;
|
|
1397
|
+
createdAt: string;
|
|
1398
|
+
updatedAt: string;
|
|
1399
|
+
name: string;
|
|
1400
|
+
phone: string | null;
|
|
1401
|
+
emailVerified: boolean;
|
|
1402
|
+
avatar: string | null;
|
|
1403
|
+
isPlatformAdmin?: boolean | undefined;
|
|
1404
|
+
};
|
|
1405
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1406
|
+
links?: Record<string, string> | undefined;
|
|
1407
|
+
meta?: Record<string, unknown> | undefined;
|
|
1408
|
+
};
|
|
1409
|
+
links?: Record<string, string> | undefined;
|
|
1410
|
+
meta?: Record<string, unknown> | undefined;
|
|
1411
|
+
included?: {
|
|
1412
|
+
type: string;
|
|
1413
|
+
id: string;
|
|
1414
|
+
attributes?: Record<string, unknown> | undefined;
|
|
1415
|
+
relationships?: Record<string, unknown> | undefined;
|
|
1416
|
+
links?: Record<string, string> | undefined;
|
|
1417
|
+
meta?: Record<string, unknown> | undefined;
|
|
1418
|
+
}[] | undefined;
|
|
1419
|
+
}>;
|
|
1420
|
+
400: z.ZodObject<{
|
|
1421
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1422
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1423
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1424
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1425
|
+
}, "strip", z.ZodTypeAny, {
|
|
1426
|
+
about?: string | undefined;
|
|
1427
|
+
}, {
|
|
1428
|
+
about?: string | undefined;
|
|
1429
|
+
}>>;
|
|
1430
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1431
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1432
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1433
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1434
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1435
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1436
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1437
|
+
}, "strip", z.ZodTypeAny, {
|
|
1438
|
+
pointer?: string | undefined;
|
|
1439
|
+
parameter?: string | undefined;
|
|
1440
|
+
}, {
|
|
1441
|
+
pointer?: string | undefined;
|
|
1442
|
+
parameter?: string | undefined;
|
|
1443
|
+
}>>;
|
|
1444
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1445
|
+
}, "strip", z.ZodTypeAny, {
|
|
1446
|
+
status?: string | undefined;
|
|
1447
|
+
code?: string | undefined;
|
|
1448
|
+
id?: string | undefined;
|
|
1449
|
+
links?: {
|
|
1450
|
+
about?: string | undefined;
|
|
1451
|
+
} | undefined;
|
|
1452
|
+
meta?: Record<string, unknown> | undefined;
|
|
1453
|
+
title?: string | undefined;
|
|
1454
|
+
detail?: string | undefined;
|
|
1455
|
+
source?: {
|
|
1456
|
+
pointer?: string | undefined;
|
|
1457
|
+
parameter?: string | undefined;
|
|
1458
|
+
} | undefined;
|
|
1459
|
+
}, {
|
|
1460
|
+
status?: string | undefined;
|
|
1461
|
+
code?: string | undefined;
|
|
1462
|
+
id?: string | undefined;
|
|
1463
|
+
links?: {
|
|
1464
|
+
about?: string | undefined;
|
|
1465
|
+
} | undefined;
|
|
1466
|
+
meta?: Record<string, unknown> | undefined;
|
|
1467
|
+
title?: string | undefined;
|
|
1468
|
+
detail?: string | undefined;
|
|
1469
|
+
source?: {
|
|
1470
|
+
pointer?: string | undefined;
|
|
1471
|
+
parameter?: string | undefined;
|
|
1472
|
+
} | undefined;
|
|
1473
|
+
}>, "many">;
|
|
1474
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1475
|
+
}, "strip", z.ZodTypeAny, {
|
|
1476
|
+
errors: {
|
|
1477
|
+
status?: string | undefined;
|
|
1478
|
+
code?: string | undefined;
|
|
1479
|
+
id?: string | undefined;
|
|
1480
|
+
links?: {
|
|
1481
|
+
about?: string | undefined;
|
|
1482
|
+
} | undefined;
|
|
1483
|
+
meta?: Record<string, unknown> | undefined;
|
|
1484
|
+
title?: string | undefined;
|
|
1485
|
+
detail?: string | undefined;
|
|
1486
|
+
source?: {
|
|
1487
|
+
pointer?: string | undefined;
|
|
1488
|
+
parameter?: string | undefined;
|
|
1489
|
+
} | undefined;
|
|
1490
|
+
}[];
|
|
1491
|
+
meta?: Record<string, unknown> | undefined;
|
|
1492
|
+
}, {
|
|
1493
|
+
errors: {
|
|
1494
|
+
status?: string | undefined;
|
|
1495
|
+
code?: string | undefined;
|
|
1496
|
+
id?: string | undefined;
|
|
1497
|
+
links?: {
|
|
1498
|
+
about?: string | undefined;
|
|
1499
|
+
} | undefined;
|
|
1500
|
+
meta?: Record<string, unknown> | undefined;
|
|
1501
|
+
title?: string | undefined;
|
|
1502
|
+
detail?: string | undefined;
|
|
1503
|
+
source?: {
|
|
1504
|
+
pointer?: string | undefined;
|
|
1505
|
+
parameter?: string | undefined;
|
|
1506
|
+
} | undefined;
|
|
1507
|
+
}[];
|
|
1508
|
+
meta?: Record<string, unknown> | undefined;
|
|
1509
|
+
}>;
|
|
1510
|
+
401: z.ZodObject<{
|
|
1511
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1512
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1513
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1514
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1515
|
+
}, "strip", z.ZodTypeAny, {
|
|
1516
|
+
about?: string | undefined;
|
|
1517
|
+
}, {
|
|
1518
|
+
about?: string | undefined;
|
|
1519
|
+
}>>;
|
|
1520
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1521
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1522
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1523
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1524
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1525
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1526
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1527
|
+
}, "strip", z.ZodTypeAny, {
|
|
1528
|
+
pointer?: string | undefined;
|
|
1529
|
+
parameter?: string | undefined;
|
|
1530
|
+
}, {
|
|
1531
|
+
pointer?: string | undefined;
|
|
1532
|
+
parameter?: string | undefined;
|
|
1533
|
+
}>>;
|
|
1534
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1535
|
+
}, "strip", z.ZodTypeAny, {
|
|
1536
|
+
status?: string | undefined;
|
|
1537
|
+
code?: string | undefined;
|
|
1538
|
+
id?: string | undefined;
|
|
1539
|
+
links?: {
|
|
1540
|
+
about?: string | undefined;
|
|
1541
|
+
} | undefined;
|
|
1542
|
+
meta?: Record<string, unknown> | undefined;
|
|
1543
|
+
title?: string | undefined;
|
|
1544
|
+
detail?: string | undefined;
|
|
1545
|
+
source?: {
|
|
1546
|
+
pointer?: string | undefined;
|
|
1547
|
+
parameter?: string | undefined;
|
|
1548
|
+
} | undefined;
|
|
1549
|
+
}, {
|
|
1550
|
+
status?: string | undefined;
|
|
1551
|
+
code?: string | undefined;
|
|
1552
|
+
id?: string | undefined;
|
|
1553
|
+
links?: {
|
|
1554
|
+
about?: string | undefined;
|
|
1555
|
+
} | undefined;
|
|
1556
|
+
meta?: Record<string, unknown> | undefined;
|
|
1557
|
+
title?: string | undefined;
|
|
1558
|
+
detail?: string | undefined;
|
|
1559
|
+
source?: {
|
|
1560
|
+
pointer?: string | undefined;
|
|
1561
|
+
parameter?: string | undefined;
|
|
1562
|
+
} | undefined;
|
|
1563
|
+
}>, "many">;
|
|
1564
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1565
|
+
}, "strip", z.ZodTypeAny, {
|
|
1566
|
+
errors: {
|
|
1567
|
+
status?: string | undefined;
|
|
1568
|
+
code?: string | undefined;
|
|
1569
|
+
id?: string | undefined;
|
|
1570
|
+
links?: {
|
|
1571
|
+
about?: string | undefined;
|
|
1572
|
+
} | undefined;
|
|
1573
|
+
meta?: Record<string, unknown> | undefined;
|
|
1574
|
+
title?: string | undefined;
|
|
1575
|
+
detail?: string | undefined;
|
|
1576
|
+
source?: {
|
|
1577
|
+
pointer?: string | undefined;
|
|
1578
|
+
parameter?: string | undefined;
|
|
1579
|
+
} | undefined;
|
|
1580
|
+
}[];
|
|
1581
|
+
meta?: Record<string, unknown> | undefined;
|
|
1582
|
+
}, {
|
|
1583
|
+
errors: {
|
|
1584
|
+
status?: string | undefined;
|
|
1585
|
+
code?: string | undefined;
|
|
1586
|
+
id?: string | undefined;
|
|
1587
|
+
links?: {
|
|
1588
|
+
about?: string | undefined;
|
|
1589
|
+
} | undefined;
|
|
1590
|
+
meta?: Record<string, unknown> | undefined;
|
|
1591
|
+
title?: string | undefined;
|
|
1592
|
+
detail?: string | undefined;
|
|
1593
|
+
source?: {
|
|
1594
|
+
pointer?: string | undefined;
|
|
1595
|
+
parameter?: string | undefined;
|
|
1596
|
+
} | undefined;
|
|
1597
|
+
}[];
|
|
1598
|
+
meta?: Record<string, unknown> | undefined;
|
|
1599
|
+
}>;
|
|
1600
|
+
403: z.ZodObject<{
|
|
1601
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1602
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1603
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1604
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1605
|
+
}, "strip", z.ZodTypeAny, {
|
|
1606
|
+
about?: string | undefined;
|
|
1607
|
+
}, {
|
|
1608
|
+
about?: string | undefined;
|
|
1609
|
+
}>>;
|
|
1610
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1611
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1612
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1613
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1614
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1615
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1616
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1617
|
+
}, "strip", z.ZodTypeAny, {
|
|
1618
|
+
pointer?: string | undefined;
|
|
1619
|
+
parameter?: string | undefined;
|
|
1620
|
+
}, {
|
|
1621
|
+
pointer?: string | undefined;
|
|
1622
|
+
parameter?: string | undefined;
|
|
1623
|
+
}>>;
|
|
1624
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1625
|
+
}, "strip", z.ZodTypeAny, {
|
|
1626
|
+
status?: string | undefined;
|
|
1627
|
+
code?: string | undefined;
|
|
1628
|
+
id?: string | undefined;
|
|
1629
|
+
links?: {
|
|
1630
|
+
about?: string | undefined;
|
|
1631
|
+
} | undefined;
|
|
1632
|
+
meta?: Record<string, unknown> | undefined;
|
|
1633
|
+
title?: string | undefined;
|
|
1634
|
+
detail?: string | undefined;
|
|
1635
|
+
source?: {
|
|
1636
|
+
pointer?: string | undefined;
|
|
1637
|
+
parameter?: string | undefined;
|
|
1638
|
+
} | undefined;
|
|
1639
|
+
}, {
|
|
1640
|
+
status?: string | undefined;
|
|
1641
|
+
code?: string | undefined;
|
|
1642
|
+
id?: string | undefined;
|
|
1643
|
+
links?: {
|
|
1644
|
+
about?: string | undefined;
|
|
1645
|
+
} | undefined;
|
|
1646
|
+
meta?: Record<string, unknown> | undefined;
|
|
1647
|
+
title?: string | undefined;
|
|
1648
|
+
detail?: string | undefined;
|
|
1649
|
+
source?: {
|
|
1650
|
+
pointer?: string | undefined;
|
|
1651
|
+
parameter?: string | undefined;
|
|
1652
|
+
} | undefined;
|
|
1653
|
+
}>, "many">;
|
|
1654
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1655
|
+
}, "strip", z.ZodTypeAny, {
|
|
1656
|
+
errors: {
|
|
1657
|
+
status?: string | undefined;
|
|
1658
|
+
code?: string | undefined;
|
|
1659
|
+
id?: string | undefined;
|
|
1660
|
+
links?: {
|
|
1661
|
+
about?: string | undefined;
|
|
1662
|
+
} | undefined;
|
|
1663
|
+
meta?: Record<string, unknown> | undefined;
|
|
1664
|
+
title?: string | undefined;
|
|
1665
|
+
detail?: string | undefined;
|
|
1666
|
+
source?: {
|
|
1667
|
+
pointer?: string | undefined;
|
|
1668
|
+
parameter?: string | undefined;
|
|
1669
|
+
} | undefined;
|
|
1670
|
+
}[];
|
|
1671
|
+
meta?: Record<string, unknown> | undefined;
|
|
1672
|
+
}, {
|
|
1673
|
+
errors: {
|
|
1674
|
+
status?: string | undefined;
|
|
1675
|
+
code?: string | undefined;
|
|
1676
|
+
id?: string | undefined;
|
|
1677
|
+
links?: {
|
|
1678
|
+
about?: string | undefined;
|
|
1679
|
+
} | undefined;
|
|
1680
|
+
meta?: Record<string, unknown> | undefined;
|
|
1681
|
+
title?: string | undefined;
|
|
1682
|
+
detail?: string | undefined;
|
|
1683
|
+
source?: {
|
|
1684
|
+
pointer?: string | undefined;
|
|
1685
|
+
parameter?: string | undefined;
|
|
1686
|
+
} | undefined;
|
|
1687
|
+
}[];
|
|
1688
|
+
meta?: Record<string, unknown> | undefined;
|
|
1689
|
+
}>;
|
|
1690
|
+
409: z.ZodObject<{
|
|
1691
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1692
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1693
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1694
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1695
|
+
}, "strip", z.ZodTypeAny, {
|
|
1696
|
+
about?: string | undefined;
|
|
1697
|
+
}, {
|
|
1698
|
+
about?: string | undefined;
|
|
1699
|
+
}>>;
|
|
1700
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1701
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1702
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1703
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1704
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1705
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1706
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1707
|
+
}, "strip", z.ZodTypeAny, {
|
|
1708
|
+
pointer?: string | undefined;
|
|
1709
|
+
parameter?: string | undefined;
|
|
1710
|
+
}, {
|
|
1711
|
+
pointer?: string | undefined;
|
|
1712
|
+
parameter?: string | undefined;
|
|
1713
|
+
}>>;
|
|
1714
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1715
|
+
}, "strip", z.ZodTypeAny, {
|
|
1716
|
+
status?: string | undefined;
|
|
1717
|
+
code?: string | undefined;
|
|
1718
|
+
id?: string | undefined;
|
|
1719
|
+
links?: {
|
|
1720
|
+
about?: string | undefined;
|
|
1721
|
+
} | undefined;
|
|
1722
|
+
meta?: Record<string, unknown> | undefined;
|
|
1723
|
+
title?: string | undefined;
|
|
1724
|
+
detail?: string | undefined;
|
|
1725
|
+
source?: {
|
|
1726
|
+
pointer?: string | undefined;
|
|
1727
|
+
parameter?: string | undefined;
|
|
1728
|
+
} | undefined;
|
|
1729
|
+
}, {
|
|
1730
|
+
status?: string | undefined;
|
|
1731
|
+
code?: string | undefined;
|
|
1732
|
+
id?: string | undefined;
|
|
1733
|
+
links?: {
|
|
1734
|
+
about?: string | undefined;
|
|
1735
|
+
} | undefined;
|
|
1736
|
+
meta?: Record<string, unknown> | undefined;
|
|
1737
|
+
title?: string | undefined;
|
|
1738
|
+
detail?: string | undefined;
|
|
1739
|
+
source?: {
|
|
1740
|
+
pointer?: string | undefined;
|
|
1741
|
+
parameter?: string | undefined;
|
|
1742
|
+
} | undefined;
|
|
1743
|
+
}>, "many">;
|
|
1744
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1745
|
+
}, "strip", z.ZodTypeAny, {
|
|
1746
|
+
errors: {
|
|
1747
|
+
status?: string | undefined;
|
|
1748
|
+
code?: string | undefined;
|
|
1749
|
+
id?: string | undefined;
|
|
1750
|
+
links?: {
|
|
1751
|
+
about?: string | undefined;
|
|
1752
|
+
} | undefined;
|
|
1753
|
+
meta?: Record<string, unknown> | undefined;
|
|
1754
|
+
title?: string | undefined;
|
|
1755
|
+
detail?: string | undefined;
|
|
1756
|
+
source?: {
|
|
1757
|
+
pointer?: string | undefined;
|
|
1758
|
+
parameter?: string | undefined;
|
|
1759
|
+
} | undefined;
|
|
1760
|
+
}[];
|
|
1761
|
+
meta?: Record<string, unknown> | undefined;
|
|
1762
|
+
}, {
|
|
1763
|
+
errors: {
|
|
1764
|
+
status?: string | undefined;
|
|
1765
|
+
code?: string | undefined;
|
|
1766
|
+
id?: string | undefined;
|
|
1767
|
+
links?: {
|
|
1768
|
+
about?: string | undefined;
|
|
1769
|
+
} | undefined;
|
|
1770
|
+
meta?: Record<string, unknown> | undefined;
|
|
1771
|
+
title?: string | undefined;
|
|
1772
|
+
detail?: string | undefined;
|
|
1773
|
+
source?: {
|
|
1774
|
+
pointer?: string | undefined;
|
|
1775
|
+
parameter?: string | undefined;
|
|
1776
|
+
} | undefined;
|
|
1777
|
+
}[];
|
|
1778
|
+
meta?: Record<string, unknown> | undefined;
|
|
1779
|
+
}>;
|
|
1780
|
+
422: z.ZodObject<{
|
|
1781
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1782
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1783
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1784
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1785
|
+
}, "strip", z.ZodTypeAny, {
|
|
1786
|
+
about?: string | undefined;
|
|
1787
|
+
}, {
|
|
1788
|
+
about?: string | undefined;
|
|
1789
|
+
}>>;
|
|
1790
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1791
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1792
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1793
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1794
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1795
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1796
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1797
|
+
}, "strip", z.ZodTypeAny, {
|
|
1798
|
+
pointer?: string | undefined;
|
|
1799
|
+
parameter?: string | undefined;
|
|
1800
|
+
}, {
|
|
1801
|
+
pointer?: string | undefined;
|
|
1802
|
+
parameter?: string | undefined;
|
|
1803
|
+
}>>;
|
|
1804
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1805
|
+
}, "strip", z.ZodTypeAny, {
|
|
1806
|
+
status?: string | undefined;
|
|
1807
|
+
code?: string | undefined;
|
|
1808
|
+
id?: string | undefined;
|
|
1809
|
+
links?: {
|
|
1810
|
+
about?: string | undefined;
|
|
1811
|
+
} | undefined;
|
|
1812
|
+
meta?: Record<string, unknown> | undefined;
|
|
1813
|
+
title?: string | undefined;
|
|
1814
|
+
detail?: string | undefined;
|
|
1815
|
+
source?: {
|
|
1816
|
+
pointer?: string | undefined;
|
|
1817
|
+
parameter?: string | undefined;
|
|
1818
|
+
} | undefined;
|
|
1819
|
+
}, {
|
|
1820
|
+
status?: string | undefined;
|
|
1821
|
+
code?: string | undefined;
|
|
1822
|
+
id?: string | undefined;
|
|
1823
|
+
links?: {
|
|
1824
|
+
about?: string | undefined;
|
|
1825
|
+
} | undefined;
|
|
1826
|
+
meta?: Record<string, unknown> | undefined;
|
|
1827
|
+
title?: string | undefined;
|
|
1828
|
+
detail?: string | undefined;
|
|
1829
|
+
source?: {
|
|
1830
|
+
pointer?: string | undefined;
|
|
1831
|
+
parameter?: string | undefined;
|
|
1832
|
+
} | undefined;
|
|
1833
|
+
}>, "many">;
|
|
1834
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1835
|
+
}, "strip", z.ZodTypeAny, {
|
|
1836
|
+
errors: {
|
|
1837
|
+
status?: string | undefined;
|
|
1838
|
+
code?: string | undefined;
|
|
1839
|
+
id?: string | undefined;
|
|
1840
|
+
links?: {
|
|
1841
|
+
about?: string | undefined;
|
|
1842
|
+
} | undefined;
|
|
1843
|
+
meta?: Record<string, unknown> | undefined;
|
|
1844
|
+
title?: string | undefined;
|
|
1845
|
+
detail?: string | undefined;
|
|
1846
|
+
source?: {
|
|
1847
|
+
pointer?: string | undefined;
|
|
1848
|
+
parameter?: string | undefined;
|
|
1849
|
+
} | undefined;
|
|
1850
|
+
}[];
|
|
1851
|
+
meta?: Record<string, unknown> | undefined;
|
|
1852
|
+
}, {
|
|
1853
|
+
errors: {
|
|
1854
|
+
status?: string | undefined;
|
|
1855
|
+
code?: string | undefined;
|
|
1856
|
+
id?: string | undefined;
|
|
1857
|
+
links?: {
|
|
1858
|
+
about?: string | undefined;
|
|
1859
|
+
} | undefined;
|
|
1860
|
+
meta?: Record<string, unknown> | undefined;
|
|
1861
|
+
title?: string | undefined;
|
|
1862
|
+
detail?: string | undefined;
|
|
1863
|
+
source?: {
|
|
1864
|
+
pointer?: string | undefined;
|
|
1865
|
+
parameter?: string | undefined;
|
|
1866
|
+
} | undefined;
|
|
1867
|
+
}[];
|
|
1868
|
+
meta?: Record<string, unknown> | undefined;
|
|
1869
|
+
}>;
|
|
1870
|
+
500: z.ZodObject<{
|
|
1871
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
1872
|
+
id: z.ZodOptional<z.ZodString>;
|
|
1873
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
1874
|
+
about: z.ZodOptional<z.ZodString>;
|
|
1875
|
+
}, "strip", z.ZodTypeAny, {
|
|
1876
|
+
about?: string | undefined;
|
|
1877
|
+
}, {
|
|
1878
|
+
about?: string | undefined;
|
|
1879
|
+
}>>;
|
|
1880
|
+
status: z.ZodOptional<z.ZodString>;
|
|
1881
|
+
code: z.ZodOptional<z.ZodString>;
|
|
1882
|
+
title: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
1884
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
1885
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
1886
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
1887
|
+
}, "strip", z.ZodTypeAny, {
|
|
1888
|
+
pointer?: string | undefined;
|
|
1889
|
+
parameter?: string | undefined;
|
|
1890
|
+
}, {
|
|
1891
|
+
pointer?: string | undefined;
|
|
1892
|
+
parameter?: string | undefined;
|
|
1893
|
+
}>>;
|
|
1894
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1895
|
+
}, "strip", z.ZodTypeAny, {
|
|
1896
|
+
status?: string | undefined;
|
|
1897
|
+
code?: string | undefined;
|
|
1898
|
+
id?: string | undefined;
|
|
1899
|
+
links?: {
|
|
1900
|
+
about?: string | undefined;
|
|
1901
|
+
} | undefined;
|
|
1902
|
+
meta?: Record<string, unknown> | undefined;
|
|
1903
|
+
title?: string | undefined;
|
|
1904
|
+
detail?: string | undefined;
|
|
1905
|
+
source?: {
|
|
1906
|
+
pointer?: string | undefined;
|
|
1907
|
+
parameter?: string | undefined;
|
|
1908
|
+
} | undefined;
|
|
1909
|
+
}, {
|
|
1910
|
+
status?: string | undefined;
|
|
1911
|
+
code?: string | undefined;
|
|
1912
|
+
id?: string | undefined;
|
|
1913
|
+
links?: {
|
|
1914
|
+
about?: string | undefined;
|
|
1915
|
+
} | undefined;
|
|
1916
|
+
meta?: Record<string, unknown> | undefined;
|
|
1917
|
+
title?: string | undefined;
|
|
1918
|
+
detail?: string | undefined;
|
|
1919
|
+
source?: {
|
|
1920
|
+
pointer?: string | undefined;
|
|
1921
|
+
parameter?: string | undefined;
|
|
1922
|
+
} | undefined;
|
|
1923
|
+
}>, "many">;
|
|
1924
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1925
|
+
}, "strip", z.ZodTypeAny, {
|
|
1926
|
+
errors: {
|
|
1927
|
+
status?: string | undefined;
|
|
1928
|
+
code?: string | undefined;
|
|
1929
|
+
id?: string | undefined;
|
|
1930
|
+
links?: {
|
|
1931
|
+
about?: string | undefined;
|
|
1932
|
+
} | undefined;
|
|
1933
|
+
meta?: Record<string, unknown> | undefined;
|
|
1934
|
+
title?: string | undefined;
|
|
1935
|
+
detail?: string | undefined;
|
|
1936
|
+
source?: {
|
|
1937
|
+
pointer?: string | undefined;
|
|
1938
|
+
parameter?: string | undefined;
|
|
1939
|
+
} | undefined;
|
|
1940
|
+
}[];
|
|
1941
|
+
meta?: Record<string, unknown> | undefined;
|
|
1942
|
+
}, {
|
|
1943
|
+
errors: {
|
|
1944
|
+
status?: string | undefined;
|
|
1945
|
+
code?: string | undefined;
|
|
1946
|
+
id?: string | undefined;
|
|
1947
|
+
links?: {
|
|
1948
|
+
about?: string | undefined;
|
|
1949
|
+
} | undefined;
|
|
1950
|
+
meta?: Record<string, unknown> | undefined;
|
|
1951
|
+
title?: string | undefined;
|
|
1952
|
+
detail?: string | undefined;
|
|
1953
|
+
source?: {
|
|
1954
|
+
pointer?: string | undefined;
|
|
1955
|
+
parameter?: string | undefined;
|
|
1956
|
+
} | undefined;
|
|
1957
|
+
}[];
|
|
1958
|
+
meta?: Record<string, unknown> | undefined;
|
|
1959
|
+
}>;
|
|
1960
|
+
};
|
|
1961
|
+
};
|
|
1962
|
+
createLoginLink: {
|
|
1963
|
+
pathParams: z.ZodObject<{
|
|
1964
|
+
id: z.ZodString;
|
|
1965
|
+
}, "strip", z.ZodTypeAny, {
|
|
1966
|
+
id: string;
|
|
1967
|
+
}, {
|
|
1968
|
+
id: string;
|
|
1969
|
+
}>;
|
|
1970
|
+
summary: "Create one-time login link (platform admin)";
|
|
1971
|
+
description: "Mint a short-lived, single-use login URL for a user. Restricted to ADMIN_EMAILS.";
|
|
1972
|
+
method: "POST";
|
|
1973
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1974
|
+
path: "/admin/users/:id/login-link";
|
|
1975
|
+
responses: {
|
|
1976
|
+
201: z.ZodObject<{
|
|
1977
|
+
data: z.ZodObject<{
|
|
1978
|
+
type: z.ZodLiteral<string>;
|
|
1979
|
+
id: z.ZodString;
|
|
1980
|
+
attributes: z.ZodObject<{
|
|
1981
|
+
loginUrl: z.ZodString;
|
|
1982
|
+
expiresAt: z.ZodString;
|
|
1983
|
+
}, "strip", z.ZodTypeAny, {
|
|
1984
|
+
loginUrl: string;
|
|
1985
|
+
expiresAt: string;
|
|
1986
|
+
}, {
|
|
1987
|
+
loginUrl: string;
|
|
1988
|
+
expiresAt: string;
|
|
1989
|
+
}>;
|
|
1990
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1991
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
1992
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
1993
|
+
}, "strip", z.ZodTypeAny, {
|
|
1994
|
+
type: string;
|
|
1995
|
+
id: string;
|
|
1996
|
+
attributes: {
|
|
1997
|
+
loginUrl: string;
|
|
1998
|
+
expiresAt: string;
|
|
1999
|
+
};
|
|
2000
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2001
|
+
links?: Record<string, string> | undefined;
|
|
2002
|
+
meta?: Record<string, unknown> | undefined;
|
|
2003
|
+
}, {
|
|
2004
|
+
type: string;
|
|
2005
|
+
id: string;
|
|
2006
|
+
attributes: {
|
|
2007
|
+
loginUrl: string;
|
|
2008
|
+
expiresAt: string;
|
|
2009
|
+
};
|
|
2010
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2011
|
+
links?: Record<string, string> | undefined;
|
|
2012
|
+
meta?: Record<string, unknown> | undefined;
|
|
2013
|
+
}>;
|
|
2014
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2015
|
+
type: z.ZodString;
|
|
2016
|
+
id: z.ZodString;
|
|
2017
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2018
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2019
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2020
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2021
|
+
}, "strip", z.ZodTypeAny, {
|
|
2022
|
+
type: string;
|
|
2023
|
+
id: string;
|
|
2024
|
+
attributes?: Record<string, unknown> | undefined;
|
|
2025
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2026
|
+
links?: Record<string, string> | undefined;
|
|
2027
|
+
meta?: Record<string, unknown> | undefined;
|
|
2028
|
+
}, {
|
|
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
|
+
}>, "many">>;
|
|
2036
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2037
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2038
|
+
}, "strip", z.ZodTypeAny, {
|
|
2039
|
+
data: {
|
|
2040
|
+
type: string;
|
|
2041
|
+
id: string;
|
|
2042
|
+
attributes: {
|
|
2043
|
+
loginUrl: string;
|
|
2044
|
+
expiresAt: string;
|
|
2045
|
+
};
|
|
2046
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2047
|
+
links?: Record<string, string> | undefined;
|
|
2048
|
+
meta?: Record<string, unknown> | undefined;
|
|
2049
|
+
};
|
|
2050
|
+
links?: Record<string, string> | undefined;
|
|
2051
|
+
meta?: Record<string, unknown> | undefined;
|
|
2052
|
+
included?: {
|
|
2053
|
+
type: string;
|
|
2054
|
+
id: string;
|
|
2055
|
+
attributes?: Record<string, unknown> | undefined;
|
|
2056
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2057
|
+
links?: Record<string, string> | undefined;
|
|
2058
|
+
meta?: Record<string, unknown> | undefined;
|
|
2059
|
+
}[] | undefined;
|
|
2060
|
+
}, {
|
|
2061
|
+
data: {
|
|
2062
|
+
type: string;
|
|
2063
|
+
id: string;
|
|
2064
|
+
attributes: {
|
|
2065
|
+
loginUrl: string;
|
|
2066
|
+
expiresAt: string;
|
|
2067
|
+
};
|
|
2068
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2069
|
+
links?: Record<string, string> | undefined;
|
|
2070
|
+
meta?: Record<string, unknown> | undefined;
|
|
2071
|
+
};
|
|
2072
|
+
links?: Record<string, string> | undefined;
|
|
2073
|
+
meta?: Record<string, unknown> | undefined;
|
|
2074
|
+
included?: {
|
|
2075
|
+
type: string;
|
|
2076
|
+
id: string;
|
|
2077
|
+
attributes?: Record<string, unknown> | undefined;
|
|
2078
|
+
relationships?: Record<string, unknown> | undefined;
|
|
2079
|
+
links?: Record<string, string> | undefined;
|
|
2080
|
+
meta?: Record<string, unknown> | undefined;
|
|
2081
|
+
}[] | undefined;
|
|
2082
|
+
}>;
|
|
2083
|
+
401: z.ZodObject<{
|
|
2084
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2085
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2086
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2087
|
+
about: z.ZodOptional<z.ZodString>;
|
|
2088
|
+
}, "strip", z.ZodTypeAny, {
|
|
2089
|
+
about?: string | undefined;
|
|
2090
|
+
}, {
|
|
2091
|
+
about?: string | undefined;
|
|
2092
|
+
}>>;
|
|
2093
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2094
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2095
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2096
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2097
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2098
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
2099
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
2100
|
+
}, "strip", z.ZodTypeAny, {
|
|
2101
|
+
pointer?: string | undefined;
|
|
2102
|
+
parameter?: string | undefined;
|
|
2103
|
+
}, {
|
|
2104
|
+
pointer?: string | undefined;
|
|
2105
|
+
parameter?: string | undefined;
|
|
2106
|
+
}>>;
|
|
2107
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2108
|
+
}, "strip", z.ZodTypeAny, {
|
|
2109
|
+
status?: string | undefined;
|
|
2110
|
+
code?: string | undefined;
|
|
2111
|
+
id?: string | undefined;
|
|
2112
|
+
links?: {
|
|
2113
|
+
about?: string | undefined;
|
|
2114
|
+
} | undefined;
|
|
2115
|
+
meta?: Record<string, unknown> | undefined;
|
|
2116
|
+
title?: string | undefined;
|
|
2117
|
+
detail?: string | undefined;
|
|
2118
|
+
source?: {
|
|
2119
|
+
pointer?: string | undefined;
|
|
2120
|
+
parameter?: string | undefined;
|
|
2121
|
+
} | undefined;
|
|
2122
|
+
}, {
|
|
2123
|
+
status?: string | undefined;
|
|
2124
|
+
code?: string | undefined;
|
|
2125
|
+
id?: string | undefined;
|
|
2126
|
+
links?: {
|
|
2127
|
+
about?: string | undefined;
|
|
2128
|
+
} | undefined;
|
|
2129
|
+
meta?: Record<string, unknown> | undefined;
|
|
2130
|
+
title?: string | undefined;
|
|
2131
|
+
detail?: string | undefined;
|
|
2132
|
+
source?: {
|
|
2133
|
+
pointer?: string | undefined;
|
|
2134
|
+
parameter?: string | undefined;
|
|
2135
|
+
} | undefined;
|
|
2136
|
+
}>, "many">;
|
|
2137
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2138
|
+
}, "strip", z.ZodTypeAny, {
|
|
1285
2139
|
errors: {
|
|
1286
2140
|
status?: string | undefined;
|
|
1287
2141
|
code?: string | undefined;
|
|
@@ -1316,7 +2170,97 @@ export declare const adminRouter: {
|
|
|
1316
2170
|
}[];
|
|
1317
2171
|
meta?: Record<string, unknown> | undefined;
|
|
1318
2172
|
}>;
|
|
1319
|
-
|
|
2173
|
+
403: z.ZodObject<{
|
|
2174
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
2175
|
+
id: z.ZodOptional<z.ZodString>;
|
|
2176
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
2177
|
+
about: z.ZodOptional<z.ZodString>;
|
|
2178
|
+
}, "strip", z.ZodTypeAny, {
|
|
2179
|
+
about?: string | undefined;
|
|
2180
|
+
}, {
|
|
2181
|
+
about?: string | undefined;
|
|
2182
|
+
}>>;
|
|
2183
|
+
status: z.ZodOptional<z.ZodString>;
|
|
2184
|
+
code: z.ZodOptional<z.ZodString>;
|
|
2185
|
+
title: z.ZodOptional<z.ZodString>;
|
|
2186
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
2187
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
2188
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
2189
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
2190
|
+
}, "strip", z.ZodTypeAny, {
|
|
2191
|
+
pointer?: string | undefined;
|
|
2192
|
+
parameter?: string | undefined;
|
|
2193
|
+
}, {
|
|
2194
|
+
pointer?: string | undefined;
|
|
2195
|
+
parameter?: string | undefined;
|
|
2196
|
+
}>>;
|
|
2197
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2198
|
+
}, "strip", z.ZodTypeAny, {
|
|
2199
|
+
status?: string | undefined;
|
|
2200
|
+
code?: string | undefined;
|
|
2201
|
+
id?: string | undefined;
|
|
2202
|
+
links?: {
|
|
2203
|
+
about?: string | undefined;
|
|
2204
|
+
} | undefined;
|
|
2205
|
+
meta?: Record<string, unknown> | undefined;
|
|
2206
|
+
title?: string | undefined;
|
|
2207
|
+
detail?: string | undefined;
|
|
2208
|
+
source?: {
|
|
2209
|
+
pointer?: string | undefined;
|
|
2210
|
+
parameter?: string | undefined;
|
|
2211
|
+
} | undefined;
|
|
2212
|
+
}, {
|
|
2213
|
+
status?: string | undefined;
|
|
2214
|
+
code?: string | undefined;
|
|
2215
|
+
id?: string | undefined;
|
|
2216
|
+
links?: {
|
|
2217
|
+
about?: string | undefined;
|
|
2218
|
+
} | undefined;
|
|
2219
|
+
meta?: Record<string, unknown> | undefined;
|
|
2220
|
+
title?: string | undefined;
|
|
2221
|
+
detail?: string | undefined;
|
|
2222
|
+
source?: {
|
|
2223
|
+
pointer?: string | undefined;
|
|
2224
|
+
parameter?: string | undefined;
|
|
2225
|
+
} | undefined;
|
|
2226
|
+
}>, "many">;
|
|
2227
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2228
|
+
}, "strip", z.ZodTypeAny, {
|
|
2229
|
+
errors: {
|
|
2230
|
+
status?: string | undefined;
|
|
2231
|
+
code?: string | undefined;
|
|
2232
|
+
id?: string | undefined;
|
|
2233
|
+
links?: {
|
|
2234
|
+
about?: string | undefined;
|
|
2235
|
+
} | undefined;
|
|
2236
|
+
meta?: Record<string, unknown> | undefined;
|
|
2237
|
+
title?: string | undefined;
|
|
2238
|
+
detail?: string | undefined;
|
|
2239
|
+
source?: {
|
|
2240
|
+
pointer?: string | undefined;
|
|
2241
|
+
parameter?: string | undefined;
|
|
2242
|
+
} | undefined;
|
|
2243
|
+
}[];
|
|
2244
|
+
meta?: Record<string, unknown> | undefined;
|
|
2245
|
+
}, {
|
|
2246
|
+
errors: {
|
|
2247
|
+
status?: string | undefined;
|
|
2248
|
+
code?: string | undefined;
|
|
2249
|
+
id?: string | undefined;
|
|
2250
|
+
links?: {
|
|
2251
|
+
about?: string | undefined;
|
|
2252
|
+
} | undefined;
|
|
2253
|
+
meta?: Record<string, unknown> | undefined;
|
|
2254
|
+
title?: string | undefined;
|
|
2255
|
+
detail?: string | undefined;
|
|
2256
|
+
source?: {
|
|
2257
|
+
pointer?: string | undefined;
|
|
2258
|
+
parameter?: string | undefined;
|
|
2259
|
+
} | undefined;
|
|
2260
|
+
}[];
|
|
2261
|
+
meta?: Record<string, unknown> | undefined;
|
|
2262
|
+
}>;
|
|
2263
|
+
404: z.ZodObject<{
|
|
1320
2264
|
errors: z.ZodArray<z.ZodObject<{
|
|
1321
2265
|
id: z.ZodOptional<z.ZodString>;
|
|
1322
2266
|
links: z.ZodOptional<z.ZodObject<{
|