@purpleschool/gptbot 0.19.1-stage-2 → 0.19.3-stage-2
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.
|
@@ -11,6 +11,7 @@ export declare namespace FindChatsCommand {
|
|
|
11
11
|
const RequestQuerySchema: z.ZodIntersection<z.ZodObject<{
|
|
12
12
|
categoryId: z.ZodOptional<z.ZodUUID>;
|
|
13
13
|
lastUsedAiModelId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
14
|
+
includeFolders: z.ZodOptional<z.ZodPreprocess<z.ZodBoolean>>;
|
|
14
15
|
}, z.core.$strip>, z.ZodObject<{
|
|
15
16
|
limit: z.ZodCoercedNumber<unknown>;
|
|
16
17
|
offset: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -19,6 +20,28 @@ export declare namespace FindChatsCommand {
|
|
|
19
20
|
createdAtSortOrder: z.ZodOptional<z.ZodEnum<typeof SORT_ORDER>>;
|
|
20
21
|
}, z.core.$strip>>;
|
|
21
22
|
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
23
|
+
const ChatListItemSchema: z.ZodObject<{
|
|
24
|
+
uuid: z.ZodUUID;
|
|
25
|
+
userId: z.ZodNullable<z.ZodUUID>;
|
|
26
|
+
unregisteredUserId: z.ZodNullable<z.ZodUUID>;
|
|
27
|
+
categoryId: z.ZodUUID;
|
|
28
|
+
lastUsedAiModelId: z.ZodNullable<z.ZodUUID>;
|
|
29
|
+
title: z.ZodString;
|
|
30
|
+
chatStatus: z.ZodEnum<{
|
|
31
|
+
ACTIVE: "ACTIVE";
|
|
32
|
+
DELETED: "DELETED";
|
|
33
|
+
NEW: "NEW";
|
|
34
|
+
}>;
|
|
35
|
+
folderId: z.ZodNullable<z.ZodString>;
|
|
36
|
+
isFavorite: z.ZodBoolean;
|
|
37
|
+
createdAt: z.ZodDate;
|
|
38
|
+
updatedAt: z.ZodDate;
|
|
39
|
+
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
40
|
+
folder: z.ZodNullable<z.ZodObject<{
|
|
41
|
+
uuid: z.ZodString;
|
|
42
|
+
title: z.ZodString;
|
|
43
|
+
}, z.core.$strip>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
22
45
|
const ResponseSchema: z.ZodObject<{
|
|
23
46
|
data: z.ZodArray<z.ZodObject<{
|
|
24
47
|
uuid: z.ZodUUID;
|
|
@@ -37,6 +60,10 @@ export declare namespace FindChatsCommand {
|
|
|
37
60
|
createdAt: z.ZodDate;
|
|
38
61
|
updatedAt: z.ZodDate;
|
|
39
62
|
deletedAt: z.ZodNullable<z.ZodDate>;
|
|
63
|
+
folder: z.ZodNullable<z.ZodObject<{
|
|
64
|
+
uuid: z.ZodString;
|
|
65
|
+
title: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>;
|
|
40
67
|
}, z.core.$strip>>;
|
|
41
68
|
page: z.ZodNumber;
|
|
42
69
|
totalPages: z.ZodNumber;
|
|
@@ -14,10 +14,15 @@ var FindChatsCommand;
|
|
|
14
14
|
isFavorite: helpers_1.QueryBooleanSchema.optional(),
|
|
15
15
|
createdAtSortOrder: zod_1.z.enum(constants_1.SORT_ORDER).optional(),
|
|
16
16
|
});
|
|
17
|
-
const QuerySchema = models_1.ChatSchema.pick({ categoryId: true, lastUsedAiModelId: true })
|
|
17
|
+
const QuerySchema = models_1.ChatSchema.pick({ categoryId: true, lastUsedAiModelId: true })
|
|
18
|
+
.partial()
|
|
19
|
+
.extend({ includeFolders: helpers_1.QueryBooleanSchema.optional() });
|
|
18
20
|
FindChatsCommand.RequestQuerySchema = zod_1.z.intersection(QuerySchema, FindChatsCommand.PaginationQuerySchema);
|
|
21
|
+
FindChatsCommand.ChatListItemSchema = models_1.ChatSchema.extend({
|
|
22
|
+
folder: zod_1.z.object({ uuid: zod_1.z.string().uuid(), title: zod_1.z.string() }).nullable(),
|
|
23
|
+
});
|
|
19
24
|
FindChatsCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
-
data: zod_1.z.array(
|
|
25
|
+
data: zod_1.z.array(FindChatsCommand.ChatListItemSchema),
|
|
21
26
|
page: zod_1.z.number(),
|
|
22
27
|
totalPages: zod_1.z.number(),
|
|
23
28
|
total: zod_1.z.number(),
|
|
@@ -16,12 +16,12 @@ exports.FREE_SUBSCRIPTION_DATA = {
|
|
|
16
16
|
plan: enums_1.SUBSCRIPTION_PLAN.mock,
|
|
17
17
|
icons: {
|
|
18
18
|
light: {
|
|
19
|
-
svg: 'https://
|
|
20
|
-
png: 'https://
|
|
19
|
+
svg: 'https://cdn.rugpt.io/images/images/81b60ce5-b687-43ff-85dd-e4e47c8e81e9.svg',
|
|
20
|
+
png: 'https://cdn.rugpt.io/images/images/e1bb1acd-a387-4596-8fd5-0159f692ff11.png',
|
|
21
21
|
},
|
|
22
22
|
dark: {
|
|
23
|
-
svg: 'https://
|
|
24
|
-
png: 'https://
|
|
23
|
+
svg: 'https://cdn.rugpt.io/images/images/ac095d48-a66b-4862-82c7-eb120b5bd467.svg',
|
|
24
|
+
png: 'https://cdn.rugpt.io/images/images/e2208949-a73a-4137-b5bd-760599a70691.png',
|
|
25
25
|
},
|
|
26
26
|
},
|
|
27
27
|
interval: '',
|