@little-samo/samo-ai-sdk 0.1.0-rv4 → 0.1.0-rv6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dto/entities/agents/agent.preset.d.ts +1 -1
- package/dist/dto/entities/agents/agent.requests.d.ts +11 -9
- package/dist/dto/entities/agents/agent.requests.js +4 -2
- package/dist/dto/entities/agents/agent.requests.js.map +1 -1
- package/dist/dto/locations/location.d.ts +8 -0
- package/dist/dto/locations/location.preset.d.ts +1 -1
- package/dist/dto/locations/location.requests.d.ts +131 -21
- package/dist/dto/locations/location.requests.js +27 -2
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +47 -2
- package/dist/models/locations/location.config.js +38 -4
- package/dist/models/locations/location.config.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,14 +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
|
-
}, "
|
|
224
|
+
}, "strict", z.ZodTypeAny, {
|
|
224
225
|
name?: string | undefined;
|
|
225
226
|
core?: {
|
|
226
227
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
227
228
|
} | undefined;
|
|
229
|
+
appearance?: string | undefined;
|
|
228
230
|
rules?: string[] | undefined;
|
|
229
231
|
avatar?: string | undefined;
|
|
230
|
-
appearance?: string | undefined;
|
|
231
232
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "anthropic-low" | "anthropic-medium" | "anthropic-high" | "deepseek-low" | "deepseek-medium" | undefined;
|
|
232
233
|
languages?: string[] | undefined;
|
|
233
234
|
timeZone?: string | undefined;
|
|
@@ -294,9 +295,9 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
294
295
|
core?: {
|
|
295
296
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
296
297
|
} | undefined;
|
|
298
|
+
appearance?: string | undefined;
|
|
297
299
|
rules?: string[] | undefined;
|
|
298
300
|
avatar?: string | undefined;
|
|
299
|
-
appearance?: string | undefined;
|
|
300
301
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "anthropic-low" | "anthropic-medium" | "anthropic-high" | "deepseek-low" | "deepseek-medium" | undefined;
|
|
301
302
|
languages?: string[] | undefined;
|
|
302
303
|
timeZone?: string | undefined;
|
|
@@ -366,9 +367,9 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
366
367
|
core?: {
|
|
367
368
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
368
369
|
} | undefined;
|
|
370
|
+
appearance?: string | undefined;
|
|
369
371
|
rules?: string[] | undefined;
|
|
370
372
|
avatar?: string | undefined;
|
|
371
|
-
appearance?: string | undefined;
|
|
372
373
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "anthropic-low" | "anthropic-medium" | "anthropic-high" | "deepseek-low" | "deepseek-medium" | undefined;
|
|
373
374
|
languages?: string[] | undefined;
|
|
374
375
|
timeZone?: string | undefined;
|
|
@@ -438,9 +439,9 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
438
439
|
core?: {
|
|
439
440
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
440
441
|
} | undefined;
|
|
442
|
+
appearance?: string | undefined;
|
|
441
443
|
rules?: string[] | undefined;
|
|
442
444
|
avatar?: string | undefined;
|
|
443
|
-
appearance?: string | undefined;
|
|
444
445
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "anthropic-low" | "anthropic-medium" | "anthropic-high" | "deepseek-low" | "deepseek-medium" | undefined;
|
|
445
446
|
languages?: string[] | undefined;
|
|
446
447
|
timeZone?: string | undefined;
|
|
@@ -505,15 +506,16 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
505
506
|
};
|
|
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,
|
|
1
|
+
{"version":3,"file":"agent.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/agents/agent.requests.ts"],"names":[],"mappings":";;;AAAA,4DAIyC;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,G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ACtE,CAAC,CAAC;AAgBU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC;AAUU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,wBAAe,CAAC;CAC1C,CAAC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LocationId } from '@little-samo/samo-ai';
|
|
2
2
|
import { LocationConfig, LocationEnvironment, LocationType } from '@little-samo/samo-ai-sdk/models';
|
|
3
|
+
import { LocationMessageDto } from './location.message';
|
|
3
4
|
export interface LocationPublicDto {
|
|
4
5
|
id: LocationId;
|
|
5
6
|
name: string;
|
|
@@ -11,3 +12,10 @@ export interface LocationPublicDto {
|
|
|
11
12
|
export interface LocationPrivateDto extends LocationPublicDto {
|
|
12
13
|
config: LocationConfig;
|
|
13
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,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { LocationConfig } from '../../models/locations/location.config';
|
|
3
|
+
import { LocationListItemDto, LocationPrivateDto, LocationPublicDto } from './location';
|
|
3
4
|
import { LocationMessageDto } from './location.message';
|
|
4
5
|
import { LocationPresetDto } from './location.preset';
|
|
5
6
|
export declare const UserLocationsQuerySchema: z.ZodObject<{
|
|
@@ -9,17 +10,12 @@ 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: LocationPrivateDto;
|
|
18
|
-
lastMessage: LocationMessageDto | null;
|
|
19
|
-
unreadCount: number;
|
|
20
|
-
}
|
|
21
17
|
export interface UserLocationsResponseDto {
|
|
22
|
-
|
|
18
|
+
locations: LocationListItemDto[];
|
|
23
19
|
meta: {
|
|
24
20
|
total: number;
|
|
25
21
|
nextCursor?: string;
|
|
@@ -36,6 +32,17 @@ export type GetLocationParamsDto = z.infer<typeof GetLocationParamsSchema>;
|
|
|
36
32
|
export interface GetLocationResponseDto {
|
|
37
33
|
location: LocationPublicDto | LocationPrivateDto;
|
|
38
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
|
+
}
|
|
39
46
|
export declare const MarkLocationAsReadParamsSchema: z.ZodObject<{
|
|
40
47
|
locationId: z.ZodEffects<z.ZodString, bigint, string>;
|
|
41
48
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -71,6 +78,68 @@ export interface LocationUnreadCountItemDto {
|
|
|
71
78
|
export interface LocationsUnreadCountResponseDto {
|
|
72
79
|
data: LocationUnreadCountItemDto[];
|
|
73
80
|
}
|
|
81
|
+
export declare const JoinAgentToLocationParamsSchema: z.ZodObject<{
|
|
82
|
+
locationId: z.ZodEffects<z.ZodString, bigint, string>;
|
|
83
|
+
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
locationId: bigint;
|
|
85
|
+
}, {
|
|
86
|
+
locationId: string;
|
|
87
|
+
}>;
|
|
88
|
+
export type JoinAgentToLocationParamsDto = z.infer<typeof JoinAgentToLocationParamsSchema>;
|
|
89
|
+
export declare const JoinAgentToLocationBodySchema: z.ZodObject<{
|
|
90
|
+
agentId: z.ZodBigInt;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
agentId: bigint;
|
|
93
|
+
}, {
|
|
94
|
+
agentId: bigint;
|
|
95
|
+
}>;
|
|
96
|
+
export type JoinAgentToLocationBodyDto = z.infer<typeof JoinAgentToLocationBodySchema>;
|
|
97
|
+
export interface JoinAgentToLocationResponseDto {
|
|
98
|
+
agentAdded: boolean;
|
|
99
|
+
message?: string;
|
|
100
|
+
}
|
|
101
|
+
export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
|
|
102
|
+
locationId: z.ZodBigInt;
|
|
103
|
+
agentId: z.ZodBigInt;
|
|
104
|
+
}, "strip", z.ZodTypeAny, {
|
|
105
|
+
locationId: bigint;
|
|
106
|
+
agentId: bigint;
|
|
107
|
+
}, {
|
|
108
|
+
locationId: bigint;
|
|
109
|
+
agentId: bigint;
|
|
110
|
+
}>;
|
|
111
|
+
export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
|
|
112
|
+
export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
|
|
113
|
+
locationId: z.ZodEffects<z.ZodString, bigint, string>;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
locationId: bigint;
|
|
116
|
+
}, {
|
|
117
|
+
locationId: string;
|
|
118
|
+
}>;
|
|
119
|
+
export type RemoveAgentFromLocationParamsDto = z.infer<typeof RemoveAgentFromLocationParamsSchema>;
|
|
120
|
+
export declare const RemoveAgentFromLocationBodySchema: z.ZodObject<{
|
|
121
|
+
agentId: z.ZodBigInt;
|
|
122
|
+
}, "strip", z.ZodTypeAny, {
|
|
123
|
+
agentId: bigint;
|
|
124
|
+
}, {
|
|
125
|
+
agentId: bigint;
|
|
126
|
+
}>;
|
|
127
|
+
export type RemoveAgentFromLocationBodyDto = z.infer<typeof RemoveAgentFromLocationBodySchema>;
|
|
128
|
+
export interface RemoveAgentFromLocationResponseDto {
|
|
129
|
+
agentRemoved: boolean;
|
|
130
|
+
message?: string;
|
|
131
|
+
}
|
|
132
|
+
export declare const RemoveAgentFromLocationToolSchema: z.ZodObject<{
|
|
133
|
+
locationId: z.ZodBigInt;
|
|
134
|
+
agentId: z.ZodBigInt;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
locationId: bigint;
|
|
137
|
+
agentId: bigint;
|
|
138
|
+
}, {
|
|
139
|
+
locationId: bigint;
|
|
140
|
+
agentId: bigint;
|
|
141
|
+
}>;
|
|
142
|
+
export type RemoveAgentFromLocationToolDto = z.infer<typeof RemoveAgentFromLocationToolSchema>;
|
|
74
143
|
export interface LocationMessagesResponseDto {
|
|
75
144
|
messages: LocationMessageDto[];
|
|
76
145
|
cursor?: string;
|
|
@@ -79,11 +148,11 @@ export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
|
|
|
79
148
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
80
149
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
81
150
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
-
page: number;
|
|
83
151
|
limit: number;
|
|
152
|
+
page: number;
|
|
84
153
|
}, {
|
|
85
|
-
page?: number | undefined;
|
|
86
154
|
limit?: number | undefined;
|
|
155
|
+
page?: number | undefined;
|
|
87
156
|
}>;
|
|
88
157
|
export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
|
|
89
158
|
export interface LocationPresetsPaginatedResponseDto {
|
|
@@ -150,15 +219,31 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
150
219
|
description: string;
|
|
151
220
|
maxLength: number;
|
|
152
221
|
}>, "many">>;
|
|
153
|
-
|
|
222
|
+
gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
223
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
|
|
224
|
+
name: z.ZodString;
|
|
225
|
+
description: z.ZodString;
|
|
226
|
+
appearance: z.ZodString;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
name: string;
|
|
229
|
+
description: string;
|
|
230
|
+
core: "web_search" | "x_twitter";
|
|
231
|
+
appearance: string;
|
|
232
|
+
}, {
|
|
233
|
+
name: string;
|
|
234
|
+
description: string;
|
|
235
|
+
core: "web_search" | "x_twitter";
|
|
236
|
+
appearance: string;
|
|
237
|
+
}>, "many">>;
|
|
238
|
+
}, "strict", z.ZodTypeAny, {
|
|
154
239
|
name?: string | undefined;
|
|
155
240
|
description?: string | undefined;
|
|
156
|
-
thumbnail?: string | undefined;
|
|
157
|
-
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
158
241
|
core?: {
|
|
159
242
|
name: "round_robin" | "update_forever" | "update_once";
|
|
160
243
|
sequential?: boolean | undefined;
|
|
161
244
|
} | undefined;
|
|
245
|
+
thumbnail?: string | undefined;
|
|
246
|
+
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
162
247
|
rules?: string[] | undefined;
|
|
163
248
|
canvases?: {
|
|
164
249
|
name: string;
|
|
@@ -170,15 +255,21 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
170
255
|
description: string;
|
|
171
256
|
maxLength: number;
|
|
172
257
|
}[] | undefined;
|
|
258
|
+
gimmicks?: {
|
|
259
|
+
name: string;
|
|
260
|
+
description: string;
|
|
261
|
+
core: "web_search" | "x_twitter";
|
|
262
|
+
appearance: string;
|
|
263
|
+
}[] | undefined;
|
|
173
264
|
}, {
|
|
174
265
|
name?: string | undefined;
|
|
175
266
|
description?: string | undefined;
|
|
176
|
-
thumbnail?: string | undefined;
|
|
177
|
-
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
178
267
|
core?: {
|
|
179
268
|
name: "round_robin" | "update_forever" | "update_once";
|
|
180
269
|
sequential?: boolean | undefined;
|
|
181
270
|
} | undefined;
|
|
271
|
+
thumbnail?: string | undefined;
|
|
272
|
+
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
182
273
|
rules?: string[] | undefined;
|
|
183
274
|
canvases?: {
|
|
184
275
|
name: string;
|
|
@@ -190,17 +281,24 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
190
281
|
description: string;
|
|
191
282
|
maxLength: number;
|
|
192
283
|
}[] | undefined;
|
|
284
|
+
gimmicks?: {
|
|
285
|
+
name: string;
|
|
286
|
+
description: string;
|
|
287
|
+
core: "web_search" | "x_twitter";
|
|
288
|
+
appearance: string;
|
|
289
|
+
}[] | undefined;
|
|
193
290
|
}>;
|
|
194
291
|
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
locationId: bigint;
|
|
195
293
|
config: {
|
|
196
294
|
name?: string | undefined;
|
|
197
295
|
description?: string | undefined;
|
|
198
|
-
thumbnail?: string | undefined;
|
|
199
|
-
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
200
296
|
core?: {
|
|
201
297
|
name: "round_robin" | "update_forever" | "update_once";
|
|
202
298
|
sequential?: boolean | undefined;
|
|
203
299
|
} | undefined;
|
|
300
|
+
thumbnail?: string | undefined;
|
|
301
|
+
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
204
302
|
rules?: string[] | undefined;
|
|
205
303
|
canvases?: {
|
|
206
304
|
name: string;
|
|
@@ -212,18 +310,24 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
212
310
|
description: string;
|
|
213
311
|
maxLength: number;
|
|
214
312
|
}[] | undefined;
|
|
313
|
+
gimmicks?: {
|
|
314
|
+
name: string;
|
|
315
|
+
description: string;
|
|
316
|
+
core: "web_search" | "x_twitter";
|
|
317
|
+
appearance: string;
|
|
318
|
+
}[] | undefined;
|
|
215
319
|
};
|
|
216
|
-
locationId: bigint;
|
|
217
320
|
}, {
|
|
321
|
+
locationId: bigint;
|
|
218
322
|
config: {
|
|
219
323
|
name?: string | undefined;
|
|
220
324
|
description?: string | undefined;
|
|
221
|
-
thumbnail?: string | undefined;
|
|
222
|
-
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
223
325
|
core?: {
|
|
224
326
|
name: "round_robin" | "update_forever" | "update_once";
|
|
225
327
|
sequential?: boolean | undefined;
|
|
226
328
|
} | undefined;
|
|
329
|
+
thumbnail?: string | undefined;
|
|
330
|
+
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
227
331
|
rules?: string[] | undefined;
|
|
228
332
|
canvases?: {
|
|
229
333
|
name: string;
|
|
@@ -235,10 +339,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
235
339
|
description: string;
|
|
236
340
|
maxLength: number;
|
|
237
341
|
}[] | undefined;
|
|
342
|
+
gimmicks?: {
|
|
343
|
+
name: string;
|
|
344
|
+
description: string;
|
|
345
|
+
core: "web_search" | "x_twitter";
|
|
346
|
+
appearance: string;
|
|
347
|
+
}[] | undefined;
|
|
238
348
|
};
|
|
239
|
-
locationId: bigint;
|
|
240
349
|
}>;
|
|
241
350
|
export type LocationUpdateConfigDto = z.infer<typeof LocationUpdateConfigSchema>;
|
|
351
|
+
export type LocationUpdateConfigResponseDto = Partial<LocationConfig>;
|
|
242
352
|
export declare const GetAgentHelperLocationQuerySchema: z.ZodObject<{
|
|
243
353
|
agentId: z.ZodBigInt;
|
|
244
354
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.LocationUpdateConfigSchema = exports.CreateLocationFromPresetSchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationsUnreadCountQuerySchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationParamsSchema = exports.UserLocationsQuerySchema = void 0;
|
|
3
|
+
exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.LocationUpdateConfigSchema = exports.CreateLocationFromPresetSchema = exports.LocationPresetsPaginationQuerySchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = 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({
|
|
@@ -15,6 +15,9 @@ exports.UserLocationsQuerySchema = zod_1.z.object({
|
|
|
15
15
|
exports.GetLocationParamsSchema = zod_1.z.object({
|
|
16
16
|
locationId: zod_1.z.string().transform((val) => BigInt(val)),
|
|
17
17
|
});
|
|
18
|
+
exports.GetLocationPrivateParamsSchema = zod_1.z.object({
|
|
19
|
+
locationId: zod_1.z.string().transform((val) => BigInt(val)),
|
|
20
|
+
});
|
|
18
21
|
exports.MarkLocationAsReadParamsSchema = zod_1.z.object({
|
|
19
22
|
locationId: zod_1.z.string().transform((val) => BigInt(val)),
|
|
20
23
|
});
|
|
@@ -29,6 +32,26 @@ exports.LocationsUnreadCountQuerySchema = zod_1.z.object({
|
|
|
29
32
|
message: 'locationIds must contain 1-10 location IDs',
|
|
30
33
|
}),
|
|
31
34
|
});
|
|
35
|
+
exports.JoinAgentToLocationParamsSchema = zod_1.z.object({
|
|
36
|
+
locationId: zod_1.z.string().transform((val) => BigInt(val)),
|
|
37
|
+
});
|
|
38
|
+
exports.JoinAgentToLocationBodySchema = zod_1.z.object({
|
|
39
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
40
|
+
});
|
|
41
|
+
exports.JoinAgentToLocationToolSchema = zod_1.z.object({
|
|
42
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
43
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
44
|
+
});
|
|
45
|
+
exports.RemoveAgentFromLocationParamsSchema = zod_1.z.object({
|
|
46
|
+
locationId: zod_1.z.string().transform((val) => BigInt(val)),
|
|
47
|
+
});
|
|
48
|
+
exports.RemoveAgentFromLocationBodySchema = zod_1.z.object({
|
|
49
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
50
|
+
});
|
|
51
|
+
exports.RemoveAgentFromLocationToolSchema = zod_1.z.object({
|
|
52
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
53
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
54
|
+
});
|
|
32
55
|
exports.LocationPresetsPaginationQuerySchema = zod_1.z.object({
|
|
33
56
|
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
34
57
|
limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(20),
|
|
@@ -38,7 +61,9 @@ exports.CreateLocationFromPresetSchema = zod_1.z.object({
|
|
|
38
61
|
});
|
|
39
62
|
exports.LocationUpdateConfigSchema = zod_1.z.object({
|
|
40
63
|
locationId: zod_1.z.coerce.bigint().describe('ID of the location to update'),
|
|
41
|
-
config: location_config_1.LocationConfigSchema.partial()
|
|
64
|
+
config: location_config_1.LocationConfigSchema.partial()
|
|
65
|
+
.strict()
|
|
66
|
+
.describe('Only the specific configuration fields that need to be updated (name, environment, core, description, etc.)'),
|
|
42
67
|
});
|
|
43
68
|
exports.GetAgentHelperLocationQuerySchema = zod_1.z.object({
|
|
44
69
|
agentId: 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,6BAAwB;AAExB,
|
|
1
|
+
{"version":3,"file":"location.requests.js","sourceRoot":"","sources":["../../../src/dto/locations/location.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,4EAGgD;AAWnC,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;AAaU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;CACvD,CAAC,CAAC;AASU,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;AAWU,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,OA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AM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAUU,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,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,23 @@ 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
|
+
}>;
|
|
43
|
+
export type LocationConfigGimmick = z.infer<typeof LocationConfigGimmickSchema>;
|
|
27
44
|
export declare const LocationConfigSchema: z.ZodObject<{
|
|
28
45
|
name: z.ZodString;
|
|
29
46
|
thumbnail: z.ZodOptional<z.ZodString>;
|
|
@@ -66,14 +83,30 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
66
83
|
description: string;
|
|
67
84
|
maxLength: number;
|
|
68
85
|
}>, "many">;
|
|
86
|
+
gimmicks: z.ZodArray<z.ZodObject<{
|
|
87
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
|
|
88
|
+
name: z.ZodString;
|
|
89
|
+
description: z.ZodString;
|
|
90
|
+
appearance: z.ZodString;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
name: string;
|
|
93
|
+
description: string;
|
|
94
|
+
core: "web_search" | "x_twitter";
|
|
95
|
+
appearance: string;
|
|
96
|
+
}, {
|
|
97
|
+
name: string;
|
|
98
|
+
description: string;
|
|
99
|
+
core: "web_search" | "x_twitter";
|
|
100
|
+
appearance: string;
|
|
101
|
+
}>, "many">;
|
|
69
102
|
}, "strip", z.ZodTypeAny, {
|
|
70
103
|
name: string;
|
|
71
104
|
description: string;
|
|
72
|
-
environment: "CHAT" | "WEB_BROWSER";
|
|
73
105
|
core: {
|
|
74
106
|
name: "round_robin" | "update_forever" | "update_once";
|
|
75
107
|
sequential?: boolean | undefined;
|
|
76
108
|
};
|
|
109
|
+
environment: "CHAT" | "WEB_BROWSER";
|
|
77
110
|
rules: string[];
|
|
78
111
|
canvases: {
|
|
79
112
|
name: string;
|
|
@@ -85,15 +118,21 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
85
118
|
description: string;
|
|
86
119
|
maxLength: number;
|
|
87
120
|
}[];
|
|
121
|
+
gimmicks: {
|
|
122
|
+
name: string;
|
|
123
|
+
description: string;
|
|
124
|
+
core: "web_search" | "x_twitter";
|
|
125
|
+
appearance: string;
|
|
126
|
+
}[];
|
|
88
127
|
thumbnail?: string | undefined;
|
|
89
128
|
}, {
|
|
90
129
|
name: string;
|
|
91
130
|
description: string;
|
|
92
|
-
environment: "CHAT" | "WEB_BROWSER";
|
|
93
131
|
core: {
|
|
94
132
|
name: "round_robin" | "update_forever" | "update_once";
|
|
95
133
|
sequential?: boolean | undefined;
|
|
96
134
|
};
|
|
135
|
+
environment: "CHAT" | "WEB_BROWSER";
|
|
97
136
|
rules: string[];
|
|
98
137
|
canvases: {
|
|
99
138
|
name: string;
|
|
@@ -105,6 +144,12 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
105
144
|
description: string;
|
|
106
145
|
maxLength: number;
|
|
107
146
|
}[];
|
|
147
|
+
gimmicks: {
|
|
148
|
+
name: string;
|
|
149
|
+
description: string;
|
|
150
|
+
core: "web_search" | "x_twitter";
|
|
151
|
+
appearance: string;
|
|
152
|
+
}[];
|
|
108
153
|
thumbnail?: string | undefined;
|
|
109
154
|
}>;
|
|
110
155
|
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
|
-
|
|
30
|
-
|
|
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":";;;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,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;
|
|
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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