@little-samo/samo-ai-sdk 0.2.0-rv2 → 0.2.0-rv3
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 +8 -8
- package/dist/dto/entities/gimmicks/gimmick.config.d.ts +1 -1
- package/dist/dto/entities/users/user.d.ts +2 -0
- package/dist/dto/entities/users/user.requests.d.ts +27 -0
- package/dist/dto/entities/users/user.requests.js +19 -1
- package/dist/dto/entities/users/user.requests.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +12 -12
- package/dist/models/entities/agents/agent.config.d.ts +2 -2
- package/dist/models/locations/location.config.d.ts +16 -16
- package/package.json +1 -1
|
@@ -145,9 +145,9 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
145
145
|
}>>;
|
|
146
146
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
147
147
|
}, "strict", z.ZodTypeAny, {
|
|
148
|
+
appearance?: string | undefined;
|
|
148
149
|
name?: string | undefined;
|
|
149
150
|
avatar?: string | undefined;
|
|
150
|
-
appearance?: string | undefined;
|
|
151
151
|
core?: {
|
|
152
152
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
153
153
|
} | undefined;
|
|
@@ -178,9 +178,9 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
178
178
|
} | undefined;
|
|
179
179
|
rules?: string[] | undefined;
|
|
180
180
|
}, {
|
|
181
|
+
appearance?: string | undefined;
|
|
181
182
|
name?: string | undefined;
|
|
182
183
|
avatar?: string | undefined;
|
|
183
|
-
appearance?: string | undefined;
|
|
184
184
|
core?: {
|
|
185
185
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
186
186
|
} | undefined;
|
|
@@ -214,9 +214,9 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
214
214
|
}, "strip", z.ZodTypeAny, {
|
|
215
215
|
agentId: bigint;
|
|
216
216
|
config: {
|
|
217
|
+
appearance?: string | undefined;
|
|
217
218
|
name?: string | undefined;
|
|
218
219
|
avatar?: string | undefined;
|
|
219
|
-
appearance?: string | undefined;
|
|
220
220
|
core?: {
|
|
221
221
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
222
222
|
} | undefined;
|
|
@@ -250,9 +250,9 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
250
250
|
}, {
|
|
251
251
|
agentId: bigint;
|
|
252
252
|
config: {
|
|
253
|
+
appearance?: string | undefined;
|
|
253
254
|
name?: string | undefined;
|
|
254
255
|
avatar?: string | undefined;
|
|
255
|
-
appearance?: string | undefined;
|
|
256
256
|
core?: {
|
|
257
257
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
258
258
|
} | undefined;
|
|
@@ -473,9 +473,9 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
473
473
|
}>>;
|
|
474
474
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
475
475
|
}, "strict", z.ZodTypeAny, {
|
|
476
|
+
appearance?: string | undefined;
|
|
476
477
|
name?: string | undefined;
|
|
477
478
|
avatar?: string | undefined;
|
|
478
|
-
appearance?: string | undefined;
|
|
479
479
|
core?: {
|
|
480
480
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
481
481
|
} | undefined;
|
|
@@ -506,9 +506,9 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
506
506
|
} | undefined;
|
|
507
507
|
rules?: string[] | undefined;
|
|
508
508
|
}, {
|
|
509
|
+
appearance?: string | undefined;
|
|
509
510
|
name?: string | undefined;
|
|
510
511
|
avatar?: string | undefined;
|
|
511
|
-
appearance?: string | undefined;
|
|
512
512
|
core?: {
|
|
513
513
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
514
514
|
} | undefined;
|
|
@@ -541,9 +541,9 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
541
541
|
}>;
|
|
542
542
|
}, "strip", z.ZodTypeAny, {
|
|
543
543
|
config: {
|
|
544
|
+
appearance?: string | undefined;
|
|
544
545
|
name?: string | undefined;
|
|
545
546
|
avatar?: string | undefined;
|
|
546
|
-
appearance?: string | undefined;
|
|
547
547
|
core?: {
|
|
548
548
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
549
549
|
} | undefined;
|
|
@@ -576,9 +576,9 @@ export declare const CreateAgentSchema: z.ZodObject<{
|
|
|
576
576
|
};
|
|
577
577
|
}, {
|
|
578
578
|
config: {
|
|
579
|
+
appearance?: string | undefined;
|
|
579
580
|
name?: string | undefined;
|
|
580
581
|
avatar?: string | undefined;
|
|
581
|
-
appearance?: string | undefined;
|
|
582
582
|
core?: {
|
|
583
583
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
584
584
|
} | undefined;
|
|
@@ -5,4 +5,4 @@ export declare const GimmickCoreDescriptions: {
|
|
|
5
5
|
readonly notion: "Interacts with Notion platform for content management and collaboration";
|
|
6
6
|
};
|
|
7
7
|
export type GimmickCore = keyof typeof GimmickCoreDescriptions;
|
|
8
|
-
export declare const GimmickCoreSchema: z.ZodUnion<[z.ZodLiteral<"
|
|
8
|
+
export declare const GimmickCoreSchema: z.ZodUnion<[z.ZodLiteral<"notion" | "web_search" | "image_generator">, z.ZodLiteral<"notion" | "web_search" | "image_generator">, ...z.ZodLiteral<"notion" | "web_search" | "image_generator">[]]>;
|
|
@@ -6,8 +6,10 @@ export interface UserPublicDto {
|
|
|
6
6
|
firstName: string | null;
|
|
7
7
|
lastName: string | null;
|
|
8
8
|
profilePicture: string | null;
|
|
9
|
+
appearance: string | null;
|
|
9
10
|
}
|
|
10
11
|
export interface UserPrivateDto extends UserPublicDto {
|
|
12
|
+
birthDate: Date | null;
|
|
11
13
|
email: string | null;
|
|
12
14
|
defaultCredits: number;
|
|
13
15
|
maxAgents: number;
|
|
@@ -6,10 +6,22 @@ export interface GetCurrentUserResponseDto {
|
|
|
6
6
|
user: UserPrivateDto;
|
|
7
7
|
}
|
|
8
8
|
export declare const UpdateCurrentUserBodySchema: z.ZodObject<{
|
|
9
|
+
username: z.ZodOptional<z.ZodString>;
|
|
10
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
11
|
+
birthDate: z.ZodOptional<z.ZodDate>;
|
|
12
|
+
appearance: z.ZodOptional<z.ZodString>;
|
|
9
13
|
isAllowSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
10
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
username?: string | undefined;
|
|
16
|
+
nickname?: string | undefined;
|
|
17
|
+
birthDate?: Date | undefined;
|
|
18
|
+
appearance?: string | undefined;
|
|
11
19
|
isAllowSensitive?: boolean | undefined;
|
|
12
20
|
}, {
|
|
21
|
+
username?: string | undefined;
|
|
22
|
+
nickname?: string | undefined;
|
|
23
|
+
birthDate?: Date | undefined;
|
|
24
|
+
appearance?: string | undefined;
|
|
13
25
|
isAllowSensitive?: boolean | undefined;
|
|
14
26
|
}>;
|
|
15
27
|
export type UpdateCurrentUserBodyDto = z.infer<typeof UpdateCurrentUserBodySchema>;
|
|
@@ -17,6 +29,21 @@ export interface UpdateCurrentUserResponseDto {
|
|
|
17
29
|
success: boolean;
|
|
18
30
|
error?: string;
|
|
19
31
|
}
|
|
32
|
+
export declare const ValidateUserFieldBodySchema: z.ZodObject<{
|
|
33
|
+
username: z.ZodOptional<z.ZodString>;
|
|
34
|
+
nickname: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
username?: string | undefined;
|
|
37
|
+
nickname?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
username?: string | undefined;
|
|
40
|
+
nickname?: string | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
export type ValidateUserFieldBodyDto = z.infer<typeof ValidateUserFieldBodySchema>;
|
|
43
|
+
export interface ValidateUserFieldResponseDto {
|
|
44
|
+
isValid: boolean;
|
|
45
|
+
message?: string;
|
|
46
|
+
}
|
|
20
47
|
export declare const GetUsersByIdsQuerySchema: z.ZodObject<{
|
|
21
48
|
userIds: z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>;
|
|
22
49
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1,11 +1,29 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetCurrentUserSchema = exports.GetUsersByIdsQuerySchema = exports.UpdateCurrentUserBodySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
3
|
+
exports.GetCurrentUserSchema = exports.GetUsersByIdsQuerySchema = exports.ValidateUserFieldBodySchema = exports.UpdateCurrentUserBodySchema = exports.GetCurrentUserQuerySchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
exports.GetCurrentUserQuerySchema = zod_1.z.object({});
|
|
6
6
|
exports.UpdateCurrentUserBodySchema = zod_1.z.object({
|
|
7
|
+
username: zod_1.z
|
|
8
|
+
.string()
|
|
9
|
+
.min(4)
|
|
10
|
+
.max(16)
|
|
11
|
+
.regex(/^[a-zA-Z0-9_]+$/)
|
|
12
|
+
.optional(),
|
|
13
|
+
nickname: zod_1.z.string().min(4).max(32).optional(),
|
|
14
|
+
birthDate: zod_1.z.coerce.date().optional(),
|
|
15
|
+
appearance: zod_1.z.string().max(500).optional(),
|
|
7
16
|
isAllowSensitive: zod_1.z.boolean().optional(),
|
|
8
17
|
});
|
|
18
|
+
exports.ValidateUserFieldBodySchema = zod_1.z.object({
|
|
19
|
+
username: zod_1.z
|
|
20
|
+
.string()
|
|
21
|
+
.min(4)
|
|
22
|
+
.max(16)
|
|
23
|
+
.regex(/^[a-zA-Z0-9_]+$/)
|
|
24
|
+
.optional(),
|
|
25
|
+
nickname: zod_1.z.string().min(4).max(32).optional(),
|
|
26
|
+
});
|
|
9
27
|
exports.GetUsersByIdsQuerySchema = zod_1.z.object({
|
|
10
28
|
userIds: zod_1.z
|
|
11
29
|
.string()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AASX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AASzC,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC;AAYU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC;SACP,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACjE,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE;QACnD,OAAO,EAAE,oCAAoC;KAC9C,CAAC;CACL,CAAC,CAAC;AAaU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"user.requests.js","sourceRoot":"","sources":["../../../../src/dto/entities/users/user.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AASX,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AASzC,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,KAAK,CAAC,iBAAiB,CAAC;SACxB,QAAQ,EAAE;IACb,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACrC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAE1C,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC;AAYU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAClD,QAAQ,EAAE,OAAC;SACR,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,KAAK,CAAC,iBAAiB,CAAC;SACxB,QAAQ,EAAE;IACb,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC/C,CAAC,CAAC;AAYU,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,OAAO,EAAE,OAAC;SACP,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACjE,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE;QACnD,OAAO,EAAE,oCAAoC;KAC9C,CAAC;CACL,CAAC,CAAC;AAaU,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -129,16 +129,16 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
129
129
|
url: string;
|
|
130
130
|
}>, "many">>;
|
|
131
131
|
}, "strip", z.ZodTypeAny, {
|
|
132
|
-
name: string;
|
|
133
132
|
appearance: string;
|
|
133
|
+
name: string;
|
|
134
134
|
core: "notion" | "web_search" | "image_generator";
|
|
135
135
|
images?: {
|
|
136
136
|
description: string;
|
|
137
137
|
url: string;
|
|
138
138
|
}[] | undefined;
|
|
139
139
|
}, {
|
|
140
|
-
name: string;
|
|
141
140
|
appearance: string;
|
|
141
|
+
name: string;
|
|
142
142
|
core: "notion" | "web_search" | "image_generator";
|
|
143
143
|
images?: {
|
|
144
144
|
description: string;
|
|
@@ -167,8 +167,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
167
167
|
maxLength: number;
|
|
168
168
|
}[] | undefined;
|
|
169
169
|
gimmicks?: {
|
|
170
|
-
name: string;
|
|
171
170
|
appearance: string;
|
|
171
|
+
name: string;
|
|
172
172
|
core: "notion" | "web_search" | "image_generator";
|
|
173
173
|
images?: {
|
|
174
174
|
description: string;
|
|
@@ -197,8 +197,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
197
197
|
maxLength: number;
|
|
198
198
|
}[] | undefined;
|
|
199
199
|
gimmicks?: {
|
|
200
|
-
name: string;
|
|
201
200
|
appearance: string;
|
|
201
|
+
name: string;
|
|
202
202
|
core: "notion" | "web_search" | "image_generator";
|
|
203
203
|
images?: {
|
|
204
204
|
description: string;
|
|
@@ -229,8 +229,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
229
229
|
maxLength: number;
|
|
230
230
|
}[] | undefined;
|
|
231
231
|
gimmicks?: {
|
|
232
|
-
name: string;
|
|
233
232
|
appearance: string;
|
|
233
|
+
name: string;
|
|
234
234
|
core: "notion" | "web_search" | "image_generator";
|
|
235
235
|
images?: {
|
|
236
236
|
description: string;
|
|
@@ -262,8 +262,8 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
262
262
|
maxLength: number;
|
|
263
263
|
}[] | undefined;
|
|
264
264
|
gimmicks?: {
|
|
265
|
-
name: string;
|
|
266
265
|
appearance: string;
|
|
266
|
+
name: string;
|
|
267
267
|
core: "notion" | "web_search" | "image_generator";
|
|
268
268
|
images?: {
|
|
269
269
|
description: string;
|
|
@@ -416,16 +416,16 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
416
416
|
url: string;
|
|
417
417
|
}>, "many">>;
|
|
418
418
|
}, "strip", z.ZodTypeAny, {
|
|
419
|
-
name: string;
|
|
420
419
|
appearance: string;
|
|
420
|
+
name: string;
|
|
421
421
|
core: "notion" | "web_search" | "image_generator";
|
|
422
422
|
images?: {
|
|
423
423
|
description: string;
|
|
424
424
|
url: string;
|
|
425
425
|
}[] | undefined;
|
|
426
426
|
}, {
|
|
427
|
-
name: string;
|
|
428
427
|
appearance: string;
|
|
428
|
+
name: string;
|
|
429
429
|
core: "notion" | "web_search" | "image_generator";
|
|
430
430
|
images?: {
|
|
431
431
|
description: string;
|
|
@@ -454,8 +454,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
454
454
|
maxLength: number;
|
|
455
455
|
}[] | undefined;
|
|
456
456
|
gimmicks?: {
|
|
457
|
-
name: string;
|
|
458
457
|
appearance: string;
|
|
458
|
+
name: string;
|
|
459
459
|
core: "notion" | "web_search" | "image_generator";
|
|
460
460
|
images?: {
|
|
461
461
|
description: string;
|
|
@@ -484,8 +484,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
484
484
|
maxLength: number;
|
|
485
485
|
}[] | undefined;
|
|
486
486
|
gimmicks?: {
|
|
487
|
-
name: string;
|
|
488
487
|
appearance: string;
|
|
488
|
+
name: string;
|
|
489
489
|
core: "notion" | "web_search" | "image_generator";
|
|
490
490
|
images?: {
|
|
491
491
|
description: string;
|
|
@@ -520,8 +520,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
520
520
|
maxLength: number;
|
|
521
521
|
}[] | undefined;
|
|
522
522
|
gimmicks?: {
|
|
523
|
-
name: string;
|
|
524
523
|
appearance: string;
|
|
524
|
+
name: string;
|
|
525
525
|
core: "notion" | "web_search" | "image_generator";
|
|
526
526
|
images?: {
|
|
527
527
|
description: string;
|
|
@@ -553,8 +553,8 @@ export declare const CreateLocationSchema: z.ZodObject<{
|
|
|
553
553
|
maxLength: number;
|
|
554
554
|
}[] | undefined;
|
|
555
555
|
gimmicks?: {
|
|
556
|
-
name: string;
|
|
557
556
|
appearance: string;
|
|
557
|
+
name: string;
|
|
558
558
|
core: "notion" | "web_search" | "image_generator";
|
|
559
559
|
images?: {
|
|
560
560
|
description: string;
|
|
@@ -204,9 +204,9 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
204
204
|
}>;
|
|
205
205
|
rules: z.ZodArray<z.ZodString, "many">;
|
|
206
206
|
}, "strip", z.ZodTypeAny, {
|
|
207
|
+
appearance: string;
|
|
207
208
|
name: string;
|
|
208
209
|
avatar: string;
|
|
209
|
-
appearance: string;
|
|
210
210
|
core: {
|
|
211
211
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
212
212
|
};
|
|
@@ -237,9 +237,9 @@ export declare const AgentConfigSchema: z.ZodObject<{
|
|
|
237
237
|
};
|
|
238
238
|
rules: string[];
|
|
239
239
|
}, {
|
|
240
|
+
appearance: string;
|
|
240
241
|
name: string;
|
|
241
242
|
avatar: string;
|
|
242
|
-
appearance: string;
|
|
243
243
|
core: {
|
|
244
244
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
245
245
|
};
|
|
@@ -40,7 +40,7 @@ export declare const LocationConfigGimmickImageSchema: z.ZodObject<{
|
|
|
40
40
|
}>;
|
|
41
41
|
export type LocationConfigGimmickImage = z.infer<typeof LocationConfigGimmickImageSchema>;
|
|
42
42
|
export declare const LocationConfigGimmickSchema: z.ZodObject<{
|
|
43
|
-
core: z.ZodUnion<[z.ZodLiteral<"
|
|
43
|
+
core: z.ZodUnion<[z.ZodLiteral<"notion" | "web_search" | "image_generator">, z.ZodLiteral<"notion" | "web_search" | "image_generator">, ...z.ZodLiteral<"notion" | "web_search" | "image_generator">[]]>;
|
|
44
44
|
name: z.ZodString;
|
|
45
45
|
appearance: z.ZodString;
|
|
46
46
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -54,17 +54,17 @@ export declare const LocationConfigGimmickSchema: z.ZodObject<{
|
|
|
54
54
|
url: string;
|
|
55
55
|
}>, "many">>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
name: string;
|
|
58
|
-
core: "web_search" | "image_generator" | "notion";
|
|
59
57
|
appearance: string;
|
|
58
|
+
name: string;
|
|
59
|
+
core: "notion" | "web_search" | "image_generator";
|
|
60
60
|
images?: {
|
|
61
61
|
description: string;
|
|
62
62
|
url: string;
|
|
63
63
|
}[] | undefined;
|
|
64
64
|
}, {
|
|
65
|
-
name: string;
|
|
66
|
-
core: "web_search" | "image_generator" | "notion";
|
|
67
65
|
appearance: string;
|
|
66
|
+
name: string;
|
|
67
|
+
core: "notion" | "web_search" | "image_generator";
|
|
68
68
|
images?: {
|
|
69
69
|
description: string;
|
|
70
70
|
url: string;
|
|
@@ -117,7 +117,7 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
117
117
|
maxLength: number;
|
|
118
118
|
}>, "many">;
|
|
119
119
|
gimmicks: z.ZodArray<z.ZodObject<{
|
|
120
|
-
core: z.ZodUnion<[z.ZodLiteral<"
|
|
120
|
+
core: z.ZodUnion<[z.ZodLiteral<"notion" | "web_search" | "image_generator">, z.ZodLiteral<"notion" | "web_search" | "image_generator">, ...z.ZodLiteral<"notion" | "web_search" | "image_generator">[]]>;
|
|
121
121
|
name: z.ZodString;
|
|
122
122
|
appearance: z.ZodString;
|
|
123
123
|
images: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -131,17 +131,17 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
131
131
|
url: string;
|
|
132
132
|
}>, "many">>;
|
|
133
133
|
}, "strip", z.ZodTypeAny, {
|
|
134
|
-
name: string;
|
|
135
|
-
core: "web_search" | "image_generator" | "notion";
|
|
136
134
|
appearance: string;
|
|
135
|
+
name: string;
|
|
136
|
+
core: "notion" | "web_search" | "image_generator";
|
|
137
137
|
images?: {
|
|
138
138
|
description: string;
|
|
139
139
|
url: string;
|
|
140
140
|
}[] | undefined;
|
|
141
141
|
}, {
|
|
142
|
-
name: string;
|
|
143
|
-
core: "web_search" | "image_generator" | "notion";
|
|
144
142
|
appearance: string;
|
|
143
|
+
name: string;
|
|
144
|
+
core: "notion" | "web_search" | "image_generator";
|
|
145
145
|
images?: {
|
|
146
146
|
description: string;
|
|
147
147
|
url: string;
|
|
@@ -155,9 +155,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
155
155
|
sequential?: boolean | undefined;
|
|
156
156
|
interval?: number | undefined;
|
|
157
157
|
};
|
|
158
|
+
rules: string[];
|
|
158
159
|
thumbnail: string | null;
|
|
159
160
|
environment: "CHAT" | "NOVEL";
|
|
160
|
-
rules: string[];
|
|
161
161
|
canvases: {
|
|
162
162
|
name: string;
|
|
163
163
|
description: string;
|
|
@@ -169,9 +169,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
169
169
|
maxLength: number;
|
|
170
170
|
}[];
|
|
171
171
|
gimmicks: {
|
|
172
|
-
name: string;
|
|
173
|
-
core: "web_search" | "image_generator" | "notion";
|
|
174
172
|
appearance: string;
|
|
173
|
+
name: string;
|
|
174
|
+
core: "notion" | "web_search" | "image_generator";
|
|
175
175
|
images?: {
|
|
176
176
|
description: string;
|
|
177
177
|
url: string;
|
|
@@ -185,9 +185,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
185
185
|
sequential?: boolean | undefined;
|
|
186
186
|
interval?: number | undefined;
|
|
187
187
|
};
|
|
188
|
+
rules: string[];
|
|
188
189
|
thumbnail: string | null;
|
|
189
190
|
environment: "CHAT" | "NOVEL";
|
|
190
|
-
rules: string[];
|
|
191
191
|
canvases: {
|
|
192
192
|
name: string;
|
|
193
193
|
description: string;
|
|
@@ -199,9 +199,9 @@ export declare const LocationConfigSchema: z.ZodObject<{
|
|
|
199
199
|
maxLength: number;
|
|
200
200
|
}[];
|
|
201
201
|
gimmicks: {
|
|
202
|
-
name: string;
|
|
203
|
-
core: "web_search" | "image_generator" | "notion";
|
|
204
202
|
appearance: string;
|
|
203
|
+
name: string;
|
|
204
|
+
core: "notion" | "web_search" | "image_generator";
|
|
205
205
|
images?: {
|
|
206
206
|
description: string;
|
|
207
207
|
url: string;
|