@little-samo/samo-ai-sdk 0.1.4-rv3 → 0.1.4-rv5
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 -44
- package/dist/dto/entities/agents/agent.requests.js +2 -4
- package/dist/dto/entities/agents/agent.requests.js.map +1 -1
- package/dist/dto/entities/gimmicks/gimmick.d.ts +1 -1
- package/dist/dto/entities/users/user.requests.d.ts +5 -0
- package/dist/dto/entities/users/user.requests.js +2 -1
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/items/item.d.ts +5 -1
- package/dist/dto/locations/location.d.ts +10 -0
- package/dist/dto/locations/location.events.d.ts +7 -1
- package/dist/dto/locations/location.events.js +1 -0
- package/dist/dto/locations/location.events.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +169 -67
- package/dist/dto/locations/location.requests.js +48 -8
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +29 -17
- package/dist/models/locations/location.config.js +19 -18
- package/dist/models/locations/location.config.js.map +1 -1
- package/dist/models/locations/location.constants.d.ts +1 -2
- package/dist/models/locations/location.constants.js +1 -2
- package/dist/models/locations/location.constants.js.map +1 -1
- package/package.json +1 -1
|
@@ -146,11 +146,12 @@ 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;
|
|
152
|
+
rules?: string[] | undefined;
|
|
153
|
+
appearance?: string | undefined;
|
|
154
|
+
avatar?: string | undefined;
|
|
154
155
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
155
156
|
languages?: string[] | undefined;
|
|
156
157
|
timeZone?: string | undefined;
|
|
@@ -176,14 +177,14 @@ 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;
|
|
185
|
+
rules?: string[] | undefined;
|
|
186
|
+
appearance?: string | undefined;
|
|
187
|
+
avatar?: string | undefined;
|
|
187
188
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
188
189
|
languages?: string[] | undefined;
|
|
189
190
|
timeZone?: string | undefined;
|
|
@@ -209,16 +210,16 @@ 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;
|
|
220
|
+
rules?: string[] | undefined;
|
|
221
|
+
appearance?: string | undefined;
|
|
222
|
+
avatar?: string | undefined;
|
|
222
223
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
223
224
|
languages?: string[] | undefined;
|
|
224
225
|
timeZone?: string | undefined;
|
|
@@ -244,17 +245,17 @@ 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;
|
|
256
|
+
rules?: string[] | undefined;
|
|
257
|
+
appearance?: string | undefined;
|
|
258
|
+
avatar?: string | undefined;
|
|
258
259
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
259
260
|
languages?: string[] | undefined;
|
|
260
261
|
timeZone?: 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
|
}>;
|
|
@@ -289,20 +289,14 @@ export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
|
|
|
289
289
|
export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
290
290
|
agentId: z.ZodBigInt;
|
|
291
291
|
credential: z.ZodUnion<[z.ZodObject<{
|
|
292
|
-
type: z.ZodLiteral<"
|
|
293
|
-
|
|
294
|
-
password: z.ZodString;
|
|
295
|
-
username: z.ZodString;
|
|
292
|
+
type: z.ZodLiteral<"notion">;
|
|
293
|
+
token: z.ZodString;
|
|
296
294
|
}, "strip", z.ZodTypeAny, {
|
|
297
|
-
type: "
|
|
298
|
-
|
|
299
|
-
password: string;
|
|
300
|
-
username: string;
|
|
295
|
+
type: "notion";
|
|
296
|
+
token: string;
|
|
301
297
|
}, {
|
|
302
|
-
type: "
|
|
303
|
-
|
|
304
|
-
password: string;
|
|
305
|
-
username: string;
|
|
298
|
+
type: "notion";
|
|
299
|
+
token: string;
|
|
306
300
|
}>, z.ZodObject<{
|
|
307
301
|
type: z.ZodLiteral<"notion">;
|
|
308
302
|
token: z.ZodString;
|
|
@@ -315,10 +309,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
315
309
|
}>]>;
|
|
316
310
|
}, "strip", z.ZodTypeAny, {
|
|
317
311
|
credential: {
|
|
318
|
-
type: "
|
|
319
|
-
|
|
320
|
-
password: string;
|
|
321
|
-
username: string;
|
|
312
|
+
type: "notion";
|
|
313
|
+
token: string;
|
|
322
314
|
} | {
|
|
323
315
|
type: "notion";
|
|
324
316
|
token: string;
|
|
@@ -326,10 +318,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
326
318
|
agentId: bigint;
|
|
327
319
|
}, {
|
|
328
320
|
credential: {
|
|
329
|
-
type: "
|
|
330
|
-
|
|
331
|
-
password: string;
|
|
332
|
-
username: string;
|
|
321
|
+
type: "notion";
|
|
322
|
+
token: string;
|
|
333
323
|
} | {
|
|
334
324
|
type: "notion";
|
|
335
325
|
token: string;
|
|
@@ -484,11 +474,12 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
484
474
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
485
475
|
}, "strict", z.ZodTypeAny, {
|
|
486
476
|
name?: string | undefined;
|
|
487
|
-
avatar?: string | undefined;
|
|
488
|
-
appearance?: string | undefined;
|
|
489
477
|
core?: {
|
|
490
478
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
491
479
|
} | undefined;
|
|
480
|
+
rules?: string[] | undefined;
|
|
481
|
+
appearance?: string | undefined;
|
|
482
|
+
avatar?: string | undefined;
|
|
492
483
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
493
484
|
languages?: string[] | undefined;
|
|
494
485
|
timeZone?: string | undefined;
|
|
@@ -514,14 +505,14 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
514
505
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
515
506
|
} | undefined;
|
|
516
507
|
} | undefined;
|
|
517
|
-
rules?: string[] | undefined;
|
|
518
508
|
}, {
|
|
519
509
|
name?: string | undefined;
|
|
520
|
-
avatar?: string | undefined;
|
|
521
|
-
appearance?: string | undefined;
|
|
522
510
|
core?: {
|
|
523
511
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
524
512
|
} | undefined;
|
|
513
|
+
rules?: string[] | undefined;
|
|
514
|
+
appearance?: string | undefined;
|
|
515
|
+
avatar?: string | undefined;
|
|
525
516
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
526
517
|
languages?: string[] | undefined;
|
|
527
518
|
timeZone?: string | undefined;
|
|
@@ -547,16 +538,16 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
547
538
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
548
539
|
} | undefined;
|
|
549
540
|
} | undefined;
|
|
550
|
-
rules?: string[] | undefined;
|
|
551
541
|
}>;
|
|
552
542
|
}, "strip", z.ZodTypeAny, {
|
|
553
543
|
config: {
|
|
554
544
|
name?: string | undefined;
|
|
555
|
-
avatar?: string | undefined;
|
|
556
|
-
appearance?: string | undefined;
|
|
557
545
|
core?: {
|
|
558
546
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
559
547
|
} | undefined;
|
|
548
|
+
rules?: string[] | undefined;
|
|
549
|
+
appearance?: string | undefined;
|
|
550
|
+
avatar?: string | undefined;
|
|
560
551
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
561
552
|
languages?: string[] | undefined;
|
|
562
553
|
timeZone?: string | undefined;
|
|
@@ -582,16 +573,16 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
582
573
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
583
574
|
} | undefined;
|
|
584
575
|
} | undefined;
|
|
585
|
-
rules?: string[] | undefined;
|
|
586
576
|
};
|
|
587
577
|
}, {
|
|
588
578
|
config: {
|
|
589
579
|
name?: string | undefined;
|
|
590
|
-
avatar?: string | undefined;
|
|
591
|
-
appearance?: string | undefined;
|
|
592
580
|
core?: {
|
|
593
581
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
594
582
|
} | undefined;
|
|
583
|
+
rules?: string[] | undefined;
|
|
584
|
+
appearance?: string | undefined;
|
|
585
|
+
avatar?: string | undefined;
|
|
595
586
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | undefined;
|
|
596
587
|
languages?: string[] | undefined;
|
|
597
588
|
timeZone?: string | undefined;
|
|
@@ -617,7 +608,6 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
617
608
|
mbti?: "INTJ" | "INTP" | "ENTJ" | "ENTP" | "INFJ" | "INFP" | "ENFJ" | "ENFP" | "ISTJ" | "ISFJ" | "ESTJ" | "ESFJ" | "ISTP" | "ISFP" | "ESTP" | "ESFP" | undefined;
|
|
618
609
|
} | undefined;
|
|
619
610
|
} | undefined;
|
|
620
|
-
rules?: string[] | undefined;
|
|
621
611
|
};
|
|
622
612
|
}>;
|
|
623
613
|
export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
|
|
@@ -27,10 +27,8 @@ exports.AgentUpdateCredentialSchema = zod_1.z.object({
|
|
|
27
27
|
agentId: zod_1.z.coerce.bigint(),
|
|
28
28
|
credential: zod_1.z.union([
|
|
29
29
|
zod_1.z.object({
|
|
30
|
-
type: zod_1.z.literal('
|
|
31
|
-
|
|
32
|
-
password: zod_1.z.string().max(255),
|
|
33
|
-
username: zod_1.z.string().max(255),
|
|
30
|
+
type: zod_1.z.literal('notion'),
|
|
31
|
+
token: zod_1.z.string().max(255),
|
|
34
32
|
}),
|
|
35
33
|
zod_1.z.object({
|
|
36
34
|
type: zod_1.z.literal('notion'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/agents/agent.requests.ts"],"names":[],"mappings":";;;AACA,4DAIyC;AACzC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C,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACtE,CAAC,CAAC;AAiBU,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,MAAM,EAAE,0BAAiB,CAAC,OAAO,EAAE;SAChC,MAAM,EAAE;SACR,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC,CAAC;AASU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC5B,CAAC,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,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAWU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC"}
|
|
@@ -16,3 +16,8 @@ export type GetUsersByIdsQueryDto = z.infer<typeof GetUsersByIdsQuerySchema>;
|
|
|
16
16
|
export interface GetUserPublicsByIdsResponseDto {
|
|
17
17
|
users: UserPublicDto[];
|
|
18
18
|
}
|
|
19
|
+
export declare const GetCurrentUserSchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
20
|
+
export type GetCurrentUserDto = z.infer<typeof GetCurrentUserSchema>;
|
|
21
|
+
export interface GetCurrentUserResponseDto {
|
|
22
|
+
user: UserPrivateDto;
|
|
23
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetUsersByIdsQuerySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
3
|
+
exports.GetCurrentUserSchema = exports.GetUsersByIdsQuerySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.GetCurrentUserQuerySchema = zod_1.z.object({});
|
|
6
6
|
exports.GetUsersByIdsQuerySchema = zod_1.z.object({
|
|
@@ -11,4 +11,5 @@ exports.GetUsersByIdsQuerySchema = zod_1.z.object({
|
|
|
11
11
|
message: 'userIds must contain 1-25 user IDs',
|
|
12
12
|
}),
|
|
13
13
|
});
|
|
14
|
+
exports.GetCurrentUserSchema = zod_1.z.object({});
|
|
14
15
|
//# sourceMappingURL=user.requests.js.map
|
|
@@ -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"}
|
|
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"}
|
package/dist/dto/items/item.d.ts
CHANGED
|
@@ -2,11 +2,15 @@ export interface ItemDto {
|
|
|
2
2
|
id: number;
|
|
3
3
|
itemDataId: number;
|
|
4
4
|
name: string;
|
|
5
|
-
description
|
|
5
|
+
description: string | null;
|
|
6
6
|
count: number;
|
|
7
|
+
param1: number;
|
|
8
|
+
param2: number;
|
|
7
9
|
updatedAt: Date;
|
|
8
10
|
}
|
|
9
11
|
export interface ItemUpdateDto {
|
|
10
12
|
count: number;
|
|
13
|
+
param1: number;
|
|
14
|
+
param2: number;
|
|
11
15
|
updatedAt: Date;
|
|
12
16
|
}
|
|
@@ -9,10 +9,20 @@ export interface LocationPublicDto {
|
|
|
9
9
|
platform: LocationPlatform;
|
|
10
10
|
type: LocationType;
|
|
11
11
|
environment: LocationEnvironment;
|
|
12
|
+
thumbnail: string | null;
|
|
13
|
+
ownerUserId: UserId | null;
|
|
12
14
|
param1: bigint;
|
|
13
15
|
param2: bigint;
|
|
14
16
|
param3: bigint;
|
|
15
17
|
param4: bigint;
|
|
18
|
+
freeCreditBalance: number;
|
|
19
|
+
paidCreditBalance: number;
|
|
20
|
+
useLocationCreditOnly: boolean;
|
|
21
|
+
creditCostPerChat: number;
|
|
22
|
+
chatRequiresPaidCredit: boolean;
|
|
23
|
+
isPublic: boolean;
|
|
24
|
+
isPublished: boolean;
|
|
25
|
+
isAdminChat: boolean;
|
|
16
26
|
createdAt: Date;
|
|
17
27
|
updatedAt: Date;
|
|
18
28
|
}
|
|
@@ -11,6 +11,7 @@ export declare const LocationEventType: {
|
|
|
11
11
|
readonly GimmickExecuting: "GimmickExecuting";
|
|
12
12
|
readonly GimmickExecuted: "GimmickExecuted";
|
|
13
13
|
readonly AddMessage: "AddMessage";
|
|
14
|
+
readonly UpdateMessage: "UpdateMessage";
|
|
14
15
|
readonly MessageProcessed: "MessageProcessed";
|
|
15
16
|
readonly RenderingUpdated: "RenderingUpdated";
|
|
16
17
|
readonly CanvasUpdated: "CanvasUpdated";
|
|
@@ -63,6 +64,11 @@ export interface LocationAddMessageEventDto extends LocationEventDtoBase {
|
|
|
63
64
|
type: typeof LocationEventType.AddMessage;
|
|
64
65
|
message: LocationMessageDto;
|
|
65
66
|
}
|
|
67
|
+
export interface LocationUpdateMessageEventDto extends LocationEventDtoBase {
|
|
68
|
+
type: typeof LocationEventType.UpdateMessage;
|
|
69
|
+
messageId: string;
|
|
70
|
+
message: LocationMessageDto;
|
|
71
|
+
}
|
|
66
72
|
export interface LocationMessageProcessedEventDto extends LocationEventDtoBase {
|
|
67
73
|
type: typeof LocationEventType.MessageProcessed;
|
|
68
74
|
lastMessageId: string;
|
|
@@ -84,4 +90,4 @@ export interface LocationPauseUpdateUntilUpdatedEventDto extends LocationEventDt
|
|
|
84
90
|
export interface LocationUpdatedEventDto extends LocationEventDtoBase {
|
|
85
91
|
type: typeof LocationEventType.LocationUpdated;
|
|
86
92
|
}
|
|
87
|
-
export type LocationEventDto = LocationAgentExecutingEventDto | LocationAgentExecutedEventDto | LocationAgentJoinedEventDto | LocationAgentLeftEventDto | LocationUserJoinedEventDto | LocationUserLeftEventDto | LocationGimmickExecutingEventDto | LocationGimmickExecutedEventDto | LocationAddMessageEventDto | LocationMessageProcessedEventDto | LocationRenderingUpdatedEventDto | LocationCanvasUpdatedEventDto | LocationPauseUpdateUntilUpdatedEventDto | LocationUpdatedEventDto;
|
|
93
|
+
export type LocationEventDto = LocationAgentExecutingEventDto | LocationAgentExecutedEventDto | LocationAgentJoinedEventDto | LocationAgentLeftEventDto | LocationUserJoinedEventDto | LocationUserLeftEventDto | LocationGimmickExecutingEventDto | LocationGimmickExecutedEventDto | LocationAddMessageEventDto | LocationUpdateMessageEventDto | LocationMessageProcessedEventDto | LocationRenderingUpdatedEventDto | LocationCanvasUpdatedEventDto | LocationPauseUpdateUntilUpdatedEventDto | LocationUpdatedEventDto;
|
|
@@ -11,6 +11,7 @@ exports.LocationEventType = {
|
|
|
11
11
|
GimmickExecuting: 'GimmickExecuting',
|
|
12
12
|
GimmickExecuted: 'GimmickExecuted',
|
|
13
13
|
AddMessage: 'AddMessage',
|
|
14
|
+
UpdateMessage: 'UpdateMessage',
|
|
14
15
|
MessageProcessed: 'MessageProcessed',
|
|
15
16
|
RenderingUpdated: 'RenderingUpdated',
|
|
16
17
|
CanvasUpdated: 'CanvasUpdated',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.events.js","sourceRoot":"","sources":["../../../src/dto/locations/location.events.ts"],"names":[],"mappings":";;;AAKa,QAAA,iBAAiB,GAAG;IAC/B,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,YAAY;IACxB,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,aAAa,EAAE,eAAe;IAC9B,uBAAuB,EAAE,yBAAyB;IAClD,eAAe,EAAE,iBAAiB;CAC1B,CAAC"}
|
|
1
|
+
{"version":3,"file":"location.events.js","sourceRoot":"","sources":["../../../src/dto/locations/location.events.ts"],"names":[],"mappings":";;;AAKa,QAAA,iBAAiB,GAAG;IAC/B,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,UAAU,EAAE,YAAY;IACxB,QAAQ,EAAE,UAAU;IACpB,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,YAAY;IACxB,aAAa,EAAE,eAAe;IAC9B,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,aAAa,EAAE,eAAe;IAC9B,uBAAuB,EAAE,yBAAyB;IAClD,eAAe,EAAE,iBAAiB;CAC1B,CAAC"}
|