@commonpub/schema 0.1.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 +661 -0
- package/README.md +87 -0
- package/dist/admin.d.ts +256 -0
- package/dist/admin.d.ts.map +1 -0
- package/dist/admin.js +33 -0
- package/dist/admin.js.map +1 -0
- package/dist/auth.d.ts +1552 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +140 -0
- package/dist/auth.js.map +1 -0
- package/dist/content.d.ts +1129 -0
- package/dist/content.d.ts.map +1 -0
- package/dist/content.js +152 -0
- package/dist/content.js.map +1 -0
- package/dist/contest.d.ts +466 -0
- package/dist/contest.d.ts.map +1 -0
- package/dist/contest.js +64 -0
- package/dist/contest.js.map +1 -0
- package/dist/docs.d.ts +545 -0
- package/dist/docs.d.ts.map +1 -0
- package/dist/docs.js +78 -0
- package/dist/docs.js.map +1 -0
- package/dist/enums.d.ts +31 -0
- package/dist/enums.d.ts.map +1 -0
- package/dist/enums.js +149 -0
- package/dist/enums.js.map +1 -0
- package/dist/federation.d.ts +613 -0
- package/dist/federation.d.ts.map +1 -0
- package/dist/federation.js +63 -0
- package/dist/federation.js.map +1 -0
- package/dist/files.d.ts +259 -0
- package/dist/files.d.ts.map +1 -0
- package/dist/files.js +33 -0
- package/dist/files.js.map +1 -0
- package/dist/hub.d.ts +1235 -0
- package/dist/hub.d.ts.map +1 -0
- package/dist/hub.js +205 -0
- package/dist/hub.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/dist/learning.d.ts +960 -0
- package/dist/learning.d.ts.map +1 -0
- package/dist/learning.js +142 -0
- package/dist/learning.js.map +1 -0
- package/dist/openapi.d.ts +2 -0
- package/dist/openapi.d.ts.map +1 -0
- package/dist/openapi.js +322 -0
- package/dist/openapi.js.map +1 -0
- package/dist/product.d.ts +481 -0
- package/dist/product.d.ts.map +1 -0
- package/dist/product.js +66 -0
- package/dist/product.js.map +1 -0
- package/dist/social.d.ts +1027 -0
- package/dist/social.d.ts.map +1 -0
- package/dist/social.js +166 -0
- package/dist/social.js.map +1 -0
- package/dist/validators.d.ts +766 -0
- package/dist/validators.d.ts.map +1 -0
- package/dist/validators.js +385 -0
- package/dist/validators.js.map +1 -0
- package/dist/video.d.ts +353 -0
- package/dist/video.d.ts.map +1 -0
- package/dist/video.js +36 -0
- package/dist/video.js.map +1 -0
- package/package.json +77 -0
|
@@ -0,0 +1,766 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const usernameSchema: z.ZodString;
|
|
3
|
+
export declare const emailSchema: z.ZodString;
|
|
4
|
+
export declare const displayNameSchema: z.ZodString;
|
|
5
|
+
export declare const bioSchema: z.ZodOptional<z.ZodString>;
|
|
6
|
+
export declare const socialLinksSchema: z.ZodOptional<z.ZodObject<{
|
|
7
|
+
github: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
8
|
+
twitter: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
9
|
+
linkedin: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
10
|
+
youtube: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
11
|
+
instagram: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
12
|
+
mastodon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
13
|
+
discord: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
14
|
+
}, z.core.$strip>>;
|
|
15
|
+
export declare const createUserSchema: z.ZodObject<{
|
|
16
|
+
email: z.ZodString;
|
|
17
|
+
username: z.ZodString;
|
|
18
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export type CreateUserInput = z.infer<typeof createUserSchema>;
|
|
21
|
+
export declare const updateProfileSchema: z.ZodObject<{
|
|
22
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
23
|
+
bio: z.ZodOptional<z.ZodString>;
|
|
24
|
+
headline: z.ZodOptional<z.ZodString>;
|
|
25
|
+
location: z.ZodOptional<z.ZodString>;
|
|
26
|
+
website: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
27
|
+
socialLinks: z.ZodOptional<z.ZodObject<{
|
|
28
|
+
github: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
29
|
+
twitter: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
30
|
+
linkedin: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
31
|
+
youtube: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
32
|
+
instagram: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
33
|
+
mastodon: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
34
|
+
discord: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
35
|
+
}, z.core.$strip>>;
|
|
36
|
+
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
37
|
+
pronouns: z.ZodOptional<z.ZodString>;
|
|
38
|
+
timezone: z.ZodOptional<z.ZodString>;
|
|
39
|
+
emailNotifications: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
digest: z.ZodOptional<z.ZodEnum<{
|
|
41
|
+
daily: "daily";
|
|
42
|
+
weekly: "weekly";
|
|
43
|
+
none: "none";
|
|
44
|
+
}>>;
|
|
45
|
+
likes: z.ZodOptional<z.ZodBoolean>;
|
|
46
|
+
comments: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
follows: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
mentions: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
}, z.core.$strip>>;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type UpdateProfileInput = z.infer<typeof updateProfileSchema>;
|
|
52
|
+
export declare const slugSchema: z.ZodString;
|
|
53
|
+
export declare const contentTypeSchema: z.ZodEnum<{
|
|
54
|
+
project: "project";
|
|
55
|
+
article: "article";
|
|
56
|
+
blog: "blog";
|
|
57
|
+
explainer: "explainer";
|
|
58
|
+
}>;
|
|
59
|
+
export type ContentType = z.infer<typeof contentTypeSchema>;
|
|
60
|
+
export declare const contentStatusSchema: z.ZodEnum<{
|
|
61
|
+
draft: "draft";
|
|
62
|
+
published: "published";
|
|
63
|
+
archived: "archived";
|
|
64
|
+
}>;
|
|
65
|
+
export type ContentStatus = z.infer<typeof contentStatusSchema>;
|
|
66
|
+
export declare const difficultySchema: z.ZodEnum<{
|
|
67
|
+
beginner: "beginner";
|
|
68
|
+
intermediate: "intermediate";
|
|
69
|
+
advanced: "advanced";
|
|
70
|
+
}>;
|
|
71
|
+
export type Difficulty = z.infer<typeof difficultySchema>;
|
|
72
|
+
export declare const createContentSchema: z.ZodObject<{
|
|
73
|
+
type: z.ZodEnum<{
|
|
74
|
+
project: "project";
|
|
75
|
+
article: "article";
|
|
76
|
+
blog: "blog";
|
|
77
|
+
explainer: "explainer";
|
|
78
|
+
}>;
|
|
79
|
+
title: z.ZodString;
|
|
80
|
+
subtitle: z.ZodOptional<z.ZodString>;
|
|
81
|
+
description: z.ZodOptional<z.ZodString>;
|
|
82
|
+
content: z.ZodOptional<z.ZodUnknown>;
|
|
83
|
+
coverImageUrl: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
84
|
+
category: z.ZodOptional<z.ZodString>;
|
|
85
|
+
difficulty: z.ZodOptional<z.ZodEnum<{
|
|
86
|
+
beginner: "beginner";
|
|
87
|
+
intermediate: "intermediate";
|
|
88
|
+
advanced: "advanced";
|
|
89
|
+
}>>;
|
|
90
|
+
buildTime: z.ZodOptional<z.ZodString>;
|
|
91
|
+
estimatedCost: z.ZodOptional<z.ZodString>;
|
|
92
|
+
estimatedMinutes: z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>;
|
|
93
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
94
|
+
public: "public";
|
|
95
|
+
members: "members";
|
|
96
|
+
private: "private";
|
|
97
|
+
}>>;
|
|
98
|
+
seoDescription: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
99
|
+
licenseType: z.ZodOptional<z.ZodString>;
|
|
100
|
+
series: z.ZodOptional<z.ZodString>;
|
|
101
|
+
sections: z.ZodOptional<z.ZodUnknown>;
|
|
102
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
export type CreateContentInput = z.infer<typeof createContentSchema>;
|
|
105
|
+
export declare const updateContentSchema: z.ZodObject<{
|
|
106
|
+
difficulty: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
107
|
+
beginner: "beginner";
|
|
108
|
+
intermediate: "intermediate";
|
|
109
|
+
advanced: "advanced";
|
|
110
|
+
}>>>;
|
|
111
|
+
content: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
|
|
112
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
113
|
+
title: z.ZodOptional<z.ZodString>;
|
|
114
|
+
subtitle: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
115
|
+
coverImageUrl: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
|
|
116
|
+
category: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
117
|
+
buildTime: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
118
|
+
estimatedCost: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
119
|
+
visibility: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
120
|
+
public: "public";
|
|
121
|
+
members: "members";
|
|
122
|
+
private: "private";
|
|
123
|
+
}>>>;
|
|
124
|
+
seoDescription: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
|
|
125
|
+
sections: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
|
|
126
|
+
licenseType: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
127
|
+
series: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
128
|
+
estimatedMinutes: z.ZodOptional<z.ZodPipe<z.ZodTransform<{} | undefined, unknown>, z.ZodOptional<z.ZodNumber>>>;
|
|
129
|
+
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
130
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
131
|
+
draft: "draft";
|
|
132
|
+
published: "published";
|
|
133
|
+
archived: "archived";
|
|
134
|
+
}>>;
|
|
135
|
+
}, z.core.$strip>;
|
|
136
|
+
export type UpdateContentInput = z.infer<typeof updateContentSchema>;
|
|
137
|
+
export declare const likeTargetTypeSchema: z.ZodEnum<{
|
|
138
|
+
project: "project";
|
|
139
|
+
article: "article";
|
|
140
|
+
blog: "blog";
|
|
141
|
+
explainer: "explainer";
|
|
142
|
+
comment: "comment";
|
|
143
|
+
post: "post";
|
|
144
|
+
}>;
|
|
145
|
+
export type LikeTargetType = z.infer<typeof likeTargetTypeSchema>;
|
|
146
|
+
export declare const commentTargetTypeSchema: z.ZodEnum<{
|
|
147
|
+
project: "project";
|
|
148
|
+
article: "article";
|
|
149
|
+
blog: "blog";
|
|
150
|
+
explainer: "explainer";
|
|
151
|
+
post: "post";
|
|
152
|
+
lesson: "lesson";
|
|
153
|
+
}>;
|
|
154
|
+
export type CommentTargetType = z.infer<typeof commentTargetTypeSchema>;
|
|
155
|
+
export declare const createCommentSchema: z.ZodObject<{
|
|
156
|
+
targetType: z.ZodEnum<{
|
|
157
|
+
project: "project";
|
|
158
|
+
article: "article";
|
|
159
|
+
blog: "blog";
|
|
160
|
+
explainer: "explainer";
|
|
161
|
+
post: "post";
|
|
162
|
+
lesson: "lesson";
|
|
163
|
+
}>;
|
|
164
|
+
targetId: z.ZodString;
|
|
165
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
166
|
+
content: z.ZodString;
|
|
167
|
+
}, z.core.$strip>;
|
|
168
|
+
export type CreateCommentInput = z.infer<typeof createCommentSchema>;
|
|
169
|
+
export declare const hubTypeSchema: z.ZodEnum<{
|
|
170
|
+
community: "community";
|
|
171
|
+
product: "product";
|
|
172
|
+
company: "company";
|
|
173
|
+
}>;
|
|
174
|
+
export type HubType = z.infer<typeof hubTypeSchema>;
|
|
175
|
+
export declare const createHubSchema: z.ZodObject<{
|
|
176
|
+
name: z.ZodString;
|
|
177
|
+
description: z.ZodOptional<z.ZodString>;
|
|
178
|
+
rules: z.ZodOptional<z.ZodString>;
|
|
179
|
+
hubType: z.ZodDefault<z.ZodEnum<{
|
|
180
|
+
community: "community";
|
|
181
|
+
product: "product";
|
|
182
|
+
company: "company";
|
|
183
|
+
}>>;
|
|
184
|
+
joinPolicy: z.ZodDefault<z.ZodEnum<{
|
|
185
|
+
open: "open";
|
|
186
|
+
approval: "approval";
|
|
187
|
+
invite: "invite";
|
|
188
|
+
}>>;
|
|
189
|
+
privacy: z.ZodDefault<z.ZodEnum<{
|
|
190
|
+
public: "public";
|
|
191
|
+
private: "private";
|
|
192
|
+
unlisted: "unlisted";
|
|
193
|
+
}>>;
|
|
194
|
+
website: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
195
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
196
|
+
parentHubId: z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
export type CreateHubInput = z.infer<typeof createHubSchema>;
|
|
199
|
+
export declare const updateHubSchema: z.ZodObject<{
|
|
200
|
+
name: z.ZodOptional<z.ZodString>;
|
|
201
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
202
|
+
rules: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
203
|
+
hubType: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
204
|
+
community: "community";
|
|
205
|
+
product: "product";
|
|
206
|
+
company: "company";
|
|
207
|
+
}>>>;
|
|
208
|
+
joinPolicy: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
209
|
+
open: "open";
|
|
210
|
+
approval: "approval";
|
|
211
|
+
invite: "invite";
|
|
212
|
+
}>>>;
|
|
213
|
+
privacy: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
214
|
+
public: "public";
|
|
215
|
+
private: "private";
|
|
216
|
+
unlisted: "unlisted";
|
|
217
|
+
}>>>;
|
|
218
|
+
website: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
|
|
219
|
+
categories: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
220
|
+
parentHubId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
export type UpdateHubInput = z.infer<typeof updateHubSchema>;
|
|
223
|
+
export declare const createPostSchema: z.ZodObject<{
|
|
224
|
+
hubId: z.ZodString;
|
|
225
|
+
type: z.ZodDefault<z.ZodEnum<{
|
|
226
|
+
text: "text";
|
|
227
|
+
link: "link";
|
|
228
|
+
share: "share";
|
|
229
|
+
poll: "poll";
|
|
230
|
+
}>>;
|
|
231
|
+
content: z.ZodString;
|
|
232
|
+
sharedContentId: z.ZodOptional<z.ZodString>;
|
|
233
|
+
pollOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
234
|
+
pollMultiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
export type CreatePostInput = z.infer<typeof createPostSchema>;
|
|
237
|
+
export declare const createReplySchema: z.ZodObject<{
|
|
238
|
+
postId: z.ZodString;
|
|
239
|
+
content: z.ZodString;
|
|
240
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, z.core.$strip>;
|
|
242
|
+
export type CreateReplyInput = z.infer<typeof createReplySchema>;
|
|
243
|
+
export declare const createInviteSchema: z.ZodObject<{
|
|
244
|
+
maxUses: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
export type CreateInviteInput = z.infer<typeof createInviteSchema>;
|
|
248
|
+
export declare const banUserSchema: z.ZodObject<{
|
|
249
|
+
userId: z.ZodString;
|
|
250
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
251
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
252
|
+
}, z.core.$strip>;
|
|
253
|
+
export type BanUserInput = z.infer<typeof banUserSchema>;
|
|
254
|
+
export declare const changeRoleSchema: z.ZodObject<{
|
|
255
|
+
role: z.ZodEnum<{
|
|
256
|
+
member: "member";
|
|
257
|
+
admin: "admin";
|
|
258
|
+
moderator: "moderator";
|
|
259
|
+
}>;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
export type ChangeRoleInput = z.infer<typeof changeRoleSchema>;
|
|
262
|
+
export declare const postTypeSchema: z.ZodEnum<{
|
|
263
|
+
text: "text";
|
|
264
|
+
link: "link";
|
|
265
|
+
share: "share";
|
|
266
|
+
poll: "poll";
|
|
267
|
+
}>;
|
|
268
|
+
export type PostType = z.infer<typeof postTypeSchema>;
|
|
269
|
+
export declare const joinPolicySchema: z.ZodEnum<{
|
|
270
|
+
open: "open";
|
|
271
|
+
approval: "approval";
|
|
272
|
+
invite: "invite";
|
|
273
|
+
}>;
|
|
274
|
+
export type JoinPolicy = z.infer<typeof joinPolicySchema>;
|
|
275
|
+
export declare const hubPrivacySchema: z.ZodEnum<{
|
|
276
|
+
public: "public";
|
|
277
|
+
private: "private";
|
|
278
|
+
unlisted: "unlisted";
|
|
279
|
+
}>;
|
|
280
|
+
export type HubPrivacy = z.infer<typeof hubPrivacySchema>;
|
|
281
|
+
export declare const hubRoleSchema: z.ZodEnum<{
|
|
282
|
+
member: "member";
|
|
283
|
+
admin: "admin";
|
|
284
|
+
owner: "owner";
|
|
285
|
+
moderator: "moderator";
|
|
286
|
+
}>;
|
|
287
|
+
export type HubRole = z.infer<typeof hubRoleSchema>;
|
|
288
|
+
export declare const createProductSchema: z.ZodObject<{
|
|
289
|
+
name: z.ZodString;
|
|
290
|
+
description: z.ZodOptional<z.ZodString>;
|
|
291
|
+
category: z.ZodOptional<z.ZodEnum<{
|
|
292
|
+
other: "other";
|
|
293
|
+
microcontroller: "microcontroller";
|
|
294
|
+
sbc: "sbc";
|
|
295
|
+
sensor: "sensor";
|
|
296
|
+
actuator: "actuator";
|
|
297
|
+
display: "display";
|
|
298
|
+
communication: "communication";
|
|
299
|
+
power: "power";
|
|
300
|
+
mechanical: "mechanical";
|
|
301
|
+
software: "software";
|
|
302
|
+
tool: "tool";
|
|
303
|
+
}>>;
|
|
304
|
+
specs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
305
|
+
imageUrl: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
306
|
+
purchaseUrl: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
307
|
+
datasheetUrl: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
308
|
+
pricing: z.ZodOptional<z.ZodObject<{
|
|
309
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
310
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
311
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
312
|
+
}, z.core.$strip>>;
|
|
313
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
314
|
+
active: "active";
|
|
315
|
+
discontinued: "discontinued";
|
|
316
|
+
preview: "preview";
|
|
317
|
+
}>>;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
export type CreateProductInput = z.infer<typeof createProductSchema>;
|
|
320
|
+
export declare const updateProductSchema: z.ZodObject<{
|
|
321
|
+
name: z.ZodOptional<z.ZodString>;
|
|
322
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
323
|
+
category: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
324
|
+
other: "other";
|
|
325
|
+
microcontroller: "microcontroller";
|
|
326
|
+
sbc: "sbc";
|
|
327
|
+
sensor: "sensor";
|
|
328
|
+
actuator: "actuator";
|
|
329
|
+
display: "display";
|
|
330
|
+
communication: "communication";
|
|
331
|
+
power: "power";
|
|
332
|
+
mechanical: "mechanical";
|
|
333
|
+
software: "software";
|
|
334
|
+
tool: "tool";
|
|
335
|
+
}>>>;
|
|
336
|
+
specs: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
337
|
+
imageUrl: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
|
|
338
|
+
purchaseUrl: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
|
|
339
|
+
datasheetUrl: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
|
|
340
|
+
pricing: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
341
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
342
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
343
|
+
currency: z.ZodOptional<z.ZodString>;
|
|
344
|
+
}, z.core.$strip>>>;
|
|
345
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
346
|
+
active: "active";
|
|
347
|
+
discontinued: "discontinued";
|
|
348
|
+
preview: "preview";
|
|
349
|
+
}>>>;
|
|
350
|
+
}, z.core.$strip>;
|
|
351
|
+
export type UpdateProductInput = z.infer<typeof updateProductSchema>;
|
|
352
|
+
export declare const addContentProductSchema: z.ZodObject<{
|
|
353
|
+
productId: z.ZodString;
|
|
354
|
+
quantity: z.ZodDefault<z.ZodNumber>;
|
|
355
|
+
role: z.ZodOptional<z.ZodString>;
|
|
356
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
357
|
+
required: z.ZodDefault<z.ZodBoolean>;
|
|
358
|
+
}, z.core.$strip>;
|
|
359
|
+
export type AddContentProductInput = z.infer<typeof addContentProductSchema>;
|
|
360
|
+
export declare const productStatusSchema: z.ZodEnum<{
|
|
361
|
+
active: "active";
|
|
362
|
+
discontinued: "discontinued";
|
|
363
|
+
preview: "preview";
|
|
364
|
+
}>;
|
|
365
|
+
export type ProductStatus = z.infer<typeof productStatusSchema>;
|
|
366
|
+
export declare const productCategorySchema: z.ZodEnum<{
|
|
367
|
+
other: "other";
|
|
368
|
+
microcontroller: "microcontroller";
|
|
369
|
+
sbc: "sbc";
|
|
370
|
+
sensor: "sensor";
|
|
371
|
+
actuator: "actuator";
|
|
372
|
+
display: "display";
|
|
373
|
+
communication: "communication";
|
|
374
|
+
power: "power";
|
|
375
|
+
mechanical: "mechanical";
|
|
376
|
+
software: "software";
|
|
377
|
+
tool: "tool";
|
|
378
|
+
}>;
|
|
379
|
+
export type ProductCategory = z.infer<typeof productCategorySchema>;
|
|
380
|
+
export declare const createContestSchema: z.ZodObject<{
|
|
381
|
+
title: z.ZodString;
|
|
382
|
+
description: z.ZodOptional<z.ZodString>;
|
|
383
|
+
rules: z.ZodOptional<z.ZodString>;
|
|
384
|
+
bannerUrl: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
385
|
+
startDate: z.ZodString;
|
|
386
|
+
endDate: z.ZodString;
|
|
387
|
+
judgingEndDate: z.ZodOptional<z.ZodString>;
|
|
388
|
+
prizes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
389
|
+
place: z.ZodNumber;
|
|
390
|
+
title: z.ZodString;
|
|
391
|
+
description: z.ZodOptional<z.ZodString>;
|
|
392
|
+
value: z.ZodOptional<z.ZodString>;
|
|
393
|
+
}, z.core.$strip>>>;
|
|
394
|
+
judges: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
395
|
+
}, z.core.$strip>;
|
|
396
|
+
export type CreateContestInput = z.infer<typeof createContestSchema>;
|
|
397
|
+
export declare const updateContestSchema: z.ZodObject<{
|
|
398
|
+
title: z.ZodOptional<z.ZodString>;
|
|
399
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
400
|
+
rules: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
401
|
+
bannerUrl: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
|
|
402
|
+
startDate: z.ZodOptional<z.ZodString>;
|
|
403
|
+
endDate: z.ZodOptional<z.ZodString>;
|
|
404
|
+
judgingEndDate: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
405
|
+
prizes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
406
|
+
place: z.ZodNumber;
|
|
407
|
+
title: z.ZodString;
|
|
408
|
+
description: z.ZodOptional<z.ZodString>;
|
|
409
|
+
value: z.ZodOptional<z.ZodString>;
|
|
410
|
+
}, z.core.$strip>>>>;
|
|
411
|
+
judges: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
412
|
+
}, z.core.$strip>;
|
|
413
|
+
export type UpdateContestInput = z.infer<typeof updateContestSchema>;
|
|
414
|
+
export declare const judgeEntrySchema: z.ZodObject<{
|
|
415
|
+
entryId: z.ZodString;
|
|
416
|
+
score: z.ZodNumber;
|
|
417
|
+
feedback: z.ZodOptional<z.ZodString>;
|
|
418
|
+
}, z.core.$strip>;
|
|
419
|
+
export type JudgeEntryInput = z.infer<typeof judgeEntrySchema>;
|
|
420
|
+
export declare const contestTransitionSchema: z.ZodObject<{
|
|
421
|
+
status: z.ZodEnum<{
|
|
422
|
+
active: "active";
|
|
423
|
+
upcoming: "upcoming";
|
|
424
|
+
judging: "judging";
|
|
425
|
+
completed: "completed";
|
|
426
|
+
}>;
|
|
427
|
+
}, z.core.$strip>;
|
|
428
|
+
export type ContestTransitionInput = z.infer<typeof contestTransitionSchema>;
|
|
429
|
+
export declare const contestStatusSchema: z.ZodEnum<{
|
|
430
|
+
active: "active";
|
|
431
|
+
upcoming: "upcoming";
|
|
432
|
+
judging: "judging";
|
|
433
|
+
completed: "completed";
|
|
434
|
+
}>;
|
|
435
|
+
export type ContestStatus = z.infer<typeof contestStatusSchema>;
|
|
436
|
+
export declare const createVideoSchema: z.ZodObject<{
|
|
437
|
+
title: z.ZodString;
|
|
438
|
+
description: z.ZodOptional<z.ZodString>;
|
|
439
|
+
url: z.ZodString;
|
|
440
|
+
embedUrl: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
441
|
+
platform: z.ZodDefault<z.ZodEnum<{
|
|
442
|
+
other: "other";
|
|
443
|
+
youtube: "youtube";
|
|
444
|
+
vimeo: "vimeo";
|
|
445
|
+
}>>;
|
|
446
|
+
thumbnailUrl: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
447
|
+
duration: z.ZodOptional<z.ZodString>;
|
|
448
|
+
}, z.core.$strip>;
|
|
449
|
+
export type CreateVideoInput = z.infer<typeof createVideoSchema>;
|
|
450
|
+
export declare const videoPlatformSchema: z.ZodEnum<{
|
|
451
|
+
other: "other";
|
|
452
|
+
youtube: "youtube";
|
|
453
|
+
vimeo: "vimeo";
|
|
454
|
+
}>;
|
|
455
|
+
export type VideoPlatform = z.infer<typeof videoPlatformSchema>;
|
|
456
|
+
export declare const createVideoCategorySchema: z.ZodObject<{
|
|
457
|
+
name: z.ZodString;
|
|
458
|
+
description: z.ZodOptional<z.ZodString>;
|
|
459
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
460
|
+
}, z.core.$strip>;
|
|
461
|
+
export type CreateVideoCategoryInput = z.infer<typeof createVideoCategorySchema>;
|
|
462
|
+
export declare const createLearningPathSchema: z.ZodObject<{
|
|
463
|
+
title: z.ZodString;
|
|
464
|
+
description: z.ZodOptional<z.ZodString>;
|
|
465
|
+
difficulty: z.ZodOptional<z.ZodEnum<{
|
|
466
|
+
beginner: "beginner";
|
|
467
|
+
intermediate: "intermediate";
|
|
468
|
+
advanced: "advanced";
|
|
469
|
+
}>>;
|
|
470
|
+
estimatedHours: z.ZodOptional<z.ZodNumber>;
|
|
471
|
+
coverImageUrl: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
472
|
+
}, z.core.$strip>;
|
|
473
|
+
export type CreateLearningPathInput = z.infer<typeof createLearningPathSchema>;
|
|
474
|
+
export declare const updateLearningPathSchema: z.ZodObject<{
|
|
475
|
+
title: z.ZodOptional<z.ZodString>;
|
|
476
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
477
|
+
difficulty: z.ZodOptional<z.ZodOptional<z.ZodEnum<{
|
|
478
|
+
beginner: "beginner";
|
|
479
|
+
intermediate: "intermediate";
|
|
480
|
+
advanced: "advanced";
|
|
481
|
+
}>>>;
|
|
482
|
+
estimatedHours: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
483
|
+
coverImageUrl: z.ZodOptional<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
|
|
484
|
+
}, z.core.$strip>;
|
|
485
|
+
export type UpdateLearningPathInput = z.infer<typeof updateLearningPathSchema>;
|
|
486
|
+
export declare const createModuleSchema: z.ZodObject<{
|
|
487
|
+
title: z.ZodString;
|
|
488
|
+
description: z.ZodOptional<z.ZodString>;
|
|
489
|
+
}, z.core.$strip>;
|
|
490
|
+
export type CreateModuleInput = z.infer<typeof createModuleSchema>;
|
|
491
|
+
export declare const updateModuleSchema: z.ZodObject<{
|
|
492
|
+
title: z.ZodOptional<z.ZodString>;
|
|
493
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
494
|
+
}, z.core.$strip>;
|
|
495
|
+
export type UpdateModuleInput = z.infer<typeof updateModuleSchema>;
|
|
496
|
+
export declare const lessonTypeSchema: z.ZodEnum<{
|
|
497
|
+
project: "project";
|
|
498
|
+
article: "article";
|
|
499
|
+
explainer: "explainer";
|
|
500
|
+
video: "video";
|
|
501
|
+
quiz: "quiz";
|
|
502
|
+
}>;
|
|
503
|
+
export type LessonType = z.infer<typeof lessonTypeSchema>;
|
|
504
|
+
export declare const createLessonSchema: z.ZodObject<{
|
|
505
|
+
moduleId: z.ZodString;
|
|
506
|
+
title: z.ZodString;
|
|
507
|
+
type: z.ZodEnum<{
|
|
508
|
+
project: "project";
|
|
509
|
+
article: "article";
|
|
510
|
+
explainer: "explainer";
|
|
511
|
+
video: "video";
|
|
512
|
+
quiz: "quiz";
|
|
513
|
+
}>;
|
|
514
|
+
content: z.ZodOptional<z.ZodUnknown>;
|
|
515
|
+
contentItemId: z.ZodOptional<z.ZodString>;
|
|
516
|
+
duration: z.ZodOptional<z.ZodNumber>;
|
|
517
|
+
}, z.core.$strip>;
|
|
518
|
+
export type CreateLessonInput = z.infer<typeof createLessonSchema>;
|
|
519
|
+
export declare const updateLessonSchema: z.ZodObject<{
|
|
520
|
+
content: z.ZodOptional<z.ZodOptional<z.ZodUnknown>>;
|
|
521
|
+
duration: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
522
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
523
|
+
project: "project";
|
|
524
|
+
article: "article";
|
|
525
|
+
explainer: "explainer";
|
|
526
|
+
video: "video";
|
|
527
|
+
quiz: "quiz";
|
|
528
|
+
}>>;
|
|
529
|
+
title: z.ZodOptional<z.ZodString>;
|
|
530
|
+
contentItemId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
531
|
+
}, z.core.$strip>;
|
|
532
|
+
export type UpdateLessonInput = z.infer<typeof updateLessonSchema>;
|
|
533
|
+
export declare const createConversationSchema: z.ZodObject<{
|
|
534
|
+
participants: z.ZodArray<z.ZodString>;
|
|
535
|
+
}, z.core.$strip>;
|
|
536
|
+
export type CreateConversationInput = z.infer<typeof createConversationSchema>;
|
|
537
|
+
export declare const sendMessageSchema: z.ZodObject<{
|
|
538
|
+
body: z.ZodString;
|
|
539
|
+
}, z.core.$strip>;
|
|
540
|
+
export type SendMessageInput = z.infer<typeof sendMessageSchema>;
|
|
541
|
+
export declare const createDocsSiteSchema: z.ZodObject<{
|
|
542
|
+
name: z.ZodString;
|
|
543
|
+
description: z.ZodOptional<z.ZodString>;
|
|
544
|
+
}, z.core.$strip>;
|
|
545
|
+
export type CreateDocsSiteInput = z.infer<typeof createDocsSiteSchema>;
|
|
546
|
+
export declare const updateDocsSiteSchema: z.ZodObject<{
|
|
547
|
+
name: z.ZodOptional<z.ZodString>;
|
|
548
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
549
|
+
}, z.core.$strip>;
|
|
550
|
+
export type UpdateDocsSiteInput = z.infer<typeof updateDocsSiteSchema>;
|
|
551
|
+
export declare const createDocsPageSchema: z.ZodObject<{
|
|
552
|
+
versionId: z.ZodOptional<z.ZodString>;
|
|
553
|
+
title: z.ZodString;
|
|
554
|
+
slug: z.ZodOptional<z.ZodString>;
|
|
555
|
+
content: z.ZodDefault<z.ZodString>;
|
|
556
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
557
|
+
parentId: z.ZodOptional<z.ZodString>;
|
|
558
|
+
}, z.core.$strip>;
|
|
559
|
+
export type CreateDocsPageInput = z.infer<typeof createDocsPageSchema>;
|
|
560
|
+
export declare const updateDocsPageSchema: z.ZodObject<{
|
|
561
|
+
versionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
562
|
+
title: z.ZodOptional<z.ZodString>;
|
|
563
|
+
slug: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
564
|
+
content: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
565
|
+
sortOrder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
566
|
+
parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
567
|
+
}, z.core.$strip>;
|
|
568
|
+
export type UpdateDocsPageInput = z.infer<typeof updateDocsPageSchema>;
|
|
569
|
+
export declare const createDocsVersionSchema: z.ZodObject<{
|
|
570
|
+
version: z.ZodString;
|
|
571
|
+
isDefault: z.ZodOptional<z.ZodBoolean>;
|
|
572
|
+
copyFromVersionId: z.ZodOptional<z.ZodString>;
|
|
573
|
+
}, z.core.$strip>;
|
|
574
|
+
export type CreateDocsVersionInput = z.infer<typeof createDocsVersionSchema>;
|
|
575
|
+
export declare const createReportSchema: z.ZodObject<{
|
|
576
|
+
targetType: z.ZodEnum<{
|
|
577
|
+
project: "project";
|
|
578
|
+
article: "article";
|
|
579
|
+
blog: "blog";
|
|
580
|
+
explainer: "explainer";
|
|
581
|
+
comment: "comment";
|
|
582
|
+
post: "post";
|
|
583
|
+
user: "user";
|
|
584
|
+
}>;
|
|
585
|
+
targetId: z.ZodString;
|
|
586
|
+
reason: z.ZodEnum<{
|
|
587
|
+
spam: "spam";
|
|
588
|
+
harassment: "harassment";
|
|
589
|
+
inappropriate: "inappropriate";
|
|
590
|
+
copyright: "copyright";
|
|
591
|
+
other: "other";
|
|
592
|
+
}>;
|
|
593
|
+
description: z.ZodOptional<z.ZodString>;
|
|
594
|
+
}, z.core.$strip>;
|
|
595
|
+
export type CreateReportInput = z.infer<typeof createReportSchema>;
|
|
596
|
+
export declare const adminSettingSchema: z.ZodObject<{
|
|
597
|
+
key: z.ZodString;
|
|
598
|
+
value: z.ZodUnknown;
|
|
599
|
+
}, z.core.$strip>;
|
|
600
|
+
export type AdminSettingInput = z.infer<typeof adminSettingSchema>;
|
|
601
|
+
export declare const adminUpdateRoleSchema: z.ZodObject<{
|
|
602
|
+
role: z.ZodEnum<{
|
|
603
|
+
member: "member";
|
|
604
|
+
pro: "pro";
|
|
605
|
+
verified: "verified";
|
|
606
|
+
staff: "staff";
|
|
607
|
+
admin: "admin";
|
|
608
|
+
}>;
|
|
609
|
+
}, z.core.$strip>;
|
|
610
|
+
export type AdminUpdateRoleInput = z.infer<typeof adminUpdateRoleSchema>;
|
|
611
|
+
export declare const adminUpdateStatusSchema: z.ZodObject<{
|
|
612
|
+
status: z.ZodEnum<{
|
|
613
|
+
active: "active";
|
|
614
|
+
suspended: "suspended";
|
|
615
|
+
deleted: "deleted";
|
|
616
|
+
}>;
|
|
617
|
+
}, z.core.$strip>;
|
|
618
|
+
export type AdminUpdateStatusInput = z.infer<typeof adminUpdateStatusSchema>;
|
|
619
|
+
export declare const resolveReportSchema: z.ZodObject<{
|
|
620
|
+
status: z.ZodEnum<{
|
|
621
|
+
resolved: "resolved";
|
|
622
|
+
dismissed: "dismissed";
|
|
623
|
+
}>;
|
|
624
|
+
resolution: z.ZodString;
|
|
625
|
+
}, z.core.$strip>;
|
|
626
|
+
export type ResolveReportInput = z.infer<typeof resolveReportSchema>;
|
|
627
|
+
export declare const actorUriSchema: z.ZodString;
|
|
628
|
+
export declare const activityDirectionSchema: z.ZodEnum<{
|
|
629
|
+
inbound: "inbound";
|
|
630
|
+
outbound: "outbound";
|
|
631
|
+
}>;
|
|
632
|
+
export type ActivityDirection = z.infer<typeof activityDirectionSchema>;
|
|
633
|
+
export declare const activityStatusSchema: z.ZodEnum<{
|
|
634
|
+
pending: "pending";
|
|
635
|
+
delivered: "delivered";
|
|
636
|
+
failed: "failed";
|
|
637
|
+
processed: "processed";
|
|
638
|
+
}>;
|
|
639
|
+
export type ActivityStatus = z.infer<typeof activityStatusSchema>;
|
|
640
|
+
export declare const followRelationshipStatusSchema: z.ZodEnum<{
|
|
641
|
+
pending: "pending";
|
|
642
|
+
accepted: "accepted";
|
|
643
|
+
rejected: "rejected";
|
|
644
|
+
}>;
|
|
645
|
+
export type FollowRelationshipStatus = z.infer<typeof followRelationshipStatusSchema>;
|
|
646
|
+
export declare const createRemoteActorSchema: z.ZodObject<{
|
|
647
|
+
actorUri: z.ZodString;
|
|
648
|
+
inbox: z.ZodString;
|
|
649
|
+
outbox: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
650
|
+
publicKeyPem: z.ZodOptional<z.ZodString>;
|
|
651
|
+
preferredUsername: z.ZodOptional<z.ZodString>;
|
|
652
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
653
|
+
avatarUrl: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
654
|
+
instanceDomain: z.ZodString;
|
|
655
|
+
}, z.core.$strip>;
|
|
656
|
+
export type CreateRemoteActorInput = z.infer<typeof createRemoteActorSchema>;
|
|
657
|
+
export declare const createActivitySchema: z.ZodObject<{
|
|
658
|
+
type: z.ZodString;
|
|
659
|
+
actorUri: z.ZodString;
|
|
660
|
+
objectUri: z.ZodOptional<z.ZodString>;
|
|
661
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
662
|
+
direction: z.ZodEnum<{
|
|
663
|
+
inbound: "inbound";
|
|
664
|
+
outbound: "outbound";
|
|
665
|
+
}>;
|
|
666
|
+
}, z.core.$strip>;
|
|
667
|
+
export type CreateActivityInput = z.infer<typeof createActivitySchema>;
|
|
668
|
+
export declare const createFollowRelationshipSchema: z.ZodObject<{
|
|
669
|
+
followerActorUri: z.ZodString;
|
|
670
|
+
followingActorUri: z.ZodString;
|
|
671
|
+
}, z.core.$strip>;
|
|
672
|
+
export type CreateFollowRelationshipInput = z.infer<typeof createFollowRelationshipSchema>;
|
|
673
|
+
export declare const contentFiltersSchema: z.ZodObject<{
|
|
674
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
675
|
+
draft: "draft";
|
|
676
|
+
published: "published";
|
|
677
|
+
archived: "archived";
|
|
678
|
+
}>>;
|
|
679
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
680
|
+
project: "project";
|
|
681
|
+
article: "article";
|
|
682
|
+
blog: "blog";
|
|
683
|
+
explainer: "explainer";
|
|
684
|
+
}>>;
|
|
685
|
+
visibility: z.ZodOptional<z.ZodEnum<{
|
|
686
|
+
public: "public";
|
|
687
|
+
members: "members";
|
|
688
|
+
private: "private";
|
|
689
|
+
}>>;
|
|
690
|
+
authorId: z.ZodOptional<z.ZodString>;
|
|
691
|
+
followedBy: z.ZodOptional<z.ZodString>;
|
|
692
|
+
featured: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
693
|
+
difficulty: z.ZodOptional<z.ZodEnum<{
|
|
694
|
+
beginner: "beginner";
|
|
695
|
+
intermediate: "intermediate";
|
|
696
|
+
advanced: "advanced";
|
|
697
|
+
}>>;
|
|
698
|
+
search: z.ZodOptional<z.ZodString>;
|
|
699
|
+
tag: z.ZodOptional<z.ZodString>;
|
|
700
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
701
|
+
featured: "featured";
|
|
702
|
+
recent: "recent";
|
|
703
|
+
popular: "popular";
|
|
704
|
+
}>>;
|
|
705
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
706
|
+
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
707
|
+
}, z.core.$strip>;
|
|
708
|
+
export type ContentFilters = z.infer<typeof contentFiltersSchema>;
|
|
709
|
+
export declare const hubFiltersSchema: z.ZodObject<{
|
|
710
|
+
search: z.ZodOptional<z.ZodString>;
|
|
711
|
+
joinPolicy: z.ZodOptional<z.ZodEnum<{
|
|
712
|
+
open: "open";
|
|
713
|
+
approval: "approval";
|
|
714
|
+
invite: "invite";
|
|
715
|
+
}>>;
|
|
716
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
717
|
+
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
718
|
+
}, z.core.$strip>;
|
|
719
|
+
export type HubFilters = z.infer<typeof hubFiltersSchema>;
|
|
720
|
+
export declare const learningPathFiltersSchema: z.ZodObject<{
|
|
721
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
722
|
+
draft: "draft";
|
|
723
|
+
published: "published";
|
|
724
|
+
archived: "archived";
|
|
725
|
+
}>>;
|
|
726
|
+
difficulty: z.ZodOptional<z.ZodEnum<{
|
|
727
|
+
beginner: "beginner";
|
|
728
|
+
intermediate: "intermediate";
|
|
729
|
+
advanced: "advanced";
|
|
730
|
+
}>>;
|
|
731
|
+
authorId: z.ZodOptional<z.ZodString>;
|
|
732
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
733
|
+
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
734
|
+
}, z.core.$strip>;
|
|
735
|
+
export type LearningPathFilters = z.infer<typeof learningPathFiltersSchema>;
|
|
736
|
+
export declare const videoFiltersSchema: z.ZodObject<{
|
|
737
|
+
categoryId: z.ZodOptional<z.ZodString>;
|
|
738
|
+
authorId: z.ZodOptional<z.ZodString>;
|
|
739
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
740
|
+
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
741
|
+
}, z.core.$strip>;
|
|
742
|
+
export type VideoFilters = z.infer<typeof videoFiltersSchema>;
|
|
743
|
+
export declare const contestFiltersSchema: z.ZodObject<{
|
|
744
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
745
|
+
active: "active";
|
|
746
|
+
upcoming: "upcoming";
|
|
747
|
+
judging: "judging";
|
|
748
|
+
completed: "completed";
|
|
749
|
+
}>>;
|
|
750
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
751
|
+
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
752
|
+
}, z.core.$strip>;
|
|
753
|
+
export type ContestFilters = z.infer<typeof contestFiltersSchema>;
|
|
754
|
+
export declare const hubPostFiltersSchema: z.ZodObject<{
|
|
755
|
+
hubId: z.ZodOptional<z.ZodString>;
|
|
756
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
757
|
+
text: "text";
|
|
758
|
+
link: "link";
|
|
759
|
+
share: "share";
|
|
760
|
+
poll: "poll";
|
|
761
|
+
}>>;
|
|
762
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
763
|
+
offset: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
764
|
+
}, z.core.$strip>;
|
|
765
|
+
export type HubPostFilters = z.infer<typeof hubPostFiltersSchema>;
|
|
766
|
+
//# sourceMappingURL=validators.d.ts.map
|