@little-samo/samo-ai-sdk 0.1.1 → 0.1.2-rv1
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 +2 -2
- package/dist/dto/entities/agents/agent.preset.d.ts +2 -0
- package/dist/dto/entities/agents/agent.requests.d.ts +26 -411
- 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/index.d.ts +1 -1
- package/dist/dto/locations/index.js +1 -1
- package/dist/dto/locations/index.js.map +1 -1
- package/dist/dto/locations/location.d.ts +1 -1
- package/dist/dto/locations/location.events.d.ts +25 -6
- package/dist/dto/locations/location.events.js +4 -1
- package/dist/dto/locations/location.events.js.map +1 -1
- package/dist/dto/locations/location.preset.d.ts +2 -0
- package/dist/dto/locations/location.requests.d.ts +173 -39
- package/dist/dto/locations/location.requests.js +58 -8
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/dto/locations/location.scheduled-message.d.ts +12 -0
- package/dist/dto/locations/location.scheduled-message.js +3 -0
- package/dist/dto/locations/location.scheduled-message.js.map +1 -0
- package/dist/models/entities/agents/agent.config.d.ts +6 -281
- package/dist/models/entities/agents/agent.config.js +9 -43
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.js +1 -1
- package/dist/models/locations/location.config.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
import { 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: {
|
|
5
|
-
readonly
|
|
5
|
+
readonly AgentExecuting: "AgentExecuting";
|
|
6
|
+
readonly AgentExecuted: "AgentExecuted";
|
|
6
7
|
readonly UserJoin: "UserJoin";
|
|
7
8
|
readonly UserLeave: "UserLeave";
|
|
9
|
+
readonly GimmickExecuting: "GimmickExecuting";
|
|
10
|
+
readonly GimmickExecuted: "GimmickExecuted";
|
|
8
11
|
readonly AddMessage: "AddMessage";
|
|
9
12
|
readonly RenderingUpdated: "RenderingUpdated";
|
|
10
13
|
readonly PauseUpdateUntilUpdated: "PauseUpdateUntilUpdated";
|
|
@@ -15,9 +18,15 @@ export interface LocationEventDtoBase {
|
|
|
15
18
|
userIds?: UserId[];
|
|
16
19
|
type: LocationEventType;
|
|
17
20
|
}
|
|
18
|
-
export interface
|
|
19
|
-
type: typeof LocationEventType.
|
|
20
|
-
|
|
21
|
+
export interface LocationAgentExecutingEventDto extends LocationEventDtoBase {
|
|
22
|
+
type: typeof LocationEventType.AgentExecuting;
|
|
23
|
+
agentId: AgentId;
|
|
24
|
+
}
|
|
25
|
+
export interface LocationAgentExecutedEventDto extends LocationEventDtoBase {
|
|
26
|
+
type: typeof LocationEventType.AgentExecuted;
|
|
27
|
+
agentId: AgentId;
|
|
28
|
+
success: boolean;
|
|
29
|
+
error?: string;
|
|
21
30
|
}
|
|
22
31
|
export interface LocationUserJoinEventDto extends LocationEventDtoBase {
|
|
23
32
|
type: typeof LocationEventType.UserJoin;
|
|
@@ -27,6 +36,16 @@ export interface LocationUserLeaveEventDto extends LocationEventDtoBase {
|
|
|
27
36
|
type: typeof LocationEventType.UserLeave;
|
|
28
37
|
userId: UserId;
|
|
29
38
|
}
|
|
39
|
+
export interface LocationGimmickExecutingEventDto extends LocationEventDtoBase {
|
|
40
|
+
type: typeof LocationEventType.GimmickExecuting;
|
|
41
|
+
gimmickId: GimmickId;
|
|
42
|
+
}
|
|
43
|
+
export interface LocationGimmickExecutedEventDto extends LocationEventDtoBase {
|
|
44
|
+
type: typeof LocationEventType.GimmickExecuted;
|
|
45
|
+
gimmickId: GimmickId;
|
|
46
|
+
success: boolean;
|
|
47
|
+
error?: string;
|
|
48
|
+
}
|
|
30
49
|
export interface LocationAddMessageEventDto extends LocationEventDtoBase {
|
|
31
50
|
type: typeof LocationEventType.AddMessage;
|
|
32
51
|
message: LocationMessageDto;
|
|
@@ -40,4 +59,4 @@ export interface LocationPauseUpdateUntilUpdatedEventDto extends LocationEventDt
|
|
|
40
59
|
pauseUpdateUntil: Date | null;
|
|
41
60
|
pauseUpdateReason: string | null;
|
|
42
61
|
}
|
|
43
|
-
export type LocationEventDto =
|
|
62
|
+
export type LocationEventDto = LocationAgentExecutingEventDto | LocationAgentExecutedEventDto | LocationUserJoinEventDto | LocationUserLeaveEventDto | LocationGimmickExecutingEventDto | LocationGimmickExecutedEventDto | LocationAddMessageEventDto | LocationRenderingUpdatedEventDto | LocationPauseUpdateUntilUpdatedEventDto;
|
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LocationEventType = void 0;
|
|
4
4
|
exports.LocationEventType = {
|
|
5
|
-
|
|
5
|
+
AgentExecuting: 'AgentExecuting',
|
|
6
|
+
AgentExecuted: 'AgentExecuted',
|
|
6
7
|
UserJoin: 'UserJoin',
|
|
7
8
|
UserLeave: 'UserLeave',
|
|
9
|
+
GimmickExecuting: 'GimmickExecuting',
|
|
10
|
+
GimmickExecuted: 'GimmickExecuted',
|
|
8
11
|
AddMessage: 'AddMessage',
|
|
9
12
|
RenderingUpdated: 'RenderingUpdated',
|
|
10
13
|
PauseUpdateUntilUpdated: 'PauseUpdateUntilUpdated',
|
|
@@ -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,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,uBAAuB,EAAE,yBAAyB;CAC1C,CAAC"}
|
|
@@ -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
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { DayOfWeek } from '@little-samo/samo-ai/common';
|
|
1
2
|
import { z } from 'zod';
|
|
2
3
|
import { LocationConfig } from '../../models/locations/location.config';
|
|
3
4
|
import { LocationListItemDto, LocationPrivateDto } from './location';
|
|
4
5
|
import { LocationMessageDto } from './location.message';
|
|
5
6
|
import { LocationPresetDto } from './location.preset';
|
|
7
|
+
import { LocationScheduledMessageDto } from './location.scheduled-message';
|
|
6
8
|
export declare const UserLocationsQuerySchema: z.ZodObject<{
|
|
7
9
|
cursor: z.ZodOptional<z.ZodString>;
|
|
8
10
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -10,8 +12,8 @@ export declare const UserLocationsQuerySchema: z.ZodObject<{
|
|
|
10
12
|
limit: number;
|
|
11
13
|
cursor?: string | undefined;
|
|
12
14
|
}, {
|
|
13
|
-
cursor?: string | undefined;
|
|
14
15
|
limit?: number | undefined;
|
|
16
|
+
cursor?: string | undefined;
|
|
15
17
|
}>;
|
|
16
18
|
export type UserLocationsQueryDto = z.infer<typeof UserLocationsQuerySchema>;
|
|
17
19
|
export interface UserLocationsResponseDto {
|
|
@@ -22,41 +24,41 @@ export interface UserLocationsResponseDto {
|
|
|
22
24
|
};
|
|
23
25
|
}
|
|
24
26
|
export declare const GetLocationParamsSchema: z.ZodObject<{
|
|
25
|
-
locationId: z.
|
|
27
|
+
locationId: z.ZodBigInt;
|
|
26
28
|
}, "strip", z.ZodTypeAny, {
|
|
27
29
|
locationId: bigint;
|
|
28
30
|
}, {
|
|
29
|
-
locationId:
|
|
31
|
+
locationId: bigint;
|
|
30
32
|
}>;
|
|
31
33
|
export type GetLocationParamsDto = z.infer<typeof GetLocationParamsSchema>;
|
|
32
34
|
export interface GetLocationResponseDto {
|
|
33
35
|
location: LocationListItemDto;
|
|
34
36
|
}
|
|
35
37
|
export declare const GetLocationPrivateParamsSchema: z.ZodObject<{
|
|
36
|
-
locationId: z.
|
|
38
|
+
locationId: z.ZodBigInt;
|
|
37
39
|
}, "strip", z.ZodTypeAny, {
|
|
38
40
|
locationId: bigint;
|
|
39
41
|
}, {
|
|
40
|
-
locationId:
|
|
42
|
+
locationId: bigint;
|
|
41
43
|
}>;
|
|
42
44
|
export type GetLocationPrivateParamsDto = z.infer<typeof GetLocationPrivateParamsSchema>;
|
|
43
45
|
export interface GetLocationPrivateResponseDto {
|
|
44
46
|
location: LocationPrivateDto;
|
|
45
47
|
}
|
|
46
48
|
export declare const MarkLocationAsReadParamsSchema: z.ZodObject<{
|
|
47
|
-
locationId: z.
|
|
49
|
+
locationId: z.ZodBigInt;
|
|
48
50
|
}, "strip", z.ZodTypeAny, {
|
|
49
51
|
locationId: bigint;
|
|
50
52
|
}, {
|
|
51
|
-
locationId:
|
|
53
|
+
locationId: bigint;
|
|
52
54
|
}>;
|
|
53
55
|
export type MarkLocationAsReadParamsDto = z.infer<typeof MarkLocationAsReadParamsSchema>;
|
|
54
56
|
export declare const LocationUnreadCountParamsSchema: z.ZodObject<{
|
|
55
|
-
locationId: z.
|
|
57
|
+
locationId: z.ZodBigInt;
|
|
56
58
|
}, "strip", z.ZodTypeAny, {
|
|
57
59
|
locationId: bigint;
|
|
58
60
|
}, {
|
|
59
|
-
locationId:
|
|
61
|
+
locationId: bigint;
|
|
60
62
|
}>;
|
|
61
63
|
export type LocationUnreadCountParamsDto = z.infer<typeof LocationUnreadCountParamsSchema>;
|
|
62
64
|
export interface LocationUnreadCountResponseDto {
|
|
@@ -79,11 +81,11 @@ export interface LocationsUnreadCountResponseDto {
|
|
|
79
81
|
data: LocationUnreadCountItemDto[];
|
|
80
82
|
}
|
|
81
83
|
export declare const JoinAgentToLocationParamsSchema: z.ZodObject<{
|
|
82
|
-
locationId: z.
|
|
84
|
+
locationId: z.ZodBigInt;
|
|
83
85
|
}, "strip", z.ZodTypeAny, {
|
|
84
86
|
locationId: bigint;
|
|
85
87
|
}, {
|
|
86
|
-
locationId:
|
|
88
|
+
locationId: bigint;
|
|
87
89
|
}>;
|
|
88
90
|
export type JoinAgentToLocationParamsDto = z.infer<typeof JoinAgentToLocationParamsSchema>;
|
|
89
91
|
export declare const JoinAgentToLocationBodySchema: z.ZodObject<{
|
|
@@ -102,19 +104,19 @@ export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
|
|
|
102
104
|
locationId: z.ZodBigInt;
|
|
103
105
|
agentId: z.ZodBigInt;
|
|
104
106
|
}, "strip", z.ZodTypeAny, {
|
|
105
|
-
locationId: bigint;
|
|
106
107
|
agentId: bigint;
|
|
107
|
-
}, {
|
|
108
108
|
locationId: bigint;
|
|
109
|
+
}, {
|
|
109
110
|
agentId: bigint;
|
|
111
|
+
locationId: bigint;
|
|
110
112
|
}>;
|
|
111
113
|
export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
|
|
112
114
|
export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
|
|
113
|
-
locationId: z.
|
|
115
|
+
locationId: z.ZodBigInt;
|
|
114
116
|
}, "strip", z.ZodTypeAny, {
|
|
115
117
|
locationId: bigint;
|
|
116
118
|
}, {
|
|
117
|
-
locationId:
|
|
119
|
+
locationId: bigint;
|
|
118
120
|
}>;
|
|
119
121
|
export type RemoveAgentFromLocationParamsDto = z.infer<typeof RemoveAgentFromLocationParamsSchema>;
|
|
120
122
|
export declare const RemoveAgentFromLocationBodySchema: z.ZodObject<{
|
|
@@ -133,11 +135,11 @@ export declare const RemoveAgentFromLocationToolSchema: z.ZodObject<{
|
|
|
133
135
|
locationId: z.ZodBigInt;
|
|
134
136
|
agentId: z.ZodBigInt;
|
|
135
137
|
}, "strip", z.ZodTypeAny, {
|
|
136
|
-
locationId: bigint;
|
|
137
138
|
agentId: bigint;
|
|
138
|
-
}, {
|
|
139
139
|
locationId: bigint;
|
|
140
|
+
}, {
|
|
140
141
|
agentId: bigint;
|
|
142
|
+
locationId: bigint;
|
|
141
143
|
}>;
|
|
142
144
|
export type RemoveAgentFromLocationToolDto = z.infer<typeof RemoveAgentFromLocationToolSchema>;
|
|
143
145
|
export interface LocationMessagesResponseDto {
|
|
@@ -148,11 +150,11 @@ export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
|
|
|
148
150
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
149
151
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
150
152
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
limit: number;
|
|
152
153
|
page: number;
|
|
154
|
+
limit: number;
|
|
153
155
|
}, {
|
|
154
|
-
limit?: number | undefined;
|
|
155
156
|
page?: number | undefined;
|
|
157
|
+
limit?: number | undefined;
|
|
156
158
|
}>;
|
|
157
159
|
export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
|
|
158
160
|
export interface LocationPresetsPaginatedResponseDto {
|
|
@@ -226,25 +228,25 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
226
228
|
appearance: z.ZodString;
|
|
227
229
|
}, "strip", z.ZodTypeAny, {
|
|
228
230
|
name: string;
|
|
229
|
-
core: "web_search" | "x_twitter";
|
|
230
231
|
description: string;
|
|
231
232
|
appearance: string;
|
|
233
|
+
core: "web_search" | "x_twitter";
|
|
232
234
|
}, {
|
|
233
235
|
name: string;
|
|
234
|
-
core: "web_search" | "x_twitter";
|
|
235
236
|
description: string;
|
|
236
237
|
appearance: string;
|
|
238
|
+
core: "web_search" | "x_twitter";
|
|
237
239
|
}>, "many">>;
|
|
238
240
|
}, "strict", z.ZodTypeAny, {
|
|
239
241
|
name?: string | undefined;
|
|
240
|
-
|
|
241
|
-
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
242
|
+
description?: string | undefined;
|
|
242
243
|
core?: {
|
|
243
244
|
name: "round_robin" | "update_forever" | "update_once";
|
|
244
245
|
sequential?: boolean | undefined;
|
|
245
246
|
} | undefined;
|
|
246
|
-
description?: string | undefined;
|
|
247
247
|
rules?: string[] | undefined;
|
|
248
|
+
thumbnail?: string | undefined;
|
|
249
|
+
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
248
250
|
canvases?: {
|
|
249
251
|
name: string;
|
|
250
252
|
description: string;
|
|
@@ -257,20 +259,20 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
257
259
|
}[] | undefined;
|
|
258
260
|
gimmicks?: {
|
|
259
261
|
name: string;
|
|
260
|
-
core: "web_search" | "x_twitter";
|
|
261
262
|
description: string;
|
|
262
263
|
appearance: string;
|
|
264
|
+
core: "web_search" | "x_twitter";
|
|
263
265
|
}[] | undefined;
|
|
264
266
|
}, {
|
|
265
267
|
name?: string | undefined;
|
|
266
|
-
|
|
267
|
-
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
268
|
+
description?: string | undefined;
|
|
268
269
|
core?: {
|
|
269
270
|
name: "round_robin" | "update_forever" | "update_once";
|
|
270
271
|
sequential?: boolean | undefined;
|
|
271
272
|
} | undefined;
|
|
272
|
-
description?: string | undefined;
|
|
273
273
|
rules?: string[] | undefined;
|
|
274
|
+
thumbnail?: string | undefined;
|
|
275
|
+
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
274
276
|
canvases?: {
|
|
275
277
|
name: string;
|
|
276
278
|
description: string;
|
|
@@ -283,23 +285,22 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
283
285
|
}[] | undefined;
|
|
284
286
|
gimmicks?: {
|
|
285
287
|
name: string;
|
|
286
|
-
core: "web_search" | "x_twitter";
|
|
287
288
|
description: string;
|
|
288
289
|
appearance: string;
|
|
290
|
+
core: "web_search" | "x_twitter";
|
|
289
291
|
}[] | undefined;
|
|
290
292
|
}>;
|
|
291
293
|
}, "strip", z.ZodTypeAny, {
|
|
292
|
-
locationId: bigint;
|
|
293
294
|
config: {
|
|
294
295
|
name?: string | undefined;
|
|
295
|
-
|
|
296
|
-
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
296
|
+
description?: string | undefined;
|
|
297
297
|
core?: {
|
|
298
298
|
name: "round_robin" | "update_forever" | "update_once";
|
|
299
299
|
sequential?: boolean | undefined;
|
|
300
300
|
} | undefined;
|
|
301
|
-
description?: string | undefined;
|
|
302
301
|
rules?: string[] | undefined;
|
|
302
|
+
thumbnail?: string | undefined;
|
|
303
|
+
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
303
304
|
canvases?: {
|
|
304
305
|
name: string;
|
|
305
306
|
description: string;
|
|
@@ -312,23 +313,23 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
312
313
|
}[] | undefined;
|
|
313
314
|
gimmicks?: {
|
|
314
315
|
name: string;
|
|
315
|
-
core: "web_search" | "x_twitter";
|
|
316
316
|
description: string;
|
|
317
317
|
appearance: string;
|
|
318
|
+
core: "web_search" | "x_twitter";
|
|
318
319
|
}[] | undefined;
|
|
319
320
|
};
|
|
320
|
-
}, {
|
|
321
321
|
locationId: bigint;
|
|
322
|
+
}, {
|
|
322
323
|
config: {
|
|
323
324
|
name?: string | undefined;
|
|
324
|
-
|
|
325
|
-
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
325
|
+
description?: string | undefined;
|
|
326
326
|
core?: {
|
|
327
327
|
name: "round_robin" | "update_forever" | "update_once";
|
|
328
328
|
sequential?: boolean | undefined;
|
|
329
329
|
} | undefined;
|
|
330
|
-
description?: string | undefined;
|
|
331
330
|
rules?: string[] | undefined;
|
|
331
|
+
thumbnail?: string | undefined;
|
|
332
|
+
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
332
333
|
canvases?: {
|
|
333
334
|
name: string;
|
|
334
335
|
description: string;
|
|
@@ -341,11 +342,12 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
341
342
|
}[] | undefined;
|
|
342
343
|
gimmicks?: {
|
|
343
344
|
name: string;
|
|
344
|
-
core: "web_search" | "x_twitter";
|
|
345
345
|
description: string;
|
|
346
346
|
appearance: string;
|
|
347
|
+
core: "web_search" | "x_twitter";
|
|
347
348
|
}[] | undefined;
|
|
348
349
|
};
|
|
350
|
+
locationId: bigint;
|
|
349
351
|
}>;
|
|
350
352
|
export type LocationUpdateConfigDto = z.infer<typeof LocationUpdateConfigSchema>;
|
|
351
353
|
export type LocationUpdateConfigResponseDto = Partial<LocationConfig>;
|
|
@@ -382,3 +384,135 @@ export type GetAgentDmLocationDto = z.infer<typeof GetAgentDmLocationQuerySchema
|
|
|
382
384
|
export interface GetAgentDmLocationResponseDto {
|
|
383
385
|
location: LocationPrivateDto;
|
|
384
386
|
}
|
|
387
|
+
export declare const GetLocationScheduledMessagesParamsSchema: z.ZodObject<{
|
|
388
|
+
locationId: z.ZodBigInt;
|
|
389
|
+
}, "strip", z.ZodTypeAny, {
|
|
390
|
+
locationId: bigint;
|
|
391
|
+
}, {
|
|
392
|
+
locationId: bigint;
|
|
393
|
+
}>;
|
|
394
|
+
export type GetLocationScheduledMessagesParamsDto = z.infer<typeof GetLocationScheduledMessagesParamsSchema>;
|
|
395
|
+
export interface GetLocationScheduledMessagesResponseDto {
|
|
396
|
+
scheduledMessages: LocationScheduledMessageDto[];
|
|
397
|
+
}
|
|
398
|
+
export declare const CreateLocationScheduledMessageParamsSchema: z.ZodObject<{
|
|
399
|
+
locationId: z.ZodBigInt;
|
|
400
|
+
}, "strip", z.ZodTypeAny, {
|
|
401
|
+
locationId: bigint;
|
|
402
|
+
}, {
|
|
403
|
+
locationId: bigint;
|
|
404
|
+
}>;
|
|
405
|
+
export type CreateLocationScheduledMessageParamsDto = z.infer<typeof CreateLocationScheduledMessageParamsSchema>;
|
|
406
|
+
export declare const CreateLocationScheduledMessageBodySchema: z.ZodObject<{
|
|
407
|
+
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
408
|
+
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
409
|
+
} & {
|
|
410
|
+
message: z.ZodString;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
message: string;
|
|
413
|
+
repeatTimesOfDay: string[];
|
|
414
|
+
repeatDaysOfWeek: DayOfWeek[];
|
|
415
|
+
}, {
|
|
416
|
+
message: string;
|
|
417
|
+
repeatTimesOfDay: string[];
|
|
418
|
+
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
419
|
+
}>;
|
|
420
|
+
export type CreateLocationScheduledMessageBodyDto = z.infer<typeof CreateLocationScheduledMessageBodySchema>;
|
|
421
|
+
export interface CreateLocationScheduledMessageResponseDto {
|
|
422
|
+
scheduledMessage: LocationScheduledMessageDto;
|
|
423
|
+
}
|
|
424
|
+
export declare const UpdateLocationScheduledMessageParamsSchema: z.ZodObject<{
|
|
425
|
+
locationId: z.ZodBigInt;
|
|
426
|
+
messageId: z.ZodString;
|
|
427
|
+
}, "strip", z.ZodTypeAny, {
|
|
428
|
+
locationId: bigint;
|
|
429
|
+
messageId: string;
|
|
430
|
+
}, {
|
|
431
|
+
locationId: bigint;
|
|
432
|
+
messageId: string;
|
|
433
|
+
}>;
|
|
434
|
+
export type UpdateLocationScheduledMessageParamsDto = z.infer<typeof UpdateLocationScheduledMessageParamsSchema>;
|
|
435
|
+
export declare const UpdateLocationScheduledMessageBodySchema: z.ZodObject<{
|
|
436
|
+
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
437
|
+
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
438
|
+
} & {
|
|
439
|
+
message: z.ZodOptional<z.ZodString>;
|
|
440
|
+
}, "strip", z.ZodTypeAny, {
|
|
441
|
+
repeatTimesOfDay: string[];
|
|
442
|
+
repeatDaysOfWeek: DayOfWeek[];
|
|
443
|
+
message?: string | undefined;
|
|
444
|
+
}, {
|
|
445
|
+
repeatTimesOfDay: string[];
|
|
446
|
+
message?: string | undefined;
|
|
447
|
+
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
448
|
+
}>;
|
|
449
|
+
export type UpdateLocationScheduledMessageBodyDto = z.infer<typeof UpdateLocationScheduledMessageBodySchema>;
|
|
450
|
+
export interface UpdateLocationScheduledMessageResponseDto {
|
|
451
|
+
scheduledMessage: LocationScheduledMessageDto;
|
|
452
|
+
}
|
|
453
|
+
export declare const DeleteLocationScheduledMessageParamsSchema: z.ZodObject<{
|
|
454
|
+
locationId: z.ZodBigInt;
|
|
455
|
+
messageId: z.ZodString;
|
|
456
|
+
}, "strip", z.ZodTypeAny, {
|
|
457
|
+
locationId: bigint;
|
|
458
|
+
messageId: string;
|
|
459
|
+
}, {
|
|
460
|
+
locationId: bigint;
|
|
461
|
+
messageId: string;
|
|
462
|
+
}>;
|
|
463
|
+
export type DeleteLocationScheduledMessageParamsDto = z.infer<typeof DeleteLocationScheduledMessageParamsSchema>;
|
|
464
|
+
export interface DeleteLocationScheduledMessageResponseDto {
|
|
465
|
+
deleted: boolean;
|
|
466
|
+
}
|
|
467
|
+
export declare const CreateLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
468
|
+
locationId: z.ZodBigInt;
|
|
469
|
+
} & {
|
|
470
|
+
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
471
|
+
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
472
|
+
} & {
|
|
473
|
+
message: z.ZodString;
|
|
474
|
+
}, "strip", z.ZodTypeAny, {
|
|
475
|
+
message: string;
|
|
476
|
+
locationId: bigint;
|
|
477
|
+
repeatTimesOfDay: string[];
|
|
478
|
+
repeatDaysOfWeek: DayOfWeek[];
|
|
479
|
+
}, {
|
|
480
|
+
message: string;
|
|
481
|
+
locationId: bigint;
|
|
482
|
+
repeatTimesOfDay: string[];
|
|
483
|
+
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
484
|
+
}>;
|
|
485
|
+
export type CreateLocationScheduledMessageToolDto = z.infer<typeof CreateLocationScheduledMessageToolSchema>;
|
|
486
|
+
export declare const UpdateLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
487
|
+
locationId: z.ZodBigInt;
|
|
488
|
+
} & {
|
|
489
|
+
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
490
|
+
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
491
|
+
} & {
|
|
492
|
+
messageId: z.ZodString;
|
|
493
|
+
message: z.ZodOptional<z.ZodString>;
|
|
494
|
+
}, "strip", z.ZodTypeAny, {
|
|
495
|
+
locationId: bigint;
|
|
496
|
+
repeatTimesOfDay: string[];
|
|
497
|
+
repeatDaysOfWeek: DayOfWeek[];
|
|
498
|
+
messageId: string;
|
|
499
|
+
message?: string | undefined;
|
|
500
|
+
}, {
|
|
501
|
+
locationId: bigint;
|
|
502
|
+
repeatTimesOfDay: string[];
|
|
503
|
+
messageId: string;
|
|
504
|
+
message?: string | undefined;
|
|
505
|
+
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
506
|
+
}>;
|
|
507
|
+
export type UpdateLocationScheduledMessageToolDto = z.infer<typeof UpdateLocationScheduledMessageToolSchema>;
|
|
508
|
+
export declare const DeleteLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
509
|
+
locationId: z.ZodBigInt;
|
|
510
|
+
messageId: z.ZodString;
|
|
511
|
+
}, "strip", z.ZodTypeAny, {
|
|
512
|
+
locationId: bigint;
|
|
513
|
+
messageId: string;
|
|
514
|
+
}, {
|
|
515
|
+
locationId: bigint;
|
|
516
|
+
messageId: string;
|
|
517
|
+
}>;
|
|
518
|
+
export type DeleteLocationScheduledMessageToolDto = z.infer<typeof DeleteLocationScheduledMessageToolSchema>;
|
|
@@ -1,6 +1,7 @@
|
|
|
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.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.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
|
+
const common_1 = require("@little-samo/samo-ai/common");
|
|
4
5
|
const zod_1 = require("zod");
|
|
5
6
|
const location_config_1 = require("../../models/locations/location.config");
|
|
6
7
|
exports.UserLocationsQuerySchema = zod_1.z.object({
|
|
@@ -13,27 +14,27 @@ exports.UserLocationsQuerySchema = zod_1.z.object({
|
|
|
13
14
|
.describe('Number of locations to return'),
|
|
14
15
|
});
|
|
15
16
|
exports.GetLocationParamsSchema = zod_1.z.object({
|
|
16
|
-
locationId: zod_1.z.
|
|
17
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
17
18
|
});
|
|
18
19
|
exports.GetLocationPrivateParamsSchema = zod_1.z.object({
|
|
19
|
-
locationId: zod_1.z.
|
|
20
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
20
21
|
});
|
|
21
22
|
exports.MarkLocationAsReadParamsSchema = zod_1.z.object({
|
|
22
|
-
locationId: zod_1.z.
|
|
23
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
23
24
|
});
|
|
24
25
|
exports.LocationUnreadCountParamsSchema = zod_1.z.object({
|
|
25
|
-
locationId: zod_1.z.
|
|
26
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
26
27
|
});
|
|
27
28
|
exports.LocationsUnreadCountQuerySchema = zod_1.z.object({
|
|
28
29
|
locationIds: zod_1.z
|
|
29
30
|
.string()
|
|
30
|
-
.transform((val) => val.split(',').map((id) =>
|
|
31
|
+
.transform((val) => val.split(',').map((id) => zod_1.z.coerce.bigint().parse(id.trim())))
|
|
31
32
|
.refine((arr) => arr.length > 0 && arr.length <= 10, {
|
|
32
33
|
message: 'locationIds must contain 1-10 location IDs',
|
|
33
34
|
}),
|
|
34
35
|
});
|
|
35
36
|
exports.JoinAgentToLocationParamsSchema = zod_1.z.object({
|
|
36
|
-
locationId: zod_1.z.
|
|
37
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
37
38
|
});
|
|
38
39
|
exports.JoinAgentToLocationBodySchema = zod_1.z.object({
|
|
39
40
|
agentId: zod_1.z.coerce.bigint(),
|
|
@@ -43,7 +44,7 @@ exports.JoinAgentToLocationToolSchema = zod_1.z.object({
|
|
|
43
44
|
agentId: zod_1.z.coerce.bigint(),
|
|
44
45
|
});
|
|
45
46
|
exports.RemoveAgentFromLocationParamsSchema = zod_1.z.object({
|
|
46
|
-
locationId: zod_1.z.
|
|
47
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
47
48
|
});
|
|
48
49
|
exports.RemoveAgentFromLocationBodySchema = zod_1.z.object({
|
|
49
50
|
agentId: zod_1.z.coerce.bigint(),
|
|
@@ -74,4 +75,53 @@ exports.GetLocationHelperLocationQuerySchema = zod_1.z.object({
|
|
|
74
75
|
exports.GetAgentDmLocationQuerySchema = zod_1.z.object({
|
|
75
76
|
agentId: zod_1.z.coerce.bigint(),
|
|
76
77
|
});
|
|
78
|
+
exports.GetLocationScheduledMessagesParamsSchema = zod_1.z.object({
|
|
79
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
80
|
+
});
|
|
81
|
+
exports.CreateLocationScheduledMessageParamsSchema = zod_1.z.object({
|
|
82
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
83
|
+
});
|
|
84
|
+
const LocationScheduledMessageBaseSchema = zod_1.z.object({
|
|
85
|
+
repeatTimesOfDay: zod_1.z
|
|
86
|
+
.array(zod_1.z.string().regex(/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/))
|
|
87
|
+
.min(1)
|
|
88
|
+
.max(24)
|
|
89
|
+
.describe('Times of day to repeat the message (24-hour format)'),
|
|
90
|
+
repeatDaysOfWeek: zod_1.z
|
|
91
|
+
.array(zod_1.z.nativeEnum(common_1.DayOfWeek))
|
|
92
|
+
.max(7)
|
|
93
|
+
.optional()
|
|
94
|
+
.default([])
|
|
95
|
+
.describe('Days of week to repeat the message'),
|
|
96
|
+
});
|
|
97
|
+
exports.CreateLocationScheduledMessageBodySchema = LocationScheduledMessageBaseSchema.extend({
|
|
98
|
+
message: zod_1.z.string().max(500),
|
|
99
|
+
});
|
|
100
|
+
exports.UpdateLocationScheduledMessageParamsSchema = zod_1.z.object({
|
|
101
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
102
|
+
messageId: zod_1.z.string(),
|
|
103
|
+
});
|
|
104
|
+
exports.UpdateLocationScheduledMessageBodySchema = LocationScheduledMessageBaseSchema.extend({
|
|
105
|
+
message: zod_1.z.string().max(500).optional(),
|
|
106
|
+
});
|
|
107
|
+
exports.DeleteLocationScheduledMessageParamsSchema = zod_1.z.object({
|
|
108
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
109
|
+
messageId: zod_1.z.string(),
|
|
110
|
+
});
|
|
111
|
+
const LocationScheduledMessageToolBaseSchema = zod_1.z
|
|
112
|
+
.object({
|
|
113
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
114
|
+
})
|
|
115
|
+
.merge(LocationScheduledMessageBaseSchema);
|
|
116
|
+
exports.CreateLocationScheduledMessageToolSchema = LocationScheduledMessageToolBaseSchema.extend({
|
|
117
|
+
message: zod_1.z.string().max(500),
|
|
118
|
+
});
|
|
119
|
+
exports.UpdateLocationScheduledMessageToolSchema = LocationScheduledMessageToolBaseSchema.extend({
|
|
120
|
+
messageId: zod_1.z.string(),
|
|
121
|
+
message: zod_1.z.string().max(500).optional(),
|
|
122
|
+
});
|
|
123
|
+
exports.DeleteLocationScheduledMessageToolSchema = zod_1.z.object({
|
|
124
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
125
|
+
messageId: zod_1.z.string(),
|
|
126
|
+
});
|
|
77
127
|
//# sourceMappingURL=location.requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.requests.js","sourceRoot":"","sources":["../../../src/dto/locations/location.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,4EAGgD;
|
|
1
|
+
{"version":3,"file":"location.requests.js","sourceRoot":"","sources":["../../../src/dto/locations/location.requests.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,6BAAwB;AAExB,4EAGgD;AAQnC,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,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AASU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACrD,UAAU,EAAE,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE;CAC9B,CAAC,CAAC;AAWU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{
|
|
4
|
+
id: string;
|
|
5
|
+
locationId: LocationId;
|
|
6
|
+
message: string;
|
|
7
|
+
nextMessageAt: Date | null;
|
|
8
|
+
repeatTimesOfDay: string[];
|
|
9
|
+
repeatDaysOfWeek: DayOfWeek[];
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"location.scheduled-message.js","sourceRoot":"","sources":["../../../src/dto/locations/location.scheduled-message.ts"],"names":[],"mappings":""}
|