@little-samo/samo-ai-sdk 0.4.0 → 0.4.2
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 +16 -16
- package/dist/dto/entities/users/user.d.ts +3 -2
- package/dist/dto/entities/users/user.requests.d.ts +19 -16
- package/dist/dto/entities/users/user.requests.js +4 -3
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/locations/location.preset.d.ts +17 -2
- package/dist/dto/locations/location.requests.d.ts +542 -175
- package/dist/dto/locations/location.requests.js +48 -4
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/package.json +1 -1
|
@@ -151,13 +151,14 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
151
151
|
}>>;
|
|
152
152
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
153
153
|
}, "strict", z.ZodTypeAny, {
|
|
154
|
-
name?: string | undefined;
|
|
155
154
|
avatar?: string | undefined;
|
|
156
155
|
referenceAvatar?: string | undefined;
|
|
157
156
|
appearance?: string | undefined;
|
|
157
|
+
name?: string | undefined;
|
|
158
158
|
core?: {
|
|
159
159
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
160
160
|
} | undefined;
|
|
161
|
+
rules?: string[] | undefined;
|
|
161
162
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
162
163
|
languages?: string[] | undefined;
|
|
163
164
|
timeZone?: string | undefined;
|
|
@@ -184,15 +185,15 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
184
185
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
185
186
|
} | undefined;
|
|
186
187
|
} | undefined;
|
|
187
|
-
rules?: string[] | undefined;
|
|
188
188
|
}, {
|
|
189
|
-
name?: string | undefined;
|
|
190
189
|
avatar?: string | undefined;
|
|
191
190
|
referenceAvatar?: string | undefined;
|
|
192
191
|
appearance?: string | undefined;
|
|
192
|
+
name?: string | undefined;
|
|
193
193
|
core?: {
|
|
194
194
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
195
195
|
} | undefined;
|
|
196
|
+
rules?: string[] | undefined;
|
|
196
197
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
197
198
|
languages?: string[] | undefined;
|
|
198
199
|
timeZone?: string | undefined;
|
|
@@ -219,17 +220,17 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
219
220
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
220
221
|
} | undefined;
|
|
221
222
|
} | undefined;
|
|
222
|
-
rules?: string[] | undefined;
|
|
223
223
|
}>;
|
|
224
224
|
}, "strip", z.ZodTypeAny, {
|
|
225
225
|
config: {
|
|
226
|
-
name?: string | undefined;
|
|
227
226
|
avatar?: string | undefined;
|
|
228
227
|
referenceAvatar?: string | undefined;
|
|
229
228
|
appearance?: string | undefined;
|
|
229
|
+
name?: string | undefined;
|
|
230
230
|
core?: {
|
|
231
231
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
232
232
|
} | undefined;
|
|
233
|
+
rules?: string[] | undefined;
|
|
233
234
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
234
235
|
languages?: string[] | undefined;
|
|
235
236
|
timeZone?: string | undefined;
|
|
@@ -256,18 +257,18 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
256
257
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
257
258
|
} | undefined;
|
|
258
259
|
} | undefined;
|
|
259
|
-
rules?: string[] | undefined;
|
|
260
260
|
};
|
|
261
261
|
agentId: bigint;
|
|
262
262
|
}, {
|
|
263
263
|
config: {
|
|
264
|
-
name?: string | undefined;
|
|
265
264
|
avatar?: string | undefined;
|
|
266
265
|
referenceAvatar?: string | undefined;
|
|
267
266
|
appearance?: string | undefined;
|
|
267
|
+
name?: string | undefined;
|
|
268
268
|
core?: {
|
|
269
269
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
270
270
|
} | undefined;
|
|
271
|
+
rules?: string[] | undefined;
|
|
271
272
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
272
273
|
languages?: string[] | undefined;
|
|
273
274
|
timeZone?: string | undefined;
|
|
@@ -294,7 +295,6 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
294
295
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
295
296
|
} | undefined;
|
|
296
297
|
} | undefined;
|
|
297
|
-
rules?: string[] | undefined;
|
|
298
298
|
};
|
|
299
299
|
agentId: bigint;
|
|
300
300
|
}>;
|
|
@@ -493,13 +493,14 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
493
493
|
}>>;
|
|
494
494
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
495
495
|
}, "strict", z.ZodTypeAny, {
|
|
496
|
-
name?: string | undefined;
|
|
497
496
|
avatar?: string | undefined;
|
|
498
497
|
referenceAvatar?: string | undefined;
|
|
499
498
|
appearance?: string | undefined;
|
|
499
|
+
name?: string | undefined;
|
|
500
500
|
core?: {
|
|
501
501
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
502
502
|
} | undefined;
|
|
503
|
+
rules?: string[] | undefined;
|
|
503
504
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
504
505
|
languages?: string[] | undefined;
|
|
505
506
|
timeZone?: string | undefined;
|
|
@@ -526,15 +527,15 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
526
527
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
527
528
|
} | undefined;
|
|
528
529
|
} | undefined;
|
|
529
|
-
rules?: string[] | undefined;
|
|
530
530
|
}, {
|
|
531
|
-
name?: string | undefined;
|
|
532
531
|
avatar?: string | undefined;
|
|
533
532
|
referenceAvatar?: string | undefined;
|
|
534
533
|
appearance?: string | undefined;
|
|
534
|
+
name?: string | undefined;
|
|
535
535
|
core?: {
|
|
536
536
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
537
537
|
} | undefined;
|
|
538
|
+
rules?: string[] | undefined;
|
|
538
539
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
539
540
|
languages?: string[] | undefined;
|
|
540
541
|
timeZone?: string | undefined;
|
|
@@ -561,17 +562,17 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
561
562
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
562
563
|
} | undefined;
|
|
563
564
|
} | undefined;
|
|
564
|
-
rules?: string[] | undefined;
|
|
565
565
|
}>;
|
|
566
566
|
}, "strip", z.ZodTypeAny, {
|
|
567
567
|
config: {
|
|
568
|
-
name?: string | undefined;
|
|
569
568
|
avatar?: string | undefined;
|
|
570
569
|
referenceAvatar?: string | undefined;
|
|
571
570
|
appearance?: string | undefined;
|
|
571
|
+
name?: string | undefined;
|
|
572
572
|
core?: {
|
|
573
573
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
574
574
|
} | undefined;
|
|
575
|
+
rules?: string[] | undefined;
|
|
575
576
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
576
577
|
languages?: string[] | undefined;
|
|
577
578
|
timeZone?: string | undefined;
|
|
@@ -598,17 +599,17 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
598
599
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
599
600
|
} | undefined;
|
|
600
601
|
} | undefined;
|
|
601
|
-
rules?: string[] | undefined;
|
|
602
602
|
};
|
|
603
603
|
}, {
|
|
604
604
|
config: {
|
|
605
|
-
name?: string | undefined;
|
|
606
605
|
avatar?: string | undefined;
|
|
607
606
|
referenceAvatar?: string | undefined;
|
|
608
607
|
appearance?: string | undefined;
|
|
608
|
+
name?: string | undefined;
|
|
609
609
|
core?: {
|
|
610
610
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message" | "no_action";
|
|
611
611
|
} | undefined;
|
|
612
|
+
rules?: string[] | undefined;
|
|
612
613
|
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
613
614
|
languages?: string[] | undefined;
|
|
614
615
|
timeZone?: string | undefined;
|
|
@@ -635,7 +636,6 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
635
636
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
636
637
|
} | undefined;
|
|
637
638
|
} | undefined;
|
|
638
|
-
rules?: string[] | undefined;
|
|
639
639
|
};
|
|
640
640
|
}>;
|
|
641
641
|
export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
|
|
@@ -24,7 +24,8 @@ export interface UserPrivateDto extends UserPublicDto {
|
|
|
24
24
|
isAllowSensitive: boolean;
|
|
25
25
|
}
|
|
26
26
|
export interface UserAvatarDto {
|
|
27
|
-
|
|
27
|
+
name: string;
|
|
28
|
+
avatar: string | null;
|
|
28
29
|
referenceAvatar: string | null;
|
|
29
|
-
appearance: string
|
|
30
|
+
appearance: string;
|
|
30
31
|
}
|
|
@@ -15,22 +15,22 @@ export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
|
15
15
|
appearance: z.ZodOptional<z.ZodString>;
|
|
16
16
|
isAllowSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
avatar?: string | undefined;
|
|
19
|
-
referenceAvatar?: string | undefined;
|
|
20
|
-
appearance?: string | undefined;
|
|
21
|
-
birthDate?: Date | undefined;
|
|
22
18
|
username?: string | undefined;
|
|
23
19
|
nickname?: string | undefined;
|
|
20
|
+
birthDate?: Date | undefined;
|
|
24
21
|
profilePicture?: string | undefined;
|
|
25
|
-
isAllowSensitive?: boolean | undefined;
|
|
26
|
-
}, {
|
|
27
22
|
avatar?: string | undefined;
|
|
28
23
|
referenceAvatar?: string | undefined;
|
|
29
24
|
appearance?: string | undefined;
|
|
30
|
-
|
|
25
|
+
isAllowSensitive?: boolean | undefined;
|
|
26
|
+
}, {
|
|
31
27
|
username?: string | undefined;
|
|
32
28
|
nickname?: string | undefined;
|
|
29
|
+
birthDate?: Date | undefined;
|
|
33
30
|
profilePicture?: string | undefined;
|
|
31
|
+
avatar?: string | undefined;
|
|
32
|
+
referenceAvatar?: string | undefined;
|
|
33
|
+
appearance?: string | undefined;
|
|
34
34
|
isAllowSensitive?: boolean | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
export type UpdateCurrentUserBodyDto = z.infer<typeof UpdateCurrentUserBodySchema>;
|
|
@@ -51,17 +51,20 @@ export declare const UpdateUserAvatarParamsSchema: z.ZodObject<{
|
|
|
51
51
|
index: number;
|
|
52
52
|
}>;
|
|
53
53
|
export declare const UpdateUserAvatarBodySchema: z.ZodObject<{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
name: z.ZodNullable<z.ZodString>;
|
|
55
|
+
avatar: z.ZodNullable<z.ZodString>;
|
|
56
|
+
referenceAvatar: z.ZodNullable<z.ZodString>;
|
|
57
|
+
appearance: z.ZodNullable<z.ZodString>;
|
|
57
58
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
avatar
|
|
59
|
-
referenceAvatar
|
|
60
|
-
appearance
|
|
59
|
+
avatar: string | null;
|
|
60
|
+
referenceAvatar: string | null;
|
|
61
|
+
appearance: string | null;
|
|
62
|
+
name: string | null;
|
|
61
63
|
}, {
|
|
62
|
-
avatar
|
|
63
|
-
referenceAvatar
|
|
64
|
-
appearance
|
|
64
|
+
avatar: string | null;
|
|
65
|
+
referenceAvatar: string | null;
|
|
66
|
+
appearance: string | null;
|
|
67
|
+
name: string | null;
|
|
65
68
|
}>;
|
|
66
69
|
export type UpdateUserAvatarParamsDto = z.infer<typeof UpdateUserAvatarParamsSchema>;
|
|
67
70
|
export type UpdateUserAvatarBodyDto = z.infer<typeof UpdateUserAvatarBodySchema>;
|
|
@@ -23,9 +23,10 @@ exports.UpdateUserAvatarParamsSchema = zod_1.z.object({
|
|
|
23
23
|
index: zod_1.z.coerce.number().int().min(0),
|
|
24
24
|
});
|
|
25
25
|
exports.UpdateUserAvatarBodySchema = zod_1.z.object({
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
name: zod_1.z.string().max(64).nullable(),
|
|
27
|
+
avatar: zod_1.z.string().max(2048).nullable(),
|
|
28
|
+
referenceAvatar: zod_1.z.string().max(2048).nullable(),
|
|
29
|
+
appearance: zod_1.z.string().max(500).nullable(),
|
|
29
30
|
});
|
|
30
31
|
exports.ValidateUserFieldBodySchema = zod_1.z.object({
|
|
31
32
|
username: zod_1.z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AASX,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,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACrC,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAA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,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;CACL,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: "system" | "agent" | "user" | "gimmick";
|
|
17
17
|
entityId: bigint;
|
|
18
18
|
message?: string | undefined;
|
|
19
19
|
image?: string | undefined;
|
|
20
20
|
}, {
|
|
21
|
-
entityType: "
|
|
21
|
+
entityType: "system" | "agent" | "user" | "gimmick";
|
|
22
22
|
entityId: bigint;
|
|
23
23
|
message?: string | undefined;
|
|
24
24
|
image?: string | undefined;
|
|
@@ -64,6 +64,7 @@ export interface LocationPresetDto {
|
|
|
64
64
|
}
|
|
65
65
|
export interface LocationPresetDetailDto extends LocationPresetDto {
|
|
66
66
|
userRating: 'LIKE' | 'DISLIKE' | null;
|
|
67
|
+
hasReported: boolean;
|
|
67
68
|
locationCount: number;
|
|
68
69
|
totalUsedCredit: number;
|
|
69
70
|
totalMessageCount: number;
|
|
@@ -72,3 +73,17 @@ export interface LocationPresetPrivateDto extends LocationPresetDto {
|
|
|
72
73
|
locationConfig: LocationConfig;
|
|
73
74
|
agentConfigs: AgentConfig[];
|
|
74
75
|
}
|
|
76
|
+
export interface LocationPresetCommentDto {
|
|
77
|
+
id: bigint;
|
|
78
|
+
content: string;
|
|
79
|
+
authorUserId: UserId;
|
|
80
|
+
locationPresetId: bigint;
|
|
81
|
+
parentCommentId: bigint | null;
|
|
82
|
+
likeCount: number;
|
|
83
|
+
replyCount: number;
|
|
84
|
+
userReaction: 'LIKE' | 'DISLIKE' | null;
|
|
85
|
+
hasReported: boolean;
|
|
86
|
+
isDeleted: boolean;
|
|
87
|
+
createdAt: Date;
|
|
88
|
+
updatedAt: Date;
|
|
89
|
+
}
|