@little-samo/samo-ai-sdk 0.1.4-rv2 → 0.1.4-rv4
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.d.ts +1 -0
- package/dist/dto/entities/agents/agent.requests.d.ts +358 -42
- package/dist/dto/entities/agents/agent.requests.js +2 -4
- package/dist/dto/entities/agents/agent.requests.js.map +1 -1
- package/dist/dto/entities/gimmicks/gimmick.d.ts +1 -1
- package/dist/dto/locations/location.d.ts +4 -0
- package/dist/dto/locations/location.events.d.ts +7 -1
- package/dist/dto/locations/location.events.js +1 -0
- package/dist/dto/locations/location.events.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +73 -46
- package/dist/dto/locations/location.requests.js +18 -6
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/models/entities/agents/agent.config.d.ts +221 -8
- package/dist/models/entities/agents/agent.config.js +111 -29
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +28 -16
- package/dist/models/locations/location.config.js +29 -22
- package/dist/models/locations/location.config.js.map +1 -1
- package/dist/models/locations/location.constants.d.ts +1 -2
- package/dist/models/locations/location.constants.js +1 -2
- package/dist/models/locations/location.constants.js.map +1 -1
- package/package.json +1 -1
|
@@ -41,7 +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
|
-
avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString]>>;
|
|
44
|
+
avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString, z.ZodString]>>;
|
|
45
45
|
appearance: z.ZodOptional<z.ZodString>;
|
|
46
46
|
core: z.ZodOptional<z.ZodObject<{
|
|
47
47
|
name: z.ZodUnion<[z.ZodLiteral<"evaluate_and_actions">, z.ZodLiteral<"execute_actions">, z.ZodLiteral<"response_every_message">]>;
|
|
@@ -50,12 +50,99 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
50
50
|
}, {
|
|
51
51
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
52
52
|
}>>;
|
|
53
|
-
llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>>;
|
|
53
|
+
llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"gemini-high">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>>;
|
|
54
54
|
languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
55
55
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
56
56
|
greeting: z.ZodOptional<z.ZodString>;
|
|
57
57
|
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">>;
|
|
58
|
-
character: z.ZodOptional<z.
|
|
58
|
+
character: z.ZodOptional<z.ZodObject<{
|
|
59
|
+
background: z.ZodOptional<z.ZodObject<{
|
|
60
|
+
role: z.ZodOptional<z.ZodString>;
|
|
61
|
+
gender: z.ZodOptional<z.ZodString>;
|
|
62
|
+
expertise: z.ZodOptional<z.ZodString>;
|
|
63
|
+
backstory: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
role?: string | undefined;
|
|
66
|
+
gender?: string | undefined;
|
|
67
|
+
expertise?: string | undefined;
|
|
68
|
+
backstory?: string | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
role?: string | undefined;
|
|
71
|
+
gender?: string | undefined;
|
|
72
|
+
expertise?: string | undefined;
|
|
73
|
+
backstory?: string | undefined;
|
|
74
|
+
}>>;
|
|
75
|
+
speech: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
tone: z.ZodOptional<z.ZodString>;
|
|
77
|
+
style: z.ZodOptional<z.ZodString>;
|
|
78
|
+
formality: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
tone?: string | undefined;
|
|
81
|
+
style?: string | undefined;
|
|
82
|
+
formality?: string | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
tone?: string | undefined;
|
|
85
|
+
style?: string | undefined;
|
|
86
|
+
formality?: string | undefined;
|
|
87
|
+
}>>;
|
|
88
|
+
personality: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
traits: z.ZodOptional<z.ZodString>;
|
|
90
|
+
interests: z.ZodOptional<z.ZodString>;
|
|
91
|
+
values: z.ZodOptional<z.ZodString>;
|
|
92
|
+
quirks: z.ZodOptional<z.ZodString>;
|
|
93
|
+
mbti: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"INTJ">, z.ZodLiteral<"INTP">, z.ZodLiteral<"ENTJ">, z.ZodLiteral<"ENTP">, z.ZodLiteral<"INFJ">, z.ZodLiteral<"INFP">, z.ZodLiteral<"ENFJ">, z.ZodLiteral<"ENFP">, z.ZodLiteral<"ISTJ">, z.ZodLiteral<"ISFJ">, z.ZodLiteral<"ESTJ">, z.ZodLiteral<"ESFJ">, z.ZodLiteral<"ISTP">, z.ZodLiteral<"ISFP">, z.ZodLiteral<"ESTP">, z.ZodLiteral<"ESFP">]>>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
values?: string | undefined;
|
|
96
|
+
traits?: string | undefined;
|
|
97
|
+
interests?: string | undefined;
|
|
98
|
+
quirks?: string | undefined;
|
|
99
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
values?: string | undefined;
|
|
102
|
+
traits?: string | undefined;
|
|
103
|
+
interests?: string | undefined;
|
|
104
|
+
quirks?: string | undefined;
|
|
105
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
106
|
+
}>>;
|
|
107
|
+
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
background?: {
|
|
109
|
+
role?: string | undefined;
|
|
110
|
+
gender?: string | undefined;
|
|
111
|
+
expertise?: string | undefined;
|
|
112
|
+
backstory?: string | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
speech?: {
|
|
115
|
+
tone?: string | undefined;
|
|
116
|
+
style?: string | undefined;
|
|
117
|
+
formality?: string | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
personality?: {
|
|
120
|
+
values?: string | undefined;
|
|
121
|
+
traits?: string | undefined;
|
|
122
|
+
interests?: string | undefined;
|
|
123
|
+
quirks?: string | undefined;
|
|
124
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
125
|
+
} | undefined;
|
|
126
|
+
}, {
|
|
127
|
+
background?: {
|
|
128
|
+
role?: string | undefined;
|
|
129
|
+
gender?: string | undefined;
|
|
130
|
+
expertise?: string | undefined;
|
|
131
|
+
backstory?: string | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
speech?: {
|
|
134
|
+
tone?: string | undefined;
|
|
135
|
+
style?: string | undefined;
|
|
136
|
+
formality?: string | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
personality?: {
|
|
139
|
+
values?: string | undefined;
|
|
140
|
+
traits?: string | undefined;
|
|
141
|
+
interests?: string | undefined;
|
|
142
|
+
quirks?: string | undefined;
|
|
143
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
144
|
+
} | undefined;
|
|
145
|
+
}>>;
|
|
59
146
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
60
147
|
}, "strict", z.ZodTypeAny, {
|
|
61
148
|
name?: string | undefined;
|
|
@@ -65,12 +152,31 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
65
152
|
appearance?: string | undefined;
|
|
66
153
|
rules?: string[] | undefined;
|
|
67
154
|
avatar?: string | undefined;
|
|
68
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
155
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
69
156
|
languages?: string[] | undefined;
|
|
70
157
|
timeZone?: string | undefined;
|
|
71
158
|
greeting?: string | undefined;
|
|
72
159
|
actions?: "todo"[] | undefined;
|
|
73
|
-
character?:
|
|
160
|
+
character?: {
|
|
161
|
+
background?: {
|
|
162
|
+
role?: string | undefined;
|
|
163
|
+
gender?: string | undefined;
|
|
164
|
+
expertise?: string | undefined;
|
|
165
|
+
backstory?: string | undefined;
|
|
166
|
+
} | undefined;
|
|
167
|
+
speech?: {
|
|
168
|
+
tone?: string | undefined;
|
|
169
|
+
style?: string | undefined;
|
|
170
|
+
formality?: string | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
personality?: {
|
|
173
|
+
values?: string | undefined;
|
|
174
|
+
traits?: string | undefined;
|
|
175
|
+
interests?: string | undefined;
|
|
176
|
+
quirks?: string | undefined;
|
|
177
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
178
|
+
} | undefined;
|
|
179
|
+
} | undefined;
|
|
74
180
|
}, {
|
|
75
181
|
name?: string | undefined;
|
|
76
182
|
core?: {
|
|
@@ -79,12 +185,31 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
79
185
|
appearance?: string | undefined;
|
|
80
186
|
rules?: string[] | undefined;
|
|
81
187
|
avatar?: string | undefined;
|
|
82
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
188
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
83
189
|
languages?: string[] | undefined;
|
|
84
190
|
timeZone?: string | undefined;
|
|
85
191
|
greeting?: string | undefined;
|
|
86
192
|
actions?: "todo"[] | undefined;
|
|
87
|
-
character?:
|
|
193
|
+
character?: {
|
|
194
|
+
background?: {
|
|
195
|
+
role?: string | undefined;
|
|
196
|
+
gender?: string | undefined;
|
|
197
|
+
expertise?: string | undefined;
|
|
198
|
+
backstory?: string | undefined;
|
|
199
|
+
} | undefined;
|
|
200
|
+
speech?: {
|
|
201
|
+
tone?: string | undefined;
|
|
202
|
+
style?: string | undefined;
|
|
203
|
+
formality?: string | undefined;
|
|
204
|
+
} | undefined;
|
|
205
|
+
personality?: {
|
|
206
|
+
values?: string | undefined;
|
|
207
|
+
traits?: string | undefined;
|
|
208
|
+
interests?: string | undefined;
|
|
209
|
+
quirks?: string | undefined;
|
|
210
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
} | undefined;
|
|
88
213
|
}>;
|
|
89
214
|
}, "strip", z.ZodTypeAny, {
|
|
90
215
|
config: {
|
|
@@ -95,12 +220,31 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
95
220
|
appearance?: string | undefined;
|
|
96
221
|
rules?: string[] | undefined;
|
|
97
222
|
avatar?: string | undefined;
|
|
98
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
223
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
99
224
|
languages?: string[] | undefined;
|
|
100
225
|
timeZone?: string | undefined;
|
|
101
226
|
greeting?: string | undefined;
|
|
102
227
|
actions?: "todo"[] | undefined;
|
|
103
|
-
character?:
|
|
228
|
+
character?: {
|
|
229
|
+
background?: {
|
|
230
|
+
role?: string | undefined;
|
|
231
|
+
gender?: string | undefined;
|
|
232
|
+
expertise?: string | undefined;
|
|
233
|
+
backstory?: string | undefined;
|
|
234
|
+
} | undefined;
|
|
235
|
+
speech?: {
|
|
236
|
+
tone?: string | undefined;
|
|
237
|
+
style?: string | undefined;
|
|
238
|
+
formality?: string | undefined;
|
|
239
|
+
} | undefined;
|
|
240
|
+
personality?: {
|
|
241
|
+
values?: string | undefined;
|
|
242
|
+
traits?: string | undefined;
|
|
243
|
+
interests?: string | undefined;
|
|
244
|
+
quirks?: string | undefined;
|
|
245
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
} | undefined;
|
|
104
248
|
};
|
|
105
249
|
agentId: bigint;
|
|
106
250
|
}, {
|
|
@@ -112,12 +256,31 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
112
256
|
appearance?: string | undefined;
|
|
113
257
|
rules?: string[] | undefined;
|
|
114
258
|
avatar?: string | undefined;
|
|
115
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
259
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
116
260
|
languages?: string[] | undefined;
|
|
117
261
|
timeZone?: string | undefined;
|
|
118
262
|
greeting?: string | undefined;
|
|
119
263
|
actions?: "todo"[] | undefined;
|
|
120
|
-
character?:
|
|
264
|
+
character?: {
|
|
265
|
+
background?: {
|
|
266
|
+
role?: string | undefined;
|
|
267
|
+
gender?: string | undefined;
|
|
268
|
+
expertise?: string | undefined;
|
|
269
|
+
backstory?: string | undefined;
|
|
270
|
+
} | undefined;
|
|
271
|
+
speech?: {
|
|
272
|
+
tone?: string | undefined;
|
|
273
|
+
style?: string | undefined;
|
|
274
|
+
formality?: string | undefined;
|
|
275
|
+
} | undefined;
|
|
276
|
+
personality?: {
|
|
277
|
+
values?: string | undefined;
|
|
278
|
+
traits?: string | undefined;
|
|
279
|
+
interests?: string | undefined;
|
|
280
|
+
quirks?: string | undefined;
|
|
281
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
282
|
+
} | undefined;
|
|
283
|
+
} | undefined;
|
|
121
284
|
};
|
|
122
285
|
agentId: bigint;
|
|
123
286
|
}>;
|
|
@@ -126,20 +289,14 @@ export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
|
|
|
126
289
|
export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
127
290
|
agentId: z.ZodBigInt;
|
|
128
291
|
credential: z.ZodUnion<[z.ZodObject<{
|
|
129
|
-
type: z.ZodLiteral<"
|
|
130
|
-
|
|
131
|
-
password: z.ZodString;
|
|
132
|
-
username: z.ZodString;
|
|
292
|
+
type: z.ZodLiteral<"notion">;
|
|
293
|
+
token: z.ZodString;
|
|
133
294
|
}, "strip", z.ZodTypeAny, {
|
|
134
|
-
type: "
|
|
135
|
-
|
|
136
|
-
password: string;
|
|
137
|
-
username: string;
|
|
295
|
+
type: "notion";
|
|
296
|
+
token: string;
|
|
138
297
|
}, {
|
|
139
|
-
type: "
|
|
140
|
-
|
|
141
|
-
password: string;
|
|
142
|
-
username: string;
|
|
298
|
+
type: "notion";
|
|
299
|
+
token: string;
|
|
143
300
|
}>, z.ZodObject<{
|
|
144
301
|
type: z.ZodLiteral<"notion">;
|
|
145
302
|
token: z.ZodString;
|
|
@@ -152,10 +309,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
152
309
|
}>]>;
|
|
153
310
|
}, "strip", z.ZodTypeAny, {
|
|
154
311
|
credential: {
|
|
155
|
-
type: "
|
|
156
|
-
|
|
157
|
-
password: string;
|
|
158
|
-
username: string;
|
|
312
|
+
type: "notion";
|
|
313
|
+
token: string;
|
|
159
314
|
} | {
|
|
160
315
|
type: "notion";
|
|
161
316
|
token: string;
|
|
@@ -163,10 +318,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
163
318
|
agentId: bigint;
|
|
164
319
|
}, {
|
|
165
320
|
credential: {
|
|
166
|
-
type: "
|
|
167
|
-
|
|
168
|
-
password: string;
|
|
169
|
-
username: string;
|
|
321
|
+
type: "notion";
|
|
322
|
+
token: string;
|
|
170
323
|
} | {
|
|
171
324
|
type: "notion";
|
|
172
325
|
token: string;
|
|
@@ -216,7 +369,7 @@ export interface AgentPresetsPaginatedResponseDto {
|
|
|
216
369
|
export declare const CreateAgentSchema: z.ZodObject<{
|
|
217
370
|
config: z.ZodObject<{
|
|
218
371
|
name: z.ZodOptional<z.ZodString>;
|
|
219
|
-
avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString]>>;
|
|
372
|
+
avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString, z.ZodString]>>;
|
|
220
373
|
appearance: z.ZodOptional<z.ZodString>;
|
|
221
374
|
core: z.ZodOptional<z.ZodObject<{
|
|
222
375
|
name: z.ZodUnion<[z.ZodLiteral<"evaluate_and_actions">, z.ZodLiteral<"execute_actions">, z.ZodLiteral<"response_every_message">]>;
|
|
@@ -225,12 +378,99 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
225
378
|
}, {
|
|
226
379
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
227
380
|
}>>;
|
|
228
|
-
llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>>;
|
|
381
|
+
llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"gemini-high">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>>;
|
|
229
382
|
languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
230
383
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
231
384
|
greeting: z.ZodOptional<z.ZodString>;
|
|
232
385
|
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">>;
|
|
233
|
-
character: z.ZodOptional<z.
|
|
386
|
+
character: z.ZodOptional<z.ZodObject<{
|
|
387
|
+
background: z.ZodOptional<z.ZodObject<{
|
|
388
|
+
role: z.ZodOptional<z.ZodString>;
|
|
389
|
+
gender: z.ZodOptional<z.ZodString>;
|
|
390
|
+
expertise: z.ZodOptional<z.ZodString>;
|
|
391
|
+
backstory: z.ZodOptional<z.ZodString>;
|
|
392
|
+
}, "strip", z.ZodTypeAny, {
|
|
393
|
+
role?: string | undefined;
|
|
394
|
+
gender?: string | undefined;
|
|
395
|
+
expertise?: string | undefined;
|
|
396
|
+
backstory?: string | undefined;
|
|
397
|
+
}, {
|
|
398
|
+
role?: string | undefined;
|
|
399
|
+
gender?: string | undefined;
|
|
400
|
+
expertise?: string | undefined;
|
|
401
|
+
backstory?: string | undefined;
|
|
402
|
+
}>>;
|
|
403
|
+
speech: z.ZodOptional<z.ZodObject<{
|
|
404
|
+
tone: z.ZodOptional<z.ZodString>;
|
|
405
|
+
style: z.ZodOptional<z.ZodString>;
|
|
406
|
+
formality: z.ZodOptional<z.ZodString>;
|
|
407
|
+
}, "strip", z.ZodTypeAny, {
|
|
408
|
+
tone?: string | undefined;
|
|
409
|
+
style?: string | undefined;
|
|
410
|
+
formality?: string | undefined;
|
|
411
|
+
}, {
|
|
412
|
+
tone?: string | undefined;
|
|
413
|
+
style?: string | undefined;
|
|
414
|
+
formality?: string | undefined;
|
|
415
|
+
}>>;
|
|
416
|
+
personality: z.ZodOptional<z.ZodObject<{
|
|
417
|
+
traits: z.ZodOptional<z.ZodString>;
|
|
418
|
+
interests: z.ZodOptional<z.ZodString>;
|
|
419
|
+
values: z.ZodOptional<z.ZodString>;
|
|
420
|
+
quirks: z.ZodOptional<z.ZodString>;
|
|
421
|
+
mbti: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"INTJ">, z.ZodLiteral<"INTP">, z.ZodLiteral<"ENTJ">, z.ZodLiteral<"ENTP">, z.ZodLiteral<"INFJ">, z.ZodLiteral<"INFP">, z.ZodLiteral<"ENFJ">, z.ZodLiteral<"ENFP">, z.ZodLiteral<"ISTJ">, z.ZodLiteral<"ISFJ">, z.ZodLiteral<"ESTJ">, z.ZodLiteral<"ESFJ">, z.ZodLiteral<"ISTP">, z.ZodLiteral<"ISFP">, z.ZodLiteral<"ESTP">, z.ZodLiteral<"ESFP">]>>;
|
|
422
|
+
}, "strip", z.ZodTypeAny, {
|
|
423
|
+
values?: string | undefined;
|
|
424
|
+
traits?: string | undefined;
|
|
425
|
+
interests?: string | undefined;
|
|
426
|
+
quirks?: string | undefined;
|
|
427
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
428
|
+
}, {
|
|
429
|
+
values?: string | undefined;
|
|
430
|
+
traits?: string | undefined;
|
|
431
|
+
interests?: string | undefined;
|
|
432
|
+
quirks?: string | undefined;
|
|
433
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
434
|
+
}>>;
|
|
435
|
+
}, "strip", z.ZodTypeAny, {
|
|
436
|
+
background?: {
|
|
437
|
+
role?: string | undefined;
|
|
438
|
+
gender?: string | undefined;
|
|
439
|
+
expertise?: string | undefined;
|
|
440
|
+
backstory?: string | undefined;
|
|
441
|
+
} | undefined;
|
|
442
|
+
speech?: {
|
|
443
|
+
tone?: string | undefined;
|
|
444
|
+
style?: string | undefined;
|
|
445
|
+
formality?: string | undefined;
|
|
446
|
+
} | undefined;
|
|
447
|
+
personality?: {
|
|
448
|
+
values?: string | undefined;
|
|
449
|
+
traits?: string | undefined;
|
|
450
|
+
interests?: string | undefined;
|
|
451
|
+
quirks?: string | undefined;
|
|
452
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
453
|
+
} | undefined;
|
|
454
|
+
}, {
|
|
455
|
+
background?: {
|
|
456
|
+
role?: string | undefined;
|
|
457
|
+
gender?: string | undefined;
|
|
458
|
+
expertise?: string | undefined;
|
|
459
|
+
backstory?: string | undefined;
|
|
460
|
+
} | undefined;
|
|
461
|
+
speech?: {
|
|
462
|
+
tone?: string | undefined;
|
|
463
|
+
style?: string | undefined;
|
|
464
|
+
formality?: string | undefined;
|
|
465
|
+
} | undefined;
|
|
466
|
+
personality?: {
|
|
467
|
+
values?: string | undefined;
|
|
468
|
+
traits?: string | undefined;
|
|
469
|
+
interests?: string | undefined;
|
|
470
|
+
quirks?: string | undefined;
|
|
471
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
472
|
+
} | undefined;
|
|
473
|
+
}>>;
|
|
234
474
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
235
475
|
}, "strict", z.ZodTypeAny, {
|
|
236
476
|
name?: string | undefined;
|
|
@@ -240,12 +480,31 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
240
480
|
appearance?: string | undefined;
|
|
241
481
|
rules?: string[] | undefined;
|
|
242
482
|
avatar?: string | undefined;
|
|
243
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
483
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
244
484
|
languages?: string[] | undefined;
|
|
245
485
|
timeZone?: string | undefined;
|
|
246
486
|
greeting?: string | undefined;
|
|
247
487
|
actions?: "todo"[] | undefined;
|
|
248
|
-
character?:
|
|
488
|
+
character?: {
|
|
489
|
+
background?: {
|
|
490
|
+
role?: string | undefined;
|
|
491
|
+
gender?: string | undefined;
|
|
492
|
+
expertise?: string | undefined;
|
|
493
|
+
backstory?: string | undefined;
|
|
494
|
+
} | undefined;
|
|
495
|
+
speech?: {
|
|
496
|
+
tone?: string | undefined;
|
|
497
|
+
style?: string | undefined;
|
|
498
|
+
formality?: string | undefined;
|
|
499
|
+
} | undefined;
|
|
500
|
+
personality?: {
|
|
501
|
+
values?: string | undefined;
|
|
502
|
+
traits?: string | undefined;
|
|
503
|
+
interests?: string | undefined;
|
|
504
|
+
quirks?: string | undefined;
|
|
505
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
506
|
+
} | undefined;
|
|
507
|
+
} | undefined;
|
|
249
508
|
}, {
|
|
250
509
|
name?: string | undefined;
|
|
251
510
|
core?: {
|
|
@@ -254,12 +513,31 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
254
513
|
appearance?: string | undefined;
|
|
255
514
|
rules?: string[] | undefined;
|
|
256
515
|
avatar?: string | undefined;
|
|
257
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
516
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
258
517
|
languages?: string[] | undefined;
|
|
259
518
|
timeZone?: string | undefined;
|
|
260
519
|
greeting?: string | undefined;
|
|
261
520
|
actions?: "todo"[] | undefined;
|
|
262
|
-
character?:
|
|
521
|
+
character?: {
|
|
522
|
+
background?: {
|
|
523
|
+
role?: string | undefined;
|
|
524
|
+
gender?: string | undefined;
|
|
525
|
+
expertise?: string | undefined;
|
|
526
|
+
backstory?: string | undefined;
|
|
527
|
+
} | undefined;
|
|
528
|
+
speech?: {
|
|
529
|
+
tone?: string | undefined;
|
|
530
|
+
style?: string | undefined;
|
|
531
|
+
formality?: string | undefined;
|
|
532
|
+
} | undefined;
|
|
533
|
+
personality?: {
|
|
534
|
+
values?: string | undefined;
|
|
535
|
+
traits?: string | undefined;
|
|
536
|
+
interests?: string | undefined;
|
|
537
|
+
quirks?: string | undefined;
|
|
538
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
539
|
+
} | undefined;
|
|
540
|
+
} | undefined;
|
|
263
541
|
}>;
|
|
264
542
|
}, "strip", z.ZodTypeAny, {
|
|
265
543
|
config: {
|
|
@@ -270,12 +548,31 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
270
548
|
appearance?: string | undefined;
|
|
271
549
|
rules?: string[] | undefined;
|
|
272
550
|
avatar?: string | undefined;
|
|
273
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
551
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
274
552
|
languages?: string[] | undefined;
|
|
275
553
|
timeZone?: string | undefined;
|
|
276
554
|
greeting?: string | undefined;
|
|
277
555
|
actions?: "todo"[] | undefined;
|
|
278
|
-
character?:
|
|
556
|
+
character?: {
|
|
557
|
+
background?: {
|
|
558
|
+
role?: string | undefined;
|
|
559
|
+
gender?: string | undefined;
|
|
560
|
+
expertise?: string | undefined;
|
|
561
|
+
backstory?: string | undefined;
|
|
562
|
+
} | undefined;
|
|
563
|
+
speech?: {
|
|
564
|
+
tone?: string | undefined;
|
|
565
|
+
style?: string | undefined;
|
|
566
|
+
formality?: string | undefined;
|
|
567
|
+
} | undefined;
|
|
568
|
+
personality?: {
|
|
569
|
+
values?: string | undefined;
|
|
570
|
+
traits?: string | undefined;
|
|
571
|
+
interests?: string | undefined;
|
|
572
|
+
quirks?: string | undefined;
|
|
573
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
574
|
+
} | undefined;
|
|
575
|
+
} | undefined;
|
|
279
576
|
};
|
|
280
577
|
}, {
|
|
281
578
|
config: {
|
|
@@ -286,12 +583,31 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
286
583
|
appearance?: string | undefined;
|
|
287
584
|
rules?: string[] | undefined;
|
|
288
585
|
avatar?: string | undefined;
|
|
289
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
586
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
290
587
|
languages?: string[] | undefined;
|
|
291
588
|
timeZone?: string | undefined;
|
|
292
589
|
greeting?: string | undefined;
|
|
293
590
|
actions?: "todo"[] | undefined;
|
|
294
|
-
character?:
|
|
591
|
+
character?: {
|
|
592
|
+
background?: {
|
|
593
|
+
role?: string | undefined;
|
|
594
|
+
gender?: string | undefined;
|
|
595
|
+
expertise?: string | undefined;
|
|
596
|
+
backstory?: string | undefined;
|
|
597
|
+
} | undefined;
|
|
598
|
+
speech?: {
|
|
599
|
+
tone?: string | undefined;
|
|
600
|
+
style?: string | undefined;
|
|
601
|
+
formality?: string | undefined;
|
|
602
|
+
} | undefined;
|
|
603
|
+
personality?: {
|
|
604
|
+
values?: string | undefined;
|
|
605
|
+
traits?: string | undefined;
|
|
606
|
+
interests?: string | undefined;
|
|
607
|
+
quirks?: string | undefined;
|
|
608
|
+
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
609
|
+
} | undefined;
|
|
610
|
+
} | undefined;
|
|
295
611
|
};
|
|
296
612
|
}>;
|
|
297
613
|
export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
|
|
@@ -27,10 +27,8 @@ exports.AgentUpdateCredentialSchema = zod_1.z.object({
|
|
|
27
27
|
agentId: zod_1.z.coerce.bigint(),
|
|
28
28
|
credential: zod_1.z.union([
|
|
29
29
|
zod_1.z.object({
|
|
30
|
-
type: zod_1.z.literal('
|
|
31
|
-
|
|
32
|
-
password: zod_1.z.string().max(255),
|
|
33
|
-
username: zod_1.z.string().max(255),
|
|
30
|
+
type: zod_1.z.literal('notion'),
|
|
31
|
+
token: zod_1.z.string().max(255),
|
|
34
32
|
}),
|
|
35
33
|
zod_1.z.object({
|
|
36
34
|
type: zod_1.z.literal('notion'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/agents/agent.requests.ts"],"names":[],"mappings":";;;AACA,4DAIyC;AACzC,6BAAwB;AAUX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACtE,CAAC,CAAC;AAkBU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CACjB,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAA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AAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AASU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAWU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC"}
|
|
@@ -9,10 +9,14 @@ export interface LocationPublicDto {
|
|
|
9
9
|
platform: LocationPlatform;
|
|
10
10
|
type: LocationType;
|
|
11
11
|
environment: LocationEnvironment;
|
|
12
|
+
thumbnail: string | null;
|
|
13
|
+
ownerUserId: UserId | null;
|
|
12
14
|
param1: bigint;
|
|
13
15
|
param2: bigint;
|
|
14
16
|
param3: bigint;
|
|
15
17
|
param4: bigint;
|
|
18
|
+
isPublic: boolean;
|
|
19
|
+
isPublished: boolean;
|
|
16
20
|
createdAt: Date;
|
|
17
21
|
updatedAt: Date;
|
|
18
22
|
}
|
|
@@ -11,6 +11,7 @@ export declare const LocationEventType: {
|
|
|
11
11
|
readonly GimmickExecuting: "GimmickExecuting";
|
|
12
12
|
readonly GimmickExecuted: "GimmickExecuted";
|
|
13
13
|
readonly AddMessage: "AddMessage";
|
|
14
|
+
readonly UpdateMessage: "UpdateMessage";
|
|
14
15
|
readonly MessageProcessed: "MessageProcessed";
|
|
15
16
|
readonly RenderingUpdated: "RenderingUpdated";
|
|
16
17
|
readonly CanvasUpdated: "CanvasUpdated";
|
|
@@ -63,6 +64,11 @@ export interface LocationAddMessageEventDto extends LocationEventDtoBase {
|
|
|
63
64
|
type: typeof LocationEventType.AddMessage;
|
|
64
65
|
message: LocationMessageDto;
|
|
65
66
|
}
|
|
67
|
+
export interface LocationUpdateMessageEventDto extends LocationEventDtoBase {
|
|
68
|
+
type: typeof LocationEventType.UpdateMessage;
|
|
69
|
+
messageId: string;
|
|
70
|
+
message: LocationMessageDto;
|
|
71
|
+
}
|
|
66
72
|
export interface LocationMessageProcessedEventDto extends LocationEventDtoBase {
|
|
67
73
|
type: typeof LocationEventType.MessageProcessed;
|
|
68
74
|
lastMessageId: string;
|
|
@@ -84,4 +90,4 @@ export interface LocationPauseUpdateUntilUpdatedEventDto extends LocationEventDt
|
|
|
84
90
|
export interface LocationUpdatedEventDto extends LocationEventDtoBase {
|
|
85
91
|
type: typeof LocationEventType.LocationUpdated;
|
|
86
92
|
}
|
|
87
|
-
export type LocationEventDto = LocationAgentExecutingEventDto | LocationAgentExecutedEventDto | LocationAgentJoinedEventDto | LocationAgentLeftEventDto | LocationUserJoinedEventDto | LocationUserLeftEventDto | LocationGimmickExecutingEventDto | LocationGimmickExecutedEventDto | LocationAddMessageEventDto | LocationMessageProcessedEventDto | LocationRenderingUpdatedEventDto | LocationCanvasUpdatedEventDto | LocationPauseUpdateUntilUpdatedEventDto | LocationUpdatedEventDto;
|
|
93
|
+
export type LocationEventDto = LocationAgentExecutingEventDto | LocationAgentExecutedEventDto | LocationAgentJoinedEventDto | LocationAgentLeftEventDto | LocationUserJoinedEventDto | LocationUserLeftEventDto | LocationGimmickExecutingEventDto | LocationGimmickExecutedEventDto | LocationAddMessageEventDto | LocationUpdateMessageEventDto | LocationMessageProcessedEventDto | LocationRenderingUpdatedEventDto | LocationCanvasUpdatedEventDto | LocationPauseUpdateUntilUpdatedEventDto | LocationUpdatedEventDto;
|
|
@@ -11,6 +11,7 @@ exports.LocationEventType = {
|
|
|
11
11
|
GimmickExecuting: 'GimmickExecuting',
|
|
12
12
|
GimmickExecuted: 'GimmickExecuted',
|
|
13
13
|
AddMessage: 'AddMessage',
|
|
14
|
+
UpdateMessage: 'UpdateMessage',
|
|
14
15
|
MessageProcessed: 'MessageProcessed',
|
|
15
16
|
RenderingUpdated: 'RenderingUpdated',
|
|
16
17
|
CanvasUpdated: 'CanvasUpdated',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.events.js","sourceRoot":"","sources":["../../../src/dto/locations/location.events.ts"],"names":[],"mappings":";;;AAKa,QAAA,iBAAiB,GAAG;IAC/B,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,YAAY;IACxB,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,aAAa,EAAE,eAAe;IAC9B,uBAAuB,EAAE,yBAAyB;IAClD,eAAe,EAAE,iBAAiB;CAC1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"location.events.js","sourceRoot":"","sources":["../../../src/dto/locations/location.events.ts"],"names":[],"mappings":";;;AAKa,QAAA,iBAAiB,GAAG;IAC/B,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,YAAY;IACxB,aAAa,EAAE,eAAe;IAC9B,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,aAAa,EAAE,eAAe;IAC9B,uBAAuB,EAAE,yBAAyB;IAClD,eAAe,EAAE,iBAAiB;CAC1B,CAAC"}
|