@little-samo/samo-ai-sdk 0.2.1-rv1 → 0.2.1-rv10
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 +18 -18
- package/dist/dto/entities/gimmicks/gimmick.config.d.ts +2 -1
- package/dist/dto/entities/gimmicks/gimmick.config.js +1 -0
- package/dist/dto/entities/gimmicks/gimmick.config.js.map +1 -1
- package/dist/dto/entities/users/user.d.ts +3 -0
- package/dist/dto/entities/users/user.requests.d.ts +4 -4
- package/dist/dto/locations/location.d.ts +5 -1
- package/dist/dto/locations/location.events.d.ts +5 -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.message.d.ts +1 -0
- package/dist/dto/locations/location.preset.d.ts +6 -0
- package/dist/dto/locations/location.preset.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +148 -41
- package/dist/dto/locations/location.requests.js +29 -3
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/dto/locations/location.snapshot.d.ts +2 -0
- package/dist/models/entities/agents/agent.config.d.ts +4 -4
- package/dist/models/entities/agents/agent.config.js +7 -1
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +52 -29
- package/dist/models/locations/location.config.js +15 -2
- package/dist/models/locations/location.config.js.map +1 -1
- package/package.json +1 -1
|
@@ -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">, 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>;
|
|
@@ -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
|
-
rules?: string[] | undefined;
|
|
153
152
|
appearance?: string | undefined;
|
|
153
|
+
rules?: string[] | undefined;
|
|
154
154
|
avatar?: string | undefined;
|
|
155
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
155
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-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
|
-
rules?: string[] | undefined;
|
|
186
185
|
appearance?: string | undefined;
|
|
186
|
+
rules?: string[] | undefined;
|
|
187
187
|
avatar?: string | undefined;
|
|
188
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
188
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
189
189
|
languages?: string[] | undefined;
|
|
190
190
|
timeZone?: string | undefined;
|
|
191
191
|
greeting?: string | undefined;
|
|
@@ -217,10 +217,10 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
217
217
|
core?: {
|
|
218
218
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
219
219
|
} | undefined;
|
|
220
|
-
rules?: string[] | undefined;
|
|
221
220
|
appearance?: string | undefined;
|
|
221
|
+
rules?: string[] | undefined;
|
|
222
222
|
avatar?: string | undefined;
|
|
223
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
223
|
+
llmPreset?: "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;
|
|
@@ -253,10 +253,10 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
253
253
|
core?: {
|
|
254
254
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
255
255
|
} | undefined;
|
|
256
|
-
rules?: string[] | undefined;
|
|
257
256
|
appearance?: string | undefined;
|
|
257
|
+
rules?: string[] | undefined;
|
|
258
258
|
avatar?: string | undefined;
|
|
259
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
259
|
+
llmPreset?: "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;
|
|
@@ -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">, 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>;
|
|
@@ -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
|
-
rules?: string[] | undefined;
|
|
481
480
|
appearance?: string | undefined;
|
|
481
|
+
rules?: string[] | undefined;
|
|
482
482
|
avatar?: string | undefined;
|
|
483
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
483
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-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
|
-
rules?: string[] | undefined;
|
|
514
513
|
appearance?: string | undefined;
|
|
514
|
+
rules?: string[] | undefined;
|
|
515
515
|
avatar?: string | undefined;
|
|
516
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
516
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-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
|
-
rules?: string[] | undefined;
|
|
549
548
|
appearance?: string | undefined;
|
|
549
|
+
rules?: string[] | undefined;
|
|
550
550
|
avatar?: string | undefined;
|
|
551
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
551
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-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
|
-
rules?: string[] | undefined;
|
|
584
583
|
appearance?: string | undefined;
|
|
584
|
+
rules?: string[] | undefined;
|
|
585
585
|
avatar?: string | undefined;
|
|
586
|
-
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
586
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
587
587
|
languages?: string[] | undefined;
|
|
588
588
|
timeZone?: string | undefined;
|
|
589
589
|
greeting?: string | undefined;
|
|
@@ -2,7 +2,8 @@ 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 consistent anime-style character images using Stable Diffusion with gimmick appearance configuration as common prompt. Can optionally select one description from images array to combine with the common prompt for enhanced image generation while maintaining character identity and physical traits";
|
|
5
6
|
readonly notion: "Interacts with Notion platform for content management and collaboration";
|
|
6
7
|
};
|
|
7
8
|
export type GimmickCore = keyof typeof GimmickCoreDescriptions;
|
|
8
|
-
export declare const GimmickCoreSchema: z.ZodUnion<[z.ZodLiteral<"
|
|
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">[]]>;
|
|
@@ -5,6 +5,7 @@ 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 consistent anime-style character images using Stable Diffusion with gimmick appearance configuration as common prompt. Can optionally select one description from images array to combine with the common prompt for enhanced image generation while maintaining character identity and physical traits',
|
|
8
9
|
notion: 'Interacts with Notion platform for content management and collaboration',
|
|
9
10
|
};
|
|
10
11
|
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,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"}
|
|
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,yBAAyB,EACvB,mTAAmT;IACrT,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,6 +9,9 @@ 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;
|
|
12
15
|
birthDate: Date | null;
|
|
13
16
|
email: string | null;
|
|
14
17
|
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;
|
|
17
15
|
username?: string | undefined;
|
|
18
16
|
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;
|
|
23
21
|
username?: string | undefined;
|
|
24
22
|
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, LocationEnvironment, LocationPlatform, LocationType } from '@little-samo/samo-ai-sdk/models';
|
|
2
|
+
import type { LocationConfig, LocationConfigCanvas, 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,7 +12,9 @@ export interface LocationPublicDto {
|
|
|
12
12
|
maxUsers: number;
|
|
13
13
|
thumbnail: string | null;
|
|
14
14
|
ownerUserId: UserId | null;
|
|
15
|
+
canvasConfigs: LocationConfigCanvas[];
|
|
15
16
|
gimmicks: GimmickPublicDto[];
|
|
17
|
+
sourceLocationPresetId: bigint | null;
|
|
16
18
|
isPublished: boolean;
|
|
17
19
|
publishedAt: Date | null;
|
|
18
20
|
publishDescription: string | null;
|
|
@@ -37,6 +39,8 @@ export interface LocationPublicDto {
|
|
|
37
39
|
export interface LocationPrivateDto extends LocationPublicDto {
|
|
38
40
|
config: LocationConfig | null;
|
|
39
41
|
credentialTypes: string[];
|
|
42
|
+
overrideAgentLlmLevel: 'FREE' | 'LOW' | 'MEDIUM' | 'HIGH' | null;
|
|
43
|
+
isEditable: boolean;
|
|
40
44
|
}
|
|
41
45
|
export interface LocationListItemDto extends LocationPublicDto {
|
|
42
46
|
lastMessage: LocationMessageDto | null;
|
|
@@ -15,6 +15,7 @@ export declare const LocationEventType: {
|
|
|
15
15
|
readonly MessageProcessed: "MessageProcessed";
|
|
16
16
|
readonly RenderingUpdated: "RenderingUpdated";
|
|
17
17
|
readonly CanvasUpdated: "CanvasUpdated";
|
|
18
|
+
readonly CanvasCleared: "CanvasCleared";
|
|
18
19
|
readonly PauseUpdateUntilUpdated: "PauseUpdateUntilUpdated";
|
|
19
20
|
readonly LocationUpdated: "LocationUpdated";
|
|
20
21
|
};
|
|
@@ -82,6 +83,9 @@ export interface LocationCanvasUpdatedEventDto extends LocationEventDtoBase {
|
|
|
82
83
|
name: string;
|
|
83
84
|
canvas: LocationCanvasDto;
|
|
84
85
|
}
|
|
86
|
+
export interface LocationCanvasClearedEventDto extends LocationEventDtoBase {
|
|
87
|
+
type: typeof LocationEventType.CanvasCleared;
|
|
88
|
+
}
|
|
85
89
|
export interface LocationPauseUpdateUntilUpdatedEventDto extends LocationEventDtoBase {
|
|
86
90
|
type: typeof LocationEventType.PauseUpdateUntilUpdated;
|
|
87
91
|
pauseUpdateUntil: Date | null;
|
|
@@ -90,4 +94,4 @@ export interface LocationPauseUpdateUntilUpdatedEventDto extends LocationEventDt
|
|
|
90
94
|
export interface LocationUpdatedEventDto extends LocationEventDtoBase {
|
|
91
95
|
type: typeof LocationEventType.LocationUpdated;
|
|
92
96
|
}
|
|
93
|
-
export type LocationEventDto = LocationAgentExecutingEventDto | LocationAgentExecutedEventDto | LocationAgentJoinedEventDto | LocationAgentLeftEventDto | LocationUserJoinedEventDto | LocationUserLeftEventDto | LocationGimmickExecutingEventDto | LocationGimmickExecutedEventDto | LocationAddMessageEventDto | LocationUpdateMessageEventDto | LocationMessageProcessedEventDto | LocationRenderingUpdatedEventDto | LocationCanvasUpdatedEventDto | LocationPauseUpdateUntilUpdatedEventDto | LocationUpdatedEventDto;
|
|
97
|
+
export type LocationEventDto = LocationAgentExecutingEventDto | LocationAgentExecutedEventDto | LocationAgentJoinedEventDto | LocationAgentLeftEventDto | LocationUserJoinedEventDto | LocationUserLeftEventDto | LocationGimmickExecutingEventDto | LocationGimmickExecutedEventDto | LocationAddMessageEventDto | LocationUpdateMessageEventDto | LocationMessageProcessedEventDto | LocationRenderingUpdatedEventDto | LocationCanvasUpdatedEventDto | LocationCanvasClearedEventDto | LocationPauseUpdateUntilUpdatedEventDto | LocationUpdatedEventDto;
|
|
@@ -15,6 +15,7 @@ exports.LocationEventType = {
|
|
|
15
15
|
MessageProcessed: 'MessageProcessed',
|
|
16
16
|
RenderingUpdated: 'RenderingUpdated',
|
|
17
17
|
CanvasUpdated: 'CanvasUpdated',
|
|
18
|
+
CanvasCleared: 'CanvasCleared',
|
|
18
19
|
PauseUpdateUntilUpdated: 'PauseUpdateUntilUpdated',
|
|
19
20
|
LocationUpdated: 'LocationUpdated',
|
|
20
21
|
};
|
|
@@ -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,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"}
|
|
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,aAAa,EAAE,eAAe;IAC9B,uBAAuB,EAAE,yBAAyB;IAClD,eAAe,EAAE,iBAAiB;CAC1B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
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';
|
|
3
4
|
import type { AgentCostDto, AgentPublicDto, GimmickCostDto, GimmickPublicDto } from '../entities';
|
|
4
5
|
export declare const LocationPresetMessageSchema: z.ZodObject<{
|
|
5
6
|
entityType: z.ZodNativeEnum<{
|
|
@@ -37,6 +38,7 @@ export type LocationPresetCanvasDto = z.infer<typeof LocationPresetCanvasSchema>
|
|
|
37
38
|
export interface LocationPresetDto {
|
|
38
39
|
id: bigint;
|
|
39
40
|
name: string;
|
|
41
|
+
version: number;
|
|
40
42
|
presetDescription: string;
|
|
41
43
|
presetShortDescription: string;
|
|
42
44
|
thumbnail: string | null;
|
|
@@ -46,10 +48,13 @@ export interface LocationPresetDto {
|
|
|
46
48
|
gimmicks: GimmickPublicDto[];
|
|
47
49
|
gimmickCosts: GimmickCostDto[];
|
|
48
50
|
canvases: LocationPresetCanvasDto[];
|
|
51
|
+
canvasConfigs: LocationConfigCanvas[];
|
|
49
52
|
messages: LocationPresetMessageDto[];
|
|
50
53
|
isPublished: boolean;
|
|
51
54
|
publishedAt: Date | null;
|
|
52
55
|
hashtags: string[];
|
|
56
|
+
likeCount: number;
|
|
57
|
+
dislikeCount: number;
|
|
53
58
|
isPublic: boolean;
|
|
54
59
|
isAllowImport: boolean;
|
|
55
60
|
isSensitive: boolean;
|
|
@@ -57,6 +62,7 @@ export interface LocationPresetDto {
|
|
|
57
62
|
updatedAt: Date;
|
|
58
63
|
}
|
|
59
64
|
export interface LocationPresetDetailDto extends LocationPresetDto {
|
|
65
|
+
userRating: 'LIKE' | 'DISLIKE' | null;
|
|
60
66
|
locationCount: number;
|
|
61
67
|
totalUsedCredit: number;
|
|
62
68
|
totalMessageCount: number;
|
|
@@ -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;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;SACL,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,GAAG,IAAI,GAAG,IAAI,CAAC;SACpB,QAAQ,EAAE;CACd,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"}
|