@little-samo/samo-ai-sdk 0.4.8 → 0.5.1
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 +10 -18
- package/dist/dto/entities/users/user.d.ts +10 -6
- package/dist/dto/entities/users/user.js +3 -2
- package/dist/dto/entities/users/user.js.map +1 -1
- package/dist/dto/entities/users/user.requests.d.ts +53 -26
- package/dist/dto/entities/users/user.requests.js +2 -4
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/images/image.requests.d.ts +3 -0
- package/dist/dto/images/image.requests.js +4 -0
- package/dist/dto/images/image.requests.js.map +1 -1
- package/dist/dto/locations/location.preset.d.ts +2 -2
- package/dist/dto/locations/location.requests.d.ts +158 -158
- package/dist/dto/locations/location.requests.js +7 -3
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/models/entities/agents/agent.config.d.ts +3 -12
- package/dist/models/entities/agents/agent.config.js +5 -5
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +8 -8
- package/package.json +3 -3
|
@@ -41,6 +41,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
41
41
|
agentId: z.ZodBigInt;
|
|
42
42
|
config: z.ZodObject<{
|
|
43
43
|
name: z.ZodOptional<z.ZodString>;
|
|
44
|
+
role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
44
45
|
avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString, z.ZodString]>>;
|
|
45
46
|
referenceAvatar: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
46
47
|
appearance: z.ZodOptional<z.ZodString>;
|
|
@@ -58,19 +59,16 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
58
59
|
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">>;
|
|
59
60
|
character: z.ZodOptional<z.ZodObject<{
|
|
60
61
|
background: z.ZodOptional<z.ZodObject<{
|
|
61
|
-
role: z.ZodOptional<z.ZodString>;
|
|
62
62
|
gender: z.ZodOptional<z.ZodString>;
|
|
63
63
|
age: z.ZodOptional<z.ZodString>;
|
|
64
64
|
expertise: z.ZodOptional<z.ZodString>;
|
|
65
65
|
backstory: z.ZodOptional<z.ZodString>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
role?: string | undefined;
|
|
68
67
|
gender?: string | undefined;
|
|
69
68
|
age?: string | undefined;
|
|
70
69
|
expertise?: string | undefined;
|
|
71
70
|
backstory?: string | undefined;
|
|
72
71
|
}, {
|
|
73
|
-
role?: string | undefined;
|
|
74
72
|
gender?: string | undefined;
|
|
75
73
|
age?: string | undefined;
|
|
76
74
|
expertise?: string | undefined;
|
|
@@ -113,7 +111,6 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
113
111
|
}>>;
|
|
114
112
|
}, "strip", z.ZodTypeAny, {
|
|
115
113
|
background?: {
|
|
116
|
-
role?: string | undefined;
|
|
117
114
|
gender?: string | undefined;
|
|
118
115
|
age?: string | undefined;
|
|
119
116
|
expertise?: string | undefined;
|
|
@@ -134,7 +131,6 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
134
131
|
} | undefined;
|
|
135
132
|
}, {
|
|
136
133
|
background?: {
|
|
137
|
-
role?: string | undefined;
|
|
138
134
|
gender?: string | undefined;
|
|
139
135
|
age?: string | undefined;
|
|
140
136
|
expertise?: string | undefined;
|
|
@@ -157,6 +153,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
157
153
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
158
154
|
}, "strict", z.ZodTypeAny, {
|
|
159
155
|
name?: string | undefined;
|
|
156
|
+
role?: string | undefined;
|
|
160
157
|
avatar?: string | undefined;
|
|
161
158
|
referenceAvatar?: string | undefined;
|
|
162
159
|
appearance?: string | undefined;
|
|
@@ -170,7 +167,6 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
170
167
|
actions?: "todo"[] | undefined;
|
|
171
168
|
character?: {
|
|
172
169
|
background?: {
|
|
173
|
-
role?: string | undefined;
|
|
174
170
|
gender?: string | undefined;
|
|
175
171
|
age?: string | undefined;
|
|
176
172
|
expertise?: string | undefined;
|
|
@@ -193,6 +189,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
193
189
|
rules?: string[] | undefined;
|
|
194
190
|
}, {
|
|
195
191
|
name?: string | undefined;
|
|
192
|
+
role?: string | undefined;
|
|
196
193
|
avatar?: string | undefined;
|
|
197
194
|
referenceAvatar?: string | undefined;
|
|
198
195
|
appearance?: string | undefined;
|
|
@@ -206,7 +203,6 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
206
203
|
actions?: "todo"[] | undefined;
|
|
207
204
|
character?: {
|
|
208
205
|
background?: {
|
|
209
|
-
role?: string | undefined;
|
|
210
206
|
gender?: string | undefined;
|
|
211
207
|
age?: string | undefined;
|
|
212
208
|
expertise?: string | undefined;
|
|
@@ -231,6 +227,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
231
227
|
}, "strip", z.ZodTypeAny, {
|
|
232
228
|
config: {
|
|
233
229
|
name?: string | undefined;
|
|
230
|
+
role?: string | undefined;
|
|
234
231
|
avatar?: string | undefined;
|
|
235
232
|
referenceAvatar?: string | undefined;
|
|
236
233
|
appearance?: string | undefined;
|
|
@@ -244,7 +241,6 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
244
241
|
actions?: "todo"[] | undefined;
|
|
245
242
|
character?: {
|
|
246
243
|
background?: {
|
|
247
|
-
role?: string | undefined;
|
|
248
244
|
gender?: string | undefined;
|
|
249
245
|
age?: string | undefined;
|
|
250
246
|
expertise?: string | undefined;
|
|
@@ -270,6 +266,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
270
266
|
}, {
|
|
271
267
|
config: {
|
|
272
268
|
name?: string | undefined;
|
|
269
|
+
role?: string | undefined;
|
|
273
270
|
avatar?: string | undefined;
|
|
274
271
|
referenceAvatar?: string | undefined;
|
|
275
272
|
appearance?: string | undefined;
|
|
@@ -283,7 +280,6 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
283
280
|
actions?: "todo"[] | undefined;
|
|
284
281
|
character?: {
|
|
285
282
|
background?: {
|
|
286
|
-
role?: string | undefined;
|
|
287
283
|
gender?: string | undefined;
|
|
288
284
|
age?: string | undefined;
|
|
289
285
|
expertise?: string | undefined;
|
|
@@ -392,6 +388,7 @@ export interface AgentPresetsPaginatedResponseDto {
|
|
|
392
388
|
export declare const CreateAgentSchema: z.ZodObject<{
|
|
393
389
|
config: z.ZodObject<{
|
|
394
390
|
name: z.ZodOptional<z.ZodString>;
|
|
391
|
+
role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
395
392
|
avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString, z.ZodString]>>;
|
|
396
393
|
referenceAvatar: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
397
394
|
appearance: z.ZodOptional<z.ZodString>;
|
|
@@ -409,19 +406,16 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
409
406
|
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">>;
|
|
410
407
|
character: z.ZodOptional<z.ZodObject<{
|
|
411
408
|
background: z.ZodOptional<z.ZodObject<{
|
|
412
|
-
role: z.ZodOptional<z.ZodString>;
|
|
413
409
|
gender: z.ZodOptional<z.ZodString>;
|
|
414
410
|
age: z.ZodOptional<z.ZodString>;
|
|
415
411
|
expertise: z.ZodOptional<z.ZodString>;
|
|
416
412
|
backstory: z.ZodOptional<z.ZodString>;
|
|
417
413
|
}, "strip", z.ZodTypeAny, {
|
|
418
|
-
role?: string | undefined;
|
|
419
414
|
gender?: string | undefined;
|
|
420
415
|
age?: string | undefined;
|
|
421
416
|
expertise?: string | undefined;
|
|
422
417
|
backstory?: string | undefined;
|
|
423
418
|
}, {
|
|
424
|
-
role?: string | undefined;
|
|
425
419
|
gender?: string | undefined;
|
|
426
420
|
age?: string | undefined;
|
|
427
421
|
expertise?: string | undefined;
|
|
@@ -464,7 +458,6 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
464
458
|
}>>;
|
|
465
459
|
}, "strip", z.ZodTypeAny, {
|
|
466
460
|
background?: {
|
|
467
|
-
role?: string | undefined;
|
|
468
461
|
gender?: string | undefined;
|
|
469
462
|
age?: string | undefined;
|
|
470
463
|
expertise?: string | undefined;
|
|
@@ -485,7 +478,6 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
485
478
|
} | undefined;
|
|
486
479
|
}, {
|
|
487
480
|
background?: {
|
|
488
|
-
role?: string | undefined;
|
|
489
481
|
gender?: string | undefined;
|
|
490
482
|
age?: string | undefined;
|
|
491
483
|
expertise?: string | undefined;
|
|
@@ -508,6 +500,7 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
508
500
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
509
501
|
}, "strict", z.ZodTypeAny, {
|
|
510
502
|
name?: string | undefined;
|
|
503
|
+
role?: string | undefined;
|
|
511
504
|
avatar?: string | undefined;
|
|
512
505
|
referenceAvatar?: string | undefined;
|
|
513
506
|
appearance?: string | undefined;
|
|
@@ -521,7 +514,6 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
521
514
|
actions?: "todo"[] | undefined;
|
|
522
515
|
character?: {
|
|
523
516
|
background?: {
|
|
524
|
-
role?: string | undefined;
|
|
525
517
|
gender?: string | undefined;
|
|
526
518
|
age?: string | undefined;
|
|
527
519
|
expertise?: string | undefined;
|
|
@@ -544,6 +536,7 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
544
536
|
rules?: string[] | undefined;
|
|
545
537
|
}, {
|
|
546
538
|
name?: string | undefined;
|
|
539
|
+
role?: string | undefined;
|
|
547
540
|
avatar?: string | undefined;
|
|
548
541
|
referenceAvatar?: string | undefined;
|
|
549
542
|
appearance?: string | undefined;
|
|
@@ -557,7 +550,6 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
557
550
|
actions?: "todo"[] | undefined;
|
|
558
551
|
character?: {
|
|
559
552
|
background?: {
|
|
560
|
-
role?: string | undefined;
|
|
561
553
|
gender?: string | undefined;
|
|
562
554
|
age?: string | undefined;
|
|
563
555
|
expertise?: string | undefined;
|
|
@@ -582,6 +574,7 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
582
574
|
}, "strip", z.ZodTypeAny, {
|
|
583
575
|
config: {
|
|
584
576
|
name?: string | undefined;
|
|
577
|
+
role?: string | undefined;
|
|
585
578
|
avatar?: string | undefined;
|
|
586
579
|
referenceAvatar?: string | undefined;
|
|
587
580
|
appearance?: string | undefined;
|
|
@@ -595,7 +588,6 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
595
588
|
actions?: "todo"[] | undefined;
|
|
596
589
|
character?: {
|
|
597
590
|
background?: {
|
|
598
|
-
role?: string | undefined;
|
|
599
591
|
gender?: string | undefined;
|
|
600
592
|
age?: string | undefined;
|
|
601
593
|
expertise?: string | undefined;
|
|
@@ -620,6 +612,7 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
620
612
|
}, {
|
|
621
613
|
config: {
|
|
622
614
|
name?: string | undefined;
|
|
615
|
+
role?: string | undefined;
|
|
623
616
|
avatar?: string | undefined;
|
|
624
617
|
referenceAvatar?: string | undefined;
|
|
625
618
|
appearance?: string | undefined;
|
|
@@ -633,7 +626,6 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
633
626
|
actions?: "todo"[] | undefined;
|
|
634
627
|
character?: {
|
|
635
628
|
background?: {
|
|
636
|
-
role?: string | undefined;
|
|
637
629
|
gender?: string | undefined;
|
|
638
630
|
age?: string | undefined;
|
|
639
631
|
expertise?: string | undefined;
|
|
@@ -6,6 +6,7 @@ export interface UserPublicDto {
|
|
|
6
6
|
nickname: string;
|
|
7
7
|
firstName: string | null;
|
|
8
8
|
lastName: string | null;
|
|
9
|
+
role: string | null;
|
|
9
10
|
profilePicture: string | null;
|
|
10
11
|
avatarName: string | null;
|
|
11
12
|
avatar: string | null;
|
|
@@ -27,18 +28,21 @@ export interface UserPrivateDto extends UserPublicDto {
|
|
|
27
28
|
}
|
|
28
29
|
export declare const UserAvatarSchema: z.ZodObject<{
|
|
29
30
|
name: z.ZodString;
|
|
30
|
-
|
|
31
|
-
|
|
31
|
+
role: z.ZodOptional<z.ZodString>;
|
|
32
|
+
avatar: z.ZodString;
|
|
33
|
+
referenceAvatar: z.ZodString;
|
|
32
34
|
appearance: z.ZodString;
|
|
33
35
|
}, "strip", z.ZodTypeAny, {
|
|
34
36
|
name: string;
|
|
35
|
-
avatar: string
|
|
36
|
-
referenceAvatar: string
|
|
37
|
+
avatar: string;
|
|
38
|
+
referenceAvatar: string;
|
|
37
39
|
appearance: string;
|
|
40
|
+
role?: string | undefined;
|
|
38
41
|
}, {
|
|
39
42
|
name: string;
|
|
40
|
-
avatar: string
|
|
41
|
-
referenceAvatar: string
|
|
43
|
+
avatar: string;
|
|
44
|
+
referenceAvatar: string;
|
|
42
45
|
appearance: string;
|
|
46
|
+
role?: string | undefined;
|
|
43
47
|
}>;
|
|
44
48
|
export type UserAvatarDto = z.infer<typeof UserAvatarSchema>;
|
|
@@ -7,8 +7,9 @@ exports.UserAvatarSchema = void 0;
|
|
|
7
7
|
const zod_1 = __importDefault(require("zod"));
|
|
8
8
|
exports.UserAvatarSchema = zod_1.default.object({
|
|
9
9
|
name: zod_1.default.string().max(64),
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
role: zod_1.default.string().max(200).optional(),
|
|
11
|
+
avatar: zod_1.default.string().max(2048),
|
|
12
|
+
referenceAvatar: zod_1.default.string().max(2048),
|
|
12
13
|
appearance: zod_1.default.string().max(500),
|
|
13
14
|
});
|
|
14
15
|
//# sourceMappingURL=user.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.ts"],"names":[],"mappings":";;;;;;AACA,8CAAoB;
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.ts"],"names":[],"mappings":";;;;;;AACA,8CAAoB;AAkCP,QAAA,gBAAgB,GAAG,aAAC,CAAC,MAAM,CAAC;IACvC,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;IACrC,UAAU,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;CAChC,CAAC,CAAC"}
|
|
@@ -19,9 +19,9 @@ export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
|
19
19
|
avatar?: string | undefined;
|
|
20
20
|
referenceAvatar?: string | undefined;
|
|
21
21
|
appearance?: string | undefined;
|
|
22
|
+
birthDate?: Date | undefined;
|
|
22
23
|
username?: string | undefined;
|
|
23
24
|
nickname?: string | undefined;
|
|
24
|
-
birthDate?: Date | undefined;
|
|
25
25
|
profilePicture?: string | undefined;
|
|
26
26
|
avatarName?: string | undefined;
|
|
27
27
|
isAllowSensitive?: boolean | undefined;
|
|
@@ -29,9 +29,9 @@ export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
|
29
29
|
avatar?: string | undefined;
|
|
30
30
|
referenceAvatar?: string | undefined;
|
|
31
31
|
appearance?: string | undefined;
|
|
32
|
+
birthDate?: Date | undefined;
|
|
32
33
|
username?: string | undefined;
|
|
33
34
|
nickname?: string | undefined;
|
|
34
|
-
birthDate?: Date | undefined;
|
|
35
35
|
profilePicture?: string | undefined;
|
|
36
36
|
avatarName?: string | undefined;
|
|
37
37
|
isAllowSensitive?: boolean | undefined;
|
|
@@ -49,38 +49,65 @@ export interface GetUserAvatarsResponseDto {
|
|
|
49
49
|
export declare const UpdateUserAvatarBodySchema: z.ZodEffects<z.ZodObject<{
|
|
50
50
|
index: z.ZodOptional<z.ZodNumber>;
|
|
51
51
|
locationId: z.ZodOptional<z.ZodBigInt>;
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
52
|
+
avatar: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
role: z.ZodOptional<z.ZodString>;
|
|
55
|
+
avatar: z.ZodString;
|
|
56
|
+
referenceAvatar: z.ZodString;
|
|
57
|
+
appearance: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
name: string;
|
|
60
|
+
avatar: string;
|
|
61
|
+
referenceAvatar: string;
|
|
62
|
+
appearance: string;
|
|
63
|
+
role?: string | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
name: string;
|
|
66
|
+
avatar: string;
|
|
67
|
+
referenceAvatar: string;
|
|
68
|
+
appearance: string;
|
|
69
|
+
role?: string | undefined;
|
|
70
|
+
}>>>;
|
|
56
71
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
72
|
+
avatar?: {
|
|
73
|
+
name: string;
|
|
74
|
+
avatar: string;
|
|
75
|
+
referenceAvatar: string;
|
|
76
|
+
appearance: string;
|
|
77
|
+
role?: string | undefined;
|
|
78
|
+
} | null | undefined;
|
|
62
79
|
index?: number | undefined;
|
|
63
|
-
}, {
|
|
64
|
-
name: string | null;
|
|
65
|
-
avatar: string | null;
|
|
66
|
-
referenceAvatar: string | null;
|
|
67
|
-
appearance: string | null;
|
|
68
80
|
locationId?: bigint | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
avatar?: {
|
|
83
|
+
name: string;
|
|
84
|
+
avatar: string;
|
|
85
|
+
referenceAvatar: string;
|
|
86
|
+
appearance: string;
|
|
87
|
+
role?: string | undefined;
|
|
88
|
+
} | null | undefined;
|
|
69
89
|
index?: number | undefined;
|
|
70
|
-
}>, {
|
|
71
|
-
name: string | null;
|
|
72
|
-
avatar: string | null;
|
|
73
|
-
referenceAvatar: string | null;
|
|
74
|
-
appearance: string | null;
|
|
75
90
|
locationId?: bigint | undefined;
|
|
91
|
+
}>, {
|
|
92
|
+
avatar?: {
|
|
93
|
+
name: string;
|
|
94
|
+
avatar: string;
|
|
95
|
+
referenceAvatar: string;
|
|
96
|
+
appearance: string;
|
|
97
|
+
role?: string | undefined;
|
|
98
|
+
} | null | undefined;
|
|
76
99
|
index?: number | undefined;
|
|
77
|
-
}, {
|
|
78
|
-
name: string | null;
|
|
79
|
-
avatar: string | null;
|
|
80
|
-
referenceAvatar: string | null;
|
|
81
|
-
appearance: string | null;
|
|
82
100
|
locationId?: bigint | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
avatar?: {
|
|
103
|
+
name: string;
|
|
104
|
+
avatar: string;
|
|
105
|
+
referenceAvatar: string;
|
|
106
|
+
appearance: string;
|
|
107
|
+
role?: string | undefined;
|
|
108
|
+
} | null | undefined;
|
|
83
109
|
index?: number | undefined;
|
|
110
|
+
locationId?: bigint | undefined;
|
|
84
111
|
}>;
|
|
85
112
|
export type UpdateUserAvatarBodyDto = z.infer<typeof UpdateUserAvatarBodySchema>;
|
|
86
113
|
export interface UpdateUserAvatarResponseDto {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetCurrentUserSchema = exports.GetUsersByIdsQuerySchema = exports.ValidateUserFieldBodySchema = exports.UpdateUserAvatarBodySchema = exports.GetUserAvatarsQuerySchema = exports.UpdateCurrentUserBodySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const user_1 = require("./user");
|
|
5
6
|
exports.GetCurrentUserQuerySchema = zod_1.z.object({});
|
|
6
7
|
exports.UpdateCurrentUserBodySchema = zod_1.z.object({
|
|
7
8
|
username: zod_1.z
|
|
@@ -24,10 +25,7 @@ exports.UpdateUserAvatarBodySchema = zod_1.z
|
|
|
24
25
|
.object({
|
|
25
26
|
index: zod_1.z.coerce.number().int().min(0).optional(),
|
|
26
27
|
locationId: zod_1.z.coerce.bigint().optional(),
|
|
27
|
-
|
|
28
|
-
avatar: zod_1.z.string().max(2048).nullable(),
|
|
29
|
-
referenceAvatar: zod_1.z.string().max(2048).nullable(),
|
|
30
|
-
appearance: zod_1.z.string().max(500).nullable(),
|
|
28
|
+
avatar: user_1.UserAvatarSchema.nullable().optional(),
|
|
31
29
|
})
|
|
32
30
|
.refine((data) => data.index !== undefined || data.locationId !== undefined, {
|
|
33
31
|
message: 'Either index or locationId must be provided',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,iCAKgB;AAOH,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AASzC,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,OAAC;SAC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+
style: z.ZodDefault<z.ZodOptional<z.ZodEnum<["realistic", "webtoon", "cartoon"]>>>;
|
|
3
4
|
image: z.ZodOptional<z.ZodString>;
|
|
4
5
|
prompt: z.ZodOptional<z.ZodString>;
|
|
5
6
|
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
style: "realistic" | "webtoon" | "cartoon";
|
|
6
8
|
image?: string | undefined;
|
|
7
9
|
prompt?: string | undefined;
|
|
8
10
|
}, {
|
|
11
|
+
style?: "realistic" | "webtoon" | "cartoon" | undefined;
|
|
9
12
|
image?: string | undefined;
|
|
10
13
|
prompt?: string | undefined;
|
|
11
14
|
}>;
|
|
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GenerateAvatarImageBodySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.GenerateAvatarImageBodySchema = zod_1.z.object({
|
|
6
|
+
style: zod_1.z
|
|
7
|
+
.enum(['realistic', 'webtoon', 'cartoon'])
|
|
8
|
+
.optional()
|
|
9
|
+
.default('webtoon'),
|
|
6
10
|
image: zod_1.z.string().max(2048).optional(),
|
|
7
11
|
prompt: zod_1.z.string().max(500).optional(),
|
|
8
12
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.requests.js","sourceRoot":"","sources":["../../../src/dto/images/image.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAOX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"image.requests.js","sourceRoot":"","sources":["../../../src/dto/images/image.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAOX,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,KAAK,EAAE,OAAC;SACL,IAAI,CAAC,CAAC,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;SACzC,QAAQ,EAAE;SACV,OAAO,CAAC,SAAS,CAAC;IACrB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IACtC,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
|
|
@@ -13,12 +13,12 @@ export declare const LocationPresetMessageSchema: z.ZodObject<{
|
|
|
13
13
|
message: z.ZodOptional<z.ZodString>;
|
|
14
14
|
image: z.ZodOptional<z.ZodString>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
entityType: "
|
|
16
|
+
entityType: "user" | "system" | "agent" | "gimmick";
|
|
17
17
|
entityId: bigint;
|
|
18
18
|
message?: string | undefined;
|
|
19
19
|
image?: string | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
entityType: "
|
|
21
|
+
entityType: "user" | "system" | "agent" | "gimmick";
|
|
22
22
|
entityId: bigint;
|
|
23
23
|
message?: string | undefined;
|
|
24
24
|
image?: string | undefined;
|