@little-samo/samo-ai-sdk 0.1.0-rv3 → 0.1.0-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.
@@ -3,6 +3,7 @@ import { AgentConfig } from '@little-samo/samo-ai-sdk/models';
3
3
  export interface AgentPublicDto {
4
4
  id: AgentId;
5
5
  name: string;
6
+ avatar: string;
6
7
  ownerUserId: UserId;
7
8
  }
8
9
  export interface AgentPrivateDto extends AgentPublicDto {
@@ -4,7 +4,7 @@ export interface AgentPresetDto {
4
4
  presetName: string;
5
5
  presetShortDescription: string;
6
6
  presetDescription: string;
7
- config: AgentConfig;
7
+ config: Partial<AgentConfig>;
8
8
  createdAt: Date;
9
9
  updatedAt: Date;
10
10
  }
@@ -1,3 +1,4 @@
1
+ import { AgentConfig } from '@little-samo/samo-ai-sdk/models';
1
2
  import { z } from 'zod';
2
3
  import { AgentPrivateDto, AgentPublicDto } from './agent';
3
4
  import { AgentPresetDto } from './agent.preset';
@@ -5,11 +6,11 @@ export declare const AgentsPaginationQuerySchema: z.ZodObject<{
5
6
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
6
7
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
7
8
  }, "strip", z.ZodTypeAny, {
8
- page: number;
9
9
  limit: number;
10
+ page: number;
10
11
  }, {
11
- page?: number | undefined;
12
12
  limit?: number | undefined;
13
+ page?: number | undefined;
13
14
  }>;
14
15
  export type AgentsPaginationQueryDto = z.infer<typeof AgentsPaginationQuerySchema>;
15
16
  export interface AgentsPaginatedResponseDto {
@@ -220,13 +221,14 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
220
221
  }, z.ZodOptional<z.ZodString>, "strip">>>;
221
222
  }, z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodObject<{}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{}, z.ZodOptional<z.ZodString>, "strip">>]>, "strip">>>>;
222
223
  rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
223
- }, "strip", z.ZodTypeAny, {
224
+ }, "strict", z.ZodTypeAny, {
224
225
  name?: string | undefined;
225
- avatar?: string | undefined;
226
- appearance?: string | undefined;
227
226
  core?: {
228
227
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
229
228
  } | undefined;
229
+ appearance?: string | undefined;
230
+ rules?: string[] | undefined;
231
+ avatar?: string | undefined;
230
232
  llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "anthropic-low" | "anthropic-medium" | "anthropic-high" | "deepseek-low" | "deepseek-medium" | undefined;
231
233
  languages?: string[] | undefined;
232
234
  timeZone?: string | undefined;
@@ -288,14 +290,14 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
288
290
  mbti: z.ZodOptional<z.ZodString>;
289
291
  }, z.ZodOptional<z.ZodString>, "strip">>>;
290
292
  }, z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodObject<{}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{}, z.ZodOptional<z.ZodString>, "strip">>]>, "strip"> | undefined;
291
- rules?: string[] | undefined;
292
293
  }, {
293
294
  name?: string | undefined;
294
- avatar?: string | undefined;
295
- appearance?: string | undefined;
296
295
  core?: {
297
296
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
298
297
  } | undefined;
298
+ appearance?: string | undefined;
299
+ rules?: string[] | undefined;
300
+ avatar?: string | undefined;
299
301
  llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "anthropic-low" | "anthropic-medium" | "anthropic-high" | "deepseek-low" | "deepseek-medium" | undefined;
300
302
  languages?: string[] | undefined;
301
303
  timeZone?: string | undefined;
@@ -357,17 +359,16 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
357
359
  mbti: z.ZodOptional<z.ZodString>;
358
360
  }, z.ZodOptional<z.ZodString>, "strip">>>;
359
361
  }, z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodObject<{}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{}, z.ZodOptional<z.ZodString>, "strip">>]>, "strip"> | undefined;
360
- rules?: string[] | undefined;
361
362
  }>;
362
363
  }, "strip", z.ZodTypeAny, {
363
- agentId: bigint;
364
364
  config: {
365
365
  name?: string | undefined;
366
- avatar?: string | undefined;
367
- appearance?: string | undefined;
368
366
  core?: {
369
367
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
370
368
  } | undefined;
369
+ appearance?: string | undefined;
370
+ rules?: string[] | undefined;
371
+ avatar?: string | undefined;
371
372
  llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "anthropic-low" | "anthropic-medium" | "anthropic-high" | "deepseek-low" | "deepseek-medium" | undefined;
372
373
  languages?: string[] | undefined;
373
374
  timeZone?: string | undefined;
@@ -429,17 +430,17 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
429
430
  mbti: z.ZodOptional<z.ZodString>;
430
431
  }, z.ZodOptional<z.ZodString>, "strip">>>;
431
432
  }, z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodObject<{}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{}, z.ZodOptional<z.ZodString>, "strip">>]>, "strip"> | undefined;
432
- rules?: string[] | undefined;
433
433
  };
434
- }, {
435
434
  agentId: bigint;
435
+ }, {
436
436
  config: {
437
437
  name?: string | undefined;
438
- avatar?: string | undefined;
439
- appearance?: string | undefined;
440
438
  core?: {
441
439
  name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
442
440
  } | undefined;
441
+ appearance?: string | undefined;
442
+ rules?: string[] | undefined;
443
+ avatar?: string | undefined;
443
444
  llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "anthropic-low" | "anthropic-medium" | "anthropic-high" | "deepseek-low" | "deepseek-medium" | undefined;
444
445
  languages?: string[] | undefined;
445
446
  timeZone?: string | undefined;
@@ -501,19 +502,20 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
501
502
  mbti: z.ZodOptional<z.ZodString>;
502
503
  }, z.ZodOptional<z.ZodString>, "strip">>>;
503
504
  }, z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodObject<{}, "strip", z.ZodOptional<z.ZodString>, z.objectOutputType<{}, z.ZodOptional<z.ZodString>, "strip">, z.objectInputType<{}, z.ZodOptional<z.ZodString>, "strip">>]>, "strip"> | undefined;
504
- rules?: string[] | undefined;
505
505
  };
506
+ agentId: bigint;
506
507
  }>;
507
508
  export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
509
+ export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
508
510
  export declare const AgentPresetsPaginationQuerySchema: z.ZodObject<{
509
511
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
510
512
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
511
513
  }, "strip", z.ZodTypeAny, {
512
- page: number;
513
514
  limit: number;
515
+ page: number;
514
516
  }, {
515
- page?: number | undefined;
516
517
  limit?: number | undefined;
518
+ page?: number | undefined;
517
519
  }>;
518
520
  export type AgentPresetsPaginationQueryDto = z.infer<typeof AgentPresetsPaginationQuerySchema>;
519
521
  export interface AgentPresetsPaginatedResponseDto {
@@ -16,8 +16,10 @@ exports.GetAgentsByIdsQuerySchema = zod_1.z.object({
16
16
  }),
17
17
  });
18
18
  exports.AgentUpdateConfigSchema = zod_1.z.object({
19
- agentId: zod_1.z.coerce.bigint(),
20
- config: models_1.AgentConfigSchema.partial(),
19
+ agentId: zod_1.z.coerce.bigint().describe('ID of the agent to update'),
20
+ config: models_1.AgentConfigSchema.partial()
21
+ .strict()
22
+ .describe('Only the specific configuration fields that need to be updated (name, avatar, core, etc.)'),
21
23
  });
22
24
  exports.AgentPresetsPaginationQuerySchema = zod_1.z.object({
23
25
  page: zod_1.z.coerce.number().int().min(1).optional().default(1),
@@ -1 +1 @@
1
- {"version":3,"file":"agent.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/agents/agent.requests.ts"],"names":[],"mappings":";;;AAAA,4DAGyC;AACzC,6BAAwB;AAKX,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;AAgBU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC;SACR,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,sCAAsC;KAChD,CAAC;CACL,CAAC,CAAC;AAYU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC1B,MA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AAC;AAUU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,wBAAe,CAAC;CAC1C,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  export * from './location.events';
2
- export * from './location.messages';
2
+ export * from './location.message';
3
3
  export * from './location.preset';
4
4
  export * from './location.requests';
5
5
  export * from './location.states';
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./location.events"), exports);
18
- __exportStar(require("./location.messages"), exports);
18
+ __exportStar(require("./location.message"), exports);
19
19
  __exportStar(require("./location.preset"), exports);
20
20
  __exportStar(require("./location.requests"), exports);
21
21
  __exportStar(require("./location.states"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC;AAClC,sDAAoC;AACpC,oDAAkC;AAClC,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,oDAAkC;AAClC,6CAA2B"}
@@ -1,17 +1,21 @@
1
1
  import { LocationId } from '@little-samo/samo-ai';
2
- import { LocationConfig } from '@little-samo/samo-ai-sdk/models';
3
- import { LocationMessageDto } from './location.messages';
4
- export interface LocationMessagesDto {
5
- id: LocationId;
6
- messages: LocationMessageDto[];
7
- messageCursor?: string;
8
- }
9
- export interface LocationBasicDto {
2
+ import { LocationConfig, LocationEnvironment, LocationType } from '@little-samo/samo-ai-sdk/models';
3
+ import { LocationMessageDto } from './location.message';
4
+ export interface LocationPublicDto {
10
5
  id: LocationId;
11
6
  name: string;
12
- platform: string;
13
- type: string;
14
- config: LocationConfig;
7
+ type: LocationType;
8
+ environment: LocationEnvironment;
15
9
  createdAt: Date;
16
10
  updatedAt: Date;
17
11
  }
12
+ export interface LocationPrivateDto extends LocationPublicDto {
13
+ config: LocationConfig;
14
+ }
15
+ export interface LocationListItemDto extends LocationPublicDto {
16
+ lastMessage: LocationMessageDto | null;
17
+ unreadCount: number;
18
+ agentCount: number;
19
+ userCount: number;
20
+ gimmickCount: number;
21
+ }
@@ -1,6 +1,6 @@
1
- import { UserId } from '@little-samo/samo-ai';
1
+ import { LocationId, UserId } from '@little-samo/samo-ai';
2
2
  import { UserPublicDto } from '../entities';
3
- import { LocationMessageDto } from './location.messages';
3
+ import { LocationMessageDto } from './location.message';
4
4
  export declare const LocationEventType: {
5
5
  readonly AgentExecution: "AgentExecution";
6
6
  readonly UserJoin: "UserJoin";
@@ -10,7 +10,7 @@ export declare const LocationEventType: {
10
10
  };
11
11
  export type LocationEventType = (typeof LocationEventType)[keyof typeof LocationEventType];
12
12
  export interface LocationEventDtoBase {
13
- locationId: number;
13
+ locationId: LocationId;
14
14
  userIds?: UserId[];
15
15
  type: LocationEventType;
16
16
  }
@@ -0,0 +1,13 @@
1
+ import { EntityId, EntityType } from '@little-samo/samo-ai';
2
+ export interface LocationMessageDto {
3
+ entityType: EntityType;
4
+ entityId: EntityId;
5
+ name: string;
6
+ expression?: string;
7
+ message?: string;
8
+ action?: string;
9
+ emotion?: string;
10
+ image?: string;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=location.message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"location.message.js","sourceRoot":"","sources":["../../../src/dto/locations/location.message.ts"],"names":[],"mappings":""}
@@ -6,7 +6,7 @@ export interface LocationPresetDto {
6
6
  presetDescription: string;
7
7
  name: string;
8
8
  description: string;
9
- config: LocationConfig;
9
+ config: Partial<LocationConfig>;
10
10
  createdAt: Date;
11
11
  updatedAt: Date;
12
12
  }
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
- import { LocationBasicDto } from './location';
3
- import { LocationMessageDto } from './location.messages';
2
+ import { LocationConfig } from '../../models/locations/location.config';
3
+ import { LocationListItemDto, LocationPrivateDto, LocationPublicDto } from './location';
4
+ import { LocationMessageDto } from './location.message';
4
5
  import { LocationPresetDto } from './location.preset';
5
6
  export declare const UserLocationsQuerySchema: z.ZodObject<{
6
7
  cursor: z.ZodOptional<z.ZodString>;
@@ -9,22 +10,39 @@ export declare const UserLocationsQuerySchema: z.ZodObject<{
9
10
  limit: number;
10
11
  cursor?: string | undefined;
11
12
  }, {
12
- limit?: number | undefined;
13
13
  cursor?: string | undefined;
14
+ limit?: number | undefined;
14
15
  }>;
15
16
  export type UserLocationsQueryDto = z.infer<typeof UserLocationsQuerySchema>;
16
- export interface UserLocationItemDto {
17
- location: LocationBasicDto;
18
- lastMessage: LocationMessageDto | null;
19
- unreadCount: number;
20
- }
21
17
  export interface UserLocationsResponseDto {
22
- data: UserLocationItemDto[];
18
+ locations: LocationListItemDto[];
23
19
  meta: {
24
20
  total: number;
25
21
  nextCursor?: string;
26
22
  };
27
23
  }
24
+ export declare const GetLocationParamsSchema: z.ZodObject<{
25
+ locationId: z.ZodEffects<z.ZodString, bigint, string>;
26
+ }, "strip", z.ZodTypeAny, {
27
+ locationId: bigint;
28
+ }, {
29
+ locationId: string;
30
+ }>;
31
+ export type GetLocationParamsDto = z.infer<typeof GetLocationParamsSchema>;
32
+ export interface GetLocationResponseDto {
33
+ location: LocationPublicDto | LocationPrivateDto;
34
+ }
35
+ export declare const GetLocationPrivateParamsSchema: z.ZodObject<{
36
+ locationId: z.ZodEffects<z.ZodString, bigint, string>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ locationId: bigint;
39
+ }, {
40
+ locationId: string;
41
+ }>;
42
+ export type GetLocationPrivateParamsDto = z.infer<typeof GetLocationPrivateParamsSchema>;
43
+ export interface GetLocationPrivateResponseDto {
44
+ location: LocationPrivateDto;
45
+ }
28
46
  export declare const MarkLocationAsReadParamsSchema: z.ZodObject<{
29
47
  locationId: z.ZodEffects<z.ZodString, bigint, string>;
30
48
  }, "strip", z.ZodTypeAny, {
@@ -68,11 +86,11 @@ export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
68
86
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
69
87
  limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
70
88
  }, "strip", z.ZodTypeAny, {
71
- page: number;
72
89
  limit: number;
90
+ page: number;
73
91
  }, {
74
- page?: number | undefined;
75
92
  limit?: number | undefined;
93
+ page?: number | undefined;
76
94
  }>;
77
95
  export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
78
96
  export interface LocationPresetsPaginatedResponseDto {
@@ -93,7 +111,7 @@ export declare const CreateLocationFromPresetSchema: z.ZodObject<{
93
111
  }>;
94
112
  export type CreateLocationFromPresetDto = z.infer<typeof CreateLocationFromPresetSchema>;
95
113
  export interface CreateLocationFromPresetResponseDto {
96
- location: LocationBasicDto;
114
+ location: LocationPrivateDto;
97
115
  }
98
116
  export declare const LocationUpdateConfigSchema: z.ZodObject<{
99
117
  locationId: z.ZodBigInt;
@@ -139,16 +157,32 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
139
157
  description: string;
140
158
  maxLength: number;
141
159
  }>, "many">>;
142
- }, "strip", z.ZodTypeAny, {
160
+ gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
161
+ core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
162
+ name: z.ZodString;
163
+ description: z.ZodString;
164
+ appearance: z.ZodString;
165
+ }, "strip", z.ZodTypeAny, {
166
+ name: string;
167
+ description: string;
168
+ core: "web_search" | "x_twitter";
169
+ appearance: string;
170
+ }, {
171
+ name: string;
172
+ description: string;
173
+ core: "web_search" | "x_twitter";
174
+ appearance: string;
175
+ }>, "many">>;
176
+ }, "strict", z.ZodTypeAny, {
143
177
  name?: string | undefined;
144
178
  description?: string | undefined;
145
179
  core?: {
146
180
  name: "round_robin" | "update_forever" | "update_once";
147
181
  sequential?: boolean | undefined;
148
182
  } | undefined;
149
- rules?: string[] | undefined;
150
183
  thumbnail?: string | undefined;
151
184
  environment?: "CHAT" | "WEB_BROWSER" | undefined;
185
+ rules?: string[] | undefined;
152
186
  canvases?: {
153
187
  name: string;
154
188
  description: string;
@@ -159,6 +193,12 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
159
193
  description: string;
160
194
  maxLength: number;
161
195
  }[] | undefined;
196
+ gimmicks?: {
197
+ name: string;
198
+ description: string;
199
+ core: "web_search" | "x_twitter";
200
+ appearance: string;
201
+ }[] | undefined;
162
202
  }, {
163
203
  name?: string | undefined;
164
204
  description?: string | undefined;
@@ -166,9 +206,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
166
206
  name: "round_robin" | "update_forever" | "update_once";
167
207
  sequential?: boolean | undefined;
168
208
  } | undefined;
169
- rules?: string[] | undefined;
170
209
  thumbnail?: string | undefined;
171
210
  environment?: "CHAT" | "WEB_BROWSER" | undefined;
211
+ rules?: string[] | undefined;
172
212
  canvases?: {
173
213
  name: string;
174
214
  description: string;
@@ -179,8 +219,15 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
179
219
  description: string;
180
220
  maxLength: number;
181
221
  }[] | undefined;
222
+ gimmicks?: {
223
+ name: string;
224
+ description: string;
225
+ core: "web_search" | "x_twitter";
226
+ appearance: string;
227
+ }[] | undefined;
182
228
  }>;
183
229
  }, "strip", z.ZodTypeAny, {
230
+ locationId: bigint;
184
231
  config: {
185
232
  name?: string | undefined;
186
233
  description?: string | undefined;
@@ -188,9 +235,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
188
235
  name: "round_robin" | "update_forever" | "update_once";
189
236
  sequential?: boolean | undefined;
190
237
  } | undefined;
191
- rules?: string[] | undefined;
192
238
  thumbnail?: string | undefined;
193
239
  environment?: "CHAT" | "WEB_BROWSER" | undefined;
240
+ rules?: string[] | undefined;
194
241
  canvases?: {
195
242
  name: string;
196
243
  description: string;
@@ -201,9 +248,15 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
201
248
  description: string;
202
249
  maxLength: number;
203
250
  }[] | undefined;
251
+ gimmicks?: {
252
+ name: string;
253
+ description: string;
254
+ core: "web_search" | "x_twitter";
255
+ appearance: string;
256
+ }[] | undefined;
204
257
  };
205
- locationId: bigint;
206
258
  }, {
259
+ locationId: bigint;
207
260
  config: {
208
261
  name?: string | undefined;
209
262
  description?: string | undefined;
@@ -211,9 +264,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
211
264
  name: "round_robin" | "update_forever" | "update_once";
212
265
  sequential?: boolean | undefined;
213
266
  } | undefined;
214
- rules?: string[] | undefined;
215
267
  thumbnail?: string | undefined;
216
268
  environment?: "CHAT" | "WEB_BROWSER" | undefined;
269
+ rules?: string[] | undefined;
217
270
  canvases?: {
218
271
  name: string;
219
272
  description: string;
@@ -224,29 +277,46 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
224
277
  description: string;
225
278
  maxLength: number;
226
279
  }[] | undefined;
280
+ gimmicks?: {
281
+ name: string;
282
+ description: string;
283
+ core: "web_search" | "x_twitter";
284
+ appearance: string;
285
+ }[] | undefined;
227
286
  };
228
- locationId: bigint;
229
287
  }>;
230
288
  export type LocationUpdateConfigDto = z.infer<typeof LocationUpdateConfigSchema>;
231
- export declare const GetAgentHelperLocationSchema: z.ZodObject<{
289
+ export type LocationUpdateConfigResponseDto = Partial<LocationConfig>;
290
+ export declare const GetAgentHelperLocationQuerySchema: z.ZodObject<{
232
291
  agentId: z.ZodBigInt;
233
292
  }, "strip", z.ZodTypeAny, {
234
293
  agentId: bigint;
235
294
  }, {
236
295
  agentId: bigint;
237
296
  }>;
238
- export type GetAgentHelperLocationDto = z.infer<typeof GetAgentHelperLocationSchema>;
297
+ export type GetAgentHelperLocationDto = z.infer<typeof GetAgentHelperLocationQuerySchema>;
239
298
  export interface GetAgentHelperLocationResponseDto {
240
- location: LocationBasicDto;
299
+ location: LocationPrivateDto;
241
300
  }
242
- export declare const GetLocationHelperLocationSchema: z.ZodObject<{
301
+ export declare const GetLocationHelperLocationQuerySchema: z.ZodObject<{
243
302
  locationId: z.ZodBigInt;
244
303
  }, "strip", z.ZodTypeAny, {
245
304
  locationId: bigint;
246
305
  }, {
247
306
  locationId: bigint;
248
307
  }>;
249
- export type GetLocationHelperLocationDto = z.infer<typeof GetLocationHelperLocationSchema>;
308
+ export type GetLocationHelperLocationDto = z.infer<typeof GetLocationHelperLocationQuerySchema>;
250
309
  export interface GetLocationHelperLocationResponseDto {
251
- location: LocationBasicDto;
310
+ location: LocationPrivateDto;
311
+ }
312
+ export declare const GetAgentDmLocationQuerySchema: z.ZodObject<{
313
+ agentId: z.ZodBigInt;
314
+ }, "strip", z.ZodTypeAny, {
315
+ agentId: bigint;
316
+ }, {
317
+ agentId: bigint;
318
+ }>;
319
+ export type GetAgentDmLocationDto = z.infer<typeof GetAgentDmLocationQuerySchema>;
320
+ export interface GetAgentDmLocationResponseDto {
321
+ location: LocationPrivateDto;
252
322
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetLocationHelperLocationSchema = exports.GetAgentHelperLocationSchema = exports.LocationUpdateConfigSchema = exports.CreateLocationFromPresetSchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationsUnreadCountQuerySchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.UserLocationsQuerySchema = void 0;
3
+ exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.LocationUpdateConfigSchema = exports.CreateLocationFromPresetSchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationsUnreadCountQuerySchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationPrivateParamsSchema = exports.GetLocationParamsSchema = exports.UserLocationsQuerySchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const location_config_1 = require("../../models/locations/location.config");
6
6
  exports.UserLocationsQuerySchema = zod_1.z.object({
@@ -12,6 +12,12 @@ exports.UserLocationsQuerySchema = zod_1.z.object({
12
12
  .default(10)
13
13
  .describe('Number of locations to return'),
14
14
  });
15
+ exports.GetLocationParamsSchema = zod_1.z.object({
16
+ locationId: zod_1.z.string().transform((val) => BigInt(val)),
17
+ });
18
+ exports.GetLocationPrivateParamsSchema = zod_1.z.object({
19
+ locationId: zod_1.z.string().transform((val) => BigInt(val)),
20
+ });
15
21
  exports.MarkLocationAsReadParamsSchema = zod_1.z.object({
16
22
  locationId: zod_1.z.string().transform((val) => BigInt(val)),
17
23
  });
@@ -35,12 +41,17 @@ exports.CreateLocationFromPresetSchema = zod_1.z.object({
35
41
  });
36
42
  exports.LocationUpdateConfigSchema = zod_1.z.object({
37
43
  locationId: zod_1.z.coerce.bigint().describe('ID of the location to update'),
38
- config: location_config_1.LocationConfigSchema.partial().describe('Only the specific configuration fields that need to be updated (name, environment, core, description, etc.)'),
44
+ config: location_config_1.LocationConfigSchema.partial()
45
+ .strict()
46
+ .describe('Only the specific configuration fields that need to be updated (name, environment, core, description, etc.)'),
39
47
  });
40
- exports.GetAgentHelperLocationSchema = zod_1.z.object({
48
+ exports.GetAgentHelperLocationQuerySchema = zod_1.z.object({
41
49
  agentId: zod_1.z.coerce.bigint(),
42
50
  });
43
- exports.GetLocationHelperLocationSchema = zod_1.z.object({
51
+ exports.GetLocationHelperLocationQuerySchema = zod_1.z.object({
44
52
  locationId: zod_1.z.coerce.bigint(),
45
53
  });
54
+ exports.GetAgentDmLocationQuerySchema = zod_1.z.object({
55
+ agentId: zod_1.z.coerce.bigint(),
56
+ });
46
57
  //# sourceMappingURL=location.requests.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"location.requests.js","sourceRoot":"","sources":["../../../src/dto/locations/location.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,4EAA8E;AAOjE,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IACzE,KAAK,EAAE,OAAC,CAAC,MAAM;SACZ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,+BAA+B,CAAC;CAC7C,CAAC,CAAC;AAmBU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;CACvD,CAAC,CAAC;AAOU,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;CACvD,CAAC,CAAC;AAWU,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,WAAW,EAAE,OAAC;SACX,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,IA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M,CAAC;IAC3D,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AAUU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC"}
@@ -24,6 +24,22 @@ export declare const LocationConfigCanvasSchema: z.ZodObject<{
24
24
  description: string;
25
25
  maxLength: number;
26
26
  }>;
27
+ export declare const LocationConfigGimmickSchema: z.ZodObject<{
28
+ core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
29
+ name: z.ZodString;
30
+ description: z.ZodString;
31
+ appearance: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ name: string;
34
+ description: string;
35
+ core: "web_search" | "x_twitter";
36
+ appearance: string;
37
+ }, {
38
+ name: string;
39
+ description: string;
40
+ core: "web_search" | "x_twitter";
41
+ appearance: string;
42
+ }>;
27
43
  export declare const LocationConfigSchema: z.ZodObject<{
28
44
  name: z.ZodString;
29
45
  thumbnail: z.ZodOptional<z.ZodString>;
@@ -66,14 +82,30 @@ export declare const LocationConfigSchema: z.ZodObject<{
66
82
  description: string;
67
83
  maxLength: number;
68
84
  }>, "many">;
85
+ gimmicks: z.ZodArray<z.ZodObject<{
86
+ core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
87
+ name: z.ZodString;
88
+ description: z.ZodString;
89
+ appearance: z.ZodString;
90
+ }, "strip", z.ZodTypeAny, {
91
+ name: string;
92
+ description: string;
93
+ core: "web_search" | "x_twitter";
94
+ appearance: string;
95
+ }, {
96
+ name: string;
97
+ description: string;
98
+ core: "web_search" | "x_twitter";
99
+ appearance: string;
100
+ }>, "many">;
69
101
  }, "strip", z.ZodTypeAny, {
70
102
  name: string;
71
103
  description: string;
72
- environment: "CHAT" | "WEB_BROWSER";
73
104
  core: {
74
105
  name: "round_robin" | "update_forever" | "update_once";
75
106
  sequential?: boolean | undefined;
76
107
  };
108
+ environment: "CHAT" | "WEB_BROWSER";
77
109
  rules: string[];
78
110
  canvases: {
79
111
  name: string;
@@ -85,15 +117,21 @@ export declare const LocationConfigSchema: z.ZodObject<{
85
117
  description: string;
86
118
  maxLength: number;
87
119
  }[];
120
+ gimmicks: {
121
+ name: string;
122
+ description: string;
123
+ core: "web_search" | "x_twitter";
124
+ appearance: string;
125
+ }[];
88
126
  thumbnail?: string | undefined;
89
127
  }, {
90
128
  name: string;
91
129
  description: string;
92
- environment: "CHAT" | "WEB_BROWSER";
93
130
  core: {
94
131
  name: "round_robin" | "update_forever" | "update_once";
95
132
  sequential?: boolean | undefined;
96
133
  };
134
+ environment: "CHAT" | "WEB_BROWSER";
97
135
  rules: string[];
98
136
  canvases: {
99
137
  name: string;
@@ -105,6 +143,12 @@ export declare const LocationConfigSchema: z.ZodObject<{
105
143
  description: string;
106
144
  maxLength: number;
107
145
  }[];
146
+ gimmicks: {
147
+ name: string;
148
+ description: string;
149
+ core: "web_search" | "x_twitter";
150
+ appearance: string;
151
+ }[];
108
152
  thumbnail?: string | undefined;
109
153
  }>;
110
154
  export type LocationConfig = z.infer<typeof LocationConfigSchema>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocationConfigSchema = exports.LocationConfigCanvasSchema = exports.LocationConfigCoreSchema = exports.LocationEnvironmentSchema = void 0;
3
+ exports.LocationConfigSchema = exports.LocationConfigGimmickSchema = exports.LocationConfigCanvasSchema = exports.LocationConfigCoreSchema = exports.LocationEnvironmentSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const location_constants_1 = require("./location.constants");
6
6
  exports.LocationEnvironmentSchema = zod_1.z.union([
@@ -25,9 +25,39 @@ exports.LocationConfigCanvasSchema = zod_1.z.object({
25
25
  name: zod_1.z
26
26
  .string()
27
27
  .max(16)
28
- .regex(/^[a-zA-Z_]+$/, 'Name must contain only letters and underscores'),
29
- description: zod_1.z.string().max(500),
30
- maxLength: zod_1.z.number().min(100).max(1000),
28
+ .regex(/^[a-zA-Z_]+$/, 'Name must contain only letters and underscores')
29
+ .describe('Unique identifier for the canvas that agents use to reference it'),
30
+ description: zod_1.z
31
+ .string()
32
+ .max(500)
33
+ .describe('Clear explanation of the canvas purpose and intended use for agents'),
34
+ maxLength: zod_1.z
35
+ .number()
36
+ .min(100)
37
+ .max(1000)
38
+ .describe('Maximum character limit for canvas content'),
39
+ });
40
+ 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
+ ]),
49
+ name: zod_1.z
50
+ .string()
51
+ .max(64)
52
+ .describe('Name of the gimmick that agents can reference'),
53
+ description: zod_1.z
54
+ .string()
55
+ .max(500)
56
+ .describe('Clear description of what the gimmick does, its purpose, and expected execution time for agents to understand'),
57
+ appearance: zod_1.z
58
+ .string()
59
+ .max(500)
60
+ .describe('How the gimmick appears to agents and users in the location context'),
31
61
  });
32
62
  exports.LocationConfigSchema = zod_1.z.object({
33
63
  name: zod_1.z.string().max(64).describe('Location name'),
@@ -54,5 +84,9 @@ exports.LocationConfigSchema = zod_1.z.object({
54
84
  .array(exports.LocationConfigCanvasSchema)
55
85
  .max(4)
56
86
  .describe('Private agent canvases for individual agent use, separate per location context'),
87
+ gimmicks: zod_1.z
88
+ .array(exports.LocationConfigGimmickSchema)
89
+ .max(4)
90
+ .describe('Interactive tools that agents can execute to perform specific tasks (e.g., web search, social media).'),
57
91
  });
58
92
  //# sourceMappingURL=location.config.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;A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AC;IAClD,SAAS,EAAE,OAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,IAAI,CAAC;SACT,QAAQ,EAAE;SACV,QAAQ,CAAC,gEAAgE,CAAC;IAE7E,WAAW,EAAE,iCAAyB,CAAC,QAAQ,CAC7C,+DAA+D,CAChE;IAED,IAAI,EAAE,gCAAwB,CAAC,QAAQ,CACrC,sFAAsF,CACvF;IACD,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;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;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,WAAW,CAAC;SACxC,QAAQ,CACP,qEAAqE,CACtE;CACJ,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC,CAAC,OAAO,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GROUP";
4
+ readonly PUBLIC: "PUBLIC";
5
+ readonly SYSTEM: "SYSTEM";
6
+ };
7
+ export type LocationType = (typeof LocationType)[keyof typeof LocationType];
1
8
  export declare const LocationEnvironment: {
2
9
  readonly CHAT: "CHAT";
3
10
  readonly AGENT_HELPER: "AGENT_HELPER";
4
11
  readonly LOCATION_HELPER: "LOCATION_HELPER";
12
+ readonly AGENT_DM: "AGENT_DM";
5
13
  readonly WEB_BROWSER: "WEB_BROWSER";
6
14
  readonly VIDEO_GAME: "VIDEO_GAME";
7
15
  };
@@ -1,10 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocationEnvironment = void 0;
3
+ exports.LocationEnvironment = exports.LocationType = void 0;
4
+ exports.LocationType = {
5
+ PRIVATE: 'PRIVATE',
6
+ GROUP: 'GROUP',
7
+ PUBLIC: 'PUBLIC',
8
+ SYSTEM: 'SYSTEM',
9
+ };
4
10
  exports.LocationEnvironment = {
5
11
  CHAT: 'CHAT',
6
12
  AGENT_HELPER: 'AGENT_HELPER',
7
13
  LOCATION_HELPER: 'LOCATION_HELPER',
14
+ AGENT_DM: 'AGENT_DM',
8
15
  WEB_BROWSER: 'WEB_BROWSER',
9
16
  VIDEO_GAME: 'VIDEO_GAME',
10
17
  };
@@ -1 +1 @@
1
- {"version":3,"file":"location.constants.js","sourceRoot":"","sources":["../../../src/models/locations/location.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;CAChB,CAAC"}
1
+ {"version":3,"file":"location.constants.js","sourceRoot":"","sources":["../../../src/models/locations/location.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IAC1B,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACR,CAAC;AAIE,QAAA,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;IAClC,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,YAAY;CAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@little-samo/samo-ai-sdk",
3
- "version": "0.1.0-rv3",
3
+ "version": "0.1.0-rv5",
4
4
  "description": "SamoAI SDK",
5
5
  "license": "MIT",
6
6
  "repository": {