@little-samo/samo-ai-sdk 0.1.3-rv7 → 0.1.4-rv1
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 +7 -0
- package/dist/dto/entities/agents/agent.requests.d.ts +106 -15
- package/dist/dto/entities/agents/agent.requests.js +10 -8
- package/dist/dto/entities/agents/agent.requests.js.map +1 -1
- package/dist/dto/entities/gimmicks/gimmick.d.ts +5 -0
- package/dist/dto/entities/gimmicks/gimmick.js +3 -0
- package/dist/dto/entities/gimmicks/gimmick.js.map +1 -0
- package/dist/dto/entities/gimmicks/index.d.ts +1 -0
- package/dist/dto/entities/gimmicks/index.js +18 -0
- package/dist/dto/entities/gimmicks/index.js.map +1 -0
- package/dist/dto/entities/index.d.ts +1 -0
- package/dist/dto/entities/index.js +1 -0
- package/dist/dto/entities/index.js.map +1 -1
- package/dist/dto/entities/users/user.d.ts +4 -0
- package/dist/dto/entities/users/user.requests.d.ts +6 -1
- package/dist/dto/entities/users/user.requests.js +2 -1
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/locations/index.d.ts +1 -0
- package/dist/dto/locations/index.js +1 -0
- package/dist/dto/locations/index.js.map +1 -1
- package/dist/dto/locations/location.d.ts +8 -1
- package/dist/dto/locations/location.message.d.ts +1 -0
- package/dist/dto/locations/location.requests.d.ts +278 -71
- package/dist/dto/locations/location.requests.js +39 -11
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/dto/locations/location.snapshot.d.ts +11 -0
- package/dist/dto/locations/location.snapshot.js +3 -0
- package/dist/dto/locations/location.snapshot.js.map +1 -0
- package/dist/models/entities/agents/agent.config.d.ts +4 -4
- package/dist/models/entities/agents/agent.config.js +3 -1
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +3 -0
- package/dist/models/locations/location.config.js +13 -12
- package/dist/models/locations/location.config.js.map +1 -1
- package/package.json +3 -3
|
@@ -10,3 +10,10 @@ export interface AgentPrivateDto extends AgentPublicDto {
|
|
|
10
10
|
config: AgentConfig | null;
|
|
11
11
|
credentialTypes: string[];
|
|
12
12
|
}
|
|
13
|
+
export interface AgentCostDto {
|
|
14
|
+
agentId: AgentId;
|
|
15
|
+
totalCost: number;
|
|
16
|
+
llmPresetCost: number;
|
|
17
|
+
gimmickCost?: number;
|
|
18
|
+
canvasCost?: number;
|
|
19
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AgentConfig } from '@little-samo/samo-ai-sdk/models';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { AgentPrivateDto, AgentPublicDto } from './agent';
|
|
3
|
+
import { AgentCostDto, AgentPrivateDto, AgentPublicDto } from './agent';
|
|
4
4
|
import { AgentPresetDto } from './agent.preset';
|
|
5
5
|
export declare const AgentsPaginationQuerySchema: z.ZodObject<{
|
|
6
6
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -49,7 +49,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
49
49
|
}, {
|
|
50
50
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
51
51
|
}>>;
|
|
52
|
-
llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">]>>;
|
|
52
|
+
llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>>;
|
|
53
53
|
languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
54
54
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
55
55
|
greeting: z.ZodOptional<z.ZodString>;
|
|
@@ -63,7 +63,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
63
63
|
core?: {
|
|
64
64
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
65
65
|
} | undefined;
|
|
66
|
-
llmPreset?: "gemini-low" | "gemini-medium" | undefined;
|
|
66
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
67
67
|
languages?: string[] | undefined;
|
|
68
68
|
timeZone?: string | undefined;
|
|
69
69
|
greeting?: string | undefined;
|
|
@@ -77,7 +77,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
77
77
|
core?: {
|
|
78
78
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
79
79
|
} | undefined;
|
|
80
|
-
llmPreset?: "gemini-low" | "gemini-medium" | undefined;
|
|
80
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
81
81
|
languages?: string[] | undefined;
|
|
82
82
|
timeZone?: string | undefined;
|
|
83
83
|
greeting?: string | undefined;
|
|
@@ -93,7 +93,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
93
93
|
core?: {
|
|
94
94
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
95
95
|
} | undefined;
|
|
96
|
-
llmPreset?: "gemini-low" | "gemini-medium" | undefined;
|
|
96
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
97
97
|
languages?: string[] | undefined;
|
|
98
98
|
timeZone?: string | undefined;
|
|
99
99
|
greeting?: string | undefined;
|
|
@@ -110,7 +110,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
110
110
|
core?: {
|
|
111
111
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
112
112
|
} | undefined;
|
|
113
|
-
llmPreset?: "gemini-low" | "gemini-medium" | undefined;
|
|
113
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
114
114
|
languages?: string[] | undefined;
|
|
115
115
|
timeZone?: string | undefined;
|
|
116
116
|
greeting?: string | undefined;
|
|
@@ -213,17 +213,85 @@ export interface AgentPresetsPaginatedResponseDto {
|
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
215
|
export declare const CreateAgentSchema: z.ZodObject<{
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
config: z.ZodObject<{
|
|
217
|
+
name: z.ZodOptional<z.ZodString>;
|
|
218
|
+
avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString]>>;
|
|
219
|
+
appearance: z.ZodOptional<z.ZodString>;
|
|
220
|
+
core: z.ZodOptional<z.ZodObject<{
|
|
221
|
+
name: z.ZodUnion<[z.ZodLiteral<"evaluate_and_actions">, z.ZodLiteral<"execute_actions">, z.ZodLiteral<"response_every_message">]>;
|
|
222
|
+
}, "strip", z.ZodTypeAny, {
|
|
223
|
+
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
224
|
+
}, {
|
|
225
|
+
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
226
|
+
}>>;
|
|
227
|
+
llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>>;
|
|
228
|
+
languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
229
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
230
|
+
greeting: z.ZodOptional<z.ZodString>;
|
|
231
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">>;
|
|
232
|
+
character: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
233
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
234
|
+
}, "strict", z.ZodTypeAny, {
|
|
235
|
+
name?: string | undefined;
|
|
236
|
+
avatar?: string | undefined;
|
|
237
|
+
appearance?: string | undefined;
|
|
238
|
+
core?: {
|
|
239
|
+
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
240
|
+
} | undefined;
|
|
241
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
242
|
+
languages?: string[] | undefined;
|
|
243
|
+
timeZone?: string | undefined;
|
|
244
|
+
greeting?: string | undefined;
|
|
245
|
+
actions?: "todo"[] | undefined;
|
|
246
|
+
character?: Record<string, Record<string, string>> | undefined;
|
|
247
|
+
rules?: string[] | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
name?: string | undefined;
|
|
250
|
+
avatar?: string | undefined;
|
|
251
|
+
appearance?: string | undefined;
|
|
252
|
+
core?: {
|
|
253
|
+
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
254
|
+
} | undefined;
|
|
255
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
256
|
+
languages?: string[] | undefined;
|
|
257
|
+
timeZone?: string | undefined;
|
|
258
|
+
greeting?: string | undefined;
|
|
259
|
+
actions?: "todo"[] | undefined;
|
|
260
|
+
character?: Record<string, Record<string, string>> | undefined;
|
|
261
|
+
rules?: string[] | undefined;
|
|
262
|
+
}>;
|
|
219
263
|
}, "strip", z.ZodTypeAny, {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
264
|
+
config: {
|
|
265
|
+
name?: string | undefined;
|
|
266
|
+
avatar?: string | undefined;
|
|
267
|
+
appearance?: string | undefined;
|
|
268
|
+
core?: {
|
|
269
|
+
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
270
|
+
} | undefined;
|
|
271
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
272
|
+
languages?: string[] | undefined;
|
|
273
|
+
timeZone?: string | undefined;
|
|
274
|
+
greeting?: string | undefined;
|
|
275
|
+
actions?: "todo"[] | undefined;
|
|
276
|
+
character?: Record<string, Record<string, string>> | undefined;
|
|
277
|
+
rules?: string[] | undefined;
|
|
278
|
+
};
|
|
223
279
|
}, {
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
280
|
+
config: {
|
|
281
|
+
name?: string | undefined;
|
|
282
|
+
avatar?: string | undefined;
|
|
283
|
+
appearance?: string | undefined;
|
|
284
|
+
core?: {
|
|
285
|
+
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
286
|
+
} | undefined;
|
|
287
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
288
|
+
languages?: string[] | undefined;
|
|
289
|
+
timeZone?: string | undefined;
|
|
290
|
+
greeting?: string | undefined;
|
|
291
|
+
actions?: "todo"[] | undefined;
|
|
292
|
+
character?: Record<string, Record<string, string>> | undefined;
|
|
293
|
+
rules?: string[] | undefined;
|
|
294
|
+
};
|
|
227
295
|
}>;
|
|
228
296
|
export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
|
|
229
297
|
export interface CreateAgentResponseDto {
|
|
@@ -253,6 +321,17 @@ export type GetHelperAgentDto = z.infer<typeof GetHelperAgentSchema>;
|
|
|
253
321
|
export interface GetHelperAgentResponseDto {
|
|
254
322
|
agent: AgentPrivateDto;
|
|
255
323
|
}
|
|
324
|
+
export declare const GetAgentCostParamsSchema: z.ZodObject<{
|
|
325
|
+
agentId: z.ZodBigInt;
|
|
326
|
+
}, "strip", z.ZodTypeAny, {
|
|
327
|
+
agentId: bigint;
|
|
328
|
+
}, {
|
|
329
|
+
agentId: bigint;
|
|
330
|
+
}>;
|
|
331
|
+
export type GetAgentCostParamsDto = z.infer<typeof GetAgentCostParamsSchema>;
|
|
332
|
+
export interface GetAgentCostResponseDto {
|
|
333
|
+
cost: AgentCostDto;
|
|
334
|
+
}
|
|
256
335
|
export declare const UploadAgentAvatarParamsSchema: z.ZodObject<{
|
|
257
336
|
agentId: z.ZodBigInt;
|
|
258
337
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -264,3 +343,15 @@ export type UploadAgentAvatarParamsDto = z.infer<typeof UploadAgentAvatarParamsS
|
|
|
264
343
|
export interface UploadAgentAvatarResponseDto {
|
|
265
344
|
avatarUrl: string;
|
|
266
345
|
}
|
|
346
|
+
export declare const DeleteAgentParamsSchema: z.ZodObject<{
|
|
347
|
+
agentId: z.ZodBigInt;
|
|
348
|
+
}, "strip", z.ZodTypeAny, {
|
|
349
|
+
agentId: bigint;
|
|
350
|
+
}, {
|
|
351
|
+
agentId: bigint;
|
|
352
|
+
}>;
|
|
353
|
+
export type DeleteAgentParamsDto = z.infer<typeof DeleteAgentParamsSchema>;
|
|
354
|
+
export interface DeleteAgentResponseDto {
|
|
355
|
+
success: boolean;
|
|
356
|
+
error?: string;
|
|
357
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UploadAgentAvatarParamsSchema = exports.GetHelperAgentSchema = exports.CreateAgentFromPresetSchema = exports.CreateAgentSchema = exports.AgentPresetsPaginationQuerySchema = exports.AgentDeleteCredentialSchema = exports.AgentUpdateCredentialSchema = exports.AgentUpdateConfigSchema = exports.GetAgentsByIdsQuerySchema = exports.AgentsPaginationQuerySchema = void 0;
|
|
3
|
+
exports.DeleteAgentParamsSchema = exports.UploadAgentAvatarParamsSchema = exports.GetAgentCostParamsSchema = exports.GetHelperAgentSchema = exports.CreateAgentFromPresetSchema = exports.CreateAgentSchema = exports.AgentPresetsPaginationQuerySchema = exports.AgentDeleteCredentialSchema = exports.AgentUpdateCredentialSchema = exports.AgentUpdateConfigSchema = exports.GetAgentsByIdsQuerySchema = exports.AgentsPaginationQuerySchema = void 0;
|
|
4
4
|
const models_1 = require("@little-samo/samo-ai-sdk/models");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.AgentsPaginationQuerySchema = zod_1.z.object({
|
|
@@ -47,13 +47,9 @@ exports.AgentPresetsPaginationQuerySchema = zod_1.z.object({
|
|
|
47
47
|
limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(20),
|
|
48
48
|
});
|
|
49
49
|
exports.CreateAgentSchema = zod_1.z.object({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
.union([
|
|
54
|
-
...Object.entries(models_1.PREDEFINED_AVATARS).map(([key, description]) => zod_1.z.literal(key).describe(description)),
|
|
55
|
-
])
|
|
56
|
-
.describe('Visual representation identifier for the agent.'),
|
|
50
|
+
config: models_1.AgentConfigSchema.partial()
|
|
51
|
+
.strict()
|
|
52
|
+
.describe('Agent configuration settings (e.g., name, avatar, character, etc.)'),
|
|
57
53
|
});
|
|
58
54
|
exports.CreateAgentFromPresetSchema = zod_1.z.object({
|
|
59
55
|
presetId: zod_1.z.coerce.bigint(),
|
|
@@ -61,7 +57,13 @@ exports.CreateAgentFromPresetSchema = zod_1.z.object({
|
|
|
61
57
|
exports.GetHelperAgentSchema = zod_1.z.object({
|
|
62
58
|
helperType: zod_1.z.nativeEnum(models_1.AgentHelperType),
|
|
63
59
|
});
|
|
60
|
+
exports.GetAgentCostParamsSchema = zod_1.z.object({
|
|
61
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
62
|
+
});
|
|
64
63
|
exports.UploadAgentAvatarParamsSchema = zod_1.z.object({
|
|
65
64
|
agentId: zod_1.z.coerce.bigint(),
|
|
66
65
|
});
|
|
66
|
+
exports.DeleteAgentParamsSchema = zod_1.z.object({
|
|
67
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
68
|
+
});
|
|
67
69
|
//# sourceMappingURL=agent.requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/agents/agent.requests.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"agent.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities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,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,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gimmick.js","sourceRoot":"","sources":["../../../../src/dto/entities/gimmicks/gimmick.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './gimmick';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./gimmick"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/entities/gimmicks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./agents"), exports);
|
|
18
|
+
__exportStar(require("./gimmicks"), exports);
|
|
18
19
|
__exportStar(require("./users"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { UserPublicDto } from './user';
|
|
2
|
+
import { UserPrivateDto, UserPublicDto } from './user';
|
|
3
|
+
export declare const GetCurrentUserQuerySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
4
|
+
export type GetCurrentUserQueryDto = z.infer<typeof GetCurrentUserQuerySchema>;
|
|
5
|
+
export interface GetCurrentUserResponseDto {
|
|
6
|
+
user: UserPrivateDto;
|
|
7
|
+
}
|
|
3
8
|
export declare const GetUsersByIdsQuerySchema: z.ZodObject<{
|
|
4
9
|
userIds: z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>;
|
|
5
10
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetUsersByIdsQuerySchema = void 0;
|
|
3
|
+
exports.GetUsersByIdsQuerySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
exports.GetCurrentUserQuerySchema = zod_1.z.object({});
|
|
5
6
|
exports.GetUsersByIdsQuerySchema = zod_1.z.object({
|
|
6
7
|
userIds: zod_1.z
|
|
7
8
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
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"}
|
|
@@ -19,5 +19,6 @@ __exportStar(require("./location.message"), exports);
|
|
|
19
19
|
__exportStar(require("./location.preset"), exports);
|
|
20
20
|
__exportStar(require("./location.requests"), exports);
|
|
21
21
|
__exportStar(require("./location.scheduled-message"), exports);
|
|
22
|
+
__exportStar(require("./location.snapshot"), exports);
|
|
22
23
|
__exportStar(require("./location"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,sDAAoC;AACpC,+DAA6C;AAC7C,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,sDAAoC;AACpC,+DAA6C;AAC7C,sDAAoC;AACpC,6CAA2B"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { AgentId, EntityId, EntityType, LocationId, UserId } from '@little-samo/samo-ai';
|
|
2
2
|
import { LocationConfig, LocationEnvironment, LocationPlatform, LocationType } from '@little-samo/samo-ai-sdk/models';
|
|
3
|
-
import { LocationMessageDto } from './location.message';
|
|
3
|
+
import type { LocationMessageDto } from './location.message';
|
|
4
|
+
import type { AgentCostDto } from '../entities/agents/agent';
|
|
5
|
+
import type { GimmickCostDto } from '../entities/gimmicks/gimmick';
|
|
4
6
|
export interface LocationPublicDto {
|
|
5
7
|
id: LocationId;
|
|
6
8
|
name: string;
|
|
@@ -38,3 +40,8 @@ export interface LocationContentDto {
|
|
|
38
40
|
canvases: Record<string, LocationCanvasDto>;
|
|
39
41
|
rendering: string | null;
|
|
40
42
|
}
|
|
43
|
+
export interface LocationCostDto {
|
|
44
|
+
locationId: LocationId;
|
|
45
|
+
agents: AgentCostDto[];
|
|
46
|
+
gimmicks: GimmickCostDto[];
|
|
47
|
+
}
|