@little-samo/samo-ai-sdk 0.2.0-rv5 → 0.2.1-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.requests.d.ts +34 -34
- package/dist/dto/entities/users/user.requests.d.ts +2 -2
- package/dist/dto/locations/location.preset.d.ts +42 -3
- package/dist/dto/locations/location.preset.js +19 -0
- package/dist/dto/locations/location.preset.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +189 -93
- package/dist/dto/locations/location.requests.js +38 -24
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/dto/rankings/ranking.d.ts +1 -0
- package/dist/models/locations/location.config.d.ts +20 -20
- package/package.json +3 -3
|
@@ -4,7 +4,7 @@ import { z } from 'zod';
|
|
|
4
4
|
import { LocationConfig } from '../../models/locations/location.config';
|
|
5
5
|
import { LocationContentDto, LocationCostDto, LocationListItemDto, LocationPrivateDto } from './location';
|
|
6
6
|
import { LocationMessageDto } from './location.message';
|
|
7
|
-
import { LocationPresetDto } from './location.preset';
|
|
7
|
+
import { LocationPresetDetailDto, LocationPresetDto } from './location.preset';
|
|
8
8
|
import { LocationScheduledMessageDto } from './location.scheduled-message';
|
|
9
9
|
import { LocationSnapshotDto } from './location.snapshot';
|
|
10
10
|
import type { AgentPrivateDto } from '../entities';
|
|
@@ -15,8 +15,8 @@ export declare const UserLocationsQuerySchema: z.ZodObject<{
|
|
|
15
15
|
limit: number;
|
|
16
16
|
cursor?: string | undefined;
|
|
17
17
|
}, {
|
|
18
|
-
limit?: number | undefined;
|
|
19
18
|
cursor?: string | undefined;
|
|
19
|
+
limit?: number | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
export type UserLocationsQueryDto = z.infer<typeof UserLocationsQuerySchema>;
|
|
22
22
|
export interface UserLocationsResponseDto {
|
|
@@ -30,11 +30,11 @@ export declare const PublishedLocationsQuerySchema: z.ZodObject<{
|
|
|
30
30
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
31
31
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
page: number;
|
|
34
33
|
limit: number;
|
|
34
|
+
page: number;
|
|
35
35
|
}, {
|
|
36
|
-
page?: number | undefined;
|
|
37
36
|
limit?: number | undefined;
|
|
37
|
+
page?: number | undefined;
|
|
38
38
|
}>;
|
|
39
39
|
export type PublishedLocationsQueryDto = z.infer<typeof PublishedLocationsQuerySchema>;
|
|
40
40
|
export interface PublishedLocationsResponseDto {
|
|
@@ -115,7 +115,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
115
115
|
maxLength: number;
|
|
116
116
|
}>, "many">>;
|
|
117
117
|
gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
118
|
-
core: z.ZodUnion<[z.ZodLiteral<"
|
|
118
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
|
|
119
119
|
name: z.ZodString;
|
|
120
120
|
appearance: z.ZodString;
|
|
121
121
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -130,16 +130,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
130
130
|
}>, "many">>;
|
|
131
131
|
}, "strip", z.ZodTypeAny, {
|
|
132
132
|
name: string;
|
|
133
|
+
core: "web_search" | "image_generator" | "notion";
|
|
133
134
|
appearance: string;
|
|
134
|
-
core: "notion" | "web_search" | "image_generator";
|
|
135
135
|
images?: {
|
|
136
136
|
description: string;
|
|
137
137
|
url: string;
|
|
138
138
|
}[] | undefined;
|
|
139
139
|
}, {
|
|
140
140
|
name: string;
|
|
141
|
+
core: "web_search" | "image_generator" | "notion";
|
|
141
142
|
appearance: string;
|
|
142
|
-
core: "notion" | "web_search" | "image_generator";
|
|
143
143
|
images?: {
|
|
144
144
|
description: string;
|
|
145
145
|
url: string;
|
|
@@ -147,15 +147,15 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
147
147
|
}>, "many">>;
|
|
148
148
|
}, "strict", z.ZodTypeAny, {
|
|
149
149
|
name?: string | undefined;
|
|
150
|
-
|
|
150
|
+
thumbnail?: string | null | undefined;
|
|
151
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
151
152
|
core?: {
|
|
152
153
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
153
154
|
sequential?: boolean | undefined;
|
|
154
155
|
interval?: number | undefined;
|
|
155
156
|
} | undefined;
|
|
157
|
+
description?: string | undefined;
|
|
156
158
|
rules?: string[] | undefined;
|
|
157
|
-
thumbnail?: string | null | undefined;
|
|
158
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
159
159
|
canvases?: {
|
|
160
160
|
name: string;
|
|
161
161
|
description: string;
|
|
@@ -168,8 +168,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
168
168
|
}[] | undefined;
|
|
169
169
|
gimmicks?: {
|
|
170
170
|
name: string;
|
|
171
|
+
core: "web_search" | "image_generator" | "notion";
|
|
171
172
|
appearance: string;
|
|
172
|
-
core: "notion" | "web_search" | "image_generator";
|
|
173
173
|
images?: {
|
|
174
174
|
description: string;
|
|
175
175
|
url: string;
|
|
@@ -177,15 +177,15 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
177
177
|
}[] | undefined;
|
|
178
178
|
}, {
|
|
179
179
|
name?: string | undefined;
|
|
180
|
-
|
|
180
|
+
thumbnail?: string | null | undefined;
|
|
181
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
181
182
|
core?: {
|
|
182
183
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
183
184
|
sequential?: boolean | undefined;
|
|
184
185
|
interval?: number | undefined;
|
|
185
186
|
} | undefined;
|
|
187
|
+
description?: string | undefined;
|
|
186
188
|
rules?: string[] | undefined;
|
|
187
|
-
thumbnail?: string | null | undefined;
|
|
188
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
189
189
|
canvases?: {
|
|
190
190
|
name: string;
|
|
191
191
|
description: string;
|
|
@@ -198,8 +198,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
198
198
|
}[] | undefined;
|
|
199
199
|
gimmicks?: {
|
|
200
200
|
name: string;
|
|
201
|
+
core: "web_search" | "image_generator" | "notion";
|
|
201
202
|
appearance: string;
|
|
202
|
-
core: "notion" | "web_search" | "image_generator";
|
|
203
203
|
images?: {
|
|
204
204
|
description: string;
|
|
205
205
|
url: string;
|
|
@@ -207,17 +207,18 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
207
207
|
}[] | undefined;
|
|
208
208
|
}>;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
locationId: bigint;
|
|
210
211
|
config: {
|
|
211
212
|
name?: string | undefined;
|
|
212
|
-
|
|
213
|
+
thumbnail?: string | null | undefined;
|
|
214
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
213
215
|
core?: {
|
|
214
216
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
215
217
|
sequential?: boolean | undefined;
|
|
216
218
|
interval?: number | undefined;
|
|
217
219
|
} | undefined;
|
|
220
|
+
description?: string | undefined;
|
|
218
221
|
rules?: string[] | undefined;
|
|
219
|
-
thumbnail?: string | null | undefined;
|
|
220
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
221
222
|
canvases?: {
|
|
222
223
|
name: string;
|
|
223
224
|
description: string;
|
|
@@ -230,27 +231,27 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
230
231
|
}[] | undefined;
|
|
231
232
|
gimmicks?: {
|
|
232
233
|
name: string;
|
|
234
|
+
core: "web_search" | "image_generator" | "notion";
|
|
233
235
|
appearance: string;
|
|
234
|
-
core: "notion" | "web_search" | "image_generator";
|
|
235
236
|
images?: {
|
|
236
237
|
description: string;
|
|
237
238
|
url: string;
|
|
238
239
|
}[] | undefined;
|
|
239
240
|
}[] | undefined;
|
|
240
241
|
};
|
|
241
|
-
locationId: bigint;
|
|
242
242
|
}, {
|
|
243
|
+
locationId: bigint;
|
|
243
244
|
config: {
|
|
244
245
|
name?: string | undefined;
|
|
245
|
-
|
|
246
|
+
thumbnail?: string | null | undefined;
|
|
247
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
246
248
|
core?: {
|
|
247
249
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
248
250
|
sequential?: boolean | undefined;
|
|
249
251
|
interval?: number | undefined;
|
|
250
252
|
} | undefined;
|
|
253
|
+
description?: string | undefined;
|
|
251
254
|
rules?: string[] | undefined;
|
|
252
|
-
thumbnail?: string | null | undefined;
|
|
253
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
254
255
|
canvases?: {
|
|
255
256
|
name: string;
|
|
256
257
|
description: string;
|
|
@@ -263,15 +264,14 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
263
264
|
}[] | undefined;
|
|
264
265
|
gimmicks?: {
|
|
265
266
|
name: string;
|
|
267
|
+
core: "web_search" | "image_generator" | "notion";
|
|
266
268
|
appearance: string;
|
|
267
|
-
core: "notion" | "web_search" | "image_generator";
|
|
268
269
|
images?: {
|
|
269
270
|
description: string;
|
|
270
271
|
url: string;
|
|
271
272
|
}[] | undefined;
|
|
272
273
|
}[] | undefined;
|
|
273
274
|
};
|
|
274
|
-
locationId: bigint;
|
|
275
275
|
}>;
|
|
276
276
|
export type LocationUpdateConfigDto = z.infer<typeof LocationUpdateConfigSchema>;
|
|
277
277
|
export type LocationUpdateConfigResponseDto = Partial<LocationConfig>;
|
|
@@ -297,6 +297,7 @@ export declare const LocationUpdateCredentialSchema: z.ZodObject<{
|
|
|
297
297
|
token: string;
|
|
298
298
|
}>]>;
|
|
299
299
|
}, "strip", z.ZodTypeAny, {
|
|
300
|
+
locationId: bigint;
|
|
300
301
|
credential: {
|
|
301
302
|
type: "notion";
|
|
302
303
|
token: string;
|
|
@@ -304,8 +305,8 @@ export declare const LocationUpdateCredentialSchema: z.ZodObject<{
|
|
|
304
305
|
type: "notion";
|
|
305
306
|
token: string;
|
|
306
307
|
};
|
|
307
|
-
locationId: bigint;
|
|
308
308
|
}, {
|
|
309
|
+
locationId: bigint;
|
|
309
310
|
credential: {
|
|
310
311
|
type: "notion";
|
|
311
312
|
token: string;
|
|
@@ -313,7 +314,6 @@ export declare const LocationUpdateCredentialSchema: z.ZodObject<{
|
|
|
313
314
|
type: "notion";
|
|
314
315
|
token: string;
|
|
315
316
|
};
|
|
316
|
-
locationId: bigint;
|
|
317
317
|
}>;
|
|
318
318
|
export type LocationUpdateCredentialDto = z.infer<typeof LocationUpdateCredentialSchema>;
|
|
319
319
|
export interface LocationUpdateCredentialResponseDto {
|
|
@@ -324,11 +324,11 @@ export declare const LocationDeleteCredentialSchema: z.ZodObject<{
|
|
|
324
324
|
locationId: z.ZodBigInt;
|
|
325
325
|
credentialType: z.ZodString;
|
|
326
326
|
}, "strip", z.ZodTypeAny, {
|
|
327
|
-
credentialType: string;
|
|
328
327
|
locationId: bigint;
|
|
329
|
-
}, {
|
|
330
328
|
credentialType: string;
|
|
329
|
+
}, {
|
|
331
330
|
locationId: bigint;
|
|
331
|
+
credentialType: string;
|
|
332
332
|
}>;
|
|
333
333
|
export type LocationDeleteCredentialDto = z.infer<typeof LocationDeleteCredentialSchema>;
|
|
334
334
|
export interface LocationDeleteCredentialResponseDto {
|
|
@@ -339,15 +339,15 @@ export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
|
|
|
339
339
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
340
340
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
341
341
|
}, "strip", z.ZodTypeAny, {
|
|
342
|
-
page: number;
|
|
343
342
|
limit: number;
|
|
343
|
+
page: number;
|
|
344
344
|
}, {
|
|
345
|
-
page?: number | undefined;
|
|
346
345
|
limit?: number | undefined;
|
|
346
|
+
page?: number | undefined;
|
|
347
347
|
}>;
|
|
348
348
|
export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
|
|
349
349
|
export interface LocationPresetsPaginatedResponseDto {
|
|
350
|
-
data:
|
|
350
|
+
data: LocationPresetDetailDto[];
|
|
351
351
|
meta: {
|
|
352
352
|
total: number;
|
|
353
353
|
page: number;
|
|
@@ -355,29 +355,56 @@ export interface LocationPresetsPaginatedResponseDto {
|
|
|
355
355
|
totalPages: number;
|
|
356
356
|
};
|
|
357
357
|
}
|
|
358
|
-
export declare const
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
readonly User: "user";
|
|
363
|
-
readonly Gimmick: "gimmick";
|
|
364
|
-
}>;
|
|
365
|
-
entityId: z.ZodBigInt;
|
|
366
|
-
message: z.ZodString;
|
|
358
|
+
export declare const PublishedLocationPresetsQuerySchema: z.ZodObject<{
|
|
359
|
+
type: z.ZodEnum<["NOVEL"]>;
|
|
360
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
361
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
367
362
|
}, "strip", z.ZodTypeAny, {
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
363
|
+
type: "NOVEL";
|
|
364
|
+
limit: number;
|
|
365
|
+
page: number;
|
|
371
366
|
}, {
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
367
|
+
type: "NOVEL";
|
|
368
|
+
limit?: number | undefined;
|
|
369
|
+
page?: number | undefined;
|
|
375
370
|
}>;
|
|
376
|
-
export type
|
|
371
|
+
export type PublishedLocationPresetsQueryDto = z.infer<typeof PublishedLocationPresetsQuerySchema>;
|
|
372
|
+
export interface PublishedLocationPresetsResponseDto {
|
|
373
|
+
data: LocationPresetDetailDto[];
|
|
374
|
+
meta: {
|
|
375
|
+
total: number;
|
|
376
|
+
page: number;
|
|
377
|
+
limit: number;
|
|
378
|
+
totalPages: number;
|
|
379
|
+
};
|
|
380
|
+
}
|
|
381
|
+
export declare const TrendingLocationPresetsQuerySchema: z.ZodObject<{
|
|
382
|
+
type: z.ZodEnum<["NOVEL"]>;
|
|
383
|
+
}, "strip", z.ZodTypeAny, {
|
|
384
|
+
type: "NOVEL";
|
|
385
|
+
}, {
|
|
386
|
+
type: "NOVEL";
|
|
387
|
+
}>;
|
|
388
|
+
export type TrendingLocationPresetsQueryDto = z.infer<typeof TrendingLocationPresetsQuerySchema>;
|
|
389
|
+
export interface TrendingLocationPresetsResponseDto {
|
|
390
|
+
data: LocationPresetDetailDto[];
|
|
391
|
+
}
|
|
377
392
|
export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
378
393
|
locationId: z.ZodBigInt;
|
|
379
394
|
visibility: z.ZodOptional<z.ZodEnum<["private", "public", "publish"]>>;
|
|
380
|
-
|
|
395
|
+
name: z.ZodOptional<z.ZodString>;
|
|
396
|
+
presetDescription: z.ZodString;
|
|
397
|
+
presetShortDescription: z.ZodString;
|
|
398
|
+
canvases: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
399
|
+
name: z.ZodString;
|
|
400
|
+
text: z.ZodString;
|
|
401
|
+
}, "strip", z.ZodTypeAny, {
|
|
402
|
+
name: string;
|
|
403
|
+
text: string;
|
|
404
|
+
}, {
|
|
405
|
+
name: string;
|
|
406
|
+
text: string;
|
|
407
|
+
}>, "many">>;
|
|
381
408
|
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
382
409
|
entityType: z.ZodNativeEnum<{
|
|
383
410
|
readonly System: "system";
|
|
@@ -386,39 +413,56 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
|
386
413
|
readonly Gimmick: "gimmick";
|
|
387
414
|
}>;
|
|
388
415
|
entityId: z.ZodBigInt;
|
|
389
|
-
message: z.ZodString
|
|
416
|
+
message: z.ZodOptional<z.ZodString>;
|
|
417
|
+
image: z.ZodOptional<z.ZodString>;
|
|
390
418
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
message: string;
|
|
392
419
|
entityType: "system" | "agent" | "user" | "gimmick";
|
|
393
420
|
entityId: bigint;
|
|
421
|
+
message?: string | undefined;
|
|
422
|
+
image?: string | undefined;
|
|
394
423
|
}, {
|
|
395
|
-
message: string;
|
|
396
424
|
entityType: "system" | "agent" | "user" | "gimmick";
|
|
397
425
|
entityId: bigint;
|
|
426
|
+
message?: string | undefined;
|
|
427
|
+
image?: string | undefined;
|
|
398
428
|
}>, "many">>;
|
|
399
429
|
hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
400
430
|
isAllowImport: z.ZodOptional<z.ZodBoolean>;
|
|
401
431
|
isSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
402
432
|
}, "strip", z.ZodTypeAny, {
|
|
403
433
|
locationId: bigint;
|
|
434
|
+
presetDescription: string;
|
|
435
|
+
presetShortDescription: string;
|
|
436
|
+
name?: string | undefined;
|
|
437
|
+
canvases?: {
|
|
438
|
+
name: string;
|
|
439
|
+
text: string;
|
|
440
|
+
}[] | undefined;
|
|
404
441
|
visibility?: "private" | "public" | "publish" | undefined;
|
|
405
|
-
presetDescription?: string | undefined;
|
|
406
442
|
messages?: {
|
|
407
|
-
message: string;
|
|
408
443
|
entityType: "system" | "agent" | "user" | "gimmick";
|
|
409
444
|
entityId: bigint;
|
|
445
|
+
message?: string | undefined;
|
|
446
|
+
image?: string | undefined;
|
|
410
447
|
}[] | undefined;
|
|
411
448
|
hashtags?: string[] | undefined;
|
|
412
449
|
isAllowImport?: boolean | undefined;
|
|
413
450
|
isSensitive?: boolean | undefined;
|
|
414
451
|
}, {
|
|
415
452
|
locationId: bigint;
|
|
453
|
+
presetDescription: string;
|
|
454
|
+
presetShortDescription: string;
|
|
455
|
+
name?: string | undefined;
|
|
456
|
+
canvases?: {
|
|
457
|
+
name: string;
|
|
458
|
+
text: string;
|
|
459
|
+
}[] | undefined;
|
|
416
460
|
visibility?: "private" | "public" | "publish" | undefined;
|
|
417
|
-
presetDescription?: string | undefined;
|
|
418
461
|
messages?: {
|
|
419
|
-
message: string;
|
|
420
462
|
entityType: "system" | "agent" | "user" | "gimmick";
|
|
421
463
|
entityId: bigint;
|
|
464
|
+
message?: string | undefined;
|
|
465
|
+
image?: string | undefined;
|
|
422
466
|
}[] | undefined;
|
|
423
467
|
hashtags?: string[] | undefined;
|
|
424
468
|
isAllowImport?: boolean | undefined;
|
|
@@ -437,7 +481,7 @@ export declare const GetLocationPresetParamsSchema: z.ZodObject<{
|
|
|
437
481
|
}>;
|
|
438
482
|
export type GetLocationPresetParamsDto = z.infer<typeof GetLocationPresetParamsSchema>;
|
|
439
483
|
export interface GetLocationPresetResponseDto {
|
|
440
|
-
preset:
|
|
484
|
+
preset: LocationPresetDetailDto;
|
|
441
485
|
}
|
|
442
486
|
export declare const UpdateLocationPresetParamsSchema: z.ZodObject<{
|
|
443
487
|
presetId: z.ZodBigInt;
|
|
@@ -449,7 +493,19 @@ export declare const UpdateLocationPresetParamsSchema: z.ZodObject<{
|
|
|
449
493
|
export type UpdateLocationPresetParamsDto = z.infer<typeof UpdateLocationPresetParamsSchema>;
|
|
450
494
|
export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
451
495
|
visibility: z.ZodOptional<z.ZodEnum<["private", "public", "publish"]>>;
|
|
496
|
+
name: z.ZodOptional<z.ZodString>;
|
|
452
497
|
presetDescription: z.ZodOptional<z.ZodString>;
|
|
498
|
+
presetShortDescription: z.ZodOptional<z.ZodString>;
|
|
499
|
+
canvases: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
500
|
+
name: z.ZodString;
|
|
501
|
+
text: z.ZodString;
|
|
502
|
+
}, "strip", z.ZodTypeAny, {
|
|
503
|
+
name: string;
|
|
504
|
+
text: string;
|
|
505
|
+
}, {
|
|
506
|
+
name: string;
|
|
507
|
+
text: string;
|
|
508
|
+
}>, "many">>;
|
|
453
509
|
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
454
510
|
entityType: z.ZodNativeEnum<{
|
|
455
511
|
readonly System: "system";
|
|
@@ -458,37 +514,54 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
|
458
514
|
readonly Gimmick: "gimmick";
|
|
459
515
|
}>;
|
|
460
516
|
entityId: z.ZodBigInt;
|
|
461
|
-
message: z.ZodString
|
|
517
|
+
message: z.ZodOptional<z.ZodString>;
|
|
518
|
+
image: z.ZodOptional<z.ZodString>;
|
|
462
519
|
}, "strip", z.ZodTypeAny, {
|
|
463
|
-
message: string;
|
|
464
520
|
entityType: "system" | "agent" | "user" | "gimmick";
|
|
465
521
|
entityId: bigint;
|
|
522
|
+
message?: string | undefined;
|
|
523
|
+
image?: string | undefined;
|
|
466
524
|
}, {
|
|
467
|
-
message: string;
|
|
468
525
|
entityType: "system" | "agent" | "user" | "gimmick";
|
|
469
526
|
entityId: bigint;
|
|
527
|
+
message?: string | undefined;
|
|
528
|
+
image?: string | undefined;
|
|
470
529
|
}>, "many">>;
|
|
471
530
|
hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
472
531
|
isAllowImport: z.ZodOptional<z.ZodBoolean>;
|
|
473
532
|
isSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
474
533
|
}, "strip", z.ZodTypeAny, {
|
|
534
|
+
name?: string | undefined;
|
|
535
|
+
canvases?: {
|
|
536
|
+
name: string;
|
|
537
|
+
text: string;
|
|
538
|
+
}[] | undefined;
|
|
475
539
|
visibility?: "private" | "public" | "publish" | undefined;
|
|
476
540
|
presetDescription?: string | undefined;
|
|
541
|
+
presetShortDescription?: string | undefined;
|
|
477
542
|
messages?: {
|
|
478
|
-
message: string;
|
|
479
543
|
entityType: "system" | "agent" | "user" | "gimmick";
|
|
480
544
|
entityId: bigint;
|
|
545
|
+
message?: string | undefined;
|
|
546
|
+
image?: string | undefined;
|
|
481
547
|
}[] | undefined;
|
|
482
548
|
hashtags?: string[] | undefined;
|
|
483
549
|
isAllowImport?: boolean | undefined;
|
|
484
550
|
isSensitive?: boolean | undefined;
|
|
485
551
|
}, {
|
|
552
|
+
name?: string | undefined;
|
|
553
|
+
canvases?: {
|
|
554
|
+
name: string;
|
|
555
|
+
text: string;
|
|
556
|
+
}[] | undefined;
|
|
486
557
|
visibility?: "private" | "public" | "publish" | undefined;
|
|
487
558
|
presetDescription?: string | undefined;
|
|
559
|
+
presetShortDescription?: string | undefined;
|
|
488
560
|
messages?: {
|
|
489
|
-
message: string;
|
|
490
561
|
entityType: "system" | "agent" | "user" | "gimmick";
|
|
491
562
|
entityId: bigint;
|
|
563
|
+
message?: string | undefined;
|
|
564
|
+
image?: string | undefined;
|
|
492
565
|
}[] | undefined;
|
|
493
566
|
hashtags?: string[] | undefined;
|
|
494
567
|
isAllowImport?: boolean | undefined;
|
|
@@ -510,6 +583,29 @@ export interface DeleteLocationPresetResponseDto {
|
|
|
510
583
|
success: boolean;
|
|
511
584
|
error?: string;
|
|
512
585
|
}
|
|
586
|
+
export declare const GetLocationPresetLocationsParamsSchema: z.ZodObject<{
|
|
587
|
+
presetId: z.ZodBigInt;
|
|
588
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
589
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
590
|
+
}, "strip", z.ZodTypeAny, {
|
|
591
|
+
limit: number;
|
|
592
|
+
page: number;
|
|
593
|
+
presetId: bigint;
|
|
594
|
+
}, {
|
|
595
|
+
presetId: bigint;
|
|
596
|
+
limit?: number | undefined;
|
|
597
|
+
page?: number | undefined;
|
|
598
|
+
}>;
|
|
599
|
+
export type GetLocationPresetLocationsParamsDto = z.infer<typeof GetLocationPresetLocationsParamsSchema>;
|
|
600
|
+
export interface GetLocationPresetLocationsResponseDto {
|
|
601
|
+
locations: LocationListItemDto[];
|
|
602
|
+
meta: {
|
|
603
|
+
total: number;
|
|
604
|
+
page: number;
|
|
605
|
+
limit: number;
|
|
606
|
+
totalPages: number;
|
|
607
|
+
};
|
|
608
|
+
}
|
|
513
609
|
export declare const CreateLocationSchema: z.ZodObject<{
|
|
514
610
|
config: z.ZodObject<{
|
|
515
611
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -557,7 +653,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
557
653
|
maxLength: number;
|
|
558
654
|
}>, "many">>;
|
|
559
655
|
gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
560
|
-
core: z.ZodUnion<[z.ZodLiteral<"
|
|
656
|
+
core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
|
|
561
657
|
name: z.ZodString;
|
|
562
658
|
appearance: z.ZodString;
|
|
563
659
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -572,16 +668,16 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
572
668
|
}>, "many">>;
|
|
573
669
|
}, "strip", z.ZodTypeAny, {
|
|
574
670
|
name: string;
|
|
671
|
+
core: "web_search" | "image_generator" | "notion";
|
|
575
672
|
appearance: string;
|
|
576
|
-
core: "notion" | "web_search" | "image_generator";
|
|
577
673
|
images?: {
|
|
578
674
|
description: string;
|
|
579
675
|
url: string;
|
|
580
676
|
}[] | undefined;
|
|
581
677
|
}, {
|
|
582
678
|
name: string;
|
|
679
|
+
core: "web_search" | "image_generator" | "notion";
|
|
583
680
|
appearance: string;
|
|
584
|
-
core: "notion" | "web_search" | "image_generator";
|
|
585
681
|
images?: {
|
|
586
682
|
description: string;
|
|
587
683
|
url: string;
|
|
@@ -589,15 +685,15 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
589
685
|
}>, "many">>;
|
|
590
686
|
}, "strict", z.ZodTypeAny, {
|
|
591
687
|
name?: string | undefined;
|
|
592
|
-
|
|
688
|
+
thumbnail?: string | null | undefined;
|
|
689
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
593
690
|
core?: {
|
|
594
691
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
595
692
|
sequential?: boolean | undefined;
|
|
596
693
|
interval?: number | undefined;
|
|
597
694
|
} | undefined;
|
|
695
|
+
description?: string | undefined;
|
|
598
696
|
rules?: string[] | undefined;
|
|
599
|
-
thumbnail?: string | null | undefined;
|
|
600
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
601
697
|
canvases?: {
|
|
602
698
|
name: string;
|
|
603
699
|
description: string;
|
|
@@ -610,8 +706,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
610
706
|
}[] | undefined;
|
|
611
707
|
gimmicks?: {
|
|
612
708
|
name: string;
|
|
709
|
+
core: "web_search" | "image_generator" | "notion";
|
|
613
710
|
appearance: string;
|
|
614
|
-
core: "notion" | "web_search" | "image_generator";
|
|
615
711
|
images?: {
|
|
616
712
|
description: string;
|
|
617
713
|
url: string;
|
|
@@ -619,15 +715,15 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
619
715
|
}[] | undefined;
|
|
620
716
|
}, {
|
|
621
717
|
name?: string | undefined;
|
|
622
|
-
|
|
718
|
+
thumbnail?: string | null | undefined;
|
|
719
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
623
720
|
core?: {
|
|
624
721
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
625
722
|
sequential?: boolean | undefined;
|
|
626
723
|
interval?: number | undefined;
|
|
627
724
|
} | undefined;
|
|
725
|
+
description?: string | undefined;
|
|
628
726
|
rules?: string[] | undefined;
|
|
629
|
-
thumbnail?: string | null | undefined;
|
|
630
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
631
727
|
canvases?: {
|
|
632
728
|
name: string;
|
|
633
729
|
description: string;
|
|
@@ -640,8 +736,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
640
736
|
}[] | undefined;
|
|
641
737
|
gimmicks?: {
|
|
642
738
|
name: string;
|
|
739
|
+
core: "web_search" | "image_generator" | "notion";
|
|
643
740
|
appearance: string;
|
|
644
|
-
core: "notion" | "web_search" | "image_generator";
|
|
645
741
|
images?: {
|
|
646
742
|
description: string;
|
|
647
743
|
url: string;
|
|
@@ -655,15 +751,15 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
655
751
|
}, "strip", z.ZodTypeAny, {
|
|
656
752
|
config: {
|
|
657
753
|
name?: string | undefined;
|
|
658
|
-
|
|
754
|
+
thumbnail?: string | null | undefined;
|
|
755
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
659
756
|
core?: {
|
|
660
757
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
661
758
|
sequential?: boolean | undefined;
|
|
662
759
|
interval?: number | undefined;
|
|
663
760
|
} | undefined;
|
|
761
|
+
description?: string | undefined;
|
|
664
762
|
rules?: string[] | undefined;
|
|
665
|
-
thumbnail?: string | null | undefined;
|
|
666
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
667
763
|
canvases?: {
|
|
668
764
|
name: string;
|
|
669
765
|
description: string;
|
|
@@ -676,8 +772,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
676
772
|
}[] | undefined;
|
|
677
773
|
gimmicks?: {
|
|
678
774
|
name: string;
|
|
775
|
+
core: "web_search" | "image_generator" | "notion";
|
|
679
776
|
appearance: string;
|
|
680
|
-
core: "notion" | "web_search" | "image_generator";
|
|
681
777
|
images?: {
|
|
682
778
|
description: string;
|
|
683
779
|
url: string;
|
|
@@ -688,15 +784,15 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
688
784
|
}, {
|
|
689
785
|
config: {
|
|
690
786
|
name?: string | undefined;
|
|
691
|
-
|
|
787
|
+
thumbnail?: string | null | undefined;
|
|
788
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
692
789
|
core?: {
|
|
693
790
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
694
791
|
sequential?: boolean | undefined;
|
|
695
792
|
interval?: number | undefined;
|
|
696
793
|
} | undefined;
|
|
794
|
+
description?: string | undefined;
|
|
697
795
|
rules?: string[] | undefined;
|
|
698
|
-
thumbnail?: string | null | undefined;
|
|
699
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
700
796
|
canvases?: {
|
|
701
797
|
name: string;
|
|
702
798
|
description: string;
|
|
@@ -709,8 +805,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
709
805
|
}[] | undefined;
|
|
710
806
|
gimmicks?: {
|
|
711
807
|
name: string;
|
|
808
|
+
core: "web_search" | "image_generator" | "notion";
|
|
712
809
|
appearance: string;
|
|
713
|
-
core: "notion" | "web_search" | "image_generator";
|
|
714
810
|
images?: {
|
|
715
811
|
description: string;
|
|
716
812
|
url: string;
|
|
@@ -765,8 +861,8 @@ export declare const GetAgentHelperLocationQuerySchema: z.ZodObject<{
|
|
|
765
861
|
readonly MINIMO: "MINIMO";
|
|
766
862
|
}>>>;
|
|
767
863
|
}, "strip", z.ZodTypeAny, {
|
|
768
|
-
agentId: bigint;
|
|
769
864
|
platform: "API" | "MINIMO";
|
|
865
|
+
agentId: bigint;
|
|
770
866
|
}, {
|
|
771
867
|
agentId: bigint;
|
|
772
868
|
platform?: "API" | "MINIMO" | undefined;
|
|
@@ -799,8 +895,8 @@ export declare const GetAgentDmLocationQuerySchema: z.ZodObject<{
|
|
|
799
895
|
readonly MINIMO: "MINIMO";
|
|
800
896
|
}>>>;
|
|
801
897
|
}, "strip", z.ZodTypeAny, {
|
|
802
|
-
agentId: bigint;
|
|
803
898
|
platform: "API" | "MINIMO";
|
|
899
|
+
agentId: bigint;
|
|
804
900
|
}, {
|
|
805
901
|
agentId: bigint;
|
|
806
902
|
platform?: "API" | "MINIMO" | undefined;
|
|
@@ -989,11 +1085,11 @@ export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
|
|
|
989
1085
|
locationId: z.ZodBigInt;
|
|
990
1086
|
agentId: z.ZodBigInt;
|
|
991
1087
|
}, "strip", z.ZodTypeAny, {
|
|
992
|
-
agentId: bigint;
|
|
993
1088
|
locationId: bigint;
|
|
994
|
-
}, {
|
|
995
1089
|
agentId: bigint;
|
|
1090
|
+
}, {
|
|
996
1091
|
locationId: bigint;
|
|
1092
|
+
agentId: bigint;
|
|
997
1093
|
}>;
|
|
998
1094
|
export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
|
|
999
1095
|
export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
|
|
@@ -1020,11 +1116,11 @@ export declare const RemoveAgentFromLocationToolSchema: z.ZodObject<{
|
|
|
1020
1116
|
locationId: z.ZodBigInt;
|
|
1021
1117
|
agentId: z.ZodBigInt;
|
|
1022
1118
|
}, "strip", z.ZodTypeAny, {
|
|
1023
|
-
agentId: bigint;
|
|
1024
1119
|
locationId: bigint;
|
|
1025
|
-
}, {
|
|
1026
1120
|
agentId: bigint;
|
|
1121
|
+
}, {
|
|
1027
1122
|
locationId: bigint;
|
|
1123
|
+
agentId: bigint;
|
|
1028
1124
|
}>;
|
|
1029
1125
|
export type RemoveAgentFromLocationToolDto = z.infer<typeof RemoveAgentFromLocationToolSchema>;
|
|
1030
1126
|
export declare const UpdateLocationParamsSchema: z.ZodObject<{
|
|
@@ -1287,15 +1383,15 @@ export declare const SendLocationMessageSchema: z.ZodObject<{
|
|
|
1287
1383
|
}, "strip", z.ZodTypeAny, {
|
|
1288
1384
|
locationId: bigint;
|
|
1289
1385
|
message?: string | undefined;
|
|
1290
|
-
action?: string | undefined;
|
|
1291
1386
|
image?: string | undefined;
|
|
1387
|
+
action?: string | undefined;
|
|
1292
1388
|
creditAmount?: number | undefined;
|
|
1293
1389
|
paidCreditOnly?: boolean | undefined;
|
|
1294
1390
|
}, {
|
|
1295
1391
|
locationId: bigint;
|
|
1296
1392
|
message?: string | undefined;
|
|
1297
|
-
action?: string | undefined;
|
|
1298
1393
|
image?: string | undefined;
|
|
1394
|
+
action?: string | undefined;
|
|
1299
1395
|
creditAmount?: number | undefined;
|
|
1300
1396
|
paidCreditOnly?: boolean | undefined;
|
|
1301
1397
|
}>;
|
|
@@ -1323,12 +1419,12 @@ export declare const UpdateLocationImageSchema: z.ZodObject<{
|
|
|
1323
1419
|
image: z.ZodString;
|
|
1324
1420
|
index: z.ZodOptional<z.ZodNumber>;
|
|
1325
1421
|
}, "strip", z.ZodTypeAny, {
|
|
1326
|
-
locationId: bigint;
|
|
1327
1422
|
image: string;
|
|
1423
|
+
locationId: bigint;
|
|
1328
1424
|
index?: number | undefined;
|
|
1329
1425
|
}, {
|
|
1330
|
-
locationId: bigint;
|
|
1331
1426
|
image: string;
|
|
1427
|
+
locationId: bigint;
|
|
1332
1428
|
index?: number | undefined;
|
|
1333
1429
|
}>;
|
|
1334
1430
|
export type UpdateLocationImageDto = z.infer<typeof UpdateLocationImageSchema>;
|
|
@@ -1353,12 +1449,12 @@ export declare const UpdateLocationAgentIsActiveSchema: z.ZodObject<{
|
|
|
1353
1449
|
agentId: z.ZodBigInt;
|
|
1354
1450
|
isActive: z.ZodBoolean;
|
|
1355
1451
|
}, "strip", z.ZodTypeAny, {
|
|
1356
|
-
agentId: bigint;
|
|
1357
1452
|
locationId: bigint;
|
|
1453
|
+
agentId: bigint;
|
|
1358
1454
|
isActive: boolean;
|
|
1359
1455
|
}, {
|
|
1360
|
-
agentId: bigint;
|
|
1361
1456
|
locationId: bigint;
|
|
1457
|
+
agentId: bigint;
|
|
1362
1458
|
isActive: boolean;
|
|
1363
1459
|
}>;
|
|
1364
1460
|
export type UpdateLocationAgentIsActiveDto = z.infer<typeof UpdateLocationAgentIsActiveSchema>;
|