@deepintel-ltd/farmpro-contracts 1.11.4 → 1.11.5
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 +334 -618
- package/dist/routes/admin.routes.d.ts.map +1 -1
- package/dist/routes/admin.routes.js +26 -36
- package/dist/schemas/admin.schemas.d.ts +45 -6
- package/dist/schemas/admin.schemas.d.ts.map +1 -1
- package/dist/schemas/admin.schemas.js +15 -5
- package/package.json +1 -1
|
@@ -749,17 +749,20 @@ export declare const adminRouter: {
|
|
|
749
749
|
'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
750
750
|
} & {
|
|
751
751
|
q: z.ZodOptional<z.ZodString>;
|
|
752
|
+
'filter[platformRole]': z.ZodOptional<z.ZodEnum<["super_admin"]>>;
|
|
752
753
|
}, "strip", z.ZodTypeAny, {
|
|
753
754
|
'page[number]'?: number | undefined;
|
|
754
755
|
'page[size]'?: number | undefined;
|
|
755
756
|
q?: string | undefined;
|
|
757
|
+
'filter[platformRole]'?: "super_admin" | undefined;
|
|
756
758
|
}, {
|
|
757
759
|
'page[number]'?: number | undefined;
|
|
758
760
|
'page[size]'?: number | undefined;
|
|
759
761
|
q?: string | undefined;
|
|
762
|
+
'filter[platformRole]'?: "super_admin" | undefined;
|
|
760
763
|
}>;
|
|
761
764
|
summary: "List users (platform admin)";
|
|
762
|
-
description: "Search and paginate platform users. Restricted to super admins.";
|
|
765
|
+
description: "Search and paginate platform users. Optional filter[platformRole]=super_admin. Restricted to super admins.";
|
|
763
766
|
method: "GET";
|
|
764
767
|
path: "/admin/users";
|
|
765
768
|
responses: {
|
|
@@ -1980,537 +1983,61 @@ export declare const adminRouter: {
|
|
|
1980
1983
|
}>;
|
|
1981
1984
|
};
|
|
1982
1985
|
};
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
}, "strip", z.ZodTypeAny, {
|
|
1987
|
-
id: string;
|
|
1988
|
-
}, {
|
|
1989
|
-
id: string;
|
|
1990
|
-
}>;
|
|
1991
|
-
summary: "Create one-time login link (platform admin)";
|
|
1992
|
-
description: "Mint a short-lived, single-use login URL for a user. Restricted to super admins.";
|
|
1993
|
-
method: "POST";
|
|
1994
|
-
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
1995
|
-
path: "/admin/users/:id/login-link";
|
|
1996
|
-
responses: {
|
|
1997
|
-
201: z.ZodObject<{
|
|
1998
|
-
data: z.ZodObject<{
|
|
1999
|
-
type: z.ZodLiteral<string>;
|
|
2000
|
-
id: z.ZodString;
|
|
2001
|
-
attributes: z.ZodObject<{
|
|
2002
|
-
loginUrl: z.ZodString;
|
|
2003
|
-
expiresAt: z.ZodString;
|
|
2004
|
-
}, "strip", z.ZodTypeAny, {
|
|
2005
|
-
loginUrl: string;
|
|
2006
|
-
expiresAt: string;
|
|
2007
|
-
}, {
|
|
2008
|
-
loginUrl: string;
|
|
2009
|
-
expiresAt: string;
|
|
2010
|
-
}>;
|
|
2011
|
-
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2012
|
-
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2013
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2014
|
-
}, "strip", z.ZodTypeAny, {
|
|
2015
|
-
type: string;
|
|
2016
|
-
id: string;
|
|
2017
|
-
attributes: {
|
|
2018
|
-
loginUrl: string;
|
|
2019
|
-
expiresAt: string;
|
|
2020
|
-
};
|
|
2021
|
-
relationships?: Record<string, unknown> | undefined;
|
|
2022
|
-
links?: Record<string, string> | undefined;
|
|
2023
|
-
meta?: Record<string, unknown> | undefined;
|
|
2024
|
-
}, {
|
|
2025
|
-
type: string;
|
|
2026
|
-
id: string;
|
|
2027
|
-
attributes: {
|
|
2028
|
-
loginUrl: string;
|
|
2029
|
-
expiresAt: string;
|
|
2030
|
-
};
|
|
2031
|
-
relationships?: Record<string, unknown> | undefined;
|
|
2032
|
-
links?: Record<string, string> | undefined;
|
|
2033
|
-
meta?: Record<string, unknown> | undefined;
|
|
2034
|
-
}>;
|
|
2035
|
-
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2036
|
-
type: z.ZodString;
|
|
2037
|
-
id: z.ZodString;
|
|
2038
|
-
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2039
|
-
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2040
|
-
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2041
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2042
|
-
}, "strip", z.ZodTypeAny, {
|
|
2043
|
-
type: string;
|
|
2044
|
-
id: string;
|
|
2045
|
-
attributes?: Record<string, unknown> | undefined;
|
|
2046
|
-
relationships?: Record<string, unknown> | undefined;
|
|
2047
|
-
links?: Record<string, string> | undefined;
|
|
2048
|
-
meta?: Record<string, unknown> | undefined;
|
|
2049
|
-
}, {
|
|
2050
|
-
type: string;
|
|
2051
|
-
id: string;
|
|
2052
|
-
attributes?: Record<string, unknown> | undefined;
|
|
2053
|
-
relationships?: Record<string, unknown> | undefined;
|
|
2054
|
-
links?: Record<string, string> | undefined;
|
|
2055
|
-
meta?: Record<string, unknown> | undefined;
|
|
2056
|
-
}>, "many">>;
|
|
2057
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2058
|
-
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2059
|
-
}, "strip", z.ZodTypeAny, {
|
|
2060
|
-
data: {
|
|
2061
|
-
type: string;
|
|
2062
|
-
id: string;
|
|
2063
|
-
attributes: {
|
|
2064
|
-
loginUrl: string;
|
|
2065
|
-
expiresAt: string;
|
|
2066
|
-
};
|
|
2067
|
-
relationships?: Record<string, unknown> | undefined;
|
|
2068
|
-
links?: Record<string, string> | undefined;
|
|
2069
|
-
meta?: Record<string, unknown> | undefined;
|
|
2070
|
-
};
|
|
2071
|
-
links?: Record<string, string> | undefined;
|
|
2072
|
-
meta?: Record<string, unknown> | undefined;
|
|
2073
|
-
included?: {
|
|
2074
|
-
type: string;
|
|
2075
|
-
id: string;
|
|
2076
|
-
attributes?: Record<string, unknown> | undefined;
|
|
2077
|
-
relationships?: Record<string, unknown> | undefined;
|
|
2078
|
-
links?: Record<string, string> | undefined;
|
|
2079
|
-
meta?: Record<string, unknown> | undefined;
|
|
2080
|
-
}[] | undefined;
|
|
2081
|
-
}, {
|
|
2082
|
-
data: {
|
|
2083
|
-
type: string;
|
|
2084
|
-
id: string;
|
|
2085
|
-
attributes: {
|
|
2086
|
-
loginUrl: string;
|
|
2087
|
-
expiresAt: string;
|
|
2088
|
-
};
|
|
2089
|
-
relationships?: Record<string, unknown> | undefined;
|
|
2090
|
-
links?: Record<string, string> | undefined;
|
|
2091
|
-
meta?: Record<string, unknown> | undefined;
|
|
2092
|
-
};
|
|
2093
|
-
links?: Record<string, string> | undefined;
|
|
2094
|
-
meta?: Record<string, unknown> | undefined;
|
|
2095
|
-
included?: {
|
|
2096
|
-
type: string;
|
|
2097
|
-
id: string;
|
|
2098
|
-
attributes?: Record<string, unknown> | undefined;
|
|
2099
|
-
relationships?: Record<string, unknown> | undefined;
|
|
2100
|
-
links?: Record<string, string> | undefined;
|
|
2101
|
-
meta?: Record<string, unknown> | undefined;
|
|
2102
|
-
}[] | undefined;
|
|
2103
|
-
}>;
|
|
2104
|
-
401: z.ZodObject<{
|
|
2105
|
-
errors: z.ZodArray<z.ZodObject<{
|
|
2106
|
-
id: z.ZodOptional<z.ZodString>;
|
|
2107
|
-
links: z.ZodOptional<z.ZodObject<{
|
|
2108
|
-
about: z.ZodOptional<z.ZodString>;
|
|
2109
|
-
}, "strip", z.ZodTypeAny, {
|
|
2110
|
-
about?: string | undefined;
|
|
2111
|
-
}, {
|
|
2112
|
-
about?: string | undefined;
|
|
2113
|
-
}>>;
|
|
2114
|
-
status: z.ZodOptional<z.ZodString>;
|
|
2115
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2116
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2117
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
2118
|
-
source: z.ZodOptional<z.ZodObject<{
|
|
2119
|
-
pointer: z.ZodOptional<z.ZodString>;
|
|
2120
|
-
parameter: z.ZodOptional<z.ZodString>;
|
|
2121
|
-
}, "strip", z.ZodTypeAny, {
|
|
2122
|
-
pointer?: string | undefined;
|
|
2123
|
-
parameter?: string | undefined;
|
|
2124
|
-
}, {
|
|
2125
|
-
pointer?: string | undefined;
|
|
2126
|
-
parameter?: string | undefined;
|
|
2127
|
-
}>>;
|
|
2128
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2129
|
-
}, "strip", z.ZodTypeAny, {
|
|
2130
|
-
status?: string | undefined;
|
|
2131
|
-
code?: string | undefined;
|
|
2132
|
-
id?: string | undefined;
|
|
2133
|
-
links?: {
|
|
2134
|
-
about?: string | undefined;
|
|
2135
|
-
} | undefined;
|
|
2136
|
-
meta?: Record<string, unknown> | undefined;
|
|
2137
|
-
title?: string | undefined;
|
|
2138
|
-
detail?: string | undefined;
|
|
2139
|
-
source?: {
|
|
2140
|
-
pointer?: string | undefined;
|
|
2141
|
-
parameter?: string | undefined;
|
|
2142
|
-
} | undefined;
|
|
2143
|
-
}, {
|
|
2144
|
-
status?: string | undefined;
|
|
2145
|
-
code?: string | undefined;
|
|
2146
|
-
id?: string | undefined;
|
|
2147
|
-
links?: {
|
|
2148
|
-
about?: string | undefined;
|
|
2149
|
-
} | undefined;
|
|
2150
|
-
meta?: Record<string, unknown> | undefined;
|
|
2151
|
-
title?: string | undefined;
|
|
2152
|
-
detail?: string | undefined;
|
|
2153
|
-
source?: {
|
|
2154
|
-
pointer?: string | undefined;
|
|
2155
|
-
parameter?: string | undefined;
|
|
2156
|
-
} | undefined;
|
|
2157
|
-
}>, "many">;
|
|
2158
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2159
|
-
}, "strip", z.ZodTypeAny, {
|
|
2160
|
-
errors: {
|
|
2161
|
-
status?: string | undefined;
|
|
2162
|
-
code?: string | undefined;
|
|
2163
|
-
id?: string | undefined;
|
|
2164
|
-
links?: {
|
|
2165
|
-
about?: string | undefined;
|
|
2166
|
-
} | undefined;
|
|
2167
|
-
meta?: Record<string, unknown> | undefined;
|
|
2168
|
-
title?: string | undefined;
|
|
2169
|
-
detail?: string | undefined;
|
|
2170
|
-
source?: {
|
|
2171
|
-
pointer?: string | undefined;
|
|
2172
|
-
parameter?: string | undefined;
|
|
2173
|
-
} | undefined;
|
|
2174
|
-
}[];
|
|
2175
|
-
meta?: Record<string, unknown> | undefined;
|
|
2176
|
-
}, {
|
|
2177
|
-
errors: {
|
|
2178
|
-
status?: string | undefined;
|
|
2179
|
-
code?: string | undefined;
|
|
2180
|
-
id?: string | undefined;
|
|
2181
|
-
links?: {
|
|
2182
|
-
about?: string | undefined;
|
|
2183
|
-
} | undefined;
|
|
2184
|
-
meta?: Record<string, unknown> | undefined;
|
|
2185
|
-
title?: string | undefined;
|
|
2186
|
-
detail?: string | undefined;
|
|
2187
|
-
source?: {
|
|
2188
|
-
pointer?: string | undefined;
|
|
2189
|
-
parameter?: string | undefined;
|
|
2190
|
-
} | undefined;
|
|
2191
|
-
}[];
|
|
2192
|
-
meta?: Record<string, unknown> | undefined;
|
|
2193
|
-
}>;
|
|
2194
|
-
403: z.ZodObject<{
|
|
2195
|
-
errors: z.ZodArray<z.ZodObject<{
|
|
2196
|
-
id: z.ZodOptional<z.ZodString>;
|
|
2197
|
-
links: z.ZodOptional<z.ZodObject<{
|
|
2198
|
-
about: z.ZodOptional<z.ZodString>;
|
|
2199
|
-
}, "strip", z.ZodTypeAny, {
|
|
2200
|
-
about?: string | undefined;
|
|
2201
|
-
}, {
|
|
2202
|
-
about?: string | undefined;
|
|
2203
|
-
}>>;
|
|
2204
|
-
status: z.ZodOptional<z.ZodString>;
|
|
2205
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2206
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2207
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
2208
|
-
source: z.ZodOptional<z.ZodObject<{
|
|
2209
|
-
pointer: z.ZodOptional<z.ZodString>;
|
|
2210
|
-
parameter: z.ZodOptional<z.ZodString>;
|
|
2211
|
-
}, "strip", z.ZodTypeAny, {
|
|
2212
|
-
pointer?: string | undefined;
|
|
2213
|
-
parameter?: string | undefined;
|
|
2214
|
-
}, {
|
|
2215
|
-
pointer?: string | undefined;
|
|
2216
|
-
parameter?: string | undefined;
|
|
2217
|
-
}>>;
|
|
2218
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2219
|
-
}, "strip", z.ZodTypeAny, {
|
|
2220
|
-
status?: string | undefined;
|
|
2221
|
-
code?: string | undefined;
|
|
2222
|
-
id?: string | undefined;
|
|
2223
|
-
links?: {
|
|
2224
|
-
about?: string | undefined;
|
|
2225
|
-
} | undefined;
|
|
2226
|
-
meta?: Record<string, unknown> | undefined;
|
|
2227
|
-
title?: string | undefined;
|
|
2228
|
-
detail?: string | undefined;
|
|
2229
|
-
source?: {
|
|
2230
|
-
pointer?: string | undefined;
|
|
2231
|
-
parameter?: string | undefined;
|
|
2232
|
-
} | undefined;
|
|
2233
|
-
}, {
|
|
2234
|
-
status?: string | undefined;
|
|
2235
|
-
code?: string | undefined;
|
|
2236
|
-
id?: string | undefined;
|
|
2237
|
-
links?: {
|
|
2238
|
-
about?: string | undefined;
|
|
2239
|
-
} | undefined;
|
|
2240
|
-
meta?: Record<string, unknown> | undefined;
|
|
2241
|
-
title?: string | undefined;
|
|
2242
|
-
detail?: string | undefined;
|
|
2243
|
-
source?: {
|
|
2244
|
-
pointer?: string | undefined;
|
|
2245
|
-
parameter?: string | undefined;
|
|
2246
|
-
} | undefined;
|
|
2247
|
-
}>, "many">;
|
|
2248
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2249
|
-
}, "strip", z.ZodTypeAny, {
|
|
2250
|
-
errors: {
|
|
2251
|
-
status?: string | undefined;
|
|
2252
|
-
code?: string | undefined;
|
|
2253
|
-
id?: string | undefined;
|
|
2254
|
-
links?: {
|
|
2255
|
-
about?: string | undefined;
|
|
2256
|
-
} | undefined;
|
|
2257
|
-
meta?: Record<string, unknown> | undefined;
|
|
2258
|
-
title?: string | undefined;
|
|
2259
|
-
detail?: string | undefined;
|
|
2260
|
-
source?: {
|
|
2261
|
-
pointer?: string | undefined;
|
|
2262
|
-
parameter?: string | undefined;
|
|
2263
|
-
} | undefined;
|
|
2264
|
-
}[];
|
|
2265
|
-
meta?: Record<string, unknown> | undefined;
|
|
2266
|
-
}, {
|
|
2267
|
-
errors: {
|
|
2268
|
-
status?: string | undefined;
|
|
2269
|
-
code?: string | undefined;
|
|
2270
|
-
id?: string | undefined;
|
|
2271
|
-
links?: {
|
|
2272
|
-
about?: string | undefined;
|
|
2273
|
-
} | undefined;
|
|
2274
|
-
meta?: Record<string, unknown> | undefined;
|
|
2275
|
-
title?: string | undefined;
|
|
2276
|
-
detail?: string | undefined;
|
|
2277
|
-
source?: {
|
|
2278
|
-
pointer?: string | undefined;
|
|
2279
|
-
parameter?: string | undefined;
|
|
2280
|
-
} | undefined;
|
|
2281
|
-
}[];
|
|
2282
|
-
meta?: Record<string, unknown> | undefined;
|
|
2283
|
-
}>;
|
|
2284
|
-
404: z.ZodObject<{
|
|
2285
|
-
errors: z.ZodArray<z.ZodObject<{
|
|
2286
|
-
id: z.ZodOptional<z.ZodString>;
|
|
2287
|
-
links: z.ZodOptional<z.ZodObject<{
|
|
2288
|
-
about: z.ZodOptional<z.ZodString>;
|
|
2289
|
-
}, "strip", z.ZodTypeAny, {
|
|
2290
|
-
about?: string | undefined;
|
|
2291
|
-
}, {
|
|
2292
|
-
about?: string | undefined;
|
|
2293
|
-
}>>;
|
|
2294
|
-
status: z.ZodOptional<z.ZodString>;
|
|
2295
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2296
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2297
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
2298
|
-
source: z.ZodOptional<z.ZodObject<{
|
|
2299
|
-
pointer: z.ZodOptional<z.ZodString>;
|
|
2300
|
-
parameter: z.ZodOptional<z.ZodString>;
|
|
2301
|
-
}, "strip", z.ZodTypeAny, {
|
|
2302
|
-
pointer?: string | undefined;
|
|
2303
|
-
parameter?: string | undefined;
|
|
2304
|
-
}, {
|
|
2305
|
-
pointer?: string | undefined;
|
|
2306
|
-
parameter?: string | undefined;
|
|
2307
|
-
}>>;
|
|
2308
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2309
|
-
}, "strip", z.ZodTypeAny, {
|
|
2310
|
-
status?: string | undefined;
|
|
2311
|
-
code?: string | undefined;
|
|
2312
|
-
id?: string | undefined;
|
|
2313
|
-
links?: {
|
|
2314
|
-
about?: string | undefined;
|
|
2315
|
-
} | undefined;
|
|
2316
|
-
meta?: Record<string, unknown> | undefined;
|
|
2317
|
-
title?: string | undefined;
|
|
2318
|
-
detail?: string | undefined;
|
|
2319
|
-
source?: {
|
|
2320
|
-
pointer?: string | undefined;
|
|
2321
|
-
parameter?: string | undefined;
|
|
2322
|
-
} | undefined;
|
|
2323
|
-
}, {
|
|
2324
|
-
status?: string | undefined;
|
|
2325
|
-
code?: string | undefined;
|
|
2326
|
-
id?: string | undefined;
|
|
2327
|
-
links?: {
|
|
2328
|
-
about?: string | undefined;
|
|
2329
|
-
} | undefined;
|
|
2330
|
-
meta?: Record<string, unknown> | undefined;
|
|
2331
|
-
title?: string | undefined;
|
|
2332
|
-
detail?: string | undefined;
|
|
2333
|
-
source?: {
|
|
2334
|
-
pointer?: string | undefined;
|
|
2335
|
-
parameter?: string | undefined;
|
|
2336
|
-
} | undefined;
|
|
2337
|
-
}>, "many">;
|
|
2338
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2339
|
-
}, "strip", z.ZodTypeAny, {
|
|
2340
|
-
errors: {
|
|
2341
|
-
status?: string | undefined;
|
|
2342
|
-
code?: string | undefined;
|
|
2343
|
-
id?: string | undefined;
|
|
2344
|
-
links?: {
|
|
2345
|
-
about?: string | undefined;
|
|
2346
|
-
} | undefined;
|
|
2347
|
-
meta?: Record<string, unknown> | undefined;
|
|
2348
|
-
title?: string | undefined;
|
|
2349
|
-
detail?: string | undefined;
|
|
2350
|
-
source?: {
|
|
2351
|
-
pointer?: string | undefined;
|
|
2352
|
-
parameter?: string | undefined;
|
|
2353
|
-
} | undefined;
|
|
2354
|
-
}[];
|
|
2355
|
-
meta?: Record<string, unknown> | undefined;
|
|
2356
|
-
}, {
|
|
2357
|
-
errors: {
|
|
2358
|
-
status?: string | undefined;
|
|
2359
|
-
code?: string | undefined;
|
|
2360
|
-
id?: string | undefined;
|
|
2361
|
-
links?: {
|
|
2362
|
-
about?: string | undefined;
|
|
2363
|
-
} | undefined;
|
|
2364
|
-
meta?: Record<string, unknown> | undefined;
|
|
2365
|
-
title?: string | undefined;
|
|
2366
|
-
detail?: string | undefined;
|
|
2367
|
-
source?: {
|
|
2368
|
-
pointer?: string | undefined;
|
|
2369
|
-
parameter?: string | undefined;
|
|
2370
|
-
} | undefined;
|
|
2371
|
-
}[];
|
|
2372
|
-
meta?: Record<string, unknown> | undefined;
|
|
2373
|
-
}>;
|
|
2374
|
-
500: z.ZodObject<{
|
|
2375
|
-
errors: z.ZodArray<z.ZodObject<{
|
|
2376
|
-
id: z.ZodOptional<z.ZodString>;
|
|
2377
|
-
links: z.ZodOptional<z.ZodObject<{
|
|
2378
|
-
about: z.ZodOptional<z.ZodString>;
|
|
2379
|
-
}, "strip", z.ZodTypeAny, {
|
|
2380
|
-
about?: string | undefined;
|
|
2381
|
-
}, {
|
|
2382
|
-
about?: string | undefined;
|
|
2383
|
-
}>>;
|
|
2384
|
-
status: z.ZodOptional<z.ZodString>;
|
|
2385
|
-
code: z.ZodOptional<z.ZodString>;
|
|
2386
|
-
title: z.ZodOptional<z.ZodString>;
|
|
2387
|
-
detail: z.ZodOptional<z.ZodString>;
|
|
2388
|
-
source: z.ZodOptional<z.ZodObject<{
|
|
2389
|
-
pointer: z.ZodOptional<z.ZodString>;
|
|
2390
|
-
parameter: z.ZodOptional<z.ZodString>;
|
|
2391
|
-
}, "strip", z.ZodTypeAny, {
|
|
2392
|
-
pointer?: string | undefined;
|
|
2393
|
-
parameter?: string | undefined;
|
|
2394
|
-
}, {
|
|
2395
|
-
pointer?: string | undefined;
|
|
2396
|
-
parameter?: string | undefined;
|
|
2397
|
-
}>>;
|
|
2398
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2399
|
-
}, "strip", z.ZodTypeAny, {
|
|
2400
|
-
status?: string | undefined;
|
|
2401
|
-
code?: string | undefined;
|
|
2402
|
-
id?: string | undefined;
|
|
2403
|
-
links?: {
|
|
2404
|
-
about?: string | undefined;
|
|
2405
|
-
} | undefined;
|
|
2406
|
-
meta?: Record<string, unknown> | undefined;
|
|
2407
|
-
title?: string | undefined;
|
|
2408
|
-
detail?: string | undefined;
|
|
2409
|
-
source?: {
|
|
2410
|
-
pointer?: string | undefined;
|
|
2411
|
-
parameter?: string | undefined;
|
|
2412
|
-
} | undefined;
|
|
2413
|
-
}, {
|
|
2414
|
-
status?: string | undefined;
|
|
2415
|
-
code?: string | undefined;
|
|
2416
|
-
id?: string | undefined;
|
|
2417
|
-
links?: {
|
|
2418
|
-
about?: string | undefined;
|
|
2419
|
-
} | undefined;
|
|
2420
|
-
meta?: Record<string, unknown> | undefined;
|
|
2421
|
-
title?: string | undefined;
|
|
2422
|
-
detail?: string | undefined;
|
|
2423
|
-
source?: {
|
|
2424
|
-
pointer?: string | undefined;
|
|
2425
|
-
parameter?: string | undefined;
|
|
2426
|
-
} | undefined;
|
|
2427
|
-
}>, "many">;
|
|
2428
|
-
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2429
|
-
}, "strip", z.ZodTypeAny, {
|
|
2430
|
-
errors: {
|
|
2431
|
-
status?: string | undefined;
|
|
2432
|
-
code?: string | undefined;
|
|
2433
|
-
id?: string | undefined;
|
|
2434
|
-
links?: {
|
|
2435
|
-
about?: string | undefined;
|
|
2436
|
-
} | undefined;
|
|
2437
|
-
meta?: Record<string, unknown> | undefined;
|
|
2438
|
-
title?: string | undefined;
|
|
2439
|
-
detail?: string | undefined;
|
|
2440
|
-
source?: {
|
|
2441
|
-
pointer?: string | undefined;
|
|
2442
|
-
parameter?: string | undefined;
|
|
2443
|
-
} | undefined;
|
|
2444
|
-
}[];
|
|
2445
|
-
meta?: Record<string, unknown> | undefined;
|
|
2446
|
-
}, {
|
|
2447
|
-
errors: {
|
|
2448
|
-
status?: string | undefined;
|
|
2449
|
-
code?: string | undefined;
|
|
2450
|
-
id?: string | undefined;
|
|
2451
|
-
links?: {
|
|
2452
|
-
about?: string | undefined;
|
|
2453
|
-
} | undefined;
|
|
2454
|
-
meta?: Record<string, unknown> | undefined;
|
|
2455
|
-
title?: string | undefined;
|
|
2456
|
-
detail?: string | undefined;
|
|
2457
|
-
source?: {
|
|
2458
|
-
pointer?: string | undefined;
|
|
2459
|
-
parameter?: string | undefined;
|
|
2460
|
-
} | undefined;
|
|
2461
|
-
}[];
|
|
2462
|
-
meta?: Record<string, unknown> | undefined;
|
|
2463
|
-
}>;
|
|
2464
|
-
};
|
|
2465
|
-
};
|
|
2466
|
-
inviteSuperAdmin: {
|
|
2467
|
-
summary: "Invite a super admin";
|
|
2468
|
-
description: "Invite by name+email. New users set their own password via email link. Restricted to super admins.";
|
|
1986
|
+
inviteUser: {
|
|
1987
|
+
summary: "Invite a user (no password)";
|
|
1988
|
+
description: "Invite by name+email. Optionally grant platformRole (e.g. super_admin). Invitee sets password via email.";
|
|
2469
1989
|
method: "POST";
|
|
2470
1990
|
body: z.ZodObject<{
|
|
2471
1991
|
data: z.ZodObject<{
|
|
2472
|
-
type: z.ZodLiteral<"
|
|
1992
|
+
type: z.ZodLiteral<"user-invites">;
|
|
2473
1993
|
attributes: z.ZodObject<{
|
|
2474
1994
|
name: z.ZodString;
|
|
2475
1995
|
email: z.ZodString;
|
|
1996
|
+
platformRole: z.ZodDefault<z.ZodEnum<["super_admin"]>>;
|
|
2476
1997
|
}, "strip", z.ZodTypeAny, {
|
|
2477
1998
|
email: string;
|
|
2478
1999
|
name: string;
|
|
2000
|
+
platformRole: "super_admin";
|
|
2479
2001
|
}, {
|
|
2480
2002
|
email: string;
|
|
2481
2003
|
name: string;
|
|
2004
|
+
platformRole?: "super_admin" | undefined;
|
|
2482
2005
|
}>;
|
|
2483
2006
|
}, "strip", z.ZodTypeAny, {
|
|
2484
|
-
type: "
|
|
2007
|
+
type: "user-invites";
|
|
2485
2008
|
attributes: {
|
|
2486
2009
|
email: string;
|
|
2487
2010
|
name: string;
|
|
2011
|
+
platformRole: "super_admin";
|
|
2488
2012
|
};
|
|
2489
2013
|
}, {
|
|
2490
|
-
type: "
|
|
2014
|
+
type: "user-invites";
|
|
2491
2015
|
attributes: {
|
|
2492
2016
|
email: string;
|
|
2493
2017
|
name: string;
|
|
2018
|
+
platformRole?: "super_admin" | undefined;
|
|
2494
2019
|
};
|
|
2495
2020
|
}>;
|
|
2496
2021
|
}, "strip", z.ZodTypeAny, {
|
|
2497
2022
|
data: {
|
|
2498
|
-
type: "
|
|
2023
|
+
type: "user-invites";
|
|
2499
2024
|
attributes: {
|
|
2500
2025
|
email: string;
|
|
2501
2026
|
name: string;
|
|
2027
|
+
platformRole: "super_admin";
|
|
2502
2028
|
};
|
|
2503
2029
|
};
|
|
2504
2030
|
}, {
|
|
2505
2031
|
data: {
|
|
2506
|
-
type: "
|
|
2032
|
+
type: "user-invites";
|
|
2507
2033
|
attributes: {
|
|
2508
2034
|
email: string;
|
|
2509
2035
|
name: string;
|
|
2036
|
+
platformRole?: "super_admin" | undefined;
|
|
2510
2037
|
};
|
|
2511
2038
|
};
|
|
2512
2039
|
}>;
|
|
2513
|
-
path: "/admin/
|
|
2040
|
+
path: "/admin/users/invites";
|
|
2514
2041
|
responses: {
|
|
2515
2042
|
201: z.ZodObject<{
|
|
2516
2043
|
data: z.ZodObject<{
|
|
@@ -3211,7 +2738,7 @@ export declare const adminRouter: {
|
|
|
3211
2738
|
}>;
|
|
3212
2739
|
};
|
|
3213
2740
|
};
|
|
3214
|
-
|
|
2741
|
+
resendInvite: {
|
|
3215
2742
|
pathParams: z.ZodObject<{
|
|
3216
2743
|
id: z.ZodString;
|
|
3217
2744
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3219,10 +2746,10 @@ export declare const adminRouter: {
|
|
|
3219
2746
|
}, {
|
|
3220
2747
|
id: string;
|
|
3221
2748
|
}>;
|
|
3222
|
-
summary: "Resend
|
|
2749
|
+
summary: "Resend pending invite email";
|
|
3223
2750
|
method: "POST";
|
|
3224
2751
|
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
3225
|
-
path: "/admin/
|
|
2752
|
+
path: "/admin/users/:id/resend-invite";
|
|
3226
2753
|
responses: {
|
|
3227
2754
|
200: z.ZodObject<{
|
|
3228
2755
|
meta: z.ZodObject<{
|
|
@@ -3693,7 +3220,7 @@ export declare const adminRouter: {
|
|
|
3693
3220
|
}>;
|
|
3694
3221
|
};
|
|
3695
3222
|
};
|
|
3696
|
-
|
|
3223
|
+
updatePlatformRole: {
|
|
3697
3224
|
pathParams: z.ZodObject<{
|
|
3698
3225
|
id: z.ZodString;
|
|
3699
3226
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3701,26 +3228,202 @@ export declare const adminRouter: {
|
|
|
3701
3228
|
}, {
|
|
3702
3229
|
id: string;
|
|
3703
3230
|
}>;
|
|
3704
|
-
summary: "
|
|
3705
|
-
method: "
|
|
3706
|
-
|
|
3231
|
+
summary: "Set or clear a user platform role";
|
|
3232
|
+
method: "PATCH";
|
|
3233
|
+
body: z.ZodObject<{
|
|
3234
|
+
data: z.ZodObject<{
|
|
3235
|
+
type: z.ZodLiteral<"users">;
|
|
3236
|
+
attributes: z.ZodObject<{
|
|
3237
|
+
platformRole: z.ZodNullable<z.ZodEnum<["super_admin"]>>;
|
|
3238
|
+
}, "strip", z.ZodTypeAny, {
|
|
3239
|
+
platformRole: "super_admin" | null;
|
|
3240
|
+
}, {
|
|
3241
|
+
platformRole: "super_admin" | null;
|
|
3242
|
+
}>;
|
|
3243
|
+
}, "strip", z.ZodTypeAny, {
|
|
3244
|
+
type: "users";
|
|
3245
|
+
attributes: {
|
|
3246
|
+
platformRole: "super_admin" | null;
|
|
3247
|
+
};
|
|
3248
|
+
}, {
|
|
3249
|
+
type: "users";
|
|
3250
|
+
attributes: {
|
|
3251
|
+
platformRole: "super_admin" | null;
|
|
3252
|
+
};
|
|
3253
|
+
}>;
|
|
3254
|
+
}, "strip", z.ZodTypeAny, {
|
|
3255
|
+
data: {
|
|
3256
|
+
type: "users";
|
|
3257
|
+
attributes: {
|
|
3258
|
+
platformRole: "super_admin" | null;
|
|
3259
|
+
};
|
|
3260
|
+
};
|
|
3261
|
+
}, {
|
|
3262
|
+
data: {
|
|
3263
|
+
type: "users";
|
|
3264
|
+
attributes: {
|
|
3265
|
+
platformRole: "super_admin" | null;
|
|
3266
|
+
};
|
|
3267
|
+
};
|
|
3268
|
+
}>;
|
|
3269
|
+
path: "/admin/users/:id/platform-role";
|
|
3707
3270
|
responses: {
|
|
3708
3271
|
200: z.ZodObject<{
|
|
3709
|
-
|
|
3710
|
-
|
|
3272
|
+
data: z.ZodObject<{
|
|
3273
|
+
type: z.ZodLiteral<string>;
|
|
3274
|
+
id: z.ZodString;
|
|
3275
|
+
attributes: z.ZodObject<{
|
|
3276
|
+
name: z.ZodString;
|
|
3277
|
+
email: z.ZodString;
|
|
3278
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
3279
|
+
emailVerified: z.ZodBoolean;
|
|
3280
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
3281
|
+
isPlatformAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
3282
|
+
platformRole: z.ZodOptional<z.ZodNullable<z.ZodEnum<["super_admin"]>>>;
|
|
3283
|
+
} & {
|
|
3284
|
+
createdAt: z.ZodString;
|
|
3285
|
+
updatedAt: z.ZodString;
|
|
3286
|
+
}, "strip", z.ZodTypeAny, {
|
|
3287
|
+
email: string;
|
|
3288
|
+
createdAt: string;
|
|
3289
|
+
updatedAt: string;
|
|
3290
|
+
name: string;
|
|
3291
|
+
phone: string | null;
|
|
3292
|
+
emailVerified: boolean;
|
|
3293
|
+
avatar: string | null;
|
|
3294
|
+
isPlatformAdmin?: boolean | undefined;
|
|
3295
|
+
platformRole?: "super_admin" | null | undefined;
|
|
3296
|
+
}, {
|
|
3297
|
+
email: string;
|
|
3298
|
+
createdAt: string;
|
|
3299
|
+
updatedAt: string;
|
|
3300
|
+
name: string;
|
|
3301
|
+
phone: string | null;
|
|
3302
|
+
emailVerified: boolean;
|
|
3303
|
+
avatar: string | null;
|
|
3304
|
+
isPlatformAdmin?: boolean | undefined;
|
|
3305
|
+
platformRole?: "super_admin" | null | undefined;
|
|
3306
|
+
}>;
|
|
3307
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3308
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3309
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3711
3310
|
}, "strip", z.ZodTypeAny, {
|
|
3712
|
-
|
|
3311
|
+
type: string;
|
|
3312
|
+
id: string;
|
|
3313
|
+
attributes: {
|
|
3314
|
+
email: string;
|
|
3315
|
+
createdAt: string;
|
|
3316
|
+
updatedAt: string;
|
|
3317
|
+
name: string;
|
|
3318
|
+
phone: string | null;
|
|
3319
|
+
emailVerified: boolean;
|
|
3320
|
+
avatar: string | null;
|
|
3321
|
+
isPlatformAdmin?: boolean | undefined;
|
|
3322
|
+
platformRole?: "super_admin" | null | undefined;
|
|
3323
|
+
};
|
|
3324
|
+
relationships?: Record<string, unknown> | undefined;
|
|
3325
|
+
links?: Record<string, string> | undefined;
|
|
3326
|
+
meta?: Record<string, unknown> | undefined;
|
|
3713
3327
|
}, {
|
|
3714
|
-
|
|
3328
|
+
type: string;
|
|
3329
|
+
id: string;
|
|
3330
|
+
attributes: {
|
|
3331
|
+
email: string;
|
|
3332
|
+
createdAt: string;
|
|
3333
|
+
updatedAt: string;
|
|
3334
|
+
name: string;
|
|
3335
|
+
phone: string | null;
|
|
3336
|
+
emailVerified: boolean;
|
|
3337
|
+
avatar: string | null;
|
|
3338
|
+
isPlatformAdmin?: boolean | undefined;
|
|
3339
|
+
platformRole?: "super_admin" | null | undefined;
|
|
3340
|
+
};
|
|
3341
|
+
relationships?: Record<string, unknown> | undefined;
|
|
3342
|
+
links?: Record<string, string> | undefined;
|
|
3343
|
+
meta?: Record<string, unknown> | undefined;
|
|
3715
3344
|
}>;
|
|
3345
|
+
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3346
|
+
type: z.ZodString;
|
|
3347
|
+
id: z.ZodString;
|
|
3348
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3349
|
+
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3350
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3351
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3352
|
+
}, "strip", z.ZodTypeAny, {
|
|
3353
|
+
type: string;
|
|
3354
|
+
id: string;
|
|
3355
|
+
attributes?: Record<string, unknown> | undefined;
|
|
3356
|
+
relationships?: Record<string, unknown> | undefined;
|
|
3357
|
+
links?: Record<string, string> | undefined;
|
|
3358
|
+
meta?: Record<string, unknown> | undefined;
|
|
3359
|
+
}, {
|
|
3360
|
+
type: string;
|
|
3361
|
+
id: string;
|
|
3362
|
+
attributes?: Record<string, unknown> | undefined;
|
|
3363
|
+
relationships?: Record<string, unknown> | undefined;
|
|
3364
|
+
links?: Record<string, string> | undefined;
|
|
3365
|
+
meta?: Record<string, unknown> | undefined;
|
|
3366
|
+
}>, "many">>;
|
|
3367
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
3368
|
+
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
3716
3369
|
}, "strip", z.ZodTypeAny, {
|
|
3717
|
-
|
|
3718
|
-
|
|
3370
|
+
data: {
|
|
3371
|
+
type: string;
|
|
3372
|
+
id: string;
|
|
3373
|
+
attributes: {
|
|
3374
|
+
email: string;
|
|
3375
|
+
createdAt: string;
|
|
3376
|
+
updatedAt: string;
|
|
3377
|
+
name: string;
|
|
3378
|
+
phone: string | null;
|
|
3379
|
+
emailVerified: boolean;
|
|
3380
|
+
avatar: string | null;
|
|
3381
|
+
isPlatformAdmin?: boolean | undefined;
|
|
3382
|
+
platformRole?: "super_admin" | null | undefined;
|
|
3383
|
+
};
|
|
3384
|
+
relationships?: Record<string, unknown> | undefined;
|
|
3385
|
+
links?: Record<string, string> | undefined;
|
|
3386
|
+
meta?: Record<string, unknown> | undefined;
|
|
3719
3387
|
};
|
|
3720
|
-
|
|
3721
|
-
meta
|
|
3722
|
-
|
|
3388
|
+
links?: Record<string, string> | undefined;
|
|
3389
|
+
meta?: Record<string, unknown> | undefined;
|
|
3390
|
+
included?: {
|
|
3391
|
+
type: string;
|
|
3392
|
+
id: string;
|
|
3393
|
+
attributes?: Record<string, unknown> | undefined;
|
|
3394
|
+
relationships?: Record<string, unknown> | undefined;
|
|
3395
|
+
links?: Record<string, string> | undefined;
|
|
3396
|
+
meta?: Record<string, unknown> | undefined;
|
|
3397
|
+
}[] | undefined;
|
|
3398
|
+
}, {
|
|
3399
|
+
data: {
|
|
3400
|
+
type: string;
|
|
3401
|
+
id: string;
|
|
3402
|
+
attributes: {
|
|
3403
|
+
email: string;
|
|
3404
|
+
createdAt: string;
|
|
3405
|
+
updatedAt: string;
|
|
3406
|
+
name: string;
|
|
3407
|
+
phone: string | null;
|
|
3408
|
+
emailVerified: boolean;
|
|
3409
|
+
avatar: string | null;
|
|
3410
|
+
isPlatformAdmin?: boolean | undefined;
|
|
3411
|
+
platformRole?: "super_admin" | null | undefined;
|
|
3412
|
+
};
|
|
3413
|
+
relationships?: Record<string, unknown> | undefined;
|
|
3414
|
+
links?: Record<string, string> | undefined;
|
|
3415
|
+
meta?: Record<string, unknown> | undefined;
|
|
3723
3416
|
};
|
|
3417
|
+
links?: Record<string, string> | undefined;
|
|
3418
|
+
meta?: Record<string, unknown> | undefined;
|
|
3419
|
+
included?: {
|
|
3420
|
+
type: string;
|
|
3421
|
+
id: string;
|
|
3422
|
+
attributes?: Record<string, unknown> | undefined;
|
|
3423
|
+
relationships?: Record<string, unknown> | undefined;
|
|
3424
|
+
links?: Record<string, string> | undefined;
|
|
3425
|
+
meta?: Record<string, unknown> | undefined;
|
|
3426
|
+
}[] | undefined;
|
|
3724
3427
|
}>;
|
|
3725
3428
|
400: z.ZodObject<{
|
|
3726
3429
|
errors: z.ZodArray<z.ZodObject<{
|
|
@@ -4174,56 +3877,33 @@ export declare const adminRouter: {
|
|
|
4174
3877
|
}>;
|
|
4175
3878
|
};
|
|
4176
3879
|
};
|
|
4177
|
-
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
'page[size]': z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
|
|
3880
|
+
createLoginLink: {
|
|
3881
|
+
pathParams: z.ZodObject<{
|
|
3882
|
+
id: z.ZodString;
|
|
4181
3883
|
}, "strip", z.ZodTypeAny, {
|
|
4182
|
-
|
|
4183
|
-
'page[size]'?: number | undefined;
|
|
3884
|
+
id: string;
|
|
4184
3885
|
}, {
|
|
4185
|
-
|
|
4186
|
-
'page[size]'?: number | undefined;
|
|
3886
|
+
id: string;
|
|
4187
3887
|
}>;
|
|
4188
|
-
summary: "
|
|
4189
|
-
|
|
4190
|
-
|
|
3888
|
+
summary: "Create one-time login link (platform admin)";
|
|
3889
|
+
description: "Mint a short-lived, single-use login URL for a user. Restricted to super admins.";
|
|
3890
|
+
method: "POST";
|
|
3891
|
+
body: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
3892
|
+
path: "/admin/users/:id/login-link";
|
|
4191
3893
|
responses: {
|
|
4192
|
-
|
|
4193
|
-
data: z.
|
|
3894
|
+
201: z.ZodObject<{
|
|
3895
|
+
data: z.ZodObject<{
|
|
4194
3896
|
type: z.ZodLiteral<string>;
|
|
4195
3897
|
id: z.ZodString;
|
|
4196
3898
|
attributes: z.ZodObject<{
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
phone: z.ZodNullable<z.ZodString>;
|
|
4200
|
-
emailVerified: z.ZodBoolean;
|
|
4201
|
-
isPlatformAdmin: z.ZodBoolean;
|
|
4202
|
-
platformRole: z.ZodNullable<z.ZodEnum<["super_admin"]>>;
|
|
4203
|
-
hasPassword: z.ZodOptional<z.ZodBoolean>;
|
|
4204
|
-
} & {
|
|
4205
|
-
createdAt: z.ZodString;
|
|
4206
|
-
updatedAt: z.ZodString;
|
|
3899
|
+
loginUrl: z.ZodString;
|
|
3900
|
+
expiresAt: z.ZodString;
|
|
4207
3901
|
}, "strip", z.ZodTypeAny, {
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
updatedAt: string;
|
|
4211
|
-
name: string;
|
|
4212
|
-
phone: string | null;
|
|
4213
|
-
emailVerified: boolean;
|
|
4214
|
-
isPlatformAdmin: boolean;
|
|
4215
|
-
platformRole: "super_admin" | null;
|
|
4216
|
-
hasPassword?: boolean | undefined;
|
|
3902
|
+
loginUrl: string;
|
|
3903
|
+
expiresAt: string;
|
|
4217
3904
|
}, {
|
|
4218
|
-
|
|
4219
|
-
|
|
4220
|
-
updatedAt: string;
|
|
4221
|
-
name: string;
|
|
4222
|
-
phone: string | null;
|
|
4223
|
-
emailVerified: boolean;
|
|
4224
|
-
isPlatformAdmin: boolean;
|
|
4225
|
-
platformRole: "super_admin" | null;
|
|
4226
|
-
hasPassword?: boolean | undefined;
|
|
3905
|
+
loginUrl: string;
|
|
3906
|
+
expiresAt: string;
|
|
4227
3907
|
}>;
|
|
4228
3908
|
relationships: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4229
3909
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -4232,15 +3912,8 @@ export declare const adminRouter: {
|
|
|
4232
3912
|
type: string;
|
|
4233
3913
|
id: string;
|
|
4234
3914
|
attributes: {
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
updatedAt: string;
|
|
4238
|
-
name: string;
|
|
4239
|
-
phone: string | null;
|
|
4240
|
-
emailVerified: boolean;
|
|
4241
|
-
isPlatformAdmin: boolean;
|
|
4242
|
-
platformRole: "super_admin" | null;
|
|
4243
|
-
hasPassword?: boolean | undefined;
|
|
3915
|
+
loginUrl: string;
|
|
3916
|
+
expiresAt: string;
|
|
4244
3917
|
};
|
|
4245
3918
|
relationships?: Record<string, unknown> | undefined;
|
|
4246
3919
|
links?: Record<string, string> | undefined;
|
|
@@ -4249,20 +3922,13 @@ export declare const adminRouter: {
|
|
|
4249
3922
|
type: string;
|
|
4250
3923
|
id: string;
|
|
4251
3924
|
attributes: {
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
updatedAt: string;
|
|
4255
|
-
name: string;
|
|
4256
|
-
phone: string | null;
|
|
4257
|
-
emailVerified: boolean;
|
|
4258
|
-
isPlatformAdmin: boolean;
|
|
4259
|
-
platformRole: "super_admin" | null;
|
|
4260
|
-
hasPassword?: boolean | undefined;
|
|
3925
|
+
loginUrl: string;
|
|
3926
|
+
expiresAt: string;
|
|
4261
3927
|
};
|
|
4262
3928
|
relationships?: Record<string, unknown> | undefined;
|
|
4263
3929
|
links?: Record<string, string> | undefined;
|
|
4264
3930
|
meta?: Record<string, unknown> | undefined;
|
|
4265
|
-
}
|
|
3931
|
+
}>;
|
|
4266
3932
|
included: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4267
3933
|
type: z.ZodString;
|
|
4268
3934
|
id: z.ZodString;
|
|
@@ -4285,50 +3951,22 @@ export declare const adminRouter: {
|
|
|
4285
3951
|
links?: Record<string, string> | undefined;
|
|
4286
3952
|
meta?: Record<string, unknown> | undefined;
|
|
4287
3953
|
}>, "many">>;
|
|
3954
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4288
3955
|
links: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
4289
|
-
} & {
|
|
4290
|
-
meta: z.ZodOptional<z.ZodObject<{
|
|
4291
|
-
totalRecords: z.ZodNumber;
|
|
4292
|
-
totalPages: z.ZodNumber;
|
|
4293
|
-
currentPage: z.ZodNumber;
|
|
4294
|
-
pageSize: z.ZodNumber;
|
|
4295
|
-
}, "strip", z.ZodTypeAny, {
|
|
4296
|
-
totalRecords: number;
|
|
4297
|
-
totalPages: number;
|
|
4298
|
-
currentPage: number;
|
|
4299
|
-
pageSize: number;
|
|
4300
|
-
}, {
|
|
4301
|
-
totalRecords: number;
|
|
4302
|
-
totalPages: number;
|
|
4303
|
-
currentPage: number;
|
|
4304
|
-
pageSize: number;
|
|
4305
|
-
}>>;
|
|
4306
3956
|
}, "strip", z.ZodTypeAny, {
|
|
4307
3957
|
data: {
|
|
4308
3958
|
type: string;
|
|
4309
3959
|
id: string;
|
|
4310
3960
|
attributes: {
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
updatedAt: string;
|
|
4314
|
-
name: string;
|
|
4315
|
-
phone: string | null;
|
|
4316
|
-
emailVerified: boolean;
|
|
4317
|
-
isPlatformAdmin: boolean;
|
|
4318
|
-
platformRole: "super_admin" | null;
|
|
4319
|
-
hasPassword?: boolean | undefined;
|
|
3961
|
+
loginUrl: string;
|
|
3962
|
+
expiresAt: string;
|
|
4320
3963
|
};
|
|
4321
3964
|
relationships?: Record<string, unknown> | undefined;
|
|
4322
3965
|
links?: Record<string, string> | undefined;
|
|
4323
3966
|
meta?: Record<string, unknown> | undefined;
|
|
4324
|
-
}
|
|
3967
|
+
};
|
|
4325
3968
|
links?: Record<string, string> | undefined;
|
|
4326
|
-
meta?:
|
|
4327
|
-
totalRecords: number;
|
|
4328
|
-
totalPages: number;
|
|
4329
|
-
currentPage: number;
|
|
4330
|
-
pageSize: number;
|
|
4331
|
-
} | undefined;
|
|
3969
|
+
meta?: Record<string, unknown> | undefined;
|
|
4332
3970
|
included?: {
|
|
4333
3971
|
type: string;
|
|
4334
3972
|
id: string;
|
|
@@ -4342,27 +3980,15 @@ export declare const adminRouter: {
|
|
|
4342
3980
|
type: string;
|
|
4343
3981
|
id: string;
|
|
4344
3982
|
attributes: {
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
updatedAt: string;
|
|
4348
|
-
name: string;
|
|
4349
|
-
phone: string | null;
|
|
4350
|
-
emailVerified: boolean;
|
|
4351
|
-
isPlatformAdmin: boolean;
|
|
4352
|
-
platformRole: "super_admin" | null;
|
|
4353
|
-
hasPassword?: boolean | undefined;
|
|
3983
|
+
loginUrl: string;
|
|
3984
|
+
expiresAt: string;
|
|
4354
3985
|
};
|
|
4355
3986
|
relationships?: Record<string, unknown> | undefined;
|
|
4356
3987
|
links?: Record<string, string> | undefined;
|
|
4357
3988
|
meta?: Record<string, unknown> | undefined;
|
|
4358
|
-
}
|
|
3989
|
+
};
|
|
4359
3990
|
links?: Record<string, string> | undefined;
|
|
4360
|
-
meta?:
|
|
4361
|
-
totalRecords: number;
|
|
4362
|
-
totalPages: number;
|
|
4363
|
-
currentPage: number;
|
|
4364
|
-
pageSize: number;
|
|
4365
|
-
} | undefined;
|
|
3991
|
+
meta?: Record<string, unknown> | undefined;
|
|
4366
3992
|
included?: {
|
|
4367
3993
|
type: string;
|
|
4368
3994
|
id: string;
|
|
@@ -4552,6 +4178,96 @@ export declare const adminRouter: {
|
|
|
4552
4178
|
}[];
|
|
4553
4179
|
meta?: Record<string, unknown> | undefined;
|
|
4554
4180
|
}>;
|
|
4181
|
+
404: z.ZodObject<{
|
|
4182
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
4183
|
+
id: z.ZodOptional<z.ZodString>;
|
|
4184
|
+
links: z.ZodOptional<z.ZodObject<{
|
|
4185
|
+
about: z.ZodOptional<z.ZodString>;
|
|
4186
|
+
}, "strip", z.ZodTypeAny, {
|
|
4187
|
+
about?: string | undefined;
|
|
4188
|
+
}, {
|
|
4189
|
+
about?: string | undefined;
|
|
4190
|
+
}>>;
|
|
4191
|
+
status: z.ZodOptional<z.ZodString>;
|
|
4192
|
+
code: z.ZodOptional<z.ZodString>;
|
|
4193
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4194
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
4195
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
4196
|
+
pointer: z.ZodOptional<z.ZodString>;
|
|
4197
|
+
parameter: z.ZodOptional<z.ZodString>;
|
|
4198
|
+
}, "strip", z.ZodTypeAny, {
|
|
4199
|
+
pointer?: string | undefined;
|
|
4200
|
+
parameter?: string | undefined;
|
|
4201
|
+
}, {
|
|
4202
|
+
pointer?: string | undefined;
|
|
4203
|
+
parameter?: string | undefined;
|
|
4204
|
+
}>>;
|
|
4205
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4206
|
+
}, "strip", z.ZodTypeAny, {
|
|
4207
|
+
status?: string | undefined;
|
|
4208
|
+
code?: string | undefined;
|
|
4209
|
+
id?: string | undefined;
|
|
4210
|
+
links?: {
|
|
4211
|
+
about?: string | undefined;
|
|
4212
|
+
} | undefined;
|
|
4213
|
+
meta?: Record<string, unknown> | undefined;
|
|
4214
|
+
title?: string | undefined;
|
|
4215
|
+
detail?: string | undefined;
|
|
4216
|
+
source?: {
|
|
4217
|
+
pointer?: string | undefined;
|
|
4218
|
+
parameter?: string | undefined;
|
|
4219
|
+
} | undefined;
|
|
4220
|
+
}, {
|
|
4221
|
+
status?: string | undefined;
|
|
4222
|
+
code?: string | undefined;
|
|
4223
|
+
id?: string | undefined;
|
|
4224
|
+
links?: {
|
|
4225
|
+
about?: string | undefined;
|
|
4226
|
+
} | undefined;
|
|
4227
|
+
meta?: Record<string, unknown> | undefined;
|
|
4228
|
+
title?: string | undefined;
|
|
4229
|
+
detail?: string | undefined;
|
|
4230
|
+
source?: {
|
|
4231
|
+
pointer?: string | undefined;
|
|
4232
|
+
parameter?: string | undefined;
|
|
4233
|
+
} | undefined;
|
|
4234
|
+
}>, "many">;
|
|
4235
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4236
|
+
}, "strip", z.ZodTypeAny, {
|
|
4237
|
+
errors: {
|
|
4238
|
+
status?: string | undefined;
|
|
4239
|
+
code?: string | undefined;
|
|
4240
|
+
id?: string | undefined;
|
|
4241
|
+
links?: {
|
|
4242
|
+
about?: string | undefined;
|
|
4243
|
+
} | undefined;
|
|
4244
|
+
meta?: Record<string, unknown> | undefined;
|
|
4245
|
+
title?: string | undefined;
|
|
4246
|
+
detail?: string | undefined;
|
|
4247
|
+
source?: {
|
|
4248
|
+
pointer?: string | undefined;
|
|
4249
|
+
parameter?: string | undefined;
|
|
4250
|
+
} | undefined;
|
|
4251
|
+
}[];
|
|
4252
|
+
meta?: Record<string, unknown> | undefined;
|
|
4253
|
+
}, {
|
|
4254
|
+
errors: {
|
|
4255
|
+
status?: string | undefined;
|
|
4256
|
+
code?: string | undefined;
|
|
4257
|
+
id?: string | undefined;
|
|
4258
|
+
links?: {
|
|
4259
|
+
about?: string | undefined;
|
|
4260
|
+
} | undefined;
|
|
4261
|
+
meta?: Record<string, unknown> | undefined;
|
|
4262
|
+
title?: string | undefined;
|
|
4263
|
+
detail?: string | undefined;
|
|
4264
|
+
source?: {
|
|
4265
|
+
pointer?: string | undefined;
|
|
4266
|
+
parameter?: string | undefined;
|
|
4267
|
+
} | undefined;
|
|
4268
|
+
}[];
|
|
4269
|
+
meta?: Record<string, unknown> | undefined;
|
|
4270
|
+
}>;
|
|
4555
4271
|
500: z.ZodObject<{
|
|
4556
4272
|
errors: z.ZodArray<z.ZodObject<{
|
|
4557
4273
|
id: z.ZodOptional<z.ZodString>;
|