@little-samo/samo-ai-sdk 0.1.2 → 0.1.3-rv2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dto/entities/agents/agent.d.ts +1 -0
- package/dist/dto/entities/agents/agent.requests.d.ts +70 -0
- package/dist/dto/entities/agents/agent.requests.js +20 -1
- package/dist/dto/entities/agents/agent.requests.js.map +1 -1
- package/dist/dto/locations/location.d.ts +3 -1
- package/dist/dto/locations/location.events.d.ts +21 -2
- package/dist/dto/locations/location.events.js +3 -0
- package/dist/dto/locations/location.events.js.map +1 -1
- package/dist/dto/locations/location.message.d.ts +2 -0
- package/dist/dto/locations/location.requests.d.ts +101 -14
- package/dist/dto/locations/location.requests.js +37 -1
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/models/entities/agents/agent.config.js +5 -5
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +8 -16
- package/dist/models/locations/location.config.js +3 -4
- package/dist/models/locations/location.config.js.map +1 -1
- package/dist/models/locations/location.constants.d.ts +5 -0
- package/dist/models/locations/location.constants.js +5 -1
- package/dist/models/locations/location.constants.js.map +1 -1
- package/package.json +3 -3
|
@@ -122,6 +122,76 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
122
122
|
}>;
|
|
123
123
|
export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
|
|
124
124
|
export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
|
|
125
|
+
export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
126
|
+
agentId: z.ZodBigInt;
|
|
127
|
+
credential: z.ZodUnion<[z.ZodObject<{
|
|
128
|
+
type: z.ZodLiteral<"x_twitter">;
|
|
129
|
+
email: z.ZodString;
|
|
130
|
+
password: z.ZodString;
|
|
131
|
+
username: z.ZodString;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
type: "x_twitter";
|
|
134
|
+
email: string;
|
|
135
|
+
password: string;
|
|
136
|
+
username: string;
|
|
137
|
+
}, {
|
|
138
|
+
type: "x_twitter";
|
|
139
|
+
email: string;
|
|
140
|
+
password: string;
|
|
141
|
+
username: string;
|
|
142
|
+
}>, z.ZodObject<{
|
|
143
|
+
type: z.ZodLiteral<"notion">;
|
|
144
|
+
token: z.ZodString;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
type: "notion";
|
|
147
|
+
token: string;
|
|
148
|
+
}, {
|
|
149
|
+
type: "notion";
|
|
150
|
+
token: string;
|
|
151
|
+
}>]>;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
agentId: bigint;
|
|
154
|
+
credential: {
|
|
155
|
+
type: "x_twitter";
|
|
156
|
+
email: string;
|
|
157
|
+
password: string;
|
|
158
|
+
username: string;
|
|
159
|
+
} | {
|
|
160
|
+
type: "notion";
|
|
161
|
+
token: string;
|
|
162
|
+
};
|
|
163
|
+
}, {
|
|
164
|
+
agentId: bigint;
|
|
165
|
+
credential: {
|
|
166
|
+
type: "x_twitter";
|
|
167
|
+
email: string;
|
|
168
|
+
password: string;
|
|
169
|
+
username: string;
|
|
170
|
+
} | {
|
|
171
|
+
type: "notion";
|
|
172
|
+
token: string;
|
|
173
|
+
};
|
|
174
|
+
}>;
|
|
175
|
+
export type AgentUpdateCredentialDto = z.infer<typeof AgentUpdateCredentialSchema>;
|
|
176
|
+
export interface AgentUpdateCredentialResponseDto {
|
|
177
|
+
success: boolean;
|
|
178
|
+
error?: string;
|
|
179
|
+
}
|
|
180
|
+
export declare const AgentDeleteCredentialSchema: z.ZodObject<{
|
|
181
|
+
agentId: z.ZodBigInt;
|
|
182
|
+
credentialType: z.ZodString;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
agentId: bigint;
|
|
185
|
+
credentialType: string;
|
|
186
|
+
}, {
|
|
187
|
+
agentId: bigint;
|
|
188
|
+
credentialType: string;
|
|
189
|
+
}>;
|
|
190
|
+
export type AgentDeleteCredentialDto = z.infer<typeof AgentDeleteCredentialSchema>;
|
|
191
|
+
export interface AgentDeleteCredentialResponseDto {
|
|
192
|
+
success: boolean;
|
|
193
|
+
error?: string;
|
|
194
|
+
}
|
|
125
195
|
export declare const AgentPresetsPaginationQuerySchema: z.ZodObject<{
|
|
126
196
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
127
197
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetHelperAgentSchema = exports.CreateAgentFromPresetSchema = exports.AgentPresetsPaginationQuerySchema = exports.AgentUpdateConfigSchema = exports.GetAgentsByIdsQuerySchema = exports.AgentsPaginationQuerySchema = void 0;
|
|
3
|
+
exports.GetHelperAgentSchema = exports.CreateAgentFromPresetSchema = 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({
|
|
@@ -23,6 +23,25 @@ exports.AgentUpdateConfigSchema = zod_1.z.object({
|
|
|
23
23
|
'For the character field: properties are merged at the individual level rather than replacing entire categories. ' +
|
|
24
24
|
'Empty string values ("") will delete the corresponding property. If a category becomes empty after deletions, the category itself is removed.'),
|
|
25
25
|
});
|
|
26
|
+
exports.AgentUpdateCredentialSchema = zod_1.z.object({
|
|
27
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
28
|
+
credential: zod_1.z.union([
|
|
29
|
+
zod_1.z.object({
|
|
30
|
+
type: zod_1.z.literal('x_twitter'),
|
|
31
|
+
email: zod_1.z.string().max(255),
|
|
32
|
+
password: zod_1.z.string().max(255),
|
|
33
|
+
username: zod_1.z.string().max(255),
|
|
34
|
+
}),
|
|
35
|
+
zod_1.z.object({
|
|
36
|
+
type: zod_1.z.literal('notion'),
|
|
37
|
+
token: zod_1.z.string().max(255),
|
|
38
|
+
}),
|
|
39
|
+
]),
|
|
40
|
+
});
|
|
41
|
+
exports.AgentDeleteCredentialSchema = zod_1.z.object({
|
|
42
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
43
|
+
credentialType: zod_1.z.string(),
|
|
44
|
+
});
|
|
26
45
|
exports.AgentPresetsPaginationQuerySchema = zod_1.z.object({
|
|
27
46
|
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
28
47
|
limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(20),
|
|
@@ -1 +1 @@
|
|
|
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,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,CACjB,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,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B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;SAC3B,CAAC;KACH,CAAC;CACH,CAAC,CAAC;AAYU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC1B,cAAc,EAAE,OAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAWU,QAAA,iCAAiC,GAAG,OAAC,CAAC,MAAM,CAAC;IACxD,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,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,9 +1,10 @@
|
|
|
1
1
|
import { AgentId, LocationId, UserId } from '@little-samo/samo-ai';
|
|
2
|
-
import { LocationConfig, LocationEnvironment, LocationType } from '@little-samo/samo-ai-sdk/models';
|
|
2
|
+
import { LocationConfig, LocationEnvironment, LocationPlatform, LocationType } from '@little-samo/samo-ai-sdk/models';
|
|
3
3
|
import { LocationMessageDto } from './location.message';
|
|
4
4
|
export interface LocationPublicDto {
|
|
5
5
|
id: LocationId;
|
|
6
6
|
name: string;
|
|
7
|
+
platform: LocationPlatform;
|
|
7
8
|
type: LocationType;
|
|
8
9
|
environment: LocationEnvironment;
|
|
9
10
|
createdAt: Date;
|
|
@@ -11,6 +12,7 @@ export interface LocationPublicDto {
|
|
|
11
12
|
}
|
|
12
13
|
export interface LocationPrivateDto extends LocationPublicDto {
|
|
13
14
|
config: LocationConfig | null;
|
|
15
|
+
credentialTypes: string[];
|
|
14
16
|
}
|
|
15
17
|
export interface LocationListItemDto extends LocationPublicDto {
|
|
16
18
|
lastMessage: LocationMessageDto | null;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AgentId, LocationId, UserId } from '@little-samo/samo-ai';
|
|
1
|
+
import { AgentId, GimmickId, LocationId, UserId } from '@little-samo/samo-ai';
|
|
2
2
|
import { UserPublicDto } from '../entities';
|
|
3
3
|
import { LocationMessageDto } from './location.message';
|
|
4
4
|
export declare const LocationEventType: {
|
|
@@ -6,7 +6,10 @@ export declare const LocationEventType: {
|
|
|
6
6
|
readonly AgentExecuted: "AgentExecuted";
|
|
7
7
|
readonly UserJoin: "UserJoin";
|
|
8
8
|
readonly UserLeave: "UserLeave";
|
|
9
|
+
readonly GimmickExecuting: "GimmickExecuting";
|
|
10
|
+
readonly GimmickExecuted: "GimmickExecuted";
|
|
9
11
|
readonly AddMessage: "AddMessage";
|
|
12
|
+
readonly MessageProcessed: "MessageProcessed";
|
|
10
13
|
readonly RenderingUpdated: "RenderingUpdated";
|
|
11
14
|
readonly PauseUpdateUntilUpdated: "PauseUpdateUntilUpdated";
|
|
12
15
|
};
|
|
@@ -23,6 +26,8 @@ export interface LocationAgentExecutingEventDto extends LocationEventDtoBase {
|
|
|
23
26
|
export interface LocationAgentExecutedEventDto extends LocationEventDtoBase {
|
|
24
27
|
type: typeof LocationEventType.AgentExecuted;
|
|
25
28
|
agentId: AgentId;
|
|
29
|
+
success: boolean;
|
|
30
|
+
error?: string;
|
|
26
31
|
}
|
|
27
32
|
export interface LocationUserJoinEventDto extends LocationEventDtoBase {
|
|
28
33
|
type: typeof LocationEventType.UserJoin;
|
|
@@ -32,10 +37,24 @@ export interface LocationUserLeaveEventDto extends LocationEventDtoBase {
|
|
|
32
37
|
type: typeof LocationEventType.UserLeave;
|
|
33
38
|
userId: UserId;
|
|
34
39
|
}
|
|
40
|
+
export interface LocationGimmickExecutingEventDto extends LocationEventDtoBase {
|
|
41
|
+
type: typeof LocationEventType.GimmickExecuting;
|
|
42
|
+
gimmickId: GimmickId;
|
|
43
|
+
}
|
|
44
|
+
export interface LocationGimmickExecutedEventDto extends LocationEventDtoBase {
|
|
45
|
+
type: typeof LocationEventType.GimmickExecuted;
|
|
46
|
+
gimmickId: GimmickId;
|
|
47
|
+
success: boolean;
|
|
48
|
+
error?: string;
|
|
49
|
+
}
|
|
35
50
|
export interface LocationAddMessageEventDto extends LocationEventDtoBase {
|
|
36
51
|
type: typeof LocationEventType.AddMessage;
|
|
37
52
|
message: LocationMessageDto;
|
|
38
53
|
}
|
|
54
|
+
export interface LocationMessageProcessedEventDto extends LocationEventDtoBase {
|
|
55
|
+
type: typeof LocationEventType.MessageProcessed;
|
|
56
|
+
lastMessageId: string;
|
|
57
|
+
}
|
|
39
58
|
export interface LocationRenderingUpdatedEventDto extends LocationEventDtoBase {
|
|
40
59
|
type: typeof LocationEventType.RenderingUpdated;
|
|
41
60
|
rendering: string | null;
|
|
@@ -45,4 +64,4 @@ export interface LocationPauseUpdateUntilUpdatedEventDto extends LocationEventDt
|
|
|
45
64
|
pauseUpdateUntil: Date | null;
|
|
46
65
|
pauseUpdateReason: string | null;
|
|
47
66
|
}
|
|
48
|
-
export type LocationEventDto = LocationAgentExecutingEventDto | LocationAgentExecutedEventDto | LocationUserJoinEventDto | LocationUserLeaveEventDto | LocationAddMessageEventDto | LocationRenderingUpdatedEventDto | LocationPauseUpdateUntilUpdatedEventDto;
|
|
67
|
+
export type LocationEventDto = LocationAgentExecutingEventDto | LocationAgentExecutedEventDto | LocationUserJoinEventDto | LocationUserLeaveEventDto | LocationGimmickExecutingEventDto | LocationGimmickExecutedEventDto | LocationAddMessageEventDto | LocationMessageProcessedEventDto | LocationRenderingUpdatedEventDto | LocationPauseUpdateUntilUpdatedEventDto;
|
|
@@ -6,7 +6,10 @@ exports.LocationEventType = {
|
|
|
6
6
|
AgentExecuted: 'AgentExecuted',
|
|
7
7
|
UserJoin: 'UserJoin',
|
|
8
8
|
UserLeave: 'UserLeave',
|
|
9
|
+
GimmickExecuting: 'GimmickExecuting',
|
|
10
|
+
GimmickExecuted: 'GimmickExecuted',
|
|
9
11
|
AddMessage: 'AddMessage',
|
|
12
|
+
MessageProcessed: 'MessageProcessed',
|
|
10
13
|
RenderingUpdated: 'RenderingUpdated',
|
|
11
14
|
PauseUpdateUntilUpdated: 'PauseUpdateUntilUpdated',
|
|
12
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.events.js","sourceRoot":"","sources":["../../../src/dto/locations/location.events.ts"],"names":[],"mappings":";;;AAMa,QAAA,iBAAiB,GAAG;IAC/B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,gBAAgB,EAAE,kBAAkB;IACpC,uBAAuB,EAAE,yBAAyB;CAC1C,CAAC"}
|
|
1
|
+
{"version":3,"file":"location.events.js","sourceRoot":"","sources":["../../../src/dto/locations/location.events.ts"],"names":[],"mappings":";;;AAMa,QAAA,iBAAiB,GAAG;IAC/B,cAAc,EAAE,gBAAgB;IAChC,aAAa,EAAE,eAAe;IAC9B,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,gBAAgB,EAAE,kBAAkB;IACpC,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,YAAY;IACxB,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,uBAAuB,EAAE,yBAAyB;CAC1C,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EntityId, EntityType } from '@little-samo/samo-ai';
|
|
2
2
|
export interface LocationMessageDto {
|
|
3
|
+
id: string;
|
|
3
4
|
entityType: EntityType;
|
|
4
5
|
entityId: EntityId;
|
|
5
6
|
name: string;
|
|
@@ -8,6 +9,7 @@ export interface LocationMessageDto {
|
|
|
8
9
|
action?: string;
|
|
9
10
|
emotion?: string;
|
|
10
11
|
image?: string;
|
|
12
|
+
processed?: boolean;
|
|
11
13
|
createdAt: Date;
|
|
12
14
|
updatedAt: Date;
|
|
13
15
|
}
|
|
@@ -168,10 +168,16 @@ export interface LocationPresetsPaginatedResponseDto {
|
|
|
168
168
|
}
|
|
169
169
|
export declare const CreateLocationFromPresetSchema: z.ZodObject<{
|
|
170
170
|
presetId: z.ZodBigInt;
|
|
171
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
172
|
+
readonly API: "API";
|
|
173
|
+
readonly MINIMO: "MINIMO";
|
|
174
|
+
}>>>;
|
|
171
175
|
}, "strip", z.ZodTypeAny, {
|
|
172
176
|
presetId: bigint;
|
|
177
|
+
platform: "API" | "MINIMO";
|
|
173
178
|
}, {
|
|
174
179
|
presetId: bigint;
|
|
180
|
+
platform?: "API" | "MINIMO" | undefined;
|
|
175
181
|
}>;
|
|
176
182
|
export type CreateLocationFromPresetDto = z.infer<typeof CreateLocationFromPresetSchema>;
|
|
177
183
|
export interface CreateLocationFromPresetResponseDto {
|
|
@@ -222,20 +228,17 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
222
228
|
maxLength: number;
|
|
223
229
|
}>, "many">>;
|
|
224
230
|
gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
225
|
-
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
|
|
231
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">, z.ZodLiteral<"notion">]>;
|
|
226
232
|
name: z.ZodString;
|
|
227
|
-
description: z.ZodString;
|
|
228
233
|
appearance: z.ZodString;
|
|
229
234
|
}, "strip", z.ZodTypeAny, {
|
|
230
235
|
name: string;
|
|
231
|
-
description: string;
|
|
232
236
|
appearance: string;
|
|
233
|
-
core: "
|
|
237
|
+
core: "x_twitter" | "notion" | "web_search";
|
|
234
238
|
}, {
|
|
235
239
|
name: string;
|
|
236
|
-
description: string;
|
|
237
240
|
appearance: string;
|
|
238
|
-
core: "
|
|
241
|
+
core: "x_twitter" | "notion" | "web_search";
|
|
239
242
|
}>, "many">>;
|
|
240
243
|
}, "strict", z.ZodTypeAny, {
|
|
241
244
|
name?: string | undefined;
|
|
@@ -259,9 +262,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
259
262
|
}[] | undefined;
|
|
260
263
|
gimmicks?: {
|
|
261
264
|
name: string;
|
|
262
|
-
description: string;
|
|
263
265
|
appearance: string;
|
|
264
|
-
core: "
|
|
266
|
+
core: "x_twitter" | "notion" | "web_search";
|
|
265
267
|
}[] | undefined;
|
|
266
268
|
}, {
|
|
267
269
|
name?: string | undefined;
|
|
@@ -285,9 +287,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
285
287
|
}[] | undefined;
|
|
286
288
|
gimmicks?: {
|
|
287
289
|
name: string;
|
|
288
|
-
description: string;
|
|
289
290
|
appearance: string;
|
|
290
|
-
core: "
|
|
291
|
+
core: "x_twitter" | "notion" | "web_search";
|
|
291
292
|
}[] | undefined;
|
|
292
293
|
}>;
|
|
293
294
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -313,9 +314,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
313
314
|
}[] | undefined;
|
|
314
315
|
gimmicks?: {
|
|
315
316
|
name: string;
|
|
316
|
-
description: string;
|
|
317
317
|
appearance: string;
|
|
318
|
-
core: "
|
|
318
|
+
core: "x_twitter" | "notion" | "web_search";
|
|
319
319
|
}[] | undefined;
|
|
320
320
|
};
|
|
321
321
|
locationId: bigint;
|
|
@@ -342,21 +342,96 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
342
342
|
}[] | undefined;
|
|
343
343
|
gimmicks?: {
|
|
344
344
|
name: string;
|
|
345
|
-
description: string;
|
|
346
345
|
appearance: string;
|
|
347
|
-
core: "
|
|
346
|
+
core: "x_twitter" | "notion" | "web_search";
|
|
348
347
|
}[] | undefined;
|
|
349
348
|
};
|
|
350
349
|
locationId: bigint;
|
|
351
350
|
}>;
|
|
352
351
|
export type LocationUpdateConfigDto = z.infer<typeof LocationUpdateConfigSchema>;
|
|
353
352
|
export type LocationUpdateConfigResponseDto = Partial<LocationConfig>;
|
|
353
|
+
export declare const LocationUpdateCredentialSchema: z.ZodObject<{
|
|
354
|
+
locationId: z.ZodBigInt;
|
|
355
|
+
credential: z.ZodUnion<[z.ZodObject<{
|
|
356
|
+
type: z.ZodLiteral<"x_twitter">;
|
|
357
|
+
email: z.ZodString;
|
|
358
|
+
password: z.ZodString;
|
|
359
|
+
username: z.ZodString;
|
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
|
361
|
+
type: "x_twitter";
|
|
362
|
+
email: string;
|
|
363
|
+
password: string;
|
|
364
|
+
username: string;
|
|
365
|
+
}, {
|
|
366
|
+
type: "x_twitter";
|
|
367
|
+
email: string;
|
|
368
|
+
password: string;
|
|
369
|
+
username: string;
|
|
370
|
+
}>, z.ZodObject<{
|
|
371
|
+
type: z.ZodLiteral<"notion">;
|
|
372
|
+
token: z.ZodString;
|
|
373
|
+
}, "strip", z.ZodTypeAny, {
|
|
374
|
+
type: "notion";
|
|
375
|
+
token: string;
|
|
376
|
+
}, {
|
|
377
|
+
type: "notion";
|
|
378
|
+
token: string;
|
|
379
|
+
}>]>;
|
|
380
|
+
}, "strip", z.ZodTypeAny, {
|
|
381
|
+
credential: {
|
|
382
|
+
type: "x_twitter";
|
|
383
|
+
email: string;
|
|
384
|
+
password: string;
|
|
385
|
+
username: string;
|
|
386
|
+
} | {
|
|
387
|
+
type: "notion";
|
|
388
|
+
token: string;
|
|
389
|
+
};
|
|
390
|
+
locationId: bigint;
|
|
391
|
+
}, {
|
|
392
|
+
credential: {
|
|
393
|
+
type: "x_twitter";
|
|
394
|
+
email: string;
|
|
395
|
+
password: string;
|
|
396
|
+
username: string;
|
|
397
|
+
} | {
|
|
398
|
+
type: "notion";
|
|
399
|
+
token: string;
|
|
400
|
+
};
|
|
401
|
+
locationId: bigint;
|
|
402
|
+
}>;
|
|
403
|
+
export type LocationUpdateCredentialDto = z.infer<typeof LocationUpdateCredentialSchema>;
|
|
404
|
+
export interface LocationUpdateCredentialResponseDto {
|
|
405
|
+
success: boolean;
|
|
406
|
+
error?: string;
|
|
407
|
+
}
|
|
408
|
+
export declare const LocationDeleteCredentialSchema: z.ZodObject<{
|
|
409
|
+
locationId: z.ZodBigInt;
|
|
410
|
+
credentialType: z.ZodString;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
credentialType: string;
|
|
413
|
+
locationId: bigint;
|
|
414
|
+
}, {
|
|
415
|
+
credentialType: string;
|
|
416
|
+
locationId: bigint;
|
|
417
|
+
}>;
|
|
418
|
+
export type LocationDeleteCredentialDto = z.infer<typeof LocationDeleteCredentialSchema>;
|
|
419
|
+
export interface LocationDeleteCredentialResponseDto {
|
|
420
|
+
success: boolean;
|
|
421
|
+
error?: string;
|
|
422
|
+
}
|
|
354
423
|
export declare const GetAgentHelperLocationQuerySchema: z.ZodObject<{
|
|
355
424
|
agentId: z.ZodBigInt;
|
|
425
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
426
|
+
readonly API: "API";
|
|
427
|
+
readonly MINIMO: "MINIMO";
|
|
428
|
+
}>>>;
|
|
356
429
|
}, "strip", z.ZodTypeAny, {
|
|
357
430
|
agentId: bigint;
|
|
431
|
+
platform: "API" | "MINIMO";
|
|
358
432
|
}, {
|
|
359
433
|
agentId: bigint;
|
|
434
|
+
platform?: "API" | "MINIMO" | undefined;
|
|
360
435
|
}>;
|
|
361
436
|
export type GetAgentHelperLocationDto = z.infer<typeof GetAgentHelperLocationQuerySchema>;
|
|
362
437
|
export interface GetAgentHelperLocationResponseDto {
|
|
@@ -364,10 +439,16 @@ export interface GetAgentHelperLocationResponseDto {
|
|
|
364
439
|
}
|
|
365
440
|
export declare const GetLocationHelperLocationQuerySchema: z.ZodObject<{
|
|
366
441
|
locationId: z.ZodBigInt;
|
|
442
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
443
|
+
readonly API: "API";
|
|
444
|
+
readonly MINIMO: "MINIMO";
|
|
445
|
+
}>>>;
|
|
367
446
|
}, "strip", z.ZodTypeAny, {
|
|
368
447
|
locationId: bigint;
|
|
448
|
+
platform: "API" | "MINIMO";
|
|
369
449
|
}, {
|
|
370
450
|
locationId: bigint;
|
|
451
|
+
platform?: "API" | "MINIMO" | undefined;
|
|
371
452
|
}>;
|
|
372
453
|
export type GetLocationHelperLocationDto = z.infer<typeof GetLocationHelperLocationQuerySchema>;
|
|
373
454
|
export interface GetLocationHelperLocationResponseDto {
|
|
@@ -375,10 +456,16 @@ export interface GetLocationHelperLocationResponseDto {
|
|
|
375
456
|
}
|
|
376
457
|
export declare const GetAgentDmLocationQuerySchema: z.ZodObject<{
|
|
377
458
|
agentId: z.ZodBigInt;
|
|
459
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
460
|
+
readonly API: "API";
|
|
461
|
+
readonly MINIMO: "MINIMO";
|
|
462
|
+
}>>>;
|
|
378
463
|
}, "strip", z.ZodTypeAny, {
|
|
379
464
|
agentId: bigint;
|
|
465
|
+
platform: "API" | "MINIMO";
|
|
380
466
|
}, {
|
|
381
467
|
agentId: bigint;
|
|
468
|
+
platform?: "API" | "MINIMO" | undefined;
|
|
382
469
|
}>;
|
|
383
470
|
export type GetAgentDmLocationDto = z.infer<typeof GetAgentDmLocationQuerySchema>;
|
|
384
471
|
export interface GetAgentDmLocationResponseDto {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteLocationScheduledMessageToolSchema = exports.UpdateLocationScheduledMessageToolSchema = exports.CreateLocationScheduledMessageToolSchema = exports.DeleteLocationScheduledMessageParamsSchema = exports.UpdateLocationScheduledMessageBodySchema = exports.UpdateLocationScheduledMessageParamsSchema = exports.CreateLocationScheduledMessageBodySchema = exports.CreateLocationScheduledMessageParamsSchema = exports.GetLocationScheduledMessagesParamsSchema = 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;
|
|
3
|
+
exports.DeleteLocationScheduledMessageToolSchema = exports.UpdateLocationScheduledMessageToolSchema = exports.CreateLocationScheduledMessageToolSchema = exports.DeleteLocationScheduledMessageParamsSchema = exports.UpdateLocationScheduledMessageBodySchema = exports.UpdateLocationScheduledMessageParamsSchema = exports.CreateLocationScheduledMessageBodySchema = exports.CreateLocationScheduledMessageParamsSchema = exports.GetLocationScheduledMessagesParamsSchema = exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.LocationDeleteCredentialSchema = exports.LocationUpdateCredentialSchema = 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 common_1 = require("@little-samo/samo-ai/common");
|
|
5
|
+
const models_1 = require("@little-samo/samo-ai-sdk/models");
|
|
5
6
|
const zod_1 = require("zod");
|
|
6
7
|
const location_config_1 = require("../../models/locations/location.config");
|
|
7
8
|
exports.UserLocationsQuerySchema = zod_1.z.object({
|
|
@@ -59,6 +60,10 @@ exports.LocationPresetsPaginationQuerySchema = zod_1.z.object({
|
|
|
59
60
|
});
|
|
60
61
|
exports.CreateLocationFromPresetSchema = zod_1.z.object({
|
|
61
62
|
presetId: zod_1.z.coerce.bigint(),
|
|
63
|
+
platform: zod_1.z
|
|
64
|
+
.nativeEnum(models_1.LocationPlatform)
|
|
65
|
+
.optional()
|
|
66
|
+
.default(models_1.LocationPlatform.API),
|
|
62
67
|
});
|
|
63
68
|
exports.LocationUpdateConfigSchema = zod_1.z.object({
|
|
64
69
|
locationId: zod_1.z.coerce.bigint().describe('ID of the location to update'),
|
|
@@ -66,14 +71,45 @@ exports.LocationUpdateConfigSchema = zod_1.z.object({
|
|
|
66
71
|
.strict()
|
|
67
72
|
.describe('Only the specific configuration fields that need to be updated (name, environment, core, description, etc.)'),
|
|
68
73
|
});
|
|
74
|
+
exports.LocationUpdateCredentialSchema = zod_1.z.object({
|
|
75
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
76
|
+
credential: zod_1.z.union([
|
|
77
|
+
zod_1.z.object({
|
|
78
|
+
type: zod_1.z.literal('x_twitter'),
|
|
79
|
+
email: zod_1.z.string().max(255),
|
|
80
|
+
password: zod_1.z.string().max(255),
|
|
81
|
+
username: zod_1.z.string().max(255),
|
|
82
|
+
}),
|
|
83
|
+
zod_1.z.object({
|
|
84
|
+
type: zod_1.z.literal('notion'),
|
|
85
|
+
token: zod_1.z.string().max(255),
|
|
86
|
+
}),
|
|
87
|
+
]),
|
|
88
|
+
});
|
|
89
|
+
exports.LocationDeleteCredentialSchema = zod_1.z.object({
|
|
90
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
91
|
+
credentialType: zod_1.z.string(),
|
|
92
|
+
});
|
|
69
93
|
exports.GetAgentHelperLocationQuerySchema = zod_1.z.object({
|
|
70
94
|
agentId: zod_1.z.coerce.bigint(),
|
|
95
|
+
platform: zod_1.z
|
|
96
|
+
.nativeEnum(models_1.LocationPlatform)
|
|
97
|
+
.optional()
|
|
98
|
+
.default(models_1.LocationPlatform.API),
|
|
71
99
|
});
|
|
72
100
|
exports.GetLocationHelperLocationQuerySchema = zod_1.z.object({
|
|
73
101
|
locationId: zod_1.z.coerce.bigint(),
|
|
102
|
+
platform: zod_1.z
|
|
103
|
+
.nativeEnum(models_1.LocationPlatform)
|
|
104
|
+
.optional()
|
|
105
|
+
.default(models_1.LocationPlatform.API),
|
|
74
106
|
});
|
|
75
107
|
exports.GetAgentDmLocationQuerySchema = zod_1.z.object({
|
|
76
108
|
agentId: zod_1.z.coerce.bigint(),
|
|
109
|
+
platform: zod_1.z
|
|
110
|
+
.nativeEnum(models_1.LocationPlatform)
|
|
111
|
+
.optional()
|
|
112
|
+
.default(models_1.LocationPlatform.API),
|
|
77
113
|
});
|
|
78
114
|
exports.GetLocationScheduledMessagesParamsSchema = zod_1.z.object({
|
|
79
115
|
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;AAC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AAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAWQ,QAAA,0CAA0C,GAAG,OAAC,CAAC,MAAM,CAAC;IACjE,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAWH,MAAM,sCAAsC,GAAG,OAAC;KAC7C,MAAM,CAAC;IACN,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC;KACD,KAAK,CAAC,kCAAkC,CAAC,CAAC;AAEhC,QAAA,wCAAwC,GACnD,sCAAsC,CAAC,MAAM,CAAC;IAC5C,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;CAC7B,CAAC,CAAC;AAMQ,QAAA,wCAAwC,GACnD,sCAAsC,CAAC,MAAM,CAAC;IAC5C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAMQ,QAAA,wCAAwC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/D,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;IAC7B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC"}
|
|
@@ -3,11 +3,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AgentConfigSchema = exports.AgentConfigCoreSchema = exports.PREDEFINED_AVATARS = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.PREDEFINED_AVATARS = {
|
|
6
|
-
Mimo:
|
|
7
|
-
Tamo:
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Casimo:
|
|
6
|
+
Mimo: `A confident, square-shaped, coral-pink Minimo with bright green horns. Her sharp eyes and poised stance radiate intelligence and leadership.`,
|
|
7
|
+
Tamo: `A vibrant, sky-blue, round Minimo with cheerful yellow horns and arms raised in excitement. His wide, curious eyes and energetic posture show he's always ready for action.`,
|
|
8
|
+
Marimo: `A gentle, round, lime-green Minimo with large innocent eyes and a small blue sprout on his head. He often looks sleepy or lost in thought, giving him an adorable and dreamy appearance.`,
|
|
9
|
+
Zemo: `A sharp, angular, dark-blue Minimo with skeptical, half-closed eyes and small orange fins on his head. His posture is observant and grounded, conveying a sense of vigilance and reliability.`,
|
|
10
|
+
Casimo: `An enigmatic, round, pink Minimo with mischievous, half-closed eyes and a teal tuft of hair. She seems to float rather than stand, her expression a constant, knowing smirk.`,
|
|
11
11
|
};
|
|
12
12
|
exports.AgentConfigCoreSchema = zod_1.z.object({
|
|
13
13
|
name: zod_1.z.union([
|
|
@@ -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
|
|
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,CAC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,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"}
|
|
@@ -25,19 +25,16 @@ export declare const LocationConfigCanvasSchema: z.ZodObject<{
|
|
|
25
25
|
maxLength: number;
|
|
26
26
|
}>;
|
|
27
27
|
export declare const LocationConfigGimmickSchema: z.ZodObject<{
|
|
28
|
-
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
|
|
28
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">, z.ZodLiteral<"notion">]>;
|
|
29
29
|
name: z.ZodString;
|
|
30
|
-
description: z.ZodString;
|
|
31
30
|
appearance: z.ZodString;
|
|
32
31
|
}, "strip", z.ZodTypeAny, {
|
|
33
32
|
name: string;
|
|
34
|
-
|
|
35
|
-
core: "web_search" | "x_twitter";
|
|
33
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
36
34
|
appearance: string;
|
|
37
35
|
}, {
|
|
38
36
|
name: string;
|
|
39
|
-
|
|
40
|
-
core: "web_search" | "x_twitter";
|
|
37
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
41
38
|
appearance: string;
|
|
42
39
|
}>;
|
|
43
40
|
export type LocationConfigGimmick = z.infer<typeof LocationConfigGimmickSchema>;
|
|
@@ -84,19 +81,16 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
84
81
|
maxLength: number;
|
|
85
82
|
}>, "many">;
|
|
86
83
|
gimmicks: z.ZodArray<z.ZodObject<{
|
|
87
|
-
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
|
|
84
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">, z.ZodLiteral<"notion">]>;
|
|
88
85
|
name: z.ZodString;
|
|
89
|
-
description: z.ZodString;
|
|
90
86
|
appearance: z.ZodString;
|
|
91
87
|
}, "strip", z.ZodTypeAny, {
|
|
92
88
|
name: string;
|
|
93
|
-
|
|
94
|
-
core: "web_search" | "x_twitter";
|
|
89
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
95
90
|
appearance: string;
|
|
96
91
|
}, {
|
|
97
92
|
name: string;
|
|
98
|
-
|
|
99
|
-
core: "web_search" | "x_twitter";
|
|
93
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
100
94
|
appearance: string;
|
|
101
95
|
}>, "many">;
|
|
102
96
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -120,8 +114,7 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
120
114
|
}[];
|
|
121
115
|
gimmicks: {
|
|
122
116
|
name: string;
|
|
123
|
-
|
|
124
|
-
core: "web_search" | "x_twitter";
|
|
117
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
125
118
|
appearance: string;
|
|
126
119
|
}[];
|
|
127
120
|
thumbnail?: string | undefined;
|
|
@@ -146,8 +139,7 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
146
139
|
}[];
|
|
147
140
|
gimmicks: {
|
|
148
141
|
name: string;
|
|
149
|
-
|
|
150
|
-
core: "web_search" | "x_twitter";
|
|
142
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
151
143
|
appearance: string;
|
|
152
144
|
}[];
|
|
153
145
|
thumbnail?: string | undefined;
|
|
@@ -45,15 +45,14 @@ exports.LocationConfigGimmickSchema = zod_1.z.object({
|
|
|
45
45
|
zod_1.z
|
|
46
46
|
.literal('x_twitter')
|
|
47
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'),
|
|
48
51
|
]),
|
|
49
52
|
name: zod_1.z
|
|
50
53
|
.string()
|
|
51
54
|
.max(64)
|
|
52
55
|
.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
56
|
appearance: zod_1.z
|
|
58
57
|
.string()
|
|
59
58
|
.max(500)
|
|
@@ -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,IAAI,CAAC;SACT,QAAQ,CACP,qEAAqE,CACtE;IACH,SAAS,EAAE,OAAC;SACT,MAAM,EAAE;SACR,GAAG,CAAC,GAAG,CAAC;SACR,GAAG,CAAC,IAAI,CAAC;SACT,QAAQ,CAAC,4CAA4C,CAAC;CAC1D,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC;aACE,OAAO,CAAC,YAAY,CAAC;aACrB,QAAQ,CACP,8JAA8J,CAC/J;QACH,OAAC;aACE,OAAO,CAAC,WAAW,CAAC;aACpB,QAAQ,CACP,wFAAwF,CACzF;
|
|
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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AAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC;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;IAEH,QAAQ,EAAE,OAAC;SACR,KAAK,CAAC,mCAA2B,CAAC;SAClC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,CACP,uGAAuG,CACxG;CACJ,CAAC,CAAC"}
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
export declare const LocationPlatform: {
|
|
2
|
+
readonly API: "API";
|
|
3
|
+
readonly MINIMO: "MINIMO";
|
|
4
|
+
};
|
|
5
|
+
export type LocationPlatform = (typeof LocationPlatform)[keyof typeof LocationPlatform];
|
|
1
6
|
export declare const LocationType: {
|
|
2
7
|
readonly PRIVATE: "PRIVATE";
|
|
3
8
|
readonly GROUP: "GROUP";
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LocationEnvironment = exports.LocationType = void 0;
|
|
3
|
+
exports.LocationEnvironment = exports.LocationType = exports.LocationPlatform = void 0;
|
|
4
|
+
exports.LocationPlatform = {
|
|
5
|
+
API: 'API',
|
|
6
|
+
MINIMO: 'MINIMO',
|
|
7
|
+
};
|
|
4
8
|
exports.LocationType = {
|
|
5
9
|
PRIVATE: 'PRIVATE',
|
|
6
10
|
GROUP: 'GROUP',
|
|
@@ -1 +1 @@
|
|
|
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"}
|
|
1
|
+
{"version":3,"file":"location.constants.js","sourceRoot":"","sources":["../../../src/models/locations/location.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,QAAQ;CACR,CAAC;AAIE,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.
|
|
3
|
+
"version": "0.1.3-rv2",
|
|
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.
|
|
65
|
+
"@little-samo/samo-ai": "^0.1.3",
|
|
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.
|
|
87
|
+
"@little-samo/samo-ai": "^0.1.3",
|
|
88
88
|
"class-transformer": "^0.5.1",
|
|
89
89
|
"class-validator": "^0.14.2",
|
|
90
90
|
"zod": "^3.24.1"
|