@veruna/api-contracts 1.1.11 → 1.1.13
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/build/controllers/assistant-categories.controllers.d.ts +2 -0
- package/build/controllers/assistant-categories.controllers.js +6 -0
- package/build/controllers/assistant-categories.controllers.js.map +1 -0
- package/build/controllers/index.d.ts +1 -0
- package/build/controllers/index.js +5 -1
- package/build/controllers/index.js.map +1 -1
- package/build/locales/validation.d.ts +190 -8
- package/build/locales/validation.js +190 -8
- package/build/locales/validation.js.map +1 -1
- package/build/rest-api.d.ts +12 -0
- package/build/rest-api.js +12 -0
- package/build/rest-api.js.map +1 -1
- package/build/routes/assistant-categories-admin.routes.d.ts +7 -0
- package/build/routes/assistant-categories-admin.routes.js +11 -0
- package/build/routes/assistant-categories-admin.routes.js.map +1 -0
- package/build/routes/assistant-categories-public.routes.d.ts +3 -0
- package/build/routes/assistant-categories-public.routes.js +7 -0
- package/build/routes/assistant-categories-public.routes.js.map +1 -0
- package/build/routes/index.d.ts +2 -0
- package/build/routes/index.js +5 -1
- package/build/routes/index.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/assistant-categories/admin/commands/create-assistant-category.command.d.ts +22 -0
- package/build/v1/assistant-categories/admin/commands/create-assistant-category.command.js +14 -0
- package/build/v1/assistant-categories/admin/commands/create-assistant-category.command.js.map +1 -0
- package/build/v1/assistant-categories/admin/commands/delete-assistant-category.command.d.ts +15 -0
- package/build/v1/assistant-categories/admin/commands/delete-assistant-category.command.js +18 -0
- package/build/v1/assistant-categories/admin/commands/delete-assistant-category.command.js.map +1 -0
- package/build/v1/assistant-categories/admin/commands/index.d.ts +3 -0
- package/build/v1/assistant-categories/admin/commands/index.js +10 -0
- package/build/v1/assistant-categories/admin/commands/index.js.map +1 -0
- package/build/v1/assistant-categories/admin/commands/update-assistant-category.command.d.ts +22 -0
- package/build/v1/assistant-categories/admin/commands/update-assistant-category.command.js +14 -0
- package/build/v1/assistant-categories/admin/commands/update-assistant-category.command.js.map +1 -0
- package/build/v1/assistant-categories/admin/queries/get-assistant-categories.query.d.ts +57 -0
- package/build/v1/assistant-categories/admin/queries/get-assistant-categories.query.js +38 -0
- package/build/v1/assistant-categories/admin/queries/get-assistant-categories.query.js.map +1 -0
- package/build/v1/assistant-categories/admin/queries/get-assistant-category.query.d.ts +18 -0
- package/build/v1/assistant-categories/admin/queries/get-assistant-category.query.js +15 -0
- package/build/v1/assistant-categories/admin/queries/get-assistant-category.query.js.map +1 -0
- package/build/v1/assistant-categories/admin/queries/index.d.ts +2 -0
- package/build/v1/assistant-categories/admin/queries/index.js +8 -0
- package/build/v1/assistant-categories/admin/queries/index.js.map +1 -0
- package/build/v1/assistant-categories/assistant-categories.errors.d.ts +6 -0
- package/build/v1/assistant-categories/assistant-categories.errors.js +19 -0
- package/build/v1/assistant-categories/assistant-categories.errors.js.map +1 -0
- package/build/v1/assistant-categories/index.d.ts +5 -0
- package/build/v1/assistant-categories/index.js +25 -0
- package/build/v1/assistant-categories/index.js.map +1 -0
- package/build/v1/assistant-categories/public/index.d.ts +1 -0
- package/build/v1/assistant-categories/public/index.js +18 -0
- package/build/v1/assistant-categories/public/index.js.map +1 -0
- package/build/v1/assistant-categories/public/queries/get-public-categories.query.d.ts +16 -0
- package/build/v1/assistant-categories/public/queries/get-public-categories.query.js +15 -0
- package/build/v1/assistant-categories/public/queries/get-public-categories.query.js.map +1 -0
- package/build/v1/assistant-categories/public/queries/index.d.ts +1 -0
- package/build/v1/assistant-categories/public/queries/index.js +6 -0
- package/build/v1/assistant-categories/public/queries/index.js.map +1 -0
- package/build/v1/assistant-categories/schemas/assistant-category-response.schema.d.ts +20 -0
- package/build/v1/assistant-categories/schemas/assistant-category-response.schema.js +17 -0
- package/build/v1/assistant-categories/schemas/assistant-category-response.schema.js.map +1 -0
- package/build/v1/assistant-categories/schemas/assistant-category-status.enum.d.ts +5 -0
- package/build/v1/assistant-categories/schemas/assistant-category-status.enum.js +10 -0
- package/build/v1/assistant-categories/schemas/assistant-category-status.enum.js.map +1 -0
- package/build/v1/assistant-categories/schemas/create-assistant-category-request.schema.d.ts +7 -0
- package/build/v1/assistant-categories/schemas/create-assistant-category-request.schema.js +23 -0
- package/build/v1/assistant-categories/schemas/create-assistant-category-request.schema.js.map +1 -0
- package/build/v1/assistant-categories/schemas/index.d.ts +5 -0
- package/build/v1/assistant-categories/schemas/index.js +16 -0
- package/build/v1/assistant-categories/schemas/index.js.map +1 -0
- package/build/v1/assistant-categories/schemas/public-assistant-category-response.schema.d.ts +13 -0
- package/build/v1/assistant-categories/schemas/public-assistant-category-response.schema.js +14 -0
- package/build/v1/assistant-categories/schemas/public-assistant-category-response.schema.js.map +1 -0
- package/build/v1/assistant-categories/schemas/update-assistant-category-request.schema.d.ts +7 -0
- package/build/v1/assistant-categories/schemas/update-assistant-category-request.schema.js +25 -0
- package/build/v1/assistant-categories/schemas/update-assistant-category-request.schema.js.map +1 -0
- package/build/v1/assistants/admin/commands/create-assistant.command.d.ts +11 -3
- package/build/v1/assistants/admin/commands/update-assistant.command.d.ts +11 -3
- package/build/v1/assistants/admin/queries/get-assistant.query.d.ts +5 -1
- package/build/v1/assistants/admin/queries/get-assistants.query.d.ts +15 -3
- package/build/v1/assistants/admin/queries/get-assistants.query.js +16 -3
- package/build/v1/assistants/admin/queries/get-assistants.query.js.map +1 -1
- package/build/v1/assistants/assistants.errors.d.ts +0 -3
- package/build/v1/assistants/assistants.errors.js +0 -15
- package/build/v1/assistants/assistants.errors.js.map +1 -1
- package/build/v1/assistants/catalog/queries/catalog-long-reg.query.d.ts +27 -2
- package/build/v1/assistants/catalog/queries/catalog-long-unreg.query.d.ts +25 -2
- package/build/v1/assistants/catalog/queries/catalog-short-reg.query.d.ts +33 -6
- package/build/v1/assistants/catalog/queries/catalog-short-unreg.query.d.ts +25 -6
- package/build/v1/assistants/public/queries/get-tree.query.d.ts +17 -7
- package/build/v1/assistants/schemas/assistant-author.schema.d.ts +5 -0
- package/build/v1/assistants/schemas/assistant-author.schema.js +9 -0
- package/build/v1/assistants/schemas/assistant-author.schema.js.map +1 -0
- package/build/v1/assistants/schemas/assistant-response.schema.d.ts +10 -2
- package/build/v1/assistants/schemas/assistant-response.schema.js +3 -1
- package/build/v1/assistants/schemas/assistant-response.schema.js.map +1 -1
- package/build/v1/assistants/schemas/assistant-tree.schema.d.ts +48 -7
- package/build/v1/assistants/schemas/assistant-tree.schema.js +7 -7
- package/build/v1/assistants/schemas/assistant-tree.schema.js.map +1 -1
- package/build/v1/assistants/schemas/catalog-long-request.schema.d.ts +2 -0
- package/build/v1/assistants/schemas/catalog-long-request.schema.js +4 -0
- package/build/v1/assistants/schemas/catalog-long-request.schema.js.map +1 -1
- package/build/v1/assistants/schemas/catalog-long-response.schema.d.ts +166 -4
- package/build/v1/assistants/schemas/catalog-long-response.schema.js +25 -3
- package/build/v1/assistants/schemas/catalog-long-response.schema.js.map +1 -1
- package/build/v1/assistants/schemas/catalog-short-response.schema.d.ts +110 -13
- package/build/v1/assistants/schemas/catalog-short-response.schema.js +13 -9
- package/build/v1/assistants/schemas/catalog-short-response.schema.js.map +1 -1
- package/build/v1/assistants/schemas/create-assistant-request.schema.d.ts +6 -2
- package/build/v1/assistants/schemas/create-assistant-request.schema.js +16 -5
- package/build/v1/assistants/schemas/create-assistant-request.schema.js.map +1 -1
- package/build/v1/assistants/schemas/create-user-assistant-request.schema.d.ts +5 -0
- package/build/v1/assistants/schemas/create-user-assistant-request.schema.js +8 -0
- package/build/v1/assistants/schemas/create-user-assistant-request.schema.js.map +1 -1
- package/build/v1/assistants/schemas/index.d.ts +4 -3
- package/build/v1/assistants/schemas/index.js +9 -1
- package/build/v1/assistants/schemas/index.js.map +1 -1
- package/build/v1/assistants/schemas/update-assistant-request.schema.d.ts +6 -2
- package/build/v1/assistants/schemas/update-assistant-request.schema.js +15 -6
- package/build/v1/assistants/schemas/update-assistant-request.schema.js.map +1 -1
- package/build/v1/assistants/schemas/update-user-assistant-request.schema.d.ts +4 -0
- package/build/v1/assistants/schemas/update-user-assistant-request.schema.js +2 -0
- package/build/v1/assistants/schemas/update-user-assistant-request.schema.js.map +1 -1
- package/build/v1/assistants/schemas/user-assistant-response.schema.d.ts +4 -0
- package/build/v1/assistants/schemas/user-assistant-response.schema.js +2 -0
- package/build/v1/assistants/schemas/user-assistant-response.schema.js.map +1 -1
- package/build/v1/assistants/user/commands/create-user-assistant.command.d.ts +9 -0
- package/build/v1/assistants/user/commands/update-user-assistant.command.d.ts +8 -0
- package/build/v1/assistants/user/queries/get-user-assistant.query.d.ts +4 -0
- package/build/v1/index.d.ts +1 -0
- package/build/v1/index.js +1 -0
- package/build/v1/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PublicAssistantCategoryListResponseSchema = exports.PublicAssistantCategoryResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const shared_1 = require("../../../shared");
|
|
6
|
+
exports.PublicAssistantCategoryResponseSchema = zod_1.z.object({
|
|
7
|
+
uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
|
|
8
|
+
title: zod_1.z.string(),
|
|
9
|
+
icon: zod_1.z.string(),
|
|
10
|
+
});
|
|
11
|
+
exports.PublicAssistantCategoryListResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.array(exports.PublicAssistantCategoryResponseSchema),
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=public-assistant-category-response.schema.js.map
|
package/build/v1/assistant-categories/schemas/public-assistant-category-response.schema.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-assistant-category-response.schema.js","sourceRoot":"","sources":["../../../../v1/assistant-categories/schemas/public-assistant-category-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAEhC,QAAA,qCAAqC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1D,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEU,QAAA,yCAAyC,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9D,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,6CAAqC,CAAC;CACvD,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AssistantCategoryStatus } from './assistant-category-status.enum';
|
|
3
|
+
export declare const UpdateAssistantCategoryRequestSchema: z.ZodObject<{
|
|
4
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
6
|
+
status: z.ZodOptional<z.ZodEnum<typeof AssistantCategoryStatus>>;
|
|
7
|
+
}, z.core.$strict>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateAssistantCategoryRequestSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const assistant_category_status_enum_1 = require("./assistant-category-status.enum");
|
|
6
|
+
exports.UpdateAssistantCategoryRequestSchema = zod_1.z.object({
|
|
7
|
+
title: zod_1.z
|
|
8
|
+
.string()
|
|
9
|
+
.trim()
|
|
10
|
+
.min(1, { message: 'UpdateAssistantCategoryRequest.title.min' })
|
|
11
|
+
.max(300, { message: 'UpdateAssistantCategoryRequest.title.max' })
|
|
12
|
+
.optional(),
|
|
13
|
+
icon: zod_1.z
|
|
14
|
+
.string()
|
|
15
|
+
.trim()
|
|
16
|
+
.min(1, { message: 'UpdateAssistantCategoryRequest.icon.min' })
|
|
17
|
+
.max(500, { message: 'UpdateAssistantCategoryRequest.icon.max' })
|
|
18
|
+
.optional(),
|
|
19
|
+
status: zod_1.z
|
|
20
|
+
.nativeEnum(assistant_category_status_enum_1.AssistantCategoryStatus, {
|
|
21
|
+
error: 'UpdateAssistantCategoryRequest.status.invalid',
|
|
22
|
+
})
|
|
23
|
+
.optional(),
|
|
24
|
+
}).strict();
|
|
25
|
+
//# sourceMappingURL=update-assistant-category-request.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-assistant-category-request.schema.js","sourceRoot":"","sources":["../../../../v1/assistant-categories/schemas/update-assistant-category-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,qFAA2E;AAE9D,QAAA,oCAAoC,GAAG,OAAC,CAAC,MAAM,CAAC;IACzD,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,IAAI,EAAE;SACN,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;SAC/D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;SACjE,QAAQ,EAAE;IACf,IAAI,EAAE,OAAC;SACF,MAAM,EAAE;SACR,IAAI,EAAE;SACN,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;SAC9D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;SAChE,QAAQ,EAAE;IACf,MAAM,EAAE,OAAC;SACJ,UAAU,CAAC,wDAAuB,EAAE;QACjC,KAAK,EAAE,+CAA+C;KACzD,CAAC;SACD,QAAQ,EAAE;CAClB,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
|
@@ -8,12 +8,16 @@ export declare namespace AdminAssistantCreateAssistantCommand {
|
|
|
8
8
|
seoName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
image: z.ZodString;
|
|
10
10
|
prompt: z.ZodString;
|
|
11
|
-
|
|
11
|
+
categoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
order: z.ZodDefault<z.ZodNumber>;
|
|
13
13
|
marks: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof import("../../schemas").AssistantMark>>>;
|
|
14
14
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
15
15
|
status: z.ZodDefault<z.ZodEnum<typeof import("../../schemas").AssistantStatus>>;
|
|
16
|
-
|
|
16
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
|
+
title: z.ZodString;
|
|
18
|
+
link: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
}, z.core.$strict>;
|
|
17
21
|
const Response: z.ZodObject<{
|
|
18
22
|
uuid: z.ZodString;
|
|
19
23
|
title: z.ZodString;
|
|
@@ -22,13 +26,17 @@ export declare namespace AdminAssistantCreateAssistantCommand {
|
|
|
22
26
|
seoName: z.ZodNullable<z.ZodString>;
|
|
23
27
|
image: z.ZodString;
|
|
24
28
|
prompt: z.ZodString;
|
|
25
|
-
|
|
29
|
+
categoryId: z.ZodNullable<z.ZodString>;
|
|
26
30
|
order: z.ZodNumber;
|
|
27
31
|
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").AssistantMark>>;
|
|
28
32
|
tags: z.ZodArray<z.ZodString>;
|
|
29
33
|
usageCount: z.ZodNumber;
|
|
30
34
|
status: z.ZodEnum<typeof import("../../schemas").AssistantStatus>;
|
|
31
35
|
visibility: z.ZodEnum<typeof import("../../schemas").AssistantVisibility>;
|
|
36
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
37
|
+
title: z.ZodString;
|
|
38
|
+
link: z.ZodString;
|
|
39
|
+
}, z.core.$strip>>;
|
|
32
40
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
33
41
|
createdAt: z.ZodString;
|
|
34
42
|
updatedAt: z.ZodString;
|
|
@@ -8,13 +8,17 @@ export declare namespace AdminAssistantUpdateAssistantCommand {
|
|
|
8
8
|
seoName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
9
9
|
image: z.ZodOptional<z.ZodString>;
|
|
10
10
|
prompt: z.ZodOptional<z.ZodString>;
|
|
11
|
-
|
|
11
|
+
categoryId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
12
|
order: z.ZodOptional<z.ZodNumber>;
|
|
13
13
|
marks: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof import("../../schemas").AssistantMark>>>;
|
|
14
14
|
status: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").AssistantStatus>>;
|
|
15
15
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
16
|
visibility: z.ZodOptional<z.ZodEnum<typeof import("../../schemas").AssistantVisibility>>;
|
|
17
|
-
|
|
17
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18
|
+
title: z.ZodString;
|
|
19
|
+
link: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
21
|
+
}, z.core.$strict>;
|
|
18
22
|
const Response: z.ZodObject<{
|
|
19
23
|
uuid: z.ZodString;
|
|
20
24
|
title: z.ZodString;
|
|
@@ -23,13 +27,17 @@ export declare namespace AdminAssistantUpdateAssistantCommand {
|
|
|
23
27
|
seoName: z.ZodNullable<z.ZodString>;
|
|
24
28
|
image: z.ZodString;
|
|
25
29
|
prompt: z.ZodString;
|
|
26
|
-
|
|
30
|
+
categoryId: z.ZodNullable<z.ZodString>;
|
|
27
31
|
order: z.ZodNumber;
|
|
28
32
|
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").AssistantMark>>;
|
|
29
33
|
tags: z.ZodArray<z.ZodString>;
|
|
30
34
|
usageCount: z.ZodNumber;
|
|
31
35
|
status: z.ZodEnum<typeof import("../../schemas").AssistantStatus>;
|
|
32
36
|
visibility: z.ZodEnum<typeof import("../../schemas").AssistantVisibility>;
|
|
37
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
title: z.ZodString;
|
|
39
|
+
link: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>;
|
|
33
41
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
34
42
|
createdAt: z.ZodString;
|
|
35
43
|
updatedAt: z.ZodString;
|
|
@@ -10,13 +10,17 @@ export declare namespace AdminAssistantGetAssistantQuery {
|
|
|
10
10
|
seoName: z.ZodNullable<z.ZodString>;
|
|
11
11
|
image: z.ZodString;
|
|
12
12
|
prompt: z.ZodString;
|
|
13
|
-
|
|
13
|
+
categoryId: z.ZodNullable<z.ZodString>;
|
|
14
14
|
order: z.ZodNumber;
|
|
15
15
|
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").AssistantMark>>;
|
|
16
16
|
tags: z.ZodArray<z.ZodString>;
|
|
17
17
|
usageCount: z.ZodNumber;
|
|
18
18
|
status: z.ZodEnum<typeof import("../../schemas").AssistantStatus>;
|
|
19
19
|
visibility: z.ZodEnum<typeof import("../../schemas").AssistantVisibility>;
|
|
20
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
title: z.ZodString;
|
|
22
|
+
link: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>;
|
|
20
24
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
21
25
|
createdAt: z.ZodString;
|
|
22
26
|
updatedAt: z.ZodString;
|
|
@@ -13,13 +13,17 @@ export declare const AdminAssistantListItemSchema: z.ZodObject<{
|
|
|
13
13
|
seoName: z.ZodNullable<z.ZodString>;
|
|
14
14
|
image: z.ZodString;
|
|
15
15
|
prompt: z.ZodString;
|
|
16
|
-
|
|
16
|
+
categoryId: z.ZodNullable<z.ZodString>;
|
|
17
17
|
order: z.ZodNumber;
|
|
18
18
|
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").AssistantMark>>;
|
|
19
19
|
tags: z.ZodArray<z.ZodString>;
|
|
20
20
|
usageCount: z.ZodNumber;
|
|
21
21
|
status: z.ZodEnum<typeof import("../../schemas").AssistantStatus>;
|
|
22
22
|
visibility: z.ZodEnum<typeof AssistantVisibility>;
|
|
23
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
24
|
+
title: z.ZodString;
|
|
25
|
+
link: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>;
|
|
23
27
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
24
28
|
createdAt: z.ZodString;
|
|
25
29
|
updatedAt: z.ZodString;
|
|
@@ -50,13 +54,17 @@ export declare const GetAssistantsResponseSchema: z.ZodObject<{
|
|
|
50
54
|
seoName: z.ZodNullable<z.ZodString>;
|
|
51
55
|
image: z.ZodString;
|
|
52
56
|
prompt: z.ZodString;
|
|
53
|
-
|
|
57
|
+
categoryId: z.ZodNullable<z.ZodString>;
|
|
54
58
|
order: z.ZodNumber;
|
|
55
59
|
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").AssistantMark>>;
|
|
56
60
|
tags: z.ZodArray<z.ZodString>;
|
|
57
61
|
usageCount: z.ZodNumber;
|
|
58
62
|
status: z.ZodEnum<typeof import("../../schemas").AssistantStatus>;
|
|
59
63
|
visibility: z.ZodEnum<typeof AssistantVisibility>;
|
|
64
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
65
|
+
title: z.ZodString;
|
|
66
|
+
link: z.ZodString;
|
|
67
|
+
}, z.core.$strip>>;
|
|
60
68
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
61
69
|
createdAt: z.ZodString;
|
|
62
70
|
updatedAt: z.ZodString;
|
|
@@ -97,13 +105,17 @@ export declare namespace AdminAssistantGetAssistantsQuery {
|
|
|
97
105
|
seoName: z.ZodNullable<z.ZodString>;
|
|
98
106
|
image: z.ZodString;
|
|
99
107
|
prompt: z.ZodString;
|
|
100
|
-
|
|
108
|
+
categoryId: z.ZodNullable<z.ZodString>;
|
|
101
109
|
order: z.ZodNumber;
|
|
102
110
|
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").AssistantMark>>;
|
|
103
111
|
tags: z.ZodArray<z.ZodString>;
|
|
104
112
|
usageCount: z.ZodNumber;
|
|
105
113
|
status: z.ZodEnum<typeof import("../../schemas").AssistantStatus>;
|
|
106
114
|
visibility: z.ZodEnum<typeof AssistantVisibility>;
|
|
115
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
116
|
+
title: z.ZodString;
|
|
117
|
+
link: z.ZodString;
|
|
118
|
+
}, z.core.$strip>>;
|
|
107
119
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
108
120
|
createdAt: z.ZodString;
|
|
109
121
|
updatedAt: z.ZodString;
|
|
@@ -15,9 +15,22 @@ exports.AdminAssistantListItemSchema = schemas_1.AssistantListItemSchema.extend(
|
|
|
15
15
|
owner: exports.AssistantOwnerSchema.nullable(),
|
|
16
16
|
});
|
|
17
17
|
exports.GetAssistantsRequestSchema = zod_1.z.object({
|
|
18
|
-
page: zod_1.z.coerce
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
page: zod_1.z.coerce
|
|
19
|
+
.number({ error: 'GetAssistantsRequest.page.invalid' })
|
|
20
|
+
.int({ message: 'GetAssistantsRequest.page.invalid' })
|
|
21
|
+
.min(1, { message: 'GetAssistantsRequest.page.min' })
|
|
22
|
+
.default(1),
|
|
23
|
+
limit: zod_1.z.coerce
|
|
24
|
+
.number({ error: 'GetAssistantsRequest.limit.invalid' })
|
|
25
|
+
.int({ message: 'GetAssistantsRequest.limit.invalid' })
|
|
26
|
+
.min(1, { message: 'GetAssistantsRequest.limit.min' })
|
|
27
|
+
.max(100, { message: 'GetAssistantsRequest.limit.max' })
|
|
28
|
+
.default(20),
|
|
29
|
+
visibility: zod_1.z
|
|
30
|
+
.nativeEnum(assistant_visibility_enum_1.AssistantVisibility, {
|
|
31
|
+
error: 'GetAssistantsRequest.visibility.invalid',
|
|
32
|
+
})
|
|
33
|
+
.optional(),
|
|
21
34
|
});
|
|
22
35
|
exports.GetAssistantsResponseSchema = zod_1.z.object({
|
|
23
36
|
data: zod_1.z.array(exports.AdminAssistantListItemSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-assistants.query.js","sourceRoot":"","sources":["../../../../../v1/assistants/admin/queries/get-assistants.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAAsE;AACtE,2CAAwD;AACxD,uFAA8E;AAC9E,mDAAgD;AAChD,gEAA4D;AAE/C,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,iCAAuB,CAAC,MAAM,CAAC;IACvE,KAAK,EAAE,4BAAoB,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"get-assistants.query.js","sourceRoot":"","sources":["../../../../../v1/assistants/admin/queries/get-assistants.query.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,+CAAsE;AACtE,2CAAwD;AACxD,uFAA8E;AAC9E,mDAAgD;AAChD,gEAA4D;AAE/C,QAAA,oBAAoB,GAAG,OAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,iCAAuB,CAAC,MAAM,CAAC;IACvE,KAAK,EAAE,4BAAoB,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAC;AAEU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM;SACT,MAAM,CAAC,EAAE,KAAK,EAAE,mCAAmC,EAAE,CAAC;SACtD,GAAG,CAAC,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;SACrD,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,+BAA+B,EAAE,CAAC;SACpD,OAAO,CAAC,CAAC,CAAC;IACf,KAAK,EAAE,OAAC,CAAC,MAAM;SACV,MAAM,CAAC,EAAE,KAAK,EAAE,oCAAoC,EAAE,CAAC;SACvD,GAAG,CAAC,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;SACtD,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;SACrD,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;SACvD,OAAO,CAAC,EAAE,CAAC;IAChB,UAAU,EAAE,OAAC;SACR,UAAU,CAAC,+CAAmB,EAAE;QAC7B,KAAK,EAAE,yCAAyC;KACnD,CAAC;SACD,QAAQ,EAAE;CAClB,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,oCAA4B,CAAC;IAC3C,IAAI,EAAE,6BAAoB;CAC7B,CAAC,CAAC;AAEH,IAAiB,gCAAgC,CAOhD;AAPD,WAAiB,gCAAgC;IAChC,wCAAO,GAAG,kCAA0B,CAAC;IACrC,yCAAQ,GAAG,mCAA2B,CAAC;IACvC,oCAAG,GAAG,mBAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,CAAC;IAC3C,uCAAM,GAAG,wBAAU,CAAC,GAAG,CAAC;AAGzC,CAAC,EAPgB,gCAAgC,gDAAhC,gCAAgC,QAOhD"}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import { ErrorMetadata } from '../../shared';
|
|
2
2
|
export declare enum AssistantErrorCode {
|
|
3
3
|
ASSISTANT_NOT_FOUND = "ASSISTANT_NOT_FOUND",
|
|
4
|
-
ASSISTANT_PARENT_NOT_FOUND = "ASSISTANT_PARENT_NOT_FOUND",
|
|
5
|
-
ASSISTANT_SELF_PARENT = "ASSISTANT_SELF_PARENT",
|
|
6
4
|
CANNOT_DELETE_ASSISTANT_WITH_ACTIVE_PAGE = "CANNOT_DELETE_ASSISTANT_WITH_ACTIVE_PAGE",
|
|
7
|
-
CANNOT_DELETE_ASSISTANT_WITH_ACTIVE_CHILDREN = "CANNOT_DELETE_ASSISTANT_WITH_ACTIVE_CHILDREN",
|
|
8
5
|
ASSISTANT_ACCESS_DENIED = "ASSISTANT_ACCESS_DENIED",
|
|
9
6
|
ASSISTANT_NOT_OWNER = "ASSISTANT_NOT_OWNER",
|
|
10
7
|
ASSISTANT_ALREADY_FAVORITED = "ASSISTANT_ALREADY_FAVORITED"
|
|
@@ -4,10 +4,7 @@ exports.ASSISTANT_ERRORS = exports.AssistantErrorCode = void 0;
|
|
|
4
4
|
var AssistantErrorCode;
|
|
5
5
|
(function (AssistantErrorCode) {
|
|
6
6
|
AssistantErrorCode["ASSISTANT_NOT_FOUND"] = "ASSISTANT_NOT_FOUND";
|
|
7
|
-
AssistantErrorCode["ASSISTANT_PARENT_NOT_FOUND"] = "ASSISTANT_PARENT_NOT_FOUND";
|
|
8
|
-
AssistantErrorCode["ASSISTANT_SELF_PARENT"] = "ASSISTANT_SELF_PARENT";
|
|
9
7
|
AssistantErrorCode["CANNOT_DELETE_ASSISTANT_WITH_ACTIVE_PAGE"] = "CANNOT_DELETE_ASSISTANT_WITH_ACTIVE_PAGE";
|
|
10
|
-
AssistantErrorCode["CANNOT_DELETE_ASSISTANT_WITH_ACTIVE_CHILDREN"] = "CANNOT_DELETE_ASSISTANT_WITH_ACTIVE_CHILDREN";
|
|
11
8
|
AssistantErrorCode["ASSISTANT_ACCESS_DENIED"] = "ASSISTANT_ACCESS_DENIED";
|
|
12
9
|
AssistantErrorCode["ASSISTANT_NOT_OWNER"] = "ASSISTANT_NOT_OWNER";
|
|
13
10
|
AssistantErrorCode["ASSISTANT_ALREADY_FAVORITED"] = "ASSISTANT_ALREADY_FAVORITED";
|
|
@@ -17,22 +14,10 @@ exports.ASSISTANT_ERRORS = {
|
|
|
17
14
|
code: AssistantErrorCode.ASSISTANT_NOT_FOUND,
|
|
18
15
|
statusCode: 404,
|
|
19
16
|
},
|
|
20
|
-
[AssistantErrorCode.ASSISTANT_PARENT_NOT_FOUND]: {
|
|
21
|
-
code: AssistantErrorCode.ASSISTANT_PARENT_NOT_FOUND,
|
|
22
|
-
statusCode: 404,
|
|
23
|
-
},
|
|
24
|
-
[AssistantErrorCode.ASSISTANT_SELF_PARENT]: {
|
|
25
|
-
code: AssistantErrorCode.ASSISTANT_SELF_PARENT,
|
|
26
|
-
statusCode: 400,
|
|
27
|
-
},
|
|
28
17
|
[AssistantErrorCode.CANNOT_DELETE_ASSISTANT_WITH_ACTIVE_PAGE]: {
|
|
29
18
|
code: AssistantErrorCode.CANNOT_DELETE_ASSISTANT_WITH_ACTIVE_PAGE,
|
|
30
19
|
statusCode: 409,
|
|
31
20
|
},
|
|
32
|
-
[AssistantErrorCode.CANNOT_DELETE_ASSISTANT_WITH_ACTIVE_CHILDREN]: {
|
|
33
|
-
code: AssistantErrorCode.CANNOT_DELETE_ASSISTANT_WITH_ACTIVE_CHILDREN,
|
|
34
|
-
statusCode: 409,
|
|
35
|
-
},
|
|
36
21
|
[AssistantErrorCode.ASSISTANT_ACCESS_DENIED]: {
|
|
37
22
|
code: AssistantErrorCode.ASSISTANT_ACCESS_DENIED,
|
|
38
23
|
statusCode: 403,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistants.errors.js","sourceRoot":"","sources":["../../../v1/assistants/assistants.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,
|
|
1
|
+
{"version":3,"file":"assistants.errors.js","sourceRoot":"","sources":["../../../v1/assistants/assistants.errors.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC1B,iEAA2C,CAAA;IAC3C,2GAAqF,CAAA;IACrF,yEAAmD,CAAA;IACnD,iEAA2C,CAAA;IAC3C,iFAA2D,CAAA;AAC/D,CAAC,EANW,kBAAkB,kCAAlB,kBAAkB,QAM7B;AAEY,QAAA,gBAAgB,GAA8C;IACvE,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,EAAE;QACtC,IAAI,EAAE,kBAAkB,CAAC,mBAAmB;QAC5C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,kBAAkB,CAAC,wCAAwC,CAAC,EAAE;QAC3D,IAAI,EAAE,kBAAkB,CAAC,wCAAwC;QACjE,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,kBAAkB,CAAC,uBAAuB,CAAC,EAAE;QAC1C,IAAI,EAAE,kBAAkB,CAAC,uBAAuB;QAChD,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,EAAE;QACtC,IAAI,EAAE,kBAAkB,CAAC,mBAAmB;QAC5C,UAAU,EAAE,GAAG;KAClB;IACD,CAAC,kBAAkB,CAAC,2BAA2B,CAAC,EAAE;QAC9C,IAAI,EAAE,kBAAkB,CAAC,2BAA2B;QACpD,UAAU,EAAE,GAAG;KAClB;CACK,CAAC"}
|
|
@@ -4,13 +4,34 @@ export declare namespace CatalogLongRegQuery {
|
|
|
4
4
|
const Request: z.ZodObject<{
|
|
5
5
|
query: z.ZodOptional<z.ZodString>;
|
|
6
6
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
8
|
sort: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof import("../..").CatalogSort>>>;
|
|
8
9
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
9
10
|
cursor: z.ZodOptional<z.ZodString>;
|
|
10
11
|
filter: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof import("../..").CatalogFilter>>>;
|
|
11
12
|
}, z.core.$strip>;
|
|
12
13
|
const Response: z.ZodObject<{
|
|
13
|
-
items: z.ZodArray<z.ZodObject<{
|
|
14
|
+
items: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
15
|
+
uuid: z.ZodString;
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
icon: z.ZodString;
|
|
18
|
+
children: z.ZodArray<z.ZodObject<{
|
|
19
|
+
uuid: z.ZodString;
|
|
20
|
+
title: z.ZodString;
|
|
21
|
+
description: z.ZodString;
|
|
22
|
+
placeholder: z.ZodString;
|
|
23
|
+
image: z.ZodString;
|
|
24
|
+
tags: z.ZodArray<z.ZodString>;
|
|
25
|
+
usageCount: z.ZodNumber;
|
|
26
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
title: z.ZodString;
|
|
28
|
+
link: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>;
|
|
30
|
+
createdAt: z.ZodString;
|
|
31
|
+
isFavorite: z.ZodBoolean;
|
|
32
|
+
isEditable: z.ZodBoolean;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
35
|
uuid: z.ZodString;
|
|
15
36
|
title: z.ZodString;
|
|
16
37
|
description: z.ZodString;
|
|
@@ -18,10 +39,14 @@ export declare namespace CatalogLongRegQuery {
|
|
|
18
39
|
image: z.ZodString;
|
|
19
40
|
tags: z.ZodArray<z.ZodString>;
|
|
20
41
|
usageCount: z.ZodNumber;
|
|
42
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
title: z.ZodString;
|
|
44
|
+
link: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>;
|
|
21
46
|
createdAt: z.ZodString;
|
|
22
47
|
isFavorite: z.ZodBoolean;
|
|
23
48
|
isEditable: z.ZodBoolean;
|
|
24
|
-
}, z.core.$strip>>;
|
|
49
|
+
}, z.core.$strip>]>>;
|
|
25
50
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
26
51
|
hasMore: z.ZodBoolean;
|
|
27
52
|
}, z.core.$strip>;
|
|
@@ -4,12 +4,31 @@ export declare namespace CatalogLongUnregQuery {
|
|
|
4
4
|
const Request: z.ZodObject<{
|
|
5
5
|
query: z.ZodOptional<z.ZodString>;
|
|
6
6
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
8
|
sort: z.ZodDefault<z.ZodOptional<z.ZodEnum<typeof import("../..").CatalogSort>>>;
|
|
8
9
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
9
10
|
cursor: z.ZodOptional<z.ZodString>;
|
|
10
11
|
}, z.core.$strip>;
|
|
11
12
|
const Response: z.ZodObject<{
|
|
12
|
-
items: z.ZodArray<z.ZodObject<{
|
|
13
|
+
items: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
14
|
+
uuid: z.ZodString;
|
|
15
|
+
title: z.ZodString;
|
|
16
|
+
icon: z.ZodString;
|
|
17
|
+
children: z.ZodArray<z.ZodObject<{
|
|
18
|
+
uuid: z.ZodString;
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
description: z.ZodString;
|
|
21
|
+
placeholder: z.ZodString;
|
|
22
|
+
image: z.ZodString;
|
|
23
|
+
tags: z.ZodArray<z.ZodString>;
|
|
24
|
+
usageCount: z.ZodNumber;
|
|
25
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
link: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
createdAt: z.ZodString;
|
|
30
|
+
}, z.core.$strip>>;
|
|
31
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
13
32
|
uuid: z.ZodString;
|
|
14
33
|
title: z.ZodString;
|
|
15
34
|
description: z.ZodString;
|
|
@@ -17,8 +36,12 @@ export declare namespace CatalogLongUnregQuery {
|
|
|
17
36
|
image: z.ZodString;
|
|
18
37
|
tags: z.ZodArray<z.ZodString>;
|
|
19
38
|
usageCount: z.ZodNumber;
|
|
39
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
40
|
+
title: z.ZodString;
|
|
41
|
+
link: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>;
|
|
20
43
|
createdAt: z.ZodString;
|
|
21
|
-
}, z.core.$strip>>;
|
|
44
|
+
}, z.core.$strip>]>>;
|
|
22
45
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
23
46
|
hasMore: z.ZodBoolean;
|
|
24
47
|
}, z.core.$strip>;
|
|
@@ -12,6 +12,10 @@ export declare namespace CatalogShortRegQuery {
|
|
|
12
12
|
tags: z.ZodArray<z.ZodString>;
|
|
13
13
|
visibility: z.ZodEnum<typeof import("../..").AssistantVisibility>;
|
|
14
14
|
usageCount: z.ZodNumber;
|
|
15
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
16
|
+
title: z.ZodString;
|
|
17
|
+
link: z.ZodString;
|
|
18
|
+
}, z.core.$strip>>;
|
|
15
19
|
}, z.core.$strip>>;
|
|
16
20
|
favorites: z.ZodArray<z.ZodObject<{
|
|
17
21
|
uuid: z.ZodString;
|
|
@@ -22,14 +26,15 @@ export declare namespace CatalogShortRegQuery {
|
|
|
22
26
|
tags: z.ZodArray<z.ZodString>;
|
|
23
27
|
visibility: z.ZodEnum<typeof import("../..").AssistantVisibility>;
|
|
24
28
|
usageCount: z.ZodNumber;
|
|
29
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
30
|
+
title: z.ZodString;
|
|
31
|
+
link: z.ZodString;
|
|
32
|
+
}, z.core.$strip>>;
|
|
25
33
|
}, z.core.$strip>>;
|
|
26
|
-
all: z.ZodArray<z.ZodObject<{
|
|
34
|
+
all: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
27
35
|
uuid: z.ZodString;
|
|
28
36
|
title: z.ZodString;
|
|
29
|
-
|
|
30
|
-
placeholder: z.ZodString;
|
|
31
|
-
image: z.ZodString;
|
|
32
|
-
tags: z.ZodArray<z.ZodString>;
|
|
37
|
+
icon: z.ZodString;
|
|
33
38
|
children: z.ZodArray<z.ZodObject<{
|
|
34
39
|
uuid: z.ZodString;
|
|
35
40
|
title: z.ZodString;
|
|
@@ -38,6 +43,10 @@ export declare namespace CatalogShortRegQuery {
|
|
|
38
43
|
image: z.ZodString;
|
|
39
44
|
tags: z.ZodArray<z.ZodString>;
|
|
40
45
|
usageCount: z.ZodNumber;
|
|
46
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
47
|
+
title: z.ZodString;
|
|
48
|
+
link: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>;
|
|
41
50
|
page: z.ZodObject<{
|
|
42
51
|
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
43
52
|
uuid: z.ZodString;
|
|
@@ -45,7 +54,25 @@ export declare namespace CatalogShortRegQuery {
|
|
|
45
54
|
title: z.ZodString;
|
|
46
55
|
}, z.core.$strip>;
|
|
47
56
|
}, z.core.$strip>>;
|
|
48
|
-
}, z.core.$strip
|
|
57
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
58
|
+
uuid: z.ZodString;
|
|
59
|
+
title: z.ZodString;
|
|
60
|
+
description: z.ZodString;
|
|
61
|
+
placeholder: z.ZodString;
|
|
62
|
+
image: z.ZodString;
|
|
63
|
+
tags: z.ZodArray<z.ZodString>;
|
|
64
|
+
usageCount: z.ZodNumber;
|
|
65
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
title: z.ZodString;
|
|
67
|
+
link: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
page: z.ZodObject<{
|
|
70
|
+
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
71
|
+
uuid: z.ZodString;
|
|
72
|
+
alias: z.ZodString;
|
|
73
|
+
title: z.ZodString;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
}, z.core.$strip>]>>;
|
|
49
76
|
}, z.core.$strip>;
|
|
50
77
|
const URL: "/api/v1/assistants/catalog/short";
|
|
51
78
|
const METHOD = HttpMethod.GET;
|
|
@@ -3,13 +3,10 @@ import { HttpMethod } from '../../../../shared/http-method';
|
|
|
3
3
|
export declare namespace CatalogShortUnregQuery {
|
|
4
4
|
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
const Response: z.ZodObject<{
|
|
6
|
-
all: z.ZodArray<z.ZodObject<{
|
|
6
|
+
all: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
7
7
|
uuid: z.ZodString;
|
|
8
8
|
title: z.ZodString;
|
|
9
|
-
|
|
10
|
-
placeholder: z.ZodString;
|
|
11
|
-
image: z.ZodString;
|
|
12
|
-
tags: z.ZodArray<z.ZodString>;
|
|
9
|
+
icon: z.ZodString;
|
|
13
10
|
children: z.ZodArray<z.ZodObject<{
|
|
14
11
|
uuid: z.ZodString;
|
|
15
12
|
title: z.ZodString;
|
|
@@ -18,6 +15,10 @@ export declare namespace CatalogShortUnregQuery {
|
|
|
18
15
|
image: z.ZodString;
|
|
19
16
|
tags: z.ZodArray<z.ZodString>;
|
|
20
17
|
usageCount: z.ZodNumber;
|
|
18
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
link: z.ZodString;
|
|
21
|
+
}, z.core.$strip>>;
|
|
21
22
|
page: z.ZodObject<{
|
|
22
23
|
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
23
24
|
uuid: z.ZodString;
|
|
@@ -25,7 +26,25 @@ export declare namespace CatalogShortUnregQuery {
|
|
|
25
26
|
title: z.ZodString;
|
|
26
27
|
}, z.core.$strip>;
|
|
27
28
|
}, z.core.$strip>>;
|
|
28
|
-
}, z.core.$strip
|
|
29
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
30
|
+
uuid: z.ZodString;
|
|
31
|
+
title: z.ZodString;
|
|
32
|
+
description: z.ZodString;
|
|
33
|
+
placeholder: z.ZodString;
|
|
34
|
+
image: z.ZodString;
|
|
35
|
+
tags: z.ZodArray<z.ZodString>;
|
|
36
|
+
usageCount: z.ZodNumber;
|
|
37
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
title: z.ZodString;
|
|
39
|
+
link: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>;
|
|
41
|
+
page: z.ZodObject<{
|
|
42
|
+
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
43
|
+
uuid: z.ZodString;
|
|
44
|
+
alias: z.ZodString;
|
|
45
|
+
title: z.ZodString;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
}, z.core.$strip>]>>;
|
|
29
48
|
}, z.core.$strip>;
|
|
30
49
|
const URL: "/api/v1/unreg/assistants/catalog/short";
|
|
31
50
|
const METHOD = HttpMethod.GET;
|
|
@@ -2,14 +2,10 @@ import { z } from 'zod';
|
|
|
2
2
|
import { HttpMethod } from '../../../../shared/http-method';
|
|
3
3
|
export declare namespace AssistantGetTreeQuery {
|
|
4
4
|
const Request: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
-
const Response: z.ZodArray<z.ZodObject<{
|
|
5
|
+
const Response: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
6
6
|
uuid: z.ZodString;
|
|
7
7
|
title: z.ZodString;
|
|
8
|
-
|
|
9
|
-
placeholder: z.ZodString;
|
|
10
|
-
seoName: z.ZodNullable<z.ZodString>;
|
|
11
|
-
image: z.ZodString;
|
|
12
|
-
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").AssistantMark>>;
|
|
8
|
+
icon: z.ZodString;
|
|
13
9
|
children: z.ZodArray<z.ZodObject<{
|
|
14
10
|
uuid: z.ZodString;
|
|
15
11
|
title: z.ZodString;
|
|
@@ -25,7 +21,21 @@ export declare namespace AssistantGetTreeQuery {
|
|
|
25
21
|
title: z.ZodString;
|
|
26
22
|
}, z.core.$strip>;
|
|
27
23
|
}, z.core.$strip>>;
|
|
28
|
-
}, z.core.$strip
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
uuid: z.ZodString;
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
description: z.ZodString;
|
|
28
|
+
placeholder: z.ZodString;
|
|
29
|
+
seoName: z.ZodNullable<z.ZodString>;
|
|
30
|
+
image: z.ZodString;
|
|
31
|
+
marks: z.ZodArray<z.ZodEnum<typeof import("../../schemas").AssistantMark>>;
|
|
32
|
+
page: z.ZodObject<{
|
|
33
|
+
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
34
|
+
uuid: z.ZodString;
|
|
35
|
+
alias: z.ZodString;
|
|
36
|
+
title: z.ZodString;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
}, z.core.$strip>]>>;
|
|
29
39
|
const URL: "/api/v1/assistants/";
|
|
30
40
|
const METHOD = HttpMethod.GET;
|
|
31
41
|
type RequestType = z.infer<typeof Request>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssistantAuthorSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.AssistantAuthorSchema = zod_1.z.object({
|
|
6
|
+
title: zod_1.z.string().min(1).max(100),
|
|
7
|
+
link: zod_1.z.string().url().max(500),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=assistant-author.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assistant-author.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/assistant-author.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACjC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC;CAClC,CAAC,CAAC"}
|
|
@@ -10,13 +10,17 @@ export declare const AssistantResponseSchema: z.ZodObject<{
|
|
|
10
10
|
seoName: z.ZodNullable<z.ZodString>;
|
|
11
11
|
image: z.ZodString;
|
|
12
12
|
prompt: z.ZodString;
|
|
13
|
-
|
|
13
|
+
categoryId: z.ZodNullable<z.ZodString>;
|
|
14
14
|
order: z.ZodNumber;
|
|
15
15
|
marks: z.ZodArray<z.ZodEnum<typeof AssistantMark>>;
|
|
16
16
|
tags: z.ZodArray<z.ZodString>;
|
|
17
17
|
usageCount: z.ZodNumber;
|
|
18
18
|
status: z.ZodEnum<typeof AssistantStatus>;
|
|
19
19
|
visibility: z.ZodEnum<typeof AssistantVisibility>;
|
|
20
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
21
|
+
title: z.ZodString;
|
|
22
|
+
link: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>;
|
|
20
24
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
21
25
|
createdAt: z.ZodString;
|
|
22
26
|
updatedAt: z.ZodString;
|
|
@@ -37,13 +41,17 @@ export declare const AssistantListItemSchema: z.ZodObject<{
|
|
|
37
41
|
seoName: z.ZodNullable<z.ZodString>;
|
|
38
42
|
image: z.ZodString;
|
|
39
43
|
prompt: z.ZodString;
|
|
40
|
-
|
|
44
|
+
categoryId: z.ZodNullable<z.ZodString>;
|
|
41
45
|
order: z.ZodNumber;
|
|
42
46
|
marks: z.ZodArray<z.ZodEnum<typeof AssistantMark>>;
|
|
43
47
|
tags: z.ZodArray<z.ZodString>;
|
|
44
48
|
usageCount: z.ZodNumber;
|
|
45
49
|
status: z.ZodEnum<typeof AssistantStatus>;
|
|
46
50
|
visibility: z.ZodEnum<typeof AssistantVisibility>;
|
|
51
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
52
|
+
title: z.ZodString;
|
|
53
|
+
link: z.ZodString;
|
|
54
|
+
}, z.core.$strip>>;
|
|
47
55
|
deletedAt: z.ZodNullable<z.ZodString>;
|
|
48
56
|
createdAt: z.ZodString;
|
|
49
57
|
updatedAt: z.ZodString;
|