@little-samo/samo-ai-sdk 0.2.0 → 0.2.1-rv2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dto/entities/agents/agent.requests.d.ts +24 -24
- package/dist/dto/entities/gimmicks/gimmick.config.d.ts +1 -1
- package/dist/dto/entities/users/user.d.ts +3 -0
- package/dist/dto/entities/users/user.events.d.ts +7 -2
- package/dist/dto/entities/users/user.events.js +1 -0
- package/dist/dto/entities/users/user.events.js.map +1 -1
- package/dist/dto/entities/users/user.requests.d.ts +39 -0
- package/dist/dto/entities/users/user.requests.js +22 -1
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/index.d.ts +1 -0
- package/dist/dto/index.js +1 -0
- package/dist/dto/index.js.map +1 -1
- package/dist/dto/items/item.events.d.ts +2 -1
- package/dist/dto/items/item.events.js.map +1 -1
- package/dist/dto/locations/location.d.ts +2 -0
- package/dist/dto/locations/location.preset.d.ts +57 -8
- 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 +301 -41
- package/dist/dto/locations/location.requests.js +56 -7
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/dist/dto/rankings/index.d.ts +1 -0
- package/dist/dto/rankings/index.js +18 -0
- package/dist/dto/rankings/index.js.map +1 -0
- package/dist/dto/rankings/ranking.d.ts +14 -0
- package/dist/dto/rankings/ranking.js +3 -0
- package/dist/dto/rankings/ranking.js.map +1 -0
- package/dist/models/entities/agents/agent.config.js +2 -2
- package/dist/models/entities/agents/agent.config.js.map +1 -1
- package/dist/models/locations/location.config.d.ts +12 -12
- package/dist/models/locations/location.config.js +1 -1
- package/package.json +3 -3
|
@@ -4,9 +4,10 @@ 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
|
+
import type { AgentPrivateDto } from '../entities';
|
|
10
11
|
export declare const UserLocationsQuerySchema: z.ZodObject<{
|
|
11
12
|
cursor: z.ZodOptional<z.ZodString>;
|
|
12
13
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
@@ -129,16 +130,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
129
130
|
}>, "many">>;
|
|
130
131
|
}, "strip", z.ZodTypeAny, {
|
|
131
132
|
name: string;
|
|
132
|
-
appearance: string;
|
|
133
133
|
core: "web_search" | "image_generator" | "notion";
|
|
134
|
+
appearance: string;
|
|
134
135
|
images?: {
|
|
135
136
|
description: string;
|
|
136
137
|
url: string;
|
|
137
138
|
}[] | undefined;
|
|
138
139
|
}, {
|
|
139
140
|
name: string;
|
|
140
|
-
appearance: string;
|
|
141
141
|
core: "web_search" | "image_generator" | "notion";
|
|
142
|
+
appearance: string;
|
|
142
143
|
images?: {
|
|
143
144
|
description: string;
|
|
144
145
|
url: string;
|
|
@@ -146,15 +147,15 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
146
147
|
}>, "many">>;
|
|
147
148
|
}, "strict", z.ZodTypeAny, {
|
|
148
149
|
name?: string | undefined;
|
|
149
|
-
|
|
150
|
+
thumbnail?: string | null | undefined;
|
|
151
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
150
152
|
core?: {
|
|
151
153
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
152
154
|
sequential?: boolean | undefined;
|
|
153
155
|
interval?: number | undefined;
|
|
154
156
|
} | undefined;
|
|
157
|
+
description?: string | undefined;
|
|
155
158
|
rules?: string[] | undefined;
|
|
156
|
-
thumbnail?: string | null | undefined;
|
|
157
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
158
159
|
canvases?: {
|
|
159
160
|
name: string;
|
|
160
161
|
description: string;
|
|
@@ -167,8 +168,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
167
168
|
}[] | undefined;
|
|
168
169
|
gimmicks?: {
|
|
169
170
|
name: string;
|
|
170
|
-
appearance: string;
|
|
171
171
|
core: "web_search" | "image_generator" | "notion";
|
|
172
|
+
appearance: string;
|
|
172
173
|
images?: {
|
|
173
174
|
description: string;
|
|
174
175
|
url: string;
|
|
@@ -176,15 +177,15 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
176
177
|
}[] | undefined;
|
|
177
178
|
}, {
|
|
178
179
|
name?: string | undefined;
|
|
179
|
-
|
|
180
|
+
thumbnail?: string | null | undefined;
|
|
181
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
180
182
|
core?: {
|
|
181
183
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
182
184
|
sequential?: boolean | undefined;
|
|
183
185
|
interval?: number | undefined;
|
|
184
186
|
} | undefined;
|
|
187
|
+
description?: string | undefined;
|
|
185
188
|
rules?: string[] | undefined;
|
|
186
|
-
thumbnail?: string | null | undefined;
|
|
187
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
188
189
|
canvases?: {
|
|
189
190
|
name: string;
|
|
190
191
|
description: string;
|
|
@@ -197,8 +198,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
197
198
|
}[] | undefined;
|
|
198
199
|
gimmicks?: {
|
|
199
200
|
name: string;
|
|
200
|
-
appearance: string;
|
|
201
201
|
core: "web_search" | "image_generator" | "notion";
|
|
202
|
+
appearance: string;
|
|
202
203
|
images?: {
|
|
203
204
|
description: string;
|
|
204
205
|
url: string;
|
|
@@ -209,15 +210,15 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
209
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,8 +231,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
230
231
|
}[] | undefined;
|
|
231
232
|
gimmicks?: {
|
|
232
233
|
name: string;
|
|
233
|
-
appearance: string;
|
|
234
234
|
core: "web_search" | "image_generator" | "notion";
|
|
235
|
+
appearance: string;
|
|
235
236
|
images?: {
|
|
236
237
|
description: string;
|
|
237
238
|
url: string;
|
|
@@ -242,15 +243,15 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
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,8 +264,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
263
264
|
}[] | undefined;
|
|
264
265
|
gimmicks?: {
|
|
265
266
|
name: string;
|
|
266
|
-
appearance: string;
|
|
267
267
|
core: "web_search" | "image_generator" | "notion";
|
|
268
|
+
appearance: string;
|
|
268
269
|
images?: {
|
|
269
270
|
description: string;
|
|
270
271
|
url: string;
|
|
@@ -346,7 +347,30 @@ export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
|
|
|
346
347
|
}>;
|
|
347
348
|
export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
|
|
348
349
|
export interface LocationPresetsPaginatedResponseDto {
|
|
349
|
-
data:
|
|
350
|
+
data: LocationPresetDetailDto[];
|
|
351
|
+
meta: {
|
|
352
|
+
total: number;
|
|
353
|
+
page: number;
|
|
354
|
+
limit: number;
|
|
355
|
+
totalPages: number;
|
|
356
|
+
};
|
|
357
|
+
}
|
|
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>;
|
|
362
|
+
}, "strip", z.ZodTypeAny, {
|
|
363
|
+
limit: number;
|
|
364
|
+
type: "NOVEL";
|
|
365
|
+
page: number;
|
|
366
|
+
}, {
|
|
367
|
+
type: "NOVEL";
|
|
368
|
+
limit?: number | undefined;
|
|
369
|
+
page?: number | undefined;
|
|
370
|
+
}>;
|
|
371
|
+
export type PublishedLocationPresetsQueryDto = z.infer<typeof PublishedLocationPresetsQuerySchema>;
|
|
372
|
+
export interface PublishedLocationPresetsResponseDto {
|
|
373
|
+
data: LocationPresetDetailDto[];
|
|
350
374
|
meta: {
|
|
351
375
|
total: number;
|
|
352
376
|
page: number;
|
|
@@ -354,6 +378,232 @@ export interface LocationPresetsPaginatedResponseDto {
|
|
|
354
378
|
totalPages: number;
|
|
355
379
|
};
|
|
356
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
|
+
}
|
|
392
|
+
export declare const CreateLocationPresetSchema: z.ZodObject<{
|
|
393
|
+
locationId: z.ZodBigInt;
|
|
394
|
+
visibility: z.ZodOptional<z.ZodEnum<["private", "public", "publish"]>>;
|
|
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">>;
|
|
408
|
+
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
409
|
+
entityType: z.ZodNativeEnum<{
|
|
410
|
+
readonly System: "system";
|
|
411
|
+
readonly Agent: "agent";
|
|
412
|
+
readonly User: "user";
|
|
413
|
+
readonly Gimmick: "gimmick";
|
|
414
|
+
}>;
|
|
415
|
+
entityId: z.ZodBigInt;
|
|
416
|
+
message: z.ZodOptional<z.ZodString>;
|
|
417
|
+
image: z.ZodOptional<z.ZodString>;
|
|
418
|
+
}, "strip", z.ZodTypeAny, {
|
|
419
|
+
entityType: "system" | "agent" | "user" | "gimmick";
|
|
420
|
+
entityId: bigint;
|
|
421
|
+
message?: string | undefined;
|
|
422
|
+
image?: string | undefined;
|
|
423
|
+
}, {
|
|
424
|
+
entityType: "system" | "agent" | "user" | "gimmick";
|
|
425
|
+
entityId: bigint;
|
|
426
|
+
message?: string | undefined;
|
|
427
|
+
image?: string | undefined;
|
|
428
|
+
}>, "many">>;
|
|
429
|
+
hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
430
|
+
isAllowImport: z.ZodOptional<z.ZodBoolean>;
|
|
431
|
+
isSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
432
|
+
}, "strip", z.ZodTypeAny, {
|
|
433
|
+
locationId: bigint;
|
|
434
|
+
presetDescription: string;
|
|
435
|
+
presetShortDescription: string;
|
|
436
|
+
name?: string | undefined;
|
|
437
|
+
canvases?: {
|
|
438
|
+
name: string;
|
|
439
|
+
text: string;
|
|
440
|
+
}[] | undefined;
|
|
441
|
+
visibility?: "private" | "public" | "publish" | undefined;
|
|
442
|
+
messages?: {
|
|
443
|
+
entityType: "system" | "agent" | "user" | "gimmick";
|
|
444
|
+
entityId: bigint;
|
|
445
|
+
message?: string | undefined;
|
|
446
|
+
image?: string | undefined;
|
|
447
|
+
}[] | undefined;
|
|
448
|
+
hashtags?: string[] | undefined;
|
|
449
|
+
isAllowImport?: boolean | undefined;
|
|
450
|
+
isSensitive?: boolean | undefined;
|
|
451
|
+
}, {
|
|
452
|
+
locationId: bigint;
|
|
453
|
+
presetDescription: string;
|
|
454
|
+
presetShortDescription: string;
|
|
455
|
+
name?: string | undefined;
|
|
456
|
+
canvases?: {
|
|
457
|
+
name: string;
|
|
458
|
+
text: string;
|
|
459
|
+
}[] | undefined;
|
|
460
|
+
visibility?: "private" | "public" | "publish" | undefined;
|
|
461
|
+
messages?: {
|
|
462
|
+
entityType: "system" | "agent" | "user" | "gimmick";
|
|
463
|
+
entityId: bigint;
|
|
464
|
+
message?: string | undefined;
|
|
465
|
+
image?: string | undefined;
|
|
466
|
+
}[] | undefined;
|
|
467
|
+
hashtags?: string[] | undefined;
|
|
468
|
+
isAllowImport?: boolean | undefined;
|
|
469
|
+
isSensitive?: boolean | undefined;
|
|
470
|
+
}>;
|
|
471
|
+
export type CreateLocationPresetDto = z.infer<typeof CreateLocationPresetSchema>;
|
|
472
|
+
export interface CreateLocationPresetResponseDto {
|
|
473
|
+
preset: LocationPresetDto;
|
|
474
|
+
}
|
|
475
|
+
export declare const GetLocationPresetParamsSchema: z.ZodObject<{
|
|
476
|
+
presetId: z.ZodBigInt;
|
|
477
|
+
}, "strip", z.ZodTypeAny, {
|
|
478
|
+
presetId: bigint;
|
|
479
|
+
}, {
|
|
480
|
+
presetId: bigint;
|
|
481
|
+
}>;
|
|
482
|
+
export type GetLocationPresetParamsDto = z.infer<typeof GetLocationPresetParamsSchema>;
|
|
483
|
+
export interface GetLocationPresetResponseDto {
|
|
484
|
+
preset: LocationPresetDetailDto;
|
|
485
|
+
}
|
|
486
|
+
export declare const UpdateLocationPresetParamsSchema: z.ZodObject<{
|
|
487
|
+
presetId: z.ZodBigInt;
|
|
488
|
+
}, "strip", z.ZodTypeAny, {
|
|
489
|
+
presetId: bigint;
|
|
490
|
+
}, {
|
|
491
|
+
presetId: bigint;
|
|
492
|
+
}>;
|
|
493
|
+
export type UpdateLocationPresetParamsDto = z.infer<typeof UpdateLocationPresetParamsSchema>;
|
|
494
|
+
export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
|
|
495
|
+
visibility: z.ZodOptional<z.ZodEnum<["private", "public", "publish"]>>;
|
|
496
|
+
name: z.ZodOptional<z.ZodString>;
|
|
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">>;
|
|
509
|
+
messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
510
|
+
entityType: z.ZodNativeEnum<{
|
|
511
|
+
readonly System: "system";
|
|
512
|
+
readonly Agent: "agent";
|
|
513
|
+
readonly User: "user";
|
|
514
|
+
readonly Gimmick: "gimmick";
|
|
515
|
+
}>;
|
|
516
|
+
entityId: z.ZodBigInt;
|
|
517
|
+
message: z.ZodOptional<z.ZodString>;
|
|
518
|
+
image: z.ZodOptional<z.ZodString>;
|
|
519
|
+
}, "strip", z.ZodTypeAny, {
|
|
520
|
+
entityType: "system" | "agent" | "user" | "gimmick";
|
|
521
|
+
entityId: bigint;
|
|
522
|
+
message?: string | undefined;
|
|
523
|
+
image?: string | undefined;
|
|
524
|
+
}, {
|
|
525
|
+
entityType: "system" | "agent" | "user" | "gimmick";
|
|
526
|
+
entityId: bigint;
|
|
527
|
+
message?: string | undefined;
|
|
528
|
+
image?: string | undefined;
|
|
529
|
+
}>, "many">>;
|
|
530
|
+
hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
531
|
+
isAllowImport: z.ZodOptional<z.ZodBoolean>;
|
|
532
|
+
isSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
533
|
+
}, "strip", z.ZodTypeAny, {
|
|
534
|
+
name?: string | undefined;
|
|
535
|
+
canvases?: {
|
|
536
|
+
name: string;
|
|
537
|
+
text: string;
|
|
538
|
+
}[] | undefined;
|
|
539
|
+
visibility?: "private" | "public" | "publish" | undefined;
|
|
540
|
+
presetDescription?: string | undefined;
|
|
541
|
+
presetShortDescription?: string | undefined;
|
|
542
|
+
messages?: {
|
|
543
|
+
entityType: "system" | "agent" | "user" | "gimmick";
|
|
544
|
+
entityId: bigint;
|
|
545
|
+
message?: string | undefined;
|
|
546
|
+
image?: string | undefined;
|
|
547
|
+
}[] | undefined;
|
|
548
|
+
hashtags?: string[] | undefined;
|
|
549
|
+
isAllowImport?: boolean | undefined;
|
|
550
|
+
isSensitive?: boolean | undefined;
|
|
551
|
+
}, {
|
|
552
|
+
name?: string | undefined;
|
|
553
|
+
canvases?: {
|
|
554
|
+
name: string;
|
|
555
|
+
text: string;
|
|
556
|
+
}[] | undefined;
|
|
557
|
+
visibility?: "private" | "public" | "publish" | undefined;
|
|
558
|
+
presetDescription?: string | undefined;
|
|
559
|
+
presetShortDescription?: string | undefined;
|
|
560
|
+
messages?: {
|
|
561
|
+
entityType: "system" | "agent" | "user" | "gimmick";
|
|
562
|
+
entityId: bigint;
|
|
563
|
+
message?: string | undefined;
|
|
564
|
+
image?: string | undefined;
|
|
565
|
+
}[] | undefined;
|
|
566
|
+
hashtags?: string[] | undefined;
|
|
567
|
+
isAllowImport?: boolean | undefined;
|
|
568
|
+
isSensitive?: boolean | undefined;
|
|
569
|
+
}>;
|
|
570
|
+
export type UpdateLocationPresetBodyDto = z.infer<typeof UpdateLocationPresetBodySchema>;
|
|
571
|
+
export interface UpdateLocationPresetResponseDto {
|
|
572
|
+
preset: LocationPresetDto;
|
|
573
|
+
}
|
|
574
|
+
export declare const DeleteLocationPresetParamsSchema: z.ZodObject<{
|
|
575
|
+
presetId: z.ZodBigInt;
|
|
576
|
+
}, "strip", z.ZodTypeAny, {
|
|
577
|
+
presetId: bigint;
|
|
578
|
+
}, {
|
|
579
|
+
presetId: bigint;
|
|
580
|
+
}>;
|
|
581
|
+
export type DeleteLocationPresetParamsDto = z.infer<typeof DeleteLocationPresetParamsSchema>;
|
|
582
|
+
export interface DeleteLocationPresetResponseDto {
|
|
583
|
+
success: boolean;
|
|
584
|
+
error?: string;
|
|
585
|
+
}
|
|
586
|
+
export declare const GetLocationPresetLocationsParamsSchema: z.ZodObject<{
|
|
587
|
+
presetId: z.ZodBigInt;
|
|
588
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
589
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
590
|
+
}, "strip", z.ZodTypeAny, {
|
|
591
|
+
limit: number;
|
|
592
|
+
presetId: bigint;
|
|
593
|
+
cursor?: string | undefined;
|
|
594
|
+
}, {
|
|
595
|
+
presetId: bigint;
|
|
596
|
+
cursor?: string | undefined;
|
|
597
|
+
limit?: number | undefined;
|
|
598
|
+
}>;
|
|
599
|
+
export type GetLocationPresetLocationsParamsDto = z.infer<typeof GetLocationPresetLocationsParamsSchema>;
|
|
600
|
+
export interface GetLocationPresetLocationsResponseDto {
|
|
601
|
+
locations: LocationListItemDto[];
|
|
602
|
+
meta: {
|
|
603
|
+
total: number;
|
|
604
|
+
nextCursor?: string;
|
|
605
|
+
};
|
|
606
|
+
}
|
|
357
607
|
export declare const CreateLocationSchema: z.ZodObject<{
|
|
358
608
|
config: z.ZodObject<{
|
|
359
609
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -416,16 +666,16 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
416
666
|
}>, "many">>;
|
|
417
667
|
}, "strip", z.ZodTypeAny, {
|
|
418
668
|
name: string;
|
|
419
|
-
appearance: string;
|
|
420
669
|
core: "web_search" | "image_generator" | "notion";
|
|
670
|
+
appearance: string;
|
|
421
671
|
images?: {
|
|
422
672
|
description: string;
|
|
423
673
|
url: string;
|
|
424
674
|
}[] | undefined;
|
|
425
675
|
}, {
|
|
426
676
|
name: string;
|
|
427
|
-
appearance: string;
|
|
428
677
|
core: "web_search" | "image_generator" | "notion";
|
|
678
|
+
appearance: string;
|
|
429
679
|
images?: {
|
|
430
680
|
description: string;
|
|
431
681
|
url: string;
|
|
@@ -433,15 +683,15 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
433
683
|
}>, "many">>;
|
|
434
684
|
}, "strict", z.ZodTypeAny, {
|
|
435
685
|
name?: string | undefined;
|
|
436
|
-
|
|
686
|
+
thumbnail?: string | null | undefined;
|
|
687
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
437
688
|
core?: {
|
|
438
689
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
439
690
|
sequential?: boolean | undefined;
|
|
440
691
|
interval?: number | undefined;
|
|
441
692
|
} | undefined;
|
|
693
|
+
description?: string | undefined;
|
|
442
694
|
rules?: string[] | undefined;
|
|
443
|
-
thumbnail?: string | null | undefined;
|
|
444
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
445
695
|
canvases?: {
|
|
446
696
|
name: string;
|
|
447
697
|
description: string;
|
|
@@ -454,8 +704,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
454
704
|
}[] | undefined;
|
|
455
705
|
gimmicks?: {
|
|
456
706
|
name: string;
|
|
457
|
-
appearance: string;
|
|
458
707
|
core: "web_search" | "image_generator" | "notion";
|
|
708
|
+
appearance: string;
|
|
459
709
|
images?: {
|
|
460
710
|
description: string;
|
|
461
711
|
url: string;
|
|
@@ -463,15 +713,15 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
463
713
|
}[] | undefined;
|
|
464
714
|
}, {
|
|
465
715
|
name?: string | undefined;
|
|
466
|
-
|
|
716
|
+
thumbnail?: string | null | undefined;
|
|
717
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
467
718
|
core?: {
|
|
468
719
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
469
720
|
sequential?: boolean | undefined;
|
|
470
721
|
interval?: number | undefined;
|
|
471
722
|
} | undefined;
|
|
723
|
+
description?: string | undefined;
|
|
472
724
|
rules?: string[] | undefined;
|
|
473
|
-
thumbnail?: string | null | undefined;
|
|
474
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
475
725
|
canvases?: {
|
|
476
726
|
name: string;
|
|
477
727
|
description: string;
|
|
@@ -484,8 +734,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
484
734
|
}[] | undefined;
|
|
485
735
|
gimmicks?: {
|
|
486
736
|
name: string;
|
|
487
|
-
appearance: string;
|
|
488
737
|
core: "web_search" | "image_generator" | "notion";
|
|
738
|
+
appearance: string;
|
|
489
739
|
images?: {
|
|
490
740
|
description: string;
|
|
491
741
|
url: string;
|
|
@@ -499,15 +749,15 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
499
749
|
}, "strip", z.ZodTypeAny, {
|
|
500
750
|
config: {
|
|
501
751
|
name?: string | undefined;
|
|
502
|
-
|
|
752
|
+
thumbnail?: string | null | undefined;
|
|
753
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
503
754
|
core?: {
|
|
504
755
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
505
756
|
sequential?: boolean | undefined;
|
|
506
757
|
interval?: number | undefined;
|
|
507
758
|
} | undefined;
|
|
759
|
+
description?: string | undefined;
|
|
508
760
|
rules?: string[] | undefined;
|
|
509
|
-
thumbnail?: string | null | undefined;
|
|
510
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
511
761
|
canvases?: {
|
|
512
762
|
name: string;
|
|
513
763
|
description: string;
|
|
@@ -520,8 +770,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
520
770
|
}[] | undefined;
|
|
521
771
|
gimmicks?: {
|
|
522
772
|
name: string;
|
|
523
|
-
appearance: string;
|
|
524
773
|
core: "web_search" | "image_generator" | "notion";
|
|
774
|
+
appearance: string;
|
|
525
775
|
images?: {
|
|
526
776
|
description: string;
|
|
527
777
|
url: string;
|
|
@@ -532,15 +782,15 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
532
782
|
}, {
|
|
533
783
|
config: {
|
|
534
784
|
name?: string | undefined;
|
|
535
|
-
|
|
785
|
+
thumbnail?: string | null | undefined;
|
|
786
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
536
787
|
core?: {
|
|
537
788
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
538
789
|
sequential?: boolean | undefined;
|
|
539
790
|
interval?: number | undefined;
|
|
540
791
|
} | undefined;
|
|
792
|
+
description?: string | undefined;
|
|
541
793
|
rules?: string[] | undefined;
|
|
542
|
-
thumbnail?: string | null | undefined;
|
|
543
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
544
794
|
canvases?: {
|
|
545
795
|
name: string;
|
|
546
796
|
description: string;
|
|
@@ -553,8 +803,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
553
803
|
}[] | undefined;
|
|
554
804
|
gimmicks?: {
|
|
555
805
|
name: string;
|
|
556
|
-
appearance: string;
|
|
557
806
|
core: "web_search" | "image_generator" | "notion";
|
|
807
|
+
appearance: string;
|
|
558
808
|
images?: {
|
|
559
809
|
description: string;
|
|
560
810
|
url: string;
|
|
@@ -573,16 +823,20 @@ export declare const CreateLocationFromPresetSchema: z.ZodObject<{
|
|
|
573
823
|
readonly API: "API";
|
|
574
824
|
readonly MINIMO: "MINIMO";
|
|
575
825
|
}>>>;
|
|
826
|
+
import: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
576
827
|
}, "strip", z.ZodTypeAny, {
|
|
577
|
-
platform: "API" | "MINIMO";
|
|
578
828
|
presetId: bigint;
|
|
829
|
+
platform: "API" | "MINIMO";
|
|
830
|
+
import: boolean;
|
|
579
831
|
}, {
|
|
580
832
|
presetId: bigint;
|
|
581
833
|
platform?: "API" | "MINIMO" | undefined;
|
|
834
|
+
import?: boolean | undefined;
|
|
582
835
|
}>;
|
|
583
836
|
export type CreateLocationFromPresetDto = z.infer<typeof CreateLocationFromPresetSchema>;
|
|
584
837
|
export interface CreateLocationFromPresetResponseDto {
|
|
585
838
|
location: LocationPrivateDto;
|
|
839
|
+
agents: AgentPrivateDto[];
|
|
586
840
|
}
|
|
587
841
|
export declare const GetHelperLocationQuerySchema: z.ZodObject<{
|
|
588
842
|
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
@@ -879,12 +1133,16 @@ export declare const UpdateLocationBodySchema: z.ZodObject<{
|
|
|
879
1133
|
visibility: z.ZodOptional<z.ZodEnum<["private", "public", "publish"]>>;
|
|
880
1134
|
maxUsers: z.ZodOptional<z.ZodNumber>;
|
|
881
1135
|
publishDescription: z.ZodOptional<z.ZodString>;
|
|
1136
|
+
hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
882
1137
|
useLocationCreditOnly: z.ZodOptional<z.ZodBoolean>;
|
|
883
1138
|
creditCostPerChat: z.ZodOptional<z.ZodNumber>;
|
|
884
1139
|
chatRequiresPaidCredit: z.ZodOptional<z.ZodBoolean>;
|
|
885
1140
|
isAdminChat: z.ZodOptional<z.ZodBoolean>;
|
|
1141
|
+
isSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
886
1142
|
}, "strip", z.ZodTypeAny, {
|
|
887
1143
|
visibility?: "private" | "public" | "publish" | undefined;
|
|
1144
|
+
hashtags?: string[] | undefined;
|
|
1145
|
+
isSensitive?: boolean | undefined;
|
|
888
1146
|
maxUsers?: number | undefined;
|
|
889
1147
|
publishDescription?: string | undefined;
|
|
890
1148
|
useLocationCreditOnly?: boolean | undefined;
|
|
@@ -893,6 +1151,8 @@ export declare const UpdateLocationBodySchema: z.ZodObject<{
|
|
|
893
1151
|
isAdminChat?: boolean | undefined;
|
|
894
1152
|
}, {
|
|
895
1153
|
visibility?: "private" | "public" | "publish" | undefined;
|
|
1154
|
+
hashtags?: string[] | undefined;
|
|
1155
|
+
isSensitive?: boolean | undefined;
|
|
896
1156
|
maxUsers?: number | undefined;
|
|
897
1157
|
publishDescription?: string | undefined;
|
|
898
1158
|
useLocationCreditOnly?: boolean | undefined;
|
|
@@ -1121,15 +1381,15 @@ export declare const SendLocationMessageSchema: z.ZodObject<{
|
|
|
1121
1381
|
}, "strip", z.ZodTypeAny, {
|
|
1122
1382
|
locationId: bigint;
|
|
1123
1383
|
message?: string | undefined;
|
|
1124
|
-
action?: string | undefined;
|
|
1125
1384
|
image?: string | undefined;
|
|
1385
|
+
action?: string | undefined;
|
|
1126
1386
|
creditAmount?: number | undefined;
|
|
1127
1387
|
paidCreditOnly?: boolean | undefined;
|
|
1128
1388
|
}, {
|
|
1129
1389
|
locationId: bigint;
|
|
1130
1390
|
message?: string | undefined;
|
|
1131
|
-
action?: string | undefined;
|
|
1132
1391
|
image?: string | undefined;
|
|
1392
|
+
action?: string | undefined;
|
|
1133
1393
|
creditAmount?: number | undefined;
|
|
1134
1394
|
paidCreditOnly?: boolean | undefined;
|
|
1135
1395
|
}>;
|