@little-samo/samo-ai-sdk 0.4.8 → 0.5.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/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/locations/location.preset.d.ts +2 -2
- package/dist/dto/locations/location.requests.d.ts +31 -34
- 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;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,KAAK,CAAC,cAAc,CAAC;SACrB,QAAQ,EAAE;IACb,QAAQ,EAAE,OAAC,CAAC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EAAE,6CAA6C;CACvD,CAAC,CAAC;AAYQ,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,KAAK,CAAC,cAAc,CAAC;SACrB,QAAQ,EAAE;IACb,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAYU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC;SACP,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACjE,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE;QACnD,OAAO,EAAE,oCAAoC;KAC9C,CAAC;IACJ,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC;AAaU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,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;
|
|
@@ -565,6 +565,7 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
565
565
|
}>>;
|
|
566
566
|
agentConfigs: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
567
567
|
name: z.ZodOptional<z.ZodString>;
|
|
568
|
+
role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
568
569
|
avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString, z.ZodString]>>;
|
|
569
570
|
referenceAvatar: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
570
571
|
appearance: z.ZodOptional<z.ZodString>;
|
|
@@ -582,19 +583,16 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
582
583
|
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">>;
|
|
583
584
|
character: z.ZodOptional<z.ZodObject<{
|
|
584
585
|
background: z.ZodOptional<z.ZodObject<{
|
|
585
|
-
role: z.ZodOptional<z.ZodString>;
|
|
586
586
|
gender: z.ZodOptional<z.ZodString>;
|
|
587
587
|
age: z.ZodOptional<z.ZodString>;
|
|
588
588
|
expertise: z.ZodOptional<z.ZodString>;
|
|
589
589
|
backstory: z.ZodOptional<z.ZodString>;
|
|
590
590
|
}, "strip", z.ZodTypeAny, {
|
|
591
|
-
role?: string | undefined;
|
|
592
591
|
gender?: string | undefined;
|
|
593
592
|
age?: string | undefined;
|
|
594
593
|
expertise?: string | undefined;
|
|
595
594
|
backstory?: string | undefined;
|
|
596
595
|
}, {
|
|
597
|
-
role?: string | undefined;
|
|
598
596
|
gender?: string | undefined;
|
|
599
597
|
age?: string | undefined;
|
|
600
598
|
expertise?: string | undefined;
|
|
@@ -637,7 +635,6 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
637
635
|
}>>;
|
|
638
636
|
}, "strip", z.ZodTypeAny, {
|
|
639
637
|
background?: {
|
|
640
|
-
role?: string | undefined;
|
|
641
638
|
gender?: string | undefined;
|
|
642
639
|
age?: string | undefined;
|
|
643
640
|
expertise?: string | undefined;
|
|
@@ -658,7 +655,6 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
658
655
|
} | undefined;
|
|
659
656
|
}, {
|
|
660
657
|
background?: {
|
|
661
|
-
role?: string | undefined;
|
|
662
658
|
gender?: string | undefined;
|
|
663
659
|
age?: string | undefined;
|
|
664
660
|
expertise?: string | undefined;
|
|
@@ -681,6 +677,7 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
681
677
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
682
678
|
}, "strip", z.ZodTypeAny, {
|
|
683
679
|
name?: string | undefined;
|
|
680
|
+
role?: string | undefined;
|
|
684
681
|
avatar?: string | undefined;
|
|
685
682
|
referenceAvatar?: string | undefined;
|
|
686
683
|
appearance?: string | undefined;
|
|
@@ -694,7 +691,6 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
694
691
|
actions?: "todo"[] | undefined;
|
|
695
692
|
character?: {
|
|
696
693
|
background?: {
|
|
697
|
-
role?: string | undefined;
|
|
698
694
|
gender?: string | undefined;
|
|
699
695
|
age?: string | undefined;
|
|
700
696
|
expertise?: string | undefined;
|
|
@@ -717,6 +713,7 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
717
713
|
rules?: string[] | undefined;
|
|
718
714
|
}, {
|
|
719
715
|
name?: string | undefined;
|
|
716
|
+
role?: string | undefined;
|
|
720
717
|
avatar?: string | undefined;
|
|
721
718
|
referenceAvatar?: string | undefined;
|
|
722
719
|
appearance?: string | undefined;
|
|
@@ -730,7 +727,6 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
730
727
|
actions?: "todo"[] | undefined;
|
|
731
728
|
character?: {
|
|
732
729
|
background?: {
|
|
733
|
-
role?: string | undefined;
|
|
734
730
|
gender?: string | undefined;
|
|
735
731
|
age?: string | undefined;
|
|
736
732
|
expertise?: string | undefined;
|
|
@@ -796,6 +792,7 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
796
792
|
} | undefined;
|
|
797
793
|
agentConfigs?: {
|
|
798
794
|
name?: string | undefined;
|
|
795
|
+
role?: string | undefined;
|
|
799
796
|
avatar?: string | undefined;
|
|
800
797
|
referenceAvatar?: string | undefined;
|
|
801
798
|
appearance?: string | undefined;
|
|
@@ -809,7 +806,6 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
809
806
|
actions?: "todo"[] | undefined;
|
|
810
807
|
character?: {
|
|
811
808
|
background?: {
|
|
812
|
-
role?: string | undefined;
|
|
813
809
|
gender?: string | undefined;
|
|
814
810
|
age?: string | undefined;
|
|
815
811
|
expertise?: string | undefined;
|
|
@@ -875,6 +871,7 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
875
871
|
} | undefined;
|
|
876
872
|
agentConfigs?: {
|
|
877
873
|
name?: string | undefined;
|
|
874
|
+
role?: string | undefined;
|
|
878
875
|
avatar?: string | undefined;
|
|
879
876
|
referenceAvatar?: string | undefined;
|
|
880
877
|
appearance?: string | undefined;
|
|
@@ -888,7 +885,6 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
888
885
|
actions?: "todo"[] | undefined;
|
|
889
886
|
character?: {
|
|
890
887
|
background?: {
|
|
891
|
-
role?: string | undefined;
|
|
892
888
|
gender?: string | undefined;
|
|
893
889
|
age?: string | undefined;
|
|
894
890
|
expertise?: string | undefined;
|
|
@@ -975,31 +971,34 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
975
971
|
message: z.ZodOptional<z.ZodString>;
|
|
976
972
|
image: z.ZodOptional<z.ZodString>;
|
|
977
973
|
}, "strip", z.ZodTypeAny, {
|
|
978
|
-
entityType: "
|
|
974
|
+
entityType: "user" | "system" | "agent" | "gimmick";
|
|
979
975
|
entityId: bigint;
|
|
980
976
|
message?: string | undefined;
|
|
981
977
|
image?: string | undefined;
|
|
982
978
|
}, {
|
|
983
|
-
entityType: "
|
|
979
|
+
entityType: "user" | "system" | "agent" | "gimmick";
|
|
984
980
|
entityId: bigint;
|
|
985
981
|
message?: string | undefined;
|
|
986
982
|
image?: string | undefined;
|
|
987
983
|
}>, "many">>;
|
|
988
984
|
userAvatar: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
989
985
|
name: z.ZodString;
|
|
990
|
-
|
|
991
|
-
|
|
986
|
+
role: z.ZodOptional<z.ZodString>;
|
|
987
|
+
avatar: z.ZodString;
|
|
988
|
+
referenceAvatar: z.ZodString;
|
|
992
989
|
appearance: z.ZodString;
|
|
993
990
|
}, "strip", z.ZodTypeAny, {
|
|
994
991
|
name: string;
|
|
995
|
-
avatar: string
|
|
996
|
-
referenceAvatar: string
|
|
992
|
+
avatar: string;
|
|
993
|
+
referenceAvatar: string;
|
|
997
994
|
appearance: string;
|
|
995
|
+
role?: string | undefined;
|
|
998
996
|
}, {
|
|
999
997
|
name: string;
|
|
1000
|
-
avatar: string
|
|
1001
|
-
referenceAvatar: string
|
|
998
|
+
avatar: string;
|
|
999
|
+
referenceAvatar: string;
|
|
1002
1000
|
appearance: string;
|
|
1001
|
+
role?: string | undefined;
|
|
1003
1002
|
}>>>;
|
|
1004
1003
|
hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1005
1004
|
isAllowImport: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1155,6 +1154,7 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1155
1154
|
}>>;
|
|
1156
1155
|
agentConfigs: z.ZodOptional<z.ZodArray<z.ZodNullable<z.ZodObject<{
|
|
1157
1156
|
name: z.ZodOptional<z.ZodString>;
|
|
1157
|
+
role: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1158
1158
|
avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString, z.ZodString]>>;
|
|
1159
1159
|
referenceAvatar: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
1160
1160
|
appearance: z.ZodOptional<z.ZodString>;
|
|
@@ -1172,19 +1172,16 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1172
1172
|
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">>;
|
|
1173
1173
|
character: z.ZodOptional<z.ZodObject<{
|
|
1174
1174
|
background: z.ZodOptional<z.ZodObject<{
|
|
1175
|
-
role: z.ZodOptional<z.ZodString>;
|
|
1176
1175
|
gender: z.ZodOptional<z.ZodString>;
|
|
1177
1176
|
age: z.ZodOptional<z.ZodString>;
|
|
1178
1177
|
expertise: z.ZodOptional<z.ZodString>;
|
|
1179
1178
|
backstory: z.ZodOptional<z.ZodString>;
|
|
1180
1179
|
}, "strip", z.ZodTypeAny, {
|
|
1181
|
-
role?: string | undefined;
|
|
1182
1180
|
gender?: string | undefined;
|
|
1183
1181
|
age?: string | undefined;
|
|
1184
1182
|
expertise?: string | undefined;
|
|
1185
1183
|
backstory?: string | undefined;
|
|
1186
1184
|
}, {
|
|
1187
|
-
role?: string | undefined;
|
|
1188
1185
|
gender?: string | undefined;
|
|
1189
1186
|
age?: string | undefined;
|
|
1190
1187
|
expertise?: string | undefined;
|
|
@@ -1227,7 +1224,6 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1227
1224
|
}>>;
|
|
1228
1225
|
}, "strip", z.ZodTypeAny, {
|
|
1229
1226
|
background?: {
|
|
1230
|
-
role?: string | undefined;
|
|
1231
1227
|
gender?: string | undefined;
|
|
1232
1228
|
age?: string | undefined;
|
|
1233
1229
|
expertise?: string | undefined;
|
|
@@ -1248,7 +1244,6 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1248
1244
|
} | undefined;
|
|
1249
1245
|
}, {
|
|
1250
1246
|
background?: {
|
|
1251
|
-
role?: string | undefined;
|
|
1252
1247
|
gender?: string | undefined;
|
|
1253
1248
|
age?: string | undefined;
|
|
1254
1249
|
expertise?: string | undefined;
|
|
@@ -1271,6 +1266,7 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1271
1266
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1272
1267
|
}, "strip", z.ZodTypeAny, {
|
|
1273
1268
|
name?: string | undefined;
|
|
1269
|
+
role?: string | undefined;
|
|
1274
1270
|
avatar?: string | undefined;
|
|
1275
1271
|
referenceAvatar?: string | undefined;
|
|
1276
1272
|
appearance?: string | undefined;
|
|
@@ -1284,7 +1280,6 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1284
1280
|
actions?: "todo"[] | undefined;
|
|
1285
1281
|
character?: {
|
|
1286
1282
|
background?: {
|
|
1287
|
-
role?: string | undefined;
|
|
1288
1283
|
gender?: string | undefined;
|
|
1289
1284
|
age?: string | undefined;
|
|
1290
1285
|
expertise?: string | undefined;
|
|
@@ -1307,6 +1302,7 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1307
1302
|
rules?: string[] | undefined;
|
|
1308
1303
|
}, {
|
|
1309
1304
|
name?: string | undefined;
|
|
1305
|
+
role?: string | undefined;
|
|
1310
1306
|
avatar?: string | undefined;
|
|
1311
1307
|
referenceAvatar?: string | undefined;
|
|
1312
1308
|
appearance?: string | undefined;
|
|
@@ -1320,7 +1316,6 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1320
1316
|
actions?: "todo"[] | undefined;
|
|
1321
1317
|
character?: {
|
|
1322
1318
|
background?: {
|
|
1323
|
-
role?: string | undefined;
|
|
1324
1319
|
gender?: string | undefined;
|
|
1325
1320
|
age?: string | undefined;
|
|
1326
1321
|
expertise?: string | undefined;
|
|
@@ -1391,6 +1386,7 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1391
1386
|
} | undefined;
|
|
1392
1387
|
agentConfigs?: ({
|
|
1393
1388
|
name?: string | undefined;
|
|
1389
|
+
role?: string | undefined;
|
|
1394
1390
|
avatar?: string | undefined;
|
|
1395
1391
|
referenceAvatar?: string | undefined;
|
|
1396
1392
|
appearance?: string | undefined;
|
|
@@ -1404,7 +1400,6 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1404
1400
|
actions?: "todo"[] | undefined;
|
|
1405
1401
|
character?: {
|
|
1406
1402
|
background?: {
|
|
1407
|
-
role?: string | undefined;
|
|
1408
1403
|
gender?: string | undefined;
|
|
1409
1404
|
age?: string | undefined;
|
|
1410
1405
|
expertise?: string | undefined;
|
|
@@ -1427,16 +1422,17 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1427
1422
|
rules?: string[] | undefined;
|
|
1428
1423
|
} | null)[] | undefined;
|
|
1429
1424
|
messages?: {
|
|
1430
|
-
entityType: "
|
|
1425
|
+
entityType: "user" | "system" | "agent" | "gimmick";
|
|
1431
1426
|
entityId: bigint;
|
|
1432
1427
|
message?: string | undefined;
|
|
1433
1428
|
image?: string | undefined;
|
|
1434
1429
|
}[] | undefined;
|
|
1435
1430
|
userAvatar?: {
|
|
1436
1431
|
name: string;
|
|
1437
|
-
avatar: string
|
|
1438
|
-
referenceAvatar: string
|
|
1432
|
+
avatar: string;
|
|
1433
|
+
referenceAvatar: string;
|
|
1439
1434
|
appearance: string;
|
|
1435
|
+
role?: string | undefined;
|
|
1440
1436
|
} | null | undefined;
|
|
1441
1437
|
}, {
|
|
1442
1438
|
name?: string | undefined;
|
|
@@ -1487,6 +1483,7 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1487
1483
|
} | undefined;
|
|
1488
1484
|
agentConfigs?: ({
|
|
1489
1485
|
name?: string | undefined;
|
|
1486
|
+
role?: string | undefined;
|
|
1490
1487
|
avatar?: string | undefined;
|
|
1491
1488
|
referenceAvatar?: string | undefined;
|
|
1492
1489
|
appearance?: string | undefined;
|
|
@@ -1500,7 +1497,6 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1500
1497
|
actions?: "todo"[] | undefined;
|
|
1501
1498
|
character?: {
|
|
1502
1499
|
background?: {
|
|
1503
|
-
role?: string | undefined;
|
|
1504
1500
|
gender?: string | undefined;
|
|
1505
1501
|
age?: string | undefined;
|
|
1506
1502
|
expertise?: string | undefined;
|
|
@@ -1523,16 +1519,17 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
1523
1519
|
rules?: string[] | undefined;
|
|
1524
1520
|
} | null)[] | undefined;
|
|
1525
1521
|
messages?: {
|
|
1526
|
-
entityType: "
|
|
1522
|
+
entityType: "user" | "system" | "agent" | "gimmick";
|
|
1527
1523
|
entityId: bigint;
|
|
1528
1524
|
message?: string | undefined;
|
|
1529
1525
|
image?: string | undefined;
|
|
1530
1526
|
}[] | undefined;
|
|
1531
1527
|
userAvatar?: {
|
|
1532
1528
|
name: string;
|
|
1533
|
-
avatar: string
|
|
1534
|
-
referenceAvatar: string
|
|
1529
|
+
avatar: string;
|
|
1530
|
+
referenceAvatar: string;
|
|
1535
1531
|
appearance: string;
|
|
1532
|
+
role?: string | undefined;
|
|
1536
1533
|
} | null | undefined;
|
|
1537
1534
|
}>;
|
|
1538
1535
|
export type UpdateLocationPresetBodyDto = z.infer<typeof UpdateLocationPresetBodySchema>;
|
|
@@ -2661,12 +2658,12 @@ export declare const UpdateLocationImageSchema: z.ZodObject<{
|
|
|
2661
2658
|
image: z.ZodString;
|
|
2662
2659
|
index: z.ZodOptional<z.ZodNumber>;
|
|
2663
2660
|
}, "strip", z.ZodTypeAny, {
|
|
2664
|
-
locationId: bigint;
|
|
2665
2661
|
image: string;
|
|
2662
|
+
locationId: bigint;
|
|
2666
2663
|
index?: number | undefined;
|
|
2667
2664
|
}, {
|
|
2668
|
-
locationId: bigint;
|
|
2669
2665
|
image: string;
|
|
2666
|
+
locationId: bigint;
|
|
2670
2667
|
index?: number | undefined;
|
|
2671
2668
|
}>;
|
|
2672
2669
|
export type UpdateLocationImageDto = z.infer<typeof UpdateLocationImageSchema>;
|
|
@@ -10,19 +10,16 @@ export declare const AgentConfigCoreSchema: z.ZodObject<{
|
|
|
10
10
|
export type AgentConfigCore = z.infer<typeof AgentConfigCoreSchema>;
|
|
11
11
|
export declare const AgentConfigCharacterSchema: z.ZodObject<{
|
|
12
12
|
background: z.ZodOptional<z.ZodObject<{
|
|
13
|
-
role: z.ZodOptional<z.ZodString>;
|
|
14
13
|
gender: z.ZodOptional<z.ZodString>;
|
|
15
14
|
age: z.ZodOptional<z.ZodString>;
|
|
16
15
|
expertise: z.ZodOptional<z.ZodString>;
|
|
17
16
|
backstory: z.ZodOptional<z.ZodString>;
|
|
18
17
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
role?: string | undefined;
|
|
20
18
|
gender?: string | undefined;
|
|
21
19
|
age?: string | undefined;
|
|
22
20
|
expertise?: string | undefined;
|
|
23
21
|
backstory?: string | undefined;
|
|
24
22
|
}, {
|
|
25
|
-
role?: string | undefined;
|
|
26
23
|
gender?: string | undefined;
|
|
27
24
|
age?: string | undefined;
|
|
28
25
|
expertise?: string | undefined;
|
|
@@ -65,7 +62,6 @@ export declare const AgentConfigCharacterSchema: z.ZodObject<{
|
|
|
65
62
|
}>>;
|
|
66
63
|
}, "strip", z.ZodTypeAny, {
|
|
67
64
|
background?: {
|
|
68
|
-
role?: string | undefined;
|
|
69
65
|
gender?: string | undefined;
|
|
70
66
|
age?: string | undefined;
|
|
71
67
|
expertise?: string | undefined;
|
|
@@ -86,7 +82,6 @@ export declare const AgentConfigCharacterSchema: z.ZodObject<{
|
|
|
86
82
|
} | undefined;
|
|
87
83
|
}, {
|
|
88
84
|
background?: {
|
|
89
|
-
role?: string | undefined;
|
|
90
85
|
gender?: string | undefined;
|
|
91
86
|
age?: string | undefined;
|
|
92
87
|
expertise?: string | undefined;
|
|
@@ -111,6 +106,7 @@ declare const LlmPresetSchema: z.ZodUnion<[z.ZodLiteral<"free">, z.ZodLiteral<"g
|
|
|
111
106
|
export type LlmPreset = z.infer<typeof LlmPresetSchema>;
|
|
112
107
|
export declare const AgentConfigSchema: z.ZodObject<{
|
|
113
108
|
name: z.ZodString;
|
|
109
|
+
role: z.ZodOptional<z.ZodString>;
|
|
114
110
|
avatar: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString, z.ZodString]>;
|
|
115
111
|
referenceAvatar: z.ZodOptional<z.ZodString>;
|
|
116
112
|
appearance: z.ZodString;
|
|
@@ -128,19 +124,16 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
128
124
|
actions: z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">;
|
|
129
125
|
character: z.ZodObject<{
|
|
130
126
|
background: z.ZodOptional<z.ZodObject<{
|
|
131
|
-
role: z.ZodOptional<z.ZodString>;
|
|
132
127
|
gender: z.ZodOptional<z.ZodString>;
|
|
133
128
|
age: z.ZodOptional<z.ZodString>;
|
|
134
129
|
expertise: z.ZodOptional<z.ZodString>;
|
|
135
130
|
backstory: z.ZodOptional<z.ZodString>;
|
|
136
131
|
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
role?: string | undefined;
|
|
138
132
|
gender?: string | undefined;
|
|
139
133
|
age?: string | undefined;
|
|
140
134
|
expertise?: string | undefined;
|
|
141
135
|
backstory?: string | undefined;
|
|
142
136
|
}, {
|
|
143
|
-
role?: string | undefined;
|
|
144
137
|
gender?: string | undefined;
|
|
145
138
|
age?: string | undefined;
|
|
146
139
|
expertise?: string | undefined;
|
|
@@ -183,7 +176,6 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
183
176
|
}>>;
|
|
184
177
|
}, "strip", z.ZodTypeAny, {
|
|
185
178
|
background?: {
|
|
186
|
-
role?: string | undefined;
|
|
187
179
|
gender?: string | undefined;
|
|
188
180
|
age?: string | undefined;
|
|
189
181
|
expertise?: string | undefined;
|
|
@@ -204,7 +196,6 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
204
196
|
} | undefined;
|
|
205
197
|
}, {
|
|
206
198
|
background?: {
|
|
207
|
-
role?: string | undefined;
|
|
208
199
|
gender?: string | undefined;
|
|
209
200
|
age?: string | undefined;
|
|
210
201
|
expertise?: string | undefined;
|
|
@@ -239,7 +230,6 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
239
230
|
actions: "todo"[];
|
|
240
231
|
character: {
|
|
241
232
|
background?: {
|
|
242
|
-
role?: string | undefined;
|
|
243
233
|
gender?: string | undefined;
|
|
244
234
|
age?: string | undefined;
|
|
245
235
|
expertise?: string | undefined;
|
|
@@ -260,6 +250,7 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
260
250
|
} | undefined;
|
|
261
251
|
};
|
|
262
252
|
rules: string[];
|
|
253
|
+
role?: string | undefined;
|
|
263
254
|
referenceAvatar?: string | undefined;
|
|
264
255
|
}, {
|
|
265
256
|
name: string;
|
|
@@ -275,7 +266,6 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
275
266
|
actions: "todo"[];
|
|
276
267
|
character: {
|
|
277
268
|
background?: {
|
|
278
|
-
role?: string | undefined;
|
|
279
269
|
gender?: string | undefined;
|
|
280
270
|
age?: string | undefined;
|
|
281
271
|
expertise?: string | undefined;
|
|
@@ -296,6 +286,7 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
296
286
|
} | undefined;
|
|
297
287
|
};
|
|
298
288
|
rules: string[];
|
|
289
|
+
role?: string | undefined;
|
|
299
290
|
referenceAvatar?: string | undefined;
|
|
300
291
|
}>;
|
|
301
292
|
export type AgentConfig = z.infer<typeof AgentConfigSchema>;
|
|
@@ -29,11 +29,6 @@ exports.AgentConfigCharacterSchema = zod_1.z
|
|
|
29
29
|
.object({
|
|
30
30
|
background: zod_1.z
|
|
31
31
|
.object({
|
|
32
|
-
role: zod_1.z
|
|
33
|
-
.string()
|
|
34
|
-
.max(200)
|
|
35
|
-
.describe("**CRITICAL**: Agent's primary purpose. Example: 'Helper for crafting agents and discovering treasures'")
|
|
36
|
-
.optional(),
|
|
37
32
|
gender: zod_1.z
|
|
38
33
|
.string()
|
|
39
34
|
.max(30)
|
|
@@ -158,6 +153,11 @@ const LlmPresetSchema = zod_1.z.union([
|
|
|
158
153
|
]);
|
|
159
154
|
exports.AgentConfigSchema = zod_1.z.object({
|
|
160
155
|
name: zod_1.z.string().max(64).describe('Agent name'),
|
|
156
|
+
role: zod_1.z
|
|
157
|
+
.string()
|
|
158
|
+
.max(200)
|
|
159
|
+
.optional()
|
|
160
|
+
.describe(`**CRITICAL**: Agent's primary purpose. Example: 'Helper for crafting agents and discovering treasures'`),
|
|
161
161
|
avatar: zod_1.z
|
|
162
162
|
.union([
|
|
163
163
|
...Object.entries(exports.PREDEFINED_AVATARS).map(([key, description]) => zod_1.z.literal(key).describe(description)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.config.js","sourceRoot":"","sources":["../../../../src/models/entities/agents/agent.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAA2B;IACxD,IAAI,EAAE,8IAA8I;IACpJ,IAAI,EAAE,6KAA6K;IACnL,MAAM,EAAE,0LAA0L;IAClM,IAAI,EAAE,+LAA+L;IACrM,MAAM,EAAE,8KAA8K;CACvL,CAAC;AAEW,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC;aACE,OAAO,CAAC,sBAAsB,CAAC;aAC/B,QAAQ,CACP,oGAAoG,CACrG;QACH,OAAC;aACE,OAAO,CAAC,iBAAiB,CAAC;aAC1B,QAAQ,CACP,mEAAmE,CACpE;QACH,OAAC;aACE,OAAO,CAAC,wBAAwB,CAAC;aACjC,QAAQ,CACP,iEAAiE,CAClE;QACH,OAAC;aACE,OAAO,CAAC,WAAW,CAAC;aACpB,QAAQ,CACP,2EAA2E,CAC5E;KACJ,CAAC;CACH,CAAC,CAAC;AAIU,QAAA,0BAA0B,GAAG,OAAC;KACxC,MAAM,CAAC;IACN,UAAU,EAAE,OAAC;SACV,MAAM,CAAC;QACN,
|
|
1
|
+
{"version":3,"file":"agent.config.js","sourceRoot":"","sources":["../../../../src/models/entities/agents/agent.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAA2B;IACxD,IAAI,EAAE,8IAA8I;IACpJ,IAAI,EAAE,6KAA6K;IACnL,MAAM,EAAE,0LAA0L;IAClM,IAAI,EAAE,+LAA+L;IACrM,MAAM,EAAE,8KAA8K;CACvL,CAAC;AAEW,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC;aACE,OAAO,CAAC,sBAAsB,CAAC;aAC/B,QAAQ,CACP,oGAAoG,CACrG;QACH,OAAC;aACE,OAAO,CAAC,iBAAiB,CAAC;aAC1B,QAAQ,CACP,mEAAmE,CACpE;QACH,OAAC;aACE,OAAO,CAAC,wBAAwB,CAAC;aACjC,QAAQ,CACP,iEAAiE,CAClE;QACH,OAAC;aACE,OAAO,CAAC,WAAW,CAAC;aACpB,QAAQ,CACP,2EAA2E,CAC5E;KACJ,CAAC;CACH,CAAC,CAAC;AAIU,QAAA,0BAA0B,GAAG,OAAC;KACxC,MAAM,CAAC;IACN,UAAU,EAAE,OAAC;SACV,MAAM,CAAC;QACN,M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AAib,CAClb;IACH,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,sFAAsF,CACvF;IACH,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,CACP,kFAAkF,CACnF;IAEH,OAAO,EAAE,OAAC;SACP,KAAK,CACJ,OAAC,CAAC,KAAK,CAAC;QACN,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,iCAAiC,CAAC;QAC7D,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,iCAAiC,CAAC;KAC9D,CAAC,CACH;SACA,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CAAC,8DAA8D,CAAC;IAE3E,SAAS,EAAE,kCAA0B;IAErC,KAAK,EAAE,OAAC;SACL,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC1B,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,4HAA4H,CAC7H;CACJ,CAAC,CAAC"}
|
|
@@ -64,8 +64,8 @@ export declare const LocationConfigGimmickSchema: z.ZodObject<{
|
|
|
64
64
|
}>, "many">>;
|
|
65
65
|
}, "strip", z.ZodTypeAny, {
|
|
66
66
|
name: string;
|
|
67
|
-
core: "web_search" | "image_generator" | "character_image_generator" | "notion";
|
|
68
67
|
appearance: string;
|
|
68
|
+
core: "web_search" | "image_generator" | "character_image_generator" | "notion";
|
|
69
69
|
images?: {
|
|
70
70
|
description: string;
|
|
71
71
|
name?: string | undefined;
|
|
@@ -73,8 +73,8 @@ export declare const LocationConfigGimmickSchema: z.ZodObject<{
|
|
|
73
73
|
}[] | undefined;
|
|
74
74
|
}, {
|
|
75
75
|
name: string;
|
|
76
|
-
core: "web_search" | "image_generator" | "character_image_generator" | "notion";
|
|
77
76
|
appearance: string;
|
|
77
|
+
core: "web_search" | "image_generator" | "character_image_generator" | "notion";
|
|
78
78
|
images?: {
|
|
79
79
|
description: string;
|
|
80
80
|
name?: string | undefined;
|
|
@@ -149,8 +149,8 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
149
149
|
}>, "many">>;
|
|
150
150
|
}, "strip", z.ZodTypeAny, {
|
|
151
151
|
name: string;
|
|
152
|
-
core: "web_search" | "image_generator" | "character_image_generator" | "notion";
|
|
153
152
|
appearance: string;
|
|
153
|
+
core: "web_search" | "image_generator" | "character_image_generator" | "notion";
|
|
154
154
|
images?: {
|
|
155
155
|
description: string;
|
|
156
156
|
name?: string | undefined;
|
|
@@ -158,8 +158,8 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
158
158
|
}[] | undefined;
|
|
159
159
|
}, {
|
|
160
160
|
name: string;
|
|
161
|
-
core: "web_search" | "image_generator" | "character_image_generator" | "notion";
|
|
162
161
|
appearance: string;
|
|
162
|
+
core: "web_search" | "image_generator" | "character_image_generator" | "notion";
|
|
163
163
|
images?: {
|
|
164
164
|
description: string;
|
|
165
165
|
name?: string | undefined;
|
|
@@ -175,9 +175,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
175
175
|
interval?: number | undefined;
|
|
176
176
|
maxAgentExecutions?: number | null | undefined;
|
|
177
177
|
};
|
|
178
|
+
rules: string[];
|
|
178
179
|
thumbnail: string | null;
|
|
179
180
|
environment: "CHAT" | "NOVEL";
|
|
180
|
-
rules: string[];
|
|
181
181
|
canvases: {
|
|
182
182
|
name: string;
|
|
183
183
|
description: string;
|
|
@@ -190,8 +190,8 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
190
190
|
}[];
|
|
191
191
|
gimmicks: {
|
|
192
192
|
name: string;
|
|
193
|
-
core: "web_search" | "image_generator" | "character_image_generator" | "notion";
|
|
194
193
|
appearance: string;
|
|
194
|
+
core: "web_search" | "image_generator" | "character_image_generator" | "notion";
|
|
195
195
|
images?: {
|
|
196
196
|
description: string;
|
|
197
197
|
name?: string | undefined;
|
|
@@ -207,9 +207,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
207
207
|
interval?: number | undefined;
|
|
208
208
|
maxAgentExecutions?: number | null | undefined;
|
|
209
209
|
};
|
|
210
|
+
rules: string[];
|
|
210
211
|
thumbnail: string | null;
|
|
211
212
|
environment: "CHAT" | "NOVEL";
|
|
212
|
-
rules: string[];
|
|
213
213
|
canvases: {
|
|
214
214
|
name: string;
|
|
215
215
|
description: string;
|
|
@@ -222,8 +222,8 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
222
222
|
}[];
|
|
223
223
|
gimmicks: {
|
|
224
224
|
name: string;
|
|
225
|
-
core: "web_search" | "image_generator" | "character_image_generator" | "notion";
|
|
226
225
|
appearance: string;
|
|
226
|
+
core: "web_search" | "image_generator" | "character_image_generator" | "notion";
|
|
227
227
|
images?: {
|
|
228
228
|
description: string;
|
|
229
229
|
name?: string | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@little-samo/samo-ai-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "SamoAI SDK",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@eslint/eslintrc": "^3.1.0",
|
|
64
64
|
"@eslint/js": "^9.13.0",
|
|
65
|
-
"@little-samo/samo-ai": "^0.
|
|
65
|
+
"@little-samo/samo-ai": "^0.5.0",
|
|
66
66
|
"@types/lodash": "^4",
|
|
67
67
|
"@types/node": "^20.3.1",
|
|
68
68
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"zod": "^3.24.1"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
|
-
"@little-samo/samo-ai": "^0.
|
|
87
|
+
"@little-samo/samo-ai": "^0.5.0",
|
|
88
88
|
"class-transformer": "^0.5.1",
|
|
89
89
|
"class-validator": "^0.14.2",
|
|
90
90
|
"zod": "^3.24.1"
|