@little-samo/samo-ai-sdk 0.1.3-rv7 → 0.1.4

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.
Files changed (35) hide show
  1. package/dist/dto/entities/agents/agent.d.ts +7 -0
  2. package/dist/dto/entities/agents/agent.requests.d.ts +41 -18
  3. package/dist/dto/entities/agents/agent.requests.js +7 -1
  4. package/dist/dto/entities/agents/agent.requests.js.map +1 -1
  5. package/dist/dto/entities/gimmicks/gimmick.d.ts +5 -0
  6. package/dist/dto/entities/gimmicks/gimmick.js +3 -0
  7. package/dist/dto/entities/gimmicks/gimmick.js.map +1 -0
  8. package/dist/dto/entities/gimmicks/index.d.ts +1 -0
  9. package/dist/dto/entities/gimmicks/index.js +18 -0
  10. package/dist/dto/entities/gimmicks/index.js.map +1 -0
  11. package/dist/dto/entities/index.d.ts +1 -0
  12. package/dist/dto/entities/index.js +1 -0
  13. package/dist/dto/entities/index.js.map +1 -1
  14. package/dist/dto/entities/users/user.d.ts +4 -0
  15. package/dist/dto/entities/users/user.requests.d.ts +6 -1
  16. package/dist/dto/entities/users/user.requests.js +2 -1
  17. package/dist/dto/entities/users/user.requests.js.map +1 -1
  18. package/dist/dto/locations/index.d.ts +1 -0
  19. package/dist/dto/locations/index.js +1 -0
  20. package/dist/dto/locations/index.js.map +1 -1
  21. package/dist/dto/locations/location.d.ts +8 -1
  22. package/dist/dto/locations/location.message.d.ts +1 -0
  23. package/dist/dto/locations/location.requests.d.ts +94 -84
  24. package/dist/dto/locations/location.requests.js +15 -9
  25. package/dist/dto/locations/location.requests.js.map +1 -1
  26. package/dist/dto/locations/location.snapshot.d.ts +11 -0
  27. package/dist/dto/locations/location.snapshot.js +3 -0
  28. package/dist/dto/locations/location.snapshot.js.map +1 -0
  29. package/dist/models/entities/agents/agent.config.d.ts +4 -4
  30. package/dist/models/entities/agents/agent.config.js +2 -0
  31. package/dist/models/entities/agents/agent.config.js.map +1 -1
  32. package/dist/models/locations/location.config.d.ts +11 -8
  33. package/dist/models/locations/location.config.js +12 -11
  34. package/dist/models/locations/location.config.js.map +1 -1
  35. 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,16 +1,16 @@
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>>;
7
7
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- limit: number;
10
9
  page: number;
10
+ limit: number;
11
11
  }, {
12
- limit?: number | undefined;
13
12
  page?: number | undefined;
13
+ limit?: number | undefined;
14
14
  }>;
15
15
  export type AgentsPaginationQueryDto = z.infer<typeof AgentsPaginationQuerySchema>;
16
16
  export interface AgentsPaginatedResponseDto {
@@ -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;
@@ -86,6 +86,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
86
86
  rules?: string[] | undefined;
87
87
  }>;
88
88
  }, "strip", z.ZodTypeAny, {
89
+ agentId: bigint;
89
90
  config: {
90
91
  name?: string | undefined;
91
92
  avatar?: string | undefined;
@@ -93,7 +94,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
93
94
  core?: {
94
95
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
95
96
  } | undefined;
96
- llmPreset?: "gemini-low" | "gemini-medium" | undefined;
97
+ llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
97
98
  languages?: string[] | undefined;
98
99
  timeZone?: string | undefined;
99
100
  greeting?: string | undefined;
@@ -101,8 +102,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
101
102
  character?: Record<string, Record<string, string>> | undefined;
102
103
  rules?: string[] | undefined;
103
104
  };
104
- agentId: bigint;
105
105
  }, {
106
+ agentId: bigint;
106
107
  config: {
107
108
  name?: string | undefined;
108
109
  avatar?: string | undefined;
@@ -110,7 +111,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
110
111
  core?: {
111
112
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
112
113
  } | undefined;
113
- llmPreset?: "gemini-low" | "gemini-medium" | undefined;
114
+ llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
114
115
  languages?: string[] | undefined;
115
116
  timeZone?: string | undefined;
116
117
  greeting?: string | undefined;
@@ -118,7 +119,6 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
118
119
  character?: Record<string, Record<string, string>> | undefined;
119
120
  rules?: string[] | undefined;
120
121
  };
121
- agentId: bigint;
122
122
  }>;
123
123
  export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
124
124
  export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
@@ -150,6 +150,7 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
150
150
  token: string;
151
151
  }>]>;
152
152
  }, "strip", z.ZodTypeAny, {
153
+ agentId: bigint;
153
154
  credential: {
154
155
  type: "x_twitter";
155
156
  email: string;
@@ -159,8 +160,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
159
160
  type: "notion";
160
161
  token: string;
161
162
  };
162
- agentId: bigint;
163
163
  }, {
164
+ agentId: bigint;
164
165
  credential: {
165
166
  type: "x_twitter";
166
167
  email: string;
@@ -170,7 +171,6 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
170
171
  type: "notion";
171
172
  token: string;
172
173
  };
173
- agentId: bigint;
174
174
  }>;
175
175
  export type AgentUpdateCredentialDto = z.infer<typeof AgentUpdateCredentialSchema>;
176
176
  export interface AgentUpdateCredentialResponseDto {
@@ -181,11 +181,11 @@ export declare const AgentDeleteCredentialSchema: z.ZodObject<{
181
181
  agentId: z.ZodBigInt;
182
182
  credentialType: z.ZodString;
183
183
  }, "strip", z.ZodTypeAny, {
184
- credentialType: string;
185
184
  agentId: bigint;
186
- }, {
187
185
  credentialType: string;
186
+ }, {
188
187
  agentId: bigint;
188
+ credentialType: string;
189
189
  }>;
190
190
  export type AgentDeleteCredentialDto = z.infer<typeof AgentDeleteCredentialSchema>;
191
191
  export interface AgentDeleteCredentialResponseDto {
@@ -196,11 +196,11 @@ export declare const AgentPresetsPaginationQuerySchema: z.ZodObject<{
196
196
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
197
197
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
198
198
  }, "strip", z.ZodTypeAny, {
199
- limit: number;
200
199
  page: number;
200
+ limit: number;
201
201
  }, {
202
- limit?: number | undefined;
203
202
  page?: number | undefined;
203
+ limit?: number | undefined;
204
204
  }>;
205
205
  export type AgentPresetsPaginationQueryDto = z.infer<typeof AgentPresetsPaginationQuerySchema>;
206
206
  export interface AgentPresetsPaginatedResponseDto {
@@ -217,13 +217,13 @@ export declare const CreateAgentSchema: z.ZodObject<{
217
217
  role: z.ZodString;
218
218
  avatar: z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[]]>;
219
219
  }, "strip", z.ZodTypeAny, {
220
+ role: string;
220
221
  name: string;
221
222
  avatar: string;
222
- role: string;
223
223
  }, {
224
+ role: string;
224
225
  name: string;
225
226
  avatar: string;
226
- role: string;
227
227
  }>;
228
228
  export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
229
229
  export interface CreateAgentResponseDto {
@@ -253,6 +253,17 @@ export type GetHelperAgentDto = z.infer<typeof GetHelperAgentSchema>;
253
253
  export interface GetHelperAgentResponseDto {
254
254
  agent: AgentPrivateDto;
255
255
  }
256
+ export declare const GetAgentCostParamsSchema: z.ZodObject<{
257
+ agentId: z.ZodBigInt;
258
+ }, "strip", z.ZodTypeAny, {
259
+ agentId: bigint;
260
+ }, {
261
+ agentId: bigint;
262
+ }>;
263
+ export type GetAgentCostParamsDto = z.infer<typeof GetAgentCostParamsSchema>;
264
+ export interface GetAgentCostResponseDto {
265
+ cost: AgentCostDto;
266
+ }
256
267
  export declare const UploadAgentAvatarParamsSchema: z.ZodObject<{
257
268
  agentId: z.ZodBigInt;
258
269
  }, "strip", z.ZodTypeAny, {
@@ -264,3 +275,15 @@ export type UploadAgentAvatarParamsDto = z.infer<typeof UploadAgentAvatarParamsS
264
275
  export interface UploadAgentAvatarResponseDto {
265
276
  avatarUrl: string;
266
277
  }
278
+ export declare const DeleteAgentParamsSchema: z.ZodObject<{
279
+ agentId: z.ZodBigInt;
280
+ }, "strip", z.ZodTypeAny, {
281
+ agentId: bigint;
282
+ }, {
283
+ agentId: bigint;
284
+ }>;
285
+ export type DeleteAgentParamsDto = z.infer<typeof DeleteAgentParamsSchema>;
286
+ export interface DeleteAgentResponseDto {
287
+ success: boolean;
288
+ error?: string;
289
+ }
@@ -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({
@@ -61,7 +61,13 @@ exports.CreateAgentFromPresetSchema = zod_1.z.object({
61
61
  exports.GetHelperAgentSchema = zod_1.z.object({
62
62
  helperType: zod_1.z.nativeEnum(models_1.AgentHelperType),
63
63
  });
64
+ exports.GetAgentCostParamsSchema = zod_1.z.object({
65
+ agentId: zod_1.z.coerce.bigint(),
66
+ });
64
67
  exports.UploadAgentAvatarParamsSchema = zod_1.z.object({
65
68
  agentId: zod_1.z.coerce.bigint(),
66
69
  });
70
+ exports.DeleteAgentParamsSchema = zod_1.z.object({
71
+ agentId: zod_1.z.coerce.bigint(),
72
+ });
67
73
  //# 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,4DAKyC;AACzC,6BAAwB;AAUX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACtE,CAAC,CAAC;AAkBU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CACjB,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAC/D;SACA,MA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,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export interface GimmickCostDto {
2
+ core: string;
3
+ executionCost: number;
4
+ agentCost: number;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=gimmick.js.map
@@ -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"}
@@ -1,2 +1,3 @@
1
1
  export * from './agents';
2
+ export * from './gimmicks';
2
3
  export * from './users';
@@ -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"}
@@ -9,4 +9,8 @@ export interface UserPublicDto {
9
9
  }
10
10
  export interface UserPrivateDto extends UserPublicDto {
11
11
  email: string | null;
12
+ defaultCredits: number;
13
+ maxAgents: number;
14
+ maxLocationAgents: number;
15
+ maxAgentLocations: number;
12
16
  }
@@ -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;AAIX,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"}
@@ -3,4 +3,5 @@ export * from './location.message';
3
3
  export * from './location.preset';
4
4
  export * from './location.requests';
5
5
  export * from './location.scheduled-message';
6
+ export * from './location.snapshot';
6
7
  export * from './location';
@@ -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
+ }
@@ -4,6 +4,7 @@ export interface LocationMessageDto {
4
4
  entityType: EntityType;
5
5
  entityId: EntityId;
6
6
  name: string;
7
+ avatar?: string;
7
8
  expression?: string;
8
9
  message?: string;
9
10
  action?: string;
@@ -1,10 +1,12 @@
1
1
  import { DayOfWeek } from '@little-samo/samo-ai/common';
2
+ import { LocationId } from '@little-samo/samo-ai/models';
2
3
  import { z } from 'zod';
3
4
  import { LocationConfig } from '../../models/locations/location.config';
4
- import { LocationContentDto, LocationListItemDto, LocationPrivateDto } from './location';
5
+ import { LocationContentDto, LocationCostDto, LocationListItemDto, LocationPrivateDto } from './location';
5
6
  import { LocationMessageDto } from './location.message';
6
7
  import { LocationPresetDto } from './location.preset';
7
8
  import { LocationScheduledMessageDto } from './location.scheduled-message';
9
+ import { LocationSnapshotDto } from './location.snapshot';
8
10
  export declare const UserLocationsQuerySchema: z.ZodObject<{
9
11
  cursor: z.ZodOptional<z.ZodString>;
10
12
  limit: z.ZodDefault<z.ZodNumber>;
@@ -12,8 +14,8 @@ export declare const UserLocationsQuerySchema: z.ZodObject<{
12
14
  limit: number;
13
15
  cursor?: string | undefined;
14
16
  }, {
15
- cursor?: string | undefined;
16
17
  limit?: number | undefined;
18
+ cursor?: string | undefined;
17
19
  }>;
18
20
  export type UserLocationsQueryDto = z.infer<typeof UserLocationsQuerySchema>;
19
21
  export interface UserLocationsResponseDto {
@@ -32,7 +34,7 @@ export declare const LocationsUnreadCountQuerySchema: z.ZodObject<{
32
34
  }>;
33
35
  export type LocationsUnreadCountQueryDto = z.infer<typeof LocationsUnreadCountQuerySchema>;
34
36
  export interface LocationUnreadCountItemDto {
35
- locationId: bigint;
37
+ locationId: LocationId;
36
38
  unreadCount: number;
37
39
  lastMessage: LocationMessageDto | null;
38
40
  }
@@ -89,23 +91,23 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
89
91
  appearance: z.ZodString;
90
92
  }, "strip", z.ZodTypeAny, {
91
93
  name: string;
92
- core: "web_search" | "x_twitter" | "notion";
93
94
  appearance: string;
95
+ core: "x_twitter" | "notion" | "web_search";
94
96
  }, {
95
97
  name: string;
96
- core: "web_search" | "x_twitter" | "notion";
97
98
  appearance: string;
99
+ core: "x_twitter" | "notion" | "web_search";
98
100
  }>, "many">>;
99
101
  }, "strict", z.ZodTypeAny, {
100
102
  name?: string | undefined;
101
- thumbnail?: string | null | undefined;
102
- environment?: "CHAT" | undefined;
103
+ description?: string | undefined;
103
104
  core?: {
104
105
  name: "round_robin" | "update_forever" | "update_once";
105
106
  sequential?: boolean | undefined;
106
107
  } | undefined;
107
- description?: string | undefined;
108
108
  rules?: string[] | undefined;
109
+ thumbnail?: string | null | undefined;
110
+ environment?: "CHAT" | undefined;
109
111
  canvases?: {
110
112
  name: string;
111
113
  description: string;
@@ -118,19 +120,19 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
118
120
  }[] | undefined;
119
121
  gimmicks?: {
120
122
  name: string;
121
- core: "web_search" | "x_twitter" | "notion";
122
123
  appearance: string;
124
+ core: "x_twitter" | "notion" | "web_search";
123
125
  }[] | undefined;
124
126
  }, {
125
127
  name?: string | undefined;
126
- thumbnail?: string | null | undefined;
127
- environment?: "CHAT" | undefined;
128
+ description?: string | undefined;
128
129
  core?: {
129
130
  name: "round_robin" | "update_forever" | "update_once";
130
131
  sequential?: boolean | undefined;
131
132
  } | undefined;
132
- description?: string | undefined;
133
133
  rules?: string[] | undefined;
134
+ thumbnail?: string | null | undefined;
135
+ environment?: "CHAT" | undefined;
134
136
  canvases?: {
135
137
  name: string;
136
138
  description: string;
@@ -143,22 +145,21 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
143
145
  }[] | undefined;
144
146
  gimmicks?: {
145
147
  name: string;
146
- core: "web_search" | "x_twitter" | "notion";
147
148
  appearance: string;
149
+ core: "x_twitter" | "notion" | "web_search";
148
150
  }[] | undefined;
149
151
  }>;
150
152
  }, "strip", z.ZodTypeAny, {
151
- locationId: bigint;
152
153
  config: {
153
154
  name?: string | undefined;
154
- thumbnail?: string | null | undefined;
155
- environment?: "CHAT" | undefined;
155
+ description?: string | undefined;
156
156
  core?: {
157
157
  name: "round_robin" | "update_forever" | "update_once";
158
158
  sequential?: boolean | undefined;
159
159
  } | undefined;
160
- description?: string | undefined;
161
160
  rules?: string[] | undefined;
161
+ thumbnail?: string | null | undefined;
162
+ environment?: "CHAT" | undefined;
162
163
  canvases?: {
163
164
  name: string;
164
165
  description: string;
@@ -171,22 +172,22 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
171
172
  }[] | undefined;
172
173
  gimmicks?: {
173
174
  name: string;
174
- core: "web_search" | "x_twitter" | "notion";
175
175
  appearance: string;
176
+ core: "x_twitter" | "notion" | "web_search";
176
177
  }[] | undefined;
177
178
  };
178
- }, {
179
179
  locationId: bigint;
180
+ }, {
180
181
  config: {
181
182
  name?: string | undefined;
182
- thumbnail?: string | null | undefined;
183
- environment?: "CHAT" | undefined;
183
+ description?: string | undefined;
184
184
  core?: {
185
185
  name: "round_robin" | "update_forever" | "update_once";
186
186
  sequential?: boolean | undefined;
187
187
  } | undefined;
188
- description?: string | undefined;
189
188
  rules?: string[] | undefined;
189
+ thumbnail?: string | null | undefined;
190
+ environment?: "CHAT" | undefined;
190
191
  canvases?: {
191
192
  name: string;
192
193
  description: string;
@@ -199,10 +200,11 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
199
200
  }[] | undefined;
200
201
  gimmicks?: {
201
202
  name: string;
202
- core: "web_search" | "x_twitter" | "notion";
203
203
  appearance: string;
204
+ core: "x_twitter" | "notion" | "web_search";
204
205
  }[] | undefined;
205
206
  };
207
+ locationId: bigint;
206
208
  }>;
207
209
  export type LocationUpdateConfigDto = z.infer<typeof LocationUpdateConfigSchema>;
208
210
  export type LocationUpdateConfigResponseDto = Partial<LocationConfig>;
@@ -234,7 +236,6 @@ export declare const LocationUpdateCredentialSchema: z.ZodObject<{
234
236
  token: string;
235
237
  }>]>;
236
238
  }, "strip", z.ZodTypeAny, {
237
- locationId: bigint;
238
239
  credential: {
239
240
  type: "x_twitter";
240
241
  email: string;
@@ -244,8 +245,8 @@ export declare const LocationUpdateCredentialSchema: z.ZodObject<{
244
245
  type: "notion";
245
246
  token: string;
246
247
  };
247
- }, {
248
248
  locationId: bigint;
249
+ }, {
249
250
  credential: {
250
251
  type: "x_twitter";
251
252
  email: string;
@@ -255,6 +256,7 @@ export declare const LocationUpdateCredentialSchema: z.ZodObject<{
255
256
  type: "notion";
256
257
  token: string;
257
258
  };
259
+ locationId: bigint;
258
260
  }>;
259
261
  export type LocationUpdateCredentialDto = z.infer<typeof LocationUpdateCredentialSchema>;
260
262
  export interface LocationUpdateCredentialResponseDto {
@@ -265,11 +267,11 @@ export declare const LocationDeleteCredentialSchema: z.ZodObject<{
265
267
  locationId: z.ZodBigInt;
266
268
  credentialType: z.ZodString;
267
269
  }, "strip", z.ZodTypeAny, {
268
- locationId: bigint;
269
270
  credentialType: string;
270
- }, {
271
271
  locationId: bigint;
272
+ }, {
272
273
  credentialType: string;
274
+ locationId: bigint;
273
275
  }>;
274
276
  export type LocationDeleteCredentialDto = z.infer<typeof LocationDeleteCredentialSchema>;
275
277
  export interface LocationDeleteCredentialResponseDto {
@@ -280,11 +282,11 @@ export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
280
282
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
281
283
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
282
284
  }, "strip", z.ZodTypeAny, {
283
- limit: number;
284
285
  page: number;
286
+ limit: number;
285
287
  }, {
286
- limit?: number | undefined;
287
288
  page?: number | undefined;
289
+ limit?: number | undefined;
288
290
  }>;
289
291
  export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
290
292
  export interface LocationPresetsPaginatedResponseDto {
@@ -323,8 +325,8 @@ export declare const CreateLocationFromPresetSchema: z.ZodObject<{
323
325
  readonly MINIMO: "MINIMO";
324
326
  }>>>;
325
327
  }, "strip", z.ZodTypeAny, {
326
- platform: "API" | "MINIMO";
327
328
  presetId: bigint;
329
+ platform: "API" | "MINIMO";
328
330
  }, {
329
331
  presetId: bigint;
330
332
  platform?: "API" | "MINIMO" | undefined;
@@ -354,8 +356,8 @@ export declare const GetAgentDmLocationQuerySchema: z.ZodObject<{
354
356
  readonly MINIMO: "MINIMO";
355
357
  }>>>;
356
358
  }, "strip", z.ZodTypeAny, {
357
- platform: "API" | "MINIMO";
358
359
  agentId: bigint;
360
+ platform: "API" | "MINIMO";
359
361
  }, {
360
362
  agentId: bigint;
361
363
  platform?: "API" | "MINIMO" | undefined;
@@ -386,6 +388,17 @@ export type GetLocationPrivateParamsDto = z.infer<typeof GetLocationPrivateParam
386
388
  export interface GetLocationPrivateResponseDto {
387
389
  location: LocationPrivateDto;
388
390
  }
391
+ export declare const GetLocationCostParamsSchema: z.ZodObject<{
392
+ locationId: z.ZodBigInt;
393
+ }, "strip", z.ZodTypeAny, {
394
+ locationId: bigint;
395
+ }, {
396
+ locationId: bigint;
397
+ }>;
398
+ export type GetLocationCostParamsDto = z.infer<typeof GetLocationCostParamsSchema>;
399
+ export interface GetLocationCostResponseDto {
400
+ cost: LocationCostDto;
401
+ }
389
402
  export declare const UploadLocationThumbnailParamsSchema: z.ZodObject<{
390
403
  locationId: z.ZodBigInt;
391
404
  }, "strip", z.ZodTypeAny, {
@@ -397,6 +410,18 @@ export type UploadLocationThumbnailParamsDto = z.infer<typeof UploadLocationThum
397
410
  export interface UploadLocationThumbnailResponseDto {
398
411
  thumbnailUrl: string;
399
412
  }
413
+ export declare const DeleteLocationParamsSchema: z.ZodObject<{
414
+ locationId: z.ZodBigInt;
415
+ }, "strip", z.ZodTypeAny, {
416
+ locationId: bigint;
417
+ }, {
418
+ locationId: bigint;
419
+ }>;
420
+ export type DeleteLocationParamsDto = z.infer<typeof DeleteLocationParamsSchema>;
421
+ export interface DeleteLocationResponseDto {
422
+ success: boolean;
423
+ error?: string;
424
+ }
400
425
  export declare const GetLocationContentParamsSchema: z.ZodObject<{
401
426
  locationId: z.ZodBigInt;
402
427
  }, "strip", z.ZodTypeAny, {
@@ -408,6 +433,28 @@ export type GetLocationContentParamsDto = z.infer<typeof GetLocationContentParam
408
433
  export interface GetLocationContentResponseDto {
409
434
  content: LocationContentDto;
410
435
  }
436
+ export declare const CreateLocationSnapshotParamsSchema: z.ZodObject<{
437
+ locationId: z.ZodBigInt;
438
+ }, "strip", z.ZodTypeAny, {
439
+ locationId: bigint;
440
+ }, {
441
+ locationId: bigint;
442
+ }>;
443
+ export type CreateLocationSnapshotParamsDto = z.infer<typeof CreateLocationSnapshotParamsSchema>;
444
+ export interface CreateLocationSnapshotResponseDto {
445
+ snapshotKey: string;
446
+ }
447
+ export declare const GetLocationSnapshotParamsSchema: z.ZodObject<{
448
+ snapshotKey: z.ZodString;
449
+ }, "strip", z.ZodTypeAny, {
450
+ snapshotKey: string;
451
+ }, {
452
+ snapshotKey: string;
453
+ }>;
454
+ export type GetLocationSnapshotParamsDto = z.infer<typeof GetLocationSnapshotParamsSchema>;
455
+ export interface GetLocationSnapshotResponseDto {
456
+ snapshot: LocationSnapshotDto;
457
+ }
411
458
  export declare const MarkLocationAsReadParamsSchema: z.ZodObject<{
412
459
  locationId: z.ZodBigInt;
413
460
  }, "strip", z.ZodTypeAny, {
@@ -451,11 +498,11 @@ export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
451
498
  locationId: z.ZodBigInt;
452
499
  agentId: z.ZodBigInt;
453
500
  }, "strip", z.ZodTypeAny, {
454
- locationId: bigint;
455
501
  agentId: bigint;
456
- }, {
457
502
  locationId: bigint;
503
+ }, {
458
504
  agentId: bigint;
505
+ locationId: bigint;
459
506
  }>;
460
507
  export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
461
508
  export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
@@ -482,11 +529,11 @@ export declare const RemoveAgentFromLocationToolSchema: z.ZodObject<{
482
529
  locationId: z.ZodBigInt;
483
530
  agentId: z.ZodBigInt;
484
531
  }, "strip", z.ZodTypeAny, {
485
- locationId: bigint;
486
532
  agentId: bigint;
487
- }, {
488
533
  locationId: bigint;
534
+ }, {
489
535
  agentId: bigint;
536
+ locationId: bigint;
490
537
  }>;
491
538
  export type RemoveAgentFromLocationToolDto = z.infer<typeof RemoveAgentFromLocationToolSchema>;
492
539
  export declare const GetLocationScheduledMessagesParamsSchema: z.ZodObject<{
@@ -628,8 +675,6 @@ export declare const JoinLocationSchema: z.ZodObject<{
628
675
  }>;
629
676
  export type JoinLocationDto = z.infer<typeof JoinLocationSchema>;
630
677
  export interface JoinLocationResponseDto {
631
- success: boolean;
632
- locationId: bigint;
633
678
  joined: boolean;
634
679
  }
635
680
  export declare const LeaveLocationSchema: z.ZodObject<{
@@ -641,8 +686,6 @@ export declare const LeaveLocationSchema: z.ZodObject<{
641
686
  }>;
642
687
  export type LeaveLocationDto = z.infer<typeof LeaveLocationSchema>;
643
688
  export interface LeaveLocationResponseDto {
644
- success: boolean;
645
- locationId: bigint;
646
689
  left: boolean;
647
690
  }
648
691
  export declare const SubscribeLocationSchema: z.ZodObject<{
@@ -654,8 +697,6 @@ export declare const SubscribeLocationSchema: z.ZodObject<{
654
697
  }>;
655
698
  export type SubscribeLocationDto = z.infer<typeof SubscribeLocationSchema>;
656
699
  export interface SubscribeLocationResponseDto {
657
- success: boolean;
658
- locationId: bigint;
659
700
  subscribed: boolean;
660
701
  }
661
702
  export declare const UnsubscribeLocationSchema: z.ZodObject<{
@@ -667,8 +708,6 @@ export declare const UnsubscribeLocationSchema: z.ZodObject<{
667
708
  }>;
668
709
  export type UnsubscribeLocationDto = z.infer<typeof UnsubscribeLocationSchema>;
669
710
  export interface UnsubscribeLocationResponseDto {
670
- success: boolean;
671
- locationId: bigint;
672
711
  unsubscribed: boolean;
673
712
  }
674
713
  export declare const GetLocationMessagesSchema: z.ZodObject<{
@@ -688,39 +727,20 @@ export interface LocationMessagesResponseDto {
688
727
  }
689
728
  export declare const SendLocationMessageSchema: z.ZodObject<{
690
729
  locationId: z.ZodBigInt;
691
- message: z.ZodString;
730
+ message: z.ZodOptional<z.ZodString>;
731
+ action: z.ZodOptional<z.ZodString>;
692
732
  }, "strip", z.ZodTypeAny, {
693
- message: string;
694
733
  locationId: bigint;
734
+ message?: string | undefined;
735
+ action?: string | undefined;
695
736
  }, {
696
- message: string;
697
737
  locationId: bigint;
738
+ message?: string | undefined;
739
+ action?: string | undefined;
698
740
  }>;
699
741
  export type SendLocationMessageDto = z.infer<typeof SendLocationMessageSchema>;
700
742
  export interface SendMessageResponseDto {
701
- success: boolean;
702
- messageId?: string;
703
743
  }
704
- export declare const SendUserMessageSchema: z.ZodObject<{
705
- locationId: z.ZodBigInt;
706
- twitchUserId: z.ZodString;
707
- username: z.ZodString;
708
- nickname: z.ZodString;
709
- message: z.ZodString;
710
- }, "strip", z.ZodTypeAny, {
711
- message: string;
712
- locationId: bigint;
713
- username: string;
714
- twitchUserId: string;
715
- nickname: string;
716
- }, {
717
- message: string;
718
- locationId: bigint;
719
- username: string;
720
- twitchUserId: string;
721
- nickname: string;
722
- }>;
723
- export type SendUserMessageDto = z.infer<typeof SendUserMessageSchema>;
724
744
  export declare const SendSystemMessageSchema: z.ZodObject<{
725
745
  locationId: z.ZodBigInt;
726
746
  message: z.ZodString;
@@ -735,22 +755,23 @@ export declare const SendSystemMessageSchema: z.ZodObject<{
735
755
  resumeUpdate?: boolean | undefined;
736
756
  }>;
737
757
  export type SendSystemMessageDto = z.infer<typeof SendSystemMessageSchema>;
758
+ export interface SendSystemMessageResponseDto {
759
+ }
738
760
  export declare const UpdateLocationImageSchema: z.ZodObject<{
739
761
  locationId: z.ZodBigInt;
740
762
  image: z.ZodString;
741
763
  index: z.ZodOptional<z.ZodNumber>;
742
764
  }, "strip", z.ZodTypeAny, {
743
- locationId: bigint;
744
765
  image: string;
766
+ locationId: bigint;
745
767
  index?: number | undefined;
746
768
  }, {
747
- locationId: bigint;
748
769
  image: string;
770
+ locationId: bigint;
749
771
  index?: number | undefined;
750
772
  }>;
751
773
  export type UpdateLocationImageDto = z.infer<typeof UpdateLocationImageSchema>;
752
774
  export interface UpdateLocationImageResponseDto {
753
- success: boolean;
754
775
  imageUrl?: string;
755
776
  }
756
777
  export declare const UpdateLocationRenderingSchema: z.ZodObject<{
@@ -765,27 +786,22 @@ export declare const UpdateLocationRenderingSchema: z.ZodObject<{
765
786
  }>;
766
787
  export type UpdateLocationRenderingDto = z.infer<typeof UpdateLocationRenderingSchema>;
767
788
  export interface UpdateLocationRenderingResponseDto {
768
- success: boolean;
769
- rendering?: string | null;
770
789
  }
771
790
  export declare const UpdateLocationAgentIsActiveSchema: z.ZodObject<{
772
791
  locationId: z.ZodBigInt;
773
792
  agentId: z.ZodBigInt;
774
793
  isActive: z.ZodBoolean;
775
794
  }, "strip", z.ZodTypeAny, {
776
- locationId: bigint;
777
795
  agentId: bigint;
796
+ locationId: bigint;
778
797
  isActive: boolean;
779
798
  }, {
780
- locationId: bigint;
781
799
  agentId: bigint;
800
+ locationId: bigint;
782
801
  isActive: boolean;
783
802
  }>;
784
803
  export type UpdateLocationAgentIsActiveDto = z.infer<typeof UpdateLocationAgentIsActiveSchema>;
785
804
  export interface UpdateLocationAgentIsActiveResponseDto {
786
- success: boolean;
787
- agentId: bigint;
788
- isActive: boolean;
789
805
  }
790
806
  export declare const PauseLocationUpdateSchema: z.ZodObject<{
791
807
  locationId: z.ZodBigInt;
@@ -796,9 +812,6 @@ export declare const PauseLocationUpdateSchema: z.ZodObject<{
796
812
  }>;
797
813
  export type PauseLocationUpdateDto = z.infer<typeof PauseLocationUpdateSchema>;
798
814
  export interface PauseLocationUpdateResponseDto {
799
- success: boolean;
800
- locationId: bigint;
801
- paused: boolean;
802
815
  }
803
816
  export declare const ResumeLocationUpdateSchema: z.ZodObject<{
804
817
  locationId: z.ZodBigInt;
@@ -812,8 +825,5 @@ export declare const ResumeLocationUpdateSchema: z.ZodObject<{
812
825
  }>;
813
826
  export type ResumeLocationUpdateDto = z.infer<typeof ResumeLocationUpdateSchema>;
814
827
  export interface ResumeLocationUpdateResponseDto {
815
- success: boolean;
816
- locationId: bigint;
817
- delayMs: number;
818
828
  resumeAt: string;
819
829
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResumeLocationUpdateSchema = exports.PauseLocationUpdateSchema = exports.UpdateLocationAgentIsActiveSchema = exports.UpdateLocationRenderingSchema = exports.UpdateLocationImageSchema = exports.SendSystemMessageSchema = exports.SendUserMessageSchema = exports.SendLocationMessageSchema = exports.GetLocationMessagesSchema = exports.UnsubscribeLocationSchema = exports.SubscribeLocationSchema = exports.LeaveLocationSchema = exports.JoinLocationSchema = exports.DeleteLocationScheduledMessageToolSchema = exports.DeleteLocationScheduledMessageParamsSchema = exports.UpdateLocationScheduledMessageToolSchema = exports.UpdateLocationScheduledMessageBodySchema = exports.UpdateLocationScheduledMessageParamsSchema = exports.CreateLocationScheduledMessageToolSchema = exports.CreateLocationScheduledMessageBodySchema = exports.CreateLocationScheduledMessageParamsSchema = exports.GetLocationScheduledMessagesParamsSchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationContentParamsSchema = exports.UploadLocationThumbnailParamsSchema = exports.GetLocationPrivateParamsSchema = exports.GetLocationParamsSchema = exports.GetAgentDmLocationQuerySchema = exports.GetHelperLocationQuerySchema = exports.CreateLocationFromPresetSchema = exports.CreateLocationSchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationDeleteCredentialSchema = exports.LocationUpdateCredentialSchema = exports.LocationUpdateConfigSchema = exports.LocationsUnreadCountQuerySchema = exports.UserLocationsQuerySchema = void 0;
3
+ exports.ResumeLocationUpdateSchema = exports.PauseLocationUpdateSchema = exports.UpdateLocationAgentIsActiveSchema = exports.UpdateLocationRenderingSchema = exports.UpdateLocationImageSchema = exports.SendSystemMessageSchema = exports.SendLocationMessageSchema = exports.GetLocationMessagesSchema = exports.UnsubscribeLocationSchema = exports.SubscribeLocationSchema = exports.LeaveLocationSchema = exports.JoinLocationSchema = exports.DeleteLocationScheduledMessageToolSchema = exports.DeleteLocationScheduledMessageParamsSchema = exports.UpdateLocationScheduledMessageToolSchema = exports.UpdateLocationScheduledMessageBodySchema = exports.UpdateLocationScheduledMessageParamsSchema = exports.CreateLocationScheduledMessageToolSchema = exports.CreateLocationScheduledMessageBodySchema = exports.CreateLocationScheduledMessageParamsSchema = exports.GetLocationScheduledMessagesParamsSchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationSnapshotParamsSchema = exports.CreateLocationSnapshotParamsSchema = exports.GetLocationContentParamsSchema = exports.DeleteLocationParamsSchema = exports.UploadLocationThumbnailParamsSchema = exports.GetLocationCostParamsSchema = exports.GetLocationPrivateParamsSchema = exports.GetLocationParamsSchema = exports.GetAgentDmLocationQuerySchema = exports.GetHelperLocationQuerySchema = exports.CreateLocationFromPresetSchema = exports.CreateLocationSchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationDeleteCredentialSchema = exports.LocationUpdateCredentialSchema = exports.LocationUpdateConfigSchema = exports.LocationsUnreadCountQuerySchema = exports.UserLocationsQuerySchema = void 0;
4
4
  const common_1 = require("@little-samo/samo-ai/common");
5
5
  const models_1 = require("@little-samo/samo-ai-sdk/models");
6
6
  const zod_1 = require("zod");
@@ -85,12 +85,24 @@ exports.GetLocationParamsSchema = zod_1.z.object({
85
85
  exports.GetLocationPrivateParamsSchema = zod_1.z.object({
86
86
  locationId: zod_1.z.coerce.bigint(),
87
87
  });
88
+ exports.GetLocationCostParamsSchema = zod_1.z.object({
89
+ locationId: zod_1.z.coerce.bigint(),
90
+ });
88
91
  exports.UploadLocationThumbnailParamsSchema = zod_1.z.object({
89
92
  locationId: zod_1.z.coerce.bigint(),
90
93
  });
94
+ exports.DeleteLocationParamsSchema = zod_1.z.object({
95
+ locationId: zod_1.z.coerce.bigint(),
96
+ });
91
97
  exports.GetLocationContentParamsSchema = zod_1.z.object({
92
98
  locationId: zod_1.z.coerce.bigint(),
93
99
  });
100
+ exports.CreateLocationSnapshotParamsSchema = zod_1.z.object({
101
+ locationId: zod_1.z.coerce.bigint(),
102
+ });
103
+ exports.GetLocationSnapshotParamsSchema = zod_1.z.object({
104
+ snapshotKey: zod_1.z.string().max(128),
105
+ });
94
106
  exports.MarkLocationAsReadParamsSchema = zod_1.z.object({
95
107
  locationId: zod_1.z.coerce.bigint(),
96
108
  });
@@ -181,14 +193,8 @@ exports.GetLocationMessagesSchema = zod_1.z.object({
181
193
  });
182
194
  exports.SendLocationMessageSchema = zod_1.z.object({
183
195
  locationId: zod_1.z.coerce.bigint(),
184
- message: zod_1.z.string().max(2000),
185
- });
186
- exports.SendUserMessageSchema = zod_1.z.object({
187
- locationId: zod_1.z.coerce.bigint(),
188
- twitchUserId: zod_1.z.string(),
189
- username: zod_1.z.string(),
190
- nickname: zod_1.z.string(),
191
- message: zod_1.z.string().max(2000),
196
+ message: zod_1.z.string().max(2000).optional(),
197
+ action: zod_1.z.string().max(2000).optional(),
192
198
  });
193
199
  exports.SendSystemMessageSchema = zod_1.z.object({
194
200
  locationId: zod_1.z.coerce.bigint(),
@@ -1 +1 @@
1
- {"version":3,"file":"location.requests.js","sourceRoot":"","sources":["../../../src/dto/locations/location.requests.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,4DAAmE;AACnE,6BAAwB;AAExB,4EAGgD;AAgBnC,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,E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C1C,CAAC,CAAC;AASU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AASU,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC1B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;CACtB,CAAC,CAAC;AASU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AAOU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC7B,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;CAClE,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { LocationId, UserId } from '@little-samo/samo-ai/models';
2
+ import { LocationMessageDto } from './location.message';
3
+ export interface LocationSnapshotDto {
4
+ snapshotKey: string;
5
+ snapshotOwnerUserId: UserId;
6
+ locationId: LocationId;
7
+ locationName: string;
8
+ locationOwnerUserId: UserId;
9
+ messages: LocationMessageDto[];
10
+ createdAt: Date;
11
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=location.snapshot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.snapshot.js","sourceRoot":"","sources":["../../../src/dto/locations/location.snapshot.ts"],"names":[],"mappings":""}
@@ -8,7 +8,7 @@ export declare const AgentConfigCoreSchema: z.ZodObject<{
8
8
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
9
9
  }>;
10
10
  export type AgentConfigCore = z.infer<typeof AgentConfigCoreSchema>;
11
- declare const LlmPresetSchema: z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">]>;
11
+ declare const LlmPresetSchema: z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>;
12
12
  export type LlmPreset = z.infer<typeof LlmPresetSchema>;
13
13
  export declare const AgentConfigSchema: z.ZodObject<{
14
14
  name: z.ZodString;
@@ -21,7 +21,7 @@ export declare const AgentConfigSchema: z.ZodObject<{
21
21
  }, {
22
22
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
23
23
  }>;
24
- llmPreset: z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">]>;
24
+ llmPreset: z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>;
25
25
  languages: z.ZodArray<z.ZodString, "many">;
26
26
  timeZone: z.ZodString;
27
27
  greeting: z.ZodString;
@@ -35,7 +35,7 @@ export declare const AgentConfigSchema: z.ZodObject<{
35
35
  core: {
36
36
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
37
37
  };
38
- llmPreset: "gemini-low" | "gemini-medium";
38
+ llmPreset: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium";
39
39
  languages: string[];
40
40
  timeZone: string;
41
41
  greeting: string;
@@ -49,7 +49,7 @@ export declare const AgentConfigSchema: z.ZodObject<{
49
49
  core: {
50
50
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
51
51
  };
52
- llmPreset: "gemini-low" | "gemini-medium";
52
+ llmPreset: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium";
53
53
  languages: string[];
54
54
  timeZone: string;
55
55
  greeting: string;
@@ -46,6 +46,8 @@ All property values are strings with a maximum length of 500 characters.
46
46
  const LlmPresetSchema = zod_1.z.union([
47
47
  zod_1.z.literal('gemini-low').describe('Gemini - Low cost'),
48
48
  zod_1.z.literal('gemini-medium').describe('Gemini - Balanced'),
49
+ zod_1.z.literal('openai-low').describe('OpenAI - Low cost'),
50
+ zod_1.z.literal('openai-medium').describe('OpenAI - Balanced'),
49
51
  ]);
50
52
  exports.AgentConfigSchema = zod_1.z.object({
51
53
  name: zod_1.z.string().max(64).describe('Agent name'),
@@ -1 +1 @@
1
- {"version":3,"file":"agent.config.js","sourceRoot":"","sources":["../../../../src/models/entities/agents/agent.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAA2B;IACxD,IAAI,EAAE,8IAA8I;IACpJ,IAAI,EAAE,6KAA6K;IACnL,MAAM,EAAE,0LAA0L;IAClM,IAAI,EAAE,+LAA+L;IACrM,MAAM,EAAE,8KAA8K;CACvL,CAAC;AAEW,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC;aACE,OAAO,CAAC,sBAAsB,CAAC;aAC/B,QAAQ,CACP,4JAA4J,CAC7J;QACH,OAAC;aACE,OAAO,CAAC,iBAAiB,CAAC;aAC1B,QAAQ,CACP,+IAA+I,CAChJ;QACH,OAAC;aACE,OAAO,CAAC,wBAAwB,CAAC;aACjC,QAAQ,CACP,oIAAoI,CACrI;KACJ,CAAC;CACH,CAAC,CAAC;AAIH,MAAM,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,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,QAAQ,CACP,qEAAqE,CACtE;IACH,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,CACP,gKAAgK,CACjK;IAEH,OAAO,EAAE,OAAC;SACP,KAAK,CACJ,OAAC,CAAC,KAAK,CAAC;QACN,OAAC;aACE,OAAO,CAAC,MAAM,CAAC;aACf,QAAQ,CACP,gEAAgE,CACjE;QACH,OAAC;aACE,OAAO,CAAC,MAAM,CAAC;aACf,QAAQ,CACP,gEAAgE,CACjE;KACJ,CAAC,CACH;SACA,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,0IAA0I,CAC3I;IAEH,SAAS,EAAE,eAAe;IAE1B,KAAK,EAAE,OAAC;SACL,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC1B,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,iLAAiL,CAClL;CACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"agent.config.js","sourceRoot":"","sources":["../../../../src/models/entities/agents/agent.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,kBAAkB,GAA2B;IACxD,IAAI,EAAE,8IAA8I;IACpJ,IAAI,EAAE,6KAA6K;IACnL,MAAM,EAAE,0LAA0L;IAClM,IAAI,EAAE,+LAA+L;IACrM,MAAM,EAAE,8KAA8K;CACvL,CAAC;AAEW,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC;aACE,OAAO,CAAC,sBAAsB,CAAC;aAC/B,QAAQ,CACP,4JAA4J,CAC7J;QACH,OAAC;aACE,OAAO,CAAC,iBAAiB,CAAC;aAC1B,QAAQ,CACP,+IAA+I,CAChJ;QACH,OAAC;aACE,OAAO,CAAC,wBAAwB,CAAC;aACjC,QAAQ,CACP,oIAAoI,CACrI;KACJ,CAAC;C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H,IAAI,EAAE,6BAAqB,CAAC,QAAQ,CAClC,yFAAyF,CAC1F;IACD,SAAS,EAAE,eAAe,CAAC,QAAQ,CACjC,4IAA4I,CAC7I;IAED,SAAS,EAAE,OAAC;SACT,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SACjB,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,oNAAoN,CACrN;IACH,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,qEAAqE,CACtE;IACH,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,CACP,gKAAgK,CACjK;IAEH,OAAO,EAAE,OAAC;SACP,KAAK,CACJ,OAAC,CAAC,KAAK,CAAC;QACN,OAAC;aACE,OAAO,CAAC,MAAM,CAAC;aACf,QAAQ,CACP,gEAAgE,CACjE;QACH,OAAC;aACE,OAAO,CAAC,MAAM,CAAC;aACf,QAAQ,CACP,gEAAgE,CACjE;KACJ,CAAC,CACH;SACA,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,0IAA0I,CAC3I;IAEH,SAAS,EAAE,eAAe;IAE1B,KAAK,EAAE,OAAC;SACL,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC1B,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,iLAAiL,CAClL;CACJ,CAAC,CAAC"}
@@ -24,18 +24,20 @@ export declare const LocationConfigCanvasSchema: z.ZodObject<{
24
24
  description: string;
25
25
  maxLength: number;
26
26
  }>;
27
+ declare const GimmickCoreSchema: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">, z.ZodLiteral<"notion">]>;
28
+ export type GimmickCore = z.infer<typeof GimmickCoreSchema>;
27
29
  export declare const LocationConfigGimmickSchema: z.ZodObject<{
28
30
  core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">, z.ZodLiteral<"notion">]>;
29
31
  name: z.ZodString;
30
32
  appearance: z.ZodString;
31
33
  }, "strip", z.ZodTypeAny, {
32
34
  name: string;
33
- appearance: string;
34
35
  core: "web_search" | "x_twitter" | "notion";
36
+ appearance: string;
35
37
  }, {
36
38
  name: string;
37
- appearance: string;
38
39
  core: "web_search" | "x_twitter" | "notion";
40
+ appearance: string;
39
41
  }>;
40
42
  export type LocationConfigGimmick = z.infer<typeof LocationConfigGimmickSchema>;
41
43
  export declare const LocationConfigSchema: z.ZodObject<{
@@ -86,12 +88,12 @@ export declare const LocationConfigSchema: z.ZodObject<{
86
88
  appearance: z.ZodString;
87
89
  }, "strip", z.ZodTypeAny, {
88
90
  name: string;
89
- appearance: string;
90
91
  core: "web_search" | "x_twitter" | "notion";
92
+ appearance: string;
91
93
  }, {
92
94
  name: string;
93
- appearance: string;
94
95
  core: "web_search" | "x_twitter" | "notion";
96
+ appearance: string;
95
97
  }>, "many">;
96
98
  }, "strip", z.ZodTypeAny, {
97
99
  name: string;
@@ -100,9 +102,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
100
102
  name: "round_robin" | "update_forever" | "update_once";
101
103
  sequential?: boolean | undefined;
102
104
  };
103
- rules: string[];
104
105
  thumbnail: string | null;
105
106
  environment: "CHAT";
107
+ rules: string[];
106
108
  canvases: {
107
109
  name: string;
108
110
  description: string;
@@ -115,8 +117,8 @@ export declare const LocationConfigSchema: z.ZodObject<{
115
117
  }[];
116
118
  gimmicks: {
117
119
  name: string;
118
- appearance: string;
119
120
  core: "web_search" | "x_twitter" | "notion";
121
+ appearance: string;
120
122
  }[];
121
123
  }, {
122
124
  name: string;
@@ -125,9 +127,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
125
127
  name: "round_robin" | "update_forever" | "update_once";
126
128
  sequential?: boolean | undefined;
127
129
  };
128
- rules: string[];
129
130
  thumbnail: string | null;
130
131
  environment: "CHAT";
132
+ rules: string[];
131
133
  canvases: {
132
134
  name: string;
133
135
  description: string;
@@ -140,8 +142,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
140
142
  }[];
141
143
  gimmicks: {
142
144
  name: string;
143
- appearance: string;
144
145
  core: "web_search" | "x_twitter" | "notion";
146
+ appearance: string;
145
147
  }[];
146
148
  }>;
147
149
  export type LocationConfig = z.infer<typeof LocationConfigSchema>;
150
+ export {};
@@ -37,18 +37,19 @@ exports.LocationConfigCanvasSchema = zod_1.z.object({
37
37
  .max(1000)
38
38
  .describe('Maximum character limit for canvas content'),
39
39
  });
40
+ const GimmickCoreSchema = zod_1.z.union([
41
+ zod_1.z
42
+ .literal('web_search')
43
+ .describe('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'),
44
+ zod_1.z
45
+ .literal('x_twitter')
46
+ .describe('Interacts with X (Twitter) platform for social media operations and content management'),
47
+ zod_1.z
48
+ .literal('notion')
49
+ .describe('Interacts with Notion platform for content management and collaboration'),
50
+ ]);
40
51
  exports.LocationConfigGimmickSchema = zod_1.z.object({
41
- core: zod_1.z.union([
42
- zod_1.z
43
- .literal('web_search')
44
- .describe('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'),
45
- zod_1.z
46
- .literal('x_twitter')
47
- .describe('Interacts with X (Twitter) platform for social media operations and content management'),
48
- zod_1.z
49
- .literal('notion')
50
- .describe('Interacts with Notion platform for content management and collaboration'),
51
- ]),
52
+ core: GimmickCoreSchema.describe('Core gimmick behavior that determines how the gimmick is executed'),
52
53
  name: zod_1.z
53
54
  .string()
54
55
  .max(64)
@@ -1 +1 @@
1
- {"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,6DAA2D;AAE9C,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC/C,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,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,CACP,gFAAgF,CACjF;IAEH,QAAQ,EAAE,OAAC;SACR,KAAK,CAAC,mCAA2B,CAAC;SAClC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,uGAAuG,CACxG;CACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,6DAA2D;AAE9C,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC/C,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,IAAI,CAAC;SACjC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,IAAI,CAAC;SACjC,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC;QACrE,OAAC;aACE,OAAO,CAAC,gBAAgB,CAAC;aACzB,QAAQ,CAAC,6CAA6C,CAAC;QAC1D,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;KACxE,CAAC;IACF,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CAC7E,CAAC,CAAC;AAIU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,EAAE,CAAC;SACP,KAAK,CAAC,cAAc,EAAE,gDAAgD,CAAC;SACvE,QAAQ,CACP,kEAAkE,CACnE;IACH,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;SACR,GAAG,CAAC,IAAI,CAAC;SACT,Q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E;SACR,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,CACP,kFAAkF,CACnF;IAEH,KAAK,EAAE,OAAC;SACL,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SAC1B,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CACP,iFAAiF,CAClF;IAEH,QAAQ,EAAE,OAAC;SACR,KAAK,CAAC,kCAA0B,CAAC;SACjC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,iFAAiF,CAClF;IACH,aAAa,EAAE,OAAC;SACb,KAAK,CAAC,kCAA0B,CAAC;SACjC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,gFAAgF,CACjF;IAEH,QAAQ,EAAE,OAAC;SACR,KAAK,CAAC,mCAA2B,CAAC;SAClC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,uGAAuG,CACxG;CACJ,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@little-samo/samo-ai-sdk",
3
- "version": "0.1.3-rv7",
3
+ "version": "0.1.4",
4
4
  "description": "SamoAI SDK",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -62,7 +62,7 @@
62
62
  "devDependencies": {
63
63
  "@eslint/eslintrc": "^3.1.0",
64
64
  "@eslint/js": "^9.13.0",
65
- "@little-samo/samo-ai": "^0.1.3",
65
+ "@little-samo/samo-ai": "^0.1.4",
66
66
  "@types/lodash": "^4",
67
67
  "@types/node": "^20.3.1",
68
68
  "@typescript-eslint/eslint-plugin": "^8.0.0",
@@ -84,7 +84,7 @@
84
84
  "zod": "^3.24.1"
85
85
  },
86
86
  "peerDependencies": {
87
- "@little-samo/samo-ai": "^0.1.3",
87
+ "@little-samo/samo-ai": "^0.1.4",
88
88
  "class-transformer": "^0.5.1",
89
89
  "class-validator": "^0.14.2",
90
90
  "zod": "^3.24.1"