@little-samo/samo-ai-sdk 0.3.0 → 0.3.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.d.ts +2 -1
- package/dist/dto/entities/agents/agent.requests.d.ts +44 -55
- package/dist/dto/entities/agents/agent.requests.js +1 -4
- package/dist/dto/entities/agents/agent.requests.js.map +1 -1
- package/dist/dto/entities/gimmicks/gimmick.config.d.ts +6 -5
- package/dist/dto/entities/gimmicks/gimmick.config.js +5 -4
- package/dist/dto/entities/gimmicks/gimmick.config.js.map +1 -1
- package/dist/dto/entities/users/user.requests.d.ts +7 -4
- package/dist/dto/entities/users/user.requests.js +1 -0
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/index.d.ts +1 -0
- package/dist/dto/index.js +1 -0
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/items/item.d.ts +4 -0
- package/dist/dto/locations/location.d.ts +1 -0
- package/dist/dto/locations/location.events.d.ts +6 -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.preset.d.ts +4 -4
- package/dist/dto/locations/location.preset.js +1 -4
- package/dist/dto/locations/location.preset.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +111 -109
- package/dist/dto/locations/location.requests.js +8 -10
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/dto/storage/index.d.ts +1 -0
- package/dist/dto/storage/index.js +18 -0
- package/dist/dto/storage/index.js.map +1 -0
- package/dist/dto/storage/storage.requests.d.ts +20 -0
- package/dist/dto/storage/storage.requests.js +23 -0
- package/dist/dto/storage/storage.requests.js.map +1 -0
- package/dist/dto/upload/index.d.ts +1 -0
- package/dist/dto/upload/index.js +18 -0
- package/dist/dto/upload/index.js.map +1 -0
- package/dist/dto/upload/upload.requests.d.ts +8 -0
- package/dist/dto/upload/upload.requests.js +6 -0
- package/dist/dto/upload/upload.requests.js.map +1 -0
- package/dist/models/entities/agents/agent.config.d.ts +4 -4
- package/dist/models/entities/agents/agent.config.js +1 -0
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +24 -24
- package/dist/models/locations/location.config.js +8 -8
- package/dist/models/locations/location.config.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AgentId, UserId } from '@little-samo/samo-ai';
|
|
2
|
-
import { AgentConfig } from '@little-samo/samo-ai-sdk/models';
|
|
2
|
+
import type { AgentConfig, LlmPreset } from '@little-samo/samo-ai-sdk/models';
|
|
3
3
|
export interface AgentPublicDto {
|
|
4
4
|
id: AgentId;
|
|
5
5
|
name: string;
|
|
6
6
|
avatar: string | null;
|
|
7
7
|
role: string | null;
|
|
8
8
|
ownerUserId: UserId;
|
|
9
|
+
llmPreset: LlmPreset | null;
|
|
9
10
|
}
|
|
10
11
|
export interface AgentPrivateDto extends AgentPublicDto {
|
|
11
12
|
config: AgentConfig | null;
|
|
@@ -7,11 +7,11 @@ export declare const AgentsPaginationQuerySchema: z.ZodObject<{
|
|
|
7
7
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
8
8
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
limit: number;
|
|
11
10
|
page: number;
|
|
11
|
+
limit: number;
|
|
12
12
|
}, {
|
|
13
|
-
limit?: number | undefined;
|
|
14
13
|
page?: number | undefined;
|
|
14
|
+
limit?: number | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
export type AgentsPaginationQueryDto = z.infer<typeof AgentsPaginationQuerySchema>;
|
|
17
17
|
export interface AgentsPaginatedResponseDto {
|
|
@@ -50,7 +50,7 @@ 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<"gemini-high">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">, z.ZodLiteral<"xai-low">, z.ZodLiteral<"xai-medium">]>>;
|
|
53
|
+
llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"free">, z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"gemini-high">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">, z.ZodLiteral<"xai-low">, z.ZodLiteral<"xai-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>;
|
|
@@ -145,14 +145,13 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
145
145
|
}>>;
|
|
146
146
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
147
147
|
}, "strict", z.ZodTypeAny, {
|
|
148
|
+
appearance?: string | undefined;
|
|
148
149
|
name?: string | undefined;
|
|
150
|
+
avatar?: string | undefined;
|
|
149
151
|
core?: {
|
|
150
152
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
151
153
|
} | undefined;
|
|
152
|
-
|
|
153
|
-
appearance?: string | undefined;
|
|
154
|
-
avatar?: string | undefined;
|
|
155
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
154
|
+
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
156
155
|
languages?: string[] | undefined;
|
|
157
156
|
timeZone?: string | undefined;
|
|
158
157
|
greeting?: string | undefined;
|
|
@@ -177,15 +176,15 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
177
176
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
178
177
|
} | undefined;
|
|
179
178
|
} | undefined;
|
|
179
|
+
rules?: string[] | undefined;
|
|
180
180
|
}, {
|
|
181
|
+
appearance?: string | undefined;
|
|
181
182
|
name?: string | undefined;
|
|
183
|
+
avatar?: string | undefined;
|
|
182
184
|
core?: {
|
|
183
185
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
184
186
|
} | undefined;
|
|
185
|
-
|
|
186
|
-
appearance?: string | undefined;
|
|
187
|
-
avatar?: string | undefined;
|
|
188
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
187
|
+
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
189
188
|
languages?: string[] | undefined;
|
|
190
189
|
timeZone?: string | undefined;
|
|
191
190
|
greeting?: string | undefined;
|
|
@@ -210,17 +209,18 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
210
209
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
211
210
|
} | undefined;
|
|
212
211
|
} | undefined;
|
|
212
|
+
rules?: string[] | undefined;
|
|
213
213
|
}>;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
+
agentId: bigint;
|
|
215
216
|
config: {
|
|
217
|
+
appearance?: string | undefined;
|
|
216
218
|
name?: string | undefined;
|
|
219
|
+
avatar?: string | undefined;
|
|
217
220
|
core?: {
|
|
218
221
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
219
222
|
} | undefined;
|
|
220
|
-
|
|
221
|
-
appearance?: string | undefined;
|
|
222
|
-
avatar?: string | undefined;
|
|
223
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
223
|
+
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
224
224
|
languages?: string[] | undefined;
|
|
225
225
|
timeZone?: string | undefined;
|
|
226
226
|
greeting?: string | undefined;
|
|
@@ -245,18 +245,18 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
245
245
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
246
246
|
} | undefined;
|
|
247
247
|
} | undefined;
|
|
248
|
+
rules?: string[] | undefined;
|
|
248
249
|
};
|
|
249
|
-
agentId: bigint;
|
|
250
250
|
}, {
|
|
251
|
+
agentId: bigint;
|
|
251
252
|
config: {
|
|
253
|
+
appearance?: string | undefined;
|
|
252
254
|
name?: string | undefined;
|
|
255
|
+
avatar?: string | undefined;
|
|
253
256
|
core?: {
|
|
254
257
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
255
258
|
} | undefined;
|
|
256
|
-
|
|
257
|
-
appearance?: string | undefined;
|
|
258
|
-
avatar?: string | undefined;
|
|
259
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
259
|
+
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
260
260
|
languages?: string[] | undefined;
|
|
261
261
|
timeZone?: string | undefined;
|
|
262
262
|
greeting?: string | undefined;
|
|
@@ -281,8 +281,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
281
281
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
282
282
|
} | undefined;
|
|
283
283
|
} | undefined;
|
|
284
|
+
rules?: string[] | undefined;
|
|
284
285
|
};
|
|
285
|
-
agentId: bigint;
|
|
286
286
|
}>;
|
|
287
287
|
export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
|
|
288
288
|
export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
|
|
@@ -308,6 +308,7 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
308
308
|
token: string;
|
|
309
309
|
}>]>;
|
|
310
310
|
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
agentId: bigint;
|
|
311
312
|
credential: {
|
|
312
313
|
type: "notion";
|
|
313
314
|
token: string;
|
|
@@ -315,8 +316,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
315
316
|
type: "notion";
|
|
316
317
|
token: string;
|
|
317
318
|
};
|
|
318
|
-
agentId: bigint;
|
|
319
319
|
}, {
|
|
320
|
+
agentId: bigint;
|
|
320
321
|
credential: {
|
|
321
322
|
type: "notion";
|
|
322
323
|
token: string;
|
|
@@ -324,7 +325,6 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
324
325
|
type: "notion";
|
|
325
326
|
token: string;
|
|
326
327
|
};
|
|
327
|
-
agentId: bigint;
|
|
328
328
|
}>;
|
|
329
329
|
export type AgentUpdateCredentialDto = z.infer<typeof AgentUpdateCredentialSchema>;
|
|
330
330
|
export interface AgentUpdateCredentialResponseDto {
|
|
@@ -335,11 +335,11 @@ export declare const AgentDeleteCredentialSchema: z.ZodObject<{
|
|
|
335
335
|
agentId: z.ZodBigInt;
|
|
336
336
|
credentialType: z.ZodString;
|
|
337
337
|
}, "strip", z.ZodTypeAny, {
|
|
338
|
-
credentialType: string;
|
|
339
338
|
agentId: bigint;
|
|
340
|
-
}, {
|
|
341
339
|
credentialType: string;
|
|
340
|
+
}, {
|
|
342
341
|
agentId: bigint;
|
|
342
|
+
credentialType: string;
|
|
343
343
|
}>;
|
|
344
344
|
export type AgentDeleteCredentialDto = z.infer<typeof AgentDeleteCredentialSchema>;
|
|
345
345
|
export interface AgentDeleteCredentialResponseDto {
|
|
@@ -350,11 +350,11 @@ export declare const AgentPresetsPaginationQuerySchema: z.ZodObject<{
|
|
|
350
350
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
351
351
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
352
352
|
}, "strip", z.ZodTypeAny, {
|
|
353
|
-
limit: number;
|
|
354
353
|
page: number;
|
|
354
|
+
limit: number;
|
|
355
355
|
}, {
|
|
356
|
-
limit?: number | undefined;
|
|
357
356
|
page?: number | undefined;
|
|
357
|
+
limit?: number | undefined;
|
|
358
358
|
}>;
|
|
359
359
|
export type AgentPresetsPaginationQueryDto = z.infer<typeof AgentPresetsPaginationQuerySchema>;
|
|
360
360
|
export interface AgentPresetsPaginatedResponseDto {
|
|
@@ -378,7 +378,7 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
378
378
|
}, {
|
|
379
379
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
380
380
|
}>>;
|
|
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">, z.ZodLiteral<"xai-low">, z.ZodLiteral<"xai-medium">]>>;
|
|
381
|
+
llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"free">, z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"gemini-high">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">, z.ZodLiteral<"xai-low">, z.ZodLiteral<"xai-medium">]>>;
|
|
382
382
|
languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
383
383
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
384
384
|
greeting: z.ZodOptional<z.ZodString>;
|
|
@@ -473,14 +473,13 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
473
473
|
}>>;
|
|
474
474
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
475
475
|
}, "strict", z.ZodTypeAny, {
|
|
476
|
+
appearance?: string | undefined;
|
|
476
477
|
name?: string | undefined;
|
|
478
|
+
avatar?: string | undefined;
|
|
477
479
|
core?: {
|
|
478
480
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
479
481
|
} | undefined;
|
|
480
|
-
|
|
481
|
-
appearance?: string | undefined;
|
|
482
|
-
avatar?: string | undefined;
|
|
483
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
482
|
+
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
484
483
|
languages?: string[] | undefined;
|
|
485
484
|
timeZone?: string | undefined;
|
|
486
485
|
greeting?: string | undefined;
|
|
@@ -505,15 +504,15 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
505
504
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
506
505
|
} | undefined;
|
|
507
506
|
} | undefined;
|
|
507
|
+
rules?: string[] | undefined;
|
|
508
508
|
}, {
|
|
509
|
+
appearance?: string | undefined;
|
|
509
510
|
name?: string | undefined;
|
|
511
|
+
avatar?: string | undefined;
|
|
510
512
|
core?: {
|
|
511
513
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
512
514
|
} | undefined;
|
|
513
|
-
|
|
514
|
-
appearance?: string | undefined;
|
|
515
|
-
avatar?: string | undefined;
|
|
516
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
515
|
+
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
517
516
|
languages?: string[] | undefined;
|
|
518
517
|
timeZone?: string | undefined;
|
|
519
518
|
greeting?: string | undefined;
|
|
@@ -538,17 +537,17 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
538
537
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
539
538
|
} | undefined;
|
|
540
539
|
} | undefined;
|
|
540
|
+
rules?: string[] | undefined;
|
|
541
541
|
}>;
|
|
542
542
|
}, "strip", z.ZodTypeAny, {
|
|
543
543
|
config: {
|
|
544
|
+
appearance?: string | undefined;
|
|
544
545
|
name?: string | undefined;
|
|
546
|
+
avatar?: string | undefined;
|
|
545
547
|
core?: {
|
|
546
548
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
547
549
|
} | undefined;
|
|
548
|
-
|
|
549
|
-
appearance?: string | undefined;
|
|
550
|
-
avatar?: string | undefined;
|
|
551
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
550
|
+
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
552
551
|
languages?: string[] | undefined;
|
|
553
552
|
timeZone?: string | undefined;
|
|
554
553
|
greeting?: string | undefined;
|
|
@@ -573,17 +572,17 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
573
572
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
574
573
|
} | undefined;
|
|
575
574
|
} | undefined;
|
|
575
|
+
rules?: string[] | undefined;
|
|
576
576
|
};
|
|
577
577
|
}, {
|
|
578
578
|
config: {
|
|
579
|
+
appearance?: string | undefined;
|
|
579
580
|
name?: string | undefined;
|
|
581
|
+
avatar?: string | undefined;
|
|
580
582
|
core?: {
|
|
581
583
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
582
584
|
} | undefined;
|
|
583
|
-
|
|
584
|
-
appearance?: string | undefined;
|
|
585
|
-
avatar?: string | undefined;
|
|
586
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
585
|
+
llmPreset?: "free" | "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
587
586
|
languages?: string[] | undefined;
|
|
588
587
|
timeZone?: string | undefined;
|
|
589
588
|
greeting?: string | undefined;
|
|
@@ -608,6 +607,7 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
608
607
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
609
608
|
} | undefined;
|
|
610
609
|
} | undefined;
|
|
610
|
+
rules?: string[] | undefined;
|
|
611
611
|
};
|
|
612
612
|
}>;
|
|
613
613
|
export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
|
|
@@ -660,17 +660,6 @@ export type GetAgentCostParamsDto = z.infer<typeof GetAgentCostParamsSchema>;
|
|
|
660
660
|
export interface GetAgentCostResponseDto {
|
|
661
661
|
cost: AgentCostDto;
|
|
662
662
|
}
|
|
663
|
-
export declare const UploadAgentAvatarParamsSchema: z.ZodObject<{
|
|
664
|
-
agentId: z.ZodBigInt;
|
|
665
|
-
}, "strip", z.ZodTypeAny, {
|
|
666
|
-
agentId: bigint;
|
|
667
|
-
}, {
|
|
668
|
-
agentId: bigint;
|
|
669
|
-
}>;
|
|
670
|
-
export type UploadAgentAvatarParamsDto = z.infer<typeof UploadAgentAvatarParamsSchema>;
|
|
671
|
-
export interface UploadAgentAvatarResponseDto {
|
|
672
|
-
avatarUrl: string;
|
|
673
|
-
}
|
|
674
663
|
export declare const DeleteAgentParamsSchema: z.ZodObject<{
|
|
675
664
|
agentId: z.ZodBigInt;
|
|
676
665
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteAgentParamsSchema = exports.
|
|
3
|
+
exports.DeleteAgentParamsSchema = exports.GetAgentCostParamsSchema = exports.GetAgentLocationsParamsSchema = exports.GetHelperAgentSchema = exports.CreateAgentFromPresetSchema = exports.CreateAgentSchema = exports.AgentPresetsPaginationQuerySchema = exports.AgentDeleteCredentialSchema = exports.AgentUpdateCredentialSchema = exports.AgentUpdateConfigSchema = exports.GetAgentsByIdsQuerySchema = exports.AgentsPaginationQuerySchema = void 0;
|
|
4
4
|
const models_1 = require("@little-samo/samo-ai-sdk/models");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.AgentsPaginationQuerySchema = zod_1.z.object({
|
|
@@ -61,9 +61,6 @@ exports.GetAgentLocationsParamsSchema = zod_1.z.object({
|
|
|
61
61
|
exports.GetAgentCostParamsSchema = zod_1.z.object({
|
|
62
62
|
agentId: zod_1.z.coerce.bigint(),
|
|
63
63
|
});
|
|
64
|
-
exports.UploadAgentAvatarParamsSchema = zod_1.z.object({
|
|
65
|
-
agentId: zod_1.z.coerce.bigint(),
|
|
66
|
-
});
|
|
67
64
|
exports.DeleteAgentParamsSchema = zod_1.z.object({
|
|
68
65
|
agentId: zod_1.z.coerce.bigint(),
|
|
69
66
|
});
|
|
@@ -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,CAA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AC,CAAC;AAWU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,wBAAe,CAAC;CAC1C,CAAC,CAAC;AASU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAWU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AASU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const GimmickCoreDescriptions: {
|
|
3
|
-
readonly web_search: "Searches the web for
|
|
4
|
-
readonly image_generator: "Generates
|
|
5
|
-
readonly character_image_generator: "Generates consistent character images
|
|
6
|
-
readonly
|
|
3
|
+
readonly web_search: "Searches the web for real-time or missing information using an LLM. Returns both summary and detailed results. Takes ~30 seconds to execute";
|
|
4
|
+
readonly image_generator: "Generates images from text prompts with optional reference images. Can modify existing images in context using text instructions. Takes ~30 seconds to execute";
|
|
5
|
+
readonly character_image_generator: "Generates consistent character images using the gimmick's appearance as a base prompt to maintain character identity. Style defaults to \"anime style\" but can be customized (e.g., \"realistic\" for photorealistic). Optionally combines one image description from the images array with the base prompt";
|
|
6
|
+
readonly scene_image_generator: "Generates scene images with one or more characters using reference images and appearance prompts. Each image in the images array includes a reference image and its Stable Diffusion-style appearance prompt for scene composition";
|
|
7
|
+
readonly notion: "Interacts with Notion for content management and collaboration";
|
|
7
8
|
};
|
|
8
9
|
export type GimmickCore = keyof typeof GimmickCoreDescriptions;
|
|
9
|
-
export declare const GimmickCoreSchema: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "character_image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "character_image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "character_image_generator" | "notion">[]]>;
|
|
10
|
+
export declare const GimmickCoreSchema: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "character_image_generator" | "scene_image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "character_image_generator" | "scene_image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "character_image_generator" | "scene_image_generator" | "notion">[]]>;
|
|
@@ -3,10 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.GimmickCoreSchema = exports.GimmickCoreDescriptions = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.GimmickCoreDescriptions = {
|
|
6
|
-
web_search: 'Searches the web for
|
|
7
|
-
image_generator: 'Generates
|
|
8
|
-
character_image_generator: 'Generates consistent character images
|
|
9
|
-
|
|
6
|
+
web_search: 'Searches the web for real-time or missing information using an LLM. Returns both summary and detailed results. Takes ~30 seconds to execute',
|
|
7
|
+
image_generator: 'Generates images from text prompts with optional reference images. Can modify existing images in context using text instructions. Takes ~30 seconds to execute',
|
|
8
|
+
character_image_generator: 'Generates consistent character images using the gimmick\'s appearance as a base prompt to maintain character identity. Style defaults to "anime style" but can be customized (e.g., "realistic" for photorealistic). Optionally combines one image description from the images array with the base prompt',
|
|
9
|
+
scene_image_generator: 'Generates scene images with one or more characters using reference images and appearance prompts. Each image in the images array includes a reference image and its Stable Diffusion-style appearance prompt for scene composition',
|
|
10
|
+
notion: 'Interacts with Notion for content management and collaboration',
|
|
10
11
|
};
|
|
11
12
|
exports.GimmickCoreSchema = zod_1.z.union(Object.keys(exports.GimmickCoreDescriptions).map((key) => zod_1.z.literal(key).describe(exports.GimmickCoreDescriptions[key])));
|
|
12
13
|
//# sourceMappingURL=gimmick.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gimmick.config.js","sourceRoot":"","sources":["../../../../src/dto/entities/gimmicks/gimmick.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG;IACrC,UAAU,EACR,
|
|
1
|
+
{"version":3,"file":"gimmick.config.js","sourceRoot":"","sources":["../../../../src/dto/entities/gimmicks/gimmick.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG;IACrC,UAAU,EACR,6IAA6I;IAC/I,eAAe,EACb,gKAAgK;IAClK,yBAAyB,EACvB,2SAA2S;IAC7S,qBAAqB,EACnB,oOAAoO;IACtO,MAAM,EAAE,gEAAgE;CAChE,CAAC;AAIE,QAAA,iBAAiB,GAAG,OAAC,CAAC,KAAK,CACtC,MAAM,CAAC,IAAI,CAAC,+BAAuB,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAC/C,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,+BAAuB,CAAC,GAAkB,CAAC,CAAC,CAKrE,CACF,CAAC"}
|
|
@@ -9,19 +9,22 @@ export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
|
9
9
|
username: z.ZodOptional<z.ZodString>;
|
|
10
10
|
nickname: z.ZodOptional<z.ZodString>;
|
|
11
11
|
birthDate: z.ZodOptional<z.ZodDate>;
|
|
12
|
+
profilePicture: z.ZodOptional<z.ZodString>;
|
|
12
13
|
appearance: z.ZodOptional<z.ZodString>;
|
|
13
14
|
isAllowSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
-
appearance?: string | undefined;
|
|
16
|
-
birthDate?: Date | undefined;
|
|
17
16
|
username?: string | undefined;
|
|
18
17
|
nickname?: string | undefined;
|
|
18
|
+
birthDate?: Date | undefined;
|
|
19
|
+
profilePicture?: string | undefined;
|
|
20
|
+
appearance?: string | undefined;
|
|
19
21
|
isAllowSensitive?: boolean | undefined;
|
|
20
22
|
}, {
|
|
21
|
-
appearance?: string | undefined;
|
|
22
|
-
birthDate?: Date | undefined;
|
|
23
23
|
username?: string | undefined;
|
|
24
24
|
nickname?: string | undefined;
|
|
25
|
+
birthDate?: Date | undefined;
|
|
26
|
+
profilePicture?: string | undefined;
|
|
27
|
+
appearance?: string | undefined;
|
|
25
28
|
isAllowSensitive?: boolean | undefined;
|
|
26
29
|
}>;
|
|
27
30
|
export type UpdateCurrentUserBodyDto = z.infer<typeof UpdateCurrentUserBodySchema>;
|
|
@@ -12,6 +12,7 @@ exports.UpdateCurrentUserBodySchema = zod_1.z.object({
|
|
|
12
12
|
.optional(),
|
|
13
13
|
nickname: zod_1.z.string().min(4).max(32).optional(),
|
|
14
14
|
birthDate: zod_1.z.coerce.date().optional(),
|
|
15
|
+
profilePicture: zod_1.z.string().max(2048).optional(),
|
|
15
16
|
appearance: zod_1.z.string().max(500).optional(),
|
|
16
17
|
isAllowSensitive: zod_1.z.boolean().optional(),
|
|
17
18
|
});
|
|
@@ -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,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AAC,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"}
|
package/dist/dto/index.d.ts
CHANGED
package/dist/dto/index.js
CHANGED
|
@@ -18,4 +18,5 @@ __exportStar(require("./entities"), exports);
|
|
|
18
18
|
__exportStar(require("./items"), exports);
|
|
19
19
|
__exportStar(require("./locations"), exports);
|
|
20
20
|
__exportStar(require("./rankings"), exports);
|
|
21
|
+
__exportStar(require("./upload"), exports);
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
package/dist/dto/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B;AAC3B,2CAAyB"}
|
package/dist/dto/items/item.d.ts
CHANGED
|
@@ -6,11 +6,15 @@ export interface ItemDto {
|
|
|
6
6
|
count: number;
|
|
7
7
|
param1: number;
|
|
8
8
|
param2: number;
|
|
9
|
+
param3: number;
|
|
10
|
+
param4: number;
|
|
9
11
|
updatedAt: Date;
|
|
10
12
|
}
|
|
11
13
|
export interface ItemUpdateDto {
|
|
12
14
|
count: number;
|
|
13
15
|
param1: number;
|
|
14
16
|
param2: number;
|
|
17
|
+
param3: number;
|
|
18
|
+
param4: number;
|
|
15
19
|
updatedAt: Date;
|
|
16
20
|
}
|
|
@@ -18,6 +18,7 @@ export declare const LocationEventType: {
|
|
|
18
18
|
readonly RenderingUpdated: "RenderingUpdated";
|
|
19
19
|
readonly CanvasUpdated: "CanvasUpdated";
|
|
20
20
|
readonly CanvasCleared: "CanvasCleared";
|
|
21
|
+
readonly SuggestedResponsesUpdated: "SuggestedResponsesUpdated";
|
|
21
22
|
readonly PauseUpdateUntilUpdated: "PauseUpdateUntilUpdated";
|
|
22
23
|
readonly LocationUpdated: "LocationUpdated";
|
|
23
24
|
};
|
|
@@ -100,6 +101,10 @@ export interface LocationCanvasUpdatedEventDto extends LocationEventDtoBase {
|
|
|
100
101
|
export interface LocationCanvasClearedEventDto extends LocationEventDtoBase {
|
|
101
102
|
type: typeof LocationEventType.CanvasCleared;
|
|
102
103
|
}
|
|
104
|
+
export interface LocationSuggestedResponsesUpdatedEventDto extends LocationEventDtoBase {
|
|
105
|
+
type: typeof LocationEventType.SuggestedResponsesUpdated;
|
|
106
|
+
suggestedResponses: string[] | null;
|
|
107
|
+
}
|
|
103
108
|
export interface LocationPauseUpdateUntilUpdatedEventDto extends LocationEventDtoBase {
|
|
104
109
|
type: typeof LocationEventType.PauseUpdateUntilUpdated;
|
|
105
110
|
pauseUpdateUntil: Date | null;
|
|
@@ -108,4 +113,4 @@ export interface LocationPauseUpdateUntilUpdatedEventDto extends LocationEventDt
|
|
|
108
113
|
export interface LocationUpdatedEventDto extends LocationEventDtoBase {
|
|
109
114
|
type: typeof LocationEventType.LocationUpdated;
|
|
110
115
|
}
|
|
111
|
-
export type LocationEventDto = LocationAgentExecutingEventDto | LocationAgentSendMessageStreamEventDto | LocationAgentExecuteNextActionEventDto | LocationAgentExecutedEventDto | LocationAgentJoinedEventDto | LocationAgentLeftEventDto | LocationUserJoinedEventDto | LocationUserLeftEventDto | LocationGimmickExecutingEventDto | LocationGimmickExecutedEventDto | LocationAddMessageEventDto | LocationUpdateMessageEventDto | LocationMessageProcessedEventDto | LocationRenderingUpdatedEventDto | LocationCanvasUpdatedEventDto | LocationCanvasClearedEventDto | LocationPauseUpdateUntilUpdatedEventDto | LocationUpdatedEventDto;
|
|
116
|
+
export type LocationEventDto = LocationAgentExecutingEventDto | LocationAgentSendMessageStreamEventDto | LocationAgentExecuteNextActionEventDto | LocationAgentExecutedEventDto | LocationAgentJoinedEventDto | LocationAgentLeftEventDto | LocationUserJoinedEventDto | LocationUserLeftEventDto | LocationGimmickExecutingEventDto | LocationGimmickExecutedEventDto | LocationAddMessageEventDto | LocationUpdateMessageEventDto | LocationMessageProcessedEventDto | LocationRenderingUpdatedEventDto | LocationCanvasUpdatedEventDto | LocationCanvasClearedEventDto | LocationSuggestedResponsesUpdatedEventDto | LocationPauseUpdateUntilUpdatedEventDto | LocationUpdatedEventDto;
|
|
@@ -18,6 +18,7 @@ exports.LocationEventType = {
|
|
|
18
18
|
RenderingUpdated: 'RenderingUpdated',
|
|
19
19
|
CanvasUpdated: 'CanvasUpdated',
|
|
20
20
|
CanvasCleared: 'CanvasCleared',
|
|
21
|
+
SuggestedResponsesUpdated: 'SuggestedResponsesUpdated',
|
|
21
22
|
PauseUpdateUntilUpdated: 'PauseUpdateUntilUpdated',
|
|
22
23
|
LocationUpdated: 'LocationUpdated',
|
|
23
24
|
};
|
|
@@ -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,sBAAsB,EAAE,wBAAwB;IAChD,sBAAsB,EAAE,wBAAwB;IAChD,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,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,sBAAsB,EAAE,wBAAwB;IAChD,sBAAsB,EAAE,wBAAwB;IAChD,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,aAAa,EAAE,eAAe;IAC9B,yBAAyB,EAAE,2BAA2B;IACtD,uBAAuB,EAAE,yBAAyB;IAClD,eAAe,EAAE,iBAAiB;CAC1B,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;
|
|
@@ -28,11 +28,11 @@ export declare const LocationPresetCanvasSchema: z.ZodObject<{
|
|
|
28
28
|
name: z.ZodString;
|
|
29
29
|
text: z.ZodString;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
text: string;
|
|
32
31
|
name: string;
|
|
33
|
-
}, {
|
|
34
32
|
text: string;
|
|
33
|
+
}, {
|
|
35
34
|
name: string;
|
|
35
|
+
text: string;
|
|
36
36
|
}>;
|
|
37
37
|
export type LocationPresetCanvasDto = z.infer<typeof LocationPresetCanvasSchema>;
|
|
38
38
|
export interface LocationPresetDto {
|
|
@@ -10,10 +10,7 @@ exports.LocationPresetMessageSchema = zod_1.default.object({
|
|
|
10
10
|
entityType: zod_1.default.nativeEnum(samo_ai_1.EntityType),
|
|
11
11
|
entityId: zod_1.default.coerce.bigint(),
|
|
12
12
|
message: zod_1.default.string().max(800).optional(),
|
|
13
|
-
image: zod_1.default
|
|
14
|
-
.string()
|
|
15
|
-
.max(4 * 1024 * 1024)
|
|
16
|
-
.optional(),
|
|
13
|
+
image: zod_1.default.string().max(2048).optional(),
|
|
17
14
|
});
|
|
18
15
|
exports.LocationPresetCanvasSchema = zod_1.default.object({
|
|
19
16
|
name: zod_1.default.string().max(32),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.preset.js","sourceRoot":"","sources":["../../../src/dto/locations/location.preset.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAsE;AACtE,8CAAoB;AAWP,QAAA,2BAA2B,GAAG,aAAC,CAAC,MAAM,CAAC;IAClD,UAAU,EAAE,aAAC,CAAC,UAAU,CAAC,oBAAU,CAAC;IACpC,QAAQ,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAE3B,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,aAAC
|
|
1
|
+
{"version":3,"file":"location.preset.js","sourceRoot":"","sources":["../../../src/dto/locations/location.preset.ts"],"names":[],"mappings":";;;;;;AAAA,kDAAsE;AACtE,8CAAoB;AAWP,QAAA,2BAA2B,GAAG,aAAC,CAAC,MAAM,CAAC;IAClD,UAAU,EAAE,aAAC,CAAC,UAAU,CAAC,oBAAU,CAAC;IACpC,QAAQ,EAAE,aAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAE3B,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IACvC,KAAK,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAMU,QAAA,0BAA0B,GAAG,aAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC;IACxB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;CAC3B,CAAC,CAAC"}
|