@little-samo/samo-ai-sdk 0.1.1-rv1 → 0.1.1-rv3
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.
|
@@ -10,7 +10,7 @@ export interface LocationPublicDto {
|
|
|
10
10
|
updatedAt: Date;
|
|
11
11
|
}
|
|
12
12
|
export interface LocationPrivateDto extends LocationPublicDto {
|
|
13
|
-
config: LocationConfig;
|
|
13
|
+
config: LocationConfig | null;
|
|
14
14
|
}
|
|
15
15
|
export interface LocationListItemDto extends LocationPublicDto {
|
|
16
16
|
lastMessage: LocationMessageDto | null;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LocationConfig } from '@little-samo/samo-ai-sdk/models';
|
|
2
|
+
import { UserPublicDto } from '../entities';
|
|
2
3
|
export interface LocationPresetDto {
|
|
3
4
|
id: bigint;
|
|
4
5
|
presetName: string;
|
|
@@ -7,6 +8,7 @@ export interface LocationPresetDto {
|
|
|
7
8
|
name: string;
|
|
8
9
|
description: string;
|
|
9
10
|
config: Partial<LocationConfig>;
|
|
11
|
+
ownerUser?: UserPublicDto;
|
|
10
12
|
createdAt: Date;
|
|
11
13
|
updatedAt: Date;
|
|
12
14
|
}
|
|
@@ -10,8 +10,8 @@ export declare const UserLocationsQuerySchema: z.ZodObject<{
|
|
|
10
10
|
limit: number;
|
|
11
11
|
cursor?: string | undefined;
|
|
12
12
|
}, {
|
|
13
|
-
limit?: number | undefined;
|
|
14
13
|
cursor?: string | undefined;
|
|
14
|
+
limit?: number | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
export type UserLocationsQueryDto = z.infer<typeof UserLocationsQuerySchema>;
|
|
17
17
|
export interface UserLocationsResponseDto {
|
|
@@ -102,11 +102,11 @@ export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
|
|
|
102
102
|
locationId: z.ZodBigInt;
|
|
103
103
|
agentId: z.ZodBigInt;
|
|
104
104
|
}, "strip", z.ZodTypeAny, {
|
|
105
|
-
agentId: bigint;
|
|
106
105
|
locationId: bigint;
|
|
107
|
-
}, {
|
|
108
106
|
agentId: bigint;
|
|
107
|
+
}, {
|
|
109
108
|
locationId: bigint;
|
|
109
|
+
agentId: bigint;
|
|
110
110
|
}>;
|
|
111
111
|
export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
|
|
112
112
|
export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
|
|
@@ -133,11 +133,11 @@ export declare const RemoveAgentFromLocationToolSchema: z.ZodObject<{
|
|
|
133
133
|
locationId: z.ZodBigInt;
|
|
134
134
|
agentId: z.ZodBigInt;
|
|
135
135
|
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
agentId: bigint;
|
|
137
136
|
locationId: bigint;
|
|
138
|
-
}, {
|
|
139
137
|
agentId: bigint;
|
|
138
|
+
}, {
|
|
140
139
|
locationId: bigint;
|
|
140
|
+
agentId: bigint;
|
|
141
141
|
}>;
|
|
142
142
|
export type RemoveAgentFromLocationToolDto = z.infer<typeof RemoveAgentFromLocationToolSchema>;
|
|
143
143
|
export interface LocationMessagesResponseDto {
|
|
@@ -148,11 +148,11 @@ export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
|
|
|
148
148
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
149
149
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
150
150
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
page: number;
|
|
152
151
|
limit: number;
|
|
152
|
+
page: number;
|
|
153
153
|
}, {
|
|
154
|
-
page?: number | undefined;
|
|
155
154
|
limit?: number | undefined;
|
|
155
|
+
page?: number | undefined;
|
|
156
156
|
}>;
|
|
157
157
|
export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
|
|
158
158
|
export interface LocationPresetsPaginatedResponseDto {
|
|
@@ -227,13 +227,13 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
227
227
|
}, "strip", z.ZodTypeAny, {
|
|
228
228
|
name: string;
|
|
229
229
|
description: string;
|
|
230
|
-
appearance: string;
|
|
231
230
|
core: "web_search" | "x_twitter";
|
|
231
|
+
appearance: string;
|
|
232
232
|
}, {
|
|
233
233
|
name: string;
|
|
234
234
|
description: string;
|
|
235
|
-
appearance: string;
|
|
236
235
|
core: "web_search" | "x_twitter";
|
|
236
|
+
appearance: string;
|
|
237
237
|
}>, "many">>;
|
|
238
238
|
}, "strict", z.ZodTypeAny, {
|
|
239
239
|
name?: string | undefined;
|
|
@@ -242,9 +242,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
242
242
|
name: "round_robin" | "update_forever" | "update_once";
|
|
243
243
|
sequential?: boolean | undefined;
|
|
244
244
|
} | undefined;
|
|
245
|
-
rules?: string[] | undefined;
|
|
246
245
|
thumbnail?: string | undefined;
|
|
247
246
|
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
247
|
+
rules?: string[] | undefined;
|
|
248
248
|
canvases?: {
|
|
249
249
|
name: string;
|
|
250
250
|
description: string;
|
|
@@ -258,8 +258,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
258
258
|
gimmicks?: {
|
|
259
259
|
name: string;
|
|
260
260
|
description: string;
|
|
261
|
-
appearance: string;
|
|
262
261
|
core: "web_search" | "x_twitter";
|
|
262
|
+
appearance: string;
|
|
263
263
|
}[] | undefined;
|
|
264
264
|
}, {
|
|
265
265
|
name?: string | undefined;
|
|
@@ -268,9 +268,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
268
268
|
name: "round_robin" | "update_forever" | "update_once";
|
|
269
269
|
sequential?: boolean | undefined;
|
|
270
270
|
} | undefined;
|
|
271
|
-
rules?: string[] | undefined;
|
|
272
271
|
thumbnail?: string | undefined;
|
|
273
272
|
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
273
|
+
rules?: string[] | undefined;
|
|
274
274
|
canvases?: {
|
|
275
275
|
name: string;
|
|
276
276
|
description: string;
|
|
@@ -284,11 +284,12 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
284
284
|
gimmicks?: {
|
|
285
285
|
name: string;
|
|
286
286
|
description: string;
|
|
287
|
-
appearance: string;
|
|
288
287
|
core: "web_search" | "x_twitter";
|
|
288
|
+
appearance: string;
|
|
289
289
|
}[] | undefined;
|
|
290
290
|
}>;
|
|
291
291
|
}, "strip", z.ZodTypeAny, {
|
|
292
|
+
locationId: bigint;
|
|
292
293
|
config: {
|
|
293
294
|
name?: string | undefined;
|
|
294
295
|
description?: string | undefined;
|
|
@@ -296,9 +297,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
296
297
|
name: "round_robin" | "update_forever" | "update_once";
|
|
297
298
|
sequential?: boolean | undefined;
|
|
298
299
|
} | undefined;
|
|
299
|
-
rules?: string[] | undefined;
|
|
300
300
|
thumbnail?: string | undefined;
|
|
301
301
|
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
302
|
+
rules?: string[] | undefined;
|
|
302
303
|
canvases?: {
|
|
303
304
|
name: string;
|
|
304
305
|
description: string;
|
|
@@ -312,12 +313,12 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
312
313
|
gimmicks?: {
|
|
313
314
|
name: string;
|
|
314
315
|
description: string;
|
|
315
|
-
appearance: string;
|
|
316
316
|
core: "web_search" | "x_twitter";
|
|
317
|
+
appearance: string;
|
|
317
318
|
}[] | undefined;
|
|
318
319
|
};
|
|
319
|
-
locationId: bigint;
|
|
320
320
|
}, {
|
|
321
|
+
locationId: bigint;
|
|
321
322
|
config: {
|
|
322
323
|
name?: string | undefined;
|
|
323
324
|
description?: string | undefined;
|
|
@@ -325,9 +326,9 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
325
326
|
name: "round_robin" | "update_forever" | "update_once";
|
|
326
327
|
sequential?: boolean | undefined;
|
|
327
328
|
} | undefined;
|
|
328
|
-
rules?: string[] | undefined;
|
|
329
329
|
thumbnail?: string | undefined;
|
|
330
330
|
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
331
|
+
rules?: string[] | undefined;
|
|
331
332
|
canvases?: {
|
|
332
333
|
name: string;
|
|
333
334
|
description: string;
|
|
@@ -341,11 +342,10 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
341
342
|
gimmicks?: {
|
|
342
343
|
name: string;
|
|
343
344
|
description: string;
|
|
344
|
-
appearance: string;
|
|
345
345
|
core: "web_search" | "x_twitter";
|
|
346
|
+
appearance: string;
|
|
346
347
|
}[] | undefined;
|
|
347
348
|
};
|
|
348
|
-
locationId: bigint;
|
|
349
349
|
}>;
|
|
350
350
|
export type LocationUpdateConfigDto = z.infer<typeof LocationUpdateConfigSchema>;
|
|
351
351
|
export type LocationUpdateConfigResponseDto = Partial<LocationConfig>;
|
|
@@ -29,7 +29,7 @@ exports.LocationConfigCanvasSchema = zod_1.z.object({
|
|
|
29
29
|
.describe('Unique identifier for the canvas that agents use to reference it'),
|
|
30
30
|
description: zod_1.z
|
|
31
31
|
.string()
|
|
32
|
-
.max(
|
|
32
|
+
.max(1000)
|
|
33
33
|
.describe('Clear explanation of the canvas purpose and intended use for agents'),
|
|
34
34
|
maxLength: zod_1.z
|
|
35
35
|
.number()
|
|
@@ -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;SACvE,QAAQ,CACP,kEAAkE,CACnE;IACH,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;SACR,GAAG,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,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC;QACrE,OAAC;aACE,OAA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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.1-
|
|
65
|
+
"@little-samo/samo-ai": "^0.1.1-rv2",
|
|
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.1-
|
|
87
|
+
"@little-samo/samo-ai": "^0.1.1-rv2",
|
|
88
88
|
"class-transformer": "^0.5.1",
|
|
89
89
|
"class-validator": "^0.14.2",
|
|
90
90
|
"zod": "^3.24.1"
|