@little-samo/samo-ai-sdk 0.1.3 → 0.1.4-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 +8 -0
- package/dist/dto/entities/agents/agent.requests.d.ts +197 -8
- package/dist/dto/entities/agents/agent.requests.js +34 -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 +760 -269
- 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 +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>;
|
|
@@ -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: "web_search" | "x_twitter";
|
|
95
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
238
96
|
}, {
|
|
239
97
|
name: string;
|
|
240
98
|
appearance: string;
|
|
241
|
-
core: "web_search" | "x_twitter";
|
|
99
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
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: "web_search" | "x_twitter";
|
|
124
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
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,7 +146,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
288
146
|
gimmicks?: {
|
|
289
147
|
name: string;
|
|
290
148
|
appearance: string;
|
|
291
|
-
core: "web_search" | "x_twitter";
|
|
149
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
292
150
|
}[] | undefined;
|
|
293
151
|
}>;
|
|
294
152
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -301,8 +159,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
301
159
|
sequential?: boolean | undefined;
|
|
302
160
|
} | undefined;
|
|
303
161
|
rules?: string[] | undefined;
|
|
304
|
-
thumbnail?: string | undefined;
|
|
305
|
-
environment?: "CHAT" |
|
|
162
|
+
thumbnail?: string | null | undefined;
|
|
163
|
+
environment?: "CHAT" | undefined;
|
|
306
164
|
canvases?: {
|
|
307
165
|
name: string;
|
|
308
166
|
description: string;
|
|
@@ -316,7 +174,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
316
174
|
gimmicks?: {
|
|
317
175
|
name: string;
|
|
318
176
|
appearance: string;
|
|
319
|
-
core: "web_search" | "x_twitter";
|
|
177
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
320
178
|
}[] | undefined;
|
|
321
179
|
};
|
|
322
180
|
}, {
|
|
@@ -329,8 +187,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
329
187
|
sequential?: boolean | undefined;
|
|
330
188
|
} | undefined;
|
|
331
189
|
rules?: string[] | undefined;
|
|
332
|
-
thumbnail?: string | undefined;
|
|
333
|
-
environment?: "CHAT" |
|
|
190
|
+
thumbnail?: string | null | undefined;
|
|
191
|
+
environment?: "CHAT" | undefined;
|
|
334
192
|
canvases?: {
|
|
335
193
|
name: string;
|
|
336
194
|
description: string;
|
|
@@ -344,149 +202,576 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
344
202
|
gimmicks?: {
|
|
345
203
|
name: string;
|
|
346
204
|
appearance: string;
|
|
347
|
-
core: "web_search" | "x_twitter";
|
|
205
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
348
206
|
}[] | undefined;
|
|
349
207
|
};
|
|
350
208
|
}>;
|
|
351
209
|
export type LocationUpdateConfigDto = z.infer<typeof LocationUpdateConfigSchema>;
|
|
352
210
|
export type LocationUpdateConfigResponseDto = Partial<LocationConfig>;
|
|
353
|
-
export declare const
|
|
354
|
-
agentId: z.ZodBigInt;
|
|
355
|
-
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
356
|
-
readonly API: "API";
|
|
357
|
-
readonly MINIMO: "MINIMO";
|
|
358
|
-
}>>>;
|
|
359
|
-
}, "strip", z.ZodTypeAny, {
|
|
360
|
-
agentId: bigint;
|
|
361
|
-
platform: "API" | "MINIMO";
|
|
362
|
-
}, {
|
|
363
|
-
agentId: bigint;
|
|
364
|
-
platform?: "API" | "MINIMO" | undefined;
|
|
365
|
-
}>;
|
|
366
|
-
export type GetAgentHelperLocationDto = z.infer<typeof GetAgentHelperLocationQuerySchema>;
|
|
367
|
-
export interface GetAgentHelperLocationResponseDto {
|
|
368
|
-
location: LocationPrivateDto;
|
|
369
|
-
}
|
|
370
|
-
export declare const GetLocationHelperLocationQuerySchema: z.ZodObject<{
|
|
211
|
+
export declare const LocationUpdateCredentialSchema: z.ZodObject<{
|
|
371
212
|
locationId: z.ZodBigInt;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
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
|
+
}>]>;
|
|
376
238
|
}, "strip", z.ZodTypeAny, {
|
|
377
239
|
locationId: bigint;
|
|
378
|
-
|
|
240
|
+
credential: {
|
|
241
|
+
type: "x_twitter";
|
|
242
|
+
email: string;
|
|
243
|
+
password: string;
|
|
244
|
+
username: string;
|
|
245
|
+
} | {
|
|
246
|
+
type: "notion";
|
|
247
|
+
token: string;
|
|
248
|
+
};
|
|
379
249
|
}, {
|
|
380
250
|
locationId: bigint;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
readonly API: "API";
|
|
391
|
-
readonly MINIMO: "MINIMO";
|
|
392
|
-
}>>>;
|
|
393
|
-
}, "strip", z.ZodTypeAny, {
|
|
394
|
-
agentId: bigint;
|
|
395
|
-
platform: "API" | "MINIMO";
|
|
396
|
-
}, {
|
|
397
|
-
agentId: bigint;
|
|
398
|
-
platform?: "API" | "MINIMO" | undefined;
|
|
251
|
+
credential: {
|
|
252
|
+
type: "x_twitter";
|
|
253
|
+
email: string;
|
|
254
|
+
password: string;
|
|
255
|
+
username: string;
|
|
256
|
+
} | {
|
|
257
|
+
type: "notion";
|
|
258
|
+
token: string;
|
|
259
|
+
};
|
|
399
260
|
}>;
|
|
400
|
-
export type
|
|
401
|
-
export interface
|
|
402
|
-
|
|
261
|
+
export type LocationUpdateCredentialDto = z.infer<typeof LocationUpdateCredentialSchema>;
|
|
262
|
+
export interface LocationUpdateCredentialResponseDto {
|
|
263
|
+
success: boolean;
|
|
264
|
+
error?: string;
|
|
403
265
|
}
|
|
404
|
-
export declare const
|
|
266
|
+
export declare const LocationDeleteCredentialSchema: z.ZodObject<{
|
|
405
267
|
locationId: z.ZodBigInt;
|
|
268
|
+
credentialType: z.ZodString;
|
|
406
269
|
}, "strip", z.ZodTypeAny, {
|
|
407
270
|
locationId: bigint;
|
|
271
|
+
credentialType: string;
|
|
408
272
|
}, {
|
|
409
273
|
locationId: bigint;
|
|
274
|
+
credentialType: string;
|
|
410
275
|
}>;
|
|
411
|
-
export type
|
|
412
|
-
export interface
|
|
413
|
-
|
|
276
|
+
export type LocationDeleteCredentialDto = z.infer<typeof LocationDeleteCredentialSchema>;
|
|
277
|
+
export interface LocationDeleteCredentialResponseDto {
|
|
278
|
+
success: boolean;
|
|
279
|
+
error?: string;
|
|
414
280
|
}
|
|
415
|
-
export declare const
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
locationId: bigint;
|
|
419
|
-
}, {
|
|
420
|
-
locationId: bigint;
|
|
421
|
-
}>;
|
|
422
|
-
export type CreateLocationScheduledMessageParamsDto = z.infer<typeof CreateLocationScheduledMessageParamsSchema>;
|
|
423
|
-
export declare const CreateLocationScheduledMessageBodySchema: z.ZodObject<{
|
|
424
|
-
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
425
|
-
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
426
|
-
} & {
|
|
427
|
-
message: z.ZodString;
|
|
281
|
+
export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
|
|
282
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
283
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
428
284
|
}, "strip", z.ZodTypeAny, {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
repeatDaysOfWeek: DayOfWeek[];
|
|
285
|
+
limit: number;
|
|
286
|
+
page: number;
|
|
432
287
|
}, {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
288
|
+
limit?: number | undefined;
|
|
289
|
+
page?: number | undefined;
|
|
436
290
|
}>;
|
|
437
|
-
export type
|
|
438
|
-
export interface
|
|
439
|
-
|
|
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
|
+
};
|
|
440
300
|
}
|
|
441
|
-
export declare const
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
301
|
+
export declare const CreateLocationSchema: z.ZodObject<{
|
|
302
|
+
config: z.ZodObject<{
|
|
303
|
+
name: z.ZodOptional<z.ZodString>;
|
|
304
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
305
|
+
environment: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"CHAT">]>>;
|
|
306
|
+
core: z.ZodOptional<z.ZodObject<{
|
|
307
|
+
name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">]>;
|
|
308
|
+
sequential: z.ZodOptional<z.ZodBoolean>;
|
|
309
|
+
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
name: "round_robin" | "update_forever" | "update_once";
|
|
311
|
+
sequential?: boolean | undefined;
|
|
312
|
+
}, {
|
|
313
|
+
name: "round_robin" | "update_forever" | "update_once";
|
|
314
|
+
sequential?: boolean | undefined;
|
|
315
|
+
}>>;
|
|
316
|
+
description: z.ZodOptional<z.ZodString>;
|
|
317
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
318
|
+
canvases: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
319
|
+
name: z.ZodString;
|
|
320
|
+
description: z.ZodString;
|
|
321
|
+
maxLength: z.ZodNumber;
|
|
322
|
+
}, "strip", z.ZodTypeAny, {
|
|
323
|
+
name: string;
|
|
324
|
+
description: string;
|
|
325
|
+
maxLength: number;
|
|
326
|
+
}, {
|
|
327
|
+
name: string;
|
|
328
|
+
description: string;
|
|
329
|
+
maxLength: number;
|
|
330
|
+
}>, "many">>;
|
|
331
|
+
agentCanvases: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
332
|
+
name: z.ZodString;
|
|
333
|
+
description: z.ZodString;
|
|
334
|
+
maxLength: z.ZodNumber;
|
|
335
|
+
}, "strip", z.ZodTypeAny, {
|
|
336
|
+
name: string;
|
|
337
|
+
description: string;
|
|
338
|
+
maxLength: number;
|
|
339
|
+
}, {
|
|
340
|
+
name: string;
|
|
341
|
+
description: string;
|
|
342
|
+
maxLength: number;
|
|
343
|
+
}>, "many">>;
|
|
344
|
+
gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
345
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">, z.ZodLiteral<"notion">]>;
|
|
346
|
+
name: z.ZodString;
|
|
347
|
+
appearance: z.ZodString;
|
|
348
|
+
}, "strip", z.ZodTypeAny, {
|
|
349
|
+
name: string;
|
|
350
|
+
appearance: string;
|
|
351
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
352
|
+
}, {
|
|
353
|
+
name: string;
|
|
354
|
+
appearance: string;
|
|
355
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
356
|
+
}>, "many">>;
|
|
357
|
+
}, "strict", z.ZodTypeAny, {
|
|
358
|
+
name?: string | undefined;
|
|
359
|
+
description?: string | undefined;
|
|
360
|
+
core?: {
|
|
361
|
+
name: "round_robin" | "update_forever" | "update_once";
|
|
362
|
+
sequential?: boolean | undefined;
|
|
363
|
+
} | undefined;
|
|
364
|
+
rules?: string[] | undefined;
|
|
365
|
+
thumbnail?: string | null | undefined;
|
|
366
|
+
environment?: "CHAT" | undefined;
|
|
367
|
+
canvases?: {
|
|
368
|
+
name: string;
|
|
369
|
+
description: string;
|
|
370
|
+
maxLength: number;
|
|
371
|
+
}[] | undefined;
|
|
372
|
+
agentCanvases?: {
|
|
373
|
+
name: string;
|
|
374
|
+
description: string;
|
|
375
|
+
maxLength: number;
|
|
376
|
+
}[] | undefined;
|
|
377
|
+
gimmicks?: {
|
|
378
|
+
name: string;
|
|
379
|
+
appearance: string;
|
|
380
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
381
|
+
}[] | undefined;
|
|
382
|
+
}, {
|
|
383
|
+
name?: string | undefined;
|
|
384
|
+
description?: string | undefined;
|
|
385
|
+
core?: {
|
|
386
|
+
name: "round_robin" | "update_forever" | "update_once";
|
|
387
|
+
sequential?: boolean | undefined;
|
|
388
|
+
} | undefined;
|
|
389
|
+
rules?: string[] | undefined;
|
|
390
|
+
thumbnail?: string | null | undefined;
|
|
391
|
+
environment?: "CHAT" | undefined;
|
|
392
|
+
canvases?: {
|
|
393
|
+
name: string;
|
|
394
|
+
description: string;
|
|
395
|
+
maxLength: number;
|
|
396
|
+
}[] | undefined;
|
|
397
|
+
agentCanvases?: {
|
|
398
|
+
name: string;
|
|
399
|
+
description: string;
|
|
400
|
+
maxLength: number;
|
|
401
|
+
}[] | undefined;
|
|
402
|
+
gimmicks?: {
|
|
403
|
+
name: string;
|
|
404
|
+
appearance: string;
|
|
405
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
406
|
+
}[] | undefined;
|
|
407
|
+
}>;
|
|
408
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
409
|
+
readonly API: "API";
|
|
410
|
+
readonly MINIMO: "MINIMO";
|
|
411
|
+
}>>>;
|
|
412
|
+
}, "strip", z.ZodTypeAny, {
|
|
413
|
+
config: {
|
|
414
|
+
name?: string | undefined;
|
|
415
|
+
description?: string | undefined;
|
|
416
|
+
core?: {
|
|
417
|
+
name: "round_robin" | "update_forever" | "update_once";
|
|
418
|
+
sequential?: boolean | undefined;
|
|
419
|
+
} | undefined;
|
|
420
|
+
rules?: string[] | undefined;
|
|
421
|
+
thumbnail?: string | null | undefined;
|
|
422
|
+
environment?: "CHAT" | undefined;
|
|
423
|
+
canvases?: {
|
|
424
|
+
name: string;
|
|
425
|
+
description: string;
|
|
426
|
+
maxLength: number;
|
|
427
|
+
}[] | undefined;
|
|
428
|
+
agentCanvases?: {
|
|
429
|
+
name: string;
|
|
430
|
+
description: string;
|
|
431
|
+
maxLength: number;
|
|
432
|
+
}[] | undefined;
|
|
433
|
+
gimmicks?: {
|
|
434
|
+
name: string;
|
|
435
|
+
appearance: string;
|
|
436
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
437
|
+
}[] | undefined;
|
|
438
|
+
};
|
|
439
|
+
platform: "API" | "MINIMO";
|
|
440
|
+
}, {
|
|
441
|
+
config: {
|
|
442
|
+
name?: string | undefined;
|
|
443
|
+
description?: string | undefined;
|
|
444
|
+
core?: {
|
|
445
|
+
name: "round_robin" | "update_forever" | "update_once";
|
|
446
|
+
sequential?: boolean | undefined;
|
|
447
|
+
} | undefined;
|
|
448
|
+
rules?: string[] | undefined;
|
|
449
|
+
thumbnail?: string | null | undefined;
|
|
450
|
+
environment?: "CHAT" | undefined;
|
|
451
|
+
canvases?: {
|
|
452
|
+
name: string;
|
|
453
|
+
description: string;
|
|
454
|
+
maxLength: number;
|
|
455
|
+
}[] | undefined;
|
|
456
|
+
agentCanvases?: {
|
|
457
|
+
name: string;
|
|
458
|
+
description: string;
|
|
459
|
+
maxLength: number;
|
|
460
|
+
}[] | undefined;
|
|
461
|
+
gimmicks?: {
|
|
462
|
+
name: string;
|
|
463
|
+
appearance: string;
|
|
464
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
465
|
+
}[] | undefined;
|
|
466
|
+
};
|
|
467
|
+
platform?: "API" | "MINIMO" | undefined;
|
|
468
|
+
}>;
|
|
469
|
+
export type CreateLocationDto = z.infer<typeof CreateLocationSchema>;
|
|
470
|
+
export interface CreateLocationResponseDto {
|
|
471
|
+
location: LocationPrivateDto;
|
|
472
|
+
}
|
|
473
|
+
export declare const CreateLocationFromPresetSchema: z.ZodObject<{
|
|
474
|
+
presetId: z.ZodBigInt;
|
|
475
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
476
|
+
readonly API: "API";
|
|
477
|
+
readonly MINIMO: "MINIMO";
|
|
478
|
+
}>>>;
|
|
479
|
+
}, "strip", z.ZodTypeAny, {
|
|
480
|
+
platform: "API" | "MINIMO";
|
|
481
|
+
presetId: bigint;
|
|
482
|
+
}, {
|
|
483
|
+
presetId: bigint;
|
|
484
|
+
platform?: "API" | "MINIMO" | undefined;
|
|
485
|
+
}>;
|
|
486
|
+
export type CreateLocationFromPresetDto = z.infer<typeof CreateLocationFromPresetSchema>;
|
|
487
|
+
export interface CreateLocationFromPresetResponseDto {
|
|
488
|
+
location: LocationPrivateDto;
|
|
489
|
+
}
|
|
490
|
+
export declare const GetHelperLocationQuerySchema: z.ZodObject<{
|
|
491
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
492
|
+
readonly API: "API";
|
|
493
|
+
readonly MINIMO: "MINIMO";
|
|
494
|
+
}>>>;
|
|
495
|
+
}, "strip", z.ZodTypeAny, {
|
|
496
|
+
platform: "API" | "MINIMO";
|
|
497
|
+
}, {
|
|
498
|
+
platform?: "API" | "MINIMO" | undefined;
|
|
499
|
+
}>;
|
|
500
|
+
export type GetHelperLocationDto = z.infer<typeof GetHelperLocationQuerySchema>;
|
|
501
|
+
export interface GetHelperLocationResponseDto {
|
|
502
|
+
location: LocationPrivateDto;
|
|
503
|
+
}
|
|
504
|
+
export declare const GetAgentHelperLocationQuerySchema: z.ZodObject<{
|
|
505
|
+
agentId: z.ZodBigInt;
|
|
506
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
507
|
+
readonly API: "API";
|
|
508
|
+
readonly MINIMO: "MINIMO";
|
|
509
|
+
}>>>;
|
|
510
|
+
}, "strip", z.ZodTypeAny, {
|
|
511
|
+
platform: "API" | "MINIMO";
|
|
512
|
+
agentId: bigint;
|
|
513
|
+
}, {
|
|
514
|
+
agentId: bigint;
|
|
515
|
+
platform?: "API" | "MINIMO" | undefined;
|
|
516
|
+
}>;
|
|
517
|
+
export type GetAgentHelperLocationDto = z.infer<typeof GetAgentHelperLocationQuerySchema>;
|
|
518
|
+
export interface GetAgentHelperLocationResponseDto {
|
|
519
|
+
location: LocationPrivateDto;
|
|
520
|
+
}
|
|
521
|
+
export declare const GetLocationHelperLocationQuerySchema: z.ZodObject<{
|
|
522
|
+
locationId: z.ZodBigInt;
|
|
523
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
524
|
+
readonly API: "API";
|
|
525
|
+
readonly MINIMO: "MINIMO";
|
|
526
|
+
}>>>;
|
|
527
|
+
}, "strip", z.ZodTypeAny, {
|
|
528
|
+
locationId: bigint;
|
|
529
|
+
platform: "API" | "MINIMO";
|
|
530
|
+
}, {
|
|
531
|
+
locationId: bigint;
|
|
532
|
+
platform?: "API" | "MINIMO" | undefined;
|
|
533
|
+
}>;
|
|
534
|
+
export type GetLocationHelperLocationDto = z.infer<typeof GetLocationHelperLocationQuerySchema>;
|
|
535
|
+
export interface GetLocationHelperLocationResponseDto {
|
|
536
|
+
location: LocationPrivateDto;
|
|
537
|
+
}
|
|
538
|
+
export declare const GetAgentDmLocationQuerySchema: z.ZodObject<{
|
|
539
|
+
agentId: z.ZodBigInt;
|
|
540
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
541
|
+
readonly API: "API";
|
|
542
|
+
readonly MINIMO: "MINIMO";
|
|
543
|
+
}>>>;
|
|
544
|
+
}, "strip", z.ZodTypeAny, {
|
|
545
|
+
platform: "API" | "MINIMO";
|
|
546
|
+
agentId: bigint;
|
|
547
|
+
}, {
|
|
548
|
+
agentId: bigint;
|
|
549
|
+
platform?: "API" | "MINIMO" | undefined;
|
|
550
|
+
}>;
|
|
551
|
+
export type GetAgentDmLocationDto = z.infer<typeof GetAgentDmLocationQuerySchema>;
|
|
552
|
+
export interface GetAgentDmLocationResponseDto {
|
|
553
|
+
location: LocationPrivateDto;
|
|
554
|
+
}
|
|
555
|
+
export declare const GetLocationParamsSchema: z.ZodObject<{
|
|
556
|
+
locationId: z.ZodBigInt;
|
|
557
|
+
}, "strip", z.ZodTypeAny, {
|
|
558
|
+
locationId: bigint;
|
|
559
|
+
}, {
|
|
560
|
+
locationId: bigint;
|
|
561
|
+
}>;
|
|
562
|
+
export type GetLocationParamsDto = z.infer<typeof GetLocationParamsSchema>;
|
|
563
|
+
export interface GetLocationResponseDto {
|
|
564
|
+
location: LocationListItemDto;
|
|
565
|
+
}
|
|
566
|
+
export declare const GetLocationPrivateParamsSchema: z.ZodObject<{
|
|
567
|
+
locationId: z.ZodBigInt;
|
|
568
|
+
}, "strip", z.ZodTypeAny, {
|
|
569
|
+
locationId: bigint;
|
|
570
|
+
}, {
|
|
571
|
+
locationId: bigint;
|
|
572
|
+
}>;
|
|
573
|
+
export type GetLocationPrivateParamsDto = z.infer<typeof GetLocationPrivateParamsSchema>;
|
|
574
|
+
export interface GetLocationPrivateResponseDto {
|
|
575
|
+
location: LocationPrivateDto;
|
|
576
|
+
}
|
|
577
|
+
export declare const GetLocationCostParamsSchema: z.ZodObject<{
|
|
578
|
+
locationId: z.ZodBigInt;
|
|
579
|
+
}, "strip", z.ZodTypeAny, {
|
|
580
|
+
locationId: bigint;
|
|
581
|
+
}, {
|
|
582
|
+
locationId: bigint;
|
|
583
|
+
}>;
|
|
584
|
+
export type GetLocationCostParamsDto = z.infer<typeof GetLocationCostParamsSchema>;
|
|
585
|
+
export interface GetLocationCostResponseDto {
|
|
586
|
+
cost: LocationCostDto;
|
|
587
|
+
}
|
|
588
|
+
export declare const UploadLocationThumbnailParamsSchema: z.ZodObject<{
|
|
589
|
+
locationId: z.ZodBigInt;
|
|
590
|
+
}, "strip", z.ZodTypeAny, {
|
|
591
|
+
locationId: bigint;
|
|
592
|
+
}, {
|
|
593
|
+
locationId: bigint;
|
|
594
|
+
}>;
|
|
595
|
+
export type UploadLocationThumbnailParamsDto = z.infer<typeof UploadLocationThumbnailParamsSchema>;
|
|
596
|
+
export interface UploadLocationThumbnailResponseDto {
|
|
597
|
+
thumbnailUrl: string;
|
|
598
|
+
}
|
|
599
|
+
export declare const DeleteLocationParamsSchema: z.ZodObject<{
|
|
600
|
+
locationId: z.ZodBigInt;
|
|
601
|
+
}, "strip", z.ZodTypeAny, {
|
|
602
|
+
locationId: bigint;
|
|
603
|
+
}, {
|
|
604
|
+
locationId: bigint;
|
|
605
|
+
}>;
|
|
606
|
+
export type DeleteLocationParamsDto = z.infer<typeof DeleteLocationParamsSchema>;
|
|
607
|
+
export interface DeleteLocationResponseDto {
|
|
608
|
+
success: boolean;
|
|
609
|
+
error?: string;
|
|
610
|
+
}
|
|
611
|
+
export declare const GetLocationContentParamsSchema: z.ZodObject<{
|
|
612
|
+
locationId: z.ZodBigInt;
|
|
613
|
+
}, "strip", z.ZodTypeAny, {
|
|
614
|
+
locationId: bigint;
|
|
615
|
+
}, {
|
|
616
|
+
locationId: bigint;
|
|
617
|
+
}>;
|
|
618
|
+
export type GetLocationContentParamsDto = z.infer<typeof GetLocationContentParamsSchema>;
|
|
619
|
+
export interface GetLocationContentResponseDto {
|
|
620
|
+
content: LocationContentDto;
|
|
621
|
+
}
|
|
622
|
+
export declare const CreateLocationSnapshotParamsSchema: z.ZodObject<{
|
|
623
|
+
locationId: z.ZodBigInt;
|
|
624
|
+
}, "strip", z.ZodTypeAny, {
|
|
625
|
+
locationId: bigint;
|
|
626
|
+
}, {
|
|
627
|
+
locationId: bigint;
|
|
628
|
+
}>;
|
|
629
|
+
export type CreateLocationSnapshotParamsDto = z.infer<typeof CreateLocationSnapshotParamsSchema>;
|
|
630
|
+
export declare const CreateLocationSnapshotBodySchema: z.ZodObject<{
|
|
631
|
+
maxMessages: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
632
|
+
}, "strip", z.ZodTypeAny, {
|
|
633
|
+
maxMessages: number;
|
|
634
|
+
}, {
|
|
635
|
+
maxMessages?: number | undefined;
|
|
636
|
+
}>;
|
|
637
|
+
export type CreateLocationSnapshotBodyDto = z.infer<typeof CreateLocationSnapshotBodySchema>;
|
|
638
|
+
export interface CreateLocationSnapshotResponseDto {
|
|
639
|
+
snapshotKey: string;
|
|
640
|
+
}
|
|
641
|
+
export declare const GetLocationSnapshotParamsSchema: z.ZodObject<{
|
|
642
|
+
snapshotKey: z.ZodString;
|
|
643
|
+
}, "strip", z.ZodTypeAny, {
|
|
644
|
+
snapshotKey: string;
|
|
645
|
+
}, {
|
|
646
|
+
snapshotKey: string;
|
|
647
|
+
}>;
|
|
648
|
+
export type GetLocationSnapshotParamsDto = z.infer<typeof GetLocationSnapshotParamsSchema>;
|
|
649
|
+
export interface GetLocationSnapshotResponseDto {
|
|
650
|
+
snapshot: LocationSnapshotDto;
|
|
651
|
+
}
|
|
652
|
+
export declare const MarkLocationAsReadParamsSchema: z.ZodObject<{
|
|
653
|
+
locationId: z.ZodBigInt;
|
|
654
|
+
}, "strip", z.ZodTypeAny, {
|
|
655
|
+
locationId: bigint;
|
|
656
|
+
}, {
|
|
657
|
+
locationId: bigint;
|
|
465
658
|
}>;
|
|
466
|
-
export type
|
|
467
|
-
export
|
|
468
|
-
|
|
659
|
+
export type MarkLocationAsReadParamsDto = z.infer<typeof MarkLocationAsReadParamsSchema>;
|
|
660
|
+
export declare const LocationUnreadCountParamsSchema: z.ZodObject<{
|
|
661
|
+
locationId: z.ZodBigInt;
|
|
662
|
+
}, "strip", z.ZodTypeAny, {
|
|
663
|
+
locationId: bigint;
|
|
664
|
+
}, {
|
|
665
|
+
locationId: bigint;
|
|
666
|
+
}>;
|
|
667
|
+
export type LocationUnreadCountParamsDto = z.infer<typeof LocationUnreadCountParamsSchema>;
|
|
668
|
+
export interface LocationUnreadCountResponseDto {
|
|
669
|
+
unreadCount: number;
|
|
469
670
|
}
|
|
470
|
-
export declare const
|
|
671
|
+
export declare const JoinAgentToLocationParamsSchema: z.ZodObject<{
|
|
471
672
|
locationId: z.ZodBigInt;
|
|
472
|
-
messageId: z.ZodString;
|
|
473
673
|
}, "strip", z.ZodTypeAny, {
|
|
474
674
|
locationId: bigint;
|
|
475
|
-
messageId: string;
|
|
476
675
|
}, {
|
|
477
676
|
locationId: bigint;
|
|
478
|
-
messageId: string;
|
|
479
677
|
}>;
|
|
480
|
-
export type
|
|
481
|
-
export
|
|
482
|
-
|
|
678
|
+
export type JoinAgentToLocationParamsDto = z.infer<typeof JoinAgentToLocationParamsSchema>;
|
|
679
|
+
export declare const JoinAgentToLocationBodySchema: z.ZodObject<{
|
|
680
|
+
agentId: z.ZodBigInt;
|
|
681
|
+
}, "strip", z.ZodTypeAny, {
|
|
682
|
+
agentId: bigint;
|
|
683
|
+
}, {
|
|
684
|
+
agentId: bigint;
|
|
685
|
+
}>;
|
|
686
|
+
export type JoinAgentToLocationBodyDto = z.infer<typeof JoinAgentToLocationBodySchema>;
|
|
687
|
+
export interface JoinAgentToLocationResponseDto {
|
|
688
|
+
agentAdded: boolean;
|
|
689
|
+
message?: string;
|
|
483
690
|
}
|
|
484
|
-
export declare const
|
|
691
|
+
export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
|
|
692
|
+
locationId: z.ZodBigInt;
|
|
693
|
+
agentId: z.ZodBigInt;
|
|
694
|
+
}, "strip", z.ZodTypeAny, {
|
|
695
|
+
locationId: bigint;
|
|
696
|
+
agentId: bigint;
|
|
697
|
+
}, {
|
|
698
|
+
locationId: bigint;
|
|
699
|
+
agentId: bigint;
|
|
700
|
+
}>;
|
|
701
|
+
export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
|
|
702
|
+
export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
|
|
703
|
+
locationId: z.ZodBigInt;
|
|
704
|
+
}, "strip", z.ZodTypeAny, {
|
|
705
|
+
locationId: bigint;
|
|
706
|
+
}, {
|
|
707
|
+
locationId: bigint;
|
|
708
|
+
}>;
|
|
709
|
+
export type RemoveAgentFromLocationParamsDto = z.infer<typeof RemoveAgentFromLocationParamsSchema>;
|
|
710
|
+
export declare const RemoveAgentFromLocationBodySchema: z.ZodObject<{
|
|
711
|
+
agentId: z.ZodBigInt;
|
|
712
|
+
}, "strip", z.ZodTypeAny, {
|
|
713
|
+
agentId: bigint;
|
|
714
|
+
}, {
|
|
715
|
+
agentId: bigint;
|
|
716
|
+
}>;
|
|
717
|
+
export type RemoveAgentFromLocationBodyDto = z.infer<typeof RemoveAgentFromLocationBodySchema>;
|
|
718
|
+
export interface RemoveAgentFromLocationResponseDto {
|
|
719
|
+
agentRemoved: boolean;
|
|
720
|
+
message?: string;
|
|
721
|
+
}
|
|
722
|
+
export declare const RemoveAgentFromLocationToolSchema: z.ZodObject<{
|
|
723
|
+
locationId: z.ZodBigInt;
|
|
724
|
+
agentId: z.ZodBigInt;
|
|
725
|
+
}, "strip", z.ZodTypeAny, {
|
|
726
|
+
locationId: bigint;
|
|
727
|
+
agentId: bigint;
|
|
728
|
+
}, {
|
|
729
|
+
locationId: bigint;
|
|
730
|
+
agentId: bigint;
|
|
731
|
+
}>;
|
|
732
|
+
export type RemoveAgentFromLocationToolDto = z.infer<typeof RemoveAgentFromLocationToolSchema>;
|
|
733
|
+
export declare const GetLocationScheduledMessagesParamsSchema: z.ZodObject<{
|
|
734
|
+
locationId: z.ZodBigInt;
|
|
735
|
+
}, "strip", z.ZodTypeAny, {
|
|
736
|
+
locationId: bigint;
|
|
737
|
+
}, {
|
|
738
|
+
locationId: bigint;
|
|
739
|
+
}>;
|
|
740
|
+
export type GetLocationScheduledMessagesParamsDto = z.infer<typeof GetLocationScheduledMessagesParamsSchema>;
|
|
741
|
+
export interface GetLocationScheduledMessagesResponseDto {
|
|
742
|
+
scheduledMessages: LocationScheduledMessageDto[];
|
|
743
|
+
}
|
|
744
|
+
export declare const CreateLocationScheduledMessageParamsSchema: z.ZodObject<{
|
|
485
745
|
locationId: z.ZodBigInt;
|
|
746
|
+
}, "strip", z.ZodTypeAny, {
|
|
747
|
+
locationId: bigint;
|
|
748
|
+
}, {
|
|
749
|
+
locationId: bigint;
|
|
750
|
+
}>;
|
|
751
|
+
export type CreateLocationScheduledMessageParamsDto = z.infer<typeof CreateLocationScheduledMessageParamsSchema>;
|
|
752
|
+
export declare const CreateLocationScheduledMessageBodySchema: z.ZodObject<{
|
|
753
|
+
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
754
|
+
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
486
755
|
} & {
|
|
756
|
+
message: z.ZodString;
|
|
757
|
+
}, "strip", z.ZodTypeAny, {
|
|
758
|
+
message: string;
|
|
759
|
+
repeatTimesOfDay: string[];
|
|
760
|
+
repeatDaysOfWeek: DayOfWeek[];
|
|
761
|
+
}, {
|
|
762
|
+
message: string;
|
|
763
|
+
repeatTimesOfDay: string[];
|
|
764
|
+
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
765
|
+
}>;
|
|
766
|
+
export type CreateLocationScheduledMessageBodyDto = z.infer<typeof CreateLocationScheduledMessageBodySchema>;
|
|
767
|
+
export interface CreateLocationScheduledMessageResponseDto {
|
|
768
|
+
scheduledMessage: LocationScheduledMessageDto;
|
|
769
|
+
}
|
|
770
|
+
export declare const CreateLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
487
771
|
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
488
772
|
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
489
773
|
} & {
|
|
774
|
+
locationId: z.ZodBigInt;
|
|
490
775
|
message: z.ZodString;
|
|
491
776
|
}, "strip", z.ZodTypeAny, {
|
|
492
777
|
message: string;
|
|
@@ -500,12 +785,40 @@ export declare const CreateLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
|
500
785
|
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
501
786
|
}>;
|
|
502
787
|
export type CreateLocationScheduledMessageToolDto = z.infer<typeof CreateLocationScheduledMessageToolSchema>;
|
|
503
|
-
export declare const
|
|
788
|
+
export declare const UpdateLocationScheduledMessageParamsSchema: z.ZodObject<{
|
|
504
789
|
locationId: z.ZodBigInt;
|
|
790
|
+
messageId: z.ZodString;
|
|
791
|
+
}, "strip", z.ZodTypeAny, {
|
|
792
|
+
locationId: bigint;
|
|
793
|
+
messageId: string;
|
|
794
|
+
}, {
|
|
795
|
+
locationId: bigint;
|
|
796
|
+
messageId: string;
|
|
797
|
+
}>;
|
|
798
|
+
export type UpdateLocationScheduledMessageParamsDto = z.infer<typeof UpdateLocationScheduledMessageParamsSchema>;
|
|
799
|
+
export declare const UpdateLocationScheduledMessageBodySchema: z.ZodObject<{
|
|
800
|
+
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
801
|
+
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
505
802
|
} & {
|
|
803
|
+
message: z.ZodOptional<z.ZodString>;
|
|
804
|
+
}, "strip", z.ZodTypeAny, {
|
|
805
|
+
repeatTimesOfDay: string[];
|
|
806
|
+
repeatDaysOfWeek: DayOfWeek[];
|
|
807
|
+
message?: string | undefined;
|
|
808
|
+
}, {
|
|
809
|
+
repeatTimesOfDay: string[];
|
|
810
|
+
message?: string | undefined;
|
|
811
|
+
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
812
|
+
}>;
|
|
813
|
+
export type UpdateLocationScheduledMessageBodyDto = z.infer<typeof UpdateLocationScheduledMessageBodySchema>;
|
|
814
|
+
export interface UpdateLocationScheduledMessageResponseDto {
|
|
815
|
+
scheduledMessage: LocationScheduledMessageDto;
|
|
816
|
+
}
|
|
817
|
+
export declare const UpdateLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
506
818
|
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
507
819
|
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
508
820
|
} & {
|
|
821
|
+
locationId: z.ZodBigInt;
|
|
509
822
|
messageId: z.ZodString;
|
|
510
823
|
message: z.ZodOptional<z.ZodString>;
|
|
511
824
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -522,6 +835,20 @@ export declare const UpdateLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
|
522
835
|
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
523
836
|
}>;
|
|
524
837
|
export type UpdateLocationScheduledMessageToolDto = z.infer<typeof UpdateLocationScheduledMessageToolSchema>;
|
|
838
|
+
export declare const DeleteLocationScheduledMessageParamsSchema: z.ZodObject<{
|
|
839
|
+
locationId: z.ZodBigInt;
|
|
840
|
+
messageId: z.ZodString;
|
|
841
|
+
}, "strip", z.ZodTypeAny, {
|
|
842
|
+
locationId: bigint;
|
|
843
|
+
messageId: string;
|
|
844
|
+
}, {
|
|
845
|
+
locationId: bigint;
|
|
846
|
+
messageId: string;
|
|
847
|
+
}>;
|
|
848
|
+
export type DeleteLocationScheduledMessageParamsDto = z.infer<typeof DeleteLocationScheduledMessageParamsSchema>;
|
|
849
|
+
export interface DeleteLocationScheduledMessageResponseDto {
|
|
850
|
+
deleted: boolean;
|
|
851
|
+
}
|
|
525
852
|
export declare const DeleteLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
526
853
|
locationId: z.ZodBigInt;
|
|
527
854
|
messageId: z.ZodString;
|
|
@@ -533,3 +860,167 @@ export declare const DeleteLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
|
533
860
|
messageId: string;
|
|
534
861
|
}>;
|
|
535
862
|
export type DeleteLocationScheduledMessageToolDto = z.infer<typeof DeleteLocationScheduledMessageToolSchema>;
|
|
863
|
+
export declare const JoinLocationSchema: z.ZodObject<{
|
|
864
|
+
locationId: z.ZodBigInt;
|
|
865
|
+
}, "strip", z.ZodTypeAny, {
|
|
866
|
+
locationId: bigint;
|
|
867
|
+
}, {
|
|
868
|
+
locationId: bigint;
|
|
869
|
+
}>;
|
|
870
|
+
export type JoinLocationDto = z.infer<typeof JoinLocationSchema>;
|
|
871
|
+
export interface JoinLocationResponseDto {
|
|
872
|
+
joined: boolean;
|
|
873
|
+
}
|
|
874
|
+
export declare const LeaveLocationSchema: z.ZodObject<{
|
|
875
|
+
locationId: z.ZodBigInt;
|
|
876
|
+
}, "strip", z.ZodTypeAny, {
|
|
877
|
+
locationId: bigint;
|
|
878
|
+
}, {
|
|
879
|
+
locationId: bigint;
|
|
880
|
+
}>;
|
|
881
|
+
export type LeaveLocationDto = z.infer<typeof LeaveLocationSchema>;
|
|
882
|
+
export interface LeaveLocationResponseDto {
|
|
883
|
+
left: boolean;
|
|
884
|
+
}
|
|
885
|
+
export declare const SubscribeLocationSchema: z.ZodObject<{
|
|
886
|
+
locationId: z.ZodBigInt;
|
|
887
|
+
}, "strip", z.ZodTypeAny, {
|
|
888
|
+
locationId: bigint;
|
|
889
|
+
}, {
|
|
890
|
+
locationId: bigint;
|
|
891
|
+
}>;
|
|
892
|
+
export type SubscribeLocationDto = z.infer<typeof SubscribeLocationSchema>;
|
|
893
|
+
export interface SubscribeLocationResponseDto {
|
|
894
|
+
subscribed: boolean;
|
|
895
|
+
}
|
|
896
|
+
export declare const UnsubscribeLocationSchema: z.ZodObject<{
|
|
897
|
+
locationId: z.ZodBigInt;
|
|
898
|
+
}, "strip", z.ZodTypeAny, {
|
|
899
|
+
locationId: bigint;
|
|
900
|
+
}, {
|
|
901
|
+
locationId: bigint;
|
|
902
|
+
}>;
|
|
903
|
+
export type UnsubscribeLocationDto = z.infer<typeof UnsubscribeLocationSchema>;
|
|
904
|
+
export interface UnsubscribeLocationResponseDto {
|
|
905
|
+
unsubscribed: boolean;
|
|
906
|
+
}
|
|
907
|
+
export declare const GetLocationMessagesSchema: z.ZodObject<{
|
|
908
|
+
locationId: z.ZodBigInt;
|
|
909
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
910
|
+
}, "strip", z.ZodTypeAny, {
|
|
911
|
+
locationId: bigint;
|
|
912
|
+
cursor?: string | undefined;
|
|
913
|
+
}, {
|
|
914
|
+
locationId: bigint;
|
|
915
|
+
cursor?: string | undefined;
|
|
916
|
+
}>;
|
|
917
|
+
export type GetLocationMessagesDto = z.infer<typeof GetLocationMessagesSchema>;
|
|
918
|
+
export interface LocationMessagesResponseDto {
|
|
919
|
+
messages: LocationMessageDto[];
|
|
920
|
+
nextCursor?: string;
|
|
921
|
+
}
|
|
922
|
+
export declare const SendLocationMessageSchema: z.ZodObject<{
|
|
923
|
+
locationId: z.ZodBigInt;
|
|
924
|
+
message: z.ZodOptional<z.ZodString>;
|
|
925
|
+
action: z.ZodOptional<z.ZodString>;
|
|
926
|
+
image: z.ZodOptional<z.ZodString>;
|
|
927
|
+
}, "strip", z.ZodTypeAny, {
|
|
928
|
+
locationId: bigint;
|
|
929
|
+
message?: string | undefined;
|
|
930
|
+
action?: string | undefined;
|
|
931
|
+
image?: string | undefined;
|
|
932
|
+
}, {
|
|
933
|
+
locationId: bigint;
|
|
934
|
+
message?: string | undefined;
|
|
935
|
+
action?: string | undefined;
|
|
936
|
+
image?: string | undefined;
|
|
937
|
+
}>;
|
|
938
|
+
export type SendLocationMessageDto = z.infer<typeof SendLocationMessageSchema>;
|
|
939
|
+
export interface SendMessageResponseDto {
|
|
940
|
+
}
|
|
941
|
+
export declare const SendSystemMessageSchema: z.ZodObject<{
|
|
942
|
+
locationId: z.ZodBigInt;
|
|
943
|
+
message: z.ZodString;
|
|
944
|
+
resumeUpdate: z.ZodOptional<z.ZodBoolean>;
|
|
945
|
+
}, "strip", z.ZodTypeAny, {
|
|
946
|
+
message: string;
|
|
947
|
+
locationId: bigint;
|
|
948
|
+
resumeUpdate?: boolean | undefined;
|
|
949
|
+
}, {
|
|
950
|
+
message: string;
|
|
951
|
+
locationId: bigint;
|
|
952
|
+
resumeUpdate?: boolean | undefined;
|
|
953
|
+
}>;
|
|
954
|
+
export type SendSystemMessageDto = z.infer<typeof SendSystemMessageSchema>;
|
|
955
|
+
export interface SendSystemMessageResponseDto {
|
|
956
|
+
}
|
|
957
|
+
export declare const UpdateLocationImageSchema: z.ZodObject<{
|
|
958
|
+
locationId: z.ZodBigInt;
|
|
959
|
+
image: z.ZodString;
|
|
960
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
961
|
+
}, "strip", z.ZodTypeAny, {
|
|
962
|
+
locationId: bigint;
|
|
963
|
+
image: string;
|
|
964
|
+
index?: number | undefined;
|
|
965
|
+
}, {
|
|
966
|
+
locationId: bigint;
|
|
967
|
+
image: string;
|
|
968
|
+
index?: number | undefined;
|
|
969
|
+
}>;
|
|
970
|
+
export type UpdateLocationImageDto = z.infer<typeof UpdateLocationImageSchema>;
|
|
971
|
+
export interface UpdateLocationImageResponseDto {
|
|
972
|
+
imageUrl?: string;
|
|
973
|
+
}
|
|
974
|
+
export declare const UpdateLocationRenderingSchema: z.ZodObject<{
|
|
975
|
+
locationId: z.ZodBigInt;
|
|
976
|
+
rendering: z.ZodNullable<z.ZodString>;
|
|
977
|
+
}, "strip", z.ZodTypeAny, {
|
|
978
|
+
locationId: bigint;
|
|
979
|
+
rendering: string | null;
|
|
980
|
+
}, {
|
|
981
|
+
locationId: bigint;
|
|
982
|
+
rendering: string | null;
|
|
983
|
+
}>;
|
|
984
|
+
export type UpdateLocationRenderingDto = z.infer<typeof UpdateLocationRenderingSchema>;
|
|
985
|
+
export interface UpdateLocationRenderingResponseDto {
|
|
986
|
+
}
|
|
987
|
+
export declare const UpdateLocationAgentIsActiveSchema: z.ZodObject<{
|
|
988
|
+
locationId: z.ZodBigInt;
|
|
989
|
+
agentId: z.ZodBigInt;
|
|
990
|
+
isActive: z.ZodBoolean;
|
|
991
|
+
}, "strip", z.ZodTypeAny, {
|
|
992
|
+
locationId: bigint;
|
|
993
|
+
agentId: bigint;
|
|
994
|
+
isActive: boolean;
|
|
995
|
+
}, {
|
|
996
|
+
locationId: bigint;
|
|
997
|
+
agentId: bigint;
|
|
998
|
+
isActive: boolean;
|
|
999
|
+
}>;
|
|
1000
|
+
export type UpdateLocationAgentIsActiveDto = z.infer<typeof UpdateLocationAgentIsActiveSchema>;
|
|
1001
|
+
export interface UpdateLocationAgentIsActiveResponseDto {
|
|
1002
|
+
}
|
|
1003
|
+
export declare const PauseLocationUpdateSchema: z.ZodObject<{
|
|
1004
|
+
locationId: z.ZodBigInt;
|
|
1005
|
+
}, "strip", z.ZodTypeAny, {
|
|
1006
|
+
locationId: bigint;
|
|
1007
|
+
}, {
|
|
1008
|
+
locationId: bigint;
|
|
1009
|
+
}>;
|
|
1010
|
+
export type PauseLocationUpdateDto = z.infer<typeof PauseLocationUpdateSchema>;
|
|
1011
|
+
export interface PauseLocationUpdateResponseDto {
|
|
1012
|
+
}
|
|
1013
|
+
export declare const ResumeLocationUpdateSchema: z.ZodObject<{
|
|
1014
|
+
locationId: z.ZodBigInt;
|
|
1015
|
+
delayMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
1016
|
+
}, "strip", z.ZodTypeAny, {
|
|
1017
|
+
locationId: bigint;
|
|
1018
|
+
delayMs: number;
|
|
1019
|
+
}, {
|
|
1020
|
+
locationId: bigint;
|
|
1021
|
+
delayMs?: number | undefined;
|
|
1022
|
+
}>;
|
|
1023
|
+
export type ResumeLocationUpdateDto = z.infer<typeof ResumeLocationUpdateSchema>;
|
|
1024
|
+
export interface ResumeLocationUpdateResponseDto {
|
|
1025
|
+
resumeAt: string;
|
|
1026
|
+
}
|