@little-samo/samo-ai-sdk 0.2.1-rv5 → 0.2.1-rv6

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.
@@ -1,5 +1,5 @@
1
1
  import { AgentId, EntityId, EntityType, LocationId, UserId } from '@little-samo/samo-ai';
2
- import type { LocationConfig, LocationEnvironment, LocationPlatform, LocationType } from '@little-samo/samo-ai-sdk/models';
2
+ import type { LocationConfig, LocationConfigCanvas, LocationEnvironment, LocationPlatform, LocationType } from '@little-samo/samo-ai-sdk/models';
3
3
  import type { LocationMessageDto } from './location.message';
4
4
  import type { AgentCostDto } from '../entities/agents/agent';
5
5
  import type { GimmickCostDto, GimmickPublicDto } from '../entities/gimmicks/gimmick';
@@ -12,6 +12,7 @@ export interface LocationPublicDto {
12
12
  maxUsers: number;
13
13
  thumbnail: string | null;
14
14
  ownerUserId: UserId | null;
15
+ canvasConfigs: LocationConfigCanvas[];
15
16
  gimmicks: GimmickPublicDto[];
16
17
  isPublished: boolean;
17
18
  publishedAt: Date | null;
@@ -1,5 +1,6 @@
1
1
  import { UserId } from '@little-samo/samo-ai';
2
2
  import z from 'zod';
3
+ import type { LocationConfigCanvas } from '@little-samo/samo-ai-sdk/models';
3
4
  import type { AgentCostDto, AgentPublicDto, GimmickCostDto, GimmickPublicDto } from '../entities';
4
5
  export declare const LocationPresetMessageSchema: z.ZodObject<{
5
6
  entityType: z.ZodNativeEnum<{
@@ -46,6 +47,7 @@ export interface LocationPresetDto {
46
47
  gimmicks: GimmickPublicDto[];
47
48
  gimmickCosts: GimmickCostDto[];
48
49
  canvases: LocationPresetCanvasDto[];
50
+ canvasConfigs: LocationConfigCanvas[];
49
51
  messages: LocationPresetMessageDto[];
50
52
  isPublished: boolean;
51
53
  publishedAt: Date | null;
@@ -1 +1 @@
1
- {"version":3,"file":"location.preset.js","sourceRoot":"","sources":["../../../src/dto/locations/location.preset.ts"],"names":[],"mappings":";;;;;;AAAA,kDAA0D;AA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;IACxB,IAAI,EAAE,aAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC;CAC3B,CAAC,CAAC"}
@@ -133,16 +133,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
133
133
  }>, "many">>;
134
134
  }, "strip", z.ZodTypeAny, {
135
135
  name: string;
136
- appearance: string;
137
136
  core: "web_search" | "image_generator" | "notion";
137
+ appearance: string;
138
138
  images?: {
139
139
  description: string;
140
140
  url: string;
141
141
  }[] | undefined;
142
142
  }, {
143
143
  name: string;
144
- appearance: string;
145
144
  core: "web_search" | "image_generator" | "notion";
145
+ appearance: string;
146
146
  images?: {
147
147
  description: string;
148
148
  url: string;
@@ -150,16 +150,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
150
150
  }>, "many">>;
151
151
  }, "strict", z.ZodTypeAny, {
152
152
  name?: string | undefined;
153
- description?: string | undefined;
153
+ thumbnail?: string | null | undefined;
154
+ environment?: "CHAT" | "NOVEL" | undefined;
154
155
  core?: {
155
156
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
156
157
  sequential?: boolean | undefined;
157
158
  interval?: number | undefined;
158
159
  maxAgentExecutions?: number | null | undefined;
159
160
  } | undefined;
161
+ description?: string | undefined;
160
162
  rules?: string[] | undefined;
161
- thumbnail?: string | null | undefined;
162
- environment?: "CHAT" | "NOVEL" | undefined;
163
163
  canvases?: {
164
164
  name: string;
165
165
  description: string;
@@ -172,8 +172,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
172
172
  }[] | undefined;
173
173
  gimmicks?: {
174
174
  name: string;
175
- appearance: string;
176
175
  core: "web_search" | "image_generator" | "notion";
176
+ appearance: string;
177
177
  images?: {
178
178
  description: string;
179
179
  url: string;
@@ -181,16 +181,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
181
181
  }[] | undefined;
182
182
  }, {
183
183
  name?: string | undefined;
184
- description?: string | undefined;
184
+ thumbnail?: string | null | undefined;
185
+ environment?: "CHAT" | "NOVEL" | undefined;
185
186
  core?: {
186
187
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
187
188
  sequential?: boolean | undefined;
188
189
  interval?: number | undefined;
189
190
  maxAgentExecutions?: number | null | undefined;
190
191
  } | undefined;
192
+ description?: string | undefined;
191
193
  rules?: string[] | undefined;
192
- thumbnail?: string | null | undefined;
193
- environment?: "CHAT" | "NOVEL" | undefined;
194
194
  canvases?: {
195
195
  name: string;
196
196
  description: string;
@@ -203,8 +203,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
203
203
  }[] | undefined;
204
204
  gimmicks?: {
205
205
  name: string;
206
- appearance: string;
207
206
  core: "web_search" | "image_generator" | "notion";
207
+ appearance: string;
208
208
  images?: {
209
209
  description: string;
210
210
  url: string;
@@ -215,16 +215,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
215
215
  locationId: bigint;
216
216
  config: {
217
217
  name?: string | undefined;
218
- description?: string | undefined;
218
+ thumbnail?: string | null | undefined;
219
+ environment?: "CHAT" | "NOVEL" | undefined;
219
220
  core?: {
220
221
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
221
222
  sequential?: boolean | undefined;
222
223
  interval?: number | undefined;
223
224
  maxAgentExecutions?: number | null | undefined;
224
225
  } | undefined;
226
+ description?: string | undefined;
225
227
  rules?: string[] | undefined;
226
- thumbnail?: string | null | undefined;
227
- environment?: "CHAT" | "NOVEL" | undefined;
228
228
  canvases?: {
229
229
  name: string;
230
230
  description: string;
@@ -237,8 +237,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
237
237
  }[] | undefined;
238
238
  gimmicks?: {
239
239
  name: string;
240
- appearance: string;
241
240
  core: "web_search" | "image_generator" | "notion";
241
+ appearance: string;
242
242
  images?: {
243
243
  description: string;
244
244
  url: string;
@@ -249,16 +249,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
249
249
  locationId: bigint;
250
250
  config: {
251
251
  name?: string | undefined;
252
- description?: string | undefined;
252
+ thumbnail?: string | null | undefined;
253
+ environment?: "CHAT" | "NOVEL" | undefined;
253
254
  core?: {
254
255
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
255
256
  sequential?: boolean | undefined;
256
257
  interval?: number | undefined;
257
258
  maxAgentExecutions?: number | null | undefined;
258
259
  } | undefined;
260
+ description?: string | undefined;
259
261
  rules?: string[] | undefined;
260
- thumbnail?: string | null | undefined;
261
- environment?: "CHAT" | "NOVEL" | undefined;
262
262
  canvases?: {
263
263
  name: string;
264
264
  description: string;
@@ -271,8 +271,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
271
271
  }[] | undefined;
272
272
  gimmicks?: {
273
273
  name: string;
274
- appearance: string;
275
274
  core: "web_search" | "image_generator" | "notion";
275
+ appearance: string;
276
276
  images?: {
277
277
  description: string;
278
278
  url: string;
@@ -367,8 +367,8 @@ export declare const PublishedLocationPresetsQuerySchema: z.ZodObject<{
367
367
  page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
368
368
  limit: z.ZodDefault<z.ZodNumber>;
369
369
  }, "strip", z.ZodTypeAny, {
370
- type: "NOVEL";
371
370
  limit: number;
371
+ type: "NOVEL";
372
372
  page: number;
373
373
  }, {
374
374
  type: "NOVEL";
@@ -676,16 +676,16 @@ export declare const CreateLocationSchema: z.ZodObject<{
676
676
  }>, "many">>;
677
677
  }, "strip", z.ZodTypeAny, {
678
678
  name: string;
679
- appearance: string;
680
679
  core: "web_search" | "image_generator" | "notion";
680
+ appearance: string;
681
681
  images?: {
682
682
  description: string;
683
683
  url: string;
684
684
  }[] | undefined;
685
685
  }, {
686
686
  name: string;
687
- appearance: string;
688
687
  core: "web_search" | "image_generator" | "notion";
688
+ appearance: string;
689
689
  images?: {
690
690
  description: string;
691
691
  url: string;
@@ -693,16 +693,16 @@ export declare const CreateLocationSchema: z.ZodObject<{
693
693
  }>, "many">>;
694
694
  }, "strict", z.ZodTypeAny, {
695
695
  name?: string | undefined;
696
- description?: string | undefined;
696
+ thumbnail?: string | null | undefined;
697
+ environment?: "CHAT" | "NOVEL" | undefined;
697
698
  core?: {
698
699
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
699
700
  sequential?: boolean | undefined;
700
701
  interval?: number | undefined;
701
702
  maxAgentExecutions?: number | null | undefined;
702
703
  } | undefined;
704
+ description?: string | undefined;
703
705
  rules?: string[] | undefined;
704
- thumbnail?: string | null | undefined;
705
- environment?: "CHAT" | "NOVEL" | undefined;
706
706
  canvases?: {
707
707
  name: string;
708
708
  description: string;
@@ -715,8 +715,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
715
715
  }[] | undefined;
716
716
  gimmicks?: {
717
717
  name: string;
718
- appearance: string;
719
718
  core: "web_search" | "image_generator" | "notion";
719
+ appearance: string;
720
720
  images?: {
721
721
  description: string;
722
722
  url: string;
@@ -724,16 +724,16 @@ export declare const CreateLocationSchema: z.ZodObject<{
724
724
  }[] | undefined;
725
725
  }, {
726
726
  name?: string | undefined;
727
- description?: string | undefined;
727
+ thumbnail?: string | null | undefined;
728
+ environment?: "CHAT" | "NOVEL" | undefined;
728
729
  core?: {
729
730
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
730
731
  sequential?: boolean | undefined;
731
732
  interval?: number | undefined;
732
733
  maxAgentExecutions?: number | null | undefined;
733
734
  } | undefined;
735
+ description?: string | undefined;
734
736
  rules?: string[] | undefined;
735
- thumbnail?: string | null | undefined;
736
- environment?: "CHAT" | "NOVEL" | undefined;
737
737
  canvases?: {
738
738
  name: string;
739
739
  description: string;
@@ -746,8 +746,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
746
746
  }[] | undefined;
747
747
  gimmicks?: {
748
748
  name: string;
749
- appearance: string;
750
749
  core: "web_search" | "image_generator" | "notion";
750
+ appearance: string;
751
751
  images?: {
752
752
  description: string;
753
753
  url: string;
@@ -761,16 +761,16 @@ export declare const CreateLocationSchema: z.ZodObject<{
761
761
  }, "strip", z.ZodTypeAny, {
762
762
  config: {
763
763
  name?: string | undefined;
764
- description?: string | undefined;
764
+ thumbnail?: string | null | undefined;
765
+ environment?: "CHAT" | "NOVEL" | undefined;
765
766
  core?: {
766
767
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
767
768
  sequential?: boolean | undefined;
768
769
  interval?: number | undefined;
769
770
  maxAgentExecutions?: number | null | undefined;
770
771
  } | undefined;
772
+ description?: string | undefined;
771
773
  rules?: string[] | undefined;
772
- thumbnail?: string | null | undefined;
773
- environment?: "CHAT" | "NOVEL" | undefined;
774
774
  canvases?: {
775
775
  name: string;
776
776
  description: string;
@@ -783,8 +783,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
783
783
  }[] | undefined;
784
784
  gimmicks?: {
785
785
  name: string;
786
- appearance: string;
787
786
  core: "web_search" | "image_generator" | "notion";
787
+ appearance: string;
788
788
  images?: {
789
789
  description: string;
790
790
  url: string;
@@ -795,16 +795,16 @@ export declare const CreateLocationSchema: z.ZodObject<{
795
795
  }, {
796
796
  config: {
797
797
  name?: string | undefined;
798
- description?: string | undefined;
798
+ thumbnail?: string | null | undefined;
799
+ environment?: "CHAT" | "NOVEL" | undefined;
799
800
  core?: {
800
801
  name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
801
802
  sequential?: boolean | undefined;
802
803
  interval?: number | undefined;
803
804
  maxAgentExecutions?: number | null | undefined;
804
805
  } | undefined;
806
+ description?: string | undefined;
805
807
  rules?: string[] | undefined;
806
- thumbnail?: string | null | undefined;
807
- environment?: "CHAT" | "NOVEL" | undefined;
808
808
  canvases?: {
809
809
  name: string;
810
810
  description: string;
@@ -817,8 +817,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
817
817
  }[] | undefined;
818
818
  gimmicks?: {
819
819
  name: string;
820
- appearance: string;
821
820
  core: "web_search" | "image_generator" | "notion";
821
+ appearance: string;
822
822
  images?: {
823
823
  description: string;
824
824
  url: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@little-samo/samo-ai-sdk",
3
- "version": "0.2.1-rv5",
3
+ "version": "0.2.1-rv6",
4
4
  "description": "SamoAI SDK",
5
5
  "license": "MIT",
6
6
  "repository": {