@purpleschool/multisite 0.0.34 → 0.0.41
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/api/controller/http/auth.ts +1 -0
- package/api/controller/http/catalog.ts +6 -0
- package/api/controller/http/file.ts +1 -0
- package/api/controller/http/index.ts +2 -0
- package/api/controller/http/text-chat.ts +18 -0
- package/api/routes.ts +1 -0
- package/build/api/controller/http/auth.d.ts +1 -0
- package/build/api/controller/http/auth.d.ts.map +1 -1
- package/build/api/controller/http/auth.js +1 -0
- package/build/api/controller/http/catalog.d.ts +7 -0
- package/build/api/controller/http/catalog.d.ts.map +1 -0
- package/build/api/controller/http/catalog.js +9 -0
- package/build/api/controller/http/file.d.ts +1 -0
- package/build/api/controller/http/file.d.ts.map +1 -1
- package/build/api/controller/http/file.js +1 -0
- package/build/api/controller/http/index.d.ts +2 -0
- package/build/api/controller/http/index.d.ts.map +1 -1
- package/build/api/controller/http/index.js +2 -0
- package/build/api/controller/http/text-chat.d.ts +18 -0
- package/build/api/controller/http/text-chat.d.ts.map +1 -0
- package/build/api/controller/http/text-chat.js +20 -0
- package/build/api/routes.d.ts +1 -0
- package/build/api/routes.d.ts.map +1 -1
- package/build/api/routes.js +1 -0
- package/build/commands/auth/change-password.command.d.ts +5 -0
- package/build/commands/auth/change-password.command.d.ts.map +1 -1
- package/build/commands/auth/change-password.command.js +1 -0
- package/build/commands/auth/index.d.ts +1 -0
- package/build/commands/auth/index.d.ts.map +1 -1
- package/build/commands/auth/index.js +1 -0
- package/build/commands/auth/login.command.d.ts +5 -0
- package/build/commands/auth/login.command.d.ts.map +1 -1
- package/build/commands/auth/login.command.js +1 -0
- package/build/commands/auth/refresh.command.d.ts +30 -0
- package/build/commands/auth/refresh.command.d.ts.map +1 -0
- package/build/commands/auth/refresh.command.js +15 -0
- package/build/commands/auth/register.command.d.ts +5 -0
- package/build/commands/auth/register.command.d.ts.map +1 -1
- package/build/commands/auth/register.command.js +1 -0
- package/build/commands/auth/reset-password.command.d.ts +5 -0
- package/build/commands/auth/reset-password.command.d.ts.map +1 -1
- package/build/commands/auth/reset-password.command.js +1 -0
- package/build/commands/auth/verify-email.command.d.ts.map +1 -1
- package/build/commands/auth/verify-email.command.js +2 -1
- package/build/commands/auth/vk-login.command.d.ts +5 -0
- package/build/commands/auth/vk-login.command.d.ts.map +1 -1
- package/build/commands/auth/vk-login.command.js +1 -0
- package/build/commands/auth/yandex-login.command.d.ts +5 -0
- package/build/commands/auth/yandex-login.command.d.ts.map +1 -1
- package/build/commands/auth/yandex-login.command.js +1 -0
- package/build/commands/catalog/index.d.ts +156 -0
- package/build/commands/catalog/index.d.ts.map +1 -0
- package/build/commands/catalog/index.js +23 -0
- package/build/commands/index.d.ts +2 -0
- package/build/commands/index.d.ts.map +1 -1
- package/build/commands/index.js +2 -0
- package/build/commands/page/create-page.command.d.ts +8 -0
- package/build/commands/page/create-page.command.d.ts.map +1 -1
- package/build/commands/page/find-page-by-alias.command.d.ts +16 -0
- package/build/commands/page/find-page-by-alias.command.d.ts.map +1 -1
- package/build/commands/page/find-page-by-criteria.command.d.ts +5 -0
- package/build/commands/page/find-page-by-criteria.command.d.ts.map +1 -1
- package/build/commands/page/find-page.command.d.ts +11 -0
- package/build/commands/page/find-page.command.d.ts.map +1 -1
- package/build/commands/page/update-page.command.d.ts +8 -0
- package/build/commands/page/update-page.command.d.ts.map +1 -1
- package/build/commands/product/fast-buy-product.command.d.ts.map +1 -1
- package/build/commands/product/fast-buy-product.command.js +2 -1
- package/build/commands/subscription/fast-buy-subscription.command.d.ts.map +1 -1
- package/build/commands/subscription/fast-buy-subscription.command.js +2 -1
- package/build/commands/text-chat/category.d.ts +321 -0
- package/build/commands/text-chat/category.d.ts.map +1 -0
- package/build/commands/text-chat/category.js +29 -0
- package/build/commands/text-chat/index.d.ts +292 -0
- package/build/commands/text-chat/index.d.ts.map +1 -0
- package/build/commands/text-chat/index.js +73 -0
- package/build/constants/catalog.d.ts +5 -0
- package/build/constants/catalog.d.ts.map +1 -0
- package/build/constants/catalog.js +8 -0
- package/build/constants/errors/errors.d.ts +77 -0
- package/build/constants/errors/errors.d.ts.map +1 -1
- package/build/constants/errors/errors.js +77 -0
- package/build/constants/files/enums/file-type.enum.d.ts +3 -1
- package/build/constants/files/enums/file-type.enum.d.ts.map +1 -1
- package/build/constants/files/enums/file-type.enum.js +2 -0
- package/build/constants/index.d.ts +3 -0
- package/build/constants/index.d.ts.map +1 -1
- package/build/constants/index.js +3 -0
- package/build/constants/text-chat/attachments.d.ts +12 -0
- package/build/constants/text-chat/attachments.d.ts.map +1 -0
- package/build/constants/text-chat/attachments.js +52 -0
- package/build/constants/text-chat/index.d.ts +38 -0
- package/build/constants/text-chat/index.d.ts.map +1 -0
- package/build/constants/text-chat/index.js +59 -0
- package/build/constants/text-provider/index.d.ts +37 -0
- package/build/constants/text-provider/index.d.ts.map +1 -0
- package/build/constants/text-provider/index.js +46 -0
- package/build/constants/tools/enums/tool-type.enum.d.ts +1 -0
- package/build/constants/tools/enums/tool-type.enum.d.ts.map +1 -1
- package/build/constants/tools/enums/tool-type.enum.js +1 -0
- package/build/helpers/index.d.ts +1 -0
- package/build/helpers/index.d.ts.map +1 -1
- package/build/helpers/index.js +1 -0
- package/build/helpers/text-chat/index.d.ts +23 -0
- package/build/helpers/text-chat/index.d.ts.map +1 -0
- package/build/helpers/text-chat/index.js +91 -0
- package/build/models/catalog/index.d.ts +181 -0
- package/build/models/catalog/index.d.ts.map +1 -0
- package/build/models/catalog/index.js +36 -0
- package/build/models/index.d.ts +2 -0
- package/build/models/index.d.ts.map +1 -1
- package/build/models/index.js +2 -0
- package/build/models/page.schema.d.ts +6 -0
- package/build/models/page.schema.d.ts.map +1 -1
- package/build/models/page.schema.js +1 -0
- package/build/models/text-chat/category.schema.d.ts +79 -0
- package/build/models/text-chat/category.schema.d.ts.map +1 -0
- package/build/models/text-chat/category.schema.js +38 -0
- package/build/models/text-chat/index.d.ts +319 -0
- package/build/models/text-chat/index.d.ts.map +1 -0
- package/build/models/text-chat/index.js +79 -0
- package/build/models/text-chat/provider-config.schema.d.ts +92 -0
- package/build/models/text-chat/provider-config.schema.d.ts.map +1 -0
- package/build/models/text-chat/provider-config.schema.js +42 -0
- package/build/models/text-chat/stream.schema.d.ts +83 -0
- package/build/models/text-chat/stream.schema.d.ts.map +1 -0
- package/build/models/text-chat/stream.schema.js +24 -0
- package/build/models/user.schema.d.ts +1 -0
- package/build/models/user.schema.d.ts.map +1 -1
- package/build/models/user.schema.js +3 -2
- package/build/queries/catalog/index.d.ts +259 -0
- package/build/queries/catalog/index.d.ts.map +1 -0
- package/build/queries/catalog/index.js +31 -0
- package/build/queries/index.d.ts +2 -0
- package/build/queries/index.d.ts.map +1 -1
- package/build/queries/index.js +2 -0
- package/build/queries/subscription/get-subscriptions-summary.command.d.ts +5 -0
- package/build/queries/subscription/get-subscriptions-summary.command.d.ts.map +1 -1
- package/build/queries/subscription/get-subscriptions-summary.command.js +1 -0
- package/build/queries/text-chat/category.d.ts +297 -0
- package/build/queries/text-chat/category.d.ts.map +1 -0
- package/build/queries/text-chat/category.js +45 -0
- package/build/queries/text-chat/index.d.ts +472 -0
- package/build/queries/text-chat/index.d.ts.map +1 -0
- package/build/queries/text-chat/index.js +61 -0
- package/commands/auth/change-password.command.ts +1 -0
- package/commands/auth/index.ts +1 -0
- package/commands/auth/login.command.ts +1 -0
- package/commands/auth/refresh.command.ts +15 -0
- package/commands/auth/register.command.ts +1 -0
- package/commands/auth/reset-password.command.ts +1 -0
- package/commands/auth/verify-email.command.ts +2 -1
- package/commands/auth/vk-login.command.ts +1 -0
- package/commands/auth/yandex-login.command.ts +1 -0
- package/commands/catalog/index.ts +26 -0
- package/commands/index.ts +2 -0
- package/commands/product/fast-buy-product.command.ts +2 -1
- package/commands/subscription/fast-buy-subscription.command.ts +2 -1
- package/commands/text-chat/category.ts +42 -0
- package/commands/text-chat/index.ts +71 -0
- package/constants/catalog.ts +4 -0
- package/constants/errors/errors.ts +78 -0
- package/constants/files/enums/file-type.enum.ts +2 -0
- package/constants/index.ts +3 -0
- package/constants/text-chat/attachments.ts +55 -0
- package/constants/text-chat/index.ts +43 -0
- package/constants/text-provider/index.ts +42 -0
- package/constants/tools/enums/tool-type.enum.ts +1 -0
- package/helpers/index.ts +1 -0
- package/helpers/text-chat/index.ts +91 -0
- package/models/catalog/index.ts +35 -0
- package/models/index.ts +2 -0
- package/models/page.schema.ts +1 -0
- package/models/text-chat/category.schema.ts +40 -0
- package/models/text-chat/index.ts +82 -0
- package/models/text-chat/provider-config.schema.ts +47 -0
- package/models/text-chat/stream.schema.ts +43 -0
- package/models/user.schema.ts +3 -1
- package/package.json +1 -1
- package/queries/catalog/index.ts +29 -0
- package/queries/index.ts +2 -0
- package/queries/subscription/get-subscriptions-summary.command.ts +1 -0
- package/queries/text-chat/category.ts +51 -0
- package/queries/text-chat/index.ts +56 -0
|
@@ -3,13 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FastBuySubscriptionCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const models_1 = require("../../models");
|
|
6
|
+
const user_schema_1 = require("../../models/user.schema");
|
|
6
7
|
var FastBuySubscriptionCommand;
|
|
7
8
|
(function (FastBuySubscriptionCommand) {
|
|
8
9
|
FastBuySubscriptionCommand.RequestParamSchema = zod_1.z.object({
|
|
9
10
|
uuid: zod_1.z.string().uuid(),
|
|
10
11
|
});
|
|
11
12
|
FastBuySubscriptionCommand.RequestSchema = zod_1.z.object({
|
|
12
|
-
email:
|
|
13
|
+
email: user_schema_1.EmailInputSchema,
|
|
13
14
|
partnerId: zod_1.z.string().uuid().optional(),
|
|
14
15
|
marketingConsent: zod_1.z.boolean().optional().default(false),
|
|
15
16
|
});
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace CreateTextChatCategoryCommand {
|
|
3
|
+
const RequestSchema: z.ZodObject<{
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
toolType: z.ZodDefault<z.ZodEnum<[import("../..").TOOL_TYPE.TEXT, import("../..").TOOL_TYPE.IMAGE_GENERATION, import("../..").TOOL_TYPE.IMAGE_EDITOR]>>;
|
|
6
|
+
placeholder: z.ZodDefault<z.ZodString>;
|
|
7
|
+
groupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
8
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
9
|
+
prompt: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>;
|
|
10
|
+
}, "strict", z.ZodTypeAny, {
|
|
11
|
+
title: string;
|
|
12
|
+
toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
|
|
13
|
+
placeholder: string;
|
|
14
|
+
groupId?: string | null | undefined;
|
|
15
|
+
order?: number | undefined;
|
|
16
|
+
prompt?: string | null | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
title: string;
|
|
19
|
+
toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
20
|
+
placeholder?: string | undefined;
|
|
21
|
+
groupId?: string | null | undefined;
|
|
22
|
+
order?: number | undefined;
|
|
23
|
+
prompt?: string | null | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
type Request = z.input<typeof RequestSchema>;
|
|
26
|
+
const ResponseSchema: z.ZodObject<{
|
|
27
|
+
data: z.ZodObject<{
|
|
28
|
+
uuid: z.ZodString;
|
|
29
|
+
title: z.ZodString;
|
|
30
|
+
placeholder: z.ZodString;
|
|
31
|
+
} & {
|
|
32
|
+
siteId: z.ZodString;
|
|
33
|
+
toolType: z.ZodDefault<z.ZodEnum<[import("../..").TOOL_TYPE.TEXT, import("../..").TOOL_TYPE.IMAGE_GENERATION, import("../..").TOOL_TYPE.IMAGE_EDITOR]>>;
|
|
34
|
+
groupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
36
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
37
|
+
archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
38
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
39
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
uuid: string;
|
|
42
|
+
title: string;
|
|
43
|
+
placeholder: string;
|
|
44
|
+
siteId: string;
|
|
45
|
+
toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
|
|
46
|
+
groupId: string | null;
|
|
47
|
+
order: number;
|
|
48
|
+
prompt: string | null;
|
|
49
|
+
archivedAt: string | Date | null;
|
|
50
|
+
createdAt: string | Date;
|
|
51
|
+
updatedAt: string | Date;
|
|
52
|
+
}, {
|
|
53
|
+
uuid: string;
|
|
54
|
+
title: string;
|
|
55
|
+
placeholder: string;
|
|
56
|
+
siteId: string;
|
|
57
|
+
toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
58
|
+
groupId?: string | null | undefined;
|
|
59
|
+
order?: number | undefined;
|
|
60
|
+
prompt: string | null;
|
|
61
|
+
archivedAt: string | Date | null;
|
|
62
|
+
createdAt: string | Date;
|
|
63
|
+
updatedAt: string | Date;
|
|
64
|
+
}>;
|
|
65
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
|
+
data: {
|
|
67
|
+
uuid: string;
|
|
68
|
+
title: string;
|
|
69
|
+
placeholder: string;
|
|
70
|
+
siteId: string;
|
|
71
|
+
toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
|
|
72
|
+
groupId: string | null;
|
|
73
|
+
order: number;
|
|
74
|
+
prompt: string | null;
|
|
75
|
+
archivedAt: string | Date | null;
|
|
76
|
+
createdAt: string | Date;
|
|
77
|
+
updatedAt: string | Date;
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
data: {
|
|
81
|
+
uuid: string;
|
|
82
|
+
title: string;
|
|
83
|
+
placeholder: string;
|
|
84
|
+
siteId: string;
|
|
85
|
+
toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
86
|
+
groupId?: string | null | undefined;
|
|
87
|
+
order?: number | undefined;
|
|
88
|
+
prompt: string | null;
|
|
89
|
+
archivedAt: string | Date | null;
|
|
90
|
+
createdAt: string | Date;
|
|
91
|
+
updatedAt: string | Date;
|
|
92
|
+
};
|
|
93
|
+
}>;
|
|
94
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
95
|
+
}
|
|
96
|
+
export declare namespace UpdateTextChatCategoryCommand {
|
|
97
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
98
|
+
uuid: z.ZodString;
|
|
99
|
+
}, "strict", z.ZodTypeAny, {
|
|
100
|
+
uuid: string;
|
|
101
|
+
}, {
|
|
102
|
+
uuid: string;
|
|
103
|
+
}>;
|
|
104
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
105
|
+
const RequestSchema: z.ZodEffects<z.ZodObject<{
|
|
106
|
+
title: z.ZodOptional<z.ZodString>;
|
|
107
|
+
toolType: z.ZodOptional<z.ZodDefault<z.ZodEnum<[import("../..").TOOL_TYPE.TEXT, import("../..").TOOL_TYPE.IMAGE_GENERATION, import("../..").TOOL_TYPE.IMAGE_EDITOR]>>>;
|
|
108
|
+
placeholder: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
109
|
+
groupId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
110
|
+
order: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
111
|
+
prompt: z.ZodOptional<z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodString>>, string | null | undefined, string | null | undefined>>;
|
|
112
|
+
}, "strict", z.ZodTypeAny, {
|
|
113
|
+
title?: string | undefined;
|
|
114
|
+
toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
115
|
+
placeholder?: string | undefined;
|
|
116
|
+
groupId?: string | null | undefined;
|
|
117
|
+
order?: number | undefined;
|
|
118
|
+
prompt?: string | null | undefined;
|
|
119
|
+
}, {
|
|
120
|
+
title?: string | undefined;
|
|
121
|
+
toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
122
|
+
placeholder?: string | undefined;
|
|
123
|
+
groupId?: string | null | undefined;
|
|
124
|
+
order?: number | undefined;
|
|
125
|
+
prompt?: string | null | undefined;
|
|
126
|
+
}>, {
|
|
127
|
+
title?: string | undefined;
|
|
128
|
+
toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
129
|
+
placeholder?: string | undefined;
|
|
130
|
+
groupId?: string | null | undefined;
|
|
131
|
+
order?: number | undefined;
|
|
132
|
+
prompt?: string | null | undefined;
|
|
133
|
+
}, {
|
|
134
|
+
title?: string | undefined;
|
|
135
|
+
toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
136
|
+
placeholder?: string | undefined;
|
|
137
|
+
groupId?: string | null | undefined;
|
|
138
|
+
order?: number | undefined;
|
|
139
|
+
prompt?: string | null | undefined;
|
|
140
|
+
}>;
|
|
141
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
142
|
+
const ResponseSchema: z.ZodObject<{
|
|
143
|
+
data: z.ZodObject<{
|
|
144
|
+
uuid: z.ZodString;
|
|
145
|
+
title: z.ZodString;
|
|
146
|
+
placeholder: z.ZodString;
|
|
147
|
+
} & {
|
|
148
|
+
siteId: z.ZodString;
|
|
149
|
+
toolType: z.ZodDefault<z.ZodEnum<[import("../..").TOOL_TYPE.TEXT, import("../..").TOOL_TYPE.IMAGE_GENERATION, import("../..").TOOL_TYPE.IMAGE_EDITOR]>>;
|
|
150
|
+
groupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
151
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
152
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
153
|
+
archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
154
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
155
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
156
|
+
}, "strip", z.ZodTypeAny, {
|
|
157
|
+
uuid: string;
|
|
158
|
+
title: string;
|
|
159
|
+
placeholder: string;
|
|
160
|
+
siteId: string;
|
|
161
|
+
toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
|
|
162
|
+
groupId: string | null;
|
|
163
|
+
order: number;
|
|
164
|
+
prompt: string | null;
|
|
165
|
+
archivedAt: string | Date | null;
|
|
166
|
+
createdAt: string | Date;
|
|
167
|
+
updatedAt: string | Date;
|
|
168
|
+
}, {
|
|
169
|
+
uuid: string;
|
|
170
|
+
title: string;
|
|
171
|
+
placeholder: string;
|
|
172
|
+
siteId: string;
|
|
173
|
+
toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
174
|
+
groupId?: string | null | undefined;
|
|
175
|
+
order?: number | undefined;
|
|
176
|
+
prompt: string | null;
|
|
177
|
+
archivedAt: string | Date | null;
|
|
178
|
+
createdAt: string | Date;
|
|
179
|
+
updatedAt: string | Date;
|
|
180
|
+
}>;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
data: {
|
|
183
|
+
uuid: string;
|
|
184
|
+
title: string;
|
|
185
|
+
placeholder: string;
|
|
186
|
+
siteId: string;
|
|
187
|
+
toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
|
|
188
|
+
groupId: string | null;
|
|
189
|
+
order: number;
|
|
190
|
+
prompt: string | null;
|
|
191
|
+
archivedAt: string | Date | null;
|
|
192
|
+
createdAt: string | Date;
|
|
193
|
+
updatedAt: string | Date;
|
|
194
|
+
};
|
|
195
|
+
}, {
|
|
196
|
+
data: {
|
|
197
|
+
uuid: string;
|
|
198
|
+
title: string;
|
|
199
|
+
placeholder: string;
|
|
200
|
+
siteId: string;
|
|
201
|
+
toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
202
|
+
groupId?: string | null | undefined;
|
|
203
|
+
order?: number | undefined;
|
|
204
|
+
prompt: string | null;
|
|
205
|
+
archivedAt: string | Date | null;
|
|
206
|
+
createdAt: string | Date;
|
|
207
|
+
updatedAt: string | Date;
|
|
208
|
+
};
|
|
209
|
+
}>;
|
|
210
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
211
|
+
}
|
|
212
|
+
export declare namespace ArchiveTextChatCategoryCommand {
|
|
213
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
214
|
+
uuid: z.ZodString;
|
|
215
|
+
}, "strict", z.ZodTypeAny, {
|
|
216
|
+
uuid: string;
|
|
217
|
+
}, {
|
|
218
|
+
uuid: string;
|
|
219
|
+
}>;
|
|
220
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
221
|
+
const RequestSchema: z.ZodObject<{}, "strict", z.ZodTypeAny, {}, {}>;
|
|
222
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
223
|
+
const ResponseSchema: z.ZodObject<{
|
|
224
|
+
data: z.ZodObject<{
|
|
225
|
+
uuid: z.ZodString;
|
|
226
|
+
title: z.ZodString;
|
|
227
|
+
placeholder: z.ZodString;
|
|
228
|
+
} & {
|
|
229
|
+
siteId: z.ZodString;
|
|
230
|
+
toolType: z.ZodDefault<z.ZodEnum<[import("../..").TOOL_TYPE.TEXT, import("../..").TOOL_TYPE.IMAGE_GENERATION, import("../..").TOOL_TYPE.IMAGE_EDITOR]>>;
|
|
231
|
+
groupId: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
232
|
+
order: z.ZodDefault<z.ZodNumber>;
|
|
233
|
+
prompt: z.ZodNullable<z.ZodString>;
|
|
234
|
+
archivedAt: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
235
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
236
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
237
|
+
}, "strip", z.ZodTypeAny, {
|
|
238
|
+
uuid: string;
|
|
239
|
+
title: string;
|
|
240
|
+
placeholder: string;
|
|
241
|
+
siteId: string;
|
|
242
|
+
toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
|
|
243
|
+
groupId: string | null;
|
|
244
|
+
order: number;
|
|
245
|
+
prompt: string | null;
|
|
246
|
+
archivedAt: string | Date | null;
|
|
247
|
+
createdAt: string | Date;
|
|
248
|
+
updatedAt: string | Date;
|
|
249
|
+
}, {
|
|
250
|
+
uuid: string;
|
|
251
|
+
title: string;
|
|
252
|
+
placeholder: string;
|
|
253
|
+
siteId: string;
|
|
254
|
+
toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
255
|
+
groupId?: string | null | undefined;
|
|
256
|
+
order?: number | undefined;
|
|
257
|
+
prompt: string | null;
|
|
258
|
+
archivedAt: string | Date | null;
|
|
259
|
+
createdAt: string | Date;
|
|
260
|
+
updatedAt: string | Date;
|
|
261
|
+
}>;
|
|
262
|
+
}, "strip", z.ZodTypeAny, {
|
|
263
|
+
data: {
|
|
264
|
+
uuid: string;
|
|
265
|
+
title: string;
|
|
266
|
+
placeholder: string;
|
|
267
|
+
siteId: string;
|
|
268
|
+
toolType: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR;
|
|
269
|
+
groupId: string | null;
|
|
270
|
+
order: number;
|
|
271
|
+
prompt: string | null;
|
|
272
|
+
archivedAt: string | Date | null;
|
|
273
|
+
createdAt: string | Date;
|
|
274
|
+
updatedAt: string | Date;
|
|
275
|
+
};
|
|
276
|
+
}, {
|
|
277
|
+
data: {
|
|
278
|
+
uuid: string;
|
|
279
|
+
title: string;
|
|
280
|
+
placeholder: string;
|
|
281
|
+
siteId: string;
|
|
282
|
+
toolType?: import("../..").TOOL_TYPE.TEXT | import("../..").TOOL_TYPE.IMAGE_GENERATION | import("../..").TOOL_TYPE.IMAGE_EDITOR | undefined;
|
|
283
|
+
groupId?: string | null | undefined;
|
|
284
|
+
order?: number | undefined;
|
|
285
|
+
prompt: string | null;
|
|
286
|
+
archivedAt: string | Date | null;
|
|
287
|
+
createdAt: string | Date;
|
|
288
|
+
updatedAt: string | Date;
|
|
289
|
+
};
|
|
290
|
+
}>;
|
|
291
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
292
|
+
}
|
|
293
|
+
export declare namespace DeleteTextChatCategoryCommand {
|
|
294
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
295
|
+
uuid: z.ZodString;
|
|
296
|
+
}, "strict", z.ZodTypeAny, {
|
|
297
|
+
uuid: string;
|
|
298
|
+
}, {
|
|
299
|
+
uuid: string;
|
|
300
|
+
}>;
|
|
301
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
302
|
+
const ResponseSchema: z.ZodObject<{
|
|
303
|
+
data: z.ZodObject<{
|
|
304
|
+
deleted: z.ZodLiteral<true>;
|
|
305
|
+
}, "strip", z.ZodTypeAny, {
|
|
306
|
+
deleted: true;
|
|
307
|
+
}, {
|
|
308
|
+
deleted: true;
|
|
309
|
+
}>;
|
|
310
|
+
}, "strip", z.ZodTypeAny, {
|
|
311
|
+
data: {
|
|
312
|
+
deleted: true;
|
|
313
|
+
};
|
|
314
|
+
}, {
|
|
315
|
+
data: {
|
|
316
|
+
deleted: true;
|
|
317
|
+
};
|
|
318
|
+
}>;
|
|
319
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
320
|
+
}
|
|
321
|
+
//# sourceMappingURL=category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../commands/text-chat/category.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;MAAwC,CAAC;IACnE,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAC7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkD,CAAC;IAC9E,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC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
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeleteTextChatCategoryCommand = exports.ArchiveTextChatCategoryCommand = exports.UpdateTextChatCategoryCommand = exports.CreateTextChatCategoryCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const category_schema_1 = require("../../models/text-chat/category.schema");
|
|
6
|
+
var CreateTextChatCategoryCommand;
|
|
7
|
+
(function (CreateTextChatCategoryCommand) {
|
|
8
|
+
CreateTextChatCategoryCommand.RequestSchema = category_schema_1.TextChatCategoryFieldsSchema.strict();
|
|
9
|
+
CreateTextChatCategoryCommand.ResponseSchema = zod_1.z.object({ data: category_schema_1.TextChatCategoryAdminSchema });
|
|
10
|
+
})(CreateTextChatCategoryCommand || (exports.CreateTextChatCategoryCommand = CreateTextChatCategoryCommand = {}));
|
|
11
|
+
var UpdateTextChatCategoryCommand;
|
|
12
|
+
(function (UpdateTextChatCategoryCommand) {
|
|
13
|
+
UpdateTextChatCategoryCommand.RequestParamsSchema = zod_1.z.object({ uuid: zod_1.z.string().uuid() }).strict();
|
|
14
|
+
UpdateTextChatCategoryCommand.RequestSchema = category_schema_1.TextChatCategoryFieldsSchema.partial()
|
|
15
|
+
.strict()
|
|
16
|
+
.refine((input) => Object.values(input).some((value) => value !== undefined), 'At least one field is required');
|
|
17
|
+
UpdateTextChatCategoryCommand.ResponseSchema = CreateTextChatCategoryCommand.ResponseSchema;
|
|
18
|
+
})(UpdateTextChatCategoryCommand || (exports.UpdateTextChatCategoryCommand = UpdateTextChatCategoryCommand = {}));
|
|
19
|
+
var ArchiveTextChatCategoryCommand;
|
|
20
|
+
(function (ArchiveTextChatCategoryCommand) {
|
|
21
|
+
ArchiveTextChatCategoryCommand.RequestParamsSchema = UpdateTextChatCategoryCommand.RequestParamsSchema;
|
|
22
|
+
ArchiveTextChatCategoryCommand.RequestSchema = zod_1.z.object({}).strict();
|
|
23
|
+
ArchiveTextChatCategoryCommand.ResponseSchema = CreateTextChatCategoryCommand.ResponseSchema;
|
|
24
|
+
})(ArchiveTextChatCategoryCommand || (exports.ArchiveTextChatCategoryCommand = ArchiveTextChatCategoryCommand = {}));
|
|
25
|
+
var DeleteTextChatCategoryCommand;
|
|
26
|
+
(function (DeleteTextChatCategoryCommand) {
|
|
27
|
+
DeleteTextChatCategoryCommand.RequestParamsSchema = UpdateTextChatCategoryCommand.RequestParamsSchema;
|
|
28
|
+
DeleteTextChatCategoryCommand.ResponseSchema = zod_1.z.object({ data: zod_1.z.object({ deleted: zod_1.z.literal(true) }) });
|
|
29
|
+
})(DeleteTextChatCategoryCommand || (exports.DeleteTextChatCategoryCommand = DeleteTextChatCategoryCommand = {}));
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export * from './category';
|
|
3
|
+
export declare namespace UploadTextChatFileCommand {
|
|
4
|
+
const ResponseSchema: z.ZodObject<{
|
|
5
|
+
data: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
key: z.ZodString;
|
|
9
|
+
url: z.ZodString;
|
|
10
|
+
mimeType: z.ZodString;
|
|
11
|
+
size: z.ZodNumber;
|
|
12
|
+
createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
|
|
13
|
+
} & {
|
|
14
|
+
type: z.ZodEnum<[import("../..").FILE_TYPE.IMAGE, import("../..").FILE_TYPE.TEXT, import("../..").FILE_TYPE.DOCUMENT]>;
|
|
15
|
+
contentLength: z.ZodNullable<z.ZodNumber>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
uuid: string;
|
|
18
|
+
name: string;
|
|
19
|
+
key: string;
|
|
20
|
+
url: string;
|
|
21
|
+
mimeType: string;
|
|
22
|
+
size: number;
|
|
23
|
+
createdAt?: string | Date | undefined;
|
|
24
|
+
type: import("../..").FILE_TYPE.IMAGE | import("../..").FILE_TYPE.TEXT | import("../..").FILE_TYPE.DOCUMENT;
|
|
25
|
+
contentLength: number | null;
|
|
26
|
+
}, {
|
|
27
|
+
uuid: string;
|
|
28
|
+
name: string;
|
|
29
|
+
key: string;
|
|
30
|
+
url: string;
|
|
31
|
+
mimeType: string;
|
|
32
|
+
size: number;
|
|
33
|
+
createdAt?: string | Date | undefined;
|
|
34
|
+
type: import("../..").FILE_TYPE.IMAGE | import("../..").FILE_TYPE.TEXT | import("../..").FILE_TYPE.DOCUMENT;
|
|
35
|
+
contentLength: number | null;
|
|
36
|
+
}>;
|
|
37
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
|
+
data: {
|
|
39
|
+
uuid: string;
|
|
40
|
+
name: string;
|
|
41
|
+
key: string;
|
|
42
|
+
url: string;
|
|
43
|
+
mimeType: string;
|
|
44
|
+
size: number;
|
|
45
|
+
createdAt?: string | Date | undefined;
|
|
46
|
+
type: import("../..").FILE_TYPE.IMAGE | import("../..").FILE_TYPE.TEXT | import("../..").FILE_TYPE.DOCUMENT;
|
|
47
|
+
contentLength: number | null;
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
data: {
|
|
51
|
+
uuid: string;
|
|
52
|
+
name: string;
|
|
53
|
+
key: string;
|
|
54
|
+
url: string;
|
|
55
|
+
mimeType: string;
|
|
56
|
+
size: number;
|
|
57
|
+
createdAt?: string | Date | undefined;
|
|
58
|
+
type: import("../..").FILE_TYPE.IMAGE | import("../..").FILE_TYPE.TEXT | import("../..").FILE_TYPE.DOCUMENT;
|
|
59
|
+
contentLength: number | null;
|
|
60
|
+
};
|
|
61
|
+
}>;
|
|
62
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
63
|
+
}
|
|
64
|
+
export declare namespace CreateTextChatCommand {
|
|
65
|
+
const RequestSchema: z.ZodObject<{
|
|
66
|
+
categoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
67
|
+
}, "strict", z.ZodTypeAny, {
|
|
68
|
+
categoryId?: string | null | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
categoryId?: string | null | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
73
|
+
const ResponseSchema: z.ZodObject<{
|
|
74
|
+
data: z.ZodObject<{
|
|
75
|
+
uuid: z.ZodString;
|
|
76
|
+
title: z.ZodString;
|
|
77
|
+
categoryId: z.ZodNullable<z.ZodString>;
|
|
78
|
+
lastUsedAiModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
80
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
uuid: string;
|
|
83
|
+
title: string;
|
|
84
|
+
categoryId: string | null;
|
|
85
|
+
lastUsedAiModelId?: string | null | undefined;
|
|
86
|
+
createdAt: string | Date;
|
|
87
|
+
updatedAt: string | Date;
|
|
88
|
+
}, {
|
|
89
|
+
uuid: string;
|
|
90
|
+
title: string;
|
|
91
|
+
categoryId: string | null;
|
|
92
|
+
lastUsedAiModelId?: string | null | undefined;
|
|
93
|
+
createdAt: string | Date;
|
|
94
|
+
updatedAt: string | Date;
|
|
95
|
+
}>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
data: {
|
|
98
|
+
uuid: string;
|
|
99
|
+
title: string;
|
|
100
|
+
categoryId: string | null;
|
|
101
|
+
lastUsedAiModelId?: string | null | undefined;
|
|
102
|
+
createdAt: string | Date;
|
|
103
|
+
updatedAt: string | Date;
|
|
104
|
+
};
|
|
105
|
+
}, {
|
|
106
|
+
data: {
|
|
107
|
+
uuid: string;
|
|
108
|
+
title: string;
|
|
109
|
+
categoryId: string | null;
|
|
110
|
+
lastUsedAiModelId?: string | null | undefined;
|
|
111
|
+
createdAt: string | Date;
|
|
112
|
+
updatedAt: string | Date;
|
|
113
|
+
};
|
|
114
|
+
}>;
|
|
115
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
116
|
+
}
|
|
117
|
+
export declare namespace RenameTextChatCommand {
|
|
118
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
119
|
+
uuid: z.ZodString;
|
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
|
121
|
+
uuid: string;
|
|
122
|
+
}, {
|
|
123
|
+
uuid: string;
|
|
124
|
+
}>;
|
|
125
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
126
|
+
const RequestSchema: z.ZodObject<{
|
|
127
|
+
title: z.ZodString;
|
|
128
|
+
}, "strict", z.ZodTypeAny, {
|
|
129
|
+
title: string;
|
|
130
|
+
}, {
|
|
131
|
+
title: string;
|
|
132
|
+
}>;
|
|
133
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
134
|
+
const ResponseSchema: z.ZodObject<{
|
|
135
|
+
data: z.ZodObject<{
|
|
136
|
+
uuid: z.ZodString;
|
|
137
|
+
title: z.ZodString;
|
|
138
|
+
categoryId: z.ZodNullable<z.ZodString>;
|
|
139
|
+
lastUsedAiModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
createdAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
141
|
+
updatedAt: z.ZodUnion<[z.ZodString, z.ZodDate]>;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
uuid: string;
|
|
144
|
+
title: string;
|
|
145
|
+
categoryId: string | null;
|
|
146
|
+
lastUsedAiModelId?: string | null | undefined;
|
|
147
|
+
createdAt: string | Date;
|
|
148
|
+
updatedAt: string | Date;
|
|
149
|
+
}, {
|
|
150
|
+
uuid: string;
|
|
151
|
+
title: string;
|
|
152
|
+
categoryId: string | null;
|
|
153
|
+
lastUsedAiModelId?: string | null | undefined;
|
|
154
|
+
createdAt: string | Date;
|
|
155
|
+
updatedAt: string | Date;
|
|
156
|
+
}>;
|
|
157
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
data: {
|
|
159
|
+
uuid: string;
|
|
160
|
+
title: string;
|
|
161
|
+
categoryId: string | null;
|
|
162
|
+
lastUsedAiModelId?: string | null | undefined;
|
|
163
|
+
createdAt: string | Date;
|
|
164
|
+
updatedAt: string | Date;
|
|
165
|
+
};
|
|
166
|
+
}, {
|
|
167
|
+
data: {
|
|
168
|
+
uuid: string;
|
|
169
|
+
title: string;
|
|
170
|
+
categoryId: string | null;
|
|
171
|
+
lastUsedAiModelId?: string | null | undefined;
|
|
172
|
+
createdAt: string | Date;
|
|
173
|
+
updatedAt: string | Date;
|
|
174
|
+
};
|
|
175
|
+
}>;
|
|
176
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
177
|
+
}
|
|
178
|
+
export declare namespace DeleteTextChatCommand {
|
|
179
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
180
|
+
uuid: z.ZodString;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
uuid: string;
|
|
183
|
+
}, {
|
|
184
|
+
uuid: string;
|
|
185
|
+
}>;
|
|
186
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
187
|
+
const ResponseSchema: z.ZodObject<{
|
|
188
|
+
data: z.ZodObject<{
|
|
189
|
+
deleted: z.ZodLiteral<true>;
|
|
190
|
+
}, "strip", z.ZodTypeAny, {
|
|
191
|
+
deleted: true;
|
|
192
|
+
}, {
|
|
193
|
+
deleted: true;
|
|
194
|
+
}>;
|
|
195
|
+
}, "strip", z.ZodTypeAny, {
|
|
196
|
+
data: {
|
|
197
|
+
deleted: true;
|
|
198
|
+
};
|
|
199
|
+
}, {
|
|
200
|
+
data: {
|
|
201
|
+
deleted: true;
|
|
202
|
+
};
|
|
203
|
+
}>;
|
|
204
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
205
|
+
}
|
|
206
|
+
export declare namespace SendTextChatMessageCommand {
|
|
207
|
+
const RequestParamsSchema: z.ZodObject<{
|
|
208
|
+
uuid: z.ZodString;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
uuid: string;
|
|
211
|
+
}, {
|
|
212
|
+
uuid: string;
|
|
213
|
+
}>;
|
|
214
|
+
type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
215
|
+
const RequestSchema: z.ZodObject<{
|
|
216
|
+
modelId: z.ZodString;
|
|
217
|
+
text: z.ZodEffects<z.ZodString, string, string>;
|
|
218
|
+
fileIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
219
|
+
}, "strict", z.ZodTypeAny, {
|
|
220
|
+
modelId: string;
|
|
221
|
+
text: string;
|
|
222
|
+
fileIds: string[];
|
|
223
|
+
}, {
|
|
224
|
+
modelId: string;
|
|
225
|
+
text: string;
|
|
226
|
+
fileIds?: string[] | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
229
|
+
}
|
|
230
|
+
export declare namespace CalculateTextChatPriceCommand {
|
|
231
|
+
const RequestSchema: z.ZodEffects<z.ZodObject<{
|
|
232
|
+
chatId: z.ZodOptional<z.ZodString>;
|
|
233
|
+
categoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
234
|
+
modelId: z.ZodString;
|
|
235
|
+
inputLength: z.ZodNumber;
|
|
236
|
+
fileIds: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
237
|
+
}, "strict", z.ZodTypeAny, {
|
|
238
|
+
chatId?: string | undefined;
|
|
239
|
+
categoryId?: string | null | undefined;
|
|
240
|
+
modelId: string;
|
|
241
|
+
inputLength: number;
|
|
242
|
+
fileIds: string[];
|
|
243
|
+
}, {
|
|
244
|
+
chatId?: string | undefined;
|
|
245
|
+
categoryId?: string | null | undefined;
|
|
246
|
+
modelId: string;
|
|
247
|
+
inputLength: number;
|
|
248
|
+
fileIds?: string[] | undefined;
|
|
249
|
+
}>, {
|
|
250
|
+
chatId?: string | undefined;
|
|
251
|
+
categoryId?: string | null | undefined;
|
|
252
|
+
modelId: string;
|
|
253
|
+
inputLength: number;
|
|
254
|
+
fileIds: string[];
|
|
255
|
+
}, {
|
|
256
|
+
chatId?: string | undefined;
|
|
257
|
+
categoryId?: string | null | undefined;
|
|
258
|
+
modelId: string;
|
|
259
|
+
inputLength: number;
|
|
260
|
+
fileIds?: string[] | undefined;
|
|
261
|
+
}>;
|
|
262
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
263
|
+
const ResponseSchema: z.ZodObject<{
|
|
264
|
+
data: z.ZodObject<{
|
|
265
|
+
price: z.ZodNumber;
|
|
266
|
+
charsUntilNextPriceIncrease: z.ZodNullable<z.ZodNumber>;
|
|
267
|
+
charsUntilNextPriceDecrease: z.ZodNullable<z.ZodNumber>;
|
|
268
|
+
}, "strip", z.ZodTypeAny, {
|
|
269
|
+
price: number;
|
|
270
|
+
charsUntilNextPriceIncrease: number | null;
|
|
271
|
+
charsUntilNextPriceDecrease: number | null;
|
|
272
|
+
}, {
|
|
273
|
+
price: number;
|
|
274
|
+
charsUntilNextPriceIncrease: number | null;
|
|
275
|
+
charsUntilNextPriceDecrease: number | null;
|
|
276
|
+
}>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
data: {
|
|
279
|
+
price: number;
|
|
280
|
+
charsUntilNextPriceIncrease: number | null;
|
|
281
|
+
charsUntilNextPriceDecrease: number | null;
|
|
282
|
+
};
|
|
283
|
+
}, {
|
|
284
|
+
data: {
|
|
285
|
+
price: number;
|
|
286
|
+
charsUntilNextPriceIncrease: number | null;
|
|
287
|
+
charsUntilNextPriceDecrease: number | null;
|
|
288
|
+
};
|
|
289
|
+
}>;
|
|
290
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
291
|
+
}
|
|
292
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/text-chat/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;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