@veruna/api-contracts 1.1.12 → 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/locales/validation.d.ts +56 -0
- package/build/locales/validation.js +56 -0
- package/build/locales/validation.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/v1/assistants/admin/commands/create-assistant.command.d.ts +8 -0
- package/build/v1/assistants/admin/commands/update-assistant.command.d.ts +8 -0
- package/build/v1/assistants/admin/queries/get-assistant.query.d.ts +4 -0
- package/build/v1/assistants/admin/queries/get-assistants.query.d.ts +12 -0
- package/build/v1/assistants/catalog/queries/catalog-long-reg.query.d.ts +8 -0
- package/build/v1/assistants/catalog/queries/catalog-long-unreg.query.d.ts +8 -0
- package/build/v1/assistants/catalog/queries/catalog-short-reg.query.d.ts +16 -0
- package/build/v1/assistants/catalog/queries/catalog-short-unreg.query.d.ts +8 -0
- 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 +8 -0
- package/build/v1/assistants/schemas/assistant-response.schema.js +2 -0
- package/build/v1/assistants/schemas/assistant-response.schema.js.map +1 -1
- package/build/v1/assistants/schemas/catalog-long-response.schema.d.ts +48 -0
- package/build/v1/assistants/schemas/catalog-long-response.schema.js +2 -0
- package/build/v1/assistants/schemas/catalog-long-response.schema.js.map +1 -1
- package/build/v1/assistants/schemas/catalog-short-response.schema.d.ts +44 -0
- package/build/v1/assistants/schemas/catalog-short-response.schema.js +3 -0
- package/build/v1/assistants/schemas/catalog-short-response.schema.js.map +1 -1
- package/build/v1/assistants/schemas/create-assistant-request.schema.d.ts +4 -0
- package/build/v1/assistants/schemas/create-assistant-request.schema.js +2 -0
- 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 +1 -0
- package/build/v1/assistants/schemas/index.js +3 -1
- package/build/v1/assistants/schemas/index.js.map +1 -1
- package/build/v1/assistants/schemas/update-assistant-request.schema.d.ts +4 -0
- package/build/v1/assistants/schemas/update-assistant-request.schema.js +2 -0
- 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/package.json +1 -1
|
@@ -13,6 +13,10 @@ export declare namespace AdminAssistantCreateAssistantCommand {
|
|
|
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
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
|
+
title: z.ZodString;
|
|
18
|
+
link: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
16
20
|
}, z.core.$strict>;
|
|
17
21
|
const Response: z.ZodObject<{
|
|
18
22
|
uuid: z.ZodString;
|
|
@@ -29,6 +33,10 @@ export declare namespace AdminAssistantCreateAssistantCommand {
|
|
|
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;
|
|
@@ -14,6 +14,10 @@ export declare namespace AdminAssistantUpdateAssistantCommand {
|
|
|
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
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
18
|
+
title: z.ZodString;
|
|
19
|
+
link: z.ZodString;
|
|
20
|
+
}, z.core.$strip>>>;
|
|
17
21
|
}, z.core.$strict>;
|
|
18
22
|
const Response: z.ZodObject<{
|
|
19
23
|
uuid: z.ZodString;
|
|
@@ -30,6 +34,10 @@ export declare namespace AdminAssistantUpdateAssistantCommand {
|
|
|
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;
|
|
@@ -17,6 +17,10 @@ export declare namespace AdminAssistantGetAssistantQuery {
|
|
|
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;
|
|
@@ -20,6 +20,10 @@ export declare const AdminAssistantListItemSchema: z.ZodObject<{
|
|
|
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;
|
|
@@ -57,6 +61,10 @@ export declare const GetAssistantsResponseSchema: z.ZodObject<{
|
|
|
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;
|
|
@@ -104,6 +112,10 @@ export declare namespace AdminAssistantGetAssistantsQuery {
|
|
|
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;
|
|
@@ -23,6 +23,10 @@ export declare namespace CatalogLongRegQuery {
|
|
|
23
23
|
image: z.ZodString;
|
|
24
24
|
tags: z.ZodArray<z.ZodString>;
|
|
25
25
|
usageCount: z.ZodNumber;
|
|
26
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
27
|
+
title: z.ZodString;
|
|
28
|
+
link: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>;
|
|
26
30
|
createdAt: z.ZodString;
|
|
27
31
|
isFavorite: z.ZodBoolean;
|
|
28
32
|
isEditable: z.ZodBoolean;
|
|
@@ -35,6 +39,10 @@ export declare namespace CatalogLongRegQuery {
|
|
|
35
39
|
image: z.ZodString;
|
|
36
40
|
tags: z.ZodArray<z.ZodString>;
|
|
37
41
|
usageCount: z.ZodNumber;
|
|
42
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
43
|
+
title: z.ZodString;
|
|
44
|
+
link: z.ZodString;
|
|
45
|
+
}, z.core.$strip>>;
|
|
38
46
|
createdAt: z.ZodString;
|
|
39
47
|
isFavorite: z.ZodBoolean;
|
|
40
48
|
isEditable: z.ZodBoolean;
|
|
@@ -22,6 +22,10 @@ export declare namespace CatalogLongUnregQuery {
|
|
|
22
22
|
image: z.ZodString;
|
|
23
23
|
tags: z.ZodArray<z.ZodString>;
|
|
24
24
|
usageCount: z.ZodNumber;
|
|
25
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
link: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>;
|
|
25
29
|
createdAt: z.ZodString;
|
|
26
30
|
}, z.core.$strip>>;
|
|
27
31
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -32,6 +36,10 @@ export declare namespace CatalogLongUnregQuery {
|
|
|
32
36
|
image: z.ZodString;
|
|
33
37
|
tags: z.ZodArray<z.ZodString>;
|
|
34
38
|
usageCount: z.ZodNumber;
|
|
39
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
40
|
+
title: z.ZodString;
|
|
41
|
+
link: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>;
|
|
35
43
|
createdAt: z.ZodString;
|
|
36
44
|
}, z.core.$strip>]>>;
|
|
37
45
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
@@ -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,6 +26,10 @@ 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
34
|
all: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
27
35
|
uuid: z.ZodString;
|
|
@@ -35,6 +43,10 @@ export declare namespace CatalogShortRegQuery {
|
|
|
35
43
|
image: z.ZodString;
|
|
36
44
|
tags: z.ZodArray<z.ZodString>;
|
|
37
45
|
usageCount: z.ZodNumber;
|
|
46
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
47
|
+
title: z.ZodString;
|
|
48
|
+
link: z.ZodString;
|
|
49
|
+
}, z.core.$strip>>;
|
|
38
50
|
page: z.ZodObject<{
|
|
39
51
|
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
40
52
|
uuid: z.ZodString;
|
|
@@ -50,6 +62,10 @@ export declare namespace CatalogShortRegQuery {
|
|
|
50
62
|
image: z.ZodString;
|
|
51
63
|
tags: z.ZodArray<z.ZodString>;
|
|
52
64
|
usageCount: z.ZodNumber;
|
|
65
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
66
|
+
title: z.ZodString;
|
|
67
|
+
link: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>;
|
|
53
69
|
page: z.ZodObject<{
|
|
54
70
|
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
55
71
|
uuid: z.ZodString;
|
|
@@ -15,6 +15,10 @@ export declare namespace CatalogShortUnregQuery {
|
|
|
15
15
|
image: z.ZodString;
|
|
16
16
|
tags: z.ZodArray<z.ZodString>;
|
|
17
17
|
usageCount: z.ZodNumber;
|
|
18
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
link: z.ZodString;
|
|
21
|
+
}, z.core.$strip>>;
|
|
18
22
|
page: z.ZodObject<{
|
|
19
23
|
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
20
24
|
uuid: z.ZodString;
|
|
@@ -30,6 +34,10 @@ export declare namespace CatalogShortUnregQuery {
|
|
|
30
34
|
image: z.ZodString;
|
|
31
35
|
tags: z.ZodArray<z.ZodString>;
|
|
32
36
|
usageCount: z.ZodNumber;
|
|
37
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
38
|
+
title: z.ZodString;
|
|
39
|
+
link: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>;
|
|
33
41
|
page: z.ZodObject<{
|
|
34
42
|
type: z.ZodEnum<typeof import("../../..").PageType>;
|
|
35
43
|
uuid: z.ZodString;
|
|
@@ -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"}
|
|
@@ -17,6 +17,10 @@ export declare const AssistantResponseSchema: z.ZodObject<{
|
|
|
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;
|
|
@@ -44,6 +48,10 @@ export declare const AssistantListItemSchema: z.ZodObject<{
|
|
|
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;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AssistantListItemSchema = exports.AssistantResponseSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const shared_1 = require("../../../shared");
|
|
6
|
+
const assistant_author_schema_1 = require("./assistant-author.schema");
|
|
6
7
|
const assistant_linked_page_schema_1 = require("./assistant-linked-page.schema");
|
|
7
8
|
const assistant_mark_enum_1 = require("./assistant-mark.enum");
|
|
8
9
|
const assistant_status_enum_1 = require("./assistant-status.enum");
|
|
@@ -22,6 +23,7 @@ exports.AssistantResponseSchema = zod_1.z.object({
|
|
|
22
23
|
usageCount: zod_1.z.number().int(),
|
|
23
24
|
status: zod_1.z.nativeEnum(assistant_status_enum_1.AssistantStatus),
|
|
24
25
|
visibility: zod_1.z.nativeEnum(assistant_visibility_enum_1.AssistantVisibility),
|
|
26
|
+
author: assistant_author_schema_1.AssistantAuthorSchema.nullable(),
|
|
25
27
|
deletedAt: zod_1.z.string().regex(shared_1.DATETIME_REGEX).nullable(),
|
|
26
28
|
createdAt: zod_1.z.string().regex(shared_1.DATETIME_REGEX),
|
|
27
29
|
updatedAt: zod_1.z.string().regex(shared_1.DATETIME_REGEX),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assistant-response.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/assistant-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6D;AAC7D,iFAA2E;AAC3E,+DAAsD;AACtD,mEAA0D;AAC1D,2EAAkE;AAErD,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC,CAAC,QAAQ,EAAE;IACnD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,UAAU,CAAC,mCAAa,CAAC,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC5B,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,uCAAe,CAAC;IACrC,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,+CAAmB,CAAC;IAC7C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAc,CAAC,CAAC,QAAQ,EAAE;IACtD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAc,CAAC;IAC3C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAc,CAAC;IAC3C,IAAI,EAAE,wDAAyB,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,+BAAuB,CAAC"}
|
|
1
|
+
{"version":3,"file":"assistant-response.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/assistant-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6D;AAC7D,uEAAkE;AAClE,iFAA2E;AAC3E,+DAAsD;AACtD,mEAA0D;AAC1D,2EAAkE;AAErD,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC5C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,OAAO,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC,CAAC,QAAQ,EAAE;IACnD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,UAAU,CAAC,mCAAa,CAAC,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC5B,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,uCAAe,CAAC;IACrC,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,+CAAmB,CAAC;IAC7C,MAAM,EAAE,+CAAqB,CAAC,QAAQ,EAAE;IACxC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAc,CAAC,CAAC,QAAQ,EAAE;IACtD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAc,CAAC;IAC3C,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,uBAAc,CAAC;IAC3C,IAAI,EAAE,wDAAyB,CAAC,QAAQ,EAAE;CAC7C,CAAC,CAAC;AAEU,QAAA,uBAAuB,GAAG,+BAAuB,CAAC"}
|
|
@@ -7,6 +7,10 @@ export declare const CatalogLongUnregItemSchema: z.ZodObject<{
|
|
|
7
7
|
image: z.ZodString;
|
|
8
8
|
tags: z.ZodArray<z.ZodString>;
|
|
9
9
|
usageCount: z.ZodNumber;
|
|
10
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
11
|
+
title: z.ZodString;
|
|
12
|
+
link: z.ZodString;
|
|
13
|
+
}, z.core.$strip>>;
|
|
10
14
|
createdAt: z.ZodString;
|
|
11
15
|
}, z.core.$strip>;
|
|
12
16
|
export declare const CatalogLongRegItemSchema: z.ZodObject<{
|
|
@@ -17,6 +21,10 @@ export declare const CatalogLongRegItemSchema: z.ZodObject<{
|
|
|
17
21
|
image: z.ZodString;
|
|
18
22
|
tags: z.ZodArray<z.ZodString>;
|
|
19
23
|
usageCount: z.ZodNumber;
|
|
24
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
25
|
+
title: z.ZodString;
|
|
26
|
+
link: z.ZodString;
|
|
27
|
+
}, z.core.$strip>>;
|
|
20
28
|
createdAt: z.ZodString;
|
|
21
29
|
isFavorite: z.ZodBoolean;
|
|
22
30
|
isEditable: z.ZodBoolean;
|
|
@@ -33,6 +41,10 @@ export declare const CatalogLongUnregGroupSchema: z.ZodObject<{
|
|
|
33
41
|
image: z.ZodString;
|
|
34
42
|
tags: z.ZodArray<z.ZodString>;
|
|
35
43
|
usageCount: z.ZodNumber;
|
|
44
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
45
|
+
title: z.ZodString;
|
|
46
|
+
link: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>;
|
|
36
48
|
createdAt: z.ZodString;
|
|
37
49
|
}, z.core.$strip>>;
|
|
38
50
|
}, z.core.$strip>;
|
|
@@ -48,6 +60,10 @@ export declare const CatalogLongRegGroupSchema: z.ZodObject<{
|
|
|
48
60
|
image: z.ZodString;
|
|
49
61
|
tags: z.ZodArray<z.ZodString>;
|
|
50
62
|
usageCount: z.ZodNumber;
|
|
63
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
64
|
+
title: z.ZodString;
|
|
65
|
+
link: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>;
|
|
51
67
|
createdAt: z.ZodString;
|
|
52
68
|
isFavorite: z.ZodBoolean;
|
|
53
69
|
isEditable: z.ZodBoolean;
|
|
@@ -65,6 +81,10 @@ export declare const CatalogLongUnregResponseItemSchema: z.ZodUnion<readonly [z.
|
|
|
65
81
|
image: z.ZodString;
|
|
66
82
|
tags: z.ZodArray<z.ZodString>;
|
|
67
83
|
usageCount: z.ZodNumber;
|
|
84
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
85
|
+
title: z.ZodString;
|
|
86
|
+
link: z.ZodString;
|
|
87
|
+
}, z.core.$strip>>;
|
|
68
88
|
createdAt: z.ZodString;
|
|
69
89
|
}, z.core.$strip>>;
|
|
70
90
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -75,6 +95,10 @@ export declare const CatalogLongUnregResponseItemSchema: z.ZodUnion<readonly [z.
|
|
|
75
95
|
image: z.ZodString;
|
|
76
96
|
tags: z.ZodArray<z.ZodString>;
|
|
77
97
|
usageCount: z.ZodNumber;
|
|
98
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
99
|
+
title: z.ZodString;
|
|
100
|
+
link: z.ZodString;
|
|
101
|
+
}, z.core.$strip>>;
|
|
78
102
|
createdAt: z.ZodString;
|
|
79
103
|
}, z.core.$strip>]>;
|
|
80
104
|
export declare const CatalogLongRegResponseItemSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
@@ -89,6 +113,10 @@ export declare const CatalogLongRegResponseItemSchema: z.ZodUnion<readonly [z.Zo
|
|
|
89
113
|
image: z.ZodString;
|
|
90
114
|
tags: z.ZodArray<z.ZodString>;
|
|
91
115
|
usageCount: z.ZodNumber;
|
|
116
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
117
|
+
title: z.ZodString;
|
|
118
|
+
link: z.ZodString;
|
|
119
|
+
}, z.core.$strip>>;
|
|
92
120
|
createdAt: z.ZodString;
|
|
93
121
|
isFavorite: z.ZodBoolean;
|
|
94
122
|
isEditable: z.ZodBoolean;
|
|
@@ -101,6 +129,10 @@ export declare const CatalogLongRegResponseItemSchema: z.ZodUnion<readonly [z.Zo
|
|
|
101
129
|
image: z.ZodString;
|
|
102
130
|
tags: z.ZodArray<z.ZodString>;
|
|
103
131
|
usageCount: z.ZodNumber;
|
|
132
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
133
|
+
title: z.ZodString;
|
|
134
|
+
link: z.ZodString;
|
|
135
|
+
}, z.core.$strip>>;
|
|
104
136
|
createdAt: z.ZodString;
|
|
105
137
|
isFavorite: z.ZodBoolean;
|
|
106
138
|
isEditable: z.ZodBoolean;
|
|
@@ -118,6 +150,10 @@ export declare const CatalogLongUnregResponseSchema: z.ZodObject<{
|
|
|
118
150
|
image: z.ZodString;
|
|
119
151
|
tags: z.ZodArray<z.ZodString>;
|
|
120
152
|
usageCount: z.ZodNumber;
|
|
153
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
154
|
+
title: z.ZodString;
|
|
155
|
+
link: z.ZodString;
|
|
156
|
+
}, z.core.$strip>>;
|
|
121
157
|
createdAt: z.ZodString;
|
|
122
158
|
}, z.core.$strip>>;
|
|
123
159
|
}, z.core.$strip>, z.ZodObject<{
|
|
@@ -128,6 +164,10 @@ export declare const CatalogLongUnregResponseSchema: z.ZodObject<{
|
|
|
128
164
|
image: z.ZodString;
|
|
129
165
|
tags: z.ZodArray<z.ZodString>;
|
|
130
166
|
usageCount: z.ZodNumber;
|
|
167
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
168
|
+
title: z.ZodString;
|
|
169
|
+
link: z.ZodString;
|
|
170
|
+
}, z.core.$strip>>;
|
|
131
171
|
createdAt: z.ZodString;
|
|
132
172
|
}, z.core.$strip>]>>;
|
|
133
173
|
nextCursor: z.ZodNullable<z.ZodString>;
|
|
@@ -146,6 +186,10 @@ export declare const CatalogLongRegResponseSchema: z.ZodObject<{
|
|
|
146
186
|
image: z.ZodString;
|
|
147
187
|
tags: z.ZodArray<z.ZodString>;
|
|
148
188
|
usageCount: z.ZodNumber;
|
|
189
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
190
|
+
title: z.ZodString;
|
|
191
|
+
link: z.ZodString;
|
|
192
|
+
}, z.core.$strip>>;
|
|
149
193
|
createdAt: z.ZodString;
|
|
150
194
|
isFavorite: z.ZodBoolean;
|
|
151
195
|
isEditable: z.ZodBoolean;
|
|
@@ -158,6 +202,10 @@ export declare const CatalogLongRegResponseSchema: z.ZodObject<{
|
|
|
158
202
|
image: z.ZodString;
|
|
159
203
|
tags: z.ZodArray<z.ZodString>;
|
|
160
204
|
usageCount: z.ZodNumber;
|
|
205
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
206
|
+
title: z.ZodString;
|
|
207
|
+
link: z.ZodString;
|
|
208
|
+
}, z.core.$strip>>;
|
|
161
209
|
createdAt: z.ZodString;
|
|
162
210
|
isFavorite: z.ZodBoolean;
|
|
163
211
|
isEditable: z.ZodBoolean;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CatalogLongRegResponseSchema = exports.CatalogLongUnregResponseSchema = exports.CatalogLongRegResponseItemSchema = exports.CatalogLongUnregResponseItemSchema = exports.CatalogLongRegGroupSchema = exports.CatalogLongUnregGroupSchema = exports.CatalogLongRegItemSchema = exports.CatalogLongUnregItemSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const shared_1 = require("../../../shared");
|
|
6
|
+
const assistant_author_schema_1 = require("./assistant-author.schema");
|
|
6
7
|
exports.CatalogLongUnregItemSchema = zod_1.z.object({
|
|
7
8
|
uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
|
|
8
9
|
title: zod_1.z.string(),
|
|
@@ -11,6 +12,7 @@ exports.CatalogLongUnregItemSchema = zod_1.z.object({
|
|
|
11
12
|
image: zod_1.z.string(),
|
|
12
13
|
tags: zod_1.z.array(zod_1.z.string()),
|
|
13
14
|
usageCount: zod_1.z.number().int().min(0),
|
|
15
|
+
author: assistant_author_schema_1.AssistantAuthorSchema.nullable(),
|
|
14
16
|
createdAt: zod_1.z.string().regex(shared_1.DATETIME_REGEX),
|
|
15
17
|
});
|
|
16
18
|
exports.CatalogLongRegItemSchema = exports.CatalogLongUnregItemSchema.extend({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-long-response.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/catalog-long-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6D;
|
|
1
|
+
{"version":3,"file":"catalog-long-response.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/catalog-long-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6D;AAC7D,uEAAkE;AAErD,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,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B,gCAAwB;CAC3B,CAAC,CAAC;AAEU,QAAA,8BAA8B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,0CAAkC,CAAC;IAClD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC;AAEU,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,OAAC,CAAC,KAAK,CAAC,wCAAgC,CAAC;IAChD,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC"}
|
|
@@ -9,6 +9,10 @@ export declare const CatalogShortItemSchema: z.ZodObject<{
|
|
|
9
9
|
tags: z.ZodArray<z.ZodString>;
|
|
10
10
|
visibility: z.ZodEnum<typeof AssistantVisibility>;
|
|
11
11
|
usageCount: z.ZodNumber;
|
|
12
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
13
|
+
title: z.ZodString;
|
|
14
|
+
link: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>;
|
|
12
16
|
}, z.core.$strip>;
|
|
13
17
|
export declare const CatalogShortTreeChildSchema: z.ZodObject<{
|
|
14
18
|
uuid: z.ZodString;
|
|
@@ -18,6 +22,10 @@ export declare const CatalogShortTreeChildSchema: z.ZodObject<{
|
|
|
18
22
|
image: z.ZodString;
|
|
19
23
|
tags: z.ZodArray<z.ZodString>;
|
|
20
24
|
usageCount: z.ZodNumber;
|
|
25
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
26
|
+
title: z.ZodString;
|
|
27
|
+
link: z.ZodString;
|
|
28
|
+
}, z.core.$strip>>;
|
|
21
29
|
page: z.ZodObject<{
|
|
22
30
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
23
31
|
uuid: z.ZodString;
|
|
@@ -37,6 +45,10 @@ export declare const CatalogShortTreeNodeSchema: z.ZodObject<{
|
|
|
37
45
|
image: z.ZodString;
|
|
38
46
|
tags: z.ZodArray<z.ZodString>;
|
|
39
47
|
usageCount: z.ZodNumber;
|
|
48
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
49
|
+
title: z.ZodString;
|
|
50
|
+
link: z.ZodString;
|
|
51
|
+
}, z.core.$strip>>;
|
|
40
52
|
page: z.ZodObject<{
|
|
41
53
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
42
54
|
uuid: z.ZodString;
|
|
@@ -57,6 +69,10 @@ export declare const CatalogShortResponseItemSchema: z.ZodUnion<readonly [z.ZodO
|
|
|
57
69
|
image: z.ZodString;
|
|
58
70
|
tags: z.ZodArray<z.ZodString>;
|
|
59
71
|
usageCount: z.ZodNumber;
|
|
72
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
73
|
+
title: z.ZodString;
|
|
74
|
+
link: z.ZodString;
|
|
75
|
+
}, z.core.$strip>>;
|
|
60
76
|
page: z.ZodObject<{
|
|
61
77
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
62
78
|
uuid: z.ZodString;
|
|
@@ -72,6 +88,10 @@ export declare const CatalogShortResponseItemSchema: z.ZodUnion<readonly [z.ZodO
|
|
|
72
88
|
image: z.ZodString;
|
|
73
89
|
tags: z.ZodArray<z.ZodString>;
|
|
74
90
|
usageCount: z.ZodNumber;
|
|
91
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
92
|
+
title: z.ZodString;
|
|
93
|
+
link: z.ZodString;
|
|
94
|
+
}, z.core.$strip>>;
|
|
75
95
|
page: z.ZodObject<{
|
|
76
96
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
77
97
|
uuid: z.ZodString;
|
|
@@ -92,6 +112,10 @@ export declare const CatalogShortUnregResponseSchema: z.ZodObject<{
|
|
|
92
112
|
image: z.ZodString;
|
|
93
113
|
tags: z.ZodArray<z.ZodString>;
|
|
94
114
|
usageCount: z.ZodNumber;
|
|
115
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
116
|
+
title: z.ZodString;
|
|
117
|
+
link: z.ZodString;
|
|
118
|
+
}, z.core.$strip>>;
|
|
95
119
|
page: z.ZodObject<{
|
|
96
120
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
97
121
|
uuid: z.ZodString;
|
|
@@ -107,6 +131,10 @@ export declare const CatalogShortUnregResponseSchema: z.ZodObject<{
|
|
|
107
131
|
image: z.ZodString;
|
|
108
132
|
tags: z.ZodArray<z.ZodString>;
|
|
109
133
|
usageCount: z.ZodNumber;
|
|
134
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
135
|
+
title: z.ZodString;
|
|
136
|
+
link: z.ZodString;
|
|
137
|
+
}, z.core.$strip>>;
|
|
110
138
|
page: z.ZodObject<{
|
|
111
139
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
112
140
|
uuid: z.ZodString;
|
|
@@ -125,6 +153,10 @@ export declare const CatalogShortRegResponseSchema: z.ZodObject<{
|
|
|
125
153
|
tags: z.ZodArray<z.ZodString>;
|
|
126
154
|
visibility: z.ZodEnum<typeof AssistantVisibility>;
|
|
127
155
|
usageCount: z.ZodNumber;
|
|
156
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
157
|
+
title: z.ZodString;
|
|
158
|
+
link: z.ZodString;
|
|
159
|
+
}, z.core.$strip>>;
|
|
128
160
|
}, z.core.$strip>>;
|
|
129
161
|
favorites: z.ZodArray<z.ZodObject<{
|
|
130
162
|
uuid: z.ZodString;
|
|
@@ -135,6 +167,10 @@ export declare const CatalogShortRegResponseSchema: z.ZodObject<{
|
|
|
135
167
|
tags: z.ZodArray<z.ZodString>;
|
|
136
168
|
visibility: z.ZodEnum<typeof AssistantVisibility>;
|
|
137
169
|
usageCount: z.ZodNumber;
|
|
170
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
171
|
+
title: z.ZodString;
|
|
172
|
+
link: z.ZodString;
|
|
173
|
+
}, z.core.$strip>>;
|
|
138
174
|
}, z.core.$strip>>;
|
|
139
175
|
all: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
140
176
|
uuid: z.ZodString;
|
|
@@ -148,6 +184,10 @@ export declare const CatalogShortRegResponseSchema: z.ZodObject<{
|
|
|
148
184
|
image: z.ZodString;
|
|
149
185
|
tags: z.ZodArray<z.ZodString>;
|
|
150
186
|
usageCount: z.ZodNumber;
|
|
187
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
188
|
+
title: z.ZodString;
|
|
189
|
+
link: z.ZodString;
|
|
190
|
+
}, z.core.$strip>>;
|
|
151
191
|
page: z.ZodObject<{
|
|
152
192
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
153
193
|
uuid: z.ZodString;
|
|
@@ -163,6 +203,10 @@ export declare const CatalogShortRegResponseSchema: z.ZodObject<{
|
|
|
163
203
|
image: z.ZodString;
|
|
164
204
|
tags: z.ZodArray<z.ZodString>;
|
|
165
205
|
usageCount: z.ZodNumber;
|
|
206
|
+
author: z.ZodNullable<z.ZodObject<{
|
|
207
|
+
title: z.ZodString;
|
|
208
|
+
link: z.ZodString;
|
|
209
|
+
}, z.core.$strip>>;
|
|
166
210
|
page: z.ZodObject<{
|
|
167
211
|
type: z.ZodEnum<typeof import("../..").PageType>;
|
|
168
212
|
uuid: z.ZodString;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CatalogShortRegResponseSchema = exports.CatalogShortUnregResponseSchema = exports.CatalogShortResponseItemSchema = exports.CatalogShortTreeNodeSchema = exports.CatalogShortTreeChildSchema = exports.CatalogShortItemSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const shared_1 = require("../../../shared");
|
|
6
|
+
const assistant_author_schema_1 = require("./assistant-author.schema");
|
|
6
7
|
const assistant_visibility_enum_1 = require("./assistant-visibility.enum");
|
|
7
8
|
const assistant_linked_page_schema_1 = require("./assistant-linked-page.schema");
|
|
8
9
|
exports.CatalogShortItemSchema = zod_1.z.object({
|
|
@@ -14,6 +15,7 @@ exports.CatalogShortItemSchema = zod_1.z.object({
|
|
|
14
15
|
tags: zod_1.z.array(zod_1.z.string()),
|
|
15
16
|
visibility: zod_1.z.nativeEnum(assistant_visibility_enum_1.AssistantVisibility),
|
|
16
17
|
usageCount: zod_1.z.number().int().min(0),
|
|
18
|
+
author: assistant_author_schema_1.AssistantAuthorSchema.nullable(),
|
|
17
19
|
});
|
|
18
20
|
exports.CatalogShortTreeChildSchema = zod_1.z.object({
|
|
19
21
|
uuid: zod_1.z.string().regex(shared_1.UUID_REGEX),
|
|
@@ -23,6 +25,7 @@ exports.CatalogShortTreeChildSchema = zod_1.z.object({
|
|
|
23
25
|
image: zod_1.z.string(),
|
|
24
26
|
tags: zod_1.z.array(zod_1.z.string()),
|
|
25
27
|
usageCount: zod_1.z.number().int().min(0),
|
|
28
|
+
author: assistant_author_schema_1.AssistantAuthorSchema.nullable(),
|
|
26
29
|
page: assistant_linked_page_schema_1.AssistantTreePageSchema,
|
|
27
30
|
});
|
|
28
31
|
exports.CatalogShortTreeNodeSchema = zod_1.z.object({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-short-response.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/catalog-short-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAC7C,2EAAkE;AAClE,iFAAyE;AAE5D,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,+CAAmB,CAAC;IAC7C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog-short-response.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/catalog-short-response.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAC7C,uEAAkE;AAClE,2EAAkE;AAClE,iFAAyE;AAE5D,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC3C,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;IACzB,UAAU,EAAE,OAAC,CAAC,UAAU,CAAC,+CAAmB,CAAC;IAC7C,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACnC,MAAM,EAAE,+CAAqB,CAAC,QAAQ,EAAE;CAC3C,CAAC,CAAC;AAEU,QAAA,2BAA2B,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mBAAU,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE;IACvB,KAAK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z.ZodDefault<z.ZodArray<z.ZodEnum<typeof AssistantMark>>>;
|
|
14
14
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
15
15
|
status: z.ZodDefault<z.ZodEnum<typeof AssistantStatus>>;
|
|
16
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
17
|
+
title: z.ZodString;
|
|
18
|
+
link: z.ZodString;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
16
20
|
}, z.core.$strict>;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CreateAssistantRequestSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const shared_1 = require("../../../shared");
|
|
6
|
+
const assistant_author_schema_1 = require("./assistant-author.schema");
|
|
6
7
|
const assistant_mark_enum_1 = require("./assistant-mark.enum");
|
|
7
8
|
const assistant_status_enum_1 = require("./assistant-status.enum");
|
|
8
9
|
exports.CreateAssistantRequestSchema = zod_1.z.object({
|
|
@@ -66,5 +67,6 @@ exports.CreateAssistantRequestSchema = zod_1.z.object({
|
|
|
66
67
|
error: 'CreateAssistantRequest.status.invalid',
|
|
67
68
|
})
|
|
68
69
|
.default(assistant_status_enum_1.AssistantStatus.ACTIVE),
|
|
70
|
+
author: assistant_author_schema_1.AssistantAuthorSchema.nullable().optional(),
|
|
69
71
|
}).strict();
|
|
70
72
|
//# sourceMappingURL=create-assistant-request.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-assistant-request.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/create-assistant-request.schema.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AACxB,4CAA6C;AAC7C,+DAAsD;AACtD,mEAA0D;AAE7C,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,OAAC;SACH,MAAM,CAAC,EAAE,KAAK,EAAE,uCAAuC,EAAE,CAAC;SAC1D,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AAG,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;IACjE,UAAU,EAAE,OAAC;SACR,MAAM,EAAE;SACR,KAAK,CAAC,mBAAU,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;SAC3E,QAAQ,EAAE;SACV,QAAQ,EAAE;IACf,KAAK,EAAE,OAAC;SACH,MAAM,EAAE;SACR,GAAG,CAAC,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;SACxD,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;SAC3D,GAAG,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;SAC3D,OAAO,CAAC,CAAC,CAAC;IACf,KAAK,EAAE,OAAC;SACH,KAAK,CACF,OAAC,CAAC,UAAU,CAAC,mCAAa,EAAE;QACxB,KAAK,EAAE,sCAAsC;KAChD,CAAC,CACL;SACA,GAAG,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;SACxD,OAAO,CAAC,EAAE,CAAC;IAChB,IAAI,EAAE,OAAC;SACF,KAAK,CACF,OAAC,CAAC,MAAM,EAAE;SACL,GAAG,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,qCAAqC,EAAE,CAAC;SAC1D,GAAG,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,qCAAqC,EAAE,CAAC;SAC5D,IAAI,EAAE,CACd;SACA,GAAG,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;SACvD,OAAO,CAAC,EAAE,CAAC;IAChB,MAAM,EAAE,OAAC;SACJ,UAAU,CAAC,uCAAe,EAAE;QACzB,KAAK,EAAE,uCAAuC;KACjD,CAAC;SACD,OAAO,CAAC,uCAAe,CAAC,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"create-assistant-request.schema.js","sourceRoot":"","sources":["../../../../v1/assistants/schemas/create-assistant-request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CAAC,EAAE,CAAC;IAChB,MAAM,EAAE,OAAC;SACJ,UAAU,CAAC,uCAAe,EAAE;QACzB,KAAK,EAAE,uCAAuC;KACjD,CAAC;SACD,OAAO,CAAC,uCAAe,CAAC,MAAM,CAAC;IACpC,MAAM,EAAE,+CAAqB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC,MAAM,EAAE,CAAC"}
|
|
@@ -3,6 +3,11 @@ export declare const CreateUserAssistantRequestSchema: z.ZodObject<{
|
|
|
3
3
|
title: z.ZodString;
|
|
4
4
|
description: z.ZodString;
|
|
5
5
|
placeholder: z.ZodString;
|
|
6
|
+
image: z.ZodOptional<z.ZodString>;
|
|
6
7
|
prompt: z.ZodString;
|
|
7
8
|
tags: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
9
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
|
+
title: z.ZodString;
|
|
11
|
+
link: z.ZodString;
|
|
12
|
+
}, z.core.$strip>>>;
|
|
8
13
|
}, z.core.$strip>;
|