@little-samo/samo-ai-sdk 0.2.0 → 0.2.1-rv10

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.
Files changed (42) hide show
  1. package/dist/dto/entities/agents/agent.d.ts +1 -0
  2. package/dist/dto/entities/agents/agent.requests.d.ts +34 -34
  3. package/dist/dto/entities/gimmicks/gimmick.config.d.ts +2 -1
  4. package/dist/dto/entities/gimmicks/gimmick.config.js +1 -0
  5. package/dist/dto/entities/gimmicks/gimmick.config.js.map +1 -1
  6. package/dist/dto/entities/users/user.d.ts +6 -0
  7. package/dist/dto/entities/users/user.events.d.ts +7 -2
  8. package/dist/dto/entities/users/user.events.js +1 -0
  9. package/dist/dto/entities/users/user.events.js.map +1 -1
  10. package/dist/dto/entities/users/user.requests.d.ts +39 -0
  11. package/dist/dto/entities/users/user.requests.js +22 -1
  12. package/dist/dto/entities/users/user.requests.js.map +1 -1
  13. package/dist/dto/index.d.ts +1 -0
  14. package/dist/dto/index.js +1 -0
  15. package/dist/dto/index.js.map +1 -1
  16. package/dist/dto/items/item.events.d.ts +2 -1
  17. package/dist/dto/items/item.events.js.map +1 -1
  18. package/dist/dto/locations/location.d.ts +7 -1
  19. package/dist/dto/locations/location.events.d.ts +5 -1
  20. package/dist/dto/locations/location.events.js +1 -0
  21. package/dist/dto/locations/location.events.js.map +1 -1
  22. package/dist/dto/locations/location.message.d.ts +1 -0
  23. package/dist/dto/locations/location.preset.d.ts +63 -8
  24. package/dist/dto/locations/location.preset.js +19 -0
  25. package/dist/dto/locations/location.preset.js.map +1 -1
  26. package/dist/dto/locations/location.requests.d.ts +430 -61
  27. package/dist/dto/locations/location.requests.js +82 -7
  28. package/dist/dto/locations/location.requests.js.map +1 -1
  29. package/dist/dto/locations/location.snapshot.d.ts +2 -0
  30. package/dist/dto/rankings/index.d.ts +1 -0
  31. package/dist/dto/rankings/index.js +18 -0
  32. package/dist/dto/rankings/index.js.map +1 -0
  33. package/dist/dto/rankings/ranking.d.ts +14 -0
  34. package/dist/dto/rankings/ranking.js +3 -0
  35. package/dist/dto/rankings/ranking.js.map +1 -0
  36. package/dist/models/entities/agents/agent.config.d.ts +4 -4
  37. package/dist/models/entities/agents/agent.config.js +9 -3
  38. package/dist/models/entities/agents/agent.config.js.map +1 -1
  39. package/dist/models/locations/location.config.d.ts +48 -25
  40. package/dist/models/locations/location.config.js +16 -3
  41. package/dist/models/locations/location.config.js.map +1 -1
  42. 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>;
@@ -76,14 +77,17 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
76
77
  name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">, z.ZodLiteral<"update_until_idle">]>;
77
78
  sequential: z.ZodOptional<z.ZodBoolean>;
78
79
  interval: z.ZodOptional<z.ZodNumber>;
80
+ maxAgentExecutions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
79
81
  }, "strip", z.ZodTypeAny, {
80
82
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
81
83
  sequential?: boolean | undefined;
82
84
  interval?: number | undefined;
85
+ maxAgentExecutions?: number | null | undefined;
83
86
  }, {
84
87
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
85
88
  sequential?: boolean | undefined;
86
89
  interval?: number | undefined;
90
+ maxAgentExecutions?: number | null | undefined;
87
91
  }>>;
88
92
  description: z.ZodOptional<z.ZodString>;
89
93
  rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -114,47 +118,53 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
114
118
  maxLength: number;
115
119
  }>, "many">>;
116
120
  gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
117
- core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
121
+ core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "character_image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "character_image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "character_image_generator" | "notion">[]]>;
118
122
  name: z.ZodString;
119
123
  appearance: z.ZodString;
120
124
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
121
- url: z.ZodUnion<[z.ZodString, z.ZodString]>;
125
+ url: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodString]>;
126
+ name: z.ZodOptional<z.ZodString>;
122
127
  description: z.ZodString;
123
128
  }, "strip", z.ZodTypeAny, {
124
129
  description: string;
125
- url: string;
130
+ name?: string | undefined;
131
+ url?: string | undefined;
126
132
  }, {
127
133
  description: string;
128
- url: string;
134
+ name?: string | undefined;
135
+ url?: string | undefined;
129
136
  }>, "many">>;
130
137
  }, "strip", z.ZodTypeAny, {
131
138
  name: string;
139
+ core: "web_search" | "image_generator" | "character_image_generator" | "notion";
132
140
  appearance: string;
133
- core: "web_search" | "image_generator" | "notion";
134
141
  images?: {
135
142
  description: string;
136
- url: string;
143
+ name?: string | undefined;
144
+ url?: string | undefined;
137
145
  }[] | undefined;
138
146
  }, {
139
147
  name: string;
148
+ core: "web_search" | "image_generator" | "character_image_generator" | "notion";
140
149
  appearance: string;
141
- core: "web_search" | "image_generator" | "notion";
142
150
  images?: {
143
151
  description: string;
144
- url: string;
152
+ name?: string | undefined;
153
+ url?: string | undefined;
145
154
  }[] | undefined;
146
155
  }>, "many">>;
147
156
  }, "strict", z.ZodTypeAny, {
148
157
  name?: string | undefined;
149
- description?: string | undefined;
158
+ thumbnail?: string | null | undefined;
159
+ environment?: "CHAT" | "NOVEL" | undefined;
150
160
  core?: {
151
161
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
152
162
  sequential?: boolean | undefined;
153
163
  interval?: number | undefined;
164
+ maxAgentExecutions?: number | null | undefined;
154
165
  } | undefined;
166
+ description?: string | undefined;
155
167
  rules?: string[] | undefined;
156
- thumbnail?: string | null | undefined;
157
- environment?: "CHAT" | "NOVEL" | undefined;
158
168
  canvases?: {
159
169
  name: string;
160
170
  description: string;
@@ -167,24 +177,26 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
167
177
  }[] | undefined;
168
178
  gimmicks?: {
169
179
  name: string;
180
+ core: "web_search" | "image_generator" | "character_image_generator" | "notion";
170
181
  appearance: string;
171
- core: "web_search" | "image_generator" | "notion";
172
182
  images?: {
173
183
  description: string;
174
- url: string;
184
+ name?: string | undefined;
185
+ url?: string | undefined;
175
186
  }[] | undefined;
176
187
  }[] | undefined;
177
188
  }, {
178
189
  name?: string | undefined;
179
- description?: string | undefined;
190
+ thumbnail?: string | null | undefined;
191
+ environment?: "CHAT" | "NOVEL" | undefined;
180
192
  core?: {
181
193
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
182
194
  sequential?: boolean | undefined;
183
195
  interval?: number | undefined;
196
+ maxAgentExecutions?: number | null | undefined;
184
197
  } | undefined;
198
+ description?: string | undefined;
185
199
  rules?: string[] | undefined;
186
- thumbnail?: string | null | undefined;
187
- environment?: "CHAT" | "NOVEL" | undefined;
188
200
  canvases?: {
189
201
  name: string;
190
202
  description: string;
@@ -197,11 +209,12 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
197
209
  }[] | undefined;
198
210
  gimmicks?: {
199
211
  name: string;
212
+ core: "web_search" | "image_generator" | "character_image_generator" | "notion";
200
213
  appearance: string;
201
- core: "web_search" | "image_generator" | "notion";
202
214
  images?: {
203
215
  description: string;
204
- url: string;
216
+ name?: string | undefined;
217
+ url?: string | undefined;
205
218
  }[] | undefined;
206
219
  }[] | undefined;
207
220
  }>;
@@ -209,15 +222,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
209
222
  locationId: bigint;
210
223
  config: {
211
224
  name?: string | undefined;
212
- description?: string | undefined;
225
+ thumbnail?: string | null | undefined;
226
+ environment?: "CHAT" | "NOVEL" | undefined;
213
227
  core?: {
214
228
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
215
229
  sequential?: boolean | undefined;
216
230
  interval?: number | undefined;
231
+ maxAgentExecutions?: number | null | undefined;
217
232
  } | undefined;
233
+ description?: string | undefined;
218
234
  rules?: string[] | undefined;
219
- thumbnail?: string | null | undefined;
220
- environment?: "CHAT" | "NOVEL" | undefined;
221
235
  canvases?: {
222
236
  name: string;
223
237
  description: string;
@@ -230,11 +244,12 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
230
244
  }[] | undefined;
231
245
  gimmicks?: {
232
246
  name: string;
247
+ core: "web_search" | "image_generator" | "character_image_generator" | "notion";
233
248
  appearance: string;
234
- core: "web_search" | "image_generator" | "notion";
235
249
  images?: {
236
250
  description: string;
237
- url: string;
251
+ name?: string | undefined;
252
+ url?: string | undefined;
238
253
  }[] | undefined;
239
254
  }[] | undefined;
240
255
  };
@@ -242,15 +257,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
242
257
  locationId: bigint;
243
258
  config: {
244
259
  name?: string | undefined;
245
- description?: string | undefined;
260
+ thumbnail?: string | null | undefined;
261
+ environment?: "CHAT" | "NOVEL" | undefined;
246
262
  core?: {
247
263
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
248
264
  sequential?: boolean | undefined;
249
265
  interval?: number | undefined;
266
+ maxAgentExecutions?: number | null | undefined;
250
267
  } | undefined;
268
+ description?: string | undefined;
251
269
  rules?: string[] | undefined;
252
- thumbnail?: string | null | undefined;
253
- environment?: "CHAT" | "NOVEL" | undefined;
254
270
  canvases?: {
255
271
  name: string;
256
272
  description: string;
@@ -263,11 +279,12 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
263
279
  }[] | undefined;
264
280
  gimmicks?: {
265
281
  name: string;
282
+ core: "web_search" | "image_generator" | "character_image_generator" | "notion";
266
283
  appearance: string;
267
- core: "web_search" | "image_generator" | "notion";
268
284
  images?: {
269
285
  description: string;
270
- url: string;
286
+ name?: string | undefined;
287
+ url?: string | undefined;
271
288
  }[] | undefined;
272
289
  }[] | undefined;
273
290
  };
@@ -346,7 +363,7 @@ export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
346
363
  }>;
347
364
  export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
348
365
  export interface LocationPresetsPaginatedResponseDto {
349
- data: LocationPresetDto[];
366
+ data: LocationPresetDetailDto[];
350
367
  meta: {
351
368
  total: number;
352
369
  page: number;
@@ -354,6 +371,286 @@ export interface LocationPresetsPaginatedResponseDto {
354
371
  totalPages: number;
355
372
  };
356
373
  }
374
+ export declare const PublishedLocationPresetsQuerySchema: z.ZodObject<{
375
+ type: z.ZodEnum<["NOVEL"]>;
376
+ page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
377
+ limit: z.ZodDefault<z.ZodNumber>;
378
+ }, "strip", z.ZodTypeAny, {
379
+ limit: number;
380
+ type: "NOVEL";
381
+ page: number;
382
+ }, {
383
+ type: "NOVEL";
384
+ limit?: number | undefined;
385
+ page?: number | undefined;
386
+ }>;
387
+ export type PublishedLocationPresetsQueryDto = z.infer<typeof PublishedLocationPresetsQuerySchema>;
388
+ export interface PublishedLocationPresetsResponseDto {
389
+ data: LocationPresetDetailDto[];
390
+ meta: {
391
+ total: number;
392
+ page: number;
393
+ limit: number;
394
+ totalPages: number;
395
+ };
396
+ }
397
+ export declare const TrendingLocationPresetsQuerySchema: z.ZodObject<{
398
+ type: z.ZodEnum<["NOVEL"]>;
399
+ }, "strip", z.ZodTypeAny, {
400
+ type: "NOVEL";
401
+ }, {
402
+ type: "NOVEL";
403
+ }>;
404
+ export type TrendingLocationPresetsQueryDto = z.infer<typeof TrendingLocationPresetsQuerySchema>;
405
+ export interface TrendingLocationPresetsResponseDto {
406
+ data: LocationPresetDetailDto[];
407
+ }
408
+ export declare const CreateLocationPresetSchema: z.ZodObject<{
409
+ locationId: z.ZodBigInt;
410
+ visibility: z.ZodOptional<z.ZodEnum<["private", "public", "publish"]>>;
411
+ name: z.ZodOptional<z.ZodString>;
412
+ presetDescription: z.ZodString;
413
+ presetShortDescription: z.ZodString;
414
+ canvases: z.ZodOptional<z.ZodArray<z.ZodObject<{
415
+ name: z.ZodString;
416
+ text: z.ZodString;
417
+ }, "strip", z.ZodTypeAny, {
418
+ name: string;
419
+ text: string;
420
+ }, {
421
+ name: string;
422
+ text: string;
423
+ }>, "many">>;
424
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
425
+ entityType: z.ZodNativeEnum<{
426
+ readonly System: "system";
427
+ readonly Agent: "agent";
428
+ readonly User: "user";
429
+ readonly Gimmick: "gimmick";
430
+ }>;
431
+ entityId: z.ZodBigInt;
432
+ message: z.ZodOptional<z.ZodString>;
433
+ image: z.ZodOptional<z.ZodString>;
434
+ }, "strip", z.ZodTypeAny, {
435
+ entityType: "system" | "agent" | "user" | "gimmick";
436
+ entityId: bigint;
437
+ message?: string | undefined;
438
+ image?: string | undefined;
439
+ }, {
440
+ entityType: "system" | "agent" | "user" | "gimmick";
441
+ entityId: bigint;
442
+ message?: string | undefined;
443
+ image?: string | undefined;
444
+ }>, "many">>;
445
+ hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
446
+ isAllowImport: z.ZodOptional<z.ZodBoolean>;
447
+ isSensitive: z.ZodOptional<z.ZodBoolean>;
448
+ }, "strip", z.ZodTypeAny, {
449
+ locationId: bigint;
450
+ presetDescription: string;
451
+ presetShortDescription: string;
452
+ name?: string | undefined;
453
+ canvases?: {
454
+ name: string;
455
+ text: string;
456
+ }[] | undefined;
457
+ visibility?: "private" | "public" | "publish" | undefined;
458
+ messages?: {
459
+ entityType: "system" | "agent" | "user" | "gimmick";
460
+ entityId: bigint;
461
+ message?: string | undefined;
462
+ image?: string | undefined;
463
+ }[] | undefined;
464
+ hashtags?: string[] | undefined;
465
+ isAllowImport?: boolean | undefined;
466
+ isSensitive?: boolean | undefined;
467
+ }, {
468
+ locationId: bigint;
469
+ presetDescription: string;
470
+ presetShortDescription: string;
471
+ name?: string | undefined;
472
+ canvases?: {
473
+ name: string;
474
+ text: string;
475
+ }[] | undefined;
476
+ visibility?: "private" | "public" | "publish" | undefined;
477
+ messages?: {
478
+ entityType: "system" | "agent" | "user" | "gimmick";
479
+ entityId: bigint;
480
+ message?: string | undefined;
481
+ image?: string | undefined;
482
+ }[] | undefined;
483
+ hashtags?: string[] | undefined;
484
+ isAllowImport?: boolean | undefined;
485
+ isSensitive?: boolean | undefined;
486
+ }>;
487
+ export type CreateLocationPresetDto = z.infer<typeof CreateLocationPresetSchema>;
488
+ export interface CreateLocationPresetResponseDto {
489
+ preset: LocationPresetDto;
490
+ }
491
+ export declare const GetLocationPresetParamsSchema: z.ZodObject<{
492
+ presetId: z.ZodBigInt;
493
+ }, "strip", z.ZodTypeAny, {
494
+ presetId: bigint;
495
+ }, {
496
+ presetId: bigint;
497
+ }>;
498
+ export type GetLocationPresetParamsDto = z.infer<typeof GetLocationPresetParamsSchema>;
499
+ export interface GetLocationPresetResponseDto {
500
+ preset: LocationPresetDetailDto;
501
+ }
502
+ export declare const UpdateLocationPresetParamsSchema: z.ZodObject<{
503
+ presetId: z.ZodBigInt;
504
+ }, "strip", z.ZodTypeAny, {
505
+ presetId: bigint;
506
+ }, {
507
+ presetId: bigint;
508
+ }>;
509
+ export type UpdateLocationPresetParamsDto = z.infer<typeof UpdateLocationPresetParamsSchema>;
510
+ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
511
+ visibility: z.ZodOptional<z.ZodEnum<["private", "public", "publish"]>>;
512
+ name: z.ZodOptional<z.ZodString>;
513
+ presetDescription: z.ZodOptional<z.ZodString>;
514
+ presetShortDescription: z.ZodOptional<z.ZodString>;
515
+ canvases: z.ZodOptional<z.ZodArray<z.ZodObject<{
516
+ name: z.ZodString;
517
+ text: z.ZodString;
518
+ }, "strip", z.ZodTypeAny, {
519
+ name: string;
520
+ text: string;
521
+ }, {
522
+ name: string;
523
+ text: string;
524
+ }>, "many">>;
525
+ messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
526
+ entityType: z.ZodNativeEnum<{
527
+ readonly System: "system";
528
+ readonly Agent: "agent";
529
+ readonly User: "user";
530
+ readonly Gimmick: "gimmick";
531
+ }>;
532
+ entityId: z.ZodBigInt;
533
+ message: z.ZodOptional<z.ZodString>;
534
+ image: z.ZodOptional<z.ZodString>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ entityType: "system" | "agent" | "user" | "gimmick";
537
+ entityId: bigint;
538
+ message?: string | undefined;
539
+ image?: string | undefined;
540
+ }, {
541
+ entityType: "system" | "agent" | "user" | "gimmick";
542
+ entityId: bigint;
543
+ message?: string | undefined;
544
+ image?: string | undefined;
545
+ }>, "many">>;
546
+ hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
547
+ isAllowImport: z.ZodOptional<z.ZodBoolean>;
548
+ isSensitive: z.ZodOptional<z.ZodBoolean>;
549
+ }, "strip", z.ZodTypeAny, {
550
+ name?: string | undefined;
551
+ canvases?: {
552
+ name: string;
553
+ text: string;
554
+ }[] | undefined;
555
+ visibility?: "private" | "public" | "publish" | undefined;
556
+ presetDescription?: string | undefined;
557
+ presetShortDescription?: string | undefined;
558
+ messages?: {
559
+ entityType: "system" | "agent" | "user" | "gimmick";
560
+ entityId: bigint;
561
+ message?: string | undefined;
562
+ image?: string | undefined;
563
+ }[] | undefined;
564
+ hashtags?: string[] | undefined;
565
+ isAllowImport?: boolean | undefined;
566
+ isSensitive?: boolean | undefined;
567
+ }, {
568
+ name?: string | undefined;
569
+ canvases?: {
570
+ name: string;
571
+ text: string;
572
+ }[] | undefined;
573
+ visibility?: "private" | "public" | "publish" | undefined;
574
+ presetDescription?: string | undefined;
575
+ presetShortDescription?: string | undefined;
576
+ messages?: {
577
+ entityType: "system" | "agent" | "user" | "gimmick";
578
+ entityId: bigint;
579
+ message?: string | undefined;
580
+ image?: string | undefined;
581
+ }[] | undefined;
582
+ hashtags?: string[] | undefined;
583
+ isAllowImport?: boolean | undefined;
584
+ isSensitive?: boolean | undefined;
585
+ }>;
586
+ export type UpdateLocationPresetBodyDto = z.infer<typeof UpdateLocationPresetBodySchema>;
587
+ export interface UpdateLocationPresetResponseDto {
588
+ preset: LocationPresetDto;
589
+ }
590
+ export declare const SyncLocationPresetVersionParamsSchema: z.ZodObject<{
591
+ presetId: z.ZodBigInt;
592
+ }, "strip", z.ZodTypeAny, {
593
+ presetId: bigint;
594
+ }, {
595
+ presetId: bigint;
596
+ }>;
597
+ export type SyncLocationPresetVersionParamsDto = z.infer<typeof SyncLocationPresetVersionParamsSchema>;
598
+ export interface SyncLocationPresetVersionResponseDto {
599
+ preset: LocationPresetDto;
600
+ }
601
+ export declare const UpdateLocationPresetRatingParamsSchema: z.ZodObject<{
602
+ presetId: z.ZodBigInt;
603
+ }, "strip", z.ZodTypeAny, {
604
+ presetId: bigint;
605
+ }, {
606
+ presetId: bigint;
607
+ }>;
608
+ export type UpdateLocationPresetRatingParamsDto = z.infer<typeof UpdateLocationPresetRatingParamsSchema>;
609
+ export declare const UpdateLocationPresetRatingBodySchema: z.ZodObject<{
610
+ rating: z.ZodNullable<z.ZodEnum<["LIKE", "DISLIKE"]>>;
611
+ }, "strip", z.ZodTypeAny, {
612
+ rating: "LIKE" | "DISLIKE" | null;
613
+ }, {
614
+ rating: "LIKE" | "DISLIKE" | null;
615
+ }>;
616
+ export type UpdateLocationPresetRatingBodyDto = z.infer<typeof UpdateLocationPresetRatingBodySchema>;
617
+ export interface UpdateLocationPresetRatingResponseDto {
618
+ success: boolean;
619
+ error?: string;
620
+ }
621
+ export declare const DeleteLocationPresetParamsSchema: z.ZodObject<{
622
+ presetId: z.ZodBigInt;
623
+ }, "strip", z.ZodTypeAny, {
624
+ presetId: bigint;
625
+ }, {
626
+ presetId: bigint;
627
+ }>;
628
+ export type DeleteLocationPresetParamsDto = z.infer<typeof DeleteLocationPresetParamsSchema>;
629
+ export interface DeleteLocationPresetResponseDto {
630
+ success: boolean;
631
+ error?: string;
632
+ }
633
+ export declare const GetLocationPresetLocationsParamsSchema: z.ZodObject<{
634
+ presetId: z.ZodBigInt;
635
+ cursor: z.ZodOptional<z.ZodString>;
636
+ limit: z.ZodDefault<z.ZodNumber>;
637
+ }, "strip", z.ZodTypeAny, {
638
+ limit: number;
639
+ presetId: bigint;
640
+ cursor?: string | undefined;
641
+ }, {
642
+ presetId: bigint;
643
+ cursor?: string | undefined;
644
+ limit?: number | undefined;
645
+ }>;
646
+ export type GetLocationPresetLocationsParamsDto = z.infer<typeof GetLocationPresetLocationsParamsSchema>;
647
+ export interface GetLocationPresetLocationsResponseDto {
648
+ locations: LocationListItemDto[];
649
+ meta: {
650
+ total: number;
651
+ nextCursor?: string;
652
+ };
653
+ }
357
654
  export declare const CreateLocationSchema: z.ZodObject<{
358
655
  config: z.ZodObject<{
359
656
  name: z.ZodOptional<z.ZodString>;
@@ -363,14 +660,17 @@ export declare const CreateLocationSchema: z.ZodObject<{
363
660
  name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">, z.ZodLiteral<"update_until_idle">]>;
364
661
  sequential: z.ZodOptional<z.ZodBoolean>;
365
662
  interval: z.ZodOptional<z.ZodNumber>;
663
+ maxAgentExecutions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
366
664
  }, "strip", z.ZodTypeAny, {
367
665
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
368
666
  sequential?: boolean | undefined;
369
667
  interval?: number | undefined;
668
+ maxAgentExecutions?: number | null | undefined;
370
669
  }, {
371
670
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
372
671
  sequential?: boolean | undefined;
373
672
  interval?: number | undefined;
673
+ maxAgentExecutions?: number | null | undefined;
374
674
  }>>;
375
675
  description: z.ZodOptional<z.ZodString>;
376
676
  rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -401,47 +701,53 @@ export declare const CreateLocationSchema: z.ZodObject<{
401
701
  maxLength: number;
402
702
  }>, "many">>;
403
703
  gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
404
- core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
704
+ core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "character_image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "character_image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "character_image_generator" | "notion">[]]>;
405
705
  name: z.ZodString;
406
706
  appearance: z.ZodString;
407
707
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
408
- url: z.ZodUnion<[z.ZodString, z.ZodString]>;
708
+ url: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodString]>;
709
+ name: z.ZodOptional<z.ZodString>;
409
710
  description: z.ZodString;
410
711
  }, "strip", z.ZodTypeAny, {
411
712
  description: string;
412
- url: string;
713
+ name?: string | undefined;
714
+ url?: string | undefined;
413
715
  }, {
414
716
  description: string;
415
- url: string;
717
+ name?: string | undefined;
718
+ url?: string | undefined;
416
719
  }>, "many">>;
417
720
  }, "strip", z.ZodTypeAny, {
418
721
  name: string;
722
+ core: "web_search" | "image_generator" | "character_image_generator" | "notion";
419
723
  appearance: string;
420
- core: "web_search" | "image_generator" | "notion";
421
724
  images?: {
422
725
  description: string;
423
- url: string;
726
+ name?: string | undefined;
727
+ url?: string | undefined;
424
728
  }[] | undefined;
425
729
  }, {
426
730
  name: string;
731
+ core: "web_search" | "image_generator" | "character_image_generator" | "notion";
427
732
  appearance: string;
428
- core: "web_search" | "image_generator" | "notion";
429
733
  images?: {
430
734
  description: string;
431
- url: string;
735
+ name?: string | undefined;
736
+ url?: string | undefined;
432
737
  }[] | undefined;
433
738
  }>, "many">>;
434
739
  }, "strict", z.ZodTypeAny, {
435
740
  name?: string | undefined;
436
- description?: string | undefined;
741
+ thumbnail?: string | null | undefined;
742
+ environment?: "CHAT" | "NOVEL" | undefined;
437
743
  core?: {
438
744
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
439
745
  sequential?: boolean | undefined;
440
746
  interval?: number | undefined;
747
+ maxAgentExecutions?: number | null | undefined;
441
748
  } | undefined;
749
+ description?: string | undefined;
442
750
  rules?: string[] | undefined;
443
- thumbnail?: string | null | undefined;
444
- environment?: "CHAT" | "NOVEL" | undefined;
445
751
  canvases?: {
446
752
  name: string;
447
753
  description: string;
@@ -454,24 +760,26 @@ export declare const CreateLocationSchema: z.ZodObject<{
454
760
  }[] | undefined;
455
761
  gimmicks?: {
456
762
  name: string;
763
+ core: "web_search" | "image_generator" | "character_image_generator" | "notion";
457
764
  appearance: string;
458
- core: "web_search" | "image_generator" | "notion";
459
765
  images?: {
460
766
  description: string;
461
- url: string;
767
+ name?: string | undefined;
768
+ url?: string | undefined;
462
769
  }[] | undefined;
463
770
  }[] | undefined;
464
771
  }, {
465
772
  name?: string | undefined;
466
- description?: string | undefined;
773
+ thumbnail?: string | null | undefined;
774
+ environment?: "CHAT" | "NOVEL" | undefined;
467
775
  core?: {
468
776
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
469
777
  sequential?: boolean | undefined;
470
778
  interval?: number | undefined;
779
+ maxAgentExecutions?: number | null | undefined;
471
780
  } | undefined;
781
+ description?: string | undefined;
472
782
  rules?: string[] | undefined;
473
- thumbnail?: string | null | undefined;
474
- environment?: "CHAT" | "NOVEL" | undefined;
475
783
  canvases?: {
476
784
  name: string;
477
785
  description: string;
@@ -484,11 +792,12 @@ export declare const CreateLocationSchema: z.ZodObject<{
484
792
  }[] | undefined;
485
793
  gimmicks?: {
486
794
  name: string;
795
+ core: "web_search" | "image_generator" | "character_image_generator" | "notion";
487
796
  appearance: string;
488
- core: "web_search" | "image_generator" | "notion";
489
797
  images?: {
490
798
  description: string;
491
- url: string;
799
+ name?: string | undefined;
800
+ url?: string | undefined;
492
801
  }[] | undefined;
493
802
  }[] | undefined;
494
803
  }>;
@@ -499,15 +808,16 @@ export declare const CreateLocationSchema: z.ZodObject<{
499
808
  }, "strip", z.ZodTypeAny, {
500
809
  config: {
501
810
  name?: string | undefined;
502
- description?: string | undefined;
811
+ thumbnail?: string | null | undefined;
812
+ environment?: "CHAT" | "NOVEL" | undefined;
503
813
  core?: {
504
814
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
505
815
  sequential?: boolean | undefined;
506
816
  interval?: number | undefined;
817
+ maxAgentExecutions?: number | null | undefined;
507
818
  } | undefined;
819
+ description?: string | undefined;
508
820
  rules?: string[] | undefined;
509
- thumbnail?: string | null | undefined;
510
- environment?: "CHAT" | "NOVEL" | undefined;
511
821
  canvases?: {
512
822
  name: string;
513
823
  description: string;
@@ -520,11 +830,12 @@ export declare const CreateLocationSchema: z.ZodObject<{
520
830
  }[] | undefined;
521
831
  gimmicks?: {
522
832
  name: string;
833
+ core: "web_search" | "image_generator" | "character_image_generator" | "notion";
523
834
  appearance: string;
524
- core: "web_search" | "image_generator" | "notion";
525
835
  images?: {
526
836
  description: string;
527
- url: string;
837
+ name?: string | undefined;
838
+ url?: string | undefined;
528
839
  }[] | undefined;
529
840
  }[] | undefined;
530
841
  };
@@ -532,15 +843,16 @@ export declare const CreateLocationSchema: z.ZodObject<{
532
843
  }, {
533
844
  config: {
534
845
  name?: string | undefined;
535
- description?: string | undefined;
846
+ thumbnail?: string | null | undefined;
847
+ environment?: "CHAT" | "NOVEL" | undefined;
536
848
  core?: {
537
849
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
538
850
  sequential?: boolean | undefined;
539
851
  interval?: number | undefined;
852
+ maxAgentExecutions?: number | null | undefined;
540
853
  } | undefined;
854
+ description?: string | undefined;
541
855
  rules?: string[] | undefined;
542
- thumbnail?: string | null | undefined;
543
- environment?: "CHAT" | "NOVEL" | undefined;
544
856
  canvases?: {
545
857
  name: string;
546
858
  description: string;
@@ -553,11 +865,12 @@ export declare const CreateLocationSchema: z.ZodObject<{
553
865
  }[] | undefined;
554
866
  gimmicks?: {
555
867
  name: string;
868
+ core: "web_search" | "image_generator" | "character_image_generator" | "notion";
556
869
  appearance: string;
557
- core: "web_search" | "image_generator" | "notion";
558
870
  images?: {
559
871
  description: string;
560
- url: string;
872
+ name?: string | undefined;
873
+ url?: string | undefined;
561
874
  }[] | undefined;
562
875
  }[] | undefined;
563
876
  };
@@ -573,16 +886,20 @@ export declare const CreateLocationFromPresetSchema: z.ZodObject<{
573
886
  readonly API: "API";
574
887
  readonly MINIMO: "MINIMO";
575
888
  }>>>;
889
+ import: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
576
890
  }, "strip", z.ZodTypeAny, {
577
- platform: "API" | "MINIMO";
578
891
  presetId: bigint;
892
+ platform: "API" | "MINIMO";
893
+ import: boolean;
579
894
  }, {
580
895
  presetId: bigint;
581
896
  platform?: "API" | "MINIMO" | undefined;
897
+ import?: boolean | undefined;
582
898
  }>;
583
899
  export type CreateLocationFromPresetDto = z.infer<typeof CreateLocationFromPresetSchema>;
584
900
  export interface CreateLocationFromPresetResponseDto {
585
901
  location: LocationPrivateDto;
902
+ agents: AgentPrivateDto[];
586
903
  }
587
904
  export declare const GetHelperLocationQuerySchema: z.ZodObject<{
588
905
  platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
@@ -694,6 +1011,26 @@ export type GetLocationCostParamsDto = z.infer<typeof GetLocationCostParamsSchem
694
1011
  export interface GetLocationCostResponseDto {
695
1012
  cost: LocationCostDto;
696
1013
  }
1014
+ export declare const ResetLocationParamsSchema: z.ZodObject<{
1015
+ locationId: z.ZodBigInt;
1016
+ }, "strip", z.ZodTypeAny, {
1017
+ locationId: bigint;
1018
+ }, {
1019
+ locationId: bigint;
1020
+ }>;
1021
+ export type ResetLocationParamsDto = z.infer<typeof ResetLocationParamsSchema>;
1022
+ export declare const ResetLocationBodySchema: z.ZodObject<{
1023
+ resetAgents: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
1024
+ }, "strip", z.ZodTypeAny, {
1025
+ resetAgents: boolean;
1026
+ }, {
1027
+ resetAgents?: boolean | undefined;
1028
+ }>;
1029
+ export type ResetLocationBodyDto = z.infer<typeof ResetLocationBodySchema>;
1030
+ export interface ResetLocationResponseDto {
1031
+ success: boolean;
1032
+ error?: string;
1033
+ }
697
1034
  export declare const UploadLocationThumbnailParamsSchema: z.ZodObject<{
698
1035
  locationId: z.ZodBigInt;
699
1036
  }, "strip", z.ZodTypeAny, {
@@ -876,15 +1213,21 @@ export declare const UpdateLocationParamsSchema: z.ZodObject<{
876
1213
  }>;
877
1214
  export type UpdateLocationParamsDto = z.infer<typeof UpdateLocationParamsSchema>;
878
1215
  export declare const UpdateLocationBodySchema: z.ZodObject<{
1216
+ overrideAgentLlmLevel: z.ZodOptional<z.ZodNullable<z.ZodEnum<["FREE", "LOW", "MEDIUM", "HIGH"]>>>;
879
1217
  visibility: z.ZodOptional<z.ZodEnum<["private", "public", "publish"]>>;
880
1218
  maxUsers: z.ZodOptional<z.ZodNumber>;
881
1219
  publishDescription: z.ZodOptional<z.ZodString>;
1220
+ hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
882
1221
  useLocationCreditOnly: z.ZodOptional<z.ZodBoolean>;
883
1222
  creditCostPerChat: z.ZodOptional<z.ZodNumber>;
884
1223
  chatRequiresPaidCredit: z.ZodOptional<z.ZodBoolean>;
885
1224
  isAdminChat: z.ZodOptional<z.ZodBoolean>;
1225
+ isSensitive: z.ZodOptional<z.ZodBoolean>;
886
1226
  }, "strip", z.ZodTypeAny, {
887
1227
  visibility?: "private" | "public" | "publish" | undefined;
1228
+ hashtags?: string[] | undefined;
1229
+ isSensitive?: boolean | undefined;
1230
+ overrideAgentLlmLevel?: "FREE" | "LOW" | "MEDIUM" | "HIGH" | null | undefined;
888
1231
  maxUsers?: number | undefined;
889
1232
  publishDescription?: string | undefined;
890
1233
  useLocationCreditOnly?: boolean | undefined;
@@ -893,6 +1236,9 @@ export declare const UpdateLocationBodySchema: z.ZodObject<{
893
1236
  isAdminChat?: boolean | undefined;
894
1237
  }, {
895
1238
  visibility?: "private" | "public" | "publish" | undefined;
1239
+ hashtags?: string[] | undefined;
1240
+ isSensitive?: boolean | undefined;
1241
+ overrideAgentLlmLevel?: "FREE" | "LOW" | "MEDIUM" | "HIGH" | null | undefined;
896
1242
  maxUsers?: number | undefined;
897
1243
  publishDescription?: string | undefined;
898
1244
  useLocationCreditOnly?: boolean | undefined;
@@ -905,6 +1251,29 @@ export interface UpdateLocationResponseDto {
905
1251
  success: boolean;
906
1252
  error?: string;
907
1253
  }
1254
+ export declare const UpdateLocationCanvasParamsSchema: z.ZodObject<{
1255
+ locationId: z.ZodBigInt;
1256
+ }, "strip", z.ZodTypeAny, {
1257
+ locationId: bigint;
1258
+ }, {
1259
+ locationId: bigint;
1260
+ }>;
1261
+ export type UpdateLocationCanvasParamsDto = z.infer<typeof UpdateLocationCanvasParamsSchema>;
1262
+ export declare const UpdateLocationCanvasBodySchema: z.ZodObject<{
1263
+ name: z.ZodString;
1264
+ text: z.ZodString;
1265
+ }, "strip", z.ZodTypeAny, {
1266
+ name: string;
1267
+ text: string;
1268
+ }, {
1269
+ name: string;
1270
+ text: string;
1271
+ }>;
1272
+ export type UpdateLocationCanvasBodyDto = z.infer<typeof UpdateLocationCanvasBodySchema>;
1273
+ export interface UpdateLocationCanvasResponseDto {
1274
+ success: boolean;
1275
+ error?: string;
1276
+ }
908
1277
  export declare const GetLocationScheduledMessagesParamsSchema: z.ZodObject<{
909
1278
  locationId: z.ZodBigInt;
910
1279
  }, "strip", z.ZodTypeAny, {
@@ -1121,15 +1490,15 @@ export declare const SendLocationMessageSchema: z.ZodObject<{
1121
1490
  }, "strip", z.ZodTypeAny, {
1122
1491
  locationId: bigint;
1123
1492
  message?: string | undefined;
1124
- action?: string | undefined;
1125
1493
  image?: string | undefined;
1494
+ action?: string | undefined;
1126
1495
  creditAmount?: number | undefined;
1127
1496
  paidCreditOnly?: boolean | undefined;
1128
1497
  }, {
1129
1498
  locationId: bigint;
1130
1499
  message?: string | undefined;
1131
- action?: string | undefined;
1132
1500
  image?: string | undefined;
1501
+ action?: string | undefined;
1133
1502
  creditAmount?: number | undefined;
1134
1503
  paidCreditOnly?: boolean | undefined;
1135
1504
  }>;