mtlx-sdk 0.0.0-bootstrap.0 → 0.10.0
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/LICENSE +21 -0
- package/README.md +175 -0
- package/dist/client.d.ts +67 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +141 -0
- package/dist/client.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/buildPath.d.ts +19 -0
- package/dist/lib/buildPath.d.ts.map +1 -0
- package/dist/lib/buildPath.js +46 -0
- package/dist/lib/buildPath.js.map +1 -0
- package/dist/lib/dashboardLinks.d.ts +19 -0
- package/dist/lib/dashboardLinks.d.ts.map +1 -0
- package/dist/lib/dashboardLinks.js +37 -0
- package/dist/lib/dashboardLinks.js.map +1 -0
- package/dist/lib/enums.d.ts +41 -0
- package/dist/lib/enums.d.ts.map +1 -0
- package/dist/lib/enums.js +293 -0
- package/dist/lib/enums.js.map +1 -0
- package/dist/lib/eventRouter.d.ts +41 -0
- package/dist/lib/eventRouter.d.ts.map +1 -0
- package/dist/lib/eventRouter.js +43 -0
- package/dist/lib/eventRouter.js.map +1 -0
- package/dist/lib/fetchBinary.d.ts +15 -0
- package/dist/lib/fetchBinary.d.ts.map +1 -0
- package/dist/lib/fetchBinary.js +35 -0
- package/dist/lib/fetchBinary.js.map +1 -0
- package/dist/lib/fileFormats.d.ts +67 -0
- package/dist/lib/fileFormats.d.ts.map +1 -0
- package/dist/lib/fileFormats.js +92 -0
- package/dist/lib/fileFormats.js.map +1 -0
- package/dist/lib/list.d.ts +59 -0
- package/dist/lib/list.d.ts.map +1 -0
- package/dist/lib/list.js +53 -0
- package/dist/lib/list.js.map +1 -0
- package/dist/lib/parseResult.d.ts +14 -0
- package/dist/lib/parseResult.d.ts.map +1 -0
- package/dist/lib/parseResult.js +13 -0
- package/dist/lib/parseResult.js.map +1 -0
- package/dist/lib/schemas.d.ts +48 -0
- package/dist/lib/schemas.d.ts.map +1 -0
- package/dist/lib/schemas.js +43 -0
- package/dist/lib/schemas.js.map +1 -0
- package/dist/lib/types.d.ts +46 -0
- package/dist/lib/types.d.ts.map +1 -0
- package/dist/lib/types.js +22 -0
- package/dist/lib/types.js.map +1 -0
- package/dist/lib/upload.d.ts +36 -0
- package/dist/lib/upload.d.ts.map +1 -0
- package/dist/lib/upload.js +79 -0
- package/dist/lib/upload.js.map +1 -0
- package/dist/lib/url.d.ts +7 -0
- package/dist/lib/url.d.ts.map +1 -0
- package/dist/lib/url.js +26 -0
- package/dist/lib/url.js.map +1 -0
- package/dist/routes/apiTokens.d.ts +172 -0
- package/dist/routes/apiTokens.d.ts.map +1 -0
- package/dist/routes/apiTokens.js +133 -0
- package/dist/routes/apiTokens.js.map +1 -0
- package/dist/routes/assets.d.ts +545 -0
- package/dist/routes/assets.d.ts.map +1 -0
- package/dist/routes/assets.js +275 -0
- package/dist/routes/assets.js.map +1 -0
- package/dist/routes/auth.d.ts +102 -0
- package/dist/routes/auth.d.ts.map +1 -0
- package/dist/routes/auth.js +98 -0
- package/dist/routes/auth.js.map +1 -0
- package/dist/routes/avatars.d.ts +130 -0
- package/dist/routes/avatars.d.ts.map +1 -0
- package/dist/routes/avatars.js +121 -0
- package/dist/routes/avatars.js.map +1 -0
- package/dist/routes/comments.d.ts +165 -0
- package/dist/routes/comments.d.ts.map +1 -0
- package/dist/routes/comments.js +106 -0
- package/dist/routes/comments.js.map +1 -0
- package/dist/routes/error.d.ts +10 -0
- package/dist/routes/error.d.ts.map +1 -0
- package/dist/routes/error.js +12 -0
- package/dist/routes/error.js.map +1 -0
- package/dist/routes/files.d.ts +70 -0
- package/dist/routes/files.d.ts.map +1 -0
- package/dist/routes/files.js +80 -0
- package/dist/routes/files.js.map +1 -0
- package/dist/routes/health.d.ts +10 -0
- package/dist/routes/health.d.ts.map +1 -0
- package/dist/routes/health.js +12 -0
- package/dist/routes/health.js.map +1 -0
- package/dist/routes/media.d.ts +22 -0
- package/dist/routes/media.d.ts.map +1 -0
- package/dist/routes/media.js +18 -0
- package/dist/routes/media.js.map +1 -0
- package/dist/routes/notifications.d.ts +164 -0
- package/dist/routes/notifications.d.ts.map +1 -0
- package/dist/routes/notifications.js +97 -0
- package/dist/routes/notifications.js.map +1 -0
- package/dist/routes/oembed.d.ts +80 -0
- package/dist/routes/oembed.d.ts.map +1 -0
- package/dist/routes/oembed.js +74 -0
- package/dist/routes/oembed.js.map +1 -0
- package/dist/routes/serverEvents.d.ts +521 -0
- package/dist/routes/serverEvents.d.ts.map +1 -0
- package/dist/routes/serverEvents.js +136 -0
- package/dist/routes/serverEvents.js.map +1 -0
- package/dist/routes/tasks.d.ts +242 -0
- package/dist/routes/tasks.d.ts.map +1 -0
- package/dist/routes/tasks.js +185 -0
- package/dist/routes/tasks.js.map +1 -0
- package/dist/routes/users.d.ts +1055 -0
- package/dist/routes/users.d.ts.map +1 -0
- package/dist/routes/users.js +233 -0
- package/dist/routes/users.js.map +1 -0
- package/package.json +46 -4
|
@@ -0,0 +1,1055 @@
|
|
|
1
|
+
import * as z from 'zod';
|
|
2
|
+
import type { ApiClient } from '../client.js';
|
|
3
|
+
import type { SortingFromFields } from '../lib/list.js';
|
|
4
|
+
export declare const userSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodNumber;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type User = z.infer<typeof userSchema>;
|
|
9
|
+
export declare const privateUserSchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodNumber;
|
|
11
|
+
name: z.ZodString;
|
|
12
|
+
createdAt: z.ZodISODateTime;
|
|
13
|
+
updatedAt: z.ZodISODateTime;
|
|
14
|
+
email: z.ZodString;
|
|
15
|
+
fullName: z.ZodString;
|
|
16
|
+
country: z.ZodNullable<z.ZodEnum<{
|
|
17
|
+
AD: "AD";
|
|
18
|
+
AE: "AE";
|
|
19
|
+
AF: "AF";
|
|
20
|
+
AG: "AG";
|
|
21
|
+
AI: "AI";
|
|
22
|
+
AL: "AL";
|
|
23
|
+
AM: "AM";
|
|
24
|
+
AO: "AO";
|
|
25
|
+
AQ: "AQ";
|
|
26
|
+
AR: "AR";
|
|
27
|
+
AS: "AS";
|
|
28
|
+
AT: "AT";
|
|
29
|
+
AU: "AU";
|
|
30
|
+
AW: "AW";
|
|
31
|
+
AX: "AX";
|
|
32
|
+
AZ: "AZ";
|
|
33
|
+
BA: "BA";
|
|
34
|
+
BB: "BB";
|
|
35
|
+
BD: "BD";
|
|
36
|
+
BE: "BE";
|
|
37
|
+
BF: "BF";
|
|
38
|
+
BG: "BG";
|
|
39
|
+
BH: "BH";
|
|
40
|
+
BI: "BI";
|
|
41
|
+
BJ: "BJ";
|
|
42
|
+
BL: "BL";
|
|
43
|
+
BM: "BM";
|
|
44
|
+
BN: "BN";
|
|
45
|
+
BO: "BO";
|
|
46
|
+
BQ: "BQ";
|
|
47
|
+
BR: "BR";
|
|
48
|
+
BS: "BS";
|
|
49
|
+
BT: "BT";
|
|
50
|
+
BV: "BV";
|
|
51
|
+
BW: "BW";
|
|
52
|
+
BY: "BY";
|
|
53
|
+
BZ: "BZ";
|
|
54
|
+
CA: "CA";
|
|
55
|
+
CC: "CC";
|
|
56
|
+
CD: "CD";
|
|
57
|
+
CF: "CF";
|
|
58
|
+
CG: "CG";
|
|
59
|
+
CH: "CH";
|
|
60
|
+
CI: "CI";
|
|
61
|
+
CK: "CK";
|
|
62
|
+
CL: "CL";
|
|
63
|
+
CM: "CM";
|
|
64
|
+
CN: "CN";
|
|
65
|
+
CO: "CO";
|
|
66
|
+
CR: "CR";
|
|
67
|
+
CU: "CU";
|
|
68
|
+
CV: "CV";
|
|
69
|
+
CW: "CW";
|
|
70
|
+
CX: "CX";
|
|
71
|
+
CY: "CY";
|
|
72
|
+
CZ: "CZ";
|
|
73
|
+
DE: "DE";
|
|
74
|
+
DJ: "DJ";
|
|
75
|
+
DK: "DK";
|
|
76
|
+
DM: "DM";
|
|
77
|
+
DO: "DO";
|
|
78
|
+
DZ: "DZ";
|
|
79
|
+
EC: "EC";
|
|
80
|
+
EE: "EE";
|
|
81
|
+
EG: "EG";
|
|
82
|
+
EH: "EH";
|
|
83
|
+
ER: "ER";
|
|
84
|
+
ES: "ES";
|
|
85
|
+
ET: "ET";
|
|
86
|
+
FI: "FI";
|
|
87
|
+
FJ: "FJ";
|
|
88
|
+
FK: "FK";
|
|
89
|
+
FM: "FM";
|
|
90
|
+
FO: "FO";
|
|
91
|
+
FR: "FR";
|
|
92
|
+
GA: "GA";
|
|
93
|
+
GB: "GB";
|
|
94
|
+
GD: "GD";
|
|
95
|
+
GE: "GE";
|
|
96
|
+
GF: "GF";
|
|
97
|
+
GG: "GG";
|
|
98
|
+
GH: "GH";
|
|
99
|
+
GI: "GI";
|
|
100
|
+
GL: "GL";
|
|
101
|
+
GM: "GM";
|
|
102
|
+
GN: "GN";
|
|
103
|
+
GP: "GP";
|
|
104
|
+
GQ: "GQ";
|
|
105
|
+
GR: "GR";
|
|
106
|
+
GS: "GS";
|
|
107
|
+
GT: "GT";
|
|
108
|
+
GU: "GU";
|
|
109
|
+
GW: "GW";
|
|
110
|
+
GY: "GY";
|
|
111
|
+
HK: "HK";
|
|
112
|
+
HM: "HM";
|
|
113
|
+
HN: "HN";
|
|
114
|
+
HR: "HR";
|
|
115
|
+
HT: "HT";
|
|
116
|
+
HU: "HU";
|
|
117
|
+
ID: "ID";
|
|
118
|
+
IE: "IE";
|
|
119
|
+
IL: "IL";
|
|
120
|
+
IM: "IM";
|
|
121
|
+
IN: "IN";
|
|
122
|
+
IO: "IO";
|
|
123
|
+
IQ: "IQ";
|
|
124
|
+
IR: "IR";
|
|
125
|
+
IS: "IS";
|
|
126
|
+
IT: "IT";
|
|
127
|
+
JE: "JE";
|
|
128
|
+
JM: "JM";
|
|
129
|
+
JO: "JO";
|
|
130
|
+
JP: "JP";
|
|
131
|
+
KE: "KE";
|
|
132
|
+
KG: "KG";
|
|
133
|
+
KH: "KH";
|
|
134
|
+
KI: "KI";
|
|
135
|
+
KM: "KM";
|
|
136
|
+
KN: "KN";
|
|
137
|
+
KP: "KP";
|
|
138
|
+
KR: "KR";
|
|
139
|
+
KW: "KW";
|
|
140
|
+
KY: "KY";
|
|
141
|
+
KZ: "KZ";
|
|
142
|
+
LA: "LA";
|
|
143
|
+
LB: "LB";
|
|
144
|
+
LC: "LC";
|
|
145
|
+
LI: "LI";
|
|
146
|
+
LK: "LK";
|
|
147
|
+
LR: "LR";
|
|
148
|
+
LS: "LS";
|
|
149
|
+
LT: "LT";
|
|
150
|
+
LU: "LU";
|
|
151
|
+
LV: "LV";
|
|
152
|
+
LY: "LY";
|
|
153
|
+
MA: "MA";
|
|
154
|
+
MC: "MC";
|
|
155
|
+
MD: "MD";
|
|
156
|
+
ME: "ME";
|
|
157
|
+
MF: "MF";
|
|
158
|
+
MG: "MG";
|
|
159
|
+
MH: "MH";
|
|
160
|
+
MK: "MK";
|
|
161
|
+
ML: "ML";
|
|
162
|
+
MM: "MM";
|
|
163
|
+
MN: "MN";
|
|
164
|
+
MO: "MO";
|
|
165
|
+
MP: "MP";
|
|
166
|
+
MQ: "MQ";
|
|
167
|
+
MR: "MR";
|
|
168
|
+
MS: "MS";
|
|
169
|
+
MT: "MT";
|
|
170
|
+
MU: "MU";
|
|
171
|
+
MV: "MV";
|
|
172
|
+
MW: "MW";
|
|
173
|
+
MX: "MX";
|
|
174
|
+
MY: "MY";
|
|
175
|
+
MZ: "MZ";
|
|
176
|
+
NA: "NA";
|
|
177
|
+
NC: "NC";
|
|
178
|
+
NE: "NE";
|
|
179
|
+
NF: "NF";
|
|
180
|
+
NG: "NG";
|
|
181
|
+
NI: "NI";
|
|
182
|
+
NL: "NL";
|
|
183
|
+
NO: "NO";
|
|
184
|
+
NP: "NP";
|
|
185
|
+
NR: "NR";
|
|
186
|
+
NU: "NU";
|
|
187
|
+
NZ: "NZ";
|
|
188
|
+
OM: "OM";
|
|
189
|
+
PA: "PA";
|
|
190
|
+
PE: "PE";
|
|
191
|
+
PF: "PF";
|
|
192
|
+
PG: "PG";
|
|
193
|
+
PH: "PH";
|
|
194
|
+
PK: "PK";
|
|
195
|
+
PL: "PL";
|
|
196
|
+
PM: "PM";
|
|
197
|
+
PN: "PN";
|
|
198
|
+
PR: "PR";
|
|
199
|
+
PS: "PS";
|
|
200
|
+
PT: "PT";
|
|
201
|
+
PW: "PW";
|
|
202
|
+
PY: "PY";
|
|
203
|
+
QA: "QA";
|
|
204
|
+
RE: "RE";
|
|
205
|
+
RO: "RO";
|
|
206
|
+
RS: "RS";
|
|
207
|
+
RU: "RU";
|
|
208
|
+
RW: "RW";
|
|
209
|
+
SA: "SA";
|
|
210
|
+
SB: "SB";
|
|
211
|
+
SC: "SC";
|
|
212
|
+
SD: "SD";
|
|
213
|
+
SE: "SE";
|
|
214
|
+
SG: "SG";
|
|
215
|
+
SH: "SH";
|
|
216
|
+
SI: "SI";
|
|
217
|
+
SJ: "SJ";
|
|
218
|
+
SK: "SK";
|
|
219
|
+
SL: "SL";
|
|
220
|
+
SM: "SM";
|
|
221
|
+
SN: "SN";
|
|
222
|
+
SO: "SO";
|
|
223
|
+
SR: "SR";
|
|
224
|
+
SS: "SS";
|
|
225
|
+
ST: "ST";
|
|
226
|
+
SV: "SV";
|
|
227
|
+
SY: "SY";
|
|
228
|
+
SZ: "SZ";
|
|
229
|
+
TC: "TC";
|
|
230
|
+
TD: "TD";
|
|
231
|
+
TF: "TF";
|
|
232
|
+
TG: "TG";
|
|
233
|
+
TH: "TH";
|
|
234
|
+
TJ: "TJ";
|
|
235
|
+
TK: "TK";
|
|
236
|
+
TL: "TL";
|
|
237
|
+
TM: "TM";
|
|
238
|
+
TN: "TN";
|
|
239
|
+
TO: "TO";
|
|
240
|
+
TR: "TR";
|
|
241
|
+
TT: "TT";
|
|
242
|
+
TV: "TV";
|
|
243
|
+
TW: "TW";
|
|
244
|
+
TZ: "TZ";
|
|
245
|
+
UA: "UA";
|
|
246
|
+
UG: "UG";
|
|
247
|
+
UM: "UM";
|
|
248
|
+
US: "US";
|
|
249
|
+
UY: "UY";
|
|
250
|
+
UZ: "UZ";
|
|
251
|
+
VA: "VA";
|
|
252
|
+
VC: "VC";
|
|
253
|
+
VE: "VE";
|
|
254
|
+
VG: "VG";
|
|
255
|
+
VI: "VI";
|
|
256
|
+
VN: "VN";
|
|
257
|
+
VU: "VU";
|
|
258
|
+
WF: "WF";
|
|
259
|
+
WS: "WS";
|
|
260
|
+
YE: "YE";
|
|
261
|
+
ZM: "ZM";
|
|
262
|
+
ZW: "ZW";
|
|
263
|
+
"~": "~";
|
|
264
|
+
}>>;
|
|
265
|
+
company: z.ZodString;
|
|
266
|
+
city: z.ZodString;
|
|
267
|
+
role: z.ZodString;
|
|
268
|
+
phoneNumber: z.ZodString;
|
|
269
|
+
type: z.ZodEnum<{
|
|
270
|
+
STANDARD: "STANDARD";
|
|
271
|
+
}>;
|
|
272
|
+
emailNotifications: z.ZodBoolean;
|
|
273
|
+
emailNewsletterUpdates: z.ZodBoolean;
|
|
274
|
+
emailAssetLikeNotifications: z.ZodBoolean;
|
|
275
|
+
emailCommentLikeNotifications: z.ZodBoolean;
|
|
276
|
+
}, z.core.$strip>;
|
|
277
|
+
export type PrivateUser = z.infer<typeof privateUserSchema>;
|
|
278
|
+
export declare const listUsersSortFields: readonly ['createdAt', 'email', 'name', 'fullName'];
|
|
279
|
+
export declare const listUsersQuerySchema: z.ZodObject<{
|
|
280
|
+
pageOffset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
281
|
+
pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
282
|
+
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
283
|
+
createdAt: "createdAt";
|
|
284
|
+
email: "email";
|
|
285
|
+
fullName: "fullName";
|
|
286
|
+
name: "name";
|
|
287
|
+
}>>;
|
|
288
|
+
sortDir: z.ZodOptional<z.ZodEnum<{
|
|
289
|
+
asc: "asc";
|
|
290
|
+
desc: "desc";
|
|
291
|
+
}>>;
|
|
292
|
+
searchText: z.ZodOptional<z.ZodString>;
|
|
293
|
+
}, z.core.$strict>;
|
|
294
|
+
export type ListUserQuery = z.infer<typeof listUsersQuerySchema>;
|
|
295
|
+
export declare const listUsersResultSchema: z.ZodObject<{
|
|
296
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
297
|
+
id: z.ZodNumber;
|
|
298
|
+
name: z.ZodString;
|
|
299
|
+
}, z.core.$strip>>;
|
|
300
|
+
rowCount: z.ZodInt;
|
|
301
|
+
}, z.core.$strict>;
|
|
302
|
+
export type ListUserResult = z.infer<typeof listUsersResultSchema>;
|
|
303
|
+
export declare const listUserPropsSchema: z.ZodObject<{
|
|
304
|
+
query: z.ZodObject<{
|
|
305
|
+
pageOffset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
306
|
+
pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
307
|
+
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
308
|
+
createdAt: "createdAt";
|
|
309
|
+
email: "email";
|
|
310
|
+
fullName: "fullName";
|
|
311
|
+
name: "name";
|
|
312
|
+
}>>;
|
|
313
|
+
sortDir: z.ZodOptional<z.ZodEnum<{
|
|
314
|
+
asc: "asc";
|
|
315
|
+
desc: "desc";
|
|
316
|
+
}>>;
|
|
317
|
+
searchText: z.ZodOptional<z.ZodString>;
|
|
318
|
+
}, z.core.$strict>;
|
|
319
|
+
}, z.core.$strict>;
|
|
320
|
+
export type ListUserProps = z.infer<typeof listUserPropsSchema>;
|
|
321
|
+
/** @internal */
|
|
322
|
+
export declare const listUserSortFields: readonly ["createdAt", "email", "name", "fullName"];
|
|
323
|
+
/** @internal */
|
|
324
|
+
export declare const listUserDefaultSort: SortingFromFields<typeof listUserSortFields>;
|
|
325
|
+
export type ListUserSortField = (typeof listUserSortFields)[number];
|
|
326
|
+
/**
|
|
327
|
+
* Lists users with optional search and pagination.
|
|
328
|
+
*
|
|
329
|
+
* @operationId list-users
|
|
330
|
+
* @param client - The API client instance
|
|
331
|
+
* @param props - The request properties
|
|
332
|
+
* @param props.query - Query parameters for filtering, pagination, and sorting
|
|
333
|
+
* @returns Promise resolving to a paginated list of users
|
|
334
|
+
* @example
|
|
335
|
+
* ```typescript
|
|
336
|
+
* const users = await listUsers(client, {
|
|
337
|
+
* query: { searchText: 'john', pageOffset: 0, pageSize: 20 }
|
|
338
|
+
* });
|
|
339
|
+
* ```
|
|
340
|
+
*/
|
|
341
|
+
export declare const listUsers: (client: ApiClient, props: ListUserProps) => Promise<ListUserResult>;
|
|
342
|
+
export declare const getUserParamsSchema: z.ZodObject<{
|
|
343
|
+
userName: z.ZodString;
|
|
344
|
+
}, z.core.$strict>;
|
|
345
|
+
export type GetUserParams = z.infer<typeof getUserParamsSchema>;
|
|
346
|
+
export type GetUserResult = z.infer<typeof userSchema>;
|
|
347
|
+
export declare const getUserPropsSchema: z.ZodObject<{
|
|
348
|
+
params: z.ZodObject<{
|
|
349
|
+
userName: z.ZodString;
|
|
350
|
+
}, z.core.$strict>;
|
|
351
|
+
}, z.core.$strict>;
|
|
352
|
+
export type GetUserProps = z.infer<typeof getUserPropsSchema>;
|
|
353
|
+
/**
|
|
354
|
+
* Gets user information by username.
|
|
355
|
+
*
|
|
356
|
+
* @operationId get-user
|
|
357
|
+
* @param client - The API client instance
|
|
358
|
+
* @param props - The request properties
|
|
359
|
+
* @param props.params - Path parameters (userName)
|
|
360
|
+
* @returns Promise resolving to the user information
|
|
361
|
+
* @example
|
|
362
|
+
* ```typescript
|
|
363
|
+
* const user = await getUser(client, {
|
|
364
|
+
* params: { userName: 'john-doe' }
|
|
365
|
+
* });
|
|
366
|
+
* ```
|
|
367
|
+
*/
|
|
368
|
+
export declare const getUser: (client: ApiClient, props: GetUserProps) => Promise<GetUserResult>;
|
|
369
|
+
export declare const userExists: (client: ApiClient, props: GetUserProps) => Promise<boolean>;
|
|
370
|
+
export declare const getUserPrivateParamsSchema: z.ZodObject<{
|
|
371
|
+
userName: z.ZodString;
|
|
372
|
+
}, z.core.$strict>;
|
|
373
|
+
export type GetUserPrivateParams = z.infer<typeof getUserPrivateParamsSchema>;
|
|
374
|
+
export type GetUserPrivateResult = z.infer<typeof privateUserSchema>;
|
|
375
|
+
export declare const getUserPrivatePropsSchema: z.ZodObject<{
|
|
376
|
+
params: z.ZodObject<{
|
|
377
|
+
userName: z.ZodString;
|
|
378
|
+
}, z.core.$strict>;
|
|
379
|
+
}, z.core.$strict>;
|
|
380
|
+
export type GetUserPrivateProps = z.infer<typeof getUserPrivatePropsSchema>;
|
|
381
|
+
/**
|
|
382
|
+
* Gets private user information by username.
|
|
383
|
+
*/
|
|
384
|
+
export declare const getUserPrivate: (client: ApiClient, props: GetUserPrivateProps) => Promise<GetUserPrivateResult>;
|
|
385
|
+
export declare const updateUserParamsSchema: z.ZodObject<{
|
|
386
|
+
userName: z.ZodString;
|
|
387
|
+
}, z.core.$strict>;
|
|
388
|
+
export type UpdateUserParams = z.infer<typeof updateUserParamsSchema>;
|
|
389
|
+
export declare const updateUserBodySchema: z.ZodObject<{
|
|
390
|
+
name: z.ZodOptional<z.ZodString>;
|
|
391
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
392
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
393
|
+
AD: "AD";
|
|
394
|
+
AE: "AE";
|
|
395
|
+
AF: "AF";
|
|
396
|
+
AG: "AG";
|
|
397
|
+
AI: "AI";
|
|
398
|
+
AL: "AL";
|
|
399
|
+
AM: "AM";
|
|
400
|
+
AO: "AO";
|
|
401
|
+
AQ: "AQ";
|
|
402
|
+
AR: "AR";
|
|
403
|
+
AS: "AS";
|
|
404
|
+
AT: "AT";
|
|
405
|
+
AU: "AU";
|
|
406
|
+
AW: "AW";
|
|
407
|
+
AX: "AX";
|
|
408
|
+
AZ: "AZ";
|
|
409
|
+
BA: "BA";
|
|
410
|
+
BB: "BB";
|
|
411
|
+
BD: "BD";
|
|
412
|
+
BE: "BE";
|
|
413
|
+
BF: "BF";
|
|
414
|
+
BG: "BG";
|
|
415
|
+
BH: "BH";
|
|
416
|
+
BI: "BI";
|
|
417
|
+
BJ: "BJ";
|
|
418
|
+
BL: "BL";
|
|
419
|
+
BM: "BM";
|
|
420
|
+
BN: "BN";
|
|
421
|
+
BO: "BO";
|
|
422
|
+
BQ: "BQ";
|
|
423
|
+
BR: "BR";
|
|
424
|
+
BS: "BS";
|
|
425
|
+
BT: "BT";
|
|
426
|
+
BV: "BV";
|
|
427
|
+
BW: "BW";
|
|
428
|
+
BY: "BY";
|
|
429
|
+
BZ: "BZ";
|
|
430
|
+
CA: "CA";
|
|
431
|
+
CC: "CC";
|
|
432
|
+
CD: "CD";
|
|
433
|
+
CF: "CF";
|
|
434
|
+
CG: "CG";
|
|
435
|
+
CH: "CH";
|
|
436
|
+
CI: "CI";
|
|
437
|
+
CK: "CK";
|
|
438
|
+
CL: "CL";
|
|
439
|
+
CM: "CM";
|
|
440
|
+
CN: "CN";
|
|
441
|
+
CO: "CO";
|
|
442
|
+
CR: "CR";
|
|
443
|
+
CU: "CU";
|
|
444
|
+
CV: "CV";
|
|
445
|
+
CW: "CW";
|
|
446
|
+
CX: "CX";
|
|
447
|
+
CY: "CY";
|
|
448
|
+
CZ: "CZ";
|
|
449
|
+
DE: "DE";
|
|
450
|
+
DJ: "DJ";
|
|
451
|
+
DK: "DK";
|
|
452
|
+
DM: "DM";
|
|
453
|
+
DO: "DO";
|
|
454
|
+
DZ: "DZ";
|
|
455
|
+
EC: "EC";
|
|
456
|
+
EE: "EE";
|
|
457
|
+
EG: "EG";
|
|
458
|
+
EH: "EH";
|
|
459
|
+
ER: "ER";
|
|
460
|
+
ES: "ES";
|
|
461
|
+
ET: "ET";
|
|
462
|
+
FI: "FI";
|
|
463
|
+
FJ: "FJ";
|
|
464
|
+
FK: "FK";
|
|
465
|
+
FM: "FM";
|
|
466
|
+
FO: "FO";
|
|
467
|
+
FR: "FR";
|
|
468
|
+
GA: "GA";
|
|
469
|
+
GB: "GB";
|
|
470
|
+
GD: "GD";
|
|
471
|
+
GE: "GE";
|
|
472
|
+
GF: "GF";
|
|
473
|
+
GG: "GG";
|
|
474
|
+
GH: "GH";
|
|
475
|
+
GI: "GI";
|
|
476
|
+
GL: "GL";
|
|
477
|
+
GM: "GM";
|
|
478
|
+
GN: "GN";
|
|
479
|
+
GP: "GP";
|
|
480
|
+
GQ: "GQ";
|
|
481
|
+
GR: "GR";
|
|
482
|
+
GS: "GS";
|
|
483
|
+
GT: "GT";
|
|
484
|
+
GU: "GU";
|
|
485
|
+
GW: "GW";
|
|
486
|
+
GY: "GY";
|
|
487
|
+
HK: "HK";
|
|
488
|
+
HM: "HM";
|
|
489
|
+
HN: "HN";
|
|
490
|
+
HR: "HR";
|
|
491
|
+
HT: "HT";
|
|
492
|
+
HU: "HU";
|
|
493
|
+
ID: "ID";
|
|
494
|
+
IE: "IE";
|
|
495
|
+
IL: "IL";
|
|
496
|
+
IM: "IM";
|
|
497
|
+
IN: "IN";
|
|
498
|
+
IO: "IO";
|
|
499
|
+
IQ: "IQ";
|
|
500
|
+
IR: "IR";
|
|
501
|
+
IS: "IS";
|
|
502
|
+
IT: "IT";
|
|
503
|
+
JE: "JE";
|
|
504
|
+
JM: "JM";
|
|
505
|
+
JO: "JO";
|
|
506
|
+
JP: "JP";
|
|
507
|
+
KE: "KE";
|
|
508
|
+
KG: "KG";
|
|
509
|
+
KH: "KH";
|
|
510
|
+
KI: "KI";
|
|
511
|
+
KM: "KM";
|
|
512
|
+
KN: "KN";
|
|
513
|
+
KP: "KP";
|
|
514
|
+
KR: "KR";
|
|
515
|
+
KW: "KW";
|
|
516
|
+
KY: "KY";
|
|
517
|
+
KZ: "KZ";
|
|
518
|
+
LA: "LA";
|
|
519
|
+
LB: "LB";
|
|
520
|
+
LC: "LC";
|
|
521
|
+
LI: "LI";
|
|
522
|
+
LK: "LK";
|
|
523
|
+
LR: "LR";
|
|
524
|
+
LS: "LS";
|
|
525
|
+
LT: "LT";
|
|
526
|
+
LU: "LU";
|
|
527
|
+
LV: "LV";
|
|
528
|
+
LY: "LY";
|
|
529
|
+
MA: "MA";
|
|
530
|
+
MC: "MC";
|
|
531
|
+
MD: "MD";
|
|
532
|
+
ME: "ME";
|
|
533
|
+
MF: "MF";
|
|
534
|
+
MG: "MG";
|
|
535
|
+
MH: "MH";
|
|
536
|
+
MK: "MK";
|
|
537
|
+
ML: "ML";
|
|
538
|
+
MM: "MM";
|
|
539
|
+
MN: "MN";
|
|
540
|
+
MO: "MO";
|
|
541
|
+
MP: "MP";
|
|
542
|
+
MQ: "MQ";
|
|
543
|
+
MR: "MR";
|
|
544
|
+
MS: "MS";
|
|
545
|
+
MT: "MT";
|
|
546
|
+
MU: "MU";
|
|
547
|
+
MV: "MV";
|
|
548
|
+
MW: "MW";
|
|
549
|
+
MX: "MX";
|
|
550
|
+
MY: "MY";
|
|
551
|
+
MZ: "MZ";
|
|
552
|
+
NA: "NA";
|
|
553
|
+
NC: "NC";
|
|
554
|
+
NE: "NE";
|
|
555
|
+
NF: "NF";
|
|
556
|
+
NG: "NG";
|
|
557
|
+
NI: "NI";
|
|
558
|
+
NL: "NL";
|
|
559
|
+
NO: "NO";
|
|
560
|
+
NP: "NP";
|
|
561
|
+
NR: "NR";
|
|
562
|
+
NU: "NU";
|
|
563
|
+
NZ: "NZ";
|
|
564
|
+
OM: "OM";
|
|
565
|
+
PA: "PA";
|
|
566
|
+
PE: "PE";
|
|
567
|
+
PF: "PF";
|
|
568
|
+
PG: "PG";
|
|
569
|
+
PH: "PH";
|
|
570
|
+
PK: "PK";
|
|
571
|
+
PL: "PL";
|
|
572
|
+
PM: "PM";
|
|
573
|
+
PN: "PN";
|
|
574
|
+
PR: "PR";
|
|
575
|
+
PS: "PS";
|
|
576
|
+
PT: "PT";
|
|
577
|
+
PW: "PW";
|
|
578
|
+
PY: "PY";
|
|
579
|
+
QA: "QA";
|
|
580
|
+
RE: "RE";
|
|
581
|
+
RO: "RO";
|
|
582
|
+
RS: "RS";
|
|
583
|
+
RU: "RU";
|
|
584
|
+
RW: "RW";
|
|
585
|
+
SA: "SA";
|
|
586
|
+
SB: "SB";
|
|
587
|
+
SC: "SC";
|
|
588
|
+
SD: "SD";
|
|
589
|
+
SE: "SE";
|
|
590
|
+
SG: "SG";
|
|
591
|
+
SH: "SH";
|
|
592
|
+
SI: "SI";
|
|
593
|
+
SJ: "SJ";
|
|
594
|
+
SK: "SK";
|
|
595
|
+
SL: "SL";
|
|
596
|
+
SM: "SM";
|
|
597
|
+
SN: "SN";
|
|
598
|
+
SO: "SO";
|
|
599
|
+
SR: "SR";
|
|
600
|
+
SS: "SS";
|
|
601
|
+
ST: "ST";
|
|
602
|
+
SV: "SV";
|
|
603
|
+
SY: "SY";
|
|
604
|
+
SZ: "SZ";
|
|
605
|
+
TC: "TC";
|
|
606
|
+
TD: "TD";
|
|
607
|
+
TF: "TF";
|
|
608
|
+
TG: "TG";
|
|
609
|
+
TH: "TH";
|
|
610
|
+
TJ: "TJ";
|
|
611
|
+
TK: "TK";
|
|
612
|
+
TL: "TL";
|
|
613
|
+
TM: "TM";
|
|
614
|
+
TN: "TN";
|
|
615
|
+
TO: "TO";
|
|
616
|
+
TR: "TR";
|
|
617
|
+
TT: "TT";
|
|
618
|
+
TV: "TV";
|
|
619
|
+
TW: "TW";
|
|
620
|
+
TZ: "TZ";
|
|
621
|
+
UA: "UA";
|
|
622
|
+
UG: "UG";
|
|
623
|
+
UM: "UM";
|
|
624
|
+
US: "US";
|
|
625
|
+
UY: "UY";
|
|
626
|
+
UZ: "UZ";
|
|
627
|
+
VA: "VA";
|
|
628
|
+
VC: "VC";
|
|
629
|
+
VE: "VE";
|
|
630
|
+
VG: "VG";
|
|
631
|
+
VI: "VI";
|
|
632
|
+
VN: "VN";
|
|
633
|
+
VU: "VU";
|
|
634
|
+
WF: "WF";
|
|
635
|
+
WS: "WS";
|
|
636
|
+
YE: "YE";
|
|
637
|
+
ZM: "ZM";
|
|
638
|
+
ZW: "ZW";
|
|
639
|
+
"~": "~";
|
|
640
|
+
}>>>;
|
|
641
|
+
city: z.ZodOptional<z.ZodString>;
|
|
642
|
+
role: z.ZodOptional<z.ZodString>;
|
|
643
|
+
company: z.ZodOptional<z.ZodString>;
|
|
644
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
645
|
+
emailNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
646
|
+
emailNewsletterUpdates: z.ZodOptional<z.ZodBoolean>;
|
|
647
|
+
emailAssetLikeNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
648
|
+
emailCommentLikeNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
649
|
+
}, z.core.$strict>;
|
|
650
|
+
export type UpdateUserBody = z.infer<typeof updateUserBodySchema>;
|
|
651
|
+
export type UpdateUserResult = z.infer<typeof privateUserSchema>;
|
|
652
|
+
export declare const updateUserPropsSchema: z.ZodObject<{
|
|
653
|
+
params: z.ZodObject<{
|
|
654
|
+
userName: z.ZodString;
|
|
655
|
+
}, z.core.$strict>;
|
|
656
|
+
body: z.ZodObject<{
|
|
657
|
+
name: z.ZodOptional<z.ZodString>;
|
|
658
|
+
fullName: z.ZodOptional<z.ZodString>;
|
|
659
|
+
country: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
660
|
+
AD: "AD";
|
|
661
|
+
AE: "AE";
|
|
662
|
+
AF: "AF";
|
|
663
|
+
AG: "AG";
|
|
664
|
+
AI: "AI";
|
|
665
|
+
AL: "AL";
|
|
666
|
+
AM: "AM";
|
|
667
|
+
AO: "AO";
|
|
668
|
+
AQ: "AQ";
|
|
669
|
+
AR: "AR";
|
|
670
|
+
AS: "AS";
|
|
671
|
+
AT: "AT";
|
|
672
|
+
AU: "AU";
|
|
673
|
+
AW: "AW";
|
|
674
|
+
AX: "AX";
|
|
675
|
+
AZ: "AZ";
|
|
676
|
+
BA: "BA";
|
|
677
|
+
BB: "BB";
|
|
678
|
+
BD: "BD";
|
|
679
|
+
BE: "BE";
|
|
680
|
+
BF: "BF";
|
|
681
|
+
BG: "BG";
|
|
682
|
+
BH: "BH";
|
|
683
|
+
BI: "BI";
|
|
684
|
+
BJ: "BJ";
|
|
685
|
+
BL: "BL";
|
|
686
|
+
BM: "BM";
|
|
687
|
+
BN: "BN";
|
|
688
|
+
BO: "BO";
|
|
689
|
+
BQ: "BQ";
|
|
690
|
+
BR: "BR";
|
|
691
|
+
BS: "BS";
|
|
692
|
+
BT: "BT";
|
|
693
|
+
BV: "BV";
|
|
694
|
+
BW: "BW";
|
|
695
|
+
BY: "BY";
|
|
696
|
+
BZ: "BZ";
|
|
697
|
+
CA: "CA";
|
|
698
|
+
CC: "CC";
|
|
699
|
+
CD: "CD";
|
|
700
|
+
CF: "CF";
|
|
701
|
+
CG: "CG";
|
|
702
|
+
CH: "CH";
|
|
703
|
+
CI: "CI";
|
|
704
|
+
CK: "CK";
|
|
705
|
+
CL: "CL";
|
|
706
|
+
CM: "CM";
|
|
707
|
+
CN: "CN";
|
|
708
|
+
CO: "CO";
|
|
709
|
+
CR: "CR";
|
|
710
|
+
CU: "CU";
|
|
711
|
+
CV: "CV";
|
|
712
|
+
CW: "CW";
|
|
713
|
+
CX: "CX";
|
|
714
|
+
CY: "CY";
|
|
715
|
+
CZ: "CZ";
|
|
716
|
+
DE: "DE";
|
|
717
|
+
DJ: "DJ";
|
|
718
|
+
DK: "DK";
|
|
719
|
+
DM: "DM";
|
|
720
|
+
DO: "DO";
|
|
721
|
+
DZ: "DZ";
|
|
722
|
+
EC: "EC";
|
|
723
|
+
EE: "EE";
|
|
724
|
+
EG: "EG";
|
|
725
|
+
EH: "EH";
|
|
726
|
+
ER: "ER";
|
|
727
|
+
ES: "ES";
|
|
728
|
+
ET: "ET";
|
|
729
|
+
FI: "FI";
|
|
730
|
+
FJ: "FJ";
|
|
731
|
+
FK: "FK";
|
|
732
|
+
FM: "FM";
|
|
733
|
+
FO: "FO";
|
|
734
|
+
FR: "FR";
|
|
735
|
+
GA: "GA";
|
|
736
|
+
GB: "GB";
|
|
737
|
+
GD: "GD";
|
|
738
|
+
GE: "GE";
|
|
739
|
+
GF: "GF";
|
|
740
|
+
GG: "GG";
|
|
741
|
+
GH: "GH";
|
|
742
|
+
GI: "GI";
|
|
743
|
+
GL: "GL";
|
|
744
|
+
GM: "GM";
|
|
745
|
+
GN: "GN";
|
|
746
|
+
GP: "GP";
|
|
747
|
+
GQ: "GQ";
|
|
748
|
+
GR: "GR";
|
|
749
|
+
GS: "GS";
|
|
750
|
+
GT: "GT";
|
|
751
|
+
GU: "GU";
|
|
752
|
+
GW: "GW";
|
|
753
|
+
GY: "GY";
|
|
754
|
+
HK: "HK";
|
|
755
|
+
HM: "HM";
|
|
756
|
+
HN: "HN";
|
|
757
|
+
HR: "HR";
|
|
758
|
+
HT: "HT";
|
|
759
|
+
HU: "HU";
|
|
760
|
+
ID: "ID";
|
|
761
|
+
IE: "IE";
|
|
762
|
+
IL: "IL";
|
|
763
|
+
IM: "IM";
|
|
764
|
+
IN: "IN";
|
|
765
|
+
IO: "IO";
|
|
766
|
+
IQ: "IQ";
|
|
767
|
+
IR: "IR";
|
|
768
|
+
IS: "IS";
|
|
769
|
+
IT: "IT";
|
|
770
|
+
JE: "JE";
|
|
771
|
+
JM: "JM";
|
|
772
|
+
JO: "JO";
|
|
773
|
+
JP: "JP";
|
|
774
|
+
KE: "KE";
|
|
775
|
+
KG: "KG";
|
|
776
|
+
KH: "KH";
|
|
777
|
+
KI: "KI";
|
|
778
|
+
KM: "KM";
|
|
779
|
+
KN: "KN";
|
|
780
|
+
KP: "KP";
|
|
781
|
+
KR: "KR";
|
|
782
|
+
KW: "KW";
|
|
783
|
+
KY: "KY";
|
|
784
|
+
KZ: "KZ";
|
|
785
|
+
LA: "LA";
|
|
786
|
+
LB: "LB";
|
|
787
|
+
LC: "LC";
|
|
788
|
+
LI: "LI";
|
|
789
|
+
LK: "LK";
|
|
790
|
+
LR: "LR";
|
|
791
|
+
LS: "LS";
|
|
792
|
+
LT: "LT";
|
|
793
|
+
LU: "LU";
|
|
794
|
+
LV: "LV";
|
|
795
|
+
LY: "LY";
|
|
796
|
+
MA: "MA";
|
|
797
|
+
MC: "MC";
|
|
798
|
+
MD: "MD";
|
|
799
|
+
ME: "ME";
|
|
800
|
+
MF: "MF";
|
|
801
|
+
MG: "MG";
|
|
802
|
+
MH: "MH";
|
|
803
|
+
MK: "MK";
|
|
804
|
+
ML: "ML";
|
|
805
|
+
MM: "MM";
|
|
806
|
+
MN: "MN";
|
|
807
|
+
MO: "MO";
|
|
808
|
+
MP: "MP";
|
|
809
|
+
MQ: "MQ";
|
|
810
|
+
MR: "MR";
|
|
811
|
+
MS: "MS";
|
|
812
|
+
MT: "MT";
|
|
813
|
+
MU: "MU";
|
|
814
|
+
MV: "MV";
|
|
815
|
+
MW: "MW";
|
|
816
|
+
MX: "MX";
|
|
817
|
+
MY: "MY";
|
|
818
|
+
MZ: "MZ";
|
|
819
|
+
NA: "NA";
|
|
820
|
+
NC: "NC";
|
|
821
|
+
NE: "NE";
|
|
822
|
+
NF: "NF";
|
|
823
|
+
NG: "NG";
|
|
824
|
+
NI: "NI";
|
|
825
|
+
NL: "NL";
|
|
826
|
+
NO: "NO";
|
|
827
|
+
NP: "NP";
|
|
828
|
+
NR: "NR";
|
|
829
|
+
NU: "NU";
|
|
830
|
+
NZ: "NZ";
|
|
831
|
+
OM: "OM";
|
|
832
|
+
PA: "PA";
|
|
833
|
+
PE: "PE";
|
|
834
|
+
PF: "PF";
|
|
835
|
+
PG: "PG";
|
|
836
|
+
PH: "PH";
|
|
837
|
+
PK: "PK";
|
|
838
|
+
PL: "PL";
|
|
839
|
+
PM: "PM";
|
|
840
|
+
PN: "PN";
|
|
841
|
+
PR: "PR";
|
|
842
|
+
PS: "PS";
|
|
843
|
+
PT: "PT";
|
|
844
|
+
PW: "PW";
|
|
845
|
+
PY: "PY";
|
|
846
|
+
QA: "QA";
|
|
847
|
+
RE: "RE";
|
|
848
|
+
RO: "RO";
|
|
849
|
+
RS: "RS";
|
|
850
|
+
RU: "RU";
|
|
851
|
+
RW: "RW";
|
|
852
|
+
SA: "SA";
|
|
853
|
+
SB: "SB";
|
|
854
|
+
SC: "SC";
|
|
855
|
+
SD: "SD";
|
|
856
|
+
SE: "SE";
|
|
857
|
+
SG: "SG";
|
|
858
|
+
SH: "SH";
|
|
859
|
+
SI: "SI";
|
|
860
|
+
SJ: "SJ";
|
|
861
|
+
SK: "SK";
|
|
862
|
+
SL: "SL";
|
|
863
|
+
SM: "SM";
|
|
864
|
+
SN: "SN";
|
|
865
|
+
SO: "SO";
|
|
866
|
+
SR: "SR";
|
|
867
|
+
SS: "SS";
|
|
868
|
+
ST: "ST";
|
|
869
|
+
SV: "SV";
|
|
870
|
+
SY: "SY";
|
|
871
|
+
SZ: "SZ";
|
|
872
|
+
TC: "TC";
|
|
873
|
+
TD: "TD";
|
|
874
|
+
TF: "TF";
|
|
875
|
+
TG: "TG";
|
|
876
|
+
TH: "TH";
|
|
877
|
+
TJ: "TJ";
|
|
878
|
+
TK: "TK";
|
|
879
|
+
TL: "TL";
|
|
880
|
+
TM: "TM";
|
|
881
|
+
TN: "TN";
|
|
882
|
+
TO: "TO";
|
|
883
|
+
TR: "TR";
|
|
884
|
+
TT: "TT";
|
|
885
|
+
TV: "TV";
|
|
886
|
+
TW: "TW";
|
|
887
|
+
TZ: "TZ";
|
|
888
|
+
UA: "UA";
|
|
889
|
+
UG: "UG";
|
|
890
|
+
UM: "UM";
|
|
891
|
+
US: "US";
|
|
892
|
+
UY: "UY";
|
|
893
|
+
UZ: "UZ";
|
|
894
|
+
VA: "VA";
|
|
895
|
+
VC: "VC";
|
|
896
|
+
VE: "VE";
|
|
897
|
+
VG: "VG";
|
|
898
|
+
VI: "VI";
|
|
899
|
+
VN: "VN";
|
|
900
|
+
VU: "VU";
|
|
901
|
+
WF: "WF";
|
|
902
|
+
WS: "WS";
|
|
903
|
+
YE: "YE";
|
|
904
|
+
ZM: "ZM";
|
|
905
|
+
ZW: "ZW";
|
|
906
|
+
"~": "~";
|
|
907
|
+
}>>>;
|
|
908
|
+
city: z.ZodOptional<z.ZodString>;
|
|
909
|
+
role: z.ZodOptional<z.ZodString>;
|
|
910
|
+
company: z.ZodOptional<z.ZodString>;
|
|
911
|
+
phoneNumber: z.ZodOptional<z.ZodString>;
|
|
912
|
+
emailNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
913
|
+
emailNewsletterUpdates: z.ZodOptional<z.ZodBoolean>;
|
|
914
|
+
emailAssetLikeNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
915
|
+
emailCommentLikeNotifications: z.ZodOptional<z.ZodBoolean>;
|
|
916
|
+
}, z.core.$strict>;
|
|
917
|
+
}, z.core.$strict>;
|
|
918
|
+
export type UpdateUserProps = z.infer<typeof updateUserPropsSchema>;
|
|
919
|
+
/**
|
|
920
|
+
* Updates a user.
|
|
921
|
+
*/
|
|
922
|
+
export declare const updateUser: (client: ApiClient, props: UpdateUserProps) => Promise<UpdateUserResult>;
|
|
923
|
+
export declare const deleteUserParamsSchema: z.ZodObject<{
|
|
924
|
+
userName: z.ZodString;
|
|
925
|
+
}, z.core.$strict>;
|
|
926
|
+
export type DeleteUserParams = z.infer<typeof deleteUserParamsSchema>;
|
|
927
|
+
export declare const deleteUserResultSchema: z.ZodVoid;
|
|
928
|
+
export declare const deleteUserPropsSchema: z.ZodObject<{
|
|
929
|
+
params: z.ZodObject<{
|
|
930
|
+
userName: z.ZodString;
|
|
931
|
+
}, z.core.$strict>;
|
|
932
|
+
}, z.core.$strict>;
|
|
933
|
+
export type DeleteUserProps = z.infer<typeof deleteUserPropsSchema>;
|
|
934
|
+
/**
|
|
935
|
+
* Deletes a user.
|
|
936
|
+
*/
|
|
937
|
+
export declare const deleteUser: (client: ApiClient, props: DeleteUserProps) => Promise<void>;
|
|
938
|
+
export declare const userSessionSchema: z.ZodObject<{
|
|
939
|
+
id: z.ZodNumber;
|
|
940
|
+
ipAddress: z.ZodString;
|
|
941
|
+
browser: z.ZodNullable<z.ZodString>;
|
|
942
|
+
os: z.ZodNullable<z.ZodString>;
|
|
943
|
+
client: z.ZodNullable<z.ZodString>;
|
|
944
|
+
createdAt: z.ZodISODateTime;
|
|
945
|
+
lastUsedAt: z.ZodISODateTime;
|
|
946
|
+
expiresAt: z.ZodISODateTime;
|
|
947
|
+
}, z.core.$strict>;
|
|
948
|
+
export type UserSession = z.infer<typeof userSessionSchema>;
|
|
949
|
+
export declare const listUserSessionsSortFields: readonly ['createdAt', 'lastUsedAt', 'expiresAt', 'ipAddress'];
|
|
950
|
+
export declare const listUserSessionsQuerySchema: z.ZodObject<{
|
|
951
|
+
pageOffset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
952
|
+
pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
953
|
+
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
954
|
+
createdAt: "createdAt";
|
|
955
|
+
expiresAt: "expiresAt";
|
|
956
|
+
ipAddress: "ipAddress";
|
|
957
|
+
lastUsedAt: "lastUsedAt";
|
|
958
|
+
}>>;
|
|
959
|
+
sortDir: z.ZodOptional<z.ZodEnum<{
|
|
960
|
+
asc: "asc";
|
|
961
|
+
desc: "desc";
|
|
962
|
+
}>>;
|
|
963
|
+
}, z.core.$strip>;
|
|
964
|
+
export type ListUserSessionsQuery = z.infer<typeof listUserSessionsQuerySchema>;
|
|
965
|
+
export declare const listUserSessionsResultSchema: z.ZodObject<{
|
|
966
|
+
rows: z.ZodArray<z.ZodObject<{
|
|
967
|
+
id: z.ZodNumber;
|
|
968
|
+
ipAddress: z.ZodString;
|
|
969
|
+
browser: z.ZodNullable<z.ZodString>;
|
|
970
|
+
os: z.ZodNullable<z.ZodString>;
|
|
971
|
+
client: z.ZodNullable<z.ZodString>;
|
|
972
|
+
createdAt: z.ZodISODateTime;
|
|
973
|
+
lastUsedAt: z.ZodISODateTime;
|
|
974
|
+
expiresAt: z.ZodISODateTime;
|
|
975
|
+
}, z.core.$strict>>;
|
|
976
|
+
rowCount: z.ZodInt;
|
|
977
|
+
}, z.core.$strict>;
|
|
978
|
+
export type ListUserSessionsResult = z.infer<typeof listUserSessionsResultSchema>;
|
|
979
|
+
export declare const listUserSessionsParamsSchema: z.ZodObject<{
|
|
980
|
+
userName: z.ZodString;
|
|
981
|
+
}, z.core.$strict>;
|
|
982
|
+
export type ListUserSessionsParams = z.infer<typeof listUserSessionsParamsSchema>;
|
|
983
|
+
export declare const listUserSessionsPropsSchema: z.ZodObject<{
|
|
984
|
+
params: z.ZodObject<{
|
|
985
|
+
userName: z.ZodString;
|
|
986
|
+
}, z.core.$strict>;
|
|
987
|
+
query: z.ZodObject<{
|
|
988
|
+
pageOffset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
989
|
+
pageSize: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
990
|
+
sortBy: z.ZodOptional<z.ZodEnum<{
|
|
991
|
+
createdAt: "createdAt";
|
|
992
|
+
expiresAt: "expiresAt";
|
|
993
|
+
ipAddress: "ipAddress";
|
|
994
|
+
lastUsedAt: "lastUsedAt";
|
|
995
|
+
}>>;
|
|
996
|
+
sortDir: z.ZodOptional<z.ZodEnum<{
|
|
997
|
+
asc: "asc";
|
|
998
|
+
desc: "desc";
|
|
999
|
+
}>>;
|
|
1000
|
+
}, z.core.$strip>;
|
|
1001
|
+
}, z.core.$strict>;
|
|
1002
|
+
export type ListUserSessionsProps = z.infer<typeof listUserSessionsPropsSchema>;
|
|
1003
|
+
/** @internal */
|
|
1004
|
+
export declare const listUserSessionsSortFieldsExport: readonly ["createdAt", "lastUsedAt", "expiresAt", "ipAddress"];
|
|
1005
|
+
/** @internal */
|
|
1006
|
+
export declare const listUserSessionsDefaultSort: SortingFromFields<typeof listUserSessionsSortFieldsExport>;
|
|
1007
|
+
export type ListUserSessionsSortField = (typeof listUserSessionsSortFieldsExport)[number];
|
|
1008
|
+
/**
|
|
1009
|
+
* Lists active user sessions for a user with pagination and sorting.
|
|
1010
|
+
* **SECURITY: Does NOT return userSessionToken** - only public session data.
|
|
1011
|
+
*
|
|
1012
|
+
* @operationId list-user-sessions
|
|
1013
|
+
* @param client - The API client instance
|
|
1014
|
+
* @param props - The request properties
|
|
1015
|
+
* @param props.params - Path parameters (userName)
|
|
1016
|
+
* @param props.query - Query parameters for pagination and sorting
|
|
1017
|
+
* @returns Promise resolving to a paginated list of user sessions
|
|
1018
|
+
* @example
|
|
1019
|
+
* ```typescript
|
|
1020
|
+
* const sessions = await listUserSessions(client, {
|
|
1021
|
+
* params: { userName: 'john-doe' },
|
|
1022
|
+
* query: { pageOffset: 0, pageSize: 20 }
|
|
1023
|
+
* });
|
|
1024
|
+
* ```
|
|
1025
|
+
*/
|
|
1026
|
+
export declare const listUserSessions: (client: ApiClient, props: ListUserSessionsProps) => Promise<ListUserSessionsResult>;
|
|
1027
|
+
export declare const endUserSessionParamsSchema: z.ZodObject<{
|
|
1028
|
+
userName: z.ZodString;
|
|
1029
|
+
sessionId: z.ZodCoercedNumber<unknown>;
|
|
1030
|
+
}, z.core.$strict>;
|
|
1031
|
+
export type EndUserSessionParams = z.infer<typeof endUserSessionParamsSchema>;
|
|
1032
|
+
export declare const endUserSessionPropsSchema: z.ZodObject<{
|
|
1033
|
+
params: z.ZodObject<{
|
|
1034
|
+
userName: z.ZodString;
|
|
1035
|
+
sessionId: z.ZodCoercedNumber<unknown>;
|
|
1036
|
+
}, z.core.$strict>;
|
|
1037
|
+
}, z.core.$strict>;
|
|
1038
|
+
export type EndUserSessionProps = z.infer<typeof endUserSessionPropsSchema>;
|
|
1039
|
+
/**
|
|
1040
|
+
* Ends a user session by marking it as deleted.
|
|
1041
|
+
*
|
|
1042
|
+
* @operationId end-user-session
|
|
1043
|
+
* @param client - The API client instance
|
|
1044
|
+
* @param props - The request properties
|
|
1045
|
+
* @param props.params - Path parameters (userName, sessionId)
|
|
1046
|
+
* @returns Promise resolving when the session is ended
|
|
1047
|
+
* @example
|
|
1048
|
+
* ```typescript
|
|
1049
|
+
* await endUserSession(client, {
|
|
1050
|
+
* params: { userName: 'john-doe', sessionId: '...' }
|
|
1051
|
+
* });
|
|
1052
|
+
* ```
|
|
1053
|
+
*/
|
|
1054
|
+
export declare const endUserSession: (client: ApiClient, props: EndUserSessionProps) => Promise<void>;
|
|
1055
|
+
//# sourceMappingURL=users.d.ts.map
|