@little-samo/samo-ai-sdk 0.1.3-rv7 → 0.1.4-rv1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/dto/entities/agents/agent.d.ts +7 -0
  2. package/dist/dto/entities/agents/agent.requests.d.ts +106 -15
  3. package/dist/dto/entities/agents/agent.requests.js +10 -8
  4. package/dist/dto/entities/agents/agent.requests.js.map +1 -1
  5. package/dist/dto/entities/gimmicks/gimmick.d.ts +5 -0
  6. package/dist/dto/entities/gimmicks/gimmick.js +3 -0
  7. package/dist/dto/entities/gimmicks/gimmick.js.map +1 -0
  8. package/dist/dto/entities/gimmicks/index.d.ts +1 -0
  9. package/dist/dto/entities/gimmicks/index.js +18 -0
  10. package/dist/dto/entities/gimmicks/index.js.map +1 -0
  11. package/dist/dto/entities/index.d.ts +1 -0
  12. package/dist/dto/entities/index.js +1 -0
  13. package/dist/dto/entities/index.js.map +1 -1
  14. package/dist/dto/entities/users/user.d.ts +4 -0
  15. package/dist/dto/entities/users/user.requests.d.ts +6 -1
  16. package/dist/dto/entities/users/user.requests.js +2 -1
  17. package/dist/dto/entities/users/user.requests.js.map +1 -1
  18. package/dist/dto/locations/index.d.ts +1 -0
  19. package/dist/dto/locations/index.js +1 -0
  20. package/dist/dto/locations/index.js.map +1 -1
  21. package/dist/dto/locations/location.d.ts +8 -1
  22. package/dist/dto/locations/location.message.d.ts +1 -0
  23. package/dist/dto/locations/location.requests.d.ts +278 -71
  24. package/dist/dto/locations/location.requests.js +39 -11
  25. package/dist/dto/locations/location.requests.js.map +1 -1
  26. package/dist/dto/locations/location.snapshot.d.ts +11 -0
  27. package/dist/dto/locations/location.snapshot.js +3 -0
  28. package/dist/dto/locations/location.snapshot.js.map +1 -0
  29. package/dist/models/entities/agents/agent.config.d.ts +4 -4
  30. package/dist/models/entities/agents/agent.config.js +3 -1
  31. package/dist/models/entities/agents/agent.config.js.map +1 -1
  32. package/dist/models/locations/location.config.d.ts +3 -0
  33. package/dist/models/locations/location.config.js +13 -12
  34. package/dist/models/locations/location.config.js.map +1 -1
  35. package/package.json +3 -3
@@ -1,10 +1,12 @@
1
1
  import { DayOfWeek } from '@little-samo/samo-ai/common';
2
+ import { LocationId } from '@little-samo/samo-ai/models';
2
3
  import { z } from 'zod';
3
4
  import { LocationConfig } from '../../models/locations/location.config';
4
- import { LocationContentDto, LocationListItemDto, LocationPrivateDto } from './location';
5
+ import { LocationContentDto, LocationCostDto, LocationListItemDto, LocationPrivateDto } from './location';
5
6
  import { LocationMessageDto } from './location.message';
6
7
  import { LocationPresetDto } from './location.preset';
7
8
  import { LocationScheduledMessageDto } from './location.scheduled-message';
9
+ import { LocationSnapshotDto } from './location.snapshot';
8
10
  export declare const UserLocationsQuerySchema: z.ZodObject<{
9
11
  cursor: z.ZodOptional<z.ZodString>;
10
12
  limit: z.ZodDefault<z.ZodNumber>;
@@ -32,7 +34,7 @@ export declare const LocationsUnreadCountQuerySchema: z.ZodObject<{
32
34
  }>;
33
35
  export type LocationsUnreadCountQueryDto = z.infer<typeof LocationsUnreadCountQuerySchema>;
34
36
  export interface LocationUnreadCountItemDto {
35
- locationId: bigint;
37
+ locationId: LocationId;
36
38
  unreadCount: number;
37
39
  lastMessage: LocationMessageDto | null;
38
40
  }
@@ -89,23 +91,23 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
89
91
  appearance: z.ZodString;
90
92
  }, "strip", z.ZodTypeAny, {
91
93
  name: string;
92
- core: "web_search" | "x_twitter" | "notion";
93
94
  appearance: string;
95
+ core: "web_search" | "x_twitter" | "notion";
94
96
  }, {
95
97
  name: string;
96
- core: "web_search" | "x_twitter" | "notion";
97
98
  appearance: string;
99
+ core: "web_search" | "x_twitter" | "notion";
98
100
  }>, "many">>;
99
101
  }, "strict", z.ZodTypeAny, {
100
102
  name?: string | undefined;
101
- thumbnail?: string | null | undefined;
102
- environment?: "CHAT" | undefined;
103
+ description?: string | undefined;
103
104
  core?: {
104
105
  name: "round_robin" | "update_forever" | "update_once";
105
106
  sequential?: boolean | undefined;
106
107
  } | undefined;
107
- description?: string | undefined;
108
108
  rules?: string[] | undefined;
109
+ thumbnail?: string | null | undefined;
110
+ environment?: "CHAT" | undefined;
109
111
  canvases?: {
110
112
  name: string;
111
113
  description: string;
@@ -118,19 +120,19 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
118
120
  }[] | undefined;
119
121
  gimmicks?: {
120
122
  name: string;
121
- core: "web_search" | "x_twitter" | "notion";
122
123
  appearance: string;
124
+ core: "web_search" | "x_twitter" | "notion";
123
125
  }[] | undefined;
124
126
  }, {
125
127
  name?: string | undefined;
126
- thumbnail?: string | null | undefined;
127
- environment?: "CHAT" | undefined;
128
+ description?: string | undefined;
128
129
  core?: {
129
130
  name: "round_robin" | "update_forever" | "update_once";
130
131
  sequential?: boolean | undefined;
131
132
  } | undefined;
132
- description?: string | undefined;
133
133
  rules?: string[] | undefined;
134
+ thumbnail?: string | null | undefined;
135
+ environment?: "CHAT" | undefined;
134
136
  canvases?: {
135
137
  name: string;
136
138
  description: string;
@@ -143,22 +145,22 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
143
145
  }[] | undefined;
144
146
  gimmicks?: {
145
147
  name: string;
146
- core: "web_search" | "x_twitter" | "notion";
147
148
  appearance: string;
149
+ core: "web_search" | "x_twitter" | "notion";
148
150
  }[] | undefined;
149
151
  }>;
150
152
  }, "strip", z.ZodTypeAny, {
151
153
  locationId: bigint;
152
154
  config: {
153
155
  name?: string | undefined;
154
- thumbnail?: string | null | undefined;
155
- environment?: "CHAT" | undefined;
156
+ description?: string | undefined;
156
157
  core?: {
157
158
  name: "round_robin" | "update_forever" | "update_once";
158
159
  sequential?: boolean | undefined;
159
160
  } | undefined;
160
- description?: string | undefined;
161
161
  rules?: string[] | undefined;
162
+ thumbnail?: string | null | undefined;
163
+ environment?: "CHAT" | undefined;
162
164
  canvases?: {
163
165
  name: string;
164
166
  description: string;
@@ -171,22 +173,22 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
171
173
  }[] | undefined;
172
174
  gimmicks?: {
173
175
  name: string;
174
- core: "web_search" | "x_twitter" | "notion";
175
176
  appearance: string;
177
+ core: "web_search" | "x_twitter" | "notion";
176
178
  }[] | undefined;
177
179
  };
178
180
  }, {
179
181
  locationId: bigint;
180
182
  config: {
181
183
  name?: string | undefined;
182
- thumbnail?: string | null | undefined;
183
- environment?: "CHAT" | undefined;
184
+ description?: string | undefined;
184
185
  core?: {
185
186
  name: "round_robin" | "update_forever" | "update_once";
186
187
  sequential?: boolean | undefined;
187
188
  } | undefined;
188
- description?: string | undefined;
189
189
  rules?: string[] | undefined;
190
+ thumbnail?: string | null | undefined;
191
+ environment?: "CHAT" | undefined;
190
192
  canvases?: {
191
193
  name: string;
192
194
  description: string;
@@ -199,8 +201,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
199
201
  }[] | undefined;
200
202
  gimmicks?: {
201
203
  name: string;
202
- core: "web_search" | "x_twitter" | "notion";
203
204
  appearance: string;
205
+ core: "web_search" | "x_twitter" | "notion";
204
206
  }[] | undefined;
205
207
  };
206
208
  }>;
@@ -297,19 +299,171 @@ export interface LocationPresetsPaginatedResponseDto {
297
299
  };
298
300
  }
299
301
  export declare const CreateLocationSchema: z.ZodObject<{
300
- name: z.ZodString;
301
- description: z.ZodString;
302
+ config: z.ZodObject<{
303
+ name: z.ZodOptional<z.ZodString>;
304
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
+ environment: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"CHAT">, z.ZodLiteral<"CHAT">]>>;
306
+ core: z.ZodOptional<z.ZodObject<{
307
+ name: z.ZodUnion<[z.ZodLiteral<"round_robin">, z.ZodLiteral<"update_forever">, z.ZodLiteral<"update_once">]>;
308
+ sequential: z.ZodOptional<z.ZodBoolean>;
309
+ }, "strip", z.ZodTypeAny, {
310
+ name: "round_robin" | "update_forever" | "update_once";
311
+ sequential?: boolean | undefined;
312
+ }, {
313
+ name: "round_robin" | "update_forever" | "update_once";
314
+ sequential?: boolean | undefined;
315
+ }>>;
316
+ description: z.ZodOptional<z.ZodString>;
317
+ rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
318
+ canvases: z.ZodOptional<z.ZodArray<z.ZodObject<{
319
+ name: z.ZodString;
320
+ description: z.ZodString;
321
+ maxLength: z.ZodNumber;
322
+ }, "strip", z.ZodTypeAny, {
323
+ name: string;
324
+ description: string;
325
+ maxLength: number;
326
+ }, {
327
+ name: string;
328
+ description: string;
329
+ maxLength: number;
330
+ }>, "many">>;
331
+ agentCanvases: z.ZodOptional<z.ZodArray<z.ZodObject<{
332
+ name: z.ZodString;
333
+ description: z.ZodString;
334
+ maxLength: z.ZodNumber;
335
+ }, "strip", z.ZodTypeAny, {
336
+ name: string;
337
+ description: string;
338
+ maxLength: number;
339
+ }, {
340
+ name: string;
341
+ description: string;
342
+ maxLength: number;
343
+ }>, "many">>;
344
+ gimmicks: z.ZodOptional<z.ZodArray<z.ZodObject<{
345
+ core: z.ZodUnion<[z.ZodLiteral<"web_search">, z.ZodLiteral<"x_twitter">, z.ZodLiteral<"notion">]>;
346
+ name: z.ZodString;
347
+ appearance: z.ZodString;
348
+ }, "strip", z.ZodTypeAny, {
349
+ name: string;
350
+ appearance: string;
351
+ core: "web_search" | "x_twitter" | "notion";
352
+ }, {
353
+ name: string;
354
+ appearance: string;
355
+ core: "web_search" | "x_twitter" | "notion";
356
+ }>, "many">>;
357
+ }, "strict", z.ZodTypeAny, {
358
+ name?: string | undefined;
359
+ description?: string | undefined;
360
+ core?: {
361
+ name: "round_robin" | "update_forever" | "update_once";
362
+ sequential?: boolean | undefined;
363
+ } | undefined;
364
+ rules?: string[] | undefined;
365
+ thumbnail?: string | null | undefined;
366
+ environment?: "CHAT" | undefined;
367
+ canvases?: {
368
+ name: string;
369
+ description: string;
370
+ maxLength: number;
371
+ }[] | undefined;
372
+ agentCanvases?: {
373
+ name: string;
374
+ description: string;
375
+ maxLength: number;
376
+ }[] | undefined;
377
+ gimmicks?: {
378
+ name: string;
379
+ appearance: string;
380
+ core: "web_search" | "x_twitter" | "notion";
381
+ }[] | undefined;
382
+ }, {
383
+ name?: string | undefined;
384
+ description?: string | undefined;
385
+ core?: {
386
+ name: "round_robin" | "update_forever" | "update_once";
387
+ sequential?: boolean | undefined;
388
+ } | undefined;
389
+ rules?: string[] | undefined;
390
+ thumbnail?: string | null | undefined;
391
+ environment?: "CHAT" | undefined;
392
+ canvases?: {
393
+ name: string;
394
+ description: string;
395
+ maxLength: number;
396
+ }[] | undefined;
397
+ agentCanvases?: {
398
+ name: string;
399
+ description: string;
400
+ maxLength: number;
401
+ }[] | undefined;
402
+ gimmicks?: {
403
+ name: string;
404
+ appearance: string;
405
+ core: "web_search" | "x_twitter" | "notion";
406
+ }[] | undefined;
407
+ }>;
302
408
  platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
303
409
  readonly API: "API";
304
410
  readonly MINIMO: "MINIMO";
305
411
  }>>>;
306
412
  }, "strip", z.ZodTypeAny, {
307
- name: string;
308
- description: string;
413
+ config: {
414
+ name?: string | undefined;
415
+ description?: string | undefined;
416
+ core?: {
417
+ name: "round_robin" | "update_forever" | "update_once";
418
+ sequential?: boolean | undefined;
419
+ } | undefined;
420
+ rules?: string[] | undefined;
421
+ thumbnail?: string | null | undefined;
422
+ environment?: "CHAT" | undefined;
423
+ canvases?: {
424
+ name: string;
425
+ description: string;
426
+ maxLength: number;
427
+ }[] | undefined;
428
+ agentCanvases?: {
429
+ name: string;
430
+ description: string;
431
+ maxLength: number;
432
+ }[] | undefined;
433
+ gimmicks?: {
434
+ name: string;
435
+ appearance: string;
436
+ core: "web_search" | "x_twitter" | "notion";
437
+ }[] | undefined;
438
+ };
309
439
  platform: "API" | "MINIMO";
310
440
  }, {
311
- name: string;
312
- description: string;
441
+ config: {
442
+ name?: string | undefined;
443
+ description?: string | undefined;
444
+ core?: {
445
+ name: "round_robin" | "update_forever" | "update_once";
446
+ sequential?: boolean | undefined;
447
+ } | undefined;
448
+ rules?: string[] | undefined;
449
+ thumbnail?: string | null | undefined;
450
+ environment?: "CHAT" | undefined;
451
+ canvases?: {
452
+ name: string;
453
+ description: string;
454
+ maxLength: number;
455
+ }[] | undefined;
456
+ agentCanvases?: {
457
+ name: string;
458
+ description: string;
459
+ maxLength: number;
460
+ }[] | undefined;
461
+ gimmicks?: {
462
+ name: string;
463
+ appearance: string;
464
+ core: "web_search" | "x_twitter" | "notion";
465
+ }[] | undefined;
466
+ };
313
467
  platform?: "API" | "MINIMO" | undefined;
314
468
  }>;
315
469
  export type CreateLocationDto = z.infer<typeof CreateLocationSchema>;
@@ -347,6 +501,40 @@ export type GetHelperLocationDto = z.infer<typeof GetHelperLocationQuerySchema>;
347
501
  export interface GetHelperLocationResponseDto {
348
502
  location: LocationPrivateDto;
349
503
  }
504
+ export declare const GetAgentHelperLocationQuerySchema: z.ZodObject<{
505
+ agentId: z.ZodBigInt;
506
+ platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
507
+ readonly API: "API";
508
+ readonly MINIMO: "MINIMO";
509
+ }>>>;
510
+ }, "strip", z.ZodTypeAny, {
511
+ platform: "API" | "MINIMO";
512
+ agentId: bigint;
513
+ }, {
514
+ agentId: bigint;
515
+ platform?: "API" | "MINIMO" | undefined;
516
+ }>;
517
+ export type GetAgentHelperLocationDto = z.infer<typeof GetAgentHelperLocationQuerySchema>;
518
+ export interface GetAgentHelperLocationResponseDto {
519
+ location: LocationPrivateDto;
520
+ }
521
+ export declare const GetLocationHelperLocationQuerySchema: z.ZodObject<{
522
+ locationId: z.ZodBigInt;
523
+ platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
524
+ readonly API: "API";
525
+ readonly MINIMO: "MINIMO";
526
+ }>>>;
527
+ }, "strip", z.ZodTypeAny, {
528
+ locationId: bigint;
529
+ platform: "API" | "MINIMO";
530
+ }, {
531
+ locationId: bigint;
532
+ platform?: "API" | "MINIMO" | undefined;
533
+ }>;
534
+ export type GetLocationHelperLocationDto = z.infer<typeof GetLocationHelperLocationQuerySchema>;
535
+ export interface GetLocationHelperLocationResponseDto {
536
+ location: LocationPrivateDto;
537
+ }
350
538
  export declare const GetAgentDmLocationQuerySchema: z.ZodObject<{
351
539
  agentId: z.ZodBigInt;
352
540
  platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
@@ -386,6 +574,17 @@ export type GetLocationPrivateParamsDto = z.infer<typeof GetLocationPrivateParam
386
574
  export interface GetLocationPrivateResponseDto {
387
575
  location: LocationPrivateDto;
388
576
  }
577
+ export declare const GetLocationCostParamsSchema: z.ZodObject<{
578
+ locationId: z.ZodBigInt;
579
+ }, "strip", z.ZodTypeAny, {
580
+ locationId: bigint;
581
+ }, {
582
+ locationId: bigint;
583
+ }>;
584
+ export type GetLocationCostParamsDto = z.infer<typeof GetLocationCostParamsSchema>;
585
+ export interface GetLocationCostResponseDto {
586
+ cost: LocationCostDto;
587
+ }
389
588
  export declare const UploadLocationThumbnailParamsSchema: z.ZodObject<{
390
589
  locationId: z.ZodBigInt;
391
590
  }, "strip", z.ZodTypeAny, {
@@ -397,6 +596,18 @@ export type UploadLocationThumbnailParamsDto = z.infer<typeof UploadLocationThum
397
596
  export interface UploadLocationThumbnailResponseDto {
398
597
  thumbnailUrl: string;
399
598
  }
599
+ export declare const DeleteLocationParamsSchema: z.ZodObject<{
600
+ locationId: z.ZodBigInt;
601
+ }, "strip", z.ZodTypeAny, {
602
+ locationId: bigint;
603
+ }, {
604
+ locationId: bigint;
605
+ }>;
606
+ export type DeleteLocationParamsDto = z.infer<typeof DeleteLocationParamsSchema>;
607
+ export interface DeleteLocationResponseDto {
608
+ success: boolean;
609
+ error?: string;
610
+ }
400
611
  export declare const GetLocationContentParamsSchema: z.ZodObject<{
401
612
  locationId: z.ZodBigInt;
402
613
  }, "strip", z.ZodTypeAny, {
@@ -408,6 +619,36 @@ export type GetLocationContentParamsDto = z.infer<typeof GetLocationContentParam
408
619
  export interface GetLocationContentResponseDto {
409
620
  content: LocationContentDto;
410
621
  }
622
+ export declare const CreateLocationSnapshotParamsSchema: z.ZodObject<{
623
+ locationId: z.ZodBigInt;
624
+ }, "strip", z.ZodTypeAny, {
625
+ locationId: bigint;
626
+ }, {
627
+ locationId: bigint;
628
+ }>;
629
+ export type CreateLocationSnapshotParamsDto = z.infer<typeof CreateLocationSnapshotParamsSchema>;
630
+ export declare const CreateLocationSnapshotBodySchema: z.ZodObject<{
631
+ maxMessages: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
632
+ }, "strip", z.ZodTypeAny, {
633
+ maxMessages: number;
634
+ }, {
635
+ maxMessages?: number | undefined;
636
+ }>;
637
+ export type CreateLocationSnapshotBodyDto = z.infer<typeof CreateLocationSnapshotBodySchema>;
638
+ export interface CreateLocationSnapshotResponseDto {
639
+ snapshotKey: string;
640
+ }
641
+ export declare const GetLocationSnapshotParamsSchema: z.ZodObject<{
642
+ snapshotKey: z.ZodString;
643
+ }, "strip", z.ZodTypeAny, {
644
+ snapshotKey: string;
645
+ }, {
646
+ snapshotKey: string;
647
+ }>;
648
+ export type GetLocationSnapshotParamsDto = z.infer<typeof GetLocationSnapshotParamsSchema>;
649
+ export interface GetLocationSnapshotResponseDto {
650
+ snapshot: LocationSnapshotDto;
651
+ }
411
652
  export declare const MarkLocationAsReadParamsSchema: z.ZodObject<{
412
653
  locationId: z.ZodBigInt;
413
654
  }, "strip", z.ZodTypeAny, {
@@ -628,8 +869,6 @@ export declare const JoinLocationSchema: z.ZodObject<{
628
869
  }>;
629
870
  export type JoinLocationDto = z.infer<typeof JoinLocationSchema>;
630
871
  export interface JoinLocationResponseDto {
631
- success: boolean;
632
- locationId: bigint;
633
872
  joined: boolean;
634
873
  }
635
874
  export declare const LeaveLocationSchema: z.ZodObject<{
@@ -641,8 +880,6 @@ export declare const LeaveLocationSchema: z.ZodObject<{
641
880
  }>;
642
881
  export type LeaveLocationDto = z.infer<typeof LeaveLocationSchema>;
643
882
  export interface LeaveLocationResponseDto {
644
- success: boolean;
645
- locationId: bigint;
646
883
  left: boolean;
647
884
  }
648
885
  export declare const SubscribeLocationSchema: z.ZodObject<{
@@ -654,8 +891,6 @@ export declare const SubscribeLocationSchema: z.ZodObject<{
654
891
  }>;
655
892
  export type SubscribeLocationDto = z.infer<typeof SubscribeLocationSchema>;
656
893
  export interface SubscribeLocationResponseDto {
657
- success: boolean;
658
- locationId: bigint;
659
894
  subscribed: boolean;
660
895
  }
661
896
  export declare const UnsubscribeLocationSchema: z.ZodObject<{
@@ -667,8 +902,6 @@ export declare const UnsubscribeLocationSchema: z.ZodObject<{
667
902
  }>;
668
903
  export type UnsubscribeLocationDto = z.infer<typeof UnsubscribeLocationSchema>;
669
904
  export interface UnsubscribeLocationResponseDto {
670
- success: boolean;
671
- locationId: bigint;
672
905
  unsubscribed: boolean;
673
906
  }
674
907
  export declare const GetLocationMessagesSchema: z.ZodObject<{
@@ -688,39 +921,23 @@ export interface LocationMessagesResponseDto {
688
921
  }
689
922
  export declare const SendLocationMessageSchema: z.ZodObject<{
690
923
  locationId: z.ZodBigInt;
691
- message: z.ZodString;
924
+ message: z.ZodOptional<z.ZodString>;
925
+ action: z.ZodOptional<z.ZodString>;
926
+ image: z.ZodOptional<z.ZodString>;
692
927
  }, "strip", z.ZodTypeAny, {
693
- message: string;
694
928
  locationId: bigint;
929
+ message?: string | undefined;
930
+ action?: string | undefined;
931
+ image?: string | undefined;
695
932
  }, {
696
- message: string;
697
933
  locationId: bigint;
934
+ message?: string | undefined;
935
+ action?: string | undefined;
936
+ image?: string | undefined;
698
937
  }>;
699
938
  export type SendLocationMessageDto = z.infer<typeof SendLocationMessageSchema>;
700
939
  export interface SendMessageResponseDto {
701
- success: boolean;
702
- messageId?: string;
703
940
  }
704
- export declare const SendUserMessageSchema: z.ZodObject<{
705
- locationId: z.ZodBigInt;
706
- twitchUserId: z.ZodString;
707
- username: z.ZodString;
708
- nickname: z.ZodString;
709
- message: z.ZodString;
710
- }, "strip", z.ZodTypeAny, {
711
- message: string;
712
- locationId: bigint;
713
- username: string;
714
- twitchUserId: string;
715
- nickname: string;
716
- }, {
717
- message: string;
718
- locationId: bigint;
719
- username: string;
720
- twitchUserId: string;
721
- nickname: string;
722
- }>;
723
- export type SendUserMessageDto = z.infer<typeof SendUserMessageSchema>;
724
941
  export declare const SendSystemMessageSchema: z.ZodObject<{
725
942
  locationId: z.ZodBigInt;
726
943
  message: z.ZodString;
@@ -735,6 +952,8 @@ export declare const SendSystemMessageSchema: z.ZodObject<{
735
952
  resumeUpdate?: boolean | undefined;
736
953
  }>;
737
954
  export type SendSystemMessageDto = z.infer<typeof SendSystemMessageSchema>;
955
+ export interface SendSystemMessageResponseDto {
956
+ }
738
957
  export declare const UpdateLocationImageSchema: z.ZodObject<{
739
958
  locationId: z.ZodBigInt;
740
959
  image: z.ZodString;
@@ -750,7 +969,6 @@ export declare const UpdateLocationImageSchema: z.ZodObject<{
750
969
  }>;
751
970
  export type UpdateLocationImageDto = z.infer<typeof UpdateLocationImageSchema>;
752
971
  export interface UpdateLocationImageResponseDto {
753
- success: boolean;
754
972
  imageUrl?: string;
755
973
  }
756
974
  export declare const UpdateLocationRenderingSchema: z.ZodObject<{
@@ -765,8 +983,6 @@ export declare const UpdateLocationRenderingSchema: z.ZodObject<{
765
983
  }>;
766
984
  export type UpdateLocationRenderingDto = z.infer<typeof UpdateLocationRenderingSchema>;
767
985
  export interface UpdateLocationRenderingResponseDto {
768
- success: boolean;
769
- rendering?: string | null;
770
986
  }
771
987
  export declare const UpdateLocationAgentIsActiveSchema: z.ZodObject<{
772
988
  locationId: z.ZodBigInt;
@@ -783,9 +999,6 @@ export declare const UpdateLocationAgentIsActiveSchema: z.ZodObject<{
783
999
  }>;
784
1000
  export type UpdateLocationAgentIsActiveDto = z.infer<typeof UpdateLocationAgentIsActiveSchema>;
785
1001
  export interface UpdateLocationAgentIsActiveResponseDto {
786
- success: boolean;
787
- agentId: bigint;
788
- isActive: boolean;
789
1002
  }
790
1003
  export declare const PauseLocationUpdateSchema: z.ZodObject<{
791
1004
  locationId: z.ZodBigInt;
@@ -796,9 +1009,6 @@ export declare const PauseLocationUpdateSchema: z.ZodObject<{
796
1009
  }>;
797
1010
  export type PauseLocationUpdateDto = z.infer<typeof PauseLocationUpdateSchema>;
798
1011
  export interface PauseLocationUpdateResponseDto {
799
- success: boolean;
800
- locationId: bigint;
801
- paused: boolean;
802
1012
  }
803
1013
  export declare const ResumeLocationUpdateSchema: z.ZodObject<{
804
1014
  locationId: z.ZodBigInt;
@@ -812,8 +1022,5 @@ export declare const ResumeLocationUpdateSchema: z.ZodObject<{
812
1022
  }>;
813
1023
  export type ResumeLocationUpdateDto = z.infer<typeof ResumeLocationUpdateSchema>;
814
1024
  export interface ResumeLocationUpdateResponseDto {
815
- success: boolean;
816
- locationId: bigint;
817
- delayMs: number;
818
1025
  resumeAt: string;
819
1026
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResumeLocationUpdateSchema = exports.PauseLocationUpdateSchema = exports.UpdateLocationAgentIsActiveSchema = exports.UpdateLocationRenderingSchema = exports.UpdateLocationImageSchema = exports.SendSystemMessageSchema = exports.SendUserMessageSchema = exports.SendLocationMessageSchema = exports.GetLocationMessagesSchema = exports.UnsubscribeLocationSchema = exports.SubscribeLocationSchema = exports.LeaveLocationSchema = exports.JoinLocationSchema = exports.DeleteLocationScheduledMessageToolSchema = exports.DeleteLocationScheduledMessageParamsSchema = exports.UpdateLocationScheduledMessageToolSchema = exports.UpdateLocationScheduledMessageBodySchema = exports.UpdateLocationScheduledMessageParamsSchema = exports.CreateLocationScheduledMessageToolSchema = exports.CreateLocationScheduledMessageBodySchema = exports.CreateLocationScheduledMessageParamsSchema = exports.GetLocationScheduledMessagesParamsSchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationContentParamsSchema = exports.UploadLocationThumbnailParamsSchema = exports.GetLocationPrivateParamsSchema = exports.GetLocationParamsSchema = exports.GetAgentDmLocationQuerySchema = exports.GetHelperLocationQuerySchema = exports.CreateLocationFromPresetSchema = exports.CreateLocationSchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationDeleteCredentialSchema = exports.LocationUpdateCredentialSchema = exports.LocationUpdateConfigSchema = exports.LocationsUnreadCountQuerySchema = exports.UserLocationsQuerySchema = void 0;
3
+ exports.ResumeLocationUpdateSchema = exports.PauseLocationUpdateSchema = exports.UpdateLocationAgentIsActiveSchema = exports.UpdateLocationRenderingSchema = exports.UpdateLocationImageSchema = exports.SendSystemMessageSchema = exports.SendLocationMessageSchema = exports.GetLocationMessagesSchema = exports.UnsubscribeLocationSchema = exports.SubscribeLocationSchema = exports.LeaveLocationSchema = exports.JoinLocationSchema = exports.DeleteLocationScheduledMessageToolSchema = exports.DeleteLocationScheduledMessageParamsSchema = exports.UpdateLocationScheduledMessageToolSchema = exports.UpdateLocationScheduledMessageBodySchema = exports.UpdateLocationScheduledMessageParamsSchema = exports.CreateLocationScheduledMessageToolSchema = exports.CreateLocationScheduledMessageBodySchema = exports.CreateLocationScheduledMessageParamsSchema = exports.GetLocationScheduledMessagesParamsSchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationSnapshotParamsSchema = exports.CreateLocationSnapshotBodySchema = exports.CreateLocationSnapshotParamsSchema = exports.GetLocationContentParamsSchema = exports.DeleteLocationParamsSchema = exports.UploadLocationThumbnailParamsSchema = exports.GetLocationCostParamsSchema = exports.GetLocationPrivateParamsSchema = exports.GetLocationParamsSchema = exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.GetHelperLocationQuerySchema = exports.CreateLocationFromPresetSchema = exports.CreateLocationSchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationDeleteCredentialSchema = exports.LocationUpdateCredentialSchema = exports.LocationUpdateConfigSchema = exports.LocationsUnreadCountQuerySchema = exports.UserLocationsQuerySchema = void 0;
4
4
  const common_1 = require("@little-samo/samo-ai/common");
5
5
  const models_1 = require("@little-samo/samo-ai-sdk/models");
6
6
  const zod_1 = require("zod");
@@ -52,8 +52,9 @@ exports.LocationPresetsPaginationQuerySchema = zod_1.z.object({
52
52
  limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(20),
53
53
  });
54
54
  exports.CreateLocationSchema = zod_1.z.object({
55
- name: zod_1.z.string().max(64),
56
- description: zod_1.z.string().max(500),
55
+ config: location_config_1.LocationConfigSchema.partial()
56
+ .strict()
57
+ .describe('Location configuration settings (e.g., name, description)'),
57
58
  platform: zod_1.z
58
59
  .nativeEnum(models_1.LocationPlatform)
59
60
  .optional()
@@ -72,6 +73,20 @@ exports.GetHelperLocationQuerySchema = zod_1.z.object({
72
73
  .optional()
73
74
  .default(models_1.LocationPlatform.API),
74
75
  });
76
+ exports.GetAgentHelperLocationQuerySchema = zod_1.z.object({
77
+ agentId: zod_1.z.coerce.bigint(),
78
+ platform: zod_1.z
79
+ .nativeEnum(models_1.LocationPlatform)
80
+ .optional()
81
+ .default(models_1.LocationPlatform.API),
82
+ });
83
+ exports.GetLocationHelperLocationQuerySchema = zod_1.z.object({
84
+ locationId: zod_1.z.coerce.bigint(),
85
+ platform: zod_1.z
86
+ .nativeEnum(models_1.LocationPlatform)
87
+ .optional()
88
+ .default(models_1.LocationPlatform.API),
89
+ });
75
90
  exports.GetAgentDmLocationQuerySchema = zod_1.z.object({
76
91
  agentId: zod_1.z.coerce.bigint(),
77
92
  platform: zod_1.z
@@ -85,12 +100,27 @@ exports.GetLocationParamsSchema = zod_1.z.object({
85
100
  exports.GetLocationPrivateParamsSchema = zod_1.z.object({
86
101
  locationId: zod_1.z.coerce.bigint(),
87
102
  });
103
+ exports.GetLocationCostParamsSchema = zod_1.z.object({
104
+ locationId: zod_1.z.coerce.bigint(),
105
+ });
88
106
  exports.UploadLocationThumbnailParamsSchema = zod_1.z.object({
89
107
  locationId: zod_1.z.coerce.bigint(),
90
108
  });
109
+ exports.DeleteLocationParamsSchema = zod_1.z.object({
110
+ locationId: zod_1.z.coerce.bigint(),
111
+ });
91
112
  exports.GetLocationContentParamsSchema = zod_1.z.object({
92
113
  locationId: zod_1.z.coerce.bigint(),
93
114
  });
115
+ exports.CreateLocationSnapshotParamsSchema = zod_1.z.object({
116
+ locationId: zod_1.z.coerce.bigint(),
117
+ });
118
+ exports.CreateLocationSnapshotBodySchema = zod_1.z.object({
119
+ maxMessages: zod_1.z.coerce.number().int().positive().optional().default(30),
120
+ });
121
+ exports.GetLocationSnapshotParamsSchema = zod_1.z.object({
122
+ snapshotKey: zod_1.z.string().max(128),
123
+ });
94
124
  exports.MarkLocationAsReadParamsSchema = zod_1.z.object({
95
125
  locationId: zod_1.z.coerce.bigint(),
96
126
  });
@@ -181,14 +211,12 @@ exports.GetLocationMessagesSchema = zod_1.z.object({
181
211
  });
182
212
  exports.SendLocationMessageSchema = zod_1.z.object({
183
213
  locationId: zod_1.z.coerce.bigint(),
184
- message: zod_1.z.string().max(2000),
185
- });
186
- exports.SendUserMessageSchema = zod_1.z.object({
187
- locationId: zod_1.z.coerce.bigint(),
188
- twitchUserId: zod_1.z.string(),
189
- username: zod_1.z.string(),
190
- nickname: zod_1.z.string(),
191
- message: zod_1.z.string().max(2000),
214
+ message: zod_1.z.string().max(2000).optional(),
215
+ action: zod_1.z.string().max(2000).optional(),
216
+ image: zod_1.z
217
+ .string()
218
+ .max(4 * 1024 * 1024)
219
+ .optional(),
192
220
  });
193
221
  exports.SendSystemMessageSchema = zod_1.z.object({
194
222
  locationId: zod_1.z.coerce.bigint(),