@little-samo/samo-ai-sdk 0.2.1-rv8 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dto/entities/agents/agent.d.ts +0 -1
- package/dist/dto/entities/agents/agent.requests.d.ts +28 -28
- package/dist/dto/entities/gimmicks/gimmick.config.d.ts +1 -2
- package/dist/dto/entities/gimmicks/gimmick.config.js +0 -1
- package/dist/dto/entities/gimmicks/gimmick.config.js.map +1 -1
- package/dist/dto/entities/users/user.d.ts +0 -3
- package/dist/dto/entities/users/user.requests.d.ts +4 -4
- package/dist/dto/locations/location.d.ts +1 -4
- package/dist/dto/locations/location.preset.d.ts +3 -21
- package/dist/dto/locations/location.preset.js +2 -10
- package/dist/dto/locations/location.preset.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +26 -196
- package/dist/dto/locations/location.requests.js +4 -36
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/dto/locations/location.snapshot.d.ts +0 -2
- package/dist/dto/rankings/ranking.d.ts +0 -1
- package/dist/models/entities/agents/agent.config.d.ts +4 -4
- package/dist/models/entities/agents/agent.config.js +1 -7
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +14 -22
- package/dist/models/locations/location.config.js +1 -8
- package/dist/models/locations/location.config.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
page: number;
|
|
11
10
|
limit: number;
|
|
11
|
+
page: number;
|
|
12
12
|
}, {
|
|
13
|
-
page?: number | undefined;
|
|
14
13
|
limit?: number | undefined;
|
|
14
|
+
page?: 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"
|
|
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>;
|
|
@@ -149,10 +149,10 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
149
149
|
core?: {
|
|
150
150
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
151
151
|
} | undefined;
|
|
152
|
-
appearance?: string | undefined;
|
|
153
152
|
rules?: string[] | undefined;
|
|
153
|
+
appearance?: string | undefined;
|
|
154
154
|
avatar?: string | undefined;
|
|
155
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" |
|
|
155
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
156
156
|
languages?: string[] | undefined;
|
|
157
157
|
timeZone?: string | undefined;
|
|
158
158
|
greeting?: string | undefined;
|
|
@@ -182,10 +182,10 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
182
182
|
core?: {
|
|
183
183
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
184
184
|
} | undefined;
|
|
185
|
-
appearance?: string | undefined;
|
|
186
185
|
rules?: string[] | undefined;
|
|
186
|
+
appearance?: string | undefined;
|
|
187
187
|
avatar?: string | undefined;
|
|
188
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" |
|
|
188
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
189
189
|
languages?: string[] | undefined;
|
|
190
190
|
timeZone?: string | undefined;
|
|
191
191
|
greeting?: string | undefined;
|
|
@@ -212,16 +212,15 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
212
212
|
} | undefined;
|
|
213
213
|
}>;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
agentId: bigint;
|
|
216
215
|
config: {
|
|
217
216
|
name?: string | undefined;
|
|
218
217
|
core?: {
|
|
219
218
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
220
219
|
} | undefined;
|
|
221
|
-
appearance?: string | undefined;
|
|
222
220
|
rules?: string[] | undefined;
|
|
221
|
+
appearance?: string | undefined;
|
|
223
222
|
avatar?: string | undefined;
|
|
224
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" |
|
|
223
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
225
224
|
languages?: string[] | undefined;
|
|
226
225
|
timeZone?: string | undefined;
|
|
227
226
|
greeting?: string | undefined;
|
|
@@ -247,17 +246,17 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
247
246
|
} | undefined;
|
|
248
247
|
} | undefined;
|
|
249
248
|
};
|
|
250
|
-
}, {
|
|
251
249
|
agentId: bigint;
|
|
250
|
+
}, {
|
|
252
251
|
config: {
|
|
253
252
|
name?: string | undefined;
|
|
254
253
|
core?: {
|
|
255
254
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
256
255
|
} | undefined;
|
|
257
|
-
appearance?: string | undefined;
|
|
258
256
|
rules?: string[] | undefined;
|
|
257
|
+
appearance?: string | undefined;
|
|
259
258
|
avatar?: string | undefined;
|
|
260
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" |
|
|
259
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
261
260
|
languages?: string[] | undefined;
|
|
262
261
|
timeZone?: string | undefined;
|
|
263
262
|
greeting?: string | undefined;
|
|
@@ -283,6 +282,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
283
282
|
} | undefined;
|
|
284
283
|
} | undefined;
|
|
285
284
|
};
|
|
285
|
+
agentId: bigint;
|
|
286
286
|
}>;
|
|
287
287
|
export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
|
|
288
288
|
export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
|
|
@@ -308,7 +308,6 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
308
308
|
token: string;
|
|
309
309
|
}>]>;
|
|
310
310
|
}, "strip", z.ZodTypeAny, {
|
|
311
|
-
agentId: bigint;
|
|
312
311
|
credential: {
|
|
313
312
|
type: "notion";
|
|
314
313
|
token: string;
|
|
@@ -316,8 +315,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
316
315
|
type: "notion";
|
|
317
316
|
token: string;
|
|
318
317
|
};
|
|
319
|
-
}, {
|
|
320
318
|
agentId: bigint;
|
|
319
|
+
}, {
|
|
321
320
|
credential: {
|
|
322
321
|
type: "notion";
|
|
323
322
|
token: string;
|
|
@@ -325,6 +324,7 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
325
324
|
type: "notion";
|
|
326
325
|
token: string;
|
|
327
326
|
};
|
|
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
|
-
agentId: bigint;
|
|
339
338
|
credentialType: string;
|
|
340
|
-
}, {
|
|
341
339
|
agentId: bigint;
|
|
340
|
+
}, {
|
|
342
341
|
credentialType: string;
|
|
342
|
+
agentId: bigint;
|
|
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
|
-
page: number;
|
|
354
353
|
limit: number;
|
|
354
|
+
page: number;
|
|
355
355
|
}, {
|
|
356
|
-
page?: number | undefined;
|
|
357
356
|
limit?: number | undefined;
|
|
357
|
+
page?: 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"
|
|
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">]>>;
|
|
382
382
|
languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
383
383
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
384
384
|
greeting: z.ZodOptional<z.ZodString>;
|
|
@@ -477,10 +477,10 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
477
477
|
core?: {
|
|
478
478
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
479
479
|
} | undefined;
|
|
480
|
-
appearance?: string | undefined;
|
|
481
480
|
rules?: string[] | undefined;
|
|
481
|
+
appearance?: string | undefined;
|
|
482
482
|
avatar?: string | undefined;
|
|
483
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" |
|
|
483
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
484
484
|
languages?: string[] | undefined;
|
|
485
485
|
timeZone?: string | undefined;
|
|
486
486
|
greeting?: string | undefined;
|
|
@@ -510,10 +510,10 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
510
510
|
core?: {
|
|
511
511
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
512
512
|
} | undefined;
|
|
513
|
-
appearance?: string | undefined;
|
|
514
513
|
rules?: string[] | undefined;
|
|
514
|
+
appearance?: string | undefined;
|
|
515
515
|
avatar?: string | undefined;
|
|
516
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" |
|
|
516
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
517
517
|
languages?: string[] | undefined;
|
|
518
518
|
timeZone?: string | undefined;
|
|
519
519
|
greeting?: string | undefined;
|
|
@@ -545,10 +545,10 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
545
545
|
core?: {
|
|
546
546
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
547
547
|
} | undefined;
|
|
548
|
-
appearance?: string | undefined;
|
|
549
548
|
rules?: string[] | undefined;
|
|
549
|
+
appearance?: string | undefined;
|
|
550
550
|
avatar?: string | undefined;
|
|
551
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" |
|
|
551
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
552
552
|
languages?: string[] | undefined;
|
|
553
553
|
timeZone?: string | undefined;
|
|
554
554
|
greeting?: string | undefined;
|
|
@@ -580,10 +580,10 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
580
580
|
core?: {
|
|
581
581
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
582
582
|
} | undefined;
|
|
583
|
-
appearance?: string | undefined;
|
|
584
583
|
rules?: string[] | undefined;
|
|
584
|
+
appearance?: string | undefined;
|
|
585
585
|
avatar?: string | undefined;
|
|
586
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" |
|
|
586
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
587
587
|
languages?: string[] | undefined;
|
|
588
588
|
timeZone?: string | undefined;
|
|
589
589
|
greeting?: string | undefined;
|
|
@@ -2,8 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const GimmickCoreDescriptions: {
|
|
3
3
|
readonly web_search: "Searches the web for up-to-date or missing information using an LLM, providing both a summary and detailed results. Execution takes approximately 30 seconds";
|
|
4
4
|
readonly image_generator: "Generates an image using an LLM based on text prompts and optional reference images. Execution takes approximately 30 seconds";
|
|
5
|
-
readonly character_image_generator: "Generates anime-style character images using Stable Diffusion with gimmick appearance configuration as base prompt and additional custom prompts for image generation";
|
|
6
5
|
readonly notion: "Interacts with Notion platform for content management and collaboration";
|
|
7
6
|
};
|
|
8
7
|
export type GimmickCore = keyof typeof GimmickCoreDescriptions;
|
|
9
|
-
export declare const GimmickCoreSchema: z.ZodUnion<[z.ZodLiteral<"
|
|
8
|
+
export declare const GimmickCoreSchema: z.ZodUnion<[z.ZodLiteral<"notion" | "web_search" | "image_generator">, z.ZodLiteral<"notion" | "web_search" | "image_generator">, ...z.ZodLiteral<"notion" | "web_search" | "image_generator">[]]>;
|
|
@@ -5,7 +5,6 @@ const zod_1 = require("zod");
|
|
|
5
5
|
exports.GimmickCoreDescriptions = {
|
|
6
6
|
web_search: 'Searches the web for up-to-date or missing information using an LLM, providing both a summary and detailed results. Execution takes approximately 30 seconds',
|
|
7
7
|
image_generator: 'Generates an image using an LLM based on text prompts and optional reference images. Execution takes approximately 30 seconds',
|
|
8
|
-
character_image_generator: 'Generates anime-style character images using Stable Diffusion with gimmick appearance configuration as base prompt and additional custom prompts for image generation',
|
|
9
8
|
notion: 'Interacts with Notion platform for content management and collaboration',
|
|
10
9
|
};
|
|
11
10
|
exports.GimmickCoreSchema = zod_1.z.union(Object.keys(exports.GimmickCoreDescriptions).map((key) => zod_1.z.literal(key).describe(exports.GimmickCoreDescriptions[key])));
|
|
@@ -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,8JAA8J;IAChK,eAAe,EACb,+HAA+H;IACjI,
|
|
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,8JAA8J;IAChK,eAAe,EACb,+HAA+H;IACjI,MAAM,EACJ,yEAAyE;CACnE,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,9 +9,6 @@ export interface UserPublicDto {
|
|
|
9
9
|
appearance: string | null;
|
|
10
10
|
}
|
|
11
11
|
export interface UserPrivateDto extends UserPublicDto {
|
|
12
|
-
locale: string;
|
|
13
|
-
country: string;
|
|
14
|
-
adminLevel: number;
|
|
15
12
|
birthDate: Date | null;
|
|
16
13
|
email: string | null;
|
|
17
14
|
defaultCredits: number;
|
|
@@ -12,16 +12,16 @@ export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
|
12
12
|
appearance: z.ZodOptional<z.ZodString>;
|
|
13
13
|
isAllowSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
appearance?: string | undefined;
|
|
16
|
+
birthDate?: Date | undefined;
|
|
15
17
|
username?: string | undefined;
|
|
16
18
|
nickname?: string | undefined;
|
|
17
|
-
birthDate?: Date | undefined;
|
|
18
|
-
appearance?: string | undefined;
|
|
19
19
|
isAllowSensitive?: boolean | undefined;
|
|
20
20
|
}, {
|
|
21
|
+
appearance?: string | undefined;
|
|
22
|
+
birthDate?: Date | undefined;
|
|
21
23
|
username?: string | undefined;
|
|
22
24
|
nickname?: string | undefined;
|
|
23
|
-
birthDate?: Date | undefined;
|
|
24
|
-
appearance?: string | undefined;
|
|
25
25
|
isAllowSensitive?: boolean | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
export type UpdateCurrentUserBodyDto = z.infer<typeof UpdateCurrentUserBodySchema>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AgentId, EntityId, EntityType, LocationId, UserId } from '@little-samo/samo-ai';
|
|
2
|
-
import type { LocationConfig,
|
|
2
|
+
import type { LocationConfig, LocationEnvironment, LocationPlatform, LocationType } from '@little-samo/samo-ai-sdk/models';
|
|
3
3
|
import type { LocationMessageDto } from './location.message';
|
|
4
4
|
import type { AgentCostDto } from '../entities/agents/agent';
|
|
5
5
|
import type { GimmickCostDto, GimmickPublicDto } from '../entities/gimmicks/gimmick';
|
|
@@ -12,9 +12,7 @@ export interface LocationPublicDto {
|
|
|
12
12
|
maxUsers: number;
|
|
13
13
|
thumbnail: string | null;
|
|
14
14
|
ownerUserId: UserId | null;
|
|
15
|
-
canvasConfigs: LocationConfigCanvas[];
|
|
16
15
|
gimmicks: GimmickPublicDto[];
|
|
17
|
-
sourceLocationPresetId: bigint | null;
|
|
18
16
|
isPublished: boolean;
|
|
19
17
|
publishedAt: Date | null;
|
|
20
18
|
publishDescription: string | null;
|
|
@@ -39,7 +37,6 @@ export interface LocationPublicDto {
|
|
|
39
37
|
export interface LocationPrivateDto extends LocationPublicDto {
|
|
40
38
|
config: LocationConfig | null;
|
|
41
39
|
credentialTypes: string[];
|
|
42
|
-
isEditable: boolean;
|
|
43
40
|
}
|
|
44
41
|
export interface LocationListItemDto extends LocationPublicDto {
|
|
45
42
|
lastMessage: LocationMessageDto | null;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { UserId } from '@little-samo/samo-ai';
|
|
2
2
|
import z from 'zod';
|
|
3
|
-
import type { LocationConfigCanvas } from '@little-samo/samo-ai-sdk/models';
|
|
4
3
|
import type { AgentCostDto, AgentPublicDto, GimmickCostDto, GimmickPublicDto } from '../entities';
|
|
5
4
|
export declare const LocationPresetMessageSchema: z.ZodObject<{
|
|
6
5
|
entityType: z.ZodNativeEnum<{
|
|
@@ -10,44 +9,27 @@ export declare const LocationPresetMessageSchema: z.ZodObject<{
|
|
|
10
9
|
readonly Gimmick: "gimmick";
|
|
11
10
|
}>;
|
|
12
11
|
entityId: z.ZodBigInt;
|
|
13
|
-
message: z.
|
|
14
|
-
image: z.ZodOptional<z.ZodString>;
|
|
12
|
+
message: z.ZodString;
|
|
15
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
message: string;
|
|
16
15
|
entityType: "system" | "agent" | "user" | "gimmick";
|
|
17
16
|
entityId: bigint;
|
|
18
|
-
message?: string | undefined;
|
|
19
|
-
image?: string | undefined;
|
|
20
17
|
}, {
|
|
18
|
+
message: string;
|
|
21
19
|
entityType: "system" | "agent" | "user" | "gimmick";
|
|
22
20
|
entityId: bigint;
|
|
23
|
-
message?: string | undefined;
|
|
24
|
-
image?: string | undefined;
|
|
25
21
|
}>;
|
|
26
22
|
export type LocationPresetMessageDto = z.infer<typeof LocationPresetMessageSchema>;
|
|
27
|
-
export declare const LocationPresetCanvasSchema: z.ZodObject<{
|
|
28
|
-
name: z.ZodString;
|
|
29
|
-
text: z.ZodString;
|
|
30
|
-
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
name: string;
|
|
32
|
-
text: string;
|
|
33
|
-
}, {
|
|
34
|
-
name: string;
|
|
35
|
-
text: string;
|
|
36
|
-
}>;
|
|
37
|
-
export type LocationPresetCanvasDto = z.infer<typeof LocationPresetCanvasSchema>;
|
|
38
23
|
export interface LocationPresetDto {
|
|
39
24
|
id: bigint;
|
|
40
25
|
name: string;
|
|
41
26
|
presetDescription: string;
|
|
42
|
-
presetShortDescription: string;
|
|
43
27
|
thumbnail: string | null;
|
|
44
28
|
ownerUserId: UserId | null;
|
|
45
29
|
agents: AgentPublicDto[];
|
|
46
30
|
agentCosts: AgentCostDto[];
|
|
47
31
|
gimmicks: GimmickPublicDto[];
|
|
48
32
|
gimmickCosts: GimmickCostDto[];
|
|
49
|
-
canvases: LocationPresetCanvasDto[];
|
|
50
|
-
canvasConfigs: LocationConfigCanvas[];
|
|
51
33
|
messages: LocationPresetMessageDto[];
|
|
52
34
|
isPublished: boolean;
|
|
53
35
|
publishedAt: Date | null;
|
|
@@ -3,20 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.LocationPresetMessageSchema = void 0;
|
|
7
7
|
const samo_ai_1 = require("@little-samo/samo-ai");
|
|
8
8
|
const zod_1 = __importDefault(require("zod"));
|
|
9
9
|
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
|
-
message: zod_1.default.string().max(800)
|
|
13
|
-
image: zod_1.default
|
|
14
|
-
.string()
|
|
15
|
-
.max(4 * 1024 * 1024)
|
|
16
|
-
.optional(),
|
|
17
|
-
});
|
|
18
|
-
exports.LocationPresetCanvasSchema = zod_1.default.object({
|
|
19
|
-
name: zod_1.default.string().max(32),
|
|
20
|
-
text: zod_1.default.string().max(5000),
|
|
12
|
+
message: zod_1.default.string().max(800),
|
|
21
13
|
});
|
|
22
14
|
//# sourceMappingURL=location.preset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.preset.js","sourceRoot":"","sources":["../../../src/dto/locations/location.preset.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0D;AAC1D,8CAAoB;
|
|
1
|
+
{"version":3,"file":"location.preset.js","sourceRoot":"","sources":["../../../src/dto/locations/location.preset.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0D;AAC1D,8CAAoB;AASP,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;IAC3B,OAAO,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;CAC7B,CAAC,CAAC"}
|