@little-samo/samo-ai-sdk 0.2.0 → 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 +34 -34
- 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 +6 -0
- package/dist/dto/entities/users/user.events.d.ts +7 -2
- package/dist/dto/entities/users/user.events.js +1 -0
- package/dist/dto/entities/users/user.events.js.map +1 -1
- package/dist/dto/entities/users/user.requests.d.ts +39 -0
- package/dist/dto/entities/users/user.requests.js +22 -1
- 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.events.d.ts +2 -1
- package/dist/dto/items/item.events.js.map +1 -1
- package/dist/dto/locations/location.d.ts +7 -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 +63 -8
- package/dist/dto/locations/location.preset.js +19 -0
- package/dist/dto/locations/location.preset.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +430 -61
- package/dist/dto/locations/location.requests.js +82 -7
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/dto/locations/location.snapshot.d.ts +2 -0
- package/dist/dto/rankings/index.d.ts +1 -0
- package/dist/dto/rankings/index.js +18 -0
- package/dist/dto/rankings/index.js.map +1 -0
- package/dist/dto/rankings/ranking.d.ts +14 -0
- package/dist/dto/rankings/ranking.js +3 -0
- package/dist/dto/rankings/ranking.js.map +1 -0
- package/dist/models/entities/agents/agent.config.d.ts +4 -4
- package/dist/models/entities/agents/agent.config.js +9 -3
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +48 -25
- package/dist/models/locations/location.config.js +16 -3
- package/dist/models/locations/location.config.js.map +1 -1
- package/package.json +3 -3
|
@@ -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>;
|
|
@@ -146,12 +146,13 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
146
146
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
147
147
|
}, "strict", z.ZodTypeAny, {
|
|
148
148
|
name?: string | undefined;
|
|
149
|
-
avatar?: string | undefined;
|
|
150
|
-
appearance?: string | undefined;
|
|
151
149
|
core?: {
|
|
152
150
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
153
151
|
} | undefined;
|
|
154
|
-
|
|
152
|
+
appearance?: string | undefined;
|
|
153
|
+
rules?: string[] | undefined;
|
|
154
|
+
avatar?: string | undefined;
|
|
155
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
155
156
|
languages?: string[] | undefined;
|
|
156
157
|
timeZone?: string | undefined;
|
|
157
158
|
greeting?: string | undefined;
|
|
@@ -176,15 +177,15 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
176
177
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
177
178
|
} | undefined;
|
|
178
179
|
} | undefined;
|
|
179
|
-
rules?: string[] | undefined;
|
|
180
180
|
}, {
|
|
181
181
|
name?: string | undefined;
|
|
182
|
-
avatar?: string | undefined;
|
|
183
|
-
appearance?: string | undefined;
|
|
184
182
|
core?: {
|
|
185
183
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
186
184
|
} | undefined;
|
|
187
|
-
|
|
185
|
+
appearance?: string | undefined;
|
|
186
|
+
rules?: string[] | undefined;
|
|
187
|
+
avatar?: string | undefined;
|
|
188
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
188
189
|
languages?: string[] | undefined;
|
|
189
190
|
timeZone?: string | undefined;
|
|
190
191
|
greeting?: string | undefined;
|
|
@@ -209,17 +210,17 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
209
210
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
210
211
|
} | undefined;
|
|
211
212
|
} | undefined;
|
|
212
|
-
rules?: string[] | undefined;
|
|
213
213
|
}>;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
215
|
config: {
|
|
216
216
|
name?: string | undefined;
|
|
217
|
-
avatar?: string | undefined;
|
|
218
|
-
appearance?: string | undefined;
|
|
219
217
|
core?: {
|
|
220
218
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
221
219
|
} | undefined;
|
|
222
|
-
|
|
220
|
+
appearance?: string | undefined;
|
|
221
|
+
rules?: string[] | undefined;
|
|
222
|
+
avatar?: string | undefined;
|
|
223
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
223
224
|
languages?: string[] | undefined;
|
|
224
225
|
timeZone?: string | undefined;
|
|
225
226
|
greeting?: string | undefined;
|
|
@@ -244,18 +245,18 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
244
245
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
245
246
|
} | undefined;
|
|
246
247
|
} | undefined;
|
|
247
|
-
rules?: string[] | undefined;
|
|
248
248
|
};
|
|
249
249
|
agentId: bigint;
|
|
250
250
|
}, {
|
|
251
251
|
config: {
|
|
252
252
|
name?: string | undefined;
|
|
253
|
-
avatar?: string | undefined;
|
|
254
|
-
appearance?: string | undefined;
|
|
255
253
|
core?: {
|
|
256
254
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
257
255
|
} | undefined;
|
|
258
|
-
|
|
256
|
+
appearance?: string | undefined;
|
|
257
|
+
rules?: string[] | undefined;
|
|
258
|
+
avatar?: string | undefined;
|
|
259
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
259
260
|
languages?: string[] | undefined;
|
|
260
261
|
timeZone?: string | undefined;
|
|
261
262
|
greeting?: string | undefined;
|
|
@@ -280,7 +281,6 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
280
281
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
281
282
|
} | undefined;
|
|
282
283
|
} | undefined;
|
|
283
|
-
rules?: string[] | undefined;
|
|
284
284
|
};
|
|
285
285
|
agentId: bigint;
|
|
286
286
|
}>;
|
|
@@ -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>;
|
|
@@ -474,12 +474,13 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
474
474
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
475
475
|
}, "strict", z.ZodTypeAny, {
|
|
476
476
|
name?: string | undefined;
|
|
477
|
-
avatar?: string | undefined;
|
|
478
|
-
appearance?: string | undefined;
|
|
479
477
|
core?: {
|
|
480
478
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
481
479
|
} | undefined;
|
|
482
|
-
|
|
480
|
+
appearance?: string | undefined;
|
|
481
|
+
rules?: string[] | undefined;
|
|
482
|
+
avatar?: string | undefined;
|
|
483
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
483
484
|
languages?: string[] | undefined;
|
|
484
485
|
timeZone?: string | undefined;
|
|
485
486
|
greeting?: string | undefined;
|
|
@@ -504,15 +505,15 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
504
505
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
505
506
|
} | undefined;
|
|
506
507
|
} | undefined;
|
|
507
|
-
rules?: string[] | undefined;
|
|
508
508
|
}, {
|
|
509
509
|
name?: string | undefined;
|
|
510
|
-
avatar?: string | undefined;
|
|
511
|
-
appearance?: string | undefined;
|
|
512
510
|
core?: {
|
|
513
511
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
514
512
|
} | undefined;
|
|
515
|
-
|
|
513
|
+
appearance?: string | undefined;
|
|
514
|
+
rules?: string[] | undefined;
|
|
515
|
+
avatar?: string | undefined;
|
|
516
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
516
517
|
languages?: string[] | undefined;
|
|
517
518
|
timeZone?: string | undefined;
|
|
518
519
|
greeting?: string | undefined;
|
|
@@ -537,17 +538,17 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
537
538
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
538
539
|
} | undefined;
|
|
539
540
|
} | undefined;
|
|
540
|
-
rules?: string[] | undefined;
|
|
541
541
|
}>;
|
|
542
542
|
}, "strip", z.ZodTypeAny, {
|
|
543
543
|
config: {
|
|
544
544
|
name?: string | undefined;
|
|
545
|
-
avatar?: string | undefined;
|
|
546
|
-
appearance?: string | undefined;
|
|
547
545
|
core?: {
|
|
548
546
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
549
547
|
} | undefined;
|
|
550
|
-
|
|
548
|
+
appearance?: string | undefined;
|
|
549
|
+
rules?: string[] | undefined;
|
|
550
|
+
avatar?: string | undefined;
|
|
551
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
551
552
|
languages?: string[] | undefined;
|
|
552
553
|
timeZone?: string | undefined;
|
|
553
554
|
greeting?: string | undefined;
|
|
@@ -572,17 +573,17 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
572
573
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
573
574
|
} | undefined;
|
|
574
575
|
} | undefined;
|
|
575
|
-
rules?: string[] | undefined;
|
|
576
576
|
};
|
|
577
577
|
}, {
|
|
578
578
|
config: {
|
|
579
579
|
name?: string | undefined;
|
|
580
|
-
avatar?: string | undefined;
|
|
581
|
-
appearance?: string | undefined;
|
|
582
580
|
core?: {
|
|
583
581
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
584
582
|
} | undefined;
|
|
585
|
-
|
|
583
|
+
appearance?: string | undefined;
|
|
584
|
+
rules?: string[] | undefined;
|
|
585
|
+
avatar?: string | undefined;
|
|
586
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "xai-low" | "xai-medium" | undefined;
|
|
586
587
|
languages?: string[] | undefined;
|
|
587
588
|
timeZone?: string | undefined;
|
|
588
589
|
greeting?: string | undefined;
|
|
@@ -607,7 +608,6 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
607
608
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
608
609
|
} | undefined;
|
|
609
610
|
} | undefined;
|
|
610
|
-
rules?: string[] | undefined;
|
|
611
611
|
};
|
|
612
612
|
}>;
|
|
613
613
|
export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
|
|
@@ -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<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
|
|
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"}
|
|
@@ -6,11 +6,17 @@ export interface UserPublicDto {
|
|
|
6
6
|
firstName: string | null;
|
|
7
7
|
lastName: string | null;
|
|
8
8
|
profilePicture: string | null;
|
|
9
|
+
appearance: string | null;
|
|
9
10
|
}
|
|
10
11
|
export interface UserPrivateDto extends UserPublicDto {
|
|
12
|
+
locale: string;
|
|
13
|
+
country: string;
|
|
14
|
+
adminLevel: number;
|
|
15
|
+
birthDate: Date | null;
|
|
11
16
|
email: string | null;
|
|
12
17
|
defaultCredits: number;
|
|
13
18
|
maxAgents: number;
|
|
14
19
|
maxLocationAgents: number;
|
|
15
20
|
maxAgentLocations: number;
|
|
21
|
+
isAllowSensitive: boolean;
|
|
16
22
|
}
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
+
import { UserId } from '@little-samo/samo-ai';
|
|
1
2
|
import { ItemEventDto } from '../../items';
|
|
2
3
|
export declare const UserEventType: {
|
|
3
4
|
readonly ItemEvent: "ItemEvent";
|
|
5
|
+
readonly UserUpdated: "UserUpdated";
|
|
4
6
|
};
|
|
5
7
|
export type UserEventType = (typeof UserEventType)[keyof typeof UserEventType];
|
|
6
8
|
export interface UserEventDtoBase {
|
|
7
|
-
userId:
|
|
9
|
+
userId: UserId;
|
|
8
10
|
type: UserEventType;
|
|
9
11
|
}
|
|
10
12
|
export interface UserItemEventDto extends UserEventDtoBase {
|
|
11
13
|
type: typeof UserEventType.ItemEvent;
|
|
12
14
|
itemEvent: ItemEventDto;
|
|
13
15
|
}
|
|
14
|
-
export
|
|
16
|
+
export interface UserUpdatedEventDto extends UserEventDtoBase {
|
|
17
|
+
type: typeof UserEventType.UserUpdated;
|
|
18
|
+
}
|
|
19
|
+
export type UserEventDto = UserItemEventDto | UserUpdatedEventDto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.events.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.events.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"user.events.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.events.ts"],"names":[],"mappings":";;;AAIa,QAAA,aAAa,GAAG;IAC3B,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;CAClB,CAAC"}
|
|
@@ -5,6 +5,45 @@ export type GetCurrentUserQueryDto = z.infer<typeof GetCurrentUserQuerySchema>;
|
|
|
5
5
|
export interface GetCurrentUserResponseDto {
|
|
6
6
|
user: UserPrivateDto;
|
|
7
7
|
}
|
|
8
|
+
export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
9
|
+
username: z.ZodOptional<z.ZodString>;
|
|
10
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
11
|
+
birthDate: z.ZodOptional<z.ZodDate>;
|
|
12
|
+
appearance: z.ZodOptional<z.ZodString>;
|
|
13
|
+
isAllowSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
username?: string | undefined;
|
|
16
|
+
nickname?: string | undefined;
|
|
17
|
+
birthDate?: Date | undefined;
|
|
18
|
+
appearance?: string | undefined;
|
|
19
|
+
isAllowSensitive?: boolean | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
username?: string | undefined;
|
|
22
|
+
nickname?: string | undefined;
|
|
23
|
+
birthDate?: Date | undefined;
|
|
24
|
+
appearance?: string | undefined;
|
|
25
|
+
isAllowSensitive?: boolean | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
export type UpdateCurrentUserBodyDto = z.infer<typeof UpdateCurrentUserBodySchema>;
|
|
28
|
+
export interface UpdateCurrentUserResponseDto {
|
|
29
|
+
success: boolean;
|
|
30
|
+
error?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const ValidateUserFieldBodySchema: z.ZodObject<{
|
|
33
|
+
username: z.ZodOptional<z.ZodString>;
|
|
34
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
username?: string | undefined;
|
|
37
|
+
nickname?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
username?: string | undefined;
|
|
40
|
+
nickname?: string | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export type ValidateUserFieldBodyDto = z.infer<typeof ValidateUserFieldBodySchema>;
|
|
43
|
+
export interface ValidateUserFieldResponseDto {
|
|
44
|
+
isValid: boolean;
|
|
45
|
+
message?: string;
|
|
46
|
+
}
|
|
8
47
|
export declare const GetUsersByIdsQuerySchema: z.ZodObject<{
|
|
9
48
|
userIds: z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>;
|
|
10
49
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCurrentUserSchema = exports.GetUsersByIdsQuerySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
3
|
+
exports.GetCurrentUserSchema = exports.GetUsersByIdsQuerySchema = exports.ValidateUserFieldBodySchema = exports.UpdateCurrentUserBodySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.GetCurrentUserQuerySchema = zod_1.z.object({});
|
|
6
|
+
exports.UpdateCurrentUserBodySchema = zod_1.z.object({
|
|
7
|
+
username: zod_1.z
|
|
8
|
+
.string()
|
|
9
|
+
.min(4)
|
|
10
|
+
.max(16)
|
|
11
|
+
.regex(/^[a-z0-9_]+$/)
|
|
12
|
+
.optional(),
|
|
13
|
+
nickname: zod_1.z.string().min(4).max(32).optional(),
|
|
14
|
+
birthDate: zod_1.z.coerce.date().optional(),
|
|
15
|
+
appearance: zod_1.z.string().max(500).optional(),
|
|
16
|
+
isAllowSensitive: zod_1.z.boolean().optional(),
|
|
17
|
+
});
|
|
18
|
+
exports.ValidateUserFieldBodySchema = zod_1.z.object({
|
|
19
|
+
username: zod_1.z
|
|
20
|
+
.string()
|
|
21
|
+
.min(4)
|
|
22
|
+
.max(16)
|
|
23
|
+
.regex(/^[a-z0-9_]+$/)
|
|
24
|
+
.optional(),
|
|
25
|
+
nickname: zod_1.z.string().min(4).max(32).optional(),
|
|
26
|
+
});
|
|
6
27
|
exports.GetUsersByIdsQuerySchema = zod_1.z.object({
|
|
7
28
|
userIds: zod_1.z
|
|
8
29
|
.string()
|
|
@@ -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,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC;SACP,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACjE,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE;QACnD,OAAO,EAAE,oCAAoC;KAC9C,CAAC;CACL,CAAC,CAAC;AAaU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AASX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AASzC,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,KAAK,CAAC,cAAc,CAAC;SACrB,QAAQ,EAAE;IACb,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACrC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAE1C,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC;AAYU,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;CAC/C,CAAC,CAAC;AAYU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC;SACP,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACjE,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE;QACnD,OAAO,EAAE,oCAAoC;KAC9C,CAAC;CACL,CAAC,CAAC;AAaU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|
package/dist/dto/index.d.ts
CHANGED
package/dist/dto/index.js
CHANGED
|
@@ -17,4 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./entities"), exports);
|
|
18
18
|
__exportStar(require("./items"), exports);
|
|
19
19
|
__exportStar(require("./locations"), exports);
|
|
20
|
+
__exportStar(require("./rankings"), exports);
|
|
20
21
|
//# 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"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/dto/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,0CAAwB;AACxB,8CAA4B;AAC5B,6CAA2B"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ItemId } from '@little-samo/samo-ai';
|
|
1
2
|
import { ItemDto, ItemUpdateDto } from './item';
|
|
2
3
|
export declare const ItemEventType: {
|
|
3
4
|
readonly Created: "Created";
|
|
@@ -5,7 +6,7 @@ export declare const ItemEventType: {
|
|
|
5
6
|
};
|
|
6
7
|
export type ItemEventType = (typeof ItemEventType)[keyof typeof ItemEventType];
|
|
7
8
|
export interface ItemEventDtoBase {
|
|
8
|
-
itemId:
|
|
9
|
+
itemId: ItemId;
|
|
9
10
|
type: ItemEventType;
|
|
10
11
|
}
|
|
11
12
|
export interface ItemCreatedEventDto extends ItemEventDtoBase {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.events.js","sourceRoot":"","sources":["../../../src/dto/items/item.events.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"item.events.js","sourceRoot":"","sources":["../../../src/dto/items/item.events.ts"],"names":[],"mappings":";;;AAIa,QAAA,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;CACV,CAAC"}
|
|
@@ -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,10 +12,13 @@ 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;
|
|
21
|
+
hashtags: string[];
|
|
19
22
|
param1: bigint;
|
|
20
23
|
param2: bigint;
|
|
21
24
|
param3: bigint;
|
|
@@ -29,12 +32,15 @@ export interface LocationPublicDto {
|
|
|
29
32
|
chatRequiresPaidCredit: boolean;
|
|
30
33
|
isPublic: boolean;
|
|
31
34
|
isAdminChat: boolean;
|
|
35
|
+
isSensitive: boolean;
|
|
32
36
|
createdAt: Date;
|
|
33
37
|
updatedAt: Date;
|
|
34
38
|
}
|
|
35
39
|
export interface LocationPrivateDto extends LocationPublicDto {
|
|
36
40
|
config: LocationConfig | null;
|
|
37
41
|
credentialTypes: string[];
|
|
42
|
+
overrideAgentLlmLevel: 'FREE' | 'LOW' | 'MEDIUM' | 'HIGH' | null;
|
|
43
|
+
isEditable: boolean;
|
|
38
44
|
}
|
|
39
45
|
export interface LocationListItemDto extends LocationPublicDto {
|
|
40
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,14 +1,69 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
1
|
+
import { UserId } from '@little-samo/samo-ai';
|
|
2
|
+
import z from 'zod';
|
|
3
|
+
import type { LocationConfigCanvas } from '@little-samo/samo-ai-sdk/models';
|
|
4
|
+
import type { AgentCostDto, AgentPublicDto, GimmickCostDto, GimmickPublicDto } from '../entities';
|
|
5
|
+
export declare const LocationPresetMessageSchema: z.ZodObject<{
|
|
6
|
+
entityType: z.ZodNativeEnum<{
|
|
7
|
+
readonly System: "system";
|
|
8
|
+
readonly Agent: "agent";
|
|
9
|
+
readonly User: "user";
|
|
10
|
+
readonly Gimmick: "gimmick";
|
|
11
|
+
}>;
|
|
12
|
+
entityId: z.ZodBigInt;
|
|
13
|
+
message: z.ZodOptional<z.ZodString>;
|
|
14
|
+
image: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
entityType: "system" | "agent" | "user" | "gimmick";
|
|
17
|
+
entityId: bigint;
|
|
18
|
+
message?: string | undefined;
|
|
19
|
+
image?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
entityType: "system" | "agent" | "user" | "gimmick";
|
|
22
|
+
entityId: bigint;
|
|
23
|
+
message?: string | undefined;
|
|
24
|
+
image?: string | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
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>;
|
|
3
38
|
export interface LocationPresetDto {
|
|
4
39
|
id: bigint;
|
|
5
|
-
presetName: string;
|
|
6
|
-
presetShortDescription: string;
|
|
7
|
-
presetDescription: string;
|
|
8
40
|
name: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
41
|
+
version: number;
|
|
42
|
+
presetDescription: string;
|
|
43
|
+
presetShortDescription: string;
|
|
44
|
+
thumbnail: string | null;
|
|
45
|
+
ownerUserId: UserId | null;
|
|
46
|
+
agents: AgentPublicDto[];
|
|
47
|
+
agentCosts: AgentCostDto[];
|
|
48
|
+
gimmicks: GimmickPublicDto[];
|
|
49
|
+
gimmickCosts: GimmickCostDto[];
|
|
50
|
+
canvases: LocationPresetCanvasDto[];
|
|
51
|
+
canvasConfigs: LocationConfigCanvas[];
|
|
52
|
+
messages: LocationPresetMessageDto[];
|
|
53
|
+
isPublished: boolean;
|
|
54
|
+
publishedAt: Date | null;
|
|
55
|
+
hashtags: string[];
|
|
56
|
+
likeCount: number;
|
|
57
|
+
dislikeCount: number;
|
|
58
|
+
isPublic: boolean;
|
|
59
|
+
isAllowImport: boolean;
|
|
60
|
+
isSensitive: boolean;
|
|
12
61
|
createdAt: Date;
|
|
13
62
|
updatedAt: Date;
|
|
14
63
|
}
|
|
64
|
+
export interface LocationPresetDetailDto extends LocationPresetDto {
|
|
65
|
+
userRating: 'LIKE' | 'DISLIKE' | null;
|
|
66
|
+
locationCount: number;
|
|
67
|
+
totalUsedCredit: number;
|
|
68
|
+
totalMessageCount: number;
|
|
69
|
+
}
|
|
@@ -1,3 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.LocationPresetCanvasSchema = exports.LocationPresetMessageSchema = void 0;
|
|
7
|
+
const samo_ai_1 = require("@little-samo/samo-ai");
|
|
8
|
+
const zod_1 = __importDefault(require("zod"));
|
|
9
|
+
exports.LocationPresetMessageSchema = zod_1.default.object({
|
|
10
|
+
entityType: zod_1.default.nativeEnum(samo_ai_1.EntityType),
|
|
11
|
+
entityId: zod_1.default.coerce.bigint(),
|
|
12
|
+
message: zod_1.default.string().max(800).optional(),
|
|
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),
|
|
21
|
+
});
|
|
3
22
|
//# sourceMappingURL=location.preset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.preset.js","sourceRoot":"","sources":["../../../src/dto/locations/location.preset.ts"],"names":[],"mappings":""}
|
|
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"}
|