@little-samo/samo-ai-sdk 0.2.1-rv8 → 0.2.1

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.
@@ -77,17 +77,14 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
77
77
  name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">, z.ZodLiteral<"update_until_idle">]>;
78
78
  sequential: z.ZodOptional<z.ZodBoolean>;
79
79
  interval: z.ZodOptional<z.ZodNumber>;
80
- maxAgentExecutions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
81
80
  }, "strip", z.ZodTypeAny, {
82
81
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
83
82
  sequential?: boolean | undefined;
84
83
  interval?: number | undefined;
85
- maxAgentExecutions?: number | null | undefined;
86
84
  }, {
87
85
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
88
86
  sequential?: boolean | undefined;
89
87
  interval?: number | undefined;
90
- maxAgentExecutions?: number | null | undefined;
91
88
  }>>;
92
89
  description: z.ZodOptional<z.ZodString>;
93
90
  rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -118,7 +115,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
118
115
  maxLength: number;
119
116
  }>, "many">>;
120
117
  gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
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
+ core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
122
119
  name: z.ZodString;
123
120
  appearance: z.ZodString;
124
121
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -133,7 +130,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
133
130
  }>, "many">>;
134
131
  }, "strip", z.ZodTypeAny, {
135
132
  name: string;
136
- core: "web_search" | "image_generator" | "character_image_generator" | "notion";
133
+ core: "web_search" | "image_generator" | "notion";
137
134
  appearance: string;
138
135
  images?: {
139
136
  description: string;
@@ -141,7 +138,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
141
138
  }[] | undefined;
142
139
  }, {
143
140
  name: string;
144
- core: "web_search" | "image_generator" | "character_image_generator" | "notion";
141
+ core: "web_search" | "image_generator" | "notion";
145
142
  appearance: string;
146
143
  images?: {
147
144
  description: string;
@@ -156,7 +153,6 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
156
153
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
157
154
  sequential?: boolean | undefined;
158
155
  interval?: number | undefined;
159
- maxAgentExecutions?: number | null | undefined;
160
156
  } | undefined;
161
157
  description?: string | undefined;
162
158
  rules?: string[] | undefined;
@@ -172,7 +168,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
172
168
  }[] | undefined;
173
169
  gimmicks?: {
174
170
  name: string;
175
- core: "web_search" | "image_generator" | "character_image_generator" | "notion";
171
+ core: "web_search" | "image_generator" | "notion";
176
172
  appearance: string;
177
173
  images?: {
178
174
  description: string;
@@ -187,7 +183,6 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
187
183
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
188
184
  sequential?: boolean | undefined;
189
185
  interval?: number | undefined;
190
- maxAgentExecutions?: number | null | undefined;
191
186
  } | undefined;
192
187
  description?: string | undefined;
193
188
  rules?: string[] | undefined;
@@ -203,7 +198,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
203
198
  }[] | undefined;
204
199
  gimmicks?: {
205
200
  name: string;
206
- core: "web_search" | "image_generator" | "character_image_generator" | "notion";
201
+ core: "web_search" | "image_generator" | "notion";
207
202
  appearance: string;
208
203
  images?: {
209
204
  description: string;
@@ -221,7 +216,6 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
221
216
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
222
217
  sequential?: boolean | undefined;
223
218
  interval?: number | undefined;
224
- maxAgentExecutions?: number | null | undefined;
225
219
  } | undefined;
226
220
  description?: string | undefined;
227
221
  rules?: string[] | undefined;
@@ -237,7 +231,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
237
231
  }[] | undefined;
238
232
  gimmicks?: {
239
233
  name: string;
240
- core: "web_search" | "image_generator" | "character_image_generator" | "notion";
234
+ core: "web_search" | "image_generator" | "notion";
241
235
  appearance: string;
242
236
  images?: {
243
237
  description: string;
@@ -255,7 +249,6 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
255
249
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
256
250
  sequential?: boolean | undefined;
257
251
  interval?: number | undefined;
258
- maxAgentExecutions?: number | null | undefined;
259
252
  } | undefined;
260
253
  description?: string | undefined;
261
254
  rules?: string[] | undefined;
@@ -271,7 +264,7 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
271
264
  }[] | undefined;
272
265
  gimmicks?: {
273
266
  name: string;
274
- core: "web_search" | "image_generator" | "character_image_generator" | "notion";
267
+ core: "web_search" | "image_generator" | "notion";
275
268
  appearance: string;
276
269
  images?: {
277
270
  description: string;
@@ -362,56 +355,10 @@ export interface LocationPresetsPaginatedResponseDto {
362
355
  totalPages: number;
363
356
  };
364
357
  }
365
- export declare const PublishedLocationPresetsQuerySchema: z.ZodObject<{
366
- type: z.ZodEnum<["NOVEL"]>;
367
- page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
368
- limit: z.ZodDefault<z.ZodNumber>;
369
- }, "strip", z.ZodTypeAny, {
370
- limit: number;
371
- type: "NOVEL";
372
- page: number;
373
- }, {
374
- type: "NOVEL";
375
- limit?: number | undefined;
376
- page?: number | undefined;
377
- }>;
378
- export type PublishedLocationPresetsQueryDto = z.infer<typeof PublishedLocationPresetsQuerySchema>;
379
- export interface PublishedLocationPresetsResponseDto {
380
- data: LocationPresetDetailDto[];
381
- meta: {
382
- total: number;
383
- page: number;
384
- limit: number;
385
- totalPages: number;
386
- };
387
- }
388
- export declare const TrendingLocationPresetsQuerySchema: z.ZodObject<{
389
- type: z.ZodEnum<["NOVEL"]>;
390
- }, "strip", z.ZodTypeAny, {
391
- type: "NOVEL";
392
- }, {
393
- type: "NOVEL";
394
- }>;
395
- export type TrendingLocationPresetsQueryDto = z.infer<typeof TrendingLocationPresetsQuerySchema>;
396
- export interface TrendingLocationPresetsResponseDto {
397
- data: LocationPresetDetailDto[];
398
- }
399
358
  export declare const CreateLocationPresetSchema: z.ZodObject<{
400
359
  locationId: z.ZodBigInt;
401
360
  visibility: z.ZodOptional<z.ZodEnum<["private", "public", "publish"]>>;
402
- name: z.ZodOptional<z.ZodString>;
403
361
  presetDescription: z.ZodString;
404
- presetShortDescription: z.ZodString;
405
- canvases: z.ZodOptional<z.ZodArray<z.ZodObject<{
406
- name: z.ZodString;
407
- text: z.ZodString;
408
- }, "strip", z.ZodTypeAny, {
409
- name: string;
410
- text: string;
411
- }, {
412
- name: string;
413
- text: string;
414
- }>, "many">>;
415
362
  messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
416
363
  entityType: z.ZodNativeEnum<{
417
364
  readonly System: "system";
@@ -420,18 +367,15 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
420
367
  readonly Gimmick: "gimmick";
421
368
  }>;
422
369
  entityId: z.ZodBigInt;
423
- message: z.ZodOptional<z.ZodString>;
424
- image: z.ZodOptional<z.ZodString>;
370
+ message: z.ZodString;
425
371
  }, "strip", z.ZodTypeAny, {
372
+ message: string;
426
373
  entityType: "system" | "agent" | "user" | "gimmick";
427
374
  entityId: bigint;
428
- message?: string | undefined;
429
- image?: string | undefined;
430
375
  }, {
376
+ message: string;
431
377
  entityType: "system" | "agent" | "user" | "gimmick";
432
378
  entityId: bigint;
433
- message?: string | undefined;
434
- image?: string | undefined;
435
379
  }>, "many">>;
436
380
  hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
437
381
  isAllowImport: z.ZodOptional<z.ZodBoolean>;
@@ -439,18 +383,11 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
439
383
  }, "strip", z.ZodTypeAny, {
440
384
  locationId: bigint;
441
385
  presetDescription: string;
442
- presetShortDescription: string;
443
- name?: string | undefined;
444
- canvases?: {
445
- name: string;
446
- text: string;
447
- }[] | undefined;
448
386
  visibility?: "private" | "public" | "publish" | undefined;
449
387
  messages?: {
388
+ message: string;
450
389
  entityType: "system" | "agent" | "user" | "gimmick";
451
390
  entityId: bigint;
452
- message?: string | undefined;
453
- image?: string | undefined;
454
391
  }[] | undefined;
455
392
  hashtags?: string[] | undefined;
456
393
  isAllowImport?: boolean | undefined;
@@ -458,18 +395,11 @@ export declare const CreateLocationPresetSchema: z.ZodObject<{
458
395
  }, {
459
396
  locationId: bigint;
460
397
  presetDescription: string;
461
- presetShortDescription: string;
462
- name?: string | undefined;
463
- canvases?: {
464
- name: string;
465
- text: string;
466
- }[] | undefined;
467
398
  visibility?: "private" | "public" | "publish" | undefined;
468
399
  messages?: {
400
+ message: string;
469
401
  entityType: "system" | "agent" | "user" | "gimmick";
470
402
  entityId: bigint;
471
- message?: string | undefined;
472
- image?: string | undefined;
473
403
  }[] | undefined;
474
404
  hashtags?: string[] | undefined;
475
405
  isAllowImport?: boolean | undefined;
@@ -500,19 +430,7 @@ export declare const UpdateLocationPresetParamsSchema: z.ZodObject<{
500
430
  export type UpdateLocationPresetParamsDto = z.infer<typeof UpdateLocationPresetParamsSchema>;
501
431
  export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
502
432
  visibility: z.ZodOptional<z.ZodEnum<["private", "public", "publish"]>>;
503
- name: z.ZodOptional<z.ZodString>;
504
433
  presetDescription: z.ZodOptional<z.ZodString>;
505
- presetShortDescription: z.ZodOptional<z.ZodString>;
506
- canvases: z.ZodOptional<z.ZodArray<z.ZodObject<{
507
- name: z.ZodString;
508
- text: z.ZodString;
509
- }, "strip", z.ZodTypeAny, {
510
- name: string;
511
- text: string;
512
- }, {
513
- name: string;
514
- text: string;
515
- }>, "many">>;
516
434
  messages: z.ZodOptional<z.ZodArray<z.ZodObject<{
517
435
  entityType: z.ZodNativeEnum<{
518
436
  readonly System: "system";
@@ -521,54 +439,37 @@ export declare const UpdateLocationPresetBodySchema: z.ZodObject<{
521
439
  readonly Gimmick: "gimmick";
522
440
  }>;
523
441
  entityId: z.ZodBigInt;
524
- message: z.ZodOptional<z.ZodString>;
525
- image: z.ZodOptional<z.ZodString>;
442
+ message: z.ZodString;
526
443
  }, "strip", z.ZodTypeAny, {
444
+ message: string;
527
445
  entityType: "system" | "agent" | "user" | "gimmick";
528
446
  entityId: bigint;
529
- message?: string | undefined;
530
- image?: string | undefined;
531
447
  }, {
448
+ message: string;
532
449
  entityType: "system" | "agent" | "user" | "gimmick";
533
450
  entityId: bigint;
534
- message?: string | undefined;
535
- image?: string | undefined;
536
451
  }>, "many">>;
537
452
  hashtags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
538
453
  isAllowImport: z.ZodOptional<z.ZodBoolean>;
539
454
  isSensitive: z.ZodOptional<z.ZodBoolean>;
540
455
  }, "strip", z.ZodTypeAny, {
541
- name?: string | undefined;
542
- canvases?: {
543
- name: string;
544
- text: string;
545
- }[] | undefined;
546
456
  visibility?: "private" | "public" | "publish" | undefined;
547
457
  presetDescription?: string | undefined;
548
- presetShortDescription?: string | undefined;
549
458
  messages?: {
459
+ message: string;
550
460
  entityType: "system" | "agent" | "user" | "gimmick";
551
461
  entityId: bigint;
552
- message?: string | undefined;
553
- image?: string | undefined;
554
462
  }[] | undefined;
555
463
  hashtags?: string[] | undefined;
556
464
  isAllowImport?: boolean | undefined;
557
465
  isSensitive?: boolean | undefined;
558
466
  }, {
559
- name?: string | undefined;
560
- canvases?: {
561
- name: string;
562
- text: string;
563
- }[] | undefined;
564
467
  visibility?: "private" | "public" | "publish" | undefined;
565
468
  presetDescription?: string | undefined;
566
- presetShortDescription?: string | undefined;
567
469
  messages?: {
470
+ message: string;
568
471
  entityType: "system" | "agent" | "user" | "gimmick";
569
472
  entityId: bigint;
570
- message?: string | undefined;
571
- image?: string | undefined;
572
473
  }[] | undefined;
573
474
  hashtags?: string[] | undefined;
574
475
  isAllowImport?: boolean | undefined;
@@ -590,27 +491,6 @@ export interface DeleteLocationPresetResponseDto {
590
491
  success: boolean;
591
492
  error?: string;
592
493
  }
593
- export declare const GetLocationPresetLocationsParamsSchema: z.ZodObject<{
594
- presetId: z.ZodBigInt;
595
- cursor: z.ZodOptional<z.ZodString>;
596
- limit: z.ZodDefault<z.ZodNumber>;
597
- }, "strip", z.ZodTypeAny, {
598
- limit: number;
599
- presetId: bigint;
600
- cursor?: string | undefined;
601
- }, {
602
- presetId: bigint;
603
- cursor?: string | undefined;
604
- limit?: number | undefined;
605
- }>;
606
- export type GetLocationPresetLocationsParamsDto = z.infer<typeof GetLocationPresetLocationsParamsSchema>;
607
- export interface GetLocationPresetLocationsResponseDto {
608
- locations: LocationListItemDto[];
609
- meta: {
610
- total: number;
611
- nextCursor?: string;
612
- };
613
- }
614
494
  export declare const CreateLocationSchema: z.ZodObject<{
615
495
  config: z.ZodObject<{
616
496
  name: z.ZodOptional<z.ZodString>;
@@ -620,17 +500,14 @@ export declare const CreateLocationSchema: z.ZodObject<{
620
500
  name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">, z.ZodLiteral<"update_until_idle">]>;
621
501
  sequential: z.ZodOptional<z.ZodBoolean>;
622
502
  interval: z.ZodOptional<z.ZodNumber>;
623
- maxAgentExecutions: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
624
503
  }, "strip", z.ZodTypeAny, {
625
504
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
626
505
  sequential?: boolean | undefined;
627
506
  interval?: number | undefined;
628
- maxAgentExecutions?: number | null | undefined;
629
507
  }, {
630
508
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
631
509
  sequential?: boolean | undefined;
632
510
  interval?: number | undefined;
633
- maxAgentExecutions?: number | null | undefined;
634
511
  }>>;
635
512
  description: z.ZodOptional<z.ZodString>;
636
513
  rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -661,7 +538,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
661
538
  maxLength: number;
662
539
  }>, "many">>;
663
540
  gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
664
- 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">[]]>;
541
+ core: z.ZodUnion<[z.ZodLiteral<"web_search" | "image_generator" | "notion">, z.ZodLiteral<"web_search" | "image_generator" | "notion">, ...z.ZodLiteral<"web_search" | "image_generator" | "notion">[]]>;
665
542
  name: z.ZodString;
666
543
  appearance: z.ZodString;
667
544
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -676,7 +553,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
676
553
  }>, "many">>;
677
554
  }, "strip", z.ZodTypeAny, {
678
555
  name: string;
679
- core: "web_search" | "image_generator" | "character_image_generator" | "notion";
556
+ core: "web_search" | "image_generator" | "notion";
680
557
  appearance: string;
681
558
  images?: {
682
559
  description: string;
@@ -684,7 +561,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
684
561
  }[] | undefined;
685
562
  }, {
686
563
  name: string;
687
- core: "web_search" | "image_generator" | "character_image_generator" | "notion";
564
+ core: "web_search" | "image_generator" | "notion";
688
565
  appearance: string;
689
566
  images?: {
690
567
  description: string;
@@ -699,7 +576,6 @@ export declare const CreateLocationSchema: z.ZodObject<{
699
576
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
700
577
  sequential?: boolean | undefined;
701
578
  interval?: number | undefined;
702
- maxAgentExecutions?: number | null | undefined;
703
579
  } | undefined;
704
580
  description?: string | undefined;
705
581
  rules?: string[] | undefined;
@@ -715,7 +591,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
715
591
  }[] | undefined;
716
592
  gimmicks?: {
717
593
  name: string;
718
- core: "web_search" | "image_generator" | "character_image_generator" | "notion";
594
+ core: "web_search" | "image_generator" | "notion";
719
595
  appearance: string;
720
596
  images?: {
721
597
  description: string;
@@ -730,7 +606,6 @@ export declare const CreateLocationSchema: z.ZodObject<{
730
606
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
731
607
  sequential?: boolean | undefined;
732
608
  interval?: number | undefined;
733
- maxAgentExecutions?: number | null | undefined;
734
609
  } | undefined;
735
610
  description?: string | undefined;
736
611
  rules?: string[] | undefined;
@@ -746,7 +621,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
746
621
  }[] | undefined;
747
622
  gimmicks?: {
748
623
  name: string;
749
- core: "web_search" | "image_generator" | "character_image_generator" | "notion";
624
+ core: "web_search" | "image_generator" | "notion";
750
625
  appearance: string;
751
626
  images?: {
752
627
  description: string;
@@ -767,7 +642,6 @@ export declare const CreateLocationSchema: z.ZodObject<{
767
642
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
768
643
  sequential?: boolean | undefined;
769
644
  interval?: number | undefined;
770
- maxAgentExecutions?: number | null | undefined;
771
645
  } | undefined;
772
646
  description?: string | undefined;
773
647
  rules?: string[] | undefined;
@@ -783,7 +657,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
783
657
  }[] | undefined;
784
658
  gimmicks?: {
785
659
  name: string;
786
- core: "web_search" | "image_generator" | "character_image_generator" | "notion";
660
+ core: "web_search" | "image_generator" | "notion";
787
661
  appearance: string;
788
662
  images?: {
789
663
  description: string;
@@ -801,7 +675,6 @@ export declare const CreateLocationSchema: z.ZodObject<{
801
675
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
802
676
  sequential?: boolean | undefined;
803
677
  interval?: number | undefined;
804
- maxAgentExecutions?: number | null | undefined;
805
678
  } | undefined;
806
679
  description?: string | undefined;
807
680
  rules?: string[] | undefined;
@@ -817,7 +690,7 @@ export declare const CreateLocationSchema: z.ZodObject<{
817
690
  }[] | undefined;
818
691
  gimmicks?: {
819
692
  name: string;
820
- core: "web_search" | "image_generator" | "character_image_generator" | "notion";
693
+ core: "web_search" | "image_generator" | "notion";
821
694
  appearance: string;
822
695
  images?: {
823
696
  description: string;
@@ -962,26 +835,6 @@ export type GetLocationCostParamsDto = z.infer<typeof GetLocationCostParamsSchem
962
835
  export interface GetLocationCostResponseDto {
963
836
  cost: LocationCostDto;
964
837
  }
965
- export declare const ResetLocationParamsSchema: z.ZodObject<{
966
- locationId: z.ZodBigInt;
967
- }, "strip", z.ZodTypeAny, {
968
- locationId: bigint;
969
- }, {
970
- locationId: bigint;
971
- }>;
972
- export type ResetLocationParamsDto = z.infer<typeof ResetLocationParamsSchema>;
973
- export declare const ResetLocationBodySchema: z.ZodObject<{
974
- resetAgents: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
975
- }, "strip", z.ZodTypeAny, {
976
- resetAgents: boolean;
977
- }, {
978
- resetAgents?: boolean | undefined;
979
- }>;
980
- export type ResetLocationBodyDto = z.infer<typeof ResetLocationBodySchema>;
981
- export interface ResetLocationResponseDto {
982
- success: boolean;
983
- error?: string;
984
- }
985
838
  export declare const UploadLocationThumbnailParamsSchema: z.ZodObject<{
986
839
  locationId: z.ZodBigInt;
987
840
  }, "strip", z.ZodTypeAny, {
@@ -1199,29 +1052,6 @@ export interface UpdateLocationResponseDto {
1199
1052
  success: boolean;
1200
1053
  error?: string;
1201
1054
  }
1202
- export declare const UpdateLocationCanvasParamsSchema: z.ZodObject<{
1203
- locationId: z.ZodBigInt;
1204
- }, "strip", z.ZodTypeAny, {
1205
- locationId: bigint;
1206
- }, {
1207
- locationId: bigint;
1208
- }>;
1209
- export type UpdateLocationCanvasParamsDto = z.infer<typeof UpdateLocationCanvasParamsSchema>;
1210
- export declare const UpdateLocationCanvasBodySchema: z.ZodObject<{
1211
- name: z.ZodString;
1212
- text: z.ZodString;
1213
- }, "strip", z.ZodTypeAny, {
1214
- name: string;
1215
- text: string;
1216
- }, {
1217
- name: string;
1218
- text: string;
1219
- }>;
1220
- export type UpdateLocationCanvasBodyDto = z.infer<typeof UpdateLocationCanvasBodySchema>;
1221
- export interface UpdateLocationCanvasResponseDto {
1222
- success: boolean;
1223
- error?: string;
1224
- }
1225
1055
  export declare const GetLocationScheduledMessagesParamsSchema: z.ZodObject<{
1226
1056
  locationId: z.ZodBigInt;
1227
1057
  }, "strip", z.ZodTypeAny, {
@@ -1438,15 +1268,15 @@ export declare const SendLocationMessageSchema: z.ZodObject<{
1438
1268
  }, "strip", z.ZodTypeAny, {
1439
1269
  locationId: bigint;
1440
1270
  message?: string | undefined;
1441
- image?: string | undefined;
1442
1271
  action?: string | undefined;
1272
+ image?: string | undefined;
1443
1273
  creditAmount?: number | undefined;
1444
1274
  paidCreditOnly?: boolean | undefined;
1445
1275
  }, {
1446
1276
  locationId: bigint;
1447
1277
  message?: string | undefined;
1448
- image?: string | undefined;
1449
1278
  action?: string | undefined;
1279
+ image?: string | undefined;
1450
1280
  creditAmount?: number | undefined;
1451
1281
  paidCreditOnly?: boolean | undefined;
1452
1282
  }>;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetLocationScheduledMessagesParamsSchema = exports.UpdateLocationCanvasBodySchema = exports.UpdateLocationCanvasParamsSchema = exports.UpdateLocationBodySchema = exports.UpdateLocationParamsSchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationSnapshotParamsSchema = exports.CreateLocationSnapshotBodySchema = exports.CreateLocationSnapshotParamsSchema = exports.WithdrawCreditsBodySchema = exports.WithdrawCreditsParamsSchema = exports.DepositCreditsBodySchema = exports.DepositCreditsParamsSchema = exports.GetLocationContentParamsSchema = exports.UploadLocationThumbnailParamsSchema = exports.ResetLocationBodySchema = exports.ResetLocationParamsSchema = exports.GetLocationCostParamsSchema = exports.GetLocationPrivateParamsSchema = exports.DeleteLocationParamsSchema = exports.GetLocationParamsSchema = exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.GetHelperLocationQuerySchema = exports.CreateLocationFromPresetSchema = exports.CreateLocationSchema = exports.GetLocationPresetLocationsParamsSchema = exports.DeleteLocationPresetParamsSchema = exports.UpdateLocationPresetBodySchema = exports.UpdateLocationPresetParamsSchema = exports.GetLocationPresetParamsSchema = exports.CreateLocationPresetSchema = exports.TrendingLocationPresetsQuerySchema = exports.PublishedLocationPresetsQuerySchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationDeleteCredentialSchema = exports.LocationUpdateCredentialSchema = exports.LocationUpdateConfigSchema = exports.LocationsUnreadCountQuerySchema = exports.TrendingLocationsQuerySchema = exports.PublishedLocationsQuerySchema = exports.UserLocationsQuerySchema = void 0;
4
- exports.ResumeLocationUpdateSchema = exports.PauseLocationUpdateSchema = exports.UpdateLocationAgentIsActiveSchema = exports.UpdateLocationRenderingSchema = exports.UpdateLocationImageSchema = exports.SendSystemMessageSchema = exports.SendLocationMessageSchema = exports.GetLocationMessagesSchema = exports.BanUserFromLocationSchema = exports.UnsubscribeLocationSchema = exports.SubscribeLocationSchema = exports.LeaveLocationSchema = exports.JoinLocationSchema = exports.DeleteLocationScheduledMessageToolSchema = exports.DeleteLocationScheduledMessageParamsSchema = exports.UpdateLocationScheduledMessageToolSchema = exports.UpdateLocationScheduledMessageBodySchema = exports.UpdateLocationScheduledMessageParamsSchema = exports.CreateLocationScheduledMessageToolSchema = exports.CreateLocationScheduledMessageBodySchema = exports.CreateLocationScheduledMessageParamsSchema = void 0;
3
+ exports.DeleteLocationScheduledMessageParamsSchema = exports.UpdateLocationScheduledMessageToolSchema = exports.UpdateLocationScheduledMessageBodySchema = exports.UpdateLocationScheduledMessageParamsSchema = exports.CreateLocationScheduledMessageToolSchema = exports.CreateLocationScheduledMessageBodySchema = exports.CreateLocationScheduledMessageParamsSchema = exports.GetLocationScheduledMessagesParamsSchema = exports.UpdateLocationBodySchema = exports.UpdateLocationParamsSchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationSnapshotParamsSchema = exports.CreateLocationSnapshotBodySchema = exports.CreateLocationSnapshotParamsSchema = exports.WithdrawCreditsBodySchema = exports.WithdrawCreditsParamsSchema = exports.DepositCreditsBodySchema = exports.DepositCreditsParamsSchema = exports.GetLocationContentParamsSchema = exports.UploadLocationThumbnailParamsSchema = exports.GetLocationCostParamsSchema = exports.GetLocationPrivateParamsSchema = exports.DeleteLocationParamsSchema = exports.GetLocationParamsSchema = exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.GetHelperLocationQuerySchema = exports.CreateLocationFromPresetSchema = exports.CreateLocationSchema = exports.DeleteLocationPresetParamsSchema = exports.UpdateLocationPresetBodySchema = exports.UpdateLocationPresetParamsSchema = exports.GetLocationPresetParamsSchema = exports.CreateLocationPresetSchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationDeleteCredentialSchema = exports.LocationUpdateCredentialSchema = exports.LocationUpdateConfigSchema = exports.LocationsUnreadCountQuerySchema = exports.TrendingLocationsQuerySchema = exports.PublishedLocationsQuerySchema = exports.UserLocationsQuerySchema = void 0;
4
+ exports.ResumeLocationUpdateSchema = exports.PauseLocationUpdateSchema = exports.UpdateLocationAgentIsActiveSchema = exports.UpdateLocationRenderingSchema = exports.UpdateLocationImageSchema = exports.SendSystemMessageSchema = exports.SendLocationMessageSchema = exports.GetLocationMessagesSchema = exports.BanUserFromLocationSchema = exports.UnsubscribeLocationSchema = exports.SubscribeLocationSchema = exports.LeaveLocationSchema = exports.JoinLocationSchema = exports.DeleteLocationScheduledMessageToolSchema = void 0;
5
5
  const common_1 = require("@little-samo/samo-ai/common");
6
6
  const models_1 = require("@little-samo/samo-ai-sdk/models");
7
7
  const zod_1 = require("zod");
@@ -56,21 +56,10 @@ exports.LocationPresetsPaginationQuerySchema = zod_1.z.object({
56
56
  page: zod_1.z.coerce.number().int().min(1).optional().default(1),
57
57
  limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(20),
58
58
  });
59
- exports.PublishedLocationPresetsQuerySchema = zod_1.z.object({
60
- type: zod_1.z.enum(['NOVEL']),
61
- page: zod_1.z.coerce.number().int().min(1).max(25).optional().default(1),
62
- limit: zod_1.z.coerce.number().min(1).max(10).default(10),
63
- });
64
- exports.TrendingLocationPresetsQuerySchema = zod_1.z.object({
65
- type: zod_1.z.enum(['NOVEL']),
66
- });
67
59
  exports.CreateLocationPresetSchema = zod_1.z.object({
68
60
  locationId: zod_1.z.coerce.bigint(),
69
61
  visibility: zod_1.z.enum(['private', 'public', 'publish']).optional(),
70
- name: zod_1.z.string().max(64).optional(),
71
- presetDescription: zod_1.z.string().max(1000),
72
- presetShortDescription: zod_1.z.string().max(80),
73
- canvases: zod_1.z.array(location_preset_1.LocationPresetCanvasSchema).max(4).optional(),
62
+ presetDescription: zod_1.z.string().max(500),
74
63
  messages: zod_1.z.array(location_preset_1.LocationPresetMessageSchema).max(10).optional(),
75
64
  hashtags: zod_1.z.array(zod_1.z.string().max(16)).max(3).optional(),
76
65
  isAllowImport: zod_1.z.boolean().optional(),
@@ -84,10 +73,7 @@ exports.UpdateLocationPresetParamsSchema = zod_1.z.object({
84
73
  });
85
74
  exports.UpdateLocationPresetBodySchema = zod_1.z.object({
86
75
  visibility: zod_1.z.enum(['private', 'public', 'publish']).optional(),
87
- name: zod_1.z.string().max(64).optional(),
88
- presetDescription: zod_1.z.string().max(1000).optional(),
89
- presetShortDescription: zod_1.z.string().max(80).optional(),
90
- canvases: zod_1.z.array(location_preset_1.LocationPresetCanvasSchema).max(4).optional(),
76
+ presetDescription: zod_1.z.string().max(500).optional(),
91
77
  messages: zod_1.z.array(location_preset_1.LocationPresetMessageSchema).max(10).optional(),
92
78
  hashtags: zod_1.z.array(zod_1.z.string().max(16)).max(3).optional(),
93
79
  isAllowImport: zod_1.z.boolean().optional(),
@@ -96,11 +82,6 @@ exports.UpdateLocationPresetBodySchema = zod_1.z.object({
96
82
  exports.DeleteLocationPresetParamsSchema = zod_1.z.object({
97
83
  presetId: zod_1.z.coerce.bigint(),
98
84
  });
99
- exports.GetLocationPresetLocationsParamsSchema = zod_1.z.object({
100
- presetId: zod_1.z.coerce.bigint(),
101
- cursor: zod_1.z.string().optional(),
102
- limit: zod_1.z.coerce.number().min(1).max(10).default(10),
103
- });
104
85
  exports.CreateLocationSchema = zod_1.z.object({
105
86
  config: location_config_1.LocationConfigSchema.partial()
106
87
  .strict()
@@ -157,12 +138,6 @@ exports.GetLocationPrivateParamsSchema = zod_1.z.object({
157
138
  exports.GetLocationCostParamsSchema = zod_1.z.object({
158
139
  locationId: zod_1.z.coerce.bigint(),
159
140
  });
160
- exports.ResetLocationParamsSchema = zod_1.z.object({
161
- locationId: zod_1.z.coerce.bigint(),
162
- });
163
- exports.ResetLocationBodySchema = zod_1.z.object({
164
- resetAgents: zod_1.z.boolean().optional().default(false),
165
- });
166
141
  exports.UploadLocationThumbnailParamsSchema = zod_1.z.object({
167
142
  locationId: zod_1.z.coerce.bigint(),
168
143
  });
@@ -236,13 +211,6 @@ exports.UpdateLocationBodySchema = zod_1.z.object({
236
211
  isAdminChat: zod_1.z.boolean().optional(),
237
212
  isSensitive: zod_1.z.boolean().optional(),
238
213
  });
239
- exports.UpdateLocationCanvasParamsSchema = zod_1.z.object({
240
- locationId: zod_1.z.coerce.bigint(),
241
- });
242
- exports.UpdateLocationCanvasBodySchema = zod_1.z.object({
243
- name: zod_1.z.string().max(32),
244
- text: zod_1.z.string().max(5000),
245
- });
246
214
  exports.GetLocationScheduledMessagesParamsSchema = zod_1.z.object({
247
215
  locationId: zod_1.z.coerce.bigint(),
248
216
  });