@little-samo/samo-ai-sdk 0.7.9 → 0.7.11
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/dto/entities/agents/agent.requests.d.ts +26 -26
- package/dist/dto/entities/users/user.d.ts +12 -4
- package/dist/dto/entities/users/user.js +2 -0
- package/dist/dto/entities/users/user.js.map +1 -1
- package/dist/dto/entities/users/user.requests.d.ts +101 -29
- package/dist/dto/entities/users/user.requests.js +19 -2
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/locations/location.preset.d.ts +2 -2
- package/dist/dto/locations/location.requests.d.ts +144 -134
- package/package.json +1 -1
|
@@ -7,11 +7,11 @@ export declare const AgentsPaginationQuerySchema: z.ZodObject<{
|
|
|
7
7
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
8
8
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
page: number;
|
|
11
10
|
limit: number;
|
|
11
|
+
page: number;
|
|
12
12
|
}, {
|
|
13
|
-
page?: number | undefined;
|
|
14
13
|
limit?: number | undefined;
|
|
14
|
+
page?: number | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
export type AgentsPaginationQueryDto = z.infer<typeof AgentsPaginationQuerySchema>;
|
|
17
17
|
export interface AgentsPaginatedResponseDto {
|
|
@@ -152,14 +152,15 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
152
152
|
}>>;
|
|
153
153
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
154
154
|
}, "strict", z.ZodTypeAny, {
|
|
155
|
-
avatar?: string | undefined;
|
|
156
155
|
name?: string | undefined;
|
|
157
156
|
role?: string | undefined;
|
|
157
|
+
avatar?: string | undefined;
|
|
158
158
|
referenceAvatar?: string | undefined;
|
|
159
159
|
appearance?: string | undefined;
|
|
160
160
|
core?: {
|
|
161
161
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
162
162
|
} | undefined;
|
|
163
|
+
rules?: string[] | undefined;
|
|
163
164
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
164
165
|
languages?: string[] | undefined;
|
|
165
166
|
timeZone?: string | undefined;
|
|
@@ -186,16 +187,16 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
186
187
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
187
188
|
} | undefined;
|
|
188
189
|
} | undefined;
|
|
189
|
-
rules?: string[] | undefined;
|
|
190
190
|
}, {
|
|
191
|
-
avatar?: string | undefined;
|
|
192
191
|
name?: string | undefined;
|
|
193
192
|
role?: string | undefined;
|
|
193
|
+
avatar?: string | undefined;
|
|
194
194
|
referenceAvatar?: string | undefined;
|
|
195
195
|
appearance?: string | undefined;
|
|
196
196
|
core?: {
|
|
197
197
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
198
198
|
} | undefined;
|
|
199
|
+
rules?: string[] | undefined;
|
|
199
200
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
200
201
|
languages?: string[] | undefined;
|
|
201
202
|
timeZone?: string | undefined;
|
|
@@ -222,19 +223,18 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
222
223
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
223
224
|
} | undefined;
|
|
224
225
|
} | undefined;
|
|
225
|
-
rules?: string[] | undefined;
|
|
226
226
|
}>;
|
|
227
227
|
}, "strip", z.ZodTypeAny, {
|
|
228
|
-
agentId: bigint;
|
|
229
228
|
config: {
|
|
230
|
-
avatar?: string | undefined;
|
|
231
229
|
name?: string | undefined;
|
|
232
230
|
role?: string | undefined;
|
|
231
|
+
avatar?: string | undefined;
|
|
233
232
|
referenceAvatar?: string | undefined;
|
|
234
233
|
appearance?: string | undefined;
|
|
235
234
|
core?: {
|
|
236
235
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
237
236
|
} | undefined;
|
|
237
|
+
rules?: string[] | undefined;
|
|
238
238
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
239
239
|
languages?: string[] | undefined;
|
|
240
240
|
timeZone?: string | undefined;
|
|
@@ -261,19 +261,19 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
261
261
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
262
262
|
} | undefined;
|
|
263
263
|
} | undefined;
|
|
264
|
-
rules?: string[] | undefined;
|
|
265
264
|
};
|
|
266
|
-
}, {
|
|
267
265
|
agentId: bigint;
|
|
266
|
+
}, {
|
|
268
267
|
config: {
|
|
269
|
-
avatar?: string | undefined;
|
|
270
268
|
name?: string | undefined;
|
|
271
269
|
role?: string | undefined;
|
|
270
|
+
avatar?: string | undefined;
|
|
272
271
|
referenceAvatar?: string | undefined;
|
|
273
272
|
appearance?: string | undefined;
|
|
274
273
|
core?: {
|
|
275
274
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
276
275
|
} | undefined;
|
|
276
|
+
rules?: string[] | undefined;
|
|
277
277
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
278
278
|
languages?: string[] | undefined;
|
|
279
279
|
timeZone?: string | undefined;
|
|
@@ -300,8 +300,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
300
300
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
301
301
|
} | undefined;
|
|
302
302
|
} | undefined;
|
|
303
|
-
rules?: string[] | undefined;
|
|
304
303
|
};
|
|
304
|
+
agentId: bigint;
|
|
305
305
|
}>;
|
|
306
306
|
export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
|
|
307
307
|
export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
|
|
@@ -327,7 +327,6 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
327
327
|
token: string;
|
|
328
328
|
}>]>;
|
|
329
329
|
}, "strip", z.ZodTypeAny, {
|
|
330
|
-
agentId: bigint;
|
|
331
330
|
credential: {
|
|
332
331
|
type: "notion";
|
|
333
332
|
token: string;
|
|
@@ -335,8 +334,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
335
334
|
type: "notion";
|
|
336
335
|
token: string;
|
|
337
336
|
};
|
|
338
|
-
}, {
|
|
339
337
|
agentId: bigint;
|
|
338
|
+
}, {
|
|
340
339
|
credential: {
|
|
341
340
|
type: "notion";
|
|
342
341
|
token: string;
|
|
@@ -344,6 +343,7 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
344
343
|
type: "notion";
|
|
345
344
|
token: string;
|
|
346
345
|
};
|
|
346
|
+
agentId: bigint;
|
|
347
347
|
}>;
|
|
348
348
|
export type AgentUpdateCredentialDto = z.infer<typeof AgentUpdateCredentialSchema>;
|
|
349
349
|
export interface AgentUpdateCredentialResponseDto {
|
|
@@ -354,11 +354,11 @@ export declare const AgentDeleteCredentialSchema: z.ZodObject<{
|
|
|
354
354
|
agentId: z.ZodBigInt;
|
|
355
355
|
credentialType: z.ZodString;
|
|
356
356
|
}, "strip", z.ZodTypeAny, {
|
|
357
|
-
agentId: bigint;
|
|
358
357
|
credentialType: string;
|
|
359
|
-
}, {
|
|
360
358
|
agentId: bigint;
|
|
359
|
+
}, {
|
|
361
360
|
credentialType: string;
|
|
361
|
+
agentId: bigint;
|
|
362
362
|
}>;
|
|
363
363
|
export type AgentDeleteCredentialDto = z.infer<typeof AgentDeleteCredentialSchema>;
|
|
364
364
|
export interface AgentDeleteCredentialResponseDto {
|
|
@@ -369,11 +369,11 @@ export declare const AgentPresetsPaginationQuerySchema: z.ZodObject<{
|
|
|
369
369
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
370
370
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
371
371
|
}, "strip", z.ZodTypeAny, {
|
|
372
|
-
page: number;
|
|
373
372
|
limit: number;
|
|
373
|
+
page: number;
|
|
374
374
|
}, {
|
|
375
|
-
page?: number | undefined;
|
|
376
375
|
limit?: number | undefined;
|
|
376
|
+
page?: number | undefined;
|
|
377
377
|
}>;
|
|
378
378
|
export type AgentPresetsPaginationQueryDto = z.infer<typeof AgentPresetsPaginationQuerySchema>;
|
|
379
379
|
export interface AgentPresetsPaginatedResponseDto {
|
|
@@ -499,14 +499,15 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
499
499
|
}>>;
|
|
500
500
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
501
501
|
}, "strict", z.ZodTypeAny, {
|
|
502
|
-
avatar?: string | undefined;
|
|
503
502
|
name?: string | undefined;
|
|
504
503
|
role?: string | undefined;
|
|
504
|
+
avatar?: string | undefined;
|
|
505
505
|
referenceAvatar?: string | undefined;
|
|
506
506
|
appearance?: string | undefined;
|
|
507
507
|
core?: {
|
|
508
508
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
509
509
|
} | undefined;
|
|
510
|
+
rules?: string[] | undefined;
|
|
510
511
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
511
512
|
languages?: string[] | undefined;
|
|
512
513
|
timeZone?: string | undefined;
|
|
@@ -533,16 +534,16 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
533
534
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
534
535
|
} | undefined;
|
|
535
536
|
} | undefined;
|
|
536
|
-
rules?: string[] | undefined;
|
|
537
537
|
}, {
|
|
538
|
-
avatar?: string | undefined;
|
|
539
538
|
name?: string | undefined;
|
|
540
539
|
role?: string | undefined;
|
|
540
|
+
avatar?: string | undefined;
|
|
541
541
|
referenceAvatar?: string | undefined;
|
|
542
542
|
appearance?: string | undefined;
|
|
543
543
|
core?: {
|
|
544
544
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
545
545
|
} | undefined;
|
|
546
|
+
rules?: string[] | undefined;
|
|
546
547
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
547
548
|
languages?: string[] | undefined;
|
|
548
549
|
timeZone?: string | undefined;
|
|
@@ -569,18 +570,18 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
569
570
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
570
571
|
} | undefined;
|
|
571
572
|
} | undefined;
|
|
572
|
-
rules?: string[] | undefined;
|
|
573
573
|
}>;
|
|
574
574
|
}, "strip", z.ZodTypeAny, {
|
|
575
575
|
config: {
|
|
576
|
-
avatar?: string | undefined;
|
|
577
576
|
name?: string | undefined;
|
|
578
577
|
role?: string | undefined;
|
|
578
|
+
avatar?: string | undefined;
|
|
579
579
|
referenceAvatar?: string | undefined;
|
|
580
580
|
appearance?: string | undefined;
|
|
581
581
|
core?: {
|
|
582
582
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
583
583
|
} | undefined;
|
|
584
|
+
rules?: string[] | undefined;
|
|
584
585
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
585
586
|
languages?: string[] | undefined;
|
|
586
587
|
timeZone?: string | undefined;
|
|
@@ -607,18 +608,18 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
607
608
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
608
609
|
} | undefined;
|
|
609
610
|
} | undefined;
|
|
610
|
-
rules?: string[] | undefined;
|
|
611
611
|
};
|
|
612
612
|
}, {
|
|
613
613
|
config: {
|
|
614
|
-
avatar?: string | undefined;
|
|
615
614
|
name?: string | undefined;
|
|
616
615
|
role?: string | undefined;
|
|
616
|
+
avatar?: string | undefined;
|
|
617
617
|
referenceAvatar?: string | undefined;
|
|
618
618
|
appearance?: string | undefined;
|
|
619
619
|
core?: {
|
|
620
620
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
621
621
|
} | undefined;
|
|
622
|
+
rules?: string[] | undefined;
|
|
622
623
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
623
624
|
languages?: string[] | undefined;
|
|
624
625
|
timeZone?: string | undefined;
|
|
@@ -645,7 +646,6 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
645
646
|
zodiac?: "Aries" | "Taurus" | "Gemini" | "Cancer" | "Leo" | "Virgo" | "Libra" | "Scorpio" | "Sagittarius" | "Capricorn" | "Aquarius" | "Pisces" | undefined;
|
|
646
647
|
} | undefined;
|
|
647
648
|
} | undefined;
|
|
648
|
-
rules?: string[] | undefined;
|
|
649
649
|
};
|
|
650
650
|
}>;
|
|
651
651
|
export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
|
|
@@ -14,6 +14,8 @@ export interface UserPublicDto {
|
|
|
14
14
|
bio: string | null;
|
|
15
15
|
appearance: string | null;
|
|
16
16
|
level: number;
|
|
17
|
+
ownedPublicAvatarCount: number | null;
|
|
18
|
+
ownedAvatarUsageCount: number | null;
|
|
17
19
|
ownedPresetLocationCount: number | null;
|
|
18
20
|
ownedPresetMessageCount: number | null;
|
|
19
21
|
followingCount: number | null;
|
|
@@ -49,28 +51,34 @@ export declare const UserAvatarSchema: z.ZodObject<{
|
|
|
49
51
|
examplePoses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
50
52
|
appearance: z.ZodString;
|
|
51
53
|
style: z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "webtoon2", "illustration", "anime", "korean"]>>;
|
|
54
|
+
likeCount: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
isLiked: z.ZodOptional<z.ZodBoolean>;
|
|
52
56
|
isPublic: z.ZodOptional<z.ZodBoolean>;
|
|
53
57
|
createdAt: z.ZodOptional<z.ZodDate>;
|
|
54
58
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
avatar: string;
|
|
56
59
|
name: string;
|
|
60
|
+
avatar: string;
|
|
57
61
|
appearance: string;
|
|
58
|
-
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | "korean" | undefined;
|
|
59
62
|
id?: bigint | undefined;
|
|
60
63
|
role?: string | undefined;
|
|
61
64
|
referenceAvatar?: string | undefined;
|
|
62
65
|
examplePoses?: string[] | undefined;
|
|
66
|
+
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | "korean" | undefined;
|
|
67
|
+
likeCount?: number | undefined;
|
|
68
|
+
isLiked?: boolean | undefined;
|
|
63
69
|
isPublic?: boolean | undefined;
|
|
64
70
|
createdAt?: Date | undefined;
|
|
65
71
|
}, {
|
|
66
|
-
avatar: string;
|
|
67
72
|
name: string;
|
|
73
|
+
avatar: string;
|
|
68
74
|
appearance: string;
|
|
69
|
-
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | "korean" | undefined;
|
|
70
75
|
id?: bigint | undefined;
|
|
71
76
|
role?: string | undefined;
|
|
72
77
|
referenceAvatar?: string | undefined;
|
|
73
78
|
examplePoses?: string[] | undefined;
|
|
79
|
+
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | "korean" | undefined;
|
|
80
|
+
likeCount?: number | undefined;
|
|
81
|
+
isLiked?: boolean | undefined;
|
|
74
82
|
isPublic?: boolean | undefined;
|
|
75
83
|
createdAt?: Date | undefined;
|
|
76
84
|
}>;
|
|
@@ -15,6 +15,8 @@ exports.UserAvatarSchema = zod_1.default.object({
|
|
|
15
15
|
examplePoses: zod_1.default.array(zod_1.default.string().max(2048)).optional(),
|
|
16
16
|
appearance: zod_1.default.string().max(500),
|
|
17
17
|
style: images_1.ImageStyleSchema.optional(),
|
|
18
|
+
likeCount: zod_1.default.number().int().optional(),
|
|
19
|
+
isLiked: zod_1.default.boolean().optional(),
|
|
18
20
|
isPublic: zod_1.default.boolean().optional(),
|
|
19
21
|
createdAt: zod_1.default.coerce.date().optional(),
|
|
20
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.ts"],"names":[],"mappings":";;;;;;AACA,8CAAoB;AAEpB,yCAAgD;
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.ts"],"names":[],"mappings":";;;;;;AACA,8CAAoB;AAEpB,yCAAgD;AAqDnC,QAAA,gBAAgB,GAAG,aAAC,CAAC,MAAM,CAAC;IACvC,EAAE,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACxB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACpC,MAAM,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;IAC5B,eAAe,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IAChD,YAAY,EAAE,aAAC,CAAC,KAAK,CAAC,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE;IACtD,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;IAC/B,KAAK,EAAE,yBAAgB,CAAC,QAAQ,EAAE;IAClC,SAAS,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACtC,OAAO,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAC/B,QAAQ,EAAE,aAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;IAChC,SAAS,EAAE,aAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAKU,QAAA,oBAAoB,GAAG,aAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC"}
|
|
@@ -21,8 +21,8 @@ export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
|
21
21
|
bio: z.ZodOptional<z.ZodString>;
|
|
22
22
|
isAllowSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
avatar?: string | undefined;
|
|
25
24
|
role?: string | undefined;
|
|
25
|
+
avatar?: string | undefined;
|
|
26
26
|
referenceAvatar?: string | undefined;
|
|
27
27
|
appearance?: string | undefined;
|
|
28
28
|
username?: string | undefined;
|
|
@@ -33,8 +33,8 @@ export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
|
33
33
|
bio?: string | undefined;
|
|
34
34
|
isAllowSensitive?: boolean | undefined;
|
|
35
35
|
}, {
|
|
36
|
-
avatar?: string | undefined;
|
|
37
36
|
role?: string | undefined;
|
|
37
|
+
avatar?: string | undefined;
|
|
38
38
|
referenceAvatar?: string | undefined;
|
|
39
39
|
appearance?: string | undefined;
|
|
40
40
|
username?: string | undefined;
|
|
@@ -64,11 +64,11 @@ export declare const GetUserAvatarsQuerySchema: z.ZodObject<{
|
|
|
64
64
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
65
65
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
page: number;
|
|
68
67
|
limit: number;
|
|
68
|
+
page: number;
|
|
69
69
|
}, {
|
|
70
|
-
page?: number | undefined;
|
|
71
70
|
limit?: number | undefined;
|
|
71
|
+
page?: number | undefined;
|
|
72
72
|
}>;
|
|
73
73
|
export type GetUserAvatarsQueryDto = z.infer<typeof GetUserAvatarsQuerySchema>;
|
|
74
74
|
export interface GetUserAvatarsResponseDto {
|
|
@@ -84,28 +84,28 @@ export declare const CreateUserAvatarBodySchema: z.ZodObject<{
|
|
|
84
84
|
name: z.ZodString;
|
|
85
85
|
role: z.ZodOptional<z.ZodString>;
|
|
86
86
|
avatar: z.ZodString;
|
|
87
|
-
referenceAvatar: z.ZodString
|
|
87
|
+
referenceAvatar: z.ZodOptional<z.ZodString>;
|
|
88
88
|
examplePoses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
89
89
|
appearance: z.ZodString;
|
|
90
90
|
style: z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "webtoon2", "illustration", "anime", "korean"]>>;
|
|
91
91
|
isPublic: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
92
92
|
}, "strip", z.ZodTypeAny, {
|
|
93
|
-
avatar: string;
|
|
94
93
|
name: string;
|
|
95
|
-
|
|
94
|
+
avatar: string;
|
|
96
95
|
appearance: string;
|
|
97
96
|
isPublic: boolean;
|
|
98
|
-
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | "korean" | undefined;
|
|
99
97
|
role?: string | undefined;
|
|
98
|
+
referenceAvatar?: string | undefined;
|
|
100
99
|
examplePoses?: string[] | undefined;
|
|
100
|
+
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | "korean" | undefined;
|
|
101
101
|
}, {
|
|
102
|
-
avatar: string;
|
|
103
102
|
name: string;
|
|
104
|
-
|
|
103
|
+
avatar: string;
|
|
105
104
|
appearance: string;
|
|
106
|
-
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | "korean" | undefined;
|
|
107
105
|
role?: string | undefined;
|
|
106
|
+
referenceAvatar?: string | undefined;
|
|
108
107
|
examplePoses?: string[] | undefined;
|
|
108
|
+
style?: "realistic" | "webtoon" | "webtoon2" | "illustration" | "anime" | "korean" | undefined;
|
|
109
109
|
isPublic?: boolean | undefined;
|
|
110
110
|
}>;
|
|
111
111
|
export type CreateUserAvatarBodyDto = z.infer<typeof CreateUserAvatarBodySchema>;
|
|
@@ -146,6 +146,26 @@ export declare const DeleteUserAvatarBodySchema: z.ZodObject<{}, "strip", z.ZodT
|
|
|
146
146
|
export type DeleteUserAvatarBodyDto = z.infer<typeof DeleteUserAvatarBodySchema>;
|
|
147
147
|
export interface DeleteUserAvatarResponseDto {
|
|
148
148
|
}
|
|
149
|
+
export declare const GetLikedUserAvatarsQuerySchema: z.ZodObject<{
|
|
150
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
151
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
limit: number;
|
|
154
|
+
page: number;
|
|
155
|
+
}, {
|
|
156
|
+
limit?: number | undefined;
|
|
157
|
+
page?: number | undefined;
|
|
158
|
+
}>;
|
|
159
|
+
export type GetLikedUserAvatarsQueryDto = z.infer<typeof GetLikedUserAvatarsQuerySchema>;
|
|
160
|
+
export interface GetLikedUserAvatarsResponseDto {
|
|
161
|
+
avatars: UserAvatarDto[];
|
|
162
|
+
meta: {
|
|
163
|
+
total: number;
|
|
164
|
+
page: number;
|
|
165
|
+
limit: number;
|
|
166
|
+
totalPages: number;
|
|
167
|
+
};
|
|
168
|
+
}
|
|
149
169
|
export declare const GetAttendanceQuerySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
150
170
|
export type GetAttendanceQueryDto = z.infer<typeof GetAttendanceQuerySchema>;
|
|
151
171
|
export interface GetAttendanceResponseDto {
|
|
@@ -199,11 +219,11 @@ export declare const GetPublicAvatarsQuerySchema: z.ZodObject<{
|
|
|
199
219
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
200
220
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
201
221
|
}, "strip", z.ZodTypeAny, {
|
|
202
|
-
page: number;
|
|
203
222
|
limit: number;
|
|
223
|
+
page: number;
|
|
204
224
|
}, {
|
|
205
|
-
page?: number | undefined;
|
|
206
225
|
limit?: number | undefined;
|
|
226
|
+
page?: number | undefined;
|
|
207
227
|
}>;
|
|
208
228
|
export type GetPublicAvatarsQueryDto = z.infer<typeof GetPublicAvatarsQuerySchema>;
|
|
209
229
|
export interface GetPublicAvatarsResponseDto {
|
|
@@ -226,6 +246,58 @@ export type GetUserAvatarParamsDto = z.infer<typeof GetUserAvatarParamsSchema>;
|
|
|
226
246
|
export interface GetUserAvatarResponseDto {
|
|
227
247
|
avatar: UserAvatarDto;
|
|
228
248
|
}
|
|
249
|
+
export declare const GetUserPublicAvatarsParamsSchema: z.ZodObject<{
|
|
250
|
+
userId: z.ZodBigInt;
|
|
251
|
+
}, "strip", z.ZodTypeAny, {
|
|
252
|
+
userId: bigint;
|
|
253
|
+
}, {
|
|
254
|
+
userId: bigint;
|
|
255
|
+
}>;
|
|
256
|
+
export type GetUserPublicAvatarsParamsDto = z.infer<typeof GetUserPublicAvatarsParamsSchema>;
|
|
257
|
+
export declare const GetUserPublicAvatarsQuerySchema: z.ZodObject<{
|
|
258
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
259
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
limit: number;
|
|
262
|
+
page: number;
|
|
263
|
+
}, {
|
|
264
|
+
limit?: number | undefined;
|
|
265
|
+
page?: number | undefined;
|
|
266
|
+
}>;
|
|
267
|
+
export type GetUserPublicAvatarsQueryDto = z.infer<typeof GetUserPublicAvatarsQuerySchema>;
|
|
268
|
+
export interface GetUserPublicAvatarsResponseDto {
|
|
269
|
+
avatars: UserAvatarDto[];
|
|
270
|
+
meta: {
|
|
271
|
+
total: number;
|
|
272
|
+
page: number;
|
|
273
|
+
limit: number;
|
|
274
|
+
totalPages: number;
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
export declare const LikeUserAvatarParamsSchema: z.ZodObject<{
|
|
278
|
+
avatarId: z.ZodBigInt;
|
|
279
|
+
}, "strip", z.ZodTypeAny, {
|
|
280
|
+
avatarId: bigint;
|
|
281
|
+
}, {
|
|
282
|
+
avatarId: bigint;
|
|
283
|
+
}>;
|
|
284
|
+
export type LikeUserAvatarParamsDto = z.infer<typeof LikeUserAvatarParamsSchema>;
|
|
285
|
+
export interface LikeUserAvatarResponseDto {
|
|
286
|
+
likeCount: number;
|
|
287
|
+
isLiked: boolean;
|
|
288
|
+
}
|
|
289
|
+
export declare const UnlikeUserAvatarParamsSchema: z.ZodObject<{
|
|
290
|
+
avatarId: z.ZodBigInt;
|
|
291
|
+
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
avatarId: bigint;
|
|
293
|
+
}, {
|
|
294
|
+
avatarId: bigint;
|
|
295
|
+
}>;
|
|
296
|
+
export type UnlikeUserAvatarParamsDto = z.infer<typeof UnlikeUserAvatarParamsSchema>;
|
|
297
|
+
export interface UnlikeUserAvatarResponseDto {
|
|
298
|
+
likeCount: number;
|
|
299
|
+
isLiked: boolean;
|
|
300
|
+
}
|
|
229
301
|
export declare const FollowUserParamsSchema: z.ZodObject<{
|
|
230
302
|
userId: z.ZodBigInt;
|
|
231
303
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -258,11 +330,11 @@ export declare const GetUserFollowersQuerySchema: z.ZodObject<{
|
|
|
258
330
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
259
331
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
260
332
|
}, "strip", z.ZodTypeAny, {
|
|
261
|
-
page: number;
|
|
262
333
|
limit: number;
|
|
334
|
+
page: number;
|
|
263
335
|
}, {
|
|
264
|
-
page?: number | undefined;
|
|
265
336
|
limit?: number | undefined;
|
|
337
|
+
page?: number | undefined;
|
|
266
338
|
}>;
|
|
267
339
|
export type GetUserFollowersQueryDto = z.infer<typeof GetUserFollowersQuerySchema>;
|
|
268
340
|
export interface GetUserFollowersResponseDto {
|
|
@@ -286,11 +358,11 @@ export declare const GetUserFollowingQuerySchema: z.ZodObject<{
|
|
|
286
358
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
287
359
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
288
360
|
}, "strip", z.ZodTypeAny, {
|
|
289
|
-
page: number;
|
|
290
361
|
limit: number;
|
|
362
|
+
page: number;
|
|
291
363
|
}, {
|
|
292
|
-
page?: number | undefined;
|
|
293
364
|
limit?: number | undefined;
|
|
365
|
+
page?: number | undefined;
|
|
294
366
|
}>;
|
|
295
367
|
export type GetUserFollowingQueryDto = z.infer<typeof GetUserFollowingQuerySchema>;
|
|
296
368
|
export interface GetUserFollowingResponseDto {
|
|
@@ -315,12 +387,12 @@ export declare const GetUserCommentsQuerySchema: z.ZodObject<{
|
|
|
315
387
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
316
388
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
317
389
|
}, "strip", z.ZodTypeAny, {
|
|
318
|
-
page: number;
|
|
319
390
|
limit: number;
|
|
391
|
+
page: number;
|
|
320
392
|
sortBy: "latest" | "recommended";
|
|
321
393
|
}, {
|
|
322
|
-
page?: number | undefined;
|
|
323
394
|
limit?: number | undefined;
|
|
395
|
+
page?: number | undefined;
|
|
324
396
|
sortBy?: "latest" | "recommended" | undefined;
|
|
325
397
|
}>;
|
|
326
398
|
export type GetUserCommentsQueryDto = z.infer<typeof GetUserCommentsQuerySchema>;
|
|
@@ -345,11 +417,11 @@ export declare const GetUserCommentRepliesQuerySchema: z.ZodObject<{
|
|
|
345
417
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
346
418
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
347
419
|
}, "strip", z.ZodTypeAny, {
|
|
348
|
-
page: number;
|
|
349
420
|
limit: number;
|
|
421
|
+
page: number;
|
|
350
422
|
}, {
|
|
351
|
-
page?: number | undefined;
|
|
352
423
|
limit?: number | undefined;
|
|
424
|
+
page?: number | undefined;
|
|
353
425
|
}>;
|
|
354
426
|
export type GetUserCommentRepliesQueryDto = z.infer<typeof GetUserCommentRepliesQuerySchema>;
|
|
355
427
|
export interface GetUserCommentRepliesResponseDto {
|
|
@@ -413,11 +485,11 @@ export declare const ReportUserCommentParamsSchema: z.ZodObject<{
|
|
|
413
485
|
userId: z.ZodBigInt;
|
|
414
486
|
commentId: z.ZodBigInt;
|
|
415
487
|
}, "strip", z.ZodTypeAny, {
|
|
416
|
-
userId: bigint;
|
|
417
488
|
commentId: bigint;
|
|
418
|
-
}, {
|
|
419
489
|
userId: bigint;
|
|
490
|
+
}, {
|
|
420
491
|
commentId: bigint;
|
|
492
|
+
userId: bigint;
|
|
421
493
|
}>;
|
|
422
494
|
export type ReportUserCommentParamsDto = z.infer<typeof ReportUserCommentParamsSchema>;
|
|
423
495
|
export interface ReportUserCommentResponseDto {
|
|
@@ -428,11 +500,11 @@ export declare const DeleteUserCommentParamsSchema: z.ZodObject<{
|
|
|
428
500
|
userId: z.ZodBigInt;
|
|
429
501
|
commentId: z.ZodBigInt;
|
|
430
502
|
}, "strip", z.ZodTypeAny, {
|
|
431
|
-
userId: bigint;
|
|
432
503
|
commentId: bigint;
|
|
433
|
-
}, {
|
|
434
504
|
userId: bigint;
|
|
505
|
+
}, {
|
|
435
506
|
commentId: bigint;
|
|
507
|
+
userId: bigint;
|
|
436
508
|
}>;
|
|
437
509
|
export type DeleteUserCommentParamsDto = z.infer<typeof DeleteUserCommentParamsSchema>;
|
|
438
510
|
export interface DeleteUserCommentResponseDto {
|
|
@@ -464,11 +536,11 @@ export declare const GetNoticesQuerySchema: z.ZodObject<{
|
|
|
464
536
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
465
537
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
466
538
|
}, "strip", z.ZodTypeAny, {
|
|
467
|
-
page: number;
|
|
468
539
|
limit: number;
|
|
540
|
+
page: number;
|
|
469
541
|
}, {
|
|
470
|
-
page?: number | undefined;
|
|
471
542
|
limit?: number | undefined;
|
|
543
|
+
page?: number | undefined;
|
|
472
544
|
}>;
|
|
473
545
|
export type GetNoticesQueryDto = z.infer<typeof GetNoticesQuerySchema>;
|
|
474
546
|
export interface GetNoticesResponseDto {
|
|
@@ -503,11 +575,11 @@ export declare const GetUserNotificationsQuerySchema: z.ZodObject<{
|
|
|
503
575
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
504
576
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
505
577
|
}, "strip", z.ZodTypeAny, {
|
|
506
|
-
page: number;
|
|
507
578
|
limit: number;
|
|
579
|
+
page: number;
|
|
508
580
|
}, {
|
|
509
|
-
page?: number | undefined;
|
|
510
581
|
limit?: number | undefined;
|
|
582
|
+
page?: number | undefined;
|
|
511
583
|
}>;
|
|
512
584
|
export type GetUserNotificationsQueryDto = z.infer<typeof GetUserNotificationsQuerySchema>;
|
|
513
585
|
export interface GetUserNotificationsResponseDto {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCurrentUserSchema = exports.RegenerateUserApiKeyBodySchema = exports.GetUserApiKeyQuerySchema = exports.GetUserSettingsQuerySchema = exports.ReadUserNotificationParamsSchema = exports.ReadAllUserNotificationsBodySchema = exports.AcknowledgeUserNotificationsBodySchema = exports.GetUserNotificationsQuerySchema = exports.ReadNoticeParamsSchema = exports.ReadAllNoticesBodySchema = exports.AcknowledgeNoticesBodySchema = exports.GetNoticesQuerySchema = exports.SetUserReferrerBodySchema = exports.GetUserReferralQuerySchema = exports.DeleteUserCommentParamsSchema = exports.ReportUserCommentParamsSchema = exports.UpdateUserCommentReactionBodySchema = exports.UpdateUserCommentReactionParamsSchema = exports.CreateUserCommentBodySchema = exports.CreateUserCommentParamsSchema = exports.GetUserCommentRepliesQuerySchema = exports.GetUserCommentRepliesParamsSchema = exports.GetUserCommentsQuerySchema = exports.GetUserCommentsParamsSchema = exports.GetUserFollowingQuerySchema = exports.GetUserFollowingParamsSchema = exports.GetUserFollowersQuerySchema = exports.GetUserFollowersParamsSchema = exports.UnfollowUserParamsSchema = exports.FollowUserParamsSchema = exports.GetUserAvatarParamsSchema = exports.GetPublicAvatarsQuerySchema = exports.GetUsersByIdsQuerySchema = exports.ValidateUserFieldBodySchema = exports.CheckAttendanceBodySchema = exports.GetAttendanceQuerySchema = exports.DeleteUserAvatarBodySchema = exports.DeleteUserAvatarParamsSchema = exports.UpdateUserAvatarBodySchema = exports.UpdateUserAvatarParamsSchema = exports.CreateUserAvatarBodySchema = exports.GetUserAvatarsQuerySchema = exports.DeleteCurrentUserBodySchema = exports.UpdateCurrentUserBodySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
3
|
+
exports.GetCurrentUserSchema = exports.RegenerateUserApiKeyBodySchema = exports.GetUserApiKeyQuerySchema = exports.GetUserSettingsQuerySchema = exports.ReadUserNotificationParamsSchema = exports.ReadAllUserNotificationsBodySchema = exports.AcknowledgeUserNotificationsBodySchema = exports.GetUserNotificationsQuerySchema = exports.ReadNoticeParamsSchema = exports.ReadAllNoticesBodySchema = exports.AcknowledgeNoticesBodySchema = exports.GetNoticesQuerySchema = exports.SetUserReferrerBodySchema = exports.GetUserReferralQuerySchema = exports.DeleteUserCommentParamsSchema = exports.ReportUserCommentParamsSchema = exports.UpdateUserCommentReactionBodySchema = exports.UpdateUserCommentReactionParamsSchema = exports.CreateUserCommentBodySchema = exports.CreateUserCommentParamsSchema = exports.GetUserCommentRepliesQuerySchema = exports.GetUserCommentRepliesParamsSchema = exports.GetUserCommentsQuerySchema = exports.GetUserCommentsParamsSchema = exports.GetUserFollowingQuerySchema = exports.GetUserFollowingParamsSchema = exports.GetUserFollowersQuerySchema = exports.GetUserFollowersParamsSchema = exports.UnfollowUserParamsSchema = exports.FollowUserParamsSchema = exports.UnlikeUserAvatarParamsSchema = exports.LikeUserAvatarParamsSchema = exports.GetUserPublicAvatarsQuerySchema = exports.GetUserPublicAvatarsParamsSchema = exports.GetUserAvatarParamsSchema = exports.GetPublicAvatarsQuerySchema = exports.GetUsersByIdsQuerySchema = exports.ValidateUserFieldBodySchema = exports.CheckAttendanceBodySchema = exports.GetAttendanceQuerySchema = exports.GetLikedUserAvatarsQuerySchema = exports.DeleteUserAvatarBodySchema = exports.DeleteUserAvatarParamsSchema = exports.UpdateUserAvatarBodySchema = exports.UpdateUserAvatarParamsSchema = exports.CreateUserAvatarBodySchema = exports.GetUserAvatarsQuerySchema = exports.DeleteCurrentUserBodySchema = exports.UpdateCurrentUserBodySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const images_1 = require("../../images");
|
|
6
6
|
const user_1 = require("./user");
|
|
@@ -34,7 +34,7 @@ exports.CreateUserAvatarBodySchema = zod_1.z.object({
|
|
|
34
34
|
name: zod_1.z.string().max(64),
|
|
35
35
|
role: zod_1.z.string().max(200).optional(),
|
|
36
36
|
avatar: zod_1.z.string().max(2048),
|
|
37
|
-
referenceAvatar: zod_1.z.string().max(2048),
|
|
37
|
+
referenceAvatar: zod_1.z.string().max(2048).optional(),
|
|
38
38
|
examplePoses: zod_1.z.array(zod_1.z.string().max(2048)).optional(),
|
|
39
39
|
appearance: zod_1.z.string().max(500),
|
|
40
40
|
style: images_1.ImageStyleSchema.optional(),
|
|
@@ -51,6 +51,10 @@ exports.DeleteUserAvatarParamsSchema = zod_1.z.object({
|
|
|
51
51
|
id: zod_1.z.coerce.bigint(),
|
|
52
52
|
});
|
|
53
53
|
exports.DeleteUserAvatarBodySchema = zod_1.z.object({});
|
|
54
|
+
exports.GetLikedUserAvatarsQuerySchema = zod_1.z.object({
|
|
55
|
+
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
56
|
+
limit: zod_1.z.coerce.number().int().min(1).max(20).optional().default(20),
|
|
57
|
+
});
|
|
54
58
|
exports.GetAttendanceQuerySchema = zod_1.z.object({});
|
|
55
59
|
exports.CheckAttendanceBodySchema = zod_1.z.object({});
|
|
56
60
|
exports.ValidateUserFieldBodySchema = zod_1.z.object({
|
|
@@ -78,6 +82,19 @@ exports.GetPublicAvatarsQuerySchema = zod_1.z.object({
|
|
|
78
82
|
exports.GetUserAvatarParamsSchema = zod_1.z.object({
|
|
79
83
|
id: zod_1.z.coerce.bigint(),
|
|
80
84
|
});
|
|
85
|
+
exports.GetUserPublicAvatarsParamsSchema = zod_1.z.object({
|
|
86
|
+
userId: zod_1.z.coerce.bigint(),
|
|
87
|
+
});
|
|
88
|
+
exports.GetUserPublicAvatarsQuerySchema = zod_1.z.object({
|
|
89
|
+
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
90
|
+
limit: zod_1.z.coerce.number().int().min(1).max(20).optional().default(20),
|
|
91
|
+
});
|
|
92
|
+
exports.LikeUserAvatarParamsSchema = zod_1.z.object({
|
|
93
|
+
avatarId: zod_1.z.coerce.bigint(),
|
|
94
|
+
});
|
|
95
|
+
exports.UnlikeUserAvatarParamsSchema = zod_1.z.object({
|
|
96
|
+
avatarId: zod_1.z.coerce.bigint(),
|
|
97
|
+
});
|
|
81
98
|
exports.FollowUserParamsSchema = zod_1.z.object({
|
|
82
99
|
userId: zod_1.z.coerce.bigint(),
|
|
83
100
|
});
|