@little-samo/samo-ai-sdk 0.1.3 → 0.1.4-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 +8 -0
- package/dist/dto/entities/agents/agent.requests.d.ts +221 -20
- package/dist/dto/entities/agents/agent.requests.js +37 -1
- package/dist/dto/entities/agents/agent.requests.js.map +1 -1
- package/dist/dto/entities/gimmicks/gimmick.d.ts +5 -0
- package/dist/dto/entities/gimmicks/gimmick.js +3 -0
- package/dist/dto/entities/gimmicks/gimmick.js.map +1 -0
- package/dist/dto/entities/gimmicks/index.d.ts +1 -0
- package/dist/dto/entities/gimmicks/index.js +18 -0
- package/dist/dto/entities/gimmicks/index.js.map +1 -0
- package/dist/dto/entities/index.d.ts +1 -0
- package/dist/dto/entities/index.js +1 -0
- package/dist/dto/entities/index.js.map +1 -1
- package/dist/dto/entities/users/user.d.ts +4 -0
- package/dist/dto/entities/users/user.requests.d.ts +6 -1
- package/dist/dto/entities/users/user.requests.js +2 -1
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/items/item.requests.d.ts +12 -2
- package/dist/dto/items/item.requests.js +17 -32
- package/dist/dto/items/item.requests.js.map +1 -1
- package/dist/dto/locations/index.d.ts +1 -0
- package/dist/dto/locations/index.js +1 -0
- package/dist/dto/locations/index.js.map +1 -1
- package/dist/dto/locations/location.d.ts +25 -2
- package/dist/dto/locations/location.events.d.ts +29 -9
- package/dist/dto/locations/location.events.js +6 -2
- package/dist/dto/locations/location.events.js.map +1 -1
- package/dist/dto/locations/location.message.d.ts +1 -0
- package/dist/dto/locations/location.requests.d.ts +660 -169
- package/dist/dto/locations/location.requests.js +147 -44
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/dto/locations/location.snapshot.d.ts +11 -0
- package/dist/dto/locations/location.snapshot.js +3 -0
- package/dist/dto/locations/location.snapshot.js.map +1 -0
- package/dist/models/entities/agents/agent.config.d.ts +4 -4
- package/dist/models/entities/agents/agent.config.js +23 -15
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +26 -23
- package/dist/models/locations/location.config.js +19 -12
- package/dist/models/locations/location.config.js.map +1 -1
- package/dist/models/locations/location.constants.d.ts +1 -0
- package/dist/models/locations/location.constants.js +1 -0
- package/dist/models/locations/location.constants.js.map +1 -1
- package/package.json +3 -3
|
@@ -8,4 +8,12 @@ export interface AgentPublicDto {
|
|
|
8
8
|
}
|
|
9
9
|
export interface AgentPrivateDto extends AgentPublicDto {
|
|
10
10
|
config: AgentConfig | null;
|
|
11
|
+
credentialTypes: string[];
|
|
12
|
+
}
|
|
13
|
+
export interface AgentCostDto {
|
|
14
|
+
agentId: AgentId;
|
|
15
|
+
totalCost: number;
|
|
16
|
+
llmPresetCost: number;
|
|
17
|
+
gimmickCost?: number;
|
|
18
|
+
canvasCost?: number;
|
|
11
19
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { LocationId } from '@little-samo/samo-ai/models';
|
|
1
2
|
import { AgentConfig } from '@little-samo/samo-ai-sdk/models';
|
|
2
3
|
import { z } from 'zod';
|
|
3
|
-
import { AgentPrivateDto, AgentPublicDto } from './agent';
|
|
4
|
+
import { AgentCostDto, AgentPrivateDto, AgentPublicDto } from './agent';
|
|
4
5
|
import { AgentPresetDto } from './agent.preset';
|
|
5
6
|
export declare const AgentsPaginationQuerySchema: z.ZodObject<{
|
|
6
7
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -49,7 +50,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
49
50
|
}, {
|
|
50
51
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
51
52
|
}>>;
|
|
52
|
-
llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"
|
|
53
|
+
llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>>;
|
|
53
54
|
languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
54
55
|
timeZone: z.ZodOptional<z.ZodString>;
|
|
55
56
|
greeting: z.ZodOptional<z.ZodString>;
|
|
@@ -58,70 +59,140 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
58
59
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
59
60
|
}, "strict", z.ZodTypeAny, {
|
|
60
61
|
name?: string | undefined;
|
|
61
|
-
avatar?: string | undefined;
|
|
62
|
-
appearance?: string | undefined;
|
|
63
62
|
core?: {
|
|
64
63
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
65
64
|
} | undefined;
|
|
66
|
-
|
|
65
|
+
appearance?: string | undefined;
|
|
66
|
+
rules?: string[] | undefined;
|
|
67
|
+
avatar?: string | undefined;
|
|
68
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
67
69
|
languages?: string[] | undefined;
|
|
68
70
|
timeZone?: string | undefined;
|
|
69
71
|
greeting?: string | undefined;
|
|
70
72
|
actions?: "todo"[] | undefined;
|
|
71
73
|
character?: Record<string, Record<string, string>> | undefined;
|
|
72
|
-
rules?: string[] | undefined;
|
|
73
74
|
}, {
|
|
74
75
|
name?: string | undefined;
|
|
75
|
-
avatar?: string | undefined;
|
|
76
|
-
appearance?: string | undefined;
|
|
77
76
|
core?: {
|
|
78
77
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
79
78
|
} | undefined;
|
|
80
|
-
|
|
79
|
+
appearance?: string | undefined;
|
|
80
|
+
rules?: string[] | undefined;
|
|
81
|
+
avatar?: string | undefined;
|
|
82
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
81
83
|
languages?: string[] | undefined;
|
|
82
84
|
timeZone?: string | undefined;
|
|
83
85
|
greeting?: string | undefined;
|
|
84
86
|
actions?: "todo"[] | undefined;
|
|
85
87
|
character?: Record<string, Record<string, string>> | undefined;
|
|
86
|
-
rules?: string[] | undefined;
|
|
87
88
|
}>;
|
|
88
89
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
agentId: bigint;
|
|
90
90
|
config: {
|
|
91
91
|
name?: string | undefined;
|
|
92
|
-
avatar?: string | undefined;
|
|
93
|
-
appearance?: string | undefined;
|
|
94
92
|
core?: {
|
|
95
93
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
96
94
|
} | undefined;
|
|
97
|
-
|
|
95
|
+
appearance?: string | undefined;
|
|
96
|
+
rules?: string[] | undefined;
|
|
97
|
+
avatar?: string | undefined;
|
|
98
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
98
99
|
languages?: string[] | undefined;
|
|
99
100
|
timeZone?: string | undefined;
|
|
100
101
|
greeting?: string | undefined;
|
|
101
102
|
actions?: "todo"[] | undefined;
|
|
102
103
|
character?: Record<string, Record<string, string>> | undefined;
|
|
103
|
-
rules?: string[] | undefined;
|
|
104
104
|
};
|
|
105
|
-
}, {
|
|
106
105
|
agentId: bigint;
|
|
106
|
+
}, {
|
|
107
107
|
config: {
|
|
108
108
|
name?: string | undefined;
|
|
109
|
-
avatar?: string | undefined;
|
|
110
|
-
appearance?: string | undefined;
|
|
111
109
|
core?: {
|
|
112
110
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
113
111
|
} | undefined;
|
|
114
|
-
|
|
112
|
+
appearance?: string | undefined;
|
|
113
|
+
rules?: string[] | undefined;
|
|
114
|
+
avatar?: string | undefined;
|
|
115
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
115
116
|
languages?: string[] | undefined;
|
|
116
117
|
timeZone?: string | undefined;
|
|
117
118
|
greeting?: string | undefined;
|
|
118
119
|
actions?: "todo"[] | undefined;
|
|
119
120
|
character?: Record<string, Record<string, string>> | undefined;
|
|
120
|
-
rules?: string[] | undefined;
|
|
121
121
|
};
|
|
122
|
+
agentId: bigint;
|
|
122
123
|
}>;
|
|
123
124
|
export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
|
|
124
125
|
export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
|
|
126
|
+
export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
127
|
+
agentId: z.ZodBigInt;
|
|
128
|
+
credential: z.ZodUnion<[z.ZodObject<{
|
|
129
|
+
type: z.ZodLiteral<"x_twitter">;
|
|
130
|
+
email: z.ZodString;
|
|
131
|
+
password: z.ZodString;
|
|
132
|
+
username: z.ZodString;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
type: "x_twitter";
|
|
135
|
+
email: string;
|
|
136
|
+
password: string;
|
|
137
|
+
username: string;
|
|
138
|
+
}, {
|
|
139
|
+
type: "x_twitter";
|
|
140
|
+
email: string;
|
|
141
|
+
password: string;
|
|
142
|
+
username: string;
|
|
143
|
+
}>, z.ZodObject<{
|
|
144
|
+
type: z.ZodLiteral<"notion">;
|
|
145
|
+
token: z.ZodString;
|
|
146
|
+
}, "strip", z.ZodTypeAny, {
|
|
147
|
+
type: "notion";
|
|
148
|
+
token: string;
|
|
149
|
+
}, {
|
|
150
|
+
type: "notion";
|
|
151
|
+
token: string;
|
|
152
|
+
}>]>;
|
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
|
154
|
+
credential: {
|
|
155
|
+
type: "x_twitter";
|
|
156
|
+
email: string;
|
|
157
|
+
password: string;
|
|
158
|
+
username: string;
|
|
159
|
+
} | {
|
|
160
|
+
type: "notion";
|
|
161
|
+
token: string;
|
|
162
|
+
};
|
|
163
|
+
agentId: bigint;
|
|
164
|
+
}, {
|
|
165
|
+
credential: {
|
|
166
|
+
type: "x_twitter";
|
|
167
|
+
email: string;
|
|
168
|
+
password: string;
|
|
169
|
+
username: string;
|
|
170
|
+
} | {
|
|
171
|
+
type: "notion";
|
|
172
|
+
token: string;
|
|
173
|
+
};
|
|
174
|
+
agentId: bigint;
|
|
175
|
+
}>;
|
|
176
|
+
export type AgentUpdateCredentialDto = z.infer<typeof AgentUpdateCredentialSchema>;
|
|
177
|
+
export interface AgentUpdateCredentialResponseDto {
|
|
178
|
+
success: boolean;
|
|
179
|
+
error?: string;
|
|
180
|
+
}
|
|
181
|
+
export declare const AgentDeleteCredentialSchema: z.ZodObject<{
|
|
182
|
+
agentId: z.ZodBigInt;
|
|
183
|
+
credentialType: z.ZodString;
|
|
184
|
+
}, "strip", z.ZodTypeAny, {
|
|
185
|
+
credentialType: string;
|
|
186
|
+
agentId: bigint;
|
|
187
|
+
}, {
|
|
188
|
+
credentialType: string;
|
|
189
|
+
agentId: bigint;
|
|
190
|
+
}>;
|
|
191
|
+
export type AgentDeleteCredentialDto = z.infer<typeof AgentDeleteCredentialSchema>;
|
|
192
|
+
export interface AgentDeleteCredentialResponseDto {
|
|
193
|
+
success: boolean;
|
|
194
|
+
error?: string;
|
|
195
|
+
}
|
|
125
196
|
export declare const AgentPresetsPaginationQuerySchema: z.ZodObject<{
|
|
126
197
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
127
198
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
@@ -142,6 +213,91 @@ export interface AgentPresetsPaginatedResponseDto {
|
|
|
142
213
|
totalPages: number;
|
|
143
214
|
};
|
|
144
215
|
}
|
|
216
|
+
export declare const CreateAgentSchema: z.ZodObject<{
|
|
217
|
+
config: z.ZodObject<{
|
|
218
|
+
name: z.ZodOptional<z.ZodString>;
|
|
219
|
+
avatar: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<string>, z.ZodLiteral<string>, ...z.ZodLiteral<string>[], z.ZodString]>>;
|
|
220
|
+
appearance: z.ZodOptional<z.ZodString>;
|
|
221
|
+
core: z.ZodOptional<z.ZodObject<{
|
|
222
|
+
name: z.ZodUnion<[z.ZodLiteral<"evaluate_and_actions">, z.ZodLiteral<"execute_actions">, z.ZodLiteral<"response_every_message">]>;
|
|
223
|
+
}, "strip", z.ZodTypeAny, {
|
|
224
|
+
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
225
|
+
}, {
|
|
226
|
+
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
227
|
+
}>>;
|
|
228
|
+
llmPreset: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"gemini-low">, z.ZodLiteral<"gemini-medium">, z.ZodLiteral<"openai-low">, z.ZodLiteral<"openai-medium">]>>;
|
|
229
|
+
languages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
230
|
+
timeZone: z.ZodOptional<z.ZodString>;
|
|
231
|
+
greeting: z.ZodOptional<z.ZodString>;
|
|
232
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodLiteral<"todo">, z.ZodLiteral<"todo">]>, "many">>;
|
|
233
|
+
character: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
234
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
235
|
+
}, "strict", z.ZodTypeAny, {
|
|
236
|
+
name?: string | undefined;
|
|
237
|
+
core?: {
|
|
238
|
+
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
239
|
+
} | undefined;
|
|
240
|
+
appearance?: string | undefined;
|
|
241
|
+
rules?: string[] | undefined;
|
|
242
|
+
avatar?: string | undefined;
|
|
243
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
244
|
+
languages?: string[] | undefined;
|
|
245
|
+
timeZone?: string | undefined;
|
|
246
|
+
greeting?: string | undefined;
|
|
247
|
+
actions?: "todo"[] | undefined;
|
|
248
|
+
character?: Record<string, Record<string, string>> | undefined;
|
|
249
|
+
}, {
|
|
250
|
+
name?: string | undefined;
|
|
251
|
+
core?: {
|
|
252
|
+
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
253
|
+
} | undefined;
|
|
254
|
+
appearance?: string | undefined;
|
|
255
|
+
rules?: string[] | undefined;
|
|
256
|
+
avatar?: string | undefined;
|
|
257
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
258
|
+
languages?: string[] | undefined;
|
|
259
|
+
timeZone?: string | undefined;
|
|
260
|
+
greeting?: string | undefined;
|
|
261
|
+
actions?: "todo"[] | undefined;
|
|
262
|
+
character?: Record<string, Record<string, string>> | undefined;
|
|
263
|
+
}>;
|
|
264
|
+
}, "strip", z.ZodTypeAny, {
|
|
265
|
+
config: {
|
|
266
|
+
name?: string | undefined;
|
|
267
|
+
core?: {
|
|
268
|
+
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
269
|
+
} | undefined;
|
|
270
|
+
appearance?: string | undefined;
|
|
271
|
+
rules?: string[] | undefined;
|
|
272
|
+
avatar?: string | undefined;
|
|
273
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
274
|
+
languages?: string[] | undefined;
|
|
275
|
+
timeZone?: string | undefined;
|
|
276
|
+
greeting?: string | undefined;
|
|
277
|
+
actions?: "todo"[] | undefined;
|
|
278
|
+
character?: Record<string, Record<string, string>> | undefined;
|
|
279
|
+
};
|
|
280
|
+
}, {
|
|
281
|
+
config: {
|
|
282
|
+
name?: string | undefined;
|
|
283
|
+
core?: {
|
|
284
|
+
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
285
|
+
} | undefined;
|
|
286
|
+
appearance?: string | undefined;
|
|
287
|
+
rules?: string[] | undefined;
|
|
288
|
+
avatar?: string | undefined;
|
|
289
|
+
llmPreset?: "gemini-low" | "gemini-medium" | "openai-low" | "openai-medium" | undefined;
|
|
290
|
+
languages?: string[] | undefined;
|
|
291
|
+
timeZone?: string | undefined;
|
|
292
|
+
greeting?: string | undefined;
|
|
293
|
+
actions?: "todo"[] | undefined;
|
|
294
|
+
character?: Record<string, Record<string, string>> | undefined;
|
|
295
|
+
};
|
|
296
|
+
}>;
|
|
297
|
+
export type CreateAgentDto = z.infer<typeof CreateAgentSchema>;
|
|
298
|
+
export interface CreateAgentResponseDto {
|
|
299
|
+
agent: AgentPrivateDto;
|
|
300
|
+
}
|
|
145
301
|
export declare const CreateAgentFromPresetSchema: z.ZodObject<{
|
|
146
302
|
presetId: z.ZodBigInt;
|
|
147
303
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -166,3 +322,48 @@ export type GetHelperAgentDto = z.infer<typeof GetHelperAgentSchema>;
|
|
|
166
322
|
export interface GetHelperAgentResponseDto {
|
|
167
323
|
agent: AgentPrivateDto;
|
|
168
324
|
}
|
|
325
|
+
export declare const GetAgentLocationsParamsSchema: z.ZodObject<{
|
|
326
|
+
agentId: z.ZodBigInt;
|
|
327
|
+
}, "strip", z.ZodTypeAny, {
|
|
328
|
+
agentId: bigint;
|
|
329
|
+
}, {
|
|
330
|
+
agentId: bigint;
|
|
331
|
+
}>;
|
|
332
|
+
export type GetAgentLocationsParamsDto = z.infer<typeof GetAgentLocationsParamsSchema>;
|
|
333
|
+
export interface GetAgentLocationsResponseDto {
|
|
334
|
+
locationIds: LocationId[];
|
|
335
|
+
}
|
|
336
|
+
export declare const GetAgentCostParamsSchema: z.ZodObject<{
|
|
337
|
+
agentId: z.ZodBigInt;
|
|
338
|
+
}, "strip", z.ZodTypeAny, {
|
|
339
|
+
agentId: bigint;
|
|
340
|
+
}, {
|
|
341
|
+
agentId: bigint;
|
|
342
|
+
}>;
|
|
343
|
+
export type GetAgentCostParamsDto = z.infer<typeof GetAgentCostParamsSchema>;
|
|
344
|
+
export interface GetAgentCostResponseDto {
|
|
345
|
+
cost: AgentCostDto;
|
|
346
|
+
}
|
|
347
|
+
export declare const UploadAgentAvatarParamsSchema: z.ZodObject<{
|
|
348
|
+
agentId: z.ZodBigInt;
|
|
349
|
+
}, "strip", z.ZodTypeAny, {
|
|
350
|
+
agentId: bigint;
|
|
351
|
+
}, {
|
|
352
|
+
agentId: bigint;
|
|
353
|
+
}>;
|
|
354
|
+
export type UploadAgentAvatarParamsDto = z.infer<typeof UploadAgentAvatarParamsSchema>;
|
|
355
|
+
export interface UploadAgentAvatarResponseDto {
|
|
356
|
+
avatarUrl: string;
|
|
357
|
+
}
|
|
358
|
+
export declare const DeleteAgentParamsSchema: z.ZodObject<{
|
|
359
|
+
agentId: z.ZodBigInt;
|
|
360
|
+
}, "strip", z.ZodTypeAny, {
|
|
361
|
+
agentId: bigint;
|
|
362
|
+
}, {
|
|
363
|
+
agentId: bigint;
|
|
364
|
+
}>;
|
|
365
|
+
export type DeleteAgentParamsDto = z.infer<typeof DeleteAgentParamsSchema>;
|
|
366
|
+
export interface DeleteAgentResponseDto {
|
|
367
|
+
success: boolean;
|
|
368
|
+
error?: string;
|
|
369
|
+
}
|
|
@@ -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.DeleteAgentParamsSchema = exports.UploadAgentAvatarParamsSchema = exports.GetAgentCostParamsSchema = exports.GetAgentLocationsParamsSchema = exports.GetHelperAgentSchema = exports.CreateAgentFromPresetSchema = exports.CreateAgentSchema = exports.AgentPresetsPaginationQuerySchema = exports.AgentDeleteCredentialSchema = exports.AgentUpdateCredentialSchema = exports.AgentUpdateConfigSchema = exports.GetAgentsByIdsQuerySchema = exports.AgentsPaginationQuerySchema = void 0;
|
|
4
4
|
const models_1 = require("@little-samo/samo-ai-sdk/models");
|
|
5
5
|
const zod_1 = require("zod");
|
|
6
6
|
exports.AgentsPaginationQuerySchema = zod_1.z.object({
|
|
@@ -23,14 +23,50 @@ 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),
|
|
29
48
|
});
|
|
49
|
+
exports.CreateAgentSchema = zod_1.z.object({
|
|
50
|
+
config: models_1.AgentConfigSchema.partial()
|
|
51
|
+
.strict()
|
|
52
|
+
.describe('Agent configuration settings (e.g., name, avatar, character, etc.)'),
|
|
53
|
+
});
|
|
30
54
|
exports.CreateAgentFromPresetSchema = zod_1.z.object({
|
|
31
55
|
presetId: zod_1.z.coerce.bigint(),
|
|
32
56
|
});
|
|
33
57
|
exports.GetHelperAgentSchema = zod_1.z.object({
|
|
34
58
|
helperType: zod_1.z.nativeEnum(models_1.AgentHelperType),
|
|
35
59
|
});
|
|
60
|
+
exports.GetAgentLocationsParamsSchema = zod_1.z.object({
|
|
61
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
62
|
+
});
|
|
63
|
+
exports.GetAgentCostParamsSchema = zod_1.z.object({
|
|
64
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
65
|
+
});
|
|
66
|
+
exports.UploadAgentAvatarParamsSchema = zod_1.z.object({
|
|
67
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
68
|
+
});
|
|
69
|
+
exports.DeleteAgentParamsSchema = zod_1.z.object({
|
|
70
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
71
|
+
});
|
|
36
72
|
//# sourceMappingURL=agent.requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/agents/agent.requests.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"agent.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/agents/agent.requests.ts"],"names":[],"mappings":";;;AACA,4DAIyC;AACzC,6BAAwB;AAUX,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC;IAC1D,KAAK,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;CACtE,CAAC,CAAC;AAkBU,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,QAAQ,EAAE,OAAC;SACR,MAAM,EA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,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AASU,QAAA,6BAA6B,GAAG,OAAC,CAAC,MAAM,CAAC;IACpD,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAWU,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gimmick.js","sourceRoot":"","sources":["../../../../src/dto/entities/gimmicks/gimmick.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './gimmick';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./gimmick"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dto/entities/gimmicks/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./agents"), exports);
|
|
18
|
+
__exportStar(require("./gimmicks"), exports);
|
|
18
19
|
__exportStar(require("./users"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { UserPublicDto } from './user';
|
|
2
|
+
import { UserPrivateDto, UserPublicDto } from './user';
|
|
3
|
+
export declare const GetCurrentUserQuerySchema: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
4
|
+
export type GetCurrentUserQueryDto = z.infer<typeof GetCurrentUserQuerySchema>;
|
|
5
|
+
export interface GetCurrentUserResponseDto {
|
|
6
|
+
user: UserPrivateDto;
|
|
7
|
+
}
|
|
3
8
|
export declare const GetUsersByIdsQuerySchema: z.ZodObject<{
|
|
4
9
|
userIds: z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>;
|
|
5
10
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetUsersByIdsQuerySchema = void 0;
|
|
3
|
+
exports.GetUsersByIdsQuerySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
exports.GetCurrentUserQuerySchema = zod_1.z.object({});
|
|
5
6
|
exports.GetUsersByIdsQuerySchema = zod_1.z.object({
|
|
6
7
|
userIds: zod_1.z
|
|
7
8
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;
|
|
1
|
+
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AASX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AASzC,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC;SACP,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACjE,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE;QACnD,OAAO,EAAE,oCAAoC;KAC9C,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ItemDto } from './item';
|
|
3
|
+
export declare const GetUserItemsQuerySchema: z.ZodObject<{
|
|
4
|
+
itemDataIds: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number[] | undefined, string | undefined>, number[] | undefined, string | undefined>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
itemDataIds?: number[] | undefined;
|
|
7
|
+
}, {
|
|
8
|
+
itemDataIds?: string | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
export type GetUserItemsQueryDto = z.infer<typeof GetUserItemsQuerySchema>;
|
|
11
|
+
export interface GetUserItemsResponseDto {
|
|
12
|
+
items: ItemDto[];
|
|
3
13
|
}
|
|
@@ -1,36 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return value.map((id) => parseInt(id)).filter((id) => !isNaN(id));
|
|
29
|
-
}
|
|
30
|
-
return [];
|
|
3
|
+
exports.GetUserItemsQuerySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.GetUserItemsQuerySchema = zod_1.z.object({
|
|
6
|
+
itemDataIds: zod_1.z
|
|
7
|
+
.string()
|
|
8
|
+
.optional()
|
|
9
|
+
.transform((val) => {
|
|
10
|
+
if (!val)
|
|
11
|
+
return undefined;
|
|
12
|
+
return val
|
|
13
|
+
.split(',')
|
|
14
|
+
.map((id) => zod_1.z.coerce.number().parse(id.trim()))
|
|
15
|
+
.filter((id) => !isNaN(id));
|
|
16
|
+
})
|
|
17
|
+
.refine((arr) => !arr || arr.length <= 50, {
|
|
18
|
+
message: 'itemDataIds must contain at most 50 item data IDs',
|
|
31
19
|
}),
|
|
32
|
-
|
|
33
|
-
(0, class_validator_1.IsNumber)({}, { each: true }),
|
|
34
|
-
__metadata("design:type", Array)
|
|
35
|
-
], ItemQueryDto.prototype, "itemDataIds", void 0);
|
|
20
|
+
});
|
|
36
21
|
//# sourceMappingURL=item.requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.requests.js","sourceRoot":"","sources":["../../../src/dto/items/item.requests.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"item.requests.js","sourceRoot":"","sources":["../../../src/dto/items/item.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AASX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE;QACjB,IAAI,CAAC,GAAG;YAAE,OAAO,SAAS,CAAC;QAC3B,OAAO,GAAG;aACP,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;aAC/C,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC,CAAC;SACD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE;QACzC,OAAO,EAAE,mDAAmD;KAC7D,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -19,5 +19,6 @@ __exportStar(require("./location.message"), exports);
|
|
|
19
19
|
__exportStar(require("./location.preset"), exports);
|
|
20
20
|
__exportStar(require("./location.requests"), exports);
|
|
21
21
|
__exportStar(require("./location.scheduled-message"), exports);
|
|
22
|
+
__exportStar(require("./location.snapshot"), exports);
|
|
22
23
|
__exportStar(require("./location"), exports);
|
|
23
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,sDAAoC;AACpC,+DAA6C;AAC7C,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/dto/locations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,qDAAmC;AACnC,oDAAkC;AAClC,sDAAoC;AACpC,+DAA6C;AAC7C,sDAAoC;AACpC,6CAA2B"}
|