@little-samo/samo-ai-sdk 0.1.3 → 0.1.4
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 +131 -10
- package/dist/dto/entities/agents/agent.requests.js +38 -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 +503 -209
- package/dist/dto/locations/location.requests.js +132 -51
- 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 +18 -15
- package/dist/models/locations/location.config.js +16 -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
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { DayOfWeek } from '@little-samo/samo-ai/common';
|
|
2
|
+
import { LocationId } from '@little-samo/samo-ai/models';
|
|
2
3
|
import { z } from 'zod';
|
|
3
4
|
import { LocationConfig } from '../../models/locations/location.config';
|
|
4
|
-
import { LocationListItemDto, LocationPrivateDto } from './location';
|
|
5
|
+
import { LocationContentDto, LocationCostDto, LocationListItemDto, LocationPrivateDto } from './location';
|
|
5
6
|
import { LocationMessageDto } from './location.message';
|
|
6
7
|
import { LocationPresetDto } from './location.preset';
|
|
7
8
|
import { LocationScheduledMessageDto } from './location.scheduled-message';
|
|
9
|
+
import { LocationSnapshotDto } from './location.snapshot';
|
|
8
10
|
export declare const UserLocationsQuerySchema: z.ZodObject<{
|
|
9
11
|
cursor: z.ZodOptional<z.ZodString>;
|
|
10
12
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -12,8 +14,8 @@ export declare const UserLocationsQuerySchema: z.ZodObject<{
|
|
|
12
14
|
limit: number;
|
|
13
15
|
cursor?: string | undefined;
|
|
14
16
|
}, {
|
|
15
|
-
cursor?: string | undefined;
|
|
16
17
|
limit?: number | undefined;
|
|
18
|
+
cursor?: string | undefined;
|
|
17
19
|
}>;
|
|
18
20
|
export type UserLocationsQueryDto = z.infer<typeof UserLocationsQuerySchema>;
|
|
19
21
|
export interface UserLocationsResponseDto {
|
|
@@ -23,47 +25,6 @@ export interface UserLocationsResponseDto {
|
|
|
23
25
|
nextCursor?: string;
|
|
24
26
|
};
|
|
25
27
|
}
|
|
26
|
-
export declare const GetLocationParamsSchema: z.ZodObject<{
|
|
27
|
-
locationId: z.ZodBigInt;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
locationId: bigint;
|
|
30
|
-
}, {
|
|
31
|
-
locationId: bigint;
|
|
32
|
-
}>;
|
|
33
|
-
export type GetLocationParamsDto = z.infer<typeof GetLocationParamsSchema>;
|
|
34
|
-
export interface GetLocationResponseDto {
|
|
35
|
-
location: LocationListItemDto;
|
|
36
|
-
}
|
|
37
|
-
export declare const GetLocationPrivateParamsSchema: z.ZodObject<{
|
|
38
|
-
locationId: z.ZodBigInt;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
locationId: bigint;
|
|
41
|
-
}, {
|
|
42
|
-
locationId: bigint;
|
|
43
|
-
}>;
|
|
44
|
-
export type GetLocationPrivateParamsDto = z.infer<typeof GetLocationPrivateParamsSchema>;
|
|
45
|
-
export interface GetLocationPrivateResponseDto {
|
|
46
|
-
location: LocationPrivateDto;
|
|
47
|
-
}
|
|
48
|
-
export declare const MarkLocationAsReadParamsSchema: z.ZodObject<{
|
|
49
|
-
locationId: z.ZodBigInt;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
locationId: bigint;
|
|
52
|
-
}, {
|
|
53
|
-
locationId: bigint;
|
|
54
|
-
}>;
|
|
55
|
-
export type MarkLocationAsReadParamsDto = z.infer<typeof MarkLocationAsReadParamsSchema>;
|
|
56
|
-
export declare const LocationUnreadCountParamsSchema: z.ZodObject<{
|
|
57
|
-
locationId: z.ZodBigInt;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
locationId: bigint;
|
|
60
|
-
}, {
|
|
61
|
-
locationId: bigint;
|
|
62
|
-
}>;
|
|
63
|
-
export type LocationUnreadCountParamsDto = z.infer<typeof LocationUnreadCountParamsSchema>;
|
|
64
|
-
export interface LocationUnreadCountResponseDto {
|
|
65
|
-
unreadCount: number;
|
|
66
|
-
}
|
|
67
28
|
export declare const LocationsUnreadCountQuerySchema: z.ZodObject<{
|
|
68
29
|
locationIds: z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>;
|
|
69
30
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -73,122 +34,19 @@ export declare const LocationsUnreadCountQuerySchema: z.ZodObject<{
|
|
|
73
34
|
}>;
|
|
74
35
|
export type LocationsUnreadCountQueryDto = z.infer<typeof LocationsUnreadCountQuerySchema>;
|
|
75
36
|
export interface LocationUnreadCountItemDto {
|
|
76
|
-
locationId:
|
|
37
|
+
locationId: LocationId;
|
|
77
38
|
unreadCount: number;
|
|
78
39
|
lastMessage: LocationMessageDto | null;
|
|
79
40
|
}
|
|
80
41
|
export interface LocationsUnreadCountResponseDto {
|
|
81
42
|
data: LocationUnreadCountItemDto[];
|
|
82
43
|
}
|
|
83
|
-
export declare const JoinAgentToLocationParamsSchema: z.ZodObject<{
|
|
84
|
-
locationId: z.ZodBigInt;
|
|
85
|
-
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
locationId: bigint;
|
|
87
|
-
}, {
|
|
88
|
-
locationId: bigint;
|
|
89
|
-
}>;
|
|
90
|
-
export type JoinAgentToLocationParamsDto = z.infer<typeof JoinAgentToLocationParamsSchema>;
|
|
91
|
-
export declare const JoinAgentToLocationBodySchema: z.ZodObject<{
|
|
92
|
-
agentId: z.ZodBigInt;
|
|
93
|
-
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
agentId: bigint;
|
|
95
|
-
}, {
|
|
96
|
-
agentId: bigint;
|
|
97
|
-
}>;
|
|
98
|
-
export type JoinAgentToLocationBodyDto = z.infer<typeof JoinAgentToLocationBodySchema>;
|
|
99
|
-
export interface JoinAgentToLocationResponseDto {
|
|
100
|
-
agentAdded: boolean;
|
|
101
|
-
message?: string;
|
|
102
|
-
}
|
|
103
|
-
export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
|
|
104
|
-
locationId: z.ZodBigInt;
|
|
105
|
-
agentId: z.ZodBigInt;
|
|
106
|
-
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
locationId: bigint;
|
|
108
|
-
agentId: bigint;
|
|
109
|
-
}, {
|
|
110
|
-
locationId: bigint;
|
|
111
|
-
agentId: bigint;
|
|
112
|
-
}>;
|
|
113
|
-
export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
|
|
114
|
-
export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
|
|
115
|
-
locationId: z.ZodBigInt;
|
|
116
|
-
}, "strip", z.ZodTypeAny, {
|
|
117
|
-
locationId: bigint;
|
|
118
|
-
}, {
|
|
119
|
-
locationId: bigint;
|
|
120
|
-
}>;
|
|
121
|
-
export type RemoveAgentFromLocationParamsDto = z.infer<typeof RemoveAgentFromLocationParamsSchema>;
|
|
122
|
-
export declare const RemoveAgentFromLocationBodySchema: z.ZodObject<{
|
|
123
|
-
agentId: z.ZodBigInt;
|
|
124
|
-
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
agentId: bigint;
|
|
126
|
-
}, {
|
|
127
|
-
agentId: bigint;
|
|
128
|
-
}>;
|
|
129
|
-
export type RemoveAgentFromLocationBodyDto = z.infer<typeof RemoveAgentFromLocationBodySchema>;
|
|
130
|
-
export interface RemoveAgentFromLocationResponseDto {
|
|
131
|
-
agentRemoved: boolean;
|
|
132
|
-
message?: string;
|
|
133
|
-
}
|
|
134
|
-
export declare const RemoveAgentFromLocationToolSchema: z.ZodObject<{
|
|
135
|
-
locationId: z.ZodBigInt;
|
|
136
|
-
agentId: z.ZodBigInt;
|
|
137
|
-
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
locationId: bigint;
|
|
139
|
-
agentId: bigint;
|
|
140
|
-
}, {
|
|
141
|
-
locationId: bigint;
|
|
142
|
-
agentId: bigint;
|
|
143
|
-
}>;
|
|
144
|
-
export type RemoveAgentFromLocationToolDto = z.infer<typeof RemoveAgentFromLocationToolSchema>;
|
|
145
|
-
export interface LocationMessagesResponseDto {
|
|
146
|
-
messages: LocationMessageDto[];
|
|
147
|
-
cursor?: string;
|
|
148
|
-
}
|
|
149
|
-
export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
|
|
150
|
-
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
151
|
-
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
152
|
-
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
limit: number;
|
|
154
|
-
page: number;
|
|
155
|
-
}, {
|
|
156
|
-
limit?: number | undefined;
|
|
157
|
-
page?: number | undefined;
|
|
158
|
-
}>;
|
|
159
|
-
export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
|
|
160
|
-
export interface LocationPresetsPaginatedResponseDto {
|
|
161
|
-
data: LocationPresetDto[];
|
|
162
|
-
meta: {
|
|
163
|
-
total: number;
|
|
164
|
-
page: number;
|
|
165
|
-
limit: number;
|
|
166
|
-
totalPages: number;
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
export declare const CreateLocationFromPresetSchema: z.ZodObject<{
|
|
170
|
-
presetId: z.ZodBigInt;
|
|
171
|
-
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
172
|
-
readonly API: "API";
|
|
173
|
-
readonly MINIMO: "MINIMO";
|
|
174
|
-
}>>>;
|
|
175
|
-
}, "strip", z.ZodTypeAny, {
|
|
176
|
-
presetId: bigint;
|
|
177
|
-
platform: "API" | "MINIMO";
|
|
178
|
-
}, {
|
|
179
|
-
presetId: bigint;
|
|
180
|
-
platform?: "API" | "MINIMO" | undefined;
|
|
181
|
-
}>;
|
|
182
|
-
export type CreateLocationFromPresetDto = z.infer<typeof CreateLocationFromPresetSchema>;
|
|
183
|
-
export interface CreateLocationFromPresetResponseDto {
|
|
184
|
-
location: LocationPrivateDto;
|
|
185
|
-
}
|
|
186
44
|
export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
187
45
|
locationId: z.ZodBigInt;
|
|
188
46
|
config: z.ZodObject<{
|
|
189
47
|
name: z.ZodOptional<z.ZodString>;
|
|
190
|
-
thumbnail: z.ZodOptional<z.
|
|
191
|
-
environment: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"
|
|
48
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
environment: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"CHAT">]>>;
|
|
192
50
|
core: z.ZodOptional<z.ZodObject<{
|
|
193
51
|
name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">]>;
|
|
194
52
|
sequential: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -228,17 +86,17 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
228
86
|
maxLength: number;
|
|
229
87
|
}>, "many">>;
|
|
230
88
|
gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
231
|
-
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">]>;
|
|
89
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">, z.ZodLiteral<"notion">]>;
|
|
232
90
|
name: z.ZodString;
|
|
233
91
|
appearance: z.ZodString;
|
|
234
92
|
}, "strip", z.ZodTypeAny, {
|
|
235
93
|
name: string;
|
|
236
94
|
appearance: string;
|
|
237
|
-
core: "
|
|
95
|
+
core: "x_twitter" | "notion" | "web_search";
|
|
238
96
|
}, {
|
|
239
97
|
name: string;
|
|
240
98
|
appearance: string;
|
|
241
|
-
core: "
|
|
99
|
+
core: "x_twitter" | "notion" | "web_search";
|
|
242
100
|
}>, "many">>;
|
|
243
101
|
}, "strict", z.ZodTypeAny, {
|
|
244
102
|
name?: string | undefined;
|
|
@@ -248,8 +106,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
248
106
|
sequential?: boolean | undefined;
|
|
249
107
|
} | undefined;
|
|
250
108
|
rules?: string[] | undefined;
|
|
251
|
-
thumbnail?: string | undefined;
|
|
252
|
-
environment?: "CHAT" |
|
|
109
|
+
thumbnail?: string | null | undefined;
|
|
110
|
+
environment?: "CHAT" | undefined;
|
|
253
111
|
canvases?: {
|
|
254
112
|
name: string;
|
|
255
113
|
description: string;
|
|
@@ -263,7 +121,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
263
121
|
gimmicks?: {
|
|
264
122
|
name: string;
|
|
265
123
|
appearance: string;
|
|
266
|
-
core: "
|
|
124
|
+
core: "x_twitter" | "notion" | "web_search";
|
|
267
125
|
}[] | undefined;
|
|
268
126
|
}, {
|
|
269
127
|
name?: string | undefined;
|
|
@@ -273,8 +131,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
273
131
|
sequential?: boolean | undefined;
|
|
274
132
|
} | undefined;
|
|
275
133
|
rules?: string[] | undefined;
|
|
276
|
-
thumbnail?: string | undefined;
|
|
277
|
-
environment?: "CHAT" |
|
|
134
|
+
thumbnail?: string | null | undefined;
|
|
135
|
+
environment?: "CHAT" | undefined;
|
|
278
136
|
canvases?: {
|
|
279
137
|
name: string;
|
|
280
138
|
description: string;
|
|
@@ -288,11 +146,10 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
288
146
|
gimmicks?: {
|
|
289
147
|
name: string;
|
|
290
148
|
appearance: string;
|
|
291
|
-
core: "
|
|
149
|
+
core: "x_twitter" | "notion" | "web_search";
|
|
292
150
|
}[] | undefined;
|
|
293
151
|
}>;
|
|
294
152
|
}, "strip", z.ZodTypeAny, {
|
|
295
|
-
locationId: bigint;
|
|
296
153
|
config: {
|
|
297
154
|
name?: string | undefined;
|
|
298
155
|
description?: string | undefined;
|
|
@@ -301,8 +158,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
301
158
|
sequential?: boolean | undefined;
|
|
302
159
|
} | undefined;
|
|
303
160
|
rules?: string[] | undefined;
|
|
304
|
-
thumbnail?: string | undefined;
|
|
305
|
-
environment?: "CHAT" |
|
|
161
|
+
thumbnail?: string | null | undefined;
|
|
162
|
+
environment?: "CHAT" | undefined;
|
|
306
163
|
canvases?: {
|
|
307
164
|
name: string;
|
|
308
165
|
description: string;
|
|
@@ -316,11 +173,11 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
316
173
|
gimmicks?: {
|
|
317
174
|
name: string;
|
|
318
175
|
appearance: string;
|
|
319
|
-
core: "
|
|
176
|
+
core: "x_twitter" | "notion" | "web_search";
|
|
320
177
|
}[] | undefined;
|
|
321
178
|
};
|
|
322
|
-
}, {
|
|
323
179
|
locationId: bigint;
|
|
180
|
+
}, {
|
|
324
181
|
config: {
|
|
325
182
|
name?: string | undefined;
|
|
326
183
|
description?: string | undefined;
|
|
@@ -329,8 +186,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
329
186
|
sequential?: boolean | undefined;
|
|
330
187
|
} | undefined;
|
|
331
188
|
rules?: string[] | undefined;
|
|
332
|
-
thumbnail?: string | undefined;
|
|
333
|
-
environment?: "CHAT" |
|
|
189
|
+
thumbnail?: string | null | undefined;
|
|
190
|
+
environment?: "CHAT" | undefined;
|
|
334
191
|
canvases?: {
|
|
335
192
|
name: string;
|
|
336
193
|
description: string;
|
|
@@ -344,44 +201,152 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
344
201
|
gimmicks?: {
|
|
345
202
|
name: string;
|
|
346
203
|
appearance: string;
|
|
347
|
-
core: "
|
|
204
|
+
core: "x_twitter" | "notion" | "web_search";
|
|
348
205
|
}[] | undefined;
|
|
349
206
|
};
|
|
207
|
+
locationId: bigint;
|
|
350
208
|
}>;
|
|
351
209
|
export type LocationUpdateConfigDto = z.infer<typeof LocationUpdateConfigSchema>;
|
|
352
210
|
export type LocationUpdateConfigResponseDto = Partial<LocationConfig>;
|
|
353
|
-
export declare const
|
|
354
|
-
|
|
211
|
+
export declare const LocationUpdateCredentialSchema: z.ZodObject<{
|
|
212
|
+
locationId: z.ZodBigInt;
|
|
213
|
+
credential: z.ZodUnion<[z.ZodObject<{
|
|
214
|
+
type: z.ZodLiteral<"x_twitter">;
|
|
215
|
+
email: z.ZodString;
|
|
216
|
+
password: z.ZodString;
|
|
217
|
+
username: z.ZodString;
|
|
218
|
+
}, "strip", z.ZodTypeAny, {
|
|
219
|
+
type: "x_twitter";
|
|
220
|
+
email: string;
|
|
221
|
+
password: string;
|
|
222
|
+
username: string;
|
|
223
|
+
}, {
|
|
224
|
+
type: "x_twitter";
|
|
225
|
+
email: string;
|
|
226
|
+
password: string;
|
|
227
|
+
username: string;
|
|
228
|
+
}>, z.ZodObject<{
|
|
229
|
+
type: z.ZodLiteral<"notion">;
|
|
230
|
+
token: z.ZodString;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
type: "notion";
|
|
233
|
+
token: string;
|
|
234
|
+
}, {
|
|
235
|
+
type: "notion";
|
|
236
|
+
token: string;
|
|
237
|
+
}>]>;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
credential: {
|
|
240
|
+
type: "x_twitter";
|
|
241
|
+
email: string;
|
|
242
|
+
password: string;
|
|
243
|
+
username: string;
|
|
244
|
+
} | {
|
|
245
|
+
type: "notion";
|
|
246
|
+
token: string;
|
|
247
|
+
};
|
|
248
|
+
locationId: bigint;
|
|
249
|
+
}, {
|
|
250
|
+
credential: {
|
|
251
|
+
type: "x_twitter";
|
|
252
|
+
email: string;
|
|
253
|
+
password: string;
|
|
254
|
+
username: string;
|
|
255
|
+
} | {
|
|
256
|
+
type: "notion";
|
|
257
|
+
token: string;
|
|
258
|
+
};
|
|
259
|
+
locationId: bigint;
|
|
260
|
+
}>;
|
|
261
|
+
export type LocationUpdateCredentialDto = z.infer<typeof LocationUpdateCredentialSchema>;
|
|
262
|
+
export interface LocationUpdateCredentialResponseDto {
|
|
263
|
+
success: boolean;
|
|
264
|
+
error?: string;
|
|
265
|
+
}
|
|
266
|
+
export declare const LocationDeleteCredentialSchema: z.ZodObject<{
|
|
267
|
+
locationId: z.ZodBigInt;
|
|
268
|
+
credentialType: z.ZodString;
|
|
269
|
+
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
credentialType: string;
|
|
271
|
+
locationId: bigint;
|
|
272
|
+
}, {
|
|
273
|
+
credentialType: string;
|
|
274
|
+
locationId: bigint;
|
|
275
|
+
}>;
|
|
276
|
+
export type LocationDeleteCredentialDto = z.infer<typeof LocationDeleteCredentialSchema>;
|
|
277
|
+
export interface LocationDeleteCredentialResponseDto {
|
|
278
|
+
success: boolean;
|
|
279
|
+
error?: string;
|
|
280
|
+
}
|
|
281
|
+
export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
|
|
282
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
283
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
284
|
+
}, "strip", z.ZodTypeAny, {
|
|
285
|
+
page: number;
|
|
286
|
+
limit: number;
|
|
287
|
+
}, {
|
|
288
|
+
page?: number | undefined;
|
|
289
|
+
limit?: number | undefined;
|
|
290
|
+
}>;
|
|
291
|
+
export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
|
|
292
|
+
export interface LocationPresetsPaginatedResponseDto {
|
|
293
|
+
data: LocationPresetDto[];
|
|
294
|
+
meta: {
|
|
295
|
+
total: number;
|
|
296
|
+
page: number;
|
|
297
|
+
limit: number;
|
|
298
|
+
totalPages: number;
|
|
299
|
+
};
|
|
300
|
+
}
|
|
301
|
+
export declare const CreateLocationSchema: z.ZodObject<{
|
|
302
|
+
name: z.ZodString;
|
|
303
|
+
description: z.ZodString;
|
|
355
304
|
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
356
305
|
readonly API: "API";
|
|
357
306
|
readonly MINIMO: "MINIMO";
|
|
358
307
|
}>>>;
|
|
359
308
|
}, "strip", z.ZodTypeAny, {
|
|
360
|
-
|
|
309
|
+
name: string;
|
|
310
|
+
description: string;
|
|
361
311
|
platform: "API" | "MINIMO";
|
|
362
312
|
}, {
|
|
363
|
-
|
|
313
|
+
name: string;
|
|
314
|
+
description: string;
|
|
364
315
|
platform?: "API" | "MINIMO" | undefined;
|
|
365
316
|
}>;
|
|
366
|
-
export type
|
|
367
|
-
export interface
|
|
317
|
+
export type CreateLocationDto = z.infer<typeof CreateLocationSchema>;
|
|
318
|
+
export interface CreateLocationResponseDto {
|
|
368
319
|
location: LocationPrivateDto;
|
|
369
320
|
}
|
|
370
|
-
export declare const
|
|
371
|
-
|
|
321
|
+
export declare const CreateLocationFromPresetSchema: z.ZodObject<{
|
|
322
|
+
presetId: z.ZodBigInt;
|
|
323
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
324
|
+
readonly API: "API";
|
|
325
|
+
readonly MINIMO: "MINIMO";
|
|
326
|
+
}>>>;
|
|
327
|
+
}, "strip", z.ZodTypeAny, {
|
|
328
|
+
presetId: bigint;
|
|
329
|
+
platform: "API" | "MINIMO";
|
|
330
|
+
}, {
|
|
331
|
+
presetId: bigint;
|
|
332
|
+
platform?: "API" | "MINIMO" | undefined;
|
|
333
|
+
}>;
|
|
334
|
+
export type CreateLocationFromPresetDto = z.infer<typeof CreateLocationFromPresetSchema>;
|
|
335
|
+
export interface CreateLocationFromPresetResponseDto {
|
|
336
|
+
location: LocationPrivateDto;
|
|
337
|
+
}
|
|
338
|
+
export declare const GetHelperLocationQuerySchema: z.ZodObject<{
|
|
372
339
|
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
373
340
|
readonly API: "API";
|
|
374
341
|
readonly MINIMO: "MINIMO";
|
|
375
342
|
}>>>;
|
|
376
343
|
}, "strip", z.ZodTypeAny, {
|
|
377
|
-
locationId: bigint;
|
|
378
344
|
platform: "API" | "MINIMO";
|
|
379
345
|
}, {
|
|
380
|
-
locationId: bigint;
|
|
381
346
|
platform?: "API" | "MINIMO" | undefined;
|
|
382
347
|
}>;
|
|
383
|
-
export type
|
|
384
|
-
export interface
|
|
348
|
+
export type GetHelperLocationDto = z.infer<typeof GetHelperLocationQuerySchema>;
|
|
349
|
+
export interface GetHelperLocationResponseDto {
|
|
385
350
|
location: LocationPrivateDto;
|
|
386
351
|
}
|
|
387
352
|
export declare const GetAgentDmLocationQuerySchema: z.ZodObject<{
|
|
@@ -401,6 +366,176 @@ export type GetAgentDmLocationDto = z.infer<typeof GetAgentDmLocationQuerySchema
|
|
|
401
366
|
export interface GetAgentDmLocationResponseDto {
|
|
402
367
|
location: LocationPrivateDto;
|
|
403
368
|
}
|
|
369
|
+
export declare const GetLocationParamsSchema: z.ZodObject<{
|
|
370
|
+
locationId: z.ZodBigInt;
|
|
371
|
+
}, "strip", z.ZodTypeAny, {
|
|
372
|
+
locationId: bigint;
|
|
373
|
+
}, {
|
|
374
|
+
locationId: bigint;
|
|
375
|
+
}>;
|
|
376
|
+
export type GetLocationParamsDto = z.infer<typeof GetLocationParamsSchema>;
|
|
377
|
+
export interface GetLocationResponseDto {
|
|
378
|
+
location: LocationListItemDto;
|
|
379
|
+
}
|
|
380
|
+
export declare const GetLocationPrivateParamsSchema: z.ZodObject<{
|
|
381
|
+
locationId: z.ZodBigInt;
|
|
382
|
+
}, "strip", z.ZodTypeAny, {
|
|
383
|
+
locationId: bigint;
|
|
384
|
+
}, {
|
|
385
|
+
locationId: bigint;
|
|
386
|
+
}>;
|
|
387
|
+
export type GetLocationPrivateParamsDto = z.infer<typeof GetLocationPrivateParamsSchema>;
|
|
388
|
+
export interface GetLocationPrivateResponseDto {
|
|
389
|
+
location: LocationPrivateDto;
|
|
390
|
+
}
|
|
391
|
+
export declare const GetLocationCostParamsSchema: z.ZodObject<{
|
|
392
|
+
locationId: z.ZodBigInt;
|
|
393
|
+
}, "strip", z.ZodTypeAny, {
|
|
394
|
+
locationId: bigint;
|
|
395
|
+
}, {
|
|
396
|
+
locationId: bigint;
|
|
397
|
+
}>;
|
|
398
|
+
export type GetLocationCostParamsDto = z.infer<typeof GetLocationCostParamsSchema>;
|
|
399
|
+
export interface GetLocationCostResponseDto {
|
|
400
|
+
cost: LocationCostDto;
|
|
401
|
+
}
|
|
402
|
+
export declare const UploadLocationThumbnailParamsSchema: z.ZodObject<{
|
|
403
|
+
locationId: z.ZodBigInt;
|
|
404
|
+
}, "strip", z.ZodTypeAny, {
|
|
405
|
+
locationId: bigint;
|
|
406
|
+
}, {
|
|
407
|
+
locationId: bigint;
|
|
408
|
+
}>;
|
|
409
|
+
export type UploadLocationThumbnailParamsDto = z.infer<typeof UploadLocationThumbnailParamsSchema>;
|
|
410
|
+
export interface UploadLocationThumbnailResponseDto {
|
|
411
|
+
thumbnailUrl: string;
|
|
412
|
+
}
|
|
413
|
+
export declare const DeleteLocationParamsSchema: z.ZodObject<{
|
|
414
|
+
locationId: z.ZodBigInt;
|
|
415
|
+
}, "strip", z.ZodTypeAny, {
|
|
416
|
+
locationId: bigint;
|
|
417
|
+
}, {
|
|
418
|
+
locationId: bigint;
|
|
419
|
+
}>;
|
|
420
|
+
export type DeleteLocationParamsDto = z.infer<typeof DeleteLocationParamsSchema>;
|
|
421
|
+
export interface DeleteLocationResponseDto {
|
|
422
|
+
success: boolean;
|
|
423
|
+
error?: string;
|
|
424
|
+
}
|
|
425
|
+
export declare const GetLocationContentParamsSchema: z.ZodObject<{
|
|
426
|
+
locationId: z.ZodBigInt;
|
|
427
|
+
}, "strip", z.ZodTypeAny, {
|
|
428
|
+
locationId: bigint;
|
|
429
|
+
}, {
|
|
430
|
+
locationId: bigint;
|
|
431
|
+
}>;
|
|
432
|
+
export type GetLocationContentParamsDto = z.infer<typeof GetLocationContentParamsSchema>;
|
|
433
|
+
export interface GetLocationContentResponseDto {
|
|
434
|
+
content: LocationContentDto;
|
|
435
|
+
}
|
|
436
|
+
export declare const CreateLocationSnapshotParamsSchema: z.ZodObject<{
|
|
437
|
+
locationId: z.ZodBigInt;
|
|
438
|
+
}, "strip", z.ZodTypeAny, {
|
|
439
|
+
locationId: bigint;
|
|
440
|
+
}, {
|
|
441
|
+
locationId: bigint;
|
|
442
|
+
}>;
|
|
443
|
+
export type CreateLocationSnapshotParamsDto = z.infer<typeof CreateLocationSnapshotParamsSchema>;
|
|
444
|
+
export interface CreateLocationSnapshotResponseDto {
|
|
445
|
+
snapshotKey: string;
|
|
446
|
+
}
|
|
447
|
+
export declare const GetLocationSnapshotParamsSchema: z.ZodObject<{
|
|
448
|
+
snapshotKey: z.ZodString;
|
|
449
|
+
}, "strip", z.ZodTypeAny, {
|
|
450
|
+
snapshotKey: string;
|
|
451
|
+
}, {
|
|
452
|
+
snapshotKey: string;
|
|
453
|
+
}>;
|
|
454
|
+
export type GetLocationSnapshotParamsDto = z.infer<typeof GetLocationSnapshotParamsSchema>;
|
|
455
|
+
export interface GetLocationSnapshotResponseDto {
|
|
456
|
+
snapshot: LocationSnapshotDto;
|
|
457
|
+
}
|
|
458
|
+
export declare const MarkLocationAsReadParamsSchema: z.ZodObject<{
|
|
459
|
+
locationId: z.ZodBigInt;
|
|
460
|
+
}, "strip", z.ZodTypeAny, {
|
|
461
|
+
locationId: bigint;
|
|
462
|
+
}, {
|
|
463
|
+
locationId: bigint;
|
|
464
|
+
}>;
|
|
465
|
+
export type MarkLocationAsReadParamsDto = z.infer<typeof MarkLocationAsReadParamsSchema>;
|
|
466
|
+
export declare const LocationUnreadCountParamsSchema: z.ZodObject<{
|
|
467
|
+
locationId: z.ZodBigInt;
|
|
468
|
+
}, "strip", z.ZodTypeAny, {
|
|
469
|
+
locationId: bigint;
|
|
470
|
+
}, {
|
|
471
|
+
locationId: bigint;
|
|
472
|
+
}>;
|
|
473
|
+
export type LocationUnreadCountParamsDto = z.infer<typeof LocationUnreadCountParamsSchema>;
|
|
474
|
+
export interface LocationUnreadCountResponseDto {
|
|
475
|
+
unreadCount: number;
|
|
476
|
+
}
|
|
477
|
+
export declare const JoinAgentToLocationParamsSchema: z.ZodObject<{
|
|
478
|
+
locationId: z.ZodBigInt;
|
|
479
|
+
}, "strip", z.ZodTypeAny, {
|
|
480
|
+
locationId: bigint;
|
|
481
|
+
}, {
|
|
482
|
+
locationId: bigint;
|
|
483
|
+
}>;
|
|
484
|
+
export type JoinAgentToLocationParamsDto = z.infer<typeof JoinAgentToLocationParamsSchema>;
|
|
485
|
+
export declare const JoinAgentToLocationBodySchema: z.ZodObject<{
|
|
486
|
+
agentId: z.ZodBigInt;
|
|
487
|
+
}, "strip", z.ZodTypeAny, {
|
|
488
|
+
agentId: bigint;
|
|
489
|
+
}, {
|
|
490
|
+
agentId: bigint;
|
|
491
|
+
}>;
|
|
492
|
+
export type JoinAgentToLocationBodyDto = z.infer<typeof JoinAgentToLocationBodySchema>;
|
|
493
|
+
export interface JoinAgentToLocationResponseDto {
|
|
494
|
+
agentAdded: boolean;
|
|
495
|
+
message?: string;
|
|
496
|
+
}
|
|
497
|
+
export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
|
|
498
|
+
locationId: z.ZodBigInt;
|
|
499
|
+
agentId: z.ZodBigInt;
|
|
500
|
+
}, "strip", z.ZodTypeAny, {
|
|
501
|
+
agentId: bigint;
|
|
502
|
+
locationId: bigint;
|
|
503
|
+
}, {
|
|
504
|
+
agentId: bigint;
|
|
505
|
+
locationId: bigint;
|
|
506
|
+
}>;
|
|
507
|
+
export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
|
|
508
|
+
export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
|
|
509
|
+
locationId: z.ZodBigInt;
|
|
510
|
+
}, "strip", z.ZodTypeAny, {
|
|
511
|
+
locationId: bigint;
|
|
512
|
+
}, {
|
|
513
|
+
locationId: bigint;
|
|
514
|
+
}>;
|
|
515
|
+
export type RemoveAgentFromLocationParamsDto = z.infer<typeof RemoveAgentFromLocationParamsSchema>;
|
|
516
|
+
export declare const RemoveAgentFromLocationBodySchema: z.ZodObject<{
|
|
517
|
+
agentId: z.ZodBigInt;
|
|
518
|
+
}, "strip", z.ZodTypeAny, {
|
|
519
|
+
agentId: bigint;
|
|
520
|
+
}, {
|
|
521
|
+
agentId: bigint;
|
|
522
|
+
}>;
|
|
523
|
+
export type RemoveAgentFromLocationBodyDto = z.infer<typeof RemoveAgentFromLocationBodySchema>;
|
|
524
|
+
export interface RemoveAgentFromLocationResponseDto {
|
|
525
|
+
agentRemoved: boolean;
|
|
526
|
+
message?: string;
|
|
527
|
+
}
|
|
528
|
+
export declare const RemoveAgentFromLocationToolSchema: z.ZodObject<{
|
|
529
|
+
locationId: z.ZodBigInt;
|
|
530
|
+
agentId: z.ZodBigInt;
|
|
531
|
+
}, "strip", z.ZodTypeAny, {
|
|
532
|
+
agentId: bigint;
|
|
533
|
+
locationId: bigint;
|
|
534
|
+
}, {
|
|
535
|
+
agentId: bigint;
|
|
536
|
+
locationId: bigint;
|
|
537
|
+
}>;
|
|
538
|
+
export type RemoveAgentFromLocationToolDto = z.infer<typeof RemoveAgentFromLocationToolSchema>;
|
|
404
539
|
export declare const GetLocationScheduledMessagesParamsSchema: z.ZodObject<{
|
|
405
540
|
locationId: z.ZodBigInt;
|
|
406
541
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -438,6 +573,24 @@ export type CreateLocationScheduledMessageBodyDto = z.infer<typeof CreateLocatio
|
|
|
438
573
|
export interface CreateLocationScheduledMessageResponseDto {
|
|
439
574
|
scheduledMessage: LocationScheduledMessageDto;
|
|
440
575
|
}
|
|
576
|
+
export declare const CreateLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
577
|
+
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
578
|
+
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
579
|
+
} & {
|
|
580
|
+
locationId: z.ZodBigInt;
|
|
581
|
+
message: z.ZodString;
|
|
582
|
+
}, "strip", z.ZodTypeAny, {
|
|
583
|
+
message: string;
|
|
584
|
+
locationId: bigint;
|
|
585
|
+
repeatTimesOfDay: string[];
|
|
586
|
+
repeatDaysOfWeek: DayOfWeek[];
|
|
587
|
+
}, {
|
|
588
|
+
message: string;
|
|
589
|
+
locationId: bigint;
|
|
590
|
+
repeatTimesOfDay: string[];
|
|
591
|
+
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
592
|
+
}>;
|
|
593
|
+
export type CreateLocationScheduledMessageToolDto = z.infer<typeof CreateLocationScheduledMessageToolSchema>;
|
|
441
594
|
export declare const UpdateLocationScheduledMessageParamsSchema: z.ZodObject<{
|
|
442
595
|
locationId: z.ZodBigInt;
|
|
443
596
|
messageId: z.ZodString;
|
|
@@ -467,6 +620,27 @@ export type UpdateLocationScheduledMessageBodyDto = z.infer<typeof UpdateLocatio
|
|
|
467
620
|
export interface UpdateLocationScheduledMessageResponseDto {
|
|
468
621
|
scheduledMessage: LocationScheduledMessageDto;
|
|
469
622
|
}
|
|
623
|
+
export declare const UpdateLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
624
|
+
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
625
|
+
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
626
|
+
} & {
|
|
627
|
+
locationId: z.ZodBigInt;
|
|
628
|
+
messageId: z.ZodString;
|
|
629
|
+
message: z.ZodOptional<z.ZodString>;
|
|
630
|
+
}, "strip", z.ZodTypeAny, {
|
|
631
|
+
locationId: bigint;
|
|
632
|
+
repeatTimesOfDay: string[];
|
|
633
|
+
repeatDaysOfWeek: DayOfWeek[];
|
|
634
|
+
messageId: string;
|
|
635
|
+
message?: string | undefined;
|
|
636
|
+
}, {
|
|
637
|
+
locationId: bigint;
|
|
638
|
+
repeatTimesOfDay: string[];
|
|
639
|
+
messageId: string;
|
|
640
|
+
message?: string | undefined;
|
|
641
|
+
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
642
|
+
}>;
|
|
643
|
+
export type UpdateLocationScheduledMessageToolDto = z.infer<typeof UpdateLocationScheduledMessageToolSchema>;
|
|
470
644
|
export declare const DeleteLocationScheduledMessageParamsSchema: z.ZodObject<{
|
|
471
645
|
locationId: z.ZodBigInt;
|
|
472
646
|
messageId: z.ZodString;
|
|
@@ -481,55 +655,175 @@ export type DeleteLocationScheduledMessageParamsDto = z.infer<typeof DeleteLocat
|
|
|
481
655
|
export interface DeleteLocationScheduledMessageResponseDto {
|
|
482
656
|
deleted: boolean;
|
|
483
657
|
}
|
|
484
|
-
export declare const
|
|
658
|
+
export declare const DeleteLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
485
659
|
locationId: z.ZodBigInt;
|
|
486
|
-
|
|
487
|
-
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
488
|
-
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
489
|
-
} & {
|
|
490
|
-
message: z.ZodString;
|
|
660
|
+
messageId: z.ZodString;
|
|
491
661
|
}, "strip", z.ZodTypeAny, {
|
|
492
|
-
message: string;
|
|
493
662
|
locationId: bigint;
|
|
494
|
-
|
|
495
|
-
repeatDaysOfWeek: DayOfWeek[];
|
|
663
|
+
messageId: string;
|
|
496
664
|
}, {
|
|
497
|
-
message: string;
|
|
498
665
|
locationId: bigint;
|
|
499
|
-
|
|
500
|
-
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
666
|
+
messageId: string;
|
|
501
667
|
}>;
|
|
502
|
-
export type
|
|
503
|
-
export declare const
|
|
668
|
+
export type DeleteLocationScheduledMessageToolDto = z.infer<typeof DeleteLocationScheduledMessageToolSchema>;
|
|
669
|
+
export declare const JoinLocationSchema: z.ZodObject<{
|
|
670
|
+
locationId: z.ZodBigInt;
|
|
671
|
+
}, "strip", z.ZodTypeAny, {
|
|
672
|
+
locationId: bigint;
|
|
673
|
+
}, {
|
|
674
|
+
locationId: bigint;
|
|
675
|
+
}>;
|
|
676
|
+
export type JoinLocationDto = z.infer<typeof JoinLocationSchema>;
|
|
677
|
+
export interface JoinLocationResponseDto {
|
|
678
|
+
joined: boolean;
|
|
679
|
+
}
|
|
680
|
+
export declare const LeaveLocationSchema: z.ZodObject<{
|
|
681
|
+
locationId: z.ZodBigInt;
|
|
682
|
+
}, "strip", z.ZodTypeAny, {
|
|
683
|
+
locationId: bigint;
|
|
684
|
+
}, {
|
|
685
|
+
locationId: bigint;
|
|
686
|
+
}>;
|
|
687
|
+
export type LeaveLocationDto = z.infer<typeof LeaveLocationSchema>;
|
|
688
|
+
export interface LeaveLocationResponseDto {
|
|
689
|
+
left: boolean;
|
|
690
|
+
}
|
|
691
|
+
export declare const SubscribeLocationSchema: z.ZodObject<{
|
|
692
|
+
locationId: z.ZodBigInt;
|
|
693
|
+
}, "strip", z.ZodTypeAny, {
|
|
694
|
+
locationId: bigint;
|
|
695
|
+
}, {
|
|
696
|
+
locationId: bigint;
|
|
697
|
+
}>;
|
|
698
|
+
export type SubscribeLocationDto = z.infer<typeof SubscribeLocationSchema>;
|
|
699
|
+
export interface SubscribeLocationResponseDto {
|
|
700
|
+
subscribed: boolean;
|
|
701
|
+
}
|
|
702
|
+
export declare const UnsubscribeLocationSchema: z.ZodObject<{
|
|
703
|
+
locationId: z.ZodBigInt;
|
|
704
|
+
}, "strip", z.ZodTypeAny, {
|
|
705
|
+
locationId: bigint;
|
|
706
|
+
}, {
|
|
707
|
+
locationId: bigint;
|
|
708
|
+
}>;
|
|
709
|
+
export type UnsubscribeLocationDto = z.infer<typeof UnsubscribeLocationSchema>;
|
|
710
|
+
export interface UnsubscribeLocationResponseDto {
|
|
711
|
+
unsubscribed: boolean;
|
|
712
|
+
}
|
|
713
|
+
export declare const GetLocationMessagesSchema: z.ZodObject<{
|
|
714
|
+
locationId: z.ZodBigInt;
|
|
715
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
716
|
+
}, "strip", z.ZodTypeAny, {
|
|
717
|
+
locationId: bigint;
|
|
718
|
+
cursor?: string | undefined;
|
|
719
|
+
}, {
|
|
720
|
+
locationId: bigint;
|
|
721
|
+
cursor?: string | undefined;
|
|
722
|
+
}>;
|
|
723
|
+
export type GetLocationMessagesDto = z.infer<typeof GetLocationMessagesSchema>;
|
|
724
|
+
export interface LocationMessagesResponseDto {
|
|
725
|
+
messages: LocationMessageDto[];
|
|
726
|
+
nextCursor?: string;
|
|
727
|
+
}
|
|
728
|
+
export declare const SendLocationMessageSchema: z.ZodObject<{
|
|
504
729
|
locationId: z.ZodBigInt;
|
|
505
|
-
} & {
|
|
506
|
-
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
507
|
-
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
508
|
-
} & {
|
|
509
|
-
messageId: z.ZodString;
|
|
510
730
|
message: z.ZodOptional<z.ZodString>;
|
|
731
|
+
action: z.ZodOptional<z.ZodString>;
|
|
511
732
|
}, "strip", z.ZodTypeAny, {
|
|
512
733
|
locationId: bigint;
|
|
513
|
-
repeatTimesOfDay: string[];
|
|
514
|
-
repeatDaysOfWeek: DayOfWeek[];
|
|
515
|
-
messageId: string;
|
|
516
734
|
message?: string | undefined;
|
|
735
|
+
action?: string | undefined;
|
|
517
736
|
}, {
|
|
518
737
|
locationId: bigint;
|
|
519
|
-
repeatTimesOfDay: string[];
|
|
520
|
-
messageId: string;
|
|
521
738
|
message?: string | undefined;
|
|
522
|
-
|
|
739
|
+
action?: string | undefined;
|
|
523
740
|
}>;
|
|
524
|
-
export type
|
|
525
|
-
export
|
|
741
|
+
export type SendLocationMessageDto = z.infer<typeof SendLocationMessageSchema>;
|
|
742
|
+
export interface SendMessageResponseDto {
|
|
743
|
+
}
|
|
744
|
+
export declare const SendSystemMessageSchema: z.ZodObject<{
|
|
526
745
|
locationId: z.ZodBigInt;
|
|
527
|
-
|
|
746
|
+
message: z.ZodString;
|
|
747
|
+
resumeUpdate: z.ZodOptional<z.ZodBoolean>;
|
|
528
748
|
}, "strip", z.ZodTypeAny, {
|
|
749
|
+
message: string;
|
|
529
750
|
locationId: bigint;
|
|
530
|
-
|
|
751
|
+
resumeUpdate?: boolean | undefined;
|
|
531
752
|
}, {
|
|
753
|
+
message: string;
|
|
532
754
|
locationId: bigint;
|
|
533
|
-
|
|
755
|
+
resumeUpdate?: boolean | undefined;
|
|
534
756
|
}>;
|
|
535
|
-
export type
|
|
757
|
+
export type SendSystemMessageDto = z.infer<typeof SendSystemMessageSchema>;
|
|
758
|
+
export interface SendSystemMessageResponseDto {
|
|
759
|
+
}
|
|
760
|
+
export declare const UpdateLocationImageSchema: z.ZodObject<{
|
|
761
|
+
locationId: z.ZodBigInt;
|
|
762
|
+
image: z.ZodString;
|
|
763
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
764
|
+
}, "strip", z.ZodTypeAny, {
|
|
765
|
+
image: string;
|
|
766
|
+
locationId: bigint;
|
|
767
|
+
index?: number | undefined;
|
|
768
|
+
}, {
|
|
769
|
+
image: string;
|
|
770
|
+
locationId: bigint;
|
|
771
|
+
index?: number | undefined;
|
|
772
|
+
}>;
|
|
773
|
+
export type UpdateLocationImageDto = z.infer<typeof UpdateLocationImageSchema>;
|
|
774
|
+
export interface UpdateLocationImageResponseDto {
|
|
775
|
+
imageUrl?: string;
|
|
776
|
+
}
|
|
777
|
+
export declare const UpdateLocationRenderingSchema: z.ZodObject<{
|
|
778
|
+
locationId: z.ZodBigInt;
|
|
779
|
+
rendering: z.ZodNullable<z.ZodString>;
|
|
780
|
+
}, "strip", z.ZodTypeAny, {
|
|
781
|
+
locationId: bigint;
|
|
782
|
+
rendering: string | null;
|
|
783
|
+
}, {
|
|
784
|
+
locationId: bigint;
|
|
785
|
+
rendering: string | null;
|
|
786
|
+
}>;
|
|
787
|
+
export type UpdateLocationRenderingDto = z.infer<typeof UpdateLocationRenderingSchema>;
|
|
788
|
+
export interface UpdateLocationRenderingResponseDto {
|
|
789
|
+
}
|
|
790
|
+
export declare const UpdateLocationAgentIsActiveSchema: z.ZodObject<{
|
|
791
|
+
locationId: z.ZodBigInt;
|
|
792
|
+
agentId: z.ZodBigInt;
|
|
793
|
+
isActive: z.ZodBoolean;
|
|
794
|
+
}, "strip", z.ZodTypeAny, {
|
|
795
|
+
agentId: bigint;
|
|
796
|
+
locationId: bigint;
|
|
797
|
+
isActive: boolean;
|
|
798
|
+
}, {
|
|
799
|
+
agentId: bigint;
|
|
800
|
+
locationId: bigint;
|
|
801
|
+
isActive: boolean;
|
|
802
|
+
}>;
|
|
803
|
+
export type UpdateLocationAgentIsActiveDto = z.infer<typeof UpdateLocationAgentIsActiveSchema>;
|
|
804
|
+
export interface UpdateLocationAgentIsActiveResponseDto {
|
|
805
|
+
}
|
|
806
|
+
export declare const PauseLocationUpdateSchema: z.ZodObject<{
|
|
807
|
+
locationId: z.ZodBigInt;
|
|
808
|
+
}, "strip", z.ZodTypeAny, {
|
|
809
|
+
locationId: bigint;
|
|
810
|
+
}, {
|
|
811
|
+
locationId: bigint;
|
|
812
|
+
}>;
|
|
813
|
+
export type PauseLocationUpdateDto = z.infer<typeof PauseLocationUpdateSchema>;
|
|
814
|
+
export interface PauseLocationUpdateResponseDto {
|
|
815
|
+
}
|
|
816
|
+
export declare const ResumeLocationUpdateSchema: z.ZodObject<{
|
|
817
|
+
locationId: z.ZodBigInt;
|
|
818
|
+
delayMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
819
|
+
}, "strip", z.ZodTypeAny, {
|
|
820
|
+
locationId: bigint;
|
|
821
|
+
delayMs: number;
|
|
822
|
+
}, {
|
|
823
|
+
locationId: bigint;
|
|
824
|
+
delayMs?: number | undefined;
|
|
825
|
+
}>;
|
|
826
|
+
export type ResumeLocationUpdateDto = z.infer<typeof ResumeLocationUpdateSchema>;
|
|
827
|
+
export interface ResumeLocationUpdateResponseDto {
|
|
828
|
+
resumeAt: string;
|
|
829
|
+
}
|