@little-samo/samo-ai-sdk 0.2.1-rv8 → 0.2.1-rv9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dto/entities/agents/agent.requests.d.ts +10 -10
- package/dist/dto/entities/gimmicks/gimmick.config.d.ts +1 -1
- package/dist/dto/entities/gimmicks/gimmick.config.js +1 -1
- package/dist/dto/entities/gimmicks/gimmick.config.js.map +1 -1
- package/dist/dto/locations/location.message.d.ts +1 -0
- package/dist/dto/locations/location.requests.d.ts +61 -43
- package/dist/models/locations/location.config.d.ts +30 -15
- package/dist/models/locations/location.config.js +7 -1
- package/dist/models/locations/location.config.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,11 +7,11 @@ export declare const AgentsPaginationQuerySchema: z.ZodObject<{
|
|
|
7
7
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
8
8
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
page: number;
|
|
11
10
|
limit: number;
|
|
11
|
+
page: number;
|
|
12
12
|
}, {
|
|
13
|
-
page?: number | undefined;
|
|
14
13
|
limit?: number | undefined;
|
|
14
|
+
page?: number | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
export type AgentsPaginationQueryDto = z.infer<typeof AgentsPaginationQuerySchema>;
|
|
17
17
|
export interface AgentsPaginatedResponseDto {
|
|
@@ -212,7 +212,6 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
212
212
|
} | undefined;
|
|
213
213
|
}>;
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
|
-
agentId: bigint;
|
|
216
215
|
config: {
|
|
217
216
|
name?: string | undefined;
|
|
218
217
|
core?: {
|
|
@@ -247,8 +246,8 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
247
246
|
} | undefined;
|
|
248
247
|
} | undefined;
|
|
249
248
|
};
|
|
250
|
-
}, {
|
|
251
249
|
agentId: bigint;
|
|
250
|
+
}, {
|
|
252
251
|
config: {
|
|
253
252
|
name?: string | undefined;
|
|
254
253
|
core?: {
|
|
@@ -283,6 +282,7 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
283
282
|
} | undefined;
|
|
284
283
|
} | undefined;
|
|
285
284
|
};
|
|
285
|
+
agentId: bigint;
|
|
286
286
|
}>;
|
|
287
287
|
export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
|
|
288
288
|
export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
|
|
@@ -308,7 +308,6 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
308
308
|
token: string;
|
|
309
309
|
}>]>;
|
|
310
310
|
}, "strip", z.ZodTypeAny, {
|
|
311
|
-
agentId: bigint;
|
|
312
311
|
credential: {
|
|
313
312
|
type: "notion";
|
|
314
313
|
token: string;
|
|
@@ -316,8 +315,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
316
315
|
type: "notion";
|
|
317
316
|
token: string;
|
|
318
317
|
};
|
|
319
|
-
}, {
|
|
320
318
|
agentId: bigint;
|
|
319
|
+
}, {
|
|
321
320
|
credential: {
|
|
322
321
|
type: "notion";
|
|
323
322
|
token: string;
|
|
@@ -325,6 +324,7 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
325
324
|
type: "notion";
|
|
326
325
|
token: string;
|
|
327
326
|
};
|
|
327
|
+
agentId: bigint;
|
|
328
328
|
}>;
|
|
329
329
|
export type AgentUpdateCredentialDto = z.infer<typeof AgentUpdateCredentialSchema>;
|
|
330
330
|
export interface AgentUpdateCredentialResponseDto {
|
|
@@ -335,11 +335,11 @@ export declare const AgentDeleteCredentialSchema: z.ZodObject<{
|
|
|
335
335
|
agentId: z.ZodBigInt;
|
|
336
336
|
credentialType: z.ZodString;
|
|
337
337
|
}, "strip", z.ZodTypeAny, {
|
|
338
|
-
agentId: bigint;
|
|
339
338
|
credentialType: string;
|
|
340
|
-
}, {
|
|
341
339
|
agentId: bigint;
|
|
340
|
+
}, {
|
|
342
341
|
credentialType: string;
|
|
342
|
+
agentId: bigint;
|
|
343
343
|
}>;
|
|
344
344
|
export type AgentDeleteCredentialDto = z.infer<typeof AgentDeleteCredentialSchema>;
|
|
345
345
|
export interface AgentDeleteCredentialResponseDto {
|
|
@@ -350,11 +350,11 @@ export declare const AgentPresetsPaginationQuerySchema: z.ZodObject<{
|
|
|
350
350
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
351
351
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
352
352
|
}, "strip", z.ZodTypeAny, {
|
|
353
|
-
page: number;
|
|
354
353
|
limit: number;
|
|
354
|
+
page: number;
|
|
355
355
|
}, {
|
|
356
|
-
page?: number | undefined;
|
|
357
356
|
limit?: number | undefined;
|
|
357
|
+
page?: number | undefined;
|
|
358
358
|
}>;
|
|
359
359
|
export type AgentPresetsPaginationQueryDto = z.infer<typeof AgentPresetsPaginationQuerySchema>;
|
|
360
360
|
export interface AgentPresetsPaginatedResponseDto {
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const GimmickCoreDescriptions: {
|
|
3
3
|
readonly web_search: "Searches the web for up-to-date or missing information using an LLM, providing both a summary and detailed results. Execution takes approximately 30 seconds";
|
|
4
4
|
readonly image_generator: "Generates an image using an LLM based on text prompts and optional reference images. Execution takes approximately 30 seconds";
|
|
5
|
-
readonly character_image_generator: "Generates anime-style character images using Stable Diffusion with gimmick appearance configuration as
|
|
5
|
+
readonly character_image_generator: "Generates consistent anime-style character images using Stable Diffusion with gimmick appearance configuration as common prompt. Can optionally select one description from images array to combine with the common prompt for enhanced image generation while maintaining character identity and physical traits";
|
|
6
6
|
readonly notion: "Interacts with Notion platform for content management and collaboration";
|
|
7
7
|
};
|
|
8
8
|
export type GimmickCore = keyof typeof GimmickCoreDescriptions;
|
|
@@ -5,7 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
exports.GimmickCoreDescriptions = {
|
|
6
6
|
web_search: 'Searches the web for up-to-date or missing information using an LLM, providing both a summary and detailed results. Execution takes approximately 30 seconds',
|
|
7
7
|
image_generator: 'Generates an image using an LLM based on text prompts and optional reference images. Execution takes approximately 30 seconds',
|
|
8
|
-
character_image_generator: 'Generates anime-style character images using Stable Diffusion with gimmick appearance configuration as
|
|
8
|
+
character_image_generator: 'Generates consistent anime-style character images using Stable Diffusion with gimmick appearance configuration as common prompt. Can optionally select one description from images array to combine with the common prompt for enhanced image generation while maintaining character identity and physical traits',
|
|
9
9
|
notion: 'Interacts with Notion platform for content management and collaboration',
|
|
10
10
|
};
|
|
11
11
|
exports.GimmickCoreSchema = zod_1.z.union(Object.keys(exports.GimmickCoreDescriptions).map((key) => zod_1.z.literal(key).describe(exports.GimmickCoreDescriptions[key])));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gimmick.config.js","sourceRoot":"","sources":["../../../../src/dto/entities/gimmicks/gimmick.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG;IACrC,UAAU,EACR,8JAA8J;IAChK,eAAe,EACb,+HAA+H;IACjI,yBAAyB,EACvB,
|
|
1
|
+
{"version":3,"file":"gimmick.config.js","sourceRoot":"","sources":["../../../../src/dto/entities/gimmicks/gimmick.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,uBAAuB,GAAG;IACrC,UAAU,EACR,8JAA8J;IAChK,eAAe,EACb,+HAA+H;IACjI,yBAAyB,EACvB,mTAAmT;IACrT,MAAM,EACJ,yEAAyE;CACnE,CAAC;AAIE,QAAA,iBAAiB,GAAG,OAAC,CAAC,KAAK,CACtC,MAAM,CAAC,IAAI,CAAC,+BAAuB,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAC/C,OAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,+BAAuB,CAAC,GAAkB,CAAC,CAAC,CAKrE,CACF,CAAC"}
|
|
@@ -122,14 +122,17 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
122
122
|
name: z.ZodString;
|
|
123
123
|
appearance: z.ZodString;
|
|
124
124
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
125
|
-
url: z.ZodUnion<[z.ZodString
|
|
125
|
+
url: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodString]>;
|
|
126
|
+
name: z.ZodOptional<z.ZodString>;
|
|
126
127
|
description: z.ZodString;
|
|
127
128
|
}, "strip", z.ZodTypeAny, {
|
|
128
129
|
description: string;
|
|
129
|
-
|
|
130
|
+
name?: string | undefined;
|
|
131
|
+
url?: string | undefined;
|
|
130
132
|
}, {
|
|
131
133
|
description: string;
|
|
132
|
-
|
|
134
|
+
name?: string | undefined;
|
|
135
|
+
url?: string | undefined;
|
|
133
136
|
}>, "many">>;
|
|
134
137
|
}, "strip", z.ZodTypeAny, {
|
|
135
138
|
name: string;
|
|
@@ -137,7 +140,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
137
140
|
appearance: string;
|
|
138
141
|
images?: {
|
|
139
142
|
description: string;
|
|
140
|
-
|
|
143
|
+
name?: string | undefined;
|
|
144
|
+
url?: string | undefined;
|
|
141
145
|
}[] | undefined;
|
|
142
146
|
}, {
|
|
143
147
|
name: string;
|
|
@@ -145,20 +149,21 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
145
149
|
appearance: string;
|
|
146
150
|
images?: {
|
|
147
151
|
description: string;
|
|
148
|
-
|
|
152
|
+
name?: string | undefined;
|
|
153
|
+
url?: string | undefined;
|
|
149
154
|
}[] | undefined;
|
|
150
155
|
}>, "many">>;
|
|
151
156
|
}, "strict", z.ZodTypeAny, {
|
|
152
157
|
name?: string | undefined;
|
|
153
|
-
|
|
154
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
158
|
+
description?: string | undefined;
|
|
155
159
|
core?: {
|
|
156
160
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
157
161
|
sequential?: boolean | undefined;
|
|
158
162
|
interval?: number | undefined;
|
|
159
163
|
maxAgentExecutions?: number | null | undefined;
|
|
160
164
|
} | undefined;
|
|
161
|
-
|
|
165
|
+
thumbnail?: string | null | undefined;
|
|
166
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
162
167
|
rules?: string[] | undefined;
|
|
163
168
|
canvases?: {
|
|
164
169
|
name: string;
|
|
@@ -176,20 +181,21 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
176
181
|
appearance: string;
|
|
177
182
|
images?: {
|
|
178
183
|
description: string;
|
|
179
|
-
|
|
184
|
+
name?: string | undefined;
|
|
185
|
+
url?: string | undefined;
|
|
180
186
|
}[] | undefined;
|
|
181
187
|
}[] | undefined;
|
|
182
188
|
}, {
|
|
183
189
|
name?: string | undefined;
|
|
184
|
-
|
|
185
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
190
|
+
description?: string | undefined;
|
|
186
191
|
core?: {
|
|
187
192
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
188
193
|
sequential?: boolean | undefined;
|
|
189
194
|
interval?: number | undefined;
|
|
190
195
|
maxAgentExecutions?: number | null | undefined;
|
|
191
196
|
} | undefined;
|
|
192
|
-
|
|
197
|
+
thumbnail?: string | null | undefined;
|
|
198
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
193
199
|
rules?: string[] | undefined;
|
|
194
200
|
canvases?: {
|
|
195
201
|
name: string;
|
|
@@ -207,7 +213,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
207
213
|
appearance: string;
|
|
208
214
|
images?: {
|
|
209
215
|
description: string;
|
|
210
|
-
|
|
216
|
+
name?: string | undefined;
|
|
217
|
+
url?: string | undefined;
|
|
211
218
|
}[] | undefined;
|
|
212
219
|
}[] | undefined;
|
|
213
220
|
}>;
|
|
@@ -215,15 +222,15 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
215
222
|
locationId: bigint;
|
|
216
223
|
config: {
|
|
217
224
|
name?: string | undefined;
|
|
218
|
-
|
|
219
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
225
|
+
description?: string | undefined;
|
|
220
226
|
core?: {
|
|
221
227
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
222
228
|
sequential?: boolean | undefined;
|
|
223
229
|
interval?: number | undefined;
|
|
224
230
|
maxAgentExecutions?: number | null | undefined;
|
|
225
231
|
} | undefined;
|
|
226
|
-
|
|
232
|
+
thumbnail?: string | null | undefined;
|
|
233
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
227
234
|
rules?: string[] | undefined;
|
|
228
235
|
canvases?: {
|
|
229
236
|
name: string;
|
|
@@ -241,7 +248,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
241
248
|
appearance: string;
|
|
242
249
|
images?: {
|
|
243
250
|
description: string;
|
|
244
|
-
|
|
251
|
+
name?: string | undefined;
|
|
252
|
+
url?: string | undefined;
|
|
245
253
|
}[] | undefined;
|
|
246
254
|
}[] | undefined;
|
|
247
255
|
};
|
|
@@ -249,15 +257,15 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
249
257
|
locationId: bigint;
|
|
250
258
|
config: {
|
|
251
259
|
name?: string | undefined;
|
|
252
|
-
|
|
253
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
260
|
+
description?: string | undefined;
|
|
254
261
|
core?: {
|
|
255
262
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
256
263
|
sequential?: boolean | undefined;
|
|
257
264
|
interval?: number | undefined;
|
|
258
265
|
maxAgentExecutions?: number | null | undefined;
|
|
259
266
|
} | undefined;
|
|
260
|
-
|
|
267
|
+
thumbnail?: string | null | undefined;
|
|
268
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
261
269
|
rules?: string[] | undefined;
|
|
262
270
|
canvases?: {
|
|
263
271
|
name: string;
|
|
@@ -275,7 +283,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
275
283
|
appearance: string;
|
|
276
284
|
images?: {
|
|
277
285
|
description: string;
|
|
278
|
-
|
|
286
|
+
name?: string | undefined;
|
|
287
|
+
url?: string | undefined;
|
|
279
288
|
}[] | undefined;
|
|
280
289
|
}[] | undefined;
|
|
281
290
|
};
|
|
@@ -367,8 +376,8 @@ export declare const PublishedLocationPresetsQuerySchema: z.ZodObject<{
|
|
|
367
376
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
368
377
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
369
378
|
}, "strip", z.ZodTypeAny, {
|
|
370
|
-
limit: number;
|
|
371
379
|
type: "NOVEL";
|
|
380
|
+
limit: number;
|
|
372
381
|
page: number;
|
|
373
382
|
}, {
|
|
374
383
|
type: "NOVEL";
|
|
@@ -665,14 +674,17 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
665
674
|
name: z.ZodString;
|
|
666
675
|
appearance: z.ZodString;
|
|
667
676
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
668
|
-
url: z.ZodUnion<[z.ZodString
|
|
677
|
+
url: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodString]>;
|
|
678
|
+
name: z.ZodOptional<z.ZodString>;
|
|
669
679
|
description: z.ZodString;
|
|
670
680
|
}, "strip", z.ZodTypeAny, {
|
|
671
681
|
description: string;
|
|
672
|
-
|
|
682
|
+
name?: string | undefined;
|
|
683
|
+
url?: string | undefined;
|
|
673
684
|
}, {
|
|
674
685
|
description: string;
|
|
675
|
-
|
|
686
|
+
name?: string | undefined;
|
|
687
|
+
url?: string | undefined;
|
|
676
688
|
}>, "many">>;
|
|
677
689
|
}, "strip", z.ZodTypeAny, {
|
|
678
690
|
name: string;
|
|
@@ -680,7 +692,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
680
692
|
appearance: string;
|
|
681
693
|
images?: {
|
|
682
694
|
description: string;
|
|
683
|
-
|
|
695
|
+
name?: string | undefined;
|
|
696
|
+
url?: string | undefined;
|
|
684
697
|
}[] | undefined;
|
|
685
698
|
}, {
|
|
686
699
|
name: string;
|
|
@@ -688,20 +701,21 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
688
701
|
appearance: string;
|
|
689
702
|
images?: {
|
|
690
703
|
description: string;
|
|
691
|
-
|
|
704
|
+
name?: string | undefined;
|
|
705
|
+
url?: string | undefined;
|
|
692
706
|
}[] | undefined;
|
|
693
707
|
}>, "many">>;
|
|
694
708
|
}, "strict", z.ZodTypeAny, {
|
|
695
709
|
name?: string | undefined;
|
|
696
|
-
|
|
697
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
710
|
+
description?: string | undefined;
|
|
698
711
|
core?: {
|
|
699
712
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
700
713
|
sequential?: boolean | undefined;
|
|
701
714
|
interval?: number | undefined;
|
|
702
715
|
maxAgentExecutions?: number | null | undefined;
|
|
703
716
|
} | undefined;
|
|
704
|
-
|
|
717
|
+
thumbnail?: string | null | undefined;
|
|
718
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
705
719
|
rules?: string[] | undefined;
|
|
706
720
|
canvases?: {
|
|
707
721
|
name: string;
|
|
@@ -719,20 +733,21 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
719
733
|
appearance: string;
|
|
720
734
|
images?: {
|
|
721
735
|
description: string;
|
|
722
|
-
|
|
736
|
+
name?: string | undefined;
|
|
737
|
+
url?: string | undefined;
|
|
723
738
|
}[] | undefined;
|
|
724
739
|
}[] | undefined;
|
|
725
740
|
}, {
|
|
726
741
|
name?: string | undefined;
|
|
727
|
-
|
|
728
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
742
|
+
description?: string | undefined;
|
|
729
743
|
core?: {
|
|
730
744
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
731
745
|
sequential?: boolean | undefined;
|
|
732
746
|
interval?: number | undefined;
|
|
733
747
|
maxAgentExecutions?: number | null | undefined;
|
|
734
748
|
} | undefined;
|
|
735
|
-
|
|
749
|
+
thumbnail?: string | null | undefined;
|
|
750
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
736
751
|
rules?: string[] | undefined;
|
|
737
752
|
canvases?: {
|
|
738
753
|
name: string;
|
|
@@ -750,7 +765,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
750
765
|
appearance: string;
|
|
751
766
|
images?: {
|
|
752
767
|
description: string;
|
|
753
|
-
|
|
768
|
+
name?: string | undefined;
|
|
769
|
+
url?: string | undefined;
|
|
754
770
|
}[] | undefined;
|
|
755
771
|
}[] | undefined;
|
|
756
772
|
}>;
|
|
@@ -761,15 +777,15 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
761
777
|
}, "strip", z.ZodTypeAny, {
|
|
762
778
|
config: {
|
|
763
779
|
name?: string | undefined;
|
|
764
|
-
|
|
765
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
780
|
+
description?: string | undefined;
|
|
766
781
|
core?: {
|
|
767
782
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
768
783
|
sequential?: boolean | undefined;
|
|
769
784
|
interval?: number | undefined;
|
|
770
785
|
maxAgentExecutions?: number | null | undefined;
|
|
771
786
|
} | undefined;
|
|
772
|
-
|
|
787
|
+
thumbnail?: string | null | undefined;
|
|
788
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
773
789
|
rules?: string[] | undefined;
|
|
774
790
|
canvases?: {
|
|
775
791
|
name: string;
|
|
@@ -787,7 +803,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
787
803
|
appearance: string;
|
|
788
804
|
images?: {
|
|
789
805
|
description: string;
|
|
790
|
-
|
|
806
|
+
name?: string | undefined;
|
|
807
|
+
url?: string | undefined;
|
|
791
808
|
}[] | undefined;
|
|
792
809
|
}[] | undefined;
|
|
793
810
|
};
|
|
@@ -795,15 +812,15 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
795
812
|
}, {
|
|
796
813
|
config: {
|
|
797
814
|
name?: string | undefined;
|
|
798
|
-
|
|
799
|
-
environment?: "CHAT" | "NOVEL" | undefined;
|
|
815
|
+
description?: string | undefined;
|
|
800
816
|
core?: {
|
|
801
817
|
name: "round_robin" | "update_forever" | "update_once" | "update_until_idle";
|
|
802
818
|
sequential?: boolean | undefined;
|
|
803
819
|
interval?: number | undefined;
|
|
804
820
|
maxAgentExecutions?: number | null | undefined;
|
|
805
821
|
} | undefined;
|
|
806
|
-
|
|
822
|
+
thumbnail?: string | null | undefined;
|
|
823
|
+
environment?: "CHAT" | "NOVEL" | undefined;
|
|
807
824
|
rules?: string[] | undefined;
|
|
808
825
|
canvases?: {
|
|
809
826
|
name: string;
|
|
@@ -821,7 +838,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
821
838
|
appearance: string;
|
|
822
839
|
images?: {
|
|
823
840
|
description: string;
|
|
824
|
-
|
|
841
|
+
name?: string | undefined;
|
|
842
|
+
url?: string | undefined;
|
|
825
843
|
}[] | undefined;
|
|
826
844
|
}[] | undefined;
|
|
827
845
|
};
|
|
@@ -32,14 +32,17 @@ export declare const LocationConfigCanvasSchema: z.ZodObject<{
|
|
|
32
32
|
}>;
|
|
33
33
|
export type LocationConfigCanvas = z.infer<typeof LocationConfigCanvasSchema>;
|
|
34
34
|
export declare const LocationConfigGimmickImageSchema: z.ZodObject<{
|
|
35
|
-
url: z.ZodUnion<[z.ZodString
|
|
35
|
+
url: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodString]>;
|
|
36
|
+
name: z.ZodOptional<z.ZodString>;
|
|
36
37
|
description: z.ZodString;
|
|
37
38
|
}, "strip", z.ZodTypeAny, {
|
|
38
39
|
description: string;
|
|
39
|
-
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
url?: string | undefined;
|
|
40
42
|
}, {
|
|
41
43
|
description: string;
|
|
42
|
-
|
|
44
|
+
name?: string | undefined;
|
|
45
|
+
url?: string | undefined;
|
|
43
46
|
}>;
|
|
44
47
|
export type LocationConfigGimmickImage = z.infer<typeof LocationConfigGimmickImageSchema>;
|
|
45
48
|
export declare const LocationConfigGimmickSchema: z.ZodObject<{
|
|
@@ -47,14 +50,17 @@ export declare const LocationConfigGimmickSchema: z.ZodObject<{
|
|
|
47
50
|
name: z.ZodString;
|
|
48
51
|
appearance: z.ZodString;
|
|
49
52
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
50
|
-
url: z.ZodUnion<[z.ZodString
|
|
53
|
+
url: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodString]>;
|
|
54
|
+
name: z.ZodOptional<z.ZodString>;
|
|
51
55
|
description: z.ZodString;
|
|
52
56
|
}, "strip", z.ZodTypeAny, {
|
|
53
57
|
description: string;
|
|
54
|
-
|
|
58
|
+
name?: string | undefined;
|
|
59
|
+
url?: string | undefined;
|
|
55
60
|
}, {
|
|
56
61
|
description: string;
|
|
57
|
-
|
|
62
|
+
name?: string | undefined;
|
|
63
|
+
url?: string | undefined;
|
|
58
64
|
}>, "many">>;
|
|
59
65
|
}, "strip", z.ZodTypeAny, {
|
|
60
66
|
name: string;
|
|
@@ -62,7 +68,8 @@ export declare const LocationConfigGimmickSchema: z.ZodObject<{
|
|
|
62
68
|
appearance: string;
|
|
63
69
|
images?: {
|
|
64
70
|
description: string;
|
|
65
|
-
|
|
71
|
+
name?: string | undefined;
|
|
72
|
+
url?: string | undefined;
|
|
66
73
|
}[] | undefined;
|
|
67
74
|
}, {
|
|
68
75
|
name: string;
|
|
@@ -70,7 +77,8 @@ export declare const LocationConfigGimmickSchema: z.ZodObject<{
|
|
|
70
77
|
appearance: string;
|
|
71
78
|
images?: {
|
|
72
79
|
description: string;
|
|
73
|
-
|
|
80
|
+
name?: string | undefined;
|
|
81
|
+
url?: string | undefined;
|
|
74
82
|
}[] | undefined;
|
|
75
83
|
}>;
|
|
76
84
|
export type LocationConfigGimmick = z.infer<typeof LocationConfigGimmickSchema>;
|
|
@@ -127,14 +135,17 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
127
135
|
name: z.ZodString;
|
|
128
136
|
appearance: z.ZodString;
|
|
129
137
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
130
|
-
url: z.ZodUnion<[z.ZodString
|
|
138
|
+
url: z.ZodUnion<[z.ZodOptional<z.ZodString>, z.ZodString]>;
|
|
139
|
+
name: z.ZodOptional<z.ZodString>;
|
|
131
140
|
description: z.ZodString;
|
|
132
141
|
}, "strip", z.ZodTypeAny, {
|
|
133
142
|
description: string;
|
|
134
|
-
|
|
143
|
+
name?: string | undefined;
|
|
144
|
+
url?: string | undefined;
|
|
135
145
|
}, {
|
|
136
146
|
description: string;
|
|
137
|
-
|
|
147
|
+
name?: string | undefined;
|
|
148
|
+
url?: string | undefined;
|
|
138
149
|
}>, "many">>;
|
|
139
150
|
}, "strip", z.ZodTypeAny, {
|
|
140
151
|
name: string;
|
|
@@ -142,7 +153,8 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
142
153
|
appearance: string;
|
|
143
154
|
images?: {
|
|
144
155
|
description: string;
|
|
145
|
-
|
|
156
|
+
name?: string | undefined;
|
|
157
|
+
url?: string | undefined;
|
|
146
158
|
}[] | undefined;
|
|
147
159
|
}, {
|
|
148
160
|
name: string;
|
|
@@ -150,7 +162,8 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
150
162
|
appearance: string;
|
|
151
163
|
images?: {
|
|
152
164
|
description: string;
|
|
153
|
-
|
|
165
|
+
name?: string | undefined;
|
|
166
|
+
url?: string | undefined;
|
|
154
167
|
}[] | undefined;
|
|
155
168
|
}>, "many">;
|
|
156
169
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -181,7 +194,8 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
181
194
|
appearance: string;
|
|
182
195
|
images?: {
|
|
183
196
|
description: string;
|
|
184
|
-
|
|
197
|
+
name?: string | undefined;
|
|
198
|
+
url?: string | undefined;
|
|
185
199
|
}[] | undefined;
|
|
186
200
|
}[];
|
|
187
201
|
}, {
|
|
@@ -212,7 +226,8 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
212
226
|
appearance: string;
|
|
213
227
|
images?: {
|
|
214
228
|
description: string;
|
|
215
|
-
|
|
229
|
+
name?: string | undefined;
|
|
230
|
+
url?: string | undefined;
|
|
216
231
|
}[] | undefined;
|
|
217
232
|
}[];
|
|
218
233
|
}>;
|
|
@@ -60,9 +60,15 @@ exports.LocationConfigGimmickImageSchema = zod_1.z.object({
|
|
|
60
60
|
.string()
|
|
61
61
|
.max(2048)
|
|
62
62
|
.regex(/^https?:\/\/.+/)
|
|
63
|
+
.optional()
|
|
63
64
|
.describe('Reference image URL (http/https URL pointing to png, jpeg, jpg, webp files under 3MB). This will be replaced by the URL of the file uploaded to a CDN, not the original address.'),
|
|
64
65
|
zod_1.z.string().max(32).describe('Reference message image key for API usage'),
|
|
65
66
|
]),
|
|
67
|
+
name: zod_1.z
|
|
68
|
+
.string()
|
|
69
|
+
.max(64)
|
|
70
|
+
.optional()
|
|
71
|
+
.describe('Optional name of the image used by the gimmick for AI image generation.'),
|
|
66
72
|
description: zod_1.z
|
|
67
73
|
.string()
|
|
68
74
|
.max(500)
|
|
@@ -82,7 +88,7 @@ exports.LocationConfigGimmickSchema = zod_1.z.object({
|
|
|
82
88
|
.array(exports.LocationConfigGimmickImageSchema)
|
|
83
89
|
.max(6)
|
|
84
90
|
.optional()
|
|
85
|
-
.describe('Optional reference images used by image_generator
|
|
91
|
+
.describe('Optional reference images used by image_generator and character_image_generator gimmicks to maintain visual consistency in AI image generation. For image_generator: supports HTTP/HTTPS URLs for png, jpeg, jpg, webp images and message image keys for API usage (URLs will be replaced by CDN URLs when processed). For character_image_generator: uses name and description fields where description follows Stable Diffusion prompt style. These can include character appearance references, art style samples, scene compositions, or background settings.'),
|
|
86
92
|
});
|
|
87
93
|
exports.LocationConfigSchema = zod_1.z.object({
|
|
88
94
|
name: zod_1.z.string().max(64).describe('Location name'),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,0DAAgE;AAEhE,6DAA2D;AAE9C,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC/C,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,IAAI,CAAC;SACjC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,KAAK,CAAC;SAClC,QAAQ,CAAC,sDAAsD,CAAC;CACpE,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC;QACrE,OAAC;aACE,OAAO,CAAC,gBAAgB,CAAC;aACzB,QAAQ,CAAC,6CAA6C,CAAC;QAC1D,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;QACvE,OAAC;aACE,OAAO,CAAC,mBAAmB,CAAC;aAC5B,QAAQ,CAAC,2DAA2D,CAAC;KACzE,CAAC;IACF,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAC5E,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAA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AiB,CAAC,QAAQ,CAC9B,mEAAmE,CACpE;IACD,IAAI,EAAE,OAAC;SACJ,MAAM,EAAE;SACR,GAAG,CAAC,EAAE,CAAC;SACP,QAAQ,CAAC,+CAA+C,CAAC;IAC5D,UAAU,EAAE,OAAC;SACV,MAAM,EAAE;SACR,GAAG,CAAC,GAAG,CAAC;SACR,QAAQ,CACP,qEAAqE,CACtE;IACH,MAAM,EAAE,OAAC;SACN,KAAK,CAAC,wCAAgC,CAAC;SACvC,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CACP,
|
|
1
|
+
{"version":3,"file":"location.config.js","sourceRoot":"","sources":["../../../src/models/locations/location.config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,0DAAgE;AAEhE,6DAA2D;AAE9C,QAAA,yBAAyB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC/C,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,IAAI,CAAC;SACjC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAC;SACE,OAAO,CAAC,wCAAmB,CAAC,KAAK,CAAC;SAClC,QAAQ,CAAC,sDAAsD,CAAC;CACpE,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC;QACZ,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,kCAAkC,CAAC;QACrE,OAAC;aACE,OAAO,CAAC,gBAAgB,CAAC;aACzB,QAAQ,CAAC,6CAA6C,CAAC;QAC1D,OAAC,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,QAAQ,CAAC,oCAAoC,CAAC;QACvE,OAAC;aACE,OAAO,CAAC,mBAAmB,CAAC;aAC5B,QAAQ,CAAC,2DAA2D,CAAC;KACzE,CAAC;IACF,UAAU,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC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